You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/monaco-editor.21796569.asyn...

231 lines
2.3 MiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{"+3Gp":function(_t,P,e){"use strict";e.d(P,"a",function(){return z}),e.d(P,"b",function(){return M});var T=e("MNsG"),re=e("Yr1X"),J=function(){var U=function(c,y){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,f){L.__proto__=f}||function(L,f){for(var v in f)f.hasOwnProperty(v)&&(L[v]=f[v])},U(c,y)};return function(A,c){U(A,c);function y(){this.constructor=A}A.prototype=c===null?Object.create(c):(y.prototype=c.prototype,new y)}}(),N=T.e?1.5:1.35,H=8,z=function(){function U(A){this.zoomLevel=A.zoomLevel,this.fontFamily=String(A.fontFamily),this.fontWeight=String(A.fontWeight),this.fontSize=A.fontSize,this.fontFeatureSettings=A.fontFeatureSettings,this.lineHeight=A.lineHeight|0,this.letterSpacing=A.letterSpacing}return U.createFromValidatedSettings=function(A,c,y){var L=A.get(33),f=A.get(37),v=A.get(36),S=A.get(35),g=A.get(49),u=A.get(46);return U._create(L,f,v,S,g,u,c,y)},U._create=function(A,c,y,L,f,v,S,g){f===0?f=Math.round(N*y):f<H&&(f=H);var u=1+(g?0:re.a.getZoomLevel()*.1);return y*=u,f*=u,new U({zoomLevel:S,fontFamily:A,fontWeight:c,fontSize:y,fontFeatureSettings:L,lineHeight:f,letterSpacing:v})},U.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing},U.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},U}(),M=function(U){J(A,U);function A(c,y){var L=U.call(this,c)||this;return L.isTrusted=y,L.isMonospace=c.isMonospace,L.typicalHalfwidthCharacterWidth=c.typicalHalfwidthCharacterWidth,L.typicalFullwidthCharacterWidth=c.typicalFullwidthCharacterWidth,L.canUseHalfwidthRightwardsArrow=c.canUseHalfwidthRightwardsArrow,L.spaceWidth=c.spaceWidth,L.middotWidth=c.middotWidth,L.maxDigitWidth=c.maxDigitWidth,L}return A.prototype.equals=function(c){return this.fontFamily===c.fontFamily&&this.fontWeight===c.fontWeight&&this.fontSize===c.fontSize&&this.fontFeatureSettings===c.fontFeatureSettings&&this.lineHeight===c.lineHeight&&this.letterSpacing===c.letterSpacing&&this.typicalHalfwidthCharacterWidth===c.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===c.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===c.canUseHalfwidthRightwardsArrow&&this.spaceWidth===c.spaceWidth&&this.middotWidth===c.middotWidth&&this.maxDigitWidth===c.maxDigitWidth},A}(z)},"+7oY":function(_t,P,e){"use strict";e.d(P,"a",function(){return N}),e.d(P,"i",function(){return H}),e.d(P,"b",function(){return z}),e.d(P,"h",function(){return M}),e.d(P,"d",function(){return A}),e.d(P,"c",function(){return c}),e.d(P,"e",function(){return y}),e.d(P,"g",function(){return L}),e.d(P,"f",function(){return f});var T=e("ic2d"),re=e("Cg/j"),J=e("CRAX"),N=Object(re.c)("configurationService");function H(v,S){var g=Object.create(null);for(var u in v)z(g,u,v[u],S);return g}function z(v,S,g,u){for(var s=S.split("."),l=s.pop(),d=v,p=0;p<s.length;p++){var E=s[p],_=d[E];switch(typeof _){case"undefined":_=d[E]=Object.create(null);break;case"object":break;default:u("Ignoring "+S+" as "+s.slice(0,p+1).join(".")+" is "+JSON.stringify(_));return}d=_}typeof d=="object"?d[l]=g:u("Ignoring "+S+" as "+s.join(".")+" is "+JSON.stringify(d))}function M(v,S){var g=S.split(".");U(v,g)}function U(v,S){var g=S.shift();if(S.length===0){delete v[g];return}if(Object.keys(v).indexOf(g)!==-1){var u=v[g];typeof u=="object"&&!Array.isArray(u)&&(U(u,S),Object.keys(u).length===0&&delete v[g])}}function A(v,S,g){function u(d,p){for(var E=d,_=0,x=p;_<x.length;_++){var F=x[_];if(typeof E!="object"||E===null)return;E=E[F]}return E}var s=S.split("."),l=u(v,s);return typeof l=="undefined"?g:l}function c(){var v=T.a.as(J.a.Configuration).getConfigurationProperties();return Object.keys(v)}function y(){var v=Object.create(null),S=T.a.as(J.a.Configuration).getConfigurationProperties();for(var g in S){var u=S[g].default;z(v,g,u,function(s){return console.error("Conflict in default settings: "+s)})}return v}function L(v){return v.substring(1,v.length-1)}function f(v,S,g){var u=v.inspect(S),s=v.inspect(g);return typeof u.userValue!="undefined"||typeof u.workspaceValue!="undefined"||typeof u.workspaceFolderValue!="undefined"?u.value:typeof s.userValue!="undefined"||typeof s.workspaceValue!="undefined"||typeof s.workspaceFolderValue!="undefined"?s.value:u.defaultValue}},"+Fos":function(_t,P,e){"use strict";e.d(P,"a",function(){return z});var T=e("Ll0s"),re=e("cGHE"),J=e("aokT"),N=e("N0LK"),H=function(){function M(U,A,c){this.lineNumber=U,this.column=A,this.leftoverVisibleColumns=c}return M}(),z=function(){function M(){}return M.leftPosition=function(U,A,c){return c>U.getLineMinColumn(A)?c=c-N.G(U.getLineContent(A),c-1):A>1&&(A=A-1,c=U.getLineMaxColumn(A)),new re.a(A,c)},M.left=function(U,A,c,y){var L=M.leftPosition(A,c,y);return new H(L.lineNumber,L.column,0)},M.moveLeft=function(U,A,c,y,L){var f,v;if(c.hasSelection()&&!y)f=c.selection.startLineNumber,v=c.selection.startColumn;else{var S=M.left(U,A,c.position.lineNumber,c.position.column-(L-1));f=S.lineNumber,v=S.column}return c.move(y,f,v,0)},M.rightPosition=function(U,A,c){return c<U.getLineMaxColumn(A)?c=c+N.E(U.getLineContent(A),c-1):A<U.getLineCount()&&(A=A+1,c=U.getLineMinColumn(A)),new re.a(A,c)},M.right=function(U,A,c,y){var L=M.rightPosition(A,c,y);return new H(L.lineNumber,L.column,0)},M.moveRight=function(U,A,c,y,L){var f,v;if(c.hasSelection()&&!y)f=c.selection.endLineNumber,v=c.selection.endColumn;else{var S=M.right(U,A,c.position.lineNumber,c.position.column+(L-1));f=S.lineNumber,v=S.column}return c.move(y,f,v,0)},M.down=function(U,A,c,y,L,f,v){var S=T.a.visibleColumnFromColumn(A.getLineContent(c),y,U.tabSize)+L;c=c+f;var g=A.getLineCount();return c>g?(c=g,v?y=A.getLineMaxColumn(c):y=Math.min(A.getLineMaxColumn(c),y)):y=T.a.columnFromVisibleColumn2(U,A,c,S),L=S-T.a.visibleColumnFromColumn(A.getLineContent(c),y,U.tabSize),new H(c,y,L)},M.moveDown=function(U,A,c,y,L){var f,v;c.hasSelection()&&!y?(f=c.selection.endLineNumber,v=c.selection.endColumn):(f=c.position.lineNumber,v=c.position.column);var S=M.down(U,A,f,v,c.leftoverVisibleColumns,L,!0);return c.move(y,S.lineNumber,S.column,S.leftoverVisibleColumns)},M.translateDown=function(U,A,c){var y=c.selection,L=M.down(U,A,y.selectionStartLineNumber,y.selectionStartColumn,c.selectionStartLeftoverVisibleColumns,1,!1),f=M.down(U,A,y.positionLineNumber,y.positionColumn,c.leftoverVisibleColumns,1,!1);return new T.f(new J.a(L.lineNumber,L.column,L.lineNumber,L.column),L.leftoverVisibleColumns,new re.a(f.lineNumber,f.column),f.leftoverVisibleColumns)},M.up=function(U,A,c,y,L,f,v){var S=T.a.visibleColumnFromColumn(A.getLineContent(c),y,U.tabSize)+L;return c=c-f,c<1?(c=1,v?y=A.getLineMinColumn(c):y=Math.min(A.getLineMaxColumn(c),y)):y=T.a.columnFromVisibleColumn2(U,A,c,S),L=S-T.a.visibleColumnFromColumn(A.getLineContent(c),y,U.tabSize),new H(c,y,L)},M.moveUp=function(U,A,c,y,L){var f,v;c.hasSelection()&&!y?(f=c.selection.startLineNumber,v=c.selection.startColumn):(f=c.position.lineNumber,v=c.position.column);var S=M.up(U,A,f,v,c.leftoverVisibleColumns,L,!0);return c.move(y,S.lineNumber,S.column,S.leftoverVisibleColumns)},M.translateUp=function(U,A,c){var y=c.selection,L=M.up(U,A,y.selectionStartLineNumber,y.selectionStartColumn,c.selectionStartLeftoverVisibleColumns,1,!1),f=M.up(U,A,y.positionLineNumber,y.positionColumn,c.leftoverVisibleColumns,1,!1);return new T.f(new J.a(L.lineNumber,L.column,L.lineNumber,L.column),L.leftoverVisibleColumns,new re.a(f.lineNumber,f.column),f.leftoverVisibleColumns)},M.moveToBeginningOfLine=function(U,A,c,y){var L=c.position.lineNumber,f=A.getLineMinColumn(L),v=A.getLineFirstNonWhitespaceColumn(L)||f,S,g=c.position.column;return g===v?S=f:S=v,c.move(y,L,S,0)},M.moveToEndOfLine=function(U,A,c,y){var L=c.position.lineNumber,f=A.getLineMaxColumn(L);return c.move(y,L,f,0)},M.moveToBeginningOfBuffer=function(U,A,c,y){return c.move(y,1,1,0)},M.moveToEndOfBuffer=function(U,A,c,y){var L=A.getLineCount(),f=A.getLineMaxColumn(L);return c.move(y,L,f,0)},M}()},"+a1H":function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return e.e(257).then(e.bind(null,"O3xE"))}})},"+hIS":function(_t,P,e){"use strict";e.d(P,"a",function(){return z});var T=typeof monaco=="undefined"?self.monaco:monaco,re={},J={},N=function(){function M(U){var A=this;this._languageId=U,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(c,y){A._lazyLoadPromiseResolve=c,A._lazyLoadPromiseReject=y})}return M.getOrCreate=function(U){return J[U]||(J[U]=new M(U)),J[U]},M.prototype.whenLoaded=function(){return this._lazyLoadPromise},M.prototype.load=function(){var U=this;return this._loadingTriggered||(this._loadingTriggered=!0,re[this._languageId].loader().then(function(A){return U._lazyLoadPromiseResolve(A)},function(A){return U._lazyLoadPromiseReject(A)})),this._lazyLoadPromise},M}();function H(M){return N.getOrCreate(M).load()}function z(M){var U=M.id;re[U]=M,T.languages.register(M);var A=N.getOrCreate(U);T.languages.setMonarchTokensProvider(U,A.whenLoaded().then(function(c){return c.language})),T.languages.onLanguage(U,function(){A.load().then(function(c){T.languages.setLanguageConfiguration(U,c.conf)})})}},"/RFl":function(_t,P,e){"use strict";e.r(P),e.d(P,"DragAndDropController",function(){return L});var T=e("OhnE"),re=e("pmY6"),J=e("MNsG"),N=e("sswD"),H=e("cGHE"),z=e("aokT"),M=e("gCVg"),U=function(){function f(v,S,g){this.selection=v,this.targetPosition=S,this.copy=g,this.targetSelection=null}return f.prototype.getEditOperations=function(v,S){var g=v.getValueInRange(this.selection);if(this.copy||S.addEditOperation(this.selection,null),S.addEditOperation(new z.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),g),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new M.a(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new M.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new M.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new M.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column-this.selection.endColumn+this.selection.startColumn:this.targetPosition.column-this.selection.endColumn+this.selection.startColumn,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new M.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn)},f.prototype.computeCursorState=function(v,S){return this.targetSelection},f}(),A=e("tX9W"),c=function(){var f=function(S,g){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,s){u.__proto__=s}||function(u,s){for(var l in s)s.hasOwnProperty(l)&&(u[l]=s[l])},f(S,g)};return function(v,S){f(v,S);function g(){this.constructor=v}v.prototype=S===null?Object.create(S):(g.prototype=S.prototype,new g)}}();function y(f){return J.e?f.altKey:f.ctrlKey}var L=function(f){c(v,f);function v(S){var g=f.call(this)||this;return g._editor=S,g._register(g._editor.onMouseDown(function(u){return g._onEditorMouseDown(u)})),g._register(g._editor.onMouseUp(function(u){return g._onEditorMouseUp(u)})),g._register(g._editor.onMouseDrag(function(u){return g._onEditorMouseDrag(u)})),g._register(g._editor.onMouseDrop(function(u){return g._onEditorMouseDrop(u)})),g._register(g._editor.onKeyDown(function(u){return g.onEditorKeyDown(u)})),g._register(g._editor.onKeyUp(function(u){return g.onEditorKeyUp(u)})),g._register(g._editor.onDidBlurEditorWidget(function(){return g.onEditorBlur()})),g._dndDecorationIds=[],g._mouseDown=!1,g._modifierPressed=!1,g._dragSelection=null,g}return v.prototype.onEditorBlur=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1},v.prototype.onEditorKeyDown=function(S){if(!this._editor.getOption(24))return;y(S)&&(this._modifierPressed=!0),this._mouseDown&&y(S)&&this._editor.updateOptions({mouseStyle:"copy"})},v.prototype.onEditorKeyUp=function(S){if(!this._editor.getOption(24))return;y(S)&&(this._modifierPressed=!1),this._mouseDown&&S.keyCode===v.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"})},v.prototype._onEditorMouseDown=function(S){this._mouseDown=!0},v.prototype._onEditorMouseUp=function(S){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})},v.prototype._onEditorMouseDrag=function(S){var g=S.target;if(this._dragSelection===null){var u=this._editor.getSelections()||[],s=u.filter(function(l){return g.position&&l.containsPosition(g.position)});if(s.length===1)this._dragSelection=s[0];else return}y(S.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),g.position&&(this._dragSelection.containsPosition(g.position)?this._removeDecoration():this.showAt(g.position))},v.prototype._onEditorMouseDrop=function(S){if(S.target&&(this._hitContent(S.target)||this._hitMargin(S.target))&&S.target.position){var g=new H.a(S.target.position.lineNumber,S.target.position.column);if(this._dragSelection===null){var u=null;if(S.event.shiftKey){var s=this._editor.getSelection();if(s){var l=s.selectionStartLineNumber,d=s.selectionStartColumn;u=[new M.a(l,d,g.lineNumber,g.column)]}}else u=(this._editor.getSelections()||[]).map(function(p){return p.containsPosition(g)?new M.a(g.lineNumber,g.column,g.lineNumber,g.column):p});this._editor.setSelections(u||[],"mouse")}else(!this._dragSelection.containsPosition(g)||(y(S.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(g)||this._dragSelection.getStartPosition().equals(g)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(v.ID,new U(this._dragSelection,g,y(S.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1},v.prototype.showAt=function(S){var g=[{range:new z.a(S.lineNumber,S.column,S.lineNumber,S.column),options:v._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,g),this._editor.revealPosition(S,1)},v.prototype._removeDecoration=function(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])},v.prototype._hitContent=function(S){return S.type===6||S.type===7},v.prototype._hitMargin=function(S){return S.type===2||S.type===3||S.type===4},v.prototype.dispose=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,f.prototype.dispose.call(this)},v.ID="editor.contrib.dragAndDrop",v.TRIGGER_KEY_VALUE=J.e?6:5,v._DECORATION_OPTIONS=A.a.register({className:"dnd-target"}),v}(re.a);Object(N.h)(L.ID,L)},"/UlZ":function(_t,P,e){"use strict";e.d(P,"f",function(){return z}),e.d(P,"a",function(){return M}),e.d(P,"h",function(){return U}),e.d(P,"g",function(){return E}),e.d(P,"d",function(){return $}),e.d(P,"j",function(){return q}),e.d(P,"b",function(){return ve}),e.d(P,"c",function(){return Q}),e.d(P,"i",function(){return b}),e.d(P,"e",function(){return se});var T=e("3/fG"),re=e("MNsG"),J=e("0JNc"),N=function(){var ne=function(Oe,we){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ve,Qe){Ve.__proto__=Qe}||function(Ve,Qe){for(var it in Qe)Qe.hasOwnProperty(it)&&(Ve[it]=Qe[it])},ne(Oe,we)};return function(Ce,Oe){ne(Ce,Oe);function we(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(we.prototype=Oe.prototype,new we)}}(),H=function(){return H=Object.assign||function(ne){for(var Ce,Oe=1,we=arguments.length;Oe<we;Oe++){Ce=arguments[Oe];for(var Ve in Ce)Object.prototype.hasOwnProperty.call(Ce,Ve)&&(ne[Ve]=Ce[Ve])}return ne},H.apply(this,arguments)},z=8,M=function(){function ne(Ce){this._values=Ce}return ne.prototype.hasChanged=function(Ce){return this._values[Ce]},ne}(),U=function(){function ne(){this._values=[]}return ne.prototype._read=function(Ce){return this._values[Ce]},ne.prototype.get=function(Ce){return this._values[Ce]},ne.prototype._write=function(Ce,Oe){this._values[Ce]=Oe},ne}(),A=function(){function ne(Ce,Oe,we,Ve){this.id=Ce,this.name=Oe,this.defaultValue=we,this.schema=Ve}return ne.prototype.compute=function(Ce,Oe,we){return we},ne}(),c=function(){function ne(Ce,Oe){Oe===void 0&&(Oe=null),this.schema=void 0,this.id=Ce,this.name="_never_",this.defaultValue=void 0,this.deps=Oe}return ne.prototype.validate=function(Ce){return this.defaultValue},ne}(),y=function(){function ne(Ce,Oe,we,Ve){this.id=Ce,this.name=Oe,this.defaultValue=we,this.schema=Ve}return ne.prototype.validate=function(Ce){return typeof Ce=="undefined"?this.defaultValue:Ce},ne.prototype.compute=function(Ce,Oe,we){return we},ne}(),L=function(ne){N(Ce,ne);function Ce(Oe,we,Ve,Qe){Qe===void 0&&(Qe=void 0);var it=this;return typeof Qe!="undefined"&&(Qe.type="boolean",Qe.default=Ve),it=ne.call(this,Oe,we,Ve,Qe)||this,it}return Ce.boolean=function(Oe,we){return typeof Oe=="undefined"?we:Oe==="false"?!1:Boolean(Oe)},Ce.prototype.validate=function(Oe){return Ce.boolean(Oe,this.defaultValue)},Ce}(y),f=function(ne){N(Ce,ne);function Ce(Oe,we,Ve,Qe,it,gt){gt===void 0&&(gt=void 0);var Rt=this;return typeof gt!="undefined"&&(gt.type="integer",gt.default=Ve,gt.minimum=Qe,gt.maximum=it),Rt=ne.call(this,Oe,we,Ve,gt)||this,Rt.minimum=Qe,Rt.maximum=it,Rt}return Ce.clampedInt=function(Oe,we,Ve,Qe){var it;return typeof Oe=="undefined"?it=we:(it=parseInt(Oe,10),isNaN(it)&&(it=we)),it=Math.max(Ve,it),it=Math.min(Qe,it),it|0},Ce.prototype.validate=function(Oe){return Ce.clampedInt(Oe,this.defaultValue,this.minimum,this.maximum)},Ce}(y),v=function(ne){N(Ce,ne);function Ce(Oe,we,Ve,Qe,it){var gt=this;return typeof it!="undefined"&&(it.type="number",it.default=Ve),gt=ne.call(this,Oe,we,Ve,it)||this,gt.validationFn=Qe,gt}return Ce.clamp=function(Oe,we,Ve){return Oe<we?we:Oe>Ve?Ve:Oe},Ce.float=function(Oe,we){if(typeof Oe=="number")return Oe;if(typeof Oe=="undefined")return we;var Ve=parseFloat(Oe);return isNaN(Ve)?we:Ve},Ce.prototype.validate=function(Oe){return this.validationFn(Ce.float(Oe,this.defaultValue))},Ce}(y),S=function(ne){N(Ce,ne);function Ce(Oe,we,Ve,Qe){Qe===void 0&&(Qe=void 0);var it=this;return typeof Qe!="undefined"&&(Qe.type="string",Qe.default=Ve),it=ne.call(this,Oe,we,Ve,Qe)||this,it}return Ce.string=function(Oe,we){return typeof Oe!="string"?we:Oe},Ce.prototype.validate=function(Oe){return Ce.string(Oe,this.defaultValue)},Ce}(y),g=function(ne){N(Ce,ne);function Ce(Oe,we,Ve,Qe,it){it===void 0&&(it=void 0);var gt=this;return typeof it!="undefined"&&(it.type="string",it.enum=Qe,it.default=Ve),gt=ne.call(this,Oe,we,Ve,it)||this,gt._allowedValues=Qe,gt}return Ce.stringSet=function(Oe,we,Ve){return typeof Oe!="string"||Ve.indexOf(Oe)===-1?we:Oe},Ce.prototype.validate=function(Oe){return Ce.stringSet(Oe,this.defaultValue,this._allowedValues)},Ce}(y),u=function(ne){N(Ce,ne);function Ce(Oe,we,Ve,Qe,it,gt,Rt){Rt===void 0&&(Rt=void 0);var Dt=this;return typeof Rt!="undefined"&&(Rt.type="string",Rt.enum=it,Rt.default=Qe),Dt=ne.call(this,Oe,we,Ve,Rt)||this,Dt._allowedValues=it,Dt._convert=gt,Dt}return Ce.prototype.validate=function(Oe){return typeof Oe!="string"?this.defaultValue:this._allowedValues.indexOf(Oe)===-1?this.defaultValue:this._convert(Oe)},Ce}(A);function s(ne){switch(ne){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var l=function(ne){N(Ce,ne);function Ce(){return ne.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[T.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),T.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),T.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:T.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return Ce.prototype.validate=function(Oe){switch(Oe){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},Ce.prototype.compute=function(Oe,we,Ve){return Ve===0?Oe.accessibilitySupport:Ve},Ce}(A),d=function(ne){N(Ce,ne);function Ce(){var Oe=this,we={insertSpace:!0};return Oe=ne.call(this,13,"comments",we,{"editor.comments.insertSpace":{type:"boolean",default:we.insertSpace,description:T.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,Oe}return Ce.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var we=Oe;return{insertSpace:L.boolean(we.insertSpace,this.defaultValue.insertSpace)}},Ce}(A);function p(ne){switch(ne){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var E;(function(ne){ne[ne.Line=1]="Line",ne[ne.Block=2]="Block",ne[ne.Underline=3]="Underline",ne[ne.LineThin=4]="LineThin",ne[ne.BlockOutline=5]="BlockOutline",ne[ne.UnderlineThin=6]="UnderlineThin"})(E||(E={}));function _(ne){switch(ne){case"line":return E.Line;case"block":return E.Block;case"underline":return E.Underline;case"line-thin":return E.LineThin;case"block-outline":return E.BlockOutline;case"underline-thin":return E.UnderlineThin}}var x=function(ne){N(Ce,ne);function Ce(){return ne.call(this,104,[55,26])||this}return Ce.prototype.compute=function(Oe,we,Ve){var Qe="monaco-editor";return we.get(26)&&(Qe+=" "+we.get(26)),Oe.extraEditorClassName&&(Qe+=" "+Oe.extraEditorClassName),we.get(55)==="default"?Qe+=" mouse-default":we.get(55)==="copy"&&(Qe+=" mouse-copy"),we.get(85)&&(Qe+=" showUnused"),Qe},Ce}(c),F=function(ne){N(Ce,ne);function Ce(){return ne.call(this,25,"emptySelectionClipboard",!0,{description:T.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return Ce.prototype.compute=function(Oe,we,Ve){return Ve&&Oe.emptySelectionClipboard},Ce}(L),R=function(ne){N(Ce,ne);function Ce(){var Oe=this,we={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return Oe=ne.call(this,28,"find",we,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:we.seedSearchStringFromSelection,description:T.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:we.autoFindInSelection,enumDescriptions:[T.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),T.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),T.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:T.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:we.globalFindClipboard,description:T.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:re.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:we.addExtraSpaceOnTop,description:T.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,Oe}return Ce.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var we=Oe;return{seedSearchStringFromSelection:L.boolean(we.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof Oe.autoFindInSelection=="boolean"?Oe.autoFindInSelection?"always":"never":g.stringSet(we.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:L.boolean(we.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:L.boolean(we.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},Ce}(A),$=function(ne){N(Ce,ne);function Ce(){return ne.call(this,35,"fontLigatures",Ce.OFF,{anyOf:[{type:"boolean",description:T.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:T.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:T.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return Ce.prototype.validate=function(Oe){return typeof Oe=="undefined"?this.defaultValue:typeof Oe=="string"?Oe==="false"?Ce.OFF:Oe==="true"?Ce.ON:Oe:Boolean(Oe)?Ce.ON:Ce.OFF},Ce.OFF='"liga" off, "calt" off',Ce.ON='"liga" on, "calt" on',Ce}(A),ie=function(ne){N(Ce,ne);function Ce(){return ne.call(this,34)||this}return Ce.prototype.compute=function(Oe,we,Ve){return Oe.fontInfo},Ce}(c),W=function(ne){N(Ce,ne);function Ce(){return ne.call(this,36,"fontSize",ve.fontSize,{type:"number",minimum:6,maximum:100,default:ve.fontSize,description:T.a("fontSize","Controls the font size in pixels.")})||this}return Ce.prototype.validate=function(Oe){var we=v.float(Oe,this.defaultValue);return we===0?ve.fontSize:v.clamp(we,6,100)},Ce.prototype.compute=function(Oe,we,Ve){return Oe.fontInfo.fontSize},Ce}(y),B=function(ne){N(Ce,ne);function Ce(){var Oe=this,we={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:""},Ve={type:"string",enum:["peek","gotoAndPeek","goto"],default:we.multiple,enumDescriptions:[T.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),T.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),T.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return Oe=ne.call(this,41,"gotoLocation",we,{"editor.gotoLocation.multiple":{deprecationMessage:T.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":H({description:T.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.multipleTypeDefinitions":H({description:T.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.multipleDeclarations":H({description:T.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.multipleImplementations":H({description:T.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.multipleReferences":H({description:T.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:we.alternativeDefinitionCommand,description:T.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:we.alternativeTypeDefinitionCommand,description:T.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:we.alternativeDeclarationCommand,description:T.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:we.alternativeImplementationCommand,description:T.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:we.alternativeReferenceCommand,description:T.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,Oe}return Ce.prototype.validate=function(Oe){var we,Ve,Qe,it,gt;if(typeof Oe!="object")return this.defaultValue;var Rt=Oe;return{multiple:g.stringSet(Rt.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(we=Rt.multipleDefinitions)!==null&&we!==void 0?we:g.stringSet(Rt.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(Ve=Rt.multipleTypeDefinitions)!==null&&Ve!==void 0?Ve:g.stringSet(Rt.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Qe=Rt.multipleDeclarations)!==null&&Qe!==void 0?Qe:g.stringSet(Rt.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(it=Rt.multipleImplementations)!==null&&it!==void 0?it:g.stringSet(Rt.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(gt=Rt.multipleReferences)!==null&&gt!==void 0?gt:g.stringSet(Rt.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:S.string(Rt.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:S.string(Rt.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:S.string(Rt.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:S.string(Rt.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:S.string(Rt.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},Ce}(A),le=function(ne){N(Ce,ne);function Ce(){var Oe=this,we={enabled:!0,delay:300,sticky:!0};return Oe=ne.call(this,44,"hover",we,{"editor.hover.enabled":{type:"boolean",default:we.enabled,description:T.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:we.delay,description:T.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:we.sticky,description:T.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,Oe}return Ce.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var we=Oe;return{enabled:L.boolean(we.enabled,this.defaultValue.enabled),delay:f.clampedInt(we.delay,this.defaultValue.delay,0,1e4),sticky:L.boolean(we.sticky,this.defaultValue.sticky)}},Ce}(A),be=function(ne){N(Ce,ne);function Ce(){return ne.call(this,107,[40,48,30,54,78,50])||this}return Ce.prototype.compute=function(Oe,we,Ve){return Ce.computeLayout(we,{outerWidth:Oe.outerWidth,outerHeight:Oe.outerHeight,lineHeight:Oe.fontInfo.lineHeight,lineNumbersDigitCount:Oe.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:Oe.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:Oe.fontInfo.maxDigitWidth,pixelRatio:Oe.pixelRatio})},Ce.computeLayout=function(Oe,we){var Ve=we.outerWidth|0,Qe=we.outerHeight|0,it=we.lineHeight|0,gt=we.lineNumbersDigitCount|0,Rt=we.typicalHalfwidthCharacterWidth,Dt=we.maxDigitWidth,zt=we.pixelRatio,cn=Oe.get(40),ln=Oe.get(50).renderType!==0,an=Oe.get(51)|0,jt=Oe.get(54),ft=jt.enabled,vt=jt.side,xt=jt.renderCharacters,at=zt>=2?Math.round(jt.scale*2):jt.scale,tt=jt.maxColumn|0,ct=Oe.get(78),bt=ct.verticalScrollbarSize|0,mt=ct.verticalHasArrows,Ct=ct.arrowSize|0,Gt=ct.horizontalScrollbarSize|0,It=Oe.get(48),Et=Oe.get(30),Je;if(typeof It=="string"&&/^\d+(\.\d+)?ch$/.test(It)){var $e=parseFloat(It.substr(0,It.length-2));Je=f.clampedInt($e*Rt,0,0,1e3)}else Je=f.clampedInt(It,0,0,1e3);Et&&(Je+=16);var ze=0;if(ln){var Ke=Math.max(gt,an);ze=Math.round(Ke*Dt)}var fe=0;cn&&(fe=it);var G=0,te=G+fe,Y=te+ze,de=Y+Je,Fe=Ve-fe-ze-Je,lt,Tt,Jt,en;if(!ft)Tt=0,Jt=0,lt=0,en=Fe;else{var gn=at/zt;lt=xt?1:2,Jt=Math.max(0,Math.floor((Fe-bt-2)*gn/(Rt+gn)))+z;var un=Jt/gn;un>tt&&(Jt=Math.floor(tt*gn)),en=Fe-Jt,vt==="left"?(Tt=0,G+=Jt,te+=Jt,Y+=Jt,de+=Jt):Tt=Ve-Jt-bt}var En=Math.max(1,Math.floor((en-bt-2)/Rt)),Mn=mt?Ct:0;return{width:Ve,height:Qe,glyphMarginLeft:G,glyphMarginWidth:fe,lineNumbersLeft:te,lineNumbersWidth:ze,decorationsLeft:Y,decorationsWidth:Je,contentLeft:de,contentWidth:en,renderMinimap:lt,minimapLeft:Tt,minimapWidth:Jt,viewportColumn:En,verticalScrollbarWidth:bt,horizontalScrollbarHeight:Gt,overviewRuler:{top:Mn,width:bt,height:Qe-2*Mn,right:0}}},Ce}(c),De=function(ne){N(Ce,ne);function Ce(){var Oe=this,we={enabled:!0};return Oe=ne.call(this,47,"lightbulb",we,{"editor.lightbulb.enabled":{type:"boolean",default:we.enabled,description:T.a("codeActions","Enables the code action lightbulb in the editor.")}})||this,Oe}return Ce.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var we=Oe;return{enabled:L.boolean(we.enabled,this.defaultValue.enabled)}},Ce}(A),Te=function(ne){N(Ce,ne);function Ce(){return ne.call(this,49,"lineHeight",ve.lineHeight,0,150,{description:T.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return Ce.prototype.compute=function(Oe,we,Ve){return Oe.fontInfo.lineHeight},Ce}(f),ke=function(ne){N(Ce,ne);function Ce(){var Oe=this,we={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return Oe=ne.call(this,54,"minimap",we,{"editor.minimap.enabled":{type:"boolean",default:we.enabled,description:T.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:we.side,description:T.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:we.showSlider,description:T.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:we.scale,minimum:1,maximum:3,description:T.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:we.renderCharacters,description:T.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:we.maxColumn,description:T.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,Oe}return Ce.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var we=Oe;return{enabled:L.boolean(we.enabled,this.defaultValue.enabled),side:g.stringSet(we.side,this.defaultValue.side,["right","left"]),showSlider:g.stringSet(we.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:L.boolean(we.renderCharacters,this.defaultValue.renderCharacters),scale:f.clampedInt(we.scale,1,1,3),maxColumn:f.clampedInt(we.maxColumn,this.defaultValue.maxColumn,1,1e4)}},Ce}(A);function He(ne){return ne==="ctrlCmd"?re.e?"metaKey":"ctrlKey":"altKey"}var je=function(ne){N(Ce,ne);function Ce(){var Oe=this,we={enabled:!0,cycle:!1};return Oe=ne.call(this,64,"parameterHints",we,{"editor.parameterHints.enabled":{type:"boolean",default:we.enabled,description:T.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:we.cycle,description:T.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,Oe}return Ce.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var we=Oe;return{enabled:L.boolean(we.enabled,this.defaultValue.enabled),cycle:L.boolean(we.cycle,this.defaultValue.cycle)}},Ce}(A),oe=function(ne){N(Ce,ne);function Ce(){return ne.call(this,105)||this}return Ce.prototype.compute=function(Oe,we,Ve){return Oe.pixelRatio},Ce}(c),ee=function(ne){N(Ce,ne);function Ce(){var Oe=this,we={other:!0,comments:!1,strings:!1};return Oe=ne.call(this,66,"quickSuggestions",we,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:we.strings,description:T.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:we.comments,description:T.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:we.other,description:T.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:we,description:T.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,Oe.defaultValue=we,Oe}return Ce.prototype.validate=function(Oe){if(typeof Oe=="boolean")return Oe;if(typeof Oe=="object"){var we=Oe,Ve={other:L.boolean(we.other,this.defaultValue.other),comments:L.boolean(we.comments,this.defaultValue.comments),strings:L.boolean(we.strings,this.defaultValue.strings)};return Ve.other&&Ve.comments&&Ve.strings?!0:!Ve.other&&!Ve.comments&&!Ve.strings?!1:Ve}return this.defaultValue},Ce}(A),ae=function(ne){N(Ce,ne);function Ce(){return ne.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[T.a("lineNumbers.off","Line numbers are not rendered."),T.a("lineNumbers.on","Line numbers are rendered as absolute number."),T.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),T.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:T.a("lineNumbers","Controls the display of line numbers.")})||this}return Ce.prototype.validate=function(Oe){var we=this.defaultValue.renderType,Ve=this.defaultValue.renderFn;return typeof Oe!="undefined"&&(typeof Oe=="function"?(we=4,Ve=Oe):Oe==="interval"?we=3:Oe==="relative"?we=2:Oe==="on"?we=1:we=0),{renderType:we,renderFn:Ve}},Ce}(A);function q(ne){var Ce=ne.get(73);return Ce==="editable"?ne.get(68):!(Ce==="on")}var ce=function(ne){N(Ce,ne);function Ce(){var Oe=this,we=[];return Oe=ne.call(this,77,"rulers",we,{type:"array",items:{type:"number"},default:we,description:T.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,Oe}return Ce.prototype.validate=function(Oe){if(Array.isArray(Oe)){for(var we=[],Ve=0,Qe=Oe;Ve<Qe.length;Ve++){var it=Qe[Ve];we.push(f.clampedInt(it,0,0,1e4))}return we.sort(function(gt,Rt){return gt-Rt}),we}return this.defaultValue},Ce}(y);function X(ne,Ce){if(typeof ne!="string")return Ce;switch(ne){case"hidden":return 2;case"visible":return 3;default:return 1}}var he=function(ne){N(Ce,ne);function Ce(){return ne.call(this,78,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})||this}return Ce.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var we=Oe,Ve=f.clampedInt(we.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),Qe=f.clampedInt(we.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:f.clampedInt(we.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:X(we.vertical,this.defaultValue.vertical),horizontal:X(we.horizontal,this.defaultValue.horizontal),useShadows:L.boolean(we.useShadows,this.defaultValue.useShadows),verticalHasArrows:L.boolean(we.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:L.boolean(we.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:L.boolean(we.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:L.boolean(we.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:Ve,horizontalSliderSize:f.clampedInt(we.horizontalSliderSize,Ve,0,1e3),verticalScrollbarSize:Qe,verticalSliderSize:f.clampedInt(we.verticalSliderSize,Qe,0,1e3)}},Ce}(A),Pe=function(ne){N(Ce,ne);function Ce(){var Oe=this,we={insertMode:"insert",insertHighlight:!1,filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,hideStatusBar:!0};return Oe=ne.call(this,89,"suggest",we,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[T.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),T.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:we.insertMode,description:T.a("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.insertHighlight":{type:"boolean",default:we.insertHighlight,description:T.a("suggest.insertHighlight","Controls whether unexpected text modifications while accepting completions should be highlighted, e.g `insertMode` is `replace` but the completion only supports `insert`.")},"editor.suggest.filterGraceful":{type:"boolean",default:we.filterGraceful,description:T.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:we.localityBonus,description:T.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:we.shareSuggestSelections,markdownDescription:T.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:we.snippetsPreventQuickSuggestions,description:T.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:we.showIcons,description:T.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:we.maxVisibleSuggestions,minimum:1,maximum:15,description:T.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:T.a("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.hideStatusBar":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.hideStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")}})||this,Oe}return Ce.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var we=Oe;return{insertMode:g.stringSet(we.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:L.boolean(we.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:L.boolean(we.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:L.boolean(we.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:L.boolean(we.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:L.boolean(we.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:L.boolean(we.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:f.clampedInt(we.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:L.boolean(we.showMethods,this.defaultValue.showMethods),showFunctions:L.boolean(we.showFunctions,this.defaultValue.showFunctions),showConstructors:L.boolean(we.showConstructors,this.defaultValue.showConstructors),showFields:L.boolean(we.showFields,this.defaultValue.showFields),showVariables:L.boolean(we.showVariables,this.defaultValue.showVariables),showClasses:L.boolean(we.showClasses,this.defaultValue.showClasses),showStructs:L.boolean(we.showStructs,this.defaultValue.showStructs),showInterfaces:L.boolean(we.showInterfaces,this.defaultValue.showInterfaces),showModules:L.boolean(we.showModules,this.defaultValue.showModules),showProperties:L.boolean(we.showProperties,this.defaultValue.showProperties),showEvents:L.boolean(we.showEvents,this.defaultValue.showEvents),showOperators:L.boolean(we.showOperators,this.defaultValue.showOperators),showUnits:L.boolean(we.showUnits,this.defaultValue.showUnits),showValues:L.boolean(we.showValues,this.defaultValue.showValues),showConstants:L.boolean(we.showConstants,this.defaultValue.showConstants),showEnums:L.boolean(we.showEnums,this.defaultValue.showEnums),showEnumMembers:L.boolean(we.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:L.boolean(we.showKeywords,this.defaultValue.showKeywords),showWords:L.boolean(we.showWords,this.defaultValue.showWords),showColors:L.boolean(we.showColors,this.defaultValue.showColors),showFiles:L.boolean(we.showFiles,this.defaultValue.showFiles),showReferences:L.boolean(we.showReferences,this.defaultValue.showReferences),showFolders:L.boolean(we.showFolders,this.defaultValue.showFolders),showTypeParameters:L.boolean(we.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:L.boolean(we.showSnippets,this.defaultValue.showSnippets),hideStatusBar:L.boolean(we.hideStatusBar,this.defaultValue.hideStatusBar)}},Ce}(A),Xe=function(ne){N(Ce,ne);function Ce(){return ne.call(this,106,[68])||this}return Ce.prototype.compute=function(Oe,we,Ve){var Qe=we.get(68);return Qe?!0:Oe.tabFocusMode},Ce}(c);function pe(ne){switch(ne){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}var me=function(ne){N(Ce,ne);function Ce(){return ne.call(this,108,[97,100,101,107,2])||this}return Ce.prototype.compute=function(Oe,we,Ve){var Qe=we.get(97),it=we.get(100),gt=we.get(101),Rt=we.get(107),Dt=we.get(2),zt=null;return Dt===2?zt={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:gt&&Oe.isDominatedByLongLines?zt={isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,Rt.viewportColumn)}:Qe==="on"?zt={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,Rt.viewportColumn)}:Qe==="bounded"?zt={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,Rt.viewportColumn),it)}:Qe==="wordWrapColumn"?zt={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:it}:zt={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1},{isDominatedByLongLines:Oe.isDominatedByLongLines,isWordWrapMinified:zt.isWordWrapMinified,isViewportWrapping:zt.isViewportWrapping,wrappingColumn:zt.wrappingColumn}},Ce}(c),Se="Consolas, 'Courier New', monospace",Re="Menlo, Monaco, 'Courier New', monospace",Ee="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",ve={fontFamily:re.e?Re:re.d?Ee:Se,fontWeight:"normal",fontSize:re.e?12:14,lineHeight:0,letterSpacing:0},Q={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},b=[];function k(ne){return b[ne.id]=ne,ne}var se={acceptSuggestionOnCommitCharacter:k(new L(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:T.a("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:k(new g(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",T.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:T.a("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:k(new l),accessibilityPageSize:k(new f(3,"accessibilityPageSize",10,1,1073741824,{description:T.a("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:k(new S(4,"ariaLabel",T.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:k(new g(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",T.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),T.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:T.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:k(new g(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",T.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:T.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:k(new g(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",T.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),T.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:T.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:k(new u(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],s,{enumDescriptions:[T.a("editor.autoIndent.none","The editor will not insert indentation automatically."),T.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),T.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),T.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),T.a("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:T.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:k(new L(9,"automaticLayout",!1)),autoSurround:k(new g(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[T.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),T.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),T.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:T.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:k(new L(11,"codeLens",!0,{description:T.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:k(new L(12,"colorDecorators",!0,{description:T.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),comments:k(new d),contextmenu:k(new L(14,"contextmenu",!0)),copyWithSyntaxHighlighting:k(new L(15,"copyWithSyntaxHighlighting",!0,{description:T.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:k(new u(16,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],p,{description:T.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:k(new L(17,"cursorSmoothCaretAnimation",!1,{description:T.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:k(new u(18,"cursorStyle",E.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],_,{description:T.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:k(new f(19,"cursorSurroundingLines",0,0,1073741824,{description:T.a("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:k(new g(20,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[T.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),T.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:T.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:k(new f(21,"cursorWidth",0,0,1073741824,{markdownDescription:T.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:k(new L(22,"disableLayerHinting",!1)),disableMonospaceOptimizations:k(new L(23,"disableMonospaceOptimizations",!1)),dragAndDrop:k(new L(24,"dragAndDrop",!0,{description:T.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:k(new F),extraEditorClassName:k(new S(26,"extraEditorClassName","")),fastScrollSensitivity:k(new v(27,"fastScrollSensitivity",5,function(ne){return ne<=0?5:ne},{markdownDescription:T.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:k(new R),fixedOverflowWidgets:k(new L(29,"fixedOverflowWidgets",!1)),folding:k(new L(30,"folding",!0,{description:T.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:k(new g(31,"foldingStrategy","auto",["auto","indentation"],{markdownDescription:T.a("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")})),foldingHighlight:k(new L(32,"foldingHighlight",!0,{description:T.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),fontFamily:k(new S(33,"fontFamily",ve.fontFamily,{description:T.a("fontFamily","Controls the font family.")})),fontInfo:k(new ie),fontLigatures2:k(new $),fontSize:k(new W),fontWeight:k(new S(37,"fontWeight",ve.fontWeight,{enum:["normal","bold","100","200","300","400","500","600","700","800","900"],description:T.a("fontWeight","Controls the font weight.")})),formatOnPaste:k(new L(38,"formatOnPaste",!1,{description:T.a("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:k(new L(39,"formatOnType",!1,{description:T.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:k(new L(40,"glyphMargin",!0,{description:T.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:k(new B),hideCursorInOverviewRuler:k(new L(42,"hideCursorInOverviewRuler",!1,{description:T.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:k(new L(43,"highlightActiveIndentGuide",!0,{description:T.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:k(new le),inDiffEditor:k(new L(45,"inDiffEditor",!1)),letterSpacing:k(new v(46,"letterSpacing",ve.letterSpacing,function(ne){return v.clamp(ne,-5,20)},{description:T.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:k(new De),lineDecorationsWidth:k(new y(48,"lineDecorationsWidth",10)),lineHeight:k(new Te),lineNumbers:k(new ae),lineNumbersMinChars:k(new f(51,"lineNumbersMinChars",5,1,300)),links:k(new L(52,"links",!0,{description:T.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:k(new g(53,"matchBrackets","always",["always","near","never"],{description:T.a("matchBrackets","Highlight matching brackets.")})),minimap:k(new ke),mouseStyle:k(new g(55,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:k(new v(56,"mouseWheelScrollSensitivity",1,function(ne){return ne===0?1:ne},{markdownDescription:T.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:k(new L(57,"mouseWheelZoom",!1,{markdownDescription:T.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:k(new L(58,"multiCursorMergeOverlapping",!0,{description:T.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:k(new u(59,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],He,{markdownEnumDescriptions:[T.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),T.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:T.a({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:k(new g(60,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[T.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),T.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:T.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:k(new L(61,"occurrencesHighlight",!0,{description:T.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:k(new L(62,"overviewRulerBorder",!0,{description:T.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:k(new f(63,"overviewRulerLanes",3,0,3)),parameterHints:k(new je),peekWidgetDefaultFocus:k(new g(65,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[T.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),T.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:T.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),quickSuggestions:k(new ee),quickSuggestionsDelay:k(new f(67,"quickSuggestionsDelay",10,0,1073741824,{description:T.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:k(new L(68,"readOnly",!1)),renderControlCharacters:k(new L(69,"renderControlCharacters",!1,{description:T.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:k(new L(70,"renderIndentGuides",!0,{description:T.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:k(new L(71,"renderFinalNewline",!0,{description:T.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:k(new g(72,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",T.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:T.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderValidationDecorations:k(new g(73,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:k(new g(74,"renderWhitespace","none",["none","boundary","selection","all"],{enumDescriptions:["",T.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),T.a("renderWhitespace.selection","Render whitespace characters only on selected text."),""],description:T.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:k(new f(75,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:k(new L(76,"roundedSelection",!0,{description:T.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:k(new ce),scrollbar:k(new he),scrollBeyondLastColumn:k(new f(79,"scrollBeyondLastColumn",5,0,1073741824,{description:T.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:k(new L(80,"scrollBeyondLastLine",!0,{description:T.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:k(new L(81,"selectionClipboard",!0,{description:T.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:re.d})),selectionHighlight:k(new L(82,"selectionHighlight",!0,{description:T.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:k(new L(83,"selectOnLineNumbers",!0)),showFoldingControls:k(new g(84,"showFoldingControls","mouseover",["always","mouseover"],{description:T.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:k(new L(85,"showUnused",!0,{description:T.a("showUnused","Controls fading out of unused code.")})),snippetSuggestions:k(new g(86,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[T.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),T.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),T.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),T.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:T.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:k(new L(87,"smoothScrolling",!1,{description:T.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:k(new f(88,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:k(new Pe),suggestFontSize:k(new f(90,"suggestFontSize",0,0,1e3,{markdownDescription:T.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:k(new f(91,"suggestLineHeight",0,0,1e3,{markdownDescription:T.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:k(new L(92,"suggestOnTriggerCharacters",!0,{description:T.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:k(new g(93,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[T.a("suggestSelection.first","Always select the first suggestion."),T.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),T.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:T.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:k(new g(94,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[T.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),T.a("tabCompletion.off","Disable tab completions."),T.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:T.a("tabCompletion","Enables tab completions.")})),useTabStops:k(new L(95,"useTabStops",!0,{description:T.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:k(new S(96,"wordSeparators",J.b,{description:T.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:k(new g(97,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[T.a("wordWrap.off","Lines will never wrap."),T.a("wordWrap.on","Lines will wrap at the viewport width."),T.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),T.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:T.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:k(new S(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:k(new S(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:k(new f(100,"wordWrapColumn",80,1,1073741824,{markdownDescription:T.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:k(new L(101,"wordWrapMinified",!0)),wrappingIndent:k(new u(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],pe,{enumDescriptions:[T.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),T.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),T.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),T.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:T.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:k(new g(103,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[T.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."),T.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:T.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:k(new x),pixelRatio:k(new oe),tabFocusMode:k(new Xe),layoutInfo:k(new be),wrappingInfo:k(new me)}},"/cAr":function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return e.e(266).then(e.bind(null,"8m5U"))}})},"/cxE":function(_t,P,e){"use strict";e.d(P,"e",function(){return J}),e.d(P,"f",function(){return N}),e.d(P,"g",function(){return H}),e.d(P,"d",function(){return M}),e.d(P,"a",function(){return U}),e.d(P,"b",function(){return A}),e.d(P,"c",function(){return c});var T=function(){function y(){this.listeners=[],this.unexpectedErrorHandler=function(L){setTimeout(function(){throw L.stack?new Error(L.message+`
`+L.stack):L},0)}}return y.prototype.emit=function(L){this.listeners.forEach(function(f){f(L)})},y.prototype.onUnexpectedError=function(L){this.unexpectedErrorHandler(L),this.emit(L)},y.prototype.onUnexpectedExternalError=function(L){this.unexpectedErrorHandler(L)},y}(),re=new T;function J(y){M(y)||re.onUnexpectedError(y);return}function N(y){M(y)||re.onUnexpectedExternalError(y);return}function H(y){if(y instanceof Error){var L=y.name,f=y.message,v=y.stacktrace||y.stack;return{$isError:!0,name:L,message:f,stack:v}}return y}var z="Canceled";function M(y){return y instanceof Error&&y.name===z&&y.message===z}function U(){var y=new Error(z);return y.name=y.message,y}function A(y){return y?new Error("Illegal argument: "+y):new Error("Illegal argument")}function c(y){return y?new Error("Illegal state: "+y):new Error("Illegal state")}},"/kV6":function(_t,P,e){"use strict";e.d(P,"b",function(){return z}),e.d(P,"a",function(){return M}),e.d(P,"f",function(){return U}),e.d(P,"e",function(){return c}),e.d(P,"d",function(){return L}),e.d(P,"c",function(){return f});var T=e("/cxE"),re=function(){function v(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return v.prototype.define=function(S,g){this._keyCodeToStr[S]=g,this._strToKeyCode[g.toLowerCase()]=S},v.prototype.keyCodeToStr=function(S){return this._keyCodeToStr[S]},v.prototype.strToKeyCode=function(S){return this._strToKeyCode[S.toLowerCase()]||0},v}(),J=new re,N=new re,H=new re;(function(){function v(S,g,u,s){u===void 0&&(u=g),s===void 0&&(s=u),J.define(S,g),N.define(S,u),H.define(S,s)}v(0,"unknown"),v(1,"Backspace"),v(2,"Tab"),v(3,"Enter"),v(4,"Shift"),v(5,"Ctrl"),v(6,"Alt"),v(7,"PauseBreak"),v(8,"CapsLock"),v(9,"Escape"),v(10,"Space"),v(11,"PageUp"),v(12,"PageDown"),v(13,"End"),v(14,"Home"),v(15,"LeftArrow","Left"),v(16,"UpArrow","Up"),v(17,"RightArrow","Right"),v(18,"DownArrow","Down"),v(19,"Insert"),v(20,"Delete"),v(21,"0"),v(22,"1"),v(23,"2"),v(24,"3"),v(25,"4"),v(26,"5"),v(27,"6"),v(28,"7"),v(29,"8"),v(30,"9"),v(31,"A"),v(32,"B"),v(33,"C"),v(34,"D"),v(35,"E"),v(36,"F"),v(37,"G"),v(38,"H"),v(39,"I"),v(40,"J"),v(41,"K"),v(42,"L"),v(43,"M"),v(44,"N"),v(45,"O"),v(46,"P"),v(47,"Q"),v(48,"R"),v(49,"S"),v(50,"T"),v(51,"U"),v(52,"V"),v(53,"W"),v(54,"X"),v(55,"Y"),v(56,"Z"),v(57,"Meta"),v(58,"ContextMenu"),v(59,"F1"),v(60,"F2"),v(61,"F3"),v(62,"F4"),v(63,"F5"),v(64,"F6"),v(65,"F7"),v(66,"F8"),v(67,"F9"),v(68,"F10"),v(69,"F11"),v(70,"F12"),v(71,"F13"),v(72,"F14"),v(73,"F15"),v(74,"F16"),v(75,"F17"),v(76,"F18"),v(77,"F19"),v(78,"NumLock"),v(79,"ScrollLock"),v(80,";",";","OEM_1"),v(81,"=","=","OEM_PLUS"),v(82,",",",","OEM_COMMA"),v(83,"-","-","OEM_MINUS"),v(84,".",".","OEM_PERIOD"),v(85,"/","/","OEM_2"),v(86,"`","`","OEM_3"),v(110,"ABNT_C1"),v(111,"ABNT_C2"),v(87,"[","[","OEM_4"),v(88,"\\","\\","OEM_5"),v(89,"]","]","OEM_6"),v(90,"'","'","OEM_7"),v(91,"OEM_8"),v(92,"OEM_102"),v(93,"NumPad0"),v(94,"NumPad1"),v(95,"NumPad2"),v(96,"NumPad3"),v(97,"NumPad4"),v(98,"NumPad5"),v(99,"NumPad6"),v(100,"NumPad7"),v(101,"NumPad8"),v(102,"NumPad9"),v(103,"NumPad_Multiply"),v(104,"NumPad_Add"),v(105,"NumPad_Separator"),v(106,"NumPad_Subtract"),v(107,"NumPad_Decimal"),v(108,"NumPad_Divide")})();var z;(function(v){function S(d){return J.keyCodeToStr(d)}v.toString=S;function g(d){return J.strToKeyCode(d)}v.fromString=g;function u(d){return N.keyCodeToStr(d)}v.toUserSettingsUS=u;function s(d){return H.keyCodeToStr(d)}v.toUserSettingsGeneral=s;function l(d){return N.strToKeyCode(d)||H.strToKeyCode(d)}v.fromUserSettings=l})(z||(z={}));function M(v,S){var g=(S&65535)<<16>>>0;return(v|g)>>>0}function U(v,S){if(v===0)return null;var g=(v&65535)>>>0,u=(v&4294901760)>>>16;return u!==0?new y([A(g,S),A(u,S)]):new y([A(g,S)])}function A(v,S){var g=!!(v&2048),u=!!(v&256),s=S===2?u:g,l=!!(v&1024),d=!!(v&512),p=S===2?g:u,E=v&255;return new c(s,l,d,p,E)}var c=function(){function v(S,g,u,s,l){this.ctrlKey=S,this.shiftKey=g,this.altKey=u,this.metaKey=s,this.keyCode=l}return v.prototype.equals=function(S){return this.ctrlKey===S.ctrlKey&&this.shiftKey===S.shiftKey&&this.altKey===S.altKey&&this.metaKey===S.metaKey&&this.keyCode===S.keyCode},v.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},v.prototype.toChord=function(){return new y([this])},v.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},v}(),y=function(){function v(S){if(S.length===0)throw Object(T.b)("parts");this.parts=S}return v.prototype.equals=function(S){if(S===null)return!1;if(this.parts.length!==S.parts.length)return!1;for(var g=0;g<this.parts.length;g++)if(!this.parts[g].equals(S.parts[g]))return!1;return!0},v}(),L=function(){function v(S,g,u,s,l,d){this.ctrlKey=S,this.shiftKey=g,this.altKey=u,this.metaKey=s,this.keyLabel=l,this.keyAriaLabel=d}return v}(),f=function(){function v(){}return v}()},"/oaI":function(_t,P,e){},"0+8E":function(_t,P,e){"use strict";e.d(P,"b",function(){return l}),e.d(P,"a",function(){return d});var T=e("i/Rh"),re=e("3/fG"),J=e("D3Dy"),N=e("EffR"),H=e("Md8J"),z=e("OBOq"),M=e("WqXY"),U=e("MI8n"),A=e("G300"),c=e("zrhQ"),y=e("qj0h"),L=e("JYp7"),f=function(){function p(E,_){E===void 0&&(E=[]),_===void 0&&(_=10),this._initialize(E),this._limit=_,this._onChange()}return p.prototype.add=function(E){this._history.delete(E),this._history.add(E),this._onChange()},p.prototype.next=function(){return this._navigator.next()},p.prototype.previous=function(){return this._navigator.previous()},p.prototype.current=function(){return this._navigator.current()},p.prototype.parent=function(){return null},p.prototype.first=function(){return this._navigator.first()},p.prototype.last=function(){return this._navigator.last()},p.prototype.has=function(E){return this._history.has(E)},p.prototype._onChange=function(){this._reduceToLimit();var E=this._elements;this._navigator=new L.b(E,0,E.length,E.length)},p.prototype._reduceToLimit=function(){var E=this._elements;E.length>this._limit&&this._initialize(E.slice(E.length-this._limit))},p.prototype._initialize=function(E){this._history=new Set;for(var _=0,x=E;_<x.length;_++){var F=x[_];this._history.add(F)}},Object.defineProperty(p.prototype,"_elements",{get:function(){var _=[];return this._history.forEach(function(x){return _.push(x)}),_},enumerable:!0,configurable:!0}),p}(),v=e("GJhM"),S=e("4y0V"),g=function(){var p=function(_,x){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,R){F.__proto__=R}||function(F,R){for(var $ in R)R.hasOwnProperty($)&&(F[$]=R[$])},p(_,x)};return function(E,_){p(E,_);function x(){this.constructor=E}E.prototype=_===null?Object.create(_):(x.prototype=_.prototype,new x)}}(),u=N.a,s={inputBackground:c.a.fromHex("#3C3C3C"),inputForeground:c.a.fromHex("#CCCCCC"),inputValidationInfoBorder:c.a.fromHex("#55AAFF"),inputValidationInfoBackground:c.a.fromHex("#063B49"),inputValidationWarningBorder:c.a.fromHex("#B89500"),inputValidationWarningBackground:c.a.fromHex("#352A05"),inputValidationErrorBorder:c.a.fromHex("#BE1100"),inputValidationErrorBackground:c.a.fromHex("#5A1D1D")},l=function(p){g(E,p);function E(_,x,F){var R=p.call(this)||this;R.state="idle",R.maxHeight=Number.POSITIVE_INFINITY,R._onDidChange=R._register(new U.a),R.onDidChange=R._onDidChange.event,R._onDidHeightChange=R._register(new U.a),R.onDidHeightChange=R._onDidHeightChange.event,R.contextViewProvider=x,R.options=F||Object.create(null),Object(y.g)(R.options,s,!1),R.message=null,R.placeholder=R.options.placeholder||"",R.ariaLabel=R.options.ariaLabel||"",R.inputBackground=R.options.inputBackground,R.inputForeground=R.options.inputForeground,R.inputBorder=R.options.inputBorder,R.inputValidationInfoBorder=R.options.inputValidationInfoBorder,R.inputValidationInfoBackground=R.options.inputValidationInfoBackground,R.inputValidationInfoForeground=R.options.inputValidationInfoForeground,R.inputValidationWarningBorder=R.options.inputValidationWarningBorder,R.inputValidationWarningBackground=R.options.inputValidationWarningBackground,R.inputValidationWarningForeground=R.options.inputValidationWarningForeground,R.inputValidationErrorBorder=R.options.inputValidationErrorBorder,R.inputValidationErrorBackground=R.options.inputValidationErrorBackground,R.inputValidationErrorForeground=R.options.inputValidationErrorForeground,R.options.validationOptions&&(R.validation=R.options.validationOptions.validation),R.element=N.q(_,u(".monaco-inputbox.idle"));var $=R.options.flexibleHeight?"textarea":"input",ie=N.q(R.element,u(".wrapper"));if(R.input=N.q(ie,u($+".input.empty")),R.input.setAttribute("autocorrect","off"),R.input.setAttribute("autocapitalize","off"),R.input.setAttribute("spellcheck","false"),R.onfocus(R.input,function(){return N.f(R.element,"synthetic-focus")}),R.onblur(R.input,function(){return N.P(R.element,"synthetic-focus")}),R.options.flexibleHeight){R.maxHeight=typeof R.options.flexibleMaxHeight=="number"?R.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,R.mirror=N.q(ie,u("div.mirror")),R.mirror.innerHTML="&#160;",R.scrollableElement=new v.b(R.element,{vertical:1}),R.options.flexibleWidth&&(R.input.setAttribute("wrap","off"),R.mirror.style.whiteSpace="pre",R.mirror.style.wordWrap="initial"),N.q(_,R.scrollableElement.getDomNode()),R._register(R.scrollableElement),R._register(R.scrollableElement.onScroll(function(B){return R.input.scrollTop=B.scrollTop}));var W=U.b.filter(Object(S.a)(document,"selectionchange"),function(){var B=document.getSelection();return(B==null?void 0:B.anchorNode)===ie});R._register(W(R.updateScrollDimensions,R)),R._register(R.onDidHeightChange(R.updateScrollDimensions,R))}else R.input.type=R.options.type||"text",R.input.setAttribute("wrap","off");return R.ariaLabel&&R.input.setAttribute("aria-label",R.ariaLabel),R.placeholder&&R.setPlaceHolder(R.placeholder),R.oninput(R.input,function(){return R.onValueChange()}),R.onblur(R.input,function(){return R.onBlur()}),R.onfocus(R.input,function(){return R.onFocus()}),R.placeholder&&J.i&&R.onclick(R.input,function(B){N.c.stop(B,!0),R.input.focus()}),R.ignoreGesture(R.input),setTimeout(function(){return R.updateMirror()},0),R.options.actions&&(R.actionbar=R._register(new M.a(R.element)),R.actionbar.push(R.options.actions,{icon:!0,label:!1})),R.applyStyles(),R}return E.prototype.onBlur=function(){this._hideMessage()},E.prototype.onFocus=function(){this._showMessage()},E.prototype.setPlaceHolder=function(_){this.placeholder=_,this.input.setAttribute("placeholder",_),this.input.title=_},E.prototype.setAriaLabel=function(_){this.ariaLabel=_,_?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")},Object.defineProperty(E.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"value",{get:function(){return this.input.value},set:function(x){this.input.value!==x&&(this.input.value=x,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"height",{get:function(){return typeof this.cachedHeight=="number"?this.cachedHeight:N.G(this.element)},enumerable:!0,configurable:!0}),E.prototype.focus=function(){this.input.focus()},E.prototype.blur=function(){this.input.blur()},E.prototype.hasFocus=function(){return document.activeElement===this.input},E.prototype.select=function(_){_===void 0&&(_=null),this.input.select(),_&&this.input.setSelectionRange(_.start,_.end)},E.prototype.enable=function(){this.input.removeAttribute("disabled")},E.prototype.disable=function(){this.blur(),this.input.disabled=!0,this._hideMessage()},Object.defineProperty(E.prototype,"width",{get:function(){return N.H(this.input)},set:function(x){if(this.options.flexibleHeight&&this.options.flexibleWidth){var F=0;if(this.mirror){var R=parseFloat(this.mirror.style.paddingLeft||"")||0,$=parseFloat(this.mirror.style.paddingRight||"")||0;F=R+$}this.input.style.width=x-F+"px"}else this.input.style.width=x+"px";this.mirror&&(this.mirror.style.width=x+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"paddingRight",{set:function(x){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+x+"px)":this.input.style.paddingRight=x+"px",this.mirror&&(this.mirror.style.paddingRight=x+"px")},enumerable:!0,configurable:!0}),E.prototype.updateScrollDimensions=function(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;var _=this.cachedContentHeight,x=this.cachedHeight,F=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:_,height:x}),this.scrollableElement.setScrollPosition({scrollTop:F})},E.prototype.showMessage=function(_,x){this.message=_,N.P(this.element,"idle"),N.P(this.element,"info"),N.P(this.element,"warning"),N.P(this.element,"error"),N.f(this.element,this.classForType(_.type));var F=this.stylesForType(this.message.type);this.element.style.border=F.border?"1px solid "+F.border:"";var R;_.type===3?R=re.a("alertErrorMessage","Error: {0}",_.content):_.type===2?R=re.a("alertWarningMessage","Warning: {0}",_.content):R=re.a("alertInfoMessage","Info: {0}",_.content),z.a(R),(this.hasFocus()||x)&&this._showMessage()},E.prototype.hideMessage=function(){this.message=null,N.P(this.element,"info"),N.P(this.element,"warning"),N.P(this.element,"error"),N.f(this.element,"idle"),this._hideMessage(),this.applyStyles()},E.prototype.validate=function(){var _=null;return this.validation&&(_=this.validation(this.value),_?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(_)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!_},E.prototype.stylesForType=function(_){switch(_){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}},E.prototype.classForType=function(_){switch(_){case 1:return"info";case 2:return"warning";default:return"error"}},E.prototype._showMessage=function(){var _=this;if(!this.contextViewProvider||!this.message)return;var x,F=function(){return x.style.width=N.H(_.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return _.element},anchorAlignment:1,render:function($){if(!_.message)return null;x=N.q($,u(".monaco-inputbox-container")),F();var ie={inline:!0,className:"monaco-inputbox-message"},W=_.message.formatContent?Object(H.b)(_.message.content,ie):Object(H.c)(_.message.content,ie);N.f(W,_.classForType(_.message.type));var B=_.stylesForType(_.message.type);return W.style.backgroundColor=B.background?B.background.toString():"",W.style.color=B.foreground?B.foreground.toString():"",W.style.border=B.border?"1px solid "+B.border:"",N.q(x,W),null},onHide:function(){_.state="closed"},layout:F}),this.state="open"},E.prototype._hideMessage=function(){if(!this.contextViewProvider)return;this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle"},E.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),N.Y(this.input,"empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()},E.prototype.updateMirror=function(){if(!this.mirror)return;var _=this.value,x=_.charCodeAt(_.length-1),F=x===10?" ":"",R=_+F;R?this.mirror.textContent=_+F:this.mirror.innerHTML="&#160;",this.layout()},E.prototype.style=function(_){this.inputBackground=_.inputBackground,this.inputForeground=_.inputForeground,this.inputBorder=_.inputBorder,this.inputValidationInfoBackground=_.inputValidationInfoBackground,this.inputValidationInfoForeground=_.inputValidationInfoForeground,this.inputValidationInfoBorder=_.inputValidationInfoBorder,this.inputValidationWarningBackground=_.inputValidationWarningBackground,this.inputValidationWarningForeground=_.inputValidationWarningForeground,this.inputValidationWarningBorder=_.inputValidationWarningBorder,this.inputValidationErrorBackground=_.inputValidationErrorBackground,this.inputValidationErrorForeground=_.inputValidationErrorForeground,this.inputValidationErrorBorder=_.inputValidationErrorBorder,this.applyStyles()},E.prototype.applyStyles=function(){var _=this.inputBackground?this.inputBackground.toString():"",x=this.inputForeground?this.inputForeground.toString():"",F=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=_,this.element.style.color=x,this.input.style.backgroundColor=_,this.input.style.color=x,this.element.style.borderWidth=F?"1px":"",this.element.style.borderStyle=F?"solid":"",this.element.style.borderColor=F},E.prototype.layout=function(){if(!this.mirror)return;var _=this.cachedContentHeight;this.cachedContentHeight=N.G(this.mirror),_!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))},E.prototype.insertAtCursor=function(_){var x=this.inputElement,F=x.selectionStart,R=x.selectionEnd,$=x.value;F!==null&&R!==null&&(this.value=$.substr(0,F)+_+$.substr(R),x.setSelectionRange(F+1,F+1),this.layout())},E.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),p.prototype.dispose.call(this)},E}(A.a),d=function(p){g(E,p);function E(_,x,F){var R=p.call(this,_,x,F)||this;return R.history=new f(F.history,100),R}return E.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},E.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var _=this.getNextValue();_&&(_=_===this.value?this.getNextValue():_),_&&(this.value=_,z.c(this.value))},E.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var _=this.getPreviousValue();_&&(_=_===this.value?this.getPreviousValue():_),_&&(this.value=_,z.c(this.value))},E.prototype.getCurrentValue=function(){var _=this.history.current();return _||(_=this.history.last(),this.history.next()),_},E.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},E.prototype.getNextValue=function(){return this.history.next()||this.history.last()},E}(l)},"0/Sa":function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("aokT"),re=function(){function J(){}return J.insert=function(N,H){return{range:new T.a(N.lineNumber,N.column,N.lineNumber,N.column),text:H,forceMoveMarkers:!0}},J.delete=function(N){return{range:N,text:null}},J.replace=function(N,H){return{range:N,text:H}},J.replaceMove=function(N,H){return{range:N,text:H,forceMoveMarkers:!0}},J}()},"03kh":function(_t,P,e){"use strict";e.d(P,"a",function(){return f});var T=e("qj0h"),re=e("Vxe3"),J=e("nB0o"),N=e("nnTU"),H=e("T8No"),z=e("Cg/j"),M=e("sM1p"),U=e("t9D7"),A=e("R3nR"),c=function(){var v=function(g,u){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])},v(g,u)};return function(S,g){v(S,g);function u(){this.constructor=S}S.prototype=g===null?Object.create(g):(u.prototype=g.prototype,new u)}}(),y=function(v,S,g,u){var s=arguments.length,l=s<3?S:u===null?u=Object.getOwnPropertyDescriptor(S,g):u,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(v,S,g,u);else for(var p=v.length-1;p>=0;p--)(d=v[p])&&(l=(s<3?d(l):s>3?d(S,g,l):d(S,g))||l);return s>3&&l&&Object.defineProperty(S,g,l),l},L=function(v,S){return function(g,u){S(g,u,v)}},f=function(v){c(S,v);function S(g,u,s,l,d,p,E,_,x,F){var R=v.call(this,g,s.getRawOptions(),{},l,d,p,E,_,x,F)||this;return R._parentEditor=s,R._overwriteOptions=u,v.prototype.updateOptions.call(R,R._overwriteOptions),R._register(s.onDidChangeConfiguration(function($){return R._onParentConfigurationChanged($)})),R}return S.prototype.getParentEditor=function(){return this._parentEditor},S.prototype._onParentConfigurationChanged=function(g){v.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),v.prototype.updateOptions.call(this,this._overwriteOptions)},S.prototype.updateOptions=function(g){T.g(this._overwriteOptions,g,!0),v.prototype.updateOptions.call(this,this._overwriteOptions)},S=y([L(3,z.a),L(4,re.a),L(5,N.b),L(6,H.c),L(7,U.c),L(8,M.a),L(9,A.b)],S),S}(J.a)},"09fa":function(_t,P,e){"use strict";e.d(P,"a",function(){return re}),e.d(P,"b",function(){return J}),e.d(P,"c",function(){return N});var T=e("Cg/j"),re=Object(T.c)("logService"),J;(function(H){H[H.Trace=0]="Trace",H[H.Debug=1]="Debug",H[H.Info=2]="Info",H[H.Warning=3]="Warning",H[H.Error=4]="Error",H[H.Critical=5]="Critical",H[H.Off=6]="Off"})(J||(J={}));var N=function(){function H(){}return H.prototype.getLevel=function(){return J.Info},H.prototype.trace=function(z){for(var M=[],U=1;U<arguments.length;U++)M[U-1]=arguments[U]},H.prototype.error=function(z){for(var M=[],U=1;U<arguments.length;U++)M[U-1]=arguments[U]},H.prototype.dispose=function(){},H}()},"0JNc":function(_t,P,e){"use strict";e.d(P,"b",function(){return T}),e.d(P,"a",function(){return J}),e.d(P,"c",function(){return N}),e.d(P,"d",function(){return M});var T="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function re(U){U===void 0&&(U="");for(var A="(-?\\d*\\.\\d\\w*)|([^",c=0,y=T;c<y.length;c++){var L=y[c];if(U.indexOf(L)>=0)continue;A+="\\"+L}return A+="\\s]+)",new RegExp(A,"g")}var J=re();function N(U){var A=J;if(U&&U instanceof RegExp)if(U.global)A=U;else{var c="g";U.ignoreCase&&(c+="i"),U.multiline&&(c+="m"),U.unicode&&(c+="u"),A=new RegExp(U.source,c)}return A.lastIndex=0,A}function H(U,A,c,y){var L=U-1-y,f=c.lastIndexOf(" ",L-1)+1;A.lastIndex=f;for(var v;v=A.exec(c);){var S=v.index||0;if(S<=L&&A.lastIndex>=L)return{word:v[0],startColumn:y+1+S,endColumn:y+1+A.lastIndex}}return null}function z(U,A,c,y){var L=U-1-y;A.lastIndex=0;for(var f;f=A.exec(c);){var v=f.index||0;if(v>L)return null;if(A.lastIndex>=L)return{word:f[0],startColumn:y+1+v,endColumn:y+1+A.lastIndex}}return null}function M(U,A,c,y){A.lastIndex=0;var L=A.exec(c);if(!L)return null;var f=L[0].indexOf(" ")>=0?z(U,A,c,y):H(U,A,c,y);return A.lastIndex=0,f}},"0oIH":function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return e.e(256).then(e.bind(null,"Eg73"))}})},"10Fh":function(_t,P,e){"use strict";e.r(P),e.d(P,"provideSelectionRanges",function(){return x});var T=e("6OMU"),re=e("JQT/"),J=e("sswD"),N=e("cGHE"),H=e("aokT"),z=e("gCVg"),M=e("wQH0"),U=e("twdY"),A=e("3/fG"),c=e("pmY6"),y=e("N0LK"),L=function(){function F(){}return F.prototype.provideSelectionRanges=function(R,$){for(var ie=[],W=0,B=$;W<B.length;W++){var le=B[W],be=[];ie.push(be),this._addInWordRanges(be,R,le),this._addWordRanges(be,R,le),this._addWhitespaceLine(be,R,le),be.push({range:R.getFullModelRange()})}return ie},F.prototype._addInWordRanges=function(R,$,ie){var W=$.getWordAtPosition(ie);if(!W)return;for(var B=W.word,le=W.startColumn,be=ie.column-le,De=be,Te=be,ke=0;De>=0;De--){var He=B.charCodeAt(De);if(He===95||He===45)break;if(Object(y.B)(He)&&Object(y.C)(ke))break;ke=He}for(De+=1;Te<B.length;Te++){var He=B.charCodeAt(Te);if(Object(y.C)(He)&&Object(y.B)(ke))break;if(He===95||He===45)break;ke=He}De<Te&&R.push({range:new H.a(ie.lineNumber,le+De,ie.lineNumber,le+Te)})},F.prototype._addWordRanges=function(R,$,ie){var W=$.getWordAtPosition(ie);W&&R.push({range:new H.a(ie.lineNumber,W.startColumn,ie.lineNumber,W.endColumn)})},F.prototype._addWhitespaceLine=function(R,$,ie){$.getLineLength(ie.lineNumber)>0&&$.getLineFirstNonWhitespaceColumn(ie.lineNumber)===0&&$.getLineLastNonWhitespaceColumn(ie.lineNumber)===0&&R.push({range:new H.a(ie.lineNumber,1,ie.lineNumber,$.getLineMaxColumn(ie.lineNumber))})},F}(),f=e("Z7SF"),v=e("nnTU"),S=e("/cxE"),g=function(){var F=function($,ie){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,B){W.__proto__=B}||function(W,B){for(var le in B)B.hasOwnProperty(le)&&(W[le]=B[le])},F($,ie)};return function(R,$){F(R,$);function ie(){this.constructor=R}R.prototype=$===null?Object.create($):(ie.prototype=$.prototype,new ie)}}(),u=function(F,R,$,ie){function W(B){return B instanceof $?B:new $(function(le){le(B)})}return new($||($=Promise))(function(B,le){function be(ke){try{Te(ie.next(ke))}catch(He){le(He)}}function De(ke){try{Te(ie.throw(ke))}catch(He){le(He)}}function Te(ke){ke.done?B(ke.value):W(ke.value).then(be,De)}Te((ie=ie.apply(F,R||[])).next())})},s=function(F,R){var $={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]},ie,W,B,le;return le={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function be(Te){return function(ke){return De([Te,ke])}}function De(Te){if(ie)throw new TypeError("Generator is already executing.");for(;$;)try{if(ie=1,W&&(B=Te[0]&2?W.return:Te[0]?W.throw||((B=W.return)&&B.call(W),0):W.next)&&!(B=B.call(W,Te[1])).done)return B;(W=0,B)&&(Te=[Te[0]&2,B.value]);switch(Te[0]){case 0:case 1:B=Te;break;case 4:return $.label++,{value:Te[1],done:!1};case 5:$.label++,W=Te[1],Te=[0];continue;case 7:Te=$.ops.pop(),$.trys.pop();continue;default:if(!(B=$.trys,B=B.length>0&&B[B.length-1])&&(Te[0]===6||Te[0]===2)){$=0;continue}if(Te[0]===3&&(!B||Te[1]>B[0]&&Te[1]<B[3])){$.label=Te[1];break}if(Te[0]===6&&$.label<B[1]){$.label=B[1],B=Te;break}if(B&&$.label<B[2]){$.label=B[2],$.ops.push(Te);break}B[2]&&$.ops.pop(),$.trys.pop();continue}Te=R.call(F,$)}catch(ke){Te=[6,ke],W=0}finally{ie=B=0}if(Te[0]&5)throw Te[1];return{value:Te[0]?Te[1]:void 0,done:!0}}},l=function(){function F(R,$){this.index=R,this.ranges=$}return F.prototype.mov=function(R){var $=this.index+(R?1:-1);if($<0||$>=this.ranges.length)return this;var ie=new F($,this.ranges);return ie.ranges[$].equalsRange(this.ranges[this.index])?ie.mov(R):ie},F}(),d=function(){function F(R){this._ignoreSelection=!1,this._editor=R}return F.get=function(R){return R.getContribution(F.ID)},F.prototype.dispose=function(){Object(c.f)(this._selectionListener)},F.prototype.run=function(R){var $=this;if(!this._editor.hasModel())return;var ie=this._editor.getSelections(),W=this._editor.getModel();if(!U.w.has(W))return;var B=Promise.resolve(void 0);return this._state||(B=x(W,ie.map(function(le){return le.getPosition()}),re.a.None).then(function(le){if(!T.q(le)||le.length!==ie.length)return;if(!$._editor.hasModel()||!T.g($._editor.getSelections(),ie,function(Te,ke){return Te.equalsSelection(ke)}))return;for(var be=function(ke){le[ke]=le[ke].filter(function(He){return He.containsPosition(ie[ke].getStartPosition())&&He.containsPosition(ie[ke].getEndPosition())}),le[ke].unshift(ie[ke])},De=0;De<le.length;De++)be(De);$._state=le.map(function(Te){return new l(0,Te)}),Object(c.f)($._selectionListener),$._selectionListener=$._editor.onDidChangeCursorPosition(function(){$._ignoreSelection||(Object(c.f)($._selectionListener),$._state=void 0)})})),B.then(function(){if(!$._state)return;$._state=$._state.map(function(be){return be.mov(R)});var le=$._state.map(function(be){return z.a.fromPositions(be.ranges[be.index].getStartPosition(),be.ranges[be.index].getEndPosition())});$._ignoreSelection=!0;try{$._editor.setSelections(le)}finally{$._ignoreSelection=!1}})},F.ID="editor.contrib.smartSelectController",F}(),p=function(F){g(R,F);function R($,ie){var W=F.call(this,ie)||this;return W._forward=$,W}return R.prototype.run=function($,ie){return u(this,void 0,void 0,function(){var W;return s(this,function(B){switch(B.label){case 0:return W=d.get(ie),W?[4,W.run(this._forward)]:[3,2];case 1:B.sent(),B.label=2;case 2:return[2]}})})},R}(J.b),E=function(F){g(R,F);function R(){return F.call(this,!0,{id:"editor.action.smartSelect.expand",label:A.a("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:M.a.editorTextFocus,primary:1024|512|17,mac:{primary:2048|256|1024|17,secondary:[256|1024|17]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:A.a({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})||this}return R}(p);v.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");var _=function(F){g(R,F);function R(){return F.call(this,!1,{id:"editor.action.smartSelect.shrink",label:A.a("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:M.a.editorTextFocus,primary:1024|512|15,mac:{primary:2048|256|1024|15,secondary:[256|1024|15]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:A.a({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})||this}return R}(p);Object(J.h)(d.ID,d),Object(J.f)(E),Object(J.f)(_),U.w.register("*",new L);function x(F,R,$){var ie=U.w.all(F);ie.length===1&&ie.unshift(new f.a);for(var W=[],B=[],le=0,be=ie;le<be.length;le++){var De=be[le];W.push(Promise.resolve(De.provideSelectionRanges(F,R,$)).then(function(Te){if(T.q(Te)&&Te.length===R.length)for(var ke=0;ke<R.length;ke++){B[ke]||(B[ke]=[]);for(var He=0,je=Te[ke];He<je.length;He++){var oe=je[He];H.a.isIRange(oe.range)&&H.a.containsPosition(oe.range,R[ke])&&B[ke].push(H.a.lift(oe.range))}}},S.f))}return Promise.all(W).then(function(){return B.map(function(Te){if(Te.length===0)return[];Te.sort(function(Xe,pe){return N.a.isBefore(Xe.getStartPosition(),pe.getStartPosition())?1:N.a.isBefore(pe.getStartPosition(),Xe.getStartPosition())||N.a.isBefore(Xe.getEndPosition(),pe.getEndPosition())?-1:N.a.isBefore(pe.getEndPosition(),Xe.getEndPosition())?1:0});for(var ke=[],He,je=0,oe=Te;je<oe.length;je++){var ee=oe[je];(!He||H.a.containsRange(ee,He)&&!H.a.equalsRange(ee,He))&&(ke.push(ee),He=ee)}for(var ae=[ke[0]],q=1;q<ke.length;q++){var ce=ke[q-1],X=ke[q];if(X.startLineNumber!==ce.startLineNumber||X.endLineNumber!==ce.endLineNumber){var he=new H.a(ce.startLineNumber,F.getLineFirstNonWhitespaceColumn(ce.startLineNumber),ce.endLineNumber,F.getLineLastNonWhitespaceColumn(ce.endLineNumber));he.containsRange(ce)&&!he.equalsRange(ce)&&X.containsRange(he)&&!X.equalsRange(he)&&ae.push(he);var Pe=new H.a(ce.startLineNumber,1,ce.endLineNumber,F.getLineMaxColumn(ce.endLineNumber));Pe.containsRange(ce)&&!Pe.equalsRange(he)&&X.containsRange(Pe)&&!X.equalsRange(Pe)&&ae.push(Pe)}ae.push(X)}return ae})})}Object(J.l)("_executeSelectionRangeProvider",function(F){for(var R=[],$=1;$<arguments.length;$++)R[$-1]=arguments[$];var ie=R[0];return x(F,ie,re.a.None)})},"1I1M":function(_t,P,e){"use strict";e.d(P,"a",function(){return M}),e.d(P,"b",function(){return U});var T=e("N0LK"),re=e("Ll0s"),J=e("5v8Y"),N=e("cGHE"),H=e("aokT"),z=function(){var c=function(L,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var g in S)S.hasOwnProperty(g)&&(v[g]=S[g])},c(L,f)};return function(y,L){c(y,L);function f(){this.constructor=y}y.prototype=L===null?Object.create(L):(f.prototype=L.prototype,new f)}}(),M=function(){function c(){}return c._createWord=function(y,L,f,v,S){return{start:v,end:S,wordType:L,nextCharClass:f}},c._findPreviousWordOnLine=function(y,L,f){var v=L.getLineContent(f.lineNumber);return this._doFindPreviousWordOnLine(v,y,f)},c._doFindPreviousWordOnLine=function(y,L,f){for(var v=0,S=f.column-2;S>=0;S--){var g=y.charCodeAt(S),u=L.get(g);if(u===0){if(v===2)return this._createWord(y,v,u,S+1,this._findEndOfWord(y,L,v,S+1));v=1}else if(u===2){if(v===1)return this._createWord(y,v,u,S+1,this._findEndOfWord(y,L,v,S+1));v=2}else if(u===1&&v!==0)return this._createWord(y,v,u,S+1,this._findEndOfWord(y,L,v,S+1))}return v!==0?this._createWord(y,v,1,0,this._findEndOfWord(y,L,v,0)):null},c._findEndOfWord=function(y,L,f,v){for(var S=y.length,g=v;g<S;g++){var u=y.charCodeAt(g),s=L.get(u);if(s===1)return g;if(f===1&&s===2)return g;if(f===2&&s===0)return g}return S},c._findNextWordOnLine=function(y,L,f){var v=L.getLineContent(f.lineNumber);return this._doFindNextWordOnLine(v,y,f)},c._doFindNextWordOnLine=function(y,L,f){for(var v=0,S=y.length,g=f.column-1;g<S;g++){var u=y.charCodeAt(g),s=L.get(u);if(s===0){if(v===2)return this._createWord(y,v,s,this._findStartOfWord(y,L,v,g-1),g);v=1}else if(s===2){if(v===1)return this._createWord(y,v,s,this._findStartOfWord(y,L,v,g-1),g);v=2}else if(s===1&&v!==0)return this._createWord(y,v,s,this._findStartOfWord(y,L,v,g-1),g)}return v!==0?this._createWord(y,v,1,this._findStartOfWord(y,L,v,S-1),S):null},c._findStartOfWord=function(y,L,f,v){for(var S=v;S>=0;S--){var g=y.charCodeAt(S),u=L.get(g);if(u===1)return S+1;if(f===1&&u===2)return S+1;if(f===2&&u===0)return S+1}return 0},c.moveWordLeft=function(y,L,f,v){var S=f.lineNumber,g=f.column,u=!1;g===1&&(S>1&&(u=!0,S=S-1,g=L.getLineMaxColumn(S)));var s=c._findPreviousWordOnLine(y,L,new N.a(S,g));if(v===0){if(s&&!u){var l=L.getLineLastNonWhitespaceColumn(S);if(l<g)return new N.a(S,s.end+1)}return new N.a(S,s?s.start+1:1)}if(v===1)return s&&s.wordType===2&&s.end-s.start===1&&s.nextCharClass===0&&(s=c._findPreviousWordOnLine(y,L,new N.a(S,s.start+1))),new N.a(S,s?s.start+1:1);if(v===3){for(;s&&s.wordType===2;)s=c._findPreviousWordOnLine(y,L,new N.a(S,s.start+1));return new N.a(S,s?s.start+1:1)}return s&&g<=s.end+1&&(s=c._findPreviousWordOnLine(y,L,new N.a(S,s.start+1))),new N.a(S,s?s.end+1:1)},c._moveWordPartLeft=function(y,L){var f=L.lineNumber,v=y.getLineMaxColumn(f);if(L.column===1)return f>1?new N.a(f-1,y.getLineMaxColumn(f-1)):L;for(var S=y.getLineContent(f),g=L.column-1;g>1;g--){var u=S.charCodeAt(g-2),s=S.charCodeAt(g-1);if(u!==95&&s===95)return new N.a(f,g);if(T.B(u)&&T.C(s))return new N.a(f,g);if(T.C(u)&&T.C(s)&&g+1<v){var l=S.charCodeAt(g);if(T.B(l))return new N.a(f,g)}}return new N.a(f,1)},c.moveWordRight=function(y,L,f,v){var S=f.lineNumber,g=f.column,u=!1;g===L.getLineMaxColumn(S)&&(S<L.getLineCount()&&(u=!0,S=S+1,g=1));var s=c._findNextWordOnLine(y,L,new N.a(S,g));if(v===2)s&&s.wordType===2&&(s.end-s.start===1&&s.nextCharClass===0&&(s=c._findNextWordOnLine(y,L,new N.a(S,s.end+1)))),s?g=s.end+1:g=L.getLineMaxColumn(S);else if(v===3){for(u&&(g=0);s&&(s.wordType===2||s.start+1<=g);)s=c._findNextWordOnLine(y,L,new N.a(S,s.end+1));s?g=s.start+1:g=L.getLineMaxColumn(S)}else s&&!u&&g>=s.start+1&&(s=c._findNextWordOnLine(y,L,new N.a(S,s.end+1))),s?g=s.start+1:g=L.getLineMaxColumn(S);return new N.a(S,g)},c._moveWordPartRight=function(y,L){var f=L.lineNumber,v=y.getLineMaxColumn(f);if(L.column===v)return f<y.getLineCount()?new N.a(f+1,1):L;for(var S=y.getLineContent(f),g=L.column+1;g<v;g++){var u=S.charCodeAt(g-2),s=S.charCodeAt(g-1);if(u===95&&s!==95)return new N.a(f,g);if(T.B(u)&&T.C(s))return new N.a(f,g);if(T.C(u)&&T.C(s)&&g+1<v){var l=S.charCodeAt(g);if(T.B(l))return new N.a(f,g)}}return new N.a(f,v)},c._deleteWordLeftWhitespace=function(y,L){var f=y.getLineContent(L.lineNumber),v=L.column-2,S=T.D(f,v);return S+1<v?new H.a(L.lineNumber,S+2,L.lineNumber,L.column):null},c.deleteWordLeft=function(y,L,f,v,S){if(!f.isEmpty())return f;var g=new N.a(f.positionLineNumber,f.positionColumn),u=g.lineNumber,s=g.column;if(u===1&&s===1)return null;if(v){var l=this._deleteWordLeftWhitespace(L,g);if(l)return l}var d=c._findPreviousWordOnLine(y,L,g);return S===0?d?s=d.start+1:s>1?s=1:(u--,s=L.getLineMaxColumn(u)):(d&&s<=d.end+1&&(d=c._findPreviousWordOnLine(y,L,new N.a(u,d.start+1))),d?s=d.end+1:s>1?s=1:(u--,s=L.getLineMaxColumn(u))),new H.a(u,s,g.lineNumber,g.column)},c._deleteWordPartLeft=function(y,L){if(!L.isEmpty())return L;var f=L.getPosition(),v=c._moveWordPartLeft(y,f);return new H.a(f.lineNumber,f.column,v.lineNumber,v.column)},c._findFirstNonWhitespaceChar=function(y,L){for(var f=y.length,v=L;v<f;v++){var S=y.charAt(v);if(S!==" "&&S!==" ")return v}return f},c._deleteWordRightWhitespace=function(y,L){var f=y.getLineContent(L.lineNumber),v=L.column-1,S=this._findFirstNonWhitespaceChar(f,v);return v+1<S?new H.a(L.lineNumber,L.column,L.lineNumber,S+1):null},c.deleteWordRight=function(y,L,f,v,S){if(!f.isEmpty())return f;var g=new N.a(f.positionLineNumber,f.positionColumn),u=g.lineNumber,s=g.column,l=L.getLineCount(),d=L.getLineMaxColumn(u);if(u===l&&s===d)return null;if(v){var p=this._deleteWordRightWhitespace(L,g);if(p)return p}var E=c._findNextWordOnLine(y,L,g);return S===2?E?s=E.end+1:s<d||u===l?s=d:(u++,E=c._findNextWordOnLine(y,L,new N.a(u,1)),E?s=E.start+1:s=L.getLineMaxColumn(u)):(E&&s>=E.start+1&&(E=c._findNextWordOnLine(y,L,new N.a(u,E.end+1))),E?s=E.start+1:s<d||u===l?s=d:(u++,E=c._findNextWordOnLine(y,L,new N.a(u,1)),E?s=E.start+1:s=L.getLineMaxColumn(u))),new H.a(u,s,g.lineNumber,g.column)},c._deleteWordPartRight=function(y,L){if(!L.isEmpty())return L;var f=L.getPosition(),v=c._moveWordPartRight(y,f);return new H.a(f.lineNumber,f.column,v.lineNumber,v.column)},c.word=function(y,L,f,v,S){var g=Object(J.a)(y.wordSeparators),u=c._findPreviousWordOnLine(g,L,S),s=c._findNextWordOnLine(g,L,S);if(!v){var l,d;return u&&u.wordType===1&&u.start<=S.column-1&&S.column-1<=u.end?(l=u.start+1,d=u.end+1):s&&s.wordType===1&&s.start<=S.column-1&&S.column-1<=s.end?(l=s.start+1,d=s.end+1):(u?l=u.end+1:l=1,s?d=s.start+1:d=L.getLineMaxColumn(S.lineNumber)),new re.f(new H.a(S.lineNumber,l,S.lineNumber,d),0,new N.a(S.lineNumber,d),0)}var p,E;u&&u.wordType===1&&u.start<S.column-1&&S.column-1<u.end?(p=u.start+1,E=u.end+1):s&&s.wordType===1&&s.start<S.column-1&&S.column-1<s.end?(p=s.start+1,E=s.end+1):(p=S.column,E=S.column);var _=S.lineNumber,x;if(f.selectionStart.containsPosition(S))x=f.selectionStart.endColumn;else if(S.isBeforeOrEqual(f.selectionStart.getStartPosition())){x=p;var F=new N.a(_,x);f.selectionStart.containsPosition(F)&&(x=f.selectionStart.endColumn)}else{x=E;var F=new N.a(_,x);f.selectionStart.containsPosition(F)&&(x=f.selectionStart.startColumn)}return f.move(!0,_,x,0)},c}(),U=function(c){z(y,c);function y(){return c!==null&&c.apply(this,arguments)||this}return y.deleteWordPartLeft=function(L,f,v,S){var g=A([M.deleteWordLeft(L,f,v,S,0),M.deleteWordLeft(L,f,v,S,2),M._deleteWordPartLeft(f,v)]);return g.sort(H.a.compareRangesUsingEnds),g[2]},y.deleteWordPartRight=function(L,f,v,S){var g=A([M.deleteWordRight(L,f,v,S,0),M.deleteWordRight(L,f,v,S,2),M._deleteWordPartRight(f,v)]);return g.sort(H.a.compareRangesUsingStarts),g[0]},y.moveWordPartLeft=function(L,f,v){var S=A([M.moveWordLeft(L,f,v,0),M.moveWordLeft(L,f,v,2),M._moveWordPartLeft(f,v)]);return S.sort(N.a.compare),S[2]},y.moveWordPartRight=function(L,f,v){var S=A([M.moveWordRight(L,f,v,0),M.moveWordRight(L,f,v,2),M._moveWordPartRight(f,v)]);return S.sort(N.a.compare),S[0]},y}(M);function A(c){return c.filter(function(y){return Boolean(y)})}},"1YUG":function(_t,P,e){"use strict";e.r(P),e.d(P,"CoreEditorCommand",function(){return u}),e.d(P,"EditorScroll_",function(){return s}),e.d(P,"RevealLine_",function(){return l}),e.d(P,"CoreNavigationCommands",function(){return d}),e.d(P,"CoreEditingCommands",function(){return p});var T=e("3/fG"),re=e("746U"),J=e("sswD"),N=e("Vxe3"),H=e("Ll0s"),z=e("cGHE"),M=e("aokT"),U=function(){function R(){}return R.columnSelect=function($,ie,W,B,le,be){for(var De=Math.abs(le-W)+1,Te=W>le,ke=B>be,He=B<be,je=[],oe=0;oe<De;oe++){var ee=W+(Te?-oe:oe),ae=H.a.columnFromVisibleColumn2($,ie,ee,B),q=H.a.columnFromVisibleColumn2($,ie,ee,be),ce=H.a.visibleColumnFromColumn2($,ie,new z.a(ee,ae)),X=H.a.visibleColumnFromColumn2($,ie,new z.a(ee,q));if(He){if(ce>be)continue;if(X<B)continue}if(ke){if(X>B)continue;if(ce<be)continue}je.push(new H.f(new M.a(ee,ae,ee,ae),0,new z.a(ee,q),0))}if(je.length===0)for(var oe=0;oe<De;oe++){var ee=W+(Te?-oe:oe),he=ie.getLineMaxColumn(ee);je.push(new H.f(new M.a(ee,he,ee,he),0,new z.a(ee,he),0))}return{viewStates:je,reversed:Te,fromLineNumber:W,fromVisualColumn:B,toLineNumber:le,toVisualColumn:be}},R.columnSelectLeft=function($,ie,W){var B=W.toViewVisualColumn;return B>1&&B--,R.columnSelect($,ie,W.fromViewLineNumber,W.fromViewVisualColumn,W.toViewLineNumber,B)},R.columnSelectRight=function($,ie,W){for(var B=0,le=Math.min(W.fromViewLineNumber,W.toViewLineNumber),be=Math.max(W.fromViewLineNumber,W.toViewLineNumber),De=le;De<=be;De++){var Te=ie.getLineMaxColumn(De),ke=H.a.visibleColumnFromColumn2($,ie,new z.a(De,Te));B=Math.max(B,ke)}var He=W.toViewVisualColumn;return He<B&&He++,this.columnSelect($,ie,W.fromViewLineNumber,W.fromViewVisualColumn,W.toViewLineNumber,He)},R.columnSelectUp=function($,ie,W,B){var le=B?$.pageSize:1,be=Math.max(1,W.toViewLineNumber-le);return this.columnSelect($,ie,W.fromViewLineNumber,W.fromViewVisualColumn,be,W.toViewVisualColumn)},R.columnSelectDown=function($,ie,W,B){var le=B?$.pageSize:1,be=Math.min(ie.getLineCount(),W.toViewLineNumber+le);return this.columnSelect($,ie,W.fromViewLineNumber,W.fromViewVisualColumn,be,W.toViewVisualColumn)},R}(),A=e("snIX"),c=e("oAeH"),y=e("GR/f"),L=e("iuje"),f=e("wQH0"),v=e("T8No"),S=function(){var R=function(ie,W){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,le){B.__proto__=le}||function(B,le){for(var be in le)le.hasOwnProperty(be)&&(B[be]=le[be])},R(ie,W)};return function($,ie){R($,ie);function W(){this.constructor=$}$.prototype=ie===null?Object.create(ie):(W.prototype=ie.prototype,new W)}}(),g=0,u=function(R){S($,R);function $(){return R!==null&&R.apply(this,arguments)||this}return $.prototype.runEditorCommand=function(ie,W,B){var le=W._getCursors();if(!le)return;this.runCoreEditorCommand(le,B||{})},$}(J.c),s;(function(R){var $=function(B){if(!re.i(B))return!1;var le=B;return re.j(le.to)?!re.k(le.by)&&!re.j(le.by)||!re.k(le.value)&&!re.h(le.value)?!1:!(!re.k(le.revealCursor)&&!re.e(le.revealCursor)):!1};R.description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n * 'to': A mandatory direction value.\n ```\n 'up', 'down'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'page', 'halfPage'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n ",constraint:$,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},R.RawDirection={Up:"up",Down:"down"},R.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"};function ie(W){var B;switch(W.to){case R.RawDirection.Up:B=1;break;case R.RawDirection.Down:B=2;break;default:return null}var le;switch(W.by){case R.RawUnit.Line:le=1;break;case R.RawUnit.WrappedLine:le=2;break;case R.RawUnit.Page:le=3;break;case R.RawUnit.HalfPage:le=4;break;default:le=2}var be=Math.floor(W.value||1),De=!!W.revealCursor;return{direction:B,unit:le,value:be,revealCursor:De,select:!!W.select}}R.parse=ie})(s||(s={}));var l;(function(R){var $=function(W){if(!re.i(W))return!1;var B=W;return re.h(B.lineNumber)?!(!re.k(B.at)&&!re.j(B.at)):!1};R.description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n * 'lineNumber': A mandatory line number value.\n * 'at': Logical position at which line has to be revealed .\n ```\n 'top', 'center', 'bottom'\n ```\n ",constraint:$,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},R.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(l||(l={}));var d;(function(R){var $=function(q){S(ce,q);function ce(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[c.b.moveTo(X.context,X.getPrimaryCursor(),this._inSelectionMode,he.position,he.viewPosition)]),X.reveal(he.source,!0,0,0)},ce}(u);R.MoveTo=Object(J.g)(new $({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),R.MoveToSelect=Object(J.g)(new $({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var ie=function(q){S(ce,q);function ce(){return q!==null&&q.apply(this,arguments)||this}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement();var Pe=this._getColumnSelectResult(X.context,X.getPrimaryCursor(),X.getColumnSelectData(),he);X.setStates(he.source,3,Pe.viewStates.map(function(Xe){return H.d.fromViewState(Xe)})),X.setColumnSelectData({isReal:!0,fromViewLineNumber:Pe.fromLineNumber,fromViewVisualColumn:Pe.fromVisualColumn,toViewLineNumber:Pe.toLineNumber,toViewVisualColumn:Pe.toVisualColumn}),X.reveal(he.source,!0,Pe.reversed?1:2,0)},ce}(u);R.ColumnSelect=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"columnSelect",precondition:void 0})||this}return ce.prototype._getColumnSelectResult=function(X,he,Pe,Xe){var pe=X.model.validatePosition(Xe.position),me=X.validateViewPosition(new z.a(Xe.viewPosition.lineNumber,Xe.viewPosition.column),pe),Se=Xe.doColumnSelect?Pe.fromViewLineNumber:me.lineNumber,Re=Xe.doColumnSelect?Pe.fromViewVisualColumn:Xe.mouseColumn-1;return U.columnSelect(X.config,X.viewModel,Se,Re,me.lineNumber,Xe.mouseColumn-1)},ce}(ie))),R.CursorColumnSelectLeft=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|15,linux:{primary:0}}})||this}return ce.prototype._getColumnSelectResult=function(X,he,Pe,Xe){return U.columnSelectLeft(X.config,X.viewModel,Pe)},ce}(ie))),R.CursorColumnSelectRight=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|17,linux:{primary:0}}})||this}return ce.prototype._getColumnSelectResult=function(X,he,Pe,Xe){return U.columnSelectRight(X.config,X.viewModel,Pe)},ce}(ie)));var W=function(q){S(ce,q);function ce(X){var he=q.call(this,X)||this;return he._isPaged=X.isPaged,he}return ce.prototype._getColumnSelectResult=function(X,he,Pe,Xe){return U.columnSelectUp(X.config,X.viewModel,Pe,this._isPaged)},ce}(ie);R.CursorColumnSelectUp=Object(J.g)(new W({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|16,linux:{primary:0}}})),R.CursorColumnSelectPageUp=Object(J.g)(new W({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|11,linux:{primary:0}}}));var B=function(q){S(ce,q);function ce(X){var he=q.call(this,X)||this;return he._isPaged=X.isPaged,he}return ce.prototype._getColumnSelectResult=function(X,he,Pe,Xe){return U.columnSelectDown(X.config,X.viewModel,Pe,this._isPaged)},ce}(ie);R.CursorColumnSelectDown=Object(J.g)(new B({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|18,linux:{primary:0}}})),R.CursorColumnSelectPageDown=Object(J.g)(new B({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|12,linux:{primary:0}}}));var le=function(q){S(ce,q);function ce(){return q.call(this,{id:"cursorMove",precondition:void 0,description:c.a.description})||this}return ce.prototype.runCoreEditorCommand=function(X,he){var Pe=c.a.parse(he);if(!Pe)return;this._runCursorMove(X,he.source,Pe)},ce.prototype._runCursorMove=function(X,he,Pe){X.context.model.pushStackElement(),X.setStates(he,3,c.b.move(X.context,X.getAll(),Pe)),X.reveal(he,!0,0,0)},ce}(u);R.CursorMoveImpl=le,R.CursorMove=Object(J.g)(new le);var be=function(q){S(ce,q);function ce(X){var he=q.call(this,X)||this;return he._staticArgs=X.args,he}return ce.prototype.runCoreEditorCommand=function(X,he){var Pe=this._staticArgs;this._staticArgs.value===-1&&(Pe={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:X.context.config.pageSize}),R.CursorMove._runCursorMove(X,he.source,Pe)},ce}(u);R.CursorLeft=Object(J.g)(new be({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:15,mac:{primary:15,secondary:[256|32]}}})),R.CursorLeftSelect=Object(J.g)(new be({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|15}})),R.CursorRight=Object(J.g)(new be({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:17,mac:{primary:17,secondary:[256|36]}}})),R.CursorRightSelect=Object(J.g)(new be({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|17}})),R.CursorUp=Object(J.g)(new be({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:16,mac:{primary:16,secondary:[256|46]}}})),R.CursorUpSelect=Object(J.g)(new be({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|16,secondary:[2048|1024|16],mac:{primary:1024|16},linux:{primary:1024|16}}})),R.CursorPageUp=Object(J.g)(new be({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:11}})),R.CursorPageUpSelect=Object(J.g)(new be({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|11}})),R.CursorDown=Object(J.g)(new be({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:18,mac:{primary:18,secondary:[256|44]}}})),R.CursorDownSelect=Object(J.g)(new be({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|18,secondary:[2048|1024|18],mac:{primary:1024|18},linux:{primary:1024|18}}})),R.CursorPageDown=Object(J.g)(new be({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:12}})),R.CursorPageDownSelect=Object(J.g)(new be({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|12}})),R.CreateCursor=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"createCursor",precondition:void 0})||this}return ce.prototype.runCoreEditorCommand=function(X,he){var Pe=X.context,Xe;he.wholeLine?Xe=c.b.line(Pe,X.getPrimaryCursor(),!1,he.position,he.viewPosition):Xe=c.b.moveTo(Pe,X.getPrimaryCursor(),!1,he.position,he.viewPosition);var pe=X.getAll();if(pe.length>1)for(var me=Xe.modelState?Xe.modelState.position:null,Se=Xe.viewState?Xe.viewState.position:null,Re=0,Ee=pe.length;Re<Ee;Re++){var ve=pe[Re];if(me&&!ve.modelState.selection.containsPosition(me))continue;if(Se&&!ve.viewState.selection.containsPosition(Se))continue;pe.splice(Re,1),X.context.model.pushStackElement(),X.setStates(he.source,3,pe);return}pe.push(Xe),X.context.model.pushStackElement(),X.setStates(he.source,3,pe)},ce}(u))),R.LastCursorMoveToSelect=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}return ce.prototype.runCoreEditorCommand=function(X,he){var Pe=X.context,Xe=X.getLastAddedCursorIndex(),pe=X.getAll(),me=pe.slice(0);me[Xe]=c.b.moveTo(Pe,pe[Xe],!0,he.position,he.viewPosition),X.context.model.pushStackElement(),X.setStates(he.source,3,me)},ce}(u)));var De=function(q){S(ce,q);function ce(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,c.b.moveToBeginningOfLine(X.context,X.getAll(),this._inSelectionMode)),X.reveal(he.source,!0,0,0)},ce}(u);R.CursorHome=Object(J.g)(new De({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2048|15]}}})),R.CursorHomeSelect=Object(J.g)(new De({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|14,mac:{primary:1024|14,secondary:[2048|1024|15]}}})),R.CursorLineStart=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:0,mac:{primary:256|31}}})||this}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,this._exec(X.context,X.getAll())),X.reveal(he.source,!0,0,0)},ce.prototype._exec=function(X,he){for(var Pe=[],Xe=0,pe=he.length;Xe<pe;Xe++){var me=he[Xe],Se=me.modelState.position.lineNumber;Pe[Xe]=H.d.fromModelState(me.modelState.move(!1,Se,1,0))}return Pe},ce}(u)));var Te=function(q){S(ce,q);function ce(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,c.b.moveToEndOfLine(X.context,X.getAll(),this._inSelectionMode)),X.reveal(he.source,!0,0,0)},ce}(u);R.CursorEnd=Object(J.g)(new Te({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2048|17]}}})),R.CursorEndSelect=Object(J.g)(new Te({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|13,mac:{primary:1024|13,secondary:[2048|1024|17]}}})),R.CursorLineEnd=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:0,mac:{primary:256|35}}})||this}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,this._exec(X.context,X.getAll())),X.reveal(he.source,!0,0,0)},ce.prototype._exec=function(X,he){for(var Pe=[],Xe=0,pe=he.length;Xe<pe;Xe++){var me=he[Xe],Se=me.modelState.position.lineNumber,Re=X.model.getLineMaxColumn(Se);Pe[Xe]=H.d.fromModelState(me.modelState.move(!1,Se,Re,0))}return Pe},ce}(u)));var ke=function(q){S(ce,q);function ce(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,c.b.moveToBeginningOfBuffer(X.context,X.getAll(),this._inSelectionMode)),X.reveal(he.source,!0,0,0)},ce}(u);R.CursorTop=Object(J.g)(new ke({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|14,mac:{primary:2048|16}}})),R.CursorTopSelect=Object(J.g)(new ke({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|14,mac:{primary:2048|1024|16}}}));var He=function(q){S(ce,q);function ce(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,c.b.moveToEndOfBuffer(X.context,X.getAll(),this._inSelectionMode)),X.reveal(he.source,!0,0,0)},ce}(u);R.CursorBottom=Object(J.g)(new He({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|13,mac:{primary:2048|18}}})),R.CursorBottomSelect=Object(J.g)(new He({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|13,mac:{primary:2048|1024|18}}}));var je=function(q){S(ce,q);function ce(){return q.call(this,{id:"editorScroll",precondition:void 0,description:s.description})||this}return ce.prototype.runCoreEditorCommand=function(X,he){var Pe=s.parse(he);if(!Pe)return;this._runEditorScroll(X,he.source,Pe)},ce.prototype._runEditorScroll=function(X,he,Pe){var Xe=this._computeDesiredScrollTop(X.context,Pe);if(Pe.revealCursor){var pe=X.context.getCompletelyVisibleViewRangeAtScrollTop(Xe);X.setStates(he,3,[c.b.findPositionInViewportIfOutside(X.context,X.getPrimaryCursor(),pe,Pe.select)])}X.scrollTo(Xe)},ce.prototype._computeDesiredScrollTop=function(X,he){if(he.unit===1){var Pe=X.getCompletelyVisibleModelRange(),Xe=void 0;he.direction===1?Xe=Math.max(1,Pe.startLineNumber-he.value):Xe=Math.min(X.model.getLineCount(),Pe.startLineNumber+he.value);var pe=X.convertModelPositionToViewPosition(new z.a(Xe,1));return X.getVerticalOffsetForViewLine(pe.lineNumber)}var me;he.unit===3?me=X.config.pageSize*he.value:he.unit===4?me=Math.round(X.config.pageSize/2)*he.value:me=he.value;var Se=(he.direction===1?-1:1)*me;return X.getCurrentScrollTop()+Se*X.config.lineHeight},ce}(u);R.EditorScrollImpl=je,R.EditorScroll=Object(J.g)(new je),R.ScrollLineUp=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|16,mac:{primary:256|11}}})||this}return ce.prototype.runCoreEditorCommand=function(X,he){R.EditorScroll._runEditorScroll(X,he.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},ce}(u))),R.ScrollPageUp=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|11,win:{primary:512|11},linux:{primary:512|11}}})||this}return ce.prototype.runCoreEditorCommand=function(X,he){R.EditorScroll._runEditorScroll(X,he.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},ce}(u))),R.ScrollLineDown=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|18,mac:{primary:256|12}}})||this}return ce.prototype.runCoreEditorCommand=function(X,he){R.EditorScroll._runEditorScroll(X,he.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},ce}(u))),R.ScrollPageDown=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|12,win:{primary:512|12},linux:{primary:512|12}}})||this}return ce.prototype.runCoreEditorCommand=function(X,he){R.EditorScroll._runEditorScroll(X,he.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},ce}(u)));var oe=function(q){S(ce,q);function ce(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[c.b.word(X.context,X.getPrimaryCursor(),this._inSelectionMode,he.position)]),X.reveal(he.source,!0,0,0)},ce}(u);R.WordSelect=Object(J.g)(new oe({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),R.WordSelectDrag=Object(J.g)(new oe({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),R.LastCursorWordSelect=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}return ce.prototype.runCoreEditorCommand=function(X,he){var Pe=X.context,Xe=X.getLastAddedCursorIndex(),pe=X.getAll(),me=pe.slice(0),Se=pe[Xe];me[Xe]=c.b.word(Pe,Se,Se.modelState.hasSelection(),he.position),Pe.model.pushStackElement(),X.setStates(he.source,3,me)},ce}(u)));var ee=function(q){S(ce,q);function ce(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[c.b.line(X.context,X.getPrimaryCursor(),this._inSelectionMode,he.position,he.viewPosition)]),X.reveal(he.source,!1,0,0)},ce}(u);R.LineSelect=Object(J.g)(new ee({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),R.LineSelectDrag=Object(J.g)(new ee({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var ae=function(q){S(ce,q);function ce(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ce.prototype.runCoreEditorCommand=function(X,he){var Pe=X.getLastAddedCursorIndex(),Xe=X.getAll(),pe=Xe.slice(0);pe[Pe]=c.b.line(X.context,Xe[Pe],this._inSelectionMode,he.position,he.viewPosition),X.context.model.pushStackElement(),X.setStates(he.source,3,pe)},ce}(u);R.LastCursorLineSelect=Object(J.g)(new ae({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),R.LastCursorLineSelectDrag=Object(J.g)(new ae({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),R.ExpandLineSelection=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|42}})||this}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,c.b.expandLineSelection(X.context,X.getAll())),X.reveal(he.source,!0,0,0)},ce}(u))),R.CancelSelection=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"cancelSelection",precondition:f.a.hasNonEmptySelection,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[c.b.cancelSelection(X.context,X.getPrimaryCursor())]),X.reveal(he.source,!0,0,0)},ce}(u))),R.RemoveSecondaryCursors=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"removeSecondaryCursors",precondition:f.a.hasMultipleSelections,kbOpts:{weight:g+1,kbExpr:f.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[X.getPrimaryCursor()]),X.reveal(he.source,!0,0,0)},ce}(u))),R.RevealLine=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"revealLine",precondition:void 0,description:l.description})||this}return ce.prototype.runCoreEditorCommand=function(X,he){var Pe=he,Xe=(Pe.lineNumber||0)+1;Xe<1&&(Xe=1);var pe=X.context.model.getLineCount();Xe>pe&&(Xe=pe);var me=new M.a(Xe,1,Xe,X.context.model.getLineMaxColumn(Xe)),Se=0;if(Pe.at)switch(Pe.at){case l.RawAtArgument.Top:Se=3;break;case l.RawAtArgument.Center:Se=1;break;case l.RawAtArgument.Bottom:Se=4;break;default:break}var Re=X.context.convertModelRangeToViewRange(me);X.revealRange(he.source,!1,Re,Se,0)},ce}(u))),R.SelectAll=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"selectAll",precondition:void 0})||this}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[c.b.selectAll(X.context,X.getPrimaryCursor())])},ce}(u))),R.SetSelection=Object(J.g)(new(function(q){S(ce,q);function ce(){return q.call(this,{id:"setSelection",precondition:void 0})||this}return ce.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[H.d.fromModelSelection(he.selection)])},ce}(u)))})(d||(d={}));var p;(function(R){var $=function(ie){S(W,ie);function W(){return ie!==null&&ie.apply(this,arguments)||this}return W.prototype.runEditorCommand=function(B,le,be){var De=le._getCursors();if(!De)return;this.runCoreEditingCommand(le,De,be||{})},W}(J.c);R.CoreEditingCommand=$,R.LineBreakInsert=Object(J.g)(new(function(ie){S(W,ie);function W(){return ie.call(this,{id:"lineBreakInsert",precondition:f.a.writable,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:0,mac:{primary:256|45}}})||this}return W.prototype.runCoreEditingCommand=function(B,le,be){B.pushUndoStop(),B.executeCommands(this.id,y.a.lineBreakInsert(le.context.config,le.context.model,le.getAll().map(function(De){return De.modelState.selection})))},W}($))),R.Outdent=Object(J.g)(new(function(ie){S(W,ie);function W(){return ie.call(this,{id:"outdent",precondition:f.a.writable,kbOpts:{weight:g,kbExpr:v.a.and(f.a.editorTextFocus,f.a.tabDoesNotMoveFocus),primary:1024|2}})||this}return W.prototype.runCoreEditingCommand=function(B,le,be){B.pushUndoStop(),B.executeCommands(this.id,y.a.outdent(le.context.config,le.context.model,le.getAll().map(function(De){return De.modelState.selection}))),B.pushUndoStop()},W}($))),R.Tab=Object(J.g)(new(function(ie){S(W,ie);function W(){return ie.call(this,{id:"tab",precondition:f.a.writable,kbOpts:{weight:g,kbExpr:v.a.and(f.a.editorTextFocus,f.a.tabDoesNotMoveFocus),primary:2}})||this}return W.prototype.runCoreEditingCommand=function(B,le,be){B.pushUndoStop(),B.executeCommands(this.id,y.a.tab(le.context.config,le.context.model,le.getAll().map(function(De){return De.modelState.selection}))),B.pushUndoStop()},W}($))),R.DeleteLeft=Object(J.g)(new(function(ie){S(W,ie);function W(){return ie.call(this,{id:"deleteLeft",precondition:f.a.writable,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1,secondary:[1024|1],mac:{primary:1,secondary:[1024|1,256|38,256|1]}}})||this}return W.prototype.runCoreEditingCommand=function(B,le,be){var De=A.a.deleteLeft(le.getPrevEditOperationType(),le.context.config,le.context.model,le.getAll().map(function(He){return He.modelState.selection})),Te=De[0],ke=De[1];Te&&B.pushUndoStop(),B.executeCommands(this.id,ke),le.setPrevEditOperationType(2)},W}($))),R.DeleteRight=Object(J.g)(new(function(ie){S(W,ie);function W(){return ie.call(this,{id:"deleteRight",precondition:f.a.writable,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:20,mac:{primary:20,secondary:[256|34,256|20]}}})||this}return W.prototype.runCoreEditingCommand=function(B,le,be){var De=A.a.deleteRight(le.getPrevEditOperationType(),le.context.config,le.context.model,le.getAll().map(function(He){return He.modelState.selection})),Te=De[0],ke=De[1];Te&&B.pushUndoStop(),B.executeCommands(this.id,ke),le.setPrevEditOperationType(3)},W}($)))})(p||(p={}));function E(R){R.register()}var _=function(R){S($,R);function $(ie){var W=R.call(this,ie)||this;return W._editorHandler=ie.editorHandler,W._inputHandler=ie.inputHandler,W}return $.prototype.runCommand=function(ie,W){var B=ie.get(N.a).getFocusedCodeEditor();if(B&&B.hasTextFocus())return this._runEditorHandler(ie,B,W);var le=document.activeElement;if(le&&["input","textarea"].indexOf(le.tagName.toLowerCase())>=0){document.execCommand(this._inputHandler);return}var be=ie.get(N.a).getActiveCodeEditor();if(be)return be.focus(),this._runEditorHandler(ie,be,W)},$.prototype._runEditorHandler=function(ie,W,B){var le=this._editorHandler;typeof le=="string"?W.trigger("keyboard",le,B):(B=B||{},B.source="keyboard",le.runEditorCommand(ie,W,B))},$}(J.a),x=function(R){S($,R);function $(ie,W,B){var le=R.call(this,{id:ie,precondition:void 0,description:B})||this;return le._handlerId=W,le}return $.prototype.runCommand=function(ie,W){var B=ie.get(N.a).getFocusedCodeEditor();if(!B)return;B.trigger("keyboard",this._handlerId,W)},$}(J.a);E(new _({editorHandler:d.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:f.a.textInputFocus,kbOpts:{weight:g,kbExpr:null,primary:2048|31},menuOpts:{menuId:25,group:"1_basic",title:T.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),E(new _({editorHandler:L.b.Undo,inputHandler:"undo",id:L.b.Undo,precondition:f.a.writable,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|56},menuOpts:{menuId:17,group:"1_do",title:T.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),E(new x("default:"+L.b.Undo,L.b.Undo)),E(new _({editorHandler:L.b.Redo,inputHandler:"redo",id:L.b.Redo,precondition:f.a.writable,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|55,secondary:[2048|1024|56],mac:{primary:2048|1024|56}},menuOpts:{menuId:17,group:"1_do",title:T.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),E(new x("default:"+L.b.Redo,L.b.Redo));function F(R,$){E(new x("default:"+R,R)),E(new x(R,R,$))}F(L.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),F(L.b.ReplacePreviousChar),F(L.b.CompositionStart),F(L.b.CompositionEnd),F(L.b.Paste),F(L.b.Cut)},"1lwE":function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return e.e(291).then(e.bind(null,"cOMg"))}})},"23p7":function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return e.e(244).then(e.bind(null,"aA7r"))}})},"24hK":function(_t,P,e){"use strict";e.d(P,"a",function(){return J});var T=e("JYp7"),re=function(){function N(H){this.element=H,this.next=N.Undefined,this.prev=N.Undefined}return N.Undefined=new N(void 0),N}(),J=function(){function N(){this._first=re.Undefined,this._last=re.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===re.Undefined},N.prototype.clear=function(){this._first=re.Undefined,this._last=re.Undefined,this._size=0},N.prototype.unshift=function(H){return this._insert(H,!1)},N.prototype.push=function(H){return this._insert(H,!0)},N.prototype._insert=function(H,z){var M=this,U=new re(H);if(this._first===re.Undefined)this._first=U,this._last=U;else if(z){var A=this._last;this._last=U,U.prev=A,A.next=U}else{var c=this._first;this._first=U,U.next=c,c.prev=U}this._size+=1;var y=!1;return function(){y||(y=!0,M._remove(U))}},N.prototype.shift=function(){if(this._first===re.Undefined)return;var H=this._first.element;return this._remove(this._first),H},N.prototype.pop=function(){if(this._last===re.Undefined)return;var H=this._last.element;return this._remove(this._last),H},N.prototype._remove=function(H){if(H.prev!==re.Undefined&&H.next!==re.Undefined){var z=H.prev;z.next=H.next,H.next.prev=z}else H.prev===re.Undefined&&H.next===re.Undefined?(this._first=re.Undefined,this._last=re.Undefined):H.next===re.Undefined?(this._last=this._last.prev,this._last.next=re.Undefined):H.prev===re.Undefined&&(this._first=this._first.next,this._first.prev=re.Undefined);this._size-=1},N.prototype.iterator=function(){var H,z=this._first;return{next:function(){return z===re.Undefined?T.c:(H?H.value=z.element:H={done:!1,value:z.element},z=z.next,H)}}},N.prototype.toArray=function(){for(var H=[],z=this._first;z!==re.Undefined;z=z.next)H.push(z.element);return H},N}()},"2ESN":function(_t,P,e){"use strict";e.r(P);var T=e("YHy6"),re=e("3/fG"),J=e("X+cX"),N=e("JQT/"),H=e("/cxE"),z=e("eLzo"),M=e("pmY6"),U=e("MNsG"),A=e("sswD"),c=e("tX9W"),y=e("twdY"),L=e("aBYw"),f=e("bY76"),v=e("aokT"),S=e("G2kB"),g=e("nnTU"),u=e("6OMU"),s=function(){var ee=function(q,ce){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,he){X.__proto__=he}||function(X,he){for(var Pe in he)he.hasOwnProperty(Pe)&&(X[Pe]=he[Pe])},ee(q,ce)};return function(ae,q){ee(ae,q);function ce(){this.constructor=ae}ae.prototype=q===null?Object.create(q):(ce.prototype=q.prototype,new ce)}}(),l=function(ee,ae,q,ce){function X(he){return he instanceof q?he:new q(function(Pe){Pe(he)})}return new(q||(q=Promise))(function(he,Pe){function Xe(Se){try{me(ce.next(Se))}catch(Re){Pe(Re)}}function pe(Se){try{me(ce.throw(Se))}catch(Re){Pe(Re)}}function me(Se){Se.done?he(Se.value):X(Se.value).then(Xe,pe)}me((ce=ce.apply(ee,ae||[])).next())})},d=function(ee,ae){var q={label:0,sent:function(){if(he[0]&1)throw he[1];return he[1]},trys:[],ops:[]},ce,X,he,Pe;return Pe={next:Xe(0),throw:Xe(1),return:Xe(2)},typeof Symbol=="function"&&(Pe[Symbol.iterator]=function(){return this}),Pe;function Xe(me){return function(Se){return pe([me,Se])}}function pe(me){if(ce)throw new TypeError("Generator is already executing.");for(;q;)try{if(ce=1,X&&(he=me[0]&2?X.return:me[0]?X.throw||((he=X.return)&&he.call(X),0):X.next)&&!(he=he.call(X,me[1])).done)return he;(X=0,he)&&(me=[me[0]&2,he.value]);switch(me[0]){case 0:case 1:he=me;break;case 4:return q.label++,{value:me[1],done:!1};case 5:q.label++,X=me[1],me=[0];continue;case 7:me=q.ops.pop(),q.trys.pop();continue;default:if(!(he=q.trys,he=he.length>0&&he[he.length-1])&&(me[0]===6||me[0]===2)){q=0;continue}if(me[0]===3&&(!he||me[1]>he[0]&&me[1]<he[3])){q.label=me[1];break}if(me[0]===6&&q.label<he[1]){q.label=he[1],he=me;break}if(he&&q.label<he[2]){q.label=he[2],q.ops.push(me);break}he[2]&&q.ops.pop(),q.trys.pop();continue}me=ae.call(ee,q)}catch(Se){me=[6,Se],X=0}finally{ce=he=0}if(me[0]&5)throw me[1];return{value:me[0]?me[1]:void 0,done:!0}}},p=function(){function ee(ae,q){this._link=ae,this._provider=q}return ee.prototype.toJSON=function(){return{range:this.range,url:this.url,tooltip:this.tooltip}},Object.defineProperty(ee.prototype,"range",{get:function(){return this._link.range},enumerable:!0,configurable:!0}),Object.defineProperty(ee.prototype,"url",{get:function(){return this._link.url},enumerable:!0,configurable:!0}),Object.defineProperty(ee.prototype,"tooltip",{get:function(){return this._link.tooltip},enumerable:!0,configurable:!0}),ee.prototype.resolve=function(ae){return l(this,void 0,void 0,function(){var q=this;return d(this,function(ce){return this._link.url?[2,this._link.url]:typeof this._provider.resolveLink=="function"?[2,Promise.resolve(this._provider.resolveLink(this._link,ae)).then(function(X){return q._link=X||q._link,q._link.url?q.resolve(ae):Promise.reject(new Error("missing"))})]:[2,Promise.reject(new Error("missing"))]})})},ee}(),E=function(ee){s(ae,ee);function ae(q){for(var ce=ee.call(this)||this,X=[],he=function(ve,Q){var b=ve.links.map(function(k){return new p(k,Q)});X=ae._union(X,b),Object(M.g)(Q)&&Pe._register(Q)},Pe=this,Xe=0,pe=q;Xe<pe.length;Xe++){var me=pe[Xe],Se=me[0],Re=me[1];he(Se,Re)}return ce.links=X,ce}return ae._union=function(q,ce){var X=[],he,Pe,Xe,pe;for(he=0,Xe=0,Pe=q.length,pe=ce.length;he<Pe&&Xe<pe;){var me=q[he],Se=ce[Xe];if(v.a.areIntersectingOrTouching(me.range,Se.range)){he++;continue}var Re=v.a.compareRangesUsingStarts(me.range,Se.range);Re<0?(X.push(me),he++):(X.push(Se),Xe++)}for(;he<Pe;he++)X.push(q[he]);for(;Xe<pe;Xe++)X.push(ce[Xe]);return X},ae}(M.a);function _(ee,ae){var q=[],ce=y.s.ordered(ee).reverse().map(function(X,he){return Promise.resolve(X.provideLinks(ee,ae)).then(function(Pe){Pe&&(q[he]=[Pe,X])},H.f)});return Promise.all(ce).then(function(){var X=new E(Object(u.d)(q));return ae.isCancellationRequested?(X.dispose(),new E([])):X})}g.a.registerCommand("_executeLinkProvider",function(ee){for(var ae=[],q=1;q<arguments.length;q++)ae[q-1]=arguments[q];return l(void 0,void 0,void 0,function(){var ce,X,he,Pe;return d(this,function(Xe){switch(Xe.label){case 0:return ce=ae[0],ce instanceof f.a?(X=ee.get(S.a).getModel(ce),X?[4,_(X,N.a.None)]:[2,[]]):[2,[]];case 1:return he=Xe.sent(),he?(Pe=he.links.slice(0),he.dispose(),[2,Pe]):[2,[]]}})})});var x=e("sM1p"),F=e("W9cx"),R=e("MD5Z"),$=e("t9D7"),ie=function(){var ee=function(q,ce){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,he){X.__proto__=he}||function(X,he){for(var Pe in he)he.hasOwnProperty(Pe)&&(X[Pe]=he[Pe])},ee(q,ce)};return function(ae,q){ee(ae,q);function ce(){this.constructor=ae}ae.prototype=q===null?Object.create(q):(ce.prototype=q.prototype,new ce)}}(),W=function(){return W=Object.assign||function(ee){for(var ae,q=1,ce=arguments.length;q<ce;q++){ae=arguments[q];for(var X in ae)Object.prototype.hasOwnProperty.call(ae,X)&&(ee[X]=ae[X])}return ee},W.apply(this,arguments)},B=function(ee,ae,q,ce){var X=arguments.length,he=X<3?ae:ce===null?ce=Object.getOwnPropertyDescriptor(ae,q):ce,Pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(ee,ae,q,ce);else for(var Xe=ee.length-1;Xe>=0;Xe--)(Pe=ee[Xe])&&(he=(X<3?Pe(he):X>3?Pe(ae,q,he):Pe(ae,q))||he);return X>3&&he&&Object.defineProperty(ae,q,he),he},le=function(ee,ae){return function(q,ce){ae(q,ce,ee)}},be=function(ee,ae,q,ce){function X(he){return he instanceof q?he:new q(function(Pe){Pe(he)})}return new(q||(q=Promise))(function(he,Pe){function Xe(Se){try{me(ce.next(Se))}catch(Re){Pe(Re)}}function pe(Se){try{me(ce.throw(Se))}catch(Re){Pe(Re)}}function me(Se){Se.done?he(Se.value):X(Se.value).then(Xe,pe)}me((ce=ce.apply(ee,ae||[])).next())})},De=function(ee,ae){var q={label:0,sent:function(){if(he[0]&1)throw he[1];return he[1]},trys:[],ops:[]},ce,X,he,Pe;return Pe={next:Xe(0),throw:Xe(1),return:Xe(2)},typeof Symbol=="function"&&(Pe[Symbol.iterator]=function(){return this}),Pe;function Xe(me){return function(Se){return pe([me,Se])}}function pe(me){if(ce)throw new TypeError("Generator is already executing.");for(;q;)try{if(ce=1,X&&(he=me[0]&2?X.return:me[0]?X.throw||((he=X.return)&&he.call(X),0):X.next)&&!(he=he.call(X,me[1])).done)return he;(X=0,he)&&(me=[me[0]&2,he.value]);switch(me[0]){case 0:case 1:he=me;break;case 4:return q.label++,{value:me[1],done:!1};case 5:q.label++,X=me[1],me=[0];continue;case 7:me=q.ops.pop(),q.trys.pop();continue;default:if(!(he=q.trys,he=he.length>0&&he[he.length-1])&&(me[0]===6||me[0]===2)){q=0;continue}if(me[0]===3&&(!he||me[1]>he[0]&&me[1]<he[3])){q.label=me[1];break}if(me[0]===6&&q.label<he[1]){q.label=he[1],he=me;break}if(he&&q.label<he[2]){q.label=he[2],q.ops.push(me);break}he[2]&&q.ops.pop(),q.trys.pop();continue}me=ae.call(ee,q)}catch(Se){me=[6,Se],X=0}finally{ce=he=0}if(me[0]&5)throw me[1];return{value:me[0]?me[1]:void 0,done:!0}}};function Te(ee,ae){var q=ee.url&&/^command:/i.test(ee.url.toString()),ce=ee.tooltip?ee.tooltip:q?re.a("links.navigate.executeCmd","Execute command"):re.a("links.navigate.follow","Follow link"),X=ae?U.e?re.a("links.navigate.kb.meta.mac","cmd + click"):re.a("links.navigate.kb.meta","ctrl + click"):U.e?re.a("links.navigate.kb.alt.mac","option + click"):re.a("links.navigate.kb.alt","alt + click");if(ee.url){var he=new z.a("",!0).appendMarkdown("["+ce+"]("+ee.url.toString()+") ("+X+")");return he}else return new z.a().appendText(ce+" ("+X+")")}var ke={general:c.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:c.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},He=function(){function ee(ae,q){this.link=ae,this.decorationId=q}return ee.decoration=function(ae,q){return{range:ae.range,options:ee._getOptions(ae,q,!1)}},ee._getOptions=function(ae,q,ce){var X=W({},ce?ke.active:ke.general);return X.hoverMessage=Te(ae,q),X},ee.prototype.activate=function(ae,q){ae.changeDecorationOptions(this.decorationId,ee._getOptions(this.link,q,!0))},ee.prototype.deactivate=function(ae,q){ae.changeDecorationOptions(this.decorationId,ee._getOptions(this.link,q,!1))},ee}(),je=function(){function ee(ae,q,ce){var X=this;this.listenersToRemove=new M.b,this.editor=ae,this.openerService=q,this.notificationService=ce;var he=new L.a(ae);this.listenersToRemove.add(he),this.listenersToRemove.add(he.onMouseMoveOrRelevantKeyDown(function(Pe){var Xe=Pe[0],pe=Pe[1];X._onEditorMouseMove(Xe,pe)})),this.listenersToRemove.add(he.onExecute(function(Pe){X.onEditorMouseUp(Pe)})),this.listenersToRemove.add(he.onCancel(function(Pe){X.cleanUpActiveLinkDecoration()})),this.enabled=ae.getOption(52),this.listenersToRemove.add(ae.onDidChangeConfiguration(function(Pe){var Xe=ae.getOption(52);if(X.enabled===Xe)return;X.enabled=Xe,X.updateDecorations([]),X.stop(),X.beginCompute()})),this.listenersToRemove.add(ae.onDidChangeModelContent(function(Pe){return X.onChange()})),this.listenersToRemove.add(ae.onDidChangeModel(function(Pe){return X.onModelChanged()})),this.listenersToRemove.add(ae.onDidChangeModelLanguage(function(Pe){return X.onModelModeChanged()})),this.listenersToRemove.add(y.s.onDidChange(function(Pe){return X.onModelModeChanged()})),this.timeout=new J.e,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}return ee.get=function(ae){return ae.getContribution(ee.ID)},ee.prototype.onModelChanged=function(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()},ee.prototype.onModelModeChanged=function(){this.stop(),this.beginCompute()},ee.prototype.onChange=function(){var ae=this;this.timeout.setIfNotSet(function(){return ae.beginCompute()},ee.RECOMPUTE_TIME)},ee.prototype.beginCompute=function(){return be(this,void 0,void 0,function(){var ae,q,ce;return De(this,function(X){switch(X.label){case 0:if(!this.editor.hasModel()||!this.enabled)return[2];if(ae=this.editor.getModel(),!y.s.has(ae))return[2];this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=J.f(function(he){return _(ae,he)}),X.label=1;case 1:return X.trys.push([1,3,4,5]),q=this,[4,this.computePromise];case 2:return q.activeLinksList=X.sent(),this.updateDecorations(this.activeLinksList.links),[3,5];case 3:return ce=X.sent(),Object(H.e)(ce),[3,5];case 4:return this.computePromise=null,[7];case 5:return[2]}})})},ee.prototype.updateDecorations=function(ae){for(var q=this.editor.getOption(59)==="altKey",ce=[],X=Object.keys(this.currentOccurrences),he=0,Pe=X.length;he<Pe;he++){var Xe=X[he],pe=this.currentOccurrences[Xe];ce.push(pe.decorationId)}var me=[];if(ae)for(var Se=0,Re=ae;Se<Re.length;Se++){var Ee=Re[Se];me.push(He.decoration(Ee,q))}var ve=this.editor.deltaDecorations(ce,me);this.currentOccurrences={},this.activeLinkDecorationId=null;for(var he=0,Pe=ve.length;he<Pe;he++){var pe=new He(ae[he],ve[he]);this.currentOccurrences[pe.decorationId]=pe}},ee.prototype._onEditorMouseMove=function(ae,q){var ce=this,X=this.editor.getOption(59)==="altKey";if(this.isEnabled(ae,q)){this.cleanUpActiveLinkDecoration();var he=this.getLinkOccurrence(ae.target.position);he&&this.editor.changeDecorations(function(Pe){he.activate(Pe,X),ce.activeLinkDecorationId=he.decorationId})}else this.cleanUpActiveLinkDecoration()},ee.prototype.cleanUpActiveLinkDecoration=function(){var ae=this.editor.getOption(59)==="altKey";if(this.activeLinkDecorationId){var q=this.currentOccurrences[this.activeLinkDecorationId];q&&this.editor.changeDecorations(function(ce){q.deactivate(ce,ae)}),this.activeLinkDecorationId=null}},ee.prototype.onEditorMouseUp=function(ae){if(!this.isEnabled(ae))return;var q=this.getLinkOccurrence(ae.target.position);if(!q)return;this.openLinkOccurrence(q,ae.hasSideBySideModifier,!0)},ee.prototype.openLinkOccurrence=function(ae,q,ce){var X=this;if(ce===void 0&&(ce=!1),!this.openerService)return;var he=ae.link;he.resolve(N.a.None).then(function(Pe){return X.openerService.open(Pe,{openToSide:q,fromUserGesture:ce})},function(Pe){var Xe=Pe instanceof Error?Pe.message:Pe;Xe==="invalid"?X.notificationService.warn(re.a("invalid.url","Failed to open this link because it is not well-formed: {0}",he.url.toString())):Xe==="missing"?X.notificationService.warn(re.a("missing.url","Failed to open this link because its target is missing.")):Object(H.e)(Pe)})},ee.prototype.getLinkOccurrence=function(ae){if(!this.editor.hasModel()||!ae)return null;for(var q=this.editor.getModel().getDecorationsInRange({startLineNumber:ae.lineNumber,startColumn:ae.column,endLineNumber:ae.lineNumber,endColumn:ae.column},0,!0),ce=0,X=q;ce<X.length;ce++){var he=X[ce],Pe=this.currentOccurrences[he.id];if(Pe)return Pe}return null},ee.prototype.isEnabled=function(ae,q){return Boolean(ae.target.type===6&&(ae.hasTriggerModifier||q&&q.keyCodeIsTriggerKey))},ee.prototype.stop=function(){this.timeout.cancel(),this.activeLinksList&&this.activeLinksList.dispose(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)},ee.prototype.dispose=function(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()},ee.ID="editor.linkDetector",ee.RECOMPUTE_TIME=1e3,ee=B([le(1,F.a),le(2,x.a)],ee),ee}(),oe=function(ee){ie(ae,ee);function ae(){return ee.call(this,{id:"editor.action.openLink",label:re.a("label","Open Link"),alias:"Open Link",precondition:void 0})||this}return ae.prototype.run=function(q,ce){var X=je.get(ce);if(!X)return;if(!ce.hasModel())return;for(var he=ce.getSelections(),Pe=0,Xe=he;Pe<Xe.length;Pe++){var pe=Xe[Pe],me=X.getLinkOccurrence(pe.getEndPosition());me&&X.openLinkOccurrence(me,!1)}},ae}(A.b);Object(A.h)(je.ID,je),Object(A.f)(oe),Object($.e)(function(ee,ae){var q=ee.getColor(R.n);q&&ae.addRule(".monaco-editor .detected-link-active { color: "+q+" !important; }")})},"2MPD":function(_t,P,e){},"2Tsy":function(_t,P,e){},"2V9f":function(_t,P,e){},"2gzu":function(_t,P,e){"use strict";e.d(P,"b",function(){return s}),e.d(P,"a",function(){return l});var T=e("CHaL"),re=e.n(T),J=e("3/fG"),N=e("N0LK"),H=e("8HAY"),z=e("WqXY"),M=e("EffR"),U=e("uDWl"),A=e("X+cX"),c=e("pmY6"),y=e("GJhM"),L=e("MNsG"),f=function(){var x=function(R,$){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,W){ie.__proto__=W}||function(ie,W){for(var B in W)W.hasOwnProperty(B)&&(ie[B]=W[B])},x(R,$)};return function(F,R){x(F,R);function $(){this.constructor=F}F.prototype=R===null?Object.create(R):($.prototype=R.prototype,new $)}}(),v=function(){for(var x=0,F=0,R=arguments.length;F<R;F++)x+=arguments[F].length;for(var $=Array(x),ie=0,F=0;F<R;F++)for(var W=arguments[F],B=0,le=W.length;B<le;B++,ie++)$[ie]=W[B];return $},S=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,g=/(&amp;)?(&amp;)([^\s&])/g,u;(function(x){x[x.Right=0]="Right",x[x.Left=1]="Left"})(u||(u={}));var s=function(x){f(F,x);function F(R,$,ie){var W=x.call(this,ie||"submenu",R,"",!0)||this;return W.entries=$,W}return F}(H.a),l=function(x){f(F,x);function F(R,$,ie){ie===void 0&&(ie={});var W=this;Object(M.f)(R,"monaco-menu-container"),R.setAttribute("role","presentation");var B=document.createElement("div");Object(M.f)(B,"monaco-menu"),B.setAttribute("role","presentation"),W=x.call(this,B,{orientation:2,actionViewItemProvider:function(Te){return W.doGetActionViewItem(Te,ie,le)},context:ie.context,actionRunner:ie.actionRunner,ariaLabel:ie.ariaLabel,triggerKeys:{keys:v([3],L.e?[10]:[]),keyDown:!0}})||this,W.menuElement=B,W.actionsList.setAttribute("role","menu"),W.actionsList.tabIndex=0,W.menuDisposables=W._register(new c.b),Object(M.j)(B,M.d.KEY_DOWN,function(De){var Te=new U.a(De);Te.equals(2)&&De.preventDefault()}),ie.enableMnemonics&&W.menuDisposables.add(Object(M.j)(B,M.d.KEY_DOWN,function(De){var Te=De.key.toLocaleLowerCase();if(W.mnemonics.has(Te)){M.c.stop(De,!0);var ke=W.mnemonics.get(Te);if(ke.length===1&&(ke[0]instanceof p&&ke[0].container&&W.focusItemByElement(ke[0].container),ke[0].onClick(De)),ke.length>1){var He=ke.shift();He&&He.container&&(W.focusItemByElement(He.container),ke.push(He)),W.mnemonics.set(Te,ke)}}})),L.d&&W._register(Object(M.j)(B,M.d.KEY_DOWN,function(De){var Te=new U.a(De);Te.equals(14)||Te.equals(11)?(W.focusedItem=W.viewItems.length-1,W.focusNext(),M.c.stop(De,!0)):(Te.equals(13)||Te.equals(12))&&(W.focusedItem=0,W.focusPrevious(),M.c.stop(De,!0))})),W._register(Object(M.j)(W.domNode,M.d.MOUSE_OUT,function(De){var Te=De.relatedTarget;Object(M.K)(Te,W.domNode)||(W.focusedItem=void 0,W.updateFocus(),De.stopPropagation())})),W._register(Object(M.j)(W.actionsList,M.d.MOUSE_OVER,function(De){var Te=De.target;if(!Te||!Object(M.K)(Te,W.actionsList)||Te===W.actionsList)return;for(;Te.parentElement!==W.actionsList&&Te.parentElement!==null;)Te=Te.parentElement;if(Object(M.I)(Te,"action-item")){var ke=W.focusedItem;W.setFocusedItem(Te),ke!==W.focusedItem&&W.updateFocus()}}));var le={parent:W};W.mnemonics=new Map,W.scrollableElement=W._register(new y.a(B,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var be=W.scrollableElement.getDomNode();return be.style.position="",W._register(Object(M.j)(be,M.d.MOUSE_UP,function(De){De.preventDefault()})),B.style.maxHeight=Math.max(10,window.innerHeight-R.getBoundingClientRect().top-30)+"px",W.push($,{icon:!0,label:!0,isMenu:!0}),R.appendChild(W.scrollableElement.getDomNode()),W.scrollableElement.scanDomNode(),W.viewItems.filter(function(De){return!(De instanceof E)}).forEach(function(De,Te,ke){De.updatePositionInSet(Te+1,ke.length)}),W}return F.prototype.style=function(R){var $=this.getContainer(),ie=R.foregroundColor?""+R.foregroundColor:"",W=R.backgroundColor?""+R.backgroundColor:"",B=R.borderColor?"1px solid "+R.borderColor:"",le=R.shadowColor?"0 2px 4px "+R.shadowColor:"";$.style.border=B,this.domNode.style.color=ie,this.domNode.style.backgroundColor=W,$.style.boxShadow=le,this.viewItems&&this.viewItems.forEach(function(be){(be instanceof d||be instanceof E)&&be.style(R)})},F.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(F.prototype,"onScroll",{get:function(){return this.scrollableElement.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),F.prototype.focusItemByElement=function(R){var $=this.focusedItem;this.setFocusedItem(R),$!==this.focusedItem&&this.updateFocus()},F.prototype.setFocusedItem=function(R){for(var $=0;$<this.actionsList.children.length;$++){var ie=this.actionsList.children[$];if(R===ie){this.focusedItem=$;break}}},F.prototype.updateFocus=function(R){x.prototype.updateFocus.call(this,R,!0),typeof this.focusedItem!="undefined"&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})},F.prototype.doGetActionViewItem=function(R,$,ie){if(R instanceof z.d)return new E($.context,R,{icon:!0});if(R instanceof s){var W=new p(R,R.entries,ie,$);if($.enableMnemonics){var B=W.getMnemonic();if(B&&W.isEnabled()){var le=[];this.mnemonics.has(B)&&(le=this.mnemonics.get(B)),le.push(W),this.mnemonics.set(B,le)}}return W}else{var be={enableMnemonics:$.enableMnemonics};if($.getKeyBinding){var De=$.getKeyBinding(R);if(De){var Te=De.getLabel();Te&&(be.keybinding=Te)}}var W=new d($.context,R,be);if($.enableMnemonics){var B=W.getMnemonic();if(B&&W.isEnabled()){var le=[];this.mnemonics.has(B)&&(le=this.mnemonics.get(B)),le.push(W),this.mnemonics.set(B,le)}}return W}},F}(z.a),d=function(x){f(F,x);function F(R,$,ie){ie===void 0&&(ie={});var W=this;if(ie.isMenu=!0,W=x.call(this,$,$,ie)||this,W.options=ie,W.options.icon=ie.icon!==void 0?ie.icon:!1,W.options.label=ie.label!==void 0?ie.label:!0,W.cssClass="",W.options.label&&ie.enableMnemonics){var B=W.getAction().label;if(B){var le=S.exec(B);le&&(W.mnemonic=(le[1]?le[1]:le[3]).toLocaleLowerCase())}}return W.runOnceToEnableMouseUp=new A.d(function(){if(!W.element)return;W._register(Object(M.j)(W.element,M.d.MOUSE_UP,function(be){if(be.defaultPrevented)return;M.c.stop(be,!0),W.onClick(be)}))},100),W._register(W.runOnceToEnableMouseUp),W}return F.prototype.render=function(R){if(x.prototype.render.call(this,R),!this.element)return;this.container=R,this.item=Object(M.q)(this.element,Object(M.a)("a.action-menu-item")),this._action.id===z.d.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(M.q)(this.item,Object(M.a)("span.menu-item-check.codicon.codicon-check")),this.check.setAttribute("role","none"),this.label=Object(M.q)(this.item,Object(M.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(M.q)(this.item,Object(M.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},F.prototype.blur=function(){x.prototype.blur.call(this),this.applyStyle()},F.prototype.focus=function(){x.prototype.focus.call(this),this.item&&this.item.focus(),this.applyStyle()},F.prototype.updatePositionInSet=function(R,$){this.item&&(this.item.setAttribute("aria-posinset",""+R),this.item.setAttribute("aria-setsize",""+$))},F.prototype.updateLabel=function(){if(this.options.label){var R=this.getAction().label;if(R){var $=_(R);this.options.enableMnemonics||(R=$),this.label&&this.label.setAttribute("aria-label",$.replace(/&&/g,"&"));var ie=S.exec(R);if(ie){R=N.o(R),g.lastIndex=0;for(var W=g.exec(R);W&&W[1];)W=g.exec(R);W&&(R=R.substr(0,W.index)+'<u aria-hidden="true">'+W[3]+"</u>"+R.substr(W.index+W[0].length)),R=R.replace(/&amp;&amp;/g,"&amp;"),this.item&&this.item.setAttribute("aria-keyshortcuts",(ie[1]?ie[1]:ie[3]).toLocaleLowerCase())}else R=R.replace(/&&/g,"&")}this.label&&(this.label.innerHTML=R.trim())}},F.prototype.updateTooltip=function(){var R=null;this.getAction().tooltip?R=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(R=this.getAction().label,this.options.keybinding&&(R=J.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",R,this.options.keybinding))),R&&this.item&&(this.item.title=R)},F.prototype.updateClass=function(){this.cssClass&&this.item&&Object(M.Q)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(M.f)(this.label,"icon"),this.cssClass&&Object(M.g)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(M.P)(this.label,"icon")},F.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(M.P)(this.element,"disabled"),this.item&&(Object(M.P)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(M.f)(this.element,"disabled"),this.item&&(Object(M.f)(this.item,"disabled"),Object(M.S)(this.item)))},F.prototype.updateChecked=function(){if(!this.item)return;this.getAction().checked?(Object(M.f)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(M.P)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false"))},F.prototype.getMnemonic=function(){return this.mnemonic},F.prototype.applyStyle=function(){if(!this.menuStyle)return;var R=this.element&&Object(M.I)(this.element,"focused"),$=R&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,ie=R&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,W=R&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=$?$.toString():"",this.item.style.backgroundColor=ie?ie.toString():""),this.check&&(this.check.style.color=$?$.toString():""),this.container&&(this.container.style.border=W)},F.prototype.style=function(R){this.menuStyle=R,this.applyStyle()},F}(z.c),p=function(x){f(F,x);function F(R,$,ie,W){var B=x.call(this,R,R,W)||this;return B.submenuActions=$,B.parentData=ie,B.submenuOptions=W,B.mysubmenu=null,B.submenuDisposables=B._register(new c.b),B.mouseOver=!1,B.expandDirection=W&&W.expandDirection!==void 0?W.expandDirection:u.Right,B.showScheduler=new A.d(function(){B.mouseOver&&(B.cleanupExistingSubmenu(!1),B.createSubmenu(!1))},250),B.hideScheduler=new A.d(function(){B.element&&!Object(M.K)(document.activeElement,B.element)&&B.parentData.submenu===B.mysubmenu&&(B.parentData.parent.focus(!1),B.cleanupExistingSubmenu(!0))},750),B}return F.prototype.render=function(R){var $=this;if(x.prototype.render.call(this,R),!this.element)return;this.item&&(Object(M.f)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(M.q)(this.item,Object(M.a)("span.submenu-indicator.codicon.codicon-chevron-right")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(M.j)(this.element,M.d.KEY_UP,function(ie){var W=new U.a(ie);(W.equals(17)||W.equals(3))&&(M.c.stop(ie,!0),$.createSubmenu(!0))})),this._register(Object(M.j)(this.element,M.d.KEY_DOWN,function(ie){var W=new U.a(ie);document.activeElement===$.item&&((W.equals(17)||W.equals(3))&&M.c.stop(ie,!0))})),this._register(Object(M.j)(this.element,M.d.MOUSE_OVER,function(ie){$.mouseOver||($.mouseOver=!0,$.showScheduler.schedule())})),this._register(Object(M.j)(this.element,M.d.MOUSE_LEAVE,function(ie){$.mouseOver=!1})),this._register(Object(M.j)(this.element,M.d.FOCUS_OUT,function(ie){$.element&&!Object(M.K)(document.activeElement,$.element)&&$.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(function(){$.parentData.parent.focus(!1),$.cleanupExistingSubmenu(!1)}))},F.prototype.onClick=function(R){M.c.stop(R,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)},F.prototype.cleanupExistingSubmenu=function(R){this.parentData.submenu&&(R||this.parentData.submenu!==this.mysubmenu)&&(this.parentData.submenu.dispose(),this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0))},F.prototype.createSubmenu=function(R){var $=this;if(R===void 0&&(R=!0),!this.element)return;if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(M.q)(this.element,Object(M.a)("div.monaco-submenu")),Object(M.g)(this.submenuContainer,"menubar-menu-items-holder","context-view");var ie=getComputedStyle(this.parentData.parent.domNode),W=parseFloat(ie.paddingTop||"0")||0;this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-W+"px",this.parentData.submenu=new l(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var B=this.element.getBoundingClientRect(),le=this.submenuContainer.getBoundingClientRect();this.expandDirection===u.Right?window.innerWidth<=B.right+le.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+B.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-W+"px"):this.expandDirection===u.Left&&(this.submenuContainer.style.right=this.element.offsetWidth+"px",this.submenuContainer.style.left="auto",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-W+"px"),this.submenuDisposables.add(Object(M.j)(this.submenuContainer,M.d.KEY_UP,function(be){var De=new U.a(be);De.equals(15)&&(M.c.stop(be,!0),$.parentData.parent.focus(),$.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(M.j)(this.submenuContainer,M.d.KEY_DOWN,function(be){var De=new U.a(be);De.equals(15)&&M.c.stop(be,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(function(){$.parentData.parent.focus(),$.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(R),this.mysubmenu=this.parentData.submenu}},F.prototype.updateAriaExpanded=function(R){var $;this.item&&(($=this.item)===null||$===void 0||$.setAttribute("aria-expanded",R))},F.prototype.applyStyle=function(){if(x.prototype.applyStyle.call(this),!this.menuStyle)return;var R=this.element&&Object(M.I)(this.element,"focused"),$=R&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=$?""+$:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)},F.prototype.dispose=function(){x.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},F}(d),E=function(x){f(F,x);function F(){return x!==null&&x.apply(this,arguments)||this}return F.prototype.style=function(R){this.label&&(this.label.style.borderBottomColor=R.separatorColor?""+R.separatorColor:"")},F}(z.b);function _(x){var F=S,R=F.exec(x);if(!R)return x;var $=!R[1];return x.replace(F,$?"$2$3":"").trim()}},"3/fG":function(_t,P,e){"use strict";e.d(P,"a",function(){return re});function T(J,N){var H;return N.length===0?H=J:H=J.replace(/\{(\d+)\}/g,function(z,M){var U=M[0];return typeof N[U]!="undefined"?N[U]:z}),H}function re(J,N){for(var H=[],z=2;z<arguments.length;z++)H[z-2]=arguments[z];return T(N,H)}},"3Rsk":function(_t,P,e){"use strict";e.d(P,"a",function(){return J});var T=e("ic2d"),re=e("MI8n"),J={JSONContribution:"base.contributions.json"};function N(M){return M.length>0&&M.charAt(M.length-1)==="#"?M.substring(0,M.length-1):M}var H=function(){function M(){this._onDidChangeSchema=new re.a,this.schemasById={}}return M.prototype.registerSchema=function(U,A){this.schemasById[N(U)]=A,this._onDidChangeSchema.fire(U)},M.prototype.notifySchemaChanged=function(U){this._onDidChangeSchema.fire(U)},M}(),z=new H;T.a.add(J.JSONContribution,z)},"3qCu":function(_t,P,e){"use strict";e.d(P,"a",function(){return je});var T=e("EffR"),re=e("Md8J"),J=e("/cxE"),N=e("eLzo"),H=e("nD70"),z;(function(oe){"use strict";var ee={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:b,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:b,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:b,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};ee._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ee._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ee.def=Se(ee.def).replace("label",ee._label).replace("title",ee._title).getRegex(),ee.bullet=/(?:[*+-]|\d{1,9}\.)/,ee.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ee.item=Se(ee.item,"gm").replace(/bull/g,ee.bullet).getRegex(),ee.list=Se(ee.list).replace(/bull/g,ee.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ee.def.source+")").getRegex(),ee._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ee._comment=/<!--(?!-?>)[\s\S]*?-->/,ee.html=Se(ee.html,"i").replace("comment",ee._comment).replace("tag",ee._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ee.paragraph=Se(ee.paragraph).replace("hr",ee.hr).replace("heading",ee.heading).replace("lheading",ee.lheading).replace("tag",ee._tag).getRegex(),ee.blockquote=Se(ee.blockquote).replace("paragraph",ee.paragraph).getRegex(),ee.normal=k({},ee),ee.gfm=k({},ee.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),ee.gfm.paragraph=Se(ee.paragraph).replace("(?!","(?!"+ee.gfm.fences.source.replace("\\1","\\2")+"|"+ee.list.source.replace("\\1","\\3")+"|").getRegex(),ee.tables=k({},ee.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),ee.pedantic=k({},ee.normal,{html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ee._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/});function ae(we){this.tokens=[],this.tokens.links=Object.create(null),this.options=we||Oe.defaults,this.rules=ee.normal,this.options.pedantic?this.rules=ee.pedantic:this.options.gfm&&(this.options.tables?this.rules=ee.tables:this.rules=ee.gfm)}ae.rules=ee,ae.lex=function(we,Ve){var Qe=new ae(Ve);return Qe.lex(we)},ae.prototype.lex=function(we){return we=we.replace(/\r\n|\r/g,`
`).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,`
`),this.token(we,!0)},ae.prototype.token=function(we,Ve){we=we.replace(/^ +$/gm,"");for(var Qe,it,gt,Rt,Dt,zt,cn,ln,an,jt,ft,vt,xt,at,tt,ct;we;){if((gt=this.rules.newline.exec(we))&&(we=we.substring(gt[0].length),gt[0].length>1&&this.tokens.push({type:"space"})),gt=this.rules.code.exec(we)){we=we.substring(gt[0].length),gt=gt[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?gt:ne(gt,`
`)});continue}if(gt=this.rules.fences.exec(we)){we=we.substring(gt[0].length),this.tokens.push({type:"code",lang:gt[2]?gt[2].trim():gt[2],text:gt[3]||""});continue}if(gt=this.rules.heading.exec(we)){we=we.substring(gt[0].length),this.tokens.push({type:"heading",depth:gt[1].length,text:gt[2]});continue}if((gt=this.rules.nptable.exec(we))&&(zt={type:"table",header:se(gt[1].replace(/^ *| *\| *$/g,"")),align:gt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:gt[3]?gt[3].replace(/\n$/,"").split(`
`):[]},zt.header.length===zt.align.length)){for(we=we.substring(gt[0].length),ft=0;ft<zt.align.length;ft++)/^ *-+: *$/.test(zt.align[ft])?zt.align[ft]="right":/^ *:-+: *$/.test(zt.align[ft])?zt.align[ft]="center":/^ *:-+ *$/.test(zt.align[ft])?zt.align[ft]="left":zt.align[ft]=null;for(ft=0;ft<zt.cells.length;ft++)zt.cells[ft]=se(zt.cells[ft],zt.header.length);this.tokens.push(zt);continue}if(gt=this.rules.hr.exec(we)){we=we.substring(gt[0].length),this.tokens.push({type:"hr"});continue}if(gt=this.rules.blockquote.exec(we)){we=we.substring(gt[0].length),this.tokens.push({type:"blockquote_start"}),gt=gt[0].replace(/^ *> ?/gm,""),this.token(gt,Ve),this.tokens.push({type:"blockquote_end"});continue}if(gt=this.rules.list.exec(we)){for(we=we.substring(gt[0].length),Rt=gt[2],at=Rt.length>1,cn={type:"list_start",ordered:at,start:at?+Rt:"",loose:!1},this.tokens.push(cn),gt=gt[0].match(this.rules.item),ln=[],Qe=!1,xt=gt.length,ft=0;ft<xt;ft++)zt=gt[ft],jt=zt.length,zt=zt.replace(/^ *([*+-]|\d+\.) */,""),~zt.indexOf(`
`)&&(jt-=zt.length,zt=this.options.pedantic?zt.replace(/^ {1,4}/gm,""):zt.replace(new RegExp("^ {1,"+jt+"}","gm"),"")),ft!==xt-1&&(Dt=ee.bullet.exec(gt[ft+1])[0],(Rt.length>1?Dt.length===1:Dt.length>1||this.options.smartLists&&Dt!==Rt)&&(we=gt.slice(ft+1).join(`
`)+we,ft=xt-1)),it=Qe||/\n\n(?!\s*$)/.test(zt),ft!==xt-1&&(Qe=zt.charAt(zt.length-1)===`
`,it||(it=Qe)),it&&(cn.loose=!0),tt=/^\[[ xX]\] /.test(zt),ct=void 0,tt&&(ct=zt[1]!==" ",zt=zt.replace(/^\[[ xX]\] +/,"")),an={type:"list_item_start",task:tt,checked:ct,loose:it},ln.push(an),this.tokens.push(an),this.token(zt,!1),this.tokens.push({type:"list_item_end"});if(cn.loose)for(xt=ln.length,ft=0;ft<xt;ft++)ln[ft].loose=!0;this.tokens.push({type:"list_end"});continue}if(gt=this.rules.html.exec(we)){we=we.substring(gt[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(gt[1]==="pre"||gt[1]==="script"||gt[1]==="style"),text:gt[0]});continue}if(Ve&&(gt=this.rules.def.exec(we))){we=we.substring(gt[0].length),gt[3]&&(gt[3]=gt[3].substring(1,gt[3].length-1)),vt=gt[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[vt]||(this.tokens.links[vt]={href:gt[2],title:gt[3]});continue}if((gt=this.rules.table.exec(we))&&(zt={type:"table",header:se(gt[1].replace(/^ *| *\| *$/g,"")),align:gt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:gt[3]?gt[3].replace(/\n$/,"").split(`
`):[]},zt.header.length===zt.align.length)){for(we=we.substring(gt[0].length),ft=0;ft<zt.align.length;ft++)/^ *-+: *$/.test(zt.align[ft])?zt.align[ft]="right":/^ *:-+: *$/.test(zt.align[ft])?zt.align[ft]="center":/^ *:-+ *$/.test(zt.align[ft])?zt.align[ft]="left":zt.align[ft]=null;for(ft=0;ft<zt.cells.length;ft++)zt.cells[ft]=se(zt.cells[ft].replace(/^ *\| *| *\| *$/g,""),zt.header.length);this.tokens.push(zt);continue}if(gt=this.rules.lheading.exec(we)){we=we.substring(gt[0].length),this.tokens.push({type:"heading",depth:gt[2]==="="?1:2,text:gt[1]});continue}if(Ve&&(gt=this.rules.paragraph.exec(we))){we=we.substring(gt[0].length),this.tokens.push({type:"paragraph",text:gt[1].charAt(gt[1].length-1)===`
`?gt[1].slice(0,-1):gt[1]});continue}if(gt=this.rules.text.exec(we)){we=we.substring(gt[0].length),this.tokens.push({type:"text",text:gt[0]});continue}if(we)throw new Error("Infinite loop on byte: "+we.charCodeAt(0))}return this.tokens};var q={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:b,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:b,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};q._punctuation=`!"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~`,q.em=Se(q.em).replace(/punctuation/g,q._punctuation).getRegex(),q._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,q._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,q._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,q.autolink=Se(q.autolink).replace("scheme",q._scheme).replace("email",q._email).getRegex(),q._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,q.tag=Se(q.tag).replace("comment",ee._comment).replace("attribute",q._attribute).getRegex(),q._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,q._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,q._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,q.link=Se(q.link).replace("label",q._label).replace("href",q._href).replace("title",q._title).getRegex(),q.reflink=Se(q.reflink).replace("label",q._label).getRegex(),q.normal=k({},q),q.pedantic=k({},q.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",q._label).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q._label).getRegex()}),q.gfm=k({},q.normal,{escape:Se(q.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),q.gfm.url=Se(q.gfm.url,"i").replace("email",q.gfm._extended_email).getRegex(),q.breaks=k({},q.gfm,{br:Se(q.br).replace("{2,}","*").getRegex(),text:Se(q.gfm.text).replace(/\{2,\}/g,"*").getRegex()});function ce(we,Ve){if(this.options=Ve||Oe.defaults,this.links=we,this.rules=q.normal,this.renderer=this.options.renderer||new X,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=q.pedantic:this.options.gfm&&(this.options.breaks?this.rules=q.breaks:this.rules=q.gfm)}ce.rules=q,ce.output=function(we,Ve,Qe){var it=new ce(Ve,Qe);return it.output(we)},ce.prototype.output=function(we){for(var Ve="",Qe,it,gt,Rt,Dt,zt;we;){if(Dt=this.rules.escape.exec(we)){we=we.substring(Dt[0].length),Ve+=pe(Dt[1]);continue}if(Dt=this.rules.tag.exec(we)){!this.inLink&&/^<a /i.test(Dt[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(Dt[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Dt[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Dt[0])&&(this.inRawBlock=!1),we=we.substring(Dt[0].length),Ve+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Dt[0]):pe(Dt[0]):Dt[0];continue}if(Dt=this.rules.link.exec(we)){var cn=Ce(Dt[2],"()");if(cn>-1){var ln=Dt[0].length-(Dt[2].length-cn)-(Dt[3]||"").length;Dt[2]=Dt[2].substring(0,cn),Dt[0]=Dt[0].substring(0,ln).trim(),Dt[3]=""}we=we.substring(Dt[0].length),this.inLink=!0,gt=Dt[2],this.options.pedantic?(Qe=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(gt),Qe?(gt=Qe[1],Rt=Qe[3]):Rt=""):Rt=Dt[3]?Dt[3].slice(1,-1):"",gt=gt.trim().replace(/^<([\s\S]*)>$/,"$1"),Ve+=this.outputLink(Dt,{href:ce.escapes(gt),title:ce.escapes(Rt)}),this.inLink=!1;continue}if((Dt=this.rules.reflink.exec(we))||(Dt=this.rules.nolink.exec(we))){if(we=we.substring(Dt[0].length),Qe=(Dt[2]||Dt[1]).replace(/\s+/g," "),Qe=this.links[Qe.toLowerCase()],!Qe||!Qe.href){Ve+=Dt[0].charAt(0),we=Dt[0].substring(1)+we;continue}this.inLink=!0,Ve+=this.outputLink(Dt,Qe),this.inLink=!1;continue}if(Dt=this.rules.strong.exec(we)){we=we.substring(Dt[0].length),Ve+=this.renderer.strong(this.output(Dt[4]||Dt[3]||Dt[2]||Dt[1]));continue}if(Dt=this.rules.em.exec(we)){we=we.substring(Dt[0].length),Ve+=this.renderer.em(this.output(Dt[6]||Dt[5]||Dt[4]||Dt[3]||Dt[2]||Dt[1]));continue}if(Dt=this.rules.code.exec(we)){we=we.substring(Dt[0].length),Ve+=this.renderer.codespan(pe(Dt[2].trim(),!0));continue}if(Dt=this.rules.br.exec(we)){we=we.substring(Dt[0].length),Ve+=this.renderer.br();continue}if(Dt=this.rules.del.exec(we)){we=we.substring(Dt[0].length),Ve+=this.renderer.del(this.output(Dt[1]));continue}if(Dt=this.rules.autolink.exec(we)){we=we.substring(Dt[0].length),Dt[2]==="@"?(it=pe(this.mangle(Dt[1])),gt="mailto:"+it):(it=pe(Dt[1]),gt=it),Ve+=this.renderer.link(gt,null,it);continue}if(!this.inLink&&(Dt=this.rules.url.exec(we))){if(Dt[2]==="@")it=pe(Dt[0]),gt="mailto:"+it;else{do zt=Dt[0],Dt[0]=this.rules._backpedal.exec(Dt[0])[0];while(zt!==Dt[0]);it=pe(Dt[0]),Dt[1]==="www."?gt="http://"+it:gt=it}we=we.substring(Dt[0].length),Ve+=this.renderer.link(gt,null,it);continue}if(Dt=this.rules.text.exec(we)){we=we.substring(Dt[0].length),this.inRawBlock?Ve+=this.renderer.text(Dt[0]):Ve+=this.renderer.text(pe(this.smartypants(Dt[0])));continue}if(we)throw new Error("Infinite loop on byte: "+we.charCodeAt(0))}return Ve},ce.escapes=function(we){return we&&we.replace(ce.rules._escapes,"$1")},ce.prototype.outputLink=function(we,Ve){var Qe=Ve.href,it=Ve.title?pe(Ve.title):null;return we[0].charAt(0)!=="!"?this.renderer.link(Qe,it,this.output(we[1])):this.renderer.image(Qe,it,pe(we[1]))},ce.prototype.smartypants=function(we){return this.options.smartypants?we.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026"):we},ce.prototype.mangle=function(we){if(!this.options.mangle)return we;for(var Ve="",Qe=we.length,it=0,gt;it<Qe;it++)gt=we.charCodeAt(it),Math.random()>.5&&(gt="x"+gt.toString(16)),Ve+="&#"+gt+";";return Ve};function X(we){this.options=we||Oe.defaults}X.prototype.code=function(we,Ve,Qe){var it=(Ve||"").match(/\S*/)[0];if(this.options.highlight){var gt=this.options.highlight(we,it);gt!=null&&gt!==we&&(Qe=!0,we=gt)}return it?'<pre><code class="'+this.options.langPrefix+pe(it,!0)+'">'+(Qe?we:pe(we,!0))+`</code></pre>
`:"<pre><code>"+(Qe?we:pe(we,!0))+"</code></pre>"},X.prototype.blockquote=function(we){return`<blockquote>
`+we+`</blockquote>
`},X.prototype.html=function(we){return we},X.prototype.heading=function(we,Ve,Qe,it){return this.options.headerIds?"<h"+Ve+' id="'+this.options.headerPrefix+it.slug(Qe)+'">'+we+"</h"+Ve+`>
`:"<h"+Ve+">"+we+"</h"+Ve+`>
`},X.prototype.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},X.prototype.list=function(we,Ve,Qe){var it=Ve?"ol":"ul",gt=Ve&&Qe!==1?' start="'+Qe+'"':"";return"<"+it+gt+`>
`+we+"</"+it+`>
`},X.prototype.listitem=function(we){return"<li>"+we+`</li>
`},X.prototype.checkbox=function(we){return"<input "+(we?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},X.prototype.paragraph=function(we){return"<p>"+we+`</p>
`},X.prototype.table=function(we,Ve){return Ve&&(Ve="<tbody>"+Ve+"</tbody>"),`<table>
<thead>
`+we+`</thead>
`+Ve+`</table>
`},X.prototype.tablerow=function(we){return`<tr>
`+we+`</tr>
`},X.prototype.tablecell=function(we,Ve){var Qe=Ve.header?"th":"td",it=Ve.align?"<"+Qe+' align="'+Ve.align+'">':"<"+Qe+">";return it+we+"</"+Qe+`>
`},X.prototype.strong=function(we){return"<strong>"+we+"</strong>"},X.prototype.em=function(we){return"<em>"+we+"</em>"},X.prototype.codespan=function(we){return"<code>"+we+"</code>"},X.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},X.prototype.del=function(we){return"<del>"+we+"</del>"},X.prototype.link=function(we,Ve,Qe){if(we=Re(this.options.sanitize,this.options.baseUrl,we),we===null)return Qe;var it='<a href="'+pe(we)+'"';return Ve&&(it+=' title="'+Ve+'"'),it+=">"+Qe+"</a>",it},X.prototype.image=function(we,Ve,Qe){if(we=Re(this.options.sanitize,this.options.baseUrl,we),we===null)return Qe;var it='<img src="'+we+'" alt="'+Qe+'"';return Ve&&(it+=' title="'+Ve+'"'),it+=this.options.xhtml?"/>":">",it},X.prototype.text=function(we){return we};function he(){}he.prototype.strong=he.prototype.em=he.prototype.codespan=he.prototype.del=he.prototype.text=function(we){return we},he.prototype.link=he.prototype.image=function(we,Ve,Qe){return""+Qe},he.prototype.br=function(){return""};function Pe(we){this.tokens=[],this.token=null,this.options=we||Oe.defaults,this.options.renderer=this.options.renderer||new X,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Xe}Pe.parse=function(we,Ve){var Qe=new Pe(Ve);return Qe.parse(we)},Pe.prototype.parse=function(we){this.inline=new ce(we.links,this.options),this.inlineText=new ce(we.links,k({},this.options,{renderer:new he})),this.tokens=we.reverse();for(var Ve="";this.next();)Ve+=this.tok();return Ve},Pe.prototype.next=function(){return this.token=this.tokens.pop()},Pe.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},Pe.prototype.parseText=function(){for(var we=this.token.text;this.peek().type==="text";)we+=`
`+this.next().text;return this.inline.output(we)},Pe.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,me(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 we="",Ve="",Qe,it,gt,Rt;for(gt="",Qe=0;Qe<this.token.header.length;Qe++)gt+=this.renderer.tablecell(this.inline.output(this.token.header[Qe]),{header:!0,align:this.token.align[Qe]});for(we+=this.renderer.tablerow(gt),Qe=0;Qe<this.token.cells.length;Qe++){for(it=this.token.cells[Qe],gt="",Rt=0;Rt<it.length;Rt++)gt+=this.renderer.tablecell(this.inline.output(it[Rt]),{header:!1,align:this.token.align[Rt]});Ve+=this.renderer.tablerow(gt)}return this.renderer.table(we,Ve)}case"blockquote_start":{for(Ve="";this.next().type!=="blockquote_end";)Ve+=this.tok();return this.renderer.blockquote(Ve)}case"list_start":{Ve="";for(var Dt=this.token.ordered,zt=this.token.start;this.next().type!=="list_end";)Ve+=this.tok();return this.renderer.list(Ve,Dt,zt)}case"list_item_start":{Ve="";var cn=this.token.loose,ln=this.token.checked,an=this.token.task;for(this.token.task&&(Ve+=this.renderer.checkbox(ln));this.next().type!=="list_item_end";)Ve+=!cn&&this.token.type==="text"?this.parseText():this.tok();return this.renderer.listitem(Ve,an,ln)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{var jt='Token with "'+this.token.type+'" type was not found.';if(this.options.silent)console.log(jt);else throw new Error(jt)}}};function Xe(){this.seen={}}Xe.prototype.slug=function(we){var Ve=we.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ve)){var Qe=Ve;do this.seen[Qe]++,Ve=Qe+"-"+this.seen[Qe];while(this.seen.hasOwnProperty(Ve))}return this.seen[Ve]=0,Ve};function pe(we,Ve){if(Ve){if(pe.escapeTest.test(we))return we.replace(pe.escapeReplace,function(Qe){return pe.replacements[Qe]})}else if(pe.escapeTestNoEncode.test(we))return we.replace(pe.escapeReplaceNoEncode,function(Qe){return pe.replacements[Qe]});return we}pe.escapeTest=/[&<>"']/,pe.escapeReplace=/[&<>"']/g,pe.replacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pe.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,pe.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function me(we){return we.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(Ve,Qe){return Qe=Qe.toLowerCase(),Qe==="colon"?":":Qe.charAt(0)==="#"?Qe.charAt(1)==="x"?String.fromCharCode(parseInt(Qe.substring(2),16)):String.fromCharCode(+Qe.substring(1)):""})}function Se(we,Ve){return we=we.source||we,Ve=Ve||"",{replace:function(it,gt){return gt=gt.source||gt,gt=gt.replace(/(^|[^\[])\^/g,"$1"),we=we.replace(it,gt),this},getRegex:function(){return new RegExp(we,Ve)}}}function Re(we,Ve,Qe){if(we){try{var it=decodeURIComponent(me(Qe)).replace(/[^\w:]/g,"").toLowerCase()}catch(gt){return null}if(it.indexOf("javascript:")===0||it.indexOf("vbscript:")===0||it.indexOf("data:")===0)return null}Ve&&!Q.test(Qe)&&(Qe=Ee(Ve,Qe));try{Qe=encodeURI(Qe).replace(/%25/g,"%")}catch(gt){return null}return Qe}function Ee(we,Ve){return ve[" "+we]||(/^[^:]+:\/*[^/]*$/.test(we)?ve[" "+we]=we+"/":ve[" "+we]=ne(we,"/",!0)),we=ve[" "+we],Ve.slice(0,2)==="//"?we.replace(/:[\s\S]*/,":")+Ve:Ve.charAt(0)==="/"?we.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+Ve:we+Ve}var ve={},Q=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(){}b.exec=b;function k(we){for(var Ve=1,Qe,it;Ve<arguments.length;Ve++){Qe=arguments[Ve];for(it in Qe)Object.prototype.hasOwnProperty.call(Qe,it)&&(we[it]=Qe[it])}return we}function se(we,Ve){var Qe=we.replace(/\|/g,function(Rt,Dt,zt){for(var cn=!1,ln=Dt;--ln>=0&&zt[ln]==="\\";)cn=!cn;return cn?"|":" |"}),it=Qe.split(/ \|/),gt=0;if(it.length>Ve)it.splice(Ve);else for(;it.length<Ve;)it.push("");for(;gt<it.length;gt++)it[gt]=it[gt].trim().replace(/\\\|/g,"|");return it}function ne(we,Ve,Qe){if(we.length===0)return"";for(var it=0;it<we.length;){var gt=we.charAt(we.length-it-1);if(gt===Ve&&!Qe)it++;else if(gt!==Ve&&Qe)it++;else break}return we.substr(0,we.length-it)}function Ce(we,Ve){if(we.indexOf(Ve[1])===-1)return-1;for(var Qe=0,it=0;it<we.length;it++)if(we[it]==="\\")it++;else if(we[it]===Ve[0])Qe++;else if(we[it]===Ve[1]&&(Qe--,Qe<0))return it;return-1}function Oe(we,Ve,Qe){if(typeof we=="undefined"||we===null)throw new Error("marked(): input parameter is undefined or null");if(typeof we!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(we)+", string expected");if(Qe||typeof Ve=="function"){Qe||(Qe=Ve,Ve=null),Ve=k({},Oe.defaults,Ve||{});var it=Ve.highlight,gt,Rt,Dt=0;try{gt=ae.lex(we,Ve)}catch(cn){return Qe(cn)}Rt=gt.length;var zt=function(ln){if(ln)return Ve.highlight=it,Qe(ln);var an;try{an=Pe.parse(gt,Ve)}catch(jt){ln=jt}return Ve.highlight=it,ln?Qe(ln):Qe(null,an)};if(!it||it.length<3)return zt();if(delete Ve.highlight,!Rt)return zt();for(;Dt<gt.length;Dt++)(function(cn){return cn.type!=="code"?--Rt||zt():it(cn.text,cn.lang,function(ln,an){if(ln)return zt(ln);if(an==null||an===cn.text)return--Rt||zt();cn.text=an,cn.escaped=!0,--Rt||zt()})})(gt[Dt]);return}try{return Ve&&(Ve=k({},Oe.defaults,Ve)),Pe.parse(ae.lex(we,Ve),Ve)}catch(cn){if(cn.message+=`
Please report this to https://github.com/markedjs/marked.`,(Ve||Oe.defaults).silent)return"<p>An error occurred:</p><pre>"+pe(cn.message+"",!0)+"</pre>";throw cn}}Oe.options=Oe.setOptions=function(we){return k(Oe.defaults,we),Oe},Oe.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new X,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},Oe.defaults=Oe.getDefaults(),Oe.Parser=Pe,Oe.parser=Pe.parse,Oe.Renderer=X,Oe.TextRenderer=he,Oe.Lexer=ae,Oe.lexer=ae.lex,Oe.InlineLexer=ce,Oe.inlineLexer=ce.output,Oe.Slugger=Xe,Oe.parse=Oe,z=Oe}).call(void 0);var M=z,U=z.Parser,A=z.parser,c=z.Renderer,y=z.TextRenderer,L=z.Lexer,f=z.lexer,v=z.InlineLexer,S=z.inlineLexer,g=z.parse,u,u,s;(function(){function oe(ee,ae,q){function ce(Pe,Xe){if(!ae[Pe]){if(!ee[Pe]){var pe=typeof u=="function"&&u;if(!Xe&&pe)return u(Pe,!0);if(X)return X(Pe,!0);var me=new Error("Cannot find module '"+Pe+"'");throw me.code="MODULE_NOT_FOUND",me}var Se=ae[Pe]={exports:{}};ee[Pe][0].call(Se.exports,function(Re){var Ee=ee[Pe][1][Re];return ce(Ee||Re)},Se,Se.exports,oe,ee,ae,q)}return ae[Pe].exports}for(var X=typeof u=="function"&&u,he=0;he<q.length;he++)ce(q[he]);return ce}return oe})()({1:[function(oe,ee,ae){"use strict";var q=oe("./toMap"),ce=["background","base","cite","href","longdesc","src","usemap"];ee.exports={uris:q(ce)}},{"./toMap":10}],2:[function(oe,ee,ae){"use strict";var q={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null};ee.exports=q},{}],3:[function(oe,ee,ae){"use strict";var q=oe("./toMap"),ce=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"];ee.exports={voids:q(ce)}},{"./toMap":10}],4:[function(oe,ee,ae){"use strict";var q=oe("he"),ce=oe("assignment"),X=oe("./parser"),he=oe("./sanitizer"),Pe=oe("./defaults");function Xe(pe,me,Se){var Re=[],Ee=Se===!0?me:ce({},Pe,me),ve=he(Re,Ee);return X(pe,ve),Re.join("")}Xe.defaults=Pe,ee.exports=Xe,s=Xe},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(oe,ee,ae){"use strict";ee.exports=function(ce){return typeof ce=="string"?ce.toLowerCase():ce}},{}],6:[function(oe,ee,ae){"use strict";function q(ce){for(var X=Array.prototype.slice.call(arguments,1),he,Pe;X.length;){he=X.shift();for(Pe in he)he.hasOwnProperty(Pe)&&(Object.prototype.toString.call(ce[Pe])==="[object Object]"?ce[Pe]=q(ce[Pe],he[Pe]):ce[Pe]=he[Pe])}return ce}ee.exports=q},{}],7:[function(oe,ee,ae){"use strict";var q=oe("he"),ce=oe("./lowercase"),X=oe("./attributes"),he=oe("./elements"),Pe=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,Xe=/^<\s*\/\s*([\w:-]+)[^>]*>/,pe=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,me=/^</,Se=/^<\s*\//;function Re(){var ve=[];return ve.lastItem=function(){return ve[ve.length-1]},ve}function Ee(ve,Q){for(var b=Re(),k=ve,se;ve;)ne();it();function ne(){se=!0,Ce();var gt=ve===k;k=ve,gt&&(ve="")}function Ce(){ve.substr(0,4)==="<!--"?we():Se.test(ve)?Oe(Xe,it):me.test(ve)&&Oe(Pe,Qe),Ve()}function Oe(gt,Rt){var Dt=ve.match(gt);Dt&&(ve=ve.substring(Dt[0].length),Dt[0].replace(gt,Rt),se=!1)}function we(){var gt=ve.indexOf("-->");gt>=0&&(Q.comment&&Q.comment(ve.substring(4,gt)),ve=ve.substring(gt+3),se=!1)}function Ve(){if(!se)return;var gt,Rt=ve.indexOf("<");Rt>=0?(gt=ve.substring(0,Rt),ve=ve.substring(Rt)):(gt=ve,ve=""),Q.chars&&Q.chars(gt)}function Qe(gt,Rt,Dt,zt){var cn={},ln=ce(Rt),an=he.voids[ln]||!!zt;Dt.replace(pe,jt),an||b.push(ln),Q.start&&Q.start(ln,cn,an);function jt(ft,vt,xt,at,tt){xt===void 0&&at===void 0&&tt===void 0?cn[vt]=void 0:cn[vt]=q.decode(xt||at||tt||"")}}function it(gt,Rt){var Dt,zt=0,cn=ce(Rt);if(cn)for(zt=b.length-1;zt>=0&&!(b[zt]===cn);zt--);if(zt>=0){for(Dt=b.length-1;Dt>=zt;Dt--)Q.end&&Q.end(b[Dt]);b.length=zt}}}ee.exports=Ee},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(oe,ee,ae){"use strict";var q=oe("he"),ce=oe("./lowercase"),X=oe("./attributes"),he=oe("./elements");function Pe(Xe,pe){var me,Se,Re=pe||{};return Ce(),{start:ve,end:Q,chars:k};function Ee(Oe){Xe.push(Oe)}function ve(Oe,we,Ve){var Qe=ce(Oe);if(Se.ignoring){se(Qe);return}if((Re.allowedTags||[]).indexOf(Qe)===-1){se(Qe);return}if(Re.filter&&!Re.filter({tag:Qe,attrs:we})){se(Qe);return}Ee("<"),Ee(Qe),Object.keys(we).forEach(it),Ee(Ve?"/>":">");function it(gt){var Rt=we[gt],Dt=(Re.allowedClasses||{})[Qe]||[],zt=(Re.allowedAttributes||{})[Qe]||[];zt=zt.concat((Re.allowedAttributes||{})["*"]||[]);var cn,ln=ce(gt);ln==="class"&&zt.indexOf(ln)===-1?(Rt=Rt.split(" ").filter(an).join(" ").trim(),cn=Rt.length):cn=zt.indexOf(ln)!==-1&&(X.uris[ln]!==!0||b(Rt)),cn&&(Ee(" "),Ee(gt),typeof Rt=="string"&&(Ee('="'),Ee(q.encode(Rt)),Ee('"')));function an(jt){return Dt&&Dt.indexOf(jt)!==-1}}}function Q(Oe){var we=ce(Oe),Ve=(Re.allowedTags||[]).indexOf(we)!==-1;Ve&&Se.ignoring===!1?(Ee("</"),Ee(we),Ee(">")):ne(we)}function b(Oe){var we=Oe[0];if(we==="#"||we==="/")return!0;var Ve=Oe.indexOf(":");if(Ve===-1)return!0;var Qe=Oe.indexOf("?");if(Qe!==-1&&Ve>Qe)return!0;var it=Oe.indexOf("#");if(it!==-1&&Ve>it)return!0;return Re.allowedSchemes.some(gt);function gt(Rt){return Oe.indexOf(Rt+":")===0}}function k(Oe){Se.ignoring===!1&&Ee(Re.transformText?Re.transformText(Oe):Oe)}function se(Oe){if(he.voids[Oe])return;Se.ignoring===!1?Se={ignoring:Oe,depth:1}:Se.ignoring===Oe&&Se.depth++}function ne(Oe){Se.ignoring===Oe&&(--Se.depth<=0&&Ce())}function Ce(){Se={ignoring:!1,depth:0}}}ee.exports=Pe},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(oe,ee,ae){"use strict";var q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ce={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},X=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,he=/[&<>"']/g;function Pe(Se){return q[Se]}function Xe(Se){return ce[Se]}function pe(Se){return Se==null?"":String(Se).replace(he,Pe)}function me(Se){return Se==null?"":String(Se).replace(X,Xe)}pe.options=me.options={},ee.exports={encode:pe,escape:pe,decode:me,unescape:me,version:"1.0.0-browser"}},{}],10:[function(oe,ee,ae){"use strict";function q(X){return X.reduce(ce,{})}function ce(X,he){return X[he]=!0,X}ee.exports=q},{}]},{},[4]);var l=s,d=e("Q4rV"),p=e("qj0h"),E=e("N0LK"),_=e("bY76"),x=e("tYmi"),F=e("Vhoy");function R(oe,ee){ee===void 0&&(ee={});var ae=Object(re.a)(ee),q=function(Ee){var ve;try{ve=Object(d.a)(decodeURIComponent(Ee))}catch(Q){}return ve?(ve=Object(p.b)(ve,function(Q){return oe.uris&&oe.uris[Q]?_.a.revive(oe.uris[Q]):void 0}),encodeURIComponent(JSON.stringify(ve))):Ee},ce=function(Ee,ve){var Q=oe.uris&&oe.uris[Ee];if(!Q)return Ee;var b=_.a.revive(Q);return _.a.parse(Ee).toString()===b.toString()?Ee:(ve&&(b=T.s(b)),b.query&&(b=b.with({query:q(b.query)})),b.toString(!0))},X,he=new Promise(function(Re){return X=Re}),Pe=new c;Pe.image=function(Re,Ee,ve){var Q,b=[],k=[];return Re&&(Q=Object(N.d)(Re),Re=Q.href,b=Q.dimensions,Re=ce(Re,!0),k.push('src="'+Re+'"')),ve&&k.push('alt="'+ve+'"'),Ee&&k.push('title="'+Ee+'"'),b.length&&(k=k.concat(b)),"<img "+k.join(" ")+">"},Pe.link=function(Re,Ee,ve){return Re===ve&&(ve=Object(N.e)(ve)),Re=ce(Re,!1),Ee=Object(N.e)(Ee),Re=Object(N.e)(Re),!Re||Re.match(/^data:|javascript:/i)||Re.match(/^command:/i)&&!oe.isTrusted||Re.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?ve:(Re=Re.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),'<a href="#" data-href="'+Re+'" title="'+(Ee||Re)+'">'+ve+"</a>")},Pe.paragraph=function(Re){return"<p>"+(oe.supportThemeIcons?Object(F.c)(Re):Re)+"</p>"},ee.codeBlockRenderer&&(Pe.code=function(Re,Ee){var ve=ee.codeBlockRenderer(Ee,Re),Q=H.b.nextId(),b=Promise.all([ve,he]).then(function(k){var se=k[0],ne=ae.querySelector('div[data-code="'+Q+'"]');ne&&(ne.innerHTML=se)}).catch(function(k){});return ee.codeBlockRenderCallback&&b.then(ee.codeBlockRenderCallback),'<div class="code" data-code="'+Q+'">'+Object(E.o)(Re)+"</div>"});var Xe=ee.actionHandler;Xe&&Xe.disposeables.add(T.o(ae,"click",function(Re){var Ee=Re.target;if(Ee.tagName!=="A"&&(Ee=Ee.parentElement,!Ee||Ee.tagName!=="A"))return;try{var ve=Ee.dataset.href;ve&&Xe.callback(ve,Re)}catch(Q){Object(J.e)(Q)}finally{Re.preventDefault()}}));var pe={sanitize:!0,renderer:Pe},me=[x.b.http,x.b.https,x.b.mailto,x.b.data,x.b.file,x.b.vscodeRemote,x.b.vscodeRemoteResource];oe.isTrusted&&me.push(x.b.command);var Se=g(oe.supportThemeIcons?Object(F.b)(oe.value):oe.value,pe);return ae.innerHTML=l(Se,{allowedSchemes:me,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),X(),ae}var $=e("W9cx"),ie=e("WBhO"),W=e("TQUy"),B=e("Cg/j"),le=e("MI8n"),be=e("pmY6"),De=e("twdY"),Te=function(){var oe=function(ae,q){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,X){ce.__proto__=X}||function(ce,X){for(var he in X)X.hasOwnProperty(he)&&(ce[he]=X[he])},oe(ae,q)};return function(ee,ae){oe(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),ke=function(oe,ee,ae,q){var ce=arguments.length,X=ce<3?ee:q===null?q=Object.getOwnPropertyDescriptor(ee,ae):q,he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")X=Reflect.decorate(oe,ee,ae,q);else for(var Pe=oe.length-1;Pe>=0;Pe--)(he=oe[Pe])&&(X=(ce<3?he(X):ce>3?he(ee,ae,X):he(ee,ae))||X);return ce>3&&X&&Object.defineProperty(ee,ae,X),X},He=function(oe,ee){return function(ae,q){ee(ae,q,oe)}},je=function(oe){Te(ee,oe);function ee(ae,q,ce){ce===void 0&&(ce=$.b);var X=oe.call(this)||this;return X._editor=ae,X._modeService=q,X._openerService=ce,X._onDidRenderCodeBlock=X._register(new le.a),X.onDidRenderCodeBlock=X._onDidRenderCodeBlock.event,X}return ee.prototype.getOptions=function(ae){var q=this;return{codeBlockRenderer:function(X,he){var Pe=null;if(X)Pe=q._modeService.getModeIdForLanguageName(X);else{var Xe=q._editor.getModel();Xe&&(Pe=Xe.getLanguageIdentifier().language)}return q._modeService.triggerMode(Pe||""),Promise.resolve(!0).then(function(pe){var me=De.B.getPromise(Pe||"");return me?me.then(function(Se){return Object(W.b)(he,Se)}):Object(W.b)(he,void 0)}).then(function(pe){return'<span style="font-family: '+q._editor.getOption(34).fontFamily+'">'+pe+"</span>"})},codeBlockRenderCallback:function(){return q._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(X){q._openerService.open(X,{fromUserGesture:!0}).catch(J.e)},disposeables:ae}}},ee.prototype.render=function(ae){var q=new be.b,ce;return ae?ce=R(ae,this.getOptions(q)):ce=document.createElement("span"),{element:ce,dispose:function(){return q.dispose()}}},ee=ke([He(1,ie.a),He(2,Object(B.d)($.a))],ee),ee}(be.a)},"3rx1":function(_t,P,e){"use strict";e.d(P,"b",function(){return M}),e.d(P,"a",function(){return U}),e.d(P,"c",function(){return c});var T=e("bY76"),re=e("MrjW"),J=e("N0LK"),N=e("tYmi"),H=e("MNsG"),z=e("gslv");function M(f,v,S){if(typeof f=="string"&&(f=T.a.file(f)),S){var g=S.getWorkspaceFolder(f);if(g){var u=S.getWorkspace().folders.length>1,s=void 0;if(Object(z.e)(g.uri,f)?s="":s=Object(z.h)(g.uri,f),u){var l=g.name?g.name:Object(z.b)(g.uri);s=s?l+" \u2022 "+s:l}return s}}if(f.scheme!==N.b.file&&f.scheme!==N.b.untitled)return f.with({query:null,fragment:null}).toString(!0);if(A(f.fsPath))return Object(re.normalize)(c(f.fsPath));var d=Object(re.normalize)(f.fsPath);return!H.h&&v&&(d=L(d,v.userHome)),d}function U(f){if(!f)return;typeof f=="string"&&(f=T.a.file(f));var v=Object(z.b)(f)||(f.scheme===N.b.file?f.fsPath:f.path);return A(v)?c(v):v}function A(f){return!!(H.h&&f&&f[1]===":")}function c(f){return A(f)?f.charAt(0).toUpperCase()+f.slice(1):f}var y=Object.create(null);function L(f,v){if(H.h||!f||!v)return f;var S=y.original===v?y.normalized:void 0;return S||(S=""+Object(J.K)(v,re.posix.sep)+re.posix.sep,y={original:v,normalized:S}),(H.d?Object(J.N)(f,S):Object(J.O)(f,S))&&(f="~/"+f.substr(S.length)),f}},"4bUh":function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("twdY"),re=function(){function N(H,z){this._tokens=H,this._tokensCount=this._tokens.length>>>1,this._text=z}return N.prototype.equals=function(H){return H instanceof N?this.slicedEquals(H,0,this._tokensCount):!1},N.prototype.slicedEquals=function(H,z,M){if(this._text!==H._text)return!1;if(this._tokensCount!==H._tokensCount)return!1;for(var U=z<<1,A=U+(M<<1),c=U;c<A;c++)if(this._tokens[c]!==H._tokens[c])return!1;return!0},N.prototype.getLineContent=function(){return this._text},N.prototype.getCount=function(){return this._tokensCount},N.prototype.getStartOffset=function(H){return H>0?this._tokens[H-1<<1]:0},N.prototype.getMetadata=function(H){var z=this._tokens[(H<<1)+1];return z},N.prototype.getLanguageId=function(H){var z=this._tokens[(H<<1)+1];return T.A.getLanguageId(z)},N.prototype.getStandardTokenType=function(H){var z=this._tokens[(H<<1)+1];return T.A.getTokenType(z)},N.prototype.getForeground=function(H){var z=this._tokens[(H<<1)+1];return T.A.getForeground(z)},N.prototype.getClassName=function(H){var z=this._tokens[(H<<1)+1];return T.A.getClassNameFromMetadata(z)},N.prototype.getInlineStyle=function(H,z){var M=this._tokens[(H<<1)+1];return T.A.getInlineStyleFromMetadata(M,z)},N.prototype.getEndOffset=function(H){return this._tokens[H<<1]},N.prototype.findTokenIndexAtOffset=function(H){return N.findIndexInTokensArray(this._tokens,H)},N.prototype.inflate=function(){return this},N.prototype.sliceAndInflate=function(H,z,M){return new J(this,H,z,M)},N.convertToEndOffset=function(H,z){for(var M=H.length>>>1,U=M-1,A=0;A<U;A++)H[A<<1]=H[A+1<<1];H[U<<1]=z},N.findIndexInTokensArray=function(H,z){if(H.length<=2)return 0;for(var M=0,U=(H.length>>>1)-1;M<U;){var A=M+Math.floor((U-M)/2),c=H[A<<1];if(c===z)return A+1;c<z?M=A+1:c>z&&(U=A)}return M},N}(),J=function(){function N(H,z,M,U){this._source=H,this._startOffset=z,this._endOffset=M,this._deltaOffset=U,this._firstTokenIndex=H.findTokenIndexAtOffset(z),this._tokensCount=0;for(var A=this._firstTokenIndex,c=H.getCount();A<c;A++){var y=H.getStartOffset(A);if(y>=M)break;this._tokensCount++}}return N.prototype.equals=function(H){return H instanceof N?this._startOffset===H._startOffset&&this._endOffset===H._endOffset&&this._deltaOffset===H._deltaOffset&&this._source.slicedEquals(H._source,this._firstTokenIndex,this._tokensCount):!1},N.prototype.getCount=function(){return this._tokensCount},N.prototype.getForeground=function(H){return this._source.getForeground(this._firstTokenIndex+H)},N.prototype.getEndOffset=function(H){var z=this._source.getEndOffset(this._firstTokenIndex+H);return Math.min(this._endOffset,z)-this._startOffset+this._deltaOffset},N.prototype.getClassName=function(H){return this._source.getClassName(this._firstTokenIndex+H)},N.prototype.getInlineStyle=function(H,z){return this._source.getInlineStyle(this._firstTokenIndex+H,z)},N.prototype.findTokenIndexAtOffset=function(H){return this._source.findTokenIndexAtOffset(H+this._startOffset-this._deltaOffset)-this._firstTokenIndex},N}()},"4rho":function(_t,P,e){},"4sI4":function(_t,P,e){"use strict";e.r(P),e.d(P,"StandaloneReferencesController",function(){return L});var T=e("sswD"),re=e("Vxe3"),J=e("QY8A"),N=e("+7oY"),H=e("T8No"),z=e("Cg/j"),M=e("sM1p"),U=e("A+jI"),A=function(){var f=function(S,g){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,s){u.__proto__=s}||function(u,s){for(var l in s)s.hasOwnProperty(l)&&(u[l]=s[l])},f(S,g)};return function(v,S){f(v,S);function g(){this.constructor=v}v.prototype=S===null?Object.create(S):(g.prototype=S.prototype,new g)}}(),c=function(f,v,S,g){var u=arguments.length,s=u<3?v:g===null?g=Object.getOwnPropertyDescriptor(v,S):g,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(f,v,S,g);else for(var d=f.length-1;d>=0;d--)(l=f[d])&&(s=(u<3?l(s):u>3?l(v,S,s):l(v,S))||s);return u>3&&s&&Object.defineProperty(v,S,s),s},y=function(f,v){return function(S,g){v(S,g,f)}},L=function(f){A(v,f);function v(S,g,u,s,l,d,p){return f.call(this,!0,S,g,u,s,l,d,p)||this}return v=c([y(1,H.c),y(2,re.a),y(3,M.a),y(4,z.a),y(5,U.a),y(6,N.a)],v),v}(J.a);Object(T.h)(J.a.ID,L)},"4y0V":function(_t,P,e){"use strict";e.d(P,"a",function(){return re}),e.d(P,"b",function(){return J});var T=e("MI8n"),re=function(H,z,M){var U=function(y){return A.fire(y)},A=new T.a({onFirstListenerAdd:function(){H.addEventListener(z,U,M)},onLastListenerRemove:function(){H.removeEventListener(z,U,M)}});return A.event};function J(N){return T.b.map(N,function(H){return H.preventDefault(),H.stopPropagation(),H})}},"51B1":function(_t,P,e){},"51f4":function(_t,P,e){"use strict";e.d(P,"a",function(){return H});var T=!1,re=null;function J(z){if(!z.parent||z.parent===z)return null;try{var M=z.location,U=z.parent.location;if(M.protocol!==U.protocol||M.hostname!==U.hostname||M.port!==U.port)return T=!0,null}catch(A){return T=!0,null}return z.parent}function N(z,M){for(var U=z.document.getElementsByTagName("iframe"),A,c=0,y=U.length;c<y;c++)if(A=U[c],A.contentWindow===M)return A;return null}var H=function(){function z(){}return z.getSameOriginWindowChain=function(){if(!re){re=[];var M=window,U;do U=J(M),U?re.push({window:M,iframeElement:N(U,M)}):re.push({window:M,iframeElement:null}),M=U;while(M)}return re.slice(0)},z.hasDifferentOriginAncestor=function(){return re||this.getSameOriginWindowChain(),T},z.getPositionOfChildWindowRelativeToAncestorWindow=function(M,U){if(!U||M===U)return{top:0,left:0};for(var A=0,c=0,y=this.getSameOriginWindowChain(),L=0,f=y;L<f.length;L++){var v=f[L];if(v.window===U)break;if(!v.iframeElement)break;var S=v.iframeElement.getBoundingClientRect();A+=S.top,c+=S.left}return{top:A,left:c}},z}()},"5DEy":function(_t,P,e){},"5RaG":function(_t,P,e){"use strict";e.r(P),e.d(P,"CursorUndoRedoController",function(){return U}),e.d(P,"CursorUndo",function(){return A}),e.d(P,"CursorRedo",function(){return c});var T=e("3/fG"),re=e("pmY6"),J=e("sswD"),N=e("wQH0"),H=function(){var y=function(f,v){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,g){S.__proto__=g}||function(S,g){for(var u in g)g.hasOwnProperty(u)&&(S[u]=g[u])},y(f,v)};return function(L,f){y(L,f);function v(){this.constructor=L}L.prototype=f===null?Object.create(f):(v.prototype=f.prototype,new v)}}(),z=function(){function y(L){this.selections=L}return y.prototype.equals=function(L){var f=this.selections.length,v=L.selections.length;if(f!==v)return!1;for(var S=0;S<f;S++)if(!this.selections[S].equalsSelection(L.selections[S]))return!1;return!0},y}(),M=function(){function y(L,f,v){this.cursorState=L,this.scrollTop=f,this.scrollLeft=v}return y}(),U=function(y){H(L,y);function L(f){var v=y.call(this)||this;return v._editor=f,v._isCursorUndoRedo=!1,v._undoStack=[],v._redoStack=[],v._register(f.onDidChangeModel(function(S){v._undoStack=[],v._redoStack=[]})),v._register(f.onDidChangeModelContent(function(S){v._undoStack=[],v._redoStack=[]})),v._register(f.onDidChangeCursorSelection(function(S){if(v._isCursorUndoRedo)return;if(!S.oldSelections)return;if(S.oldModelVersionId!==S.modelVersionId)return;var g=new z(S.oldSelections),u=v._undoStack.length>0&&v._undoStack[v._undoStack.length-1].cursorState.equals(g);u||(v._undoStack.push(new M(g,f.getScrollTop(),f.getScrollLeft())),v._redoStack=[],v._undoStack.length>50&&v._undoStack.shift())})),v}return L.get=function(f){return f.getContribution(L.ID)},L.prototype.cursorUndo=function(){if(!this._editor.hasModel()||this._undoStack.length===0)return;this._redoStack.push(new M(new z(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop())},L.prototype.cursorRedo=function(){if(!this._editor.hasModel()||this._redoStack.length===0)return;this._undoStack.push(new M(new z(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop())},L.prototype._applyState=function(f){this._isCursorUndoRedo=!0,this._editor.setSelections(f.cursorState.selections),this._editor.setScrollPosition({scrollTop:f.scrollTop,scrollLeft:f.scrollLeft}),this._isCursorUndoRedo=!1},L.ID="editor.contrib.cursorUndoRedoController",L}(re.a),A=function(y){H(L,y);function L(){return y.call(this,{id:"cursorUndo",label:T.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:N.a.textInputFocus,primary:2048|51,weight:100}})||this}return L.prototype.run=function(f,v,S){U.get(v).cursorUndo()},L}(J.b),c=function(y){H(L,y);function L(){return y.call(this,{id:"cursorRedo",label:T.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})||this}return L.prototype.run=function(f,v,S){U.get(v).cursorRedo()},L}(J.b);Object(J.h)(U.ID,U),Object(J.f)(A),Object(J.f)(c)},"5TxY":function(_t,P,e){"use strict";e.d(P,"a",function(){return L}),e.d(P,"b",function(){return v});var T=e("D3Dy"),re=e("EffR"),J=e("X+cX"),N=e("MI8n"),H=e("pmY6"),z=e("MNsG"),M=e("N0LK"),U=e("Comh"),A=e("gCVg"),c=e("CjF5"),y=function(){var u=function(l,d){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,E){p.__proto__=E}||function(p,E){for(var _ in E)E.hasOwnProperty(_)&&(p[_]=E[_])},u(l,d)};return function(s,l){u(s,l);function d(){this.constructor=s}s.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),L={forceCopyWithSyntaxHighlighting:!1},f=function(){function u(){this._lastState=null}return u.prototype.set=function(s,l){this._lastState={lastCopiedValue:s,data:l}},u.prototype.get=function(s){return this._lastState&&this._lastState.lastCopiedValue===s?this._lastState.data:(this._lastState=null,null)},u.INSTANCE=new u,u}(),v=function(u){y(s,u);function s(l,d){var p=u.call(this)||this;p.textArea=d,p._onFocus=p._register(new N.a),p.onFocus=p._onFocus.event,p._onBlur=p._register(new N.a),p.onBlur=p._onBlur.event,p._onKeyDown=p._register(new N.a),p.onKeyDown=p._onKeyDown.event,p._onKeyUp=p._register(new N.a),p.onKeyUp=p._onKeyUp.event,p._onCut=p._register(new N.a),p.onCut=p._onCut.event,p._onPaste=p._register(new N.a),p.onPaste=p._onPaste.event,p._onType=p._register(new N.a),p.onType=p._onType.event,p._onCompositionStart=p._register(new N.a),p.onCompositionStart=p._onCompositionStart.event,p._onCompositionUpdate=p._register(new N.a),p.onCompositionUpdate=p._onCompositionUpdate.event,p._onCompositionEnd=p._register(new N.a),p.onCompositionEnd=p._onCompositionEnd.event,p._onSelectionChangeRequest=p._register(new N.a),p.onSelectionChangeRequest=p._onSelectionChangeRequest.event,p._host=l,p._textArea=p._register(new g(d)),p._asyncTriggerCut=p._register(new J.d(function(){return p._onCut.fire()},0)),p._textAreaState=U.b.EMPTY,p._selectionChangeListener=null,p.writeScreenReaderContent("ctor"),p._hasFocus=!1,p._isDoingComposition=!1,p._nextCommand=0,p._register(re.o(d.domNode,"keydown",function(F){p._isDoingComposition&&(F.keyCode===109||F.keyCode===1)&&F.stopPropagation(),F.equals(9)&&F.preventDefault(),p._onKeyDown.fire(F)})),p._register(re.o(d.domNode,"keyup",function(F){p._onKeyUp.fire(F)})),p._register(re.j(d.domNode,"compositionstart",function(F){if(p._isDoingComposition)return;p._isDoingComposition=!0,T.f||p._setAndWriteTextAreaState("compositionstart",U.b.EMPTY),p._onCompositionStart.fire()}));var E=function(R){var $=p._textAreaState,ie=U.b.readFromTextArea(p._textArea);return[ie,U.b.deduceInput($,ie,R)]},_=function(R){var $=p._textAreaState,ie=U.b.selectedText(R),W={text:ie.value,replaceCharCnt:$.selectionEnd-$.selectionStart};return[ie,W]},x=function(R){return T.f&&R==="ja"?!0:!!(T.i&&R.indexOf("zh-Han")===0)};return p._register(re.j(d.domNode,"compositionupdate",function(F){if(x(F.locale)){var R=E(!1),$=R[0],ie=R[1];p._textAreaState=$,p._onType.fire(ie),p._onCompositionUpdate.fire(F);return}var W=_(F.data),B=W[0],le=W[1];p._textAreaState=B,p._onType.fire(le),p._onCompositionUpdate.fire(F)})),p._register(re.j(d.domNode,"compositionend",function(F){if(!p._isDoingComposition)return;if(x(F.locale)){var R=E(!1),$=R[0],ie=R[1];p._textAreaState=$,p._onType.fire(ie)}else{var W=_(F.data),$=W[0],ie=W[1];p._textAreaState=$,p._onType.fire(ie)}if((T.f||T.d)&&(p._textAreaState=U.b.readFromTextArea(p._textArea)),!p._isDoingComposition)return;p._isDoingComposition=!1,p._onCompositionEnd.fire()})),p._register(re.j(d.domNode,"input",function(){if(p._textArea.setIgnoreSelectionChangeTime("received input event"),p._isDoingComposition)return;var F=E(z.e),R=F[0],$=F[1];if($.replaceCharCnt===0&&$.text.length===1&&M.z($.text.charCodeAt(0)))return;p._textAreaState=R,p._nextCommand===0?$.text!==""&&p._onType.fire($):(($.text!==""||$.replaceCharCnt!==0)&&p._firePaste($.text,null),p._nextCommand=0)})),p._register(re.j(d.domNode,"cut",function(F){p._textArea.setIgnoreSelectionChangeTime("received cut event"),p._ensureClipboardGetsEditorSelection(F),p._asyncTriggerCut.schedule()})),p._register(re.j(d.domNode,"copy",function(F){p._ensureClipboardGetsEditorSelection(F)})),p._register(re.j(d.domNode,"paste",function(F){if(p._textArea.setIgnoreSelectionChangeTime("received paste event"),S.canUseTextData(F)){var R=S.getTextData(F),$=R[0],ie=R[1];$!==""&&p._firePaste($,ie)}else p._textArea.getSelectionStart()!==p._textArea.getSelectionEnd()&&p._setAndWriteTextAreaState("paste",U.b.EMPTY),p._nextCommand=1})),p._register(re.j(d.domNode,"focus",function(){p._setHasFocus(!0)})),p._register(re.j(d.domNode,"blur",function(){p._setHasFocus(!1)})),p}return s.prototype._installSelectionChangeListener=function(){var l=this,d=0;return re.j(document,"selectionchange",function(p){if(!l._hasFocus)return;if(l._isDoingComposition)return;if(!T.d||!z.h)return;var E=Date.now(),_=E-d;if(d=E,_<5)return;var x=E-l._textArea.getIgnoreSelectionChangeTime();if(l._textArea.resetSelectionChangeTime(),x<100)return;if(!l._textAreaState.selectionStartPosition||!l._textAreaState.selectionEndPosition)return;var F=l._textArea.getValue();if(l._textAreaState.value!==F)return;var R=l._textArea.getSelectionStart(),$=l._textArea.getSelectionEnd();if(l._textAreaState.selectionStart===R&&l._textAreaState.selectionEnd===$)return;var ie=l._textAreaState.deduceEditorPosition(R),W=l._host.deduceModelPosition(ie[0],ie[1],ie[2]),B=l._textAreaState.deduceEditorPosition($),le=l._host.deduceModelPosition(B[0],B[1],B[2]),be=new A.a(W.lineNumber,W.column,le.lineNumber,le.column);l._onSelectionChangeRequest.fire(be)})},s.prototype.dispose=function(){u.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},s.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},s.prototype.isFocused=function(){return this._hasFocus},s.prototype.refreshFocusState=function(){var l=re.E(this.textArea.domNode);l?this._setHasFocus(l.activeElement===this.textArea.domNode):re.M(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},s.prototype._setHasFocus=function(l){if(this._hasFocus===l)return;this._hasFocus=l,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(T.e?this._setAndWriteTextAreaState("focusgain",U.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire()},s.prototype._setAndWriteTextAreaState=function(l,d){this._hasFocus||(d=d.collapseSelection()),d.writeToTextArea(l,this._textArea,this._hasFocus),this._textAreaState=d},s.prototype.writeScreenReaderContent=function(l){if(this._isDoingComposition)return;this._setAndWriteTextAreaState(l,this._host.getScreenReaderContent(this._textAreaState))},s.prototype._ensureClipboardGetsEditorSelection=function(l){var d=this._host.getDataToCopy(S.canUseTextData(l)&&c.a.clipboard.richText),p={version:1,isFromEmptySelection:d.isFromEmptySelection,multicursorText:d.multicursorText,mode:d.mode};if(f.INSTANCE.set(T.h?d.text.replace(/\r\n/g,`
`):d.text,p),!S.canUseTextData(l)){this._setAndWriteTextAreaState("copy or cut",U.b.selectedText(d.text));return}S.setTextData(l,d.text,d.html,p)},s.prototype._firePaste=function(l,d){d||(d=f.INSTANCE.get(l)),this._onPaste.fire({text:l,metadata:d})},s}(H.a),S=function(){function u(){}return u.canUseTextData=function(s){return s.clipboardData?!0:!!window.clipboardData},u.getTextData=function(s){if(s.clipboardData){s.preventDefault();var l=s.clipboardData.getData("text/plain"),d=null,p=s.clipboardData.getData("vscode-editor-data");if(typeof p=="string")try{d=JSON.parse(p),d.version!==1&&(d=null)}catch(E){}return[l,d]}if(window.clipboardData){s.preventDefault();var l=window.clipboardData.getData("Text");return[l,null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},u.setTextData=function(s,l,d,p){if(s.clipboardData){s.clipboardData.setData("text/plain",l),typeof d=="string"&&s.clipboardData.setData("text/html",d),s.clipboardData.setData("vscode-editor-data",JSON.stringify(p)),s.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",l),s.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},u}(),g=function(u){y(s,u);function s(l){var d=u.call(this)||this;return d._actual=l,d._ignoreSelectionChangeTime=0,d}return s.prototype.setIgnoreSelectionChangeTime=function(l){this._ignoreSelectionChangeTime=Date.now()},s.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},s.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},s.prototype.getValue=function(){return this._actual.domNode.value},s.prototype.setValue=function(l,d){var p=this._actual.domNode;if(p.value===d)return;this.setIgnoreSelectionChangeTime("setValue"),p.value=d},s.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},s.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},s.prototype.setSelectionRange=function(l,d,p){var E=this._actual.domNode,_=null,x=re.E(E);x?_=x.activeElement:_=document.activeElement;var F=_===E,R=E.selectionStart,$=E.selectionEnd;if(F&&R===d&&$===p){T.h&&window.parent!==window&&E.focus();return}if(F){this.setIgnoreSelectionChangeTime("setSelectionRange"),E.setSelectionRange(d,p),T.h&&window.parent!==window&&E.focus();return}try{var ie=re.V(E);this.setIgnoreSelectionChangeTime("setSelectionRange"),E.focus(),E.setSelectionRange(d,p),re.T(E,ie)}catch(W){}},s}(H.a)},"5Y4S":function(_t,P,e){"use strict";e.d(P,"a",function(){return J});var T=e("MNsG"),re=T.b.performance&&typeof T.b.performance.now=="function",J=function(){function N(H){this._highResolution=re&&H,this._startTime=this._now(),this._stopTime=-1}return N.create=function(H){return H===void 0&&(H=!0),new N(H)},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?T.b.performance.now():new Date().getTime()},N}()},"5v8Y":function(_t,P,e){"use strict";e.d(P,"a",function(){return H});var T=e("MXAL"),re=function(){var z=function(U,A){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,y){c.__proto__=y}||function(c,y){for(var L in y)y.hasOwnProperty(L)&&(c[L]=y[L])},z(U,A)};return function(M,U){z(M,U);function A(){this.constructor=M}M.prototype=U===null?Object.create(U):(A.prototype=U.prototype,new A)}}(),J=function(z){re(M,z);function M(U){for(var A=z.call(this,0)||this,c=0,y=U.length;c<y;c++)A.set(U.charCodeAt(c),2);return A.set(32,1),A.set(9,1),A}return M}(T.a);function N(z){var M={};return function(U){return M.hasOwnProperty(U)||(M[U]=z(U)),M[U]}}var H=N(function(z){return new J(z)})},"62hx":function(_t,P,e){},"6OMU":function(_t,P,e){"use strict";e.d(P,"v",function(){return T}),e.d(P,"w",function(){return re}),e.d(P,"g",function(){return J}),e.d(P,"c",function(){return N}),e.d(P,"i",function(){return H}),e.d(P,"r",function(){return z}),e.d(P,"o",function(){return A}),e.d(P,"d",function(){return c}),e.d(P,"p",function(){return y}),e.d(P,"q",function(){return L}),e.d(P,"e",function(){return f}),e.d(P,"f",function(){return v}),e.d(P,"n",function(){return S}),e.d(P,"k",function(){return g}),e.d(P,"j",function(){return u}),e.d(P,"l",function(){return s}),e.d(P,"m",function(){return l}),e.d(P,"u",function(){return d}),e.d(P,"a",function(){return p}),e.d(P,"t",function(){return E}),e.d(P,"s",function(){return _}),e.d(P,"h",function(){return x}),e.d(P,"b",function(){return F});function T(R,$){return $===void 0&&($=0),R[R.length-(1+$)]}function re(R){if(R.length===0)throw new Error("Invalid tail call");return[R.slice(0,R.length-1),R[R.length-1]]}function J(R,$,ie){if(ie===void 0&&(ie=function(be,De){return be===De}),R===$)return!0;if(!R||!$)return!1;if(R.length!==$.length)return!1;for(var W=0,B=R.length;W<B;W++)if(!ie(R[W],$[W]))return!1;return!0}function N(R,$,ie){for(var W=0,B=R.length-1;W<=B;){var le=(W+B)/2|0,be=ie(R[le],$);if(be<0)W=le+1;else if(be>0)B=le-1;else return le}return-(W+1)}function H(R,$){var ie=0,W=R.length;if(W===0)return 0;for(;ie<W;){var B=Math.floor((ie+W)/2);$(R[B])?W=B:ie=B+1}return ie}function z(R,$){return U(R,$,0,R.length-1,[]),R}function M(R,$,ie,W,B,le){for(var be=ie,De=W+1,Te=ie;Te<=B;Te++)le[Te]=R[Te];for(var Te=ie;Te<=B;Te++)be>W?R[Te]=le[De++]:De>B?R[Te]=le[be++]:$(le[De],le[be])<0?R[Te]=le[De++]:R[Te]=le[be++]}function U(R,$,ie,W,B){if(W<=ie)return;var le=ie+(W-ie)/2|0;if(U(R,$,ie,le,B),U(R,$,le+1,W,B),$(R[le],R[le+1])<=0)return;M(R,$,ie,le,W,B)}function A(R,$){for(var ie=[],W=void 0,B=0,le=z(R.slice(0),$);B<le.length;B++){var be=le[B];!W||$(W[0],be)!==0?(W=[be],ie.push(W)):W.push(be)}return ie}function c(R){return R.filter(function($){return!!$})}function y(R){return!Array.isArray(R)||R.length===0}function L(R){return Array.isArray(R)&&R.length>0}function f(R,$){if(!$)return R.filter(function(W,B){return R.indexOf(W)===B});var ie=Object.create(null);return R.filter(function(W){var B=$(W);return ie[B]?!1:(ie[B]=!0,!0)})}function v(R){var $=new Set;return R.filter(function(ie){return $.has(ie)?!1:($.add(ie),!0)})}function S(R){var $=[];return R.forEach(function(ie){return $.push(ie)}),$}function g(R,$){for(var ie=0;ie<R.length;ie++){var W=R[ie];if($(W))return ie}return-1}function u(R,$,ie){ie===void 0&&(ie=void 0);var W=g(R,$);return W<0?ie:R[W]}function s(R,$){return R.length>0?R[0]:$}function l(R){var $;return($=[]).concat.apply($,R)}function d(R,$){var ie=typeof $=="number"?R:0;typeof $=="number"?ie=R:(ie=0,$=R);var W=[];if(ie<=$)for(var B=ie;B<$;B++)W.push(B);else for(var B=ie;B>$;B--)W.push(B);return W}function p(R,$,ie){var W=R.slice(0,$),B=R.slice($);return W.concat(ie,B)}function E(R,$){var ie=R.indexOf($);ie>-1&&(R.splice(ie,1),R.unshift($))}function _(R,$){var ie=R.indexOf($);ie>-1&&(R.splice(ie,1),R.push($))}function x(R,$){for(var ie=0;ie<R.length;ie++){var W=R[ie];if($(W,ie,R))return W}return}function F(R){return Array.isArray(R)?R:[R]}},"6lNC":function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return e.e(269).then(e.bind(null,"meXB"))}})},"746U":function(_t,P,e){"use strict";e.d(P,"d",function(){return re}),e.d(P,"j",function(){return J}),e.d(P,"i",function(){return N}),e.d(P,"h",function(){return H}),e.d(P,"e",function(){return z}),e.d(P,"k",function(){return M}),e.d(P,"l",function(){return U}),e.d(P,"a",function(){return A}),e.d(P,"f",function(){return y}),e.d(P,"g",function(){return L}),e.d(P,"m",function(){return f}),e.d(P,"c",function(){return g}),e.d(P,"b",function(){return u}),e.d(P,"n",function(){return s}),e.d(P,"o",function(){return l});var T={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function re(d){return Array.isArray?Array.isArray(d):!!(d&&typeof d.length===T.number&&d.constructor===Array)}function J(d){return typeof d===T.string||d instanceof String}function N(d){return typeof d===T.object&&d!==null&&!Array.isArray(d)&&!(d instanceof RegExp)&&!(d instanceof Date)}function H(d){return(typeof d===T.number||d instanceof Number)&&!isNaN(d)}function z(d){return d===!0||d===!1}function M(d){return typeof d===T.undefined}function U(d){return M(d)||d===null}function A(d,p){if(!d)throw new Error(p?"Unexpected type, expected '"+p+"'":"Unexpected type")}var c=Object.prototype.hasOwnProperty;function y(d){if(!N(d))return!1;for(var p in d)if(c.call(d,p))return!1;return!0}function L(d){return typeof d===T.function}function f(d,p){for(var E=Math.min(d.length,p.length),_=0;_<E;_++)v(d[_],p[_])}function v(d,p){if(J(p)){if(typeof d!==p)throw new Error("argument does not match constraint: typeof "+p)}else if(L(p)){try{if(d instanceof p)return}catch(E){}if(!U(d)&&d.constructor===p)return;if(p.length===1&&p.call(void 0,d)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function S(d){for(var p=[],E=Object.getPrototypeOf(d);Object.prototype!==E;)p=p.concat(Object.getOwnPropertyNames(E)),E=Object.getPrototypeOf(E);return p}function g(d){for(var p=[],E=0,_=S(d);E<_.length;E++){var x=_[E];typeof d[x]=="function"&&p.push(x)}return p}function u(d,p){for(var E=function(ie){return function(){var W=Array.prototype.slice.call(arguments,0);return p(ie,W)}},_={},x=0,F=d;x<F.length;x++){var R=F[x];_[R]=E(R)}return _}function s(d){return d===null?void 0:d}function l(d){return typeof d=="undefined"?null:d}},"79sc":function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("markerDecorationsService")},"7afs":function(_t,P,e){"use strict";e.d(P,"a",function(){return T}),e.d(P,"b",function(){return N});function T(M,U){U===void 0&&(U=0);switch(typeof M){case"object":return M===null?re(349,U):Array.isArray(M)?H(M,U):z(M,U);case"string":return N(M,U);case"boolean":return J(M,U);case"number":return re(M,U);case"undefined":return re(0,937);default:return re(0,617)}}function re(M,U){return(U<<5)-U+M|0}function J(M,U){return re(M?433:863,U)}function N(M,U){U=re(149417,U);for(var A=0,c=M.length;A<c;A++)U=re(M.charCodeAt(A),U);return U}function H(M,U){return U=re(104579,U),M.reduce(function(A,c){return T(c,A)},U)}function z(M,U){return U=re(181387,U),Object.keys(M).sort().reduce(function(A,c){return A=N(c,A),T(M[c],A)},U)}},"7lZ/":function(_t,P,e){"use strict";e.d(P,"a",function(){return N});var T=e("qj0h"),re=e("Vhoy"),J=e("N0LK"),N=function(){function H(z,M){this.supportCodicons=M,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",z.appendChild(this.domNode)}return Object.defineProperty(H.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),H.prototype.set=function(z,M,U,A){if(M===void 0&&(M=[]),U===void 0&&(U=""),z||(z=""),A&&(z=H.escapeNewLines(z,M)),this.didEverRender&&this.text===z&&this.title===U&&T.e(this.highlights,M))return;Array.isArray(M)||(M=[]),this.text=z,this.title=U,this.highlights=M,this.render()},H.prototype.render=function(){for(var z="",M=0,U=0,A=this.highlights;U<A.length;U++){var c=A[U];if(c.end===c.start)continue;if(M<c.start){z+="<span>";var y=this.text.substring(M,c.start);z+=this.supportCodicons?Object(re.c)(Object(J.o)(y)):Object(J.o)(y),z+="</span>",M=c.end}c.extraClasses?z+='<span class="highlight '+c.extraClasses+'">':z+='<span class="highlight">';var L=this.text.substring(c.start,c.end);z+=this.supportCodicons?Object(re.c)(Object(J.o)(L)):Object(J.o)(L),z+="</span>",M=c.end}if(M<this.text.length){z+="<span>";var L=this.text.substring(M);z+=this.supportCodicons?Object(re.c)(Object(J.o)(L)):Object(J.o)(L),z+="</span>"}this.domNode.innerHTML=z,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},H.escapeNewLines=function(z,M){var U=0,A=0;return z.replace(/\r\n|\r|\n/g,function(c,y){A=c===`\r
`?-1:0,y+=U;for(var L=0,f=M;L<f.length;L++){var v=f[L];if(v.end<=y)continue;v.start>=y&&(v.start+=A),v.end>=y&&(v.end+=A)}return U+=A,"\u23CE"})},H}()},"7zd4":function(_t,P,e){},"8ATB":function(_t,P,e){},"8HAY":function(_t,P,e){"use strict";e.d(P,"a",function(){return z}),e.d(P,"b",function(){return M});var T=e("pmY6"),re=e("MI8n"),J=function(){var U=function(c,y){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,f){L.__proto__=f}||function(L,f){for(var v in f)f.hasOwnProperty(v)&&(L[v]=f[v])},U(c,y)};return function(A,c){U(A,c);function y(){this.constructor=A}A.prototype=c===null?Object.create(c):(y.prototype=c.prototype,new y)}}(),N=function(U,A,c,y){function L(f){return f instanceof c?f:new c(function(v){v(f)})}return new(c||(c=Promise))(function(f,v){function S(s){try{u(y.next(s))}catch(l){v(l)}}function g(s){try{u(y.throw(s))}catch(l){v(l)}}function u(s){s.done?f(s.value):L(s.value).then(S,g)}u((y=y.apply(U,A||[])).next())})},H=function(U,A){var c={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},y,L,f,v;return v={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function S(u){return function(s){return g([u,s])}}function g(u){if(y)throw new TypeError("Generator is already executing.");for(;c;)try{if(y=1,L&&(f=u[0]&2?L.return:u[0]?L.throw||((f=L.return)&&f.call(L),0):L.next)&&!(f=f.call(L,u[1])).done)return f;(L=0,f)&&(u=[u[0]&2,f.value]);switch(u[0]){case 0:case 1:f=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,L=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(f=c.trys,f=f.length>0&&f[f.length-1])&&(u[0]===6||u[0]===2)){c=0;continue}if(u[0]===3&&(!f||u[1]>f[0]&&u[1]<f[3])){c.label=u[1];break}if(u[0]===6&&c.label<f[1]){c.label=f[1],f=u;break}if(f&&c.label<f[2]){c.label=f[2],c.ops.push(u);break}f[2]&&c.ops.pop(),c.trys.pop();continue}u=A.call(U,c)}catch(s){u=[6,s],L=0}finally{y=f=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},z=function(U){J(A,U);function A(c,y,L,f,v){y===void 0&&(y=""),L===void 0&&(L=""),f===void 0&&(f=!0);var S=U.call(this)||this;return S._onDidChange=S._register(new re.a),S.onDidChange=S._onDidChange.event,S._enabled=!0,S._checked=!1,S._id=c,S._label=y,S._cssClass=L,S._enabled=f,S._actionCallback=v,S}return Object.defineProperty(A.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"label",{get:function(){return this._label},set:function(y){this._setLabel(y)},enumerable:!0,configurable:!0}),A.prototype._setLabel=function(c){this._label!==c&&(this._label=c,this._onDidChange.fire({label:c}))},Object.defineProperty(A.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(y){this._setTooltip(y)},enumerable:!0,configurable:!0}),A.prototype._setTooltip=function(c){this._tooltip!==c&&(this._tooltip=c,this._onDidChange.fire({tooltip:c}))},Object.defineProperty(A.prototype,"class",{get:function(){return this._cssClass},set:function(y){this._setClass(y)},enumerable:!0,configurable:!0}),A.prototype._setClass=function(c){this._cssClass!==c&&(this._cssClass=c,this._onDidChange.fire({class:c}))},Object.defineProperty(A.prototype,"enabled",{get:function(){return this._enabled},set:function(y){this._setEnabled(y)},enumerable:!0,configurable:!0}),A.prototype._setEnabled=function(c){this._enabled!==c&&(this._enabled=c,this._onDidChange.fire({enabled:c}))},Object.defineProperty(A.prototype,"checked",{get:function(){return this._checked},set:function(y){this._setChecked(y)},enumerable:!0,configurable:!0}),A.prototype._setChecked=function(c){this._checked!==c&&(this._checked=c,this._onDidChange.fire({checked:c}))},A.prototype.run=function(c,y){return this._actionCallback?this._actionCallback(c):Promise.resolve(!0)},A}(T.a),M=function(U){J(A,U);function A(){var c=U!==null&&U.apply(this,arguments)||this;return c._onDidBeforeRun=c._register(new re.a),c.onDidBeforeRun=c._onDidBeforeRun.event,c._onDidRun=c._register(new re.a),c.onDidRun=c._onDidRun.event,c}return A.prototype.run=function(c,y){return N(this,void 0,void 0,function(){var L,f;return H(this,function(v){switch(v.label){case 0:if(!c.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:c}),v.label=1;case 1:return v.trys.push([1,3,,4]),[4,this.runAction(c,y)];case 2:return L=v.sent(),this._onDidRun.fire({action:c,result:L}),[3,4];case 3:return f=v.sent(),this._onDidRun.fire({action:c,error:f}),[3,4];case 4:return[2]}})})},A.prototype.runAction=function(c,y){var L=y?c.run(y):c.run();return Promise.resolve(L)},A}(T.a)},"8HsV":function(_t,P,e){"use strict";e.d(P,"a",function(){return T});var T=function(){function re(){for(var J=[],N=0;N<arguments.length;N++)J[N]=arguments[N];this._entries=new Map;for(var H=0,z=J;H<z.length;H++){var M=z[H],U=M[0],A=M[1];this.set(U,A)}}return re.prototype.set=function(J,N){var H=this._entries.get(J);return this._entries.set(J,N),H},re.prototype.has=function(J){return this._entries.has(J)},re.prototype.get=function(J){return this._entries.get(J)},re}()},"8XyJ":function(_t,P,e){"use strict";e.r(P),e.d(P,"InsertCursorAbove",function(){return s}),e.d(P,"InsertCursorBelow",function(){return l}),e.d(P,"MultiCursorSessionResult",function(){return _}),e.d(P,"MultiCursorSession",function(){return x}),e.d(P,"MultiCursorSelectionController",function(){return F}),e.d(P,"MultiCursorSelectionControllerAction",function(){return R}),e.d(P,"AddSelectionToNextFindMatchAction",function(){return $}),e.d(P,"AddSelectionToPreviousFindMatchAction",function(){return ie}),e.d(P,"MoveSelectionToNextFindMatchAction",function(){return W}),e.d(P,"MoveSelectionToPreviousFindMatchAction",function(){return B}),e.d(P,"SelectHighlightsAction",function(){return le}),e.d(P,"CompatChangeAll",function(){return be}),e.d(P,"SelectionHighlighter",function(){return Te});var T=e("3/fG"),re=e("X+cX"),J=e("/kV6"),N=e("pmY6"),H=e("sswD"),z=e("oAeH"),M=e("aokT"),U=e("gCVg"),A=e("wQH0"),c=e("M1Kb"),y=e("tX9W"),L=e("twdY"),f=e("oQaD"),v=e("MD5Z"),S=e("t9D7"),g=e("T8No"),u=function(){var je=function(ee,ae){return je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ce){q.__proto__=ce}||function(q,ce){for(var X in ce)ce.hasOwnProperty(X)&&(q[X]=ce[X])},je(ee,ae)};return function(oe,ee){je(oe,ee);function ae(){this.constructor=oe}oe.prototype=ee===null?Object.create(ee):(ae.prototype=ee.prototype,new ae)}}(),s=function(je){u(oe,je);function oe(){return je.call(this,{id:"editor.action.insertCursorAbove",label:T.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:A.a.editorTextFocus,primary:2048|512|16,linux:{primary:1024|512|16,secondary:[2048|1024|16]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})||this}return oe.prototype.run=function(ee,ae,q){if(!ae.hasModel())return;var ce=q&&q.logicalLine===!0,X=ae._getCursors(),he=X.context;if(he.config.readOnly)return;he.model.pushStackElement(),X.setStates(q.source,3,z.b.addCursorUp(he,X.getAll(),ce)),X.reveal(q.source,!0,1,0)},oe}(H.b),l=function(je){u(oe,je);function oe(){return je.call(this,{id:"editor.action.insertCursorBelow",label:T.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:A.a.editorTextFocus,primary:2048|512|18,linux:{primary:1024|512|18,secondary:[2048|1024|18]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})||this}return oe.prototype.run=function(ee,ae,q){if(!ae.hasModel())return;var ce=q&&q.logicalLine===!0,X=ae._getCursors(),he=X.context;if(he.config.readOnly)return;he.model.pushStackElement(),X.setStates(q.source,3,z.b.addCursorDown(he,X.getAll(),ce)),X.reveal(q.source,!0,2,0)},oe}(H.b),d=function(je){u(oe,je);function oe(){return je.call(this,{id:"editor.action.insertCursorAtEndOfEachLineSelected",label:T.a("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:A.a.editorTextFocus,primary:1024|512|39,weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})||this}return oe.prototype.getCursorsForSelection=function(ee,ae,q){if(ee.isEmpty())return;for(var ce=ee.startLineNumber;ce<ee.endLineNumber;ce++){var X=ae.getLineMaxColumn(ce);q.push(new U.a(ce,X,ce,X))}ee.endColumn>1&&q.push(new U.a(ee.endLineNumber,ee.endColumn,ee.endLineNumber,ee.endColumn))},oe.prototype.run=function(ee,ae){var q=this;if(!ae.hasModel())return;var ce=ae.getModel(),X=ae.getSelections(),he=[];X.forEach(function(Pe){return q.getCursorsForSelection(Pe,ce,he)}),he.length>0&&ae.setSelections(he)},oe}(H.b),p=function(je){u(oe,je);function oe(){return je.call(this,{id:"editor.action.addCursorsToBottom",label:T.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}return oe.prototype.run=function(ee,ae){if(!ae.hasModel())return;for(var q=ae.getSelections(),ce=ae.getModel().getLineCount(),X=[],he=q[0].startLineNumber;he<=ce;he++)X.push(new U.a(he,q[0].startColumn,he,q[0].endColumn));X.length>0&&ae.setSelections(X)},oe}(H.b),E=function(je){u(oe,je);function oe(){return je.call(this,{id:"editor.action.addCursorsToTop",label:T.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}return oe.prototype.run=function(ee,ae){if(!ae.hasModel())return;for(var q=ae.getSelections(),ce=[],X=q[0].startLineNumber;X>=1;X--)ce.push(new U.a(X,q[0].startColumn,X,q[0].endColumn));ce.length>0&&ae.setSelections(ce)},oe}(H.b),_=function(){function je(oe,ee,ae){this.selections=oe,this.revealRange=ee,this.revealScrollType=ae}return je}(),x=function(){function je(oe,ee,ae,q,ce,X,he){this._editor=oe,this.findController=ee,this.isDisconnectedFromFindController=ae,this.searchText=q,this.wholeWord=ce,this.matchCase=X,this.currentMatch=he}return je.create=function(oe,ee){if(!oe.hasModel())return null;var ae=ee.getState();if(!oe.hasTextFocus()&&ae.isRevealed&&ae.searchString.length>0)return new je(oe,ee,!1,ae.searchString,ae.wholeWord,ae.matchCase,null);var q=!1,ce,X,he=oe.getSelections();he.length===1&&he[0].isEmpty()?(q=!0,ce=!0,X=!0):(ce=ae.wholeWord,X=ae.matchCase);var Pe=oe.getSelection(),Xe,pe=null;if(Pe.isEmpty()){var me=oe.getModel().getWordAtPosition(Pe.getStartPosition());if(!me)return null;Xe=me.word,pe=new U.a(Pe.startLineNumber,me.startColumn,Pe.startLineNumber,me.endColumn)}else Xe=oe.getModel().getValueInRange(Pe).replace(/\r\n/g,`
`);return new je(oe,ee,q,Xe,ce,X,pe)},je.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var oe=this._getNextMatch();if(!oe)return null;var ee=this._editor.getSelections();return new _(ee.concat(oe),oe,0)},je.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var oe=this._getNextMatch();if(!oe)return null;var ee=this._editor.getSelections();return new _(ee.slice(0,ee.length-1).concat(oe),oe,0)},je.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var oe=this.currentMatch;return this.currentMatch=null,oe}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ae=ee[ee.length-1],q=this._editor.getModel().findNextMatch(this.searchText,ae.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new U.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},je.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var oe=this._getPreviousMatch();if(!oe)return null;var ee=this._editor.getSelections();return new _(ee.concat(oe),oe,0)},je.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var oe=this._getPreviousMatch();if(!oe)return null;var ee=this._editor.getSelections();return new _(ee.slice(0,ee.length-1).concat(oe),oe,0)},je.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var oe=this.currentMatch;return this.currentMatch=null,oe}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ae=ee[ee.length-1],q=this._editor.getModel().findPreviousMatch(this.searchText,ae.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new U.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},je.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1,1073741824)):[]},je}(),F=function(je){u(oe,je);function oe(ee){var ae=je.call(this)||this;return ae._sessionDispose=ae._register(new N.b),ae._editor=ee,ae._ignoreSelectionChange=!1,ae._session=null,ae}return oe.get=function(ee){return ee.getContribution(oe.ID)},oe.prototype.dispose=function(){this._endSession(),je.prototype.dispose.call(this)},oe.prototype._beginSessionIfNeeded=function(ee){var ae=this;if(!this._session){var q=x.create(this._editor,ee);if(!q)return;this._session=q;var ce={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(ce.wholeWordOverride=1,ce.matchCaseOverride=1,ce.isRegexOverride=2),ee.getState().change(ce,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(function(X){if(ae._ignoreSelectionChange)return;ae._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(function(){ae._endSession()})),this._sessionDispose.add(ee.getState().onFindReplaceStateChange(function(X){(X.matchCase||X.wholeWord)&&ae._endSession()}))}},oe.prototype._endSession=function(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){var ee={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(ee,!1)}this._session=null},oe.prototype._setSelections=function(ee){this._ignoreSelectionChange=!0,this._editor.setSelections(ee),this._ignoreSelectionChange=!1},oe.prototype._expandEmptyToWord=function(ee,ae){if(!ae.isEmpty())return ae;var q=ee.getWordAtPosition(ae.getStartPosition());return q?new U.a(ae.startLineNumber,q.startColumn,ae.startLineNumber,q.endColumn):ae},oe.prototype._applySessionResult=function(ee){if(!ee)return;this._setSelections(ee.selections),ee.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(ee.revealRange,ee.revealScrollType)},oe.prototype.getSession=function(ee){return this._session},oe.prototype.addSelectionToNextFindMatch=function(ee){if(!this._editor.hasModel())return;if(!this._session){var ae=this._editor.getSelections();if(ae.length>1){var q=ee.getState(),ce=q.matchCase,X=ke(this._editor.getModel(),ae,ce);if(!X){for(var he=this._editor.getModel(),Pe=[],Xe=0,pe=ae.length;Xe<pe;Xe++)Pe[Xe]=this._expandEmptyToWord(he,ae[Xe]);this._editor.setSelections(Pe);return}}}this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())},oe.prototype.addSelectionToPreviousFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())},oe.prototype.moveSelectionToNextFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())},oe.prototype.moveSelectionToPreviousFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())},oe.prototype.selectAll=function(ee){if(!this._editor.hasModel())return;var ae=null,q=ee.getState();if(q.isRevealed&&q.searchString.length>0&&q.isRegex)ae=this._editor.getModel().findMatches(q.searchString,!0,q.isRegex,q.matchCase,q.wholeWord?this._editor.getOption(96):null,!1,1073741824);else{if(this._beginSessionIfNeeded(ee),!this._session)return;ae=this._session.selectAll()}if(q.searchScope){for(var ce=q.searchScope,X=[],he=0;he<ae.length;he++)ae[he].range.endLineNumber<=ce.endLineNumber&&ae[he].range.startLineNumber>=ce.startLineNumber&&X.push(ae[he]);ae=X}if(ae.length>0){for(var Pe=this._editor.getSelection(),he=0,Xe=ae.length;he<Xe;he++){var pe=ae[he],me=pe.range.intersectRanges(Pe);if(me){ae[he]=ae[0],ae[0]=pe;break}}this._setSelections(ae.map(function(Se){return new U.a(Se.range.startLineNumber,Se.range.startColumn,Se.range.endLineNumber,Se.range.endColumn)}))}},oe.ID="editor.contrib.multiCursorController",oe}(N.a),R=function(je){u(oe,je);function oe(){return je!==null&&je.apply(this,arguments)||this}return oe.prototype.run=function(ee,ae){var q=F.get(ae);if(!q)return;var ce=f.CommonFindController.get(ae);if(!ce)return;this._run(q,ce)},oe}(H.b),$=function(je){u(oe,je);function oe(){return je.call(this,{id:"editor.action.addSelectionToNextFindMatch",label:T.a("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:A.a.focus,primary:2048|34,weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})||this}return oe.prototype._run=function(ee,ae){ee.addSelectionToNextFindMatch(ae)},oe}(R),ie=function(je){u(oe,je);function oe(){return je.call(this,{id:"editor.action.addSelectionToPreviousFindMatch",label:T.a("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})||this}return oe.prototype._run=function(ee,ae){ee.addSelectionToPreviousFindMatch(ae)},oe}(R),W=function(je){u(oe,je);function oe(){return je.call(this,{id:"editor.action.moveSelectionToNextFindMatch",label:T.a("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:A.a.focus,primary:Object(J.a)(2048|41,2048|34),weight:100}})||this}return oe.prototype._run=function(ee,ae){ee.moveSelectionToNextFindMatch(ae)},oe}(R),B=function(je){u(oe,je);function oe(){return je.call(this,{id:"editor.action.moveSelectionToPreviousFindMatch",label:T.a("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})||this}return oe.prototype._run=function(ee,ae){ee.moveSelectionToPreviousFindMatch(ae)},oe}(R),le=function(je){u(oe,je);function oe(){return je.call(this,{id:"editor.action.selectHighlights",label:T.a("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:A.a.focus,primary:2048|1024|42,weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})||this}return oe.prototype._run=function(ee,ae){ee.selectAll(ae)},oe}(R),be=function(je){u(oe,je);function oe(){return je.call(this,{id:"editor.action.changeAll",label:T.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:g.a.and(A.a.writable,A.a.editorTextFocus),kbOpts:{kbExpr:A.a.editorTextFocus,primary:2048|60,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})||this}return oe.prototype._run=function(ee,ae){ee.selectAll(ae)},oe}(R),De=function(){function je(oe,ee,ae){this.searchText=oe,this.matchCase=ee,this.wordSeparators=ae}return je.softEquals=function(oe,ee){return!oe&&!ee?!0:!oe||!ee?!1:oe.searchText===ee.searchText&&oe.matchCase===ee.matchCase&&oe.wordSeparators===ee.wordSeparators},je}(),Te=function(je){u(oe,je);function oe(ee){var ae=je.call(this)||this;return ae.editor=ee,ae._isEnabled=ee.getOption(82),ae.decorations=[],ae.updateSoon=ae._register(new re.d(function(){return ae._update()},300)),ae.state=null,ae._register(ee.onDidChangeConfiguration(function(q){ae._isEnabled=ee.getOption(82)})),ae._register(ee.onDidChangeCursorSelection(function(q){if(!ae._isEnabled)return;q.selection.isEmpty()?q.reason===3?(ae.state&&ae._setState(null),ae.updateSoon.schedule()):ae._setState(null):ae._update()})),ae._register(ee.onDidChangeModel(function(q){ae._setState(null)})),ae._register(f.CommonFindController.get(ee).getState().onFindReplaceStateChange(function(q){ae._update()})),ae}return oe.prototype._update=function(){this._setState(oe._createState(this._isEnabled,this.editor))},oe._createState=function(ee,ae){if(!ee)return null;if(!ae.hasModel())return null;var q=ae.getSelection();if(q.startLineNumber!==q.endLineNumber)return null;var ce=F.get(ae);if(!ce)return null;var X=f.CommonFindController.get(ae);if(!X)return null;var he=ce.getSession(X);if(!he){var Pe=ae.getSelections();if(Pe.length>1){var Xe=X.getState(),pe=Xe.matchCase,me=ke(ae.getModel(),Pe,pe);if(!me)return null}he=x.create(ae,X)}if(!he)return null;if(he.currentMatch)return null;if(/^[ \t]+$/.test(he.searchText))return null;if(he.searchText.length>200)return null;var Se=X.getState(),Re=Se.matchCase;if(Se.isRevealed){var Ee=Se.searchString;Re||(Ee=Ee.toLowerCase());var ve=he.searchText;if(Re||(ve=ve.toLowerCase()),Ee===ve&&he.matchCase===Se.matchCase&&he.wholeWord===Se.wholeWord&&!Se.isRegex)return null}return new De(he.searchText,he.matchCase,he.wholeWord?ae.getOption(96):null)},oe.prototype._setState=function(ee){if(De.softEquals(this.state,ee)){this.state=ee;return}if(this.state=ee,!this.state){this.decorations=this.editor.deltaDecorations(this.decorations,[]);return}if(!this.editor.hasModel())return;var ae=this.editor.getModel();if(ae.isTooLargeForTokenization())return;var q=L.i.has(ae),ce=ae.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(ve){return ve.range});ce.sort(M.a.compareRangesUsingStarts);var X=this.editor.getSelections();X.sort(M.a.compareRangesUsingStarts);for(var he=[],Pe=0,Xe=0,pe=ce.length,me=X.length;Pe<pe;){var Se=ce[Pe];if(Xe>=me)he.push(Se),Pe++;else{var Re=M.a.compareRangesUsingStarts(Se,X[Xe]);Re<0?((X[Xe].isEmpty()||!M.a.areIntersecting(Se,X[Xe]))&&he.push(Se),Pe++):(Re>0||Pe++,Xe++)}}var Ee=he.map(function(ve){return{range:ve,options:q?oe._SELECTION_HIGHLIGHT:oe._SELECTION_HIGHLIGHT_OVERVIEW}});this.decorations=this.editor.deltaDecorations(this.decorations,Ee)},oe.prototype.dispose=function(){this._setState(null),je.prototype.dispose.call(this)},oe.ID="editor.contrib.selectionHighlighter",oe._SELECTION_HIGHLIGHT_OVERVIEW=y.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(S.f)(v.Mb),position:c.d.Center}}),oe._SELECTION_HIGHLIGHT=y.a.register({stickiness:1,className:"selectionHighlight"}),oe}(N.a);function ke(je,oe,ee){for(var ae=He(je,oe[0],!ee),q=1,ce=oe.length;q<ce;q++){var X=oe[q];if(X.isEmpty())return!1;var he=He(je,X,!ee);if(ae!==he)return!1}return!0}function He(je,oe,ee){var ae=je.getValueInRange(oe);return ee?ae.toLowerCase():ae}Object(H.h)(F.ID,F),Object(H.h)(Te.ID,Te),Object(H.f)(s),Object(H.f)(l),Object(H.f)(d),Object(H.f)($),Object(H.f)(ie),Object(H.f)(W),Object(H.f)(B),Object(H.f)(le),Object(H.f)(be),Object(H.f)(p),Object(H.f)(E)},"8Ydt":function(_t,P,e){"use strict";e.r(P),e.d(P,"DefinitionAction",function(){return b});var T=e("OBOq"),re=e("X+cX"),J=e("/kV6"),N=e("MNsG"),H=e("sFUC"),z=e("sswD"),M=e("Vxe3"),U=e("cGHE"),A=e("aokT"),c=e("wQH0"),y=e("twdY"),L=e("NR8r"),f=e("iNS8"),v=e("QY8A"),S=e("9o5J"),g=e("3/fG"),u=e("fjLI"),s=e("T8No"),l=e("sM1p"),d=e("tTk5"),p=e("vRMv"),E=e("nnTU"),_=e("vATl"),x=e("Cg/j"),F=e("9fML"),R=e("nrhi"),$=e("pmY6"),ie=e("MI8n"),W=e("bexQ"),B=e("gslv"),le=function(){var Ve=function(it,gt){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Rt,Dt){Rt.__proto__=Dt}||function(Rt,Dt){for(var zt in Dt)Dt.hasOwnProperty(zt)&&(Rt[zt]=Dt[zt])},Ve(it,gt)};return function(Qe,it){Ve(Qe,it);function gt(){this.constructor=Qe}Qe.prototype=it===null?Object.create(it):(gt.prototype=it.prototype,new gt)}}(),be=function(Ve,Qe,it,gt){var Rt=arguments.length,Dt=Rt<3?Qe:gt===null?gt=Object.getOwnPropertyDescriptor(Qe,it):gt,zt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Dt=Reflect.decorate(Ve,Qe,it,gt);else for(var cn=Ve.length-1;cn>=0;cn--)(zt=Ve[cn])&&(Dt=(Rt<3?zt(Dt):Rt>3?zt(Qe,it,Dt):zt(Qe,it))||Dt);return Rt>3&&Dt&&Object.defineProperty(Qe,it,Dt),Dt},De=function(Ve,Qe){return function(it,gt){Qe(it,gt,Ve)}},Te=new s.d("hasSymbols",!1),ke=Object(x.c)("ISymbolNavigationService"),He=function(){function Ve(Qe,it,gt,Rt){this._editorService=it,this._notificationService=gt,this._keybindingService=Rt,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Te.bindTo(Qe)}return Ve.prototype.reset=function(){this._ctxHasSymbols.reset(),Object($.f)(this._currentState),Object($.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},Ve.prototype.put=function(Qe){var it=this,gt=Qe.parent.parent;if(gt.references.length<=1){this.reset();return}this._currentModel=gt,this._currentIdx=gt.references.indexOf(Qe),this._ctxHasSymbols.set(!0),this._showMessage();var Rt=new je(this._editorService),Dt=Rt.onDidChange(function(zt){if(it._ignoreEditorChange)return;var cn=it._editorService.getActiveCodeEditor();if(!cn)return;var ln=cn.getModel(),an=cn.getPosition();if(!ln||!an)return;for(var jt=!1,ft=!1,vt=0,xt=gt.references;vt<xt.length;vt++){var at=xt[vt];if(Object(B.e)(at.uri,ln.uri))jt=!0,ft=ft||A.a.containsPosition(at.range,an);else if(jt)break}(!jt||!ft)&&it.reset()});this._currentState=Object($.e)(Rt,Dt)},Ve.prototype.revealNext=function(Qe){var it=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var gt=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:gt.uri,options:{selection:A.a.collapseToStart(gt.range),revealInCenterIfOutsideViewport:!0}},Qe).finally(function(){it._ignoreEditorChange=!1})},Ve.prototype._showMessage=function(){Object($.f)(this._currentMessage);var Qe=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),it=Qe?Object(g.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,Qe.getLabel()):Object(g.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(it)},Ve=be([De(0,s.c),De(1,M.a),De(2,l.a),De(3,W.a)],Ve),Ve}();Object(F.b)(ke,He,!0),Object(z.g)(new(function(Ve){le(Qe,Ve);function Qe(){return Ve.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:Te,kbOpts:{weight:100,primary:70}})||this}return Qe.prototype.runEditorCommand=function(it,gt){return it.get(ke).revealNext(gt)},Qe}(z.c))),R.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:Te,primary:9,handler:function(Qe){Qe.get(ke).reset()}});var je=function(){function Ve(Qe){this._listener=new Map,this._disposables=new $.b,this._onDidChange=new ie.a,this.onDidChange=this._onDidChange.event,this._disposables.add(Qe.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(Qe.onCodeEditorAdd(this._onDidAddEditor,this)),Qe.listCodeEditors().forEach(this._onDidAddEditor,this)}return Ve.prototype.dispose=function(){this._disposables.dispose(),this._onDidChange.dispose(),this._listener.forEach($.f)},Ve.prototype._onDidAddEditor=function(Qe){var it=this;this._listener.set(Qe,Object($.e)(Qe.onDidChangeCursorPosition(function(gt){return it._onDidChange.fire({editor:Qe})}),Qe.onDidChangeModelContent(function(gt){return it._onDidChange.fire({editor:Qe})})))},Ve.prototype._onDidRemoveEditor=function(Qe){Object($.f)(this._listener.get(Qe)),this._listener.delete(Qe)},Ve=be([De(0,M.a)],Ve),Ve}(),oe=e("D3Dy"),ee=e("bY76"),ae=e("746U"),q=e("03kh"),ce=function(){var Ve=function(it,gt){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Rt,Dt){Rt.__proto__=Dt}||function(Rt,Dt){for(var zt in Dt)Dt.hasOwnProperty(zt)&&(Rt[zt]=Dt[zt])},Ve(it,gt)};return function(Qe,it){Ve(Qe,it);function gt(){this.constructor=Qe}Qe.prototype=it===null?Object.create(it):(gt.prototype=it.prototype,new gt)}}(),X=function(Ve,Qe,it,gt){function Rt(Dt){return Dt instanceof it?Dt:new it(function(zt){zt(Dt)})}return new(it||(it=Promise))(function(Dt,zt){function cn(jt){try{an(gt.next(jt))}catch(ft){zt(ft)}}function ln(jt){try{an(gt.throw(jt))}catch(ft){zt(ft)}}function an(jt){jt.done?Dt(jt.value):Rt(jt.value).then(cn,ln)}an((gt=gt.apply(Ve,Qe||[])).next())})},he=function(Ve,Qe){var it={label:0,sent:function(){if(Dt[0]&1)throw Dt[1];return Dt[1]},trys:[],ops:[]},gt,Rt,Dt,zt;return zt={next:cn(0),throw:cn(1),return:cn(2)},typeof Symbol=="function"&&(zt[Symbol.iterator]=function(){return this}),zt;function cn(an){return function(jt){return ln([an,jt])}}function ln(an){if(gt)throw new TypeError("Generator is already executing.");for(;it;)try{if(gt=1,Rt&&(Dt=an[0]&2?Rt.return:an[0]?Rt.throw||((Dt=Rt.return)&&Dt.call(Rt),0):Rt.next)&&!(Dt=Dt.call(Rt,an[1])).done)return Dt;(Rt=0,Dt)&&(an=[an[0]&2,Dt.value]);switch(an[0]){case 0:case 1:Dt=an;break;case 4:return it.label++,{value:an[1],done:!1};case 5:it.label++,Rt=an[1],an=[0];continue;case 7:an=it.ops.pop(),it.trys.pop();continue;default:if(!(Dt=it.trys,Dt=Dt.length>0&&Dt[Dt.length-1])&&(an[0]===6||an[0]===2)){it=0;continue}if(an[0]===3&&(!Dt||an[1]>Dt[0]&&an[1]<Dt[3])){it.label=an[1];break}if(an[0]===6&&it.label<Dt[1]){it.label=Dt[1],Dt=an;break}if(Dt&&it.label<Dt[2]){it.label=Dt[2],it.ops.push(an);break}Dt[2]&&it.ops.pop(),it.trys.pop();continue}an=Qe.call(Ve,it)}catch(jt){an=[6,jt],Rt=0}finally{gt=Dt=0}if(an[0]&5)throw an[1];return{value:an[0]?an[1]:void 0,done:!0}}},Pe,Xe,pe,me,Se,Re,Ee,ve;u.c.appendMenuItem(7,{submenu:8,title:g.a("peek.submenu","Peek"),group:"navigation",order:100});var Q=function(Ve){ce(Qe,Ve);function Qe(it,gt){var Rt=Ve.call(this,gt)||this;return Rt._configuration=it,Rt}return Qe.prototype.run=function(it,gt){var Rt=this;if(!gt.hasModel())return Promise.resolve(void 0);var Dt=it.get(l.a),zt=it.get(M.a),cn=it.get(d.a),ln=it.get(ke),an=gt.getModel(),jt=gt.getPosition(),ft=new _.b(gt,1|4),vt=Object(re.j)(this._getLocationModel(an,jt,ft.token),ft.token).then(function(xt){return X(Rt,void 0,void 0,function(){var at,tt,ct,bt;return he(this,function(mt){if(!xt||ft.token.isCancellationRequested)return[2];if(Object(T.a)(xt.ariaMessage),xt.referenceAt(an.uri,jt)&&(tt=this._getAlternativeCommand(gt),tt!==this.id&&(at=gt.getAction(tt))),ct=xt.references.length,ct===0)this._configuration.muteMessage||(bt=an.getWordAtPosition(jt),L.a.get(gt).showMessage(this._getNoResultFoundMessage(bt),jt));else if(ct===1&&at)at.run();else return[2,this._onResult(zt,ln,gt,xt)];return[2]})})},function(xt){Dt.error(xt)}).finally(function(){ft.dispose()});return cn.showWhile(vt,250),vt},Qe.prototype._onResult=function(it,gt,Rt,Dt){return X(this,void 0,void 0,function(){var zt,cn,ln,an;return he(this,function(jt){switch(jt.label){case 0:return zt=this._getGoToPreference(Rt),!(Rt instanceof q.a)&&(this._configuration.openInPeek||zt==="peek"&&Dt.references.length>1)?(this._openInPeek(Rt,Dt),[3,3]):[3,1];case 1:return cn=Dt.firstReference(),ln=Dt.references.length>1&&zt==="gotoAndPeek",[4,this._openReference(Rt,it,cn,this._configuration.openToSide,!ln)];case 2:an=jt.sent(),ln&&an?this._openInPeek(an,Dt):Dt.dispose(),zt==="goto"&&gt.put(cn),jt.label=3;case 3:return[2]}})})},Qe.prototype._openReference=function(it,gt,Rt,Dt,zt){return X(this,void 0,void 0,function(){var cn,ln,an,jt;return he(this,function(ft){switch(ft.label){case 0:return cn=void 0,Object(y.G)(Rt)&&(cn=Rt.targetSelectionRange),cn||(cn=Rt.range),[4,gt.openCodeEditor({resource:Rt.uri,options:{selection:A.a.collapseToStart(cn),revealInCenterIfOutsideViewport:!0}},it,Dt)];case 1:return ln=ft.sent(),ln?(zt&&(an=ln.getModel(),jt=ln.deltaDecorations([],[{range:cn,options:{className:"symbolHighlight"}}]),setTimeout(function(){ln.getModel()===an&&ln.deltaDecorations(jt,[])},350)),[2,ln]):[2,void 0]}})})},Qe.prototype._openInPeek=function(it,gt){var Rt=v.a.get(it);Rt&&it.hasModel()?Rt.toggleWidget(it.getSelection(),Object(re.f)(function(Dt){return Promise.resolve(gt)}),this._configuration.openInPeek):gt.dispose()},Qe}(z.b),b=function(Ve){ce(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,gt,Rt){return X(this,void 0,void 0,function(){var Dt;return he(this,function(zt){switch(zt.label){case 0:return Dt=S.c.bind,[4,Object(p.b)(it,gt,Rt)];case 1:return[2,new(Dt.apply(S.c,[void 0,zt.sent(),g.a("def.title","Definitions")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?g.a("noResultWord","No definition found for '{0}'",it.word):g.a("generic.noResults","No definition found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeDefinitionCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleDefinitions},Qe}(Q),k=N.g&&!oe.l?2048|70:70;Object(z.f)((Pe=function(Ve){ce(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:g.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:s.a.and(c.a.hasDefinitionProvider,c.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:k,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:g.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return E.a.registerCommandAlias("editor.action.goToDeclaration",Qe.id),it}return Qe}(b),Pe.id="editor.action.revealDefinition",Pe)),Object(z.f)((Xe=function(Ve){ce(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:g.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:s.a.and(c.a.hasDefinitionProvider,c.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:Object(J.a)(2048|41,k),weight:100}})||this;return E.a.registerCommandAlias("editor.action.openDeclarationToTheSide",Qe.id),it}return Qe}(b),Xe.id="editor.action.revealDefinitionAside",Xe)),Object(z.f)((pe=function(Ve){ce(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.id,label:g.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:s.a.and(c.a.hasDefinitionProvider,f.b.notInPeekEditor,c.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return E.a.registerCommandAlias("editor.action.previewDeclaration",Qe.id),it}return Qe}(b),pe.id="editor.action.peekDefinition",pe));var se=function(Ve){ce(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,gt,Rt){return X(this,void 0,void 0,function(){var Dt;return he(this,function(zt){switch(zt.label){case 0:return Dt=S.c.bind,[4,Object(p.a)(it,gt,Rt)];case 1:return[2,new(Dt.apply(S.c,[void 0,zt.sent(),g.a("decl.title","Declarations")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?g.a("decl.noResultWord","No declaration found for '{0}'",it.word):g.a("decl.generic.noResults","No declaration found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeDeclarationCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleDeclarations},Qe}(Q);Object(z.f)((me=function(Ve){ce(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:g.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:s.a.and(c.a.hasDeclarationProvider,c.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:g.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?g.a("decl.noResultWord","No declaration found for '{0}'",it.word):g.a("decl.generic.noResults","No declaration found")},Qe}(se),me.id="editor.action.revealDeclaration",me)),Object(z.f)(function(Ve){ce(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:g.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:s.a.and(c.a.hasDeclarationProvider,f.b.notInPeekEditor,c.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return Qe}(se));var ne=function(Ve){ce(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,gt,Rt){return X(this,void 0,void 0,function(){var Dt;return he(this,function(zt){switch(zt.label){case 0:return Dt=S.c.bind,[4,Object(p.e)(it,gt,Rt)];case 1:return[2,new(Dt.apply(S.c,[void 0,zt.sent(),g.a("typedef.title","Type Definitions")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?g.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",it.word):g.a("goToTypeDefinition.generic.noResults","No type definition found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeTypeDefinitionCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleTypeDefinitions},Qe}(Q);Object(z.f)((Se=function(Ve){ce(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.ID,label:g.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:s.a.and(c.a.hasTypeDefinitionProvider,c.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:g.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return Qe}(ne),Se.ID="editor.action.goToTypeDefinition",Se)),Object(z.f)((Re=function(Ve){ce(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.ID,label:g.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:s.a.and(c.a.hasTypeDefinitionProvider,f.b.notInPeekEditor,c.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return Qe}(ne),Re.ID="editor.action.peekTypeDefinition",Re));var Ce=function(Ve){ce(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,gt,Rt){return X(this,void 0,void 0,function(){var Dt;return he(this,function(zt){switch(zt.label){case 0:return Dt=S.c.bind,[4,Object(p.c)(it,gt,Rt)];case 1:return[2,new(Dt.apply(S.c,[void 0,zt.sent(),g.a("impl.title","Implementations")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?g.a("goToImplementation.noResultWord","No implementation found for '{0}'",it.word):g.a("goToImplementation.generic.noResults","No implementation found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeImplementationCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleImplementations},Qe}(Q);Object(z.f)((Ee=function(Ve){ce(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.ID,label:g.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:s.a.and(c.a.hasImplementationProvider,c.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:g.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return Qe}(Ce),Ee.ID="editor.action.goToImplementation",Ee)),Object(z.f)((ve=function(Ve){ce(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.ID,label:g.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:s.a.and(c.a.hasImplementationProvider,f.b.notInPeekEditor,c.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return Qe}(Ce),ve.ID="editor.action.peekImplementation",ve));var Oe=function(Ve){ce(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getNoResultFoundMessage=function(it){return it?g.a("references.no","No references found for '{0}'",it.word):g.a("references.noGeneric","No references found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeReferenceCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleReferences},Qe}(Q);Object(z.f)(function(Ve){ce(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:g.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:s.a.and(c.a.hasReferenceProvider,f.b.notInPeekEditor,c.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:g.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return Qe.prototype._getLocationModel=function(it,gt,Rt){return X(this,void 0,void 0,function(){var Dt;return he(this,function(zt){switch(zt.label){case 0:return Dt=S.c.bind,[4,Object(p.d)(it,gt,!0,Rt)];case 1:return[2,new(Dt.apply(S.c,[void 0,zt.sent(),g.a("ref.title","References")]))]}})})},Qe}(Oe)),Object(z.f)(function(Ve){ce(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:g.a("references.action.label","Peek References"),alias:"Peek References",precondition:s.a.and(c.a.hasReferenceProvider,f.b.notInPeekEditor,c.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return Qe.prototype._getLocationModel=function(it,gt,Rt){return X(this,void 0,void 0,function(){var Dt;return he(this,function(zt){switch(zt.label){case 0:return Dt=S.c.bind,[4,Object(p.d)(it,gt,!1,Rt)];case 1:return[2,new(Dt.apply(S.c,[void 0,zt.sent(),g.a("ref.title","References")]))]}})})},Qe}(Oe));var we=function(Ve){ce(Qe,Ve);function Qe(it,gt,Rt){var Dt=Ve.call(this,it,{id:"editor.action.goToLocation",label:g.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:s.a.and(f.b.notInPeekEditor,c.a.isInEmbeddedEditor.toNegated())})||this;return Dt._references=gt,Dt._gotoMultipleBehaviour=Rt,Dt}return Qe.prototype._getLocationModel=function(it,gt,Rt){return X(this,void 0,void 0,function(){return he(this,function(Dt){return[2,new S.c(this._references,g.a("generic.title","Locations"))]})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&g.a("generic.noResult","No results for '{0}'",it.word)||""},Qe.prototype._getGoToPreference=function(it){var gt;return(gt=this._gotoMultipleBehaviour)!==null&&gt!==void 0?gt:it.getOption(41).multipleReferences},Qe.prototype._getAlternativeCommand=function(){return""},Qe}(Q);E.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:ee.a},{name:"position",description:"The position at which to start",constraint:U.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(Qe,it,gt,Rt,Dt,zt){return X(void 0,void 0,void 0,function(){var cn,ln;return he(this,function(an){switch(an.label){case 0:return Object(ae.a)(ee.a.isUri(it)),Object(ae.a)(U.a.isIPosition(gt)),Object(ae.a)(Array.isArray(Rt)),Object(ae.a)(typeof Dt=="undefined"||typeof Dt=="string"),Object(ae.a)(typeof zt=="undefined"||typeof zt=="boolean"),cn=Qe.get(M.a),[4,cn.openCodeEditor({resource:it},cn.getFocusedCodeEditor())];case 1:return ln=an.sent(),Object(H.a)(ln)?(ln.setPosition(gt),ln.revealPositionInCenterIfOutsideViewport(gt,0),[2,ln.invokeWithinContext(function(jt){var ft=new we({muteMessage:!0,openInPeek:Boolean(zt),openToSide:!1},Rt,Dt);jt.get(x.a).invokeFunction(ft.run.bind(ft),ln)})]):[2]}})})}}),E.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:ee.a},{name:"position",description:"The position at which to start",constraint:U.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(Qe,it,gt,Rt,Dt){return X(void 0,void 0,void 0,function(){return he(this,function(zt){return Qe.get(E.b).executeCommand("editor.action.goToLocations",it,gt,Rt,Dt,!0),[2]})})}}),E.a.registerCommand({id:"editor.action.findReferences",handler:function(Qe,it,gt){Object(ae.a)(ee.a.isUri(it)),Object(ae.a)(U.a.isIPosition(gt));var Rt=Qe.get(M.a);return Rt.openCodeEditor({resource:it},Rt.getFocusedCodeEditor()).then(function(Dt){if(!Object(H.a)(Dt)||!Dt.hasModel())return;var zt=v.a.get(Dt);if(!zt)return;var cn=Object(re.f)(function(an){return Object(p.d)(Dt.getModel(),U.a.lift(gt),!1,an).then(function(jt){return new S.c(jt,g.a("ref.title","References"))})}),ln=new A.a(gt.lineNumber,gt.column,gt.lineNumber,gt.column);return Promise.resolve(zt.toggleWidget(ln,cn,!1))})}}),E.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},"8gvo":function(_t,P,e){},"8z58":function(_t,P,e){"use strict";e.r(P),e.d(P,"CancellationTokenSource",function(){return Wd}),e.d(P,"Emitter",function(){return Bd}),e.d(P,"KeyCode",function(){return Ud}),e.d(P,"KeyMod",function(){return Hd}),e.d(P,"Position",function(){return Vd}),e.d(P,"Range",function(){return zd}),e.d(P,"Selection",function(){return Kd}),e.d(P,"SelectionDirection",function(){return Gd}),e.d(P,"MarkerSeverity",function(){return Xd}),e.d(P,"MarkerTag",function(){return Yd}),e.d(P,"Uri",function(){return Zd}),e.d(P,"Token",function(){return Qd}),e.d(P,"editor",function(){return $d}),e.d(P,"languages",function(){return Jd});var T=e("/UlZ"),re=e("URDS"),J=e("JQT/"),N=e("MI8n"),H=e("/kV6"),z=e("bY76"),M=e("cGHE"),U=e("aokT"),A=e("gCVg"),c=e("Tcc1"),y;(function(a){a[a.Unknown=0]="Unknown",a[a.Disabled=1]="Disabled",a[a.Enabled=2]="Enabled"})(y||(y={}));var L;(function(a){a[a.KeepWhitespace=1]="KeepWhitespace",a[a.InsertAsSnippet=4]="InsertAsSnippet"})(L||(L={}));var f;(function(a){a[a.Method=0]="Method",a[a.Function=1]="Function",a[a.Constructor=2]="Constructor",a[a.Field=3]="Field",a[a.Variable=4]="Variable",a[a.Class=5]="Class",a[a.Struct=6]="Struct",a[a.Interface=7]="Interface",a[a.Module=8]="Module",a[a.Property=9]="Property",a[a.Event=10]="Event",a[a.Operator=11]="Operator",a[a.Unit=12]="Unit",a[a.Value=13]="Value",a[a.Constant=14]="Constant",a[a.Enum=15]="Enum",a[a.EnumMember=16]="EnumMember",a[a.Keyword=17]="Keyword",a[a.Text=18]="Text",a[a.Color=19]="Color",a[a.File=20]="File",a[a.Reference=21]="Reference",a[a.Customcolor=22]="Customcolor",a[a.Folder=23]="Folder",a[a.TypeParameter=24]="TypeParameter",a[a.Snippet=25]="Snippet"})(f||(f={}));var v;(function(a){a[a.Deprecated=1]="Deprecated"})(v||(v={}));var S;(function(a){a[a.Invoke=0]="Invoke",a[a.TriggerCharacter=1]="TriggerCharacter",a[a.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(S||(S={}));var g;(function(a){a[a.EXACT=0]="EXACT",a[a.ABOVE=1]="ABOVE",a[a.BELOW=2]="BELOW"})(g||(g={}));var u;(function(a){a[a.NotSet=0]="NotSet",a[a.ContentFlush=1]="ContentFlush",a[a.RecoverFromMarkers=2]="RecoverFromMarkers",a[a.Explicit=3]="Explicit",a[a.Paste=4]="Paste",a[a.Undo=5]="Undo",a[a.Redo=6]="Redo"})(u||(u={}));var s;(function(a){a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(s||(s={}));var l;(function(a){a[a.Text=0]="Text",a[a.Read=1]="Read",a[a.Write=2]="Write"})(l||(l={}));var d;(function(a){a[a.None=0]="None",a[a.Keep=1]="Keep",a[a.Brackets=2]="Brackets",a[a.Advanced=3]="Advanced",a[a.Full=4]="Full"})(d||(d={}));var p;(function(a){a[a.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",a[a.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",a[a.accessibilitySupport=2]="accessibilitySupport",a[a.accessibilityPageSize=3]="accessibilityPageSize",a[a.ariaLabel=4]="ariaLabel",a[a.autoClosingBrackets=5]="autoClosingBrackets",a[a.autoClosingOvertype=6]="autoClosingOvertype",a[a.autoClosingQuotes=7]="autoClosingQuotes",a[a.autoIndent=8]="autoIndent",a[a.automaticLayout=9]="automaticLayout",a[a.autoSurround=10]="autoSurround",a[a.codeLens=11]="codeLens",a[a.colorDecorators=12]="colorDecorators",a[a.comments=13]="comments",a[a.contextmenu=14]="contextmenu",a[a.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",a[a.cursorBlinking=16]="cursorBlinking",a[a.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",a[a.cursorStyle=18]="cursorStyle",a[a.cursorSurroundingLines=19]="cursorSurroundingLines",a[a.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",a[a.cursorWidth=21]="cursorWidth",a[a.disableLayerHinting=22]="disableLayerHinting",a[a.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",a[a.dragAndDrop=24]="dragAndDrop",a[a.emptySelectionClipboard=25]="emptySelectionClipboard",a[a.extraEditorClassName=26]="extraEditorClassName",a[a.fastScrollSensitivity=27]="fastScrollSensitivity",a[a.find=28]="find",a[a.fixedOverflowWidgets=29]="fixedOverflowWidgets",a[a.folding=30]="folding",a[a.foldingStrategy=31]="foldingStrategy",a[a.foldingHighlight=32]="foldingHighlight",a[a.fontFamily=33]="fontFamily",a[a.fontInfo=34]="fontInfo",a[a.fontLigatures=35]="fontLigatures",a[a.fontSize=36]="fontSize",a[a.fontWeight=37]="fontWeight",a[a.formatOnPaste=38]="formatOnPaste",a[a.formatOnType=39]="formatOnType",a[a.glyphMargin=40]="glyphMargin",a[a.gotoLocation=41]="gotoLocation",a[a.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",a[a.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",a[a.hover=44]="hover",a[a.inDiffEditor=45]="inDiffEditor",a[a.letterSpacing=46]="letterSpacing",a[a.lightbulb=47]="lightbulb",a[a.lineDecorationsWidth=48]="lineDecorationsWidth",a[a.lineHeight=49]="lineHeight",a[a.lineNumbers=50]="lineNumbers",a[a.lineNumbersMinChars=51]="lineNumbersMinChars",a[a.links=52]="links",a[a.matchBrackets=53]="matchBrackets",a[a.minimap=54]="minimap",a[a.mouseStyle=55]="mouseStyle",a[a.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",a[a.mouseWheelZoom=57]="mouseWheelZoom",a[a.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",a[a.multiCursorModifier=59]="multiCursorModifier",a[a.multiCursorPaste=60]="multiCursorPaste",a[a.occurrencesHighlight=61]="occurrencesHighlight",a[a.overviewRulerBorder=62]="overviewRulerBorder",a[a.overviewRulerLanes=63]="overviewRulerLanes",a[a.parameterHints=64]="parameterHints",a[a.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",a[a.quickSuggestions=66]="quickSuggestions",a[a.quickSuggestionsDelay=67]="quickSuggestionsDelay",a[a.readOnly=68]="readOnly",a[a.renderControlCharacters=69]="renderControlCharacters",a[a.renderIndentGuides=70]="renderIndentGuides",a[a.renderFinalNewline=71]="renderFinalNewline",a[a.renderLineHighlight=72]="renderLineHighlight",a[a.renderValidationDecorations=73]="renderValidationDecorations",a[a.renderWhitespace=74]="renderWhitespace",a[a.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",a[a.roundedSelection=76]="roundedSelection",a[a.rulers=77]="rulers",a[a.scrollbar=78]="scrollbar",a[a.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",a[a.scrollBeyondLastLine=80]="scrollBeyondLastLine",a[a.selectionClipboard=81]="selectionClipboard",a[a.selectionHighlight=82]="selectionHighlight",a[a.selectOnLineNumbers=83]="selectOnLineNumbers",a[a.showFoldingControls=84]="showFoldingControls",a[a.showUnused=85]="showUnused",a[a.snippetSuggestions=86]="snippetSuggestions",a[a.smoothScrolling=87]="smoothScrolling",a[a.stopRenderingLineAfter=88]="stopRenderingLineAfter",a[a.suggest=89]="suggest",a[a.suggestFontSize=90]="suggestFontSize",a[a.suggestLineHeight=91]="suggestLineHeight",a[a.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",a[a.suggestSelection=93]="suggestSelection",a[a.tabCompletion=94]="tabCompletion",a[a.useTabStops=95]="useTabStops",a[a.wordSeparators=96]="wordSeparators",a[a.wordWrap=97]="wordWrap",a[a.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",a[a.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",a[a.wordWrapColumn=100]="wordWrapColumn",a[a.wordWrapMinified=101]="wordWrapMinified",a[a.wrappingIndent=102]="wrappingIndent",a[a.wrappingStrategy=103]="wrappingStrategy",a[a.editorClassName=104]="editorClassName",a[a.pixelRatio=105]="pixelRatio",a[a.tabFocusMode=106]="tabFocusMode",a[a.layoutInfo=107]="layoutInfo",a[a.wrappingInfo=108]="wrappingInfo"})(p||(p={}));var E;(function(a){a[a.TextDefined=0]="TextDefined",a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(E||(E={}));var _;(function(a){a[a.LF=0]="LF",a[a.CRLF=1]="CRLF"})(_||(_={}));var x;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(x||(x={}));var F;(function(a){a[a.Unknown=0]="Unknown",a[a.Backspace=1]="Backspace",a[a.Tab=2]="Tab",a[a.Enter=3]="Enter",a[a.Shift=4]="Shift",a[a.Ctrl=5]="Ctrl",a[a.Alt=6]="Alt",a[a.PauseBreak=7]="PauseBreak",a[a.CapsLock=8]="CapsLock",a[a.Escape=9]="Escape",a[a.Space=10]="Space",a[a.PageUp=11]="PageUp",a[a.PageDown=12]="PageDown",a[a.End=13]="End",a[a.Home=14]="Home",a[a.LeftArrow=15]="LeftArrow",a[a.UpArrow=16]="UpArrow",a[a.RightArrow=17]="RightArrow",a[a.DownArrow=18]="DownArrow",a[a.Insert=19]="Insert",a[a.Delete=20]="Delete",a[a.KEY_0=21]="KEY_0",a[a.KEY_1=22]="KEY_1",a[a.KEY_2=23]="KEY_2",a[a.KEY_3=24]="KEY_3",a[a.KEY_4=25]="KEY_4",a[a.KEY_5=26]="KEY_5",a[a.KEY_6=27]="KEY_6",a[a.KEY_7=28]="KEY_7",a[a.KEY_8=29]="KEY_8",a[a.KEY_9=30]="KEY_9",a[a.KEY_A=31]="KEY_A",a[a.KEY_B=32]="KEY_B",a[a.KEY_C=33]="KEY_C",a[a.KEY_D=34]="KEY_D",a[a.KEY_E=35]="KEY_E",a[a.KEY_F=36]="KEY_F",a[a.KEY_G=37]="KEY_G",a[a.KEY_H=38]="KEY_H",a[a.KEY_I=39]="KEY_I",a[a.KEY_J=40]="KEY_J",a[a.KEY_K=41]="KEY_K",a[a.KEY_L=42]="KEY_L",a[a.KEY_M=43]="KEY_M",a[a.KEY_N=44]="KEY_N",a[a.KEY_O=45]="KEY_O",a[a.KEY_P=46]="KEY_P",a[a.KEY_Q=47]="KEY_Q",a[a.KEY_R=48]="KEY_R",a[a.KEY_S=49]="KEY_S",a[a.KEY_T=50]="KEY_T",a[a.KEY_U=51]="KEY_U",a[a.KEY_V=52]="KEY_V",a[a.KEY_W=53]="KEY_W",a[a.KEY_X=54]="KEY_X",a[a.KEY_Y=55]="KEY_Y",a[a.KEY_Z=56]="KEY_Z",a[a.Meta=57]="Meta",a[a.ContextMenu=58]="ContextMenu",a[a.F1=59]="F1",a[a.F2=60]="F2",a[a.F3=61]="F3",a[a.F4=62]="F4",a[a.F5=63]="F5",a[a.F6=64]="F6",a[a.F7=65]="F7",a[a.F8=66]="F8",a[a.F9=67]="F9",a[a.F10=68]="F10",a[a.F11=69]="F11",a[a.F12=70]="F12",a[a.F13=71]="F13",a[a.F14=72]="F14",a[a.F15=73]="F15",a[a.F16=74]="F16",a[a.F17=75]="F17",a[a.F18=76]="F18",a[a.F19=77]="F19",a[a.NumLock=78]="NumLock",a[a.ScrollLock=79]="ScrollLock",a[a.US_SEMICOLON=80]="US_SEMICOLON",a[a.US_EQUAL=81]="US_EQUAL",a[a.US_COMMA=82]="US_COMMA",a[a.US_MINUS=83]="US_MINUS",a[a.US_DOT=84]="US_DOT",a[a.US_SLASH=85]="US_SLASH",a[a.US_BACKTICK=86]="US_BACKTICK",a[a.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",a[a.US_BACKSLASH=88]="US_BACKSLASH",a[a.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",a[a.US_QUOTE=90]="US_QUOTE",a[a.OEM_8=91]="OEM_8",a[a.OEM_102=92]="OEM_102",a[a.NUMPAD_0=93]="NUMPAD_0",a[a.NUMPAD_1=94]="NUMPAD_1",a[a.NUMPAD_2=95]="NUMPAD_2",a[a.NUMPAD_3=96]="NUMPAD_3",a[a.NUMPAD_4=97]="NUMPAD_4",a[a.NUMPAD_5=98]="NUMPAD_5",a[a.NUMPAD_6=99]="NUMPAD_6",a[a.NUMPAD_7=100]="NUMPAD_7",a[a.NUMPAD_8=101]="NUMPAD_8",a[a.NUMPAD_9=102]="NUMPAD_9",a[a.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",a[a.NUMPAD_ADD=104]="NUMPAD_ADD",a[a.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",a[a.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",a[a.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",a[a.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",a[a.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",a[a.ABNT_C1=110]="ABNT_C1",a[a.ABNT_C2=111]="ABNT_C2",a[a.MAX_VALUE=112]="MAX_VALUE"})(F||(F={}));var R;(function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"})(R||(R={}));var $;(function(a){a[a.Unnecessary=1]="Unnecessary",a[a.Deprecated=2]="Deprecated"})($||($={}));var ie;(function(a){a[a.Inline=1]="Inline",a[a.Gutter=2]="Gutter"})(ie||(ie={}));var W;(function(a){a[a.UNKNOWN=0]="UNKNOWN",a[a.TEXTAREA=1]="TEXTAREA",a[a.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",a[a.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",a[a.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",a[a.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",a[a.CONTENT_TEXT=6]="CONTENT_TEXT",a[a.CONTENT_EMPTY=7]="CONTENT_EMPTY",a[a.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",a[a.CONTENT_WIDGET=9]="CONTENT_WIDGET",a[a.OVERVIEW_RULER=10]="OVERVIEW_RULER",a[a.SCROLLBAR=11]="SCROLLBAR",a[a.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",a[a.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(W||(W={}));var B;(function(a){a[a.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",a[a.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",a[a.TOP_CENTER=2]="TOP_CENTER"})(B||(B={}));var le;(function(a){a[a.Left=1]="Left",a[a.Center=2]="Center",a[a.Right=4]="Right",a[a.Full=7]="Full"})(le||(le={}));var be;(function(a){a[a.Off=0]="Off",a[a.On=1]="On",a[a.Relative=2]="Relative",a[a.Interval=3]="Interval",a[a.Custom=4]="Custom"})(be||(be={}));var De;(function(a){a[a.None=0]="None",a[a.Text=1]="Text",a[a.Blocks=2]="Blocks"})(De||(De={}));var Te;(function(a){a[a.Smooth=0]="Smooth",a[a.Immediate=1]="Immediate"})(Te||(Te={}));var ke;(function(a){a[a.Auto=1]="Auto",a[a.Hidden=2]="Hidden",a[a.Visible=3]="Visible"})(ke||(ke={}));var He;(function(a){a[a.LTR=0]="LTR",a[a.RTL=1]="RTL"})(He||(He={}));var je;(function(a){a[a.Invoke=1]="Invoke",a[a.TriggerCharacter=2]="TriggerCharacter",a[a.ContentChange=3]="ContentChange"})(je||(je={}));var oe;(function(a){a[a.File=0]="File",a[a.Module=1]="Module",a[a.Namespace=2]="Namespace",a[a.Package=3]="Package",a[a.Class=4]="Class",a[a.Method=5]="Method",a[a.Property=6]="Property",a[a.Field=7]="Field",a[a.Constructor=8]="Constructor",a[a.Enum=9]="Enum",a[a.Interface=10]="Interface",a[a.Function=11]="Function",a[a.Variable=12]="Variable",a[a.Constant=13]="Constant",a[a.String=14]="String",a[a.Number=15]="Number",a[a.Boolean=16]="Boolean",a[a.Array=17]="Array",a[a.Object=18]="Object",a[a.Key=19]="Key",a[a.Null=20]="Null",a[a.EnumMember=21]="EnumMember",a[a.Struct=22]="Struct",a[a.Event=23]="Event",a[a.Operator=24]="Operator",a[a.TypeParameter=25]="TypeParameter"})(oe||(oe={}));var ee;(function(a){a[a.Deprecated=1]="Deprecated"})(ee||(ee={}));var ae;(function(a){a[a.Hidden=0]="Hidden",a[a.Blink=1]="Blink",a[a.Smooth=2]="Smooth",a[a.Phase=3]="Phase",a[a.Expand=4]="Expand",a[a.Solid=5]="Solid"})(ae||(ae={}));var q;(function(a){a[a.Line=1]="Line",a[a.Block=2]="Block",a[a.Underline=3]="Underline",a[a.LineThin=4]="LineThin",a[a.BlockOutline=5]="BlockOutline",a[a.UnderlineThin=6]="UnderlineThin"})(q||(q={}));var ce;(function(a){a[a.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",a[a.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",a[a.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",a[a.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ce||(ce={}));var X;(function(a){a[a.None=0]="None",a[a.Same=1]="Same",a[a.Indent=2]="Indent",a[a.DeepIndent=3]="DeepIndent"})(X||(X={}));var he=function(){function a(){}return a.chord=function(r,o){return Object(H.a)(r,o)},a.CtrlCmd=2048,a.Shift=1024,a.Alt=512,a.WinCtrl=256,a}();function Pe(){return{editor:void 0,languages:void 0,CancellationTokenSource:J.b,Emitter:N.a,KeyCode:F,KeyMod:he,Position:M.a,Range:U.a,Selection:A.a,SelectionDirection:He,MarkerSeverity:R,MarkerTag:$,Uri:z.a,Token:c.a}}var Xe=e("siPX"),pe=e("Vxe3"),me=e("EffR"),Se=e("24hK"),Re=e("Q4rV"),Ee=e("tYmi"),ve=e("gslv"),Q=e("nnTU"),b=e("W9cx"),k;(function(a){a[a.API=0]="API",a[a.USER=1]="USER"})(k||(k={}));var se=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},ne=function(a,r){return function(o,h){r(o,h,a)}},Ce=function(a,r,o,h){function w(I){return I instanceof o?I:new o(function(ue){ue(I)})}return new(o||(o=Promise))(function(I,ue){function Be(Lt){try{Ye(h.next(Lt))}catch(Mt){ue(Mt)}}function Ge(Lt){try{Ye(h.throw(Lt))}catch(Mt){ue(Mt)}}function Ye(Lt){Lt.done?I(Lt.value):w(Lt.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},Oe=function(a,r){var o={label:0,sent:function(){if(I[0]&1)throw I[1];return I[1]},trys:[],ops:[]},h,w,I,ue;return ue={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ue[Symbol.iterator]=function(){return this}),ue;function Be(Ye){return function(Lt){return Ge([Ye,Lt])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;o;)try{if(h=1,w&&(I=Ye[0]&2?w.return:Ye[0]?w.throw||((I=w.return)&&I.call(w),0):w.next)&&!(I=I.call(w,Ye[1])).done)return I;(w=0,I)&&(Ye=[Ye[0]&2,I.value]);switch(Ye[0]){case 0:case 1:I=Ye;break;case 4:return o.label++,{value:Ye[1],done:!1};case 5:o.label++,w=Ye[1],Ye=[0];continue;case 7:Ye=o.ops.pop(),o.trys.pop();continue;default:if(!(I=o.trys,I=I.length>0&&I[I.length-1])&&(Ye[0]===6||Ye[0]===2)){o=0;continue}if(Ye[0]===3&&(!I||Ye[1]>I[0]&&Ye[1]<I[3])){o.label=Ye[1];break}if(Ye[0]===6&&o.label<I[1]){o.label=I[1],I=Ye;break}if(I&&o.label<I[2]){o.label=I[2],o.ops.push(Ye);break}I[2]&&o.ops.pop(),o.trys.pop();continue}Ye=r.call(a,o)}catch(Lt){Ye=[6,Lt],w=0}finally{h=I=0}if(Ye[0]&5)throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}},we=function(){for(var a=0,r=0,o=arguments.length;r<o;r++)a+=arguments[r].length;for(var h=Array(a),w=0,r=0;r<o;r++)for(var I=arguments[r],ue=0,Be=I.length;ue<Be;ue++,w++)h[w]=I[ue];return h},Ve=function(){function a(r){this._commandService=r}return a.prototype.open=function(r){return Ce(this,void 0,void 0,function(){var o,h;return Oe(this,function(w){switch(w.label){case 0:if(!Object(b.c)(r,Ee.b.command))return[2,!1];if(typeof r=="string"&&(r=z.a.parse(r)),!Q.a.getCommand(r.path))throw new Error("command '"+r.path+"' NOT known");o=[];try{o=Object(Re.a)(decodeURIComponent(r.query))}catch(I){try{o=Object(Re.a)(r.query)}catch(ue){}}return Array.isArray(o)||(o=[o]),[4,(h=this._commandService).executeCommand.apply(h,we([r.path],o))];case 1:return w.sent(),[2,!0]}})})},a=se([ne(0,Q.b)],a),a}(),Qe=function(){function a(r){this._editorService=r}return a.prototype.open=function(r,o){return Ce(this,void 0,void 0,function(){var h,w;return Oe(this,function(I){switch(I.label){case 0:return typeof r=="string"&&(r=z.a.parse(r)),h=void 0,w=/^L?(\d+)(?:,(\d+))?/.exec(r.fragment),w&&(h={startLineNumber:parseInt(w[1]),startColumn:w[2]?parseInt(w[2]):1},r=r.with({fragment:""})),r.scheme===Ee.b.file&&(r=Object(ve.g)(r)),[4,this._editorService.openCodeEditor({resource:r,options:{selection:h,context:(o==null?void 0:o.fromUserGesture)?k.USER:k.API}},this._editorService.getFocusedCodeEditor(),o==null?void 0:o.openToSide)];case 1:return I.sent(),[2,!0]}})})},a=se([ne(0,pe.a)],a),a}(),it=function(){function a(r,o){var h=this;this._openers=new Se.a,this._validators=new Se.a,this._resolvers=new Se.a,this._externalOpener={openExternal:function(I){return me.ab(I),Promise.resolve(!0)}},this._openers.push({open:function(I,ue){return Ce(h,void 0,void 0,function(){return Oe(this,function(Be){switch(Be.label){case 0:return(ue==null?void 0:ue.openExternal)||Object(b.c)(I,Ee.b.mailto)||Object(b.c)(I,Ee.b.http)||Object(b.c)(I,Ee.b.https)?[4,this._doOpenExternal(I,ue)]:[3,2];case 1:return Be.sent(),[2,!0];case 2:return[2,!1]}})})}}),this._openers.push(new Ve(o)),this._openers.push(new Qe(r))}return a.prototype.open=function(r,o){return Ce(this,void 0,void 0,function(){var h,w,I,ue,Be,Ge,Ye;return Oe(this,function(Lt){switch(Lt.label){case 0:h=0,w=this._validators.toArray(),Lt.label=1;case 1:return h<w.length?(I=w[h],[4,I.shouldOpen(r)]):[3,4];case 2:if(!Lt.sent())return[2,!1];Lt.label=3;case 3:return h++,[3,1];case 4:ue=0,Be=this._openers.toArray(),Lt.label=5;case 5:return ue<Be.length?(Ge=Be[ue],[4,Ge.open(r,o)]):[3,8];case 6:if(Ye=Lt.sent(),Ye)return[2,!0];Lt.label=7;case 7:return ue++,[3,5];case 8:return[2,!1]}})})},a.prototype.resolveExternalUri=function(r,o){return Ce(this,void 0,void 0,function(){var h,w,I,ue;return Oe(this,function(Be){switch(Be.label){case 0:h=0,w=this._resolvers.toArray(),Be.label=1;case 1:return h<w.length?(I=w[h],[4,I.resolveExternalUri(r,o)]):[3,4];case 2:if(ue=Be.sent(),ue)return[2,ue];Be.label=3;case 3:return h++,[3,1];case 4:return[2,{resolved:r,dispose:function(){}}]}})})},a.prototype._doOpenExternal=function(r,o){return Ce(this,void 0,void 0,function(){var h,w;return Oe(this,function(I){switch(I.label){case 0:return h=typeof r=="string"?z.a.parse(r):r,[4,this.resolveExternalUri(h,o)];case 1:if(w=I.sent().resolved,typeof r=="string"&&h.toString()===w.toString())return[2,this._externalOpener.openExternal(r)];return[2,this._externalOpener.openExternal(encodeURI(w.toString(!0)))];return[2]}})})},a.prototype.dispose=function(){this._validators.clear()},a=se([ne(0,pe.a),ne(1,Q.b)],a),a}(),gt=e("FWmy"),Rt=e("pmY6"),Dt=e("qj0h"),zt=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),cn={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},ln=function(a){zt(r,a);function r(o,h){h===void 0&&(h={});var w=a.call(this)||this;return w._onDidUpdate=w._register(new N.a),w._editor=o,w._options=Dt.g(h,cn,!1),w.disposed=!1,w.nextIdx=-1,w.ranges=[],w.ignoreSelectionChange=!1,w.revealFirst=Boolean(w._options.alwaysRevealFirst),w._register(w._editor.onDidDispose(function(){return w.dispose()})),w._register(w._editor.onDidUpdateDiff(function(){return w._onDiffUpdated()})),w._options.followsCaret&&w._register(w._editor.getModifiedEditor().onDidChangeCursorPosition(function(I){if(w.ignoreSelectionChange)return;w.nextIdx=-1})),w._options.alwaysRevealFirst&&w._register(w._editor.getModifiedEditor().onDidChangeModel(function(I){w.revealFirst=!0})),w._init(),w}return r.prototype._init=function(){var o=this._editor.getLineChanges();if(!o)return},r.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&(this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1)))},r.prototype._compute=function(o){var h=this;this.ranges=[],o&&o.forEach(function(w){!h._options.ignoreCharChanges&&w.charChanges?w.charChanges.forEach(function(I){h.ranges.push({rhs:!0,range:new U.a(I.modifiedStartLineNumber,I.modifiedStartColumn,I.modifiedEndLineNumber,I.modifiedEndColumn)})}):h.ranges.push({rhs:!0,range:new U.a(w.modifiedStartLineNumber,1,w.modifiedStartLineNumber,1)})}),this.ranges.sort(function(w,I){return w.range.getStartPosition().isBeforeOrEqual(I.range.getStartPosition())?-1:I.range.getStartPosition().isBeforeOrEqual(w.range.getStartPosition())?1:0}),this._onDidUpdate.fire(this)},r.prototype._initIdx=function(o){var h=!1,w=this._editor.getPosition();if(!w){this.nextIdx=0;return}for(var I=0,ue=this.ranges.length;I<ue&&!h;I++){var Be=this.ranges[I].range;w.isBeforeOrEqual(Be.getStartPosition())&&(this.nextIdx=I+(o?0:-1),h=!0)}h||(this.nextIdx=o?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)},r.prototype._move=function(o,h){if(gt.a(!this.disposed,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;this.nextIdx===-1?this._initIdx(o):o?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var w=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var I=w.range.getStartPosition();this._editor.setPosition(I),this._editor.revealPositionInCenter(I,h)}finally{this.ignoreSelectionChange=!1}},r.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},r.prototype.next=function(o){o===void 0&&(o=0),this._move(!0,o)},r.prototype.previous=function(o){o===void 0&&(o=0),this._move(!1,o)},r.prototype.dispose=function(){a.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},r}(Rt.a),an=e("+3Gp"),jt=e("iuje"),ft=e("M1Kb"),vt=e("twdY"),xt=e("i/Ef"),at=e("pAvP"),tt=e("t49l"),ct=e("X+cX"),bt=e("/cxE"),mt=e("MNsG"),Ct=e("746U"),Gt=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),It="$initialize",Et=!1;function Je(a){if(!mt.g)return;Et||(Et=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(a.message)}var $e=function(){function a(r){this._workerId=-1,this._handler=r,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return a.prototype.setWorkerId=function(r){this._workerId=r},a.prototype.sendMessage=function(r,o){var h=this,w=String(++this._lastSentReq);return new Promise(function(I,ue){h._pendingReplies[w]={resolve:I,reject:ue},h._send({vsWorker:h._workerId,req:w,method:r,args:o})})},a.prototype.handleMessage=function(r){if(!r||!r.vsWorker)return;if(this._workerId!==-1&&r.vsWorker!==this._workerId)return;this._handleMessage(r)},a.prototype._handleMessage=function(r){var o=this;if(r.seq){var h=r;if(!this._pendingReplies[h.seq]){console.warn("Got reply to unknown seq");return}var w=this._pendingReplies[h.seq];if(delete this._pendingReplies[h.seq],h.err){var I=h.err;h.err.$isError&&(I=new Error,I.name=h.err.name,I.message=h.err.message,I.stack=h.err.stack),w.reject(I);return}w.resolve(h.res);return}var ue=r,Be=ue.req,Ge=this._handler.handleMessage(ue.method,ue.args);Ge.then(function(Ye){o._send({vsWorker:o._workerId,seq:Be,res:Ye,err:void 0})},function(Ye){Ye.detail instanceof Error&&(Ye.detail=Object(bt.g)(Ye.detail)),o._send({vsWorker:o._workerId,seq:Be,res:void 0,err:Object(bt.g)(Ye)})})},a.prototype._send=function(r){var o=[];if(r.req)for(var h=r,w=0;w<h.args.length;w++)h.args[w]instanceof ArrayBuffer&&o.push(h.args[w]);else{var h=r;h.res instanceof ArrayBuffer&&o.push(h.res)}this._handler.sendMessage(r,o)},a}(),ze=function(a){Gt(r,a);function r(o,h,w){var I=a.call(this)||this,ue=null;I._worker=I._register(o.create("vs/base/common/worker/simpleWorker",function(Lt){I._protocol.handleMessage(Lt)},function(Lt){ue&&ue(Lt)})),I._protocol=new $e({sendMessage:function(Mt,kt){I._worker.postMessage(Mt,kt)},handleMessage:function(Mt,kt){if(typeof w[Mt]!="function")return Promise.reject(new Error("Missing method "+Mt+" on main thread host."));try{return Promise.resolve(w[Mt].apply(w,kt))}catch(Pt){return Promise.reject(Pt)}}}),I._protocol.setWorkerId(I._worker.getId());var Be=null;typeof self.require!="undefined"&&typeof self.require.getConfig=="function"?Be=self.require.getConfig():typeof self.requirejs!="undefined"&&(Be=self.requirejs.s.contexts._.config);var Ge=Ct.c(w);I._onModuleLoaded=I._protocol.sendMessage(It,[I._worker.getId(),JSON.parse(JSON.stringify(Be)),h,Ge]);var Ye=function(Mt,kt){return I._request(Mt,kt)};return I._lazyProxy=new Promise(function(Lt,Mt){ue=Mt,I._onModuleLoaded.then(function(kt){Lt(Ct.b(kt,Ye))},function(kt){Mt(kt),I._onError("Worker failed to load "+h,kt)})}),I}return r.prototype.getProxyObject=function(){return this._lazyProxy},r.prototype._request=function(o,h){var w=this;return new Promise(function(I,ue){w._onModuleLoaded.then(function(){w._protocol.sendMessage(o,h).then(I,ue)},ue)})},r.prototype._onError=function(o,h){console.error(o),console.info(h)},r}(Rt.a),Ke=function(){function a(r,o){var h=this;this._requestHandlerFactory=o,this._requestHandler=null,this._protocol=new $e({sendMessage:function(I,ue){r(I,ue)},handleMessage:function(I,ue){return h._handleMessage(I,ue)}})}return a.prototype.onmessage=function(r){this._protocol.handleMessage(r)},a.prototype._handleMessage=function(r,o){if(r===It)return this.initialize(o[0],o[1],o[2],o[3]);if(!this._requestHandler||typeof this._requestHandler[r]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+r));try{return Promise.resolve(this._requestHandler[r].apply(this._requestHandler,o))}catch(h){return Promise.reject(h)}},a.prototype.initialize=function(r,o,h,w){var I=this;this._protocol.setWorkerId(r);var ue=function(Ye,Lt){return I._protocol.sendMessage(Ye,Lt)},Be=Ct.b(w,ue);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(Be),Promise.resolve(Ct.c(this._requestHandler))):(o&&(typeof o.baseUrl!="undefined"&&delete o.baseUrl,typeof o.paths!="undefined"&&(typeof o.paths.vs!="undefined"&&delete o.paths.vs),o.catchError=!0,self.require.config(o)),new Promise(function(Ge,Ye){self.require([h],function(Lt){if(I._requestHandler=Lt.create(Be),!I._requestHandler){Ye(new Error("No RequestHandler!"));return}Ge(Ct.c(I._requestHandler))},Ye)}))},a}();function fe(a){return new Ke(a,null)}function G(a,r){if(mt.b.MonacoEnvironment){if(typeof mt.b.MonacoEnvironment.getWorker=="function")return mt.b.MonacoEnvironment.getWorker(a,r);if(typeof mt.b.MonacoEnvironment.getWorkerUrl=="function")return new Worker(mt.b.MonacoEnvironment.getWorkerUrl(a,r))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function te(a){return typeof a.then=="function"}var Y=function(){function a(r,o,h,w,I){this.id=o;var ue=G("workerMain.js",h);te(ue)?this.worker=ue:this.worker=Promise.resolve(ue),this.postMessage(r,[]),this.worker.then(function(Be){Be.onmessage=function(Ge){w(Ge.data)},Be.onmessageerror=I,typeof Be.addEventListener=="function"&&Be.addEventListener("error",I)})}return a.prototype.getId=function(){return this.id},a.prototype.postMessage=function(r,o){this.worker&&this.worker.then(function(h){return h.postMessage(r,o)})},a.prototype.dispose=function(){this.worker&&this.worker.then(function(r){return r.terminate()}),this.worker=null},a}(),de=function(){function a(r){this._label=r,this._webWorkerFailedBeforeError=!1}return a.prototype.create=function(r,o,h){var w=this,I=++a.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new Y(r,I,this._label||"anonymous"+I,o,function(ue){Je(ue),w._webWorkerFailedBeforeError=ue,h(ue)})},a.LAST_WORKER_ID=0,a}(),Fe=e("cMvZ"),lt=e("6OMU"),Tt=e("Gw4z"),Jt=e("JYp7"),en=e("N0LK"),gn=3;function un(a,r,o,h){var w=new Tt.a(a,r,o);return w.ComputeDiff(h)}var En=function(){function a(r){for(var o=[],h=[],w=0,I=r.length;w<I;w++)o[w]=Gn(r[w],1),h[w]=Bn(r[w],1);this.lines=r,this._startColumns=o,this._endColumns=h}return a.prototype.getElements=function(){for(var r=[],o=0,h=this.lines.length;o<h;o++)r[o]=this.lines[o].substring(this._startColumns[o]-1,this._endColumns[o]-1);return r},a.prototype.getStartLineNumber=function(r){return r+1},a.prototype.getEndLineNumber=function(r){return r+1},a.prototype.createCharSequence=function(r,o,h){for(var w=[],I=[],ue=[],Be=0,Ge=o;Ge<=h;Ge++)for(var Ye=this.lines[Ge],Lt=r?this._startColumns[Ge]:1,Mt=r?this._endColumns[Ge]:Ye.length+1,kt=Lt;kt<Mt;kt++)w[Be]=Ye.charCodeAt(kt-1),I[Be]=Ge+1,ue[Be]=kt,Be++;return new Mn(w,I,ue)},a}(),Mn=function(){function a(r,o,h){this._charCodes=r,this._lineNumbers=o,this._columns=h}return a.prototype.getElements=function(){return this._charCodes},a.prototype.getStartLineNumber=function(r){return this._lineNumbers[r]},a.prototype.getStartColumn=function(r){return this._columns[r]},a.prototype.getEndLineNumber=function(r){return this._lineNumbers[r]},a.prototype.getEndColumn=function(r){return this._columns[r]+1},a}(),xn=function(){function a(r,o,h,w,I,ue,Be,Ge){this.originalStartLineNumber=r,this.originalStartColumn=o,this.originalEndLineNumber=h,this.originalEndColumn=w,this.modifiedStartLineNumber=I,this.modifiedStartColumn=ue,this.modifiedEndLineNumber=Be,this.modifiedEndColumn=Ge}return a.createFromDiffChange=function(r,o,h){var w,I,ue,Be,Ge,Ye,Lt,Mt;return r.originalLength===0?(w=0,I=0,ue=0,Be=0):(w=o.getStartLineNumber(r.originalStart),I=o.getStartColumn(r.originalStart),ue=o.getEndLineNumber(r.originalStart+r.originalLength-1),Be=o.getEndColumn(r.originalStart+r.originalLength-1)),r.modifiedLength===0?(Ge=0,Ye=0,Lt=0,Mt=0):(Ge=h.getStartLineNumber(r.modifiedStart),Ye=h.getStartColumn(r.modifiedStart),Lt=h.getEndLineNumber(r.modifiedStart+r.modifiedLength-1),Mt=h.getEndColumn(r.modifiedStart+r.modifiedLength-1)),new a(w,I,ue,Be,Ge,Ye,Lt,Mt)},a}();function Zn(a){if(a.length<=1)return a;for(var r=[a[0]],o=r[0],h=1,w=a.length;h<w;h++){var I=a[h],ue=I.originalStart-(o.originalStart+o.originalLength),Be=I.modifiedStart-(o.modifiedStart+o.modifiedLength),Ge=Math.min(ue,Be);Ge<gn?(o.originalLength=I.originalStart+I.originalLength-o.originalStart,o.modifiedLength=I.modifiedStart+I.modifiedLength-o.modifiedStart):(r.push(I),o=I)}return r}var bn=function(){function a(r,o,h,w,I){this.originalStartLineNumber=r,this.originalEndLineNumber=o,this.modifiedStartLineNumber=h,this.modifiedEndLineNumber=w,this.charChanges=I}return a.createFromDiffResult=function(r,o,h,w,I,ue,Be){var Ge,Ye,Lt,Mt,kt=void 0;if(o.originalLength===0?(Ge=h.getStartLineNumber(o.originalStart)-1,Ye=0):(Ge=h.getStartLineNumber(o.originalStart),Ye=h.getEndLineNumber(o.originalStart+o.originalLength-1)),o.modifiedLength===0?(Lt=w.getStartLineNumber(o.modifiedStart)-1,Mt=0):(Lt=w.getStartLineNumber(o.modifiedStart),Mt=w.getEndLineNumber(o.modifiedStart+o.modifiedLength-1)),ue&&o.originalLength>0&&o.originalLength<20&&o.modifiedLength>0&&o.modifiedLength<20&&I()){var Pt=h.createCharSequence(r,o.originalStart,o.originalStart+o.originalLength-1),sn=w.createCharSequence(r,o.modifiedStart,o.modifiedStart+o.modifiedLength-1),tn=un(Pt,sn,I,!0).changes;Be&&(tn=Zn(tn)),kt=[];for(var Yt=0,Qt=tn.length;Yt<Qt;Yt++)kt.push(xn.createFromDiffChange(tn[Yt],Pt,sn))}return new a(Ge,Ye,Lt,Mt,kt)},a}(),Wn=function(){function a(r,o,h){this.shouldComputeCharChanges=h.shouldComputeCharChanges,this.shouldPostProcessCharChanges=h.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=h.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=h.shouldMakePrettyDiff,this.originalLines=r,this.modifiedLines=o,this.original=new En(r),this.modified=new En(o),this.continueLineDiff=Dn(h.maxComputationTime),this.continueCharDiff=Dn(h.maxComputationTime===0?0:Math.min(h.maxComputationTime,5e3))}return a.prototype.computeDiff=function(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var r=un(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),o=r.changes,h=r.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var w=[],I=0,ue=o.length;I<ue;I++)w.push(bn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,o[I],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:h,changes:w}}for(var Be=[],Ge=0,Ye=0,I=-1,Lt=o.length;I<Lt;I++){for(var Mt=I+1<Lt?o[I+1]:null,kt=Mt?Mt.originalStart:this.originalLines.length,Pt=Mt?Mt.modifiedStart:this.modifiedLines.length;Ge<kt&&Ye<Pt;){var sn=this.originalLines[Ge],tn=this.modifiedLines[Ye];if(sn!==tn){{for(var Yt=Gn(sn,1),Qt=Gn(tn,1);Yt>1&&Qt>1;){var hn=sn.charCodeAt(Yt-2),wn=tn.charCodeAt(Qt-2);if(hn!==wn)break;Yt--,Qt--}(Yt>1||Qt>1)&&this._pushTrimWhitespaceCharChange(Be,Ge+1,1,Yt,Ye+1,1,Qt)}{for(var Tn=Bn(sn,1),Nn=Bn(tn,1),Fn=sn.length+1,Kn=tn.length+1;Tn<Fn&&Nn<Kn;){var hn=sn.charCodeAt(Tn-1),wn=sn.charCodeAt(Nn-1);if(hn!==wn)break;Tn++,Nn++}(Tn<Fn||Nn<Kn)&&this._pushTrimWhitespaceCharChange(Be,Ge+1,Tn,Fn,Ye+1,Nn,Kn)}}Ge++,Ye++}Mt&&(Be.push(bn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,Mt,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),Ge+=Mt.originalLength,Ye+=Mt.modifiedLength)}return{quitEarly:h,changes:Be}},a.prototype._pushTrimWhitespaceCharChange=function(r,o,h,w,I,ue,Be){if(this._mergeTrimWhitespaceCharChange(r,o,h,w,I,ue,Be))return;var Ge=void 0;this.shouldComputeCharChanges&&(Ge=[new xn(o,h,o,w,I,ue,I,Be)]),r.push(new bn(o,o,I,I,Ge))},a.prototype._mergeTrimWhitespaceCharChange=function(r,o,h,w,I,ue,Be){var Ge=r.length;if(Ge===0)return!1;var Ye=r[Ge-1];return Ye.originalEndLineNumber===0||Ye.modifiedEndLineNumber===0?!1:Ye.originalEndLineNumber+1===o&&Ye.modifiedEndLineNumber+1===I?(Ye.originalEndLineNumber=o,Ye.modifiedEndLineNumber=I,this.shouldComputeCharChanges&&Ye.charChanges&&Ye.charChanges.push(new xn(o,h,o,w,I,ue,I,Be)),!0):!1},a}();function Gn(a,r){var o=en.q(a);return o===-1?r:o+1}function Bn(a,r){var o=en.D(a);return o===-1?r:o+2}function Dn(a){if(a===0)return function(){return!0};var r=Date.now();return function(){return Date.now()-r<a}}var Qn=e("LeU+"),fo=function(){function a(r,o,h,w){this._uri=r,this._lines=o,this._eol=h,this._versionId=w,this._lineStarts=null}return a.prototype.dispose=function(){this._lines.length=0},a.prototype.getText=function(){return this._lines.join(this._eol)},a.prototype.onEvents=function(r){r.eol&&r.eol!==this._eol&&(this._eol=r.eol,this._lineStarts=null);for(var o=r.changes,h=0,w=o;h<w.length;h++){var I=w[h];this._acceptDeleteRange(I.range),this._acceptInsertText(new M.a(I.range.startLineNumber,I.range.startColumn),I.text)}this._versionId=r.versionId},a.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var r=this._eol.length,o=this._lines.length,h=new Uint32Array(o),w=0;w<o;w++)h[w]=this._lines[w].length+r;this._lineStarts=new Qn.a(h)}},a.prototype._setLineText=function(r,o){this._lines[r]=o,this._lineStarts&&this._lineStarts.changeValue(r,this._lines[r].length+this._eol.length)},a.prototype._acceptDeleteRange=function(r){if(r.startLineNumber===r.endLineNumber){if(r.startColumn===r.endColumn)return;this._setLineText(r.startLineNumber-1,this._lines[r.startLineNumber-1].substring(0,r.startColumn-1)+this._lines[r.startLineNumber-1].substring(r.endColumn-1));return}this._setLineText(r.startLineNumber-1,this._lines[r.startLineNumber-1].substring(0,r.startColumn-1)+this._lines[r.endLineNumber-1].substring(r.endColumn-1)),this._lines.splice(r.startLineNumber,r.endLineNumber-r.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(r.startLineNumber,r.endLineNumber-r.startLineNumber)},a.prototype._acceptInsertText=function(r,o){if(o.length===0)return;var h=o.split(/\r\n|\r|\n/);if(h.length===1){this._setLineText(r.lineNumber-1,this._lines[r.lineNumber-1].substring(0,r.column-1)+h[0]+this._lines[r.lineNumber-1].substring(r.column-1));return}h[h.length-1]+=this._lines[r.lineNumber-1].substring(r.column-1),this._setLineText(r.lineNumber-1,this._lines[r.lineNumber-1].substring(0,r.column-1)+h[0]);for(var w=new Uint32Array(h.length-1),I=1;I<h.length;I++)this._lines.splice(r.lineNumber+I-1,0,h[I]),w[I-1]=h[I].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(r.lineNumber,w)},a}(),Vn=e("0JNc"),po=e("MXAL"),yo=function(){function a(r,o,h){for(var w=new Uint8Array(r*o),I=0,ue=r*o;I<ue;I++)w[I]=h;this._data=w,this.rows=r,this.cols=o}return a.prototype.get=function(r,o){return this._data[r*this.cols+o]},a.prototype.set=function(r,o,h){this._data[r*this.cols+o]=h},a}(),lo=function(){function a(r){for(var o=0,h=0,w=0,I=r.length;w<I;w++){var ue=r[w],Be=ue[0],Ge=ue[1],Ye=ue[2];Ge>o&&(o=Ge),Be>h&&(h=Be),Ye>h&&(h=Ye)}o++,h++;for(var Lt=new yo(h,o,0),w=0,I=r.length;w<I;w++){var Mt=r[w],Be=Mt[0],Ge=Mt[1],Ye=Mt[2];Lt.set(Be,Ge,Ye)}this._states=Lt,this._maxCharCode=o}return a.prototype.nextState=function(r,o){return o<0||o>=this._maxCharCode?0:this._states.get(r,o)},a}(),io=null;function go(){return io===null&&(io=new lo([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),io}var zn=null;function Un(){if(zn===null){zn=new po.a(0);for(var a=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF20\uFF03\uFF04\uFF05\uFF06\uFF0A\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`,r=0;r<a.length;r++)zn.set(a.charCodeAt(r),1);for(var o=".,;",r=0;r<o.length;r++)zn.set(o.charCodeAt(r),2)}return zn}var wt=function(){function a(){}return a._createLink=function(r,o,h,w,I){var ue=I-1;do{var Be=o.charCodeAt(ue),Ge=r.get(Be);if(Ge!==2)break;ue--}while(ue>w);if(w>0){var Ye=o.charCodeAt(w-1),Lt=o.charCodeAt(ue);(Ye===40&&Lt===41||Ye===91&&Lt===93||Ye===123&&Lt===125)&&ue--}return{range:{startLineNumber:h,startColumn:w+1,endLineNumber:h,endColumn:ue+2},url:o.substring(w,ue+1)}},a.computeLinks=function(r,o){o===void 0&&(o=go());for(var h=Un(),w=[],I=1,ue=r.getLineCount();I<=ue;I++){for(var Be=r.getLineContent(I),Ge=Be.length,Ye=0,Lt=0,Mt=0,kt=1,Pt=!1,sn=!1,tn=!1;Ye<Ge;){var Yt=!1,Qt=Be.charCodeAt(Ye);if(kt===13){var hn=void 0;switch(Qt){case 40:Pt=!0,hn=0;break;case 41:hn=Pt?0:1;break;case 91:sn=!0,hn=0;break;case 93:hn=sn?0:1;break;case 123:tn=!0,hn=0;break;case 125:hn=tn?0:1;break;case 39:hn=Mt===34||Mt===96?0:1;break;case 34:hn=Mt===39||Mt===96?0:1;break;case 96:hn=Mt===39||Mt===34?0:1;break;case 42:hn=Mt===42?1:0;break;case 124:hn=Mt===124?1:0;break;default:hn=h.get(Qt)}hn===1&&(w.push(a._createLink(h,Be,I,Lt,Ye)),Yt=!0)}else if(kt===12){var hn=void 0;Qt===91?(sn=!0,hn=0):hn=h.get(Qt),hn===1?Yt=!0:kt=13}else kt=o.nextState(kt,Qt),kt===0&&(Yt=!0);Yt&&(kt=1,Pt=!1,sn=!1,tn=!1,Lt=Ye+1,Mt=Qt),Ye++}kt===13&&w.push(a._createLink(h,Be,I,Lt,Ge))}return w},a}();function nt(a){return!a||typeof a.getLineCount!="function"||typeof a.getLineContent!="function"?[]:wt.computeLinks(a)}var ot=function(){function a(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return a.prototype.navigateValueSet=function(r,o,h,w,I){if(r&&o){var ue=this.doNavigateValueSet(o,I);if(ue)return{range:r,value:ue}}if(h&&w){var ue=this.doNavigateValueSet(w,I);if(ue)return{range:h,value:ue}}return null},a.prototype.doNavigateValueSet=function(r,o){var h=this.numberReplace(r,o);return h!==null?h:this.textReplace(r,o)},a.prototype.numberReplace=function(r,o){var h=Math.pow(10,r.length-(r.lastIndexOf(".")+1)),w=Number(r),I=parseFloat(r);return!isNaN(w)&&!isNaN(I)&&w===I?w===0&&!o?null:(w=Math.floor(w*h),w+=o?h:-h,String(w/h)):null},a.prototype.textReplace=function(r,o){return this.valueSetsReplace(this._defaultValueSet,r,o)},a.prototype.valueSetsReplace=function(r,o,h){for(var w=null,I=0,ue=r.length;w===null&&I<ue;I++)w=this.valueSetReplace(r[I],o,h);return w},a.prototype.valueSetReplace=function(r,o,h){var w=r.indexOf(o);return w>=0?(w+=h?1:-1,w<0?w=r.length-1:w%=r.length,r[w]):null},a.INSTANCE=new a,a}(),Ot=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Le=function(a,r,o,h){function w(I){return I instanceof o?I:new o(function(ue){ue(I)})}return new(o||(o=Promise))(function(I,ue){function Be(Lt){try{Ye(h.next(Lt))}catch(Mt){ue(Mt)}}function Ge(Lt){try{Ye(h.throw(Lt))}catch(Mt){ue(Mt)}}function Ye(Lt){Lt.done?I(Lt.value):w(Lt.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},D=function(a,r){var o={label:0,sent:function(){if(I[0]&1)throw I[1];return I[1]},trys:[],ops:[]},h,w,I,ue;return ue={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ue[Symbol.iterator]=function(){return this}),ue;function Be(Ye){return function(Lt){return Ge([Ye,Lt])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;o;)try{if(h=1,w&&(I=Ye[0]&2?w.return:Ye[0]?w.throw||((I=w.return)&&I.call(w),0):w.next)&&!(I=I.call(w,Ye[1])).done)return I;(w=0,I)&&(Ye=[Ye[0]&2,I.value]);switch(Ye[0]){case 0:case 1:I=Ye;break;case 4:return o.label++,{value:Ye[1],done:!1};case 5:o.label++,w=Ye[1],Ye=[0];continue;case 7:Ye=o.ops.pop(),o.trys.pop();continue;default:if(!(I=o.trys,I=I.length>0&&I[I.length-1])&&(Ye[0]===6||Ye[0]===2)){o=0;continue}if(Ye[0]===3&&(!I||Ye[1]>I[0]&&Ye[1]<I[3])){o.label=Ye[1];break}if(Ye[0]===6&&o.label<I[1]){o.label=I[1],I=Ye;break}if(I&&o.label<I[2]){o.label=I[2],o.ops.push(Ye);break}I[2]&&o.ops.pop(),o.trys.pop();continue}Ye=r.call(a,o)}catch(Lt){Ye=[6,Lt],w=0}finally{h=I=0}if(Ye[0]&5)throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}},j=function(a){Ot(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),r.prototype.getValue=function(){return this.getText()},r.prototype.getLinesContent=function(){return this._lines.slice(0)},r.prototype.getLineCount=function(){return this._lines.length},r.prototype.getLineContent=function(o){return this._lines[o-1]},r.prototype.getWordAtPosition=function(o,h){var w=Object(Vn.d)(o.column,Object(Vn.c)(h),this._lines[o.lineNumber-1],0);return w?new U.a(o.lineNumber,w.startColumn,o.lineNumber,w.endColumn):null},r.prototype.createWordIterator=function(o){var h=this,w,I=0,ue,Be=0,Ge=[],Ye=function Lt(){if(Be<Ge.length){var Mt=ue.substring(Ge[Be].start,Ge[Be].end);return Be+=1,w?w.value=Mt:w={done:!1,value:Mt},w}else return I>=h._lines.length?Jt.c:(ue=h._lines[I],Ge=h._wordenize(ue,o),Be=0,I+=1,Lt())};return{next:Ye}},r.prototype.getLineWords=function(o,h){for(var w=this._lines[o-1],I=this._wordenize(w,h),ue=[],Be=0,Ge=I;Be<Ge.length;Be++){var Ye=Ge[Be];ue.push({word:w.substring(Ye.start,Ye.end),startColumn:Ye.start+1,endColumn:Ye.end+1})}return ue},r.prototype._wordenize=function(o,h){var w=[],I;for(h.lastIndex=0;(I=h.exec(o))&&!(I[0].length===0);)w.push({start:I.index,end:I.index+I[0].length});return w},r.prototype.getValueInRange=function(o){if(o=this._validateRange(o),o.startLineNumber===o.endLineNumber)return this._lines[o.startLineNumber-1].substring(o.startColumn-1,o.endColumn-1);var h=this._eol,w=o.startLineNumber-1,I=o.endLineNumber-1,ue=[];ue.push(this._lines[w].substring(o.startColumn-1));for(var Be=w+1;Be<I;Be++)ue.push(this._lines[Be]);return ue.push(this._lines[I].substring(0,o.endColumn-1)),ue.join(h)},r.prototype.offsetAt=function(o){return o=this._validatePosition(o),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(o.lineNumber-2)+(o.column-1)},r.prototype.positionAt=function(o){o=Math.floor(o),o=Math.max(0,o),this._ensureLineStarts();var h=this._lineStarts.getIndexOf(o),w=this._lines[h.index].length;return{lineNumber:1+h.index,column:1+Math.min(h.remainder,w)}},r.prototype._validateRange=function(o){var h=this._validatePosition({lineNumber:o.startLineNumber,column:o.startColumn}),w=this._validatePosition({lineNumber:o.endLineNumber,column:o.endColumn});return h.lineNumber!==o.startLineNumber||h.column!==o.startColumn||w.lineNumber!==o.endLineNumber||w.column!==o.endColumn?{startLineNumber:h.lineNumber,startColumn:h.column,endLineNumber:w.lineNumber,endColumn:w.column}:o},r.prototype._validatePosition=function(o){if(!M.a.isIPosition(o))throw new Error("bad position");var h=o.lineNumber,w=o.column,I=!1;if(h<1)h=1,w=1,I=!0;else if(h>this._lines.length)h=this._lines.length,w=this._lines[h-1].length+1,I=!0;else{var ue=this._lines[h-1].length+1;w<1?(w=1,I=!0):w>ue&&(w=ue,I=!0)}return I?{lineNumber:h,column:w}:o},r}(fo),Z=function(){function a(r,o){this._host=r,this._models=Object.create(null),this._foreignModuleFactory=o,this._foreignModule=null}return a.prototype.dispose=function(){this._models=Object.create(null)},a.prototype._getModel=function(r){return this._models[r]},a.prototype._getModels=function(){var r=this,o=[];return Object.keys(this._models).forEach(function(h){return o.push(r._models[h])}),o},a.prototype.acceptNewModel=function(r){this._models[r.url]=new j(z.a.parse(r.url),r.lines,r.EOL,r.versionId)},a.prototype.acceptModelChanged=function(r,o){if(!this._models[r])return;var h=this._models[r];h.onEvents(o)},a.prototype.acceptRemovedModel=function(r){if(!this._models[r])return;delete this._models[r]},a.prototype.computeDiff=function(r,o,h,w){return Le(this,void 0,void 0,function(){var I,ue,Be,Ge,Ye,Lt,Mt;return D(this,function(kt){return I=this._getModel(r),ue=this._getModel(o),!I||!ue?[2,null]:(Be=I.getLinesContent(),Ge=ue.getLinesContent(),Ye=new Wn(Be,Ge,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:h,shouldMakePrettyDiff:!0,maxComputationTime:w}),Lt=Ye.computeDiff(),Mt=Lt.changes.length>0?!1:this._modelsAreIdentical(I,ue),[2,{quitEarly:Lt.quitEarly,identical:Mt,changes:Lt.changes}])})})},a.prototype._modelsAreIdentical=function(r,o){var h=r.getLineCount(),w=o.getLineCount();if(h!==w)return!1;for(var I=1;I<=h;I++){var ue=r.getLineContent(I),Be=o.getLineContent(I);if(ue!==Be)return!1}return!0},a.prototype.computeMoreMinimalEdits=function(r,o){return Le(this,void 0,void 0,function(){var h,w,I,ue,Be,Ge,Ye,Lt,Mt,kt,Pt,sn,tn,Yt,Qt,hn,wn,Tn;return D(this,function(Nn){if(h=this._getModel(r),!h)return[2,o];for(w=[],I=void 0,o=Object(lt.r)(o,function(Fn,Kn){if(Fn.range&&Kn.range)return U.a.compareRangesUsingStarts(Fn.range,Kn.range);var ao=Fn.range?0:1,So=Kn.range?0:1;return ao-So}),ue=0,Be=o;ue<Be.length;ue++){if(Ge=Be[ue],Ye=Ge.range,Lt=Ge.text,Mt=Ge.eol,typeof Mt=="number"&&(I=Mt),U.a.isEmpty(Ye)&&!Lt)continue;if(kt=h.getValueInRange(Ye),Lt=Lt.replace(/\r\n|\n|\r/g,h.eol),kt===Lt)continue;if(Math.max(Lt.length,kt.length)>a._diffLimit){w.push({range:Ye,text:Lt});continue}for(Pt=Object(Tt.b)(kt,Lt,!1),sn=h.offsetAt(U.a.lift(Ye).getStartPosition()),tn=0,Yt=Pt;tn<Yt.length;tn++)Qt=Yt[tn],hn=h.positionAt(sn+Qt.originalStart),wn=h.positionAt(sn+Qt.originalStart+Qt.originalLength),Tn={text:Lt.substr(Qt.modifiedStart,Qt.modifiedLength),range:{startLineNumber:hn.lineNumber,startColumn:hn.column,endLineNumber:wn.lineNumber,endColumn:wn.column}},h.getValueInRange(Tn.range)!==Tn.text&&w.push(Tn)}return typeof I=="number"&&w.push({eol:I,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,w]})})},a.prototype.computeLinks=function(r){return Le(this,void 0,void 0,function(){var o;return D(this,function(h){return o=this._getModel(r),o?[2,nt(o)]:[2,null]})})},a.prototype.textualSuggest=function(r,o,h,w){return Le(this,void 0,void 0,function(){var I,ue,Be,Ge,Ye,Lt,Mt,kt;return D(this,function(Pt){if(I=this._getModel(r),!I)return[2,null];for(ue=[],Be=new Set,Ge=new RegExp(h,w),Ye=I.getWordAtPosition(o,Ge),Ye&&Be.add(I.getValueInRange(Ye)),Lt=I.createWordIterator(Ge),Mt=Lt.next();!Mt.done&&Be.size<=a._suggestionsLimit;Mt=Lt.next()){if(kt=Mt.value,Be.has(kt))continue;if(Be.add(kt),!isNaN(Number(kt)))continue;ue.push(kt)}return[2,ue]})})},a.prototype.computeWordRanges=function(r,o,h,w){return Le(this,void 0,void 0,function(){var I,ue,Be,Ge,Ye,Lt,Mt,kt,Pt;return D(this,function(sn){if(I=this._getModel(r),!I)return[2,Object.create(null)];for(ue=new RegExp(h,w),Be=Object.create(null),Ge=o.startLineNumber;Ge<o.endLineNumber;Ge++)for(Ye=I.getLineWords(Ge,ue),Lt=0,Mt=Ye;Lt<Mt.length;Lt++){if(kt=Mt[Lt],!isNaN(Number(kt.word)))continue;Pt=Be[kt.word],Pt||(Pt=[],Be[kt.word]=Pt),Pt.push({startLineNumber:Ge,startColumn:kt.startColumn,endLineNumber:Ge,endColumn:kt.endColumn})}return[2,Be]})})},a.prototype.navigateValueSet=function(r,o,h,w,I){return Le(this,void 0,void 0,function(){var ue,Be,Ge,Ye,Lt,Mt;return D(this,function(kt){return ue=this._getModel(r),ue?(Be=new RegExp(w,I),o.startColumn===o.endColumn&&(o={startLineNumber:o.startLineNumber,startColumn:o.startColumn,endLineNumber:o.endLineNumber,endColumn:o.endColumn+1}),Ge=ue.getValueInRange(o),Ye=ue.getWordAtPosition({lineNumber:o.startLineNumber,column:o.startColumn},Be),Ye?(Lt=ue.getValueInRange(Ye),Mt=ot.INSTANCE.navigateValueSet(o,Ge,Ye,Lt,h),[2,Mt]):[2,null]):[2,null]})})},a.prototype.loadForeignModule=function(r,o,h){var w=this,I=function(Ye,Lt){return w._host.fhr(Ye,Lt)},ue=Ct.b(h,I),Be={host:ue,getMirrorModels:function(){return w._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Be,o),Promise.resolve(Ct.c(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},a.prototype.fmr=function(r,o){if(!this._foreignModule||typeof this._foreignModule[r]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+r));try{return Promise.resolve(this._foreignModule[r].apply(this._foreignModule,o))}catch(h){return Promise.reject(h)}},a._diffLimit=1e5,a._suggestionsLimit=1e4,a}();function xe(a){return new Z(a,null)}typeof importScripts=="function"&&(mt.b.monaco=Pe());var Ae=e("G2kB"),Ie=e("e0rL"),dt=e("09fa"),ht=e("5Y4S"),At=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Bt=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},Ut=function(a,r){return function(o,h){r(o,h,a)}},Ht=function(a,r,o,h){function w(I){return I instanceof o?I:new o(function(ue){ue(I)})}return new(o||(o=Promise))(function(I,ue){function Be(Lt){try{Ye(h.next(Lt))}catch(Mt){ue(Mt)}}function Ge(Lt){try{Ye(h.throw(Lt))}catch(Mt){ue(Mt)}}function Ye(Lt){Lt.done?I(Lt.value):w(Lt.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},nn=function(a,r){var o={label:0,sent:function(){if(I[0]&1)throw I[1];return I[1]},trys:[],ops:[]},h,w,I,ue;return ue={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ue[Symbol.iterator]=function(){return this}),ue;function Be(Ye){return function(Lt){return Ge([Ye,Lt])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;o;)try{if(h=1,w&&(I=Ye[0]&2?w.return:Ye[0]?w.throw||((I=w.return)&&I.call(w),0):w.next)&&!(I=I.call(w,Ye[1])).done)return I;(w=0,I)&&(Ye=[Ye[0]&2,I.value]);switch(Ye[0]){case 0:case 1:I=Ye;break;case 4:return o.label++,{value:Ye[1],done:!1};case 5:o.label++,w=Ye[1],Ye=[0];continue;case 7:Ye=o.ops.pop(),o.trys.pop();continue;default:if(!(I=o.trys,I=I.length>0&&I[I.length-1])&&(Ye[0]===6||Ye[0]===2)){o=0;continue}if(Ye[0]===3&&(!I||Ye[1]>I[0]&&Ye[1]<I[3])){o.label=Ye[1];break}if(Ye[0]===6&&o.label<I[1]){o.label=I[1],I=Ye;break}if(I&&o.label<I[2]){o.label=I[2],o.ops.push(Ye);break}I[2]&&o.ops.pop(),o.trys.pop();continue}Ye=r.call(a,o)}catch(Lt){Ye=[6,Lt],w=0}finally{h=I=0}if(Ye[0]&5)throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}},Zt=60*1e3,fn=5*60*1e3;function yt(a,r){var o=a.getModel(r);return o?!o.isTooLargeForSyncing():!1}var Ue=function(a){At(r,a);function r(o,h,w){var I=a.call(this)||this;return I._modelService=o,I._workerManager=I._register(new rt(I._modelService)),I._logService=w,I._register(vt.s.register("*",{provideLinks:function(Be,Ge){return yt(I._modelService,Be.uri)?I._workerManager.withWorker().then(function(Ye){return Ye.computeLinks(Be.uri)}).then(function(Ye){return Ye&&{links:Ye}}):Promise.resolve({links:[]})}})),I._register(vt.d.register("*",new Me(I._workerManager,h,I._modelService))),I}return r.prototype.dispose=function(){a.prototype.dispose.call(this)},r.prototype.canComputeDiff=function(o,h){return yt(this._modelService,o)&&yt(this._modelService,h)},r.prototype.computeDiff=function(o,h,w,I){return this._workerManager.withWorker().then(function(ue){return ue.computeDiff(o,h,w,I)})},r.prototype.computeMoreMinimalEdits=function(o,h){var w=this;if(Object(lt.q)(h)){if(!yt(this._modelService,o))return Promise.resolve(h);var I=ht.a.create(!0),ue=this._workerManager.withWorker().then(function(Be){return Be.computeMoreMinimalEdits(o,h)});return ue.finally(function(){return w._logService.trace("FORMAT#computeMoreMinimalEdits",o.toString(!0),I.elapsed())}),ue}else return Promise.resolve(void 0)},r.prototype.canNavigateValueSet=function(o){return yt(this._modelService,o)},r.prototype.navigateValueSet=function(o,h,w){return this._workerManager.withWorker().then(function(I){return I.navigateValueSet(o,h,w)})},r.prototype.canComputeWordRanges=function(o){return yt(this._modelService,o)},r.prototype.computeWordRanges=function(o,h){return this._workerManager.withWorker().then(function(w){return w.computeWordRanges(o,h)})},r=Bt([Ut(0,Ae.a),Ut(1,Ie.a),Ut(2,dt.a)],r),r}(Rt.a),Me=function(){function a(r,o,h){this._debugDisplayName="wordbasedCompletions",this._workerManager=r,this._configurationService=o,this._modelService=h}return a.prototype.provideCompletionItems=function(r,o){return Ht(this,void 0,void 0,function(){var h,w,I,ue,Be,Ge;return nn(this,function(Ye){switch(Ye.label){case 0:return h=this._configurationService.getValue(r.uri,o,"editor").wordBasedSuggestions,h?yt(this._modelService,r.uri)?(w=r.getWordAtPosition(o),I=w?new U.a(o.lineNumber,w.startColumn,o.lineNumber,w.endColumn):U.a.fromPositions(o),ue=I.setEndPosition(o.lineNumber,o.column),[4,this._workerManager.withWorker()]):[2,void 0]:[2,void 0];case 1:return Be=Ye.sent(),[4,Be.textualSuggest(r.uri,o)];case 2:return Ge=Ye.sent(),Ge?[2,{suggestions:Ge.map(function(Lt){return{kind:18,label:Lt,insertText:Lt,range:{insert:ue,replace:I}}})}]:[2,void 0]}})})},a}(),rt=function(a){At(r,a);function r(o){var h=a.call(this)||this;h._modelService=o,h._editorWorkerClient=null,h._lastWorkerUsedTime=new Date().getTime();var w=h._register(new ct.c);return w.cancelAndSet(function(){return h._checkStopIdleWorker()},Math.round(fn/2)),h._register(h._modelService.onModelRemoved(function(I){return h._checkStopEmptyWorker()})),h}return r.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),a.prototype.dispose.call(this)},r.prototype._checkStopEmptyWorker=function(){if(!this._editorWorkerClient)return;var o=this._modelService.getModels();o.length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype._checkStopIdleWorker=function(){if(!this._editorWorkerClient)return;var o=new Date().getTime()-this._lastWorkerUsedTime;o>fn&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new ye(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},r}(Rt.a),Nt=function(a){At(r,a);function r(o,h,w){var I=a.call(this)||this;if(I._syncedModels=Object.create(null),I._syncedModelsLastUsedTime=Object.create(null),I._proxy=o,I._modelService=h,!w){var ue=new ct.c;ue.cancelAndSet(function(){return I._checkStopModelSync()},Math.round(Zt/2)),I._register(ue)}return I}return r.prototype.dispose=function(){for(var o in this._syncedModels)Object(Rt.f)(this._syncedModels[o]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),a.prototype.dispose.call(this)},r.prototype.ensureSyncedResources=function(o){for(var h=0,w=o;h<w.length;h++){var I=w[h],ue=I.toString();this._syncedModels[ue]||this._beginModelSync(I),this._syncedModels[ue]&&(this._syncedModelsLastUsedTime[ue]=new Date().getTime())}},r.prototype._checkStopModelSync=function(){var o=new Date().getTime(),h=[];for(var w in this._syncedModelsLastUsedTime){var I=o-this._syncedModelsLastUsedTime[w];I>Zt&&h.push(w)}for(var ue=0,Be=h;ue<Be.length;ue++){var Ge=Be[ue];this._stopModelSync(Ge)}},r.prototype._beginModelSync=function(o){var h=this,w=this._modelService.getModel(o);if(!w)return;if(w.isTooLargeForSyncing())return;var I=o.toString();this._proxy.acceptNewModel({url:w.uri.toString(),lines:w.getLinesContent(),EOL:w.getEOL(),versionId:w.getVersionId()});var ue=new Rt.b;ue.add(w.onDidChangeContent(function(Be){h._proxy.acceptModelChanged(I.toString(),Be)})),ue.add(w.onWillDispose(function(){h._stopModelSync(I)})),ue.add(Object(Rt.h)(function(){h._proxy.acceptRemovedModel(I)})),this._syncedModels[I]=ue},r.prototype._stopModelSync=function(o){var h=this._syncedModels[o];delete this._syncedModels[o],delete this._syncedModelsLastUsedTime[o],Object(Rt.f)(h)},r}(Rt.a),ge=function(){function a(r){this._instance=r,this._proxyObj=Promise.resolve(this._instance)}return a.prototype.dispose=function(){this._instance.dispose()},a.prototype.getProxyObject=function(){return this._proxyObj},a}(),O=function(){function a(r){this._workerClient=r}return a.prototype.fhr=function(r,o){return this._workerClient.fhr(r,o)},a}(),ye=function(a){At(r,a);function r(o,h,w){var I=a.call(this)||this;return I._modelService=o,I._keepIdleModels=h,I._workerFactory=new de(w),I._worker=null,I._modelManager=null,I}return r.prototype.fhr=function(o,h){throw new Error("Not implemented!")},r.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new ze(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new O(this)))}catch(o){Je(o),this._worker=new ge(new Z(new O(this),null))}return this._worker},r.prototype._getProxy=function(){var o=this;return this._getOrCreateWorker().getProxyObject().then(void 0,function(h){return Je(h),o._worker=new ge(new Z(new O(o),null)),o._getOrCreateWorker().getProxyObject()})},r.prototype._getOrCreateModelManager=function(o){return this._modelManager||(this._modelManager=this._register(new Nt(o,this._modelService,this._keepIdleModels))),this._modelManager},r.prototype._withSyncedResources=function(o){var h=this;return this._getProxy().then(function(w){return h._getOrCreateModelManager(w).ensureSyncedResources(o),w})},r.prototype.computeDiff=function(o,h,w,I){return this._withSyncedResources([o,h]).then(function(ue){return ue.computeDiff(o.toString(),h.toString(),w,I)})},r.prototype.computeMoreMinimalEdits=function(o,h){return this._withSyncedResources([o]).then(function(w){return w.computeMoreMinimalEdits(o.toString(),h)})},r.prototype.computeLinks=function(o){return this._withSyncedResources([o]).then(function(h){return h.computeLinks(o.toString())})},r.prototype.textualSuggest=function(o,h){var w=this;return this._withSyncedResources([o]).then(function(I){var ue=w._modelService.getModel(o);if(!ue)return null;var Be=Fe.a.getWordDefinition(ue.getLanguageIdentifier().id),Ge=Be.source,Ye=Object(en.H)(Be);return I.textualSuggest(o.toString(),h,Ge,Ye)})},r.prototype.computeWordRanges=function(o,h){var w=this;return this._withSyncedResources([o]).then(function(I){var ue=w._modelService.getModel(o);if(!ue)return Promise.resolve(null);var Be=Fe.a.getWordDefinition(ue.getLanguageIdentifier().id),Ge=Be.source,Ye=Object(en.H)(Be);return I.computeWordRanges(o.toString(),h,Ge,Ye)})},r.prototype.navigateValueSet=function(o,h,w){var I=this;return this._withSyncedResources([o]).then(function(ue){var Be=I._modelService.getModel(o);if(!Be)return null;var Ge=Fe.a.getWordDefinition(Be.getLanguageIdentifier().id),Ye=Ge.source,Lt=Object(en.H)(Ge);return ue.navigateValueSet(o.toString(),h,w,Ye,Lt)})},r}(Rt.a),We=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}();function Ze(a,r){return new st(a,r)}var st=function(a){We(r,a);function r(o,h){var w=a.call(this,o,h.keepIdleModels||!1,h.label)||this;return w._foreignModuleId=h.moduleId,w._foreignModuleCreateData=h.createData||null,w._foreignModuleHost=h.host||null,w._foreignProxy=null,w}return r.prototype.fhr=function(o,h){if(!this._foreignModuleHost||typeof this._foreignModuleHost[o]!="function")return Promise.reject(new Error("Missing method "+o+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[o].apply(this._foreignModuleHost,h))}catch(w){return Promise.reject(w)}},r.prototype._getForeignProxy=function(){var o=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then(function(h){var w=o._foreignModuleHost?Ct.c(o._foreignModuleHost):[];return h.loadForeignModule(o._foreignModuleId,o._foreignModuleCreateData,w).then(function(I){o._foreignModuleCreateData=null;for(var ue=function(Pt,sn){return h.fmr(Pt,sn)},Be=function(Pt,sn){return function(){var tn=Array.prototype.slice.call(arguments,0);return sn(Pt,tn)}},Ge={},Ye=0,Lt=I;Ye<Lt.length;Ye++){var Mt=Lt[Ye];Ge[Mt]=Be(Mt,ue)}return Ge})})),this._foreignProxy},r.prototype.getProxy=function(){return this._getForeignProxy()},r.prototype.withSyncedResources=function(o){var h=this;return this._withSyncedResources(o).then(function(w){return h.getProxy()})},r}(ye),pt=e("4bUh"),Kt=e("baJR"),Xt=e("qNAo");function on(a){return Array.isArray(a)}function vn(a){return!on(a)}function dn(a){return typeof a=="string"}function Rn(a){return!dn(a)}function Sn(a){return!a}function Ln(a,r){return a.ignoreCase&&r?r.toLowerCase():r}function Pn(a){return a.replace(/[&<>'"_]/g,"-")}function Hn(a,r){console.log(a.languageId+": "+r)}function On(a,r){return new Error(a.languageId+": "+r)}function An(a,r,o,h,w){var I=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,ue=null;return r.replace(I,function(Be,Ge,Ye,Lt,Mt,kt,Pt,sn,tn){return Sn(Ye)?Sn(Lt)?!Sn(Mt)&&Mt<h.length?Ln(a,h[Mt]):!Sn(Pt)&&a&&typeof a[Pt]=="string"?a[Pt]:(ue===null&&(ue=w.split("."),ue.unshift(w)),!Sn(kt)&&kt<ue.length?Ln(a,ue[kt]):""):Ln(a,o):"$"})}function to(a,r){for(var o=r;o&&o.length>0;){var h=a.tokenizer[o];if(h)return h;var w=o.lastIndexOf(".");w<0?o=null:o=o.substr(0,w)}return null}function mo(a,r){for(var o=r;o&&o.length>0;){var h=a.stateNames[o];if(h)return!0;var w=o.lastIndexOf(".");w<0?o=null:o=o.substr(0,w)}return!1}var Eo=5,no=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,o){return this._INSTANCE.create(r,o)},a.prototype.create=function(r,o){if(r!==null&&r.depth>=this._maxCacheDepth)return new Mo(r,o);var h=Mo.getStackElementId(r);h.length>0&&(h+="|"),h+=o;var w=this._entries[h];return w||(w=new Mo(r,o),this._entries[h]=w,w)},a._INSTANCE=new a(Eo),a}(),Mo=function(){function a(r,o){this.parent=r,this.state=o,this.depth=(this.parent?this.parent.depth:0)+1}return a.getStackElementId=function(r){for(var o="";r!==null;)o.length>0&&(o+="|"),o+=r.state,r=r.parent;return o},a._equals=function(r,o){for(;r!==null&&o!==null;){if(r===o)return!0;if(r.state!==o.state)return!1;r=r.parent,o=o.parent}return r===null&&o===null},a.prototype.equals=function(r){return a._equals(this,r)},a.prototype.push=function(r){return no.create(this,r)},a.prototype.pop=function(){return this.parent},a.prototype.popall=function(){for(var r=this;r.parent;)r=r.parent;return r},a.prototype.switchTo=function(r){return no.create(this.parent,r)},a}(),Uo=function(){function a(r,o){this.modeId=r,this.state=o}return a.prototype.equals=function(r){return this.modeId===r.modeId&&this.state.equals(r.state)},a.prototype.clone=function(){var r=this.state.clone();return r===this.state?this:new a(this.modeId,this.state)},a}(),Ro=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,o){return this._INSTANCE.create(r,o)},a.prototype.create=function(r,o){if(o!==null)return new ai(r,o);if(r!==null&&r.depth>=this._maxCacheDepth)return new ai(r,o);var h=Mo.getStackElementId(r),w=this._entries[h];return w||(w=new ai(r,null),this._entries[h]=w,w)},a._INSTANCE=new a(Eo),a}(),ai=function(){function a(r,o){this.stack=r,this.embeddedModeData=o}return a.prototype.clone=function(){var r=this.embeddedModeData?this.embeddedModeData.clone():null;return r===this.embeddedModeData?this:Ro.create(this.stack,this.embeddedModeData)},a.prototype.equals=function(r){return r instanceof a&&this.stack.equals(r.stack)?this.embeddedModeData===null&&r.embeddedModeData===null?!0:this.embeddedModeData===null||r.embeddedModeData===null?!1:this.embeddedModeData.equals(r.embeddedModeData):!1},a}(),Ci=function(){function a(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return a.prototype.enterMode=function(r,o){this._language=o},a.prototype.emit=function(r,o){if(this._lastTokenType===o&&this._lastTokenLanguage===this._language)return;this._lastTokenType=o,this._lastTokenLanguage=this._language,this._tokens.push(new c.a(r,o,this._language))},a.prototype.nestedModeTokenize=function(r,o,h){var w=o.modeId,I=o.state,ue=vt.B.get(w);if(!ue)return this.enterMode(h,w),this.emit(h,""),I;var Be=ue.tokenize(r,I,h);return this._tokens=this._tokens.concat(Be.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,Be.endState},a.prototype.finalize=function(r){return new c.b(this._tokens,r)},a}(),Fo=function(){function a(r,o){this._modeService=r,this._theme=o,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return a.prototype.enterMode=function(r,o){this._currentLanguageId=this._modeService.getLanguageIdentifier(o).id},a.prototype.emit=function(r,o){var h=this._theme.match(this._currentLanguageId,o);if(this._lastTokenMetadata===h)return;this._lastTokenMetadata=h,this._tokens.push(r),this._tokens.push(h)},a._merge=function(r,o,h){var w=r!==null?r.length:0,I=o.length,ue=h!==null?h.length:0;if(w===0&&I===0&&ue===0)return new Uint32Array(0);if(w===0&&I===0)return h;if(I===0&&ue===0)return r;var Be=new Uint32Array(w+I+ue);r!==null&&Be.set(r);for(var Ge=0;Ge<I;Ge++)Be[w+Ge]=o[Ge];return h!==null&&Be.set(h,w+I),Be},a.prototype.nestedModeTokenize=function(r,o,h){var w=o.modeId,I=o.state,ue=vt.B.get(w);if(!ue)return this.enterMode(h,w),this.emit(h,""),I;var Be=ue.tokenize2(r,I,h);return this._prependTokens=a._merge(this._prependTokens,this._tokens,Be.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,Be.endState},a.prototype.finalize=function(r){return new c.c(a._merge(this._prependTokens,this._tokens,null),r)},a}(),Qo=function(){function a(r,o,h,w){var I=this;this._modeService=r,this._standaloneThemeService=o,this._modeId=h,this._lexer=w,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var ue=!1;this._tokenizationRegistryListener=vt.B.onDidChange(function(Be){if(ue)return;for(var Ge=!1,Ye=0,Lt=Be.changedLanguages.length;Ye<Lt;Ye++){var Mt=Be.changedLanguages[Ye];if(I._embeddedModes[Mt]){Ge=!0;break}}Ge&&(ue=!0,vt.B.fire([I._modeId]),ue=!1)})}return a.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},a.prototype.getLoadStatus=function(){var r=[];for(var o in this._embeddedModes){var h=vt.B.get(o);if(h){if(h instanceof a){var w=h.getLoadStatus();w.loaded===!1&&r.push(w.promise)}continue}var I=vt.B.getPromise(o);I&&r.push(I)}return r.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(r).then(function(ue){return})}},a.prototype.getInitialState=function(){var r=no.create(null,this._lexer.start);return Ro.create(r,null)},a.prototype.tokenize=function(r,o,h){var w=new Ci,I=this._tokenize(r,o,h,w);return w.finalize(I)},a.prototype.tokenize2=function(r,o,h){var w=new Fo(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),I=this._tokenize(r,o,h,w);return w.finalize(I)},a.prototype._tokenize=function(r,o,h,w){return o.embeddedModeData?this._nestedTokenize(r,o,h,w):this._myTokenize(r,o,h,w)},a.prototype._findLeavingNestedModeOffset=function(r,o){var h=this._lexer.tokenizer[o.stack.state];if(!h&&(h=to(this._lexer,o.stack.state),!h))throw On(this._lexer,"tokenizer state is not defined: "+o.stack.state);for(var w=-1,I=!1,ue=0,Be=h;ue<Be.length;ue++){var Ge=Be[ue];if(!Rn(Ge.action)||Ge.action.nextEmbedded!=="@pop")continue;I=!0;var Ye=Ge.regex,Lt=Ge.regex.source;Lt.substr(0,4)==="^(?:"&&Lt.substr(Lt.length-1,1)===")"&&(Ye=new RegExp(Lt.substr(4,Lt.length-5),Ye.ignoreCase?"i":""));var Mt=r.search(Ye);if(Mt===-1||Mt!==0&&Ge.matchOnlyAtLineStart)continue;(w===-1||Mt<w)&&(w=Mt)}if(!I)throw On(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+o.stack.state);return w},a.prototype._nestedTokenize=function(r,o,h,w){var I=this._findLeavingNestedModeOffset(r,o);if(I===-1){var ue=w.nestedModeTokenize(r,o.embeddedModeData,h);return Ro.create(o.stack,new Uo(o.embeddedModeData.modeId,ue))}var Be=r.substring(0,I);Be.length>0&&w.nestedModeTokenize(Be,o.embeddedModeData,h);var Ge=r.substring(I);return this._myTokenize(Ge,o,h+I,w)},a.prototype._safeRuleName=function(r){return r?r.name:"(unknown)"},a.prototype._myTokenize=function(r,o,h,w){w.enterMode(h,this._modeId);for(var I=r.length,ue=o.embeddedModeData,Be=o.stack,Ge=0,Ye=null,Lt=!0;Lt||Ge<I;){var Mt=Ge,kt=Be.depth,Pt=Ye?Ye.groups.length:0,sn=Be.state,tn=null,Yt=null,Qt=null,hn=null,wn=null;if(Ye){tn=Ye.matches;var Tn=Ye.groups.shift();Yt=Tn.matched,Qt=Tn.action,hn=Ye.rule,Ye.groups.length===0&&(Ye=null)}else{if(!Lt&&Ge>=I)break;Lt=!1;var Nn=this._lexer.tokenizer[sn];if(!Nn&&(Nn=to(this._lexer,sn),!Nn))throw On(this._lexer,"tokenizer state is not defined: "+sn);for(var Fn=r.substr(Ge),Kn=0,ao=Nn;Kn<ao.length;Kn++){var So=ao[Kn];if((Ge===0||!So.matchOnlyAtLineStart)&&(tn=Fn.match(So.regex),tn)){Yt=tn[0],Qt=So.action;break}}}if(tn||(tn=[""],Yt=""),Qt||(Ge<I&&(tn=[r.charAt(Ge)],Yt=tn[0]),Qt=this._lexer.defaultToken),Yt===null)break;for(Ge+=Yt.length;vn(Qt)&&Rn(Qt)&&Qt.test;)Qt=Qt.test(Yt,tn,sn,Ge===I);var qn=null;if(typeof Qt=="string"||Array.isArray(Qt))qn=Qt;else if(Qt.group)qn=Qt.group;else if(Qt.token!==null&&Qt.token!==void 0){if(Qt.tokenSubst?qn=An(this._lexer,Qt.token,Yt,tn,sn):qn=Qt.token,Qt.nextEmbedded)if(Qt.nextEmbedded==="@pop"){if(!ue)throw On(this._lexer,"cannot pop embedded mode if not inside one");ue=null}else{if(ue)throw On(this._lexer,"cannot enter embedded mode from within an embedded mode");wn=An(this._lexer,Qt.nextEmbedded,Yt,tn,sn)}if(Qt.goBack&&(Ge=Math.max(0,Ge-Qt.goBack)),Qt.switchTo&&typeof Qt.switchTo=="string"){var Yn=An(this._lexer,Qt.switchTo,Yt,tn,sn);if(Yn[0]==="@"&&(Yn=Yn.substr(1)),to(this._lexer,Yn))Be=Be.switchTo(Yn);else throw On(this._lexer,"trying to switch to a state '"+Yn+"' that is undefined in rule: "+this._safeRuleName(hn))}else{if(Qt.transform&&typeof Qt.transform=="function")throw On(this._lexer,"action.transform not supported");if(Qt.next)if(Qt.next==="@push"){if(Be.depth>=this._lexer.maxStack)throw On(this._lexer,"maximum tokenizer stack size reached: ["+Be.state+","+Be.parent.state+",...]");Be=Be.push(sn)}else if(Qt.next==="@pop"){if(Be.depth<=1)throw On(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(hn));Be=Be.pop()}else if(Qt.next==="@popall")Be=Be.popall();else{var Yn=An(this._lexer,Qt.next,Yt,tn,sn);if(Yn[0]==="@"&&(Yn=Yn.substr(1)),to(this._lexer,Yn))Be=Be.push(Yn);else throw On(this._lexer,"trying to set a next state '"+Yn+"' that is undefined in rule: "+this._safeRuleName(hn))}}Qt.log&&typeof Qt.log=="string"&&Hn(this._lexer,this._lexer.languageId+": "+An(this._lexer,Qt.log,Yt,tn,sn))}if(qn===null)throw On(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(hn));if(Array.isArray(qn)){if(Ye&&Ye.groups.length>0)throw On(this._lexer,"groups cannot be nested: "+this._safeRuleName(hn));if(tn.length!==qn.length+1)throw On(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(hn));for(var co=0,eo=1;eo<tn.length;eo++)co+=tn[eo].length;if(co!==Yt.length)throw On(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(hn));Ye={rule:hn,matches:tn,groups:[]};for(var eo=0;eo<qn.length;eo++)Ye.groups[eo]={action:qn[eo],matched:tn[eo+1]};Ge-=Yt.length;continue}else{if(qn==="@rematch"&&(Ge-=Yt.length,Yt="",tn=null,qn=""),Yt.length===0){if(I===0||kt!==Be.depth||sn!==Be.state||(Ye?Ye.groups.length:0)!==Pt)continue;throw On(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(hn))}var Oo=null;if(dn(qn)&&qn.indexOf("@brackets")===0){var bo=qn.substr("@brackets".length),Bo=Yr(this._lexer,Yt);if(!Bo)throw On(this._lexer,"@brackets token returned but no bracket defined as: "+Yt);Oo=Pn(Bo.token+bo)}else{var jo=qn===""?"":qn+this._lexer.tokenPostfix;Oo=Pn(jo)}w.emit(Mt+h,Oo)}if(wn!==null){var Go=this._modeService.getModeIdForLanguageName(wn);Go&&(wn=Go);var si=this._getNestedEmbeddedModeData(wn);if(Ge<I){var Fn=r.substr(Ge);return this._nestedTokenize(Fn,Ro.create(Be,si),h+Ge,w)}else return Ro.create(Be,si)}}return Ro.create(Be,ue)},a.prototype._getNestedEmbeddedModeData=function(r){var o=this._locateMode(r);if(o){var h=vt.B.get(o);if(h)return new Uo(o,h.getInitialState())}return new Uo(o||xt.b,xt.c)},a.prototype._locateMode=function(r){if(!r||!this._modeService.isRegisteredMode(r))return null;if(r===this._modeId)return r;var o=this._modeService.getModeId(r);return o&&(this._modeService.triggerMode(o),this._embeddedModes[o]=!0),o},a}();function Yr(a,r){if(!r)return null;r=Ln(a,r);for(var o=a.brackets,h=0,w=o;h<w.length;h++){var I=w[h];if(I.open===r)return{token:I.token,bracketType:1};if(I.close===r)return{token:I.token,bracketType:-1}}return null}function na(a,r,o,h){return new Qo(a,r,o,h)}var zi=function(){function a(){}return a.colorizeElement=function(r,o,h,w){w=w||{};var I=w.theme||"vs",ue=w.mimeType||h.getAttribute("lang")||h.getAttribute("data-lang");if(!ue)return console.error("Mode not detected"),Promise.resolve();r.setTheme(I);var Be=h.firstChild?h.firstChild.nodeValue:"";h.className+=" "+I;var Ge=function(Lt){h.innerHTML=Lt};return this.colorize(o,Be||"",ue,w).then(Ge,function(Ye){return console.error(Ye)})},a.colorize=function(r,o,h,w){var I=4;w&&typeof w.tabSize=="number"&&(I=w.tabSize),en.P(o)&&(o=o.substr(1));var ue=o.split(/\r\n|\r|\n/),Be=r.getModeId(h);if(!Be)return Promise.resolve(Zr(ue,I));r.triggerMode(Be);var Ge=vt.B.get(Be);if(Ge)return Ki(ue,I,Ge);var Ye=vt.B.getPromise(Be);return Ye?new Promise(function(Lt,Mt){Ye.then(function(kt){Ki(ue,I,kt).then(Lt,Mt)},Mt)}):new Promise(function(Lt,Mt){var kt=null,Pt=null,sn=function(){kt&&(kt.dispose(),kt=null),Pt&&(Pt.dispose(),Pt=null);var Yt=vt.B.get(Be);if(Yt){Ki(ue,I,Yt).then(Lt,Mt);return}Lt(Zr(ue,I))};Pt=new ct.e,Pt.cancelAndSet(sn,500),kt=vt.B.onDidChange(function(tn){tn.changedLanguages.indexOf(Be)>=0&&sn()})})},a.colorizeLine=function(r,o,h,w,I){I===void 0&&(I=4);var ue=Xt.d.isBasicASCII(r,o),Be=Xt.d.containsRTL(r,ue,h),Ge=Object(Kt.e)(new Kt.c(!1,!0,r,!1,ue,Be,0,w,[],I,0,0,0,-1,"none",!1,!1,null));return Ge.html},a.colorizeModelLine=function(r,o,h){h===void 0&&(h=4);var w=r.getLineContent(o);r.forceTokenization(o);var I=r.getLineTokens(o),ue=I.inflate();return this.colorizeLine(w,r.mightContainNonBasicASCII(),r.mightContainRTL(),ue,h)},a}();function Ki(a,r,o){return new Promise(function(h,w){var I=function ue(){var Be=Gi(a,r,o);if(o instanceof Qo){var Ge=o.getLoadStatus();if(Ge.loaded===!1){Ge.promise.then(ue,w);return}}h(Be)};I()})}function Zr(a,r){var o=[],h=(0<<11|1<<14|2<<23)>>>0,w=new Uint32Array(2);w[0]=0,w[1]=h;for(var I=0,ue=a.length;I<ue;I++){var Be=a[I];w[0]=Be.length;var Ge=new pt.a(w,Be),Ye=Xt.d.isBasicASCII(Be,!0),Lt=Xt.d.containsRTL(Be,Ye,!0),Mt=Object(Kt.e)(new Kt.c(!1,!0,Be,!1,Ye,Lt,0,Ge,[],r,0,0,0,-1,"none",!1,!1,null));o=o.concat(Mt.html),o.push("<br/>")}return o.join("")}function Gi(a,r,o){for(var h=[],w=o.getInitialState(),I=0,ue=a.length;I<ue;I++){var Be=a[I],Ge=o.tokenize2(Be,w,0);pt.a.convertToEndOffset(Ge.tokens,Be.length);var Ye=new pt.a(Ge.tokens,Be),Lt=Xt.d.isBasicASCII(Be,!0),Mt=Xt.d.containsRTL(Be,Lt,!0),kt=Object(Kt.e)(new Kt.c(!1,!0,Be,!1,Lt,Mt,0,Ye.inflate(),[],r,0,0,0,-1,"none",!1,!1,null));h=h.concat(kt.html),h.push("<br/>"),w=Ge.endState}return h.join("")}var $n=e("uDWl"),li=e("S3by"),To=e("sFUC"),yr=e("iDAx"),Qr=e("0/Sa"),Ao=e("+7oY"),$o=e("QDVR"),Xi=e("CRAX"),Cr=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Yi=function(){for(var a=0,r=0,o=arguments.length;r<o;r++)a+=arguments[r].length;for(var h=Array(a),w=0,r=0;r<o;r++)for(var I=arguments[r],ue=0,Be=I.length;ue<Be;ue++,w++)h[w]=I[ue];return h},di=function(){function a(r,o,h){r===void 0&&(r={}),o===void 0&&(o=[]),h===void 0&&(h=[]),this._contents=r,this._keys=o,this._overrides=h,this.isFrozen=!1}return Object.defineProperty(a.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),a.prototype.isEmpty=function(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0},a.prototype.getValue=function(r){return r?Object(Ao.d)(this.contents,r):this.contents},a.prototype.getOverrideValue=function(r,o){var h=this.getContentsForOverrideIdentifer(o);return h?r?Object(Ao.d)(h,r):h:void 0},a.prototype.override=function(r){var o=this.getContentsForOverrideIdentifer(r);if(!o||typeof o!="object"||!Object.keys(o).length)return this;for(var h={},w=0,I=lt.e(Yi(Object.keys(this.contents),Object.keys(o)));w<I.length;w++){var ue=I[w],Be=this.contents[ue],Ge=o[ue];Ge&&(typeof Be=="object"&&typeof Ge=="object"?(Be=Dt.c(Be),this.mergeContents(Be,Ge)):Be=Ge),h[ue]=Be}return new a(h,this.keys,this.overrides)},a.prototype.merge=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];for(var h=Dt.c(this.contents),w=Dt.c(this.overrides),I=Yi(this.keys),ue=0,Be=r;ue<Be.length;ue++){var Ge=Be[ue];this.mergeContents(h,Ge.contents);for(var Ye=function(hn){var wn=w.filter(function(Tn){return lt.g(Tn.identifiers,hn.identifiers)})[0];wn?Lt.mergeContents(wn.contents,hn.contents):w.push(Dt.c(hn))},Lt=this,Mt=0,kt=Ge.overrides;Mt<kt.length;Mt++){var Pt=kt[Mt];Ye(Pt)}for(var sn=0,tn=Ge.keys;sn<tn.length;sn++){var Yt=tn[sn];I.indexOf(Yt)===-1&&I.push(Yt)}}return new a(h,I,w)},a.prototype.freeze=function(){return this.isFrozen=!0,this},a.prototype.mergeContents=function(r,o){for(var h=0,w=Object.keys(o);h<w.length;h++){var I=w[h];if(I in r&&(Ct.i(r[I])&&Ct.i(o[I]))){this.mergeContents(r[I],o[I]);continue}r[I]=Dt.c(o[I])}},a.prototype.checkAndFreeze=function(r){return this.isFrozen&&!Object.isFrozen(r)?Dt.d(r):r},a.prototype.getContentsForOverrideIdentifer=function(r){for(var o=0,h=this.overrides;o<h.length;o++){var w=h[o];if(w.identifiers.indexOf(r)!==-1)return w.contents}return null},a.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},a.prototype.setValue=function(r,o){this.addKey(r),Object(Ao.b)(this.contents,r,o,function(h){throw new Error(h)})},a.prototype.removeValue=function(r){this.removeKey(r)&&Object(Ao.h)(this.contents,r)},a.prototype.addKey=function(r){for(var o=this.keys.length,h=0;h<o;h++)r.indexOf(this.keys[h])===0&&(o=h);this.keys.splice(o,1,r)},a.prototype.removeKey=function(r){var o=this.keys.indexOf(r);return o!==-1?(this.keys.splice(o,1),!0):!1},a}(),br=function(a){Cr(r,a);function r(){for(var o=this,h=Object(Ao.e)(),w=Object(Ao.c)(),I=[],ue=0,Be=Object.keys(h);ue<Be.length;ue++){var Ge=Be[ue];Xi.b.test(Ge)&&I.push({identifiers:[Object(Ao.g)(Ge).trim()],keys:Object.keys(h[Ge]),contents:Object(Ao.i)(h[Ge],function(Ye){return console.error("Conflict in default settings file: "+Ye)})})}return o=a.call(this,h,w,I)||this,o}return r}(di),$r=function(){function a(r,o,h,w,I,ue,Be,Ge){h===void 0&&(h=new di),w===void 0&&(w=new di),I===void 0&&(I=new $o.b),ue===void 0&&(ue=new di),Be===void 0&&(Be=new $o.b),Ge===void 0&&(Ge=!0),this._defaultConfiguration=r,this._localUserConfiguration=o,this._remoteUserConfiguration=h,this._workspaceConfiguration=w,this._folderConfigurations=I,this._memoryConfiguration=ue,this._memoryConfigurationByResource=Be,this._freeze=Ge,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new $o.b,this._userConfiguration=null}return a.prototype.getValue=function(r,o,h){var w=this.getConsolidateConfigurationModel(o,h);return w.getValue(r)},a.prototype.updateValue=function(r,o,h){h===void 0&&(h={});var w;h.resource?(w=this._memoryConfigurationByResource.get(h.resource),w||(w=new di,this._memoryConfigurationByResource.set(h.resource,w))):w=this._memoryConfiguration,o===void 0?w.removeValue(r):w.setValue(r,o),h.resource||(this._workspaceConsolidatedConfiguration=null)},a.prototype.inspect=function(r,o,h){var w=this.getConsolidateConfigurationModel(o,h),I=this.getFolderConfigurationModelForResource(o.resource,h),ue=o.resource?this._memoryConfigurationByResource.get(o.resource)||this._memoryConfiguration:this._memoryConfiguration,Be=o.overrideIdentifier?this._defaultConfiguration.freeze().override(o.overrideIdentifier).getValue(r):this._defaultConfiguration.freeze().getValue(r),Ge=o.overrideIdentifier?this.userConfiguration.freeze().override(o.overrideIdentifier).getValue(r):this.userConfiguration.freeze().getValue(r),Ye=o.overrideIdentifier?this.localUserConfiguration.freeze().override(o.overrideIdentifier).getValue(r):this.localUserConfiguration.freeze().getValue(r),Lt=o.overrideIdentifier?this.remoteUserConfiguration.freeze().override(o.overrideIdentifier).getValue(r):this.remoteUserConfiguration.freeze().getValue(r),Mt=h?o.overrideIdentifier?this._workspaceConfiguration.freeze().override(o.overrideIdentifier).getValue(r):this._workspaceConfiguration.freeze().getValue(r):void 0,kt=I?o.overrideIdentifier?I.freeze().override(o.overrideIdentifier).getValue(r):I.freeze().getValue(r):void 0,Pt=o.overrideIdentifier?ue.override(o.overrideIdentifier).getValue(r):ue.getValue(r),sn=w.getValue(r),tn=lt.e(lt.m(w.overrides.map(function(Yt){return Yt.identifiers}))).filter(function(Yt){return w.getOverrideValue(r,Yt)!==void 0});return{defaultValue:Be,userValue:Ge,userLocalValue:Ye,userRemoteValue:Lt,workspaceValue:Mt,workspaceFolderValue:kt,memoryValue:Pt,value:sn,default:Be!==void 0?{value:this._defaultConfiguration.freeze().getValue(r),override:o.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(r,o.overrideIdentifier):void 0}:void 0,user:Ge!==void 0?{value:this.userConfiguration.freeze().getValue(r),override:o.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(r,o.overrideIdentifier):void 0}:void 0,userLocal:Ye!==void 0?{value:this.localUserConfiguration.freeze().getValue(r),override:o.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(r,o.overrideIdentifier):void 0}:void 0,userRemote:Lt!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(r),override:o.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(r,o.overrideIdentifier):void 0}:void 0,workspace:Mt!==void 0?{value:this._workspaceConfiguration.freeze().getValue(r),override:o.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(r,o.overrideIdentifier):void 0}:void 0,workspaceFolder:kt!==void 0?{value:I==null?void 0:I.freeze().getValue(r),override:o.overrideIdentifier?I==null?void 0:I.freeze().getOverrideValue(r,o.overrideIdentifier):void 0}:void 0,memory:Pt!==void 0?{value:ue.getValue(r),override:o.overrideIdentifier?ue.getOverrideValue(r,o.overrideIdentifier):void 0}:void 0,overrideIdentifiers:tn.length?tn:void 0}},Object.defineProperty(a.prototype,"userConfiguration",{get:function(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),a.prototype.getConsolidateConfigurationModel=function(r,o){var h=this.getConsolidatedConfigurationModelForResource(r,o);return r.overrideIdentifier?h.override(r.overrideIdentifier):h},a.prototype.getConsolidatedConfigurationModelForResource=function(r,o){var h=r.resource,w=this.getWorkspaceConsolidatedConfiguration();if(o&&h){var I=o.getFolder(h);I&&(w=this.getFolderConsolidatedConfiguration(I.uri)||w);var ue=this._memoryConfigurationByResource.get(h);ue&&(w=w.merge(ue))}return w},a.prototype.getWorkspaceConsolidatedConfiguration=function(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration},a.prototype.getFolderConsolidatedConfiguration=function(r){var o=this._foldersConsolidatedConfigurations.get(r);if(!o){var h=this.getWorkspaceConsolidatedConfiguration(),w=this._folderConfigurations.get(r);w?(o=h.merge(w),this._freeze&&(o=o.freeze()),this._foldersConsolidatedConfigurations.set(r,o)):o=h}return o},a.prototype.getFolderConfigurationModelForResource=function(r,o){if(o&&r){var h=o.getFolder(r);if(h)return this._folderConfigurations.get(h.uri)}return},a}(),Lo=e("3/fG"),Zi=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Jr=function(a){Zi(r,a);function r(o,h,w,I){var ue=a.call(this)||this;return ue._contextKeyService=o,ue._commandService=h,ue._telemetryService=w,ue._notificationService=I,ue._onDidUpdateKeybindings=ue._register(new N.a),ue._currentChord=null,ue._currentChordChecker=new ct.c,ue._currentChordStatusMessage=null,ue}return Object.defineProperty(r.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:N.b.None},enumerable:!0,configurable:!0}),r.prototype.dispose=function(){a.prototype.dispose.call(this)},r.prototype.getKeybindings=function(){return this._getResolver().getKeybindings()},r.prototype.lookupKeybinding=function(o){var h=this._getResolver().lookupPrimaryKeybinding(o);return h?h.resolvedKeybinding:void 0},r.prototype.softDispatch=function(o,h){var w=this.resolveKeyboardEvent(o);if(w.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var I=w.getDispatchParts()[0];if(I===null)return null;var ue=this._contextKeyService.getContext(h),Be=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(ue,Be,I)},r.prototype._enterChordMode=function(o,h){var w=this;this._currentChord={keypress:o,label:h},this._currentChordStatusMessage=this._notificationService.status(Lo.a("first.chord","({0}) was pressed. Waiting for second key of chord...",h));var I=Date.now();this._currentChordChecker.cancelAndSet(function(){if(!w._documentHasFocus()){w._leaveChordMode();return}Date.now()-I>5e3&&w._leaveChordMode()},500)},r.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},r.prototype._dispatch=function(o,h){return this._doDispatch(this.resolveKeyboardEvent(o),h)},r.prototype._doDispatch=function(o,h){var w=this,I=!1;if(o.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var ue=o.getDispatchParts()[0];if(ue===null)return I;var Be=this._contextKeyService.getContext(h),Ge=this._currentChord?this._currentChord.keypress:null,Ye=o.getLabel(),Lt=this._getResolver().resolve(Be,Ge,ue);return Lt&&Lt.enterChord?(I=!0,this._enterChordMode(ue,Ye),I):(this._currentChord&&((!Lt||!Lt.commandId)&&(this._notificationService.status(Lo.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,Ye),{hideAfter:10*1e3}),I=!0)),this._leaveChordMode(),Lt&&Lt.commandId&&(Lt.bubble||(I=!0),typeof Lt.commandArgs=="undefined"?this._commandService.executeCommand(Lt.commandId).then(void 0,function(Mt){return w._notificationService.warn(Mt)}):this._commandService.executeCommand(Lt.commandId,Lt.commandArgs).then(void 0,function(Mt){return w._notificationService.warn(Mt)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:Lt.commandId,from:"keybinding"})),I)},r.prototype.mightProducePrintableCharacter=function(o){return o.ctrlKey||o.metaKey?!1:o.keyCode>=31&&o.keyCode<=56||o.keyCode>=21&&o.keyCode<=30},r}(Rt.a),wo=e("T8No"),Qi=function(){function a(r,o){this._defaultKeybindings=r,this._defaultBoundCommands=new Map;for(var h=0,w=r.length;h<w;h++){var I=r[h].command;I&&this._defaultBoundCommands.set(I,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=a.combine(r,o);for(var h=0,w=this._keybindings.length;h<w;h++){var ue=this._keybindings[h];if(ue.keypressParts.length===0)continue;this._addKeyPress(ue.keypressParts[0],ue)}}return a._isTargetedForRemoval=function(r,o,h,w,I){if(r.command!==w)return!1;if(o&&r.keypressParts[0]!==o)return!1;if(h&&r.keypressParts[1]!==h)return!1;if(I){if(!r.when)return!1;if(!I.equals(r.when))return!1}return!0},a.combine=function(r,o){r=r.slice(0);for(var h=[],w=0,I=o;w<I.length;w++){var ue=I[w];if(!ue.command||ue.command.length===0||ue.command.charAt(0)!=="-"){h.push(ue);continue}for(var Be=ue.command.substr(1),Ge=ue.keypressParts[0],Ye=ue.keypressParts[1],Lt=ue.when,Mt=r.length-1;Mt>=0;Mt--)this._isTargetedForRemoval(r[Mt],Ge,Ye,Be,Lt)&&r.splice(Mt,1)}return r.concat(h)},a.prototype._addKeyPress=function(r,o){var h=this._map.get(r);if(typeof h=="undefined"){this._map.set(r,[o]),this._addToLookupMap(o);return}for(var w=h.length-1;w>=0;w--){var I=h[w];if(I.command===o.command)continue;var ue=I.keypressParts.length>1,Be=o.keypressParts.length>1;if(ue&&Be&&I.keypressParts[1]!==o.keypressParts[1])continue;a.whenIsEntirelyIncluded(I.when,o.when)&&this._removeFromLookupMap(I)}h.push(o),this._addToLookupMap(o)},a.prototype._addToLookupMap=function(r){if(!r.command)return;var o=this._lookupMap.get(r.command);typeof o=="undefined"?(o=[r],this._lookupMap.set(r.command,o)):o.push(r)},a.prototype._removeFromLookupMap=function(r){if(!r.command)return;var o=this._lookupMap.get(r.command);if(typeof o=="undefined")return;for(var h=0,w=o.length;h<w;h++)if(o[h]===r){o.splice(h,1);return}},a.whenIsEntirelyIncluded=function(r,o){return o?r?this._implies(r,o):!1:!0},a._implies=function(r,o){for(var h=r.negate(),w=function(kt){return kt instanceof wo.b?kt.expr:[kt]},I=w(h).concat(w(o)),ue=0;ue<I.length;ue++)for(var Be=I[ue],Ge=Be.negate(),Ye=ue+1;Ye<I.length;Ye++){var Lt=I[Ye];if(Ge.equals(Lt))return!0}return!1},a.prototype.getKeybindings=function(){return this._keybindings},a.prototype.lookupPrimaryKeybinding=function(r){var o=this._lookupMap.get(r);return typeof o=="undefined"||o.length===0?null:o[o.length-1]},a.prototype.resolve=function(r,o,h){var w=null;if(o!==null){var I=this._map.get(o);if(typeof I=="undefined")return null;w=[];for(var ue=0,Be=I.length;ue<Be;ue++){var Ge=I[ue];Ge.keypressParts[1]===h&&w.push(Ge)}}else{var I=this._map.get(h);if(typeof I=="undefined")return null;w=I}var Ye=this._findCommand(r,w);return Ye?o===null&&Ye.keypressParts.length>1&&Ye.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:Ye.command,commandArgs:Ye.commandArgs,bubble:Ye.bubble}:null},a.prototype._findCommand=function(r,o){for(var h=o.length-1;h>=0;h--){var w=o[h];if(!a.contextMatchesRules(r,w.when))continue;return w}return null},a.contextMatchesRules=function(r,o){return o?o.evaluate(r):!0},a}(),qr=e("nrhi"),$i=function(){function a(r,o,h,w,I){this.resolvedKeybinding=r,this.keypressParts=r?Er(r.getDispatchParts()):[],this.bubble=o?o.charCodeAt(0)===94:!1,this.command=this.bubble?o.substr(1):o,this.commandArgs=h,this.when=w,this.isDefault=I}return a}();function Er(a){for(var r=[],o=0,h=a.length;o<h;o++){var w=a[o];if(!w)return r;r.push(w)}return r}var Sr=e("i04g"),es=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),oa=function(a){es(r,a);function r(o,h){var w=a.call(this)||this;if(h.length===0)throw Object(bt.b)("parts");return w._os=o,w._parts=h,w}return r.prototype.getLabel=function(){var o=this;return Sr.b.toLabel(this._os,this._parts,function(h){return o._getLabel(h)})},r.prototype.getAriaLabel=function(){var o=this;return Sr.a.toLabel(this._os,this._parts,function(h){return o._getAriaLabel(h)})},r.prototype.isChord=function(){return this._parts.length>1},r.prototype.getParts=function(){var o=this;return this._parts.map(function(h){return o._getPart(h)})},r.prototype._getPart=function(o){return new H.d(o.ctrlKey,o.shiftKey,o.altKey,o.metaKey,this._getLabel(o),this._getAriaLabel(o))},r.prototype.getDispatchParts=function(){var o=this;return this._parts.map(function(h){return o._getDispatchPart(h)})},r}(H.c),ts=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Lr=function(a){ts(r,a);function r(o,h){return a.call(this,h,o.parts)||this}return r.prototype._keyCodeToUILabel=function(o){if(this._os===2)switch(o){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return H.b.toString(o)},r.prototype._getLabel=function(o){return o.isDuplicateModifierCase()?"":this._keyCodeToUILabel(o.keyCode)},r.prototype._getAriaLabel=function(o){return o.isDuplicateModifierCase()?"":H.b.toString(o.keyCode)},r.prototype._getDispatchPart=function(o){return r.getDispatchStr(o)},r.getDispatchStr=function(o){if(o.isModifierKey())return null;var h="";return o.ctrlKey&&(h+="ctrl+"),o.shiftKey&&(h+="shift+"),o.altKey&&(h+="alt+"),o.metaKey&&(h+="meta+"),h+=H.b.toString(o.keyCode),h},r}(oa),Ho=e("sM1p"),wr=e("EWX2"),Mi=e("A9l+"),ns=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),os=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},is=function(a,r){return function(o,h){r(o,h,a)}},rs=function(){for(var a=0,r=0,o=arguments.length;r<o;r++)a+=arguments[r].length;for(var h=Array(a),w=0,r=0;r<o;r++)for(var I=arguments[r],ue=0,Be=I.length;ue<Be;ue++,w++)h[w]=I[ue];return h},ia=function(){function a(r){this.model=r,this._onDispose=new N.a}return Object.defineProperty(a.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),a.prototype.dispose=function(){this._onDispose.fire()},a}();function ss(a,r,o){return Object(To.a)(a)?r(a):o(a)}var as=function(){function a(r){this.modelService=r}return a.prototype.setEditor=function(r){this.editor=r},a.prototype.createModelReference=function(r){var o=this,h=null;return this.editor&&(h=ss(this.editor,function(w){return o.findModel(w,r)},function(w){return o.findModel(w.getOriginalEditor(),r)||o.findModel(w.getModifiedEditor(),r)})),h?Promise.resolve(new Rt.c(new ia(h))):Promise.reject(new Error("Model not found"))},a.prototype.findModel=function(r,o){var h=this.modelService?this.modelService.getModel(o):r.getModel();return h&&h.uri.toString()!==o.toString()?null:h},a}(),ra=function(){function a(){}return a.prototype.show=function(){return a.NULL_PROGRESS_RUNNER},a.prototype.showWhile=function(r,o){return Promise.resolve(void 0)},a.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},a}(),ls=function(){function a(){}return a}(),ds=function(){function a(){}return a.prototype.info=function(r){return this.notify({severity:li.a.Info,message:r})},a.prototype.warn=function(r){return this.notify({severity:li.a.Warning,message:r})},a.prototype.error=function(r){return this.notify({severity:li.a.Error,message:r})},a.prototype.notify=function(r){switch(r.severity){case li.a.Error:console.error(r.message);break;case li.a.Warning:console.warn(r.message);break;default:console.log(r.message);break}return a.NO_OP},a.prototype.status=function(r,o){return Rt.a.None},a.NO_OP=new Ho.b,a}(),us=function(){function a(r){this._onWillExecuteCommand=new N.a,this._onDidExecuteCommand=new N.a,this._instantiationService=r,this._dynamicCommands=Object.create(null)}return a.prototype.addCommand=function(r){var o=this,h=r.id;return this._dynamicCommands[h]=r,Object(Rt.h)(function(){delete o._dynamicCommands[h]})},a.prototype.executeCommand=function(r){for(var o=[],h=1;h<arguments.length;h++)o[h-1]=arguments[h];var w=Q.a.getCommand(r)||this._dynamicCommands[r];if(!w)return Promise.reject(new Error("command '"+r+"' not found"));try{this._onWillExecuteCommand.fire({commandId:r,args:o});var I=this._instantiationService.invokeFunction.apply(this._instantiationService,rs([w.handler],o));return this._onDidExecuteCommand.fire({commandId:r,args:o}),Promise.resolve(I)}catch(ue){return Promise.reject(ue)}},a}(),_r=function(a){ns(r,a);function r(o,h,w,I,ue){var Be=a.call(this,o,h,w,I)||this;return Be._cachedResolver=null,Be._dynamicKeybindings=[],Be._register(me.j(ue,me.d.KEY_DOWN,function(Ge){var Ye=new $n.a(Ge),Lt=Be._dispatch(Ye,Ye.target);Lt&&(Ye.preventDefault(),Ye.stopPropagation())})),Be}return r.prototype.addDynamicKeybinding=function(o,h,w,I){var ue=this,Be=Object(H.f)(h,mt.a),Ge=new Rt.b;Be&&(this._dynamicKeybindings.push({keybinding:Be,command:o,when:I,weight1:1e3,weight2:0}),Ge.add(Object(Rt.h)(function(){for(var Lt=0;Lt<ue._dynamicKeybindings.length;Lt++){var Mt=ue._dynamicKeybindings[Lt];if(Mt.command===o){ue._dynamicKeybindings.splice(Lt,1),ue.updateResolver({source:1});return}}})));var Ye=this._commandService;if(Ye instanceof us)Ge.add(Ye.addCommand({id:o,handler:w}));else throw new Error("Unknown command service!");return this.updateResolver({source:1}),Ge},r.prototype.updateResolver=function(o){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(o)},r.prototype._getResolver=function(){if(!this._cachedResolver){var o=this._toNormalizedKeybindingItems(qr.a.getDefaultKeybindings(),!0),h=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Qi(o,h)}return this._cachedResolver},r.prototype._documentHasFocus=function(){return document.hasFocus()},r.prototype._toNormalizedKeybindingItems=function(o,h){for(var w=[],I=0,ue=0,Be=o;ue<Be.length;ue++){var Ge=Be[ue],Ye=Ge.when||void 0,Lt=Ge.keybinding;if(!Lt)w[I++]=new $i(void 0,Ge.command,Ge.commandArgs,Ye,h);else for(var Mt=this.resolveKeybinding(Lt),kt=0,Pt=Mt;kt<Pt.length;kt++){var sn=Pt[kt];w[I++]=new $i(sn,Ge.command,Ge.commandArgs,Ye,h)}}return w},r.prototype.resolveKeybinding=function(o){return[new Lr(o,mt.a)]},r.prototype.resolveKeyboardEvent=function(o){var h=new H.e(o.ctrlKey,o.shiftKey,o.altKey,o.metaKey,o.keyCode).toChord();return new Lr(h,mt.a)},r}(Jr);function Dr(a){return a&&typeof a=="object"&&(!a.overrideIdentifier||typeof a.overrideIdentifier=="string")&&(!a.resource||a.resource instanceof z.a)}var Or=function(){function a(){this._onDidChangeConfiguration=new N.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new $r(new br,new di)}return a.prototype.configuration=function(){return this._configuration},a.prototype.getValue=function(r,o){var h=typeof r=="string"?r:void 0,w=Dr(r)?r:Dr(o)?o:{};return this.configuration().getValue(h,w,void 0)},a.prototype.updateValue=function(r,o,h,w){return this.configuration().updateValue(r,o),Promise.resolve()},a.prototype.inspect=function(r,o){return o===void 0&&(o={}),this.configuration().inspect(r,o,void 0)},a}(),cs=function(){function a(r){var o=this;this.configurationService=r,this._onDidChangeConfiguration=new N.a,this.configurationService.onDidChangeConfiguration(function(h){o._onDidChangeConfiguration.fire({affectedKeys:h.affectedKeys,affectsConfiguration:function(I,ue){return h.affectsConfiguration(ue)}})})}return a.prototype.getValue=function(r,o,h){var w=M.a.isIPosition(o)?o:null,I=w?typeof h=="string"?h:void 0:typeof o=="string"?o:void 0;return typeof I=="undefined"?this.configurationService.getValue():this.configurationService.getValue(I)},a}(),hs=function(){function a(r){this.configurationService=r}return a.prototype.getEOL=function(r,o){var h=this.configurationService.getValue("files.eol",{overrideIdentifier:o,resource:r});return h&&h!=="auto"?h:mt.d||mt.e?`
`:`\r
`},a=os([is(0,Ao.a)],a),a}(),fs=function(){function a(){}return a.prototype.publicLog=function(r,o){return Promise.resolve(void 0)},a.prototype.publicLog2=function(r,o){return this.publicLog(r,o)},a}(),ps=function(){function a(){var r=z.a.from({scheme:a.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new wr.b({uri:r,name:"",index:0})]}}return a.prototype.getWorkspace=function(){return this.workspace},a.prototype.getWorkspaceFolder=function(r){return r&&r.scheme===a.SCHEME?this.workspace.folders[0]:null},a.SCHEME="inmemory",a}();function ni(a,r,o){if(!r)return;if(!(a instanceof Or))return;Object.keys(r).forEach(function(h){Object(yr.d)(h)&&a.updateValue("editor."+h,r[h]),o&&Object(yr.c)(h)&&a.updateValue("diffEditor."+h,r[h])})}var sa=function(){function a(r){this._modelService=r}return a.prototype.hasPreviewHandler=function(){return!1},a.prototype.apply=function(r,o){var h=new Map;if(r.edits)for(var w=0,I=r.edits;w<I.length;w++){var ue=I[w];if(!vt.D.is(ue))return Promise.reject(new Error("bad edit - only text edits are supported"));var Be=this._modelService.getModel(ue.resource);if(!Be)return Promise.reject(new Error("bad edit - model not found"));var Ge=h.get(Be);Ge||(Ge=[],h.set(Be,Ge)),Ge.push(ue.edit)}var Ye=0,Lt=0;return h.forEach(function(Mt,kt){kt.pushStackElement(),kt.pushEditOperations([],Mt.map(function(Pt){return Qr.a.replaceMove(U.a.lift(Pt.range),Pt.text)}),function(){return[]}),kt.pushStackElement(),Lt+=1,Ye+=Mt.length}),Promise.resolve({selection:void 0,ariaSummary:en.r(Mi.f.bulkEditServiceSummary,Ye,Lt)})},a}(),Mr=function(){function a(){}return a.prototype.getUriLabel=function(r,o){return r.scheme==="file"?r.fsPath:r.path},a}(),Tr=function(){function a(r){this._container=r,this.onLayout=N.b.None}return Object.defineProperty(a.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),a}(),gs=e("D3Dy"),ms=e("OBOq"),Ar=e("nB0o"),xr=e("lKfe"),bi=e("ZlPH"),vs=e("cMOf"),Ti=e("HdwC"),ys=e("vATl"),aa=e("DTDp"),Cs=e("WqXY"),bs=e("GJhM"),ui=e("8HAY"),ci=e("sswD"),Vo=e("kYye"),Co=e("MD5Z"),Do=e("t9D7"),_o=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Ai=3,Ei=function(){function a(r,o,h,w){this.originalLineStart=r,this.originalLineEnd=o,this.modifiedLineStart=h,this.modifiedLineEnd=w}return a.prototype.getType=function(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0},a}(),Ji=function(){function a(r){this.entries=r}return a}(),qi=function(a){_o(r,a);function r(o){var h=a.call(this)||this;return h._width=0,h._diffEditor=o,h._isVisible=!1,h.shadow=Object(bi.b)(document.createElement("div")),h.shadow.setClassName("diff-review-shadow"),h.actionBarContainer=Object(bi.b)(document.createElement("div")),h.actionBarContainer.setClassName("diff-review-actions"),h._actionBar=h._register(new Cs.a(h.actionBarContainer.domNode)),h._actionBar.push(new ui.a("diffreview.close",Lo.a("label.close","Close"),"close-diff-review",!0,function(){return h.hide(),Promise.resolve(null)}),{label:!1,icon:!0}),h.domNode=Object(bi.b)(document.createElement("div")),h.domNode.setClassName("diff-review monaco-editor-background"),h._content=Object(bi.b)(document.createElement("div")),h._content.setClassName("diff-review-content"),h.scrollbar=h._register(new bs.a(h._content.domNode,{})),h.domNode.domNode.appendChild(h.scrollbar.getDomNode()),h._register(o.onDidUpdateDiff(function(){if(!h._isVisible)return;h._diffs=h._compute(),h._render()})),h._register(o.getModifiedEditor().onDidChangeCursorPosition(function(){if(!h._isVisible)return;h._render()})),h._register(o.getOriginalEditor().onDidFocusEditorWidget(function(){h._isVisible&&h.hide()})),h._register(o.getModifiedEditor().onDidFocusEditorWidget(function(){h._isVisible&&h.hide()})),h._register(me.o(h.domNode.domNode,"click",function(w){w.preventDefault();var I=me.x(w.target,"diff-review-row");I&&h._goToRow(I)})),h._register(me.o(h.domNode.domNode,"keydown",function(w){(w.equals(18)||w.equals(2048|18)||w.equals(512|18))&&(w.preventDefault(),h._goToRow(h._getNextRow())),(w.equals(16)||w.equals(2048|16)||w.equals(512|16))&&(w.preventDefault(),h._goToRow(h._getPrevRow())),(w.equals(9)||w.equals(2048|9)||w.equals(512|9)||w.equals(1024|9))&&(w.preventDefault(),h.hide()),(w.equals(10)||w.equals(3))&&(w.preventDefault(),h.accept())})),h._diffs=[],h._currentDiff=null,h}return r.prototype.prev=function(){var o=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var h=-1,w=0,I=this._diffs.length;w<I;w++)if(this._diffs[w]===this._currentDiff){h=w;break}o=this._diffs.length+h-1}else o=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;o=o%this._diffs.length,this._diffEditor.setPosition(new M.a(this._diffs[o].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())},r.prototype.next=function(){var o=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var h=-1,w=0,I=this._diffs.length;w<I;w++)if(this._diffs[w]===this._currentDiff){h=w;break}o=h+1}else o=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;o=o%this._diffs.length,this._diffEditor.setPosition(new M.a(this._diffs[o].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())},r.prototype.accept=function(){var o=-1,h=this._getCurrentFocusedRow();if(h){var w=parseInt(h.getAttribute("data-line"),10);isNaN(w)||(o=w)}this.hide(),o!==-1&&(this._diffEditor.setPosition(new M.a(o,1)),this._diffEditor.revealPosition(new M.a(o,1),1))},r.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},r.prototype._getPrevRow=function(){var o=this._getCurrentFocusedRow();return o?o.previousElementSibling?o.previousElementSibling:o:this._getFirstRow()},r.prototype._getNextRow=function(){var o=this._getCurrentFocusedRow();return o?o.nextElementSibling?o.nextElementSibling:o:this._getFirstRow()},r.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},r.prototype._getCurrentFocusedRow=function(){var o=document.activeElement;return o&&/diff-review-row/.test(o.className)?o:null},r.prototype._goToRow=function(o){var h=this._getCurrentFocusedRow();o.tabIndex=0,o.focus(),h&&h!==o&&(h.tabIndex=-1),this.scrollbar.scanDomNode()},r.prototype.isVisible=function(){return this._isVisible},r.prototype.layout=function(o,h,w){this._width=h,this.shadow.setTop(o-6),this.shadow.setWidth(h),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(o),this.domNode.setWidth(h),this.domNode.setHeight(w),this._content.setHeight(w),this._content.setWidth(h),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))},r.prototype._compute=function(){var o=this._diffEditor.getLineChanges();if(!o||o.length===0)return[];var h=this._diffEditor.getOriginalEditor().getModel(),w=this._diffEditor.getModifiedEditor().getModel();return!h||!w?[]:r._mergeAdjacent(o,h.getLineCount(),w.getLineCount())},r._mergeAdjacent=function(o,h,w){if(!o||o.length===0)return[];for(var I=[],ue=0,Be=0,Ge=o.length;Be<Ge;Be++){var Ye=o[Be],Lt=Ye.originalStartLineNumber,Mt=Ye.originalEndLineNumber,kt=Ye.modifiedStartLineNumber,Pt=Ye.modifiedEndLineNumber,sn=[],tn=0;{var Yt=Mt===0?Lt:Lt-1,Qt=Pt===0?kt:kt-1,hn=1,wn=1;if(Be>0){var Tn=o[Be-1];Tn.originalEndLineNumber===0?hn=Tn.originalStartLineNumber+1:hn=Tn.originalEndLineNumber+1,Tn.modifiedEndLineNumber===0?wn=Tn.modifiedStartLineNumber+1:wn=Tn.modifiedEndLineNumber+1}var Nn=Yt-Ai+1,Fn=Qt-Ai+1;if(Nn<hn){var Kn=hn-Nn;Nn=Nn+Kn,Fn=Fn+Kn}if(Fn<wn){var Kn=wn-Fn;Nn=Nn+Kn,Fn=Fn+Kn}sn[tn++]=new Ei(Nn,Yt,Fn,Qt)}Mt!==0&&(sn[tn++]=new Ei(Lt,Mt,0,0)),Pt!==0&&(sn[tn++]=new Ei(0,0,kt,Pt));{var ao=Mt===0?Lt+1:Mt+1,So=Pt===0?kt+1:Pt+1,qn=h,Yn=w;if(Be+1<Ge){var co=o[Be+1];co.originalEndLineNumber===0?qn=co.originalStartLineNumber:qn=co.originalStartLineNumber-1,co.modifiedEndLineNumber===0?Yn=co.modifiedStartLineNumber:Yn=co.modifiedStartLineNumber-1}var eo=ao+Ai-1,Oo=So+Ai-1;if(eo>qn){var Kn=qn-eo;eo=eo+Kn,Oo=Oo+Kn}if(Oo>Yn){var Kn=Yn-Oo;eo=eo+Kn,Oo=Oo+Kn}sn[tn++]=new Ei(ao,eo,So,Oo)}I[ue++]=new Ji(sn)}for(var bo=I[0].entries,Bo=[],jo=0,Be=1,Ge=I.length;Be<Ge;Be++){var Go=I[Be].entries,si=bo[bo.length-1],Vi=Go[0];if(si.getType()===0&&Vi.getType()===0&&Vi.originalLineStart<=si.originalLineEnd){bo[bo.length-1]=new Ei(si.originalLineStart,Vi.originalLineEnd,si.modifiedLineStart,Vi.modifiedLineEnd),bo=bo.concat(Go.slice(1));continue}Bo[jo++]=new Ji(bo),bo=Go}return Bo[jo++]=new Ji(bo),Bo},r.prototype._findDiffIndex=function(o){for(var h=o.lineNumber,w=0,I=this._diffs.length;w<I;w++){var ue=this._diffs[w].entries,Be=ue[ue.length-1].modifiedLineEnd;if(h<=Be)return w}return 0},r.prototype._render=function(){var o=this._diffEditor.getOriginalEditor().getOptions(),h=this._diffEditor.getModifiedEditor().getOptions(),w=this._diffEditor.getOriginalEditor().getModel(),I=this._diffEditor.getModifiedEditor().getModel(),ue=w.getOptions(),Be=I.getOptions();if(!this._isVisible||!w||!I){me.t(this._content.domNode),this._currentDiff=null,this.scrollbar.scanDomNode();return}var Ge=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[Ge]===this._currentDiff)return;this._currentDiff=this._diffs[Ge];var Ye=this._diffs[Ge].entries,Lt=document.createElement("div");Lt.className="diff-review-table",Lt.setAttribute("role","list"),Ti.a.applyFontInfoSlow(Lt,h.get(34));for(var Mt=0,kt=0,Pt=0,sn=0,tn=0,Yt=Ye.length;tn<Yt;tn++){var Qt=Ye[tn],hn=Qt.originalLineStart,wn=Qt.originalLineEnd,Tn=Qt.modifiedLineStart,Nn=Qt.modifiedLineEnd;hn!==0&&(Mt===0||hn<Mt)&&(Mt=hn),wn!==0&&(kt===0||wn>kt)&&(kt=wn),Tn!==0&&(Pt===0||Tn<Pt)&&(Pt=Tn),Nn!==0&&(sn===0||Nn>sn)&&(sn=Nn)}var Fn=document.createElement("div");Fn.className="diff-review-row";var Kn=document.createElement("div");Kn.className="diff-review-cell diff-review-summary";var ao=kt-Mt+1,So=sn-Pt+1;Kn.appendChild(document.createTextNode(Ge+1+"/"+this._diffs.length+": @@ -"+Mt+","+ao+" +"+Pt+","+So+" @@")),Fn.setAttribute("data-line",String(Pt));var qn=function(bo){return bo===0?Lo.a("no_lines","no lines"):bo===1?Lo.a("one_line","1 line"):Lo.a("more_lines","{0} lines",bo)},Yn=qn(ao),co=qn(So);Fn.setAttribute("aria-label",Lo.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",Ge+1,this._diffs.length,Mt,Yn,Pt,co)),Fn.appendChild(Kn),Fn.setAttribute("role","listitem"),Lt.appendChild(Fn);for(var eo=Pt,tn=0,Yt=Ye.length;tn<Yt;tn++){var Qt=Ye[tn];r._renderSection(Lt,Qt,eo,this._width,o,w,ue,h,I,Be),Qt.modifiedLineStart!==0&&(eo=Qt.modifiedLineEnd)}me.t(this._content.domNode),this._content.domNode.appendChild(Lt),this.scrollbar.scanDomNode()},r._renderSection=function(o,h,w,I,ue,Be,Ge,Ye,Lt,Mt){var kt=h.getType(),Pt="diff-review-row",sn="",tn="diff-review-spacer";switch(kt){case 1:Pt="diff-review-row line-insert",sn=" char-insert",tn="diff-review-spacer insert-sign";break;case 2:Pt="diff-review-row line-delete",sn=" char-delete",tn="diff-review-spacer delete-sign";break}for(var Yt=h.originalLineStart,Qt=h.originalLineEnd,hn=h.modifiedLineStart,wn=h.modifiedLineEnd,Tn=Math.max(wn-hn,Qt-Yt),Nn=ue.get(107),Fn=Nn.glyphMarginWidth+Nn.lineNumbersWidth,Kn=Ye.get(107),ao=10+Kn.glyphMarginWidth+Kn.lineNumbersWidth,So=0;So<=Tn;So++){var qn=Yt===0?0:Yt+So,Yn=hn===0?0:hn+So,co=document.createElement("div");co.style.minWidth=I+"px",co.className=Pt,co.setAttribute("role","listitem"),Yn!==0&&(w=Yn),co.setAttribute("data-line",String(w));var eo=document.createElement("div");eo.className="diff-review-cell",co.appendChild(eo);var Oo=document.createElement("span");Oo.style.width=Fn+"px",Oo.style.minWidth=Fn+"px",Oo.className="diff-review-line-number"+sn,qn!==0?Oo.appendChild(document.createTextNode(String(qn))):Oo.innerHTML="&#160;",eo.appendChild(Oo);var bo=document.createElement("span");bo.style.width=ao+"px",bo.style.minWidth=ao+"px",bo.style.paddingRight="10px",bo.className="diff-review-line-number"+sn,Yn!==0?bo.appendChild(document.createTextNode(String(Yn))):bo.innerHTML="&#160;",eo.appendChild(bo);var Bo=document.createElement("span");Bo.className=tn,Bo.innerHTML="&#160;&#160;",eo.appendChild(Bo);var jo=void 0;Yn!==0?(eo.insertAdjacentHTML("beforeend",this._renderLine(Lt,Ye,Mt.tabSize,Yn)),jo=Lt.getLineContent(Yn)):(eo.insertAdjacentHTML("beforeend",this._renderLine(Be,ue,Ge.tabSize,qn)),jo=Be.getLineContent(qn)),jo.length===0&&(jo=Lo.a("blankLine","blank"));var Go="";switch(kt){case 0:Go=Lo.a("equalLine","original {0}, modified {1}: {2}",qn,Yn,jo);break;case 1:Go=Lo.a("insertLine","+ modified {0}: {1}",Yn,jo);break;case 2:Go=Lo.a("deleteLine","- original {0}: {1}",qn,jo);break}co.setAttribute("aria-label",Go),o.appendChild(co)}},r._renderLine=function(o,h,w,I){var ue=o.getLineContent(I),Be=h.get(34),Ge=(0<<11|1<<14|2<<23)>>>0,Ye=new Uint32Array(2);Ye[0]=ue.length,Ye[1]=Ge;var Lt=new pt.a(Ye,ue),Mt=Xt.d.isBasicASCII(ue,o.mightContainNonBasicASCII()),kt=Xt.d.containsRTL(ue,Mt,o.mightContainRTL()),Pt=Object(Kt.e)(new Kt.c(Be.isMonospace&&!h.get(23),Be.canUseHalfwidthRightwardsArrow,ue,!1,Mt,kt,0,Lt,[],w,0,Be.spaceWidth,Be.middotWidth,h.get(88),h.get(74),h.get(69),h.get(35)!==T.d.OFF,null));return Pt.html},r}(Rt.a);Object(Do.e)(function(a,r){var o=a.getColor(Vo.k);o&&r.addRule(".monaco-diff-editor .diff-review-line-number { color: "+o+"; }");var h=a.getColor(Co.Vb);h&&r.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+h+" 0 -6px 6px -6px inset; }")});var er=function(a){_o(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.next",label:Lo.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:wo.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return r.prototype.run=function(o,h){var w=Nr(o);w&&w.diffReviewNext()},r}(ci.b),Rr=function(a){_o(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.prev",label:Lo.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:wo.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1024|65,weight:100}})||this}return r.prototype.run=function(o,h){var w=Nr(o);w&&w.diffReviewPrev()},r}(ci.b);function Nr(a){for(var r=a.get(pe.a),o=r.listDiffEditors(),h=0,w=o.length;h<w;h++){var I=o[h];if(I.hasWidgetFocus())return I}return null}Object(ci.f)(er),Object(ci.f)(Rr);var Es=e("erNZ"),Jn=e("tX9W"),xi=e("MvK1"),Ss=e("dBaI"),No=e("Cg/j"),Si=e("8HsV"),Xo=e("Uzvx"),zo=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Ri=function(a,r,o,h){function w(I){return I instanceof o?I:new o(function(ue){ue(I)})}return new(o||(o=Promise))(function(I,ue){function Be(Lt){try{Ye(h.next(Lt))}catch(Mt){ue(Mt)}}function Ge(Lt){try{Ye(h.throw(Lt))}catch(Mt){ue(Mt)}}function Ye(Lt){Lt.done?I(Lt.value):w(Lt.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},tr=function(a,r){var o={label:0,sent:function(){if(I[0]&1)throw I[1];return I[1]},trys:[],ops:[]},h,w,I,ue;return ue={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ue[Symbol.iterator]=function(){return this}),ue;function Be(Ye){return function(Lt){return Ge([Ye,Lt])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;o;)try{if(h=1,w&&(I=Ye[0]&2?w.return:Ye[0]?w.throw||((I=w.return)&&I.call(w),0):w.next)&&!(I=I.call(w,Ye[1])).done)return I;(w=0,I)&&(Ye=[Ye[0]&2,I.value]);switch(Ye[0]){case 0:case 1:I=Ye;break;case 4:return o.label++,{value:Ye[1],done:!1};case 5:o.label++,w=Ye[1],Ye=[0];continue;case 7:Ye=o.ops.pop(),o.trys.pop();continue;default:if(!(I=o.trys,I=I.length>0&&I[I.length-1])&&(Ye[0]===6||Ye[0]===2)){o=0;continue}if(Ye[0]===3&&(!I||Ye[1]>I[0]&&Ye[1]<I[3])){o.label=Ye[1];break}if(Ye[0]===6&&o.label<I[1]){o.label=I[1],I=Ye;break}if(I&&o.label<I[2]){o.label=I[2],o.ops.push(Ye);break}I[2]&&o.ops.pop(),o.trys.pop();continue}Ye=r.call(a,o)}catch(Lt){Ye=[6,Lt],w=0}finally{h=I=0}if(Ye[0]&5)throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}},Li=function(a){zo(r,a);function r(o,h,w,I,ue,Be){var Ge=a.call(this)||this;Ge._viewZoneId=o,Ge._marginDomNode=h,Ge.editor=w,Ge.diff=I,Ge._contextMenuService=ue,Ge._clipboardService=Be,Ge._visibility=!1,Ge._marginDomNode.style.zIndex="10",Ge._diffActions=document.createElement("div"),Ge._diffActions.className="codicon codicon-lightbulb lightbulb-glyph",Ge._diffActions.style.position="absolute";var Ye=w.getOption(49),Lt=w.getModel().getEOL();Ge._diffActions.style.right="0px",Ge._diffActions.style.visibility="hidden",Ge._diffActions.style.height=Ye+"px",Ge._diffActions.style.lineHeight=Ye+"px",Ge._marginDomNode.appendChild(Ge._diffActions);var Mt=[];Mt.push(new ui.a("diff.clipboard.copyDeletedContent",I.originalEndLineNumber>I.modifiedStartLineNumber?Lo.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):Lo.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){return tr(this,function(Yt){switch(Yt.label){case 0:return[4,this._clipboardService.writeText(I.originalContent.join(Lt)+Lt)];case 1:return Yt.sent(),[2]}})})}));var kt=0,Pt=void 0;I.originalEndLineNumber>I.modifiedStartLineNumber&&(Pt=new ui.a("diff.clipboard.copyDeletedLineContent",Lo.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",I.originalStartLineNumber),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){return tr(this,function(Yt){switch(Yt.label){case 0:return[4,this._clipboardService.writeText(I.originalContent[kt])];case 1:return Yt.sent(),[2]}})})}),Mt.push(Pt));var sn=w.getOption(68);sn||Mt.push(new ui.a("diff.inline.revertChange",Lo.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){var Yt,Yt;return tr(this,function(Qt){return I.modifiedEndLineNumber===0?(Yt=w.getModel().getLineMaxColumn(I.modifiedStartLineNumber),w.executeEdits("diffEditor",[{range:new U.a(I.modifiedStartLineNumber,Yt,I.modifiedStartLineNumber,Yt),text:Lt+I.originalContent.join(Lt)}])):(Yt=w.getModel().getLineMaxColumn(I.modifiedEndLineNumber),w.executeEdits("diffEditor",[{range:new U.a(I.modifiedStartLineNumber,1,I.modifiedEndLineNumber,Yt),text:I.originalContent.join(Lt)}])),[2]})})}));var tn=function(Qt,hn){Ge._contextMenuService.showContextMenu({getAnchor:function(){return{x:Qt,y:hn}},getActions:function(){return Pt&&(Pt.label=Lo.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",I.originalStartLineNumber+kt)),Mt},autoSelectFirstItem:!0})};return Ge._register(me.o(Ge._diffActions,"mousedown",function(Yt){var Qt=me.C(Ge._diffActions),hn=Qt.top,wn=Qt.height,Tn=Math.floor(Ye/3);Yt.preventDefault(),tn(Yt.posx,hn+wn+Tn)})),Ge._register(w.onMouseMove(function(Yt){if(Yt.target.type===8||Yt.target.type===5){var Qt=Yt.target.detail.viewZoneId;Qt===Ge._viewZoneId?(Ge.visibility=!0,kt=Ge._updateLightBulbPosition(Ge._marginDomNode,Yt.event.browserEvent.y,Ye)):Ge.visibility=!1}else Ge.visibility=!1})),Ge._register(w.onMouseDown(function(Yt){if(!Yt.event.rightButton)return;if(Yt.target.type===8||Yt.target.type===5){var Qt=Yt.target.detail.viewZoneId;Qt===Ge._viewZoneId&&(Yt.event.preventDefault(),kt=Ge._updateLightBulbPosition(Ge._marginDomNode,Yt.event.browserEvent.y,Ye),tn(Yt.event.posx,Yt.event.posy+Ye))}})),Ge}return Object.defineProperty(r.prototype,"visibility",{get:function(){return this._visibility},set:function(h){this._visibility!==h&&(this._visibility=h,h?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")},enumerable:!0,configurable:!0}),r.prototype._updateLightBulbPosition=function(o,h,w){var I=me.C(o).top,ue=h-I,Be=Math.floor(ue/w),Ge=Be*w;return this._diffActions.style.top=Ge+"px",Be},r}(Rt.a),Ni=e("tTk5"),Ls=e("o39E"),hi=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),ws=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},Jo=function(a,r){return function(o,h){r(o,h,a)}},qo=function(){function a(r,o){this._contextMenuService=r,this._clipboardService=o,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return a.prototype.getForeignViewZones=function(r){var o=this;return r.filter(function(h){return!o._zonesMap[String(h.id)]})},a.prototype.clean=function(r){var o=this;this._zones.length>0&&r.changeViewZones(function(h){for(var w=0,I=o._zones.length;w<I;w++)h.removeZone(o._zones[w])}),this._zones=[],this._zonesMap={},this._decorations=r.deltaDecorations(this._decorations,[])},a.prototype.apply=function(r,o,h,w){var I=this,ue=w?ys.c.capture(r):null;r.changeViewZones(function(Be){for(var Ge=0,Ye=I._zones.length;Ge<Ye;Ge++)Be.removeZone(I._zones[Ge]);for(var Ge=0,Lt=I.inlineDiffMargins.length;Ge<Lt;Ge++)I.inlineDiffMargins[Ge].dispose();I._zones=[],I._zonesMap={},I.inlineDiffMargins=[];for(var Ge=0,Mt=h.zones.length;Ge<Mt;Ge++){var kt=h.zones[Ge];kt.suppressMouseDown=!0;var Pt=Be.addZone(kt);I._zones.push(Pt),I._zonesMap[String(Pt)]=!0,h.zones[Ge].diff&&kt.marginDomNode&&I._clipboardService&&(kt.suppressMouseDown=!1,I.inlineDiffMargins.push(new Li(Pt,kt.marginDomNode,r,h.zones[Ge].diff,I._contextMenuService,I._clipboardService)))}}),ue&&ue.restore(r),this._decorations=r.deltaDecorations(this._decorations,h.decorations),o&&o.setZones(h.overviewZones)},a}(),_s=0,nr=function(a){hi(r,a);function r(o,h,w,I,ue,Be,Ge,Ye,Lt,Mt,kt){var Pt=a.call(this)||this;Pt._editorProgressService=kt,Pt._onDidDispose=Pt._register(new N.a),Pt.onDidDispose=Pt._onDidDispose.event,Pt._onDidUpdateDiff=Pt._register(new N.a),Pt.onDidUpdateDiff=Pt._onDidUpdateDiff.event,Pt._lastOriginalWarning=null,Pt._lastModifiedWarning=null,Pt._editorWorkerService=I,Pt._codeEditorService=Ge,Pt._contextKeyService=Pt._register(ue.createScoped(o)),Pt._contextKeyService.createKey("isInDiffEditor",!0),Pt._themeService=Ye,Pt._notificationService=Lt,Pt.id=++_s,Pt._state=0,Pt._updatingDiffProgress=null,Pt._domElement=o,h=h||{},Pt._renderSideBySide=!0,typeof h.renderSideBySide!="undefined"&&(Pt._renderSideBySide=h.renderSideBySide),Pt._maxComputationTime=5e3,typeof h.maxComputationTime!="undefined"&&(Pt._maxComputationTime=h.maxComputationTime),Pt._ignoreTrimWhitespace=!0,typeof h.ignoreTrimWhitespace!="undefined"&&(Pt._ignoreTrimWhitespace=h.ignoreTrimWhitespace),Pt._renderIndicators=!0,typeof h.renderIndicators!="undefined"&&(Pt._renderIndicators=h.renderIndicators),Pt._originalIsEditable=!1,typeof h.originalEditable!="undefined"&&(Pt._originalIsEditable=Boolean(h.originalEditable)),Pt._updateDecorationsRunner=Pt._register(new ct.d(function(){return Pt._updateDecorations()},0)),Pt._containerDomElement=document.createElement("div"),Pt._containerDomElement.className=r._getClassName(Pt._themeService.getTheme(),Pt._renderSideBySide),Pt._containerDomElement.style.position="relative",Pt._containerDomElement.style.height="100%",Pt._domElement.appendChild(Pt._containerDomElement),Pt._overviewViewportDomElement=Object(bi.b)(document.createElement("div")),Pt._overviewViewportDomElement.setClassName("diffViewport"),Pt._overviewViewportDomElement.setPosition("absolute"),Pt._overviewDomElement=document.createElement("div"),Pt._overviewDomElement.className="diffOverview",Pt._overviewDomElement.style.position="absolute",Pt._overviewDomElement.appendChild(Pt._overviewViewportDomElement.domNode),Pt._register(me.o(Pt._overviewDomElement,"mousedown",function(ao){Pt.modifiedEditor.delegateVerticalScrollbarMouseDown(ao)})),Pt._containerDomElement.appendChild(Pt._overviewDomElement),Pt._originalDomNode=document.createElement("div"),Pt._originalDomNode.className="editor original",Pt._originalDomNode.style.position="absolute",Pt._originalDomNode.style.height="100%",Pt._containerDomElement.appendChild(Pt._originalDomNode),Pt._modifiedDomNode=document.createElement("div"),Pt._modifiedDomNode.className="editor modified",Pt._modifiedDomNode.style.position="absolute",Pt._modifiedDomNode.style.height="100%",Pt._containerDomElement.appendChild(Pt._modifiedDomNode),Pt._beginUpdateDecorationsTimeout=-1,Pt._currentlyChangingViewZones=!1,Pt._diffComputationToken=0,Pt._originalEditorState=new qo(Mt,w),Pt._modifiedEditorState=new qo(Mt,w),Pt._isVisible=!0,Pt._isHandlingScrollEvent=!1,Pt._elementSizeObserver=Pt._register(new Ls.a(Pt._containerDomElement,void 0,function(){return Pt._onDidContainerSizeChanged()})),h.automaticLayout&&Pt._elementSizeObserver.startObserving(),Pt._diffComputationResult=null;var sn=Pt._contextKeyService.createScoped();sn.createKey("isInDiffLeftEditor",!0);var tn=new Si.a;tn.set(wo.c,sn);var Yt=Be.createChild(tn),Qt=Pt._contextKeyService.createScoped();Qt.createKey("isInDiffRightEditor",!0);var hn=new Si.a;hn.set(wo.c,Qt);var wn=Be.createChild(hn);Pt.originalEditor=Pt._createLeftHandSideEditor(h,Yt),Pt.modifiedEditor=Pt._createRightHandSideEditor(h,wn),Pt._originalOverviewRuler=null,Pt._modifiedOverviewRuler=null,Pt._reviewPane=new qi(Pt),Pt._containerDomElement.appendChild(Pt._reviewPane.domNode.domNode),Pt._containerDomElement.appendChild(Pt._reviewPane.shadow.domNode),Pt._containerDomElement.appendChild(Pt._reviewPane.actionBarContainer.domNode),Pt._enableSplitViewResizing=!0,typeof h.enableSplitViewResizing!="undefined"&&(Pt._enableSplitViewResizing=h.enableSplitViewResizing),Pt._renderSideBySide?Pt._setStrategy(new rr(Pt._createDataSource(),Pt._enableSplitViewResizing)):Pt._setStrategy(new Ii(Pt._createDataSource(),Pt._enableSplitViewResizing)),Pt._register(Ye.onThemeChange(function(ao){Pt._strategy&&Pt._strategy.applyColors(ao)&&Pt._updateDecorationsRunner.schedule(),Pt._containerDomElement.className=r._getClassName(Pt._themeService.getTheme(),Pt._renderSideBySide)}));for(var Tn=ci.d.getDiffEditorContributions(),Nn=0,Fn=Tn;Nn<Fn.length;Nn++){var Kn=Fn[Nn];try{Pt._register(Be.createInstance(Kn.ctor,Pt))}catch(ao){Object(bt.e)(ao)}}return Pt._codeEditorService.addDiffEditor(Pt),Pt}return r.prototype._setState=function(o){if(this._state===o)return;this._state=o,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3))},r.prototype.hasWidgetFocus=function(){return me.K(document.activeElement,this._domElement)},r.prototype.diffReviewNext=function(){this._reviewPane.next()},r.prototype.diffReviewPrev=function(){this._reviewPane.prev()},r._getClassName=function(o,h){var w="monaco-diff-editor monaco-editor-background ";return h&&(w+="side-by-side "),w+=Object(Do.d)(o.type),w},r.prototype._recreateOverviewRulers=function(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()},r.prototype._createLeftHandSideEditor=function(o,h){var w=this,I=this._createInnerEditor(h,this._originalDomNode,this._adjustOptionsForLeftHandSide(o,this._originalIsEditable));return this._register(I.onDidScrollChange(function(ue){if(w._isHandlingScrollEvent)return;if(!ue.scrollTopChanged&&!ue.scrollLeftChanged&&!ue.scrollHeightChanged)return;w._isHandlingScrollEvent=!0,w.modifiedEditor.setScrollPosition({scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop}),w._isHandlingScrollEvent=!1,w._layoutOverviewViewport()})),this._register(I.onDidChangeViewZones(function(){w._onViewZonesChanged()})),this._register(I.onDidChangeModelContent(function(){w._isVisible&&w._beginUpdateDecorationsSoon()})),I},r.prototype._createRightHandSideEditor=function(o,h){var w=this,I=this._createInnerEditor(h,this._modifiedDomNode,this._adjustOptionsForRightHandSide(o));return this._register(I.onDidScrollChange(function(ue){if(w._isHandlingScrollEvent)return;if(!ue.scrollTopChanged&&!ue.scrollLeftChanged&&!ue.scrollHeightChanged)return;w._isHandlingScrollEvent=!0,w.originalEditor.setScrollPosition({scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop}),w._isHandlingScrollEvent=!1,w._layoutOverviewViewport()})),this._register(I.onDidChangeViewZones(function(){w._onViewZonesChanged()})),this._register(I.onDidChangeConfiguration(function(ue){ue.hasChanged(34)&&I.getModel()&&w._onViewZonesChanged()})),this._register(I.onDidChangeModelContent(function(){w._isVisible&&w._beginUpdateDecorationsSoon()})),this._register(I.onDidChangeModelOptions(function(ue){ue.tabSize&&w._updateDecorationsRunner.schedule()})),I},r.prototype._createInnerEditor=function(o,h,w){return o.createInstance(Ar.a,h,w,{})},r.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this),this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),a.prototype.dispose.call(this)},r.prototype.getId=function(){return this.getEditorType()+":"+this.id},r.prototype.getEditorType=function(){return jt.a.IDiffEditor},r.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},r.prototype.getOriginalEditor=function(){return this.originalEditor},r.prototype.getModifiedEditor=function(){return this.modifiedEditor},r.prototype.updateOptions=function(o){var h=!1;typeof o.renderSideBySide!="undefined"&&(this._renderSideBySide!==o.renderSideBySide&&(this._renderSideBySide=o.renderSideBySide,h=!0)),typeof o.maxComputationTime!="undefined"&&(this._maxComputationTime=o.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());var w=!1;typeof o.ignoreTrimWhitespace!="undefined"&&(this._ignoreTrimWhitespace!==o.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=o.ignoreTrimWhitespace,w=!0)),typeof o.renderIndicators!="undefined"&&(this._renderIndicators!==o.renderIndicators&&(this._renderIndicators=o.renderIndicators,w=!0)),w&&this._beginUpdateDecorations(),typeof o.originalEditable!="undefined"&&(this._originalIsEditable=Boolean(o.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(o)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(o,this._originalIsEditable)),typeof o.enableSplitViewResizing!="undefined"&&(this._enableSplitViewResizing=o.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),h&&(this._renderSideBySide?this._setStrategy(new rr(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new Ii(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=r._getClassName(this._themeService.getTheme(),this._renderSideBySide))},r.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},r.prototype.setModel=function(o){if(o&&(!o.original||!o.modified))throw new Error(o.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(o?o.original:null),this.modifiedEditor.setModel(o?o.modified:null),this._updateDecorationsRunner.cancel(),o&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),o&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()},r.prototype.getDomNode=function(){return this._domElement},r.prototype.getVisibleColumnFromPosition=function(o){return this.modifiedEditor.getVisibleColumnFromPosition(o)},r.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},r.prototype.setPosition=function(o){this.modifiedEditor.setPosition(o)},r.prototype.revealLine=function(o,h){h===void 0&&(h=0),this.modifiedEditor.revealLine(o,h)},r.prototype.revealLineInCenter=function(o,h){h===void 0&&(h=0),this.modifiedEditor.revealLineInCenter(o,h)},r.prototype.revealLineInCenterIfOutsideViewport=function(o,h){h===void 0&&(h=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(o,h)},r.prototype.revealPosition=function(o,h){h===void 0&&(h=0),this.modifiedEditor.revealPosition(o,h)},r.prototype.revealPositionInCenter=function(o,h){h===void 0&&(h=0),this.modifiedEditor.revealPositionInCenter(o,h)},r.prototype.revealPositionInCenterIfOutsideViewport=function(o,h){h===void 0&&(h=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(o,h)},r.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},r.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},r.prototype.setSelection=function(o){this.modifiedEditor.setSelection(o)},r.prototype.setSelections=function(o){this.modifiedEditor.setSelections(o)},r.prototype.revealLines=function(o,h,w){w===void 0&&(w=0),this.modifiedEditor.revealLines(o,h,w)},r.prototype.revealLinesInCenter=function(o,h,w){w===void 0&&(w=0),this.modifiedEditor.revealLinesInCenter(o,h,w)},r.prototype.revealLinesInCenterIfOutsideViewport=function(o,h,w){w===void 0&&(w=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(o,h,w)},r.prototype.revealRange=function(o,h,w,I){h===void 0&&(h=0),w===void 0&&(w=!1),I===void 0&&(I=!0),this.modifiedEditor.revealRange(o,h,w,I)},r.prototype.revealRangeInCenter=function(o,h){h===void 0&&(h=0),this.modifiedEditor.revealRangeInCenter(o,h)},r.prototype.revealRangeInCenterIfOutsideViewport=function(o,h){h===void 0&&(h=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(o,h)},r.prototype.revealRangeAtTop=function(o,h){h===void 0&&(h=0),this.modifiedEditor.revealRangeAtTop(o,h)},r.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},r.prototype.saveViewState=function(){var o=this.originalEditor.saveViewState(),h=this.modifiedEditor.saveViewState();return{original:o,modified:h}},r.prototype.restoreViewState=function(o){if(o.original&&o.modified){var h=o;this.originalEditor.restoreViewState(h.original),this.modifiedEditor.restoreViewState(h.modified)}},r.prototype.layout=function(o){this._elementSizeObserver.observe(o)},r.prototype.focus=function(){this.modifiedEditor.focus()},r.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},r.prototype.trigger=function(o,h,w){this.modifiedEditor.trigger(o,h,w)},r.prototype.changeDecorations=function(o){return this.modifiedEditor.changeDecorations(o)},r.prototype._onDidContainerSizeChanged=function(){this._doLayout()},r.prototype._getReviewHeight=function(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0},r.prototype._layoutOverviewRulers=function(){if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;var o=this._elementSizeObserver.getHeight(),h=this._getReviewHeight(),w=r.ENTIRE_DIFF_OVERVIEW_WIDTH-2*r.ONE_OVERVIEW_WIDTH,I=this.modifiedEditor.getLayoutInfo();I&&(this._originalOverviewRuler.setLayout({top:0,width:r.ONE_OVERVIEW_WIDTH,right:w+r.ONE_OVERVIEW_WIDTH,height:o-h}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:r.ONE_OVERVIEW_WIDTH,height:o-h}))},r.prototype._onViewZonesChanged=function(){if(this._currentlyChangingViewZones)return;this._updateDecorationsRunner.schedule()},r.prototype._beginUpdateDecorationsSoon=function(){var o=this;this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(function(){return o._beginUpdateDecorations()},r.UPDATE_DIFF_DECORATIONS_DELAY)},r._equals=function(o,h){return!o&&!h?!0:!o||!h?!1:o.toString()===h.toString()},r.prototype._beginUpdateDecorations=function(){var o=this;this._beginUpdateDecorationsTimeout=-1;var h=this.originalEditor.getModel(),w=this.modifiedEditor.getModel();if(!h||!w)return;this._diffComputationToken++;var I=this._diffComputationToken;if(this._setState(1),!this._editorWorkerService.canComputeDiff(h.uri,w.uri)){(!r._equals(h.uri,this._lastOriginalWarning)||!r._equals(w.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=h.uri,this._lastModifiedWarning=w.uri,this._notificationService.warn(Lo.a("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._editorWorkerService.computeDiff(h.uri,w.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(function(ue){I===o._diffComputationToken&&h===o.originalEditor.getModel()&&w===o.modifiedEditor.getModel()&&(o._setState(2),o._diffComputationResult=ue,o._updateDecorationsRunner.schedule(),o._onDidUpdateDiff.fire())},function(ue){I===o._diffComputationToken&&h===o.originalEditor.getModel()&&w===o.modifiedEditor.getModel()&&(o._setState(2),o._diffComputationResult=null,o._updateDecorationsRunner.schedule())})},r.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},r.prototype._updateDecorations=function(){if(!this.originalEditor.getModel()||!this.modifiedEditor.getModel()||!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;var o=this._diffComputationResult?this._diffComputationResult.changes:[],h=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),w=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),I=this._strategy.getEditorsDiffDecorations(o,this._ignoreTrimWhitespace,this._renderIndicators,h,w,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,I.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,I.modified,!0)}finally{this._currentlyChangingViewZones=!1}},r.prototype._adjustOptionsForSubEditor=function(o){var h=Dt.c(o||{});return h.inDiffEditor=!0,h.wordWrap="off",h.wordWrapMinified=!1,h.automaticLayout=!1,h.scrollbar=h.scrollbar||{},h.scrollbar.vertical="visible",h.folding=!1,h.codeLens=!1,h.fixedOverflowWidgets=!0,h.minimap||(h.minimap={}),h.minimap.enabled=!1,h},r.prototype._adjustOptionsForLeftHandSide=function(o,h){var w=this._adjustOptionsForSubEditor(o);return w.readOnly=!h,w.extraEditorClassName="original-in-monaco-diff-editor",w},r.prototype._adjustOptionsForRightHandSide=function(o){var h=this._adjustOptionsForSubEditor(o);return h.revealHorizontalRightPadding=T.e.revealHorizontalRightPadding.defaultValue+r.ENTIRE_DIFF_OVERVIEW_WIDTH,h.scrollbar.verticalHasArrows=!1,h.extraEditorClassName="modified-in-monaco-diff-editor",h},r.prototype.doLayout=function(){this._elementSizeObserver.observe(),this._doLayout()},r.prototype._doLayout=function(){var o=this._elementSizeObserver.getWidth(),h=this._elementSizeObserver.getHeight(),w=this._getReviewHeight(),I=this._strategy.layout();this._originalDomNode.style.width=I+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=o-I+"px",this._modifiedDomNode.style.left=I+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=h-w+"px",this._overviewDomElement.style.width=r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=o-r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(r.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:I,height:h-w}),this.modifiedEditor.layout({width:o-I-r.ENTIRE_DIFF_OVERVIEW_WIDTH,height:h-w}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(h-w,o,w),this._layoutOverviewViewport()},r.prototype._layoutOverviewViewport=function(){var o=this._computeOverviewViewport();o?(this._overviewViewportDomElement.setTop(o.top),this._overviewViewportDomElement.setHeight(o.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},r.prototype._computeOverviewViewport=function(){var o=this.modifiedEditor.getLayoutInfo();if(!o)return null;var h=this.modifiedEditor.getScrollTop(),w=this.modifiedEditor.getScrollHeight(),I=Math.max(0,o.height),ue=Math.max(0,I-2*0),Be=w>0?ue/w:0,Ge=Math.max(0,Math.floor(o.height*Be)),Ye=Math.floor(h*Be);return{height:Ge,top:Ye}},r.prototype._createDataSource=function(){var o=this;return{getWidth:function(){return o._elementSizeObserver.getWidth()},getHeight:function(){return o._elementSizeObserver.getHeight()-o._getReviewHeight()},getContainerDomNode:function(){return o._containerDomElement},relayoutEditors:function(){o._doLayout()},getOriginalEditor:function(){return o.originalEditor},getModifiedEditor:function(){return o.modifiedEditor}}},r.prototype._setStrategy=function(o){this._strategy&&this._strategy.dispose(),this._strategy=o,o.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},r.prototype._getLineChangeAtOrBeforeLineNumber=function(o,h){var w=this._diffComputationResult?this._diffComputationResult.changes:[];if(w.length===0||o<h(w[0]))return null;for(var I=0,ue=w.length-1;I<ue;){var Be=Math.floor((I+ue)/2),Ge=h(w[Be]),Ye=Be+1<=ue?h(w[Be+1]):1073741824;o<Ge?ue=Be-1:o>=Ye?I=Be+1:(I=Be,ue=Be)}return w[I]},r.prototype._getEquivalentLineForOriginalLineNumber=function(o){var h=this._getLineChangeAtOrBeforeLineNumber(o,function(Ye){return Ye.originalStartLineNumber});if(!h)return o;var w=h.originalStartLineNumber+(h.originalEndLineNumber>0?-1:0),I=h.modifiedStartLineNumber+(h.modifiedEndLineNumber>0?-1:0),ue=h.originalEndLineNumber>0?h.originalEndLineNumber-h.originalStartLineNumber+1:0,Be=h.modifiedEndLineNumber>0?h.modifiedEndLineNumber-h.modifiedStartLineNumber+1:0,Ge=o-w;return Ge<=ue?I+Math.min(Ge,Be):I+Be-ue+Ge},r.prototype._getEquivalentLineForModifiedLineNumber=function(o){var h=this._getLineChangeAtOrBeforeLineNumber(o,function(Ye){return Ye.modifiedStartLineNumber});if(!h)return o;var w=h.originalStartLineNumber+(h.originalEndLineNumber>0?-1:0),I=h.modifiedStartLineNumber+(h.modifiedEndLineNumber>0?-1:0),ue=h.originalEndLineNumber>0?h.originalEndLineNumber-h.originalStartLineNumber+1:0,Be=h.modifiedEndLineNumber>0?h.modifiedEndLineNumber-h.modifiedStartLineNumber+1:0,Ge=o-I;return Ge<=Be?w+Math.min(Ge,ue):w+ue-Be+Ge},r.prototype.getDiffLineInformationForOriginal=function(o){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(o)}:null},r.prototype.getDiffLineInformationForModified=function(o){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(o)}:null},r.ONE_OVERVIEW_WIDTH=15,r.ENTIRE_DIFF_OVERVIEW_WIDTH=30,r.UPDATE_DIFF_DECORATIONS_DELAY=200,r=ws([Jo(3,at.a),Jo(4,wo.c),Jo(5,No.a),Jo(6,pe.a),Jo(7,Do.c),Jo(8,Ho.a),Jo(9,Xo.a),Jo(10,Ni.a)],r),r}(Rt.a),Ir=function(a){hi(r,a);function r(o){var h=a.call(this)||this;return h._dataSource=o,h._insertColor=null,h._removeColor=null,h}return r.prototype.applyColors=function(o){var h=(o.getColor(Co.j)||Co.g).transparent(2),w=(o.getColor(Co.l)||Co.h).transparent(2),I=!h.equals(this._insertColor)||!w.equals(this._removeColor);return this._insertColor=h,this._removeColor=w,I},r.prototype.getEditorsDiffDecorations=function(o,h,w,I,ue,Be,Ge){ue=ue.sort(function(kt,Pt){return kt.afterLineNumber-Pt.afterLineNumber}),I=I.sort(function(kt,Pt){return kt.afterLineNumber-Pt.afterLineNumber});var Ye=this._getViewZones(o,I,ue,Be,Ge,w),Lt=this._getOriginalEditorDecorations(o,h,w,Be,Ge),Mt=this._getModifiedEditorDecorations(o,h,w,Be,Ge);return{original:{decorations:Lt.decorations,overviewZones:Lt.overviewZones,zones:Ye.original},modified:{decorations:Mt.decorations,overviewZones:Mt.overviewZones,zones:Ye.modified}}},r}(Rt.a),or=function(){function a(r){this._source=r,this._index=-1,this.current=null,this.advance()}return a.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},a}(),ir=function(){function a(r,o,h,w,I){this.lineChanges=r,this.originalForeignVZ=o,this.originalLineHeight=h,this.modifiedForeignVZ=w,this.modifiedLineHeight=I}return a.prototype.getViewZones=function(){for(var r={original:[],modified:[]},o=0,h=0,w=0,I=0,ue=0,Be=0,Ge=function(Yn,co){return Yn.afterLineNumber-co.afterLineNumber},Ye=function(Yn,co){if(co.domNode===null&&Yn.length>0){var eo=Yn[Yn.length-1];if(eo.afterLineNumber===co.afterLineNumber&&eo.domNode===null){eo.heightInLines+=co.heightInLines;return}}Yn.push(co)},Lt=new or(this.modifiedForeignVZ),Mt=new or(this.originalForeignVZ),kt=0,Pt=this.lineChanges.length;kt<=Pt;kt++){var sn=kt<Pt?this.lineChanges[kt]:null;sn!==null?(w=sn.originalStartLineNumber+(sn.originalEndLineNumber>0?-1:0),I=sn.modifiedStartLineNumber+(sn.modifiedEndLineNumber>0?-1:0),h=sn.originalEndLineNumber>0?sn.originalEndLineNumber-sn.originalStartLineNumber+1:0,o=sn.modifiedEndLineNumber>0?sn.modifiedEndLineNumber-sn.modifiedStartLineNumber+1:0,ue=Math.max(sn.originalStartLineNumber,sn.originalEndLineNumber),Be=Math.max(sn.modifiedStartLineNumber,sn.modifiedEndLineNumber)):(w+=1e7+h,I+=1e7+o,ue=w,Be=I);for(var tn=[],Yt=[];Lt.current&&Lt.current.afterLineNumber<=Be;){var Qt=void 0;Lt.current.afterLineNumber<=I?Qt=w-I+Lt.current.afterLineNumber:Qt=ue;var hn=null;sn&&sn.modifiedStartLineNumber<=Lt.current.afterLineNumber&&Lt.current.afterLineNumber<=sn.modifiedEndLineNumber&&(hn=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),tn.push({afterLineNumber:Qt,heightInLines:Lt.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:hn}),Lt.advance()}for(;Mt.current&&Mt.current.afterLineNumber<=ue;){var Qt=void 0;Mt.current.afterLineNumber<=w?Qt=I-w+Mt.current.afterLineNumber:Qt=Be,Yt.push({afterLineNumber:Qt,heightInLines:Mt.current.height/this.originalLineHeight,domNode:null}),Mt.advance()}if(sn!==null&&fi(sn)){var wn=this._produceOriginalFromDiff(sn,h,o);wn&&tn.push(wn)}if(sn!==null&&oi(sn)){var wn=this._produceModifiedFromDiff(sn,h,o);wn&&Yt.push(wn)}var Tn=0,Nn=0;for(tn=tn.sort(Ge),Yt=Yt.sort(Ge);Tn<tn.length&&Nn<Yt.length;){var Fn=tn[Tn],Kn=Yt[Nn],ao=Fn.afterLineNumber-w,So=Kn.afterLineNumber-I;ao<So?(Ye(r.original,Fn),Tn++):So<ao?(Ye(r.modified,Kn),Nn++):Fn.shouldNotShrink?(Ye(r.original,Fn),Tn++):Kn.shouldNotShrink?(Ye(r.modified,Kn),Nn++):Fn.heightInLines>=Kn.heightInLines?(Fn.heightInLines-=Kn.heightInLines,Nn++):(Kn.heightInLines-=Fn.heightInLines,Tn++)}for(;Tn<tn.length;)Ye(r.original,tn[Tn]),Tn++;for(;Nn<Yt.length;)Ye(r.modified,Yt[Nn]),Nn++}return{original:a._ensureDomNodes(r.original),modified:a._ensureDomNodes(r.modified)}},a._ensureDomNodes=function(r){return r.map(function(o){return o.domNode||(o.domNode=Ms()),o})},a}();function Yo(a,r,o,h,w){return{range:new U.a(a,r,o,h),options:w}}var xo={charDelete:Jn.a.register({className:"char-delete"}),charDeleteWholeLine:Jn.a.register({className:"char-delete",isWholeLine:!0}),charInsert:Jn.a.register({className:"char-insert"}),charInsertWholeLine:Jn.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:Jn.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:Jn.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign codicon codicon-add",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:Jn.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:Jn.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign codicon codicon-remove",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:Jn.a.register({marginClassName:"line-delete"})},rr=function(a){hi(r,a);function r(o,h){var w=a.call(this,o)||this;return w._disableSash=h===!1,w._sashRatio=null,w._sashPosition=null,w._startSashPosition=null,w._sash=w._register(new vs.a(w._dataSource.getContainerDomNode(),w)),w._disableSash&&(w._sash.state=0),w._sash.onDidStart(function(){return w.onSashDragStart()}),w._sash.onDidChange(function(I){return w.onSashDrag(I)}),w._sash.onDidEnd(function(){return w.onSashDragEnd()}),w._sash.onDidReset(function(){return w.onSashReset()}),w}return r.prototype.setEnableSplitViewResizing=function(o){var h=o===!1;this._disableSash!==h&&(this._disableSash=h,this._sash.state=this._disableSash?0:3)},r.prototype.layout=function(o){o===void 0&&(o=this._sashRatio);var h=this._dataSource.getWidth(),w=h-nr.ENTIRE_DIFF_OVERVIEW_WIDTH,I=Math.floor((o||.5)*w),ue=Math.floor(.5*w);return I=this._disableSash?ue:I||ue,w>r.MINIMUM_EDITOR_WIDTH*2?(I<r.MINIMUM_EDITOR_WIDTH&&(I=r.MINIMUM_EDITOR_WIDTH),I>w-r.MINIMUM_EDITOR_WIDTH&&(I=w-r.MINIMUM_EDITOR_WIDTH)):I=ue,this._sashPosition!==I&&(this._sashPosition=I,this._sash.layout()),this._sashPosition},r.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},r.prototype.onSashDrag=function(o){var h=this._dataSource.getWidth(),w=h-nr.ENTIRE_DIFF_OVERVIEW_WIDTH,I=this.layout((this._startSashPosition+(o.currentX-o.startX))/w);this._sashRatio=I/w,this._dataSource.relayoutEditors()},r.prototype.onSashDragEnd=function(){this._sash.layout()},r.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},r.prototype.getVerticalSashTop=function(o){return 0},r.prototype.getVerticalSashLeft=function(o){return this._sashPosition},r.prototype.getVerticalSashHeight=function(o){return this._dataSource.getHeight()},r.prototype._getViewZones=function(o,h,w,I,ue){var Be=new Ds(o,h,I.getOption(49),w,ue.getOption(49));return Be.getViewZones()},r.prototype._getOriginalEditorDecorations=function(o,h,w,I,ue){for(var Be=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Ye=I.getModel(),Lt=0,Mt=o.length;Lt<Mt;Lt++){var kt=o[Lt];if(oi(kt)&&(Ge.decorations.push({range:new U.a(kt.originalStartLineNumber,1,kt.originalEndLineNumber,1073741824),options:w?xo.lineDeleteWithSign:xo.lineDelete}),(!fi(kt)||!kt.charChanges)&&Ge.decorations.push(Yo(kt.originalStartLineNumber,1,kt.originalEndLineNumber,1073741824,xo.charDeleteWholeLine)),Ge.overviewZones.push(new xi.a(kt.originalStartLineNumber,kt.originalEndLineNumber,Be)),kt.charChanges))for(var Pt=0,sn=kt.charChanges.length;Pt<sn;Pt++){var tn=kt.charChanges[Pt];if(oi(tn))if(h)for(var Yt=tn.originalStartLineNumber;Yt<=tn.originalEndLineNumber;Yt++){var Qt=void 0,hn=void 0;Yt===tn.originalStartLineNumber?Qt=tn.originalStartColumn:Qt=Ye.getLineFirstNonWhitespaceColumn(Yt),Yt===tn.originalEndLineNumber?hn=tn.originalEndColumn:hn=Ye.getLineLastNonWhitespaceColumn(Yt),Ge.decorations.push(Yo(Yt,Qt,Yt,hn,xo.charDelete))}else Ge.decorations.push(Yo(tn.originalStartLineNumber,tn.originalStartColumn,tn.originalEndLineNumber,tn.originalEndColumn,xo.charDelete))}}return Ge},r.prototype._getModifiedEditorDecorations=function(o,h,w,I,ue){for(var Be=String(this._insertColor),Ge={decorations:[],overviewZones:[]},Ye=ue.getModel(),Lt=0,Mt=o.length;Lt<Mt;Lt++){var kt=o[Lt];if(fi(kt)&&(Ge.decorations.push({range:new U.a(kt.modifiedStartLineNumber,1,kt.modifiedEndLineNumber,1073741824),options:w?xo.lineInsertWithSign:xo.lineInsert}),(!oi(kt)||!kt.charChanges)&&Ge.decorations.push(Yo(kt.modifiedStartLineNumber,1,kt.modifiedEndLineNumber,1073741824,xo.charInsertWholeLine)),Ge.overviewZones.push(new xi.a(kt.modifiedStartLineNumber,kt.modifiedEndLineNumber,Be)),kt.charChanges))for(var Pt=0,sn=kt.charChanges.length;Pt<sn;Pt++){var tn=kt.charChanges[Pt];if(fi(tn))if(h)for(var Yt=tn.modifiedStartLineNumber;Yt<=tn.modifiedEndLineNumber;Yt++){var Qt=void 0,hn=void 0;Yt===tn.modifiedStartLineNumber?Qt=tn.modifiedStartColumn:Qt=Ye.getLineFirstNonWhitespaceColumn(Yt),Yt===tn.modifiedEndLineNumber?hn=tn.modifiedEndColumn:hn=Ye.getLineLastNonWhitespaceColumn(Yt),Ge.decorations.push(Yo(Yt,Qt,Yt,hn,xo.charInsert))}else Ge.decorations.push(Yo(tn.modifiedStartLineNumber,tn.modifiedStartColumn,tn.modifiedEndLineNumber,tn.modifiedEndColumn,xo.charInsert))}}return Ge},r.MINIMUM_EDITOR_WIDTH=100,r}(Ir),Ds=function(a){hi(r,a);function r(o,h,w,I,ue){return a.call(this,o,h,w,I,ue)||this}return r.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},r.prototype._produceOriginalFromDiff=function(o,h,w){return w>h?{afterLineNumber:Math.max(o.originalStartLineNumber,o.originalEndLineNumber),heightInLines:w-h,domNode:null}:null},r.prototype._produceModifiedFromDiff=function(o,h,w){return h>w?{afterLineNumber:Math.max(o.modifiedStartLineNumber,o.modifiedEndLineNumber),heightInLines:h-w,domNode:null}:null},r}(ir),Ii=function(a){hi(r,a);function r(o,h){var w=a.call(this,o)||this;return w.decorationsLeft=o.getOriginalEditor().getLayoutInfo().decorationsLeft,w._register(o.getOriginalEditor().onDidLayoutChange(function(I){w.decorationsLeft!==I.decorationsLeft&&(w.decorationsLeft=I.decorationsLeft,o.relayoutEditors())})),w}return r.prototype.setEnableSplitViewResizing=function(o){},r.prototype._getViewZones=function(o,h,w,I,ue,Be){var Ge=new Os(o,h,w,I,ue,Be);return Ge.getViewZones()},r.prototype._getOriginalEditorDecorations=function(o,h,w,I,ue){for(var Be=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Ye=0,Lt=o.length;Ye<Lt;Ye++){var Mt=o[Ye];oi(Mt)&&(Ge.decorations.push({range:new U.a(Mt.originalStartLineNumber,1,Mt.originalEndLineNumber,1073741824),options:xo.lineDeleteMargin}),Ge.overviewZones.push(new xi.a(Mt.originalStartLineNumber,Mt.originalEndLineNumber,Be)))}return Ge},r.prototype._getModifiedEditorDecorations=function(o,h,w,I,ue){for(var Be=String(this._insertColor),Ge={decorations:[],overviewZones:[]},Ye=ue.getModel(),Lt=0,Mt=o.length;Lt<Mt;Lt++){var kt=o[Lt];if(fi(kt))if(Ge.decorations.push({range:new U.a(kt.modifiedStartLineNumber,1,kt.modifiedEndLineNumber,1073741824),options:w?xo.lineInsertWithSign:xo.lineInsert}),Ge.overviewZones.push(new xi.a(kt.modifiedStartLineNumber,kt.modifiedEndLineNumber,Be)),kt.charChanges)for(var Pt=0,sn=kt.charChanges.length;Pt<sn;Pt++){var tn=kt.charChanges[Pt];if(fi(tn))if(h)for(var Yt=tn.modifiedStartLineNumber;Yt<=tn.modifiedEndLineNumber;Yt++){var Qt=void 0,hn=void 0;Yt===tn.modifiedStartLineNumber?Qt=tn.modifiedStartColumn:Qt=Ye.getLineFirstNonWhitespaceColumn(Yt),Yt===tn.modifiedEndLineNumber?hn=tn.modifiedEndColumn:hn=Ye.getLineLastNonWhitespaceColumn(Yt),Ge.decorations.push(Yo(Yt,Qt,Yt,hn,xo.charInsert))}else Ge.decorations.push(Yo(tn.modifiedStartLineNumber,tn.modifiedStartColumn,tn.modifiedEndLineNumber,tn.modifiedEndColumn,xo.charInsert))}else Ge.decorations.push(Yo(kt.modifiedStartLineNumber,1,kt.modifiedEndLineNumber,1073741824,xo.charInsertWholeLine))}return Ge},r.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},r}(Ir),Os=function(a){hi(r,a);function r(o,h,w,I,ue,Be){var Ge=a.call(this,o,h,I.getOption(49),w,ue.getOption(49))||this;return Ge.originalModel=I.getModel(),Ge.modifiedEditorOptions=ue.getOptions(),Ge.modifiedEditorTabSize=ue.getModel().getOptions().tabSize,Ge.renderIndicators=Be,Ge}return r.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var o=document.createElement("div");return o.className="inline-added-margin-view-zone",o},r.prototype._produceOriginalFromDiff=function(o,h,w){var I=document.createElement("div");return I.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(o.originalStartLineNumber,o.originalEndLineNumber),heightInLines:w,domNode:document.createElement("div"),marginDomNode:I}},r.prototype._produceModifiedFromDiff=function(o,h,w){var I=[];if(o.charChanges)for(var ue=0,Be=o.charChanges.length;ue<Be;ue++){var Ge=o.charChanges[ue];oi(Ge)&&I.push(new Xt.a(new U.a(Ge.originalStartLineNumber,Ge.originalStartColumn,Ge.originalEndLineNumber,Ge.originalEndColumn),"char-delete",0))}for(var Ye=Object(Es.a)(1e4),Lt=[],Mt=this.modifiedEditorOptions.get(107),kt=this.modifiedEditorOptions.get(34),Pt=Mt.decorationsWidth,sn=this.modifiedEditorOptions.get(49),tn=kt.typicalHalfwidthCharacterWidth,Yt=0,Qt=[],hn=o.originalStartLineNumber;hn<=o.originalEndLineNumber;hn++)if(Yt=Math.max(Yt,this._renderOriginalLine(hn-o.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,hn,I,Ye)),Qt.push(this.originalModel.getLineContent(hn)),this.renderIndicators){var wn=hn-o.originalStartLineNumber;Lt=Lt.concat(['<div class="delete-sign codicon codicon-remove" style="position:absolute;top:'+wn*sn+"px;width:"+Pt+"px;height:"+sn+'px;right:0;"></div>'])}Yt+=this.modifiedEditorOptions.get(79);var Tn=document.createElement("div");Tn.className="view-lines line-delete",Tn.innerHTML=Ye.build(),Ti.a.applyFontInfoSlow(Tn,kt);var Nn=document.createElement("div");return Nn.className="inline-deleted-margin-view-zone",Nn.innerHTML=Lt.join(""),Ti.a.applyFontInfoSlow(Nn,kt),{shouldNotShrink:!0,afterLineNumber:o.modifiedEndLineNumber===0?o.modifiedStartLineNumber:o.modifiedStartLineNumber-1,heightInLines:h,minWidthInPx:Yt*tn,domNode:Tn,marginDomNode:Nn,diff:{originalStartLineNumber:o.originalStartLineNumber,originalEndLineNumber:o.originalEndLineNumber,modifiedStartLineNumber:o.modifiedStartLineNumber,modifiedEndLineNumber:o.modifiedEndLineNumber,originalContent:Qt}}},r.prototype._renderOriginalLine=function(o,h,w,I,ue,Be,Ge){var Ye=h.getLineTokens(ue),Lt=Ye.getLineContent(),Mt=w.get(34),kt=Ss.a.filter(Be,ue,1,Lt.length+1);Ge.appendASCIIString('<div class="view-line'),Be.length===0&&Ge.appendASCIIString(" char-delete"),Ge.appendASCIIString('" style="top:'),Ge.appendASCIIString(String(o*w.get(49))),Ge.appendASCIIString('px;width:1000000px;">');var Pt=Xt.d.isBasicASCII(Lt,h.mightContainNonBasicASCII()),sn=Xt.d.containsRTL(Lt,Pt,h.mightContainRTL()),tn=Object(Kt.d)(new Kt.c(Mt.isMonospace&&!w.get(23),Mt.canUseHalfwidthRightwardsArrow,Lt,!1,Pt,sn,0,Ye,kt,I,0,Mt.spaceWidth,Mt.middotWidth,w.get(88),w.get(74),w.get(69),w.get(35)!==T.d.OFF,null),Ge);Ge.appendASCIIString("</div>");var Yt=tn.characterMapping.getAbsoluteOffsets();return Yt.length>0?Yt[Yt.length-1]:0},r}(ir);function fi(a){return a.modifiedEndLineNumber>0}function oi(a){return a.originalEndLineNumber>0}function Ms(){var a=document.createElement("div");return a.className="diagonal-fill",a}Object(Do.e)(function(a,r){var o=a.getColor(Co.j);o&&(r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+o+"; }"),r.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+o+"; }"),r.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+o+"; }"));var h=a.getColor(Co.l);h&&(r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+h+"; }"),r.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+h+"; }"),r.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+h+"; }"));var w=a.getColor(Co.k);w&&r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+w+"; }");var I=a.getColor(Co.m);I&&r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+I+"; }");var ue=a.getColor(Co.Vb);ue&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+ue+"; }");var Be=a.getColor(Co.i);Be&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+Be+"; }")});var Ts=e("9Y+e"),wi=e("scqD"),Ko=e("fjLI"),ii=e("bexQ"),pi=e("R3nR"),As=e("9XeP"),sr=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),ar=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},so=function(a,r){return function(o,h){r(o,h,a)}},xs=function(){for(var a=0,r=0,o=arguments.length;r<o;r++)a+=arguments[r].length;for(var h=Array(a),w=0,r=0;r<o;r++)for(var I=arguments[r],ue=0,Be=I.length;ue<Be;ue++,w++)h[w]=I[ue];return h},Rs=0,Pr=!1;function Ns(){if(Pr)return;Pr=!0,ms.b(document.body)}var Pi=function(a){sr(r,a);function r(o,h,w,I,ue,Be,Ge,Ye,Lt,Mt){var kt=this;return h=h||{},h.ariaLabel=h.ariaLabel||Mi.g.editorViewAccessibleLabel,h.ariaLabel=h.ariaLabel+";"+(gs.i?Mi.g.accessibilityHelpMessageIE:Mi.g.accessibilityHelpMessage),kt=a.call(this,o,h,{},w,I,ue,Be,Ye,Lt,Mt)||this,Ge instanceof _r?kt._standaloneKeybindingService=Ge:kt._standaloneKeybindingService=null,Ns(),kt}return r.prototype.addCommand=function(o,h,w){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var I="DYNAMIC_"+ ++Rs,ue=wo.a.deserialize(w);return this._standaloneKeybindingService.addDynamicKeybinding(I,o,h,ue),I},r.prototype.createContextKey=function(o,h){return this._contextKeyService.createKey(o,h)},r.prototype.addAction=function(o){var h=this;if(typeof o.id!="string"||typeof o.label!="string"||typeof o.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Rt.a.None;var w=o.id,I=o.label,ue=wo.a.and(wo.a.equals("editorId",this.getId()),wo.a.deserialize(o.precondition)),Be=o.keybindings,Ge=wo.a.and(ue,wo.a.deserialize(o.keybindingContext)),Ye=o.contextMenuGroupId||null,Lt=o.contextMenuOrder||0,Mt=function(Tn){for(var Nn=[],Fn=1;Fn<arguments.length;Fn++)Nn[Fn-1]=arguments[Fn];return Promise.resolve(o.run.apply(o,xs([h],Nn)))},kt=new Rt.b,Pt=this.getId()+":"+w;if(kt.add(Q.a.registerCommand(Pt,Mt)),Ye){var sn={command:{id:Pt,title:I},when:ue,group:Ye,order:Lt};kt.add(Ko.c.appendMenuItem(7,sn))}if(Array.isArray(Be))for(var tn=0,Yt=Be;tn<Yt.length;tn++){var Qt=Yt[tn];kt.add(this._standaloneKeybindingService.addDynamicKeybinding(Pt,Qt,Mt,Ge))}var hn=new Ts.a(Pt,I,I,ue,Mt,this._contextKeyService);return this._actions[w]=hn,kt.add(Object(Rt.h)(function(){delete h._actions[w]})),kt},r=ar([so(2,No.a),so(3,pe.a),so(4,Q.b),so(5,wo.c),so(6,ii.a),so(7,Do.c),so(8,Ho.a),so(9,pi.b)],r),r}(Ar.a),lr=function(a){sr(r,a);function r(o,h,w,I,ue,Be,Ge,Ye,Lt,Mt,kt,Pt,sn){var tn=this;ni(Pt,h,!1);var Yt=Mt.registerEditorContainer(o);h=h||{},typeof h.theme=="string"&&Mt.setTheme(h.theme);var Qt=h.model;delete h.model,tn=a.call(this,o,h,I,ue,Be,Ge,Ye,Mt,kt,sn)||this,tn._contextViewService=Lt,tn._configurationService=Pt,tn._register(w),tn._register(Yt);var hn;if(typeof Qt=="undefined"?(hn=self.monaco.editor.createModel(h.value||"",h.language||"text/plain"),tn._ownsModel=!0):(hn=Qt,tn._ownsModel=!1),tn._attachModel(hn),hn){var wn={oldModelUrl:null,newModelUrl:hn.uri};tn._onDidChangeModel.fire(wn)}return tn}return r.prototype.dispose=function(){a.prototype.dispose.call(this)},r.prototype.updateOptions=function(o){ni(this._configurationService,o,!1),a.prototype.updateOptions.call(this,o)},r.prototype._attachModel=function(o){a.prototype._attachModel.call(this,o),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},r.prototype._postDetachModelCleanup=function(o){a.prototype._postDetachModelCleanup.call(this,o),o&&this._ownsModel&&(o.dispose(),this._ownsModel=!1)},r=ar([so(3,No.a),so(4,pe.a),so(5,Q.b),so(6,wo.c),so(7,ii.a),so(8,Xo.b),so(9,wi.a),so(10,Ho.a),so(11,Ao.a),so(12,pi.b)],r),r}(Pi),Is=function(a){sr(r,a);function r(o,h,w,I,ue,Be,Ge,Ye,Lt,Mt,kt,Pt,sn,tn,Yt){var Qt=this;ni(Pt,h,!0);var hn=Mt.registerEditorContainer(o);return h=h||{},typeof h.theme=="string"&&(h.theme=Mt.setTheme(h.theme)),Qt=a.call(this,o,h,Yt,Ye,ue,I,Lt,Mt,kt,sn,tn)||this,Qt._contextViewService=Ge,Qt._configurationService=Pt,Qt._register(w),Qt._register(hn),Qt._contextViewService.setContainer(Qt._containerDomElement),Qt}return r.prototype.dispose=function(){a.prototype.dispose.call(this)},r.prototype.updateOptions=function(o){ni(this._configurationService,o,!0),a.prototype.updateOptions.call(this,o)},r.prototype._createInnerEditor=function(o,h,w){return o.createInstance(Pi,h,w)},r.prototype.getOriginalEditor=function(){return a.prototype.getOriginalEditor.call(this)},r.prototype.getModifiedEditor=function(){return a.prototype.getModifiedEditor.call(this)},r.prototype.addCommand=function(o,h,w){return this.getModifiedEditor().addCommand(o,h,w)},r.prototype.createContextKey=function(o,h){return this.getModifiedEditor().createContextKey(o,h)},r.prototype.addAction=function(o){return this.getModifiedEditor().addAction(o)},r=ar([so(3,No.a),so(4,wo.c),so(5,ii.a),so(6,Xo.b),so(7,at.a),so(8,pe.a),so(9,wi.a),so(10,Ho.a),so(11,Ao.a),so(12,Xo.a),so(13,Ni.a),so(14,Object(No.d)(As.a))],r),r}(nr),Ps=e("x/UI"),js=e("WBhO"),ji=function(){function a(r){this._languageIdentifier=r}return a.prototype.getId=function(){return this._languageIdentifier.language},a}(),dr=e("MrjW"),ur=e("l2gE"),Fi="text/plain",jr="application/unknown",ki=[],Fr=[],kr=[];function gi(a,r){r===void 0&&(r=!1);var o=cr(a);ki.push(o),o.userConfigured?kr.push(o):Fr.push(o),r&&!o.userConfigured&&ki.forEach(function(h){if(h.mime===o.mime||h.userConfigured)return;o.extension&&h.extension===o.extension&&console.warn("Overwriting extension <<"+o.extension+">> to now point to mime <<"+o.mime+">>"),o.filename&&h.filename===o.filename&&console.warn("Overwriting filename <<"+o.filename+">> to now point to mime <<"+o.mime+">>"),o.filepattern&&h.filepattern===o.filepattern&&console.warn("Overwriting filepattern <<"+o.filepattern+">> to now point to mime <<"+o.mime+">>"),o.firstline&&h.firstline===o.firstline&&console.warn("Overwriting firstline <<"+o.firstline+">> to now point to mime <<"+o.mime+">>")})}function cr(a){return{id:a.id,mime:a.mime,filename:a.filename,extension:a.extension,filepattern:a.filepattern,firstline:a.firstline,userConfigured:a.userConfigured,filenameLowercase:a.filename?a.filename.toLowerCase():void 0,extensionLowercase:a.extension?a.extension.toLowerCase():void 0,filepatternLowercase:a.filepattern?a.filepattern.toLowerCase():void 0,filepatternOnPath:a.filepattern?a.filepattern.indexOf(dr.posix.sep)>=0:!1}}function _i(a,r){var o;if(a)switch(a.scheme){case Ee.b.file:o=a.fsPath;break;case Ee.b.data:var h=ve.a.parseMetaData(a);o=h.get(ve.a.META_DATA_LABEL);break;default:o=a.path}if(!o)return[jr];o=o.toLowerCase();var w=Object(dr.basename)(o),I=Wr(o,w,kr);if(I)return[I,Fi];var ue=Wr(o,w,Fr);if(ue)return[ue,Fi];if(r){var Be=ri(r);if(Be)return[Be,Fi]}return[jr]}function Wr(a,r,o){for(var h=null,w=null,I=null,ue=o.length-1;ue>=0;ue--){var Be=o[ue];if(r===Be.filenameLowercase){h=Be;break}if(Be.filepattern&&(!w||Be.filepattern.length>w.filepattern.length)){var Ge=Be.filepatternOnPath?a:r;Object(ur.a)(Be.filepatternLowercase,Ge)&&(w=Be)}Be.extension&&((!I||Be.extension.length>I.extension.length)&&(Object(en.m)(r,Be.extensionLowercase)&&(I=Be)))}return h?h.mime:w?w.mime:I?I.mime:null}function ri(a){if(Object(en.P)(a)&&(a=a.substr(1)),a.length>0)for(var r=ki.length-1;r>=0;r--){var o=ki[r];if(!o.firstline)continue;var h=a.match(o.firstline);if(h&&h.length>0)return o.mime}return null}var mi=e("MqQJ"),hr=e("ic2d"),Fs=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),ei=Object.prototype.hasOwnProperty,ks=function(a){Fs(r,a);function r(o,h){o===void 0&&(o=!0),h===void 0&&(h=!1);var w=a.call(this)||this;return w._onDidChange=w._register(new N.a),w.onDidChange=w._onDidChange.event,w._warnOnOverwrite=h,w._nextLanguageId2=1,w._languageIdToLanguage=[],w._languageToLanguageId=Object.create(null),w._languages={},w._mimeTypesMap={},w._nameMap={},w._lowercaseNameMap={},o&&(w._initializeFromRegistry(),w._register(mi.a.onDidChangeLanguages(function(I){return w._initializeFromRegistry()}))),w}return r.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var o=mi.a.getLanguages();this._registerLanguages(o)},r.prototype._registerLanguages=function(o){for(var h=this,w=0,I=o;w<I.length;w++){var ue=I[w];this._registerLanguage(ue)}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(function(Be){var Ge=h._languages[Be];Ge.name&&(h._nameMap[Ge.name]=Ge.identifier),Ge.aliases.forEach(function(Ye){h._lowercaseNameMap[Ye.toLowerCase()]=Ge.identifier}),Ge.mimetypes.forEach(function(Ye){h._mimeTypesMap[Ye]=Ge.identifier})}),hr.a.as(Xi.a.Configuration).registerOverrideIdentifiers(mi.a.getLanguages().map(function(Be){return Be.id})),this._onDidChange.fire()},r.prototype._getLanguageId=function(o){if(this._languageToLanguageId[o])return this._languageToLanguageId[o];var h=this._nextLanguageId2++;return this._languageIdToLanguage[h]=o,this._languageToLanguageId[o]=h,h},r.prototype._registerLanguage=function(o){var h=o.id,w;if(ei.call(this._languages,h))w=this._languages[h];else{var I=this._getLanguageId(h);w={identifier:new vt.r(h,I),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[h]=w}this._mergeLanguage(w,o)},r.prototype._mergeLanguage=function(o,h){var w,I=h.id,ue=null;if(Array.isArray(h.mimetypes)&&h.mimetypes.length>0&&((w=o.mimetypes).push.apply(w,h.mimetypes),ue=h.mimetypes[0]),ue||(ue="text/x-"+I,o.mimetypes.push(ue)),Array.isArray(h.extensions))for(var Be=0,Ge=h.extensions;Be<Ge.length;Be++){var Ye=Ge[Be];gi({id:I,mime:ue,extension:Ye},this._warnOnOverwrite),o.extensions.push(Ye)}if(Array.isArray(h.filenames))for(var Lt=0,Mt=h.filenames;Lt<Mt.length;Lt++){var kt=Mt[Lt];gi({id:I,mime:ue,filename:kt},this._warnOnOverwrite),o.filenames.push(kt)}if(Array.isArray(h.filenamePatterns))for(var Pt=0,sn=h.filenamePatterns;Pt<sn.length;Pt++){var tn=sn[Pt];gi({id:I,mime:ue,filepattern:tn},this._warnOnOverwrite)}if(typeof h.firstLine=="string"&&h.firstLine.length>0){var Yt=h.firstLine;Yt.charAt(0)!=="^"&&(Yt="^"+Yt);try{var Qt=new RegExp(Yt);en.I(Qt)||gi({id:I,mime:ue,firstline:Qt},this._warnOnOverwrite)}catch(ao){Object(bt.e)(ao)}}o.aliases.push(I);var hn=null;if(typeof h.aliases!="undefined"&&Array.isArray(h.aliases)&&(h.aliases.length===0?hn=[null]:hn=h.aliases),hn!==null)for(var wn=0,Tn=hn;wn<Tn.length;wn++){var Nn=Tn[wn];if(!Nn||Nn.length===0)continue;o.aliases.push(Nn)}var Fn=hn!==null&&hn.length>0;if(!(Fn&&hn[0]===null)){var Kn=(Fn?hn[0]:null)||I;(Fn||!o.name)&&(o.name=Kn)}h.configuration&&o.configurationFiles.push(h.configuration)},r.prototype.isRegisteredMode=function(o){return ei.call(this._mimeTypesMap,o)?!0:ei.call(this._languages,o)},r.prototype.getModeIdForLanguageNameLowercase=function(o){return ei.call(this._lowercaseNameMap,o)?this._lowercaseNameMap[o].language:null},r.prototype.extractModeIds=function(o){var h=this;return o?o.split(",").map(function(w){return w.trim()}).map(function(w){return ei.call(h._mimeTypesMap,w)?h._mimeTypesMap[w].language:w}).filter(function(w){return ei.call(h._languages,w)}):[]},r.prototype.getLanguageIdentifier=function(o){if(o===xt.b||o===0)return xt.a;var h;if(typeof o=="string")h=o;else if(h=this._languageIdToLanguage[o],!h)return null;return ei.call(this._languages,h)?this._languages[h].identifier:null},r.prototype.getModeIdsFromFilepathOrFirstLine=function(o,h){if(!o&&!h)return[];var w=_i(o,h);return this.extractModeIds(w.join(","))},r}(Rt.a),Ws=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Br=function(a){Ws(r,a);function r(o,h){var w=a.call(this)||this;return w._onDidChange=w._register(new N.a),w.onDidChange=w._onDidChange.event,w._selector=h,w.languageIdentifier=w._selector(),w._register(o(function(){return w._evaluate()})),w}return r.prototype._evaluate=function(){var o=this._selector();if(o.id===this.languageIdentifier.id)return;this.languageIdentifier=o,this._onDidChange.fire(this.languageIdentifier)},r}(Rt.a),Bs=function(){function a(r){var o=this;r===void 0&&(r=!1),this._onDidCreateMode=new N.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new N.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new ks(!0,r),this._registry.onDidChange(function(){return o._onLanguagesMaybeChanged.fire()})}return a.prototype.isRegisteredMode=function(r){return this._registry.isRegisteredMode(r)},a.prototype.getModeIdForLanguageName=function(r){return this._registry.getModeIdForLanguageNameLowercase(r)},a.prototype.getModeIdByFilepathOrFirstLine=function(r,o){var h=this._registry.getModeIdsFromFilepathOrFirstLine(r,o);return Object(lt.l)(h,null)},a.prototype.getModeId=function(r){var o=this._registry.extractModeIds(r);return Object(lt.l)(o,null)},a.prototype.getLanguageIdentifier=function(r){return this._registry.getLanguageIdentifier(r)},a.prototype.create=function(r){var o=this;return new Br(this.onLanguagesMaybeChanged,function(){var h=o.getModeId(r);return o._createModeAndGetLanguageIdentifier(h)})},a.prototype.createByFilepathOrFirstLine=function(r,o){var h=this;return new Br(this.onLanguagesMaybeChanged,function(){var w=h.getModeIdByFilepathOrFirstLine(r,o);return h._createModeAndGetLanguageIdentifier(w)})},a.prototype._createModeAndGetLanguageIdentifier=function(r){var o=this.getLanguageIdentifier(r||"plaintext")||xt.a;return this._getOrCreateMode(o.language),o},a.prototype.triggerMode=function(r){var o=this.getModeId(r);this._getOrCreateMode(o||"plaintext")},a.prototype._getOrCreateMode=function(r){if(!this._instantiatedModes.hasOwnProperty(r)){var o=this.getLanguageIdentifier(r)||xt.a;this._instantiatedModes[r]=new ji(o),this._onDidCreateMode.fire(this._instantiatedModes[r])}return this._instantiatedModes[r]},a}(),Ur=e("QRHv"),vi=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Us=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},Wi=function(a,r){return function(o,h){r(o,h,a)}};function Bi(a){return a.toString()}var V=function(){function a(r,o,h){this._modelEventListeners=new Rt.b,this.model=r,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(r.onWillDispose(function(){return o(r)})),this._modelEventListeners.add(r.onDidChangeLanguage(function(w){return h(r,w)}))}return a.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},a.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},a.prototype.setLanguage=function(r){var o=this;this._disposeLanguageSelection(),this._languageSelection=r,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return o.model.setMode(r.languageIdentifier)}),this.model.setMode(r.languageIdentifier)},a}(),n=mt.d||mt.e?1:2,t=function(a){vi(r,a);function r(o,h,w,I){var ue=a.call(this)||this;return ue._onModelAdded=ue._register(new N.a),ue.onModelAdded=ue._onModelAdded.event,ue._onModelRemoved=ue._register(new N.a),ue.onModelRemoved=ue._onModelRemoved.event,ue._onModelModeChanged=ue._register(new N.a),ue.onModelModeChanged=ue._onModelModeChanged.event,ue._configurationService=o,ue._resourcePropertiesService=h,ue._models={},ue._modelCreationOptionsByLanguageAndResource=Object.create(null),ue._configurationServiceSubscription=ue._configurationService.onDidChangeConfiguration(function(Be){return ue._updateModelOptions()}),ue._updateModelOptions(),ue._register(new i(ue,w,o,I)),ue}return r._readModelOptions=function(o,h){var w=T.c.tabSize;if(o.editor&&typeof o.editor.tabSize!="undefined"){var I=parseInt(o.editor.tabSize,10);isNaN(I)||(w=I),w<1&&(w=1)}var ue=w;if(o.editor&&typeof o.editor.indentSize!="undefined"&&o.editor.indentSize!=="tabSize"){var Be=parseInt(o.editor.indentSize,10);isNaN(Be)||(ue=Be),ue<1&&(ue=1)}var Ge=T.c.insertSpaces;o.editor&&typeof o.editor.insertSpaces!="undefined"&&(Ge=o.editor.insertSpaces==="false"?!1:Boolean(o.editor.insertSpaces));var Ye=n,Lt=o.eol;Lt===`\r
`?Ye=2:Lt===`
`&&(Ye=1);var Mt=T.c.trimAutoWhitespace;o.editor&&typeof o.editor.trimAutoWhitespace!="undefined"&&(Mt=o.editor.trimAutoWhitespace==="false"?!1:Boolean(o.editor.trimAutoWhitespace));var kt=T.c.detectIndentation;o.editor&&typeof o.editor.detectIndentation!="undefined"&&(kt=o.editor.detectIndentation==="false"?!1:Boolean(o.editor.detectIndentation));var Pt=T.c.largeFileOptimizations;return o.editor&&typeof o.editor.largeFileOptimizations!="undefined"&&(Pt=o.editor.largeFileOptimizations==="false"?!1:Boolean(o.editor.largeFileOptimizations)),{isForSimpleWidget:h,tabSize:w,indentSize:ue,insertSpaces:Ge,detectIndentation:kt,defaultEOL:Ye,trimAutoWhitespace:Mt,largeFileOptimizations:Pt}},r.prototype.getCreationOptions=function(o,h,w){var I=this._modelCreationOptionsByLanguageAndResource[o+h];if(!I){var ue=this._configurationService.getValue("editor",{overrideIdentifier:o,resource:h}),Be=this._resourcePropertiesService.getEOL(h,o);I=r._readModelOptions({editor:ue,eol:Be},w),this._modelCreationOptionsByLanguageAndResource[o+h]=I}return I},r.prototype._updateModelOptions=function(){var o=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var h=Object.keys(this._models),w=0,I=h.length;w<I;w++){var ue=h[w],Be=this._models[ue],Ge=Be.model.getLanguageIdentifier().language,Ye=Be.model.uri,Lt=o[Ge+Ye],Mt=this.getCreationOptions(Ge,Ye,Be.model.isForSimpleWidget);r._setModelOptionsForModel(Be.model,Mt,Lt)}},r._setModelOptionsForModel=function(o,h,w){if(w&&w.defaultEOL!==h.defaultEOL&&o.getLineCount()===1&&o.setEOL(h.defaultEOL===1?0:1),w&&w.detectIndentation===h.detectIndentation&&w.insertSpaces===h.insertSpaces&&w.tabSize===h.tabSize&&w.indentSize===h.indentSize&&w.trimAutoWhitespace===h.trimAutoWhitespace)return;h.detectIndentation?(o.detectIndentation(h.insertSpaces,h.tabSize),o.updateOptions({trimAutoWhitespace:h.trimAutoWhitespace})):o.updateOptions({insertSpaces:h.insertSpaces,tabSize:h.tabSize,indentSize:h.indentSize,trimAutoWhitespace:h.trimAutoWhitespace})},r.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),a.prototype.dispose.call(this)},r.prototype._createModelData=function(o,h,w,I){var ue=this,Be=this.getCreationOptions(h.language,w,I),Ge=new Jn.b(o,Be,h,w),Ye=Bi(Ge.uri);if(this._models[Ye])throw new Error("ModelService: Cannot add model because it already exists!");var Lt=new V(Ge,function(Mt){return ue._onWillDispose(Mt)},function(Mt,kt){return ue._onDidChangeLanguage(Mt,kt)});return this._models[Ye]=Lt,Lt},r.prototype.createModel=function(o,h,w,I){I===void 0&&(I=!1);var ue;return h?(ue=this._createModelData(o,h.languageIdentifier,w,I),this.setMode(ue.model,h)):ue=this._createModelData(o,mi.b,w,I),this._onModelAdded.fire(ue.model),ue.model},r.prototype.setMode=function(o,h){if(!h)return;var w=this._models[Bi(o.uri)];if(!w)return;w.setLanguage(h)},r.prototype.getModels=function(){for(var o=[],h=Object.keys(this._models),w=0,I=h.length;w<I;w++){var ue=h[w];o.push(this._models[ue].model)}return o},r.prototype.getModel=function(o){var h=Bi(o),w=this._models[h];return w?w.model:null},r.prototype._onWillDispose=function(o){var h=Bi(o.uri),w=this._models[h];delete this._models[h],w.dispose(),delete this._modelCreationOptionsByLanguageAndResource[o.getLanguageIdentifier().language+o.uri],this._onModelRemoved.fire(o)},r.prototype._onDidChangeLanguage=function(o,h){var w=h.oldLanguage,I=o.getLanguageIdentifier().language,ue=this.getCreationOptions(w,o.uri,o.isForSimpleWidget),Be=this.getCreationOptions(I,o.uri,o.isForSimpleWidget);r._setModelOptionsForModel(o,Be,ue),this._onModelModeChanged.fire({model:o,oldModeId:w})},r=Us([Wi(0,Ao.a),Wi(1,Ie.b),Wi(2,Do.c),Wi(3,dt.a)],r),r}(Rt.a),i=function(a){vi(r,a);function r(o,h,w,I){var ue=a.call(this)||this;ue._configurationService=w,ue._watchers=Object.create(null),ue._semanticStyling=ue._register(new m(h,I));var Be=function(Mt){var kt=w.getValue(r.SETTING_ID,{overrideIdentifier:Mt.getLanguageIdentifier().language,resource:Mt.uri});return kt&&kt.enabled},Ge=function(Mt){ue._watchers[Mt.uri.toString()]=new qe(Mt,h,ue._semanticStyling)},Ye=function(Mt,kt){kt.dispose(),delete ue._watchers[Mt.uri.toString()]};return ue._register(o.onModelAdded(function(Lt){Be(Lt)&&Ge(Lt)})),ue._register(o.onModelRemoved(function(Lt){var Mt=ue._watchers[Lt.uri.toString()];Mt&&Ye(Lt,Mt)})),ue._configurationService.onDidChangeConfiguration(function(Lt){if(Lt.affectsConfiguration(r.SETTING_ID))for(var Mt=0,kt=o.getModels();Mt<kt.length;Mt++){var Pt=kt[Mt],sn=ue._watchers[Pt.uri.toString()];Be(Pt)?sn||Ge(Pt):sn&&Ye(Pt,sn)}}),ue}return r.SETTING_ID="editor.semanticHighlighting",r}(Rt.a),m=function(a){vi(r,a);function r(o,h){var w=a.call(this)||this;return w._themeService=o,w._logService=h,w._caches=new WeakMap,w._themeService&&w._register(w._themeService.onThemeChange(function(){w._caches=new WeakMap})),w}return r.prototype.get=function(o){return this._caches.has(o)||this._caches.set(o,new Ne(o.getLegend(),this._themeService,this._logService)),this._caches.get(o)},r}(Rt.a),C=function(){function a(r,o,h){this.tokenTypeIndex=r,this.tokenModifierSet=o,this.metadata=h,this.next=null}return a}(),K=function(){function a(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=a._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<a._SIZES.length?2/3*this._currentLength:0),this._elements=[],a._nullOutEntries(this._elements,this._currentLength)}return a._nullOutEntries=function(r,o){for(var h=0;h<o;h++)r[h]=null},a.prototype._hashFunc=function(r,o){return((r<<5)-r+o|0)%this._currentLength},a.prototype.get=function(r,o){for(var h=this._hashFunc(r,o),w=this._elements[h];w;){if(w.tokenTypeIndex===r&&w.tokenModifierSet===o)return w;w=w.next}return null},a.prototype.add=function(r,o,h){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){var w=this._elements;this._currentLengthIndex++,this._currentLength=a._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<a._SIZES.length?2/3*this._currentLength:0),this._elements=[],a._nullOutEntries(this._elements,this._currentLength);for(var I=0,ue=w;I<ue.length;I++)for(var Be=ue[I],Ge=Be;Ge;){var Ye=Ge.next;Ge.next=null,this._add(Ge),Ge=Ye}}this._add(new C(r,o,h))},a.prototype._add=function(r){var o=this._hashFunc(r.tokenTypeIndex,r.tokenModifierSet);r.next=this._elements[o],this._elements[o]=r},a._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],a}(),Ne=function(){function a(r,o,h){this._legend=r,this._themeService=o,this._logService=h,this._hashTable=new K}return a.prototype.getMetadata=function(r,o){var h=this._hashTable.get(r,o),w;if(h)w=h.metadata;else{for(var I=this._legend.tokenTypes[r],ue=[],Be=o,Ge=0;Be>0&&Ge<this._legend.tokenModifiers.length;Ge++)Be&1&&ue.push(this._legend.tokenModifiers[Ge]),Be=Be>>1;var Ye=this._themeService.getTheme().getTokenStyleMetadata(I,ue);if(typeof Ye=="undefined")w=2147483647;else{if(w=0,typeof Ye.italic!="undefined"){var Lt=(Ye.italic?1:0)<<11;w|=Lt|1}if(typeof Ye.bold!="undefined"){var Mt=(Ye.bold?2:0)<<11;w|=Mt|2}if(typeof Ye.underline!="undefined"){var kt=(Ye.underline?4:0)<<11;w|=kt|4}if(Ye.foreground){var Pt=Ye.foreground<<14;w|=Pt|8}w===0&&(w=2147483647)}this._hashTable.add(r,o,w)}if(this._logService.getLevel()===dt.b.Trace){var sn=this._legend.tokenTypes[r],tn=o?" "+this._legend.tokenModifiers.filter(function(Yt,Qt){return o&1<<Qt}).join(" "):"";this._logService.trace("tokenStyleMetadata "+(h?"[CACHED] ":"")+sn+tn+": foreground "+vt.A.getForeground(w)+", fontStyle "+vt.A.getFontStyle(w).toString(2))}return w},a}(),_e=function(){function a(r,o,h){this._provider=r,this.resultId=o,this.data=h}return a.prototype.dispose=function(){this._provider.releaseDocumentSemanticTokens(this.resultId)},a}(),qe=function(a){vi(r,a);function r(o,h,w){var I=a.call(this)||this;return I._isDisposed=!1,I._model=o,I._semanticStyling=w,I._fetchSemanticTokens=I._register(new ct.d(function(){return I._fetchSemanticTokensNow()},300)),I._currentResponse=null,I._currentRequestCancellationTokenSource=null,I._register(I._model.onDidChangeContent(function(ue){I._fetchSemanticTokens.isScheduled()||I._fetchSemanticTokens.schedule()})),I._register(vt.l.onDidChange(function(ue){return I._fetchSemanticTokens.schedule()})),h&&I._register(h.onThemeChange(function(ue){I._setSemanticTokens(null,null,null,[]),I._fetchSemanticTokens.schedule()})),I._fetchSemanticTokens.schedule(0),I}return r.prototype.dispose=function(){this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._currentRequestCancellationTokenSource&&(this._currentRequestCancellationTokenSource.cancel(),this._currentRequestCancellationTokenSource=null),this._setSemanticTokens(null,null,null,[]),this._isDisposed=!0,a.prototype.dispose.call(this)},r.prototype._fetchSemanticTokensNow=function(){var o=this;if(this._currentRequestCancellationTokenSource)return;var h=this._getSemanticColoringProvider();if(!h)return;this._currentRequestCancellationTokenSource=new J.b;var w=[],I=this._model.onDidChangeContent(function(Ye){w.push(Ye)}),ue=this._semanticStyling.get(h),Be=this._currentResponse&&this._currentResponse.resultId||null,Ge=Promise.resolve(h.provideDocumentSemanticTokens(this._model,Be,this._currentRequestCancellationTokenSource.token));Ge.then(function(Ye){o._currentRequestCancellationTokenSource=null,I.dispose(),o._setSemanticTokens(h,Ye||null,ue,w)},function(Ye){(!Ye||typeof Ye.message!="string"||Ye.message.indexOf("busy")===-1)&&bt.e(Ye),o._currentRequestCancellationTokenSource=null,I.dispose(),w.length>0&&(o._fetchSemanticTokens.isScheduled()||o._fetchSemanticTokens.schedule())})},r._isSemanticTokens=function(o){return o&&!!o.data},r._isSemanticTokensEdits=function(o){return o&&Array.isArray(o.edits)},r._copy=function(o,h,w,I,ue){for(var Be=0;Be<ue;Be++)w[I+Be]=o[h+Be]},r.prototype._setSemanticTokens=function(o,h,w,I){var ue=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed){o&&h&&o.releaseDocumentSemanticTokens(h.resultId);return}if(!o||!h||!w){this._model.setSemanticTokens(null);return}if(r._isSemanticTokensEdits(h)){if(!ue){this._model.setSemanticTokens(null);return}if(h.edits.length===0)h={resultId:h.resultId,data:ue.data};else{for(var Be=0,Ge=0,Ye=h.edits;Ge<Ye.length;Ge++){var Lt=Ye[Ge];Be+=(Lt.data?Lt.data.length:0)-Lt.deleteCount}for(var Mt=ue.data,kt=new Uint32Array(Mt.length+Be),Pt=Mt.length,sn=kt.length,tn=h.edits.length-1;tn>=0;tn--){var Lt=h.edits[tn],Yt=Pt-(Lt.start+Lt.deleteCount);Yt>0&&(r._copy(Mt,Pt-Yt,kt,sn-Yt,Yt),sn-=Yt),Lt.data&&(r._copy(Lt.data,0,kt,sn-Lt.data.length,Lt.data.length),sn-=Lt.data.length),Pt=Lt.start}Pt>0&&r._copy(Mt,0,kt,0,Pt),h={resultId:h.resultId,data:kt}}}if(r._isSemanticTokens(h)){this._currentResponse=new _e(o,h.resultId,h.data);for(var Mt=h.data,Qt=h.data.length/5|0,hn=Math.max(Math.ceil(Qt/1024),400),wn=[],Tn=0,Nn=1,Fn=0;Tn<Qt;){var Kn=Tn,ao=Math.min(Kn+hn,Qt);if(ao<Qt){for(var So=ao;So-1>Kn&&Mt[5*So]===0;)So--;if(So-1===Kn){for(var qn=ao;qn+1<Qt&&Mt[5*qn]===0;)qn++;ao=qn}else ao=So}for(var kt=new Uint32Array((ao-Kn)*4),Yn=0,co=0;Tn<ao;){var eo=5*Tn,Oo=Mt[eo],bo=Mt[eo+1],Bo=Nn+Oo,jo=Oo===0?Fn+bo:bo,Go=Mt[eo+2],si=Mt[eo+3],Vi=Mt[eo+4],xa=w.getMetadata(si,Vi);xa!==2147483647&&(co===0&&(co=Bo),kt[Yn]=Bo-co,kt[Yn+1]=jo,kt[Yn+2]=jo+Go,kt[Yn+3]=xa,Yn+=4),Nn=Bo,Fn=jo,Tn++}Yn!==kt.length&&(kt=kt.subarray(0,Yn));var qd=new Ur.a(co,new Ur.c(kt));wn.push(qd)}if(I.length>0){for(var qs=0,Ra=I;qs<Ra.length;qs++)for(var eu=Ra[qs],ea=0,Na=wn;ea<Na.length;ea++)for(var tu=Na[ea],ta=0,Ia=eu.changes;ta<Ia.length;ta++){var Pa=Ia[ta];tu.applyEdit(Pa.range,Pa.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(wn);return}this._model.setSemanticTokens(null)},r.prototype._getSemanticColoringProvider=function(){var o=vt.l.ordered(this._model);return o.length>0?o[0]:null},r}(Rt.a),ut=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),St=function(a){ut(r,a);function r(){var o=a.call(this)||this;return o._onCodeEditorAdd=o._register(new N.a),o.onCodeEditorAdd=o._onCodeEditorAdd.event,o._onCodeEditorRemove=o._register(new N.a),o.onCodeEditorRemove=o._onCodeEditorRemove.event,o._onDiffEditorAdd=o._register(new N.a),o._onDiffEditorRemove=o._register(new N.a),o._codeEditors=Object.create(null),o._diffEditors=Object.create(null),o}return r.prototype.addCodeEditor=function(o){this._codeEditors[o.getId()]=o,this._onCodeEditorAdd.fire(o)},r.prototype.removeCodeEditor=function(o){delete this._codeEditors[o.getId()]&&this._onCodeEditorRemove.fire(o)},r.prototype.listCodeEditors=function(){var o=this;return Object.keys(this._codeEditors).map(function(h){return o._codeEditors[h]})},r.prototype.addDiffEditor=function(o){this._diffEditors[o.getId()]=o,this._onDiffEditorAdd.fire(o)},r.prototype.removeDiffEditor=function(o){delete this._diffEditors[o.getId()]&&this._onDiffEditorRemove.fire(o)},r.prototype.listDiffEditors=function(){var o=this;return Object.keys(this._diffEditors).map(function(h){return o._diffEditors[h]})},r.prototype.getFocusedCodeEditor=function(){for(var o=null,h=this.listCodeEditors(),w=0,I=h;w<I.length;w++){var ue=I[w];if(ue.hasTextFocus())return ue;ue.hasWidgetFocus()&&(o=ue)}return o},r}(Rt.a),et=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Wt=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},Ft=function(a,r){return function(o,h){r(o,h,a)}},Vt=function(){function a(r,o,h){this._parent=r,this._editorId=o,this.styleSheet=h,this._refCount=0}return a.prototype.ref=function(){this._refCount++},a.prototype.unref=function(){var r;this._refCount--,this._refCount===0&&((r=this.styleSheet.parentNode)===null||r===void 0||r.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},a}(),qt=function(){function a(r){this.styleSheet=r}return a.prototype.ref=function(){},a.prototype.unref=function(){},a}(),$t=function(a){et(r,a);function r(o,h){h===void 0&&(h=null);var w=a.call(this)||this;return w._decorationOptionProviders=new Map,w._editorStyleSheets=new Map,w._globalStyleSheet=h?new qt(h):null,w._themeService=o,w}return r.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new qt(me.w())),this._globalStyleSheet},r.prototype._getOrCreateStyleSheet=function(o){if(!o)return this._getOrCreateGlobalStyleSheet();var h=o.getContainerDomNode();if(!me.N(h))return this._getOrCreateGlobalStyleSheet();var w=o.getId();if(!this._editorStyleSheets.has(w)){var I=new Vt(this,w,me.w(h));this._editorStyleSheets.set(w,I)}return this._editorStyleSheets.get(w)},r.prototype._removeEditorStyleSheets=function(o){this._editorStyleSheets.delete(o)},r.prototype.registerDecorationType=function(o,h,w,I){var ue=this._decorationOptionProviders.get(o);if(!ue){var Be=this._getOrCreateStyleSheet(I),Ge={styleSheet:Be.styleSheet,key:o,parentTypeKey:w,options:h||Object.create(null)};w?ue=new rn(this._themeService,Be,Ge):ue=new yn(this._themeService,Be,Ge),this._decorationOptionProviders.set(o,ue)}ue.refCount++},r.prototype.removeDecorationType=function(o){var h=this._decorationOptionProviders.get(o);h&&(h.refCount--,h.refCount<=0&&(this._decorationOptionProviders.delete(o),h.dispose(),this.listCodeEditors().forEach(function(w){return w.removeDecorations(o)})))},r.prototype.resolveDecorationOptions=function(o,h){var w=this._decorationOptionProviders.get(o);if(!w)throw new Error("Unknown decoration type key: "+o);return w.getOptions(this,h)},r=Wt([Ft(0,Do.c)],r),r}(St),rn=function(){function a(r,o,h){this._styleSheet=o,this._styleSheet.ref(),this._parentTypeKey=h.parentTypeKey,this.refCount=0,this._beforeContentRules=new Cn(3,h,r),this._afterContentRules=new Cn(4,h,r)}return a.prototype.getOptions=function(r,o){var h=r.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(h.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(h.afterContentClassName=this._afterContentRules.className),h},a.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},a}(),yn=function(){function a(r,o,h){var w=this;this._disposables=new Rt.b,this._styleSheet=o,this._styleSheet.ref(),this.refCount=0;var I=function(kt){var Pt=new Cn(kt,h,r);return w._disposables.add(Pt),Pt.hasContent?Pt.className:void 0},ue=function(kt){var Pt=new Cn(kt,h,r);return w._disposables.add(Pt),Pt.hasContent?{className:Pt.className,hasLetterSpacing:Pt.hasLetterSpacing}:null};this.className=I(0);var Be=ue(1);Be&&(this.inlineClassName=Be.className,this.inlineClassNameAffectsLetterSpacing=Be.hasLetterSpacing),this.beforeContentClassName=I(3),this.afterContentClassName=I(4),this.glyphMarginClassName=I(2);var Ge=h.options;this.isWholeLine=Boolean(Ge.isWholeLine),this.stickiness=Ge.rangeBehavior;var Ye=Ge.light&&Ge.light.overviewRulerColor||Ge.overviewRulerColor,Lt=Ge.dark&&Ge.dark.overviewRulerColor||Ge.overviewRulerColor;(typeof Ye!="undefined"||typeof Lt!="undefined")&&(this.overviewRuler={color:Ye||Lt,darkColor:Lt||Ye,position:Ge.overviewRulerLane||ft.d.Center})}return a.prototype.getOptions=function(r,o){return o?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},a.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},a}(),pn={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},Cn=function(){function a(r,o,h){var w=this;this._theme=h.getTheme(),this._ruleType=r,this._providerArgs=o,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var I=mn.getClassName(this._providerArgs.key,r);this._providerArgs.parentTypeKey&&(I=I+" "+mn.getClassName(this._providerArgs.parentTypeKey,r)),this._className=I,this._unThemedSelector=mn.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,r),this._buildCSS(),this._usesThemeColors?this._themeListener=h.onThemeChange(function(ue){w._theme=h.getTheme(),w._removeCSS(),w._buildCSS()}):this._themeListener=null}return a.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(a.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),a.prototype._buildCSS=function(){var r=this._providerArgs.options,o,h,w;switch(this._ruleType){case 0:o=this.getCSSTextForModelDecorationClassName(r),h=this.getCSSTextForModelDecorationClassName(r.light),w=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:o=this.getCSSTextForModelDecorationInlineClassName(r),h=this.getCSSTextForModelDecorationInlineClassName(r.light),w=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:o=this.getCSSTextForModelDecorationGlyphMarginClassName(r),h=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),w=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:o=this.getCSSTextForModelDecorationContentClassName(r.before),h=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),w=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:o=this.getCSSTextForModelDecorationContentClassName(r.after),h=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),w=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var I=this._providerArgs.styleSheet.sheet,ue=!1;o.length>0&&(I.insertRule(this._unThemedSelector+" {"+o+"}",0),ue=!0),h.length>0&&(I.insertRule(".vs"+this._unThemedSelector+" {"+h+"}",0),ue=!0),w.length>0&&(I.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+w+"}",0),ue=!0),this._hasContent=ue},a.prototype._removeCSS=function(){me.O(this._unThemedSelector,this._providerArgs.styleSheet)},a.prototype.getCSSTextForModelDecorationClassName=function(r){if(!r)return"";var o=[];return this.collectCSSText(r,["backgroundColor"],o),this.collectCSSText(r,["outline","outlineColor","outlineStyle","outlineWidth"],o),this.collectBorderSettingsCSSText(r,o),o.join("")},a.prototype.getCSSTextForModelDecorationInlineClassName=function(r){if(!r)return"";var o=[];return this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],o),r.letterSpacing&&(this._hasLetterSpacing=!0),o.join("")},a.prototype.getCSSTextForModelDecorationContentClassName=function(r){if(!r)return"";var o=[];if(typeof r!="undefined"){if(this.collectBorderSettingsCSSText(r,o),typeof r.contentIconPath!="undefined"&&o.push(en.r(pn.contentIconPath,me.r(z.a.revive(r.contentIconPath)))),typeof r.contentText=="string"){var h=r.contentText.match(/^.*$/m)[0],w=h.replace(/['\\]/g,"\\$&");o.push(en.r(pn.contentText,w))}this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],o),this.collectCSSText(r,["width","height"],o)&&o.push("display:inline-block;")}return o.join("")},a.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(r){if(!r)return"";var o=[];return typeof r.gutterIconPath!="undefined"&&(o.push(en.r(pn.gutterIconPath,me.r(z.a.revive(r.gutterIconPath)))),typeof r.gutterIconSize!="undefined"&&o.push(en.r(pn.gutterIconSize,r.gutterIconSize))),o.join("")},a.prototype.collectBorderSettingsCSSText=function(r,o){return this.collectCSSText(r,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],o)?(o.push(en.r("box-sizing: border-box;")),!0):!1},a.prototype.collectCSSText=function(r,o,h){for(var w=h.length,I=0,ue=o;I<ue.length;I++){var Be=ue[I],Ge=this.resolveValue(r[Be]);typeof Ge=="string"&&h.push(en.r(pn[Be],Ge))}return h.length!==w},a.prototype.resolveValue=function(r){if(Object(jt.c)(r)){this._usesThemeColors=!0;var o=this._theme.getColor(r.id);return o?o.toString():"transparent"}return r},a}(),mn=function(){function a(){}return a.getClassName=function(r,o){return"ced-"+r+"-"+o},a.getSelector=function(r,o,h){var w=".monaco-editor ."+this.getClassName(r,h);return o&&(w=w+"."+this.getClassName(o,h)),h===3?w+="::before":h===4&&(w+="::after"),w},a}(),_n=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),In=function(a){_n(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.getActiveCodeEditor=function(){return null},r.prototype.openCodeEditor=function(o,h,w){return h?Promise.resolve(this.doOpenEditor(h,o)):Promise.resolve(null)},r.prototype.doOpenEditor=function(o,h){var w=this.findModel(o,h.resource);if(!w){if(h.resource){var I=h.resource.scheme;if(I===Ee.b.http||I===Ee.b.https)return Object(me.ab)(h.resource.toString()),o}return null}var ue=h.options?h.options.selection:null;if(ue)if(typeof ue.endLineNumber=="number"&&typeof ue.endColumn=="number")o.setSelection(ue),o.revealRangeInCenter(ue,1);else{var Be={lineNumber:ue.startLineNumber,column:ue.startColumn};o.setPosition(Be),o.revealPositionInCenter(Be,1)}return o},r.prototype.findModel=function(o,h){var w=o.getModel();return w&&w.uri.toString()!==h.toString()?null:w},r}($t),kn=e("zrhQ"),Xn=function(){function a(r,o,h,w,I){this.token=r,this.index=o,this.fontStyle=h,this.foreground=w,this.background=I}return a}();function jn(a){if(!a||!Array.isArray(a))return[];for(var r=[],o=0,h=0,w=a.length;h<w;h++){var I=a[h],ue=-1;if(typeof I.fontStyle=="string"){ue=0;for(var Be=I.fontStyle.split(" "),Ge=0,Ye=Be.length;Ge<Ye;Ge++){var Lt=Be[Ge];switch(Lt){case"italic":ue=ue|1;break;case"bold":ue=ue|2;break;case"underline":ue=ue|4;break}}}var Mt=null;typeof I.foreground=="string"&&(Mt=I.foreground);var kt=null;typeof I.background=="string"&&(kt=I.background),r[o++]=new Xn(I.token||"",h,ue,Mt,kt)}return r}function oo(a,r){a.sort(function(Qt,hn){var wn=ko(Qt.token,hn.token);return wn!==0?wn:Qt.index-hn.index});for(var o=0,h="000000",w="ffffff";a.length>=1&&a[0].token==="";){var I=a.shift();I.fontStyle!==-1&&(o=I.fontStyle),I.foreground!==null&&(h=I.foreground),I.background!==null&&(w=I.background)}for(var ue=new uo,Be=0,Ge=r;Be<Ge.length;Be++){var Ye=Ge[Be];ue.getId(Ye)}for(var Lt=ue.getId(h),Mt=ue.getId(w),kt=new Ui(o,Lt,Mt),Pt=new fr(kt),sn=0,tn=a.length;sn<tn;sn++){var Yt=a[sn];Pt.insert(Yt.token,Yt.fontStyle,ue.getId(Yt.foreground),ue.getId(Yt.background))}return new Io(ue,Pt)}var vo=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,uo=function(){function a(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return a.prototype.getId=function(r){if(r===null)return 0;var o=r.match(vo);if(!o)throw new Error("Illegal value for token color: "+r);r=o[1].toUpperCase();var h=this._color2id.get(r);return h||(h=++this._lastColorId,this._color2id.set(r,h),this._id2color[h]=kn.a.fromHex("#"+r),h)},a.prototype.getColorMap=function(){return this._id2color.slice(0)},a}(),Io=function(){function a(r,o){this._colorMap=r,this._root=o,this._cache=new Map}return a.createFromRawTokenTheme=function(r,o){return this.createFromParsedTokenTheme(jn(r),o)},a.createFromParsedTokenTheme=function(r,o){return oo(r,o)},a.prototype.getColorMap=function(){return this._colorMap.getColorMap()},a.prototype._match=function(r){return this._root.match(r)},a.prototype.match=function(r,o){var h=this._cache.get(o);if(typeof h=="undefined"){var w=this._match(o),I=Wo(o);h=(w.metadata|I<<8)>>>0,this._cache.set(o,h)}return(h|r<<0)>>>0},a}(),ho=/\b(comment|string|regex|regexp)\b/;function Wo(a){var r=a.match(ho);if(!r)return 0;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function ko(a,r){return a<r?-1:a>r?1:0}var Ui=function(){function a(r,o,h){this._fontStyle=r,this._foreground=o,this._background=h,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return a.prototype.clone=function(){return new a(this._fontStyle,this._foreground,this._background)},a.prototype.acceptOverwrite=function(r,o,h){r!==-1&&(this._fontStyle=r),o!==0&&(this._foreground=o),h!==0&&(this._background=h),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},a}(),fr=function(){function a(r){this._mainRule=r,this._children=new Map}return a.prototype.match=function(r){if(r==="")return this._mainRule;var o=r.indexOf("."),h,w;o===-1?(h=r,w=""):(h=r.substring(0,o),w=r.substring(o+1));var I=this._children.get(h);return typeof I!="undefined"?I.match(w):this._mainRule},a.prototype.insert=function(r,o,h,w){if(r===""){this._mainRule.acceptOverwrite(o,h,w);return}var I=r.indexOf("."),ue,Be;I===-1?(ue=r,Be=""):(ue=r.substring(0,I),Be=r.substring(I+1));var Ge=this._children.get(ue);typeof Ge=="undefined"&&(Ge=new a(this._mainRule.clone()),this._children.set(ue,Ge)),Ge.insert(Be,o,h,w)},a}();function Hr(a){for(var r=[],o=1,h=a.length;o<h;o++){var w=a[o];r[o]=".mtk"+o+" { color: "+w+"; }"}return r.push(".mtki { font-style: italic; }"),r.push(".mtkb { font-weight: bold; }"),r.push(".mtku { text-decoration: underline; text-underline-position: under; }"),r.join(`
`)}var Zo,yi,Hi,ja={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(Zo={},Zo[Co.o]="#FFFFFE",Zo[Co.x]="#000000",Zo[Co.F]="#E5EBF1",Zo[Vo.h]="#D3D3D3",Zo[Vo.a]="#939393",Zo[Co.M]="#ADD6FF4D",Zo)},Fa={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(yi={},yi[Co.o]="#1E1E1E",yi[Co.x]="#D4D4D4",yi[Co.F]="#3A3D41",yi[Vo.h]="#404040",yi[Vo.a]="#707070",yi[Co.M]="#ADD6FF26",yi)},ka={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(Hi={},Hi[Co.o]="#000000",Hi[Co.x]="#FFFFFF",Hi[Vo.h]="#FFFFFF",Hi[Vo.a]="#FFFFFF",Hi)},Wa=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Di="vs",Vr="vs-dark",pr="hc-black",Ba=hr.a.as(Co.a.ColorContribution),Ua=hr.a.as(Do.a.ThemingContribution),la=function(){function a(r,o){this.themeData=o;var h=o.base;r.length>0?(this.id=h+" "+r,this.themeName=r):(this.id=h,this.themeName=h),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(a.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),a.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},a.prototype.getColors=function(){if(!this.colors){var r=new Map;for(var o in this.themeData.colors)r.set(o,kn.a.fromHex(this.themeData.colors[o]));if(this.themeData.inherit){var h=Vs(this.themeData.base);for(var o in h.colors)r.has(o)||r.set(o,kn.a.fromHex(h.colors[o]))}this.colors=r}return this.colors},a.prototype.getColor=function(r,o){var h=this.getColors().get(r);return h||(o!==!1?this.getDefault(r):void 0)},a.prototype.getDefault=function(r){var o=this.defaultColors[r];return o||(o=Ba.resolveDefaultColor(r,this),this.defaultColors[r]=o,o)},a.prototype.defines=function(r){return Object.prototype.hasOwnProperty.call(this.getColors(),r)},Object.defineProperty(a.prototype,"type",{get:function(){switch(this.base){case Di:return"light";case pr:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var o=[],h=[];if(this.themeData.inherit){var w=Vs(this.themeData.base);o=w.rules,w.encodedTokensColors&&(h=w.encodedTokensColors)}o=o.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(h=this.themeData.encodedTokensColors),this._tokenTheme=Io.createFromRawTokenTheme(o,h)}return this._tokenTheme},enumerable:!0,configurable:!0}),a.prototype.getTokenStyleMetadata=function(r,o){return},a}();function Hs(a){return a===Di||a===Vr||a===pr}function Vs(a){switch(a){case Di:return ja;case Vr:return Fa;case pr:return ka}}function zs(a){var r=Vs(a);return new la(a,r)}var Ha=function(a){Wa(r,a);function r(){var o=a.call(this)||this;return o._onThemeChange=o._register(new N.a),o.onThemeChange=o._onThemeChange.event,o._environment=Object.create(null),o._knownThemes=new Map,o._knownThemes.set(Di,zs(Di)),o._knownThemes.set(Vr,zs(Vr)),o._knownThemes.set(pr,zs(pr)),o._css="",o._globalStyleElement=null,o._styleElements=[],o.setTheme(Di),o}return r.prototype.registerEditorContainer=function(o){return me.N(o)?this._registerShadowDomContainer(o):this._registerRegularEditorContainer()},r.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=me.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),Rt.a.None},r.prototype._registerShadowDomContainer=function(o){var h=this,w=me.w(o);return w.className="monaco-colors",w.innerHTML=this._css,this._styleElements.push(w),{dispose:function(){for(var ue=0;ue<h._styleElements.length;ue++)if(h._styleElements[ue]===w){h._styleElements.splice(ue,1);return}}}},r.prototype.defineTheme=function(o,h){if(!/^[a-z0-9\-]+$/i.test(o))throw new Error("Illegal theme name!");if(!Hs(h.base)&&!Hs(o))throw new Error("Illegal theme base!");this._knownThemes.set(o,new la(o,h)),Hs(o)&&this._knownThemes.forEach(function(w){w.base===o&&w.notifyBaseUpdated()}),this._theme&&this._theme.themeName===o&&this.setTheme(o)},r.prototype.getTheme=function(){return this._theme},r.prototype.setTheme=function(o){var h=this,w;if(this._knownThemes.has(o)?w=this._knownThemes.get(o):w=this._knownThemes.get(Di),this._theme===w)return w.id;this._theme=w;var I=[],ue={},Be={addRule:function(Mt){ue[Mt]||(I.push(Mt),ue[Mt]=!0)}};Ua.getThemingParticipants().forEach(function(Lt){return Lt(w,Be,h._environment)});var Ge=w.tokenTheme,Ye=Ge.getColorMap();return Be.addRule(Hr(Ye)),this._css=I.join(`
`),this._styleElements.forEach(function(Lt){return Lt.innerHTML=h._css}),vt.B.setColorMap(Ye),this._onThemeChange.fire(w),w.id},r.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},r}(Rt.a),zr=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Va=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},za=function(a,r){return function(o,h){r(o,h,a)}},Kr="data-keybinding-context",Ks=function(){function a(r,o){this._id=r,this._parent=o,this._value=Object.create(null),this._value._contextId=r}return a.prototype.setValue=function(r,o){return this._value[r]!==o?(this._value[r]=o,!0):!1},a.prototype.removeValue=function(r){return r in this._value?(delete this._value[r],!0):!1},a.prototype.getValue=function(r){var o=this._value[r];return typeof o=="undefined"&&this._parent?this._parent.getValue(r):o},a}(),Gr=function(a){zr(r,a);function r(){return a.call(this,-1,null)||this}return r.prototype.setValue=function(o,h){return!1},r.prototype.removeValue=function(o){return!1},r.prototype.getValue=function(o){return},r.INSTANCE=new r,r}(Ks),Ka=function(a){zr(r,a);function r(o,h,w){var I=a.call(this,o,null)||this;return I._configurationService=h,I._values=new Map,I._listener=I._configurationService.onDidChangeConfiguration(function(ue){if(ue.source===6){var Be=Object($o.d)(I._values);I._values.clear(),w.fire(new ua(Be))}else{for(var Ge=[],Ye=0,Lt=ue.affectedKeys;Ye<Lt.length;Ye++){var Mt=Lt[Ye],kt="config."+Mt;I._values.has(kt)&&(I._values.delete(kt),Ge.push(kt))}w.fire(new ua(Ge))}}),I}return r.prototype.dispose=function(){this._listener.dispose()},r.prototype.getValue=function(o){if(o.indexOf(r._keyPrefix)!==0)return a.prototype.getValue.call(this,o);if(this._values.has(o))return this._values.get(o);var h=o.substr(r._keyPrefix.length),w=this._configurationService.getValue(h),I=void 0;switch(typeof w){case"number":case"boolean":case"string":I=w;break}return this._values.set(o,I),I},r.prototype.setValue=function(o,h){return a.prototype.setValue.call(this,o,h)},r.prototype.removeValue=function(o){return a.prototype.removeValue.call(this,o)},r._keyPrefix="config.",r}(Ks),Ga=function(){function a(r,o,h){this._service=r,this._key=o,this._defaultValue=h,this.reset()}return a.prototype.set=function(r){this._service.setContext(this._key,r)},a.prototype.reset=function(){typeof this._defaultValue=="undefined"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},a.prototype.get=function(){return this._service.getContextKeyValue(this._key)},a}(),da=function(){function a(r){this.key=r}return a.prototype.affectsSome=function(r){return r.has(this.key)},a}(),ua=function(){function a(r){this.keys=r}return a.prototype.affectsSome=function(r){for(var o=0,h=this.keys;o<h.length;o++){var w=h[o];if(r.has(w))return!0}return!1},a}(),Xa=function(){function a(r){this.events=r}return a.prototype.affectsSome=function(r){for(var o=0,h=this.events;o<h.length;o++){var w=h[o];if(w.affectsSome(r))return!0}return!1},a}(),ca=function(){function a(r){this._onDidChangeContext=new N.e({merge:function(h){return new Xa(h)}}),this._isDisposed=!1,this._myContextId=r}return a.prototype.createKey=function(r,o){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Ga(this,r,o)},Object.defineProperty(a.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),a.prototype.bufferChangeEvents=function(r){this._onDidChangeContext.pause();try{r()}finally{this._onDidChangeContext.resume()}},a.prototype.createScoped=function(r){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Za(this,r)},a.prototype.contextMatchesRules=function(r){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var o=this.getContextValuesContainer(this._myContextId),h=Qi.contextMatchesRules(o,r);return h},a.prototype.getContextKeyValue=function(r){return this._isDisposed?void 0:this.getContextValuesContainer(this._myContextId).getValue(r)},a.prototype.setContext=function(r,o){if(this._isDisposed)return;var h=this.getContextValuesContainer(this._myContextId);if(!h)return;h.setValue(r,o)&&this._onDidChangeContext.fire(new da(r))},a.prototype.removeContext=function(r){if(this._isDisposed)return;this.getContextValuesContainer(this._myContextId).removeValue(r)&&this._onDidChangeContext.fire(new da(r))},a.prototype.getContext=function(r){return this._isDisposed?Gr.INSTANCE:this.getContextValuesContainer(Qa(r))},a}(),Ya=function(a){zr(r,a);function r(o){var h=a.call(this,0)||this;h._contexts=new Map,h._toDispose=new Rt.b,h._lastContextId=0;var w=new Ka(h._myContextId,o,h._onDidChangeContext);return h._contexts.set(h._myContextId,w),h._toDispose.add(w),h}return r.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},r.prototype.getContextValuesContainer=function(o){return this._isDisposed?Gr.INSTANCE:this._contexts.get(o)||Gr.INSTANCE},r.prototype.createChildContext=function(o){if(o===void 0&&(o=this._myContextId),this._isDisposed)throw new Error("ContextKeyService has been disposed");var h=++this._lastContextId;return this._contexts.set(h,new Ks(h,this.getContextValuesContainer(o))),h},r.prototype.disposeContext=function(o){this._isDisposed||this._contexts.delete(o)},r=Va([za(0,Ao.a)],r),r}(ca),Za=function(a){zr(r,a);function r(o,h){var w=a.call(this,o.createChildContext())||this;return w._parent=o,h&&(w._domNode=h,w._domNode.setAttribute(Kr,String(w._myContextId))),w}return r.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(Kr),this._domNode=void 0)},Object.defineProperty(r.prototype,"onDidChangeContext",{get:function(){return N.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),r.prototype.getContextValuesContainer=function(o){return this._isDisposed?Gr.INSTANCE:this._parent.getContextValuesContainer(o)},r.prototype.createChildContext=function(o){if(o===void 0&&(o=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(o)},r.prototype.disposeContext=function(o){if(this._isDisposed)return;this._parent.disposeContext(o)},r}(ca);function Qa(a){for(;a;){if(a.hasAttribute(Kr)){var r=a.getAttribute(Kr);return r?parseInt(r,10):NaN}a=a.parentElement}return 0}Q.a.registerCommand(wo.e,function(a,r,o){a.get(wo.c).createKey(String(r),o)});var nu=e("eizg"),$a=e("2gzu"),Ja=e("ptcw"),ha=e("4y0V"),qa=e("XSiN"),el=function(){function a(r,o,h,w,I){this.contextViewService=r,this.telemetryService=o,this.notificationService=h,this.keybindingService=w,this.themeService=I,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}return a.prototype.configure=function(r){this.options=r},a.prototype.showContextMenu=function(r){var o=this,h=r.getActions();if(!h.length)return;this.focusToReturn=document.activeElement;var w;this.contextViewService.showContextView({getAnchor:function(){return r.getAnchor()},canRelayout:!1,anchorAlignment:r.anchorAlignment,render:function(ue){var Be=r.getMenuClassName?r.getMenuClassName():"";Be&&(ue.className+=" "+Be),o.options.blockMouse&&(o.block=ue.appendChild(Object(me.a)(".context-view-block")));var Ge=new Rt.b,Ye=r.actionRunner||new ui.b;return Ye.onDidBeforeRun(o.onActionRun,o,Ge),Ye.onDidRun(o.onDidActionRun,o,Ge),w=new $a.a(ue,h,{actionViewItemProvider:r.getActionViewItem,context:r.getActionsContext?r.getActionsContext():null,actionRunner:Ye,getKeyBinding:r.getKeyBinding?r.getKeyBinding:function(Lt){return o.keybindingService.lookupKeybinding(Lt.id)}}),Ge.add(Object(Ja.c)(w,o.themeService)),w.onDidCancel(function(){return o.contextViewService.hideContextView(!0)},null,Ge),w.onDidBlur(function(){return o.contextViewService.hideContextView(!0)},null,Ge),Object(ha.a)(window,me.d.BLUR)(function(){o.contextViewService.hideContextView(!0)},null,Ge),Object(ha.a)(window,me.d.MOUSE_DOWN)(function(Lt){if(Lt.defaultPrevented)return;var Mt=new qa.b(Lt),kt=Mt.target;if(Mt.rightButton)return;for(;kt;){if(kt===ue)return;kt=kt.parentElement}o.contextViewService.hideContextView(!0)},null,Ge),Object(Rt.e)(Ge,w)},focus:function(){w&&w.focus(!!r.autoSelectFirstItem)},onHide:function(ue){r.onHide&&r.onHide(!!ue),o.block&&(Object(me.R)(o.block),o.block=null),o.focusToReturn&&o.focusToReturn.focus()}})},a.prototype.onActionRun=function(r){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:r.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()},a.prototype.onDidActionRun=function(r){r.error&&this.notificationService&&this.notificationService.error(r.error)},a}(),Gs=e("XXUj"),tl=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),nl=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},gr=function(a,r){return function(o,h){r(o,h,a)}},ol=function(a){tl(r,a);function r(o,h,w,I,ue){var Be=a.call(this)||this;return Be._onDidContextMenu=Be._register(new N.a),Be.contextMenuHandler=new el(w,o,h,I,ue),Be}return r.prototype.configure=function(o){this.contextMenuHandler.configure(o)},r.prototype.showContextMenu=function(o){this.contextMenuHandler.showContextMenu(o),this._onDidContextMenu.fire()},r=nl([gr(0,Gs.a),gr(1,Ho.a),gr(2,Xo.b),gr(3,ii.a),gr(4,Do.c)],r),r}(Rt.a),ou=e("TT2d"),il=e("nuFA"),rl=e("CjF5"),sl=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}();function fa(a,r,o){var h=o.offset+o.size;return o.position===0?r<=a-h?h:r<=o.offset?o.offset-r:Math.max(a-r,0):r<=o.offset?o.offset-r:r<=a-h?h:0}var al=function(a){sl(r,a);function r(o){var h=a.call(this)||this;return h.container=null,h.delegate=null,h.toDisposeOnClean=Rt.a.None,h.toDisposeOnSetContainer=Rt.a.None,h.view=me.a(".context-view"),me.J(h.view),h.setContainer(o),h._register(Object(Rt.h)(function(){return h.setContainer(null)})),h}return r.prototype.setContainer=function(o){var h=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),o){this.container=o,this.container.appendChild(this.view);var w=new Rt.b;r.BUBBLE_UP_EVENTS.forEach(function(I){w.add(me.o(h.container,I,function(ue){h.onDOMEvent(ue,!1)}))}),r.BUBBLE_DOWN_EVENTS.forEach(function(I){w.add(me.o(h.container,I,function(ue){h.onDOMEvent(ue,!0)},!0))}),this.toDisposeOnSetContainer=w}},r.prototype.show=function(o){this.isVisible()&&this.hide(),me.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",me.X(this.view),this.toDisposeOnClean=o.render(this.view)||Rt.a.None,this.delegate=o,this.doLayout(),this.delegate.focus&&this.delegate.focus()},r.prototype.layout=function(){if(!this.isVisible())return;if(this.delegate.canRelayout===!1&&!(mt.c&&rl.a.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()},r.prototype.doLayout=function(){if(!this.isVisible())return;var o=this.delegate.getAnchor(),h;if(me.L(o)){var w=me.C(o);h={top:w.top,left:w.left,width:w.width,height:w.height}}else h={top:o.y,left:o.x,width:o.width||1,height:o.height||2};var I=me.H(this.view),ue=me.G(this.view),Be=this.delegate.anchorPosition||0,Ge=this.delegate.anchorAlignment||0,Ye={offset:h.top-window.pageYOffset,size:h.height,position:Be===0?0:1},Lt;Ge===0?Lt={offset:h.left,size:0,position:0}:Lt={offset:h.left+h.width,size:0,position:1};var Mt=fa(window.innerHeight,ue,Ye)+window.pageYOffset;il.a.intersects({start:Mt,end:Mt+ue},{start:Ye.offset,end:Ye.offset+Ye.size})&&(Lt.size=h.width,Ge===1&&(Lt.offset=h.left));var kt=fa(window.innerWidth,I,Lt);me.Q(this.view,"top","bottom","left","right"),me.f(this.view,Be===0?"bottom":"top"),me.f(this.view,Ge===0?"left":"right");var Pt=me.C(this.container);this.view.style.top=Mt-Pt.top+"px",this.view.style.left=kt-Pt.left+"px",this.view.style.width="initial"},r.prototype.hide=function(o){var h=this.delegate;this.delegate=null,(h==null?void 0:h.onHide)&&h.onHide(o),this.toDisposeOnClean.dispose(),me.J(this.view)},r.prototype.isVisible=function(){return!!this.delegate},r.prototype.onDOMEvent=function(o,h){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(o,document.activeElement):h&&!me.K(o.target,this.container)&&this.hide())},r.prototype.dispose=function(){this.hide(),a.prototype.dispose.call(this)},r.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],r.BUBBLE_DOWN_EVENTS=["click"],r}(Rt.a),pa=Object(No.c)("layoutService"),ll=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),dl=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},ul=function(a,r){return function(o,h){r(o,h,a)}},cl=function(a){ll(r,a);function r(o){var h=a.call(this)||this;return h.layoutService=o,h.contextView=h._register(new al(o.container)),h.layout(),h._register(o.onLayout(function(){return h.layout()})),h}return r.prototype.setContainer=function(o){this.contextView.setContainer(o)},r.prototype.showContextView=function(o){this.contextView.show(o)},r.prototype.layout=function(){this.contextView.layout()},r.prototype.hideContextView=function(o){this.contextView.hide(o)},r=dl([ul(0,pa)],r),r}(Rt.a),hl=Object(No.c)("dialogService"),Xs=e("vl9R");function fl(a){return{data:a,incoming:Object.create(null),outgoing:Object.create(null)}}var pl=function(){function a(r){this._hashFn=r,this._nodes=Object.create(null)}return a.prototype.roots=function(){var r=[];return Object(Xs.c)(this._nodes,function(o){Object(Ct.f)(o.value.outgoing)&&r.push(o.value)}),r},a.prototype.insertEdge=function(r,o){var h=this.lookupOrInsertNode(r),w=this.lookupOrInsertNode(o);h.outgoing[this._hashFn(o)]=w,w.incoming[this._hashFn(r)]=h},a.prototype.removeNode=function(r){var o=this._hashFn(r);delete this._nodes[o],Object(Xs.c)(this._nodes,function(h){delete h.value.outgoing[o],delete h.value.incoming[o]})},a.prototype.lookupOrInsertNode=function(r){var o=this._hashFn(r),h=this._nodes[o];return h||(h=fl(r),this._nodes[o]=h),h},a.prototype.isEmpty=function(){for(var r in this._nodes)return!1;return!0},a.prototype.toString=function(){var r=[];return Object(Xs.c)(this._nodes,function(o){r.push(o.key+", (incoming)["+Object.keys(o.value.incoming).join(", ")+"], (outgoing)["+Object.keys(o.value.outgoing).join(",")+"]")}),r.join(`
`)},a}(),mr=e("r0BQ"),ga=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Ys=function(){for(var a=0,r=0,o=arguments.length;r<o;r++)a+=arguments[r].length;for(var h=Array(a),w=0,r=0;r<o;r++)for(var I=arguments[r],ue=0,Be=I.length;ue<Be;ue++,w++)h[w]=I[ue];return h},ma=!1,gl=typeof Proxy=="function",va=function(a){ga(r,a);function r(o){var h=a.call(this,"cyclic dependency between services")||this;return h.message=o.toString(),h}return r}(Error),ya=function(){function a(r,o,h){r===void 0&&(r=new Si.a),o===void 0&&(o=!1),this._services=r,this._strict=o,this._parent=h,this._services.set(No.a,this)}return a.prototype.createChild=function(r){return new a(r,this._strict,this)},a.prototype.invokeFunction=function(r){for(var o=this,h=[],w=1;w<arguments.length;w++)h[w-1]=arguments[w];var I=Zs.traceInvocation(r),ue=!1;try{var Be={get:function(Ye,Lt){if(ue)throw Object(bt.c)("service accessor is only valid during the invocation of its target method");var Mt=o._getOrCreateServiceInstance(Ye,I);if(!Mt&&Lt!==No.d)throw new Error("[invokeFunction] unknown service '"+Ye+"'");return Mt}};return r.apply(void 0,Ys([Be],h))}finally{ue=!0,I.stop()}},a.prototype.createInstance=function(r){for(var o=[],h=1;h<arguments.length;h++)o[h-1]=arguments[h];var w,I;return r instanceof mr.a?(w=Zs.traceCreation(r.ctor),I=this._createInstance(r.ctor,r.staticArguments.concat(o),w)):(w=Zs.traceCreation(r),I=this._createInstance(r,o,w)),w.stop(),I},a.prototype._createInstance=function(r,o,h){o===void 0&&(o=[]);for(var w=No.b.getServiceDependencies(r).sort(function(kt,Pt){return kt.index-Pt.index}),I=[],ue=0,Be=w;ue<Be.length;ue++){var Ge=Be[ue],Ye=this._getOrCreateServiceInstance(Ge.id,h);if(!Ye&&this._strict&&!Ge.optional)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+Ge.id+".");I.push(Ye)}var Lt=w.length>0?w[0].index:o.length;if(o.length!==Lt){console.warn("[createInstance] First service dependency of "+r.name+" at position "+(Lt+1)+" conflicts with "+o.length+" static arguments");var Mt=Lt-o.length;Mt>0?o=o.concat(new Array(Mt)):o=o.slice(0,Lt)}return new(r.bind.apply(r,Ys([void 0],Ys(o,I))))},a.prototype._setServiceInstance=function(r,o){if(this._services.get(r)instanceof mr.a)this._services.set(r,o);else if(this._parent)this._parent._setServiceInstance(r,o);else throw new Error("illegalState - setting UNKNOWN service instance")},a.prototype._getServiceInstanceOrDescriptor=function(r){var o=this._services.get(r);return!o&&this._parent?this._parent._getServiceInstanceOrDescriptor(r):o},a.prototype._getOrCreateServiceInstance=function(r,o){var h=this._getServiceInstanceOrDescriptor(r);return h instanceof mr.a?this._createAndCacheServiceInstance(r,h,o.branch(r,!0)):(o.branch(r,!1),h)},a.prototype._createAndCacheServiceInstance=function(r,o,h){for(var w=new pl(function(hn){return hn.id.toString()}),I=0,ue=[{id:r,desc:o,_trace:h}];ue.length;){var Be=ue.pop();if(w.lookupOrInsertNode(Be),I++>150)throw new va(w);for(var Ge=0,Ye=No.b.getServiceDependencies(Be.desc.ctor);Ge<Ye.length;Ge++){var Lt=Ye[Ge],Mt=this._getServiceInstanceOrDescriptor(Lt.id);if(!Mt&&!Lt.optional&&console.warn("[createInstance] "+r+" depends on "+Lt.id+" which is NOT registered."),Mt instanceof mr.a){var kt={id:Lt.id,desc:Mt,_trace:Be._trace.branch(Lt.id,!0)};w.insertEdge(Be,kt),ue.push(kt)}}}for(;;){var Pt=w.roots();if(Pt.length===0){if(!w.isEmpty())throw new va(w);break}for(var sn=0,tn=Pt;sn<tn.length;sn++){var Yt=tn[sn].data,Qt=this._createServiceInstanceWithOwner(Yt.id,Yt.desc.ctor,Yt.desc.staticArguments,Yt.desc.supportsDelayedInstantiation,Yt._trace);this._setServiceInstance(Yt.id,Qt),w.removeNode(Yt)}}return this._getServiceInstanceOrDescriptor(r)},a.prototype._createServiceInstanceWithOwner=function(r,o,h,w,I){if(h===void 0&&(h=[]),this._services.get(r)instanceof mr.a)return this._createServiceInstance(o,h,w,I);if(this._parent)return this._parent._createServiceInstanceWithOwner(r,o,h,w,I);throw new Error("illegalState - creating UNKNOWN service instance "+o.name)},a.prototype._createServiceInstance=function(r,o,h,w){var I=this;if(o===void 0&&(o=[]),!h||!gl)return this._createInstance(r,o,w);var ue=new ct.b(function(){return I._createInstance(r,o,w)});return new Proxy(Object.create(null),{get:function(Ge,Ye){if(Ye in Ge)return Ge[Ye];var Lt=ue.getValue(),Mt=Lt[Ye];return typeof Mt!="function"||(Mt=Mt.bind(Lt),Ge[Ye]=Mt),Mt},set:function(Ge,Ye,Lt){return ue.getValue()[Ye]=Lt,!0}})},a}(),Zs=function(){function a(r,o){this.type=r,this.name=o,this._start=Date.now(),this._dep=[]}return a.traceInvocation=function(r){return ma?new a(1,r.name||r.toString().substring(0,42).replace(/\n/g,"")):a._None},a.traceCreation=function(r){return ma?new a(0,r.name):a._None},a.prototype.branch=function(r,o){var h=new a(2,r.toString());return this._dep.push([r,o,h]),h},a.prototype.stop=function(){var r=Date.now()-this._start;a._totals+=r;var o=!1;function h(I,ue){for(var Be=[],Ge=new Array(I+1).join(" "),Ye=0,Lt=ue._dep;Ye<Lt.length;Ye++){var Mt=Lt[Ye],kt=Mt[0],Pt=Mt[1],sn=Mt[2];if(Pt&&sn){o=!0,Be.push(Ge+"CREATES -> "+kt);var tn=h(I+1,sn);tn&&Be.push(tn)}else Be.push(Ge+"uses -> "+kt)}return Be.join(`
`)}var w=[(this.type===0?"CREATE":"CALL")+" "+this.name,""+h(1,this),"DONE, took "+r.toFixed(2)+"ms (grand total "+a._totals.toFixed(2)+"ms)"];(r>2||o)&&console.log(w.join(`
`))},a._None=new(function(r){ga(o,r);function o(){return r.call(this,-1,null)||this}return o.prototype.stop=function(){},o.prototype.branch=function(){return this},o}(a)),a._totals=0,a}(),ml=e("R8sh"),Ca=e("k9mg"),ti=e("tADe"),Oi;(function(a){function r(w,I,ue){return w[I]?w[I][ue]:void 0}a.get=r;function o(w,I,ue,Be){w[I]||(w[I]=Object.create(null)),w[I][ue]=Be}a.set=o;function h(w,I,ue){return w[I]&&w[I][ue]?(delete w[I][ue],Object(Ct.f)(w[I])&&delete w[I],!0):!1}a.remove=h})(Oi||(Oi={}));var vl=function(){function a(r){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=r,this._subscription=r.onMarkerChanged(this._update,this)}return a.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},a.prototype._update=function(r){if(!this._data)return;for(var o=0,h=r;o<h.length;o++){var w=h[o],I=w.toString(),ue=this._data[I];ue&&this._substract(ue);var Be=this._resourceStats(w);this._add(Be),this._data[I]=Be}},a.prototype._resourceStats=function(r){var o={errors:0,warnings:0,infos:0,unknowns:0};if(r.scheme===Ee.b.inMemory||r.scheme===Ee.b.walkThrough||r.scheme===Ee.b.walkThroughSnippet)return o;for(var h=0,w=this._service.read({resource:r});h<w.length;h++){var I=w[h].severity;I===ti.c.Error?o.errors+=1:I===ti.c.Warning?o.warnings+=1:I===ti.c.Info?o.infos+=1:o.unknowns+=1}return o},a.prototype._substract=function(r){this.errors-=r.errors,this.warnings-=r.warnings,this.infos-=r.infos,this.unknowns-=r.unknowns},a.prototype._add=function(r){this.errors+=r.errors,this.warnings+=r.warnings,this.infos+=r.infos,this.unknowns+=r.unknowns},a}(),yl=function(){function a(){this._onMarkerChanged=new N.a,this._onMarkerChangedEvent=N.b.debounce(this._onMarkerChanged.event,a._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new vl(this)}return a.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty(a.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),a.prototype.remove=function(r,o){for(var h=0,w=o||[];h<w.length;h++){var I=w[h];this.changeOne(r,I,[])}},a.prototype.changeOne=function(r,o,h){if(Object(lt.p)(h)){var w=Oi.remove(this._byResource,o.toString(),r),I=Oi.remove(this._byOwner,r,o.toString());if(w!==I)throw new Error("invalid marker service state");w&&I&&this._onMarkerChanged.fire([o])}else{for(var ue=[],Be=0,Ge=h;Be<Ge.length;Be++){var Ye=Ge[Be],Lt=a._toMarker(r,o,Ye);Lt&&ue.push(Lt)}Oi.set(this._byResource,o.toString(),r,ue),Oi.set(this._byOwner,r,o.toString(),ue),this._onMarkerChanged.fire([o])}},a._toMarker=function(r,o,h){var w=h.code,I=h.severity,ue=h.message,Be=h.source,Ge=h.startLineNumber,Ye=h.startColumn,Lt=h.endLineNumber,Mt=h.endColumn,kt=h.relatedInformation,Pt=h.tags;return ue?(Ge=Ge>0?Ge:1,Ye=Ye>0?Ye:1,Lt=Lt>=Ge?Lt:Ge,Mt=Mt>0?Mt:Ye,{resource:o,owner:r,code:w,severity:I,message:ue,source:Be,startLineNumber:Ge,startColumn:Ye,endLineNumber:Lt,endColumn:Mt,relatedInformation:kt,tags:Pt}):void 0},a.prototype.read=function(r){r===void 0&&(r=Object.create(null));var o=r.owner,h=r.resource,w=r.severities,I=r.take;if((!I||I<0)&&(I=-1),o&&h){var ue=Oi.get(this._byResource,h.toString(),o);if(ue){for(var Be=[],Ge=0,Ye=ue;Ge<Ye.length;Ge++){var Lt=Ye[Ge];if(a._accept(Lt,w)){var Mt=Be.push(Lt);if(I>0&&Mt===I)break}}return Be}else return[]}else if(!o&&!h){var Be=[];for(var kt in this._byResource)for(var Pt in this._byResource[kt])for(var sn=0,tn=this._byResource[kt][Pt];sn<tn.length;sn++){var ue=tn[sn];if(a._accept(ue,w)){var Mt=Be.push(ue);if(I>0&&Mt===I)return Be}}return Be}else{var Yt=o?this._byOwner[o]:h?this._byResource[h.toString()]:void 0;if(!Yt)return[];var Be=[];for(var Qt in Yt)for(var hn=0,wn=Yt[Qt];hn<wn.length;hn++){var ue=wn[hn];if(a._accept(ue,w)){var Mt=Be.push(ue);if(I>0&&Mt===I)return Be}}return Be}},a._accept=function(r,o){return o===void 0||(o&r.severity)===r.severity},a._debouncer=function(r,o){r||(a._dedupeMap=Object.create(null),r=[]);for(var h=0,w=o;h<w.length;h++){var I=w[h];a._dedupeMap[I.toString()]===void 0&&(a._dedupeMap[I.toString()]=!0,r.push(I))}return r},a}(),ba=e("A+jI"),Ea=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},Qs=function(a,r){return function(o,h){r(o,h,a)}},Cl=function(){function a(r){this._commandService=r}return a.prototype.createMenu=function(r,o){return new bl(r,this._commandService,o)},a=Ea([Qs(0,Q.b)],a),a}(),bl=function(){function a(r,o,h){var w=this;this._id=r,this._commandService=o,this._contextKeyService=h,this._onDidChange=new N.a,this._dispoables=new Rt.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(N.b.debounce(N.b.filter(Ko.c.onDidChangeMenu,function(I){return I===w._id}),function(){},50)(this._build,this)),this._dispoables.add(N.b.debounce(this._contextKeyService.onDidChangeContext,function(I,ue){return I||ue.affectsSome(w._contextKeys)},50)(function(I){return I&&w._onDidChange.fire(void 0)},this))}return a.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},a.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var r=Ko.c.getMenuItems(this._id),o;r.sort(a._compareMenuItems);for(var h=0,w=r;h<w.length;h++){var I=w[h],ue=I.group||"";(!o||o[0]!==ue)&&(o=[ue,[]],this._menuGroups.push(o)),o[1].push(I),a._fillInKbExprKeys(I.when,this._contextKeys),Object(Ko.e)(I)&&I.command.precondition&&a._fillInKbExprKeys(I.command.precondition,this._contextKeys),Object(Ko.e)(I)&&I.command.toggled&&a._fillInKbExprKeys(I.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},a.prototype.getActions=function(r){for(var o=[],h=0,w=this._menuGroups;h<w.length;h++){for(var I=w[h],ue=I[0],Be=I[1],Ge=[],Ye=0,Lt=Be;Ye<Lt.length;Ye++){var Mt=Lt[Ye];if(this._contextKeyService.contextMatchesRules(Mt.when)){var kt=Object(Ko.e)(Mt)?new Ko.b(Mt.command,Mt.alt,r,this._contextKeyService,this._commandService):new Ko.d(Mt);Ge.push(kt)}}Ge.length>0&&o.push([ue,Ge])}return o},a._fillInKbExprKeys=function(r,o){if(r)for(var h=0,w=r.keys();h<w.length;h++){var I=w[h];o.add(I)}},a._compareMenuItems=function(r,o){var h=r.group,w=o.group;if(h!==w){if(h){if(!w)return-1}else return 1;if(h==="navigation")return-1;if(w==="navigation")return 1;var I=h.localeCompare(w);if(I!==0)return I}var ue=r.order||0,Be=o.order||0;return ue<Be?-1:ue>Be?1:a._compareTitles(Object(Ko.e)(r)?r.command.title:r.title,Object(Ko.e)(o)?o.command.title:o.title)},a._compareTitles=function(r,o){var h=typeof r=="string"?r:r.value,w=typeof o=="string"?o:o.value;return h.localeCompare(w)},a=Ea([Qs(1,Q.b),Qs(2,wo.c)],a),a}(),El=e("79sc"),Sa=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Sl=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},La=function(a,r){return function(o,h){r(o,h,a)}};function vr(a){return a.toString()}var Ll=function(a){Sa(r,a);function r(o){var h=a.call(this)||this;return h.model=o,h._markersData=new Map,h._register(Object(Rt.h)(function(){h.model.deltaDecorations(Object($o.d)(h._markersData),[]),h._markersData.clear()})),h}return r.prototype.update=function(o,h){var w=Object($o.d)(this._markersData);this._markersData.clear();for(var I=this.model.deltaDecorations(w,h),ue=0;ue<I.length;ue++)this._markersData.set(I[ue],o[ue])},r.prototype.getMarker=function(o){return this._markersData.get(o.id)},r}(Rt.a),wl=function(a){Sa(r,a);function r(o,h){var w=a.call(this)||this;return w._markerService=h,w._onDidChangeMarker=w._register(new N.a),w._markerDecorations=new Map,o.getModels().forEach(function(I){return w._onModelAdded(I)}),w._register(o.onModelAdded(w._onModelAdded,w)),w._register(o.onModelRemoved(w._onModelRemoved,w)),w._register(w._markerService.onMarkerChanged(w._handleMarkerChange,w)),w}return r.prototype.dispose=function(){a.prototype.dispose.call(this),this._markerDecorations.forEach(function(o){return o.dispose()}),this._markerDecorations.clear()},r.prototype.getMarker=function(o,h){var w=this._markerDecorations.get(vr(o.uri));return w?Object(Ct.o)(w.getMarker(h)):null},r.prototype._handleMarkerChange=function(o){var h=this;o.forEach(function(w){var I=h._markerDecorations.get(vr(w));I&&h._updateDecorations(I)})},r.prototype._onModelAdded=function(o){var h=new Ll(o);this._markerDecorations.set(vr(o.uri),h),this._updateDecorations(h)},r.prototype._onModelRemoved=function(o){var h=this,w=this._markerDecorations.get(vr(o.uri));w&&(w.dispose(),this._markerDecorations.delete(vr(o.uri))),(o.uri.scheme===Ee.b.inMemory||o.uri.scheme===Ee.b.internal||o.uri.scheme===Ee.b.vscode)&&(this._markerService&&this._markerService.read({resource:o.uri}).map(function(I){return I.owner}).forEach(function(I){return h._markerService.remove(I,[o.uri])}))},r.prototype._updateDecorations=function(o){var h=this,w=this._markerService.read({resource:o.model.uri,take:500}),I=w.map(function(ue){return{range:h._createDecorationRange(o.model,ue),options:h._createDecorationOption(ue)}});o.update(w,I),this._onDidChangeMarker.fire(o.model)},r.prototype._createDecorationRange=function(o,h){var w=U.a.lift(h);if(h.severity===ti.c.Hint&&!this._hasMarkerTag(h,1)&&!this._hasMarkerTag(h,2)&&(w=w.setEndPosition(w.startLineNumber,w.startColumn+2)),w=o.validateRange(w),w.isEmpty()){var I=o.getWordAtPosition(w.getStartPosition());if(I)w=new U.a(w.startLineNumber,I.startColumn,w.endLineNumber,I.endColumn);else{var ue=o.getLineLastNonWhitespaceColumn(w.startLineNumber)||o.getLineMaxColumn(w.startLineNumber);ue===1||(w.endColumn>=ue?w=new U.a(w.startLineNumber,ue-1,w.endLineNumber,ue):w=new U.a(w.startLineNumber,w.startColumn,w.endLineNumber,w.endColumn+1))}}else if(h.endColumn===Number.MAX_VALUE&&h.startColumn===1&&w.startLineNumber===w.endLineNumber){var Be=o.getLineFirstNonWhitespaceColumn(h.startLineNumber);Be<w.endColumn&&(w=new U.a(w.startLineNumber,Be,w.endLineNumber,w.endColumn),h.startColumn=Be)}return w},r.prototype._createDecorationOption=function(o){var h,w=void 0,I,ue=void 0,Be;switch(o.severity){case ti.c.Hint:this._hasMarkerTag(o,2)?h=void 0:this._hasMarkerTag(o,1)?h="squiggly-unnecessary":h="squiggly-hint",I=0;break;case ti.c.Warning:h="squiggly-warning",w=Object(Do.f)(Vo.r),I=20,Be={color:Object(Do.f)(Co.Jb),position:ft.c.Inline};break;case ti.c.Info:h="squiggly-info",w=Object(Do.f)(Vo.q),I=10;break;case ti.c.Error:default:h="squiggly-error",w=Object(Do.f)(Vo.p),I=30,Be={color:Object(Do.f)(Co.Gb),position:ft.c.Inline};break}return o.tags&&(o.tags.indexOf(1)!==-1&&(ue="squiggly-inline-unnecessary"),o.tags.indexOf(2)!==-1&&(ue="squiggly-inline-deprecated")),{stickiness:1,className:h,showIfCollapsed:!0,overviewRuler:{color:w,position:ft.d.Right},minimap:Be,zIndex:I,inlineClassName:ue}},r.prototype._hasMarkerTag=function(o,h){return o.tags?o.tags.indexOf(h)>=0:!1},r=Sl([La(0,Ae.a),La(1,ti.b)],r),r}(Rt.a),_l=e("9fML"),Dl=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),Ol=function(a,r,o,h){var w=arguments.length,I=w<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,o):h,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(a,r,o,h);else for(var Be=a.length-1;Be>=0;Be--)(ue=a[Be])&&(I=(w<3?ue(I):w>3?ue(r,o,I):ue(r,o))||I);return w>3&&I&&Object.defineProperty(r,o,I),I},wa=function(a,r){return function(o,h){r(o,h,a)}},Ml=function(a){Dl(r,a);function r(o,h){var w=a.call(this)||this;w._contextKeyService=o,w._configurationService=h,w._accessibilitySupport=0,w._onDidChangeScreenReaderOptimized=new N.a,w._accessibilityModeEnabledContext=pi.a.bindTo(w._contextKeyService);var I=function(){return w._accessibilityModeEnabledContext.set(w.isScreenReaderOptimized())};return w._register(w._configurationService.onDidChangeConfiguration(function(ue){ue.affectsConfiguration("editor.accessibilitySupport")&&(I(),w._onDidChangeScreenReaderOptimized.fire())})),I(),w.onDidChangeScreenReaderOptimized(function(){return I()}),w}return Object.defineProperty(r.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),r.prototype.isScreenReaderOptimized=function(){var o=this._configurationService.getValue("editor.accessibilitySupport");return o==="on"||o==="auto"&&this._accessibilitySupport===2},r.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},r=Ol([wa(0,wo.c),wa(1,Ao.a)],r),r}(Rt.a),Tl=function(){var a=function(o,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var ue in I)I.hasOwnProperty(ue)&&(w[ue]=I[ue])},a(o,h)};return function(r,o){a(r,o);function h(){this.constructor=r}r.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}(),ro;(function(a){var r=new Si.a,o=function(){function Be(Ge,Ye){this._serviceId=Ge,this._factory=Ye,this._value=null}return Object.defineProperty(Be.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),Be.prototype.get=function(Ge){if(!this._value){if(Ge&&(this._value=Ge[this._serviceId.toString()]),this._value||(this._value=this._factory(Ge)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");r.set(this._serviceId,this._value)}return this._value},Be}();a.LazyStaticService=o;var h=[];function w(Be,Ge){var Ye=new o(Be,Ge);return h.push(Ye),Ye}function I(Be){for(var Ge=new Si.a,Ye=0,Lt=Object(_l.a)();Ye<Lt.length;Ye++){var Mt=Lt[Ye],kt=Mt[0],Pt=Mt[1];Ge.set(kt,Pt)}for(var sn in Be)Be.hasOwnProperty(sn)&&Ge.set(Object(No.c)(sn),Be[sn]);h.forEach(function(Yt){return Ge.set(Yt.id,Yt.get(Be))});var tn=new ya(Ge,!0);return Ge.set(No.a,tn),[Ge,tn]}a.init=I,a.instantiationService=w(No.a,function(){return new ya(r,!0)});var ue=new Or;a.configurationService=w(Ao.a,function(){return ue}),a.resourceConfigurationService=w(Ie.a,function(){return new cs(ue)}),a.resourcePropertiesService=w(Ie.b,function(){return new hs(ue)}),a.contextService=w(wr.a,function(){return new ps}),a.labelService=w(ml.a,function(){return new Mr}),a.telemetryService=w(Gs.a,function(){return new fs}),a.dialogService=w(hl,function(){return new ls}),a.notificationService=w(Ho.a,function(){return new ds}),a.markerService=w(ti.b,function(){return new yl}),a.modeService=w(js.a,function(Be){return new Bs}),a.standaloneThemeService=w(wi.a,function(){return new Ha}),a.logService=w(dt.a,function(){return new dt.c}),a.modelService=w(Ae.a,function(Be){return new t(a.configurationService.get(Be),a.resourcePropertiesService.get(Be),a.standaloneThemeService.get(Be),a.logService.get(Be))}),a.markerDecorationsService=w(El.a,function(Be){return new wl(a.modelService.get(Be),a.markerService.get(Be))}),a.codeEditorService=w(pe.a,function(Be){return new In(a.standaloneThemeService.get(Be))}),a.editorProgressService=w(Ni.a,function(){return new ra}),a.storageService=w(ba.a,function(){return new ba.b}),a.editorWorkerService=w(at.a,function(Be){return new Ue(a.modelService.get(Be),a.resourceConfigurationService.get(Be),a.logService.get(Be))})})(ro||(ro={}));var Al=function(a){Tl(r,a);function r(o,h){var w=a.call(this)||this,I=ro.init(h),ue=I[0],Be=I[1];w._serviceCollection=ue,w._instantiationService=Be;var Ge=w.get(Ao.a),Ye=w.get(Ho.a),Lt=w.get(Gs.a),Mt=w.get(Do.c),kt=function(wn,Tn){var Nn=null;return h&&(Nn=h[wn.toString()]),Nn||(Nn=Tn()),w._serviceCollection.set(wn,Nn),Nn},Pt=kt(wo.c,function(){return w._register(new Ya(Ge))});kt(pi.b,function(){return new Ml(Pt,Ge)}),kt(Ca.a,function(){return new Ca.b(Mt)});var sn=kt(Q.b,function(){return new us(w._instantiationService)}),tn=kt(ii.a,function(){return w._register(new _r(Pt,sn,Lt,Ye,o))}),Yt=kt(pa,function(){return new Tr(o)}),Qt=kt(Xo.b,function(){return w._register(new cl(Yt))});return kt(Xo.a,function(){var hn=new ol(Lt,Ye,Qt,tn,Mt);return hn.configure({blockMouse:!1}),w._register(hn)}),kt(Ko.a,function(){return new Cl(sn)}),kt(Ps.a,function(){return new sa(ro.modelService.get(Ae.a))}),w}return r.prototype.get=function(o){var h=this._serviceCollection.get(o);if(!h)throw new Error("Missing service "+o);return h},r.prototype.set=function(o,h){this._serviceCollection.set(o,h)},r.prototype.has=function(o){return this._serviceCollection.has(o)},r}(Rt.a);function _a(a,r,o){var h=new Al(a,r),w=null;h.has(tt.a)||(w=new as(ro.modelService.get()),h.set(tt.a,w)),h.has(b.a)||h.set(b.a,new it(h.get(pe.a),h.get(Q.b)));var I=o(h);return w&&w.setEditor(I),I}function xl(a,r,o){return _a(a,o||{},function(h){return new lr(a,r,h,h.get(No.a),h.get(pe.a),h.get(Q.b),h.get(wo.c),h.get(ii.a),h.get(Xo.b),h.get(wi.a),h.get(Ho.a),h.get(Ao.a),h.get(pi.b))})}function Rl(a){return ro.codeEditorService.get().onCodeEditorAdd(function(r){a(r)})}function Nl(a,r,o){return _a(a,o||{},function(h){return new Is(a,r,h,h.get(No.a),h.get(wo.c),h.get(ii.a),h.get(Xo.b),h.get(at.a),h.get(pe.a),h.get(wi.a),h.get(Ho.a),h.get(Ao.a),h.get(Xo.a),h.get(Ni.a),null)})}function Il(a,r){return new ln(a,r)}function Da(a,r,o){return ro.modelService.get().createModel(a,r,o)}function Pl(a,r,o){if(a=a||"",!r){var h=a.indexOf(`
`),w=a;return h!==-1&&(w=a.substring(0,h)),Da(a,ro.modeService.get().createByFilepathOrFirstLine(o||null,w),o)}return Da(a,ro.modeService.get().create(r),o)}function jl(a,r){ro.modelService.get().setMode(a,ro.modeService.get().create(r))}function Fl(a,r,o){a&&ro.markerService.get().changeOne(r,a.uri,o)}function kl(a){return ro.markerService.get().read(a)}function Wl(a){return ro.modelService.get().getModel(a)}function Bl(){return ro.modelService.get().getModels()}function Ul(a){return ro.modelService.get().onModelAdded(a)}function Hl(a){return ro.modelService.get().onModelRemoved(a)}function Vl(a){return ro.modelService.get().onModelModeChanged(function(r){a({model:r.model,oldLanguage:r.oldModeId})})}function zl(a){return Ze(ro.modelService.get(),a)}function Kl(a,r){return zi.colorizeElement(ro.standaloneThemeService.get(),ro.modeService.get(),a,r)}function Gl(a,r,o){return zi.colorize(ro.modeService.get(),a,r,o)}function Xl(a,r,o){return o===void 0&&(o=4),zi.colorizeModelLine(a,r,o)}function Yl(a){var r=vt.B.get(a);return r||{getInitialState:function(){return xt.c},tokenize:function(h,w,I){return Object(xt.d)(a,h,w,I)}}}function Zl(a,r){var o=ro.modeService.get();o.triggerMode(r);for(var h=Yl(r),w=a.split(/\r\n|\r|\n/),I=[],ue=h.getInitialState(),Be=0,Ge=w.length;Be<Ge;Be++){var Ye=w[Be],Lt=h.tokenize(Ye,ue,0);I[Be]=Lt.tokens,ue=Lt.endState}return I}function Ql(a,r){ro.standaloneThemeService.get().defineTheme(a,r)}function $l(a){ro.standaloneThemeService.get().setTheme(a)}function Jl(){Object(Ti.b)()}function ql(){return{create:xl,onDidCreateEditor:Rl,createDiffEditor:Nl,createDiffNavigator:Il,createModel:Pl,setModelLanguage:jl,setModelMarkers:Fl,getModelMarkers:kl,getModels:Bl,getModel:Wl,onDidCreateModel:Ul,onWillDisposeModel:Hl,onDidChangeModelLanguage:Vl,createWebWorker:zl,colorizeElement:Kl,colorize:Gl,colorizeModelLine:Xl,tokenize:Zl,defineTheme:Ql,setTheme:$l,remeasureFonts:Jl,AccessibilitySupport:y,ContentWidgetPositionPreference:g,CursorChangeReason:u,DefaultEndOfLine:s,EditorAutoIndentStrategy:d,EditorOption:p,EndOfLinePreference:E,EndOfLineSequence:_,MinimapPosition:ie,MouseTargetType:W,OverlayWidgetPositionPreference:B,OverviewRulerLane:le,RenderLineNumbersType:be,RenderMinimap:De,ScrollbarVisibility:ke,ScrollType:Te,TextEditorCursorBlinkingStyle:ae,TextEditorCursorStyle:q,TrackedRangeStickiness:ce,WrappingIndent:X,ConfigurationChangedEvent:T.a,BareFontInfo:an.a,FontInfo:an.b,TextModelResolvedOptions:ft.e,FindMatch:ft.b,EditorType:jt.a,EditorOptions:T.e}}function ed(a,r){if(!r)return!1;if(!Array.isArray(r))return!1;for(var o=0,h=r;o<h.length;o++){var w=h[o];if(!a(w))return!1}return!0}function Oa(a,r){return typeof a=="boolean"?a:r}function Ma(a,r){return typeof a=="string"?a:r}function td(a){for(var r={},o=0,h=a;o<h.length;o++){var w=h[o];r[w]=!0}return r}function Ta(a,r){r===void 0&&(r=!1),r&&(a=a.map(function(h){return h.toLowerCase()}));var o=td(a);return r?function(h){return o[h.toLowerCase()]!==void 0&&o.hasOwnProperty(h.toLowerCase())}:function(h){return o[h]!==void 0&&o.hasOwnProperty(h)}}function $s(a,r){for(var o=0;r.indexOf("@")>=0&&o<5;)o++,r=r.replace(/@(\w+)/g,function(h,w){var I="";if(typeof a[w]=="string")I=a[w];else if(a[w]&&a[w]instanceof RegExp)I=a[w].source;else throw a[w]===void 0?On(a,"language definition does not contain attribute '"+w+"', used at: "+r):On(a,"attribute reference '"+w+"' must be a string, used at: "+r);return Sn(I)?"":"(?:"+I+")"});return new RegExp(r,a.ignoreCase?"i":"")}function nd(a,r,o,h){if(h<0)return a;if(h<r.length)return r[h];if(h>=100){h=h-100;var w=o.split(".");if(w.unshift(o),h<w.length)return w[h]}return null}function od(a,r,o,h){var w=-1,I=o,ue=o.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);ue&&(ue[3]&&(w=parseInt(ue[3]),ue[2]&&(w=w+100)),I=ue[4]);var Be="~",Ge=I;!I||I.length===0?(Be="!=",Ge=""):/^\w*$/.test(Ge)?Be="==":(ue=I.match(/^(@|!@|~|!~|==|!=)(.*)$/),ue&&(Be=ue[1],Ge=ue[2]));var Ye;if((Be==="~"||Be==="!~")&&/^(\w|\|)*$/.test(Ge)){var Lt=Ta(Ge.split("|"),a.ignoreCase);Ye=function(Qt){return Be==="~"?Lt(Qt):!Lt(Qt)}}else if(Be==="@"||Be==="!@"){var Mt=a[Ge];if(!Mt)throw On(a,"the @ match target '"+Ge+"' is not defined, in rule: "+r);if(!ed(function(Yt){return typeof Yt=="string"},Mt))throw On(a,"the @ match target '"+Ge+"' must be an array of strings, in rule: "+r);var kt=Ta(Mt,a.ignoreCase);Ye=function(Qt){return Be==="@"?kt(Qt):!kt(Qt)}}else if(Be==="~"||Be==="!~")if(Ge.indexOf("$")<0){var Pt=$s(a,"^"+Ge+"$");Ye=function(Qt){return Be==="~"?Pt.test(Qt):!Pt.test(Qt)}}else Ye=function(Qt,hn,wn,Tn){var Nn=$s(a,"^"+An(a,Ge,hn,wn,Tn)+"$");return Nn.test(Qt)};else if(Ge.indexOf("$")<0){var sn=Ln(a,Ge);Ye=function(Qt){return Be==="=="?Qt===sn:Qt!==sn}}else{var tn=Ln(a,Ge);Ye=function(Qt,hn,wn,Tn,Nn){var Fn=An(a,tn,hn,wn,Tn);return Be==="=="?Qt===Fn:Qt!==Fn}}return w===-1?{name:o,value:h,test:function(Qt,hn,wn,Tn){return Ye(Qt,Qt,hn,wn,Tn)}}:{name:o,value:h,test:function(Qt,hn,wn,Tn){var Nn=nd(Qt,hn,wn,w);return Ye(Nn||"",Qt,hn,wn,Tn)}}}function Js(a,r,o){if(o){if(typeof o=="string")return o;if(o.token||o.token===""){if(typeof o.token!="string")throw On(a,"a 'token' attribute must be of type string, in rule: "+r);var h={token:o.token};if(o.token.indexOf("$")>=0&&(h.tokenSubst=!0),typeof o.bracket=="string")if(o.bracket==="@open")h.bracket=1;else if(o.bracket==="@close")h.bracket=-1;else throw On(a,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+r);if(o.next){if(typeof o.next!="string")throw On(a,"the next state must be a string value in rule: "+r);var w=o.next;if(!/^(@pop|@push|@popall)$/.test(w)&&(w[0]==="@"&&(w=w.substr(1)),w.indexOf("$")<0&&!mo(a,An(a,w,"",[],""))))throw On(a,"the next state '"+o.next+"' is not defined in rule: "+r);h.next=w}return typeof o.goBack=="number"&&(h.goBack=o.goBack),typeof o.switchTo=="string"&&(h.switchTo=o.switchTo),typeof o.log=="string"&&(h.log=o.log),typeof o.nextEmbedded=="string"&&(h.nextEmbedded=o.nextEmbedded,a.usesEmbedded=!0),h}else if(Array.isArray(o)){for(var I=[],ue=0,Be=o.length;ue<Be;ue++)I[ue]=Js(a,r,o[ue]);return{group:I}}else if(o.cases){var Ge=[];for(var Ye in o.cases)if(o.cases.hasOwnProperty(Ye)){var Lt=Js(a,r,o.cases[Ye]);Ye==="@default"||Ye==="@"||Ye===""?Ge.push({test:void 0,value:Lt,name:Ye}):Ye==="@eos"?Ge.push({test:function(Pt,sn,tn,Yt){return Yt},value:Lt,name:Ye}):Ge.push(od(a,r,Ye,Lt))}var Mt=a.defaultToken;return{test:function(Pt,sn,tn,Yt){for(var Qt=0,hn=Ge;Qt<hn.length;Qt++){var wn=hn[Qt],Tn=!wn.test||wn.test(Pt,sn,tn,Yt);if(Tn)return wn.value}return Mt}}}else throw On(a,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+r)}else return{token:""}}var id=function(){function a(r){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=r}return a.prototype.setRegex=function(r,o){var h;if(typeof o=="string")h=o;else if(o instanceof RegExp)h=o.source;else throw On(r,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=h.length>0&&h[0]==="^",this.name=this.name+": "+h,this.regex=$s(r,"^(?:"+(this.matchOnlyAtLineStart?h.substr(1):h)+")")},a.prototype.setAction=function(r,o){this.action=Js(r,this.name,o)},a}();function rd(a,r){if(!r||typeof r!="object")throw new Error("Monarch: expecting a language definition object");var o={};o.languageId=a,o.noThrow=!1,o.maxStack=100,o.start=typeof r.start=="string"?r.start:null,o.ignoreCase=Oa(r.ignoreCase,!1),o.tokenPostfix=Ma(r.tokenPostfix,"."+o.languageId),o.defaultToken=Ma(r.defaultToken,"source"),o.usesEmbedded=!1;var h=r;h.languageId=a,h.ignoreCase=o.ignoreCase,h.noThrow=o.noThrow,h.usesEmbedded=o.usesEmbedded,h.stateNames=r.tokenizer,h.defaultToken=o.defaultToken;function w(kt,Pt,sn){for(var tn=0,Yt=sn;tn<Yt.length;tn++){var Qt=Yt[tn],hn=Qt.include;if(hn){if(typeof hn!="string")throw On(o,"an 'include' attribute must be a string at: "+kt);if(hn[0]==="@"&&(hn=hn.substr(1)),!r.tokenizer[hn])throw On(o,"include target '"+hn+"' is not defined at: "+kt);w(kt+"."+hn,Pt,r.tokenizer[hn])}else{var wn=new id(kt);if(Array.isArray(Qt)&&Qt.length>=1&&Qt.length<=3)if(wn.setRegex(h,Qt[0]),Qt.length>=3)if(typeof Qt[1]=="string")wn.setAction(h,{token:Qt[1],next:Qt[2]});else if(typeof Qt[1]=="object"){var Tn=Qt[1];Tn.next=Qt[2],wn.setAction(h,Tn)}else throw On(o,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+kt);else wn.setAction(h,Qt[1]);else{if(!Qt.regex)throw On(o,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+kt);Qt.name&&(typeof Qt.name=="string"&&(wn.name=Qt.name)),Qt.matchOnlyAtStart&&(wn.matchOnlyAtLineStart=Oa(Qt.matchOnlyAtLineStart,!1)),wn.setRegex(h,Qt.regex),wn.setAction(h,Qt.action)}Pt.push(wn)}}}if(!r.tokenizer||typeof r.tokenizer!="object")throw On(o,"a language definition must define the 'tokenizer' attribute as an object");o.tokenizer=[];for(var I in r.tokenizer)if(r.tokenizer.hasOwnProperty(I)){o.start||(o.start=I);var ue=r.tokenizer[I];o.tokenizer[I]=new Array,w("tokenizer."+I,o.tokenizer[I],ue)}if(o.usesEmbedded=h.usesEmbedded,r.brackets){if(!Array.isArray(r.brackets))throw On(o,"the 'brackets' attribute must be defined as an array")}else r.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var Be=[],Ge=0,Ye=r.brackets;Ge<Ye.length;Ge++){var Lt=Ye[Ge],Mt=Lt;if(Mt&&Array.isArray(Mt)&&Mt.length===3&&(Mt={token:Mt[2],open:Mt[0],close:Mt[1]}),Mt.open===Mt.close)throw On(o,"open and close brackets in a 'brackets' attribute must be different: "+Mt.open+`
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof Mt.open=="string"&&typeof Mt.token=="string"&&typeof Mt.close=="string")Be.push({token:Mt.token+o.tokenPostfix,open:Ln(o,Mt.open),close:Ln(o,Mt.close)});else throw On(o,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return o.brackets=Be,o.noThrow=!0,o}function sd(a){mi.a.registerLanguage(a)}function ad(){var a=[];return a=a.concat(mi.a.getLanguages()),a}function ld(a){var r=ro.modeService.get().getLanguageIdentifier(a);return r?r.id:0}function dd(a,r){var o=ro.modeService.get().onDidCreateMode(function(h){h.getId()===a&&(o.dispose(),r())});return o}function ud(a,r){var o=ro.modeService.get().getLanguageIdentifier(a);if(!o)throw new Error("Cannot set configuration for unknown language "+a);return Fe.a.register(o,r)}var cd=function(){function a(r){this._actual=r}return a.prototype.getInitialState=function(){return this._actual.getInitialState()},a.prototype.tokenize=function(r,o,h){throw new Error("Not supported!")},a.prototype.tokenize2=function(r,o){var h=this._actual.tokenizeEncoded(r,o);return new c.c(h.tokens,h.endState)},a}(),hd=function(){function a(r,o,h){this._standaloneThemeService=r,this._languageIdentifier=o,this._actual=h}return a.prototype.getInitialState=function(){return this._actual.getInitialState()},a.prototype._toClassicTokens=function(r,o,h){for(var w=[],I=0,ue=0,Be=r.length;ue<Be;ue++){var Ge=r[ue],Ye=Ge.startIndex;ue===0?Ye=0:Ye<I&&(Ye=I),w[ue]=new c.a(Ye+h,Ge.scopes,o),I=Ye}return w},a.prototype.tokenize=function(r,o,h){var w=this._actual.tokenize(r,o),I=this._toClassicTokens(w.tokens,this._languageIdentifier.language,h),ue;return w.endState.equals(o)?ue=o:ue=w.endState,new c.b(I,ue)},a.prototype._toBinaryTokens=function(r,o){for(var h=this._languageIdentifier.id,w=this._standaloneThemeService.getTheme().tokenTheme,I=[],ue=0,Be=0,Ge=0,Ye=r.length;Ge<Ye;Ge++){var Lt=r[Ge],Mt=w.match(h,Lt.scopes);if(ue>0&&I[ue-1]===Mt)continue;var kt=Lt.startIndex;Ge===0?kt=0:kt<Be&&(kt=Be),I[ue++]=kt+o,I[ue++]=Mt,Be=kt}for(var Pt=new Uint32Array(ue),Ge=0;Ge<ue;Ge++)Pt[Ge]=I[Ge];return Pt},a.prototype.tokenize2=function(r,o,h){var w=this._actual.tokenize(r,o),I=this._toBinaryTokens(w.tokens,h),ue;return w.endState.equals(o)?ue=o:ue=w.endState,new c.c(I,ue)},a}();function fd(a){return"tokenizeEncoded"in a}function Aa(a){return a&&typeof a.then=="function"}function pd(a,r){var o=ro.modeService.get().getLanguageIdentifier(a);if(!o)throw new Error("Cannot set tokens provider for unknown language "+a);var h=function(I){return fd(I)?new cd(I):new hd(ro.standaloneThemeService.get(),o,I)};return Aa(r)?vt.B.registerPromise(a,r.then(function(w){return h(w)})):vt.B.register(a,h(r))}function gd(a,r){var o=function(w){return na(ro.modeService.get(),ro.standaloneThemeService.get(),a,rd(a,w))};return Aa(r)?vt.B.registerPromise(a,r.then(function(h){return o(h)})):vt.B.register(a,o(r))}function md(a,r){return vt.u.register(a,r)}function vd(a,r){return vt.v.register(a,r)}function yd(a,r){return vt.x.register(a,r)}function Cd(a,r){return vt.p.register(a,{provideHover:function(h,w,I){var ue=h.getWordAtPosition(w);return Promise.resolve(r.provideHover(h,w,I)).then(function(Be){return Be?(!Be.range&&ue&&(Be.range=new U.a(w.lineNumber,ue.startColumn,w.lineNumber,ue.endColumn)),Be.range||(Be.range=new U.a(w.lineNumber,w.column,w.lineNumber,w.column)),Be):void 0})}})}function bd(a,r){return vt.m.register(a,r)}function Ed(a,r){return vt.i.register(a,r)}function Sd(a,r){return vt.f.register(a,r)}function Ld(a,r){return vt.q.register(a,r)}function wd(a,r){return vt.C.register(a,r)}function _d(a,r){return vt.b.register(a,r)}function Dd(a,r){return vt.a.register(a,{provideCodeActions:function(h,w,I,ue){var Be=ro.markerService.get().read({resource:h.uri}).filter(function(Ge){return U.a.areIntersectingOrTouching(Ge,w)});return r.provideCodeActions(h,w,{markers:Be,only:I.only},ue)}})}function Od(a,r){return vt.g.register(a,r)}function Md(a,r){return vt.j.register(a,r)}function Td(a,r){return vt.t.register(a,r)}function Ad(a,r){return vt.s.register(a,r)}function xd(a,r){return vt.d.register(a,r)}function Rd(a,r){return vt.c.register(a,r)}function Nd(a,r){return vt.o.register(a,r)}function Id(a,r){return vt.e.register(a,r)}function Pd(a,r){return vt.w.register(a,r)}function jd(a,r){return vt.l.register(a,r)}function Fd(a,r){return vt.k.register(a,r)}function kd(){return{register:sd,getLanguages:ad,onLanguage:dd,getEncodedLanguageId:ld,setLanguageConfiguration:ud,setTokensProvider:pd,setMonarchTokensProvider:gd,registerReferenceProvider:md,registerRenameProvider:vd,registerCompletionItemProvider:xd,registerSignatureHelpProvider:yd,registerHoverProvider:Cd,registerDocumentSymbolProvider:bd,registerDocumentHighlightProvider:Ed,registerDefinitionProvider:Sd,registerImplementationProvider:Ld,registerTypeDefinitionProvider:wd,registerCodeLensProvider:_d,registerCodeActionProvider:Dd,registerDocumentFormattingEditProvider:Od,registerDocumentRangeFormattingEditProvider:Md,registerOnTypeFormattingEditProvider:Td,registerLinkProvider:Ad,registerColorProvider:Rd,registerFoldingRangeProvider:Nd,registerDeclarationProvider:Id,registerSelectionRangeProvider:Pd,registerDocumentSemanticTokensProvider:jd,registerDocumentRangeSemanticTokensProvider:Fd,DocumentHighlightKind:l,CompletionItemKind:f,CompletionItemTag:v,CompletionItemInsertTextRule:L,SymbolKind:oe,SymbolTag:ee,IndentAction:x,CompletionTriggerKind:S,SignatureHelpTriggerKind:je,FoldingRangeKind:vt.n}}var Xr=self;T.e.wrappingIndent.defaultValue=0,T.e.glyphMargin.defaultValue=!1,T.e.autoIndent.defaultValue=3,T.e.overviewRulerLanes.defaultValue=2;var Po=Pe();Po.editor=ql(),Po.languages=kd();var Wd=Po.CancellationTokenSource,Bd=Po.Emitter,Ud=Po.KeyCode,Hd=Po.KeyMod,Vd=Po.Position,zd=Po.Range,Kd=Po.Selection,Gd=Po.SelectionDirection,Xd=Po.MarkerSeverity,Yd=Po.MarkerTag,Zd=Po.Uri,Qd=Po.Token,$d=Po.editor,Jd=Po.languages;Xr.monaco=Po,typeof Xr.require!="undefined"&&typeof Xr.require.config=="function"&&Xr.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},"9B1q":function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return e.e(252).then(e.bind(null,"v7Iz"))}})},"9XAT":function(_t,P,e){"use strict";e.r(P),e.d(P,"LanguageServiceDefaultsImpl",function(){return N});var T=e("M/lh"),re=e.n(T);"use strict";var J=monaco.Emitter,N=function(){function L(f,v,S){this._onDidChange=new J,this._languageId=f,this.setDiagnosticsOptions(v),this.setModeConfiguration(S)}return Object.defineProperty(L.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),L.prototype.setDiagnosticsOptions=function(f){this._diagnosticsOptions=f||Object.create(null),this._onDidChange.fire(this)},L.prototype.setModeConfiguration=function(f){this._modeConfiguration=f||Object.create(null),this._onDidChange.fire(this)},L}(),H={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"}},z={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},M=new N("css",H,z),U=new N("scss",H,z),A=new N("less",H,z);function c(){return{cssDefaults:M,lessDefaults:A,scssDefaults:U}}monaco.languages.css=c();function y(){return e.e(239).then(e.bind(null,"20/g"))}monaco.languages.onLanguage("less",function(){y().then(function(L){return L.setupMode(A)})}),monaco.languages.onLanguage("scss",function(){y().then(function(L){return L.setupMode(U)})}),monaco.languages.onLanguage("css",function(){y().then(function(L){return L.setupMode(M)})})},"9XeP":function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("clipboardService")},"9Y+e":function(_t,P,e){"use strict";e.d(P,"a",function(){return T});var T=function(){function re(J,N,H,z,M,U){this.id=J,this.label=N,this.alias=H,this._precondition=z,this._run=M,this._contextKeyService=U}return re.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},re.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var J=this._run();return J||Promise.resolve(void 0)},re}()},"9fML":function(_t,P,e){"use strict";e.d(P,"b",function(){return J}),e.d(P,"a",function(){return N});var T=e("r0BQ"),re=[];function J(H,z,M){re.push([H,new T.a(z,[],M)])}function N(){return re}},"9o5J":function(_t,P,e){"use strict";e.d(P,"b",function(){return U}),e.d(P,"a",function(){return c}),e.d(P,"c",function(){return y});var T=e("3/fG"),re=e("MI8n"),J=e("gslv"),N=e("pmY6"),H=e("N0LK"),z=e("nD70"),M=e("aokT"),U=function(){function L(f,v,S,g){this.isProviderFirst=f,this.parent=v,this._range=S,this._rangeCallback=g,this.id=z.b.nextId()}return Object.defineProperty(L.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"range",{get:function(){return this._range},set:function(v){this._range=v,this._rangeCallback(this)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"ariaMessage",{get:function(){return Object(T.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(J.b)(this.uri),this.range.startLineNumber,this.range.startColumn)},enumerable:!0,configurable:!0}),L}(),A=function(){function L(f){this._modelReference=f}return L.prototype.dispose=function(){this._modelReference.dispose()},L.prototype.preview=function(f,v){v===void 0&&(v=8);var S=this._modelReference.object.textEditorModel;if(!S)return;var g=f.startLineNumber,u=f.startColumn,s=f.endLineNumber,l=f.endColumn,d=S.getWordUntilPosition({lineNumber:g,column:u-v}),p=new M.a(g,d.startColumn,g,u),E=new M.a(s,l,s,1073741824),_=S.getValueInRange(p).replace(/^\s+/,""),x=S.getValueInRange(f),F=S.getValueInRange(E).replace(/\s+$/,"");return{value:_+x+F,highlight:{start:_.length,end:_.length+x.length}}},L}(),c=function(){function L(f,v){this.parent=f,this.uri=v,this.children=[]}return L.prototype.dispose=function(){Object(N.f)(this._preview),this._preview=void 0},Object.defineProperty(L.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"ariaMessage",{get:function(){var v=this.children.length;return v===1?Object(T.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(J.b)(this.uri),this.uri.fsPath):Object(T.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",v,Object(J.b)(this.uri),this.uri.fsPath)},enumerable:!0,configurable:!0}),L.prototype.resolve=function(f){var v=this;return this._resolved?Promise.resolve(this):Promise.resolve(f.createModelReference(this.uri).then(function(S){var g=S.object;if(!g)throw S.dispose(),new Error;return v._preview=new A(S),v._resolved=!0,v},function(S){return v.children.length=0,v._resolved=!0,v._loadFailure=S,v}))},L}(),y=function(){function L(f,v){var S=this;this._disposables=new N.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new re.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=f,this._title=v;var g=f[0];f.sort(L._compareReferences);for(var u,s=0,l=f;s<l.length;s++){var d=l[s];if((!u||u.uri.toString()!==d.uri.toString())&&(u=new c(this,d.uri),this.groups.push(u)),u.children.length===0||!M.a.equalsRange(d.range,u.children[u.children.length-1].range)){var p=new U(g===d,u,d.targetSelectionRange||d.range,function(E){return S._onDidChangeReferenceRange.fire(E)});this.references.push(p),u.children.push(p)}}}return L.prototype.dispose=function(){Object(N.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0},L.prototype.clone=function(){return new L(this._links,this._title)},Object.defineProperty(L.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"isEmpty",{get:function(){return this.groups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"ariaMessage",{get:function(){return this.isEmpty?Object(T.a)("aria.result.0","No results found"):this.references.length===1?Object(T.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?Object(T.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(T.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)},enumerable:!0,configurable:!0}),L.prototype.nextOrPreviousReference=function(f,v){var S=f.parent,g=S.children.indexOf(f),u=S.children.length,s=S.parent.groups.length;return s===1||v&&g+1<u||!v&&g>0?(v?g=(g+1)%u:g=(g+u-1)%u,S.children[g]):(g=S.parent.groups.indexOf(S),v?(g=(g+1)%s,S.parent.groups[g].children[0]):(g=(g+s-1)%s,S.parent.groups[g].children[S.parent.groups[g].children.length-1]))},L.prototype.nearestReference=function(f,v){var S=this.references.map(function(g,u){return{idx:u,prefixLen:H.c(g.uri.toString(),f.toString()),offsetDist:Math.abs(g.range.startLineNumber-v.lineNumber)*100+Math.abs(g.range.startColumn-v.column)}}).sort(function(g,u){return g.prefixLen>u.prefixLen?-1:g.prefixLen<u.prefixLen?1:g.offsetDist<u.offsetDist?-1:g.offsetDist>u.offsetDist?1:0})[0];return S?this.references[S.idx]:void 0},L.prototype.referenceAt=function(f,v){for(var S=0,g=this.references;S<g.length;S++){var u=g[S];if(u.uri.toString()===f.toString()&&M.a.containsPosition(u.range,v))return u}return},L.prototype.firstReference=function(){for(var f=0,v=this.references;f<v.length;f++){var S=v[f];if(S.isProviderFirst)return S}return this.references[0]},L._compareReferences=function(f,v){return H.e(f.uri.toString(),v.uri.toString())||M.a.compareRangesUsingStarts(f.range,v.range)},L}()},"A+jI":function(_t,P,e){"use strict";e.d(P,"a",function(){return z}),e.d(P,"c",function(){return M}),e.d(P,"b",function(){return U});var T=e("Cg/j"),re=e("MI8n"),J=e("pmY6"),N=e("746U"),H=function(){var A=function(y,L){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var S in v)v.hasOwnProperty(S)&&(f[S]=v[S])},A(y,L)};return function(c,y){A(c,y);function L(){this.constructor=c}c.prototype=y===null?Object.create(y):(L.prototype=y.prototype,new L)}}(),z=Object(T.c)("storageService"),M;(function(A){A[A.NONE=0]="NONE",A[A.SHUTDOWN=1]="SHUTDOWN"})(M||(M={}));var U=function(A){H(c,A);function c(){var y=A!==null&&A.apply(this,arguments)||this;return y._onDidChangeStorage=y._register(new re.a),y.onDidChangeStorage=y._onDidChangeStorage.event,y._onWillSaveState=y._register(new re.a),y.onWillSaveState=y._onWillSaveState.event,y.globalCache=new Map,y.workspaceCache=new Map,y}return c.prototype.getCache=function(y){return y===0?this.globalCache:this.workspaceCache},c.prototype.get=function(y,L,f){var v=this.getCache(L).get(y);return Object(N.l)(v)?f:v},c.prototype.getBoolean=function(y,L,f){var v=this.getCache(L).get(y);return Object(N.l)(v)?f:v==="true"},c.prototype.store=function(y,L,f){if(Object(N.l)(L))return this.remove(y,f);var v=String(L),S=this.getCache(f).get(y);return S===v||(this.getCache(f).set(y,v),this._onDidChangeStorage.fire({scope:f,key:y})),Promise.resolve()},c.prototype.remove=function(y,L){var f=this.getCache(L).delete(y);return f&&this._onDidChangeStorage.fire({scope:L,key:y}),Promise.resolve()},c}(J.a)},"A9l+":function(_t,P,e){"use strict";e.d(P,"a",function(){return re}),e.d(P,"c",function(){return J}),e.d(P,"b",function(){return N}),e.d(P,"d",function(){return H}),e.d(P,"e",function(){return z}),e.d(P,"g",function(){return M}),e.d(P,"h",function(){return U}),e.d(P,"f",function(){return A});var T=e("3/fG"),re;(function(c){c.noSelection=T.a("noSelection","No selection"),c.singleSelectionRange=T.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),c.singleSelection=T.a("singleSelection","Line {0}, Column {1}"),c.multiSelectionRange=T.a("multiSelectionRange","{0} selections ({1} characters selected)"),c.multiSelection=T.a("multiSelection","{0} selections"),c.emergencyConfOn=T.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),c.openingDocs=T.a("openingDocs","Now opening the Editor Accessibility documentation page."),c.readonlyDiffEditor=T.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),c.editableDiffEditor=T.a("editableDiffEditor"," in a pane of a diff editor."),c.readonlyEditor=T.a("readonlyEditor"," in a read-only code editor"),c.editableEditor=T.a("editableEditor"," in a code editor"),c.changeConfigToOnMac=T.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),c.changeConfigToOnWinLinux=T.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),c.auto_on=T.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),c.auto_off=T.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),c.tabFocusModeOnMsg=T.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),c.tabFocusModeOnMsgNoKb=T.a("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),c.tabFocusModeOffMsg=T.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),c.tabFocusModeOffMsgNoKb=T.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),c.openDocMac=T.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),c.openDocWinLinux=T.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),c.outroMsg=T.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),c.showAccessibilityHelpAction=T.a("showAccessibilityHelpAction","Show Accessibility Help")})(re||(re={}));var J;(function(c){c.inspectTokensAction=T.a("inspectTokens","Developer: Inspect Tokens")})(J||(J={}));var N;(function(c){c.gotoLineLabelValidLineAndColumn=T.a("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),c.gotoLineLabelValidLine=T.a("gotoLineLabelValidLine","Go to line {0}"),c.gotoLineLabelEmptyWithLineLimit=T.a("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),c.gotoLineLabelEmptyWithLineAndColumnLimit=T.a("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),c.gotoLineAriaLabel=T.a("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),c.gotoLineActionInput=T.a("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),c.gotoLineActionLabel=T.a("gotoLineActionLabel","Go to Line...")})(N||(N={}));var H;(function(c){c.ariaLabelEntryWithKey=T.a("ariaLabelEntryWithKey","{0}, {1}, commands"),c.ariaLabelEntry=T.a("ariaLabelEntry","{0}, commands"),c.quickCommandActionInput=T.a("quickCommandActionInput","Type the name of an action you want to execute"),c.quickCommandActionLabel=T.a("quickCommandActionLabel","Command Palette")})(H||(H={}));var z;(function(c){c.entryAriaLabel=T.a("entryAriaLabel","{0}, symbols"),c.quickOutlineActionInput=T.a("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),c.quickOutlineActionLabel=T.a("quickOutlineActionLabel","Go to Symbol..."),c._symbols_=T.a("symbols","symbols ({0})"),c._modules_=T.a("modules","modules ({0})"),c._class_=T.a("class","classes ({0})"),c._interface_=T.a("interface","interfaces ({0})"),c._method_=T.a("method","methods ({0})"),c._function_=T.a("function","functions ({0})"),c._property_=T.a("property","properties ({0})"),c._variable_=T.a("variable","variables ({0})"),c._variable2_=T.a("variable2","variables ({0})"),c._constructor_=T.a("_constructor","constructors ({0})"),c._call_=T.a("call","calls ({0})")})(z||(z={}));var M;(function(c){c.editorViewAccessibleLabel=T.a("editorViewAccessibleLabel","Editor content"),c.accessibilityHelpMessageIE=T.a("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),c.accessibilityHelpMessage=T.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(M||(M={}));var U;(function(c){c.toggleHighContrast=T.a("toggleHighContrast","Toggle High Contrast Theme")})(U||(U={}));var A;(function(c){c.bulkEditServiceSummary=T.a("bulkEditServiceSummary","Made {0} edits in {1} files")})(A||(A={}))},AKMP:function(_t,P,e){"use strict";e.d(P,"b",function(){return U}),e.d(P,"a",function(){return A});var T=e("EffR"),re=e("MNsG"),J=e("D3Dy"),N=e("51f4"),H=e("XSiN"),z=e("pmY6"),M=e("CjF5");function U(c,y){var L=new H.b(y);return L.preventDefault(),{leftButton:L.leftButton,buttons:L.buttons,posx:L.posx,posy:L.posy}}var A=function(){function c(){this._hooks=new z.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}return c.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},c.prototype.stopMonitoring=function(y){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var L=this._onStopCallback;this._onStopCallback=null,y&&L&&L()},c.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},c.prototype.startMonitoring=function(y,L,f,v,S){var g=this;if(this.isMonitoring())return;this._mouseMoveEventMerger=f,this._mouseMoveCallback=v,this._onStopCallback=S;var u=N.a.getSameOriginWindowChain(),s=re.c&&M.a.pointerEvents?"pointermove":"mousemove",l=re.c&&M.a.pointerEvents?"pointerup":"mouseup",d=u.map(function(R){return R.window.document}),p=T.E(y);p&&d.unshift(p);for(var E=0,_=d;E<_.length;E++){var x=_[E];this._hooks.add(T.m(x,s,function(R){if(!J.i&&R.buttons!==L){g.stopMonitoring(!0);return}g._mouseMoveCallback(R)},function(R,$){return g._mouseMoveEventMerger(R,$)})),this._hooks.add(T.j(x,l,function(R){return g.stopMonitoring(!0)}))}if(N.a.hasDifferentOriginAncestor()){var F=u[u.length-1];this._hooks.add(T.j(F.window.document,"mouseout",function(R){var $=new H.b(R);$.target.tagName.toLowerCase()==="html"&&g.stopMonitoring(!0)})),this._hooks.add(T.j(F.window.document,"mouseover",function(R){var $=new H.b(R);$.target.tagName.toLowerCase()==="html"&&g.stopMonitoring(!0)})),this._hooks.add(T.j(F.window.document.body,"mouseleave",function(R){g.stopMonitoring(!0)}))}},c}()},AbCa:function(_t,P,e){},AhDq:function(_t,P,e){"use strict";e.r(P),e.d(P,"GotoLineEntry",function(){return f}),e.d(P,"GotoLineAction",function(){return v});var T=e("C9rm"),re=e.n(T),J=e("N0LK"),N=e("Rpxm"),H=e("sFUC"),z=e("sswD"),M=e("cGHE"),U=e("aokT"),A=e("wQH0"),c=e("rzPn"),y=e("A9l+"),L=function(){var S=function(u,s){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var p in d)d.hasOwnProperty(p)&&(l[p]=d[p])},S(u,s)};return function(g,u){S(g,u);function s(){this.constructor=g}g.prototype=u===null?Object.create(u):(s.prototype=u.prototype,new s)}}(),f=function(S){L(g,S);function g(u,s,l){var d=S.call(this)||this;return d.editor=s,d.decorator=l,d.parseResult=d.parseInput(u),d}return g.prototype.parseInput=function(u){var s=u.split(",").map(function(x){return parseInt(x,10)}).filter(function(x){return!isNaN(x)}),l;s.length===0?l=new M.a(-1,-1):s.length===1?l=new M.a(s[0],1):l=new M.a(s[0],s[1]);var d;if(Object(H.a)(this.editor))d=this.editor.getModel();else{var p=this.editor.getModel();d=p?p.modified:null}var E=d?d.validatePosition(l).equals(l):!1,_;return E?l.column&&l.column>1?_=J.r(y.b.gotoLineLabelValidLineAndColumn,l.lineNumber,l.column):_=J.r(y.b.gotoLineLabelValidLine,l.lineNumber):l.lineNumber<1||l.lineNumber>(d?d.getLineCount():0)?_=J.r(y.b.gotoLineLabelEmptyWithLineLimit,d?d.getLineCount():0):_=J.r(y.b.gotoLineLabelEmptyWithLineAndColumnLimit,d?d.getLineMaxColumn(l.lineNumber):0),{position:l,isValid:E,label:_}},g.prototype.getLabel=function(){return this.parseResult.label},g.prototype.getAriaLabel=function(){var u=this.editor.getPosition(),s=u?u.lineNumber:0;return J.r(y.b.gotoLineAriaLabel,s,this.parseResult.label)},g.prototype.run=function(u,s){return u===1?this.runOpen():this.runPreview()},g.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var u=this.toSelection();return this.editor.setSelection(u),this.editor.revealRangeInCenter(u,0),this.editor.focus(),!0},g.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var u=this.toSelection();return this.editor.revealRangeInCenter(u,0),this.decorator.decorateLine(u,this.editor),!1},g.prototype.toSelection=function(){return new U.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},g}(N.a),v=function(S){L(g,S);function g(){return S.call(this,y.b.gotoLineActionInput,{id:"editor.action.gotoLine",label:y.b.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:A.a.focus,primary:2048|37,mac:{primary:256|37},weight:100}})||this}return g.prototype.run=function(u,s){var l=this;this._show(this.getController(s),{getModel:function(p){return new N.c([new f(p,s,l.getController(s))])},getAutoFocus:function(p){return{autoFocusFirstEntry:p.length>0}}})},g}(c.a);Object(z.f)(v)},ApJL:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return e.e(248).then(e.bind(null,"AoeA"))}})},BEdG:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return e.e(299).then(e.bind(null,"aH2L"))}})},BFtn:function(_t,P,e){"use strict";e.d(P,"a",function(){return T}),e.d(P,"b",function(){return J});function T(N,H){for(var z=N.getCount(),M=N.findTokenIndexAtOffset(H),U=N.getLanguageId(M),A=M;A+1<z&&N.getLanguageId(A+1)===U;)A++;for(var c=M;c>0&&N.getLanguageId(c-1)===U;)c--;return new re(N,U,c,A+1,N.getStartOffset(c),N.getEndOffset(A))}var re=function(){function N(H,z,M,U,A,c){this._actual=H,this.languageId=z,this._firstTokenIndex=M,this._lastTokenIndex=U,this.firstCharOffset=A,this._lastCharOffset=c}return N.prototype.getLineContent=function(){var H=this._actual.getLineContent();return H.substring(this.firstCharOffset,this._lastCharOffset)},N.prototype.getActualLineContentBefore=function(H){var z=this._actual.getLineContent();return z.substring(0,this.firstCharOffset+H)},N.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},N.prototype.findTokenIndexAtOffset=function(H){return this._actual.findTokenIndexAtOffset(H+this.firstCharOffset)-this._firstTokenIndex},N.prototype.getStandardTokenType=function(H){return this._actual.getStandardTokenType(H+this._firstTokenIndex)},N}();function J(N){return(N&7)!==0}},BUKB:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return e.e(295).then(e.bind(null,"xT+r"))}})},BjKj:function(_t,P,e){},"C/vA":function(_t,P,e){"use strict";e.d(P,"a",function(){return T});function T(re){var J=this,N=!1,H;return function(){return N||(N=!0,H=re.apply(J,arguments)),H}}},"C1Q+":function(_t,P,e){"use strict";e.d(P,"f",function(){return jt}),e.d(P,"e",function(){return at}),e.d(P,"b",function(){return tt}),e.d(P,"g",function(){return ct}),e.d(P,"h",function(){return bt}),e.d(P,"d",function(){return mt}),e.d(P,"c",function(){return Ct}),e.d(P,"a",function(){return Gt});var T=function(){function It(Et){this.executor=Et,this._didRun=!1}return It.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(Et){this._error=Et}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(It.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),It}(),re=e("pmY6"),J=e("N0LK"),N=e("sswD"),H=e("x/UI"),z=e("wQH0"),M=e("hJVp"),U=e("6OMU"),A=e("/cxE"),c=e("NR8r"),y=e("Cg/j"),L=e("EffR"),f=e("WqXY"),v=e("8HAY"),S=e("cGHE"),g=e("twdY"),u=e("nlbu"),s=e("Uzvx"),l=e("bexQ"),d=function(){var It=function(Je,$e){return It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},It(Je,$e)};return function(Et,Je){It(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),p=function(){return p=Object.assign||function(It){for(var Et,Je=1,$e=arguments.length;Je<$e;Je++){Et=arguments[Je];for(var ze in Et)Object.prototype.hasOwnProperty.call(Et,ze)&&(It[ze]=Et[ze])}return It},p.apply(this,arguments)},E=function(It,Et,Je,$e){var ze=arguments.length,Ke=ze<3?Et:$e===null?$e=Object.getOwnPropertyDescriptor(Et,Je):$e,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(It,Et,Je,$e);else for(var G=It.length-1;G>=0;G--)(fe=It[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},_=function(It,Et){return function(Je,$e){Et(Je,$e,It)}},x=function(It,Et,Je,$e){function ze(Ke){return Ke instanceof Je?Ke:new Je(function(fe){fe(Ke)})}return new(Je||(Je=Promise))(function(Ke,fe){function G(de){try{Y($e.next(de))}catch(Fe){fe(Fe)}}function te(de){try{Y($e.throw(de))}catch(Fe){fe(Fe)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(It,Et||[])).next())})},F=function(It,Et){var Je={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},$e,ze,Ke,fe;return fe={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function G(Y){return function(de){return te([Y,de])}}function te(Y){if($e)throw new TypeError("Generator is already executing.");for(;Je;)try{if($e=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return Je.label++,{value:Y[1],done:!1};case 5:Je.label++,ze=Y[1],Y=[0];continue;case 7:Y=Je.ops.pop(),Je.trys.pop();continue;default:if(!(Ke=Je.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){Je=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]<Ke[3])){Je.label=Y[1];break}if(Y[0]===6&&Je.label<Ke[1]){Je.label=Ke[1],Ke=Y;break}if(Ke&&Je.label<Ke[2]){Je.label=Ke[2],Je.ops.push(Y);break}Ke[2]&&Je.ops.pop(),Je.trys.pop();continue}Y=Et.call(It,Je)}catch(de){Y=[6,de],ze=0}finally{$e=Ke=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}},R=function(){for(var It=0,Et=0,Je=arguments.length;Et<Je;Et++)It+=arguments[Et].length;for(var $e=Array(It),ze=0,Et=0;Et<Je;Et++)for(var Ke=arguments[Et],fe=0,G=Ke.length;fe<G;fe++,ze++)$e[ze]=Ke[fe];return $e},$=function(It){d(Et,It);function Et(Je,$e){var ze=It.call(this,Je.command?Je.command.id:Je.title,Je.title,void 0,!Je.disabled,$e)||this;return ze.action=Je,ze}return Et}(v.a),ie=function(It){d(Et,It);function Et(Je,$e,ze,Ke){var fe=It.call(this)||this;return fe._editor=Je,fe._delegate=$e,fe._contextMenuService=ze,fe._visible=!1,fe._showingActions=fe._register(new re.d),fe._keybindingResolver=new W({getKeybindings:function(){return Ke.getKeybindings()}}),fe}return Object.defineProperty(Et.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),Et.prototype.show=function(Je,$e,ze,Ke){return x(this,void 0,void 0,function(){var fe,G,te,Y,de=this;return F(this,function(Fe){if(fe=Ke.includeDisabledActions?$e.allActions:$e.validActions,!fe.length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(A.a)();return this._visible=!0,this._showingActions.value=$e,G=this.getMenuActions(Je,fe),te=S.a.isIPosition(ze)?this._toCoords(ze):ze||{x:0,y:0},Y=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return te},getActions:function(){return G},onHide:function(){de._visible=!1,de._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(Tt){return Tt instanceof $?Y(Tt.action):void 0}}),[2]})})},Et.prototype.getMenuActions=function(Je,$e){var ze=this,Ke,fe,G=function(en){return new $(en,function(){return ze._delegate.onSelectCodeAction(en)})},te=$e.map(G),Y=this._editor.getModel();if(Y&&te.length)for(var de=0,Fe=g.a.all(Y);de<Fe.length;de++){var lt=Fe[de];if(lt._getAdditionalMenuItems){var Tt=lt._getAdditionalMenuItems({trigger:Je.type,only:(fe=(Ke=Je.filter)===null||Ke===void 0?void 0:Ke.include)===null||fe===void 0?void 0:fe.value},$e);Tt.length&&te.push.apply(te,R([new f.d],Tt.map(function(Jt){return G({title:Jt.title,command:Jt})})))}}return te},Et.prototype._toCoords=function(Je){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(Je,1),this._editor.render();var $e=this._editor.getScrolledVisiblePosition(Je),ze=Object(L.C)(this._editor.getDomNode()),Ke=ze.left+$e.left,fe=ze.top+$e.top+$e.height;return{x:Ke,y:fe}},Et=E([_(2,s.a),_(3,l.a)],Et),Et}(re.a),W=function(){function It(Et){this._keybindingProvider=Et}return It.prototype.getResolver=function(){var Et=this,Je=new T(function(){return Et._keybindingProvider.getKeybindings().filter(function($e){return It.codeActionCommands.indexOf($e.command)>=0}).filter(function($e){return $e.resolvedKeybinding}).map(function($e){var ze=$e.commandArgs;return $e.command===M.d?ze={kind:u.b.SourceOrganizeImports.value}:$e.command===M.b&&(ze={kind:u.b.SourceFixAll.value}),p({resolvedKeybinding:$e.resolvedKeybinding},u.a.fromUser(ze,{kind:u.b.None,apply:"never"}))})});return function($e){if($e.kind){var ze=Et.bestKeybindingForCodeAction($e,Je.getValue());return ze==null?void 0:ze.resolvedKeybinding}return}},It.prototype.bestKeybindingForCodeAction=function(Et,Je){if(!Et.kind)return;var $e=new u.b(Et.kind);return Je.filter(function(ze){return ze.kind.contains($e)}).filter(function(ze){return ze.preferred?Et.isPreferred:!0}).reduceRight(function(ze,Ke){return ze?ze.kind.contains(Ke.kind)?Ke:ze:Ke},void 0)},It.codeActionCommands=[M.e,M.a,M.f,M.d,M.b],It}(),B=e("AKMP"),le=e("MI8n"),be=e("MNXI"),De=e("tX9W"),Te=e("3/fG"),ke=e("t9D7"),He=e("MD5Z"),je=e("pg8w"),oe=function(){var It=function(Je,$e){return It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},It(Je,$e)};return function(Et,Je){It(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),ee=function(It,Et,Je,$e){var ze=arguments.length,Ke=ze<3?Et:$e===null?$e=Object.getOwnPropertyDescriptor(Et,Je):$e,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(It,Et,Je,$e);else for(var G=It.length-1;G>=0;G--)(fe=It[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},ae=function(It,Et){return function(Je,$e){Et(Je,$e,It)}},q;(function(It){It.Hidden={type:0};var Et=function(){function Je($e,ze,Ke,fe){this.actions=$e,this.trigger=ze,this.editorPosition=Ke,this.widgetPosition=fe,this.type=1}return Je}();It.Showing=Et})(q||(q={}));var ce=function(It){oe(Et,It);function Et(Je,$e,ze,Ke){var fe=It.call(this)||this;return fe._editor=Je,fe._quickFixActionId=$e,fe._preferredFixActionId=ze,fe._keybindingService=Ke,fe._onClick=fe._register(new le.a),fe.onClick=fe._onClick.event,fe._state=q.Hidden,fe._domNode=document.createElement("div"),fe._domNode.className="codicon codicon-lightbulb",fe._editor.addContentWidget(fe),fe._register(fe._editor.onDidChangeModelContent(function(G){var te=fe._editor.getModel();(fe.state.type!==1||!te||fe.state.editorPosition.lineNumber>=te.getLineCount())&&fe.hide()})),je.b.ignoreTarget(fe._domNode),fe._register(L.n(fe._domNode,function(G){if(fe.state.type!==1)return;fe._editor.focus(),G.preventDefault();var te=L.C(fe._domNode),Y=te.top,de=te.height,Fe=fe._editor.getOption(49),lt=Math.floor(Fe/3);fe.state.widgetPosition.position!==null&&fe.state.widgetPosition.position.lineNumber<fe.state.editorPosition.lineNumber&&(lt+=Fe),fe._onClick.fire({x:G.posx,y:Y+de+lt,actions:fe.state.actions,trigger:fe.state.trigger})})),fe._register(L.j(fe._domNode,"mouseenter",function(G){if((G.buttons&1)!==1)return;fe.hide();var te=new B.a;te.startMonitoring(G.target,G.buttons,B.b,function(){},function(){te.dispose()})})),fe._register(fe._editor.onDidChangeConfiguration(function(G){G.hasChanged(47)&&!fe._editor.getOption(47).enabled&&fe.hide()})),fe._updateLightBulbTitle(),fe._register(fe._keybindingService.onDidUpdateKeybindings(fe._updateLightBulbTitle,fe)),fe}return Et.prototype.dispose=function(){It.prototype.dispose.call(this),this._editor.removeContentWidget(this)},Et.prototype.getId=function(){return"LightBulbWidget"},Et.prototype.getDomNode=function(){return this._domNode},Et.prototype.getPosition=function(){return this._state.type===1?this._state.widgetPosition:null},Et.prototype.update=function(Je,$e,ze){var Ke=this;if(Je.validActions.length<=0)return this.hide();var fe=this._editor.getOptions();if(!fe.get(47).enabled)return this.hide();var G=ze.lineNumber,te=ze.column,Y=this._editor.getModel();if(!Y)return this.hide();var de=Y.getOptions().tabSize,Fe=fe.get(34),lt=Y.getLineContent(G),Tt=De.b.computeIndentLevel(lt,de),Jt=Fe.spaceWidth*Tt>22,en=function(En){return En>2&&Ke._editor.getTopForLineNumber(En)===Ke._editor.getTopForLineNumber(En-1)},gn=G;if(!Jt){if(G>1&&!en(G-1))gn-=1;else if(!en(G+1))gn+=1;else if(te*Fe.spaceWidth<22)return this.hide()}this.state=new q.Showing(Je,$e,ze,{position:{lineNumber:gn,column:1},preference:Et._posPref}),L.Y(this._domNode,"codicon-lightbulb-autofix",Je.hasAutoFix),this._editor.layoutContentWidget(this)},Et.prototype.hide=function(){this.state=q.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(Et.prototype,"state",{get:function(){return this._state},set:function($e){this._state=$e,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),Et.prototype._updateLightBulbTitle=function(){if(this.state.type===1&&this.state.actions.hasAutoFix){var Je=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(Je){this.title=Te.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",Je.getLabel());return}}var $e=this._keybindingService.lookupKeybinding(this._quickFixActionId);$e?this.title=Te.a("quickFixWithKb","Show Fixes ({0})",$e.getLabel()):this.title=Te.a("quickFix","Show Fixes")},Object.defineProperty(Et.prototype,"title",{set:function($e){this._domNode.title=$e},enumerable:!0,configurable:!0}),Et._posPref=[0],Et=ee([ae(3,l.a)],Et),Et}(re.a);Object(ke.e)(function(It,Et){var Je=It.getColor(He.J);Je&&Et.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb {
color: `+Je+`;
}`);var $e=It.getColor(He.I);$e&&Et.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb-autofix {
color: `+$e+`;
}`)});var X=function(){var It=function(Je,$e){return It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},It(Je,$e)};return function(Et,Je){It(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),he=function(It,Et,Je,$e){var ze=arguments.length,Ke=ze<3?Et:$e===null?$e=Object.getOwnPropertyDescriptor(Et,Je):$e,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(It,Et,Je,$e);else for(var G=It.length-1;G>=0;G--)(fe=It[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},Pe=function(It,Et){return function(Je,$e){Et(Je,$e,It)}},Xe=function(It,Et,Je,$e){function ze(Ke){return Ke instanceof Je?Ke:new Je(function(fe){fe(Ke)})}return new(Je||(Je=Promise))(function(Ke,fe){function G(de){try{Y($e.next(de))}catch(Fe){fe(Fe)}}function te(de){try{Y($e.throw(de))}catch(Fe){fe(Fe)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(It,Et||[])).next())})},pe=function(It,Et){var Je={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},$e,ze,Ke,fe;return fe={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function G(Y){return function(de){return te([Y,de])}}function te(Y){if($e)throw new TypeError("Generator is already executing.");for(;Je;)try{if($e=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return Je.label++,{value:Y[1],done:!1};case 5:Je.label++,ze=Y[1],Y=[0];continue;case 7:Y=Je.ops.pop(),Je.trys.pop();continue;default:if(!(Ke=Je.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){Je=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]<Ke[3])){Je.label=Y[1];break}if(Y[0]===6&&Je.label<Ke[1]){Je.label=Ke[1],Ke=Y;break}if(Ke&&Je.label<Ke[2]){Je.label=Ke[2],Je.ops.push(Y);break}Ke[2]&&Je.ops.pop(),Je.trys.pop();continue}Y=Et.call(It,Je)}catch(de){Y=[6,de],ze=0}finally{$e=Ke=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}},me=function(It){X(Et,It);function Et(Je,$e,ze,Ke,fe){var G=It.call(this)||this;return G._editor=Je,G.delegate=Ke,G._activeCodeActions=G._register(new re.d),G._codeActionWidget=new T(function(){return G._register(fe.createInstance(ie,G._editor,{onSelectCodeAction:function(Y){return Xe(G,void 0,void 0,function(){return pe(this,function(de){return this.delegate.applyCodeAction(Y,!0),[2]})})}}))}),G._lightBulbWidget=new T(function(){var te=G._register(fe.createInstance(ce,G._editor,$e,ze));return G._register(te.onClick(function(Y){return G.showCodeActionList(Y.trigger,Y.actions,Y,{includeDisabledActions:!1})})),te}),G}return Et.prototype.update=function(Je){var $e,ze,Ke;return Xe(this,void 0,void 0,function(){var fe,G,te,Y,de;return pe(this,function(Fe){switch(Fe.label){case 0:if(Je.type!==1)return($e=this._lightBulbWidget.rawValue)===null||$e===void 0||$e.hide(),[2];Fe.label=1;case 1:return Fe.trys.push([1,3,,4]),[4,Je.actions];case 2:return fe=Fe.sent(),[3,4];case 3:return G=Fe.sent(),Object(A.e)(G),[2];case 4:if(this._lightBulbWidget.getValue().update(fe,Je.trigger,Je.position),!(Je.trigger.type===2))return[3,11];if(!((ze=Je.trigger.filter)===null||ze===void 0?void 0:ze.include))return[3,10];if(te=this.tryGetValidActionToApply(Je.trigger,fe),!te)return[3,9];Fe.label=5;case 5:return Fe.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(te,!1)];case 6:return Fe.sent(),[3,8];case 7:return fe.dispose(),[7];case 8:return[2];case 9:if(Je.trigger.context&&(Y=this.getInvalidActionThatWouldHaveBeenApplied(Je.trigger,fe),Y&&Y.disabled))return c.a.get(this._editor).showMessage(Y.disabled,Je.trigger.context.position),fe.dispose(),[2];Fe.label=10;case 10:return de=!!((Ke=Je.trigger.filter)===null||Ke===void 0?void 0:Ke.include),Je.trigger.context&&(!fe.allActions.length||!de&&!fe.validActions.length)?(c.a.get(this._editor).showMessage(Je.trigger.context.notAvailableMessage,Je.trigger.context.position),this._activeCodeActions.value=fe,fe.dispose(),[2]):(this._activeCodeActions.value=fe,this._codeActionWidget.getValue().show(Je.trigger,fe,Je.position,{includeDisabledActions:de}),[3,12]);case 11:this._codeActionWidget.getValue().isVisible?fe.dispose():this._activeCodeActions.value=fe,Fe.label=12;case 12:return[2]}})})},Et.prototype.getInvalidActionThatWouldHaveBeenApplied=function(Je,$e){return $e.allActions.length&&(Je.autoApply==="first"&&$e.validActions.length===0||Je.autoApply==="ifSingle"&&$e.allActions.length===1)?Object(U.h)($e.allActions,function(ze){return ze.disabled}):void 0},Et.prototype.tryGetValidActionToApply=function(Je,$e){return $e.validActions.length&&(Je.autoApply==="first"&&$e.validActions.length>0||Je.autoApply==="ifSingle"&&$e.validActions.length===1)?$e.validActions[0]:void 0},Et.prototype.showCodeActionList=function(Je,$e,ze,Ke){return Xe(this,void 0,void 0,function(){return pe(this,function(fe){return this._codeActionWidget.getValue().show(Je,$e,ze,Ke),[2]})})},Et=he([Pe(4,y.a)],Et),Et}(re.a),Se=e("nnTU"),Re=e("T8No"),Ee=e("tADe"),ve=e("sM1p"),Q=e("tTk5"),b=e("XXUj"),k=e("X+cX"),se=e("aokT"),ne=e("gslv"),Ce=function(){var It=function(Je,$e){return It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},It(Je,$e)};return function(Et,Je){It(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),Oe=new Re.d("supportedCodeAction",""),we=function(It){Ce(Et,It);function Et(Je,$e,ze,Ke){Ke===void 0&&(Ke=250);var fe=It.call(this)||this;return fe._editor=Je,fe._markerService=$e,fe._signalChange=ze,fe._delay=Ke,fe._autoTriggerTimer=fe._register(new k.e),fe._register(fe._markerService.onMarkerChanged(function(G){return fe._onMarkerChanges(G)})),fe._register(fe._editor.onDidChangeCursorPosition(function(){return fe._onCursorChange()})),fe}return Et.prototype.trigger=function(Je){var $e=this._getRangeOfSelectionUnlessWhitespaceEnclosed(Je);return this._createEventAndSignalChange(Je,$e)},Et.prototype._onMarkerChanges=function(Je){var $e=this,ze=this._editor.getModel();if(!ze)return;Je.some(function(Ke){return Object(ne.e)(Ke,ze.uri)})&&this._autoTriggerTimer.cancelAndSet(function(){$e.trigger({type:1})},this._delay)},Et.prototype._onCursorChange=function(){var Je=this;this._autoTriggerTimer.cancelAndSet(function(){Je.trigger({type:1})},this._delay)},Et.prototype._getRangeOfMarker=function(Je){var $e=this._editor.getModel();if(!$e)return;for(var ze=0,Ke=this._markerService.read({resource:$e.uri});ze<Ke.length;ze++){var fe=Ke[ze],G=$e.validateRange(fe);if(se.a.intersectRanges(G,Je))return se.a.lift(G)}return},Et.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(Je){if(!this._editor.hasModel())return;var $e=this._editor.getModel(),ze=this._editor.getSelection();if(ze.isEmpty()&&Je.type===1){var Ke=ze.getPosition(),fe=Ke.lineNumber,G=Ke.column,te=$e.getLineContent(fe);if(te.length===0)return;if(G===1){if(/\s/.test(te[0]))return}else if(G===$e.getLineMaxColumn(fe)){if(/\s/.test(te[te.length-1]))return}else if(/\s/.test(te[G-2])&&/\s/.test(te[G-1]))return}return ze},Et.prototype._createEventAndSignalChange=function(Je,$e){var ze=this._editor.getModel();if(!$e||!ze){this._signalChange(void 0);return}var Ke=this._getRangeOfMarker($e),fe=Ke?Ke.getStartPosition():$e.getStartPosition(),G={trigger:Je,selection:$e,position:fe};return this._signalChange(G),G},Et}(re.a),Ve;(function(It){It.Empty={type:0};var Et=function(){function Je($e,ze,Ke,fe){this.trigger=$e,this.rangeOrSelection=ze,this.position=Ke,this.actions=fe,this.type=1}return Je}();It.Triggered=Et})(Ve||(Ve={}));var Qe=function(It){Ce(Et,It);function Et(Je,$e,ze,Ke){var fe=It.call(this)||this;return fe._editor=Je,fe._markerService=$e,fe._progressService=Ke,fe._codeActionOracle=fe._register(new re.d),fe._state=Ve.Empty,fe._onDidChangeState=fe._register(new le.a),fe.onDidChangeState=fe._onDidChangeState.event,fe._supportedCodeActions=Oe.bindTo(ze),fe._register(fe._editor.onDidChangeModel(function(){return fe._update()})),fe._register(fe._editor.onDidChangeModelLanguage(function(){return fe._update()})),fe._register(g.a.onDidChange(function(){return fe._update()})),fe._update(),fe}return Et.prototype.dispose=function(){It.prototype.dispose.call(this),this.setState(Ve.Empty,!0)},Et.prototype._update=function(){var Je=this;this._codeActionOracle.value=void 0,this.setState(Ve.Empty);var $e=this._editor.getModel();if($e&&g.a.has($e)&&!this._editor.getOption(68)){for(var ze=[],Ke=0,fe=g.a.all($e);Ke<fe.length;Ke++){var G=fe[Ke];Array.isArray(G.providedCodeActionKinds)&&ze.push.apply(ze,G.providedCodeActionKinds)}this._supportedCodeActions.set(ze.join(" ")),this._codeActionOracle.value=new we(this._editor,this._markerService,function(te){if(!te){Je.setState(Ve.Empty);return}var Y=Object(k.f)(function(de){return Object(M.c)($e,te.selection,te.trigger,de)});Je._progressService&&te.trigger.type===2&&Je._progressService.showWhile(Y,250),Je.setState(new Ve.Triggered(te.trigger,te.selection,te.position,Y))},void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()},Et.prototype.trigger=function(Je){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(Je)},Et.prototype.setState=function(Je,$e){if(Je===this._state)return;this._state.type===1&&this._state.actions.cancel(),this._state=Je,$e||this._onDidChangeState.fire(Je)},Et}(re.a),it=function(){var It=function(Je,$e){return It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},It(Je,$e)};return function(Et,Je){It(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),gt=function(It,Et,Je,$e){var ze=arguments.length,Ke=ze<3?Et:$e===null?$e=Object.getOwnPropertyDescriptor(Et,Je):$e,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(It,Et,Je,$e);else for(var G=It.length-1;G>=0;G--)(fe=It[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},Rt=function(It,Et){return function(Je,$e){Et(Je,$e,It)}},Dt=function(It,Et,Je,$e){function ze(Ke){return Ke instanceof Je?Ke:new Je(function(fe){fe(Ke)})}return new(Je||(Je=Promise))(function(Ke,fe){function G(de){try{Y($e.next(de))}catch(Fe){fe(Fe)}}function te(de){try{Y($e.throw(de))}catch(Fe){fe(Fe)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(It,Et||[])).next())})},zt=function(It,Et){var Je={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},$e,ze,Ke,fe;return fe={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function G(Y){return function(de){return te([Y,de])}}function te(Y){if($e)throw new TypeError("Generator is already executing.");for(;Je;)try{if($e=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return Je.label++,{value:Y[1],done:!1};case 5:Je.label++,ze=Y[1],Y=[0];continue;case 7:Y=Je.ops.pop(),Je.trys.pop();continue;default:if(!(Ke=Je.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){Je=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]<Ke[3])){Je.label=Y[1];break}if(Y[0]===6&&Je.label<Ke[1]){Je.label=Ke[1],Ke=Y;break}if(Ke&&Je.label<Ke[2]){Je.label=Ke[2],Je.ops.push(Y);break}Ke[2]&&Je.ops.pop(),Je.trys.pop();continue}Y=Et.call(It,Je)}catch(de){Y=[6,de],ze=0}finally{$e=Ke=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}},cn=function(){for(var It=0,Et=0,Je=arguments.length;Et<Je;Et++)It+=arguments[Et].length;for(var $e=Array(It),ze=0,Et=0;Et<Je;Et++)for(var Ke=arguments[Et],fe=0,G=Ke.length;fe<G;fe++,ze++)$e[ze]=Ke[fe];return $e};function ln(It){return Re.a.regex(Oe.keys()[0],new RegExp("(\\s|^)"+Object(J.p)(It.value)+"\\b"))}var an={type:"object",required:["kind"],defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:Te.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:Te.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[Te.a("args.schema.apply.first","Always apply the first returned code action."),Te.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),Te.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:Te.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},jt=function(It){it(Et,It);function Et(Je,$e,ze,Ke,fe){var G=It.call(this)||this;return G._instantiationService=fe,G._editor=Je,G._model=G._register(new Qe(G._editor,$e,ze,Ke)),G._register(G._model.onDidChangeState(function(te){return G.update(te)})),G._ui=new T(function(){return G._register(new me(Je,at.Id,Gt.Id,{applyCodeAction:function(Y,de){return Dt(G,void 0,void 0,function(){return zt(this,function(Fe){switch(Fe.label){case 0:return Fe.trys.push([0,,2,3]),[4,this._applyCodeAction(Y)];case 1:return Fe.sent(),[3,3];case 2:return de&&this._trigger({type:1,filter:{}}),[7];case 3:return[2]}})})}},G._instantiationService))}),G}return Et.get=function(Je){return Je.getContribution(Et.ID)},Et.prototype.update=function(Je){this._ui.getValue().update(Je)},Et.prototype.showCodeActions=function(Je,$e,ze){return this._ui.getValue().showCodeActionList(Je,$e,ze,{includeDisabledActions:!1})},Et.prototype.manualTriggerAtCurrentPosition=function(Je,$e,ze){if(!this._editor.hasModel())return;c.a.get(this._editor).closeMessage();var Ke=this._editor.getPosition();this._trigger({type:2,filter:$e,autoApply:ze,context:{notAvailableMessage:Je,position:Ke}})},Et.prototype._trigger=function(Je){return this._model.trigger(Je)},Et.prototype._applyCodeAction=function(Je){return this._instantiationService.invokeFunction(ft,Je,this._editor)},Et.ID="editor.contrib.quickFixController",Et=gt([Rt(1,Ee.b),Rt(2,Re.c),Rt(3,Q.a),Rt(4,y.a)],Et),Et}(re.a);function ft(It,Et,Je){return Dt(this,void 0,void 0,function(){var $e,ze,Ke,fe,G,te;return zt(this,function(Y){switch(Y.label){case 0:return $e=It.get(H.a),ze=It.get(Se.b),Ke=It.get(b.a),fe=It.get(ve.a),Ke.publicLog2("codeAction.applyCodeAction",{codeActionTitle:Et.title,codeActionKind:Et.kind,codeActionIsPreferred:!!Et.isPreferred}),Et.edit?[4,$e.apply(Et.edit,{editor:Je})]:[3,2];case 1:Y.sent(),Y.label=2;case 2:if(!Et.command)return[3,6];Y.label=3;case 3:return Y.trys.push([3,5,,6]),[4,ze.executeCommand.apply(ze,cn([Et.command.id],Et.command.arguments||[]))];case 4:return Y.sent(),[3,6];case 5:return G=Y.sent(),te=vt(G),fe.error(typeof te=="string"?te:Te.a("applyCodeActionFailed","An unknown error occurred while applying the code action")),[3,6];case 6:return[2]}})})}function vt(It){return typeof It=="string"?It:It instanceof Error&&typeof It.message=="string"?It.message:void 0}function xt(It,Et,Je,$e){if(It.hasModel()){var ze=jt.get(It);ze&&ze.manualTriggerAtCurrentPosition(Et,Je,$e)}}var at=function(It){it(Et,It);function Et(){return It.call(this,{id:Et.Id,label:Te.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:Re.a.and(z.a.writable,z.a.hasCodeActionsProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:2048|84,weight:100}})||this}return Et.prototype.run=function(Je,$e){return xt($e,Te.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},Et.Id="editor.action.quickFix",Et}(N.b),tt=function(It){it(Et,It);function Et(){return It.call(this,{id:M.a,precondition:Re.a.and(z.a.writable,z.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:an}]}})||this}return Et.prototype.runEditorCommand=function(Je,$e,ze){var Ke=u.a.fromUser(ze,{kind:u.b.Empty,apply:"ifSingle"});return xt($e,typeof(ze==null?void 0:ze.kind)=="string"?Ke.preferred?Te.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",ze.kind):Te.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",ze.kind):Ke.preferred?Te.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):Te.a("editor.action.codeAction.noneMessage","No code actions available"),{include:Ke.kind,includeSourceActions:!0,onlyIncludePreferredActions:Ke.preferred},Ke.apply)},Et}(N.c),ct=function(It){it(Et,It);function Et(){return It.call(this,{id:M.e,label:Te.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:Re.a.and(z.a.writable,z.a.hasCodeActionsProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:2048|1024|48,mac:{primary:256|1024|48},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:Re.a.and(z.a.writable,ln(u.b.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:an}]}})||this}return Et.prototype.run=function(Je,$e,ze){var Ke=u.a.fromUser(ze,{kind:u.b.Refactor,apply:"never"});return xt($e,typeof(ze==null?void 0:ze.kind)=="string"?Ke.preferred?Te.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",ze.kind):Te.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",ze.kind):Ke.preferred?Te.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):Te.a("editor.action.refactor.noneMessage","No refactorings available"),{include:u.b.Refactor.contains(Ke.kind)?Ke.kind:u.b.None,onlyIncludePreferredActions:Ke.preferred},Ke.apply)},Et}(N.b),bt=function(It){it(Et,It);function Et(){return It.call(this,{id:M.f,label:Te.a("source.label","Source Action..."),alias:"Source Action...",precondition:Re.a.and(z.a.writable,z.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:Re.a.and(z.a.writable,ln(u.b.Source))},description:{description:"Source Action...",args:[{name:"args",schema:an}]}})||this}return Et.prototype.run=function(Je,$e,ze){var Ke=u.a.fromUser(ze,{kind:u.b.Source,apply:"never"});return xt($e,typeof(ze==null?void 0:ze.kind)=="string"?Ke.preferred?Te.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",ze.kind):Te.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",ze.kind):Ke.preferred?Te.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):Te.a("editor.action.source.noneMessage","No source actions available"),{include:u.b.Source.contains(Ke.kind)?Ke.kind:u.b.None,includeSourceActions:!0,onlyIncludePreferredActions:Ke.preferred},Ke.apply)},Et}(N.b),mt=function(It){it(Et,It);function Et(){return It.call(this,{id:M.d,label:Te.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:Re.a.and(z.a.writable,ln(u.b.SourceOrganizeImports)),kbOpts:{kbExpr:z.a.editorTextFocus,primary:1024|512|45,weight:100}})||this}return Et.prototype.run=function(Je,$e){return xt($e,Te.a("editor.action.organize.noneMessage","No organize imports action available"),{include:u.b.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")},Et}(N.b),Ct=function(It){it(Et,It);function Et(){return It.call(this,{id:M.b,label:Te.a("fixAll.label","Fix All"),alias:"Fix All",precondition:Re.a.and(z.a.writable,ln(u.b.SourceFixAll))})||this}return Et.prototype.run=function(Je,$e){return xt($e,Te.a("fixAll.noneMessage","No fix all action available"),{include:u.b.SourceFixAll,includeSourceActions:!0},"ifSingle")},Et}(N.b),Gt=function(It){it(Et,It);function Et(){return It.call(this,{id:Et.Id,label:Te.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:Re.a.and(z.a.writable,ln(u.b.QuickFix)),kbOpts:{kbExpr:z.a.editorTextFocus,primary:512|1024|84,mac:{primary:2048|512|84},weight:100}})||this}return Et.prototype.run=function(Je,$e){return xt($e,Te.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:u.b.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},Et.Id="editor.action.autoFix",Et}(N.b)},C6rC:function(_t,P,e){},C9rm:function(_t,P,e){},CClx:function(_t,P,e){},CHaL:function(_t,P,e){},CRAX:function(_t,P,e){"use strict";e.d(P,"a",function(){return M}),e.d(P,"b",function(){return s});var T=e("3/fG"),re=e("MI8n"),J=e("ic2d"),N=e("746U"),H=e("3Rsk"),z=e("QDVR"),M={Configuration:"base.contributions.configuration"},U={properties:{},patternProperties:{}},A={properties:{},patternProperties:{}},c={properties:{},patternProperties:{}},y={properties:{},patternProperties:{}},L={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},v="vscode://schemas/settings/resourceLanguage",S=J.a.as(H.a.JSONContribution),g=function(){function E(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new re.a,this._onDidUpdateConfiguration=new re.a,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:T.a("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},S.registerSchema(v,this.resourceLanguageSettingsSchema)}return E.prototype.registerConfiguration=function(_,x){x===void 0&&(x=!0),this.registerConfigurations([_],x)},E.prototype.registerConfigurations=function(_,x){var F=this;x===void 0&&(x=!0);var R=[];_.forEach(function($){R.push.apply(R,F.validateAndRegisterProperties($,x)),F.configurationContributors.push($),F.registerJSONConfiguration($)}),S.registerSchema(v,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(R)},E.prototype.registerOverrideIdentifiers=function(_){for(var x=0,F=_;x<F.length;x++){var R=F[x];this.overrideIdentifiers.add(R)}this.updateOverridePropertyPatternKey()},E.prototype.validateAndRegisterProperties=function(_,x,F){x===void 0&&(x=!0),F===void 0&&(F=3),F=N.l(_.scope)?F:_.scope;var R=[],$=_.properties;if($)for(var ie in $){if(x&&p(ie)){delete $[ie];continue}var W=$[ie],B=W.default;if(N.k(B)&&(W.default=l(W.type)),s.test(ie)?W.scope=void 0:W.scope=N.l(W.scope)?F:W.scope,$[ie].hasOwnProperty("included")&&!$[ie].included){this.excludedConfigurationProperties[ie]=$[ie],delete $[ie];continue}else this.configurationProperties[ie]=$[ie];R.push(ie)}var le=_.allOf;if(le)for(var be=0,De=le;be<De.length;be++){var Te=De[be];R.push.apply(R,this.validateAndRegisterProperties(Te,x,F))}return R},E.prototype.getConfigurationProperties=function(){return this.configurationProperties},E.prototype.registerJSONConfiguration=function(_){var x=this,F=function R($){var ie=$.properties;if(ie)for(var W in ie){U.properties[W]=ie[W];switch(ie[W].scope){case 1:A.properties[W]=ie[W];break;case 2:c.properties[W]=ie[W];break;case 6:y.properties[W]=ie[W];break;case 3:L.properties[W]=ie[W];break;case 4:f.properties[W]=ie[W];break;case 5:f.properties[W]=ie[W],x.resourceLanguageSettingsSchema.properties[W]=ie[W];break}}var B=$.allOf;B&&B.forEach(R)};F(_)},E.prototype.updateOverridePropertyPatternKey=function(){for(var _,x=0,F=Object(z.e)(this.overrideIdentifiers);x<F.length;x++){var R=F[x],$="["+R+"]",ie={type:"object",description:T.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:T.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:v,default:(_=this.defaultOverridesConfigurationNode.properties[$])===null||_===void 0?void 0:_.default};U.properties[$]=ie,A.properties[$]=ie,c.properties[$]=ie,y.properties[$]=ie,L.properties[$]=ie,f.properties[$]=ie}this._onDidSchemaChange.fire()},E}(),u="\\[.*\\]$",s=new RegExp(u);function l(E){var _=Array.isArray(E)?E[0]:E;switch(_){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var d=new g;J.a.add(M.Configuration,d);function p(E){return s.test(E)?T.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",E):d.getConfigurationProperties()[E]!==void 0?T.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",E):null}},CZ1j:function(_t,P,e){"use strict";e.d(P,"b",function(){return T}),e.d(P,"a",function(){return re});function T(J){return J<0?0:J>255?255:J|0}function re(J){return J<0?0:J>4294967295?4294967295:J|0}},CdFp:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return e.e(243).then(e.bind(null,"6Xso"))}})},"Cg/j":function(_t,P,e){"use strict";e.d(P,"b",function(){return T}),e.d(P,"a",function(){return re}),e.d(P,"c",function(){return N}),e.d(P,"d",function(){return H});var T;(function(z){z.serviceIds=new Map,z.DI_TARGET="$di$target",z.DI_DEPENDENCIES="$di$dependencies";function M(U){return U[z.DI_DEPENDENCIES]||[]}z.getServiceDependencies=M})(T||(T={}));var re=N("instantiationService");function J(z,M,U,A){M[T.DI_TARGET]===M?M[T.DI_DEPENDENCIES].push({id:z,index:U,optional:A}):(M[T.DI_DEPENDENCIES]=[{id:z,index:U,optional:A}],M[T.DI_TARGET]=M)}function N(z){if(T.serviceIds.has(z))return T.serviceIds.get(z);var M=function U(A,c,y){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");J(U,A,y,!1)};return M.toString=function(){return z},T.serviceIds.set(z,M),M}function H(z){return function(M,U,A){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");J(z,M,A,!0)}}},CjF5:function(_t,P,e){"use strict";e.d(P,"a",function(){return J});var T=e("D3Dy"),re=e("MNsG"),J={clipboard:{writeText:re.f||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:re.f||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(T.i)return!1;if(T.e){var N=navigator.userAgent.indexOf("Edge/"),H=parseInt(navigator.userAgent.substring(N+5,navigator.userAgent.indexOf(".",N)),10);if(!H||H>=12&&H<=16)return!1}return!0}()},keyboard:function(){return re.f||T.l?0:navigator.keyboard||T.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)}},CjOT:function(_t,P,e){},Comh:function(_t,P,e){"use strict";e.d(P,"b",function(){return N}),e.d(P,"a",function(){return H});var T=e("N0LK"),re=e("cGHE"),J=e("aokT"),N=function(){function z(M,U,A,c,y){this.value=M,this.selectionStart=U,this.selectionEnd=A,this.selectionStartPosition=c,this.selectionEndPosition=y}return z.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},z.readFromTextArea=function(M){return new z(M.getValue(),M.getSelectionStart(),M.getSelectionEnd(),null,null)},z.prototype.collapseSelection=function(){return new z(this.value,this.value.length,this.value.length,null,null)},z.prototype.writeToTextArea=function(M,U,A){U.setValue(M,this.value),A&&U.setSelectionRange(M,this.selectionStart,this.selectionEnd)},z.prototype.deduceEditorPosition=function(M){if(M<=this.selectionStart){var U=this.value.substring(M,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,U,-1)}if(M>=this.selectionEnd){var U=this.value.substring(this.selectionEnd,M);return this._finishDeduceEditorPosition(this.selectionEndPosition,U,1)}var A=this.value.substring(this.selectionStart,M);if(A.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,A,1);var c=this.value.substring(M,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,c,-1)},z.prototype._finishDeduceEditorPosition=function(M,U,A){for(var c=0,y=-1;(y=U.indexOf(`
`,y+1))!==-1;)c++;return[M,A*U.length,c]},z.selectedText=function(M){return new z(M,0,M.length,null,null)},z.deduceInput=function(M,U,A){if(!M)return{text:"",replaceCharCnt:0};var c=M.value,y=M.selectionStart,L=M.selectionEnd,f=U.value,v=U.selectionStart,S=U.selectionEnd,g=c.substring(L),u=f.substring(S),s=T.d(g,u);f=f.substring(0,f.length-s),c=c.substring(0,c.length-s);var l=c.substring(0,y),d=f.substring(0,v),p=T.c(l,d);if(f=f.substring(p),c=c.substring(p),v-=p,y-=p,S-=p,L-=p,A&&v===S&&c.length>0){var E=null;if(v===f.length?T.N(f,c)&&(E=f.substring(c.length)):T.m(f,c)&&(E=f.substring(0,f.length-c.length)),E!==null&&E.length>0&&(/\uFE0F/.test(E)||T.g(E)))return{text:E,replaceCharCnt:0}}if(v===S){if(c===f&&y===0&&L===c.length&&v===f.length&&f.indexOf(`
`)===-1&&T.h(f))return{text:"",replaceCharCnt:0};var _=l.length-p;return{text:f,replaceCharCnt:_}}var x=L-y;return{text:f,replaceCharCnt:x}},z.EMPTY=new z("",0,0,null,null),z}(),H=function(){function z(){}return z._getPageOfLine=function(M,U){return Math.floor((M-1)/U)},z._getRangeForPage=function(M,U){var A=M*U,c=A+1,y=A+U;return new J.a(c,1,y+1,1)},z.fromEditorSelection=function(M,U,A,c,y){var L=z._getPageOfLine(A.startLineNumber,c),f=z._getRangeForPage(L,c),v=z._getPageOfLine(A.endLineNumber,c),S=z._getRangeForPage(v,c),g=f.intersectRanges(new J.a(1,1,A.startLineNumber,A.startColumn)),u=U.getValueInRange(g,1),s=U.getLineCount(),l=U.getLineMaxColumn(s),d=S.intersectRanges(new J.a(A.endLineNumber,A.endColumn,s,l)),p=U.getValueInRange(d,1),E;if(L===v||L+1===v)E=U.getValueInRange(A,1);else{var _=f.intersectRanges(A),x=S.intersectRanges(A);E=U.getValueInRange(_,1)+String.fromCharCode(8230)+U.getValueInRange(x,1)}if(y){var F=500;u.length>F&&(u=u.substring(u.length-F,u.length)),p.length>F&&(p=p.substring(0,F)),E.length>2*F&&(E=E.substring(0,F)+String.fromCharCode(8230)+E.substring(E.length-F,E.length))}return new N(u+E+p,u.length,u.length+E.length,new re.a(A.startLineNumber,A.startColumn),new re.a(A.endLineNumber,A.endColumn))},z}()},CxEt:function(_t,P,e){"use strict";e.r(P);var T=e("sswD"),re=e("C1Q+");Object(T.h)(re.f.ID,re.f),Object(T.f)(re.e),Object(T.f)(re.g),Object(T.f)(re.h),Object(T.f)(re.d),Object(T.f)(re.a),Object(T.f)(re.c),Object(T.g)(new re.b)},D3Dy:function(_t,P,e){"use strict";e.d(P,"c",function(){return J}),e.d(P,"b",function(){return N}),e.d(P,"o",function(){return H}),e.d(P,"a",function(){return z}),e.d(P,"i",function(){return U}),e.d(P,"e",function(){return A}),e.d(P,"f",function(){return c}),e.d(P,"h",function(){return y}),e.d(P,"m",function(){return L}),e.d(P,"d",function(){return f}),e.d(P,"k",function(){return v}),e.d(P,"n",function(){return S}),e.d(P,"j",function(){return g}),e.d(P,"g",function(){return u}),e.d(P,"l",function(){return s});var T=e("MI8n"),re=function(){function l(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new T.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return l.prototype.getZoomLevel=function(){return this._zoomLevel},l.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},l.prototype.getPixelRatio=function(){var d=document.createElement("canvas").getContext("2d"),p=window.devicePixelRatio||1,E=d.webkitBackingStorePixelRatio||d.mozBackingStorePixelRatio||d.msBackingStorePixelRatio||d.oBackingStorePixelRatio||d.backingStorePixelRatio||1;return p/E},l.INSTANCE=new l,l}();function J(){return re.INSTANCE.getZoomLevel()}function N(){return re.INSTANCE.getTimeSinceLastZoomLevelChanged()}function H(l){return re.INSTANCE.onDidChangeZoomLevel(l)}function z(){return re.INSTANCE.getPixelRatio()}var M=navigator.userAgent,U=M.indexOf("Trident")>=0,A=M.indexOf("Edge/")>=0,c=U||A,y=M.indexOf("Firefox")>=0,L=M.indexOf("AppleWebKit")>=0,f=M.indexOf("Chrome")>=0,v=!f&&M.indexOf("Safari")>=0,S=!f&&!v&&L,g=M.indexOf("iPad")>=0||v&&navigator.maxTouchPoints>0,u=A&&M.indexOf("WebView/")>=0,s=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},DTDp:function(_t,P,e){},Dvnd:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return e.e(261).then(e.bind(null,"y0OK"))}})},"E+ie":function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return e.e(251).then(e.bind(null,"p+q7"))}})},E4kL:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return e.e(300).then(e.bind(null,"EaLm"))}})},EIAu:function(_t,P,e){"use strict";e.d(P,"b",function(){return H}),e.d(P,"a",function(){return g});var T=e("N0LK"),re=e("aokT"),J=function(){function u(s,l,d,p,E,_){this.languageIdentifier=s,this.index=l,this.open=d,this.close=p,this.forwardRegex=E,this.reversedRegex=_,this._openSet=u._toSet(this.open),this._closeSet=u._toSet(this.close)}return u.prototype.isOpen=function(s){return this._openSet.has(s)},u.prototype.isClose=function(s){return this._closeSet.has(s)},u._toSet=function(s){for(var l=new Set,d=0,p=s;d<p.length;d++){var E=p[d];l.add(E)}return l},u}();function N(u){var s=u.length;u=u.map(function(De){return[De[0].toLowerCase(),De[1].toLowerCase()]});for(var l=[],d=0;d<s;d++)l[d]=d;for(var p=function(Te,ke){var He=Te[0],je=Te[1],oe=ke[0],ee=ke[1];return He===oe||He===ee||je===oe||je===ee},E=function(Te,ke){for(var He=Math.min(Te,ke),je=Math.max(Te,ke),oe=0;oe<s;oe++)l[oe]===je&&(l[oe]=He)},d=0;d<s;d++)for(var _=u[d],x=d+1;x<s;x++){var F=u[x];p(_,F)&&E(l[d],l[x])}for(var R=[],$=0;$<s;$++){for(var ie=[],W=[],d=0;d<s;d++)if(l[d]===$){var B=u[d],le=B[0],be=B[1];ie.push(le),W.push(be)}ie.length>0&&R.push({open:ie,close:W})}return R}var H=function(){function u(s,l){var d=N(l);this.brackets=d.map(function(B,le){return new J(s,le,B.open,B.close,A(B.open,B.close,d,le),c(B.open,B.close,d,le))}),this.forwardRegex=y(this.brackets),this.reversedRegex=L(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var p=0,E=this.brackets;p<E.length;p++){for(var _=E[p],x=0,F=_.open;x<F.length;x++){var R=F[x];this.textIsBracket[R]=_,this.textIsOpenBracket[R]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,R.length)}for(var $=0,ie=_.close;$<ie.length;$++){var W=ie[$];this.textIsBracket[W]=_,this.textIsOpenBracket[W]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,W.length)}}}return u}();function z(u,s,l,d){for(var p=0,E=s.length;p<E;p++){if(p===l)continue;for(var _=s[p],x=0,F=_.open;x<F.length;x++){var R=F[x];R.indexOf(u)>=0&&d.push(R)}for(var $=0,ie=_.close;$<ie.length;$++){var W=ie[$];W.indexOf(u)>=0&&d.push(W)}}}function M(u,s){return u.length-s.length}function U(u){if(u.length<=1)return u;for(var s=[],l=new Set,d=0,p=u;d<p.length;d++){var E=p[d];if(l.has(E))continue;s.push(E),l.add(E)}return s}function A(u,s,l,d){var p=[];p=p.concat(u),p=p.concat(s);for(var E=0,_=p.length;E<_;E++)z(p[E],l,d,p);return p=U(p),p.sort(M),p.reverse(),v(p)}function c(u,s,l,d){var p=[];p=p.concat(u),p=p.concat(s);for(var E=0,_=p.length;E<_;E++)z(p[E],l,d,p);return p=U(p),p.sort(M),p.reverse(),v(p.map(S))}function y(u){for(var s=[],l=0,d=u;l<d.length;l++){for(var p=d[l],E=0,_=p.open;E<_.length;E++){var x=_[E];s.push(x)}for(var F=0,R=p.close;F<R.length;F++){var $=R[F];s.push($)}}return s=U(s),v(s)}function L(u){for(var s=[],l=0,d=u;l<d.length;l++){for(var p=d[l],E=0,_=p.open;E<_.length;E++){var x=_[E];s.push(x)}for(var F=0,R=p.close;F<R.length;F++){var $=R[F];s.push($)}}return s=U(s),v(s.map(S))}function f(u){var s=/^[\w ]+$/.test(u);return u=T.p(u),s?"\\b"+u+"\\b":u}function v(u){var s="("+u.map(f).join(")|(")+")";return T.l(s,!0)}var S=function(){function u(d){for(var p="",E=d.length-1;E>=0;E--)p+=d.charAt(E);return p}var s=null,l=null;return function(p){return s!==p&&(s=p,l=u(s)),l}}(),g=function(){function u(){}return u._findPrevBracketInText=function(s,l,d,p){var E=d.match(s);if(!E)return null;var _=d.length-(E.index||0),x=E[0].length,F=p+_;return new re.a(l,F-x+1,l,F+1)},u.findPrevBracketInRange=function(s,l,d,p,E){var _=S(d),x=_.substring(d.length-E,d.length-p);return this._findPrevBracketInText(s,l,x,p)},u.findNextBracketInText=function(s,l,d,p){var E=d.match(s);if(!E)return null;var _=E.index||0,x=E[0].length;if(x===0)return null;var F=p+_;return new re.a(l,F+1,l,F+1+x)},u.findNextBracketInRange=function(s,l,d,p,E){var _=d.substring(p,E);return this.findNextBracketInText(s,l,_,p)},u}()},EOst:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return e.e(297).then(e.bind(null,"87dK"))}})},"EPS+":function(_t,P,e){},EWX2:function(_t,P,e){"use strict";e.d(P,"a",function(){return H}),e.d(P,"b",function(){return A});var T=e("bY76"),re=e("gslv"),J=e("Cg/j"),N=e("QDVR"),H=Object(J.c)("contextService"),z;(function(c){function y(L){return L&&typeof L=="object"&&typeof L.id=="string"&&Array.isArray(L.folders)}c.isIWorkspace=y})(z||(z={}));var M;(function(c){function y(L){return L&&typeof L=="object"&&T.a.isUri(L.uri)&&typeof L.name=="string"&&typeof L.toResource=="function"}c.isIWorkspaceFolder=y})(M||(M={}));var U=function(){function c(y,L,f){L===void 0&&(L=[]),f===void 0&&(f=null),this._id=y,this._configuration=f,this._foldersMap=N.c.forPaths(),this.folders=L}return Object.defineProperty(c.prototype,"folders",{get:function(){return this._folders},set:function(L){this._folders=L,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"configuration",{get:function(){return this._configuration},set:function(L){this._configuration=L},enumerable:!0,configurable:!0}),c.prototype.getFolder=function(y){return y&&this._foldersMap.findSubstr(y.with({scheme:y.scheme,authority:y.authority,path:y.path}).toString())||null},c.prototype.updateFoldersMap=function(){this._foldersMap=N.c.forPaths();for(var y=0,L=this.folders;y<L.length;y++){var f=L[y];this._foldersMap.set(f.uri.toString(),f)}},c.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}},c}(),A=function(){function c(y,L){this.raw=L,this.uri=y.uri,this.index=y.index,this.name=y.name}return c.prototype.toResource=function(y){return re.f(this.uri,y)},c.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},c}()},EffR:function(_t,P,e){"use strict";e.d(P,"t",function(){return g}),e.d(P,"R",function(){return u}),e.d(P,"M",function(){return s}),e.d(P,"I",function(){return E}),e.d(P,"f",function(){return _}),e.d(P,"g",function(){return x}),e.d(P,"P",function(){return F}),e.d(P,"Q",function(){return R}),e.d(P,"Y",function(){return $}),e.d(P,"j",function(){return W}),e.d(P,"o",function(){return be}),e.d(P,"n",function(){return De}),e.d(P,"h",function(){return Te}),e.d(P,"i",function(){return ke}),e.d(P,"k",function(){return He}),e.d(P,"l",function(){return je}),e.d(P,"U",function(){return ae}),e.d(P,"W",function(){return q}),e.d(P,"m",function(){return Xe}),e.d(P,"z",function(){return pe}),e.d(P,"y",function(){return me}),e.d(P,"b",function(){return Re}),e.d(P,"F",function(){return Ee}),e.d(P,"C",function(){return ve}),e.d(P,"e",function(){return Q}),e.d(P,"H",function(){return b}),e.d(P,"B",function(){return k}),e.d(P,"A",function(){return se}),e.d(P,"G",function(){return ne}),e.d(P,"K",function(){return Ce}),e.d(P,"x",function(){return Oe}),e.d(P,"N",function(){return Ve}),e.d(P,"E",function(){return Qe}),e.d(P,"w",function(){return it}),e.d(P,"v",function(){return zt}),e.d(P,"O",function(){return cn}),e.d(P,"L",function(){return ln}),e.d(P,"d",function(){return an}),e.d(P,"c",function(){return jt}),e.d(P,"V",function(){return ft}),e.d(P,"T",function(){return vt}),e.d(P,"Z",function(){return at}),e.d(P,"q",function(){return tt}),e.d(P,"a",function(){return Ct}),e.d(P,"X",function(){return Gt}),e.d(P,"J",function(){return It}),e.d(P,"S",function(){return Je}),e.d(P,"D",function(){return $e}),e.d(P,"u",function(){return ze}),e.d(P,"ab",function(){return Ke}),e.d(P,"p",function(){return fe}),e.d(P,"s",function(){return G}),e.d(P,"r",function(){return te});var T=e("D3Dy"),re=e("4y0V"),J=e("uDWl"),N=e("XSiN"),H=e("X+cX"),z=e("/cxE"),M=e("MI8n"),U=e("pmY6"),A=e("MNsG"),c=e("6OMU"),y=e("tYmi"),L=e("CjF5"),f=function(){var Y=function(Fe,lt){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tt,Jt){Tt.__proto__=Jt}||function(Tt,Jt){for(var en in Jt)Jt.hasOwnProperty(en)&&(Tt[en]=Jt[en])},Y(Fe,lt)};return function(de,Fe){Y(de,Fe);function lt(){this.constructor=de}de.prototype=Fe===null?Object.create(Fe):(lt.prototype=Fe.prototype,new lt)}}(),v=function(){return v=Object.assign||function(Y){for(var de,Fe=1,lt=arguments.length;Fe<lt;Fe++){de=arguments[Fe];for(var Tt in de)Object.prototype.hasOwnProperty.call(de,Tt)&&(Y[Tt]=de[Tt])}return Y},v.apply(this,arguments)},S=function(){for(var Y=0,de=0,Fe=arguments.length;de<Fe;de++)Y+=arguments[de].length;for(var lt=Array(Y),Tt=0,de=0;de<Fe;de++)for(var Jt=arguments[de],en=0,gn=Jt.length;en<gn;en++,Tt++)lt[Tt]=Jt[en];return lt};function g(Y){for(;Y.firstChild;)Y.removeChild(Y.firstChild)}function u(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function s(Y){for(;Y;){if(Y===document.body)return!0;Y=Y.parentNode||Y.host}return!1}var l=new(function(){function Y(){this._lastStart=-1,this._lastEnd=-1}return Y.prototype._findClassName=function(de,Fe){var lt=de.className;if(!lt){this._lastStart=-1;return}Fe=Fe.trim();var Tt=lt.length,Jt=Fe.length;if(Jt===0){this._lastStart=-1;return}if(Tt<Jt){this._lastStart=-1;return}if(lt===Fe){this._lastStart=0,this._lastEnd=Tt;return}for(var en=-1,gn;(en=lt.indexOf(Fe,en+1))>=0;){if(gn=en+Jt,(en===0||lt.charCodeAt(en-1)===32)&&lt.charCodeAt(gn)===32){this._lastStart=en,this._lastEnd=gn+1;return}if(en>0&&lt.charCodeAt(en-1)===32&&gn===Tt){this._lastStart=en-1,this._lastEnd=gn;return}if(en===0&&gn===Tt){this._lastStart=0,this._lastEnd=gn;return}}this._lastStart=-1},Y.prototype.hasClass=function(de,Fe){return this._findClassName(de,Fe),this._lastStart!==-1},Y.prototype.addClasses=function(de){for(var Fe=this,lt=[],Tt=1;Tt<arguments.length;Tt++)lt[Tt-1]=arguments[Tt];lt.forEach(function(Jt){return Jt.split(" ").forEach(function(en){return Fe.addClass(de,en)})})},Y.prototype.addClass=function(de,Fe){de.className?(this._findClassName(de,Fe),this._lastStart===-1&&(de.className=de.className+" "+Fe)):de.className=Fe},Y.prototype.removeClass=function(de,Fe){if(this._findClassName(de,Fe),this._lastStart===-1)return;de.className=de.className.substring(0,this._lastStart)+de.className.substring(this._lastEnd)},Y.prototype.removeClasses=function(de){for(var Fe=this,lt=[],Tt=1;Tt<arguments.length;Tt++)lt[Tt-1]=arguments[Tt];lt.forEach(function(Jt){return Jt.split(" ").forEach(function(en){return Fe.removeClass(de,en)})})},Y.prototype.toggleClass=function(de,Fe,lt){this._findClassName(de,Fe),this._lastStart!==-1&&(lt===void 0||!lt)&&this.removeClass(de,Fe),this._lastStart===-1&&(lt===void 0||lt)&&this.addClass(de,Fe)},Y}()),d=new(function(){function Y(){}return Y.prototype.hasClass=function(de,Fe){return Boolean(Fe)&&de.classList&&de.classList.contains(Fe)},Y.prototype.addClasses=function(de){for(var Fe=this,lt=[],Tt=1;Tt<arguments.length;Tt++)lt[Tt-1]=arguments[Tt];lt.forEach(function(Jt){return Jt.split(" ").forEach(function(en){return Fe.addClass(de,en)})})},Y.prototype.addClass=function(de,Fe){Fe&&de.classList&&de.classList.add(Fe)},Y.prototype.removeClass=function(de,Fe){Fe&&de.classList&&de.classList.remove(Fe)},Y.prototype.removeClasses=function(de){for(var Fe=this,lt=[],Tt=1;Tt<arguments.length;Tt++)lt[Tt-1]=arguments[Tt];lt.forEach(function(Jt){return Jt.split(" ").forEach(function(en){return Fe.removeClass(de,en)})})},Y.prototype.toggleClass=function(de,Fe,lt){de.classList&&de.classList.toggle(Fe,lt)},Y}()),p=T.i?l:d,E=p.hasClass.bind(p),_=p.addClass.bind(p),x=p.addClasses.bind(p),F=p.removeClass.bind(p),R=p.removeClasses.bind(p),$=p.toggleClass.bind(p),ie=function(){function Y(de,Fe,lt,Tt){this._node=de,this._type=Fe,this._handler=lt,this._options=Tt||!1,this._node.addEventListener(this._type,this._handler,this._options)}return Y.prototype.dispose=function(){if(!this._handler)return;this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null},Y}();function W(Y,de,Fe,lt){return new ie(Y,de,Fe,lt)}function B(Y){return function(de){return Y(new N.b(de))}}function le(Y){return function(de){return Y(new J.a(de))}}var be=function(de,Fe,lt,Tt){var Jt=lt;return Fe==="click"||Fe==="mousedown"?Jt=B(lt):(Fe==="keydown"||Fe==="keypress"||Fe==="keyup")&&(Jt=le(lt)),W(de,Fe,Jt,Tt)},De=function(de,Fe,lt){var Tt=B(Fe);return Te(de,Tt,lt)};function Te(Y,de,Fe){return W(Y,A.c&&L.a.pointerEvents?an.POINTER_DOWN:an.MOUSE_DOWN,de,Fe)}function ke(Y,de,Fe){return W(Y,A.c&&L.a.pointerEvents?an.POINTER_UP:an.MOUSE_UP,de,Fe)}function He(Y,de){return W(Y,"mouseout",function(Fe){for(var lt=Fe.relatedTarget;lt&&lt!==Y;)lt=lt.parentNode;if(lt===Y)return;de(Fe)})}function je(Y,de){return W(Y,"pointerout",function(Fe){for(var lt=Fe.relatedTarget;lt&&lt!==Y;)lt=lt.parentNode;if(lt===Y)return;de(Fe)})}var oe=null;function ee(Y){if(!oe){var de=function(lt){return setTimeout(function(){return lt(new Date().getTime())},0)};oe=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||de}return oe.call(self,Y)}var ae,q,ce=function(){function Y(de,Fe){Fe===void 0&&(Fe=0),this._runner=de,this.priority=Fe,this._canceled=!1}return Y.prototype.dispose=function(){this._canceled=!0},Y.prototype.execute=function(){if(this._canceled)return;try{this._runner()}catch(de){Object(z.e)(de)}},Y.sort=function(de,Fe){return Fe.priority-de.priority},Y}();(function(){var Y=[],de=null,Fe=!1,lt=!1,Tt=function(){for(Fe=!1,de=Y,Y=[],lt=!0;de.length>0;){de.sort(ce.sort);var en=de.shift();en.execute()}lt=!1};q=function(en,gn){gn===void 0&&(gn=0);var un=new ce(en,gn);return Y.push(un),Fe||(Fe=!0,ee(Tt)),un},ae=function(en,gn){if(lt){var un=new ce(en,gn);return de.push(un),un}else return q(en,gn)}})();var X=16,he=function(de,Fe){return Fe},Pe=function(Y){f(de,Y);function de(Fe,lt,Tt,Jt,en){Jt===void 0&&(Jt=he),en===void 0&&(en=X);var gn=Y.call(this)||this,un=null,En=0,Mn=gn._register(new H.e),xn=function(){En=new Date().getTime(),Tt(un),un=null};return gn._register(W(Fe,lt,function(Zn){un=Jt(un,Zn);var bn=new Date().getTime()-En;bn>=en?(Mn.cancel(),xn()):Mn.setIfNotSet(xn,en-bn)})),gn}return de}(U.a);function Xe(Y,de,Fe,lt,Tt){return new Pe(Y,de,Fe,lt,Tt)}function pe(Y){return document.defaultView.getComputedStyle(Y,null)}function me(Y){if(Y!==document.body)return new Re(Y.clientWidth,Y.clientHeight);if(A.c&&window.visualViewport){var de=window.visualViewport.width,Fe=window.visualViewport.height-(T.l?20+4:0);return new Re(de,Fe)}if(window.innerWidth&&window.innerHeight)return new Re(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Re(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Re(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var Se=function(){function Y(){}return Y.convertToPixels=function(de,Fe){return parseFloat(Fe)||0},Y.getDimension=function(de,Fe,lt){var Tt=pe(de),Jt="0";return Tt&&(Tt.getPropertyValue?Jt=Tt.getPropertyValue(Fe):Jt=Tt.getAttribute(lt)),Y.convertToPixels(de,Jt)},Y.getBorderLeftWidth=function(de){return Y.getDimension(de,"border-left-width","borderLeftWidth")},Y.getBorderRightWidth=function(de){return Y.getDimension(de,"border-right-width","borderRightWidth")},Y.getBorderTopWidth=function(de){return Y.getDimension(de,"border-top-width","borderTopWidth")},Y.getBorderBottomWidth=function(de){return Y.getDimension(de,"border-bottom-width","borderBottomWidth")},Y.getPaddingLeft=function(de){return Y.getDimension(de,"padding-left","paddingLeft")},Y.getPaddingRight=function(de){return Y.getDimension(de,"padding-right","paddingRight")},Y.getPaddingTop=function(de){return Y.getDimension(de,"padding-top","paddingTop")},Y.getPaddingBottom=function(de){return Y.getDimension(de,"padding-bottom","paddingBottom")},Y.getMarginLeft=function(de){return Y.getDimension(de,"margin-left","marginLeft")},Y.getMarginTop=function(de){return Y.getDimension(de,"margin-top","marginTop")},Y.getMarginRight=function(de){return Y.getDimension(de,"margin-right","marginRight")},Y.getMarginBottom=function(de){return Y.getDimension(de,"margin-bottom","marginBottom")},Y}(),Re=function(){function Y(de,Fe){this.width=de,this.height=Fe}return Y}();function Ee(Y){for(var de=Y.offsetParent,Fe=Y.offsetTop,lt=Y.offsetLeft;(Y=Y.parentNode)!==null&&Y!==document.body&&Y!==document.documentElement;){Fe-=Y.scrollTop;var Tt=we(Y)?null:pe(Y);Tt&&(lt-=Tt.direction!=="rtl"?Y.scrollLeft:-Y.scrollLeft),Y===de&&(lt+=Se.getBorderLeftWidth(Y),Fe+=Se.getBorderTopWidth(Y),Fe+=Y.offsetTop,lt+=Y.offsetLeft,de=Y.offsetParent)}return{left:lt,top:Fe}}function ve(Y){var de=Y.getBoundingClientRect();return{left:de.left+Q.scrollX,top:de.top+Q.scrollY,width:de.width,height:de.height}}var Q=new(function(){function Y(){}return Object.defineProperty(Y.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),Y}());function b(Y){var de=Se.getMarginLeft(Y)+Se.getMarginRight(Y);return Y.offsetWidth+de}function k(Y){var de=Se.getBorderLeftWidth(Y)+Se.getBorderRightWidth(Y),Fe=Se.getPaddingLeft(Y)+Se.getPaddingRight(Y);return Y.offsetWidth-de-Fe}function se(Y){var de=Se.getBorderTopWidth(Y)+Se.getBorderBottomWidth(Y),Fe=Se.getPaddingTop(Y)+Se.getPaddingBottom(Y);return Y.offsetHeight-de-Fe}function ne(Y){var de=Se.getMarginTop(Y)+Se.getMarginBottom(Y);return Y.offsetHeight+de}function Ce(Y,de){for(;Y;){if(Y===de)return!0;Y=Y.parentNode}return!1}function Oe(Y,de,Fe){for(;Y&&Y.nodeType===Y.ELEMENT_NODE;){if(E(Y,de))return Y;if(Fe){if(typeof Fe=="string"){if(E(Y,Fe))return null}else if(Y===Fe)return null}Y=Y.parentNode}return null}function we(Y){return Y&&!!Y.host&&!!Y.mode}function Ve(Y){return!!Qe(Y)}function Qe(Y){for(;Y.parentNode;){if(Y===document.body)return null;Y=Y.parentNode}return we(Y)?Y:null}function it(Y){Y===void 0&&(Y=document.getElementsByTagName("head")[0]);var de=document.createElement("style");return de.type="text/css",de.media="screen",Y.appendChild(de),de}var gt=null;function Rt(){return gt||(gt=it()),gt}function Dt(Y){return Y&&Y.sheet&&Y.sheet.rules?Y.sheet.rules:Y&&Y.sheet&&Y.sheet.cssRules?Y.sheet.cssRules:[]}function zt(Y,de,Fe){if(Fe===void 0&&(Fe=Rt()),!Fe||!de)return;Fe.sheet.insertRule(Y+"{"+de+"}",0)}function cn(Y,de){if(de===void 0&&(de=Rt()),!de)return;for(var Fe=Dt(de),lt=[],Tt=0;Tt<Fe.length;Tt++){var Jt=Fe[Tt];Jt.selectorText.indexOf(Y)!==-1&&lt.push(Tt)}for(var Tt=lt.length-1;Tt>=0;Tt--)de.sheet.deleteRule(lt[Tt])}function ln(Y){return typeof HTMLElement=="object"?Y instanceof HTMLElement:Y&&typeof Y=="object"&&Y.nodeType===1&&typeof Y.nodeName=="string"}var an={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:T.m?"webkitAnimationStart":"animationstart",ANIMATION_END:T.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:T.m?"webkitAnimationIteration":"animationiteration"},jt={stop:function(de,Fe){de.preventDefault?de.preventDefault():de.returnValue=!1,Fe&&(de.stopPropagation?de.stopPropagation():de.cancelBubble=!0)}};function ft(Y){for(var de=[],Fe=0;Y&&Y.nodeType===Y.ELEMENT_NODE;Fe++)de[Fe]=Y.scrollTop,Y=Y.parentNode;return de}function vt(Y,de){for(var Fe=0;Y&&Y.nodeType===Y.ELEMENT_NODE;Fe++)Y.scrollTop!==de[Fe]&&(Y.scrollTop=de[Fe]),Y=Y.parentNode}var xt=function(Y){f(de,Y);function de(Fe){var lt=Y.call(this)||this;lt._onDidFocus=lt._register(new M.a),lt.onDidFocus=lt._onDidFocus.event,lt._onDidBlur=lt._register(new M.a),lt.onDidBlur=lt._onDidBlur.event;var Tt=Ce(document.activeElement,Fe),Jt=!1,en=function(){Jt=!1,Tt||(Tt=!0,lt._onDidFocus.fire())},gn=function(){Tt&&(Jt=!0,window.setTimeout(function(){Jt&&(Jt=!1,Tt=!1,lt._onDidBlur.fire())},0))};return lt._refreshStateHandler=function(){var un=Ce(document.activeElement,Fe);un!==Tt&&(Tt?gn():en())},lt._register(Object(re.a)(Fe,an.FOCUS,!0)(en)),lt._register(Object(re.a)(Fe,an.BLUR,!0)(gn)),lt}return de}(U.a);function at(Y){return new xt(Y)}function tt(Y){for(var de=[],Fe=1;Fe<arguments.length;Fe++)de[Fe-1]=arguments[Fe];return de.forEach(function(lt){return Y.appendChild(lt)}),de[de.length-1]}var ct=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/,bt;(function(Y){Y.HTML="http://www.w3.org/1999/xhtml",Y.SVG="http://www.w3.org/2000/svg"})(bt||(bt={}));function mt(Y,de,Fe){for(var lt=[],Tt=3;Tt<arguments.length;Tt++)lt[Tt-3]=arguments[Tt];var Jt=ct.exec(de);if(!Jt)throw new Error("Bad use of emmet");Fe=v({},Fe||{});var en=Jt[1]||"div",gn;return Y!==bt.HTML?gn=document.createElementNS(Y,en):gn=document.createElement(en),Jt[3]&&(gn.id=Jt[3]),Jt[4]&&(gn.className=Jt[4].replace(/\./g," ").trim()),Object.keys(Fe).forEach(function(un){var En=Fe[un];if(typeof En=="undefined")return;/^on\w+$/.test(un)?gn[un]=En:un==="selected"?En&&gn.setAttribute(un,"true"):gn.setAttribute(un,En)}),Object(c.d)(lt).forEach(function(un){un instanceof Node?gn.appendChild(un):gn.appendChild(document.createTextNode(un))}),gn}function Ct(Y,de){for(var Fe=[],lt=2;lt<arguments.length;lt++)Fe[lt-2]=arguments[lt];return mt.apply(void 0,S([bt.HTML,Y,de],Fe))}Ct.SVG=function(Y,de){for(var Fe=[],lt=2;lt<arguments.length;lt++)Fe[lt-2]=arguments[lt];return mt.apply(void 0,S([bt.SVG,Y,de],Fe))};function Gt(){for(var Y=[],de=0;de<arguments.length;de++)Y[de]=arguments[de];for(var Fe=0,lt=Y;Fe<lt.length;Fe++){var Tt=lt[Fe];Tt.style.display="",Tt.removeAttribute("aria-hidden")}}function It(){for(var Y=[],de=0;de<arguments.length;de++)Y[de]=arguments[de];for(var Fe=0,lt=Y;Fe<lt.length;Fe++){var Tt=lt[Fe];Tt.style.display="none",Tt.setAttribute("aria-hidden","true")}}function Et(Y,de){for(;Y&&Y.nodeType===Y.ELEMENT_NODE;){if(Y instanceof HTMLElement&&Y.hasAttribute(de))return Y;Y=Y.parentNode}return null}function Je(Y){if(!Y||!Y.hasAttribute("tabIndex"))return;if(document.activeElement===Y){var de=Et(Y.parentElement,"tabIndex");de&&de.focus()}Y.removeAttribute("tabindex")}function $e(Y){return Array.prototype.slice.call(document.getElementsByTagName(Y),0)}function ze(Y){var de=window.devicePixelRatio*Y;return Math.max(1,Math.floor(de))/window.devicePixelRatio}function Ke(Y){if(A.f||T.g)window.open(Y);else{var de=window.open();de&&(de.opener=null,de.location.href=Y)}}function fe(Y){var de=function lt(){Y(),Fe=q(lt)},Fe=q(de);return Object(U.h)(function(){return Fe.dispose()})}y.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function G(Y){return Y&&(y.b.vscodeRemote===Y.scheme?y.a.rewrite(Y):Y)}function te(Y){return Y?"url('"+G(Y).toString(!0).replace(/'/g,"%27")+"')":"url('')"}},EzsQ:function(_t,P,e){},FWmy:function(_t,P,e){"use strict";e.d(P,"a",function(){return T});function T(re,J){if(!re)throw new Error(J?"Assertion failed ("+J+")":"Assertion Failed")}},FvUK:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return e.e(262).then(e.bind(null,"OfHX"))}})},G2kB:function(_t,P,e){"use strict";e.d(P,"a",function(){return re}),e.d(P,"b",function(){return J});var T=e("Cg/j"),re=Object(T.c)("modelService");function J(N){return!N.isTooLargeForSyncing()&&!N.isForSimpleWidget}},G300:function(_t,P,e){"use strict";e.d(P,"a",function(){return M});var T=e("EffR"),re=e("uDWl"),J=e("XSiN"),N=e("pmY6"),H=e("pg8w"),z=function(){var U=function(c,y){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,f){L.__proto__=f}||function(L,f){for(var v in f)f.hasOwnProperty(v)&&(L[v]=f[v])},U(c,y)};return function(A,c){U(A,c);function y(){this.constructor=A}A.prototype=c===null?Object.create(c):(y.prototype=c.prototype,new y)}}(),M=function(U){z(A,U);function A(){return U!==null&&U.apply(this,arguments)||this}return A.prototype.onclick=function(c,y){this._register(T.j(c,T.d.CLICK,function(L){return y(new J.b(L))}))},A.prototype.onmousedown=function(c,y){this._register(T.j(c,T.d.MOUSE_DOWN,function(L){return y(new J.b(L))}))},A.prototype.onmouseover=function(c,y){this._register(T.j(c,T.d.MOUSE_OVER,function(L){return y(new J.b(L))}))},A.prototype.onnonbubblingmouseout=function(c,y){this._register(T.k(c,function(L){return y(new J.b(L))}))},A.prototype.onkeydown=function(c,y){this._register(T.j(c,T.d.KEY_DOWN,function(L){return y(new re.a(L))}))},A.prototype.onkeyup=function(c,y){this._register(T.j(c,T.d.KEY_UP,function(L){return y(new re.a(L))}))},A.prototype.oninput=function(c,y){this._register(T.j(c,T.d.INPUT,y))},A.prototype.onblur=function(c,y){this._register(T.j(c,T.d.BLUR,y))},A.prototype.onfocus=function(c,y){this._register(T.j(c,T.d.FOCUS,y))},A.prototype.ignoreGesture=function(c){H.b.ignoreTarget(c)},A}(N.a)},GJhM:function(_t,P,e){"use strict";e.d(P,"b",function(){return Te}),e.d(P,"c",function(){return ke}),e.d(P,"a",function(){return He});var T=e("eq1K"),re=e("D3Dy"),J=e("EffR"),N=e("ZlPH"),H=e("XSiN"),z=e("AKMP"),M=e("G300"),U=e("X+cX"),A=function(){var oe=function(ae,q){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,X){ce.__proto__=X}||function(ce,X){for(var he in X)X.hasOwnProperty(he)&&(ce[he]=X[he])},oe(ae,q)};return function(ee,ae){oe(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),c=11,y=function(oe){A(ee,oe);function ee(ae){var q=oe.call(this)||this;return q._onActivate=ae.onActivate,q.bgDomNode=document.createElement("div"),q.bgDomNode.className="arrow-background",q.bgDomNode.style.position="absolute",q.bgDomNode.style.width=ae.bgWidth+"px",q.bgDomNode.style.height=ae.bgHeight+"px",typeof ae.top!="undefined"&&(q.bgDomNode.style.top="0px"),typeof ae.left!="undefined"&&(q.bgDomNode.style.left="0px"),typeof ae.bottom!="undefined"&&(q.bgDomNode.style.bottom="0px"),typeof ae.right!="undefined"&&(q.bgDomNode.style.right="0px"),q.domNode=document.createElement("div"),q.domNode.className=ae.className,q.domNode.style.position="absolute",q.domNode.style.width=c+"px",q.domNode.style.height=c+"px",typeof ae.top!="undefined"&&(q.domNode.style.top=ae.top+"px"),typeof ae.left!="undefined"&&(q.domNode.style.left=ae.left+"px"),typeof ae.bottom!="undefined"&&(q.domNode.style.bottom=ae.bottom+"px"),typeof ae.right!="undefined"&&(q.domNode.style.right=ae.right+"px"),q._mouseMoveMonitor=q._register(new z.a),q.onmousedown(q.bgDomNode,function(ce){return q._arrowMouseDown(ce)}),q.onmousedown(q.domNode,function(ce){return q._arrowMouseDown(ce)}),q._mousedownRepeatTimer=q._register(new U.c),q._mousedownScheduleRepeatTimer=q._register(new U.e),q}return ee.prototype._arrowMouseDown=function(ae){var q=this,ce=function(){q._mousedownRepeatTimer.cancelAndSet(function(){return q._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(ce,200),this._mouseMoveMonitor.startMonitoring(ae.target,ae.buttons,z.b,function(X){},function(){q._mousedownRepeatTimer.cancel(),q._mousedownScheduleRepeatTimer.cancel()}),ae.preventDefault()},ee}(M.a),L=e("pmY6"),f=function(){var oe=function(ae,q){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,X){ce.__proto__=X}||function(ce,X){for(var he in X)X.hasOwnProperty(he)&&(ce[he]=X[he])},oe(ae,q)};return function(ee,ae){oe(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),v=function(oe){f(ee,oe);function ee(ae,q,ce){var X=oe.call(this)||this;return X._visibility=ae,X._visibleClassName=q,X._invisibleClassName=ce,X._domNode=null,X._isVisible=!1,X._isNeeded=!1,X._shouldBeVisible=!1,X._revealTimer=X._register(new U.e),X}return ee.prototype.applyVisibilitySetting=function(ae){return this._visibility===2?!1:this._visibility===3?!0:ae},ee.prototype.setShouldBeVisible=function(ae){var q=this.applyVisibilitySetting(ae);this._shouldBeVisible!==q&&(this._shouldBeVisible=q,this.ensureVisibility())},ee.prototype.setIsNeeded=function(ae){this._isNeeded!==ae&&(this._isNeeded=ae,this.ensureVisibility())},ee.prototype.setDomNode=function(ae){this._domNode=ae,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},ee.prototype.ensureVisibility=function(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)},ee.prototype._reveal=function(){var ae=this;if(this._isVisible)return;this._isVisible=!0,this._revealTimer.setIfNotSet(function(){ae._domNode&&ae._domNode.setClassName(ae._visibleClassName)},0)},ee.prototype._hide=function(ae){if(this._revealTimer.cancel(),!this._isVisible)return;this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(ae?" fade":""))},ee}(L.a),S=e("MNsG"),g=function(){var oe=function(ae,q){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,X){ce.__proto__=X}||function(ce,X){for(var he in X)X.hasOwnProperty(he)&&(ce[he]=X[he])},oe(ae,q)};return function(ee,ae){oe(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),u=140,s=function(oe){g(ee,oe);function ee(ae){var q=oe.call(this)||this;return q._lazyRender=ae.lazyRender,q._host=ae.host,q._scrollable=ae.scrollable,q._scrollbarState=ae.scrollbarState,q._visibilityController=q._register(new v(ae.visibility,"visible scrollbar "+ae.extraScrollbarClassName,"invisible scrollbar "+ae.extraScrollbarClassName)),q._visibilityController.setIsNeeded(q._scrollbarState.isNeeded()),q._mouseMoveMonitor=q._register(new z.a),q._shouldRender=!0,q.domNode=Object(N.b)(document.createElement("div")),q.domNode.setAttribute("role","presentation"),q.domNode.setAttribute("aria-hidden","true"),q._visibilityController.setDomNode(q.domNode),q.domNode.setPosition("absolute"),q.onmousedown(q.domNode.domNode,function(ce){return q._domNodeMouseDown(ce)}),q}return ee.prototype._createArrow=function(ae){var q=this._register(new y(ae));this.domNode.domNode.appendChild(q.bgDomNode),this.domNode.domNode.appendChild(q.domNode)},ee.prototype._createSlider=function(ae,q,ce,X){var he=this;this.slider=Object(N.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(ae),this.slider.setLeft(q),typeof ce=="number"&&this.slider.setWidth(ce),typeof X=="number"&&this.slider.setHeight(X),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(Pe){Pe.leftButton&&(Pe.preventDefault(),he._sliderMouseDown(Pe,function(){}))}),this.onclick(this.slider.domNode,function(Pe){Pe.leftButton&&Pe.stopPropagation()})},ee.prototype._onElementSize=function(ae){return this._scrollbarState.setVisibleSize(ae)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},ee.prototype._onElementScrollSize=function(ae){return this._scrollbarState.setScrollSize(ae)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},ee.prototype._onElementScrollPosition=function(ae){return this._scrollbarState.setScrollPosition(ae)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},ee.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},ee.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},ee.prototype.render=function(){if(!this._shouldRender)return;this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition())},ee.prototype._domNodeMouseDown=function(ae){if(ae.target!==this.domNode.domNode)return;this._onMouseDown(ae)},ee.prototype.delegateMouseDown=function(ae){var q=this.domNode.domNode.getClientRects()[0].top,ce=q+this._scrollbarState.getSliderPosition(),X=q+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),he=this._sliderMousePosition(ae);ce<=he&&he<=X?ae.leftButton&&(ae.preventDefault(),this._sliderMouseDown(ae,function(){})):this._onMouseDown(ae)},ee.prototype._onMouseDown=function(ae){var q,ce;if(ae.target===this.domNode.domNode&&typeof ae.browserEvent.offsetX=="number"&&typeof ae.browserEvent.offsetY=="number")q=ae.browserEvent.offsetX,ce=ae.browserEvent.offsetY;else{var X=J.C(this.domNode.domNode);q=ae.posx-X.left,ce=ae.posy-X.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(q,ce))),ae.leftButton&&(ae.preventDefault(),this._sliderMouseDown(ae,function(){}))},ee.prototype._sliderMouseDown=function(ae,q){var ce=this,X=this._sliderMousePosition(ae),he=this._sliderOrthogonalMousePosition(ae),Pe=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(ae.target,ae.buttons,z.b,function(Xe){var pe=ce._sliderOrthogonalMousePosition(Xe),me=Math.abs(pe-he);if(S.h&&me>u){ce._setDesiredScrollPositionNow(Pe.getScrollPosition());return}var Se=ce._sliderMousePosition(Xe),Re=Se-X;ce._setDesiredScrollPositionNow(Pe.getDesiredScrollPositionFromDelta(Re))},function(){ce.slider.toggleClassName("active",!1),ce._host.onDragEnd(),q()}),this._host.onDragStart()},ee.prototype._setDesiredScrollPositionNow=function(ae){var q={};this.writeScrollPosition(q,ae),this._scrollable.setScrollPositionNow(q)},ee}(M.a),l=20,d=function(){function oe(ee,ae,q,ce,X,he){this._scrollbarSize=Math.round(ae),this._oppositeScrollbarSize=Math.round(q),this._arrowSize=Math.round(ee),this._visibleSize=ce,this._scrollSize=X,this._scrollPosition=he,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return oe.prototype.clone=function(){return new oe(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},oe.prototype.setVisibleSize=function(ee){var ae=Math.round(ee);return this._visibleSize!==ae?(this._visibleSize=ae,this._refreshComputedValues(),!0):!1},oe.prototype.setScrollSize=function(ee){var ae=Math.round(ee);return this._scrollSize!==ae?(this._scrollSize=ae,this._refreshComputedValues(),!0):!1},oe.prototype.setScrollPosition=function(ee){var ae=Math.round(ee);return this._scrollPosition!==ae?(this._scrollPosition=ae,this._refreshComputedValues(),!0):!1},oe._computeValues=function(ee,ae,q,ce,X){var he=Math.max(0,q-ee),Pe=Math.max(0,he-2*ae),Xe=ce>0&&ce>q;if(!Xe)return{computedAvailableSize:Math.round(he),computedIsNeeded:Xe,computedSliderSize:Math.round(Pe),computedSliderRatio:0,computedSliderPosition:0};var pe=Math.round(Math.max(l,Math.floor(q*Pe/ce))),me=(Pe-pe)/(ce-q),Se=X*me;return{computedAvailableSize:Math.round(he),computedIsNeeded:Xe,computedSliderSize:Math.round(pe),computedSliderRatio:me,computedSliderPosition:Math.round(Se)}},oe.prototype._refreshComputedValues=function(){var ee=oe._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=ee.computedAvailableSize,this._computedIsNeeded=ee.computedIsNeeded,this._computedSliderSize=ee.computedSliderSize,this._computedSliderRatio=ee.computedSliderRatio,this._computedSliderPosition=ee.computedSliderPosition},oe.prototype.getArrowSize=function(){return this._arrowSize},oe.prototype.getScrollPosition=function(){return this._scrollPosition},oe.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},oe.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},oe.prototype.isNeeded=function(){return this._computedIsNeeded},oe.prototype.getSliderSize=function(){return this._computedSliderSize},oe.prototype.getSliderPosition=function(){return this._computedSliderPosition},oe.prototype.getDesiredScrollPositionFromOffset=function(ee){if(!this._computedIsNeeded)return 0;var ae=ee-this._arrowSize-this._computedSliderSize/2;return Math.round(ae/this._computedSliderRatio)},oe.prototype.getDesiredScrollPositionFromDelta=function(ee){if(!this._computedIsNeeded)return 0;var ae=this._computedSliderPosition+ee;return Math.round(ae/this._computedSliderRatio)},oe}(),p=function(){var oe=function(ae,q){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,X){ce.__proto__=X}||function(ce,X){for(var he in X)X.hasOwnProperty(he)&&(ce[he]=X[he])},oe(ae,q)};return function(ee,ae){oe(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),E=function(oe){p(ee,oe);function ee(ae,q,ce){var X=this,he=ae.getScrollDimensions(),Pe=ae.getCurrentScrollPosition();if(X=oe.call(this,{lazyRender:q.lazyRender,host:ce,scrollbarState:new d(q.horizontalHasArrows?q.arrowSize:0,q.horizontal===2?0:q.horizontalScrollbarSize,q.vertical===2?0:q.verticalScrollbarSize,he.width,he.scrollWidth,Pe.scrollLeft),visibility:q.horizontal,extraScrollbarClassName:"horizontal",scrollable:ae})||this,q.horizontalHasArrows){var Xe=(q.arrowSize-c)/2,pe=(q.horizontalScrollbarSize-c)/2;X._createArrow({className:"left-arrow",top:pe,left:Xe,bottom:void 0,right:void 0,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return X._host.onMouseWheel(new H.c(null,1,0))}}),X._createArrow({className:"right-arrow",top:pe,left:void 0,bottom:void 0,right:Xe,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return X._host.onMouseWheel(new H.c(null,-1,0))}})}return X._createSlider(Math.floor((q.horizontalScrollbarSize-q.horizontalSliderSize)/2),0,void 0,q.horizontalSliderSize),X}return ee.prototype._updateSlider=function(ae,q){this.slider.setWidth(ae),this.slider.setLeft(q)},ee.prototype._renderDomNode=function(ae,q){this.domNode.setWidth(ae),this.domNode.setHeight(q),this.domNode.setLeft(0),this.domNode.setBottom(0)},ee.prototype.onDidScroll=function(ae){return this._shouldRender=this._onElementScrollSize(ae.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ae.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(ae.width)||this._shouldRender,this._shouldRender},ee.prototype._mouseDownRelativePosition=function(ae,q){return ae},ee.prototype._sliderMousePosition=function(ae){return ae.posx},ee.prototype._sliderOrthogonalMousePosition=function(ae){return ae.posy},ee.prototype.writeScrollPosition=function(ae,q){ae.scrollLeft=q},ee}(s),_=function(){var oe=function(ae,q){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,X){ce.__proto__=X}||function(ce,X){for(var he in X)X.hasOwnProperty(he)&&(ce[he]=X[he])},oe(ae,q)};return function(ee,ae){oe(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),x=function(oe){_(ee,oe);function ee(ae,q,ce){var X=this,he=ae.getScrollDimensions(),Pe=ae.getCurrentScrollPosition();if(X=oe.call(this,{lazyRender:q.lazyRender,host:ce,scrollbarState:new d(q.verticalHasArrows?q.arrowSize:0,q.vertical===2?0:q.verticalScrollbarSize,0,he.height,he.scrollHeight,Pe.scrollTop),visibility:q.vertical,extraScrollbarClassName:"vertical",scrollable:ae})||this,q.verticalHasArrows){var Xe=(q.arrowSize-c)/2,pe=(q.verticalScrollbarSize-c)/2;X._createArrow({className:"up-arrow",top:Xe,left:pe,bottom:void 0,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return X._host.onMouseWheel(new H.c(null,0,1))}}),X._createArrow({className:"down-arrow",top:void 0,left:pe,bottom:Xe,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return X._host.onMouseWheel(new H.c(null,0,-1))}})}return X._createSlider(0,Math.floor((q.verticalScrollbarSize-q.verticalSliderSize)/2),q.verticalSliderSize,void 0),X}return ee.prototype._updateSlider=function(ae,q){this.slider.setHeight(ae),this.slider.setTop(q)},ee.prototype._renderDomNode=function(ae,q){this.domNode.setWidth(q),this.domNode.setHeight(ae),this.domNode.setRight(0),this.domNode.setTop(0)},ee.prototype.onDidScroll=function(ae){return this._shouldRender=this._onElementScrollSize(ae.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ae.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(ae.height)||this._shouldRender,this._shouldRender},ee.prototype._mouseDownRelativePosition=function(ae,q){return q},ee.prototype._sliderMousePosition=function(ae){return ae.posy},ee.prototype._sliderOrthogonalMousePosition=function(ae){return ae.posx},ee.prototype.writeScrollPosition=function(ae,q){ae.scrollTop=q},ee}(s),F=e("MI8n"),R=e("QuOb"),$=function(){var oe=function(ae,q){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,X){ce.__proto__=X}||function(ce,X){for(var he in X)X.hasOwnProperty(he)&&(ce[he]=X[he])},oe(ae,q)};return function(ee,ae){oe(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),ie=500,W=50,B=!0,le=function(){function oe(ee,ae,q){this.timestamp=ee,this.deltaX=ae,this.deltaY=q,this.score=0}return oe}(),be=function(){function oe(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return oe.prototype.isPhysicalMouseWheel=function(){if(this._front===-1&&this._rear===-1)return!1;var ee=1,ae=0,q=1,ce=this._rear;do{var X=ce===this._front?ee:Math.pow(2,-q);if(ee-=X,ae+=this._memory[ce].score*X,ce===this._front)break;ce=(this._capacity+ce-1)%this._capacity,q++}while(!0);return ae<=.5},oe.prototype.accept=function(ee,ae,q){var ce=new le(ee,ae,q);ce.score=this._computeScore(ce),this._front===-1&&this._rear===-1?(this._memory[0]=ce,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=ce)},oe.prototype._computeScore=function(ee){if(Math.abs(ee.deltaX)>0&&Math.abs(ee.deltaY)>0)return 1;var ae=.5,q=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(Math.abs(ee.deltaX-Math.round(ee.deltaX))>0||Math.abs(ee.deltaY-Math.round(ee.deltaY))>0)&&(ae+=.25),Math.min(Math.max(ae,0),1)},oe.INSTANCE=new oe,oe}(),De=function(oe){$(ee,oe);function ee(ae,q,ce){var X=oe.call(this)||this;X._onScroll=X._register(new F.a),X.onScroll=X._onScroll.event,ae.style.overflow="hidden",X._options=je(q),X._scrollable=ce,X._register(X._scrollable.onScroll(function(Pe){X._onDidScroll(Pe),X._onScroll.fire(Pe)}));var he={onMouseWheel:function(Xe){return X._onMouseWheel(Xe)},onDragStart:function(){return X._onDragStart()},onDragEnd:function(){return X._onDragEnd()}};return X._verticalScrollbar=X._register(new x(X._scrollable,X._options,he)),X._horizontalScrollbar=X._register(new E(X._scrollable,X._options,he)),X._domNode=document.createElement("div"),X._domNode.className="monaco-scrollable-element "+X._options.className,X._domNode.setAttribute("role","presentation"),X._domNode.style.position="relative",X._domNode.style.overflow="hidden",X._domNode.appendChild(ae),X._domNode.appendChild(X._horizontalScrollbar.domNode.domNode),X._domNode.appendChild(X._verticalScrollbar.domNode.domNode),X._options.useShadows?(X._leftShadowDomNode=Object(N.b)(document.createElement("div")),X._leftShadowDomNode.setClassName("shadow"),X._domNode.appendChild(X._leftShadowDomNode.domNode),X._topShadowDomNode=Object(N.b)(document.createElement("div")),X._topShadowDomNode.setClassName("shadow"),X._domNode.appendChild(X._topShadowDomNode.domNode),X._topLeftShadowDomNode=Object(N.b)(document.createElement("div")),X._topLeftShadowDomNode.setClassName("shadow top-left-corner"),X._domNode.appendChild(X._topLeftShadowDomNode.domNode)):(X._leftShadowDomNode=null,X._topShadowDomNode=null,X._topLeftShadowDomNode=null),X._listenOnDomNode=X._options.listenOnDomNode||X._domNode,X._mouseWheelToDispose=[],X._setListeningToMouseWheel(X._options.handleMouseWheel),X.onmouseover(X._listenOnDomNode,function(Pe){return X._onMouseOver(Pe)}),X.onnonbubblingmouseout(X._listenOnDomNode,function(Pe){return X._onMouseOut(Pe)}),X._hideTimeout=X._register(new U.e),X._isDragging=!1,X._mouseIsOver=!1,X._shouldRender=!0,X._revealOnScroll=!0,X}return ee.prototype.dispose=function(){this._mouseWheelToDispose=Object(L.f)(this._mouseWheelToDispose),oe.prototype.dispose.call(this)},ee.prototype.getDomNode=function(){return this._domNode},ee.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},ee.prototype.delegateVerticalScrollbarMouseDown=function(ae){this._verticalScrollbar.delegateMouseDown(ae)},ee.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},ee.prototype.setScrollDimensions=function(ae){this._scrollable.setScrollDimensions(ae)},ee.prototype.updateClassName=function(ae){this._options.className=ae,S.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},ee.prototype.updateOptions=function(ae){var q=je(ae);this._options.handleMouseWheel=q.handleMouseWheel,this._options.mouseWheelScrollSensitivity=q.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=q.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},ee.prototype._setListeningToMouseWheel=function(ae){var q=this,ce=this._mouseWheelToDispose.length>0;if(ce===ae)return;if(this._mouseWheelToDispose=Object(L.f)(this._mouseWheelToDispose),ae){var X=function(Pe){q._onMouseWheel(new H.c(Pe))};this._mouseWheelToDispose.push(J.j(this._listenOnDomNode,re.f?"mousewheel":"wheel",X,{passive:!1}))}},ee.prototype._onMouseWheel=function(ae){var q,ce=be.INSTANCE;if(B&&ce.accept(Date.now(),ae.deltaX,ae.deltaY),ae.deltaY||ae.deltaX){var X=ae.deltaY*this._options.mouseWheelScrollSensitivity,he=ae.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(q=[he,X],X=q[0],he=q[1]);var Pe=!S.e&&ae.browserEvent&&ae.browserEvent.shiftKey;(this._options.scrollYToX||Pe)&&!he&&(he=X,X=0),ae.browserEvent&&ae.browserEvent.altKey&&(he=he*this._options.fastScrollSensitivity,X=X*this._options.fastScrollSensitivity);var Xe=this._scrollable.getFutureScrollPosition(),pe={};if(X){var me=Xe.scrollTop-W*X;this._verticalScrollbar.writeScrollPosition(pe,me)}if(he){var Se=Xe.scrollLeft-W*he;this._horizontalScrollbar.writeScrollPosition(pe,Se)}if(pe=this._scrollable.validateScrollPosition(pe),Xe.scrollLeft!==pe.scrollLeft||Xe.scrollTop!==pe.scrollTop){var Re=B&&this._options.mouseWheelSmoothScroll&&ce.isPhysicalMouseWheel();Re?this._scrollable.setScrollPositionSmooth(pe):this._scrollable.setScrollPositionNow(pe),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(ae.preventDefault(),ae.stopPropagation())},ee.prototype._onDidScroll=function(ae){this._shouldRender=this._horizontalScrollbar.onDidScroll(ae)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(ae)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},ee.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},ee.prototype._render=function(){if(!this._shouldRender)return;if(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows){var ae=this._scrollable.getCurrentScrollPosition(),q=ae.scrollTop>0,ce=ae.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(ce?" left":"")),this._topShadowDomNode.setClassName("shadow"+(q?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(q?" top":"")+(ce?" left":""))}},ee.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},ee.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},ee.prototype._onMouseOut=function(ae){this._mouseIsOver=!1,this._hide()},ee.prototype._onMouseOver=function(ae){this._mouseIsOver=!0,this._reveal()},ee.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},ee.prototype._hide=function(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},ee.prototype._scheduleHide=function(){var ae=this;!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(function(){return ae._hide()},ie)},ee}(M.a),Te=function(oe){$(ee,oe);function ee(ae,q){var ce=this;q=q||{},q.mouseWheelSmoothScroll=!1;var X=new R.a(0,function(he){return J.W(he)});return ce=oe.call(this,ae,q,X)||this,ce._register(X),ce}return ee.prototype.setScrollPosition=function(ae){this._scrollable.setScrollPositionNow(ae)},ee.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},ee}(De),ke=function(oe){$(ee,oe);function ee(ae,q,ce){return oe.call(this,ae,q,ce)||this}return ee}(De),He=function(oe){$(ee,oe);function ee(ae,q){var ce=oe.call(this,ae,q)||this;return ce._element=ae,ce.onScroll(function(X){X.scrollTopChanged&&(ce._element.scrollTop=X.scrollTop),X.scrollLeftChanged&&(ce._element.scrollLeft=X.scrollLeft)}),ce.scanDomNode(),ce}return ee.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},ee}(Te);function je(oe){var ee={lazyRender:typeof oe.lazyRender!="undefined"?oe.lazyRender:!1,className:typeof oe.className!="undefined"?oe.className:"",useShadows:typeof oe.useShadows!="undefined"?oe.useShadows:!0,handleMouseWheel:typeof oe.handleMouseWheel!="undefined"?oe.handleMouseWheel:!0,flipAxes:typeof oe.flipAxes!="undefined"?oe.flipAxes:!1,alwaysConsumeMouseWheel:typeof oe.alwaysConsumeMouseWheel!="undefined"?oe.alwaysConsumeMouseWheel:!1,scrollYToX:typeof oe.scrollYToX!="undefined"?oe.scrollYToX:!1,mouseWheelScrollSensitivity:typeof oe.mouseWheelScrollSensitivity!="undefined"?oe.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof oe.fastScrollSensitivity!="undefined"?oe.fastScrollSensitivity:5,mouseWheelSmoothScroll:typeof oe.mouseWheelSmoothScroll!="undefined"?oe.mouseWheelSmoothScroll:!0,arrowSize:typeof oe.arrowSize!="undefined"?oe.arrowSize:11,listenOnDomNode:typeof oe.listenOnDomNode!="undefined"?oe.listenOnDomNode:null,horizontal:typeof oe.horizontal!="undefined"?oe.horizontal:1,horizontalScrollbarSize:typeof oe.horizontalScrollbarSize!="undefined"?oe.horizontalScrollbarSize:10,horizontalSliderSize:typeof oe.horizontalSliderSize!="undefined"?oe.horizontalSliderSize:0,horizontalHasArrows:typeof oe.horizontalHasArrows!="undefined"?oe.horizontalHasArrows:!1,vertical:typeof oe.vertical!="undefined"?oe.vertical:1,verticalScrollbarSize:typeof oe.verticalScrollbarSize!="undefined"?oe.verticalScrollbarSize:10,verticalHasArrows:typeof oe.verticalHasArrows!="undefined"?oe.verticalHasArrows:!1,verticalSliderSize:typeof oe.verticalSliderSize!="undefined"?oe.verticalSliderSize:0};return ee.horizontalSliderSize=typeof oe.horizontalSliderSize!="undefined"?oe.horizontalSliderSize:ee.horizontalScrollbarSize,ee.verticalSliderSize=typeof oe.verticalSliderSize!="undefined"?oe.verticalSliderSize:ee.verticalScrollbarSize,S.e&&(ee.className+=" mac"),ee}},"GR/f":function(_t,P,e){"use strict";e.d(P,"a",function(){return f}),e.d(P,"b",function(){return v});var T=e("/cxE"),re=e("N0LK"),J=e("LCkn"),N=e("zN7H"),H=e("aokT"),z=e("gCVg"),M=function(){function S(g,u,s){this._range=g,this._charBeforeSelection=u,this._charAfterSelection=s}return S.prototype.getEditOperations=function(g,u){u.addTrackedEditOperation(new H.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),u.addTrackedEditOperation(new H.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},S.prototype.computeCursorState=function(g,u){var s=u.getInverseEditOperations(),l=s[0].range,d=s[1].range;return new z.a(l.endLineNumber,l.endColumn,d.endLineNumber,d.endColumn-this._charAfterSelection.length)},S}(),U=e("Ll0s"),A=e("5v8Y"),c=e("KDc4"),y=e("cMvZ"),L=function(){var S=function(u,s){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var p in d)d.hasOwnProperty(p)&&(l[p]=d[p])},S(u,s)};return function(g,u){S(g,u);function s(){this.constructor=g}g.prototype=u===null?Object.create(u):(s.prototype=u.prototype,new s)}}(),f=function(){function S(){}return S.indent=function(g,u,s){if(u===null||s===null)return[];for(var l=[],d=0,p=s.length;d<p;d++)l[d]=new N.a(s[d],{isUnshift:!1,tabSize:g.tabSize,indentSize:g.indentSize,insertSpaces:g.insertSpaces,useTabStops:g.useTabStops,autoIndent:g.autoIndent});return l},S.outdent=function(g,u,s){for(var l=[],d=0,p=s.length;d<p;d++)l[d]=new N.a(s[d],{isUnshift:!0,tabSize:g.tabSize,indentSize:g.indentSize,insertSpaces:g.insertSpaces,useTabStops:g.useTabStops,autoIndent:g.autoIndent});return l},S.shiftIndent=function(g,u,s){return s=s||1,N.a.shiftIndent(u,u.length+s,g.tabSize,g.indentSize,g.insertSpaces)},S.unshiftIndent=function(g,u,s){return s=s||1,N.a.unshiftIndent(u,u.length+s,g.tabSize,g.indentSize,g.insertSpaces)},S._distributedPaste=function(g,u,s,l){for(var d=[],p=0,E=s.length;p<E;p++)d[p]=new J.a(s[p],l[p]);return new U.e(0,d,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},S._simplePaste=function(g,u,s,l,d){for(var p=[],E=0,_=s.length;E<_;E++){var x=s[E],F=x.getPosition();if(d&&!x.isEmpty()&&(d=!1),d&&l.indexOf(`
`)!==l.length-1&&(d=!1),d){var R=new H.a(F.lineNumber,1,F.lineNumber,1);p[E]=new J.b(R,l,x,!0)}else p[E]=new J.a(x,l)}return new U.e(0,p,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},S._distributePasteToCursors=function(g,u,s,l,d){if(l)return null;if(u.length===1)return null;if(d&&d.length===u.length)return d;if(g.multiCursorPaste==="spread"){s.charCodeAt(s.length-1)===10&&(s=s.substr(0,s.length-1)),s.charCodeAt(s.length-1)===13&&(s=s.substr(0,s.length-1));var p=s.split(/\r\n|\r|\n/);if(p.length===u.length)return p}return null},S.paste=function(g,u,s,l,d,p){var E=this._distributePasteToCursors(g,s,l,d,p);return E?(s=s.sort(H.a.compareRangesUsingStarts),this._distributedPaste(g,u,s,E)):this._simplePaste(g,u,s,l,d)},S._goodIndentForLine=function(g,u,s){var l=null,d="",p=y.a.getInheritIndentForLine(g.autoIndent,u,s,!1);if(p)l=p.action,d=p.indentation;else if(s>1){var E=void 0;for(E=s-1;E>=1;E--){var _=u.getLineContent(E),x=re.D(_);if(x>=0)break}if(E<1)return null;var F=u.getLineMaxColumn(E),R=y.a.getEnterAction(g.autoIndent,u,new H.a(E,F,E,F));R&&(d=R.indentation+R.appendText)}return l&&(l===c.a.Indent&&(d=S.shiftIndent(g,d)),l===c.a.Outdent&&(d=S.unshiftIndent(g,d)),d=g.normalizeIndentation(d)),d||null},S._replaceJumpToNextIndent=function(g,u,s,l){var d="",p=s.getStartPosition();if(g.insertSpaces)for(var E=U.a.visibleColumnFromColumn2(g,u,p),_=g.indentSize,x=_-E%_,F=0;F<x;F++)d+=" ";else d=" ";return new J.a(s,d,l)},S.tab=function(g,u,s){for(var l=[],d=0,p=s.length;d<p;d++){var E=s[d];if(E.isEmpty()){var _=u.getLineContent(E.startLineNumber);if(/^\s*$/.test(_)&&u.isCheapToTokenize(E.startLineNumber)){var x=this._goodIndentForLine(g,u,E.startLineNumber);x=x||" ";var F=g.normalizeIndentation(x);if(!re.N(_,F)){l[d]=new J.a(new H.a(E.startLineNumber,1,E.startLineNumber,_.length+1),F,!0);continue}}l[d]=this._replaceJumpToNextIndent(g,u,E,!0)}else{if(E.startLineNumber===E.endLineNumber){var R=u.getLineMaxColumn(E.startLineNumber);if(E.startColumn!==1||E.endColumn!==R){l[d]=this._replaceJumpToNextIndent(g,u,E,!1);continue}}l[d]=new N.a(E,{isUnshift:!1,tabSize:g.tabSize,indentSize:g.indentSize,insertSpaces:g.insertSpaces,useTabStops:g.useTabStops,autoIndent:g.autoIndent})}}return l},S.replacePreviousChar=function(g,u,s,l,d,p){for(var E=[],_=0,x=l.length;_<x;_++){var F=l[_];if(!F.isEmpty()){E[_]=null;continue}var R=F.getPosition(),$=Math.max(1,R.column-p),ie=new H.a(R.lineNumber,$,R.lineNumber,R.column);E[_]=new J.a(ie,d)}return new U.e(1,E,{shouldPushStackElementBefore:g!==1,shouldPushStackElementAfter:!1})},S._typeCommand=function(g,u,s){return s?new J.e(g,u,!0):new J.a(g,u,!0)},S._enter=function(g,u,s,l){if(g.autoIndent===0)return S._typeCommand(l,`
`,s);if(!u.isCheapToTokenize(l.getStartPosition().lineNumber)||g.autoIndent===1){var d=u.getLineContent(l.startLineNumber),p=re.t(d).substring(0,l.startColumn-1);return S._typeCommand(l,`
`+g.normalizeIndentation(p),s)}var E=y.a.getEnterAction(g.autoIndent,u,l);if(E){if(E.indentAction===c.a.None)return S._typeCommand(l,`
`+g.normalizeIndentation(E.indentation+E.appendText),s);if(E.indentAction===c.a.Indent)return S._typeCommand(l,`
`+g.normalizeIndentation(E.indentation+E.appendText),s);if(E.indentAction===c.a.IndentOutdent){var _=g.normalizeIndentation(E.indentation),x=g.normalizeIndentation(E.indentation+E.appendText),F=`
`+x+`
`+_;return s?new J.e(l,F,!0):new J.d(l,F,-1,x.length-_.length,!0)}else if(E.indentAction===c.a.Outdent){var R=S.unshiftIndent(g,E.indentation);return S._typeCommand(l,`
`+g.normalizeIndentation(R+E.appendText),s)}}var $=u.getLineContent(l.startLineNumber),ie=re.t($).substring(0,l.startColumn-1);if(g.autoIndent>=4){var W=y.a.getIndentForEnter(g.autoIndent,u,l,{unshiftIndent:function(je){return S.unshiftIndent(g,je)},shiftIndent:function(je){return S.shiftIndent(g,je)},normalizeIndentation:function(je){return g.normalizeIndentation(je)}});if(W){var B=U.a.visibleColumnFromColumn2(g,u,l.getEndPosition()),le=l.endColumn,be=`
`;ie!==g.normalizeIndentation(W.beforeEnter)&&(be=g.normalizeIndentation(W.beforeEnter)+$.substring(ie.length,l.startColumn-1)+`
`,l=new H.a(l.startLineNumber,1,l.endLineNumber,l.endColumn));var De=u.getLineContent(l.endLineNumber),Te=re.q(De);if(Te>=0?l=l.setEndPosition(l.endLineNumber,Math.max(l.endColumn,Te+1)):l=l.setEndPosition(l.endLineNumber,u.getLineMaxColumn(l.endLineNumber)),s)return new J.e(l,be+g.normalizeIndentation(W.afterEnter),!0);var ke=0;return le<=Te+1&&(g.insertSpaces||(B=Math.ceil(B/g.indentSize)),ke=Math.min(B+1-g.normalizeIndentation(W.afterEnter).length-1,0)),new J.d(l,be+g.normalizeIndentation(W.afterEnter),0,ke,!0)}}return S._typeCommand(l,`
`+g.normalizeIndentation(ie),s)},S._isAutoIndentType=function(g,u,s){if(g.autoIndent<4)return!1;for(var l=0,d=s.length;l<d;l++)if(!u.isCheapToTokenize(s[l].getEndPosition().lineNumber))return!1;return!0},S._runAutoIndentType=function(g,u,s,l){var d=y.a.getIndentationAtPosition(u,s.startLineNumber,s.startColumn),p=y.a.getIndentActionForType(g.autoIndent,u,s,l,{shiftIndent:function(x){return S.shiftIndent(g,x)},unshiftIndent:function(x){return S.unshiftIndent(g,x)}});if(p===null)return null;if(p!==g.normalizeIndentation(d)){var E=u.getLineFirstNonWhitespaceColumn(s.startLineNumber);return E===0?S._typeCommand(new H.a(s.startLineNumber,0,s.endLineNumber,s.endColumn),g.normalizeIndentation(p)+l,!1):S._typeCommand(new H.a(s.startLineNumber,0,s.endLineNumber,s.endColumn),g.normalizeIndentation(p)+u.getLineContent(s.startLineNumber).substring(E-1,s.startColumn-1)+l,!1)}return null},S._isAutoClosingOvertype=function(g,u,s,l,d){if(g.autoClosingOvertype==="never")return!1;if(!g.autoClosingPairsClose2.has(d))return!1;for(var p=0,E=s.length;p<E;p++){var _=s[p];if(!_.isEmpty())return!1;var x=_.getPosition(),F=u.getLineContent(x.lineNumber),R=F.charAt(x.column-1);if(R!==d)return!1;var $=Object(U.g)(d),ie=x.column>2?F.charCodeAt(x.column-2):0;if(ie===92&&$)return!1;if(g.autoClosingOvertype==="auto"){for(var W=!1,B=0,le=l.length;B<le;B++){var be=l[B];if(x.lineNumber===be.startLineNumber&&x.column===be.startColumn){W=!0;break}}if(!W)return!1}}return!0},S._runAutoClosingOvertype=function(g,u,s,l,d){for(var p=[],E=0,_=l.length;E<_;E++){var x=l[E],F=x.getPosition(),R=new H.a(F.lineNumber,F.column,F.lineNumber,F.column+1);p[E]=new J.a(R,d)}return new U.e(1,p,{shouldPushStackElementBefore:g!==1,shouldPushStackElementAfter:!1})},S._autoClosingPairIsSymmetric=function(g){var u=g.open,s=g.close;return u.indexOf(s)>=0||s.indexOf(u)>=0},S._isBeforeClosingBrace=function(g,u,s){var l=g.autoClosingPairsClose2.get(s);if(!l)return!1;for(var d=S._autoClosingPairIsSymmetric(u),p=0,E=l;p<E.length;p++){var _=E[p],x=S._autoClosingPairIsSymmetric(_);if(!d&&x)continue;return!0}return!1},S._findAutoClosingPairOpen=function(g,u,s,l){var d=g.autoClosingPairsOpen2.get(l);if(!d)return null;for(var p=null,E=0,_=d;E<_.length;E++){var x=_[E];if(p===null||x.open.length>p.open.length){for(var F=!0,R=0,$=s;R<$.length;R++){var ie=$[R],W=u.getValueInRange(new H.a(ie.lineNumber,ie.column-x.open.length+1,ie.lineNumber,ie.column));if(W+l!==x.open){F=!1;break}}F&&(p=x)}}return p},S._isAutoClosingOpenCharType=function(g,u,s,l,d){var p=Object(U.g)(l),E=p?g.autoClosingQuotes:g.autoClosingBrackets;if(E==="never")return null;var _=this._findAutoClosingPairOpen(g,u,s.map(function(ke){return ke.getPosition()}),l);if(!_)return null;for(var x=p?g.shouldAutoCloseBefore.quote:g.shouldAutoCloseBefore.bracket,F=0,R=s.length;F<R;F++){var $=s[F];if(!$.isEmpty())return null;var ie=$.getPosition(),W=u.getLineContent(ie.lineNumber);if(W.length>ie.column-1){var B=W.charAt(ie.column-1),le=S._isBeforeClosingBrace(g,_,B);if(!le&&!x(B))return null}if(!u.isCheapToTokenize(ie.lineNumber))return null;if(_.open.length===1&&p&&E!=="always"){var be=Object(A.a)(g.wordSeparators);if(d&&ie.column>1&&be.get(W.charCodeAt(ie.column-2))===0)return null;if(!d&&ie.column>2&&be.get(W.charCodeAt(ie.column-3))===0)return null}u.forceTokenization(ie.lineNumber);var De=u.getLineTokens(ie.lineNumber),Te=!1;try{Te=y.a.shouldAutoClosePair(_,De,d?ie.column:ie.column-1)}catch(ke){Object(T.e)(ke)}if(!Te)return null}return _},S._runAutoClosingOpenCharType=function(g,u,s,l,d,p,E){for(var _=[],x=0,F=l.length;x<F;x++){var R=l[x];_[x]=new v(R,d,p,E.close)}return new U.e(1,_,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},S._shouldSurroundChar=function(g,u){return Object(U.g)(u)?g.autoSurround==="quotes"||g.autoSurround==="languageDefined":g.autoSurround==="brackets"||g.autoSurround==="languageDefined"},S._isSurroundSelectionType=function(g,u,s,l){if(!S._shouldSurroundChar(g,l)||!g.surroundingPairs.hasOwnProperty(l))return!1;for(var d=Object(U.g)(l),p=0,E=s.length;p<E;p++){var _=s[p];if(_.isEmpty())return!1;for(var x=!0,F=_.startLineNumber;F<=_.endLineNumber;F++){var R=u.getLineContent(F),$=F===_.startLineNumber?_.startColumn-1:0,ie=F===_.endLineNumber?_.endColumn-1:R.length,W=R.substring($,ie);if(/[^ \t]/.test(W)){x=!1;break}}if(x)return!1;if(d&&_.startLineNumber===_.endLineNumber&&_.startColumn+1===_.endColumn){var B=u.getValueInRange(_);if(Object(U.g)(B))return!1}}return!0},S._runSurroundSelectionType=function(g,u,s,l,d){for(var p=[],E=0,_=l.length;E<_;E++){var x=l[E],F=u.surroundingPairs[d];p[E]=new M(x,d,F)}return new U.e(0,p,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},S._isTypeInterceptorElectricChar=function(g,u,s){return!!(s.length===1&&u.isCheapToTokenize(s[0].getEndPosition().lineNumber))},S._typeInterceptorElectricChar=function(g,u,s,l,d){if(!u.electricChars.hasOwnProperty(d)||!l.isEmpty())return null;var p=l.getPosition();s.forceTokenization(p.lineNumber);var E=s.getLineTokens(p.lineNumber),_;try{_=y.a.onElectricCharacter(d,E,p.column)}catch(ke){return Object(T.e)(ke),null}if(!_)return null;if(_.matchOpenBracket){var x=(E.getLineContent()+d).lastIndexOf(_.matchOpenBracket)+1,F=s.findMatchingBracketUp(_.matchOpenBracket,{lineNumber:p.lineNumber,column:x});if(F){if(F.startLineNumber===p.lineNumber)return null;var R=s.getLineContent(F.startLineNumber),$=re.t(R),ie=u.normalizeIndentation($),W=s.getLineContent(p.lineNumber),B=s.getLineFirstNonWhitespaceColumn(p.lineNumber)||p.column,le=W.substring(B-1,p.column-1),be=ie+le+d,De=new H.a(p.lineNumber,1,p.lineNumber,p.column),Te=new J.a(De,be);return new U.e(1,[Te],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},S.compositionEndWithInterceptors=function(g,u,s,l,d,p){if(!l||z.a.selectionsArrEqual(l,d))return null;for(var E=null,_=0,x=d;_<x.length;_++){var F=x[_];if(!F.isEmpty())return null;var R=F.getPosition(),$=s.getValueInRange(new H.a(R.lineNumber,R.column-1,R.lineNumber,R.column));if(E===null)E=$;else if(E!==$)return null}if(!E)return null;if(this._isAutoClosingOvertype(u,s,d,p,E)){var ie=d.map(function(B){return new J.a(new H.a(B.positionLineNumber,B.positionColumn,B.positionLineNumber,B.positionColumn+1),"",!1)});return new U.e(1,ie,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var W=this._isAutoClosingOpenCharType(u,s,d,E,!1);return W?this._runAutoClosingOpenCharType(g,u,s,d,E,!1,W):null},S.typeWithInterceptors=function(g,u,s,l,d,p){if(p===`
`){for(var E=[],_=0,x=l.length;_<x;_++)E[_]=S._enter(u,s,!1,l[_]);return new U.e(1,E,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(u,s,l)){for(var F=[],R=!1,_=0,x=l.length;_<x;_++)if(F[_]=this._runAutoIndentType(u,s,l[_],p),!F[_]){R=!0;break}if(!R)return new U.e(1,F,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(u,s,l,d,p))return this._runAutoClosingOvertype(g,u,s,l,p);var $=this._isAutoClosingOpenCharType(u,s,l,p,!0);if($)return this._runAutoClosingOpenCharType(g,u,s,l,p,!0,$);if(this._isSurroundSelectionType(u,s,l,p))return this._runSurroundSelectionType(g,u,s,l,p);if(this._isTypeInterceptorElectricChar(u,s,l)){var ie=this._typeInterceptorElectricChar(g,u,s,l[0],p);if(ie)return ie}for(var W=[],_=0,x=l.length;_<x;_++)W[_]=new J.a(l[_],p);var B=g!==1;return p===" "&&(B=!0),new U.e(1,W,{shouldPushStackElementBefore:B,shouldPushStackElementAfter:!1})},S.typeWithoutInterceptors=function(g,u,s,l,d){for(var p=[],E=0,_=l.length;E<_;E++)p[E]=new J.a(l[E],d);return new U.e(1,p,{shouldPushStackElementBefore:g!==1,shouldPushStackElementAfter:!1})},S.lineInsertBefore=function(g,u,s){if(u===null||s===null)return[];for(var l=[],d=0,p=s.length;d<p;d++){var E=s[d].positionLineNumber;if(E===1)l[d]=new J.e(new H.a(1,1,1,1),`
`);else{E--;var _=u.getLineMaxColumn(E);l[d]=this._enter(g,u,!1,new H.a(E,_,E,_))}}return l},S.lineInsertAfter=function(g,u,s){if(u===null||s===null)return[];for(var l=[],d=0,p=s.length;d<p;d++){var E=s[d].positionLineNumber,_=u.getLineMaxColumn(E);l[d]=this._enter(g,u,!1,new H.a(E,_,E,_))}return l},S.lineBreakInsert=function(g,u,s){for(var l=[],d=0,p=s.length;d<p;d++)l[d]=this._enter(g,u,!0,s[d]);return l},S}(),v=function(S){L(g,S);function g(u,s,l,d){var p=S.call(this,u,(l?s:"")+d,0,-d.length)||this;return p._openCharacter=s,p._closeCharacter=d,p.closeCharacterRange=null,p.enclosingRange=null,p}return g.prototype.computeCursorState=function(u,s){var l=s.getInverseEditOperations(),d=l[0].range;return this.closeCharacterRange=new H.a(d.startLineNumber,d.endColumn-this._closeCharacter.length,d.endLineNumber,d.endColumn),this.enclosingRange=new H.a(d.startLineNumber,d.endColumn-this._openCharacter.length-this._closeCharacter.length,d.endLineNumber,d.endColumn),S.prototype.computeCursorState.call(this,u,s)},g}(J.d)},GZrW:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return e.e(290).then(e.bind(null,"Csoz"))}})},Gb1F:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return e.e(286).then(e.bind(null,"ynbn"))}})},GvMn:function(_t,P,e){"use strict";e.r(P);var T=e("3/fG"),re=e("aokT"),J=e("gCVg"),N=e("wQH0"),H=e("sswD"),z=e("pAvP"),M=function(){function d(p,E,_){this._editRange=p,this._originalSelection=E,this._text=_}return d.prototype.getEditOperations=function(p,E){E.addTrackedEditOperation(this._editRange,this._text)},d.prototype.computeCursorState=function(p,E){var _=E.getInverseEditOperations(),x=_[0].range;return this._originalSelection.isEmpty()?new J.a(x.endLineNumber,Math.min(this._originalSelection.positionColumn,x.endColumn),x.endLineNumber,Math.min(this._originalSelection.positionColumn,x.endColumn)):new J.a(x.endLineNumber,x.endColumn-this._text.length,x.endLineNumber,x.endColumn)},d}(),U=e("vATl"),A=e("t9D7"),c=e("kYye"),y=e("tX9W"),L=e("X+cX"),f=e("/cxE"),v=function(){var d=function(E,_){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,F){x.__proto__=F}||function(x,F){for(var R in F)F.hasOwnProperty(R)&&(x[R]=F[R])},d(E,_)};return function(p,E){d(p,E);function _(){this.constructor=p}p.prototype=E===null?Object.create(E):(_.prototype=E.prototype,new _)}}(),S=function(d,p,E,_){var x=arguments.length,F=x<3?p:_===null?_=Object.getOwnPropertyDescriptor(p,E):_,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(d,p,E,_);else for(var $=d.length-1;$>=0;$--)(R=d[$])&&(F=(x<3?R(F):x>3?R(p,E,F):R(p,E))||F);return x>3&&F&&Object.defineProperty(p,E,F),F},g=function(d,p){return function(E,_){p(E,_,d)}},u=function(){function d(p,E){this.decorationIds=[],this.editor=p,this.editorWorkerService=E}return d.get=function(p){return p.getContribution(d.ID)},d.prototype.dispose=function(){},d.prototype.run=function(p,E){var _=this;this.currentRequest&&this.currentRequest.cancel();var x=this.editor.getSelection(),F=this.editor.getModel();if(!F||!x)return;var R=x;if(R.startLineNumber!==R.endLineNumber)return;var $=new U.a(this.editor,1|4),ie=F.uri;return this.editorWorkerService.canNavigateValueSet(ie)?(this.currentRequest=Object(L.f)(function(W){return _.editorWorkerService.navigateValueSet(ie,R,E)}),this.currentRequest.then(function(W){if(!W||!W.range||!W.value)return;if(!$.validate(_.editor))return;var B=re.a.lift(W.range),le=W.range,be=W.value.length-(R.endColumn-R.startColumn);le={startLineNumber:le.startLineNumber,startColumn:le.startColumn,endLineNumber:le.endLineNumber,endColumn:le.startColumn+W.value.length},be>1&&(R=new J.a(R.startLineNumber,R.startColumn,R.endLineNumber,R.endColumn+be-1));var De=new M(B,R,W.value);_.editor.pushUndoStop(),_.editor.executeCommand(p,De),_.editor.pushUndoStop(),_.decorationIds=_.editor.deltaDecorations(_.decorationIds,[{range:le,options:d.DECORATION}]),_.decorationRemover&&_.decorationRemover.cancel(),_.decorationRemover=Object(L.l)(350),_.decorationRemover.then(function(){return _.decorationIds=_.editor.deltaDecorations(_.decorationIds,[])}).catch(f.e)}).catch(f.e)):Promise.resolve(void 0)},d.ID="editor.contrib.inPlaceReplaceController",d.DECORATION=y.a.register({className:"valueSetReplacement"}),d=S([g(1,z.a)],d),d}(),s=function(d){v(p,d);function p(){return d.call(this,{id:"editor.action.inPlaceReplace.up",label:T.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:2048|1024|82,weight:100}})||this}return p.prototype.run=function(E,_){var x=u.get(_);return x?x.run(this.id,!0):Promise.resolve(void 0)},p}(H.b),l=function(d){v(p,d);function p(){return d.call(this,{id:"editor.action.inPlaceReplace.down",label:T.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:2048|1024|84,weight:100}})||this}return p.prototype.run=function(E,_){var x=u.get(_);return x?x.run(this.id,!1):Promise.resolve(void 0)},p}(H.b);Object(H.h)(u.ID,u),Object(H.f)(s),Object(H.f)(l),Object(A.e)(function(d,p){var E=d.getColor(c.d);E&&p.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+E+"; }")})},Gw4z:function(_t,P,e){"use strict";e.d(P,"b",function(){return N}),e.d(P,"a",function(){return U});var T=function(){function A(c,y,L,f){this.originalStart=c,this.originalLength=y,this.modifiedStart=L,this.modifiedLength=f}return A.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},A.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},A}(),re=e("7afs"),J=function(){function A(c){this.source=c}return A.prototype.getElements=function(){for(var c=this.source,y=new Int32Array(c.length),L=0,f=c.length;L<f;L++)y[L]=c.charCodeAt(L);return y},A}();function N(A,c,y){return new U(new J(A),new J(c)).ComputeDiff(y).changes}var H=function(){function A(){}return A.Assert=function(c,y){if(!c)throw new Error(y)},A}(),z=function(){function A(){}return A.Copy=function(c,y,L,f,v){for(var S=0;S<v;S++)L[f+S]=c[y+S]},A.Copy2=function(c,y,L,f,v){for(var S=0;S<v;S++)L[f+S]=c[y+S]},A}(),M=function(){function A(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return A.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new T(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824},A.prototype.AddOriginalElement=function(c,y){this.m_originalStart=Math.min(this.m_originalStart,c),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),this.m_originalCount++},A.prototype.AddModifiedElement=function(c,y){this.m_originalStart=Math.min(this.m_originalStart,c),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),this.m_modifiedCount++},A.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},A.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},A}(),U=function(){function A(c,y,L){L===void 0&&(L=null),this.ContinueProcessingPredicate=L;var f=A._getElements(c),v=f[0],S=f[1],g=f[2],u=A._getElements(y),s=u[0],l=u[1],d=u[2];this._hasStrings=g&&d,this._originalStringElements=v,this._originalElementsOrHash=S,this._modifiedStringElements=s,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}return A._isStringArray=function(c){return c.length>0&&typeof c[0]=="string"},A._getElements=function(c){var y=c.getElements();if(A._isStringArray(y)){for(var L=new Int32Array(y.length),f=0,v=y.length;f<v;f++)L[f]=Object(re.b)(y[f],0);return[y,L,!0]}return y instanceof Int32Array?[[],y,!1]:[[],new Int32Array(y),!1]},A.prototype.ElementsAreEqual=function(c,y){return this._originalElementsOrHash[c]!==this._modifiedElementsOrHash[y]?!1:this._hasStrings?this._originalStringElements[c]===this._modifiedStringElements[y]:!0},A.prototype.OriginalElementsAreEqual=function(c,y){return this._originalElementsOrHash[c]!==this._originalElementsOrHash[y]?!1:this._hasStrings?this._originalStringElements[c]===this._originalStringElements[y]:!0},A.prototype.ModifiedElementsAreEqual=function(c,y){return this._modifiedElementsOrHash[c]!==this._modifiedElementsOrHash[y]?!1:this._hasStrings?this._modifiedStringElements[c]===this._modifiedStringElements[y]:!0},A.prototype.ComputeDiff=function(c){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,c)},A.prototype._ComputeDiff=function(c,y,L,f,v){var S=[!1],g=this.ComputeDiffRecursive(c,y,L,f,S);return v&&(g=this.PrettifyChanges(g)),{quitEarly:S[0],changes:g}},A.prototype.ComputeDiffRecursive=function(c,y,L,f,v){for(v[0]=!1;c<=y&&L<=f&&this.ElementsAreEqual(c,L);)c++,L++;for(;y>=c&&f>=L&&this.ElementsAreEqual(y,f);)y--,f--;if(c>y||L>f){var S=void 0;return L<=f?(H.Assert(c===y+1,"originalStart should only be one more than originalEnd"),S=[new T(c,0,L,f-L+1)]):c<=y?(H.Assert(L===f+1,"modifiedStart should only be one more than modifiedEnd"),S=[new T(c,y-c+1,L,0)]):(H.Assert(c===y+1,"originalStart should only be one more than originalEnd"),H.Assert(L===f+1,"modifiedStart should only be one more than modifiedEnd"),S=[]),S}var g=[0],u=[0],s=this.ComputeRecursionPoint(c,y,L,f,g,u,v),l=g[0],d=u[0];if(s!==null)return s;if(!v[0]){var p=this.ComputeDiffRecursive(c,l,L,d,v),E=[];return v[0]?E=[new T(l+1,y-(l+1)+1,d+1,f-(d+1)+1)]:E=this.ComputeDiffRecursive(l+1,y,d+1,f,v),this.ConcatenateChanges(p,E)}return[new T(c,y-c+1,L,f-L+1)]},A.prototype.WALKTRACE=function(c,y,L,f,v,S,g,u,s,l,d,p,E,_,x,F,R,$){var ie=null,W=null,B=new M,le=y,be=L,De=E[0]-F[0]-f,Te=-1073741824,ke=this.m_forwardHistory.length-1;do{var He=De+c;He===le||He<be&&s[He-1]<s[He+1]?(d=s[He+1],_=d-De-f,d<Te&&B.MarkNextChange(),Te=d,B.AddModifiedElement(d+1,_),De=He+1-c):(d=s[He-1]+1,_=d-De-f,d<Te&&B.MarkNextChange(),Te=d-1,B.AddOriginalElement(d,_+1),De=He-1-c),ke>=0&&(s=this.m_forwardHistory[ke],c=s[0],le=1,be=s.length-1)}while(--ke>=-1);if(ie=B.getReverseChanges(),$[0]){var je=E[0]+1,oe=F[0]+1;if(ie!==null&&ie.length>0){var ee=ie[ie.length-1];je=Math.max(je,ee.getOriginalEnd()),oe=Math.max(oe,ee.getModifiedEnd())}W=[new T(je,p-je+1,oe,x-oe+1)]}else{B=new M,le=S,be=g,De=E[0]-F[0]-u,Te=1073741824,ke=R?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var He=De+v;He===le||He<be&&l[He-1]>=l[He+1]?(d=l[He+1]-1,_=d-De-u,d>Te&&B.MarkNextChange(),Te=d+1,B.AddOriginalElement(d+1,_+1),De=He+1-v):(d=l[He-1],_=d-De-u,d>Te&&B.MarkNextChange(),Te=d,B.AddModifiedElement(d+1,_+1),De=He-1-v),ke>=0&&(l=this.m_reverseHistory[ke],v=l[0],le=1,be=l.length-1)}while(--ke>=-1);W=B.getChanges()}return this.ConcatenateChanges(ie,W)},A.prototype.ComputeRecursionPoint=function(c,y,L,f,v,S,g){var u=0,s=0,l=0,d=0,p=0,E=0;c--,L--,v[0]=0,S[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var _=y-c+(f-L),x=_+1,F=new Int32Array(x),R=new Int32Array(x),$=f-L,ie=y-c,W=c-L,B=y-f,le=ie-$,be=le%2===0;F[$]=c,R[ie]=y,g[0]=!1;for(var De=1;De<=_/2+1;De++){var Te=0,ke=0;l=this.ClipDiagonalBound($-De,De,$,x),d=this.ClipDiagonalBound($+De,De,$,x);for(var He=l;He<=d;He+=2){He===l||He<d&&F[He-1]<F[He+1]?u=F[He+1]:u=F[He-1]+1,s=u-(He-$)-W;for(var je=u;u<y&&s<f&&this.ElementsAreEqual(u+1,s+1);)u++,s++;if(F[He]=u,u+s>Te+ke&&(Te=u,ke=s),!be&&Math.abs(He-ie)<=De-1&&u>=R[He])return v[0]=u,S[0]=s,je<=R[He]&&1447>0&&De<=1447+1?this.WALKTRACE($,l,d,W,ie,p,E,B,F,R,u,y,v,s,f,S,be,g):null}var oe=(Te-c+(ke-L)-De)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Te,oe))return g[0]=!0,v[0]=Te,S[0]=ke,oe>0&&1447>0&&De<=1447+1?this.WALKTRACE($,l,d,W,ie,p,E,B,F,R,u,y,v,s,f,S,be,g):(c++,L++,[new T(c,y-c+1,L,f-L+1)]);p=this.ClipDiagonalBound(ie-De,De,ie,x),E=this.ClipDiagonalBound(ie+De,De,ie,x);for(var He=p;He<=E;He+=2){He===p||He<E&&R[He-1]>=R[He+1]?u=R[He+1]-1:u=R[He-1],s=u-(He-ie)-B;for(var je=u;u>c&&s>L&&this.ElementsAreEqual(u,s);)u--,s--;if(R[He]=u,be&&Math.abs(He-$)<=De&&u<=F[He])return v[0]=u,S[0]=s,je>=F[He]&&1447>0&&De<=1447+1?this.WALKTRACE($,l,d,W,ie,p,E,B,F,R,u,y,v,s,f,S,be,g):null}if(De<=1447){var ee=new Int32Array(d-l+2);ee[0]=$-l+1,z.Copy2(F,l,ee,1,d-l+1),this.m_forwardHistory.push(ee),ee=new Int32Array(E-p+2),ee[0]=ie-p+1,z.Copy2(R,p,ee,1,E-p+1),this.m_reverseHistory.push(ee)}}return this.WALKTRACE($,l,d,W,ie,p,E,B,F,R,u,y,v,s,f,S,be,g)},A.prototype.PrettifyChanges=function(c){for(var y=0;y<c.length;y++){for(var L=c[y],f=y<c.length-1?c[y+1].originalStart:this._originalElementsOrHash.length,v=y<c.length-1?c[y+1].modifiedStart:this._modifiedElementsOrHash.length,S=L.originalLength>0,g=L.modifiedLength>0;L.originalStart+L.originalLength<f&&L.modifiedStart+L.modifiedLength<v&&(!S||this.OriginalElementsAreEqual(L.originalStart,L.originalStart+L.originalLength))&&(!g||this.ModifiedElementsAreEqual(L.modifiedStart,L.modifiedStart+L.modifiedLength));)L.originalStart++,L.modifiedStart++;var u=[null];if(y<c.length-1&&this.ChangesOverlap(c[y],c[y+1],u)){c[y]=u[0],c.splice(y+1,1),y--;continue}}for(var y=c.length-1;y>=0;y--){var L=c[y],f=0,v=0;if(y>0){var s=c[y-1];s.originalLength>0&&(f=s.originalStart+s.originalLength),s.modifiedLength>0&&(v=s.modifiedStart+s.modifiedLength)}for(var S=L.originalLength>0,g=L.modifiedLength>0,l=0,d=this._boundaryScore(L.originalStart,L.originalLength,L.modifiedStart,L.modifiedLength),p=1;;p++){var E=L.originalStart-p,_=L.modifiedStart-p;if(E<f||_<v)break;if(S&&!this.OriginalElementsAreEqual(E,E+L.originalLength))break;if(g&&!this.ModifiedElementsAreEqual(_,_+L.modifiedLength))break;var x=this._boundaryScore(E,L.originalLength,_,L.modifiedLength);x>d&&(d=x,l=p)}L.originalStart-=l,L.modifiedStart-=l}return c},A.prototype._OriginalIsBoundary=function(c){return c<=0||c>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[c])},A.prototype._OriginalRegionIsBoundary=function(c,y){if(this._OriginalIsBoundary(c)||this._OriginalIsBoundary(c-1))return!0;if(y>0){var L=c+y;if(this._OriginalIsBoundary(L-1)||this._OriginalIsBoundary(L))return!0}return!1},A.prototype._ModifiedIsBoundary=function(c){return c<=0||c>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[c])},A.prototype._ModifiedRegionIsBoundary=function(c,y){if(this._ModifiedIsBoundary(c)||this._ModifiedIsBoundary(c-1))return!0;if(y>0){var L=c+y;if(this._ModifiedIsBoundary(L-1)||this._ModifiedIsBoundary(L))return!0}return!1},A.prototype._boundaryScore=function(c,y,L,f){var v=this._OriginalRegionIsBoundary(c,y)?1:0,S=this._ModifiedRegionIsBoundary(L,f)?1:0;return v+S},A.prototype.ConcatenateChanges=function(c,y){var L=[];if(c.length===0||y.length===0)return y.length>0?y:c;if(this.ChangesOverlap(c[c.length-1],y[0],L)){var f=new Array(c.length+y.length-1);return z.Copy(c,0,f,0,c.length-1),f[c.length-1]=L[0],z.Copy(y,1,f,c.length,y.length-1),f}else{var f=new Array(c.length+y.length);return z.Copy(c,0,f,0,c.length),z.Copy(y,0,f,c.length,y.length),f}},A.prototype.ChangesOverlap=function(c,y,L){if(H.Assert(c.originalStart<=y.originalStart,"Left change is not less than or equal to right change"),H.Assert(c.modifiedStart<=y.modifiedStart,"Left change is not less than or equal to right change"),c.originalStart+c.originalLength>=y.originalStart||c.modifiedStart+c.modifiedLength>=y.modifiedStart){var f=c.originalStart,v=c.originalLength,S=c.modifiedStart,g=c.modifiedLength;return c.originalStart+c.originalLength>=y.originalStart&&(v=y.originalStart+y.originalLength-c.originalStart),c.modifiedStart+c.modifiedLength>=y.modifiedStart&&(g=y.modifiedStart+y.modifiedLength-c.modifiedStart),L[0]=new T(f,v,S,g),!0}else return L[0]=null,!1},A.prototype.ClipDiagonalBound=function(c,y,L,f){if(c>=0&&c<f)return c;var v=L,S=f-L-1,g=y%2===0;if(c<0){var u=v%2===0;return g===u?0:1}else{var s=S%2===0;return g===s?f-1:f-2}},A}()},H4T2:function(_t,P,e){"use strict";e.r(P),e.d(P,"GotoDefinitionAtPositionEditorContribution",function(){return _});var T=e("62hx"),re=e.n(T),J=e("3/fG"),N=e("X+cX"),H=e("/cxE"),z=e("eLzo"),M=e("WBhO"),U=e("aokT"),A=e("twdY"),c=e("sswD"),y=e("vRMv"),L=e("pmY6"),f=e("t49l"),v=e("t9D7"),S=e("MD5Z"),g=e("vATl"),u=e("8Ydt"),s=e("aBYw"),l=e("cGHE"),d=e("746U"),p=function(x,F,R,$){var ie=arguments.length,W=ie<3?F:$===null?$=Object.getOwnPropertyDescriptor(F,R):$,B;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")W=Reflect.decorate(x,F,R,$);else for(var le=x.length-1;le>=0;le--)(B=x[le])&&(W=(ie<3?B(W):ie>3?B(F,R,W):B(F,R))||W);return ie>3&&W&&Object.defineProperty(F,R,W),W},E=function(x,F){return function(R,$){F(R,$,x)}},_=function(){function x(F,R,$){var ie=this;this.textModelResolverService=R,this.modeService=$,this.toUnhook=new L.b,this.toUnhookForKeyboard=new L.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=F;var W=new s.a(F);this.toUnhook.add(W),this.toUnhook.add(W.onMouseMoveOrRelevantKeyDown(function(B){var le=B[0],be=B[1];ie.startFindDefinitionFromMouse(le,Object(d.n)(be))})),this.toUnhook.add(W.onExecute(function(B){ie.isEnabled(B)&&ie.gotoDefinition(B.target.position,B.hasSideBySideModifier).then(function(){ie.removeLinkDecorations()},function(le){ie.removeLinkDecorations(),Object(H.e)(le)})})),this.toUnhook.add(W.onCancel(function(){ie.removeLinkDecorations(),ie.currentWordAtPosition=null}))}return x.get=function(F){return F.getContribution(x.ID)},x.prototype.startFindDefinitionFromCursor=function(F){var R=this;return this.startFindDefinition(F).then(function(){R.toUnhookForKeyboard.add(R.editor.onDidChangeCursorPosition(function(){R.currentWordAtPosition=null,R.removeLinkDecorations(),R.toUnhookForKeyboard.clear()})),R.toUnhookForKeyboard.add(R.editor.onKeyDown(function($){$&&(R.currentWordAtPosition=null,R.removeLinkDecorations(),R.toUnhookForKeyboard.clear())}))})},x.prototype.startFindDefinitionFromMouse=function(F,R){if(F.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(F,R)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}var $=F.target.position;this.startFindDefinition($)},x.prototype.startFindDefinition=function(F){var R=this,$;this.toUnhookForKeyboard.clear();var ie=F?($=this.editor.getModel())===null||$===void 0?void 0:$.getWordAtPosition(F):null;if(!ie)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===ie.startColumn&&this.currentWordAtPosition.endColumn===ie.endColumn&&this.currentWordAtPosition.word===ie.word)return Promise.resolve(0);this.currentWordAtPosition=ie;var W=new g.a(this.editor,4|1|2|8);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(N.f)(function(B){return R.findDefinition(F,B)}),this.previousPromise.then(function(B){if(!B||!B.length||!W.validate(R.editor)){R.removeLinkDecorations();return}if(B.length>1)R.addDecoration(new U.a(F.lineNumber,ie.startColumn,F.lineNumber,ie.endColumn),new z.a().appendText(J.a("multipleResults","Click to show {0} definitions.",B.length)));else{var le=B[0];if(!le.uri)return;R.textModelResolverService.createModelReference(le.uri).then(function(be){if(!be.object||!be.object.textEditorModel){be.dispose();return}var De=be.object.textEditorModel,Te=le.range.startLineNumber;if(Te<1||Te>De.getLineCount()){be.dispose();return}var ke=R.getPreviewValue(De,Te,le),He;le.originSelectionRange?He=U.a.lift(le.originSelectionRange):He=new U.a(F.lineNumber,ie.startColumn,F.lineNumber,ie.endColumn);var je=R.modeService.getModeIdByFilepathOrFirstLine(De.uri);R.addDecoration(He,new z.a().appendCodeblock(je||"",ke)),be.dispose()})}}).then(void 0,H.e)},x.prototype.getPreviewValue=function(F,R,$){var ie=$.targetSelectionRange?$.range:this.getPreviewRangeBasedOnBrackets(F,R),W=ie.endLineNumber-ie.startLineNumber;W>=x.MAX_SOURCE_PREVIEW_LINES&&(ie=this.getPreviewRangeBasedOnIndentation(F,R));var B=this.stripIndentationFromPreviewRange(F,R,ie);return B},x.prototype.stripIndentationFromPreviewRange=function(F,R,$){for(var ie=F.getLineFirstNonWhitespaceColumn(R),W=ie,B=R+1;B<$.endLineNumber;B++){var le=F.getLineFirstNonWhitespaceColumn(B);W=Math.min(W,le)}var be=F.getValueInRange($).replace(new RegExp("^\\s{"+(W-1)+"}","gm"),"").trim();return be},x.prototype.getPreviewRangeBasedOnIndentation=function(F,R){for(var $=F.getLineFirstNonWhitespaceColumn(R),ie=Math.min(F.getLineCount(),R+x.MAX_SOURCE_PREVIEW_LINES),W=R+1;W<ie;W++){var B=F.getLineFirstNonWhitespaceColumn(W);if($===B)break}return new U.a(R,1,W+1,1)},x.prototype.getPreviewRangeBasedOnBrackets=function(F,R){for(var $=Math.min(F.getLineCount(),R+x.MAX_SOURCE_PREVIEW_LINES),ie=[],W=!0,B=F.findNextBracket(new l.a(R,1));B!==null;){if(ie.length===0)ie.push(B);else{var le=ie[ie.length-1];if(le.open[0]===B.open[0]&&le.isOpen&&!B.isOpen?ie.pop():ie.push(B),ie.length===0)if(W)W=!1;else return new U.a(R,1,B.range.endLineNumber+1,1)}var be=F.getLineMaxColumn(R),De=B.range.endLineNumber,Te=B.range.endColumn;if(be===B.range.endColumn&&(De++,Te=1),De>$)return new U.a(R,1,$+1,1);B=F.findNextBracket(new l.a(De,Te))}return new U.a(R,1,$+1,1)},x.prototype.addDecoration=function(F,R){var $={range:F,options:{inlineClassName:"goto-definition-link",hoverMessage:R}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[$])},x.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},x.prototype.isEnabled=function(F,R){return this.editor.hasModel()&&F.isNoneOrSingleMouseDown&&F.target.type===6&&(F.hasTriggerModifier||(R?R.keyCodeIsTriggerKey:!1))&&A.f.has(this.editor.getModel())},x.prototype.findDefinition=function(F,R){var $=this.editor.getModel();return $?Object(y.b)($,F,R):Promise.resolve(null)},x.prototype.gotoDefinition=function(F,R){var $=this;this.editor.setPosition(F);var ie=new u.DefinitionAction({openToSide:R,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(W){return ie.run(W,$.editor)})},x.prototype.dispose=function(){this.toUnhook.dispose()},x.ID="editor.contrib.gotodefinitionatposition",x.MAX_SOURCE_PREVIEW_LINES=8,x=p([E(1,f.a),E(2,M.a)],x),x}();Object(c.h)(_.ID,_),Object(v.e)(function(x,F){var R=x.getColor(S.n);R&&F.addRule(".monaco-editor .goto-definition-link { color: "+R+" !important; }")})},H6Gb:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return e.e(273).then(e.bind(null,"lXEz"))}})},HdwC:function(_t,P,e){"use strict";e.d(P,"b",function(){return v}),e.d(P,"a",function(){return g});var T=e("D3Dy"),re=e("MI8n"),J=e("pmY6"),N=e("MNsG"),H=function(){function u(s,l){this.chr=s,this.type=l,this.width=0}return u.prototype.fulfill=function(s){this.width=s},u}(),z=function(){function u(s,l){this._bareFontInfo=s,this._requests=l,this._container=null,this._testElements=null}return u.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},u.prototype._createDomElements=function(){var s=document.createElement("div");s.style.position="absolute",s.style.top="-50000px",s.style.width="50000px";var l=document.createElement("div");l.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),l.style.fontWeight=this._bareFontInfo.fontWeight,l.style.fontSize=this._bareFontInfo.fontSize+"px",l.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,l.style.lineHeight=this._bareFontInfo.lineHeight+"px",l.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",s.appendChild(l);var d=document.createElement("div");d.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),d.style.fontWeight="bold",d.style.fontSize=this._bareFontInfo.fontSize+"px",d.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,d.style.lineHeight=this._bareFontInfo.lineHeight+"px",d.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",s.appendChild(d);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",p.style.fontStyle="italic",s.appendChild(p);for(var E=[],_=0,x=this._requests;_<x.length;_++){var F=x[_],R=void 0;F.type===0&&(R=l),F.type===2&&(R=d),F.type===1&&(R=p),R.appendChild(document.createElement("br"));var $=document.createElement("span");u._render($,F),R.appendChild($),E.push($)}this._container=s,this._testElements=E},u._render=function(s,l){if(l.chr===" "){for(var d="&#160;",p=0;p<8;p++)d+=d;s.innerHTML=d}else{for(var E=l.chr,p=0;p<8;p++)E+=E;s.textContent=E}},u.prototype._readFromDomElements=function(){for(var s=0,l=this._requests.length;s<l;s++){var d=this._requests[s],p=this._testElements[s];d.fulfill(p.offsetWidth/256)}},u}();function M(u,s){var l=new z(u,s);l.read()}var U=e("o39E"),A=e("iDAx"),c=e("/UlZ"),y=e("+3Gp"),L=function(){var u=function(l,d){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,E){p.__proto__=E}||function(p,E){for(var _ in E)E.hasOwnProperty(_)&&(p[_]=E[_])},u(l,d)};return function(s,l){u(s,l);function d(){this.constructor=s}s.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),f=function(){function u(){this._keys=Object.create(null),this._values=Object.create(null)}return u.prototype.has=function(s){var l=s.getId();return!!this._values[l]},u.prototype.get=function(s){var l=s.getId();return this._values[l]},u.prototype.put=function(s,l){var d=s.getId();this._keys[d]=s,this._values[d]=l},u.prototype.remove=function(s){var l=s.getId();delete this._keys[l],delete this._values[l]},u.prototype.getValues=function(){var s=this;return Object.keys(this._keys).map(function(l){return s._values[l]})},u}();function v(){S.INSTANCE.clearCache()}var S=function(u){L(s,u);function s(){var l=u.call(this)||this;return l._onDidChange=l._register(new re.a),l.onDidChange=l._onDidChange.event,l._cache=new f,l._evictUntrustedReadingsTimeout=-1,l}return s.prototype.dispose=function(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),u.prototype.dispose.call(this)},s.prototype.clearCache=function(){this._cache=new f,this._onDidChange.fire()},s.prototype._writeToCache=function(l,d){var p=this;this._cache.put(l,d),!d.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=setTimeout(function(){p._evictUntrustedReadingsTimeout=-1,p._evictUntrustedReadings()},5e3))},s.prototype._evictUntrustedReadings=function(){for(var l=this._cache.getValues(),d=!1,p=0,E=l.length;p<E;p++){var _=l[p];_.isTrusted||(d=!0,this._cache.remove(_))}d&&this._onDidChange.fire()},s.prototype.readConfiguration=function(l){if(!this._cache.has(l)){var d=s._actualReadConfiguration(l);(d.typicalHalfwidthCharacterWidth<=2||d.typicalFullwidthCharacterWidth<=2||d.spaceWidth<=2||d.maxDigitWidth<=2)&&(d=new y.b({zoomLevel:T.c(),fontFamily:d.fontFamily,fontWeight:d.fontWeight,fontSize:d.fontSize,fontFeatureSettings:d.fontFeatureSettings,lineHeight:d.lineHeight,letterSpacing:d.letterSpacing,isMonospace:d.isMonospace,typicalHalfwidthCharacterWidth:Math.max(d.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(d.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:d.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(d.spaceWidth,5),middotWidth:Math.max(d.middotWidth,5),maxDigitWidth:Math.max(d.maxDigitWidth,5)},!1)),this._writeToCache(l,d)}return this._cache.get(l)},s.createRequest=function(l,d,p,E){var _=new H(l,d);return p.push(_),E&&E.push(_),_},s._actualReadConfiguration=function(l){var d=[],p=[],E=this.createRequest("n",0,d,p),_=this.createRequest("\uFF4D",0,d,null),x=this.createRequest(" ",0,d,p),F=this.createRequest("0",0,d,p),R=this.createRequest("1",0,d,p),$=this.createRequest("2",0,d,p),ie=this.createRequest("3",0,d,p),W=this.createRequest("4",0,d,p),B=this.createRequest("5",0,d,p),le=this.createRequest("6",0,d,p),be=this.createRequest("7",0,d,p),De=this.createRequest("8",0,d,p),Te=this.createRequest("9",0,d,p),ke=this.createRequest("\u2192",0,d,p),He=this.createRequest("\uFFEB",0,d,null),je=this.createRequest("\xB7",0,d,p);this.createRequest("|",0,d,p),this.createRequest("/",0,d,p),this.createRequest("-",0,d,p),this.createRequest("_",0,d,p),this.createRequest("i",0,d,p),this.createRequest("l",0,d,p),this.createRequest("m",0,d,p),this.createRequest("|",1,d,p),this.createRequest("_",1,d,p),this.createRequest("i",1,d,p),this.createRequest("l",1,d,p),this.createRequest("m",1,d,p),this.createRequest("n",1,d,p),this.createRequest("|",2,d,p),this.createRequest("_",2,d,p),this.createRequest("i",2,d,p),this.createRequest("l",2,d,p),this.createRequest("m",2,d,p),this.createRequest("n",2,d,p),M(l,d);for(var oe=Math.max(F.width,R.width,$.width,ie.width,W.width,B.width,le.width,be.width,De.width,Te.width),ee=l.fontFeatureSettings===c.d.OFF,ae=p[0].width,q=1,ce=p.length;ee&&q<ce;q++){var X=ae-p[q].width;if(X<-.001||X>.001){ee=!1;break}}var he=!0;ee&&He.width!==ae&&(he=!1),He.width>ke.width&&(he=!1);var Pe=T.b()>2e3;return new y.b({zoomLevel:T.c(),fontFamily:l.fontFamily,fontWeight:l.fontWeight,fontSize:l.fontSize,fontFeatureSettings:l.fontFeatureSettings,lineHeight:l.lineHeight,letterSpacing:l.letterSpacing,isMonospace:ee,typicalHalfwidthCharacterWidth:E.width,typicalFullwidthCharacterWidth:_.width,canUseHalfwidthRightwardsArrow:he,spaceWidth:x.width,middotWidth:je.width,maxDigitWidth:oe},Pe)},s.INSTANCE=new s,s}(J.a),g=function(u){L(s,u);function s(l,d,p,E){p===void 0&&(p=null);var _=u.call(this,l,d)||this;return _.accessibilityService=E,_._elementSizeObserver=_._register(new U.a(p,d.dimension,function(){return _._onReferenceDomElementSizeChanged()})),_._register(S.INSTANCE.onDidChange(function(){return _._onCSSBasedConfigurationChanged()})),_._validatedOptions.get(9)&&_._elementSizeObserver.startObserving(),_._register(T.o(function(x){return _._recomputeOptions()})),_._register(_.accessibilityService.onDidChangeScreenReaderOptimized(function(){return _._recomputeOptions()})),_._recomputeOptions(),_}return s.applyFontInfoSlow=function(l,d){l.style.fontFamily=d.getMassagedFontFamily(),l.style.fontWeight=d.fontWeight,l.style.fontSize=d.fontSize+"px",l.style.fontFeatureSettings=d.fontFeatureSettings,l.style.lineHeight=d.lineHeight+"px",l.style.letterSpacing=d.letterSpacing+"px"},s.applyFontInfo=function(l,d){l.setFontFamily(d.getMassagedFontFamily()),l.setFontWeight(d.fontWeight),l.setFontSize(d.fontSize),l.setFontFeatureSettings(d.fontFeatureSettings),l.setLineHeight(d.lineHeight),l.setLetterSpacing(d.letterSpacing)},s.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},s.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},s.prototype.observeReferenceElement=function(l){this._elementSizeObserver.observe(l)},s.prototype.dispose=function(){u.prototype.dispose.call(this)},s.prototype._getExtraEditorClassName=function(){var l="";return!T.k&&!T.n&&(l+="no-user-select "),N.e&&(l+="mac "),l},s.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:T.m||T.h,pixelRatio:T.a(),zoomLevel:T.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},s.prototype.readConfiguration=function(l){return S.INSTANCE.readConfiguration(l)},s}(A.a)},HyZH:function(_t,P,e){},"I/Lx":function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return e.e(254).then(e.bind(null,"yswY"))}})},"J+ZK":function(_t,P,e){},"JQT/":function(_t,P,e){"use strict";e.d(P,"a",function(){return J}),e.d(P,"b",function(){return H});var T=e("MI8n"),re=Object.freeze(function(z,M){var U=setTimeout(z.bind(M),0);return{dispose:function(){clearTimeout(U)}}}),J;(function(z){function M(U){return U===z.None||U===z.Cancelled||U instanceof N?!0:!U||typeof U!="object"?!1:typeof U.isCancellationRequested=="boolean"&&typeof U.onCancellationRequested=="function"}z.isCancellationToken=M,z.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:T.b.None}),z.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:re})})(J||(J={}));var N=function(){function z(){this._isCancelled=!1,this._emitter=null}return z.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(z.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?re:(this._emitter||(this._emitter=new T.a),this._emitter.event)},enumerable:!0,configurable:!0}),z.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},z}(),H=function(){function z(M){this._token=void 0,this._parentListener=void 0,this._parentListener=M&&M.onCancellationRequested(this.cancel,this)}return Object.defineProperty(z.prototype,"token",{get:function(){return this._token||(this._token=new N),this._token},enumerable:!0,configurable:!0}),z.prototype.cancel=function(){this._token?this._token instanceof N&&this._token.cancel():this._token=J.Cancelled},z.prototype.dispose=function(M){M===void 0&&(M=!1),M&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof N&&this._token.dispose():this._token=J.None},z}()},JYp7:function(_t,P,e){"use strict";e.d(P,"c",function(){return re}),e.d(P,"d",function(){return J}),e.d(P,"f",function(){return H}),e.d(P,"a",function(){return z}),e.d(P,"b",function(){return M}),e.d(P,"e",function(){return U});var T=function(){var A=function(y,L){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var S in v)v.hasOwnProperty(S)&&(f[S]=v[S])},A(y,L)};return function(c,y){A(c,y);function L(){this.constructor=c}c.prototype=y===null?Object.create(y):(L.prototype=y.prototype,new L)}}(),re={done:!0,value:void 0},J;(function(A){var c={next:function(){return re}};function y(){return c}A.empty=y;function L(E){var _=!1;return{next:function(){return _?re:(_=!0,{done:!1,value:E})}}}A.single=L;function f(E,_,x){return _===void 0&&(_=0),x===void 0&&(x=E.length),{next:function(){return _>=x?re:{done:!1,value:E[_++]}}}}A.fromArray=f;function v(E){return{next:function(){var x=E.next();return x.done?re:{done:!1,value:x.value}}}}A.fromNativeIterator=v;function S(E){return E?Array.isArray(E)?A.fromArray(E):E:A.empty()}A.from=S;function g(E,_){return{next:function(){var F=E.next();return F.done?re:{done:!1,value:_(F.value)}}}}A.map=g;function u(E,_){return{next:function(){for(;;){var F=E.next();if(F.done)return re;if(_(F.value))return{done:!1,value:F.value}}}}}A.filter=u;function s(E,_){for(var x=E.next();!x.done;x=E.next())_(x.value)}A.forEach=s;function l(E,_){_===void 0&&(_=Number.POSITIVE_INFINITY);var x=[];if(_===0)return x;for(var F=0,R=E.next();!R.done&&!(x.push(R.value),++F>=_);R=E.next());return x}A.collect=l;function d(){for(var E=[],_=0;_<arguments.length;_++)E[_]=arguments[_];var x=0;return{next:function(){if(x>=E.length)return re;var R=E[x],$=R.next();return $.done?(x++,this.next()):$}}}A.concat=d;function p(E){return new N(E)}A.chain=p})(J||(J={}));var N=function(){function A(c){this.it=c}return A.prototype.next=function(){return this.it.next()},A}();function H(A){return Array.isArray(A)?J.fromArray(A):A||J.empty()}var z=function(){function A(c,y,L,f){y===void 0&&(y=0),L===void 0&&(L=c.length),f===void 0&&(f=y-1),this.items=c,this.start=y,this.end=L,this.index=f}return A.prototype.first=function(){return this.index=this.start,this.current()},A.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},A.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},A}(),M=function(A){T(c,A);function c(y,L,f,v){return L===void 0&&(L=0),f===void 0&&(f=y.length),v===void 0&&(v=L-1),A.call(this,y,L,f,v)||this}return c.prototype.current=function(){return A.prototype.current.call(this)},c.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},c.prototype.first=function(){return this.index=this.start,this.current()},c.prototype.last=function(){return this.index=this.end-1,this.current()},c.prototype.parent=function(){return null},c}(z),U=function(){function A(c,y){this.iterator=c,this.fn=y}return A.prototype.next=function(){return this.fn(this.iterator.next())},A}()},JlLP:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return e.e(275).then(e.bind(null,"W1QP"))}})},KDc4:function(_t,P,e){"use strict";e.d(P,"a",function(){return T}),e.d(P,"b",function(){return re});var T;(function(J){J[J.None=0]="None",J[J.Indent=1]="Indent",J[J.IndentOutdent=2]="IndentOutdent",J[J.Outdent=3]="Outdent"})(T||(T={}));var re=function(){function J(N){if(this.open=N.open,this.close=N.close,this._standardTokenMask=0,Array.isArray(N.notIn))for(var H=0,z=N.notIn.length;H<z;H++){var M=N.notIn[H];switch(M){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}return J.prototype.isOK=function(N){return(this._standardTokenMask&N)===0},J}()},KTWA:function(_t,P,e){"use strict";e.r(P);var T=e("3/fG"),re=e("sswD"),J=e("wQH0"),N=e("aokT"),H=function(){function c(y,L){this._selection=y,this._isMovingLeft=L,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}return c.prototype.getEditOperations=function(y,L){var f=this._selection;if(this._selectionId=L.trackSelection(f),f.startLineNumber!==f.endLineNumber)return;if(this._isMovingLeft&&f.startColumn===0)return;if(!this._isMovingLeft&&f.endColumn===y.getLineMaxColumn(f.startLineNumber))return;var v=f.selectionStartLineNumber,S=y.getLineContent(v),g,u,s;this._isMovingLeft?(g=S.substring(0,f.startColumn-2),u=S.substring(f.startColumn-1,f.endColumn-1),s=S.substring(f.startColumn-2,f.startColumn-1)+S.substring(f.endColumn-1)):(g=S.substring(0,f.startColumn-1)+S.substring(f.endColumn-1,f.endColumn),u=S.substring(f.startColumn-1,f.endColumn-1),s=S.substring(f.endColumn));var l=g+u+s;L.addEditOperation(new N.a(v,1,v,y.getLineMaxColumn(v)),null),L.addEditOperation(new N.a(v,1,v,1),l),this._cutStartIndex=f.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+f.endColumn-f.startColumn,this._moved=!0},c.prototype.computeCursorState=function(y,L){var f=L.getTrackedSelection(this._selectionId);return this._moved&&(f=f.setStartPosition(f.startLineNumber,this._cutStartIndex),f=f.setEndPosition(f.startLineNumber,this._cutEndIndex)),f},c}(),z=function(){var c=function(L,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var g in S)S.hasOwnProperty(g)&&(v[g]=S[g])},c(L,f)};return function(y,L){c(y,L);function f(){this.constructor=y}y.prototype=L===null?Object.create(L):(f.prototype=L.prototype,new f)}}(),M=function(c){z(y,c);function y(L,f){var v=c.call(this,f)||this;return v.left=L,v}return y.prototype.run=function(L,f){if(!f.hasModel())return;for(var v=[],S=f.getSelections(),g=0,u=S;g<u.length;g++){var s=u[g];v.push(new H(s,this.left))}f.pushUndoStop(),f.executeCommands(this.id,v),f.pushUndoStop()},y}(re.b),U=function(c){z(y,c);function y(){return c.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:T.a("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:J.a.writable})||this}return y}(M),A=function(c){z(y,c);function y(){return c.call(this,!1,{id:"editor.action.moveCarretRightAction",label:T.a("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:J.a.writable})||this}return y}(M);Object(re.f)(U),Object(re.f)(A)},KaET:function(_t,P,e){},KgQ1:function(_t,P,e){},Krc3:function(_t,P,e){},LCkn:function(_t,P,e){"use strict";e.d(P,"a",function(){return re}),e.d(P,"c",function(){return J}),e.d(P,"e",function(){return N}),e.d(P,"d",function(){return H}),e.d(P,"b",function(){return z});var T=e("gCVg"),re=function(){function M(U,A,c){c===void 0&&(c=!1),this._range=U,this._text=A,this.insertsAutoWhitespace=c}return M.prototype.getEditOperations=function(U,A){A.addTrackedEditOperation(this._range,this._text)},M.prototype.computeCursorState=function(U,A){var c=A.getInverseEditOperations(),y=c[0].range;return new T.a(y.endLineNumber,y.endColumn,y.endLineNumber,y.endColumn)},M}(),J=function(){function M(U,A){this._range=U,this._text=A}return M.prototype.getEditOperations=function(U,A){A.addTrackedEditOperation(this._range,this._text)},M.prototype.computeCursorState=function(U,A){var c=A.getInverseEditOperations(),y=c[0].range;return new T.a(y.startLineNumber,y.startColumn,y.endLineNumber,y.endColumn)},M}(),N=function(){function M(U,A,c){c===void 0&&(c=!1),this._range=U,this._text=A,this.insertsAutoWhitespace=c}return M.prototype.getEditOperations=function(U,A){A.addTrackedEditOperation(this._range,this._text)},M.prototype.computeCursorState=function(U,A){var c=A.getInverseEditOperations(),y=c[0].range;return new T.a(y.startLineNumber,y.startColumn,y.startLineNumber,y.startColumn)},M}(),H=function(){function M(U,A,c,y,L){L===void 0&&(L=!1),this._range=U,this._text=A,this._columnDeltaOffset=y,this._lineNumberDeltaOffset=c,this.insertsAutoWhitespace=L}return M.prototype.getEditOperations=function(U,A){A.addTrackedEditOperation(this._range,this._text)},M.prototype.computeCursorState=function(U,A){var c=A.getInverseEditOperations(),y=c[0].range;return new T.a(y.endLineNumber+this._lineNumberDeltaOffset,y.endColumn+this._columnDeltaOffset,y.endLineNumber+this._lineNumberDeltaOffset,y.endColumn+this._columnDeltaOffset)},M}(),z=function(){function M(U,A,c,y){y===void 0&&(y=!1),this._range=U,this._text=A,this._initialSelection=c,this._forceMoveMarkers=y,this._selectionId=null}return M.prototype.getEditOperations=function(U,A){A.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=A.trackSelection(this._initialSelection)},M.prototype.computeCursorState=function(U,A){return A.getTrackedSelection(this._selectionId)},M}()},LRks:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return e.e(294).then(e.bind(null,"05+/"))}})},LUcL:function(_t,P,e){"use strict";e.r(P),e.d(P,"DeleteWordPartLeft",function(){return U}),e.d(P,"DeleteWordPartRight",function(){return A}),e.d(P,"WordPartLeftCommand",function(){return c}),e.d(P,"CursorWordPartLeft",function(){return y}),e.d(P,"CursorWordPartLeftSelect",function(){return L}),e.d(P,"WordPartRightCommand",function(){return f}),e.d(P,"CursorWordPartRight",function(){return v}),e.d(P,"CursorWordPartRightSelect",function(){return S});var T=e("sswD"),re=e("1I1M"),J=e("aokT"),N=e("wQH0"),H=e("s7Km"),z=e("nnTU"),M=function(){var g=function(s,l){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var E in p)p.hasOwnProperty(E)&&(d[E]=p[E])},g(s,l)};return function(u,s){g(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),U=function(g){M(u,g);function u(){return g.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:N.a.writable,kbOpts:{kbExpr:N.a.textInputFocus,primary:0,mac:{primary:256|512|1},weight:100}})||this}return u.prototype._delete=function(s,l,d,p,E){var _=re.b.deleteWordPartLeft(s,l,d,p);return _||new J.a(1,1,1,1)},u}(H.DeleteWordCommand),A=function(g){M(u,g);function u(){return g.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:N.a.writable,kbOpts:{kbExpr:N.a.textInputFocus,primary:0,mac:{primary:256|512|20},weight:100}})||this}return u.prototype._delete=function(s,l,d,p,E){var _=re.b.deleteWordPartRight(s,l,d,p);if(_)return _;var x=l.getLineCount(),F=l.getLineMaxColumn(x);return new J.a(x,F,x,F)},u}(H.DeleteWordCommand),c=function(g){M(u,g);function u(){return g!==null&&g.apply(this,arguments)||this}return u.prototype._move=function(s,l,d,p){return re.b.moveWordPartLeft(s,l,d)},u}(H.MoveWordCommand),y=function(g){M(u,g);function u(){return g.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:N.a.textInputFocus,primary:0,mac:{primary:256|512|15},weight:100}})||this}return u}(c);z.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var L=function(g){M(u,g);function u(){return g.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:N.a.textInputFocus,primary:0,mac:{primary:256|512|1024|15},weight:100}})||this}return u}(c);z.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var f=function(g){M(u,g);function u(){return g!==null&&g.apply(this,arguments)||this}return u.prototype._move=function(s,l,d,p){return re.b.moveWordPartRight(s,l,d)},u}(H.MoveWordCommand),v=function(g){M(u,g);function u(){return g.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:N.a.textInputFocus,primary:0,mac:{primary:256|512|17},weight:100}})||this}return u}(f),S=function(g){M(u,g);function u(){return g.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:N.a.textInputFocus,primary:0,mac:{primary:256|512|1024|17},weight:100}})||this}return u}(f);Object(T.g)(new U),Object(T.g)(new A),Object(T.g)(new y),Object(T.g)(new L),Object(T.g)(new v),Object(T.g)(new S)},"LeU+":function(_t,P,e){"use strict";e.d(P,"b",function(){return re}),e.d(P,"a",function(){return J});var T=e("CZ1j"),re=function(){function N(H,z){this.index=H,this.remainder=z}return N}(),J=function(){function N(H){this.values=H,this.prefixSum=new Uint32Array(H.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return N.prototype.insertValues=function(H,z){H=Object(T.a)(H);var M=this.values,U=this.prefixSum,A=z.length;return A===0?!1:(this.values=new Uint32Array(M.length+A),this.values.set(M.subarray(0,H),0),this.values.set(M.subarray(H),H+A),this.values.set(z,H),H-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=H-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(U.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},N.prototype.changeValue=function(H,z){return H=Object(T.a)(H),z=Object(T.a)(z),this.values[H]===z?!1:(this.values[H]=z,H-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=H-1),!0)},N.prototype.removeValues=function(H,z){H=Object(T.a)(H),z=Object(T.a)(z);var M=this.values,U=this.prefixSum;if(H>=M.length)return!1;var A=M.length-H;return z>=A&&(z=A),z===0?!1:(this.values=new Uint32Array(M.length-z),this.values.set(M.subarray(0,H),0),this.values.set(M.subarray(H+z),H),this.prefixSum=new Uint32Array(this.values.length),H-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=H-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(U.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},N.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},N.prototype.getAccumulatedValue=function(H){return H<0?0:(H=Object(T.a)(H),this._getAccumulatedValue(H))},N.prototype._getAccumulatedValue=function(H){if(H<=this.prefixSumValidIndex[0])return this.prefixSum[H];var z=this.prefixSumValidIndex[0]+1;z===0&&(this.prefixSum[0]=this.values[0],z++),H>=this.values.length&&(H=this.values.length-1);for(var M=z;M<=H;M++)this.prefixSum[M]=this.prefixSum[M-1]+this.values[M];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],H),this.prefixSum[H]},N.prototype.getIndexOf=function(H){H=Math.floor(H),this.getTotalValue();for(var z=0,M=this.values.length-1,U=0,A=0,c=0;z<=M;)if(U=z+(M-z)/2|0,A=this.prefixSum[U],c=A-this.values[U],H<c)M=U-1;else if(H>=A)z=U+1;else break;return new re(U,H-c)},N}()},LexI:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return e.e(255).then(e.bind(null,"lHAa"))}})},Ll0s:function(_t,P,e){"use strict";e.d(P,"b",function(){return L}),e.d(P,"f",function(){return f}),e.d(P,"c",function(){return v}),e.d(P,"d",function(){return u}),e.d(P,"e",function(){return s}),e.d(P,"a",function(){return l}),e.d(P,"g",function(){return d});var T=e("/cxE"),re=e("N0LK"),J=e("cGHE"),N=e("aokT"),H=e("gCVg"),z=e("tX9W"),M=e("cMvZ"),U=function(){return!0},A=function(){return!1},c=function(E){return E===" "||E===" "};function y(p,E,_){p.has(E)?p.get(E).push(_):p.set(E,[_])}var L=function(){function p(E,_,x){this._languageIdentifier=E;var F=x.options,R=F.get(107);this.readOnly=F.get(68),this.tabSize=_.tabSize,this.indentSize=_.indentSize,this.insertSpaces=_.insertSpaces,this.lineHeight=F.get(49),this.pageSize=Math.max(1,Math.floor(R.height/this.lineHeight)-2),this.useTabStops=F.get(95),this.wordSeparators=F.get(96),this.emptySelectionClipboard=F.get(25),this.copyWithSyntaxHighlighting=F.get(15),this.multiCursorMergeOverlapping=F.get(58),this.multiCursorPaste=F.get(60),this.autoClosingBrackets=F.get(5),this.autoClosingQuotes=F.get(7),this.autoClosingOvertype=F.get(6),this.autoSurround=F.get(10),this.autoIndent=F.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:p._getShouldAutoClose(E,this.autoClosingQuotes),bracket:p._getShouldAutoClose(E,this.autoClosingBrackets)};var $=p._getAutoClosingPairs(E);if($)for(var ie=0,W=$;ie<W.length;ie++){var B=W[ie];y(this.autoClosingPairsOpen2,B.open.charAt(B.open.length-1),B),B.close.length===1&&y(this.autoClosingPairsClose2,B.close,B)}var le=p._getSurroundingPairs(E);if(le)for(var be=0,De=le;be<De.length;be++){var B=De[be];this.surroundingPairs[B.open]=B.close}}return p.shouldRecreate=function(E){return E.hasChanged(107)||E.hasChanged(96)||E.hasChanged(25)||E.hasChanged(58)||E.hasChanged(60)||E.hasChanged(5)||E.hasChanged(7)||E.hasChanged(6)||E.hasChanged(10)||E.hasChanged(95)||E.hasChanged(49)||E.hasChanged(68)},Object.defineProperty(p.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var _=p._getElectricCharacters(this._languageIdentifier);if(_)for(var x=0,F=_;x<F.length;x++){var R=F[x];this._electricChars[R]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),p.prototype.normalizeIndentation=function(E){return z.b.normalizeIndentation(E,this.indentSize,this.insertSpaces)},p._getElectricCharacters=function(E){try{return M.a.getElectricCharacters(E.id)}catch(_){return Object(T.e)(_),null}},p._getAutoClosingPairs=function(E){try{return M.a.getAutoClosingPairs(E.id)}catch(_){return Object(T.e)(_),null}},p._getShouldAutoClose=function(E,_){switch(_){case"beforeWhitespace":return c;case"languageDefined":return p._getLanguageDefinedShouldAutoClose(E);case"always":return U;case"never":return A}},p._getLanguageDefinedShouldAutoClose=function(E){try{var _=M.a.getAutoCloseBeforeSet(E.id);return function(x){return _.indexOf(x)!==-1}}catch(x){return Object(T.e)(x),A}},p._getSurroundingPairs=function(E){try{return M.a.getSurroundingPairs(E.id)}catch(_){return Object(T.e)(_),null}},p}(),f=function(){function p(E,_,x,F){this.selectionStart=E,this.selectionStartLeftoverVisibleColumns=_,this.position=x,this.leftoverVisibleColumns=F,this.selection=p._computeSelection(this.selectionStart,this.position)}return p.prototype.equals=function(E){return this.selectionStartLeftoverVisibleColumns===E.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===E.leftoverVisibleColumns&&this.position.equals(E.position)&&this.selectionStart.equalsRange(E.selectionStart)},p.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},p.prototype.move=function(E,_,x,F){return E?new p(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new J.a(_,x),F):new p(new N.a(_,x,_,x),F,new J.a(_,x),F)},p._computeSelection=function(E,_){var x,F,R,$;return E.isEmpty()?(x=E.startLineNumber,F=E.startColumn,R=_.lineNumber,$=_.column):_.isBeforeOrEqual(E.getStartPosition())?(x=E.endLineNumber,F=E.endColumn,R=_.lineNumber,$=_.column):(x=E.startLineNumber,F=E.startColumn,R=_.lineNumber,$=_.column),new H.a(x,F,R,$)},p}(),v=function(){function p(E,_,x){this.model=_,this.viewModel=x,this.config=new L(this.model.getLanguageIdentifier(),this.model.getOptions(),E)}return p.prototype.validateViewPosition=function(E,_){return this.viewModel.coordinatesConverter.validateViewPosition(E,_)},p.prototype.validateViewRange=function(E,_){return this.viewModel.coordinatesConverter.validateViewRange(E,_)},p.prototype.convertViewRangeToModelRange=function(E){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(E)},p.prototype.convertViewPositionToModelPosition=function(E,_){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new J.a(E,_))},p.prototype.convertModelPositionToViewPosition=function(E){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(E)},p.prototype.convertModelRangeToViewRange=function(E){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(E)},p.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},p.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},p.prototype.getCompletelyVisibleModelRange=function(){var E=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(E)},p.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(E){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(E)},p.prototype.getVerticalOffsetForViewLine=function(E){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(E)},p}(),S=function(){function p(E){this.modelState=E,this.viewState=null}return p}(),g=function(){function p(E){this.modelState=null,this.viewState=E}return p}(),u=function(){function p(E,_){this.modelState=E,this.viewState=_}return p.fromModelState=function(E){return new S(E)},p.fromViewState=function(E){return new g(E)},p.fromModelSelection=function(E){var _=E.selectionStartLineNumber,x=E.selectionStartColumn,F=E.positionLineNumber,R=E.positionColumn,$=new f(new N.a(_,x,_,x),0,new J.a(F,R),0);return p.fromModelState($)},p.fromModelSelections=function(E){for(var _=[],x=0,F=E.length;x<F;x++)_[x]=this.fromModelSelection(E[x]);return _},p.prototype.equals=function(E){return this.viewState.equals(E.viewState)&&this.modelState.equals(E.modelState)},p}(),s=function(){function p(E,_,x){this.type=E,this.commands=_,this.shouldPushStackElementBefore=x.shouldPushStackElementBefore,this.shouldPushStackElementAfter=x.shouldPushStackElementAfter}return p}(),l=function(){function p(){}return p.visibleColumnFromColumn=function(E,_,x){for(var F=E.length,R=_-1<F?_-1:F,$=0,ie=0;ie<R;){var W=re.u(E,R,ie);if(ie+=W>=65536?2:1,W===9)$=p.nextRenderTabStop($,x);else{for(var B=re.s(W);ie<R;){var le=re.u(E,R,ie),be=re.s(le);if(re.b(B,be))break;ie+=le>=65536?2:1,B=be}re.y(W)||re.w(W)?$=$+2:$=$+1}}return $},p.visibleColumnFromColumn2=function(E,_,x){return this.visibleColumnFromColumn(_.getLineContent(x.lineNumber),x.column,E.tabSize)},p.columnFromVisibleColumn=function(E,_,x){if(_<=0)return 1;for(var F=E.length,R=0,$=1,ie=0;ie<F;){var W=re.u(E,F,ie);ie+=W>=65536?2:1;var B=void 0;if(W===9)B=p.nextRenderTabStop(R,x);else{for(var le=re.s(W);ie<F;){var be=re.u(E,F,ie),De=re.s(be);if(re.b(le,De))break;ie+=be>=65536?2:1,le=De}re.y(W)||re.w(W)?B=R+2:B=R+1}var Te=ie+1;if(B>=_){var ke=_-R,He=B-_;return He<ke?Te:$}R=B,$=Te}return F+1},p.columnFromVisibleColumn2=function(E,_,x,F){var R=this.columnFromVisibleColumn(_.getLineContent(x),F,E.tabSize),$=_.getLineMinColumn(x);if(R<$)return $;var ie=_.getLineMaxColumn(x);return R>ie?ie:R},p.nextRenderTabStop=function(E,_){return E+_-E%_},p.nextIndentTabStop=function(E,_){return E+_-E%_},p.prevRenderTabStop=function(E,_){return E-1-(E-1)%_},p.prevIndentTabStop=function(E,_){return E-1-(E-1)%_},p}();function d(p){return p==="'"||p==='"'||p==="`"}},"M/lh":function(_t,P,e){self.MonacoEnvironment=function(T){function re(J){return J.replace(/\/$/,"")}return{getWorkerUrl:function(N,H){var z=e.p,M=(z?re(z)+"/":"")+T[H];if(/^(http:)|(https:)|(file:)/.test(M)){var U=String(window.location),A=U.substr(0,U.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(M.substring(0,A.length)!==A){var c="/*"+H+'*/importScripts("'+M+'");';return"data:text/javascript;charset=utf-8,"+encodeURIComponent(c)}}return M}}}({editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"}),e("SBYE"),e("bk7F"),e("KTWA"),e("w29/"),e("CxEt"),e("d6R0"),e("kqbb"),e("n01l"),e("fD5p"),e("1YUG"),e("5RaG"),e("/RFl"),e("oQaD"),e("dgXF"),e("bfR1"),e("cIJc"),e("lY/7"),e("AhDq"),e("8Ydt"),e("H4T2"),e("rugR"),e("oiKk"),e("GvMn"),e("gJAb"),e("dH+W"),e("2ESN"),e("8XyJ"),e("WwIK"),e("v+CO"),e("WQDh"),e("4sI4"),e("Q631"),e("10Fh"),e("tXSY"),e("ep4t"),e("vVA1"),e("k7pc"),e("ba9Q"),e("XtJs"),e("s7Km"),e("LUcL"),_t.exports=e("8z58"),e("CdFp"),e("23p7"),e("OOlL"),e("li8W"),e("kdPm"),e("ApJL"),e("jrbv"),e("gqHg"),e("p3Ex"),e("E+ie"),e("9B1q"),e("9XAT"),e("SvYn"),e("I/Lx"),e("LexI"),e("0oIH"),e("+a1H"),e("hFdI"),e("c2dO"),e("zQEy"),e("k7mE"),e("cldp"),e("p5tG"),e("Dvnd"),e("FvUK"),e("ZvGG"),e("QFiB"),e("ZkA/"),e("/cAr"),e("xYNL"),e("jVwG"),e("6lNC"),e("q8qy"),e("sStQ"),e("oKJv"),e("H6Gb"),e("y3CF"),e("JlLP"),e("j2o1"),e("woZy"),e("iLY9"),e("Msxo"),e("ajgA"),e("QiAa"),e("pI2L"),e("yKqg"),e("ij/i"),e("XQgg"),e("Gb1F"),e("xmOD"),e("c9ML"),e("Mzro"),e("GZrW"),e("1lwE"),e("w9QG"),e("ufhN"),e("LRks"),e("BUKB"),e("n18v"),e("EOst"),e("z3hU"),e("nrBJ"),e("BEdG"),e("E4kL")},M1Kb:function(_t,P,e){"use strict";e.d(P,"d",function(){return T}),e.d(P,"c",function(){return re}),e.d(P,"e",function(){return J}),e.d(P,"b",function(){return N}),e.d(P,"a",function(){return H});var T;(function(z){z[z.Left=1]="Left",z[z.Center=2]="Center",z[z.Right=4]="Right",z[z.Full=7]="Full"})(T||(T={}));var re;(function(z){z[z.Inline=1]="Inline",z[z.Gutter=2]="Gutter"})(re||(re={}));var J=function(){function z(M){this.tabSize=Math.max(1,M.tabSize|0),this.indentSize=M.tabSize|0,this.insertSpaces=Boolean(M.insertSpaces),this.defaultEOL=M.defaultEOL|0,this.trimAutoWhitespace=Boolean(M.trimAutoWhitespace)}return z.prototype.equals=function(M){return this.tabSize===M.tabSize&&this.indentSize===M.indentSize&&this.insertSpaces===M.insertSpaces&&this.defaultEOL===M.defaultEOL&&this.trimAutoWhitespace===M.trimAutoWhitespace},z.prototype.createChangeEvent=function(M){return{tabSize:this.tabSize!==M.tabSize,indentSize:this.indentSize!==M.indentSize,insertSpaces:this.insertSpaces!==M.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==M.trimAutoWhitespace}},z}(),N=function(){function z(M,U){this.range=M,this.matches=U}return z}(),H=function(){function z(M,U,A){this.reverseEdits=M,this.changes=U,this.trimAutoWhitespaceLineNumbers=A}return z}()},MD5Z:function(_t,P,e){"use strict";e.d(P,"a",function(){return M}),e.d(P,"Tb",function(){return c}),e.d(P,"W",function(){return y}),e.d(P,"U",function(){return L}),e.d(P,"V",function(){return f}),e.d(P,"e",function(){return v}),e.d(P,"b",function(){return S}),e.d(P,"ec",function(){return g}),e.d(P,"dc",function(){return u}),e.d(P,"hc",function(){return s}),e.d(P,"Z",function(){return l}),e.d(P,"bb",function(){return d}),e.d(P,"ab",function(){return p}),e.d(P,"Y",function(){return E}),e.d(P,"X",function(){return _}),e.d(P,"fb",function(){return x}),e.d(P,"hb",function(){return F}),e.d(P,"gb",function(){return R}),e.d(P,"ib",function(){return $}),e.d(P,"kb",function(){return ie}),e.d(P,"jb",function(){return W}),e.d(P,"cb",function(){return B}),e.d(P,"eb",function(){return le}),e.d(P,"db",function(){return be}),e.d(P,"Ob",function(){return ke}),e.d(P,"Nb",function(){return He}),e.d(P,"c",function(){return je}),e.d(P,"d",function(){return oe}),e.d(P,"Vb",function(){return ee}),e.d(P,"Xb",function(){return ae}),e.d(P,"Yb",function(){return q}),e.d(P,"Wb",function(){return ce}),e.d(P,"Sb",function(){return X}),e.d(P,"q",function(){return he}),e.d(P,"p",function(){return Pe}),e.d(P,"P",function(){return Xe}),e.d(P,"O",function(){return pe}),e.d(P,"H",function(){return me}),e.d(P,"G",function(){return Se}),e.d(P,"z",function(){return Re}),e.d(P,"y",function(){return Ee}),e.d(P,"o",function(){return ve}),e.d(P,"x",function(){return Q}),e.d(P,"Q",function(){return b}),e.d(P,"S",function(){return k}),e.d(P,"R",function(){return se}),e.d(P,"T",function(){return ne}),e.d(P,"K",function(){return Ce}),e.d(P,"L",function(){return Oe}),e.d(P,"F",function(){return we}),e.d(P,"M",function(){return Ve}),e.d(P,"N",function(){return Qe}),e.d(P,"r",function(){return it}),e.d(P,"t",function(){return gt}),e.d(P,"v",function(){return Rt}),e.d(P,"s",function(){return Dt}),e.d(P,"u",function(){return zt}),e.d(P,"w",function(){return cn}),e.d(P,"D",function(){return ln}),e.d(P,"A",function(){return an}),e.d(P,"C",function(){return jt}),e.d(P,"B",function(){return ft}),e.d(P,"E",function(){return vt}),e.d(P,"n",function(){return xt}),e.d(P,"J",function(){return at}),e.d(P,"I",function(){return tt}),e.d(P,"g",function(){return ct}),e.d(P,"h",function(){return bt}),e.d(P,"j",function(){return mt}),e.d(P,"l",function(){return Ct}),e.d(P,"k",function(){return Gt}),e.d(P,"m",function(){return It}),e.d(P,"i",function(){return Et}),e.d(P,"rb",function(){return Je}),e.d(P,"sb",function(){return $e}),e.d(P,"lb",function(){return ze}),e.d(P,"mb",function(){return Ke}),e.d(P,"xb",function(){return fe}),e.d(P,"yb",function(){return G}),e.d(P,"wb",function(){return te}),e.d(P,"ub",function(){return Y}),e.d(P,"vb",function(){return de}),e.d(P,"nb",function(){return Fe}),e.d(P,"tb",function(){return lt}),e.d(P,"ob",function(){return Tt}),e.d(P,"qb",function(){return Jt}),e.d(P,"pb",function(){return en}),e.d(P,"gc",function(){return gn}),e.d(P,"Ab",function(){return un}),e.d(P,"Bb",function(){return En}),e.d(P,"zb",function(){return Mn}),e.d(P,"Eb",function(){return xn}),e.d(P,"Cb",function(){return Zn}),e.d(P,"Db",function(){return bn}),e.d(P,"Fb",function(){return Wn}),e.d(P,"bc",function(){return Gn}),e.d(P,"cc",function(){return Bn}),e.d(P,"Zb",function(){return Dn}),e.d(P,"ac",function(){return Qn}),e.d(P,"Lb",function(){return fo}),e.d(P,"Mb",function(){return Vn}),e.d(P,"Hb",function(){return po}),e.d(P,"Ib",function(){return yo}),e.d(P,"Gb",function(){return lo}),e.d(P,"Jb",function(){return io}),e.d(P,"Pb",function(){return go}),e.d(P,"Rb",function(){return zn}),e.d(P,"Qb",function(){return Un}),e.d(P,"f",function(){return wt}),e.d(P,"fc",function(){return ot}),e.d(P,"Kb",function(){return Ot}),e.d(P,"Ub",function(){return D});var T=e("ic2d"),re=e("zrhQ"),J=e("MI8n"),N=e("3/fG"),H=e("3Rsk"),z=e("X+cX"),M={ColorContribution:"base.contributions.colors"},U=function(){function Ae(){this._onDidChangeSchema=new J.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return Ae.prototype.registerColor=function(Ie,dt,ht,At,Bt){At===void 0&&(At=!1);var Ut={id:Ie,description:ht,defaults:dt,needsTransparency:At,deprecationMessage:Bt};this.colorsById[Ie]=Ut;var Ht={type:"string",description:ht,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return Bt&&(Ht.deprecationMessage=Bt),this.colorSchema.properties[Ie]=Ht,this.colorReferenceSchema.enum.push(Ie),this.colorReferenceSchema.enumDescriptions.push(ht),this._onDidChangeSchema.fire(),Ie},Ae.prototype.resolveDefaultColor=function(Ie,dt){var ht=this.colorsById[Ie];if(ht&&ht.defaults){var At=ht.defaults[dt.type];return D(At,dt)}return},Ae.prototype.getColorSchema=function(){return this.colorSchema},Ae.prototype.toString=function(){var Ie=this,dt=function(At,Bt){var Ut=At.indexOf(".")===-1?0:1,Ht=Bt.indexOf(".")===-1?0:1;return Ut!==Ht?Ut-Ht:At.localeCompare(Bt)};return Object.keys(this.colorsById).sort(dt).map(function(ht){return"- `"+ht+"`: "+Ie.colorsById[ht].description}).join(`
`)},Ae}(),A=new U;T.a.add(M.ColorContribution,A);function c(Ae,Ie,dt,ht,At){return A.registerColor(Ae,Ie,dt,ht,At)}var y=c("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},N.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),L=c("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},N.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),f=c("focusBorder",{dark:re.a.fromHex("#0E639C").transparent(.8),light:re.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},N.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),v=c("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},N.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),S=c("contrastActiveBorder",{light:null,dark:null,hc:f},N.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),g=c("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},N.a("textLinkForeground","Foreground color for links in text.")),u=c("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:re.a.black},N.a("textCodeBlockBackground","Background color for code blocks in text.")),s=c("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},N.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),l=c("input.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},N.a("inputBoxBackground","Input box background.")),d=c("input.foreground",{dark:y,light:y,hc:y},N.a("inputBoxForeground","Input box foreground.")),p=c("input.border",{dark:null,light:null,hc:v},N.a("inputBoxBorder","Input box border.")),E=c("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:v},N.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),_=c("inputOption.activeBackground",{dark:ot(f,.5),light:ot(f,.3),hc:null},N.a("inputOption.activeBackground","Background color of activated options in input fields.")),x=c("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:re.a.black},N.a("inputValidationInfoBackground","Input validation background color for information severity.")),F=c("inputValidation.infoForeground",{dark:null,light:null,hc:null},N.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),R=c("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:v},N.a("inputValidationInfoBorder","Input validation border color for information severity.")),$=c("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:re.a.black},N.a("inputValidationWarningBackground","Input validation background color for warning severity.")),ie=c("inputValidation.warningForeground",{dark:null,light:null,hc:null},N.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),W=c("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:v},N.a("inputValidationWarningBorder","Input validation border color for warning severity.")),B=c("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:re.a.black},N.a("inputValidationErrorBackground","Input validation background color for error severity.")),le=c("inputValidation.errorForeground",{dark:null,light:null,hc:null},N.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),be=c("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:v},N.a("inputValidationErrorBorder","Input validation border color for error severity.")),De=c("dropdown.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},N.a("dropdownBackground","Dropdown background.")),Te=c("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:re.a.white},N.a("dropdownForeground","Dropdown foreground.")),ke=c("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:re.a.white},N.a("pickerGroupForeground","Quick picker color for grouping labels.")),He=c("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:re.a.white},N.a("pickerGroupBorder","Quick picker color for grouping borders.")),je=c("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:re.a.black},N.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),oe=c("badge.foreground",{dark:re.a.white,light:"#333",hc:re.a.white},N.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),ee=c("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},N.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ae=c("scrollbarSlider.background",{dark:re.a.fromHex("#797979").transparent(.4),light:re.a.fromHex("#646464").transparent(.4),hc:ot(v,.6)},N.a("scrollbarSliderBackground","Scrollbar slider background color.")),q=c("scrollbarSlider.hoverBackground",{dark:re.a.fromHex("#646464").transparent(.7),light:re.a.fromHex("#646464").transparent(.7),hc:ot(v,.8)},N.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),ce=c("scrollbarSlider.activeBackground",{dark:re.a.fromHex("#BFBFBF").transparent(.4),light:re.a.fromHex("#000000").transparent(.6),hc:v},N.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),X=c("progressBar.background",{dark:re.a.fromHex("#0E70C0"),light:re.a.fromHex("#0E70C0"),hc:v},N.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),he=c("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},N.a("editorError.foreground","Foreground color of error squigglies in the editor.")),Pe=c("editorError.border",{dark:null,light:null,hc:re.a.fromHex("#E47777").transparent(.8)},N.a("errorBorder","Border color of error boxes in the editor.")),Xe=c("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},N.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),pe=c("editorWarning.border",{dark:null,light:null,hc:re.a.fromHex("#FFCC00").transparent(.8)},N.a("warningBorder","Border color of warning boxes in the editor.")),me=c("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},N.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Se=c("editorInfo.border",{dark:null,light:null,hc:re.a.fromHex("#75BEFF").transparent(.8)},N.a("infoBorder","Border color of info boxes in the editor.")),Re=c("editorHint.foreground",{dark:re.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},N.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Ee=c("editorHint.border",{dark:null,light:null,hc:re.a.fromHex("#eeeeee").transparent(.8)},N.a("hintBorder","Border color of hint boxes in the editor.")),ve=c("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:re.a.black},N.a("editorBackground","Editor background color.")),Q=c("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:re.a.white},N.a("editorForeground","Editor default foreground color.")),b=c("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},N.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),k=c("editorWidget.foreground",{dark:y,light:y,hc:y},N.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),se=c("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:v},N.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),ne=c("editorWidget.resizeBorder",{light:null,dark:null,hc:null},N.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),Ce=c("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},N.a("editorSelectionBackground","Color of the editor selection.")),Oe=c("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},N.a("editorSelectionForeground","Color of the selected text for high contrast.")),we=c("editor.inactiveSelectionBackground",{light:ot(Ce,.5),dark:ot(Ce,.5),hc:ot(Ce,.5)},N.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ve=c("editor.selectionHighlightBackground",{light:Le(Ce,ve,.3,.6),dark:Le(Ce,ve,.3,.6),hc:null},N.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Qe=c("editor.selectionHighlightBorder",{light:null,dark:null,hc:S},N.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),it=c("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},N.a("editorFindMatch","Color of the current search match.")),gt=c("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},N.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Rt=c("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},N.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Dt=c("editor.findMatchBorder",{light:null,dark:null,hc:S},N.a("editorFindMatchBorder","Border color of the current search match.")),zt=c("editor.findMatchHighlightBorder",{light:null,dark:null,hc:S},N.a("findMatchHighlightBorder","Border color of the other search matches.")),cn=c("editor.findRangeHighlightBorder",{dark:null,light:null,hc:ot(S,.4)},N.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ln=c("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},N.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),an=c("editorHoverWidget.background",{light:b,dark:b,hc:b},N.a("hoverBackground","Background color of the editor hover.")),jt=c("editorHoverWidget.foreground",{light:k,dark:k,hc:k},N.a("hoverForeground","Foreground color of the editor hover.")),ft=c("editorHoverWidget.border",{light:se,dark:se,hc:se},N.a("hoverBorder","Border color of the editor hover.")),vt=c("editorHoverWidget.statusBarBackground",{dark:nt(an,.2),light:wt(an,.05),hc:b},N.a("statusBarBackground","Background color of the editor hover status bar.")),xt=c("editorLink.activeForeground",{dark:"#4E94CE",light:re.a.blue,hc:re.a.cyan},N.a("activeLinkForeground","Color of active links.")),at=c("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},N.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),tt=c("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},N.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),ct=new re.a(new re.c(155,185,85,.2)),bt=new re.a(new re.c(255,0,0,.2)),mt=c("diffEditor.insertedTextBackground",{dark:ct,light:ct,hc:null},N.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Ct=c("diffEditor.removedTextBackground",{dark:bt,light:bt,hc:null},N.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Gt=c("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},N.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),It=c("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},N.a("diffEditorRemovedOutline","Outline color for text that got removed.")),Et=c("diffEditor.border",{dark:null,light:null,hc:v},N.a("diffEditorBorder","Border color between the two text editors.")),Je=c("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},N.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),$e=c("list.focusForeground",{dark:null,light:null,hc:null},N.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ze=c("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},N.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ke=c("list.activeSelectionForeground",{dark:re.a.white,light:re.a.white,hc:null},N.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),fe=c("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},N.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),G=c("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},N.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),te=c("list.inactiveFocusBackground",{dark:null,light:null,hc:null},N.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Y=c("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},N.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),de=c("list.hoverForeground",{dark:null,light:null,hc:null},N.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),Fe=c("list.dropBackground",{dark:Je,light:Je,hc:null},N.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),lt=c("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:f},N.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Tt=c("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:re.a.black},N.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Jt=c("listFilterWidget.outline",{dark:re.a.transparent,light:re.a.transparent,hc:"#f38518"},N.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),en=c("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:v},N.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),gn=c("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},N.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),un=c("menu.border",{dark:null,light:null,hc:v},N.a("menuBorder","Border color of menus.")),En=c("menu.foreground",{dark:Te,light:y,hc:Te},N.a("menuForeground","Foreground color of menu items.")),Mn=c("menu.background",{dark:De,light:De,hc:De},N.a("menuBackground","Background color of menu items.")),xn=c("menu.selectionForeground",{dark:Ke,light:Ke,hc:Ke},N.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Zn=c("menu.selectionBackground",{dark:ze,light:ze,hc:ze},N.a("menuSelectionBackground","Background color of the selected menu item in menus.")),bn=c("menu.selectionBorder",{dark:null,light:null,hc:S},N.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Wn=c("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:v},N.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Gn=c("editor.snippetTabstopHighlightBackground",{dark:new re.a(new re.c(124,124,124,.3)),light:new re.a(new re.c(10,50,100,.2)),hc:new re.a(new re.c(124,124,124,.3))},N.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Bn=c("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},N.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Dn=c("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},N.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Qn=c("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new re.a(new re.c(10,50,100,.5)),hc:"#525252"},N.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),fo=c("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},N.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Vn=c("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},N.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),po=c("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},N.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),yo=c("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},N.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),lo=c("minimap.errorHighlight",{dark:new re.a(new re.c(255,18,18,.7)),light:new re.a(new re.c(255,18,18,.7)),hc:new re.a(new re.c(255,50,50,1))},N.a("minimapError","Minimap marker color for errors.")),io=c("minimap.warningHighlight",{dark:Xe,light:Xe,hc:pe},N.a("overviewRuleWarning","Minimap marker color for warnings.")),go=c("problemsErrorIcon.foreground",{dark:he,light:he,hc:he},N.a("problemsErrorIconForeground","The color used for the problems error icon.")),zn=c("problemsWarningIcon.foreground",{dark:Xe,light:Xe,hc:Xe},N.a("problemsWarningIconForeground","The color used for the problems warning icon.")),Un=c("problemsInfoIcon.foreground",{dark:me,light:me,hc:me},N.a("problemsInfoIconForeground","The color used for the problems info icon."));function wt(Ae,Ie){return function(dt){var ht=D(Ae,dt);return ht?ht.darken(Ie):void 0}}function nt(Ae,Ie){return function(dt){var ht=D(Ae,dt);return ht?ht.lighten(Ie):void 0}}function ot(Ae,Ie){return function(dt){var ht=D(Ae,dt);return ht?ht.transparent(Ie):void 0}}function Ot(){for(var Ae=[],Ie=0;Ie<arguments.length;Ie++)Ae[Ie]=arguments[Ie];return function(dt){for(var ht=0,At=Ae;ht<At.length;ht++){var Bt=At[ht],Ut=D(Bt,dt);if(Ut)return Ut}return}}function Le(Ae,Ie,dt,ht){return function(At){var Bt=D(Ae,At);if(Bt){var Ut=D(Ie,At);return Ut?Bt.isDarkerThan(Ut)?re.a.getLighterColor(Bt,Ut,dt).transparent(ht):re.a.getDarkerColor(Bt,Ut,dt).transparent(ht):Bt.transparent(dt*ht)}return}}function D(Ae,Ie){return Ae===null?void 0:typeof Ae=="string"?Ae[0]==="#"?re.a.fromHex(Ae):Ie.getColor(Ae):Ae instanceof re.a?Ae:typeof Ae=="function"?Ae(Ie):void 0}var j="vscode://schemas/workbench-colors",Z=T.a.as(H.a.JSONContribution);Z.registerSchema(j,A.getColorSchema());var xe=new z.d(function(){return Z.notifySchemaChanged(j)},200);A.onDidChangeSchema(function(){xe.isScheduled()||xe.schedule()})},MI8n:function(_t,P,e){"use strict";e.d(P,"b",function(){return z}),e.d(P,"a",function(){return A}),e.d(P,"e",function(){return c}),e.d(P,"d",function(){return y}),e.d(P,"c",function(){return L}),e.d(P,"f",function(){return f});var T=e("/cxE"),re=e("C/vA"),J=e("pmY6"),N=e("24hK"),H=function(){var v=function(g,u){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])},v(g,u)};return function(S,g){v(S,g);function u(){this.constructor=S}S.prototype=g===null?Object.create(g):(u.prototype=g.prototype,new u)}}(),z;(function(v){v.None=function(){return J.a.None};function S(De){return function(Te,ke,He){ke===void 0&&(ke=null);var je=!1,oe;return oe=De(function(ee){return je?void 0:(oe?oe.dispose():je=!0,Te.call(ke,ee))},null,He),je&&oe.dispose(),oe}}v.once=S;function g(De,Te){return E(function(ke,He,je){return He===void 0&&(He=null),De(function(oe){return ke.call(He,Te(oe))},null,je)})}v.map=g;function u(De,Te){return E(function(ke,He,je){return He===void 0&&(He=null),De(function(oe){Te(oe),ke.call(He,oe)},null,je)})}v.forEach=u;function s(De,Te){return E(function(ke,He,je){return He===void 0&&(He=null),De(function(oe){return Te(oe)&&ke.call(He,oe)},null,je)})}v.filter=s;function l(De){return De}v.signal=l;function d(){for(var De=[],Te=0;Te<arguments.length;Te++)De[Te]=arguments[Te];return function(ke,He,je){return He===void 0&&(He=null),J.e.apply(void 0,De.map(function(oe){return oe(function(ee){return ke.call(He,ee)},null,je)}))}}v.any=d;function p(De,Te,ke){var He=ke;return g(De,function(je){return He=Te(He,je),He})}v.reduce=p;function E(De){var Te,ke=new A({onFirstListenerAdd:function(){Te=De(ke.fire,ke)},onLastListenerRemove:function(){Te.dispose()}});return ke.event}v.snapshot=E;function _(De,Te,ke,He,je){ke===void 0&&(ke=100),He===void 0&&(He=!1);var oe,ee=void 0,ae=void 0,q=0,ce=new A({leakWarningThreshold:je,onFirstListenerAdd:function(){oe=De(function(he){q++,ee=Te(ee,he),He&&!ae&&(ce.fire(ee),ee=void 0),clearTimeout(ae),ae=setTimeout(function(){var Pe=ee;ee=void 0,ae=void 0,(!He||q>1)&&ce.fire(Pe),q=0},ke)})},onLastListenerRemove:function(){oe.dispose()}});return ce.event}v.debounce=_;function x(De){var Te=new Date().getTime();return g(S(De),function(ke){return new Date().getTime()-Te})}v.stopwatch=x;function F(De){var Te=!0,ke;return s(De,function(He){var je=Te||He!==ke;return Te=!1,ke=He,je})}v.latch=F;function R(De,Te,ke){Te===void 0&&(Te=!1),ke===void 0&&(ke=[]);var He=ke.slice(),je=De(function(ae){He?He.push(ae):ee.fire(ae)}),oe=function(){He&&He.forEach(function(q){return ee.fire(q)}),He=null},ee=new A({onFirstListenerAdd:function(){je||(je=De(function(q){return ee.fire(q)}))},onFirstListenerDidAdd:function(){He&&(Te?setTimeout(oe):oe())},onLastListenerRemove:function(){je&&je.dispose(),je=null}});return ee.event}v.buffer=R;var $=function(){function De(Te){this.event=Te}return De.prototype.map=function(Te){return new De(g(this.event,Te))},De.prototype.forEach=function(Te){return new De(u(this.event,Te))},De.prototype.filter=function(Te){return new De(s(this.event,Te))},De.prototype.reduce=function(Te,ke){return new De(p(this.event,Te,ke))},De.prototype.latch=function(){return new De(F(this.event))},De.prototype.debounce=function(Te,ke,He,je){return ke===void 0&&(ke=100),He===void 0&&(He=!1),new De(_(this.event,Te,ke,He,je))},De.prototype.on=function(Te,ke,He){return this.event(Te,ke,He)},De.prototype.once=function(Te,ke,He){return S(this.event)(Te,ke,He)},De}();function ie(De){return new $(De)}v.chain=ie;function W(De,Te,ke){ke===void 0&&(ke=function(q){return q});var He=function(){for(var q=[],ce=0;ce<arguments.length;ce++)q[ce]=arguments[ce];return ee.fire(ke.apply(void 0,q))},je=function(){return De.on(Te,He)},oe=function(){return De.removeListener(Te,He)},ee=new A({onFirstListenerAdd:je,onLastListenerRemove:oe});return ee.event}v.fromNodeEventEmitter=W;function B(De,Te,ke){ke===void 0&&(ke=function(q){return q});var He=function(){for(var q=[],ce=0;ce<arguments.length;ce++)q[ce]=arguments[ce];return ee.fire(ke.apply(void 0,q))},je=function(){return De.addEventListener(Te,He)},oe=function(){return De.removeEventListener(Te,He)},ee=new A({onFirstListenerAdd:je,onLastListenerRemove:oe});return ee.event}v.fromDOMEventEmitter=B;function le(De){var Te=new A,ke=!1;return De.then(void 0,function(){return null}).then(function(){ke?Te.fire(void 0):setTimeout(function(){return Te.fire(void 0)},0)}),ke=!0,Te.event}v.fromPromise=le;function be(De){return new Promise(function(Te){return S(De)(Te)})}v.toPromise=be})(z||(z={}));var M=-1,U=function(){function v(S,g){g===void 0&&(g=Math.random().toString(18).slice(2,5)),this.customThreshold=S,this.name=g,this._warnCountdown=0}return v.prototype.dispose=function(){this._stacks&&this._stacks.clear()},v.prototype.check=function(S){var g=this,u=M;if(typeof this.customThreshold=="number"&&(u=this.customThreshold),u<=0||S<u)return;this._stacks||(this._stacks=new Map);var s=new Error().stack.split(`
`).slice(3).join(`
`),l=this._stacks.get(s)||0;if(this._stacks.set(s,l+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=u*.5;var d,p=0;this._stacks.forEach(function(E,_){(!d||p<E)&&(d=_,p=E)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+S+" listeners already. MOST frequent listener ("+p+"):"),console.warn(d)}return function(){var E=g._stacks.get(s)||0;g._stacks.set(s,E-1)}},v}(),A=function(){function v(S){this._disposed=!1,this._options=S,this._leakageMon=M>0?new U(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(v.prototype,"event",{get:function(){var g=this;return this._event||(this._event=function(u,s,l){g._listeners||(g._listeners=new N.a);var d=g._listeners.isEmpty();d&&g._options&&g._options.onFirstListenerAdd&&g._options.onFirstListenerAdd(g);var p=g._listeners.push(s?[u,s]:u);d&&g._options&&g._options.onFirstListenerDidAdd&&g._options.onFirstListenerDidAdd(g),g._options&&g._options.onListenerDidAdd&&g._options.onListenerDidAdd(g,u,s);var E;g._leakageMon&&(E=g._leakageMon.check(g._listeners.size));var _;return _={dispose:function(){if(E&&E(),_.dispose=v._noop,!g._disposed&&(p(),g._options&&g._options.onLastListenerRemove)){var F=g._listeners&&!g._listeners.isEmpty();F||g._options.onLastListenerRemove(g)}}},l instanceof J.b?l.add(_):Array.isArray(l)&&l.push(_),_}),this._event},enumerable:!0,configurable:!0}),v.prototype.fire=function(S){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new N.a);for(var g=this._listeners.iterator(),u=g.next();!u.done;u=g.next())this._deliveryQueue.push([u.value,S]);for(;this._deliveryQueue.size>0;){var s=this._deliveryQueue.shift(),l=s[0],d=s[1];try{typeof l=="function"?l.call(void 0,d):l[0].call(l[1],d)}catch(p){Object(T.e)(p)}}}},v.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},v._noop=function(){},v}(),c=function(v){H(S,v);function S(g){var u=v.call(this,g)||this;return u._isPaused=0,u._eventQueue=new N.a,u._mergeFn=g&&g.merge,u}return S.prototype.pause=function(){this._isPaused++},S.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var g=this._eventQueue.toArray();this._eventQueue.clear(),v.prototype.fire.call(this,this._mergeFn(g))}else for(;!this._isPaused&&this._eventQueue.size!==0;)v.prototype.fire.call(this,this._eventQueue.shift())},S.prototype.fire=function(g){this._listeners&&(this._isPaused!==0?this._eventQueue.push(g):v.prototype.fire.call(this,g))},S}(A),y=function(){function v(){var S=this;this.hasListeners=!1,this.events=[],this.emitter=new A({onFirstListenerAdd:function(){return S.onFirstListenerAdd()},onLastListenerRemove:function(){return S.onLastListenerRemove()}})}return Object.defineProperty(v.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),v.prototype.add=function(S){var g=this,u={event:S,listener:null};this.events.push(u),this.hasListeners&&this.hook(u);var s=function(){g.hasListeners&&g.unhook(u);var d=g.events.indexOf(u);g.events.splice(d,1)};return Object(J.h)(Object(re.a)(s))},v.prototype.onFirstListenerAdd=function(){var S=this;this.hasListeners=!0,this.events.forEach(function(g){return S.hook(g)})},v.prototype.onLastListenerRemove=function(){var S=this;this.hasListeners=!1,this.events.forEach(function(g){return S.unhook(g)})},v.prototype.hook=function(S){var g=this;S.listener=S.event(function(u){return g.emitter.fire(u)})},v.prototype.unhook=function(S){S.listener&&S.listener.dispose(),S.listener=null},v.prototype.dispose=function(){this.emitter.dispose()},v}(),L=function(){function v(){this.buffers=[]}return v.prototype.wrapEvent=function(S){var g=this;return function(u,s,l){return S(function(d){var p=g.buffers[g.buffers.length-1];p?p.push(function(){return u.call(s,d)}):u.call(s,d)},void 0,l)}},v.prototype.bufferEvents=function(S){var g=[];this.buffers.push(g);var u=S();return this.buffers.pop(),g.forEach(function(s){return s()}),u},v}(),f=function(){function v(){var S=this;this.listening=!1,this.inputEvent=z.None,this.inputEventListener=J.a.None,this.emitter=new A({onFirstListenerDidAdd:function(){S.listening=!0,S.inputEventListener=S.inputEvent(S.emitter.fire,S.emitter)},onLastListenerRemove:function(){S.listening=!1,S.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(v.prototype,"input",{set:function(g){this.inputEvent=g,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=g(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),v.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},v}()},MNXI:function(_t,P,e){},MNsG:function(_t,P,e){"use strict";(function(T,re){e.d(P,"h",function(){return l}),e.d(P,"e",function(){return d}),e.d(P,"d",function(){return p}),e.d(P,"f",function(){return E}),e.d(P,"g",function(){return _}),e.d(P,"c",function(){return x}),e.d(P,"b",function(){return R}),e.d(P,"i",function(){return $}),e.d(P,"a",function(){return ie});var J="en",N=!1,H=!1,z=!1,M=!1,U=!1,A=!1,c=void 0,y=J,L=void 0,f=void 0,v=typeof T!="undefined"&&typeof T.versions!="undefined"&&typeof T.versions.electron!="undefined"&&T.type==="renderer";if(typeof navigator=="object"&&!v)f=navigator.userAgent,N=f.indexOf("Windows")>=0,H=f.indexOf("Macintosh")>=0,A=f.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,z=f.indexOf("Linux")>=0,U=!0,c=navigator.language,y=c;else if(typeof T=="object"){N=T.platform==="win32",H=T.platform==="darwin",z=T.platform==="linux",c=J,y=J;var S=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(S)try{var g=JSON.parse(S),u=g.availableLanguages["*"];c=g.locale,y=u||J,L=g._translationsConfigFile}catch(W){}M=!0}var s=0;H?s=1:N?s=3:z&&(s=2);var l=N,d=H,p=z,E=M,_=U,x=A,F=typeof self=="object"?self:typeof re=="object"?re:{},R=F,$=function(){if(R.setImmediate)return R.setImmediate.bind(R);if(typeof R.postMessage=="function"&&!R.importScripts){var B=[];R.addEventListener("message",function(De){if(De.data&&De.data.vscodeSetImmediateId)for(var Te=0,ke=B.length;Te<ke;Te++){var He=B[Te];if(He.id===De.data.vscodeSetImmediateId){B.splice(Te,1),He.callback();return}}});var le=0;return function(De){var Te=++le;B.push({id:Te,callback:De}),R.postMessage({vscodeSetImmediateId:Te},"*")}}if(typeof T!="undefined"&&typeof T.nextTick=="function")return T.nextTick.bind(T);var be=Promise.resolve();return function(De){return be.then(De)}}(),ie=H?2:N?1:3}).call(this,e("Q2Ig"),e("yLpj"))},MXAL:function(_t,P,e){"use strict";e.d(P,"a",function(){return re}),e.d(P,"b",function(){return J});var T=e("CZ1j"),re=function(){function N(H){var z=Object(T.b)(H);this._defaultValue=z,this._asciiMap=N._createAsciiMap(z),this._map=new Map}return N._createAsciiMap=function(H){for(var z=new Uint8Array(256),M=0;M<256;M++)z[M]=H;return z},N.prototype.set=function(H,z){var M=Object(T.b)(z);H>=0&&H<256?this._asciiMap[H]=M:this._map.set(H,M)},N.prototype.get=function(H){return H>=0&&H<256?this._asciiMap[H]:this._map.get(H)||this._defaultValue},N}(),J=function(){function N(){this._actual=new re(0)}return N.prototype.add=function(H){this._actual.set(H,1)},N.prototype.has=function(H){return this._actual.get(H)===1},N}()},Md8J:function(_t,P,e){"use strict";e.d(P,"c",function(){return re}),e.d(P,"b",function(){return J}),e.d(P,"a",function(){return N});var T=e("EffR");function re(c,y){y===void 0&&(y={});var L=N(y);return L.textContent=c,L}function J(c,y){y===void 0&&(y={});var L=N(y);return z(L,M(c),y.actionHandler),L}function N(c){var y=c.inline?"span":"div",L=document.createElement(y);return c.className&&(L.className=c.className),L}var H=function(){function c(y){this.source=y,this.index=0}return c.prototype.eos=function(){return this.index>=this.source.length},c.prototype.next=function(){var y=this.peek();return this.advance(),y},c.prototype.peek=function(){return this.source[this.index]},c.prototype.advance=function(){this.index++},c}();function z(c,y,L){var f;if(y.type===2)f=document.createTextNode(y.content||"");else if(y.type===3)f=document.createElement("b");else if(y.type===4)f=document.createElement("i");else if(y.type===5&&L){var v=document.createElement("a");v.href="#",L.disposeables.add(T.o(v,"click",function(S){L.callback(String(y.index),S)})),f=v}else y.type===7?f=document.createElement("br"):y.type===1&&(f=c);f&&c!==f&&c.appendChild(f),f&&Array.isArray(y.children)&&y.children.forEach(function(S){z(f,S,L)})}function M(c){for(var y={type:1,children:[]},L=0,f=y,v=[],S=new H(c);!S.eos();){var g=S.next(),u=g==="\\"&&A(S.peek())!==0;if(u&&(g=S.next()),!u&&U(g)&&g===S.peek()){S.advance(),f.type===2&&(f=v.pop());var s=A(g);if(f.type===s||f.type===5&&s===6)f=v.pop();else{var l={type:s,children:[]};s===5&&(l.index=L,L++),f.children.push(l),v.push(f),f=l}}else if(g===`
`)f.type===2&&(f=v.pop()),f.children.push({type:7});else if(f.type!==2){var d={type:2,content:g};f.children.push(d),v.push(f),f=d}else f.content+=g}return f.type===2&&(f=v.pop()),v.length,y}function U(c){return A(c)!==0}function A(c){switch(c){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},MqQJ:function(_t,P,e){"use strict";e.d(P,"a",function(){return U}),e.d(P,"c",function(){return A}),e.d(P,"b",function(){return c});var T=e("3/fG"),re=e("MI8n"),J=e("twdY"),N=e("cMvZ"),H=e("ic2d"),z={ModesRegistry:"editor.modesRegistry"},M=function(){function y(){this._onDidChangeLanguages=new re.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return y.prototype.registerLanguage=function(L){this._languages.push(L),this._onDidChangeLanguages.fire(void 0)},y.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},y}(),U=new M;H.a.add(z.ModesRegistry,U);var A="plaintext",c=new J.r(A,1);U.registerLanguage({id:A,extensions:[".txt",".gitignore"],aliases:[T.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),N.a.register(c,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},MrjW:function(_t,P,e){"use strict";e.r(P),e.d(P,"win32",function(){return l}),e.d(P,"posix",function(){return d}),e.d(P,"normalize",function(){return p}),e.d(P,"join",function(){return E}),e.d(P,"relative",function(){return _}),e.d(P,"dirname",function(){return x}),e.d(P,"basename",function(){return F}),e.d(P,"extname",function(){return R}),e.d(P,"sep",function(){return $});var T=e("wxcJ"),re=function(){var ie=function(B,le){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,De){be.__proto__=De}||function(be,De){for(var Te in De)De.hasOwnProperty(Te)&&(be[Te]=De[Te])},ie(B,le)};return function(W,B){ie(W,B);function le(){this.constructor=W}W.prototype=B===null?Object.create(B):(le.prototype=B.prototype,new le)}}(),J=65,N=97,H=90,z=122,M=46,U=47,A=92,c=58,y=63,L=function(ie){re(W,ie);function W(B,le,be){var De=this,Te;typeof le=="string"&&le.indexOf("not ")===0?(Te="must not be",le=le.replace(/^not /,"")):Te="must be";var ke=B.indexOf(".")!==-1?"property":"argument",He='The "'+B+'" '+ke+" "+Te+" of type "+le;return He+=". Received type "+typeof be,De=ie.call(this,He)||this,De.code="ERR_INVALID_ARG_TYPE",De}return W}(Error);function f(ie,W){if(typeof ie!="string")throw new L(W,"string",ie)}function v(ie){return ie===U||ie===A}function S(ie){return ie===U}function g(ie){return ie>=J&&ie<=H||ie>=N&&ie<=z}function u(ie,W,B,le){for(var be="",De=0,Te=-1,ke=0,He,je=0;je<=ie.length;++je){if(je<ie.length)He=ie.charCodeAt(je);else{if(le(He))break;He=U}if(le(He)){if(!(Te===je-1||ke===1))if(Te!==je-1&&ke===2){if(be.length<2||De!==2||be.charCodeAt(be.length-1)!==M||be.charCodeAt(be.length-2)!==M){if(be.length>2){var oe=be.lastIndexOf(B);oe===-1?(be="",De=0):(be=be.slice(0,oe),De=be.length-1-be.lastIndexOf(B)),Te=je,ke=0;continue}else if(be.length===2||be.length===1){be="",De=0,Te=je,ke=0;continue}}W&&(be.length>0?be+=B+"..":be="..",De=2)}else be.length>0?be+=B+ie.slice(Te+1,je):be=ie.slice(Te+1,je),De=je-Te-1;Te=je,ke=0}else He===M&&ke!==-1?++ke:ke=-1}return be}function s(ie,W){var B=W.dir||W.root,le=W.base||(W.name||"")+(W.ext||"");return B?B===W.root?B+le:B+ie+le:le}var l={resolve:function(){for(var W=[],B=0;B<arguments.length;B++)W[B]=arguments[B];for(var le="",be="",De=!1,Te=W.length-1;Te>=-1;Te--){var ke=void 0;if(Te>=0?ke=W[Te]:le?(ke=T.b["="+le]||T.a(),(ke===void 0||ke.slice(0,3).toLowerCase()!==le.toLowerCase()+"\\")&&(ke=le+"\\")):ke=T.a(),f(ke,"path"),ke.length===0)continue;var He=ke.length,je=0,oe="",ee=!1,ae=ke.charCodeAt(0);if(He>1)if(v(ae))if(ee=!0,v(ke.charCodeAt(1))){for(var q=2,ce=q;q<He&&!v(ke.charCodeAt(q));++q);if(q<He&&q!==ce){var X=ke.slice(ce,q);for(ce=q;q<He&&v(ke.charCodeAt(q));++q);if(q<He&&q!==ce){for(ce=q;q<He&&!v(ke.charCodeAt(q));++q);q===He?(oe="\\\\"+X+"\\"+ke.slice(ce),je=q):q!==ce&&(oe="\\\\"+X+"\\"+ke.slice(ce,q),je=q)}}}else je=1;else g(ae)&&(ke.charCodeAt(1)===c&&(oe=ke.slice(0,2),je=2,He>2&&(v(ke.charCodeAt(2))&&(ee=!0,je=3))));else v(ae)&&(je=1,ee=!0);if(oe.length>0&&le.length>0&&oe.toLowerCase()!==le.toLowerCase())continue;if(le.length===0&&oe.length>0&&(le=oe),De||(be=ke.slice(je)+"\\"+be,De=ee),le.length>0&&De)break}return be=u(be,!De,"\\",v),le+(De?"\\":"")+be||"."},normalize:function(W){f(W,"path");var B=W.length;if(B===0)return".";var le=0,be,De=!1,Te=W.charCodeAt(0);if(B>1)if(v(Te))if(De=!0,v(W.charCodeAt(1))){for(var ke=2,He=ke;ke<B&&!v(W.charCodeAt(ke));++ke);if(ke<B&&ke!==He){var je=W.slice(He,ke);for(He=ke;ke<B&&v(W.charCodeAt(ke));++ke);if(ke<B&&ke!==He){for(He=ke;ke<B&&!v(W.charCodeAt(ke));++ke);if(ke===B)return"\\\\"+je+"\\"+W.slice(He)+"\\";ke!==He&&(be="\\\\"+je+"\\"+W.slice(He,ke),le=ke)}}}else le=1;else g(Te)&&(W.charCodeAt(1)===c&&(be=W.slice(0,2),le=2,B>2&&(v(W.charCodeAt(2))&&(De=!0,le=3))));else if(v(Te))return"\\";var oe;return le<B?oe=u(W.slice(le),!De,"\\",v):oe="",oe.length===0&&!De&&(oe="."),oe.length>0&&v(W.charCodeAt(B-1))&&(oe+="\\"),be===void 0?De?oe.length>0?"\\"+oe:"\\":oe.length>0?oe:"":De?oe.length>0?be+"\\"+oe:be+"\\":oe.length>0?be+oe:be},isAbsolute:function(W){f(W,"path");var B=W.length;if(B===0)return!1;var le=W.charCodeAt(0);return v(le)?!0:!!(g(le)&&(B>2&&W.charCodeAt(1)===c&&v(W.charCodeAt(2))))},join:function(){for(var W=[],B=0;B<arguments.length;B++)W[B]=arguments[B];if(W.length===0)return".";for(var le,be,De=0;De<W.length;++De){var Te=W[De];f(Te,"path"),Te.length>0&&(le===void 0?le=be=Te:le+="\\"+Te)}if(le===void 0)return".";var ke=!0,He=0;if(typeof be=="string"&&v(be.charCodeAt(0))){++He;var je=be.length;je>1&&(v(be.charCodeAt(1))&&(++He,je>2&&(v(be.charCodeAt(2))?++He:ke=!1)))}if(ke){for(;He<le.length&&v(le.charCodeAt(He));++He);He>=2&&(le="\\"+le.slice(He))}return l.normalize(le)},relative:function(W,B){if(f(W,"from"),f(B,"to"),W===B)return"";var le=l.resolve(W),be=l.resolve(B);if(le===be)return"";if(W=le.toLowerCase(),B=be.toLowerCase(),W===B)return"";for(var De=0;De<W.length&&!(W.charCodeAt(De)!==A);++De);for(var Te=W.length;Te-1>De&&!(W.charCodeAt(Te-1)!==A);--Te);for(var ke=Te-De,He=0;He<B.length&&!(B.charCodeAt(He)!==A);++He);for(var je=B.length;je-1>He&&!(B.charCodeAt(je-1)!==A);--je);for(var oe=je-He,ee=ke<oe?ke:oe,ae=-1,q=0;q<=ee;++q){if(q===ee){if(oe>ee){if(B.charCodeAt(He+q)===A)return be.slice(He+q+1);if(q===2)return be.slice(He+q)}ke>ee&&(W.charCodeAt(De+q)===A?ae=q:q===2&&(ae=3));break}var ce=W.charCodeAt(De+q),X=B.charCodeAt(He+q);if(ce!==X)break;ce===A&&(ae=q)}if(q!==ee&&ae===-1)return be;var he="";for(ae===-1&&(ae=0),q=De+ae+1;q<=Te;++q)(q===Te||W.charCodeAt(q)===A)&&(he.length===0?he+="..":he+="\\..");return he.length>0?he+be.slice(He+ae,je):(He+=ae,be.charCodeAt(He)===A&&++He,be.slice(He,je))},toNamespacedPath:function(W){if(typeof W!="string")return W;if(W.length===0)return"";var B=l.resolve(W);if(B.length>=3){if(B.charCodeAt(0)===A){if(B.charCodeAt(1)===A){var le=B.charCodeAt(2);if(le!==y&&le!==M)return"\\\\?\\UNC\\"+B.slice(2)}}else if(g(B.charCodeAt(0))&&(B.charCodeAt(1)===c&&B.charCodeAt(2)===A))return"\\\\?\\"+B}return W},dirname:function(W){f(W,"path");var B=W.length;if(B===0)return".";var le=-1,be=-1,De=!0,Te=0,ke=W.charCodeAt(0);if(B>1)if(v(ke)){if(le=Te=1,v(W.charCodeAt(1))){for(var He=2,je=He;He<B&&!v(W.charCodeAt(He));++He);if(He<B&&He!==je){for(je=He;He<B&&v(W.charCodeAt(He));++He);if(He<B&&He!==je){for(je=He;He<B&&!v(W.charCodeAt(He));++He);if(He===B)return W;He!==je&&(le=Te=He+1)}}}}else g(ke)&&(W.charCodeAt(1)===c&&(le=Te=2,B>2&&(v(W.charCodeAt(2))&&(le=Te=3))));else if(v(ke))return W;for(var oe=B-1;oe>=Te;--oe)if(v(W.charCodeAt(oe))){if(!De){be=oe;break}}else De=!1;if(be===-1){if(le===-1)return".";be=le}return W.slice(0,be)},basename:function(W,B){B!==void 0&&f(B,"ext"),f(W,"path");var le=0,be=-1,De=!0,Te;if(W.length>=2){var ke=W.charCodeAt(0);g(ke)&&(W.charCodeAt(1)===c&&(le=2))}if(B!==void 0&&B.length>0&&B.length<=W.length){if(B.length===W.length&&B===W)return"";var He=B.length-1,je=-1;for(Te=W.length-1;Te>=le;--Te){var oe=W.charCodeAt(Te);if(v(oe)){if(!De){le=Te+1;break}}else je===-1&&(De=!1,je=Te+1),He>=0&&(oe===B.charCodeAt(He)?--He===-1&&(be=Te):(He=-1,be=je))}return le===be?be=je:be===-1&&(be=W.length),W.slice(le,be)}else{for(Te=W.length-1;Te>=le;--Te)if(v(W.charCodeAt(Te))){if(!De){le=Te+1;break}}else be===-1&&(De=!1,be=Te+1);return be===-1?"":W.slice(le,be)}},extname:function(W){f(W,"path");var B=0,le=-1,be=0,De=-1,Te=!0,ke=0;W.length>=2&&W.charCodeAt(1)===c&&g(W.charCodeAt(0))&&(B=be=2);for(var He=W.length-1;He>=B;--He){var je=W.charCodeAt(He);if(v(je)){if(!Te){be=He+1;break}continue}De===-1&&(Te=!1,De=He+1),je===M?le===-1?le=He:ke!==1&&(ke=1):le!==-1&&(ke=-1)}return le===-1||De===-1||ke===0||ke===1&&le===De-1&&le===be+1?"":W.slice(le,De)},format:function(W){if(W===null||typeof W!="object")throw new L("pathObject","Object",W);return s("\\",W)},parse:function(W){f(W,"path");var B={root:"",dir:"",base:"",ext:"",name:""};if(W.length===0)return B;var le=W.length,be=0,De=W.charCodeAt(0);if(le>1){if(v(De)){if(be=1,v(W.charCodeAt(1))){for(var Te=2,ke=Te;Te<le&&!v(W.charCodeAt(Te));++Te);if(Te<le&&Te!==ke){for(ke=Te;Te<le&&v(W.charCodeAt(Te));++Te);if(Te<le&&Te!==ke){for(ke=Te;Te<le&&!v(W.charCodeAt(Te));++Te);Te===le?be=Te:Te!==ke&&(be=Te+1)}}}}else if(g(De)&&W.charCodeAt(1)===c)if(be=2,le>2){if(v(W.charCodeAt(2))){if(le===3)return B.root=B.dir=W,B;be=3}}else return B.root=B.dir=W,B}else if(v(De))return B.root=B.dir=W,B;be>0&&(B.root=W.slice(0,be));for(var He=-1,je=be,oe=-1,ee=!0,ae=W.length-1,q=0;ae>=be;--ae){if(De=W.charCodeAt(ae),v(De)){if(!ee){je=ae+1;break}continue}oe===-1&&(ee=!1,oe=ae+1),De===M?He===-1?He=ae:q!==1&&(q=1):He!==-1&&(q=-1)}return He===-1||oe===-1||q===0||q===1&&He===oe-1&&He===je+1?oe!==-1&&(B.base=B.name=W.slice(je,oe)):(B.name=W.slice(je,He),B.base=W.slice(je,oe),B.ext=W.slice(He,oe)),je>0&&je!==be?B.dir=W.slice(0,je-1):B.dir=B.root,B},sep:"\\",delimiter:";",win32:null,posix:null},d={resolve:function(){for(var W=[],B=0;B<arguments.length;B++)W[B]=arguments[B];for(var le="",be=!1,De=W.length-1;De>=-1&&!be;De--){var Te=void 0;if(De>=0?Te=W[De]:Te=T.a(),f(Te,"path"),Te.length===0)continue;le=Te+"/"+le,be=Te.charCodeAt(0)===U}return le=u(le,!be,"/",S),be?le.length>0?"/"+le:"/":le.length>0?le:"."},normalize:function(W){if(f(W,"path"),W.length===0)return".";var B=W.charCodeAt(0)===U,le=W.charCodeAt(W.length-1)===U;return W=u(W,!B,"/",S),W.length===0&&!B&&(W="."),W.length>0&&le&&(W+="/"),B?"/"+W:W},isAbsolute:function(W){return f(W,"path"),W.length>0&&W.charCodeAt(0)===U},join:function(){for(var W=[],B=0;B<arguments.length;B++)W[B]=arguments[B];if(W.length===0)return".";for(var le,be=0;be<W.length;++be){var De=arguments[be];f(De,"path"),De.length>0&&(le===void 0?le=De:le+="/"+De)}return le===void 0?".":d.normalize(le)},relative:function(W,B){if(f(W,"from"),f(B,"to"),W===B)return"";if(W=d.resolve(W),B=d.resolve(B),W===B)return"";for(var le=1;le<W.length&&!(W.charCodeAt(le)!==U);++le);for(var be=W.length,De=be-le,Te=1;Te<B.length&&!(B.charCodeAt(Te)!==U);++Te);for(var ke=B.length,He=ke-Te,je=De<He?De:He,oe=-1,ee=0;ee<=je;++ee){if(ee===je){if(He>je){if(B.charCodeAt(Te+ee)===U)return B.slice(Te+ee+1);if(ee===0)return B.slice(Te+ee)}else De>je&&(W.charCodeAt(le+ee)===U?oe=ee:ee===0&&(oe=0));break}var ae=W.charCodeAt(le+ee),q=B.charCodeAt(Te+ee);if(ae!==q)break;ae===U&&(oe=ee)}var ce="";for(ee=le+oe+1;ee<=be;++ee)(ee===be||W.charCodeAt(ee)===U)&&(ce.length===0?ce+="..":ce+="/..");return ce.length>0?ce+B.slice(Te+oe):(Te+=oe,B.charCodeAt(Te)===U&&++Te,B.slice(Te))},toNamespacedPath:function(W){return W},dirname:function(W){if(f(W,"path"),W.length===0)return".";for(var B=W.charCodeAt(0)===U,le=-1,be=!0,De=W.length-1;De>=1;--De)if(W.charCodeAt(De)===U){if(!be){le=De;break}}else be=!1;return le===-1?B?"/":".":B&&le===1?"//":W.slice(0,le)},basename:function(W,B){B!==void 0&&f(B,"ext"),f(W,"path");var le=0,be=-1,De=!0,Te;if(B!==void 0&&B.length>0&&B.length<=W.length){if(B.length===W.length&&B===W)return"";var ke=B.length-1,He=-1;for(Te=W.length-1;Te>=0;--Te){var je=W.charCodeAt(Te);if(je===U){if(!De){le=Te+1;break}}else He===-1&&(De=!1,He=Te+1),ke>=0&&(je===B.charCodeAt(ke)?--ke===-1&&(be=Te):(ke=-1,be=He))}return le===be?be=He:be===-1&&(be=W.length),W.slice(le,be)}else{for(Te=W.length-1;Te>=0;--Te)if(W.charCodeAt(Te)===U){if(!De){le=Te+1;break}}else be===-1&&(De=!1,be=Te+1);return be===-1?"":W.slice(le,be)}},extname:function(W){f(W,"path");for(var B=-1,le=0,be=-1,De=!0,Te=0,ke=W.length-1;ke>=0;--ke){var He=W.charCodeAt(ke);if(He===U){if(!De){le=ke+1;break}continue}be===-1&&(De=!1,be=ke+1),He===M?B===-1?B=ke:Te!==1&&(Te=1):B!==-1&&(Te=-1)}return B===-1||be===-1||Te===0||Te===1&&B===be-1&&B===le+1?"":W.slice(B,be)},format:function(W){if(W===null||typeof W!="object")throw new L("pathObject","Object",W);return s("/",W)},parse:function(W){f(W,"path");var B={root:"",dir:"",base:"",ext:"",name:""};if(W.length===0)return B;var le=W.charCodeAt(0)===U,be;le?(B.root="/",be=1):be=0;for(var De=-1,Te=0,ke=-1,He=!0,je=W.length-1,oe=0;je>=be;--je){var ee=W.charCodeAt(je);if(ee===U){if(!He){Te=je+1;break}continue}ke===-1&&(He=!1,ke=je+1),ee===M?De===-1?De=je:oe!==1&&(oe=1):De!==-1&&(oe=-1)}return De===-1||ke===-1||oe===0||oe===1&&De===ke-1&&De===Te+1?ke!==-1&&(Te===0&&le?B.base=B.name=W.slice(1,ke):B.base=B.name=W.slice(Te,ke)):(Te===0&&le?(B.name=W.slice(1,De),B.base=W.slice(1,ke)):(B.name=W.slice(Te,De),B.base=W.slice(Te,ke)),B.ext=W.slice(De,ke)),Te>0?B.dir=W.slice(0,Te-1):le&&(B.dir="/"),B},sep:"/",delimiter:":",win32:null,posix:null};d.win32=l.win32=l,d.posix=l.posix=d;var p=T.c==="win32"?l.normalize:d.normalize,E=T.c==="win32"?l.join:d.join,_=T.c==="win32"?l.relative:d.relative,x=T.c==="win32"?l.dirname:d.dirname,F=T.c==="win32"?l.basename:d.basename,R=T.c==="win32"?l.extname:d.extname,$=T.c==="win32"?l.sep:d.sep},Msxo:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return e.e(279).then(e.bind(null,"Qx4d"))}})},MvK1:function(_t,P,e){"use strict";e.d(P,"a",function(){return re}),e.d(P,"b",function(){return J});var T=function(){function N(H,z,M){this.from=H|0,this.to=z|0,this.colorId=M|0}return N.compare=function(H,z){return H.colorId===z.colorId?H.from===z.from?H.to-z.to:H.from-z.from:H.colorId-z.colorId},N}(),re=function(){function N(H,z,M){this.startLineNumber=H,this.endLineNumber=z,this.color=M,this._colorZone=null}return N.compare=function(H,z){return H.color===z.color?H.startLineNumber===z.startLineNumber?H.endLineNumber-z.endLineNumber:H.startLineNumber-z.startLineNumber:H.color<z.color?-1:1},N.prototype.setColorZone=function(H){this._colorZone=H},N.prototype.getColorZones=function(){return this._colorZone},N}(),J=function(){function N(H){this._getVerticalOffsetForLine=H,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}return N.prototype.getId2Color=function(){return this._id2Color},N.prototype.setZones=function(H){this._zones=H,this._zones.sort(re.compare)},N.prototype.setLineHeight=function(H){return this._lineHeight===H?!1:(this._lineHeight=H,this._colorZonesInvalid=!0,!0)},N.prototype.setPixelRatio=function(H){this._pixelRatio=H,this._colorZonesInvalid=!0},N.prototype.getDOMWidth=function(){return this._domWidth},N.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},N.prototype.setDOMWidth=function(H){return this._domWidth===H?!1:(this._domWidth=H,this._colorZonesInvalid=!0,!0)},N.prototype.getDOMHeight=function(){return this._domHeight},N.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},N.prototype.setDOMHeight=function(H){return this._domHeight===H?!1:(this._domHeight=H,this._colorZonesInvalid=!0,!0)},N.prototype.getOuterHeight=function(){return this._outerHeight},N.prototype.setOuterHeight=function(H){return this._outerHeight===H?!1:(this._outerHeight=H,this._colorZonesInvalid=!0,!0)},N.prototype.resolveColorZones=function(){for(var H=this._colorZonesInvalid,z=Math.floor(this._lineHeight),M=Math.floor(this.getCanvasHeight()),U=Math.floor(this._outerHeight),A=M/U,c=Math.floor(4*this._pixelRatio/2),y=[],L=0,f=this._zones.length;L<f;L++){var v=this._zones[L];if(!H){var S=v.getColorZones();if(S){y.push(S);continue}}var g=Math.floor(A*this._getVerticalOffsetForLine(v.startLineNumber)),u=Math.floor(A*(this._getVerticalOffsetForLine(v.endLineNumber)+z)),s=Math.floor((g+u)/2),l=u-s;l<c&&(l=c),s-l<0&&(s=l),s+l>M&&(s=M-l);var d=v.color,p=this._color2Id[d];p||(p=++this._lastAssignedId,this._color2Id[d]=p,this._id2Color[p]=d);var E=new T(s-l,s+l,p);v.setColorZone(E),y.push(E)}return this._colorZonesInvalid=!1,y.sort(T.compare),y},N}()},Mzro:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return e.e(289).then(e.bind(null,"l/4i"))}})},N0LK:function(_t,P,e){"use strict";e.d(P,"x",function(){return T}),e.d(P,"F",function(){return re}),e.d(P,"r",function(){return N}),e.d(P,"o",function(){return H}),e.d(P,"p",function(){return z}),e.d(P,"Q",function(){return M}),e.d(P,"K",function(){return A}),e.d(P,"k",function(){return c}),e.d(P,"N",function(){return y}),e.d(P,"m",function(){return L}),e.d(P,"l",function(){return f}),e.d(P,"I",function(){return v}),e.d(P,"H",function(){return S}),e.d(P,"q",function(){return g}),e.d(P,"t",function(){return u}),e.d(P,"D",function(){return s}),e.d(P,"e",function(){return l}),e.d(P,"f",function(){return d}),e.d(P,"B",function(){return p}),e.d(P,"C",function(){return E}),e.d(P,"n",function(){return x}),e.d(P,"O",function(){return R}),e.d(P,"c",function(){return $}),e.d(P,"d",function(){return ie}),e.d(P,"z",function(){return W}),e.d(P,"A",function(){return B}),e.d(P,"u",function(){return le}),e.d(P,"E",function(){return De}),e.d(P,"G",function(){return Te}),e.d(P,"i",function(){return He}),e.d(P,"g",function(){return oe}),e.d(P,"v",function(){return ae}),e.d(P,"h",function(){return q}),e.d(P,"y",function(){return ce}),e.d(P,"w",function(){return X}),e.d(P,"a",function(){return he}),e.d(P,"P",function(){return Pe}),e.d(P,"L",function(){return Xe}),e.d(P,"J",function(){return pe}),e.d(P,"j",function(){return me}),e.d(P,"M",function(){return Se}),e.d(P,"s",function(){return Re}),e.d(P,"b",function(){return Ee});function T(b){return!b||typeof b!="string"?!0:b.trim().length===0}function re(b,k,se){se===void 0&&(se="0");for(var ne=""+b,Ce=[ne],Oe=ne.length;Oe<k;Oe++)Ce.push(se);return Ce.reverse().join("")}var J=/{(\d+)}/g;function N(b){for(var k=[],se=1;se<arguments.length;se++)k[se-1]=arguments[se];return k.length===0?b:b.replace(J,function(ne,Ce){var Oe=parseInt(Ce,10);return isNaN(Oe)||Oe<0||Oe>=k.length?ne:k[Oe]})}function H(b){return b.replace(/[<>&]/g,function(k){switch(k){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return k}})}function z(b){return b.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function M(b,k){k===void 0&&(k=" ");var se=U(b,k);return A(se,k)}function U(b,k){if(!b||!k)return b;var se=k.length;if(se===0||b.length===0)return b;for(var ne=0;b.indexOf(k,ne)===ne;)ne=ne+se;return b.substring(ne)}function A(b,k){if(!b||!k)return b;var se=k.length,ne=b.length;if(se===0||ne===0)return b;for(var Ce=ne,Oe=-1;!(Oe=b.lastIndexOf(k,Ce-1),Oe===-1||Oe+se!==Ce);){if(Oe===0)return"";Ce=Oe}return b.substring(0,Ce)}function c(b){return b.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function y(b,k){if(b.length<k.length)return!1;if(b===k)return!0;for(var se=0;se<k.length;se++)if(b[se]!==k[se])return!1;return!0}function L(b,k){var se=b.length-k.length;return se>0?b.indexOf(k,se)===se:se===0?b===k:!1}function f(b,k,se){if(se===void 0&&(se={}),!b)throw new Error("Cannot create regex from empty string");k||(b=z(b)),se.wholeWord&&(/\B/.test(b.charAt(0))||(b="\\b"+b),/\B/.test(b.charAt(b.length-1))||(b=b+"\\b"));var ne="";return se.global&&(ne+="g"),se.matchCase||(ne+="i"),se.multiline&&(ne+="m"),se.unicode&&(ne+="u"),new RegExp(b,ne)}function v(b){if(b.source==="^"||b.source==="^$"||b.source==="$"||b.source==="^\\s*$")return!1;var k=b.exec("");return!!(k&&b.lastIndex===0)}function S(b){return(b.global?"g":"")+(b.ignoreCase?"i":"")+(b.multiline?"m":"")+(b.unicode?"u":"")}function g(b){for(var k=0,se=b.length;k<se;k++){var ne=b.charCodeAt(k);if(ne!==32&&ne!==9)return k}return-1}function u(b,k,se){k===void 0&&(k=0),se===void 0&&(se=b.length);for(var ne=k;ne<se;ne++){var Ce=b.charCodeAt(ne);if(Ce!==32&&Ce!==9)return b.substring(k,ne)}return b.substring(k,se)}function s(b,k){k===void 0&&(k=b.length-1);for(var se=k;se>=0;se--){var ne=b.charCodeAt(se);if(ne!==32&&ne!==9)return se}return-1}function l(b,k){return b<k?-1:b>k?1:0}function d(b,k){for(var se=Math.min(b.length,k.length),ne=0;ne<se;ne++){var Ce=b.charCodeAt(ne),Oe=k.charCodeAt(ne);if(Ce===Oe)continue;E(Ce)&&(Ce+=32),E(Oe)&&(Oe+=32);var we=Ce-Oe;if(we===0)continue;return p(Ce)&&p(Oe)?we:l(b.toLowerCase(),k.toLowerCase())}return b.length<k.length?-1:b.length>k.length?1:0}function p(b){return b>=97&&b<=122}function E(b){return b>=65&&b<=90}function _(b){return p(b)||E(b)}function x(b,k){return b.length===k.length&&F(b,k)}function F(b,k,se){se===void 0&&(se=b.length);for(var ne=0;ne<se;ne++){var Ce=b.charCodeAt(ne),Oe=k.charCodeAt(ne);if(Ce===Oe)continue;if(_(Ce)&&_(Oe)){var we=Math.abs(Ce-Oe);if(we!==0&&we!==32)return!1}else if(String.fromCharCode(Ce).toLowerCase()!==String.fromCharCode(Oe).toLowerCase())return!1}return!0}function R(b,k){var se=k.length;return k.length>b.length?!1:F(b,k,se)}function $(b,k){var se,ne=Math.min(b.length,k.length);for(se=0;se<ne;se++)if(b.charCodeAt(se)!==k.charCodeAt(se))return se;return ne}function ie(b,k){var se,ne=Math.min(b.length,k.length),Ce=b.length-1,Oe=k.length-1;for(se=0;se<ne;se++)if(b.charCodeAt(Ce-se)!==k.charCodeAt(Oe-se))return se;return ne}function W(b){return 55296<=b&&b<=56319}function B(b){return 56320<=b&&b<=57343}function le(b,k,se){var ne=b.charCodeAt(se);if(W(ne)&&se+1<k){var Ce=b.charCodeAt(se+1);if(B(Ce))return(ne-55296<<10)+(Ce-56320)+65536}return ne}function be(b,k){var se=b.charCodeAt(k-1);if(B(se)&&k>1){var ne=b.charCodeAt(k-2);if(W(ne))return(ne-55296<<10)+(se-56320)+65536}return se}function De(b,k){var se=ve.getInstance(),ne=k,Ce=b.length,Oe=le(b,Ce,k);k+=Oe>=65536?2:1;for(var we=se.getGraphemeBreakType(Oe);k<Ce;){var Ve=le(b,Ce,k),Qe=se.getGraphemeBreakType(Ve);if(Ee(we,Qe))break;k+=Ve>=65536?2:1,we=Qe}return k-ne}function Te(b,k){var se=ve.getInstance(),ne=k,Ce=be(b,k);k-=Ce>=65536?2:1;for(var Oe=se.getGraphemeBreakType(Ce);k>0;){var we=be(b,k),Ve=se.getGraphemeBreakType(we);if(Ee(Ve,Oe))break;k-=we>=65536?2:1,Oe=Ve}return ne-k}var ke=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function He(b){return ke.test(b)}var je=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function oe(b){return je.test(b)}var ee=/^[\t\n\r\x20-\x7E]*$/;function ae(b){return ee.test(b)}function q(b){for(var k=0,se=b.length;k<se;k++)if(ce(b.charCodeAt(k)))return!0;return!1}function ce(b){return b=+b,b>=11904&&b<=55215||b>=63744&&b<=64255||b>=65281&&b<=65374}function X(b){return b>=127462&&b<=127487||b>=9728&&b<=10175||b>=127744&&b<=128591||b>=128640&&b<=128764||b>=128992&&b<=129003||b>=129280&&b<=129535||b>=129648&&b<=129651||b>=129656&&b<=129666||b>=129680&&b<=129685}var he=String.fromCharCode(65279);function Pe(b){return!!(b&&b.length>0&&b.charCodeAt(0)===65279)}function Xe(b){return btoa(encodeURIComponent(b))}function pe(b,k){for(var se="",ne=0;ne<k;ne++)se+=b;return se}function me(b,k){return k===void 0&&(k=!1),b?(k&&(b=b.replace(/\\./g,"")),b.toLowerCase()!==b):!1}function Se(b){var k=90-65+1;return b=b%(2*k),b<k?String.fromCharCode(97+b):String.fromCharCode(65+b-k)}function Re(b){var k=ve.getInstance();return k.getGraphemeBreakType(b)}function Ee(b,k){return b===0?k!==5&&k!==7:b===2&&k===3?!1:b===4||b===2||b===3||(k===4||k===2||k===3)?!0:b===8&&(k===8||k===9||k===11||k===12)||((b===11||b===9)&&(k===9||k===10)||((b===12||b===10)&&k===10||(k===5||k===13||(k===7||(b===1||b===13&&k===14)))))?!1:!(b===6&&k===6)}var ve=function(){function b(){this._data=Q()}return b.getInstance=function(){return b._INSTANCE||(b._INSTANCE=new b),b._INSTANCE},b.prototype.getGraphemeBreakType=function(k){if(k<32)return k===10?3:k===13?2:4;if(k<127)return 0;for(var se=this._data,ne=se.length/3,Ce=1;Ce<=ne;)if(k<se[3*Ce])Ce=2*Ce;else if(k>se[3*Ce+1])Ce=2*Ce+1;else return se[3*Ce+2];return 0},b._INSTANCE=null,b}();function Q(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NR8r:function(_t,P,e){"use strict";e.d(P,"a",function(){return S});var T=e("synD"),re=e.n(T),J=e("3/fG"),N=e("X+cX"),H=e("pmY6"),z=e("OBOq"),M=e("aokT"),U=e("sswD"),A=e("T8No"),c=e("t9D7"),y=e("MD5Z"),L=function(){var s=function(d,p){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,_){E.__proto__=_}||function(E,_){for(var x in _)_.hasOwnProperty(x)&&(E[x]=_[x])},s(d,p)};return function(l,d){s(l,d);function p(){this.constructor=l}l.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}(),f=function(s,l,d,p){var E=arguments.length,_=E<3?l:p===null?p=Object.getOwnPropertyDescriptor(l,d):p,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(s,l,d,p);else for(var F=s.length-1;F>=0;F--)(x=s[F])&&(_=(E<3?x(_):E>3?x(l,d,_):x(l,d))||_);return E>3&&_&&Object.defineProperty(l,d,_),_},v=function(s,l){return function(d,p){l(d,p,s)}},S=function(s){L(l,s);function l(d,p){var E=s.call(this)||this;return E.closeTimeout=3e3,E._messageWidget=E._register(new H.d),E._messageListeners=E._register(new H.b),E._editor=d,E._visible=l.MESSAGE_VISIBLE.bindTo(p),E._register(E._editor.onDidAttemptReadOnlyEdit(function(){return E._onDidAttemptReadOnlyEdit()})),E}return l.get=function(d){return d.getContribution(l.ID)},l.prototype.dispose=function(){s.prototype.dispose.call(this),this._visible.reset()},l.prototype.showMessage=function(d,p){var E=this;Object(z.a)(d),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new u(this._editor,p,d),this._messageListeners.add(this._editor.onDidBlurEditorText(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidDispose(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeModel(function(){return E.closeMessage()})),this._messageListeners.add(new N.e(function(){return E.closeMessage()},this.closeTimeout));var _;this._messageListeners.add(this._editor.onMouseMove(function(x){if(!x.target.position)return;_?_.containsPosition(x.target.position)||E.closeMessage():_=new M.a(p.lineNumber-3,1,x.target.position.lineNumber+3,1)}))},l.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(u.fadeOut(this._messageWidget.value))},l.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(J.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},l.ID="editor.contrib.messageController",l.MESSAGE_VISIBLE=new A.d("messageVisible",!1),l=f([v(1,A.c)],l),l}(H.a),g=U.c.bindToContribution(S.get);Object(U.g)(new g({id:"leaveEditorMessage",precondition:S.MESSAGE_VISIBLE,handler:function(l){return l.closeMessage()},kbOpts:{weight:100+30,primary:9}}));var u=function(){function s(l,d,p){var E=d.lineNumber,_=d.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=l,this._editor.revealLinesInCenterIfOutsideViewport(E,E,0),this._position={lineNumber:E,column:_-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var x=document.createElement("div");x.classList.add("message"),x.textContent=p,this._domNode.appendChild(x);var F=document.createElement("div");F.classList.add("anchor"),this._domNode.appendChild(F),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return s.fadeOut=function(l){var d,p=function E(){l.dispose(),clearTimeout(d),l.getDomNode().removeEventListener("animationend",E)};return d=setTimeout(p,110),l.getDomNode().addEventListener("animationend",p),l.getDomNode().classList.add("fadeOut"),{dispose:p}},s.prototype.dispose=function(){this._editor.removeContentWidget(this)},s.prototype.getId=function(){return"messageoverlay"},s.prototype.getDomNode=function(){return this._domNode},s.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},s}();Object(U.h)(S.ID,S),Object(c.e)(function(s,l){var d=s.getColor(y.gb);if(d){var p=s.type===c.b?2:1;l.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+d+"; }"),l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+p+"px solid "+d+"; }")}var E=s.getColor(y.fb);E&&l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+E+"; }");var _=s.getColor(y.hb);_&&l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+_+"; }")})},OBOq:function(_t,P,e){"use strict";e.d(P,"b",function(){return A}),e.d(P,"a",function(){return c}),e.d(P,"c",function(){return y});var T=e("UCkY"),re=e.n(T),J=e("3/fG"),N=e("MNsG"),H=e("EffR"),z,M,U;function A(S){z=document.createElement("div"),z.className="monaco-aria-container",M=document.createElement("div"),M.className="monaco-alert",M.setAttribute("role","alert"),M.setAttribute("aria-atomic","true"),z.appendChild(M),U=document.createElement("div"),U.className="monaco-status",U.setAttribute("role","status"),U.setAttribute("aria-atomic","true"),z.appendChild(U),S.appendChild(z)}function c(S,g){v(M,S,g)}function y(S,g){N.e?c(S,g):v(U,S,g)}var L=0,f=void 0;function v(S,g,u){if(!z)return;if(!u){f===g?L++:(f=g,L=0);switch(L){case 0:break;case 1:g=J.a("repeated","{0} (occurred again)",g);break;default:g=J.a("repeatedNtimes","{0} (occurred {1} times)",g,L);break}}H.t(S),S.textContent=g,S.style.visibility="hidden",S.style.visibility="visible"}},OKK6:function(_t,P,e){},OOlL:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return e.e(245).then(e.bind(null,"NlLO"))}})},OhnE:function(_t,P,e){},PTeM:function(_t,P,e){"use strict";e.d(P,"c",function(){return J}),e.d(P,"a",function(){return N}),e.d(P,"b",function(){return H});var T=e("N0LK"),re=e("MrjW");function J(z){return z.replace(/[\\/]/g,re.posix.sep)}function N(z,M,U,A){if(A===void 0&&(A=re.sep),z===M)return!0;if(!z||!M)return!1;if(M.length>z.length)return!1;if(U){var c=Object(T.O)(z,M);if(!c)return!1;if(M.length===z.length)return!0;var y=M.length;return M.charAt(M.length-1)===A&&y--,z.charAt(y)===A}return M.charAt(M.length-1)!==A&&(M+=A),z.indexOf(M)===0}function H(z){return z>=65&&z<=90||z>=97&&z<=122}},Q4rV:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("bY76");function re(N){var H=JSON.parse(N);return H=J(H),H}function J(N,H){if(H===void 0&&(H=0),!N||H>200)return N;if(typeof N=="object"){switch(N.$mid){case 1:return T.a.revive(N);case 2:return new RegExp(N.source,N.flags)}for(var z in N)Object.hasOwnProperty.call(N,z)&&(N[z]=J(N[z],H+1))}return N}},Q631:function(_t,P,e){"use strict";e.r(P),e.d(P,"rename",function(){return q}),e.d(P,"RenameAction",function(){return X});var T=e("3/fG"),re=e("/cxE"),J=e("T8No"),N=e("tTk5"),H=e("sswD"),z=e("wQH0"),M=e("BjKj"),U=e("pmY6"),A=e("cGHE"),c=e("aokT"),y=e("MD5Z"),L=e("t9D7"),f=e("bexQ"),v=e("EffR"),S=function(Pe,Xe,pe,me){var Se=arguments.length,Re=Se<3?Xe:me===null?me=Object.getOwnPropertyDescriptor(Xe,pe):me,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Re=Reflect.decorate(Pe,Xe,pe,me);else for(var ve=Pe.length-1;ve>=0;ve--)(Ee=Pe[ve])&&(Re=(Se<3?Ee(Re):Se>3?Ee(Xe,pe,Re):Ee(Xe,pe))||Re);return Se>3&&Re&&Object.defineProperty(Xe,pe,Re),Re},g=function(Pe,Xe){return function(pe,me){Xe(pe,me,Pe)}},u=new J.d("renameInputVisible",!1),s=function(){function Pe(Xe,pe,me,Se,Re){var Ee=this;this._editor=Xe,this._acceptKeybindings=pe,this._themeService=me,this._keybindingService=Se,this._disposables=new U.b,this.allowEditorOverflow=!0,this._visibleContextKey=u.bindTo(Re),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(function(ve){ve.hasChanged(34)&&Ee._updateFont()})),this._disposables.add(me.onThemeChange(this._updateStyles,this))}return Pe.prototype.dispose=function(){this._disposables.dispose(),this._editor.removeContentWidget(this)},Pe.prototype.getId=function(){return"__renameInputWidget"},Pe.prototype.getDomNode=function(){var Xe=this;if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(T.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);var pe=function(){var Se,Re,Ee=Xe._acceptKeybindings,ve=Ee[0],Q=Ee[1];Xe._keybindingService.lookupKeybinding(ve),Xe._label.innerText=Object(T.a)("label","{0} to Rename, {1} to Preview",(Se=Xe._keybindingService.lookupKeybinding(ve))===null||Se===void 0?void 0:Se.getLabel(),(Re=Xe._keybindingService.lookupKeybinding(Q))===null||Re===void 0?void 0:Re.getLabel())};pe(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(pe)),this._updateFont(),this._updateStyles(this._themeService.getTheme())}return this._domNode},Pe.prototype._updateStyles=function(Xe){var pe,me,Se,Re;if(!this._input||!this._domNode)return;var Ee=Xe.getColor(y.hc);this._domNode.style.backgroundColor=String((pe=Xe.getColor(y.Q))!==null&&pe!==void 0?pe:""),this._domNode.style.boxShadow=Ee?" 0 2px 8px "+Ee:"",this._domNode.style.color=String((me=Xe.getColor(y.bb))!==null&&me!==void 0?me:""),this._input.style.backgroundColor=String((Se=Xe.getColor(y.Z))!==null&&Se!==void 0?Se:"");var ve=Xe.getColor(y.ab);this._input.style.borderWidth=ve?"1px":"0px",this._input.style.borderStyle=ve?"solid":"none",this._input.style.borderColor=(Re=ve==null?void 0:ve.toString())!==null&&Re!==void 0?Re:"none"},Pe.prototype._updateFont=function(){if(!this._input||!this._label)return;var Xe=this._editor.getOption(34);this._input.style.fontFamily=Xe.fontFamily,this._input.style.fontWeight=Xe.fontWeight,this._input.style.fontSize=Xe.fontSize+"px",this._label.style.fontSize=Xe.fontSize*.8+"px"},Pe.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null},Pe.prototype.acceptInput=function(Xe){this._currentAcceptInput&&this._currentAcceptInput(Xe)},Pe.prototype.cancelInput=function(Xe){this._currentCancelInput&&this._currentCancelInput(Xe)},Pe.prototype.getInput=function(Xe,pe,me,Se,Re){var Ee=this;Object(v.Y)(this._domNode,"preview",Re),this._position=new A.a(Xe.startLineNumber,Xe.startColumn),this._input.value=pe,this._input.setAttribute("selectionStart",me.toString()),this._input.setAttribute("selectionEnd",Se.toString()),this._input.size=Math.max((Xe.endColumn-Xe.startColumn)*1.1,20);var ve=new U.b;return new Promise(function(Q){Ee._currentCancelInput=function(k){return Ee._currentAcceptInput=void 0,Ee._currentCancelInput=void 0,Q(k),!0},Ee._currentAcceptInput=function(k){if(Ee._input.value.trim().length===0||Ee._input.value===pe){Ee.cancelInput(!0);return}Ee._currentAcceptInput=void 0,Ee._currentCancelInput=void 0,Q({newName:Ee._input.value,wantsPreview:Re&&k})};var b=function(){var se=Ee._editor.getPosition();(!se||!c.a.containsPosition(Xe,se))&&Ee.cancelInput(!0)};ve.add(Ee._editor.onDidChangeCursorSelection(b)),ve.add(Ee._editor.onDidBlurEditorWidget(function(){return Ee.cancelInput(!1)})),Ee._show()}).finally(function(){ve.dispose(),Ee._hide()})},Pe.prototype._show=function(){var Xe=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(function(){Xe._input.focus(),Xe._input.setSelectionRange(parseInt(Xe._input.getAttribute("selectionStart")),parseInt(Xe._input.getAttribute("selectionEnd")))},100)},Pe.prototype._hide=function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)},Pe=S([g(2,L.c),g(3,f.a),g(4,J.c)],Pe),Pe}(),l=e("twdY"),d=e("OBOq"),p=e("NR8r"),E=e("vATl"),_=e("sM1p"),x=e("x/UI"),F=e("bY76"),R=e("Vxe3"),$=e("JQT/"),ie=e("X+cX"),W=e("746U"),B=e("09fa"),le=e("Cg/j"),be=e("ic2d"),De=e("CRAX"),Te=e("e0rL"),ke=function(){var Pe=function(pe,me){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Se,Re){Se.__proto__=Re}||function(Se,Re){for(var Ee in Re)Re.hasOwnProperty(Ee)&&(Se[Ee]=Re[Ee])},Pe(pe,me)};return function(Xe,pe){Pe(Xe,pe);function me(){this.constructor=Xe}Xe.prototype=pe===null?Object.create(pe):(me.prototype=pe.prototype,new me)}}(),He=function(Pe,Xe,pe,me){var Se=arguments.length,Re=Se<3?Xe:me===null?me=Object.getOwnPropertyDescriptor(Xe,pe):me,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Re=Reflect.decorate(Pe,Xe,pe,me);else for(var ve=Pe.length-1;ve>=0;ve--)(Ee=Pe[ve])&&(Re=(Se<3?Ee(Re):Se>3?Ee(Xe,pe,Re):Ee(Xe,pe))||Re);return Se>3&&Re&&Object.defineProperty(Xe,pe,Re),Re},je=function(Pe,Xe){return function(pe,me){Xe(pe,me,Pe)}},oe=function(Pe,Xe,pe,me){function Se(Re){return Re instanceof pe?Re:new pe(function(Ee){Ee(Re)})}return new(pe||(pe=Promise))(function(Re,Ee){function ve(k){try{b(me.next(k))}catch(se){Ee(se)}}function Q(k){try{b(me.throw(k))}catch(se){Ee(se)}}function b(k){k.done?Re(k.value):Se(k.value).then(ve,Q)}b((me=me.apply(Pe,Xe||[])).next())})},ee=function(Pe,Xe){var pe={label:0,sent:function(){if(Re[0]&1)throw Re[1];return Re[1]},trys:[],ops:[]},me,Se,Re,Ee;return Ee={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function ve(b){return function(k){return Q([b,k])}}function Q(b){if(me)throw new TypeError("Generator is already executing.");for(;pe;)try{if(me=1,Se&&(Re=b[0]&2?Se.return:b[0]?Se.throw||((Re=Se.return)&&Re.call(Se),0):Se.next)&&!(Re=Re.call(Se,b[1])).done)return Re;(Se=0,Re)&&(b=[b[0]&2,Re.value]);switch(b[0]){case 0:case 1:Re=b;break;case 4:return pe.label++,{value:b[1],done:!1};case 5:pe.label++,Se=b[1],b=[0];continue;case 7:b=pe.ops.pop(),pe.trys.pop();continue;default:if(!(Re=pe.trys,Re=Re.length>0&&Re[Re.length-1])&&(b[0]===6||b[0]===2)){pe=0;continue}if(b[0]===3&&(!Re||b[1]>Re[0]&&b[1]<Re[3])){pe.label=b[1];break}if(b[0]===6&&pe.label<Re[1]){pe.label=Re[1],Re=b;break}if(Re&&pe.label<Re[2]){pe.label=Re[2],pe.ops.push(b);break}Re[2]&&pe.ops.pop(),pe.trys.pop();continue}b=Xe.call(Pe,pe)}catch(k){b=[6,k],Se=0}finally{me=Re=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}},ae=function(){function Pe(Xe,pe){this.model=Xe,this.position=pe,this._providers=l.v.ordered(Xe)}return Pe.prototype.hasProvider=function(){return this._providers.length>0},Pe.prototype.resolveRenameLocation=function(Xe){return oe(this,void 0,void 0,function(){var pe,me,Se,Re;return ee(this,function(Ee){switch(Ee.label){case 0:return pe=this._providers[0],pe?pe.resolveRenameLocation?(Se=W.n,[4,pe.resolveRenameLocation(this.model,this.position,Xe)]):[3,2]:[2,void 0];case 1:me=Se.apply(void 0,[Ee.sent()]),Ee.label=2;case 2:return!me&&(Re=this.model.getWordAtPosition(this.position),Re)?[2,{range:new c.a(this.position.lineNumber,Re.startColumn,this.position.lineNumber,Re.endColumn),text:Re.word}]:[2,me]}})})},Pe.prototype.provideRenameEdits=function(Xe,pe,me,Se){return oe(this,void 0,void 0,function(){var Re,Ee;return ee(this,function(ve){switch(ve.label){case 0:return Re=this._providers[pe],Re?[4,Re.provideRenameEdits(this.model,this.position,Xe,Se)]:[2,{edits:[],rejectReason:me.join(`
`)}];case 1:if(Ee=ve.sent(),Ee){if(Ee.rejectReason)return[2,this.provideRenameEdits(Xe,pe+1,me.concat(Ee.rejectReason),Se)]}else return[2,this.provideRenameEdits(Xe,pe+1,me.concat(T.a("no result","No result.")),Se)];return[2,Ee]}})})},Pe}();function q(Pe,Xe,pe){return oe(this,void 0,void 0,function(){return ee(this,function(me){return[2,new ae(Pe,Xe).provideRenameEdits(pe,0,[],$.a.None)]})})}var ce=function(){function Pe(Xe,pe,me,Se,Re,Ee,ve){var Q=this;this.editor=Xe,this._instaService=pe,this._notificationService=me,this._bulkEditService=Se,this._progressService=Re,this._logService=Ee,this._configService=ve,this._dispoableStore=new U.b,this._cts=new $.b,this._renameInputField=this._dispoableStore.add(new ie.b(function(){return Q._dispoableStore.add(Q._instaService.createInstance(s,Q.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}))}return Pe.get=function(Xe){return Xe.getContribution(Pe.ID)},Pe.prototype.dispose=function(){this._dispoableStore.dispose(),this._cts.dispose(!0)},Pe.prototype.run=function(){return oe(this,void 0,void 0,function(){var Xe,pe,me,Se,Re,Ee,ve,Q,b,k,se,ne=this;return ee(this,function(Ce){switch(Ce.label){case 0:if(this._cts.dispose(!0),!this.editor.hasModel())return[2,void 0];if(Xe=this.editor.getPosition(),pe=new ae(this.editor.getModel(),Xe),!pe.hasProvider())return[2,void 0];this._cts=new E.b(this.editor,4|1),Ce.label=1;case 1:return Ce.trys.push([1,3,,4]),Se=pe.resolveRenameLocation(this._cts.token),this._progressService.showWhile(Se,250),[4,Se];case 2:return me=Ce.sent(),[3,4];case 3:return Re=Ce.sent(),p.a.get(this.editor).showMessage(Re||T.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),Xe),[2,void 0];case 4:return me?me.rejectReason?(p.a.get(this.editor).showMessage(me.rejectReason,Xe),[2,void 0]):this._cts.token.isCancellationRequested?[2,void 0]:(Ee=this.editor.getSelection(),ve=0,Q=me.text.length,!c.a.isEmpty(Ee)&&!c.a.spansMultipleLines(Ee)&&c.a.containsRange(me.range,Ee)&&(ve=Math.max(0,Ee.startColumn-me.range.startColumn),Q=Math.min(me.range.endColumn,Ee.endColumn)-me.range.startColumn),b=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),[4,this._renameInputField.getValue().getInput(me.range,me.text,ve,Q,b)]):[2,void 0];case 5:return k=Ce.sent(),typeof k=="boolean"?(k&&this.editor.focus(),[2,void 0]):(this.editor.focus(),se=Object(ie.j)(pe.provideRenameEdits(k.newName,0,[],this._cts.token),this._cts.token).then(function(Oe){return oe(ne,void 0,void 0,function(){var we=this;return ee(this,function(Ve){return!Oe||!this.editor.hasModel()?[2]:Oe.rejectReason?(this._notificationService.info(Oe.rejectReason),[2]):(this._bulkEditService.apply(Oe,{editor:this.editor,showPreview:k.wantsPreview,label:T.a("label","Renaming '{0}'",me==null?void 0:me.text)}).then(function(Qe){Qe.ariaSummary&&Object(d.a)(T.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",me.text,k.newName,Qe.ariaSummary))}).catch(function(Qe){we._notificationService.error(T.a("rename.failedApply","Rename failed to apply edits")),we._logService.error(Qe)}),[2])})})},function(Oe){ne._notificationService.error(T.a("rename.failed","Rename failed to compute edits")),ne._logService.error(Oe)}),this._progressService.showWhile(se,250),[2,se])}})})},Pe.prototype.acceptRenameInput=function(Xe){this._renameInputField.getValue().acceptInput(Xe)},Pe.prototype.cancelRenameInput=function(){this._renameInputField.getValue().cancelInput(!0)},Pe.ID="editor.contrib.renameController",Pe=He([je(1,le.a),je(2,_.a),je(3,x.a),je(4,N.a),je(5,B.a),je(6,Te.a)],Pe),Pe}(),X=function(Pe){ke(Xe,Pe);function Xe(){return Pe.call(this,{id:"editor.action.rename",label:T.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:J.a.and(z.a.writable,z.a.hasRenameProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})||this}return Xe.prototype.runCommand=function(pe,me){var Se=this,Re=pe.get(R.a),Ee=Array.isArray(me)&&me||[void 0,void 0],ve=Ee[0],Q=Ee[1];return F.a.isUri(ve)&&A.a.isIPosition(Q)?Re.openCodeEditor({resource:ve},Re.getActiveCodeEditor()).then(function(b){if(!b)return;b.setPosition(Q),b.invokeWithinContext(function(k){return Se.reportTelemetry(k,b),Se.run(k,b)})},re.e):Pe.prototype.runCommand.call(this,pe,me)},Xe.prototype.run=function(pe,me){var Se=ce.get(me);return Se?Se.run():Promise.resolve()},Xe}(H.b);Object(H.h)(ce.ID,ce),Object(H.f)(X);var he=H.c.bindToContribution(ce.get);Object(H.g)(new he({id:"acceptRenameInput",precondition:u,handler:function(Xe){return Xe.acceptRenameInput(!1)},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:3}})),Object(H.g)(new he({id:"acceptRenameInputWithPreview",precondition:J.a.and(u,J.a.has("config.editor.rename.enablePreview")),handler:function(Xe){return Xe.acceptRenameInput(!0)},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:1024+3}})),Object(H.g)(new he({id:"cancelRenameInput",precondition:u,handler:function(Xe){return Xe.cancelRenameInput()},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:9,secondary:[1024|9]}})),Object(H.e)("_executeDocumentRenameProvider",function(Pe,Xe,pe){var me=pe.newName;if(typeof me!="string")throw Object(re.b)("newName");return q(Pe,Xe,me)}),be.a.as(De.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:T.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},QDVR:function(_t,P,e){"use strict";e.d(P,"e",function(){return re}),e.d(P,"d",function(){return J}),e.d(P,"c",function(){return M}),e.d(P,"b",function(){return U}),e.d(P,"a",function(){return c});var T=function(){var y=function(f,v){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,g){S.__proto__=g}||function(S,g){for(var u in g)g.hasOwnProperty(u)&&(S[u]=g[u])},y(f,v)};return function(L,f){y(L,f);function v(){this.constructor=L}L.prototype=f===null?Object.create(f):(v.prototype=f.prototype,new v)}}();function re(y){var L=[];return y.forEach(function(f){return L.push(f)}),L}function J(y){var L=[];return y.forEach(function(f,v){return L.push(v)}),L}var N=function(){function y(){this._value="",this._pos=0}return y.prototype.reset=function(L){return this._value=L,this._pos=0,this},y.prototype.next=function(){return this._pos+=1,this},y.prototype.hasNext=function(){return this._pos<this._value.length-1},y.prototype.cmp=function(L){var f=L.charCodeAt(0),v=this._value.charCodeAt(this._pos);return f-v},y.prototype.value=function(){return this._value[this._pos]},y}(),H=function(){function y(L){L===void 0&&(L=!0),this._splitOnBackslash=L}return y.prototype.reset=function(L){return this._value=L.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},y.prototype.hasNext=function(){return this._to<this._value.length},y.prototype.next=function(){this._from=this._to;for(var L=!0;this._to<this._value.length;this._to++){var f=this._value.charCodeAt(this._to);if(f===47||this._splitOnBackslash&&f===92)if(L)this._from++;else break;else L=!1}return this},y.prototype.cmp=function(L){for(var f=0,v=L.length,S=this._from;f<v&&S<this._to;){var g=L.charCodeAt(f)-this._value.charCodeAt(S);if(g!==0)return g;f+=1,S+=1}return v===this._to-this._from?0:f<v?-1:1},y.prototype.value=function(){return this._value.substring(this._from,this._to)},y}(),z=function(){function y(){}return y}(),M=function(){function y(L){this._iter=L}return y.forPaths=function(){return new y(new H)},y.forStrings=function(){return new y(new N)},y.prototype.clear=function(){this._root=void 0},y.prototype.set=function(L,f){var v=this._iter.reset(L),S;for(this._root||(this._root=new z,this._root.segment=v.value()),S=this._root;;){var g=v.cmp(S.segment);if(g>0)S.left||(S.left=new z,S.left.segment=v.value()),S=S.left;else if(g<0)S.right||(S.right=new z,S.right.segment=v.value()),S=S.right;else if(v.hasNext())v.next(),S.mid||(S.mid=new z,S.mid.segment=v.value()),S=S.mid;else break}var u=S.value;return S.value=f,S.key=L,u},y.prototype.get=function(L){for(var f=this._iter.reset(L),v=this._root;v;){var S=f.cmp(v.segment);if(S>0)v=v.left;else if(S<0)v=v.right;else if(f.hasNext())f.next(),v=v.mid;else break}return v?v.value:void 0},y.prototype.findSubstr=function(L){for(var f=this._iter.reset(L),v=this._root,S=void 0;v;){var g=f.cmp(v.segment);if(g>0)v=v.left;else if(g<0)v=v.right;else if(f.hasNext())f.next(),S=v.value||S,v=v.mid;else break}return v&&v.value||S},y.prototype.forEach=function(L){this._forEach(this._root,L)},y.prototype._forEach=function(L,f){L&&(this._forEach(L.left,f),L.value&&f(L.value,L.key),this._forEach(L.mid,f),this._forEach(L.right,f))},y}(),U=function(){function y(){this.map=new Map,this.ignoreCase=!1}return y.prototype.set=function(L,f){this.map.set(this.toKey(L),f)},y.prototype.get=function(L){return this.map.get(this.toKey(L))},y.prototype.toKey=function(L){var f=L.toString();return this.ignoreCase&&(f=f.toLowerCase()),f},y}(),A=function(){function y(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return y.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(y.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),y.prototype.get=function(L,f){f===void 0&&(f=0);var v=this._map.get(L);return v?(f!==0&&this.touch(v,f),v.value):void 0},y.prototype.set=function(L,f,v){v===void 0&&(v=0);var S=this._map.get(L);if(S)S.value=f,v!==0&&this.touch(S,v);else{S={key:L,value:f,next:void 0,previous:void 0};switch(v){case 0:this.addItemLast(S);break;case 1:this.addItemFirst(S);break;case 2:this.addItemLast(S);break;default:this.addItemLast(S);break}this._map.set(L,S),this._size++}},y.prototype.delete=function(L){return!!this.remove(L)},y.prototype.remove=function(L){var f=this._map.get(L);return f?(this._map.delete(L),this.removeItem(f),this._size--,f.value):void 0},y.prototype.forEach=function(L,f){for(var v=this._head;v;)f?L.bind(f)(v.value,v.key,this):L(v.value,v.key,this),v=v.next},y.prototype.trimOld=function(L){if(L>=this.size)return;if(L===0){this.clear();return}for(var f=this._head,v=this.size;f&&v>L;)this._map.delete(f.key),f=f.next,v--;this._head=f,this._size=v,f&&(f.previous=void 0)},y.prototype.addItemFirst=function(L){if(!this._head&&!this._tail)this._tail=L;else if(this._head)L.next=this._head,this._head.previous=L;else throw new Error("Invalid list");this._head=L},y.prototype.addItemLast=function(L){if(!this._head&&!this._tail)this._head=L;else if(this._tail)L.previous=this._tail,this._tail.next=L;else throw new Error("Invalid list");this._tail=L},y.prototype.removeItem=function(L){if(L===this._head&&L===this._tail)this._head=void 0,this._tail=void 0;else if(L===this._head){if(!L.next)throw new Error("Invalid list");L.next.previous=void 0,this._head=L.next}else if(L===this._tail){if(!L.previous)throw new Error("Invalid list");L.previous.next=void 0,this._tail=L.previous}else{var f=L.next,v=L.previous;if(!f||!v)throw new Error("Invalid list");f.previous=v,v.next=f}L.next=void 0,L.previous=void 0},y.prototype.touch=function(L,f){if(!this._head||!this._tail)throw new Error("Invalid list");if(f!==1&&f!==2)return;if(f===1){if(L===this._head)return;var v=L.next,S=L.previous;L===this._tail?(S.next=void 0,this._tail=S):(v.previous=S,S.next=v),L.previous=void 0,L.next=this._head,this._head.previous=L,this._head=L}else if(f===2){if(L===this._tail)return;var v=L.next,S=L.previous;L===this._head?(v.previous=void 0,this._head=v):(v.previous=S,S.next=v),L.next=void 0,L.previous=this._tail,this._tail.next=L,this._tail=L}},y.prototype.toJSON=function(){var L=[];return this.forEach(function(f,v){L.push([v,f])}),L},y}(),c=function(y){T(L,y);function L(f,v){v===void 0&&(v=1);var S=y.call(this)||this;return S._limit=f,S._ratio=Math.min(Math.max(0,v),1),S}return L.prototype.get=function(f){return y.prototype.get.call(this,f,2)},L.prototype.peek=function(f){return y.prototype.get.call(this,f,0)},L.prototype.set=function(f,v){y.prototype.set.call(this,f,v,2),this.checkTrim()},L.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},L}(A)},QFiB:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return e.e(264).then(e.bind(null,"PhST"))}})},QRHv:function(_t,P,e){"use strict";e.d(P,"f",function(){return H}),e.d(P,"b",function(){return U}),e.d(P,"c",function(){return A}),e.d(P,"a",function(){return y}),e.d(P,"e",function(){return v}),e.d(P,"d",function(){return S});var T=e("6OMU"),re=e("4bUh"),J=e("cGHE"),N=e("twdY");function H(g){for(var u=0,s=0,l=0,d=0,p=g.length;d<p;d++){var E=g.charCodeAt(d);E===13?(u===0&&(s=d),u++,d+1<p&&g.charCodeAt(d+1)===10&&d++,l=d+1):E===10&&(u===0&&(s=d),u++,l=d+1)}return u===0&&(s=g.length),[u,s,g.length-l]}function z(g){return(g<<0|0<<8|0<<11|1<<14|2<<23)>>>0}var M=new Uint32Array(0).buffer,U=function(){function g(){this.tokens=[]}return g.prototype.add=function(u,s){if(this.tokens.length>0){var l=this.tokens[this.tokens.length-1],d=l.startLineNumber+l.tokens.length-1;if(d+1===u){l.tokens.push(s);return}}this.tokens.push(new L(u,[s]))},g}(),A=function(){function g(u){this._tokens=u,this._tokenCount=u.length/4}return g.prototype.getMaxDeltaLine=function(){var u=this.getTokenCount();return u===0?-1:this.getDeltaLine(u-1)},g.prototype.getTokenCount=function(){return this._tokenCount},g.prototype.getDeltaLine=function(u){return this._tokens[4*u]},g.prototype.getStartCharacter=function(u){return this._tokens[4*u+1]},g.prototype.getEndCharacter=function(u){return this._tokens[4*u+2]},g.prototype.getMetadata=function(u){return this._tokens[4*u+3]},g.prototype.clear=function(){this._tokenCount=0},g.prototype.acceptDeleteRange=function(u,s,l,d,p){for(var E=this._tokens,_=this._tokenCount,x=d-s,F=0,R=!1,$=0;$<_;$++){var ie=4*$,W=E[ie],B=E[ie+1],le=E[ie+2],be=E[ie+3];if(W<s||W===s&&le<=l){F++;continue}else if(W===s&&B<l)W===d&&le>p?le-=p-l:le=l;else if(W===s&&B===l)if(W===d&&le>p)le-=p-l;else{R=!0;continue}else if(W<d||W===d&&B<p)if(W===d&&le>p)W===s?(B=l,le=B+(le-p)):(B=0,le=B+(le-p));else{R=!0;continue}else if(W>d){if(x===0&&!R){F=_;break}W-=x}else if(W===d&&B>=p)u&&W===0&&(B+=u,le+=u),W-=x,B-=p-l,le-=p-l;else throw new Error("Not possible!");var De=4*F;E[De]=W,E[De+1]=B,E[De+2]=le,E[De+3]=be,F++}this._tokenCount=F},g.prototype.acceptInsertText=function(u,s,l,d,p,E){for(var _=l===0&&d===1&&(E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122),x=this._tokens,F=this._tokenCount,R=0;R<F;R++){var $=4*R,ie=x[$],W=x[$+1],B=x[$+2];if(ie<u||ie===u&&B<s)continue;if(ie===u&&B===s)if(_)B+=1;else continue;else if(ie===u&&W<s&&s<B)l===0?B+=d:B=s;else{if(ie===u&&W===s&&_)continue;if(ie===u)if(ie+=l,l===0)W+=d,B+=d;else{var le=B-W;W=p+(W-s),B=W+le}else ie+=l}x[$]=ie,x[$+1]=W,x[$+2]=B}},g}(),c=function(){function g(u,s,l){this._actual=u,this._startTokenIndex=s,this._endTokenIndex=l}return g.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},g.prototype.getStartCharacter=function(u){return this._actual.getStartCharacter(this._startTokenIndex+u)},g.prototype.getEndCharacter=function(u){return this._actual.getEndCharacter(this._startTokenIndex+u)},g.prototype.getMetadata=function(u){return this._actual.getMetadata(this._startTokenIndex+u)},g}(),y=function(){function g(u,s){this.startLineNumber=u,this.tokens=s,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}return g.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},g.prototype.getLineTokens=function(u){if(this.startLineNumber<=u&&u<=this.endLineNumber){var s=g._findTokensWithLine(this.tokens,u-this.startLineNumber);if(s){var l=s[0],d=s[1];return new c(this.tokens,l,d)}}return null},g._findTokensWithLine=function(u,s){for(var l=0,d=u.getTokenCount()-1;l<d;){var p=l+Math.floor((d-l)/2),E=u.getDeltaLine(p);if(E<s)l=p+1;else if(E>s)d=p-1;else{for(var _=p;_>l&&u.getDeltaLine(_-1)===s;)_--;for(var x=p;x<d&&u.getDeltaLine(x+1)===s;)x++;return[_,x]}}return u.getDeltaLine(l)===s?[l,l]:null},g.prototype.applyEdit=function(u,s){var l=H(s),d=l[0],p=l[1],E=l[2];this.acceptEdit(u,d,p,E,s.length>0?s.charCodeAt(0):0)},g.prototype.acceptEdit=function(u,s,l,d,p){this._acceptDeleteRange(u),this._acceptInsertText(new J.a(u.startLineNumber,u.startColumn),s,l,d,p),this._updateEndLineNumber()},g.prototype._acceptDeleteRange=function(u){if(u.startLineNumber===u.endLineNumber&&u.startColumn===u.endColumn)return;var s=u.startLineNumber-this.startLineNumber,l=u.endLineNumber-this.startLineNumber;if(l<0){var d=l-s;this.startLineNumber-=d;return}var p=this.tokens.getMaxDeltaLine();if(s>=p+1)return;if(s<0&&l>=p+1){this.startLineNumber=0,this.tokens.clear();return}if(s<0){var E=-s;this.startLineNumber-=E,this.tokens.acceptDeleteRange(u.startColumn-1,0,0,l,u.endColumn-1)}else this.tokens.acceptDeleteRange(0,s,u.startColumn-1,l,u.endColumn-1)},g.prototype._acceptInsertText=function(u,s,l,d,p){if(s===0&&l===0)return;var E=u.lineNumber-this.startLineNumber;if(E<0){this.startLineNumber+=s;return}var _=this.tokens.getMaxDeltaLine();if(E>=_+1)return;this.tokens.acceptInsertText(E,u.column-1,s,l,d,p)},g}(),L=function(){function g(u,s){this.startLineNumber=u,this.tokens=s}return g}();function f(g){return g instanceof Uint32Array?g:new Uint32Array(g)}var v=function(){function g(){this._pieces=[]}return g.prototype.flush=function(){this._pieces=[]},g.prototype.set=function(u){this._pieces=u||[]},g.prototype.addSemanticTokens=function(u,s){var l=this._pieces;if(l.length===0)return s;var d=g._findFirstPieceWithLine(l,u),p=this._pieces[d].getLineTokens(u);if(!p)return s;for(var E=s.getCount(),_=p.getCount(),x=0,F=[],R=0,$=0;$<_;$++){for(var ie=p.getStartCharacter($),W=p.getEndCharacter($),B=p.getMetadata($),le=((B&1?2048:0)|(B&2?4096:0)|(B&4?8192:0)|(B&8?8372224:0)|(B&16?4286578688:0))>>>0,be=~le>>>0;x<E&&s.getEndOffset(x)<=ie;)F[R++]=s.getEndOffset(x),F[R++]=s.getMetadata(x),x++;for(x<E&&s.getStartOffset(x)<ie&&(F[R++]=ie,F[R++]=s.getMetadata(x));x<E&&s.getEndOffset(x)<W;)F[R++]=s.getEndOffset(x),F[R++]=s.getMetadata(x)&be|B&le,x++;if(x<E&&s.getEndOffset(x)===W)F[R++]=s.getEndOffset(x),F[R++]=s.getMetadata(x)&be|B&le,x++;else{var De=Math.min(Math.max(0,x-1),E-1);F[R++]=W,F[R++]=s.getMetadata(De)&be|B&le}}for(;x<E;)F[R++]=s.getEndOffset(x),F[R++]=s.getMetadata(x),x++;return new re.a(new Uint32Array(F),s.getLineContent())},g._findFirstPieceWithLine=function(u,s){for(var l=0,d=u.length-1;l<d;){var p=l+Math.floor((d-l)/2);if(u[p].endLineNumber<s)l=p+1;else if(u[p].startLineNumber>s)d=p-1;else{for(;p>l&&u[p-1].startLineNumber<=s&&s<=u[p-1].endLineNumber;)p--;return p}}return l},g.prototype.acceptEdit=function(u,s,l,d,p){for(var E=0,_=this._pieces;E<_.length;E++){var x=_[E];x.acceptEdit(u,s,l,d,p)}},g}(),S=function(){function g(){this._lineTokens=[],this._len=0}return g.prototype.flush=function(){this._lineTokens=[],this._len=0},g.prototype.getTokens=function(u,s,l){var d=null;if(s<this._len&&(d=this._lineTokens[s]),d!==null&&d!==M)return new re.a(f(d),l);var p=new Uint32Array(2);return p[0]=l.length,p[1]=z(u),new re.a(p,l)},g._massageTokens=function(u,s,l){var d=l?f(l):null;if(s===0){var p=!1;if(d&&d.length>1&&(p=N.A.getLanguageId(d[1])!==u),!p)return M}if(!d||d.length===0){var E=new Uint32Array(2);return E[0]=s,E[1]=z(u),E.buffer}return d[d.length-2]=s,d.byteOffset===0&&d.byteLength===d.buffer.byteLength?d.buffer:d},g.prototype._ensureLine=function(u){for(;u>=this._len;)this._lineTokens[this._len]=null,this._len++},g.prototype._deleteLines=function(u,s){if(s===0)return;u+s>this._len&&(s=this._len-u),this._lineTokens.splice(u,s),this._len-=s},g.prototype._insertLines=function(u,s){if(s===0)return;for(var l=[],d=0;d<s;d++)l[d]=null;this._lineTokens=T.a(this._lineTokens,u,l),this._len+=s},g.prototype.setTokens=function(u,s,l,d){var p=g._massageTokens(u,l,d);this._ensureLine(s),this._lineTokens[s]=p},g.prototype.acceptEdit=function(u,s,l){this._acceptDeleteRange(u),this._acceptInsertText(new J.a(u.startLineNumber,u.startColumn),s,l)},g.prototype._acceptDeleteRange=function(u){var s=u.startLineNumber-1;if(s>=this._len)return;if(u.startLineNumber===u.endLineNumber){if(u.startColumn===u.endColumn)return;this._lineTokens[s]=g._delete(this._lineTokens[s],u.startColumn-1,u.endColumn-1);return}this._lineTokens[s]=g._deleteEnding(this._lineTokens[s],u.startColumn-1);var l=u.endLineNumber-1,d=null;l<this._len&&(d=g._deleteBeginning(this._lineTokens[l],u.endColumn-1)),this._lineTokens[s]=g._append(this._lineTokens[s],d),this._deleteLines(u.startLineNumber,u.endLineNumber-u.startLineNumber)},g.prototype._acceptInsertText=function(u,s,l){if(s===0&&l===0)return;var d=u.lineNumber-1;if(d>=this._len)return;if(s===0){this._lineTokens[d]=g._insert(this._lineTokens[d],u.column-1,l);return}this._lineTokens[d]=g._deleteEnding(this._lineTokens[d],u.column-1),this._lineTokens[d]=g._insert(this._lineTokens[d],u.column-1,l),this._insertLines(u.lineNumber,s)},g._deleteBeginning=function(u,s){return u===null||u===M?u:g._delete(u,0,s)},g._deleteEnding=function(u,s){if(u===null||u===M)return u;var l=f(u),d=l[l.length-2];return g._delete(u,s,d)},g._delete=function(u,s,l){if(u===null||u===M||s===l)return u;var d=f(u),p=d.length>>>1;if(s===0&&d[d.length-2]===l)return M;var E=re.a.findIndexInTokensArray(d,s),_=E>0?d[E-1<<1]:0,x=d[E<<1];if(l<x){for(var F=l-s,R=E;R<p;R++)d[R<<1]-=F;return u}var $,ie;_!==s?(d[E<<1]=s,$=E+1<<1,ie=s):($=E<<1,ie=_);for(var W=l-s,B=E+1;B<p;B++){var le=d[B<<1]-W;le>ie&&(d[$++]=le,d[$++]=d[(B<<1)+1],ie=le)}if($===d.length)return u;var be=new Uint32Array($);return be.set(d.subarray(0,$),0),be.buffer},g._append=function(u,s){if(s===M)return u;if(u===M)return s;if(u===null)return u;if(s===null)return null;var l=f(u),d=f(s),p=d.length>>>1,E=new Uint32Array(l.length+d.length);E.set(l,0);for(var _=l.length,x=l[l.length-2],F=0;F<p;F++)E[_++]=d[F<<1]+x,E[_++]=d[(F<<1)+1];return E.buffer},g._insert=function(u,s,l){if(u===null||u===M)return u;var d=f(u),p=d.length>>>1,E=re.a.findIndexInTokensArray(d,s);if(E>0){var _=d[E-1<<1];_===s&&E--}for(var x=E;x<p;x++)d[x<<1]+=l;return u},g}()},QVNv:function(_t,P,e){"use strict";e.d(P,"b",function(){return v}),e.d(P,"a",function(){return g}),e.d(P,"c",function(){return s}),e.d(P,"e",function(){return l}),e.d(P,"d",function(){return x}),e.d(P,"f",function(){return R});var T=e("X+cX"),re=e("qj0h"),J=e("/cxE"),N=e("sswD"),H=e("twdY"),z=e("cGHE"),M=e("T8No"),U=e("JQT/"),A=e("aokT"),c=e("fpMC"),y=e("pmY6"),L=function($,ie,W,B){function le(be){return be instanceof W?be:new W(function(De){De(be)})}return new(W||(W=Promise))(function(be,De){function Te(je){try{He(B.next(je))}catch(oe){De(oe)}}function ke(je){try{He(B.throw(je))}catch(oe){De(oe)}}function He(je){je.done?be(je.value):le(je.value).then(Te,ke)}He((B=B.apply($,ie||[])).next())})},f=function($,ie){var W={label:0,sent:function(){if(be[0]&1)throw be[1];return be[1]},trys:[],ops:[]},B,le,be,De;return De={next:Te(0),throw:Te(1),return:Te(2)},typeof Symbol=="function"&&(De[Symbol.iterator]=function(){return this}),De;function Te(He){return function(je){return ke([He,je])}}function ke(He){if(B)throw new TypeError("Generator is already executing.");for(;W;)try{if(B=1,le&&(be=He[0]&2?le.return:He[0]?le.throw||((be=le.return)&&be.call(le),0):le.next)&&!(be=be.call(le,He[1])).done)return be;(le=0,be)&&(He=[He[0]&2,be.value]);switch(He[0]){case 0:case 1:be=He;break;case 4:return W.label++,{value:He[1],done:!1};case 5:W.label++,le=He[1],He=[0];continue;case 7:He=W.ops.pop(),W.trys.pop();continue;default:if(!(be=W.trys,be=be.length>0&&be[be.length-1])&&(He[0]===6||He[0]===2)){W=0;continue}if(He[0]===3&&(!be||He[1]>be[0]&&He[1]<be[3])){W.label=He[1];break}if(He[0]===6&&W.label<be[1]){W.label=be[1],be=He;break}if(be&&W.label<be[2]){W.label=be[2],W.ops.push(He);break}be[2]&&W.ops.pop(),W.trys.pop();continue}He=ie.call($,W)}catch(je){He=[6,je],le=0}finally{B=be=0}if(He[0]&5)throw He[1];return{value:He[0]?He[1]:void 0,done:!0}}},v={Visible:new M.d("suggestWidgetVisible",!1),MultipleSuggestions:new M.d("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new M.d("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new M.d("acceptSuggestionOnEnter",!0)},S=function(){function $(ie,W,B,le,be){var De=this;this.position=ie,this.completion=W,this.container=B,this.provider=le,this.isResolved=!1,this.score=c.a.Default,this.distance=0,this.textLabel=typeof W.label=="string"?W.label:W.label.name,this.labelLow=this.textLabel.toLowerCase(),this.sortTextLow=W.sortText&&W.sortText.toLowerCase(),this.filterTextLow=W.filterText&&W.filterText.toLowerCase(),A.a.isIRange(W.range)?(this.editStart=new z.a(W.range.startLineNumber,W.range.startColumn),this.editInsertEnd=new z.a(W.range.endLineNumber,W.range.endColumn),this.editReplaceEnd=new z.a(W.range.endLineNumber,W.range.endColumn)):(this.editStart=new z.a(W.range.insert.startLineNumber,W.range.insert.startColumn),this.editInsertEnd=new z.a(W.range.insert.endLineNumber,W.range.insert.endColumn),this.editReplaceEnd=new z.a(W.range.replace.endLineNumber,W.range.replace.endColumn));var Te=le.resolveCompletionItem;if(typeof Te!="function")this.resolve=function(){return Promise.resolve()},this.isResolved=!0;else{var ke;this.resolve=function(He){return ke||(ke=Promise.resolve(Te.call(le,be,ie,W,He)).then(function(je){Object(re.a)(W,je),De.isResolved=!0},function(je){Object(J.d)(je)&&(ke=void 0)}),He.onCancellationRequested(function(){De.isResolved||(ke=void 0)})),ke}}}return $}(),g=function(){function $(ie,W,B){ie===void 0&&(ie=2),W===void 0&&(W=new Set),B===void 0&&(B=new Set),this.snippetSortOrder=ie,this.kindFilter=W,this.providerFilter=B}return $.default=new $,$}(),u;function s(){return u}function l($,ie,W,B,le){W===void 0&&(W=g.default),B===void 0&&(B={triggerKind:0}),le===void 0&&(le=U.a.None);var be=$.getWordAtPosition(ie),De=be?new A.a(ie.lineNumber,be.startColumn,ie.lineNumber,be.endColumn):A.a.fromPositions(ie),Te=De.setEndPosition(ie.lineNumber,ie.column);ie=ie.clone();var ke=H.d.orderedGroups($);!W.kindFilter.has(25)&&u&&ke.unshift([u]);var He=[],je=new y.b,oe=!1,ee=ke.map(function(q){return function(){return Promise.all(q.map(function(ce){return W.providerFilter.size>0&&!W.providerFilter.has(ce)?void 0:Promise.resolve(ce.provideCompletionItems($,ie,B,le)).then(function(X){var he=He.length;if(X){for(var Pe=0,Xe=X.suggestions||[];Pe<Xe.length;Pe++){var pe=Xe[Pe];W.kindFilter.has(pe.kind)||(pe.range||(pe.range={insert:Te,replace:De}),pe.sortText||(pe.sortText=typeof pe.label=="string"?pe.label:pe.label.name),He.push(new S(ie,pe,X,ce,$)))}Object(y.g)(X)&&je.add(X)}he!==He.length&&ce!==u&&(oe=!0)},J.f)}))}}),ae=Object(T.h)(ee,function(){return oe||le.isCancellationRequested}).then(function(){return le.isCancellationRequested?(je.dispose(),Promise.reject(Object(J.a)())):He.sort(x(W.snippetSortOrder))});return ae}function d($,ie){if($.sortTextLow&&ie.sortTextLow){if($.sortTextLow<ie.sortTextLow)return-1;if($.sortTextLow>ie.sortTextLow)return 1}return $.completion.label<ie.completion.label?-1:$.completion.label>ie.completion.label?1:$.completion.kind-ie.completion.kind}function p($,ie){if($.completion.kind!==ie.completion.kind){if($.completion.kind===25)return-1;if(ie.completion.kind===25)return 1}return d($,ie)}function E($,ie){if($.completion.kind!==ie.completion.kind){if($.completion.kind===25)return 1;if(ie.completion.kind===25)return-1}return d($,ie)}var _=new Map;_.set(0,p),_.set(2,E),_.set(1,d);function x($){return _.get($)}Object(N.e)("_executeCompletionItemProvider",function($,ie,W){return L(void 0,void 0,void 0,function(){var B,le,be,De,Te,ke,He,je;return f(this,function(oe){switch(oe.label){case 0:return B={incomplete:!1,suggestions:[]},le=new y.b,be=[],De=W.maxItemsToResolve||0,[4,l($,ie)];case 1:for(Te=oe.sent(),ke=0,He=Te;ke<He.length;ke++)je=He[ke],be.length<De&&be.push(je.resolve(U.a.None)),B.incomplete=B.incomplete||je.container.incomplete,B.suggestions.push(je.completion),Object(y.g)(je.container)&&le.add(je.container);oe.label=2;case 2:return oe.trys.push([2,,4,5]),[4,Promise.all(be)];case 3:return oe.sent(),[2,B];case 4:return setTimeout(function(){return le.dispose()},100),[7];case 5:return[2]}})})});var F=new(function(){function $(){this.onlyOnceSuggestions=[]}return $.prototype.provideCompletionItems=function(){var ie=this.onlyOnceSuggestions.slice(0),W={suggestions:ie};return this.onlyOnceSuggestions.length=0,W},$}());H.d.register("*",F);function R($,ie){setTimeout(function(){var W;(W=F.onlyOnceSuggestions).push.apply(W,ie),$.getContribution("editor.contrib.suggestController").triggerSuggest(new Set().add(F))},0)}},QY8A:function(_t,P,e){"use strict";e.d(P,"a",function(){return It});var T=e("3/fG"),re=e("/cxE"),J=e("pmY6"),N=e("Vxe3"),H=e("Cg/j"),z=e("T8No"),M=e("+7oY"),U=e("A+jI"),A=e("9o5J"),c=e("KaET"),y=e("EffR"),L=e("zrhQ"),f=e("MI8n"),v=e("tYmi"),S=e("gslv"),g=e("03kh"),u=e("aokT"),s=e("tX9W"),l=e("t49l"),d=e("xONI"),p=e("VPJY"),E=e("N0LK"),_=e("qj0h"),x={badgeBackground:L.a.fromHex("#4D4D4D"),badgeForeground:L.a.fromHex("#FFFFFF")},F=function(){function Je($e,ze){this.count=0,this.options=ze||Object.create(null),Object(_.g)(this.options,x,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(y.q)($e,Object(y.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}return Je.prototype.setCount=function($e){this.count=$e,this.render()},Je.prototype.setTitleFormat=function($e){this.titleFormat=$e,this.render()},Je.prototype.render=function(){this.element.textContent=Object(E.r)(this.countFormat,this.count),this.element.title=Object(E.r)(this.titleFormat,this.count),this.applyStyles()},Je.prototype.style=function($e){this.badgeBackground=$e.badgeBackground,this.badgeForeground=$e.badgeForeground,this.badgeBorder=$e.badgeBorder,this.applyStyles()},Je.prototype.applyStyles=function(){if(this.element){var $e=this.badgeBackground?this.badgeBackground.toString():"",ze=this.badgeForeground?this.badgeForeground.toString():"",Ke=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=$e,this.element.style.color=ze,this.element.style.borderWidth=Ke?"1px":"",this.element.style.borderStyle=Ke?"solid":"",this.element.style.borderColor=Ke}},Je}(),R=e("R8sh"),$=e("t9D7"),ie=e("ptcw"),W=e("3rx1"),B=e("bexQ"),le=e("fpMC"),be=e("7lZ/"),De=function(){var Je=function(ze,Ke){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,G){fe.__proto__=G}||function(fe,G){for(var te in G)G.hasOwnProperty(te)&&(fe[te]=G[te])},Je(ze,Ke)};return function($e,ze){Je($e,ze);function Ke(){this.constructor=$e}$e.prototype=ze===null?Object.create(ze):(Ke.prototype=ze.prototype,new Ke)}}(),Te=function(Je,$e,ze,Ke){var fe=arguments.length,G=fe<3?$e:Ke===null?Ke=Object.getOwnPropertyDescriptor($e,ze):Ke,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(Je,$e,ze,Ke);else for(var Y=Je.length-1;Y>=0;Y--)(te=Je[Y])&&(G=(fe<3?te(G):fe>3?te($e,ze,G):te($e,ze))||G);return fe>3&&G&&Object.defineProperty($e,ze,G),G},ke=function(Je,$e){return function(ze,Ke){$e(ze,Ke,Je)}},He=function(){function Je($e){this._resolverService=$e}return Je.prototype.hasChildren=function($e){return $e instanceof A.c?!0:$e instanceof A.a&&!$e.failure},Je.prototype.getChildren=function($e){if($e instanceof A.c)return $e.groups;if($e instanceof A.a)return $e.resolve(this._resolverService).then(function(ze){return ze.children});throw new Error("bad tree")},Je=Te([ke(0,l.a)],Je),Je}(),je=function(){function Je(){}return Je.prototype.getHeight=function(){return 23},Je.prototype.getTemplateId=function($e){return $e instanceof A.a?q.id:X.id},Je}(),oe=function(){function Je($e){this._keybindingService=$e}return Je.prototype.getKeyboardNavigationLabel=function($e){if($e instanceof A.b){var ze=$e.parent.preview,Ke=ze&&ze.preview($e.range);if(Ke)return Ke.value}return Object(S.b)($e.uri)},Je=Te([ke(0,B.a)],Je),Je}(),ee=function(){function Je(){}return Je.prototype.getId=function($e){return $e instanceof A.b?$e.id:$e.uri},Je}(),ae=function(Je){De($e,Je);function $e(ze,Ke,fe){var G=Je.call(this)||this;G._uriLabel=Ke;var te=document.createElement("div");return y.f(te,"reference-file"),G.file=G._register(new d.a(te,{supportHighlights:!0})),G.badge=new F(y.q(te,y.a(".count"))),G._register(Object(ie.a)(G.badge,fe)),ze.appendChild(te),G}return $e.prototype.set=function(ze,Ke){var fe=Object(S.d)(ze.uri);this.file.setLabel(Object(W.a)(ze.uri),this._uriLabel.getUriLabel(fe,{relative:!0}),{title:this._uriLabel.getUriLabel(ze.uri),matches:Ke});var G=ze.children.length;this.badge.setCount(G),ze.failure?this.badge.setTitleFormat(Object(T.a)("referencesFailre","Failed to resolve file.")):G>1?this.badge.setTitleFormat(Object(T.a)("referencesCount","{0} references",G)):this.badge.setTitleFormat(Object(T.a)("referenceCount","{0} reference",G))},$e=Te([ke(1,R.a),ke(2,$.c)],$e),$e}(J.a),q=function(){function Je($e){this._instantiationService=$e,this.templateId=Je.id}return Je.prototype.renderTemplate=function($e){return this._instantiationService.createInstance(ae,$e)},Je.prototype.renderElement=function($e,ze,Ke){Ke.set($e.element,Object(le.c)($e.filterData))},Je.prototype.disposeTemplate=function($e){$e.dispose()},Je.id="FileReferencesRenderer",Je=Te([ke(0,H.a)],Je),Je}(),ce=function(){function Je($e){this.label=new be.a($e,!1)}return Je.prototype.set=function($e,ze){var Ke=$e.parent.preview,fe=Ke&&Ke.preview($e.range);if(!fe)this.label.set(Object(S.b)($e.uri)+":"+($e.range.startLineNumber+1)+":"+($e.range.startColumn+1));else{var G=fe.value,te=fe.highlight;ze&&!le.a.isDefault(ze)?(y.Y(this.label.element,"referenceMatch",!1),this.label.set(G,Object(le.c)(ze))):(y.Y(this.label.element,"referenceMatch",!0),this.label.set(G,[te]))}},Je}(),X=function(){function Je(){this.templateId=Je.id}return Je.prototype.renderTemplate=function($e){return new ce($e)},Je.prototype.renderElement=function($e,ze,Ke){Ke.set($e.element,$e.filterData)},Je.prototype.disposeTemplate=function(){},Je.id="OneReferenceRenderer",Je}(),he=function(){function Je(){}return Je.prototype.getAriaLabel=function($e){return $e.ariaMessage},Je}(),Pe=e("k9mg"),Xe=e("MD5Z"),pe=e("iNS8"),me=e("51B1"),Se=e("746U"),Re=e("Sdnv"),Ee=e("6OMU"),ve=e("cMOf"),Q=e("4y0V"),b=function(){var Je=function(ze,Ke){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,G){fe.__proto__=G}||function(fe,G){for(var te in G)G.hasOwnProperty(te)&&(fe[te]=G[te])},Je(ze,Ke)};return function($e,ze){Je($e,ze);function Ke(){this.constructor=$e}$e.prototype=ze===null?Object.create(ze):(Ke.prototype=ze.prototype,new Ke)}}(),k=function(){for(var Je=0,$e=0,ze=arguments.length;$e<ze;$e++)Je+=arguments[$e].length;for(var Ke=Array(Je),fe=0,$e=0;$e<ze;$e++)for(var G=arguments[$e],te=0,Y=G.length;te<Y;te++,fe++)Ke[fe]=G[te];return Ke},se={separatorBorder:L.a.transparent},ne=function(){function Je($e,ze,Ke,fe){this.container=$e,this.view=ze,this.disposable=fe,this._cachedVisibleSize=void 0,typeof Ke=="number"?(this._size=Ke,this._cachedVisibleSize=void 0,y.f($e,"visible")):(this._size=0,this._cachedVisibleSize=Ke.cachedVisibleSize)}return Object.defineProperty(Je.prototype,"size",{get:function(){return this._size},set:function(ze){this._size=ze},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"visible",{get:function(){return typeof this._cachedVisibleSize=="undefined"},enumerable:!0,configurable:!0}),Je.prototype.setVisible=function($e,ze){if($e===this.visible)return;$e?(this.size=Object(Re.a)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof ze=="number"?ze:this.size,this.size=0),y.Y(this.container,"visible",$e),this.view.setVisible&&this.view.setVisible($e)},Object.defineProperty(Je.prototype,"minimumSize",{get:function(){return this.visible?this.view.minimumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"viewMinimumSize",{get:function(){return this.view.minimumSize},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"maximumSize",{get:function(){return this.visible?this.view.maximumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"viewMaximumSize",{get:function(){return this.view.maximumSize},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"priority",{get:function(){return this.view.priority},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"snap",{get:function(){return!!this.view.snap},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"enabled",{set:function(ze){this.container.style.pointerEvents=ze?null:"none"},enumerable:!0,configurable:!0}),Je.prototype.layout=function($e,ze){this.layoutContainer($e),this.view.layout(this.size,$e,ze)},Je.prototype.dispose=function(){return this.disposable.dispose(),this.view},Je}(),Ce=function(Je){b($e,Je);function $e(){return Je!==null&&Je.apply(this,arguments)||this}return $e.prototype.layoutContainer=function(ze){this.container.style.top=ze+"px",this.container.style.height=this.size+"px"},$e}(ne),Oe=function(Je){b($e,Je);function $e(){return Je!==null&&Je.apply(this,arguments)||this}return $e.prototype.layoutContainer=function(ze){this.container.style.left=ze+"px",this.container.style.width=this.size+"px"},$e}(ne),we;(function(Je){Je[Je.Idle=0]="Idle",Je[Je.Busy=1]="Busy"})(we||(we={}));var Ve;(function(Je){Je.Distribute={type:"distribute"};function $e(Ke){return{type:"split",index:Ke}}Je.Split=$e;function ze(Ke){return{type:"invisible",cachedVisibleSize:Ke}}Je.Invisible=ze})(Ve||(Ve={}));var Qe=function(Je){b($e,Je);function $e(ze,Ke){Ke===void 0&&(Ke={});var fe=Je.call(this)||this;return fe.size=0,fe.contentSize=0,fe.proportions=void 0,fe.viewItems=[],fe.sashItems=[],fe.state=we.Idle,fe._onDidSashChange=fe._register(new f.a),fe.onDidSashChange=fe._onDidSashChange.event,fe._onDidSashReset=fe._register(new f.a),fe._startSnappingEnabled=!0,fe._endSnappingEnabled=!0,fe.orientation=Se.k(Ke.orientation)?0:Ke.orientation,fe.inverseAltBehavior=!!Ke.inverseAltBehavior,fe.proportionalLayout=Se.k(Ke.proportionalLayout)?!0:!!Ke.proportionalLayout,fe.el=document.createElement("div"),y.f(fe.el,"monaco-split-view2"),y.f(fe.el,fe.orientation===0?"vertical":"horizontal"),ze.appendChild(fe.el),fe.sashContainer=y.q(fe.el,y.a(".sash-container")),fe.viewContainer=y.q(fe.el,y.a(".split-view-container")),fe.style(Ke.styles||se),Ke.descriptor&&(fe.size=Ke.descriptor.size,Ke.descriptor.views.forEach(function(G,te){var Y=Se.k(G.visible)||G.visible?G.size:{type:"invisible",cachedVisibleSize:G.size},de=G.view;fe.doAddView(de,Y,te,!0)}),fe.contentSize=fe.viewItems.reduce(function(G,te){return G+te.size},0),fe.saveProportions()),fe}return Object.defineProperty($e.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(Ke){for(var fe=0,G=this.sashItems;fe<G.length;fe++){var te=G[fe];te.sash.orthogonalStartSash=Ke}this._orthogonalStartSash=Ke},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(Ke){for(var fe=0,G=this.sashItems;fe<G.length;fe++){var te=G[fe];te.sash.orthogonalEndSash=Ke}this._orthogonalEndSash=Ke},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"startSnappingEnabled",{get:function(){return this._startSnappingEnabled},set:function(Ke){if(this._startSnappingEnabled===Ke)return;this._startSnappingEnabled=Ke,this.updateSashEnablement()},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"endSnappingEnabled",{get:function(){return this._endSnappingEnabled},set:function(Ke){if(this._endSnappingEnabled===Ke)return;this._endSnappingEnabled=Ke,this.updateSashEnablement()},enumerable:!0,configurable:!0}),$e.prototype.style=function(ze){ze.separatorBorder.isTransparent()?(y.P(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(y.f(this.el,"separator-border"),this.el.style.setProperty("--separator-border",ze.separatorBorder.toString()))},$e.prototype.addView=function(ze,Ke,fe){fe===void 0&&(fe=this.viewItems.length),this.doAddView(ze,Ke,fe,!1)},$e.prototype.layout=function(ze,Ke){var fe=this,G=Math.max(this.size,this.contentSize);if(this.size=ze,this.layoutContext=Ke,this.proportions)for(var Fe=0;Fe<this.viewItems.length;Fe++){var lt=this.viewItems[Fe];lt.size=Object(Re.a)(Math.round(this.proportions[Fe]*ze),lt.minimumSize,lt.maximumSize)}else{var te=Object(Ee.u)(this.viewItems.length),Y=te.filter(function(Tt){return fe.viewItems[Tt].priority===1}),de=te.filter(function(Tt){return fe.viewItems[Tt].priority===2});this.resize(this.viewItems.length-1,ze-G,void 0,Y,de)}this.distributeEmptySpace(),this.layoutViews()},$e.prototype.saveProportions=function(){var ze=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(function(Ke){return Ke.size/ze.contentSize}))},$e.prototype.onSashStart=function(ze){for(var Ke=this,fe=ze.sash,G=ze.start,te=ze.alt,Y=0,de=this.viewItems;Y<de.length;Y++){var Fe=de[Y];Fe.enabled=!1}var lt=Object(Ee.k)(this.sashItems,function(en){return en.sash===fe}),Tt=Object(J.e)(Object(Q.a)(document.body,"keydown")(function(en){return Jt(Ke.sashDragState.current,en.altKey)}),Object(Q.a)(document.body,"keyup")(function(){return Jt(Ke.sashDragState.current,!1)})),Jt=function(gn,un){var En=Ke.viewItems.map(function(Un){return Un.size}),Mn=Number.NEGATIVE_INFINITY,xn=Number.POSITIVE_INFINITY;if(Ke.inverseAltBehavior&&(un=!un),un){var Zn=lt===Ke.sashItems.length-1;if(Zn){var bn=Ke.viewItems[lt];Mn=(bn.minimumSize-bn.size)/2,xn=(bn.maximumSize-bn.size)/2}else{var bn=Ke.viewItems[lt+1];Mn=(bn.size-bn.maximumSize)/2,xn=(bn.size-bn.minimumSize)/2}}var Wn,Gn;if(!un){var Bn=Object(Ee.u)(lt,-1),Dn=Object(Ee.u)(lt+1,Ke.viewItems.length),Qn=Bn.reduce(function(Un,wt){return Un+(Ke.viewItems[wt].minimumSize-En[wt])},0),fo=Bn.reduce(function(Un,wt){return Un+(Ke.viewItems[wt].viewMaximumSize-En[wt])},0),Vn=Dn.length===0?Number.POSITIVE_INFINITY:Dn.reduce(function(Un,wt){return Un+(En[wt]-Ke.viewItems[wt].minimumSize)},0),po=Dn.length===0?Number.NEGATIVE_INFINITY:Dn.reduce(function(Un,wt){return Un+(En[wt]-Ke.viewItems[wt].viewMaximumSize)},0),yo=Math.max(Qn,po),lo=Math.min(Vn,fo),io=Ke.findFirstSnapIndex(Bn),go=Ke.findFirstSnapIndex(Dn);if(typeof io=="number"){var bn=Ke.viewItems[io],zn=Math.floor(bn.viewMinimumSize/2);Wn={index:io,limitDelta:bn.visible?yo-zn:yo+zn,size:bn.size}}if(typeof go=="number"){var bn=Ke.viewItems[go],zn=Math.floor(bn.viewMinimumSize/2);Gn={index:go,limitDelta:bn.visible?lo+zn:lo-zn,size:bn.size}}}Ke.sashDragState={start:gn,current:gn,index:lt,sizes:En,minDelta:Mn,maxDelta:xn,alt:un,snapBefore:Wn,snapAfter:Gn,disposable:Tt}};Jt(G,te)},$e.prototype.onSashChange=function(ze){var Ke=ze.current,fe=this.sashDragState,G=fe.index,te=fe.start,Y=fe.sizes,de=fe.alt,Fe=fe.minDelta,lt=fe.maxDelta,Tt=fe.snapBefore,Jt=fe.snapAfter;this.sashDragState.current=Ke;var en=Ke-te,gn=this.resize(G,en,Y,void 0,void 0,Fe,lt,Tt,Jt);if(de){var un=G===this.sashItems.length-1,En=this.viewItems.map(function(Gn){return Gn.size}),Mn=un?G:G+1,xn=this.viewItems[Mn],Zn=xn.size-xn.maximumSize,bn=xn.size-xn.minimumSize,Wn=un?G-1:G+1;this.resize(Wn,-gn,En,void 0,void 0,Zn,bn)}this.distributeEmptySpace(),this.layoutViews()},$e.prototype.onSashEnd=function(ze){this._onDidSashChange.fire(ze),this.sashDragState.disposable.dispose(),this.saveProportions();for(var Ke=0,fe=this.viewItems;Ke<fe.length;Ke++){var G=fe[Ke];G.enabled=!0}},$e.prototype.onViewChange=function(ze,Ke){var fe=this.viewItems.indexOf(ze);if(fe<0||fe>=this.viewItems.length)return;Ke=typeof Ke=="number"?Ke:ze.size,Ke=Object(Re.a)(Ke,ze.minimumSize,ze.maximumSize),this.inverseAltBehavior&&fe>0?(this.resize(fe-1,Math.floor((ze.size-Ke)/2)),this.distributeEmptySpace(),this.layoutViews()):(ze.size=Ke,this.relayout([fe],void 0))},$e.prototype.resizeView=function(ze,Ke){var fe=this;if(this.state!==we.Idle)throw new Error("Cant modify splitview");if(this.state=we.Busy,ze<0||ze>=this.viewItems.length)return;var G=Object(Ee.u)(this.viewItems.length).filter(function(Fe){return Fe!==ze}),te=k(G.filter(function(Fe){return fe.viewItems[Fe].priority===1}),[ze]),Y=G.filter(function(Fe){return fe.viewItems[Fe].priority===2}),de=this.viewItems[ze];Ke=Math.round(Ke),Ke=Object(Re.a)(Ke,de.minimumSize,Math.min(de.maximumSize,this.size)),de.size=Ke,this.relayout(te,Y),this.state=we.Idle},$e.prototype.distributeViewSizes=function(){for(var ze=this,Ke=[],fe=0,G=0,te=this.viewItems;G<te.length;G++){var Y=te[G];Y.maximumSize-Y.minimumSize>0&&(Ke.push(Y),fe+=Y.size)}for(var de=Math.floor(fe/Ke.length),Fe=0,lt=Ke;Fe<lt.length;Fe++){var Y=lt[Fe];Y.size=Object(Re.a)(de,Y.minimumSize,Y.maximumSize)}var Tt=Object(Ee.u)(this.viewItems.length),Jt=Tt.filter(function(gn){return ze.viewItems[gn].priority===1}),en=Tt.filter(function(gn){return ze.viewItems[gn].priority===2});this.relayout(Jt,en)},$e.prototype.getViewSize=function(ze){return ze<0||ze>=this.viewItems.length?-1:this.viewItems[ze].size},$e.prototype.doAddView=function(ze,Ke,fe,G){var te=this;if(fe===void 0&&(fe=this.viewItems.length),this.state!==we.Idle)throw new Error("Cant modify splitview");this.state=we.Busy;var Y=y.a(".split-view-view");fe===this.viewItems.length?this.viewContainer.appendChild(Y):this.viewContainer.insertBefore(Y,this.viewContainer.children.item(fe));var de=ze.onDidChange(function(Vn){return te.onViewChange(Jt,Vn)}),Fe=Object(J.h)(function(){return te.viewContainer.removeChild(Y)}),lt=Object(J.e)(de,Fe),Tt;typeof Ke=="number"?Tt=Ke:Ke.type==="split"?Tt=this.getViewSize(Ke.index)/2:Ke.type==="invisible"?Tt={cachedVisibleSize:Ke.cachedVisibleSize}:Tt=ze.minimumSize;var Jt=this.orientation===0?new Ce(Y,ze,Tt,lt):new Oe(Y,ze,Tt,lt);if(this.viewItems.splice(fe,0,Jt),this.viewItems.length>1){var en=this.orientation===0?1:0,gn=this.orientation===0?{getHorizontalSashTop:function(po){return te.getSashPosition(po)}}:{getVerticalSashLeft:function(po){return te.getSashPosition(po)}},un=new ve.a(this.sashContainer,gn,{orientation:en,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),En=this.orientation===0?function(Vn){return{sash:un,start:Vn.startY,current:Vn.currentY,alt:Vn.altKey}}:function(Vn){return{sash:un,start:Vn.startX,current:Vn.currentX,alt:Vn.altKey}},Mn=f.b.map(un.onDidStart,En),xn=Mn(this.onSashStart,this),Zn=f.b.map(un.onDidChange,En),bn=Zn(this.onSashChange,this),Wn=f.b.map(un.onDidEnd,function(){return Object(Ee.k)(te.sashItems,function(Vn){return Vn.sash===un})}),Gn=Wn(this.onSashEnd,this),Bn=un.onDidReset(function(){var Vn=Object(Ee.k)(te.sashItems,function(go){return go.sash===un}),po=Object(Ee.u)(Vn,-1),yo=Object(Ee.u)(Vn+1,te.viewItems.length),lo=te.findFirstSnapIndex(po),io=te.findFirstSnapIndex(yo);if(typeof lo=="number"&&!te.viewItems[lo].visible)return;if(typeof io=="number"&&!te.viewItems[io].visible)return;te._onDidSashReset.fire(Vn)}),Dn=Object(J.e)(xn,bn,Gn,Bn,un),Qn={sash:un,disposable:Dn};this.sashItems.splice(fe-1,0,Qn)}Y.appendChild(ze.element);var fo;typeof Ke!="number"&&Ke.type==="split"&&(fo=[Ke.index]),G||this.relayout([fe],fo),this.state=we.Idle,!G&&typeof Ke!="number"&&Ke.type==="distribute"&&this.distributeViewSizes()},$e.prototype.relayout=function(ze,Ke){var fe=this.viewItems.reduce(function(G,te){return G+te.size},0);this.resize(this.viewItems.length-1,this.size-fe,void 0,ze,Ke),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},$e.prototype.resize=function(ze,Ke,fe,G,te,Y,de,Fe,lt){var Tt=this;if(fe===void 0&&(fe=this.viewItems.map(function(Le){return Le.size})),Y===void 0&&(Y=Number.NEGATIVE_INFINITY),de===void 0&&(de=Number.POSITIVE_INFINITY),ze<0||ze>=this.viewItems.length)return 0;var Jt=Object(Ee.u)(ze,-1),en=Object(Ee.u)(ze+1,this.viewItems.length);if(te)for(var gn=0,un=te;gn<un.length;gn++){var En=un[gn];Object(Ee.t)(Jt,En),Object(Ee.t)(en,En)}if(G)for(var Mn=0,xn=G;Mn<xn.length;Mn++){var Zn=xn[Mn];Object(Ee.s)(Jt,Zn),Object(Ee.s)(en,Zn)}var bn=Jt.map(function(Le){return Tt.viewItems[Le]}),Wn=Jt.map(function(Le){return fe[Le]}),Gn=en.map(function(Le){return Tt.viewItems[Le]}),Bn=en.map(function(Le){return fe[Le]}),Dn=Jt.reduce(function(Le,D){return Le+(Tt.viewItems[D].minimumSize-fe[D])},0),Qn=Jt.reduce(function(Le,D){return Le+(Tt.viewItems[D].maximumSize-fe[D])},0),fo=en.length===0?Number.POSITIVE_INFINITY:en.reduce(function(Le,D){return Le+(fe[D]-Tt.viewItems[D].minimumSize)},0),Vn=en.length===0?Number.NEGATIVE_INFINITY:en.reduce(function(Le,D){return Le+(fe[D]-Tt.viewItems[D].maximumSize)},0),po=Math.max(Dn,Vn,Y),yo=Math.min(fo,Qn,de),lo=!1;if(Fe){var io=this.viewItems[Fe.index],go=Ke>=Fe.limitDelta;lo=go!==io.visible,io.setVisible(go,Fe.size)}if(!lo&&lt){var io=this.viewItems[lt.index],go=Ke<lt.limitDelta;lo=go!==io.visible,io.setVisible(go,lt.size)}if(lo)return this.resize(ze,Ke,fe,G,te,Y,de);Ke=Object(Re.a)(Ke,po,yo);for(var zn=0,Un=Ke;zn<bn.length;zn++){var wt=bn[zn],nt=Object(Re.a)(Wn[zn]+Un,wt.minimumSize,wt.maximumSize),ot=nt-Wn[zn];Un-=ot,wt.size=nt}for(var zn=0,Ot=Ke;zn<Gn.length;zn++){var wt=Gn[zn],nt=Object(Re.a)(Bn[zn]-Ot,wt.minimumSize,wt.maximumSize),ot=nt-Bn[zn];Ot+=ot,wt.size=nt}return Ke},$e.prototype.distributeEmptySpace=function(ze){for(var Ke=this,fe=this.viewItems.reduce(function(xn,Zn){return xn+Zn.size},0),G=this.size-fe,te=Object(Ee.u)(this.viewItems.length-1,-1),Y=te.filter(function(xn){return Ke.viewItems[xn].priority===1}),de=te.filter(function(xn){return Ke.viewItems[xn].priority===2}),Fe=0,lt=de;Fe<lt.length;Fe++){var Tt=lt[Fe];Object(Ee.t)(te,Tt)}for(var Jt=0,en=Y;Jt<en.length;Jt++){var Tt=en[Jt];Object(Ee.s)(te,Tt)}typeof ze=="number"&&Object(Ee.s)(te,ze);for(var gn=0;G!==0&&gn<te.length;gn++){var un=this.viewItems[te[gn]],En=Object(Re.a)(un.size+G,un.minimumSize,un.maximumSize),Mn=En-un.size;G-=Mn,un.size=En}},$e.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce(function(te,Y){return te+Y.size},0);for(var ze=0,Ke=0,fe=this.viewItems;Ke<fe.length;Ke++){var G=fe[Ke];G.layout(ze,this.layoutContext),ze+=G.size}this.sashItems.forEach(function(te){return te.sash.layout()}),this.updateSashEnablement()},$e.prototype.updateSashEnablement=function(){var ze=!1,Ke=this.viewItems.map(function(bn){return ze=bn.size-bn.minimumSize>0||ze});ze=!1;var fe=this.viewItems.map(function(bn){return ze=bn.maximumSize-bn.size>0||ze}),G=k(this.viewItems).reverse();ze=!1;var te=G.map(function(bn){return ze=bn.size-bn.minimumSize>0||ze}).reverse();ze=!1;for(var Y=G.map(function(bn){return ze=bn.maximumSize-bn.size>0||ze}).reverse(),de=0,Fe=0;Fe<this.sashItems.length;Fe++){var lt=this.sashItems[Fe].sash,Tt=this.viewItems[Fe];de+=Tt.size;var Jt=!(Ke[Fe]&&Y[Fe+1]),en=!(fe[Fe]&&te[Fe+1]);if(Jt&&en){var gn=Object(Ee.u)(Fe,-1),un=Object(Ee.u)(Fe+1,this.viewItems.length),En=this.findFirstSnapIndex(gn),Mn=this.findFirstSnapIndex(un),xn=typeof En=="number"&&!this.viewItems[En].visible,Zn=typeof Mn=="number"&&!this.viewItems[Mn].visible;xn&&te[Fe]&&(de>0||this.startSnappingEnabled)?lt.state=1:Zn&&Ke[Fe]&&(de<this.contentSize||this.endSnappingEnabled)?lt.state=2:lt.state=0}else Jt&&!en?lt.state=1:!Jt&&en?lt.state=2:lt.state=3}},$e.prototype.getSashPosition=function(ze){for(var Ke=0,fe=0;fe<this.sashItems.length;fe++)if(Ke+=this.viewItems[fe].size,this.sashItems[fe].sash===ze)return Math.min(Ke,this.contentSize-2);return 0},$e.prototype.findFirstSnapIndex=function(ze){for(var Ke=0,fe=ze;Ke<fe.length;Ke++){var G=fe[Ke],te=this.viewItems[G];if(!te.visible)continue;if(te.snap)return G}for(var Y=0,de=ze;Y<de.length;Y++){var G=de[Y],te=this.viewItems[G];if(te.visible&&te.maximumSize-te.minimumSize>0)return;if(!te.visible&&te.snap)return G}return},$e.prototype.dispose=function(){Je.prototype.dispose.call(this),this.viewItems.forEach(function(ze){return ze.dispose()}),this.viewItems=[],this.sashItems.forEach(function(ze){return ze.disposable.dispose()}),this.sashItems=[]},$e}(J.a),it=function(){var Je=function(ze,Ke){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,G){fe.__proto__=G}||function(fe,G){for(var te in G)G.hasOwnProperty(te)&&(fe[te]=G[te])},Je(ze,Ke)};return function($e,ze){Je($e,ze);function Ke(){this.constructor=$e}$e.prototype=ze===null?Object.create(ze):(Ke.prototype=ze.prototype,new Ke)}}(),gt=function(Je,$e,ze,Ke){var fe=arguments.length,G=fe<3?$e:Ke===null?Ke=Object.getOwnPropertyDescriptor($e,ze):Ke,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(Je,$e,ze,Ke);else for(var Y=Je.length-1;Y>=0;Y--)(te=Je[Y])&&(G=(fe<3?te(G):fe>3?te($e,ze,G):te($e,ze))||G);return fe>3&&G&&Object.defineProperty($e,ze,G),G},Rt=function(Je,$e){return function(ze,Ke){$e(ze,Ke,Je)}},Dt=function(Je,$e,ze,Ke){function fe(G){return G instanceof ze?G:new ze(function(te){te(G)})}return new(ze||(ze=Promise))(function(G,te){function Y(lt){try{Fe(Ke.next(lt))}catch(Tt){te(Tt)}}function de(lt){try{Fe(Ke.throw(lt))}catch(Tt){te(Tt)}}function Fe(lt){lt.done?G(lt.value):fe(lt.value).then(Y,de)}Fe((Ke=Ke.apply(Je,$e||[])).next())})},zt=function(Je,$e){var ze={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Ke,fe,G,te;return te={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(te[Symbol.iterator]=function(){return this}),te;function Y(Fe){return function(lt){return de([Fe,lt])}}function de(Fe){if(Ke)throw new TypeError("Generator is already executing.");for(;ze;)try{if(Ke=1,fe&&(G=Fe[0]&2?fe.return:Fe[0]?fe.throw||((G=fe.return)&&G.call(fe),0):fe.next)&&!(G=G.call(fe,Fe[1])).done)return G;(fe=0,G)&&(Fe=[Fe[0]&2,G.value]);switch(Fe[0]){case 0:case 1:G=Fe;break;case 4:return ze.label++,{value:Fe[1],done:!1};case 5:ze.label++,fe=Fe[1],Fe=[0];continue;case 7:Fe=ze.ops.pop(),ze.trys.pop();continue;default:if(!(G=ze.trys,G=G.length>0&&G[G.length-1])&&(Fe[0]===6||Fe[0]===2)){ze=0;continue}if(Fe[0]===3&&(!G||Fe[1]>G[0]&&Fe[1]<G[3])){ze.label=Fe[1];break}if(Fe[0]===6&&ze.label<G[1]){ze.label=G[1],G=Fe;break}if(G&&ze.label<G[2]){ze.label=G[2],ze.ops.push(Fe);break}G[2]&&ze.ops.pop(),ze.trys.pop();continue}Fe=$e.call(Je,ze)}catch(lt){Fe=[6,lt],fe=0}finally{Ke=G=0}if(Fe[0]&5)throw Fe[1];return{value:Fe[0]?Fe[1]:void 0,done:!0}}},cn=function(){function Je($e,ze){var Ke=this;this._editor=$e,this._model=ze,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new J.b,this._callOnModelChange=new J.b,this._callOnDispose.add(this._editor.onDidChangeModel(function(){return Ke._onModelChanged()})),this._onModelChanged()}return Je.prototype.dispose=function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()},Je.prototype._onModelChanged=function(){this._callOnModelChange.clear();var $e=this._editor.getModel();if($e)for(var ze=0,Ke=this._model.groups;ze<Ke.length;ze++){var fe=Ke[ze];if(Object(S.e)(fe.uri,$e.uri)){this._addDecorations(fe);return}}},Je.prototype._addDecorations=function($e){var ze=this;if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(function(Fe){return ze._onDecorationChanged()}));for(var Ke=[],fe=[],G=0,te=$e.children.length;G<te;G++){var Y=$e.children[G];if(this._decorationIgnoreSet.has(Y.id))continue;Ke.push({range:Y.range,options:Je.DecorationOptions}),fe.push(G)}for(var de=this._editor.deltaDecorations([],Ke),G=0;G<de.length;G++)this._decorations.set(de[G],$e.children[fe[G]])},Je.prototype._onDecorationChanged=function(){var $e=this,ze=[],Ke=this._editor.getModel();if(!Ke)return;this._decorations.forEach(function(te,Y){var de=Ke.getDecorationRange(Y);if(!de)return;var Fe=!1;if(u.a.equalsRange(de,te.range))return;if(u.a.spansMultipleLines(de))Fe=!0;else{var lt=te.range.endColumn-te.range.startColumn,Tt=de.endColumn-de.startColumn;lt!==Tt&&(Fe=!0)}Fe?($e._decorationIgnoreSet.add(te.id),ze.push(Y)):te.range=de});for(var fe=0,G=ze.length;fe<G;fe++)this._decorations.delete(ze[fe]);this._editor.deltaDecorations(ze,[])},Je.prototype.removeDecorations=function(){var $e=[];this._decorations.forEach(function(ze,Ke){$e.push(Ke)}),this._editor.deltaDecorations($e,[]),this._decorations.clear()},Je.DecorationOptions=s.a.register({stickiness:1,className:"reference-decoration"}),Je}(),ln=function(){function Je(){this.ratio=.7,this.heightInLines=18}return Je.fromJSON=function($e){var ze,Ke;try{var fe=JSON.parse($e);ze=fe.ratio,Ke=fe.heightInLines}catch(G){}return{ratio:ze||.7,heightInLines:Ke||18}},Je}(),an=function(Je){it($e,Je);function $e(ze,Ke,fe,G,te,Y,de,Fe){var lt=Je.call(this,ze,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return lt._defaultTreeKeyboardSupport=Ke,lt.layoutData=fe,lt._textModelResolverService=te,lt._instantiationService=Y,lt._peekViewService=de,lt._uriLabel=Fe,lt._disposeOnNewModel=new J.b,lt._callOnDispose=new J.b,lt._onDidSelectReference=new f.a,lt.onDidSelectReference=lt._onDidSelectReference.event,lt._dim={height:0,width:0},lt._applyTheme(G.getTheme()),lt._callOnDispose.add(G.onThemeChange(lt._applyTheme.bind(lt))),lt._peekViewService.addExclusiveWidget(ze,lt),lt.create(),lt}return $e.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(J.f)(this._preview),Object(J.f)(this._previewNotAvailableMessage),Object(J.f)(this._tree),Object(J.f)(this._previewModelReference),this._splitView.dispose(),Je.prototype.dispose.call(this)},$e.prototype._applyTheme=function(ze){var Ke=ze.getColor(pe.e)||L.a.transparent;this.style({arrowColor:Ke,frameColor:Ke,headerBackgroundColor:ze.getColor(pe.p)||L.a.transparent,primaryHeadingColor:ze.getColor(pe.q),secondaryHeadingColor:ze.getColor(pe.r)})},$e.prototype.show=function(ze){this.editor.revealRangeInCenterIfOutsideViewport(ze,0),Je.prototype.show.call(this,ze,this.layoutData.heightInLines||18)},$e.prototype.focusOnReferenceTree=function(){this._tree.domFocus()},$e.prototype.focusOnPreviewEditor=function(){this._preview.focus()},$e.prototype.isPreviewEditorFocused=function(){return this._preview.hasTextFocus()},$e.prototype._onTitleClick=function(ze){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:ze.ctrlKey||ze.metaKey||ze.altKey?"side":"open",source:"title"})},$e.prototype._fillBody=function(ze){var Ke=this;this.setCssClass("reference-zone-widget"),this._messageContainer=y.q(ze,y.a("div.messages")),y.J(this._messageContainer),this._splitView=new Qe(ze,{orientation:1}),this._previewContainer=y.q(ze,y.a("div.preview.inline"));var fe={scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}};this._preview=this._instantiationService.createInstance(g.a,this._previewContainer,fe,this.editor),y.J(this._previewContainer),this._previewNotAvailableMessage=s.b.createFromString(T.a("missingPreviewMessage","no preview available")),this._treeContainer=y.q(ze,y.a("div.ref-tree.inline"));var G={ariaLabel:T.a("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new he,keyboardNavigationLabelProvider:this._instantiationService.createInstance(oe),identityProvider:new ee,overrideStyles:{listBackground:pe.j}};this._tree=this._instantiationService.createInstance(Pe.c,"ReferencesWidget",this._treeContainer,new je,[this._instantiationService.createInstance(q),this._instantiationService.createInstance(X)],this._instantiationService.createInstance(He),G),this._splitView.addView({onDidChange:f.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(de){Ke._preview.layout({height:Ke._dim.height,width:de})}},Ve.Distribute),this._splitView.addView({onDidChange:f.b.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(de){Ke._treeContainer.style.height=Ke._dim.height+"px",Ke._treeContainer.style.width=de+"px",Ke._tree.layout(Ke._dim.height,de)}},Ve.Distribute),this._disposables.add(this._splitView.onDidSashChange(function(){Ke._dim.width&&(Ke.layoutData.ratio=Ke._splitView.getViewSize(0)/Ke._dim.width)},void 0));var te=function(de,Fe){de instanceof A.b&&(Fe==="show"&&Ke._revealReference(de,!1),Ke._onDidSelectReference.fire({element:de,kind:Fe,source:"tree"}))};this._tree.onDidChangeFocus(function(Y){te(Y.elements[0],"show")}),this._tree.onDidOpen(function(Y){Y.browserEvent instanceof MouseEvent&&(Y.browserEvent.ctrlKey||Y.browserEvent.metaKey||Y.browserEvent.altKey)?te(Y.elements[0],"side"):Y.browserEvent instanceof KeyboardEvent||Y.browserEvent instanceof MouseEvent&&Y.browserEvent.detail===2||Y.browserEvent.tapCount===2?te(Y.elements[0],"goto"):te(Y.elements[0],"show")}),y.J(this._treeContainer)},$e.prototype._onWidth=function(ze){this._dim&&this._doLayoutBody(this._dim.height,ze)},$e.prototype._doLayoutBody=function(ze,Ke){Je.prototype._doLayoutBody.call(this,ze,Ke),this._dim={height:ze,width:Ke},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(Ke),this._splitView.resizeView(0,Ke*this.layoutData.ratio)},$e.prototype.setSelection=function(ze){var Ke=this;return this._revealReference(ze,!0).then(function(){if(!Ke._model)return;Ke._tree.setSelection([ze]),Ke._tree.setFocus([ze])})},$e.prototype.setModel=function(ze){return this._disposeOnNewModel.clear(),this._model=ze,this._model?this._onNewModel():Promise.resolve()},$e.prototype._onNewModel=function(){var ze=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerHTML=T.a("noResults","No results"),y.X(this._messageContainer),Promise.resolve(void 0)):(y.J(this._messageContainer),this._decorationsManager=new cn(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(function(Ke){return ze._tree.rerender(Ke)})),this._disposeOnNewModel.add(this._preview.onMouseDown(function(Ke){var fe=Ke.event,G=Ke.target;if(fe.detail!==2)return;var te=ze._getFocusedReference();if(!te)return;ze._onDidSelectReference.fire({element:{uri:te.uri,range:G.range},kind:fe.ctrlKey||fe.metaKey||fe.altKey?"side":"open",source:"editor"})})),y.f(this.container,"results-loaded"),y.X(this._treeContainer),y.X(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)},$e.prototype._getFocusedReference=function(){var ze=this._tree.getFocus()[0];return ze instanceof A.b?ze:ze instanceof A.a&&ze.children.length>0?ze.children[0]:void 0},$e.prototype._revealReference=function(ze,Ke){return Dt(this,void 0,void 0,function(){var fe,G,te,Y,de;return zt(this,function(Fe){switch(Fe.label){case 0:return this._revealedReference===ze?[2]:(this._revealedReference=ze,ze.uri.scheme!==v.b.inMemory?this.setTitle(Object(S.c)(ze.uri),this._uriLabel.getUriLabel(Object(S.d)(ze.uri))):this.setTitle(T.a("peekView.alternateTitle","References")),fe=this._textModelResolverService.createModelReference(ze.uri),this._tree.getInput()===ze.parent?(this._tree.reveal(ze),[3,3]):[3,1]);case 1:return Ke&&this._tree.reveal(ze.parent),[4,this._tree.expand(ze.parent)];case 2:Fe.sent(),this._tree.reveal(ze),Fe.label=3;case 3:return[4,fe];case 4:return G=Fe.sent(),this._model?(Object(J.f)(this._previewModelReference),te=G.object,te?(Y=this._preview.getModel()===te.textEditorModel?0:1,de=u.a.lift(ze.range).collapseToStart(),this._previewModelReference=G,this._preview.setModel(te.textEditorModel),this._preview.setSelection(de),this._preview.revealRangeInCenter(de,Y)):(this._preview.setModel(this._previewNotAvailableMessage),G.dispose()),[2]):(G.dispose(),[2])}})})},$e=gt([Rt(3,$.c),Rt(4,l.a),Rt(5,H.a),Rt(6,pe.a),Rt(7,R.a)],$e),$e}(pe.c);Object($.e)(function(Je,$e){var ze=Je.getColor(pe.m);ze&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+ze+"; }");var Ke=Je.getColor(pe.h);Ke&&$e.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+Ke+"; }");var fe=Je.getColor(pe.i);fe&&$e.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+fe+"; box-sizing: border-box; }");var G=Je.getColor(Xe.b);G&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+G+"; box-sizing: border-box; }");var te=Je.getColor(pe.j);te&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+te+"; }");var Y=Je.getColor(pe.l);Y&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+Y+"; }");var de=Je.getColor(pe.k);de&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+de+"; }");var Fe=Je.getColor(pe.n);Fe&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+Fe+"; }");var lt=Je.getColor(pe.o);lt&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+lt+" !important; }");var Tt=Je.getColor(pe.f);Tt&&$e.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: "+Tt+";")+"}");var Jt=Je.getColor(pe.g);Jt&&$e.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+(" background-color: "+Jt+";")+"}")});var jt=e("cGHE"),ft=e("sM1p"),vt=e("X+cX"),xt=e("nrhi"),at=e("/kV6"),tt=e("nnTU"),ct=function(Je,$e,ze,Ke){var fe=arguments.length,G=fe<3?$e:Ke===null?Ke=Object.getOwnPropertyDescriptor($e,ze):Ke,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(Je,$e,ze,Ke);else for(var Y=Je.length-1;Y>=0;Y--)(te=Je[Y])&&(G=(fe<3?te(G):fe>3?te($e,ze,G):te($e,ze))||G);return fe>3&&G&&Object.defineProperty($e,ze,G),G},bt=function(Je,$e){return function(ze,Ke){$e(ze,Ke,Je)}},mt=function(Je,$e,ze,Ke){function fe(G){return G instanceof ze?G:new ze(function(te){te(G)})}return new(ze||(ze=Promise))(function(G,te){function Y(lt){try{Fe(Ke.next(lt))}catch(Tt){te(Tt)}}function de(lt){try{Fe(Ke.throw(lt))}catch(Tt){te(Tt)}}function Fe(lt){lt.done?G(lt.value):fe(lt.value).then(Y,de)}Fe((Ke=Ke.apply(Je,$e||[])).next())})},Ct=function(Je,$e){var ze={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Ke,fe,G,te;return te={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(te[Symbol.iterator]=function(){return this}),te;function Y(Fe){return function(lt){return de([Fe,lt])}}function de(Fe){if(Ke)throw new TypeError("Generator is already executing.");for(;ze;)try{if(Ke=1,fe&&(G=Fe[0]&2?fe.return:Fe[0]?fe.throw||((G=fe.return)&&G.call(fe),0):fe.next)&&!(G=G.call(fe,Fe[1])).done)return G;(fe=0,G)&&(Fe=[Fe[0]&2,G.value]);switch(Fe[0]){case 0:case 1:G=Fe;break;case 4:return ze.label++,{value:Fe[1],done:!1};case 5:ze.label++,fe=Fe[1],Fe=[0];continue;case 7:Fe=ze.ops.pop(),ze.trys.pop();continue;default:if(!(G=ze.trys,G=G.length>0&&G[G.length-1])&&(Fe[0]===6||Fe[0]===2)){ze=0;continue}if(Fe[0]===3&&(!G||Fe[1]>G[0]&&Fe[1]<G[3])){ze.label=Fe[1];break}if(Fe[0]===6&&ze.label<G[1]){ze.label=G[1],G=Fe;break}if(G&&ze.label<G[2]){ze.label=G[2],ze.ops.push(Fe);break}G[2]&&ze.ops.pop(),ze.trys.pop();continue}Fe=$e.call(Je,ze)}catch(lt){Fe=[6,lt],fe=0}finally{Ke=G=0}if(Fe[0]&5)throw Fe[1];return{value:Fe[0]?Fe[1]:void 0,done:!0}}},Gt=new z.d("referenceSearchVisible",!1),It=function(){function Je($e,ze,Ke,fe,G,te,Y,de){this._defaultTreeKeyboardSupport=$e,this._editor=ze,this._editorService=fe,this._notificationService=G,this._instantiationService=te,this._storageService=Y,this._configurationService=de,this._disposables=new J.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Gt.bindTo(Ke)}return Je.get=function($e){return $e.getContribution(Je.ID)},Je.prototype.dispose=function(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(J.f)(this._widget),Object(J.f)(this._model),this._widget=void 0,this._model=void 0},Je.prototype.toggleWidget=function($e,ze,Ke){var fe=this,G;if(this._widget&&(G=this._widget.position),this.closeWidget(),!!G&&$e.containsPosition(G))return;this._peekMode=Ke,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(function(){fe.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(function(){fe._ignoreModelChangeEvent||fe.closeWidget()}));var te="peekViewLayout",Y=ln.fromJSON(this._storageService.get(te,0,"{}"));this._widget=this._instantiationService.createInstance(an,this._editor,this._defaultTreeKeyboardSupport,Y),this._widget.setTitle(T.a("labelLoading","Loading...")),this._widget.show($e),this._disposables.add(this._widget.onDidClose(function(){ze.cancel(),fe._widget&&(fe._storageService.store(te,JSON.stringify(fe._widget.layoutData),0),fe._widget=void 0),fe.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(function(Fe){var lt=Fe.element,Tt=Fe.kind;if(!lt)return;switch(Tt){case"open":(Fe.source!=="editor"||!fe._configurationService.getValue("editor.stablePeek"))&&fe.openReference(lt,!1);break;case"side":fe.openReference(lt,!0);break;case"goto":Ke?fe._gotoReference(lt):fe.openReference(lt,!1);break}}));var de=++this._requestIdPool;ze.then(function(Fe){return de!==fe._requestIdPool||!fe._widget?void 0:(fe._model&&fe._model.dispose(),fe._model=Fe,fe._widget.setModel(fe._model).then(function(){if(fe._widget&&fe._model&&fe._editor.hasModel()){fe._model.isEmpty?fe._widget.setMetaTitle(""):fe._widget.setMetaTitle(T.a("metaTitle.N","{0} ({1})",fe._model.title,fe._model.references.length));var lt=fe._editor.getModel().uri,Tt=new jt.a($e.startLineNumber,$e.startColumn),Jt=fe._model.nearestReference(lt,Tt);if(Jt)return fe._widget.setSelection(Jt).then(function(){fe._widget&&fe._editor.getOption(65)==="editor"&&fe._widget.focusOnPreviewEditor()})}return}))},function(Fe){fe._notificationService.error(Fe)})},Je.prototype.changeFocusBetweenPreviewAndReferences=function(){if(!this._widget)return;this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor()},Je.prototype.goToNextOrPreviousReference=function($e){return mt(this,void 0,void 0,function(){var ze,Ke,fe,G,te;return Ct(this,function(Y){switch(Y.label){case 0:return!this._editor.hasModel()||!this._model||!this._widget?[2]:(ze=this._widget.position,ze?(Ke=this._model.nearestReference(this._editor.getModel().uri,ze),Ke?(fe=this._model.nextOrPreviousReference(Ke,$e),G=this._editor.hasTextFocus(),te=this._widget.isPreviewEditorFocused(),[4,this._widget.setSelection(fe)]):[2]):[2]);case 1:return Y.sent(),[4,this._gotoReference(fe)];case 2:return Y.sent(),G?this._editor.focus():this._widget&&te&&this._widget.focusOnPreviewEditor(),[2]}})})},Je.prototype.closeWidget=function($e){$e===void 0&&($e=!0),this._referenceSearchVisible.reset(),this._disposables.clear(),Object(J.f)(this._widget),Object(J.f)(this._model),this._widget=void 0,this._model=void 0,$e&&this._editor.focus(),this._requestIdPool+=1},Je.prototype._gotoReference=function($e){var ze=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var Ke=u.a.lift($e.range).collapseToStart();return this._editorService.openCodeEditor({resource:$e.uri,options:{selection:Ke}},this._editor).then(function(fe){var G;if(ze._ignoreModelChangeEvent=!1,!fe||!ze._widget){ze.closeWidget();return}if(ze._editor===fe)ze._widget.show(Ke),ze._widget.focusOnReferenceTree();else{var te=Je.get(fe),Y=ze._model.clone();ze.closeWidget(),fe.focus(),te.toggleWidget(Ke,Object(vt.f)(function(de){return Promise.resolve(Y)}),(G=ze._peekMode)!==null&&G!==void 0?G:!1)}},function(fe){ze._ignoreModelChangeEvent=!1,Object(re.e)(fe)})},Je.prototype.openReference=function($e,ze){ze||this.closeWidget();var Ke=$e.uri,fe=$e.range;this._editorService.openCodeEditor({resource:Ke,options:{selection:fe}},this._editor,ze)},Je.ID="editor.contrib.referencesController",Je=ct([bt(2,z.c),bt(3,N.a),bt(4,ft.a),bt(5,H.a),bt(6,U.a),bt(7,M.a)],Je),Je}();function Et(Je,$e){var ze=Object(pe.d)(Je);if(!ze)return;var Ke=It.get(ze);Ke&&$e(Ke)}xt.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(at.a)(2048|41,60),when:z.a.or(Gt,pe.b.inPeekEditor),handler:function($e){Et($e,function(ze){ze.changeFocusBetweenPreviewAndReferences()})}}),xt.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:z.a.or(Gt,pe.b.inPeekEditor),handler:function($e){Et($e,function(ze){ze.goToNextOrPreviousReference(!0)})}}),xt.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1024|62,secondary:[1024|70],when:z.a.or(Gt,pe.b.inPeekEditor),handler:function($e){Et($e,function(ze){ze.goToNextOrPreviousReference(!1)})}}),tt.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),tt.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),tt.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),tt.a.registerCommand("closeReferenceSearch",function(Je){return Et(Je,function($e){return $e.closeWidget()})}),xt.a.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1024|9],when:z.a.and(pe.b.inPeekEditor,z.a.not("config.editor.stablePeek"))}),xt.a.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1024|9],when:z.a.and(Gt,z.a.not("config.editor.stablePeek"))}),xt.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2048|3,mac:{primary:256|3},when:z.a.and(Gt,Pe.d),handler:function($e){var ze,Ke=$e.get(Pe.a),fe=(ze=Ke.lastFocusedList)===null||ze===void 0?void 0:ze.getFocus();Array.isArray(fe)&&fe[0]instanceof A.b&&Et($e,function(G){return G.openReference(fe[0],!0)})}}),tt.a.registerCommand("openReference",function(Je){var $e,ze=Je.get(Pe.a),Ke=($e=ze.lastFocusedList)===null||$e===void 0?void 0:$e.getFocus();Array.isArray(Ke)&&Ke[0]instanceof A.b&&Et(Je,function(fe){return fe.openReference(Ke[0],!1)})})},QaAZ:function(_t,P,e){},QiAa:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return e.e(281).then(e.bind(null,"j6Xs"))}})},QuOb:function(_t,P,e){"use strict";e.d(P,"a",function(){return H});var T=e("MI8n"),re=e("pmY6"),J=function(){var L=function(v,S){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,u){g.__proto__=u}||function(g,u){for(var s in u)u.hasOwnProperty(s)&&(g[s]=u[s])},L(v,S)};return function(f,v){L(f,v);function S(){this.constructor=f}f.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}}(),N=function(){function L(f,v,S,g,u,s){f=f|0,v=v|0,S=S|0,g=g|0,u=u|0,s=s|0,f<0&&(f=0),S+f>v&&(S=v-f),S<0&&(S=0),g<0&&(g=0),s+g>u&&(s=u-g),s<0&&(s=0),this.width=f,this.scrollWidth=v,this.scrollLeft=S,this.height=g,this.scrollHeight=u,this.scrollTop=s}return L.prototype.equals=function(f){return this.width===f.width&&this.scrollWidth===f.scrollWidth&&this.scrollLeft===f.scrollLeft&&this.height===f.height&&this.scrollHeight===f.scrollHeight&&this.scrollTop===f.scrollTop},L.prototype.withScrollDimensions=function(f){return new L(typeof f.width!="undefined"?f.width:this.width,typeof f.scrollWidth!="undefined"?f.scrollWidth:this.scrollWidth,this.scrollLeft,typeof f.height!="undefined"?f.height:this.height,typeof f.scrollHeight!="undefined"?f.scrollHeight:this.scrollHeight,this.scrollTop)},L.prototype.withScrollPosition=function(f){return new L(this.width,this.scrollWidth,typeof f.scrollLeft!="undefined"?f.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof f.scrollTop!="undefined"?f.scrollTop:this.scrollTop)},L.prototype.createScrollEvent=function(f){var v=this.width!==f.width,S=this.scrollWidth!==f.scrollWidth,g=this.scrollLeft!==f.scrollLeft,u=this.height!==f.height,s=this.scrollHeight!==f.scrollHeight,l=this.scrollTop!==f.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:v,scrollWidthChanged:S,scrollLeftChanged:g,heightChanged:u,scrollHeightChanged:s,scrollTopChanged:l}},L}(),H=function(L){J(f,L);function f(v,S){var g=L.call(this)||this;return g._onScroll=g._register(new T.a),g.onScroll=g._onScroll.event,g._smoothScrollDuration=v,g._scheduleAtNextAnimationFrame=S,g._state=new N(0,0,0,0,0,0),g._smoothScrolling=null,g}return f.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),L.prototype.dispose.call(this)},f.prototype.setSmoothScrollDuration=function(v){this._smoothScrollDuration=v},f.prototype.validateScrollPosition=function(v){return this._state.withScrollPosition(v)},f.prototype.getScrollDimensions=function(){return this._state},f.prototype.setScrollDimensions=function(v){var S=this._state.withScrollDimensions(v);this._setState(S),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},f.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},f.prototype.getCurrentScrollPosition=function(){return this._state},f.prototype.setScrollPositionNow=function(v){var S=this._state.withScrollPosition(v);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(S)},f.prototype.setScrollPositionSmooth=function(v){var S=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(v);if(this._smoothScrolling){v={scrollLeft:typeof v.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:v.scrollLeft,scrollTop:typeof v.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:v.scrollTop};var g=this._state.withScrollPosition(v);if(this._smoothScrolling.to.scrollLeft===g.scrollLeft&&this._smoothScrolling.to.scrollTop===g.scrollTop)return;var u=this._smoothScrolling.combine(this._state,g,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=u}else{var g=this._state.withScrollPosition(v);this._smoothScrolling=A.start(this._state,g,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!S._smoothScrolling)return;S._smoothScrolling.animationFrameDisposable=null,S._performSmoothScrolling()})},f.prototype._performSmoothScrolling=function(){var v=this;if(!this._smoothScrolling)return;var S=this._smoothScrolling.tick(),g=this._state.withScrollPosition(S);if(this._setState(g),S.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!v._smoothScrolling)return;v._smoothScrolling.animationFrameDisposable=null,v._performSmoothScrolling()})},f.prototype._setState=function(v){var S=this._state;if(S.equals(v))return;this._state=v,this._onScroll.fire(this._state.createScrollEvent(S))},f}(re.a),z=function(){function L(f,v,S){this.scrollLeft=f,this.scrollTop=v,this.isDone=S}return L}();function M(L,f){var v=f-L;return function(S){return L+v*y(S)}}function U(L,f,v){return function(S){return S<v?L(S/v):f((S-v)/(1-v))}}var A=function(){function L(f,v,S,g){this.from=f,this.to=v,this.duration=g,this._startTime=S,this.animationFrameDisposable=null,this._initAnimations()}return L.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},L.prototype._initAnimation=function(f,v,S){var g=Math.abs(f-v);if(g>2.5*S){var u=void 0,s=void 0;return f<v?(u=f+.75*S,s=v-.75*S):(u=f-.75*S,s=v+.75*S),U(M(f,u),M(s,v),.33)}return M(f,v)},L.prototype.dispose=function(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},L.prototype.acceptScrollDimensions=function(f){this.to=f.withScrollPosition(this.to),this._initAnimations()},L.prototype.tick=function(){return this._tick(Date.now())},L.prototype._tick=function(f){var v=(f-this._startTime)/this.duration;if(v<1){var S=this.scrollLeft(v),g=this.scrollTop(v);return new z(S,g,!1)}return new z(this.to.scrollLeft,this.to.scrollTop,!0)},L.prototype.combine=function(f,v,S){return L.start(f,v,S)},L.start=function(f,v,S){S=S+10;var g=Date.now()-10;return new L(f,v,g,S)},L}();function c(L){return Math.pow(L,3)}function y(L){return 1-c(1-L)}},QvA3:function(_t,P,e){},R3nR:function(_t,P,e){"use strict";e.d(P,"b",function(){return J}),e.d(P,"a",function(){return N});var T=e("Cg/j"),re=e("T8No"),J=Object(T.c)("accessibilityService"),N=new re.d("accessibilityModeEnabled",!1)},R8sh:function(_t,P,e){"use strict";e.d(P,"a",function(){return J});var T=e("Cg/j"),re="label",J=Object(T.c)(re)},RMfO:function(_t,P,e){},Rpxm:function(_t,P,e){"use strict";e.d(P,"a",function(){return g}),e.d(P,"b",function(){return u}),e.d(P,"c",function(){return E});var T=e("3/fG"),re=e("746U"),J=e("xONI"),N=e("WqXY"),H=e("7lZ/"),z=e("EffR"),M=e("q/I2"),U=e("qj0h"),A=e("i04g"),c=z.a,y=function(){function _(x,F,R){this.os=F,this.options=R,this.domNode=z.q(x,c(".monaco-keybinding")),this.didEverRender=!1,x.appendChild(this.domNode)}return _.prototype.set=function(x,F){if(this.didEverRender&&this.keybinding===x&&_.areSame(this.matches,F))return;this.keybinding=x,this.matches=F,this.render()},_.prototype.render=function(){if(z.t(this.domNode),this.keybinding){var x=this.keybinding.getParts(),F=x[0],R=x[1];F&&this.renderPart(this.domNode,F,this.matches?this.matches.firstPart:null),R&&(z.q(this.domNode,c("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,R,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0},_.prototype.renderPart=function(x,F,R){var $=A.b.modifierLabels[this.os];F.ctrlKey&&this.renderKey(x,$.ctrlKey,Boolean(R==null?void 0:R.ctrlKey),$.separator),F.shiftKey&&this.renderKey(x,$.shiftKey,Boolean(R==null?void 0:R.shiftKey),$.separator),F.altKey&&this.renderKey(x,$.altKey,Boolean(R==null?void 0:R.altKey),$.separator),F.metaKey&&this.renderKey(x,$.metaKey,Boolean(R==null?void 0:R.metaKey),$.separator);var ie=F.keyLabel;ie&&this.renderKey(x,ie,Boolean(R==null?void 0:R.keyCode),"")},_.prototype.renderKey=function(x,F,R,$){z.q(x,c("span.monaco-keybinding-key"+(R?".highlight":""),void 0,F)),$&&z.q(x,c("span.monaco-keybinding-key-separator",void 0,$))},_.prototype.renderUnbound=function(x){z.q(x,c("span.monaco-keybinding-key",void 0,Object(T.a)("unbound","Unbound")))},_.areSame=function(x,F){return x===F||!x&&!F?!0:!!x&&!!F&&Object(U.e)(x.firstPart,F.firstPart)&&Object(U.e)(x.chordPart,F.chordPart)},_}(),L=e("MNsG"),f=e("6OMU"),v=function(){var _=function(F,R){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ie){$.__proto__=ie}||function($,ie){for(var W in ie)ie.hasOwnProperty(W)&&($[W]=ie[W])},_(F,R)};return function(x,F){_(x,F);function R(){this.constructor=x}x.prototype=F===null?Object.create(F):(R.prototype=F.prototype,new R)}}(),S=0,g=function(){function _(x){x===void 0&&(x=[]),this.id=(S++).toString(),this.labelHighlights=x,this.descriptionHighlights=[]}return _.prototype.getId=function(){return this.id},_.prototype.getLabel=function(){return},_.prototype.getLabelOptions=function(){return},_.prototype.getAriaLabel=function(){return Object(f.d)([this.getLabel(),this.getDescription(),this.getDetail()]).join(", ")},_.prototype.getDetail=function(){return},_.prototype.getIcon=function(){return},_.prototype.getDescription=function(){return},_.prototype.getTooltip=function(){return},_.prototype.getDescriptionTooltip=function(){return},_.prototype.getKeybinding=function(){return},_.prototype.isHidden=function(){return!!this.hidden},_.prototype.setHighlights=function(x,F,R){this.labelHighlights=x,this.descriptionHighlights=F,this.detailHighlights=R},_.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},_.prototype.run=function(x,F){return!1},_}(),u=function(_){v(x,_);function x(F,R,$){var ie=_.call(this)||this;return ie.entry=F,ie.groupLabel=R,ie.withBorder=$,ie}return x.prototype.getGroupLabel=function(){return this.groupLabel},x.prototype.setGroupLabel=function(F){this.groupLabel=F},x.prototype.showBorder=function(){return!!this.withBorder},x.prototype.setShowBorder=function(F){this.withBorder=F},x.prototype.getLabel=function(){return this.entry?this.entry.getLabel():_.prototype.getLabel.call(this)},x.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():_.prototype.getLabelOptions.call(this)},x.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():_.prototype.getAriaLabel.call(this)},x.prototype.getDetail=function(){return this.entry?this.entry.getDetail():_.prototype.getDetail.call(this)},x.prototype.getIcon=function(){return this.entry?this.entry.getIcon():_.prototype.getIcon.call(this)},x.prototype.getDescription=function(){return this.entry?this.entry.getDescription():_.prototype.getDescription.call(this)},x.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():_.prototype.getHighlights.call(this)},x.prototype.isHidden=function(){return this.entry?this.entry.isHidden():_.prototype.isHidden.call(this)},x.prototype.setHighlights=function(F,R,$){this.entry?this.entry.setHighlights(F,R,$):_.prototype.setHighlights.call(this,F,R,$)},x.prototype.run=function(F,R){return this.entry?this.entry.run(F,R):_.prototype.run.call(this,F,R)},x}(g),s=function(){function _(){}return _.prototype.hasActions=function(x,F){return!1},_.prototype.getActions=function(x,F){return null},_}(),l="quickOpenEntry",d="quickOpenEntryGroup",p=function(){function _(x,F){x===void 0&&(x=new s),this.actionProvider=x,this.actionRunner=F}return _.prototype.getHeight=function(x){return x.getDetail()?44:22},_.prototype.getTemplateId=function(x){return x instanceof u?d:l},_.prototype.renderTemplate=function(x,F,R){var $=document.createElement("div");z.f($,"sub-content"),F.appendChild($);var ie=z.a(".quick-open-row"),W=z.a(".quick-open-row"),B=z.a(".quick-open-entry",void 0,ie,W);$.appendChild(B);var le=document.createElement("span");ie.appendChild(le);var be=new J.a(ie,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0}),De=document.createElement("span");ie.appendChild(De),z.f(De,"quick-open-entry-keybinding");var Te=new y(De,L.a),ke=document.createElement("div");W.appendChild(ke),z.f(ke,"quick-open-entry-meta");var He=new H.a(ke,!0),je;x===d&&(je=document.createElement("div"),z.f(je,"results-group"),F.appendChild(je)),z.f(F,"actions");var oe=document.createElement("div");z.f(oe,"primary-action-bar"),F.appendChild(oe);var ee=new N.a(oe,{actionRunner:this.actionRunner});return{container:F,entry:B,icon:le,label:be,detail:He,keybinding:Te,group:je,actionBar:ee}},_.prototype.renderElement=function(x,F,R,$){this.actionProvider.hasActions(null,x)?z.f(R.container,"has-actions"):z.P(R.container,"has-actions"),R.actionBar.context=x;var ie=this.actionProvider.getActions(null,x);if(R.actionBar.isEmpty()&&ie&&ie.length>0?R.actionBar.push(ie,{icon:!0,label:!1}):!R.actionBar.isEmpty()&&(!ie||ie.length===0)&&R.actionBar.clear(),x instanceof u&&x.getGroupLabel()?z.f(R.container,"has-group-label"):z.P(R.container,"has-group-label"),x instanceof u){var W=x,B=R;W.showBorder()?(z.f(B.container,"results-group-separator"),$.pickerGroupBorder&&(B.container.style.borderTopColor=$.pickerGroupBorder.toString())):(z.P(B.container,"results-group-separator"),B.container.style.borderTopColor="");var le=W.getGroupLabel()||"";B.group&&(B.group.textContent=le,$.pickerGroupForeground&&(B.group.style.color=$.pickerGroupForeground.toString()))}if(x instanceof g){var be=x.getHighlights(),De=be[0],Te=be[1],ke=be[2],He=x.getIcon()?"quick-open-entry-icon "+x.getIcon():"";R.icon.className=He;var je=x.getLabelOptions()||Object.create(null);je.matches=De||[],je.title=x.getTooltip(),je.descriptionTitle=x.getDescriptionTooltip()||x.getDescription(),je.descriptionMatches=Te||[],R.label.setLabel(x.getLabel()||"",x.getDescription(),je),R.detail.set(x.getDetail(),ke),R.keybinding.set(x.getKeybinding())}},_.prototype.disposeTemplate=function(x,F){F.actionBar.dispose(),F.actionBar=null,F.container=null,F.entry=null,F.keybinding=null,F.detail=null,F.group=null,F.icon=null,F.label.dispose(),F.label=null},_}(),E=function(){function _(x,F){x===void 0&&(x=[]),F===void 0&&(F=new s),this._entries=x,this._dataSource=this,this._renderer=new p(F),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(_.prototype,"entries",{get:function(){return this._entries},set:function(F){this._entries=F},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),_.prototype.getId=function(x){return x.getId()},_.prototype.getLabel=function(x){return re.o(x.getLabel())},_.prototype.getAriaLabel=function(x){var F=x.getAriaLabel();return F?T.a("quickOpenAriaLabelEntry","{0}, picker",x.getAriaLabel()):T.a("quickOpenAriaLabel","picker")},_.prototype.isVisible=function(x){return!x.isHidden()},_.prototype.run=function(x,F,R){return x.run(F,R)},_}()},S3by:function(_t,P,e){"use strict";var T=e("3/fG"),re=e("N0LK"),J;(function(N){N[N.Ignore=0]="Ignore",N[N.Info=1]="Info",N[N.Warning=2]="Warning",N[N.Error=3]="Error"})(J||(J={})),function(N){var H="error",z="warning",M="warn",U="info",A=Object.create(null);A[N.Error]=T.a("sev.error","Error"),A[N.Warning]=T.a("sev.warning","Warning"),A[N.Info]=T.a("sev.info","Info");function c(y){return y?re.n(H,y)?N.Error:re.n(z,y)||re.n(M,y)?N.Warning:re.n(U,y)?N.Info:N.Ignore:N.Ignore}N.fromValue=c}(J||(J={})),P.a=J},SBYE:function(_t,P,e){"use strict";e.r(P);var T=e("QaAZ"),re=e.n(T),J=e("D3Dy"),N=e("EffR"),H=e("ZlPH"),z=e("Md8J"),M=e("OBOq"),U=e("G300"),A=e("pmY6"),c=e("MNsG"),y=e("N0LK"),L=e("bY76"),f=e("sswD"),v=e("wQH0"),S=e("k7pc"),g=e("T8No"),u=e("Cg/j"),s=e("bexQ"),l=e("W9cx"),d=e("MD5Z"),p=e("t9D7"),E=e("A9l+"),_=function(){var be=function(Te,ke){return be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,je){He.__proto__=je}||function(He,je){for(var oe in je)je.hasOwnProperty(oe)&&(He[oe]=je[oe])},be(Te,ke)};return function(De,Te){be(De,Te);function ke(){this.constructor=De}De.prototype=Te===null?Object.create(Te):(ke.prototype=Te.prototype,new ke)}}(),x=function(be,De,Te,ke){var He=arguments.length,je=He<3?De:ke===null?ke=Object.getOwnPropertyDescriptor(De,Te):ke,oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(be,De,Te,ke);else for(var ee=be.length-1;ee>=0;ee--)(oe=be[ee])&&(je=(He<3?oe(je):He>3?oe(De,Te,je):oe(De,Te))||je);return He>3&&je&&Object.defineProperty(De,Te,je),je},F=function(be,De){return function(Te,ke){De(Te,ke,be)}},R=new g.d("accessibilityHelpWidgetVisible",!1),$=function(be){_(De,be);function De(Te,ke){var He=be.call(this)||this;return He._editor=Te,He._widget=He._register(ke.createInstance(W,He._editor)),He}return De.get=function(Te){return Te.getContribution(De.ID)},De.prototype.show=function(){this._widget.show()},De.prototype.hide=function(){this._widget.hide()},De.ID="editor.contrib.accessibilityHelpController",De=x([F(1,u.a)],De),De}(A.a);function ie(be,De){return!be||be.length===0?E.a.noSelection:be.length===1?De?y.r(E.a.singleSelectionRange,be[0].positionLineNumber,be[0].positionColumn,De):y.r(E.a.singleSelection,be[0].positionLineNumber,be[0].positionColumn):De?y.r(E.a.multiSelectionRange,be.length,De):be.length>0?y.r(E.a.multiSelection,be.length):""}var W=function(be){_(De,be);function De(Te,ke,He,je){var oe=be.call(this)||this;return oe._contextKeyService=ke,oe._keybindingService=He,oe._openerService=je,oe._editor=Te,oe._isVisibleKey=R.bindTo(oe._contextKeyService),oe._domNode=Object(H.b)(document.createElement("div")),oe._domNode.setClassName("accessibilityHelpWidget"),oe._domNode.setDisplay("none"),oe._domNode.setAttribute("role","dialog"),oe._domNode.setAttribute("aria-hidden","true"),oe._contentDomNode=Object(H.b)(document.createElement("div")),oe._contentDomNode.setAttribute("role","document"),oe._domNode.appendChild(oe._contentDomNode),oe._isVisible=!1,oe._register(oe._editor.onDidLayoutChange(function(){oe._isVisible&&oe._layout()})),oe._register(N.o(oe._contentDomNode.domNode,"keydown",function(ee){if(!oe._isVisible)return;if(ee.equals(2048|35)&&(Object(M.a)(E.a.emergencyConfOn),oe._editor.updateOptions({accessibilitySupport:"on"}),N.t(oe._contentDomNode.domNode),oe._buildContent(),oe._contentDomNode.domNode.focus(),ee.preventDefault(),ee.stopPropagation()),ee.equals(2048|38)){Object(M.a)(E.a.openingDocs);var ae=oe._editor.getRawOptions().accessibilityHelpUrl;typeof ae=="undefined"&&(ae="https://go.microsoft.com/fwlink/?linkid=852450"),oe._openerService.open(L.a.parse(ae)),ee.preventDefault(),ee.stopPropagation()}})),oe.onblur(oe._contentDomNode.domNode,function(){oe.hide()}),oe._editor.addOverlayWidget(oe),oe}return De.prototype.dispose=function(){this._editor.removeOverlayWidget(this),be.prototype.dispose.call(this)},De.prototype.getId=function(){return De.ID},De.prototype.getDomNode=function(){return this._domNode.domNode},De.prototype.getPosition=function(){return{preference:null}},De.prototype.show=function(){if(this._isVisible)return;this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus()},De.prototype._descriptionForCommand=function(Te,ke,He){var je=this._keybindingService.lookupKeybinding(Te);return je?y.r(ke,je.getAriaLabel()):y.r(He,Te)},De.prototype._buildContent=function(){var Te=this._editor.getOptions(),ke=this._editor.getSelections(),He=0;if(ke){var je=this._editor.getModel();je&&ke.forEach(function(q){He+=je.getValueLengthInRange(q)})}var oe=ie(ke,He);Te.get(45)?Te.get(68)?oe+=E.a.readonlyDiffEditor:oe+=E.a.editableDiffEditor:Te.get(68)?oe+=E.a.readonlyEditor:oe+=E.a.editableEditor;var ee=c.e?E.a.changeConfigToOnMac:E.a.changeConfigToOnWinLinux;switch(Te.get(2)){case 0:oe+=`
- `+ee;break;case 2:oe+=`
- `+E.a.auto_on;break;case 1:oe+=`
- `+E.a.auto_off,oe+=" "+ee;break}Te.get(106)?oe+=`
- `+this._descriptionForCommand(S.ToggleTabFocusModeAction.ID,E.a.tabFocusModeOnMsg,E.a.tabFocusModeOnMsgNoKb):oe+=`
- `+this._descriptionForCommand(S.ToggleTabFocusModeAction.ID,E.a.tabFocusModeOffMsg,E.a.tabFocusModeOffMsgNoKb);var ae=c.e?E.a.openDocMac:E.a.openDocWinLinux;oe+=`
- `+ae,oe+=`
`+E.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(z.b)(oe)),this._contentDomNode.domNode.setAttribute("aria-label",oe)},De.prototype.hide=function(){if(!this._isVisible)return;this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,N.t(this._contentDomNode.domNode),this._editor.focus()},De.prototype._layout=function(){var Te=this._editor.getLayoutInfo(),ke=Math.max(5,Math.min(De.WIDTH,Te.width-40)),He=Math.max(5,Math.min(De.HEIGHT,Te.height-40));this._domNode.setWidth(ke),this._domNode.setHeight(He);var je=Math.round((Te.height-He)/2);this._domNode.setTop(je);var oe=Math.round((Te.width-ke)/2);this._domNode.setLeft(oe)},De.ID="editor.contrib.accessibilityHelpWidget",De.WIDTH=500,De.HEIGHT=300,De=x([F(1,g.c),F(2,s.a),F(3,l.a)],De),De}(U.a),B=function(be){_(De,be);function De(){return be.call(this,{id:"editor.action.showAccessibilityHelp",label:E.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:v.a.focus,primary:J.i?2048|59:512|59,weight:100}})||this}return De.prototype.run=function(Te,ke){var He=$.get(ke);He&&He.show()},De}(f.b);Object(f.h)($.ID,$),Object(f.f)(B);var le=f.c.bindToContribution($.get);Object(f.g)(new le({id:"closeAccessibilityHelp",precondition:R,handler:function(De){return De.hide()},kbOpts:{weight:100+100,kbExpr:v.a.focus,primary:9,secondary:[1024|9]}})),Object(p.e)(function(be,De){var Te=be.getColor(d.Q);Te&&De.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+Te+"; }");var ke=be.getColor(d.S);ke&&De.addRule(".monaco-editor .accessibilityHelpWidget { color: "+ke+"; }");var He=be.getColor(d.hc);He&&De.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+He+"; }");var je=be.getColor(d.e);je&&De.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+je+"; }")})},Sdnv:function(_t,P,e){"use strict";e.d(P,"a",function(){return T});function T(re,J,N){return Math.min(Math.max(re,J),N)}},SvYn:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return e.e(253).then(e.bind(null,"Dsrv"))}})},T8No:function(_t,P,e){"use strict";e.d(P,"a",function(){return N}),e.d(P,"b",function(){return f}),e.d(P,"d",function(){return v}),e.d(P,"c",function(){return S}),e.d(P,"e",function(){return g});var T=e("N0LK"),re=e("Cg/j"),J=function(){var u=function(l,d){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,E){p.__proto__=E}||function(p,E){for(var _ in E)E.hasOwnProperty(_)&&(p[_]=E[_])},u(l,d)};return function(s,l){u(s,l);function d(){this.constructor=s}s.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),N=function(){function u(){}return u.has=function(s){return z.create(s)},u.equals=function(s,l){return M.create(s,l)},u.regex=function(s,l){return c.create(s,l)},u.not=function(s){return A.create(s)},u.and=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return L.create(s)},u.or=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return f.create(s)},u.deserialize=function(s,l){return l===void 0&&(l=!1),s?this._deserializeOrExpression(s,l):void 0},u._deserializeOrExpression=function(s,l){var d=this,p=s.split("||");return f.create(p.map(function(E){return d._deserializeAndExpression(E,l)}))},u._deserializeAndExpression=function(s,l){var d=this,p=s.split("&&");return L.create(p.map(function(E){return d._deserializeOne(E,l)}))},u._deserializeOne=function(s,l){if(s=s.trim(),s.indexOf("!=")>=0){var d=s.split("!=");return U.create(d[0].trim(),this._deserializeValue(d[1],l))}if(s.indexOf("==")>=0){var d=s.split("==");return M.create(d[0].trim(),this._deserializeValue(d[1],l))}if(s.indexOf("=~")>=0){var d=s.split("=~");return c.create(d[0].trim(),this._deserializeRegexValue(d[1],l))}return/^\!\s*/.test(s)?A.create(s.substr(1).trim()):z.create(s)},u._deserializeValue=function(s,l){if(s=s.trim(),s==="true")return!0;if(s==="false")return!1;var d=/^'([^']*)'$/.exec(s);return d?d[1].trim():s},u._deserializeRegexValue=function(s,l){if(Object(T.x)(s)){if(l)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var d=s.indexOf("/"),p=s.lastIndexOf("/");if(d===p||d<0){if(l)throw new Error("bad regexp-value '"+s+"', missing /-enclosure");return console.warn("bad regexp-value '"+s+"', missing /-enclosure"),null}var E=s.slice(d+1,p),_=s[p+1]==="i"?"i":"";try{return new RegExp(E,_)}catch(x){if(l)throw new Error("bad regexp-value '"+s+"', parse error: "+x);return console.warn("bad regexp-value '"+s+"', parse error: "+x),null}},u}();function H(u,s){var l=u.getType(),d=s.getType();if(l!==d)return l-d;switch(l){case 1:return u.cmp(s);case 2:return u.cmp(s);case 3:return u.cmp(s);case 4:return u.cmp(s);case 6:return u.cmp(s);case 7:return u.cmp(s);case 5:return u.cmp(s);default:throw new Error("Unknown ContextKeyExpr!")}}var z=function(){function u(s){this.key=s}return u.create=function(s){return new u(s)},u.prototype.getType=function(){return 1},u.prototype.cmp=function(s){return this.key<s.key?-1:this.key>s.key?1:0},u.prototype.equals=function(s){return s instanceof u?this.key===s.key:!1},u.prototype.evaluate=function(s){return!!s.getValue(this.key)},u.prototype.keys=function(){return[this.key]},u.prototype.negate=function(){return A.create(this.key)},u}(),M=function(){function u(s,l){this.key=s,this.value=l}return u.create=function(s,l){return typeof l=="boolean"?l?z.create(s):A.create(s):new u(s,l)},u.prototype.getType=function(){return 3},u.prototype.cmp=function(s){return this.key<s.key?-1:this.key>s.key?1:this.value<s.value?-1:this.value>s.value?1:0},u.prototype.equals=function(s){return s instanceof u?this.key===s.key&&this.value===s.value:!1},u.prototype.evaluate=function(s){return s.getValue(this.key)==this.value},u.prototype.keys=function(){return[this.key]},u.prototype.negate=function(){return U.create(this.key,this.value)},u}(),U=function(){function u(s,l){this.key=s,this.value=l}return u.create=function(s,l){return typeof l=="boolean"?l?A.create(s):z.create(s):new u(s,l)},u.prototype.getType=function(){return 4},u.prototype.cmp=function(s){return this.key<s.key?-1:this.key>s.key?1:this.value<s.value?-1:this.value>s.value?1:0},u.prototype.equals=function(s){return s instanceof u?this.key===s.key&&this.value===s.value:!1},u.prototype.evaluate=function(s){return s.getValue(this.key)!=this.value},u.prototype.keys=function(){return[this.key]},u.prototype.negate=function(){return M.create(this.key,this.value)},u}(),A=function(){function u(s){this.key=s}return u.create=function(s){return new u(s)},u.prototype.getType=function(){return 2},u.prototype.cmp=function(s){return this.key<s.key?-1:this.key>s.key?1:0},u.prototype.equals=function(s){return s instanceof u?this.key===s.key:!1},u.prototype.evaluate=function(s){return!s.getValue(this.key)},u.prototype.keys=function(){return[this.key]},u.prototype.negate=function(){return z.create(this.key)},u}(),c=function(){function u(s,l){this.key=s,this.regexp=l}return u.create=function(s,l){return new u(s,l)},u.prototype.getType=function(){return 6},u.prototype.cmp=function(s){if(this.key<s.key)return-1;if(this.key>s.key)return 1;var l=this.regexp?this.regexp.source:"",d=s.regexp?s.regexp.source:"";return l<d?-1:l>d?1:0},u.prototype.equals=function(s){if(s instanceof u){var l=this.regexp?this.regexp.source:"",d=s.regexp?s.regexp.source:"";return this.key===s.key&&l===d}return!1},u.prototype.evaluate=function(s){var l=s.getValue(this.key);return this.regexp?this.regexp.test(l):!1},u.prototype.keys=function(){return[this.key]},u.prototype.negate=function(){return y.create(this)},u}(),y=function(){function u(s){this._actual=s}return u.create=function(s){return new u(s)},u.prototype.getType=function(){return 7},u.prototype.cmp=function(s){return this._actual.cmp(s._actual)},u.prototype.equals=function(s){return s instanceof u?this._actual.equals(s._actual):!1},u.prototype.evaluate=function(s){return!this._actual.evaluate(s)},u.prototype.keys=function(){return this._actual.keys()},u.prototype.negate=function(){return this._actual},u}(),L=function(){function u(s){this.expr=s}return u.create=function(s){var l=u._normalizeArr(s);return l.length===0?void 0:l.length===1?l[0]:new u(l)},u.prototype.getType=function(){return 5},u.prototype.cmp=function(s){if(this.expr.length<s.expr.length)return-1;if(this.expr.length>s.expr.length)return 1;for(var l=0,d=this.expr.length;l<d;l++){var p=H(this.expr[l],s.expr[l]);if(p!==0)return p}return 0},u.prototype.equals=function(s){if(s instanceof u){if(this.expr.length!==s.expr.length)return!1;for(var l=0,d=this.expr.length;l<d;l++)if(!this.expr[l].equals(s.expr[l]))return!1;return!0}return!1},u.prototype.evaluate=function(s){for(var l=0,d=this.expr.length;l<d;l++)if(!this.expr[l].evaluate(s))return!1;return!0},u._normalizeArr=function(s){var l=[];if(s){for(var d=0,p=s.length;d<p;d++){var E=s[d];if(!E)continue;if(E instanceof u){l=l.concat(E.expr);continue}if(E instanceof f)throw new Error('It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.');l.push(E)}l.sort(H)}return l},u.prototype.keys=function(){for(var s=[],l=0,d=this.expr;l<d.length;l++){var p=d[l];s.push.apply(s,p.keys())}return s},u.prototype.negate=function(){for(var s=[],l=0,d=this.expr;l<d.length;l++){var p=d[l];s.push(p.negate())}return f.create(s)},u}(),f=function(){function u(s){this.expr=s}return u.create=function(s){var l=u._normalizeArr(s);return l.length===0?void 0:l.length===1?l[0]:new u(l)},u.prototype.getType=function(){return 8},u.prototype.equals=function(s){if(s instanceof u){if(this.expr.length!==s.expr.length)return!1;for(var l=0,d=this.expr.length;l<d;l++)if(!this.expr[l].equals(s.expr[l]))return!1;return!0}return!1},u.prototype.evaluate=function(s){for(var l=0,d=this.expr.length;l<d;l++)if(this.expr[l].evaluate(s))return!0;return!1},u._normalizeArr=function(s){var l=[];if(s){for(var d=0,p=s.length;d<p;d++){var E=s[d];if(!E)continue;if(E instanceof u){l=l.concat(E.expr);continue}l.push(E)}l.sort(H)}return l},u.prototype.keys=function(){for(var s=[],l=0,d=this.expr;l<d.length;l++){var p=d[l];s.push.apply(s,p.keys())}return s},u.prototype.negate=function(){for(var s=[],l=0,d=this.expr;l<d.length;l++){var p=d[l];s.push(p.negate())}for(var E=function(De){return De instanceof u?De.expr:[De]};s.length>1;){for(var _=s.shift(),x=s.shift(),F=[],R=0,$=E(_);R<$.length;R++)for(var ie=$[R],W=0,B=E(x);W<B.length;W++){var le=B[W];F.push(N.and(ie,le))}s.unshift(N.or.apply(N,F))}return s[0]},u}(),v=function(u){J(s,u);function s(l,d){var p=u.call(this,l)||this;return p._defaultValue=d,p}return s.prototype.bindTo=function(l){return l.createKey(this.key,this._defaultValue)},s.prototype.getValue=function(l){return l.getContextKeyValue(this.key)},s.prototype.toNegated=function(){return N.not(this.key)},s}(z),S=Object(re.c)("contextKeyService"),g="setContext"},TQUy:function(_t,P,e){"use strict";e.d(P,"b",function(){return H}),e.d(P,"a",function(){return z});var T=e("N0LK"),re=e("4bUh"),J=e("i/Ef"),N={getInitialState:function(){return J.c},tokenize2:function(A,c,y){return Object(J.e)(0,A,c,y)}};function H(U,A){return A===void 0&&(A=N),M(U,A||N)}function z(U,A,c,y,L,f,v){for(var S="<div>",g=y,u=0,s=0,l=A.getCount();s<l;s++){var d=A.getEndOffset(s);if(d<=y)continue;for(var p="";g<d&&g<L;g++){var E=U.charCodeAt(g);switch(E){case 9:var _=f-(g+u)%f;for(u+=_-1;_>0;)p+=v?"&#160;":" ",_--;break;case 60:p+="&lt;";break;case 62:p+="&gt;";break;case 38:p+="&amp;";break;case 0:p+="&#00;";break;case 65279:case 8232:p+="\uFFFD";break;case 13:p+="&#8203";break;case 32:p+=v?"&#160;":" ";break;default:p+=String.fromCharCode(E)}}if(S+='<span style="'+A.getInlineStyle(s,c)+'">'+p+"</span>",d>L||g>=L)break}return S+="</div>",S}function M(U,A){for(var c='<div class="monaco-tokenized-source">',y=U.split(/\r\n|\r|\n/),L=A.getInitialState(),f=0,v=y.length;f<v;f++){var S=y[f];f>0&&(c+="<br/>");var g=A.tokenize2(S,L,0);re.a.convertToEndOffset(g.tokens,S.length);for(var u=new re.a(g.tokens,S),s=u.inflate(),l=0,d=0,p=s.getCount();d<p;d++){var E=s.getClassName(d),_=s.getEndOffset(d);c+='<span class="'+E+'">'+T.o(S.substring(l,_))+"</span>",l=_}L=g.endState}return c+="</div>",c}},TT2d:function(_t,P,e){},Tcc1:function(_t,P,e){"use strict";e.d(P,"a",function(){return T}),e.d(P,"b",function(){return re}),e.d(P,"c",function(){return J});var T=function(){function N(H,z,M){this.offset=H|0,this.type=z,this.language=M}return N.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},N}(),re=function(){function N(H,z){this.tokens=H,this.endState=z}return N}(),J=function(){function N(H,z){this.tokens=H,this.endState=z}return N}()},UCkY:function(_t,P,e){},URDS:function(_t,P,e){(function(T){/*!
Copyright (c) 2014 Taylor Hakes
Copyright (c) 2014 Forbes Lindesay
*/(function(re,J){J()})(this,function(){"use strict";function re(v){var S=this.constructor;return this.then(function(g){return S.resolve(v()).then(function(){return g})},function(g){return S.resolve(v()).then(function(){return S.reject(g)})})}var J=setTimeout;function N(){}function H(v,S){return function(){v.apply(S,arguments)}}function z(v){if(!(this instanceof z))throw new TypeError("Promises must be constructed via new");if(typeof v!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],L(v,this)}function M(v,S){for(;v._state===3;)v=v._value;if(v._state===0){v._deferreds.push(S);return}v._handled=!0,z._immediateFn(function(){var g=v._state===1?S.onFulfilled:S.onRejected;if(g===null){(v._state===1?U:A)(S.promise,v._value);return}var u;try{u=g(v._value)}catch(s){A(S.promise,s);return}U(S.promise,u)})}function U(v,S){try{if(S===v)throw new TypeError("A promise cannot be resolved with itself.");if(S&&(typeof S=="object"||typeof S=="function")){var g=S.then;if(S instanceof z){v._state=3,v._value=S,c(v);return}else if(typeof g=="function"){L(H(g,S),v);return}}v._state=1,v._value=S,c(v)}catch(u){A(v,u)}}function A(v,S){v._state=2,v._value=S,c(v)}function c(v){v._state===2&&v._deferreds.length===0&&z._immediateFn(function(){v._handled||z._unhandledRejectionFn(v._value)});for(var S=0,g=v._deferreds.length;S<g;S++)M(v,v._deferreds[S]);v._deferreds=null}function y(v,S,g){this.onFulfilled=typeof v=="function"?v:null,this.onRejected=typeof S=="function"?S:null,this.promise=g}function L(v,S){var g=!1;try{v(function(u){if(g)return;g=!0,U(S,u)},function(u){if(g)return;g=!0,A(S,u)})}catch(u){if(g)return;g=!0,A(S,u)}}z.prototype.catch=function(v){return this.then(null,v)},z.prototype.then=function(v,S){var g=new this.constructor(N);return M(this,new y(v,S,g)),g},z.prototype.finally=re,z.all=function(v){return new z(function(S,g){if(!v||typeof v.length=="undefined")throw new TypeError("Promise.all accepts an array");var u=Array.prototype.slice.call(v);if(u.length===0)return S([]);var s=u.length;function l(p,E){try{if(E&&(typeof E=="object"||typeof E=="function")){var _=E.then;if(typeof _=="function"){_.call(E,function(x){l(p,x)},g);return}}u[p]=E,--s===0&&S(u)}catch(x){g(x)}}for(var d=0;d<u.length;d++)l(d,u[d])})},z.resolve=function(v){return v&&typeof v=="object"&&v.constructor===z?v:new z(function(S){S(v)})},z.reject=function(v){return new z(function(S,g){g(v)})},z.race=function(v){return new z(function(S,g){for(var u=0,s=v.length;u<s;u++)v[u].then(S,g)})},z._immediateFn=typeof setImmediate=="function"&&function(v){setImmediate(v)}||function(v){J(v,0)},z._unhandledRejectionFn=function(S){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",S)};var f=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof T!="undefined")return T;throw new Error("unable to locate global object")}();"Promise"in f?f.Promise.prototype.finally||(f.Promise.prototype.finally=re):f.Promise=z})}).call(this,e("yLpj"))},UsjR:function(_t,P,e){},Uzvx:function(_t,P,e){"use strict";e.d(P,"b",function(){return re}),e.d(P,"a",function(){return J});var T=e("Cg/j"),re=Object(T.c)("contextViewService"),J=Object(T.c)("contextMenuService")},VPJY:function(_t,P,e){},Vhoy:function(_t,P,e){"use strict";e.d(P,"a",function(){return re}),e.d(P,"b",function(){return N}),e.d(P,"c",function(){return z});var T=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function re(M){return M.replace(T,function(U,A){return A?U:"\\"+U})}var J=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function N(M){return M.replace(J,function(U){return"\\"+U})}var H=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function z(M){return M.replace(H,function(U,A,c,y,L){return A?"$("+c+")":'<span class="codicon codicon-'+y+(L?" codicon-animation-"+L:"")+'"></span>'})}},Vtyv:function(_t,P,e){},VvMK:function(_t,P,e){},Vxe3:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("codeEditorService")},W9cx:function(_t,P,e){"use strict";e.d(P,"a",function(){return M}),e.d(P,"b",function(){return U}),e.d(P,"c",function(){return A});var T=e("bY76"),re=e("Cg/j"),J=e("pmY6"),N=e("N0LK"),H=function(c,y,L,f){function v(S){return S instanceof L?S:new L(function(g){g(S)})}return new(L||(L=Promise))(function(S,g){function u(d){try{l(f.next(d))}catch(p){g(p)}}function s(d){try{l(f.throw(d))}catch(p){g(p)}}function l(d){d.done?S(d.value):v(d.value).then(u,s)}l((f=f.apply(c,y||[])).next())})},z=function(c,y){var L={label:0,sent:function(){if(S[0]&1)throw S[1];return S[1]},trys:[],ops:[]},f,v,S,g;return g={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function u(l){return function(d){return s([l,d])}}function s(l){if(f)throw new TypeError("Generator is already executing.");for(;L;)try{if(f=1,v&&(S=l[0]&2?v.return:l[0]?v.throw||((S=v.return)&&S.call(v),0):v.next)&&!(S=S.call(v,l[1])).done)return S;(v=0,S)&&(l=[l[0]&2,S.value]);switch(l[0]){case 0:case 1:S=l;break;case 4:return L.label++,{value:l[1],done:!1};case 5:L.label++,v=l[1],l=[0];continue;case 7:l=L.ops.pop(),L.trys.pop();continue;default:if(!(S=L.trys,S=S.length>0&&S[S.length-1])&&(l[0]===6||l[0]===2)){L=0;continue}if(l[0]===3&&(!S||l[1]>S[0]&&l[1]<S[3])){L.label=l[1];break}if(l[0]===6&&L.label<S[1]){L.label=S[1],S=l;break}if(S&&L.label<S[2]){L.label=S[2],L.ops.push(l);break}S[2]&&L.ops.pop(),L.trys.pop();continue}l=y.call(c,L)}catch(d){l=[6,d],v=0}finally{f=S=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},M=Object(re.c)("openerService"),U=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return J.a.None},registerValidator:function(){return J.a.None},registerExternalUriResolver:function(){return J.a.None},setExternalOpener:function(){},open:function(){return H(this,void 0,void 0,function(){return z(this,function(y){return[2,!1]})})},resolveExternalUri:function(y){return H(this,void 0,void 0,function(){return z(this,function(L){return[2,{resolved:y,dispose:function(){}}]})})}});function A(c,y){return T.a.isUri(c)?Object(N.n)(c.scheme,y):Object(N.O)(c,y+":")}},WBhO:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("modeService")},WQDh:function(_t,P,e){"use strict";e.r(P),e.d(P,"SymbolEntry",function(){return He}),e.d(P,"QuickOutlineAction",function(){return je});var T=e("QvA3"),re=e("k76M"),J=e("jqj9"),N=e("JQT/"),H=e("fpMC"),z=e("N0LK"),M=e("Rpxm"),U=e("sswD"),A=e("aokT"),c=e("wQH0"),y=e("twdY"),L=e("bY76"),f=e("G2kB"),v=e("t49l"),S=e("6OMU"),g=e("vl9R"),u=e("/cxE"),s=e("QDVR"),l=function(){var oe=function(ae,q){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,X){ce.__proto__=X}||function(ce,X){for(var he in X)X.hasOwnProperty(he)&&(ce[he]=X[he])},oe(ae,q)};return function(ee,ae){oe(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),d=function(){function oe(){}return oe.prototype.remove=function(){this.parent&&delete this.parent.children[this.id]},oe.findId=function(ee,ae){var q;typeof ee=="string"?q=ae.id+"/"+ee:(q=ae.id+"/"+ee.name,ae.children[q]!==void 0&&(q=ae.id+"/"+ee.name+"_"+ee.range.startLineNumber+"_"+ee.range.startColumn));for(var ce=q,X=0;ae.children[ce]!==void 0;X++)ce=q+"_"+X;return ce},oe.empty=function(ee){for(var ae in ee.children)return!1;return!0},oe}(),p=function(oe){l(ee,oe);function ee(ae,q,ce){var X=oe.call(this)||this;return X.id=ae,X.parent=q,X.symbol=ce,X.children=Object.create(null),X}return ee}(d),E=function(oe){l(ee,oe);function ee(ae,q,ce,X){var he=oe.call(this)||this;return he.id=ae,he.parent=q,he.provider=ce,he.providerIndex=X,he.children=Object.create(null),he}return ee}(d),_=function(){function oe(){this._n=1,this._val=0}return oe.prototype.update=function(ee){return this._val=this._val+(ee-this._val)/this._n,this._n+=1,this},oe}(),x=function(oe){l(ee,oe);function ee(ae){var q=oe.call(this)||this;return q.textModel=ae,q.id="root",q.parent=void 0,q._groups=Object.create(null),q.children=Object.create(null),q.id="root",q.parent=void 0,q}return ee.create=function(ae,q){var ce=this,X=this._keys.for(ae,!0),he=ee._requests.get(X);if(!he){var Pe=new N.b;he={promiseCnt:0,source:Pe,promise:ee._create(ae,Pe.token),model:void 0},ee._requests.set(X,he);var Xe=Date.now();he.promise.then(function(){var pe=ce._keys.for(ae,!1),me=ce._requestDurations.get(pe);me||(me=new _,ce._requestDurations.set(pe,me)),me.update(Date.now()-Xe)})}return he.model?Promise.resolve(he.model):(he.promiseCnt+=1,q.onCancellationRequested(function(){--he.promiseCnt===0&&(he.source.cancel(),ee._requests.delete(X))}),new Promise(function(pe,me){he.promise.then(function(Se){he.model=Se,pe(Se)},function(Se){ee._requests.delete(X),me(Se)})}))},ee._create=function(ae,q){var ce=new N.b(q),X=new ee(ae),he=y.m.ordered(ae),Pe=he.map(function(pe,me){var Se=d.findId("provider_"+me,X),Re=new E(Se,X,pe,me);return Promise.resolve(pe.provideDocumentSymbols(X.textModel,ce.token)).then(function(Ee){for(var ve=0,Q=Ee||[];ve<Q.length;ve++){var b=Q[ve];ee._makeOutlineElement(b,Re)}return Re},function(Ee){return Object(u.f)(Ee),Re}).then(function(Ee){d.empty(Ee)?Ee.remove():X._groups[Se]=Ee})}),Xe=y.m.onDidChange(function(){var pe=y.m.ordered(ae);Object(S.g)(pe,he)||ce.cancel()});return Promise.all(Pe).then(function(){return ce.token.isCancellationRequested&&!q.isCancellationRequested?ee._create(ae,q):X._compact()}).finally(function(){Xe.dispose()})},ee._makeOutlineElement=function(ae,q){var ce=d.findId(ae,q),X=new p(ce,q,ae);if(ae.children)for(var he=0,Pe=ae.children;he<Pe.length;he++){var Xe=Pe[he];ee._makeOutlineElement(Xe,X)}q.children[X.id]=X},ee.prototype._compact=function(){var ae=0;for(var q in this._groups){var ce=this._groups[q];Object(g.b)(ce.children)===void 0?delete this._groups[q]:ae+=1}if(ae!==1)this.children=this._groups;else{var ce=Object(g.b)(this._groups);for(var q in ce.children){var X=ce.children[q];X.parent=this,this.children[X.id]=X}}return this},ee._requestDurations=new s.a(50,.7),ee._requests=new s.a(9,.75),ee._keys=new(function(){function ae(){this._counter=1,this._data=new WeakMap}return ae.prototype.for=function(q,ce){return q.id+"/"+(ce?q.getVersionId():"")+"/"+this._hash(y.m.all(q))},ae.prototype._hash=function(q){for(var ce="",X=0,he=q;X<he.length;X++){var Pe=he[X],Xe=this._data.get(Pe);typeof Xe=="undefined"&&(Xe=this._counter++,this._data.set(Pe,Xe)),ce+=Xe}return ce},ae}()),ee}(d),F=e("nnTU"),R=e("746U"),$=function(oe,ee,ae,q){function ce(X){return X instanceof ae?X:new ae(function(he){he(X)})}return new(ae||(ae=Promise))(function(X,he){function Pe(me){try{pe(q.next(me))}catch(Se){he(Se)}}function Xe(me){try{pe(q.throw(me))}catch(Se){he(Se)}}function pe(me){me.done?X(me.value):ce(me.value).then(Pe,Xe)}pe((q=q.apply(oe,ee||[])).next())})},ie=function(oe,ee){var ae={label:0,sent:function(){if(X[0]&1)throw X[1];return X[1]},trys:[],ops:[]},q,ce,X,he;return he={next:Pe(0),throw:Pe(1),return:Pe(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function Pe(pe){return function(me){return Xe([pe,me])}}function Xe(pe){if(q)throw new TypeError("Generator is already executing.");for(;ae;)try{if(q=1,ce&&(X=pe[0]&2?ce.return:pe[0]?ce.throw||((X=ce.return)&&X.call(ce),0):ce.next)&&!(X=X.call(ce,pe[1])).done)return X;(ce=0,X)&&(pe=[pe[0]&2,X.value]);switch(pe[0]){case 0:case 1:X=pe;break;case 4:return ae.label++,{value:pe[1],done:!1};case 5:ae.label++,ce=pe[1],pe=[0];continue;case 7:pe=ae.ops.pop(),ae.trys.pop();continue;default:if(!(X=ae.trys,X=X.length>0&&X[X.length-1])&&(pe[0]===6||pe[0]===2)){ae=0;continue}if(pe[0]===3&&(!X||pe[1]>X[0]&&pe[1]<X[3])){ae.label=pe[1];break}if(pe[0]===6&&ae.label<X[1]){ae.label=X[1],X=pe;break}if(X&&ae.label<X[2]){ae.label=X[2],ae.ops.push(pe);break}X[2]&&ae.ops.pop(),ae.trys.pop();continue}pe=ee.call(oe,ae)}catch(me){pe=[6,me],ce=0}finally{q=X=0}if(pe[0]&5)throw pe[1];return{value:pe[0]?pe[1]:void 0,done:!0}}};function W(oe,ee,ae){return $(this,void 0,void 0,function(){var q,ce,X,he,Pe,Xe;return ie(this,function(pe){switch(pe.label){case 0:return[4,x.create(oe,ae)];case 1:for(q=pe.sent(),ce=[],X=0,he=Object(g.d)(q.children);X<he.length;X++)Pe=he[X],Pe instanceof p?ce.push(Pe.symbol):ce.push.apply(ce,Object(g.d)(Pe.children).map(function(me){return me.symbol}));return Xe=[],ae.isCancellationRequested?[2,Xe]:(ee?le(Xe,ce,""):Xe=ce,[2,Xe.sort(B)])}})})}function B(oe,ee){return A.a.compareRangesUsingStarts(oe.range,ee.range)}function le(oe,ee,ae){for(var q=0,ce=ee;q<ce.length;q++){var X=ce[q];oe.push({kind:X.kind,tags:X.tags,name:X.name,detail:X.detail,containerName:X.containerName||ae,range:X.range,selectionRange:X.selectionRange,children:void 0}),X.children&&le(oe,X.children,X.name)}}F.a.registerCommand("_executeDocumentSymbolProvider",function(oe){for(var ee=[],ae=1;ae<arguments.length;ae++)ee[ae-1]=arguments[ae];return $(this,void 0,void 0,function(){var q,ce,X;return ie(this,function(he){switch(he.label){case 0:return q=ee[0],Object(R.a)(L.a.isUri(q)),ce=oe.get(f.a).getModel(q),ce?[2,W(ce,!1,N.a.None)]:[4,oe.get(v.a).createModelReference(q)];case 1:X=he.sent(),he.label=2;case 2:return he.trys.push([2,,4,5]),[4,W(X.object.textEditorModel,!1,N.a.None)];case 3:return[2,he.sent()];case 4:return X.dispose(),[7];case 5:return[2]}})})});var be=e("rzPn"),De=e("A9l+"),Te=function(){var oe=function(ae,q){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,X){ce.__proto__=X}||function(ce,X){for(var he in X)X.hasOwnProperty(he)&&(ce[he]=X[he])},oe(ae,q)};return function(ee,ae){oe(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),ke=":",He=function(oe){Te(ee,oe);function ee(ae,q,ce,X,he,Pe,Xe){var pe=oe.call(this)||this;return pe.name=ae,pe.type=q,pe.description=ce,pe.range=X,pe.setHighlights(he),pe.editor=Pe,pe.decorator=Xe,pe}return ee.prototype.getLabel=function(){return this.name},ee.prototype.getAriaLabel=function(){return z.r(De.e.entryAriaLabel,this.name)},ee.prototype.getIcon=function(){return this.type},ee.prototype.getDescription=function(){return this.description},ee.prototype.getType=function(){return this.type},ee.prototype.getRange=function(){return this.range},ee.prototype.run=function(ae,q){return ae===1?this.runOpen(q):this.runPreview()},ee.prototype.runOpen=function(ae){var q=this.toSelection();return this.editor.setSelection(q),this.editor.revealRangeInCenter(q,0),this.editor.focus(),!0},ee.prototype.runPreview=function(){var ae=this.toSelection();return this.editor.revealRangeInCenter(ae,0),this.decorator.decorateLine(this.range,this.editor),!1},ee.prototype.toSelection=function(){return new A.a(this.range.startLineNumber,this.range.startColumn||1,this.range.startLineNumber,this.range.startColumn||1)},ee}(M.b),je=function(oe){Te(ee,oe);function ee(){return oe.call(this,De.e.quickOutlineActionInput,{id:"editor.action.quickOutline",label:De.e.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:c.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:c.a.focus,primary:2048|1024|45,weight:100},contextMenuOpts:{group:"navigation",order:3}})||this}return ee.prototype.run=function(ae,q){var ce=this;if(!q.hasModel())return;var X=q.getModel();return y.m.has(X)?W(X,!0,N.a.None).then(function(he){if(he.length===0)return;ce._run(q,he)}):void 0},ee.prototype._run=function(ae,q){var ce=this;this._show(this.getController(ae),{getModel:function(he){return new M.c(ce.toQuickOpenEntries(ae,q,he))},getAutoFocus:function(he){return he.indexOf(ke)===0&&(he=he.substr(ke.length)),{autoFocusPrefixMatch:he,autoFocusFirstEntry:!!he}}})},ee.prototype.symbolEntry=function(ae,q,ce,X,he,Pe,Xe){return new He(ae,q,ce,A.a.lift(X),he,Pe,Xe)},ee.prototype.toQuickOpenEntries=function(ae,q,ce){var X=this.getController(ae),he=[],Pe=ce;ce.indexOf(ke)===0&&(Pe=Pe.substr(ke.length));for(var Xe=0,pe=q;Xe<pe.length;Xe++){var me=pe[Xe],Se=z.Q(me.name),Re=Object(H.f)(Pe,Se);if(Re){var Ee=void 0;me.containerName&&(Ee=me.containerName),he.push(this.symbolEntry(Se,y.z.toCssClassName(me.kind),Ee,me.range,Re,ae,X))}}if(ce&&(ce.indexOf(ke)===0?he=he.sort(this.sortScoped.bind(this,ce.toLowerCase())):he=he.sort(this.sortNormal.bind(this,ce.toLowerCase()))),he.length>0&&ce.indexOf(ke)===0){for(var ve=null,Q=null,b=0,k=0;k<he.length;k++){var se=he[k];ve!==se.getType()?(Q&&Q.setGroupLabel(this.typeToLabel(ve||"",b)),ve=se.getType(),Q=se,b=1,se.setShowBorder(k>0)):b++}Q&&Q.setGroupLabel(this.typeToLabel(ve||"",b))}else he.length>0&&he[0].setGroupLabel(z.r(De.e._symbols_,he.length));return he},ee.prototype.typeToLabel=function(ae,q){switch(ae){case"module":return z.r(De.e._modules_,q);case"class":return z.r(De.e._class_,q);case"interface":return z.r(De.e._interface_,q);case"method":return z.r(De.e._method_,q);case"function":return z.r(De.e._function_,q);case"property":return z.r(De.e._property_,q);case"variable":return z.r(De.e._variable_,q);case"var":return z.r(De.e._variable2_,q);case"constructor":return z.r(De.e._constructor_,q);case"call":return z.r(De.e._call_,q)}return ae},ee.prototype.sortNormal=function(ae,q,ce){var X=q.getLabel().toLowerCase(),he=ce.getLabel().toLowerCase(),Pe=X.localeCompare(he);if(Pe!==0)return Pe;var Xe=q.getRange(),pe=ce.getRange();return Xe.startLineNumber-pe.startLineNumber},ee.prototype.sortScoped=function(ae,q,ce){ae=ae.substr(ke.length);var X=q.getType(),he=ce.getType(),Pe=X.localeCompare(he);if(Pe!==0)return Pe;if(ae){var Xe=q.getLabel().toLowerCase(),pe=ce.getLabel().toLowerCase(),me=Xe.localeCompare(pe);if(me!==0)return me}var Se=q.getRange(),Re=ce.getRange();return Se.startLineNumber-Re.startLineNumber},ee}(be.a);Object(U.f)(je)},WqXY:function(_t,P,e){"use strict";e.d(P,"c",function(){return S}),e.d(P,"d",function(){return g}),e.d(P,"b",function(){return u}),e.d(P,"a",function(){return l});var T=e("yEoX"),re=e.n(T),J=e("MNsG"),N=e("3/fG"),H=e("pmY6"),z=e("8HAY"),M=e("EffR"),U=e("746U"),A=e("pg8w"),c=e("uDWl"),y=e("MI8n"),L=e("ZQ78"),f=e("D3Dy"),v=function(){var d=function(E,_){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,F){x.__proto__=F}||function(x,F){for(var R in F)F.hasOwnProperty(R)&&(x[R]=F[R])},d(E,_)};return function(p,E){d(p,E);function _(){this.constructor=p}p.prototype=E===null?Object.create(E):(_.prototype=E.prototype,new _)}}(),S=function(d){v(p,d);function p(E,_,x){var F=d.call(this)||this;return F.options=x,F._context=E||F,F._action=_,_ instanceof z.a&&F._register(_.onDidChange(function(R){if(!F.element)return;F.handleActionChangeEvent(R)})),F}return p.prototype.handleActionChangeEvent=function(E){E.enabled!==void 0&&this.updateEnabled(),E.checked!==void 0&&this.updateChecked(),E.class!==void 0&&this.updateClass(),E.label!==void 0&&(this.updateLabel(),this.updateTooltip()),E.tooltip!==void 0&&this.updateTooltip()},Object.defineProperty(p.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new z.b)),this._actionRunner},set:function(_){this._actionRunner=_},enumerable:!0,configurable:!0}),p.prototype.getAction=function(){return this._action},p.prototype.isEnabled=function(){return this._action.enabled},p.prototype.setActionContext=function(E){this._context=E},p.prototype.render=function(E){var _=this,x=this.element=E;this._register(A.b.addTarget(E));var F=this.options&&this.options.draggable;F&&(E.draggable=!0,f.h&&this._register(M.j(E,M.d.DRAG_START,function(R){var $;return($=R.dataTransfer)===null||$===void 0?void 0:$.setData(L.a.TEXT,_._action.label)}))),this._register(M.j(x,A.a.Tap,function(R){return _.onClick(R)})),this._register(M.j(x,M.d.MOUSE_DOWN,function(R){F||M.c.stop(R,!0),_._action.enabled&&R.button===0&&M.f(x,"active")})),this._register(M.j(x,M.d.CLICK,function(R){M.c.stop(R,!0),_.options&&_.options.isMenu?_.onClick(R):J.i(function(){return _.onClick(R)})})),this._register(M.j(x,M.d.DBLCLICK,function(R){M.c.stop(R,!0)})),[M.d.MOUSE_UP,M.d.MOUSE_OUT].forEach(function(R){_._register(M.j(x,R,function($){M.c.stop($),M.P(x,"active")}))})},p.prototype.onClick=function(E){M.c.stop(E,!0);var _;U.l(this._context)?_=E:(_=this._context,U.i(_)&&(_.event=E)),this.actionRunner.run(this._action,_)},p.prototype.focus=function(){this.element&&(this.element.focus(),M.f(this.element,"focused"))},p.prototype.blur=function(){this.element&&(this.element.blur(),M.P(this.element,"focused"))},p.prototype.updateEnabled=function(){},p.prototype.updateLabel=function(){},p.prototype.updateTooltip=function(){},p.prototype.updateClass=function(){},p.prototype.updateChecked=function(){},p.prototype.dispose=function(){this.element&&(M.R(this.element),this.element=void 0),d.prototype.dispose.call(this)},p}(H.a),g=function(d){v(p,d);function p(E){var _=d.call(this,p.ID,E,E?"separator text":"separator")||this;return _.checked=!1,_.enabled=!1,_}return p.ID="vs.actions.separator",p}(z.a),u=function(d){v(p,d);function p(E,_,x){x===void 0&&(x={});var F=d.call(this,E,_,x)||this;return F.options=x,F.options.icon=x.icon!==void 0?x.icon:!1,F.options.label=x.label!==void 0?x.label:!0,F.cssClass="",F}return p.prototype.render=function(E){d.prototype.render.call(this,E),this.element&&(this.label=M.q(this.element,M.a("a.action-label"))),this.label&&(this._action.id===g.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(M.q(this.element,M.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},p.prototype.focus=function(){d.prototype.focus.call(this),this.label&&this.label.focus()},p.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},p.prototype.updateTooltip=function(){var E=null;this.getAction().tooltip?E=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(E=this.getAction().label,this.options.keybinding&&(E=N.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",E,this.options.keybinding))),E&&this.label&&(this.label.title=E)},p.prototype.updateClass=function(){this.cssClass&&this.label&&M.Q(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(M.f(this.label,"codicon"),this.cssClass&&M.g(this.label,this.cssClass)),this.updateEnabled()):this.label&&M.P(this.label,"codicon")},p.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),M.P(this.label,"disabled"),this.label.tabIndex=0),this.element&&M.P(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),M.f(this.label,"disabled"),M.S(this.label)),this.element&&M.f(this.element,"disabled"))},p.prototype.updateChecked=function(){this.label&&(this.getAction().checked?M.f(this.label,"checked"):M.P(this.label,"checked"))},p}(S),s={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},l=function(d){v(p,d);function p(E,_){_===void 0&&(_=s);var x=d.call(this)||this;x._onDidBlur=x._register(new y.a),x.onDidBlur=x._onDidBlur.event,x._onDidCancel=x._register(new y.a),x.onDidCancel=x._onDidCancel.event,x._onDidRun=x._register(new y.a),x.onDidRun=x._onDidRun.event,x._onDidBeforeRun=x._register(new y.a),x.onDidBeforeRun=x._onDidBeforeRun.event,x.options=_,x._context=_.context,x.options.triggerKeys||(x.options.triggerKeys=s.triggerKeys),x.options.actionRunner?x._actionRunner=x.options.actionRunner:(x._actionRunner=new z.b,x._register(x._actionRunner)),x._register(x._actionRunner.onDidRun(function($){return x._onDidRun.fire($)})),x._register(x._actionRunner.onDidBeforeRun(function($){return x._onDidBeforeRun.fire($)})),x.viewItems=[],x.focusedItem=void 0,x.domNode=document.createElement("div"),x.domNode.className="monaco-action-bar",_.animated!==!1&&M.f(x.domNode,"animated");var F,R;switch(x.options.orientation){case 0:F=15,R=17;break;case 1:F=17,R=15,x.domNode.className+=" reverse";break;case 2:F=16,R=18,x.domNode.className+=" vertical";break;case 3:F=18,R=16,x.domNode.className+=" vertical reverse";break}return x._register(M.j(x.domNode,M.d.KEY_DOWN,function($){var ie=new c.a($),W=!0;ie.equals(F)?x.focusPrevious():ie.equals(R)?x.focusNext():ie.equals(9)?x.cancel():x.isTriggerKeyEvent(ie)?x.options.triggerKeys&&x.options.triggerKeys.keyDown&&x.doTrigger(ie):W=!1,W&&(ie.preventDefault(),ie.stopPropagation())})),x._register(M.j(x.domNode,M.d.KEY_UP,function($){var ie=new c.a($);x.isTriggerKeyEvent(ie)?(x.options.triggerKeys&&!x.options.triggerKeys.keyDown&&x.doTrigger(ie),ie.preventDefault(),ie.stopPropagation()):(ie.equals(2)||ie.equals(1024|2))&&x.updateFocusedItem()})),x.focusTracker=x._register(M.Z(x.domNode)),x._register(x.focusTracker.onDidBlur(function(){(document.activeElement===x.domNode||!M.K(document.activeElement,x.domNode))&&(x._onDidBlur.fire(),x.focusedItem=void 0)})),x._register(x.focusTracker.onDidFocus(function(){return x.updateFocusedItem()})),x.actionsList=document.createElement("ul"),x.actionsList.className="actions-container",x.actionsList.setAttribute("role","toolbar"),x.options.ariaLabel&&x.actionsList.setAttribute("aria-label",x.options.ariaLabel),x.domNode.appendChild(x.actionsList),E.appendChild(x.domNode),x}return p.prototype.isTriggerKeyEvent=function(E){var _=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(x){_=_||E.equals(x)}),_},p.prototype.updateFocusedItem=function(){for(var E=0;E<this.actionsList.children.length;E++){var _=this.actionsList.children[E];if(M.K(document.activeElement,_)){this.focusedItem=E;break}}},Object.defineProperty(p.prototype,"context",{get:function(){return this._context},set:function(_){this._context=_,this.viewItems.forEach(function(x){return x.setActionContext(_)})},enumerable:!0,configurable:!0}),p.prototype.getContainer=function(){return this.domNode},p.prototype.push=function(E,_){var x=this;_===void 0&&(_={});var F=Array.isArray(E)?E:[E],R=U.h(_.index)?_.index:null;F.forEach(function($){var ie=document.createElement("li");ie.className="action-item",ie.setAttribute("role","presentation"),x._register(M.j(ie,M.d.CONTEXT_MENU,function(B){B.preventDefault(),B.stopPropagation()}));var W;x.options.actionViewItemProvider&&(W=x.options.actionViewItemProvider($)),W||(W=new u(x.context,$,_)),W.actionRunner=x._actionRunner,W.setActionContext(x.context),W.render(ie),R===null||R<0||R>=x.actionsList.children.length?(x.actionsList.appendChild(ie),x.viewItems.push(W)):(x.actionsList.insertBefore(ie,x.actionsList.children[R]),x.viewItems.splice(R,0,W),R++)})},p.prototype.clear=function(){this.viewItems=Object(H.f)(this.viewItems),M.t(this.actionsList)},p.prototype.isEmpty=function(){return this.viewItems.length===0},p.prototype.focus=function(E){var _=!1,x=void 0;E===void 0?_=!0:typeof E=="number"?x=E:typeof E=="boolean"&&(_=E),_&&typeof this.focusedItem=="undefined"?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(x!==void 0&&(this.focusedItem=x),this.updateFocus())},p.prototype.focusNext=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=this.viewItems.length-1);var E=this.focusedItem,_;do this.focusedItem=(this.focusedItem+1)%this.viewItems.length,_=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!_.isEnabled());this.focusedItem===E&&!_.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},p.prototype.focusPrevious=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=0);var E=this.focusedItem,_;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),_=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!_.isEnabled());this.focusedItem===E&&!_.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},p.prototype.updateFocus=function(E,_){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:_});for(var x=0;x<this.viewItems.length;x++){var F=this.viewItems[x],R=F;x===this.focusedItem?U.g(R.isEnabled)&&(R.isEnabled()&&U.g(R.focus)?R.focus(E):this.actionsList.focus({preventScroll:_})):U.g(R.blur)&&R.blur()}},p.prototype.doTrigger=function(E){if(typeof this.focusedItem=="undefined")return;var _=this.viewItems[this.focusedItem];if(_ instanceof S){var x=_._context===null||_._context===void 0?E:_._context;this.run(_._action,x)}},p.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},p.prototype.run=function(E,_){return this._actionRunner.run(E,_)},p.prototype.dispose=function(){Object(H.f)(this.viewItems),this.viewItems=[],M.R(this.getContainer()),d.prototype.dispose.call(this)},p}(H.a)},WwIK:function(_t,P,e){"use strict";e.r(P),e.d(P,"TriggerParameterHintsAction",function(){return he});var T=e("3/fG"),re=e("pmY6"),J=e("Cg/j"),N=e("wQH0"),H=e("T8No"),z=e("sswD"),M=e("EffR"),U=e("4y0V"),A=e("OBOq"),c=e("GJhM"),y=e("MI8n"),L=e("yrU1"),f=e("WBhO"),v=e("3qCu"),S=e("X+cX"),g=e("/cxE"),u=e("twdY"),s=e("JQT/"),l=function(pe,me,Se,Re){function Ee(ve){return ve instanceof Se?ve:new Se(function(Q){Q(ve)})}return new(Se||(Se=Promise))(function(ve,Q){function b(ne){try{se(Re.next(ne))}catch(Ce){Q(Ce)}}function k(ne){try{se(Re.throw(ne))}catch(Ce){Q(Ce)}}function se(ne){ne.done?ve(ne.value):Ee(ne.value).then(b,k)}se((Re=Re.apply(pe,me||[])).next())})},d=function(pe,me){var Se={label:0,sent:function(){if(ve[0]&1)throw ve[1];return ve[1]},trys:[],ops:[]},Re,Ee,ve,Q;return Q={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function b(se){return function(ne){return k([se,ne])}}function k(se){if(Re)throw new TypeError("Generator is already executing.");for(;Se;)try{if(Re=1,Ee&&(ve=se[0]&2?Ee.return:se[0]?Ee.throw||((ve=Ee.return)&&ve.call(Ee),0):Ee.next)&&!(ve=ve.call(Ee,se[1])).done)return ve;(Ee=0,ve)&&(se=[se[0]&2,ve.value]);switch(se[0]){case 0:case 1:ve=se;break;case 4:return Se.label++,{value:se[1],done:!1};case 5:Se.label++,Ee=se[1],se=[0];continue;case 7:se=Se.ops.pop(),Se.trys.pop();continue;default:if(!(ve=Se.trys,ve=ve.length>0&&ve[ve.length-1])&&(se[0]===6||se[0]===2)){Se=0;continue}if(se[0]===3&&(!ve||se[1]>ve[0]&&se[1]<ve[3])){Se.label=se[1];break}if(se[0]===6&&Se.label<ve[1]){Se.label=ve[1],ve=se;break}if(ve&&Se.label<ve[2]){Se.label=ve[2],Se.ops.push(se);break}ve[2]&&Se.ops.pop(),Se.trys.pop();continue}se=me.call(pe,Se)}catch(ne){se=[6,ne],Ee=0}finally{Re=ve=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}},p={Visible:new H.d("parameterHintsVisible",!1),MultipleSignatures:new H.d("parameterHintsMultipleSignatures",!1)};function E(pe,me,Se,Re){var Ee=u.x.ordered(pe);return Object(S.h)(Ee.map(function(ve){return function(){return Promise.resolve(ve.provideSignatureHelp(pe,me,Re,Se)).catch(function(Q){return Object(g.f)(Q)})}}))}Object(z.e)("_executeSignatureHelpProvider",function(pe,me,Se){return l(void 0,void 0,void 0,function(){var Re;return d(this,function(Ee){switch(Ee.label){case 0:return[4,E(pe,me,{triggerKind:u.y.Invoke,isRetrigger:!1,triggerCharacter:Se.triggerCharacter},s.a.None)];case 1:return Re=Ee.sent(),Re?(setTimeout(function(){return Re.dispose()},0),[2,Re.value]):[2,void 0]}})})});var _=e("W9cx"),x=e("MD5Z"),F=e("t9D7"),R=e("MXAL"),$=function(){var pe=function(Se,Re){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ee,ve){Ee.__proto__=ve}||function(Ee,ve){for(var Q in ve)ve.hasOwnProperty(Q)&&(Ee[Q]=ve[Q])},pe(Se,Re)};return function(me,Se){pe(me,Se);function Re(){this.constructor=me}me.prototype=Se===null?Object.create(Se):(Re.prototype=Se.prototype,new Re)}}(),ie=function(){return ie=Object.assign||function(pe){for(var me,Se=1,Re=arguments.length;Se<Re;Se++){me=arguments[Se];for(var Ee in me)Object.prototype.hasOwnProperty.call(me,Ee)&&(pe[Ee]=me[Ee])}return pe},ie.apply(this,arguments)},W=function(pe,me,Se,Re){function Ee(ve){return ve instanceof Se?ve:new Se(function(Q){Q(ve)})}return new(Se||(Se=Promise))(function(ve,Q){function b(ne){try{se(Re.next(ne))}catch(Ce){Q(Ce)}}function k(ne){try{se(Re.throw(ne))}catch(Ce){Q(Ce)}}function se(ne){ne.done?ve(ne.value):Ee(ne.value).then(b,k)}se((Re=Re.apply(pe,me||[])).next())})},B=function(pe,me){var Se={label:0,sent:function(){if(ve[0]&1)throw ve[1];return ve[1]},trys:[],ops:[]},Re,Ee,ve,Q;return Q={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function b(se){return function(ne){return k([se,ne])}}function k(se){if(Re)throw new TypeError("Generator is already executing.");for(;Se;)try{if(Re=1,Ee&&(ve=se[0]&2?Ee.return:se[0]?Ee.throw||((ve=Ee.return)&&ve.call(Ee),0):Ee.next)&&!(ve=ve.call(Ee,se[1])).done)return ve;(Ee=0,ve)&&(se=[se[0]&2,ve.value]);switch(se[0]){case 0:case 1:ve=se;break;case 4:return Se.label++,{value:se[1],done:!1};case 5:Se.label++,Ee=se[1],se=[0];continue;case 7:se=Se.ops.pop(),Se.trys.pop();continue;default:if(!(ve=Se.trys,ve=ve.length>0&&ve[ve.length-1])&&(se[0]===6||se[0]===2)){Se=0;continue}if(se[0]===3&&(!ve||se[1]>ve[0]&&se[1]<ve[3])){Se.label=se[1];break}if(se[0]===6&&Se.label<ve[1]){Se.label=ve[1],ve=se;break}if(ve&&Se.label<ve[2]){Se.label=ve[2],Se.ops.push(se);break}ve[2]&&Se.ops.pop(),Se.trys.pop();continue}se=me.call(pe,Se)}catch(ne){se=[6,ne],Ee=0}finally{Re=ve=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}},le;(function(pe){pe.Default={type:0};var me=function(){function Re(Ee){this.request=Ee,this.type=2}return Re}();pe.Pending=me;var Se=function(){function Re(Ee){this.hints=Ee,this.type=1}return Re}();pe.Active=Se})(le||(le={}));var be=function(pe){$(me,pe);function me(Se,Re){Re===void 0&&(Re=me.DEFAULT_DELAY);var Ee=pe.call(this)||this;return Ee._onChangedHints=Ee._register(new y.a),Ee.onChangedHints=Ee._onChangedHints.event,Ee.triggerOnType=!1,Ee._state=le.Default,Ee._pendingTriggers=[],Ee._lastSignatureHelpResult=Ee._register(new re.d),Ee.triggerChars=new R.b,Ee.retriggerChars=new R.b,Ee.triggerId=0,Ee.editor=Se,Ee.throttledDelayer=new S.a(Re),Ee._register(Ee.editor.onDidChangeConfiguration(function(){return Ee.onEditorConfigurationChange()})),Ee._register(Ee.editor.onDidChangeModel(function(ve){return Ee.onModelChanged()})),Ee._register(Ee.editor.onDidChangeModelLanguage(function(ve){return Ee.onModelChanged()})),Ee._register(Ee.editor.onDidChangeCursorSelection(function(ve){return Ee.onCursorChange(ve)})),Ee._register(Ee.editor.onDidChangeModelContent(function(ve){return Ee.onModelContentChange()})),Ee._register(u.x.onDidChange(Ee.onModelChanged,Ee)),Ee._register(Ee.editor.onDidType(function(ve){return Ee.onDidType(ve)})),Ee.onEditorConfigurationChange(),Ee.onModelChanged(),Ee}return Object.defineProperty(me.prototype,"state",{get:function(){return this._state},set:function(Re){this._state.type===2&&this._state.request.cancel(),this._state=Re},enumerable:!0,configurable:!0}),me.prototype.cancel=function(Se){Se===void 0&&(Se=!1),this.state=le.Default,this.throttledDelayer.cancel(),Se||this._onChangedHints.fire(void 0)},me.prototype.trigger=function(Se,Re){var Ee=this,ve=this.editor.getModel();if(!ve||!u.x.has(ve))return;var Q=++this.triggerId;this._pendingTriggers.push(Se),this.throttledDelayer.trigger(function(){return Ee.doTrigger(Q)},Re).catch(g.e)},me.prototype.next=function(){if(this.state.type!==1)return;var Se=this.state.hints.signatures.length,Re=this.state.hints.activeSignature,Ee=Re%Se===Se-1,ve=this.editor.getOption(64).cycle;if((Se<2||Ee)&&!ve){this.cancel();return}this.updateActiveSignature(Ee&&ve?0:Re+1)},me.prototype.previous=function(){if(this.state.type!==1)return;var Se=this.state.hints.signatures.length,Re=this.state.hints.activeSignature,Ee=Re===0,ve=this.editor.getOption(64).cycle;if((Se<2||Ee)&&!ve){this.cancel();return}this.updateActiveSignature(Ee&&ve?Se-1:Re-1)},me.prototype.updateActiveSignature=function(Se){if(this.state.type!==1)return;this.state=new le.Active(ie(ie({},this.state.hints),{activeSignature:Se})),this._onChangedHints.fire(this.state.hints)},me.prototype.doTrigger=function(Se){return W(this,void 0,void 0,function(){var Re,Ee,ve,Q,b,k,se,ne;return B(this,function(Ce){switch(Ce.label){case 0:if(Re=this.state.type===1||this.state.type===2,Ee=this.state.type===1?this.state.hints:void 0,this.cancel(!0),this._pendingTriggers.length===0)return[2,!1];if(ve=this._pendingTriggers.reduce(De),this._pendingTriggers=[],Q={triggerKind:ve.triggerKind,triggerCharacter:ve.triggerCharacter,isRetrigger:Re,activeSignatureHelp:Ee},!this.editor.hasModel())return[2,!1];b=this.editor.getModel(),k=this.editor.getPosition(),this.state=new le.Pending(Object(S.f)(function(Oe){return E(b,k,Q,Oe)})),Ce.label=1;case 1:return Ce.trys.push([1,3,,4]),[4,this.state.request];case 2:if(se=Ce.sent(),Se!==this.triggerId)return se==null||se.dispose(),[2,!1];if(!se||!se.value.signatures||se.value.signatures.length===0)return se==null||se.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),[2,!1];return this.state=new le.Active(se.value),this._lastSignatureHelpResult.value=se,this._onChangedHints.fire(this.state.hints),[2,!0];return[3,4];case 3:return ne=Ce.sent(),Se===this.triggerId&&(this.state=le.Default),Object(g.e)(ne),[2,!1];case 4:return[2]}})})},Object.defineProperty(me.prototype,"isTriggered",{get:function(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()},enumerable:!0,configurable:!0}),me.prototype.onModelChanged=function(){this.cancel(),this.triggerChars=new R.b,this.retriggerChars=new R.b;var Se=this.editor.getModel();if(!Se)return;for(var Re=0,Ee=u.x.ordered(Se);Re<Ee.length;Re++){for(var ve=Ee[Re],Q=0,b=ve.signatureHelpTriggerCharacters||[];Q<b.length;Q++){var k=b[Q];this.triggerChars.add(k.charCodeAt(0)),this.retriggerChars.add(k.charCodeAt(0))}for(var se=0,ne=ve.signatureHelpRetriggerCharacters||[];se<ne.length;se++){var k=ne[se];this.retriggerChars.add(k.charCodeAt(0))}}},me.prototype.onDidType=function(Se){if(!this.triggerOnType)return;var Re=Se.length-1,Ee=Se.charCodeAt(Re);(this.triggerChars.has(Ee)||this.isTriggered&&this.retriggerChars.has(Ee))&&this.trigger({triggerKind:u.y.TriggerCharacter,triggerCharacter:Se.charAt(Re)})},me.prototype.onCursorChange=function(Se){Se.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:u.y.ContentChange})},me.prototype.onModelContentChange=function(){this.isTriggered&&this.trigger({triggerKind:u.y.ContentChange})},me.prototype.onEditorConfigurationChange=function(){this.triggerOnType=this.editor.getOption(64).enabled,this.triggerOnType||this.cancel()},me.prototype.dispose=function(){this.cancel(!0),pe.prototype.dispose.call(this)},me.DEFAULT_DELAY=120,me}(re.a);function De(pe,me){switch(me.triggerKind){case u.y.Invoke:return me;case u.y.ContentChange:return pe;case u.y.TriggerCharacter:default:return me}}var Te=e("N0LK"),ke=function(){var pe=function(Se,Re){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ee,ve){Ee.__proto__=ve}||function(Ee,ve){for(var Q in ve)ve.hasOwnProperty(Q)&&(Ee[Q]=ve[Q])},pe(Se,Re)};return function(me,Se){pe(me,Se);function Re(){this.constructor=me}me.prototype=Se===null?Object.create(Se):(Re.prototype=Se.prototype,new Re)}}(),He=function(pe,me,Se,Re){var Ee=arguments.length,ve=Ee<3?me:Re===null?Re=Object.getOwnPropertyDescriptor(me,Se):Re,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(pe,me,Se,Re);else for(var b=pe.length-1;b>=0;b--)(Q=pe[b])&&(ve=(Ee<3?Q(ve):Ee>3?Q(me,Se,ve):Q(me,Se))||ve);return Ee>3&&ve&&Object.defineProperty(me,Se,ve),ve},je=function(pe,me){return function(Se,Re){me(Se,Re,pe)}},oe=M.a,ee=function(pe){ke(me,pe);function me(Se,Re,Ee,ve){var Q=pe.call(this)||this;return Q.editor=Se,Q.renderDisposeables=Q._register(new re.b),Q.visible=!1,Q.announcedLabel=null,Q.allowEditorOverflow=!0,Q.markdownRenderer=Q._register(new v.a(Se,ve,Ee)),Q.model=Q._register(new be(Se)),Q.keyVisible=p.Visible.bindTo(Re),Q.keyMultipleSignatures=p.MultipleSignatures.bindTo(Re),Q._register(Q.model.onChangedHints(function(b){b?(Q.show(),Q.render(b)):Q.hide()})),Q}return me.prototype.createParamaterHintDOMNodes=function(){var Se=this,Re=oe(".editor-widget.parameter-hints-widget"),Ee=M.q(Re,oe(".wrapper"));Ee.tabIndex=-1;var ve=M.q(Ee,oe(".controls")),Q=M.q(ve,oe(".button.codicon.codicon-chevron-up")),b=M.q(ve,oe(".overloads")),k=M.q(ve,oe(".button.codicon.codicon-chevron-down")),se=Object(U.b)(Object(U.a)(Q,"click"));this._register(se(this.previous,this));var ne=Object(U.b)(Object(U.a)(k,"click"));this._register(ne(this.next,this));var Ce=oe(".body"),Oe=new c.a(Ce,{});this._register(Oe),Ee.appendChild(Oe.getDomNode());var we=M.q(Ce,oe(".signature")),Ve=M.q(Ce,oe(".docs"));Re.style.userSelect="text",this.domNodes={element:Re,signature:we,overloads:b,docs:Ve,scrollbar:Oe},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(function(it){Se.visible&&Se.editor.layoutContentWidget(Se)}));var Qe=function(){if(!Se.domNodes)return;var gt=Se.editor.getOption(34);Se.domNodes.element.style.fontSize=gt.fontSize+"px"};Qe(),this._register(y.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(it){return it.hasChanged(34)}).on(Qe,null)),this._register(this.editor.onDidLayoutChange(function(it){return Se.updateMaxHeight()})),this.updateMaxHeight()},me.prototype.show=function(){var Se=this;if(this.visible)return;this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(function(){Se.domNodes&&M.f(Se.domNodes.element,"visible")},100),this.editor.layoutContentWidget(this)},me.prototype.hide=function(){if(!this.visible)return;this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&M.P(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this)},me.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null},me.prototype.render=function(Se){if(!this.domNodes)return;var Re=Se.signatures.length>1;M.Y(this.domNodes.element,"multiple",Re),this.keyMultipleSignatures.set(Re),this.domNodes.signature.innerHTML="",this.domNodes.docs.innerHTML="";var Ee=Se.signatures[Se.activeSignature];if(!Ee)return;var ve=M.q(this.domNodes.signature,oe(".code")),Q=Ee.parameters.length>0,b=this.editor.getOption(34);if(ve.style.fontSize=b.fontSize+"px",ve.style.fontFamily=b.fontFamily,Q)this.renderParameters(ve,Ee,Se.activeParameter);else{var k=M.q(ve,oe("span"));k.textContent=Ee.label}this.renderDisposeables.clear();var se=Ee.parameters[Se.activeParameter];if(se&&se.documentation){var ne=oe("span.documentation");if(typeof se.documentation=="string")ne.textContent=se.documentation;else{var Ce=this.markdownRenderer.render(se.documentation);M.f(Ce.element,"markdown-docs"),this.renderDisposeables.add(Ce),ne.appendChild(Ce.element)}M.q(this.domNodes.docs,oe("p",{},ne))}if(!(Ee.documentation===void 0))if(typeof Ee.documentation=="string")M.q(this.domNodes.docs,oe("p",{},Ee.documentation));else{var Ce=this.markdownRenderer.render(Ee.documentation);M.f(Ce.element,"markdown-docs"),this.renderDisposeables.add(Ce),M.q(this.domNodes.docs,Ce.element)}var Oe=this.hasDocs(Ee,se);if(M.Y(this.domNodes.signature,"has-docs",Oe),M.Y(this.domNodes.docs,"empty",!Oe),this.domNodes.overloads.textContent=Object(Te.F)(Se.activeSignature+1,Se.signatures.length.toString().length)+"/"+Se.signatures.length,se){var we=this.getParameterLabel(Ee,Se.activeParameter);this.announcedLabel!==we&&(A.a(T.a("hint","{0}, hint",we)),this.announcedLabel=we)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()},me.prototype.hasDocs=function(Se,Re){return Re&&typeof Re.documentation=="string"&&Re.documentation.length>0||(Re&&typeof Re.documentation=="object"&&Re.documentation.value.length>0||typeof Se.documentation=="string"&&Se.documentation.length>0)?!0:typeof Se.documentation=="object"&&Se.documentation.value.length>0},me.prototype.renderParameters=function(Se,Re,Ee){var ve=this.getParameterLabelOffsets(Re,Ee),Q=ve[0],b=ve[1],k=document.createElement("span");k.textContent=Re.label.substring(0,Q);var se=document.createElement("span");se.textContent=Re.label.substring(Q,b),se.className="parameter active";var ne=document.createElement("span");ne.textContent=Re.label.substring(b),M.q(Se,k,se,ne)},me.prototype.getParameterLabel=function(Se,Re){var Ee=Se.parameters[Re];return typeof Ee.label=="string"?Ee.label:Se.label.substring(Ee.label[0],Ee.label[1])},me.prototype.getParameterLabelOffsets=function(Se,Re){var Ee=Se.parameters[Re];if(Ee){if(Array.isArray(Ee.label))return Ee.label;var ve=Se.label.lastIndexOf(Ee.label);return ve>=0?[ve,ve+Ee.label.length]:[0,0]}else return[0,0]},me.prototype.next=function(){this.editor.focus(),this.model.next()},me.prototype.previous=function(){this.editor.focus(),this.model.previous()},me.prototype.cancel=function(){this.model.cancel()},me.prototype.getDomNode=function(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element},me.prototype.getId=function(){return me.ID},me.prototype.trigger=function(Se){this.model.trigger(Se,0)},me.prototype.updateMaxHeight=function(){if(!this.domNodes)return;var Se=Math.max(this.editor.getLayoutInfo().height/4,250),Re=Se+"px";this.domNodes.element.style.maxHeight=Re;var Ee=this.domNodes.element.getElementsByClassName("wrapper");Ee.length&&(Ee[0].style.maxHeight=Re)},me.ID="editor.widget.parameterHintsWidget",me=He([je(1,H.c),je(2,_.a),je(3,f.a)],me),me}(re.a);Object(F.e)(function(pe,me){var Se=pe.getColor(x.B);if(Se){var Re=pe.type===F.b?2:1;me.addRule(".monaco-editor .parameter-hints-widget { border: "+Re+"px solid "+Se+"; }"),me.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+Se.transparent(.5)+"; }"),me.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+Se.transparent(.5)+"; }")}var Ee=pe.getColor(x.A);Ee&&me.addRule(".monaco-editor .parameter-hints-widget { background-color: "+Ee+"; }");var ve=pe.getColor(x.ec);ve&&me.addRule(".monaco-editor .parameter-hints-widget a { color: "+ve+"; }");var Q=pe.getColor(x.C);Q&&me.addRule(".monaco-editor .parameter-hints-widget { color: "+Q+"; }");var b=pe.getColor(x.dc);b&&me.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+b+"; }")});var ae=function(){var pe=function(Se,Re){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ee,ve){Ee.__proto__=ve}||function(Ee,ve){for(var Q in ve)ve.hasOwnProperty(Q)&&(Ee[Q]=ve[Q])},pe(Se,Re)};return function(me,Se){pe(me,Se);function Re(){this.constructor=me}me.prototype=Se===null?Object.create(Se):(Re.prototype=Se.prototype,new Re)}}(),q=function(pe,me,Se,Re){var Ee=arguments.length,ve=Ee<3?me:Re===null?Re=Object.getOwnPropertyDescriptor(me,Se):Re,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(pe,me,Se,Re);else for(var b=pe.length-1;b>=0;b--)(Q=pe[b])&&(ve=(Ee<3?Q(ve):Ee>3?Q(me,Se,ve):Q(me,Se))||ve);return Ee>3&&ve&&Object.defineProperty(me,Se,ve),ve},ce=function(pe,me){return function(Se,Re){me(Se,Re,pe)}},X=function(pe){ae(me,pe);function me(Se,Re){var Ee=pe.call(this)||this;return Ee.editor=Se,Ee.widget=Ee._register(Re.createInstance(ee,Ee.editor)),Ee}return me.get=function(Se){return Se.getContribution(me.ID)},me.prototype.cancel=function(){this.widget.cancel()},me.prototype.previous=function(){this.widget.previous()},me.prototype.next=function(){this.widget.next()},me.prototype.trigger=function(Se){this.widget.trigger(Se)},me.ID="editor.controller.parameterHints",me=q([ce(1,J.a)],me),me}(re.a),he=function(pe){ae(me,pe);function me(){return pe.call(this,{id:"editor.action.triggerParameterHints",label:T.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:N.a.hasSignatureHelpProvider,kbOpts:{kbExpr:N.a.editorTextFocus,primary:2048|1024|10,weight:100}})||this}return me.prototype.run=function(Se,Re){var Ee=X.get(Re);Ee&&Ee.trigger({triggerKind:u.y.Invoke})},me}(z.b);Object(z.h)(X.ID,X),Object(z.f)(he);var Pe=100+75,Xe=z.c.bindToContribution(X.get);Object(z.g)(new Xe({id:"closeParameterHints",precondition:p.Visible,handler:function(me){return me.cancel()},kbOpts:{weight:Pe,kbExpr:N.a.focus,primary:9,secondary:[1024|9]}})),Object(z.g)(new Xe({id:"showPrevParameterHint",precondition:H.a.and(p.Visible,p.MultipleSignatures),handler:function(me){return me.previous()},kbOpts:{weight:Pe,kbExpr:N.a.focus,primary:16,secondary:[512|16],mac:{primary:16,secondary:[512|16,256|46]}}})),Object(z.g)(new Xe({id:"showNextParameterHint",precondition:H.a.and(p.Visible,p.MultipleSignatures),handler:function(me){return me.next()},kbOpts:{weight:Pe,kbExpr:N.a.focus,primary:18,secondary:[512|18],mac:{primary:18,secondary:[512|18,256|44]}}}))},"X+cX":function(_t,P,e){"use strict";e.d(P,"i",function(){return N}),e.d(P,"f",function(){return H}),e.d(P,"j",function(){return z}),e.d(P,"a",function(){return M}),e.d(P,"l",function(){return U}),e.d(P,"g",function(){return A}),e.d(P,"h",function(){return c}),e.d(P,"e",function(){return y}),e.d(P,"c",function(){return L}),e.d(P,"d",function(){return f}),e.d(P,"k",function(){return v}),e.d(P,"b",function(){return S});var T=e("JQT/"),re=e("/cxE"),J=e("pmY6");function N(g){return g&&typeof g.then=="function"}function H(g){var u=new T.b,s=g(u.token),l=new Promise(function(d,p){u.token.onCancellationRequested(function(){p(re.a())}),Promise.resolve(s).then(function(E){u.dispose(),d(E)},function(E){u.dispose(),p(E)})});return new(function(){function d(){}return d.prototype.cancel=function(){u.cancel()},d.prototype.then=function(p,E){return l.then(p,E)},d.prototype.catch=function(p){return this.then(void 0,p)},d.prototype.finally=function(p){return l.finally(p)},d}())}function z(g,u,s){return Promise.race([g,new Promise(function(l){return u.onCancellationRequested(function(){return l(s)})})])}var M=function(){function g(u){this.defaultDelay=u,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return g.prototype.trigger=function(u,s){var l=this;return s===void 0&&(s=this.defaultDelay),this.task=u,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(d,p){l.doResolve=d,l.doReject=p}).then(function(){if(l.completionPromise=null,l.doResolve=null,l.task){var d=l.task;return l.task=null,d()}return})),this.timeout=setTimeout(function(){l.timeout=null,l.doResolve&&l.doResolve(null)},s),this.completionPromise},g.prototype.isTriggered=function(){return this.timeout!==null},g.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(re.a()),this.completionPromise=null)},g.prototype.cancelTimeout=function(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)},g.prototype.dispose=function(){this.cancelTimeout()},g}();function U(g,u){return u?new Promise(function(s,l){var d=setTimeout(s,g);u.onCancellationRequested(function(){clearTimeout(d),l(re.a())})}):H(function(s){return U(g,s)})}function A(g,u){u===void 0&&(u=0);var s=setTimeout(g,u);return Object(J.h)(function(){return clearTimeout(s)})}function c(g,u,s){u===void 0&&(u=function(_){return!!_}),s===void 0&&(s=null);var l=0,d=g.length,p=function E(){if(l>=d)return Promise.resolve(s);var _=g[l++],x=Promise.resolve(_());return x.then(function(F){return u(F)?Promise.resolve(F):E()})};return p()}var y=function(){function g(u,s){this._token=-1,typeof u=="function"&&typeof s=="number"&&this.setIfNotSet(u,s)}return g.prototype.dispose=function(){this.cancel()},g.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},g.prototype.cancelAndSet=function(u,s){var l=this;this.cancel(),this._token=setTimeout(function(){l._token=-1,u()},s)},g.prototype.setIfNotSet=function(u,s){var l=this;if(this._token!==-1)return;this._token=setTimeout(function(){l._token=-1,u()},s)},g}(),L=function(){function g(){this._token=-1}return g.prototype.dispose=function(){this.cancel()},g.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},g.prototype.cancelAndSet=function(u,s){this.cancel(),this._token=setInterval(function(){u()},s)},g}(),f=function(){function g(u,s){this.timeoutToken=-1,this.runner=u,this.timeout=s,this.timeoutHandler=this.onTimeout.bind(this)}return g.prototype.dispose=function(){this.cancel(),this.runner=null},g.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},g.prototype.schedule=function(u){u===void 0&&(u=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,u)},g.prototype.isScheduled=function(){return this.timeoutToken!==-1},g.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},g.prototype.doRun=function(){this.runner&&this.runner()},g}(),v;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var g=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});v=function(s){var l=setTimeout(function(){return s(g)}),d=!1;return{dispose:function(){if(d)return;d=!0,clearTimeout(l)}}}}else v=function(s,l){var d=requestIdleCallback(s,typeof l=="number"?{timeout:l}:void 0),p=!1;return{dispose:function(){if(p)return;p=!0,cancelIdleCallback(d)}}}})();var S=function(){function g(u){var s=this;this._didRun=!1,this._executor=function(){try{s._value=u()}catch(l){s._error=l}finally{s._didRun=!0}},this._handle=v(function(){return s._executor()})}return g.prototype.dispose=function(){this._handle.dispose()},g.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},g}()},XNtB:function(_t,P,e){},XQgg:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return e.e(285).then(e.bind(null,"/0xJ"))}})},XSiN:function(_t,P,e){"use strict";e.d(P,"b",function(){return H}),e.d(P,"a",function(){return z}),e.d(P,"c",function(){return M});var T=e("D3Dy"),re=e("51f4"),J=e("MNsG"),N=function(){var U=function(c,y){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,f){L.__proto__=f}||function(L,f){for(var v in f)f.hasOwnProperty(v)&&(L[v]=f[v])},U(c,y)};return function(A,c){U(A,c);function y(){this.constructor=A}A.prototype=c===null?Object.create(c):(y.prototype=c.prototype,new y)}}(),H=function(){function U(A){this.timestamp=Date.now(),this.browserEvent=A,this.leftButton=A.button===0,this.middleButton=A.button===1,this.rightButton=A.button===2,this.buttons=A.buttons,this.target=A.target,this.detail=A.detail||1,A.type==="dblclick"&&(this.detail=2),this.ctrlKey=A.ctrlKey,this.shiftKey=A.shiftKey,this.altKey=A.altKey,this.metaKey=A.metaKey,typeof A.pageX=="number"?(this.posx=A.pageX,this.posy=A.pageY):(this.posx=A.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=A.clientY+document.body.scrollTop+document.documentElement.scrollTop);var c=re.a.getPositionOfChildWindowRelativeToAncestorWindow(self,A.view);this.posx-=c.left,this.posy-=c.top}return U.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},U.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},U}(),z=function(U){N(A,U);function A(c){var y=U.call(this,c)||this;return y.dataTransfer=c.dataTransfer,y}return A}(H),M=function(){function U(A,c,y){if(c===void 0&&(c=0),y===void 0&&(y=0),this.browserEvent=A||null,this.target=A?A.target||A.targetNode||A.srcElement:null,this.deltaY=y,this.deltaX=c,A){var L=A,f=A;if(typeof L.wheelDeltaY!="undefined")this.deltaY=L.wheelDeltaY/120;else if(typeof f.VERTICAL_AXIS!="undefined"&&f.axis===f.VERTICAL_AXIS)this.deltaY=-f.detail/3;else if(A.type==="wheel"){var v=A;v.deltaMode===v.DOM_DELTA_LINE?this.deltaY=-A.deltaY:this.deltaY=-A.deltaY/40}if(typeof L.wheelDeltaX!="undefined")T.k&&J.h?this.deltaX=-(L.wheelDeltaX/120):this.deltaX=L.wheelDeltaX/120;else if(typeof f.HORIZONTAL_AXIS!="undefined"&&f.axis===f.HORIZONTAL_AXIS)this.deltaX=-A.detail/3;else if(A.type==="wheel"){var v=A;v.deltaMode===v.DOM_DELTA_LINE?this.deltaX=-A.deltaX:this.deltaX=-A.deltaX/40}this.deltaY===0&&this.deltaX===0&&A.wheelDelta&&(this.deltaY=A.wheelDelta/120)}}return U.prototype.preventDefault=function(){this.browserEvent&&(this.browserEvent.preventDefault&&this.browserEvent.preventDefault())},U.prototype.stopPropagation=function(){this.browserEvent&&(this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation())},U}()},XXBq:function(_t,P,e){},XXUj:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("telemetryService")},XtJs:function(_t,P,e){"use strict";e.r(P),e.d(P,"getOccurrencesAtPosition",function(){return R});var T=e("3/fG"),re=e("6OMU"),J=e("X+cX"),N=e("JQT/"),H=e("/cxE"),z=e("pmY6"),M=e("sswD"),U=e("aokT"),A=e("wQH0"),c=e("M1Kb"),y=e("tX9W"),L=e("twdY"),f=e("T8No"),v=e("MD5Z"),S=e("t9D7"),g=function(){var je=function(ee,ae){return je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ce){q.__proto__=ce}||function(q,ce){for(var X in ce)ce.hasOwnProperty(X)&&(q[X]=ce[X])},je(ee,ae)};return function(oe,ee){je(oe,ee);function ae(){this.constructor=oe}oe.prototype=ee===null?Object.create(ee):(ae.prototype=ee.prototype,new ae)}}(),u=function(je,oe,ee,ae){var q=arguments.length,ce=q<3?oe:ae===null?ae=Object.getOwnPropertyDescriptor(oe,ee):ae,X;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ce=Reflect.decorate(je,oe,ee,ae);else for(var he=je.length-1;he>=0;he--)(X=je[he])&&(ce=(q<3?X(ce):q>3?X(oe,ee,ce):X(oe,ee))||ce);return q>3&&ce&&Object.defineProperty(oe,ee,ce),ce},s=function(je,oe){return function(ee,ae){oe(ee,ae,je)}},l=Object(v.Tb)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},T.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),d=Object(v.Tb)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},T.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),p=Object(v.Tb)("editor.wordHighlightBorder",{light:null,dark:null,hc:v.b},T.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),E=Object(v.Tb)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:v.b},T.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),_=Object(v.Tb)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},T.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),x=Object(v.Tb)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},T.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),F=new f.d("hasWordHighlights",!1);function R(je,oe,ee){var ae=L.i.ordered(je);return Object(J.h)(ae.map(function(q){return function(){return Promise.resolve(q.provideDocumentHighlights(je,oe,ee)).then(void 0,H.f)}}),re.q)}var $=function(){function je(oe,ee,ae){var q=this;this._wordRange=this._getCurrentWordRange(oe,ee),this.result=Object(J.f)(function(ce){return q._compute(oe,ee,ae,ce)})}return je.prototype._getCurrentWordRange=function(oe,ee){var ae=oe.getWordAtPosition(ee.getPosition());return ae?new U.a(ee.startLineNumber,ae.startColumn,ee.startLineNumber,ae.endColumn):null},je.prototype.isValid=function(oe,ee,ae){for(var q=ee.startLineNumber,ce=ee.startColumn,X=ee.endColumn,he=this._getCurrentWordRange(oe,ee),Pe=Boolean(this._wordRange&&this._wordRange.equalsRange(he)),Xe=0,pe=ae.length;!Pe&&Xe<pe;Xe++){var me=oe.getDecorationRange(ae[Xe]);me&&me.startLineNumber===q&&(me.startColumn<=ce&&me.endColumn>=X&&(Pe=!0))}return Pe},je.prototype.cancel=function(){this.result.cancel()},je}(),ie=function(je){g(oe,je);function oe(){return je!==null&&je.apply(this,arguments)||this}return oe.prototype._compute=function(ee,ae,q,ce){return R(ee,ae.getPosition(),ce).then(function(X){return X||[]})},oe}($),W=function(je){g(oe,je);function oe(ee,ae,q){var ce=je.call(this,ee,ae,q)||this;return ce._selectionIsEmpty=ae.isEmpty(),ce}return oe.prototype._compute=function(ee,ae,q,ce){return Object(J.l)(250,ce).then(function(){if(!ae.isEmpty())return[];var X=ee.getWordAtPosition(ae.getPosition());if(!X)return[];var he=ee.findMatches(X.word,!0,!1,!0,q,!1);return he.map(function(Pe){return{range:Pe.range,kind:L.h.Text}})})},oe.prototype.isValid=function(ee,ae,q){var ce=ae.isEmpty();return this._selectionIsEmpty!==ce?!1:je.prototype.isValid.call(this,ee,ae,q)},oe}($);function B(je,oe,ee){return L.i.has(je)?new ie(je,oe,ee):new W(je,oe,ee)}Object(M.k)("_executeDocumentHighlights",function(je,oe){return R(je,oe,N.a.None)});var le=function(){function je(oe,ee){var ae=this;this.toUnhook=new z.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=oe,this._hasWordHighlights=F.bindTo(ee),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(61),this.model=this.editor.getModel(),this.toUnhook.add(oe.onDidChangeCursorPosition(function(q){if(ae._ignorePositionChangeEvent)return;if(!ae.occurrencesHighlight)return;ae._onPositionChanged(q)})),this.toUnhook.add(oe.onDidChangeModelContent(function(q){ae._stopAll()})),this.toUnhook.add(oe.onDidChangeConfiguration(function(q){var ce=ae.editor.getOption(61);ae.occurrencesHighlight!==ce&&(ae.occurrencesHighlight=ce,ae._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return je.prototype.hasDecorations=function(){return this._decorationIds.length>0},je.prototype.restore=function(){if(!this.occurrencesHighlight)return;this._run()},je.prototype._getSortedHighlights=function(){var oe=this;return re.d(this._decorationIds.map(function(ee){return oe.model.getDecorationRange(ee)}).sort(U.a.compareRangesUsingStarts))},je.prototype.moveNext=function(){var oe=this,ee=this._getSortedHighlights(),ae=re.k(ee,function(X){return X.containsPosition(oe.editor.getPosition())}),q=(ae+1)%ee.length,ce=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ce.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ce)}finally{this._ignorePositionChangeEvent=!1}},je.prototype.moveBack=function(){var oe=this,ee=this._getSortedHighlights(),ae=re.k(ee,function(X){return X.containsPosition(oe.editor.getPosition())}),q=(ae-1+ee.length)%ee.length,ce=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ce.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ce)}finally{this._ignorePositionChangeEvent=!1}},je.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},je.prototype._stopAll=function(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)},je.prototype._onPositionChanged=function(oe){if(!this.occurrencesHighlight){this._stopAll();return}if(oe.reason!==3){this._stopAll();return}this._run()},je.prototype._run=function(){var oe=this,ee=this.editor.getSelection();if(ee.startLineNumber!==ee.endLineNumber){this._stopAll();return}var ae=ee.startLineNumber,q=ee.startColumn,ce=ee.endColumn,X=this.model.getWordAtPosition({lineNumber:ae,column:q});if(!X||X.startColumn>q||X.endColumn<ce){this._stopAll();return}var he=this.workerRequest&&this.workerRequest.isValid(this.model,ee,this._decorationIds);if(this.lastCursorPositionChangeTime=new Date().getTime(),he)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var Pe=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=B(this.model,this.editor.getSelection(),this.editor.getOption(96)),this.workerRequest.result.then(function(Xe){Pe===oe.workerRequestTokenId&&(oe.workerRequestCompleted=!0,oe.workerRequestValue=Xe||[],oe._beginRenderDecorations())},H.e)}},je.prototype._beginRenderDecorations=function(){var oe=this,ee=new Date().getTime(),ae=this.lastCursorPositionChangeTime+250;ee>=ae?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(function(){oe.renderDecorations()},ae-ee)},je.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var oe=[],ee=0,ae=this.workerRequestValue.length;ee<ae;ee++){var q=this.workerRequestValue[ee];oe.push({range:q.range,options:je._getDecorationOptions(q.kind)})}this._decorationIds=this.editor.deltaDecorations(this._decorationIds,oe),this._hasWordHighlights.set(this.hasDecorations())},je._getDecorationOptions=function(oe){return oe===L.h.Write?this._WRITE_OPTIONS:oe===L.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS},je.prototype.dispose=function(){this._stopAll(),this.toUnhook.dispose()},je._WRITE_OPTIONS=y.a.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(S.f)(x),position:c.d.Center}}),je._TEXT_OPTIONS=y.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(S.f)(v.Mb),position:c.d.Center}}),je._REGULAR_OPTIONS=y.a.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(S.f)(_),position:c.d.Center}}),je}(),be=function(je){g(oe,je);function oe(ee,ae){var q=je.call(this)||this;q.wordHighligher=null;var ce=function(){ee.hasModel()&&(q.wordHighligher=new le(ee,ae))};return q._register(ee.onDidChangeModel(function(X){q.wordHighligher&&(q.wordHighligher.dispose(),q.wordHighligher=null),ce()})),ce(),q}return oe.get=function(ee){return ee.getContribution(oe.ID)},oe.prototype.saveViewState=function(){return!!(this.wordHighligher&&this.wordHighligher.hasDecorations())},oe.prototype.moveNext=function(){this.wordHighligher&&this.wordHighligher.moveNext()},oe.prototype.moveBack=function(){this.wordHighligher&&this.wordHighligher.moveBack()},oe.prototype.restoreViewState=function(ee){this.wordHighligher&&ee&&this.wordHighligher.restore()},oe.prototype.dispose=function(){this.wordHighligher&&(this.wordHighligher.dispose(),this.wordHighligher=null),je.prototype.dispose.call(this)},oe.ID="editor.contrib.wordHighlighter",oe=u([s(1,f.c)],oe),oe}(z.a),De=function(je){g(oe,je);function oe(ee,ae){var q=je.call(this,ae)||this;return q._isNext=ee,q}return oe.prototype.run=function(ee,ae){var q=be.get(ae);if(!q)return;this._isNext?q.moveNext():q.moveBack()},oe}(M.b),Te=function(je){g(oe,je);function oe(){return je.call(this,!0,{id:"editor.action.wordHighlight.next",label:T.a("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:F,kbOpts:{kbExpr:A.a.editorTextFocus,primary:65,weight:100}})||this}return oe}(De),ke=function(je){g(oe,je);function oe(){return je.call(this,!1,{id:"editor.action.wordHighlight.prev",label:T.a("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:F,kbOpts:{kbExpr:A.a.editorTextFocus,primary:1024|65,weight:100}})||this}return oe}(De),He=function(je){g(oe,je);function oe(){return je.call(this,{id:"editor.action.wordHighlight.trigger",label:T.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:F.toNegated(),kbOpts:{kbExpr:A.a.editorTextFocus,primary:0,weight:100}})||this}return oe.prototype.run=function(ee,ae,q){var ce=be.get(ae);if(!ce)return;ce.restoreViewState(!0)},oe}(M.b);Object(M.h)(be.ID,be),Object(M.f)(Te),Object(M.f)(ke),Object(M.f)(He),Object(S.e)(function(je,oe){var ee=je.getColor(v.M);ee&&(oe.addRule(".monaco-editor .focused .selectionHighlight { background-color: "+ee+"; }"),oe.addRule(".monaco-editor .selectionHighlight { background-color: "+ee.transparent(.5)+"; }"));var ae=je.getColor(l);ae&&oe.addRule(".monaco-editor .wordHighlight { background-color: "+ae+"; }");var q=je.getColor(d);q&&oe.addRule(".monaco-editor .wordHighlightStrong { background-color: "+q+"; }");var ce=je.getColor(v.N);ce&&oe.addRule(".monaco-editor .selectionHighlight { border: 1px "+(je.type==="hc"?"dotted":"solid")+" "+ce+"; box-sizing: border-box; }");var X=je.getColor(p);X&&oe.addRule(".monaco-editor .wordHighlight { border: 1px "+(je.type==="hc"?"dashed":"solid")+" "+X+"; box-sizing: border-box; }");var he=je.getColor(E);he&&oe.addRule(".monaco-editor .wordHighlightStrong { border: 1px "+(je.type==="hc"?"dashed":"solid")+" "+he+"; box-sizing: border-box; }")})},YHy6:function(_t,P,e){},Yr1X:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("MI8n"),re=new(function(){function J(){this._zoomLevel=0,this._onDidChangeZoomLevel=new T.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return J.prototype.getZoomLevel=function(){return this._zoomLevel},J.prototype.setZoomLevel=function(N){if(N=Math.min(Math.max(-5,N),20),this._zoomLevel===N)return;this._zoomLevel=N,this._onDidChangeZoomLevel.fire(this._zoomLevel)},J}())},Z7SF:function(_t,P,e){"use strict";e.d(P,"a",function(){return z});var T=e("cGHE"),re=e("aokT"),J=e("24hK"),N=function(M,U,A,c){function y(L){return L instanceof A?L:new A(function(f){f(L)})}return new(A||(A=Promise))(function(L,f){function v(u){try{g(c.next(u))}catch(s){f(s)}}function S(u){try{g(c.throw(u))}catch(s){f(s)}}function g(u){u.done?L(u.value):y(u.value).then(v,S)}g((c=c.apply(M,U||[])).next())})},H=function(M,U){var A={label:0,sent:function(){if(L[0]&1)throw L[1];return L[1]},trys:[],ops:[]},c,y,L,f;return f={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function v(g){return function(u){return S([g,u])}}function S(g){if(c)throw new TypeError("Generator is already executing.");for(;A;)try{if(c=1,y&&(L=g[0]&2?y.return:g[0]?y.throw||((L=y.return)&&L.call(y),0):y.next)&&!(L=L.call(y,g[1])).done)return L;(y=0,L)&&(g=[g[0]&2,L.value]);switch(g[0]){case 0:case 1:L=g;break;case 4:return A.label++,{value:g[1],done:!1};case 5:A.label++,y=g[1],g=[0];continue;case 7:g=A.ops.pop(),A.trys.pop();continue;default:if(!(L=A.trys,L=L.length>0&&L[L.length-1])&&(g[0]===6||g[0]===2)){A=0;continue}if(g[0]===3&&(!L||g[1]>L[0]&&g[1]<L[3])){A.label=g[1];break}if(g[0]===6&&A.label<L[1]){A.label=L[1],L=g;break}if(L&&A.label<L[2]){A.label=L[2],A.ops.push(g);break}L[2]&&A.ops.pop(),A.trys.pop();continue}g=U.call(M,A)}catch(u){g=[6,u],y=0}finally{c=L=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},z=function(){function M(){}return M.prototype.provideSelectionRanges=function(U,A){return N(this,void 0,void 0,function(){var c,y,L,f,v;return H(this,function(S){switch(S.label){case 0:c=[],y=function(u){var s,l;return H(this,function(d){switch(d.label){case 0:return s=[],c.push(s),l=new Map,[4,new Promise(function(p){return M._bracketsRightYield(p,0,U,u,l)})];case 1:return d.sent(),[4,new Promise(function(p){return M._bracketsLeftYield(p,0,U,u,l,s)})];case 2:return d.sent(),[2]}})},L=0,f=A,S.label=1;case 1:return L<f.length?(v=f[L],[5,y(v)]):[3,4];case 2:S.sent(),S.label=3;case 3:return L++,[3,1];case 4:return[2,c]}})})},M._bracketsRightYield=function(U,A,c,y,L){for(var f=new Map,v=Date.now();;){if(A>=M._maxRounds){U();break}if(!y){U();break}var S=c.findNextBracket(y);if(!S){U();break}var g=Date.now()-v;if(g>M._maxDuration){setTimeout(function(){return M._bracketsRightYield(U,A+1,c,y,L)});break}var u=S.close[0];if(S.isOpen){var s=f.has(u)?f.get(u):0;f.set(u,s+1)}else{var s=f.has(u)?f.get(u):0;if(s-=1,f.set(u,Math.max(0,s)),s<0){var l=L.get(u);l||(l=new J.a,L.set(u,l)),l.push(S.range)}}y=S.range.getEndPosition()}},M._bracketsLeftYield=function(U,A,c,y,L,f){for(var v=new Map,S=Date.now();;){if(A>=M._maxRounds&&L.size===0){U();break}if(!y){U();break}var g=c.findPrevBracket(y);if(!g){U();break}var u=Date.now()-S;if(u>M._maxDuration){setTimeout(function(){return M._bracketsLeftYield(U,A+1,c,y,L,f)});break}var s=g.close[0];if(g.isOpen){var l=v.has(s)?v.get(s):0;if(l-=1,v.set(s,Math.max(0,l)),l<0){var d=L.get(s);if(d){var p=d.shift();d.size===0&&L.delete(s);var E=re.a.fromPositions(g.range.getEndPosition(),p.getStartPosition()),_=re.a.fromPositions(g.range.getStartPosition(),p.getEndPosition());f.push({range:E}),f.push({range:_}),M._addBracketLeading(c,_,f)}}}else{var l=v.has(s)?v.get(s):0;v.set(s,l+1)}y=g.range.getStartPosition()}},M._addBracketLeading=function(U,A,c){if(A.startLineNumber===A.endLineNumber)return;var y=A.startLineNumber,L=U.getLineFirstNonWhitespaceColumn(y);L!==0&&L!==A.startColumn&&(c.push({range:re.a.fromPositions(new T.a(y,L),A.getEndPosition())}),c.push({range:re.a.fromPositions(new T.a(y,1),A.getEndPosition())}));var f=y-1;if(f>0){var v=U.getLineFirstNonWhitespaceColumn(f);v===A.startColumn&&v!==U.getLineLastNonWhitespaceColumn(f)&&(c.push({range:re.a.fromPositions(new T.a(f,v),A.getEndPosition())}),c.push({range:re.a.fromPositions(new T.a(f,1),A.getEndPosition())}))}},M._maxDuration=30,M._maxRounds=2,M}()},ZCR3:function(_t,P,e){"use strict";e.d(P,"a",function(){return J});var T=0;function re(){var N="$memoize"+T++,H=void 0,z=function(U,A,c){var y=null,L=null;if(typeof c.value=="function"?(y="value",L=c.value,L.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof c.get=="function"&&(y="get",L=c.get),!L)throw new Error("not supported");var f=N+":"+A;c[y]=function(){for(var v=[],S=0;S<arguments.length;S++)v[S]=arguments[S];return H=this,this.hasOwnProperty(f)||Object.defineProperty(this,f,{configurable:!0,enumerable:!1,writable:!0,value:L.apply(this,v)}),this[f]}};return z.clear=function(){if(typeof H=="undefined")return;Object.getOwnPropertyNames(H).forEach(function(M){M.indexOf(N)===0&&delete H[M]})},z}function J(N,H,z){return re()(N,H,z)}},ZIMw:function(_t,P,e){"use strict";e.d(P,"b",function(){return U}),e.d(P,"a",function(){return A});var T=e("JQT/"),re=e("/cxE"),J=e("bY76"),N=e("sswD"),H=e("aokT"),z=e("twdY"),M=e("G2kB");function U(c,y){var L=[],f=z.c.ordered(c).reverse(),v=f.map(function(S){return Promise.resolve(S.provideDocumentColors(c,y)).then(function(g){if(Array.isArray(g))for(var u=0,s=g;u<s.length;u++){var l=s[u];L.push({colorInfo:l,provider:S})}})});return Promise.all(v).then(function(){return L})}function A(c,y,L,f){return Promise.resolve(L.provideColorPresentations(c,y,f))}Object(N.j)("_executeDocumentColorProvider",function(c,y){var L=y.resource;if(!(L instanceof J.a))throw Object(re.b)();var f=c.get(M.a).getModel(L);if(!f)throw Object(re.b)();var v=[],S=z.c.ordered(f).reverse(),g=S.map(function(u){return Promise.resolve(u.provideDocumentColors(f,T.a.None)).then(function(s){if(Array.isArray(s))for(var l=0,d=s;l<d.length;l++){var p=d[l];v.push({range:p.range,color:[p.color.red,p.color.green,p.color.blue,p.color.alpha]})}})});return Promise.all(g).then(function(){return v})}),Object(N.j)("_executeColorPresentationProvider",function(c,y){var L=y.resource,f=y.color,v=y.range;if(!(L instanceof J.a)||!Array.isArray(f)||f.length!==4||!H.a.isIRange(v))throw Object(re.b)();var S=f[0],g=f[1],u=f[2],s=f[3],l=c.get(M.a).getModel(L);if(!l)throw Object(re.b)();var d={range:v,color:{red:S,green:g,blue:u,alpha:s}},p=[],E=z.c.ordered(l).reverse(),_=E.map(function(x){return Promise.resolve(x.provideColorPresentations(l,d,T.a.None)).then(function(F){Array.isArray(F)&&p.push.apply(p,F)})});return Promise.all(_).then(function(){return p})})},ZQ78:function(_t,P,e){"use strict";e.d(P,"a",function(){return T}),e.d(P,"b",function(){return re}),e.d(P,"c",function(){return J});var T={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},re=function(){function N(H){this.data=H}return N.prototype.update=function(){},N.prototype.getData=function(){return this.data},N}(),J={CurrentDragAndDropData:void 0}},"ZkA/":function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return e.e(265).then(e.bind(null,"DTUS"))}})},ZlPH:function(_t,P,e){"use strict";e.d(P,"a",function(){return re}),e.d(P,"b",function(){return J});var T=e("EffR"),re=function(){function N(H){this.domNode=H,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none"}return N.prototype.setMaxWidth=function(H){if(this._maxWidth===H)return;this._maxWidth=H,this.domNode.style.maxWidth=this._maxWidth+"px"},N.prototype.setWidth=function(H){if(this._width===H)return;this._width=H,this.domNode.style.width=this._width+"px"},N.prototype.setHeight=function(H){if(this._height===H)return;this._height=H,this.domNode.style.height=this._height+"px"},N.prototype.setTop=function(H){if(this._top===H)return;this._top=H,this.domNode.style.top=this._top+"px"},N.prototype.unsetTop=function(){if(this._top===-1)return;this._top=-1,this.domNode.style.top=""},N.prototype.setLeft=function(H){if(this._left===H)return;this._left=H,this.domNode.style.left=this._left+"px"},N.prototype.setBottom=function(H){if(this._bottom===H)return;this._bottom=H,this.domNode.style.bottom=this._bottom+"px"},N.prototype.setRight=function(H){if(this._right===H)return;this._right=H,this.domNode.style.right=this._right+"px"},N.prototype.setFontFamily=function(H){if(this._fontFamily===H)return;this._fontFamily=H,this.domNode.style.fontFamily=this._fontFamily},N.prototype.setFontWeight=function(H){if(this._fontWeight===H)return;this._fontWeight=H,this.domNode.style.fontWeight=this._fontWeight},N.prototype.setFontSize=function(H){if(this._fontSize===H)return;this._fontSize=H,this.domNode.style.fontSize=this._fontSize+"px"},N.prototype.setFontFeatureSettings=function(H){if(this._fontFeatureSettings===H)return;this._fontFeatureSettings=H,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings},N.prototype.setLineHeight=function(H){if(this._lineHeight===H)return;this._lineHeight=H,this.domNode.style.lineHeight=this._lineHeight+"px"},N.prototype.setLetterSpacing=function(H){if(this._letterSpacing===H)return;this._letterSpacing=H,this.domNode.style.letterSpacing=this._letterSpacing+"px"},N.prototype.setClassName=function(H){if(this._className===H)return;this._className=H,this.domNode.className=this._className},N.prototype.toggleClassName=function(H,z){T.Y(this.domNode,H,z),this._className=this.domNode.className},N.prototype.setDisplay=function(H){if(this._display===H)return;this._display=H,this.domNode.style.display=this._display},N.prototype.setPosition=function(H){if(this._position===H)return;this._position=H,this.domNode.style.position=this._position},N.prototype.setVisibility=function(H){if(this._visibility===H)return;this._visibility=H,this.domNode.style.visibility=this._visibility},N.prototype.setBackgroundColor=function(H){if(this._backgroundColor===H)return;this._backgroundColor=H,this.domNode.style.backgroundColor=this._backgroundColor},N.prototype.setLayerHinting=function(H){if(this._layerHint===H)return;this._layerHint=H,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":""},N.prototype.setContain=function(H){if(this._contain===H)return;this._contain=H,this.domNode.style.contain=this._contain},N.prototype.setAttribute=function(H,z){this.domNode.setAttribute(H,z)},N.prototype.removeAttribute=function(H){this.domNode.removeAttribute(H)},N.prototype.appendChild=function(H){this.domNode.appendChild(H.domNode)},N.prototype.removeChild=function(H){this.domNode.removeChild(H.domNode)},N}();function J(N){return new re(N)}},ZvGG:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return e.e(263).then(e.bind(null,"yUwd"))}})},aBYw:function(_t,P,e){"use strict";e.d(P,"a",function(){return y});var T=e("D3Dy"),re=e("pmY6"),J=e("MI8n"),N=e("MNsG"),H=function(){var L=function(v,S){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,u){g.__proto__=u}||function(g,u){for(var s in u)u.hasOwnProperty(s)&&(g[s]=u[s])},L(v,S)};return function(f,v){L(f,v);function S(){this.constructor=f}f.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}}();function z(L,f){return!!L[f]}var M=function(){function L(f,v){this.target=f.target,this.hasTriggerModifier=z(f.event,v.triggerModifier),this.hasSideBySideModifier=z(f.event,v.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=T.i||f.event.detail<=1}return L}(),U=function(){function L(f,v){this.keyCodeIsTriggerKey=f.keyCode===v.triggerKey,this.keyCodeIsSideBySideKey=f.keyCode===v.triggerSideBySideKey,this.hasTriggerModifier=z(f,v.triggerModifier)}return L}(),A=function(){function L(f,v,S,g){this.triggerKey=f,this.triggerModifier=v,this.triggerSideBySideKey=S,this.triggerSideBySideModifier=g}return L.prototype.equals=function(f){return this.triggerKey===f.triggerKey&&this.triggerModifier===f.triggerModifier&&this.triggerSideBySideKey===f.triggerSideBySideKey&&this.triggerSideBySideModifier===f.triggerSideBySideModifier},L}();function c(L){return L==="altKey"?N.e?new A(57,"metaKey",6,"altKey"):new A(5,"ctrlKey",6,"altKey"):N.e?new A(6,"altKey",57,"metaKey"):new A(6,"altKey",5,"ctrlKey")}var y=function(L){H(f,L);function f(v){var S=L.call(this)||this;return S._onMouseMoveOrRelevantKeyDown=S._register(new J.a),S.onMouseMoveOrRelevantKeyDown=S._onMouseMoveOrRelevantKeyDown.event,S._onExecute=S._register(new J.a),S.onExecute=S._onExecute.event,S._onCancel=S._register(new J.a),S.onCancel=S._onCancel.event,S._editor=v,S._opts=c(S._editor.getOption(59)),S.lastMouseMoveEvent=null,S.hasTriggerKeyOnMouseDown=!1,S._register(S._editor.onDidChangeConfiguration(function(g){if(g.hasChanged(59)){var u=c(S._editor.getOption(59));if(S._opts.equals(u))return;S._opts=u,S.lastMouseMoveEvent=null,S.hasTriggerKeyOnMouseDown=!1,S._onCancel.fire()}})),S._register(S._editor.onMouseMove(function(g){return S.onEditorMouseMove(new M(g,S._opts))})),S._register(S._editor.onMouseDown(function(g){return S.onEditorMouseDown(new M(g,S._opts))})),S._register(S._editor.onMouseUp(function(g){return S.onEditorMouseUp(new M(g,S._opts))})),S._register(S._editor.onKeyDown(function(g){return S.onEditorKeyDown(new U(g,S._opts))})),S._register(S._editor.onKeyUp(function(g){return S.onEditorKeyUp(new U(g,S._opts))})),S._register(S._editor.onMouseDrag(function(){return S.resetHandler()})),S._register(S._editor.onDidChangeCursorSelection(function(g){return S.onDidChangeCursorSelection(g)})),S._register(S._editor.onDidChangeModel(function(g){return S.resetHandler()})),S._register(S._editor.onDidChangeModelContent(function(){return S.resetHandler()})),S._register(S._editor.onDidScrollChange(function(g){(g.scrollTopChanged||g.scrollLeftChanged)&&S.resetHandler()})),S}return f.prototype.onDidChangeCursorSelection=function(v){v.selection&&v.selection.startColumn!==v.selection.endColumn&&this.resetHandler()},f.prototype.onEditorMouseMove=function(v){this.lastMouseMoveEvent=v,this._onMouseMoveOrRelevantKeyDown.fire([v,null])},f.prototype.onEditorMouseDown=function(v){this.hasTriggerKeyOnMouseDown=v.hasTriggerModifier},f.prototype.onEditorMouseUp=function(v){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(v)},f.prototype.onEditorKeyDown=function(v){this.lastMouseMoveEvent&&(v.keyCodeIsTriggerKey||v.keyCodeIsSideBySideKey&&v.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,v]):v.hasTriggerModifier&&this._onCancel.fire()},f.prototype.onEditorKeyUp=function(v){v.keyCodeIsTriggerKey&&this._onCancel.fire()},f.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},f}(re.a)},ajgA:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return e.e(280).then(e.bind(null,"Fzfo"))}})},aokT:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("cGHE"),re=function(){function J(N,H,z,M){N>z||N===z&&H>M?(this.startLineNumber=z,this.startColumn=M,this.endLineNumber=N,this.endColumn=H):(this.startLineNumber=N,this.startColumn=H,this.endLineNumber=z,this.endColumn=M)}return J.prototype.isEmpty=function(){return J.isEmpty(this)},J.isEmpty=function(N){return N.startLineNumber===N.endLineNumber&&N.startColumn===N.endColumn},J.prototype.containsPosition=function(N){return J.containsPosition(this,N)},J.containsPosition=function(N,H){return H.lineNumber<N.startLineNumber||H.lineNumber>N.endLineNumber||H.lineNumber===N.startLineNumber&&H.column<N.startColumn?!1:!(H.lineNumber===N.endLineNumber&&H.column>N.endColumn)},J.prototype.containsRange=function(N){return J.containsRange(this,N)},J.containsRange=function(N,H){return H.startLineNumber<N.startLineNumber||H.endLineNumber<N.startLineNumber||(H.startLineNumber>N.endLineNumber||H.endLineNumber>N.endLineNumber||H.startLineNumber===N.startLineNumber&&H.startColumn<N.startColumn)?!1:!(H.endLineNumber===N.endLineNumber&&H.endColumn>N.endColumn)},J.prototype.strictContainsRange=function(N){return J.strictContainsRange(this,N)},J.strictContainsRange=function(N,H){return H.startLineNumber<N.startLineNumber||H.endLineNumber<N.startLineNumber||(H.startLineNumber>N.endLineNumber||H.endLineNumber>N.endLineNumber||H.startLineNumber===N.startLineNumber&&H.startColumn<=N.startColumn)?!1:!(H.endLineNumber===N.endLineNumber&&H.endColumn>=N.endColumn)},J.prototype.plusRange=function(N){return J.plusRange(this,N)},J.plusRange=function(N,H){var z,M,U,A;return H.startLineNumber<N.startLineNumber?(z=H.startLineNumber,M=H.startColumn):H.startLineNumber===N.startLineNumber?(z=H.startLineNumber,M=Math.min(H.startColumn,N.startColumn)):(z=N.startLineNumber,M=N.startColumn),H.endLineNumber>N.endLineNumber?(U=H.endLineNumber,A=H.endColumn):H.endLineNumber===N.endLineNumber?(U=H.endLineNumber,A=Math.max(H.endColumn,N.endColumn)):(U=N.endLineNumber,A=N.endColumn),new J(z,M,U,A)},J.prototype.intersectRanges=function(N){return J.intersectRanges(this,N)},J.intersectRanges=function(N,H){var z=N.startLineNumber,M=N.startColumn,U=N.endLineNumber,A=N.endColumn,c=H.startLineNumber,y=H.startColumn,L=H.endLineNumber,f=H.endColumn;return z<c?(z=c,M=y):z===c&&(M=Math.max(M,y)),U>L?(U=L,A=f):U===L&&(A=Math.min(A,f)),z>U||z===U&&M>A?null:new J(z,M,U,A)},J.prototype.equalsRange=function(N){return J.equalsRange(this,N)},J.equalsRange=function(N,H){return!!N&&!!H&&N.startLineNumber===H.startLineNumber&&N.startColumn===H.startColumn&&N.endLineNumber===H.endLineNumber&&N.endColumn===H.endColumn},J.prototype.getEndPosition=function(){return new T.a(this.endLineNumber,this.endColumn)},J.prototype.getStartPosition=function(){return new T.a(this.startLineNumber,this.startColumn)},J.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},J.prototype.setEndPosition=function(N,H){return new J(this.startLineNumber,this.startColumn,N,H)},J.prototype.setStartPosition=function(N,H){return new J(N,H,this.endLineNumber,this.endColumn)},J.prototype.collapseToStart=function(){return J.collapseToStart(this)},J.collapseToStart=function(N){return new J(N.startLineNumber,N.startColumn,N.startLineNumber,N.startColumn)},J.fromPositions=function(N,H){return H===void 0&&(H=N),new J(N.lineNumber,N.column,H.lineNumber,H.column)},J.lift=function(N){return N?new J(N.startLineNumber,N.startColumn,N.endLineNumber,N.endColumn):null},J.isIRange=function(N){return N&&typeof N.startLineNumber=="number"&&typeof N.startColumn=="number"&&typeof N.endLineNumber=="number"&&typeof N.endColumn=="number"},J.areIntersectingOrTouching=function(N,H){return N.endLineNumber<H.startLineNumber||N.endLineNumber===H.startLineNumber&&N.endColumn<H.startColumn?!1:!(H.endLineNumber<N.startLineNumber||H.endLineNumber===N.startLineNumber&&H.endColumn<N.startColumn)},J.areIntersecting=function(N,H){return N.endLineNumber<H.startLineNumber||N.endLineNumber===H.startLineNumber&&N.endColumn<=H.startColumn?!1:!(H.endLineNumber<N.startLineNumber||H.endLineNumber===N.startLineNumber&&H.endColumn<=N.startColumn)},J.compareRangesUsingStarts=function(N,H){if(N&&H){var z=N.startLineNumber|0,M=H.startLineNumber|0;if(z===M){var U=N.startColumn|0,A=H.startColumn|0;if(U===A){var c=N.endLineNumber|0,y=H.endLineNumber|0;if(c===y){var L=N.endColumn|0,f=H.endColumn|0;return L-f}return c-y}return U-A}return z-M}var v=N?1:0,S=H?1:0;return v-S},J.compareRangesUsingEnds=function(N,H){return N.endLineNumber===H.endLineNumber?N.endColumn===H.endColumn?N.startLineNumber===H.startLineNumber?N.startColumn-H.startColumn:N.startLineNumber-H.startLineNumber:N.endColumn-H.endColumn:N.endLineNumber-H.endLineNumber},J.spansMultipleLines=function(N){return N.endLineNumber>N.startLineNumber},J}()},bY76:function(_t,P,e){"use strict";e.d(P,"a",function(){return f});var T=e("MNsG"),re=function(){var x=function(R,$){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,W){ie.__proto__=W}||function(ie,W){for(var B in W)W.hasOwnProperty(B)&&(ie[B]=W[B])},x(R,$)};return function(F,R){x(F,R);function $(){this.constructor=F}F.prototype=R===null?Object.create(R):($.prototype=R.prototype,new $)}}(),J,N=/^\w[\w\d+.-]*$/,H=/^\//,z=/^\/\//;function M(x,F){if(!x.scheme&&F)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+x.authority+'", path: "'+x.path+'", query: "'+x.query+'", fragment: "'+x.fragment+'"}');if(x.scheme&&!N.test(x.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(x.path){if(x.authority){if(!H.test(x.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(z.test(x.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function U(x,F){return!x&&!F?"file":x}function A(x,F){switch(x){case"https":case"http":case"file":F?F[0]!==y&&(F=y+F):F=y;break}return F}var c="",y="/",L=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,f=function(){function x(F,R,$,ie,W,B){B===void 0&&(B=!1),typeof F=="object"?(this.scheme=F.scheme||c,this.authority=F.authority||c,this.path=F.path||c,this.query=F.query||c,this.fragment=F.fragment||c):(this.scheme=U(F,B),this.authority=R||c,this.path=A(this.scheme,$||c),this.query=ie||c,this.fragment=W||c,M(this,B))}return x.isUri=function(F){return F instanceof x?!0:F?typeof F.authority=="string"&&typeof F.fragment=="string"&&typeof F.path=="string"&&typeof F.query=="string"&&typeof F.scheme=="string"&&typeof F.fsPath=="function"&&typeof F.with=="function"&&typeof F.toString=="function":!1},Object.defineProperty(x.prototype,"fsPath",{get:function(){return l(this)},enumerable:!0,configurable:!0}),x.prototype.with=function(F){if(!F)return this;var R=F.scheme,$=F.authority,ie=F.path,W=F.query,B=F.fragment;return R===void 0?R=this.scheme:R===null&&(R=c),$===void 0?$=this.authority:$===null&&($=c),ie===void 0?ie=this.path:ie===null&&(ie=c),W===void 0?W=this.query:W===null&&(W=c),B===void 0?B=this.fragment:B===null&&(B=c),R===this.scheme&&$===this.authority&&ie===this.path&&W===this.query&&B===this.fragment?this:new S(R,$,ie,W,B)},x.parse=function(F,R){R===void 0&&(R=!1);var $=L.exec(F);return $?new S($[2]||c,_($[4]||c),_($[5]||c),_($[7]||c),_($[9]||c),R):new S(c,c,c,c,c)},x.file=function(F){var R=c;if(T.h&&(F=F.replace(/\\/g,y)),F[0]===y&&F[1]===y){var $=F.indexOf(y,2);$===-1?(R=F.substring(2),F=y):(R=F.substring(2,$),F=F.substring($)||y)}return new S("file",R,F,c,c)},x.from=function(F){return new S(F.scheme,F.authority,F.path,F.query,F.fragment)},x.prototype.toString=function(F){return F===void 0&&(F=!1),d(this,F)},x.prototype.toJSON=function(){return this},x.revive=function(F){if(F){if(F instanceof x)return F;var R=new S(F);return R._formatted=F.external,R._fsPath=F._sep===v?F.fsPath:null,R}else return F},x}(),v=T.h?1:void 0,S=function(x){re(F,x);function F(){var R=x!==null&&x.apply(this,arguments)||this;return R._formatted=null,R._fsPath=null,R}return Object.defineProperty(F.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=l(this)),this._fsPath},enumerable:!0,configurable:!0}),F.prototype.toString=function(R){return R===void 0&&(R=!1),R?d(this,!0):(this._formatted||(this._formatted=d(this,!1)),this._formatted)},F.prototype.toJSON=function(){var R={$mid:1};return this._fsPath&&(R.fsPath=this._fsPath,R._sep=v),this._formatted&&(R.external=this._formatted),this.path&&(R.path=this.path),this.scheme&&(R.scheme=this.scheme),this.authority&&(R.authority=this.authority),this.query&&(R.query=this.query),this.fragment&&(R.fragment=this.fragment),R},F}(f),g=(J={},J[58]="%3A",J[47]="%2F",J[63]="%3F",J[35]="%23",J[91]="%5B",J[93]="%5D",J[64]="%40",J[33]="%21",J[36]="%24",J[38]="%26",J[39]="%27",J[40]="%28",J[41]="%29",J[42]="%2A",J[43]="%2B",J[44]="%2C",J[59]="%3B",J[61]="%3D",J[32]="%20",J);function u(x,F){for(var R=void 0,$=-1,ie=0;ie<x.length;ie++){var W=x.charCodeAt(ie);if(W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===45||W===46||W===95||W===126||F&&W===47)$!==-1&&(R+=encodeURIComponent(x.substring($,ie)),$=-1),R!==void 0&&(R+=x.charAt(ie));else{R===void 0&&(R=x.substr(0,ie));var B=g[W];B!==void 0?($!==-1&&(R+=encodeURIComponent(x.substring($,ie)),$=-1),R+=B):$===-1&&($=ie)}}return $!==-1&&(R+=encodeURIComponent(x.substring($))),R!==void 0?R:x}function s(x){for(var F=void 0,R=0;R<x.length;R++){var $=x.charCodeAt(R);$===35||$===63?(F===void 0&&(F=x.substr(0,R)),F+=g[$]):F!==void 0&&(F+=x[R])}return F!==void 0?F:x}function l(x){var F;return x.authority&&x.path.length>1&&x.scheme==="file"?F="//"+x.authority+x.path:x.path.charCodeAt(0)===47&&(x.path.charCodeAt(1)>=65&&x.path.charCodeAt(1)<=90||x.path.charCodeAt(1)>=97&&x.path.charCodeAt(1)<=122)&&x.path.charCodeAt(2)===58?F=x.path[1].toLowerCase()+x.path.substr(2):F=x.path,T.h&&(F=F.replace(/\//g,"\\")),F}function d(x,F){var R=F?s:u,$="",ie=x.scheme,W=x.authority,B=x.path,le=x.query,be=x.fragment;if(ie&&($+=ie,$+=":"),(W||ie==="file")&&($+=y,$+=y),W){var De=W.indexOf("@");if(De!==-1){var Te=W.substr(0,De);W=W.substr(De+1),De=Te.indexOf(":"),De===-1?$+=R(Te,!1):($+=R(Te.substr(0,De),!1),$+=":",$+=R(Te.substr(De+1),!1)),$+="@"}W=W.toLowerCase(),De=W.indexOf(":"),De===-1?$+=R(W,!1):($+=R(W.substr(0,De),!1),$+=W.substr(De))}if(B){if(B.length>=3&&B.charCodeAt(0)===47&&B.charCodeAt(2)===58){var ke=B.charCodeAt(1);ke>=65&&ke<=90&&(B="/"+String.fromCharCode(ke+32)+":"+B.substr(3))}else if(B.length>=2&&B.charCodeAt(1)===58){var ke=B.charCodeAt(0);ke>=65&&ke<=90&&(B=String.fromCharCode(ke+32)+":"+B.substr(2))}$+=R(B,!0)}return le&&($+="?",$+=R(le,!1)),be&&($+="#",$+=F?be:u(be,!1)),$}function p(x){try{return decodeURIComponent(x)}catch(F){return x.length>3?x.substr(0,3)+p(x.substr(3)):x}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _(x){return x.match(E)?x.replace(E,function(F){return p(F)}):x}},ba9Q:function(_t,P,e){"use strict";e.r(P);var T=e("3/fG"),re=e("sswD"),J=e("LCkn"),N=e("aokT"),H=e("wQH0"),z=e("+Fos"),M=function(){var A=function(y,L){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var S in v)v.hasOwnProperty(S)&&(f[S]=v[S])},A(y,L)};return function(c,y){A(c,y);function L(){this.constructor=c}c.prototype=y===null?Object.create(y):(L.prototype=y.prototype,new L)}}(),U=function(A){M(c,A);function c(){return A.call(this,{id:"editor.action.transposeLetters",label:T.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:H.a.writable,kbOpts:{kbExpr:H.a.textInputFocus,primary:0,mac:{primary:256|50},weight:100}})||this}return c.prototype.run=function(y,L){if(!L.hasModel())return;for(var f=L.getModel(),v=[],S=L.getSelections(),g=0,u=S;g<u.length;g++){var s=u[g];if(!s.isEmpty())continue;var l=s.startLineNumber,d=s.startColumn,p=f.getLineMaxColumn(l);if(l===1&&(d===1||d===2&&p===2))continue;var E=d===p?s.getPosition():z.a.rightPosition(f,s.getPosition().lineNumber,s.getPosition().column),_=z.a.leftPosition(f,E.lineNumber,E.column),x=z.a.leftPosition(f,_.lineNumber,_.column),F=f.getValueInRange(N.a.fromPositions(x,_)),R=f.getValueInRange(N.a.fromPositions(_,E)),$=N.a.fromPositions(x,E);v.push(new J.a($,R+F))}v.length>0&&(L.pushUndoStop(),L.executeCommands(this.id,v),L.pushUndoStop())},c}(re.b);Object(re.f)(U)},baJR:function(_t,P,e){"use strict";e.d(P,"b",function(){return H}),e.d(P,"c",function(){return z}),e.d(P,"a",function(){return M}),e.d(P,"d",function(){return A}),e.d(P,"e",function(){return y});var T=e("N0LK"),re=e("erNZ"),J=e("dBaI"),N=function(){function l(d,p){this.endIndex=d,this.type=p}return l}(),H=function(){function l(d,p){this.startOffset=d,this.endOffset=p}return l.prototype.equals=function(d){return this.startOffset===d.startOffset&&this.endOffset===d.endOffset},l}(),z=function(){function l(d,p,E,_,x,F,R,$,ie,W,B,le,be,De,Te,ke,He,je){this.useMonospaceOptimizations=d,this.canUseHalfwidthRightwardsArrow=p,this.lineContent=E,this.continuesWithWrappedLine=_,this.isBasicASCII=x,this.containsRTL=F,this.fauxIndentLength=R,this.lineTokens=$,this.lineDecorations=ie,this.tabSize=W,this.startVisibleColumn=B,this.spaceWidth=le,this.middotWidth=be,this.stopRenderingLineAfter=De,this.renderWhitespace=Te==="all"?3:Te==="boundary"?1:Te==="selection"?2:0,this.renderControlCharacters=ke,this.fontLigatures=He,this.selectionsOnLine=je&&je.sort(function(oe,ee){return oe.startOffset<ee.startOffset?-1:1})}return l.prototype.sameSelection=function(d){if(this.selectionsOnLine===null)return d===null;if(d===null)return!1;if(d.length!==this.selectionsOnLine.length)return!1;for(var p=0;p<this.selectionsOnLine.length;p++)if(!this.selectionsOnLine[p].equals(d[p]))return!1;return!0},l.prototype.equals=function(d){return this.useMonospaceOptimizations===d.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===d.canUseHalfwidthRightwardsArrow&&this.lineContent===d.lineContent&&this.continuesWithWrappedLine===d.continuesWithWrappedLine&&this.isBasicASCII===d.isBasicASCII&&this.containsRTL===d.containsRTL&&this.fauxIndentLength===d.fauxIndentLength&&this.tabSize===d.tabSize&&this.startVisibleColumn===d.startVisibleColumn&&this.spaceWidth===d.spaceWidth&&this.stopRenderingLineAfter===d.stopRenderingLineAfter&&this.renderWhitespace===d.renderWhitespace&&this.renderControlCharacters===d.renderControlCharacters&&this.fontLigatures===d.fontLigatures&&J.a.equalsArr(this.lineDecorations,d.lineDecorations)&&this.lineTokens.equals(d.lineTokens)&&this.sameSelection(d.selectionsOnLine)},l}(),M=function(){function l(d,p){this.length=d,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return l.getPartIndex=function(d){return(d&4294901760)>>>16},l.getCharIndex=function(d){return(d&65535)>>>0},l.prototype.setPartData=function(d,p,E,_){var x=(p<<16|E<<0)>>>0;this._data[d]=x,this._absoluteOffsets[d]=_+E},l.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},l.prototype.charOffsetToPartData=function(d){return this.length===0?0:d<0?this._data[0]:d>=this.length?this._data[this.length-1]:this._data[d]},l.prototype.partDataToCharOffset=function(d,p,E){if(this.length===0)return 0;for(var _=(d<<16|E<<0)>>>0,x=0,F=this.length-1;x+1<F;){var R=x+F>>>1,$=this._data[R];if($===_)return R;$>_?F=R:x=R}if(x===F)return x;var ie=this._data[x],W=this._data[F];if(ie===_)return x;if(W===_)return F;var B=l.getPartIndex(ie),le=l.getCharIndex(ie),be=l.getPartIndex(W),De;B!==be?De=p:De=l.getCharIndex(W);var Te=E-le,ke=De-E;return Te<=ke?x:F},l}(),U=function(){function l(d,p,E){this.characterMapping=d,this.containsRTL=p,this.containsForeignElements=E}return l}();function A(l,d){if(l.lineContent.length===0){var p=0,E="<span><span>\xA0</span></span>";if(l.lineDecorations.length>0){for(var _=[],x=[],F=0,R=l.lineDecorations.length;F<R;F++){var $=l.lineDecorations[F];$.type===1&&(_.push(l.lineDecorations[F].className),p|=1),$.type===2&&(x.push(l.lineDecorations[F].className),p|=2)}if(p!==0){var ie=_.length>0?'<span class="'+_.join(" ")+'"></span>':"",W=x.length>0?'<span class="'+x.join(" ")+'"></span>':"";E="<span>"+ie+W+"</span>"}}return d.appendASCIIString(E),new U(new M(0,0),!1,p)}return s(f(l),d)}var c=function(){function l(d,p,E,_){this.characterMapping=d,this.html=p,this.containsRTL=E,this.containsForeignElements=_}return l}();function y(l){var d=Object(re.a)(1e4),p=A(l,d);return new c(p.characterMapping,d.build(),p.containsRTL,p.containsForeignElements)}var L=function(){function l(d,p,E,_,x,F,R,$,ie,W,B,le,be,De,Te){this.fontIsMonospace=d,this.canUseHalfwidthRightwardsArrow=p,this.lineContent=E,this.len=_,this.isOverflowing=x,this.parts=F,this.containsForeignElements=R,this.fauxIndentLength=$,this.tabSize=ie,this.startVisibleColumn=W,this.containsRTL=B,this.spaceWidth=le,this.middotWidth=be,this.renderWhitespace=De,this.renderControlCharacters=Te}return l}();function f(l){var d=l.useMonospaceOptimizations,p=l.lineContent,E,_;l.stopRenderingLineAfter!==-1&&l.stopRenderingLineAfter<p.length?(E=!0,_=l.stopRenderingLineAfter):(E=!1,_=p.length);var x=v(l.lineTokens,l.fauxIndentLength,_);(l.renderWhitespace===3||l.renderWhitespace===1||l.renderWhitespace===2&&!!l.selectionsOnLine)&&(x=g(p,_,l.continuesWithWrappedLine,x,l.fauxIndentLength,l.tabSize,l.startVisibleColumn,d,l.selectionsOnLine,l.renderWhitespace===1));var F=0;if(l.lineDecorations.length>0){for(var R=0,$=l.lineDecorations.length;R<$;R++){var ie=l.lineDecorations[R];ie.type===3||ie.type===1?F|=1:ie.type===2&&(F|=2)}x=u(p,_,x,l.lineDecorations)}return l.containsRTL||(x=S(p,x,!l.isBasicASCII||l.fontLigatures)),new L(d,l.canUseHalfwidthRightwardsArrow,p,_,E,x,F,l.fauxIndentLength,l.tabSize,l.startVisibleColumn,l.containsRTL,l.spaceWidth,l.middotWidth,l.renderWhitespace,l.renderControlCharacters)}function v(l,d,p){var E=[],_=0;d>0&&(E[_++]=new N(d,""));for(var x=0,F=l.getCount();x<F;x++){var R=l.getEndOffset(x);if(R<=d)continue;var $=l.getClassName(x);if(R>=p){E[_++]=new N(p,$);break}E[_++]=new N(R,$)}return E}function S(l,d,p){var E=0,_=[],x=0;if(p)for(var F=0,R=d.length;F<R;F++){var $=d[F],ie=$.endIndex;if(E+50<ie){for(var W=$.type,B=-1,le=E,be=E;be<ie;be++)l.charCodeAt(be)===32&&(B=be),B!==-1&&be-le>=50&&(_[x++]=new N(B+1,W),le=B+1,B=-1);le!==ie&&(_[x++]=new N(ie,W))}else _[x++]=$;E=ie}else for(var F=0,R=d.length;F<R;F++){var $=d[F],ie=$.endIndex,De=ie-E;if(De>50){for(var W=$.type,Te=Math.ceil(De/50),be=1;be<Te;be++){var ke=E+be*50;_[x++]=new N(ke,W)}_[x++]=new N(ie,W)}else _[x++]=$;E=ie}return _}function g(l,d,p,E,_,x,F,R,$,ie){var W=[],B=0,le=0,be=E[le].type,De=E[le].endIndex,Te=E.length,ke=T.q(l),He;ke===-1?(ke=d,He=d):He=T.D(l);for(var je=!1,oe=0,ee=$&&$[oe],ae=F%x,q=_;q<d;q++){var ce=l.charCodeAt(q);ee&&q>=ee.endOffset&&(oe++,ee=$&&$[oe]);var X=void 0;if(q<ke||q>He)X=!0;else if(ce===9)X=!0;else if(ce===32)if(ie)if(je)X=!0;else{var he=q+1<d?l.charCodeAt(q+1):0;X=he===32||he===9}else X=!0;else X=!1;X&&$&&(X=!!ee&&ee.startOffset<=q&&ee.endOffset>q),je?(!X||!R&&ae>=x)&&(W[B++]=new N(q,"vs-whitespace"),ae=ae%x):(q===De||X&&q>_)&&(W[B++]=new N(q,be),ae=ae%x),ce===9?ae=x:T.y(ce)?ae+=2:ae++,je=X,q===De&&(le++,le<Te&&(be=E[le].type,De=E[le].endIndex))}var Pe=!1;if(je)if(p&&ie){var Xe=d>0?l.charCodeAt(d-1):0,pe=d>1?l.charCodeAt(d-2):0,me=Xe===32&&pe!==32&&pe!==9;me||(Pe=!0)}else Pe=!0;return W[B++]=new N(d,Pe?"vs-whitespace":be),W}function u(l,d,p,E){E.sort(J.a.compare);for(var _=J.b.normalize(l,E),x=_.length,F=0,R=[],$=0,ie=0,W=0,B=p.length;W<B;W++){for(var le=p[W],be=le.endIndex,De=le.type;F<x&&_[F].startOffset<be;){var Te=_[F];if(Te.startOffset>ie&&(ie=Te.startOffset,R[$++]=new N(ie,De)),Te.endOffset+1<=be)ie=Te.endOffset+1,R[$++]=new N(ie,De+" "+Te.className),F++;else{ie=be,R[$++]=new N(ie,De+" "+Te.className);break}}be>ie&&(ie=be,R[$++]=new N(ie,De))}var ke=p[p.length-1].endIndex;if(F<x&&_[F].startOffset===ke){for(var He=[];F<x&&_[F].startOffset===ke;)He.push(_[F].className),F++;R[$++]=new N(ie,He.join(" "))}return R}function s(l,d){var p=l.fontIsMonospace,E=l.canUseHalfwidthRightwardsArrow,_=l.containsForeignElements,x=l.lineContent,F=l.len,R=l.isOverflowing,$=l.parts,ie=l.fauxIndentLength,W=l.tabSize,B=l.startVisibleColumn,le=l.containsRTL,be=l.spaceWidth,De=l.middotWidth,Te=l.renderWhitespace,ke=l.renderControlCharacters,He=De>be?11825:183,je=new M(F+1,$.length),oe=0,ee=B,ae=0,q=0,ce=0;d.appendASCIIString("<span>");for(var X=0,he=$.length;X<he;X++){ce+=q;var Pe=$[X],Xe=Pe.endIndex,pe=Pe.type,me=Te!==0&&pe.indexOf("vs-whitespace")>=0;if(ae=0,d.appendASCIIString('<span class="'),d.appendASCIIString(pe),d.appendASCII(34),me){for(var Se=0,Re=oe,Ee=ee;Re<Xe;Re++){var ve=x.charCodeAt(Re),Q=(ve===9?W-Ee%W:1)|0;Se+=Q,Re>=ie&&(Ee+=Q)}if(!p){var b=pe==="vs-whitespace";(b||!_)&&(d.appendASCIIString(' style="display:inline-block;width:'),d.appendASCIIString(String(be*Se)),d.appendASCIIString('px"'))}for(d.appendASCII(62);oe<Xe;oe++){je.setPartData(oe,X,ae,ce);var ve=x.charCodeAt(oe),Q=void 0;if(ve===9){Q=W-ee%W|0,!E||Q>1?d.write1(8594):d.write1(65515);for(var k=2;k<=Q;k++)d.write1(160)}else Q=1,d.write1(He);ae+=Q,oe>=ie&&(ee+=Q)}q=Se}else{var Se=0;for(le&&d.appendASCIIString(' dir="ltr"'),d.appendASCII(62);oe<Xe;oe++){je.setPartData(oe,X,ae,ce);var ve=x.charCodeAt(oe),se=1,Q=1;switch(ve){case 9:se=W-ee%W,Q=se;for(var k=1;k<=se;k++)d.write1(160);break;case 32:d.write1(160);break;case 60:d.appendASCIIString("&lt;");break;case 62:d.appendASCIIString("&gt;");break;case 38:d.appendASCIIString("&amp;");break;case 0:d.appendASCIIString("&#00;");break;case 65279:case 8232:d.write1(65533);break;default:T.y(ve)&&Q++,ke&&ve<32?d.write1(9216+ve):d.write1(ve)}ae+=se,Se+=se,oe>=ie&&(ee+=Q)}q=Se}d.appendASCIIString("</span>")}return je.setPartData(F,$.length-1,ae,ce),R&&d.appendASCIIString("<span>&hellip;</span>"),d.appendASCIIString("</span>"),new U(je,le,_)}},bexQ:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("keybindingService")},bfR1:function(_t,P,e){"use strict";e.r(P);var T=e("3/fG"),re=e("sswD"),J=e("Yr1X"),N=function(){var U=function(c,y){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,f){L.__proto__=f}||function(L,f){for(var v in f)f.hasOwnProperty(v)&&(L[v]=f[v])},U(c,y)};return function(A,c){U(A,c);function y(){this.constructor=A}A.prototype=c===null?Object.create(c):(y.prototype=c.prototype,new y)}}(),H=function(U){N(A,U);function A(){return U.call(this,{id:"editor.action.fontZoomIn",label:T.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})||this}return A.prototype.run=function(c,y){J.a.setZoomLevel(J.a.getZoomLevel()+1)},A}(re.b),z=function(U){N(A,U);function A(){return U.call(this,{id:"editor.action.fontZoomOut",label:T.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})||this}return A.prototype.run=function(c,y){J.a.setZoomLevel(J.a.getZoomLevel()-1)},A}(re.b),M=function(U){N(A,U);function A(){return U.call(this,{id:"editor.action.fontZoomReset",label:T.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})||this}return A.prototype.run=function(c,y){J.a.setZoomLevel(0)},A}(re.b);Object(re.f)(H),Object(re.f)(z),Object(re.f)(M)},bk7F:function(_t,P,e){"use strict";e.r(P),e.d(P,"BracketMatchingController",function(){return E});var T=e("8ATB"),re=e.n(T),J=e("3/fG"),N=e("X+cX"),H=e("pmY6"),z=e("sswD"),M=e("cGHE"),U=e("aokT"),A=e("gCVg"),c=e("wQH0"),y=e("M1Kb"),L=e("tX9W"),f=e("kYye"),v=e("MD5Z"),S=e("t9D7"),g=e("fjLI"),u=function(){var _=function(F,R){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ie){$.__proto__=ie}||function($,ie){for(var W in ie)ie.hasOwnProperty(W)&&($[W]=ie[W])},_(F,R)};return function(x,F){_(x,F);function R(){this.constructor=x}x.prototype=F===null?Object.create(F):(R.prototype=F.prototype,new R)}}(),s=Object(v.Tb)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},J.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),l=function(_){u(x,_);function x(){return _.call(this,{id:"editor.action.jumpToBracket",label:J.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:c.a.editorTextFocus,primary:2048|1024|88,weight:100}})||this}return x.prototype.run=function(F,R){var $=E.get(R);if(!$)return;$.jumpToBracket()},x}(z.b),d=function(_){u(x,_);function x(){return _.call(this,{id:"editor.action.selectToBracket",label:J.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})||this}return x.prototype.run=function(F,R,$){var ie=E.get(R);if(!ie)return;var W=!0;$&&$.selectBrackets===!1&&(W=!1),ie.selectToBracket(W)},x}(z.b),p=function(){function _(x,F,R){this.position=x,this.brackets=F,this.options=R}return _}(),E=function(_){u(x,_);function x(F){var R=_.call(this)||this;return R._editor=F,R._lastBracketsData=[],R._lastVersionId=0,R._decorations=[],R._updateBracketsSoon=R._register(new N.d(function(){return R._updateBrackets()},50)),R._matchBrackets=R._editor.getOption(53),R._updateBracketsSoon.schedule(),R._register(F.onDidChangeCursorPosition(function($){if(R._matchBrackets==="never")return;R._updateBracketsSoon.schedule()})),R._register(F.onDidChangeModelContent(function($){R._updateBracketsSoon.schedule()})),R._register(F.onDidChangeModel(function($){R._lastBracketsData=[],R._decorations=[],R._updateBracketsSoon.schedule()})),R._register(F.onDidChangeModelLanguageConfiguration(function($){R._lastBracketsData=[],R._updateBracketsSoon.schedule()})),R._register(F.onDidChangeConfiguration(function($){$.hasChanged(53)&&(R._matchBrackets=R._editor.getOption(53),R._decorations=R._editor.deltaDecorations(R._decorations,[]),R._lastBracketsData=[],R._lastVersionId=0,R._updateBracketsSoon.schedule())})),R}return x.get=function(F){return F.getContribution(x.ID)},x.prototype.jumpToBracket=function(){if(!this._editor.hasModel())return;var F=this._editor.getModel(),R=this._editor.getSelections().map(function($){var ie=$.getStartPosition(),W=F.matchBracket(ie),B=null;if(W)W[0].containsPosition(ie)?B=W[1].getStartPosition():W[1].containsPosition(ie)&&(B=W[0].getStartPosition());else{var le=F.findEnclosingBrackets(ie);if(le)B=le[0].getStartPosition();else{var be=F.findNextBracket(ie);be&&be.range&&(B=be.range.getStartPosition())}}return B?new A.a(B.lineNumber,B.column,B.lineNumber,B.column):new A.a(ie.lineNumber,ie.column,ie.lineNumber,ie.column)});this._editor.setSelections(R),this._editor.revealRange(R[0])},x.prototype.selectToBracket=function(F){if(!this._editor.hasModel())return;var R=this._editor.getModel(),$=[];this._editor.getSelections().forEach(function(ie){var W=ie.getStartPosition(),B=R.matchBracket(W);if(!B&&(B=R.findEnclosingBrackets(W),!B)){var le=R.findNextBracket(W);le&&le.range&&(B=R.matchBracket(le.range.getStartPosition()))}var be=null,De=null;if(B){B.sort(U.a.compareRangesUsingStarts);var Te=B[0],ke=B[1];be=F?Te.getStartPosition():Te.getEndPosition(),De=F?ke.getEndPosition():ke.getStartPosition()}be&&De&&$.push(new A.a(be.lineNumber,be.column,De.lineNumber,De.column))}),$.length>0&&(this._editor.setSelections($),this._editor.revealRange($[0]))},x.prototype._updateBrackets=function(){if(this._matchBrackets==="never")return;this._recomputeBrackets();for(var F=[],R=0,$=0,ie=this._lastBracketsData;$<ie.length;$++){var W=ie[$],B=W.brackets;B&&(F[R++]={range:B[0],options:W.options},F[R++]={range:B[1],options:W.options})}this._decorations=this._editor.deltaDecorations(this._decorations,F)},x.prototype._recomputeBrackets=function(){if(!this._editor.hasModel()){this._lastBracketsData=[],this._lastVersionId=0;return}var F=this._editor.getSelections();if(F.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}var R=this._editor.getModel(),$=R.getVersionId(),ie=[];this._lastVersionId===$&&(ie=this._lastBracketsData);for(var W=[],B=0,le=0,be=F.length;le<be;le++){var De=F[le];De.isEmpty()&&(W[B++]=De.getStartPosition())}W.length>1&&W.sort(M.a.compare);for(var Te=[],ke=0,He=0,je=ie.length,le=0,be=W.length;le<be;le++){for(var oe=W[le];He<je&&ie[He].position.isBefore(oe);)He++;if(He<je&&ie[He].position.equals(oe))Te[ke++]=ie[He];else{var ee=R.matchBracket(oe),ae=x._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!ee&&this._matchBrackets==="always"&&(ee=R.findEnclosingBrackets(oe,20),ae=x._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),Te[ke++]=new p(oe,ee,ae)}}this._lastBracketsData=Te,this._lastVersionId=$},x.ID="editor.contrib.bracketMatchingController",x._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=L.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(S.f)(s),position:y.d.Center}}),x._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=L.a.register({stickiness:1,className:"bracket-match"}),x}(H.a);Object(z.h)(E.ID,E),Object(z.f)(d),Object(z.f)(l),Object(S.e)(function(_,x){var F=_.getColor(f.c);F&&x.addRule(".monaco-editor .bracket-match { background-color: "+F+"; }");var R=_.getColor(f.d);R&&x.addRule(".monaco-editor .bracket-match { border: 1px solid "+R+"; }")}),g.c.appendMenuItem(19,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:J.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},c2dO:function(_t,P,e){"use strict";e.r(P),e.d(P,"LanguageServiceDefaultsImpl",function(){return N});var T=e("M/lh"),re=e.n(T);"use strict";var J=monaco.Emitter,N=function(){function s(l,d,p){this._onDidChange=new J,this._languageId=l,this.setOptions(d),this.setModeConfiguration(p)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),s.prototype.setOptions=function(l){this._options=l||Object.create(null),this._onDidChange.fire(this)},s.prototype.setModeConfiguration=function(l){this._modeConfiguration=l||Object.create(null),this._onDidChange.fire(this)},s}(),H={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},z={format:H,suggest:{html5:!0,angular1:!0,ionic:!0}},M={format:H,suggest:{html5:!0}},U={format:H,suggest:{html5:!0,razor:!0}};function A(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===c,documentFormattingEdits:s===c,documentRangeFormattingEdits:s===c}}var c="html",y="handlebars",L="razor",f=new N(c,z,A(c)),v=new N(y,M,A(y)),S=new N(L,U,A(L));function g(){return{htmlDefaults:f,razorDefaults:S,handlebarDefaults:v}}monaco.languages.html=g();function u(){return e.e(240).then(e.bind(null,"+lu7"))}monaco.languages.onLanguage(c,function(){u().then(function(s){return s.setupMode(f)})}),monaco.languages.onLanguage(y,function(){u().then(function(s){return s.setupMode(v)})}),monaco.languages.onLanguage(L,function(){u().then(function(s){return s.setupMode(S)})})},c9ML:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return e.e(288).then(e.bind(null,"QJnQ"))}})},cGHE:function(_t,P,e){"use strict";e.d(P,"a",function(){return T});var T=function(){function re(J,N){this.lineNumber=J,this.column=N}return re.prototype.with=function(J,N){return J===void 0&&(J=this.lineNumber),N===void 0&&(N=this.column),J===this.lineNumber&&N===this.column?this:new re(J,N)},re.prototype.delta=function(J,N){return J===void 0&&(J=0),N===void 0&&(N=0),this.with(this.lineNumber+J,this.column+N)},re.prototype.equals=function(J){return re.equals(this,J)},re.equals=function(J,N){return!J&&!N?!0:!!J&&!!N&&J.lineNumber===N.lineNumber&&J.column===N.column},re.prototype.isBefore=function(J){return re.isBefore(this,J)},re.isBefore=function(J,N){return J.lineNumber<N.lineNumber?!0:N.lineNumber<J.lineNumber?!1:J.column<N.column},re.prototype.isBeforeOrEqual=function(J){return re.isBeforeOrEqual(this,J)},re.isBeforeOrEqual=function(J,N){return J.lineNumber<N.lineNumber?!0:N.lineNumber<J.lineNumber?!1:J.column<=N.column},re.compare=function(J,N){var H=J.lineNumber|0,z=N.lineNumber|0;if(H===z){var M=J.column|0,U=N.column|0;return M-U}return H-z},re.prototype.clone=function(){return new re(this.lineNumber,this.column)},re.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},re.lift=function(J){return new re(J.lineNumber,J.column)},re.isIPosition=function(J){return J&&typeof J.lineNumber=="number"&&typeof J.column=="number"},re}()},cIJc:function(_t,P,e){"use strict";e.r(P);var T=e("6OMU"),re=e("JQT/"),J=e("/kV6"),N=e("pmY6"),H=e("sswD"),z=e("Vxe3"),M=e("MXAL"),U=e("aokT"),A=e("wQH0"),c=e("twdY"),y=e("pAvP"),L=e("OBOq"),f=e("/cxE"),v=e("bY76"),S=e("vATl"),g=e("sFUC"),u=e("cGHE"),s=e("gCVg"),l=e("G2kB"),d=e("0/Sa"),p=function(){function Re(){}return Re._handleEolEdits=function(Ee,ve){for(var Q=void 0,b=[],k=0,se=ve;k<se.length;k++){var ne=se[k];typeof ne.eol=="number"&&(Q=ne.eol),ne.range&&typeof ne.text=="string"&&b.push(ne)}return typeof Q=="number"&&(Ee.hasModel()&&Ee.getModel().pushEOL(Q)),b},Re._isFullModelReplaceEdit=function(Ee,ve){if(!Ee.hasModel())return!1;var Q=Ee.getModel(),b=Q.validateRange(ve.range),k=Q.getFullModelRange();return k.equalsRange(b)},Re.execute=function(Ee,ve){Ee.pushUndoStop();var Q=Re._handleEolEdits(Ee,ve);Q.length===1&&Re._isFullModelReplaceEdit(Ee,Q[0])?Ee.executeEdits("formatEditsCommand",Q.map(function(b){return d.a.replace(U.a.lift(b.range),b.text)})):Ee.executeEdits("formatEditsCommand",Q.map(function(b){return d.a.replaceMove(U.a.lift(b.range),b.text)})),Ee.pushUndoStop()},Re}(),E=e("3/fG"),_=function(){function Re(Ee){this.value=Ee,this._lower=Ee.toLowerCase()}return Re.toKey=function(Ee){return typeof Ee=="string"?Ee.toLowerCase():Ee._lower},Re}(),x=e("Cg/j"),F=e("24hK"),R=e("nnTU"),$=e("746U"),ie=function(Re,Ee,ve,Q){function b(k){return k instanceof ve?k:new ve(function(se){se(k)})}return new(ve||(ve=Promise))(function(k,se){function ne(we){try{Oe(Q.next(we))}catch(Ve){se(Ve)}}function Ce(we){try{Oe(Q.throw(we))}catch(Ve){se(Ve)}}function Oe(we){we.done?k(we.value):b(we.value).then(ne,Ce)}Oe((Q=Q.apply(Re,Ee||[])).next())})},W=function(Re,Ee){var ve={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},Q,b,k,se;return se={next:ne(0),throw:ne(1),return:ne(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function ne(Oe){return function(we){return Ce([Oe,we])}}function Ce(Oe){if(Q)throw new TypeError("Generator is already executing.");for(;ve;)try{if(Q=1,b&&(k=Oe[0]&2?b.return:Oe[0]?b.throw||((k=b.return)&&k.call(b),0):b.next)&&!(k=k.call(b,Oe[1])).done)return k;(b=0,k)&&(Oe=[Oe[0]&2,k.value]);switch(Oe[0]){case 0:case 1:k=Oe;break;case 4:return ve.label++,{value:Oe[1],done:!1};case 5:ve.label++,b=Oe[1],Oe=[0];continue;case 7:Oe=ve.ops.pop(),ve.trys.pop();continue;default:if(!(k=ve.trys,k=k.length>0&&k[k.length-1])&&(Oe[0]===6||Oe[0]===2)){ve=0;continue}if(Oe[0]===3&&(!k||Oe[1]>k[0]&&Oe[1]<k[3])){ve.label=Oe[1];break}if(Oe[0]===6&&ve.label<k[1]){ve.label=k[1],k=Oe;break}if(k&&ve.label<k[2]){ve.label=k[2],ve.ops.push(Oe);break}k[2]&&ve.ops.pop(),ve.trys.pop();continue}Oe=Ee.call(Re,ve)}catch(we){Oe=[6,we],b=0}finally{Q=k=0}if(Oe[0]&5)throw Oe[1];return{value:Oe[0]?Oe[1]:void 0,done:!0}}};function B(Re){if(Re=Re.filter(function(k){return k.range}),!Re.length)return;for(var Ee=Re[0].range,ve=1;ve<Re.length;ve++)Ee=U.a.plusRange(Ee,Re[ve].range);var Q=Ee.startLineNumber,b=Ee.endLineNumber;Q===b?Re.length===1?Object(L.a)(E.a("hint11","Made 1 formatting edit on line {0}",Q)):Object(L.a)(E.a("hintn1","Made {0} formatting edits on line {1}",Re.length,Q)):Re.length===1?Object(L.a)(E.a("hint1n","Made 1 formatting edit between lines {0} and {1}",Q,b)):Object(L.a)(E.a("hintnn","Made {0} formatting edits between lines {1} and {2}",Re.length,Q,b))}function le(Re){for(var Ee=[],ve=new Set,Q=c.g.ordered(Re),b=0,k=Q;b<k.length;b++){var se=k[b];Ee.push(se),se.extensionId&&ve.add(_.toKey(se.extensionId))}for(var ne=c.j.ordered(Re),Ce=function(Qe){if(Qe.extensionId){if(ve.has(_.toKey(Qe.extensionId)))return"continue";ve.add(_.toKey(Qe.extensionId))}Ee.push({displayName:Qe.displayName,extensionId:Qe.extensionId,provideDocumentFormattingEdits:function(gt,Rt,Dt){return Qe.provideDocumentRangeFormattingEdits(gt,gt.getFullModelRange(),Rt,Dt)}})},Oe=0,we=ne;Oe<we.length;Oe++){var se=we[Oe];Ce(se)}return Ee}var be=function(){function Re(){}return Re.select=function(Ee,ve,Q){return ie(this,void 0,void 0,function(){var b;return W(this,function(k){switch(k.label){case 0:return Ee.length===0?[2,void 0]:(b=Re._selectors.iterator().next().value,b?[4,b(Ee,ve,Q)]:[3,2]);case 1:return[2,k.sent()];case 2:return[2,Ee[0]]}})})},Re._selectors=new F.a,Re}();function De(Re,Ee,ve,Q,b){return ie(this,void 0,void 0,function(){var k,se,ne,Ce;return W(this,function(Oe){switch(Oe.label){case 0:return k=Re.get(x.a),se=Object(g.a)(Ee)?Ee.getModel():Ee,ne=c.j.ordered(se),[4,be.select(ne,se,Q)];case 1:return Ce=Oe.sent(),Ce?[4,k.invokeFunction(Te,Ce,Ee,ve,b)]:[3,3];case 2:Oe.sent(),Oe.label=3;case 3:return[2]}})})}function Te(Re,Ee,ve,Q,b){return ie(this,void 0,void 0,function(){var k,se,ne,Ce,Oe,we,Ve;return W(this,function(Qe){switch(Qe.label){case 0:k=Re.get(y.a),Object(g.a)(ve)?(se=ve.getModel(),ne=new S.b(ve,1|4,b)):(se=ve,ne=new S.d(ve,b)),Qe.label=1;case 1:return Qe.trys.push([1,,4,5]),[4,Ee.provideDocumentRangeFormattingEdits(se,Q,se.getFormattingOptions(),ne.token)];case 2:return Oe=Qe.sent(),[4,k.computeMoreMinimalEdits(se.uri,Oe)];case 3:return Ce=Qe.sent(),ne.token.isCancellationRequested?[2,!0]:[3,5];case 4:return ne.dispose(),[7];case 5:return!Ce||Ce.length===0?[2,!1]:(Object(g.a)(ve)?(p.execute(ve,Ce),B(Ce),ve.pushUndoStop(),ve.revealPositionInCenterIfOutsideViewport(ve.getPosition(),1)):(we=Ce[0].range,Ve=new s.a(we.startLineNumber,we.startColumn,we.endLineNumber,we.endColumn),se.pushEditOperations([Ve],Ce.map(function(it){return{text:it.text,range:U.a.lift(it.range),forceMoveMarkers:!0}}),function(it){for(var gt=0,Rt=it;gt<Rt.length;gt++){var Dt=Rt[gt].range;if(U.a.areIntersectingOrTouching(Dt,Ve))return[new s.a(Dt.startLineNumber,Dt.startColumn,Dt.endLineNumber,Dt.endColumn)]}return null})),[2,!0])}})})}function ke(Re,Ee,ve,Q){return ie(this,void 0,void 0,function(){var b,k,se,ne;return W(this,function(Ce){switch(Ce.label){case 0:return b=Re.get(x.a),k=Object(g.a)(Ee)?Ee.getModel():Ee,se=le(k),[4,be.select(se,k,ve)];case 1:return ne=Ce.sent(),ne?[4,b.invokeFunction(He,ne,Ee,ve,Q)]:[3,3];case 2:Ce.sent(),Ce.label=3;case 3:return[2]}})})}function He(Re,Ee,ve,Q,b){return ie(this,void 0,void 0,function(){var k,se,ne,Ce,Oe,we,Ve;return W(this,function(Qe){switch(Qe.label){case 0:k=Re.get(y.a),Object(g.a)(ve)?(se=ve.getModel(),ne=new S.b(ve,1|4,b)):(se=ve,ne=new S.d(ve,b)),Qe.label=1;case 1:return Qe.trys.push([1,,4,5]),[4,Ee.provideDocumentFormattingEdits(se,se.getFormattingOptions(),ne.token)];case 2:return Oe=Qe.sent(),[4,k.computeMoreMinimalEdits(se.uri,Oe)];case 3:return Ce=Qe.sent(),ne.token.isCancellationRequested?[2,!0]:[3,5];case 4:return ne.dispose(),[7];case 5:return!Ce||Ce.length===0?[2,!1]:(Object(g.a)(ve)?(p.execute(ve,Ce),Q!==2&&(B(Ce),ve.pushUndoStop(),ve.revealPositionInCenterIfOutsideViewport(ve.getPosition(),1))):(we=Ce[0].range,Ve=new s.a(we.startLineNumber,we.startColumn,we.endLineNumber,we.endColumn),se.pushEditOperations([Ve],Ce.map(function(it){return{text:it.text,range:U.a.lift(it.range),forceMoveMarkers:!0}}),function(it){for(var gt=0,Rt=it;gt<Rt.length;gt++){var Dt=Rt[gt].range;if(U.a.areIntersectingOrTouching(Dt,Ve))return[new s.a(Dt.startLineNumber,Dt.startColumn,Dt.endLineNumber,Dt.endColumn)]}return null})),[2,!0])}})})}function je(Re,Ee,ve,Q,b){return ie(this,void 0,void 0,function(){var k,se,ne,Ce,Oe;return W(this,function(we){switch(we.label){case 0:k=c.j.ordered(Ee),se=0,ne=k,we.label=1;case 1:return se<ne.length?(Ce=ne[se],[4,Promise.resolve(Ce.provideDocumentRangeFormattingEdits(Ee,ve,Q,b)).catch(f.f)]):[3,5];case 2:return Oe=we.sent(),Object(T.q)(Oe)?[4,Re.computeMoreMinimalEdits(Ee.uri,Oe)]:[3,4];case 3:return[2,we.sent()];case 4:return se++,[3,1];case 5:return[2,void 0]}})})}function oe(Re,Ee,ve,Q){return ie(this,void 0,void 0,function(){var b,k,se,ne,Ce;return W(this,function(Oe){switch(Oe.label){case 0:b=le(Ee),k=0,se=b,Oe.label=1;case 1:return k<se.length?(ne=se[k],[4,Promise.resolve(ne.provideDocumentFormattingEdits(Ee,ve,Q)).catch(f.f)]):[3,5];case 2:return Ce=Oe.sent(),Object(T.q)(Ce)?[4,Re.computeMoreMinimalEdits(Ee.uri,Ce)]:[3,4];case 3:return[2,Oe.sent()];case 4:return k++,[3,1];case 5:return[2,void 0]}})})}function ee(Re,Ee,ve,Q,b){var k=c.t.ordered(Ee);return k.length===0||k[0].autoFormatTriggerCharacters.indexOf(Q)<0?Promise.resolve(void 0):Promise.resolve(k[0].provideOnTypeFormattingEdits(Ee,ve,Q,b,re.a.None)).catch(f.f).then(function(se){return Re.computeMoreMinimalEdits(Ee.uri,se)})}R.a.registerCommand("_executeFormatRangeProvider",function(Re){for(var Ee=[],ve=1;ve<arguments.length;ve++)Ee[ve-1]=arguments[ve];var Q=Ee[0],b=Ee[1],k=Ee[2];Object($.a)(v.a.isUri(Q)),Object($.a)(U.a.isIRange(b));var se=Re.get(l.a).getModel(Q);if(!se)throw Object(f.b)("resource");return je(Re.get(y.a),se,U.a.lift(b),k,re.a.None)}),R.a.registerCommand("_executeFormatDocumentProvider",function(Re){for(var Ee=[],ve=1;ve<arguments.length;ve++)Ee[ve-1]=arguments[ve];var Q=Ee[0],b=Ee[1];Object($.a)(v.a.isUri(Q));var k=Re.get(l.a).getModel(Q);if(!k)throw Object(f.b)("resource");return oe(Re.get(y.a),k,b,re.a.None)}),R.a.registerCommand("_executeFormatOnTypeProvider",function(Re){for(var Ee=[],ve=1;ve<arguments.length;ve++)Ee[ve-1]=arguments[ve];var Q=Ee[0],b=Ee[1],k=Ee[2],se=Ee[3];Object($.a)(v.a.isUri(Q)),Object($.a)(u.a.isIPosition(b)),Object($.a)(typeof k=="string");var ne=Re.get(l.a).getModel(Q);if(!ne)throw Object(f.b)("resource");return ee(Re.get(y.a),ne,u.a.lift(b),k,se)});var ae=e("T8No"),q=function(){var Re=function(ve,Q){return Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,k){b.__proto__=k}||function(b,k){for(var se in k)k.hasOwnProperty(se)&&(b[se]=k[se])},Re(ve,Q)};return function(Ee,ve){Re(Ee,ve);function Q(){this.constructor=Ee}Ee.prototype=ve===null?Object.create(ve):(Q.prototype=ve.prototype,new Q)}}(),ce=function(Re,Ee,ve,Q){var b=arguments.length,k=b<3?Ee:Q===null?Q=Object.getOwnPropertyDescriptor(Ee,ve):Q,se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(Re,Ee,ve,Q);else for(var ne=Re.length-1;ne>=0;ne--)(se=Re[ne])&&(k=(b<3?se(k):b>3?se(Ee,ve,k):se(Ee,ve))||k);return b>3&&k&&Object.defineProperty(Ee,ve,k),k},X=function(Re,Ee){return function(ve,Q){Ee(ve,Q,Re)}},he=function(Re,Ee,ve,Q){function b(k){return k instanceof ve?k:new ve(function(se){se(k)})}return new(ve||(ve=Promise))(function(k,se){function ne(we){try{Oe(Q.next(we))}catch(Ve){se(Ve)}}function Ce(we){try{Oe(Q.throw(we))}catch(Ve){se(Ve)}}function Oe(we){we.done?k(we.value):b(we.value).then(ne,Ce)}Oe((Q=Q.apply(Re,Ee||[])).next())})},Pe=function(Re,Ee){var ve={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},Q,b,k,se;return se={next:ne(0),throw:ne(1),return:ne(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function ne(Oe){return function(we){return Ce([Oe,we])}}function Ce(Oe){if(Q)throw new TypeError("Generator is already executing.");for(;ve;)try{if(Q=1,b&&(k=Oe[0]&2?b.return:Oe[0]?b.throw||((k=b.return)&&k.call(b),0):b.next)&&!(k=k.call(b,Oe[1])).done)return k;(b=0,k)&&(Oe=[Oe[0]&2,k.value]);switch(Oe[0]){case 0:case 1:k=Oe;break;case 4:return ve.label++,{value:Oe[1],done:!1};case 5:ve.label++,b=Oe[1],Oe=[0];continue;case 7:Oe=ve.ops.pop(),ve.trys.pop();continue;default:if(!(k=ve.trys,k=k.length>0&&k[k.length-1])&&(Oe[0]===6||Oe[0]===2)){ve=0;continue}if(Oe[0]===3&&(!k||Oe[1]>k[0]&&Oe[1]<k[3])){ve.label=Oe[1];break}if(Oe[0]===6&&ve.label<k[1]){ve.label=k[1],k=Oe;break}if(k&&ve.label<k[2]){ve.label=k[2],ve.ops.push(Oe);break}k[2]&&ve.ops.pop(),ve.trys.pop();continue}Oe=Ee.call(Re,ve)}catch(we){Oe=[6,we],b=0}finally{Q=k=0}if(Oe[0]&5)throw Oe[1];return{value:Oe[0]?Oe[1]:void 0,done:!0}}},Xe=function(){function Re(Ee,ve){var Q=this;this._workerService=ve,this._callOnDispose=new N.b,this._callOnModel=new N.b,this._editor=Ee,this._callOnDispose.add(Ee.onDidChangeConfiguration(function(){return Q._update()})),this._callOnDispose.add(Ee.onDidChangeModel(function(){return Q._update()})),this._callOnDispose.add(Ee.onDidChangeModelLanguage(function(){return Q._update()})),this._callOnDispose.add(c.t.onDidChange(this._update,this))}return Re.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Re.prototype._update=function(){var Ee=this;if(this._callOnModel.clear(),!this._editor.getOption(39))return;if(!this._editor.hasModel())return;var ve=this._editor.getModel(),Q=c.t.ordered(ve)[0];if(!Q||!Q.autoFormatTriggerCharacters)return;for(var b=new M.b,k=0,se=Q.autoFormatTriggerCharacters;k<se.length;k++){var ne=se[k];b.add(ne.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType(function(Ce){var Oe=Ce.charCodeAt(Ce.length-1);b.has(Oe)&&Ee._trigger(String.fromCharCode(Oe))}))},Re.prototype._trigger=function(Ee){var ve=this;if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1)return;var Q=this._editor.getModel(),b=this._editor.getPosition(),k=!1,se=this._editor.onDidChangeModelContent(function(ne){if(ne.isFlush){k=!0,se.dispose();return}for(var Ce=0,Oe=ne.changes.length;Ce<Oe;Ce++){var we=ne.changes[Ce];if(we.range.endLineNumber<=b.lineNumber){k=!0,se.dispose();return}}});ee(this._workerService,Q,b,Ee,Q.getFormattingOptions()).then(function(ne){if(se.dispose(),k)return;Object(T.q)(ne)&&(p.execute(ve._editor,ne),B(ne))},function(ne){throw se.dispose(),ne})},Re.ID="editor.contrib.autoFormat",Re=ce([X(1,y.a)],Re),Re}(),pe=function(){function Re(Ee,ve){var Q=this;this.editor=Ee,this._instantiationService=ve,this._callOnDispose=new N.b,this._callOnModel=new N.b,this._callOnDispose.add(Ee.onDidChangeConfiguration(function(){return Q._update()})),this._callOnDispose.add(Ee.onDidChangeModel(function(){return Q._update()})),this._callOnDispose.add(Ee.onDidChangeModelLanguage(function(){return Q._update()})),this._callOnDispose.add(c.j.onDidChange(this._update,this))}return Re.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Re.prototype._update=function(){var Ee=this;if(this._callOnModel.clear(),!this.editor.getOption(38))return;if(!this.editor.hasModel())return;if(!c.j.has(this.editor.getModel()))return;this._callOnModel.add(this.editor.onDidPaste(function(ve){var Q=ve.range;return Ee._trigger(Q)}))},Re.prototype._trigger=function(Ee){if(!this.editor.hasModel())return;if(this.editor.getSelections().length>1)return;this._instantiationService.invokeFunction(De,this.editor,Ee,2,re.a.None).catch(f.e)},Re.ID="editor.contrib.formatOnPaste",Re=ce([X(1,x.a)],Re),Re}(),me=function(Re){q(Ee,Re);function Ee(){return Re.call(this,{id:"editor.action.formatDocument",label:E.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:ae.a.and(A.a.writable,A.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:ae.a.and(A.a.editorTextFocus,A.a.hasDocumentFormattingProvider),primary:1024|512|36,linux:{primary:2048|1024|39},weight:100},contextMenuOpts:{when:A.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return Ee.prototype.run=function(ve,Q){return he(this,void 0,void 0,function(){var b;return Pe(this,function(k){switch(k.label){case 0:return Q.hasModel()?(b=ve.get(x.a),[4,b.invokeFunction(ke,Q,1,re.a.None)]):[3,2];case 1:k.sent(),k.label=2;case 2:return[2]}})})},Ee}(H.b),Se=function(Re){q(Ee,Re);function Ee(){return Re.call(this,{id:"editor.action.formatSelection",label:E.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:ae.a.and(A.a.writable,A.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:ae.a.and(A.a.editorTextFocus,A.a.hasDocumentSelectionFormattingProvider),primary:Object(J.a)(2048|41,2048|36),weight:100},contextMenuOpts:{when:ae.a.and(A.a.hasDocumentSelectionFormattingProvider,A.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return Ee.prototype.run=function(ve,Q){return he(this,void 0,void 0,function(){var b,k,se;return Pe(this,function(ne){switch(ne.label){case 0:return Q.hasModel()?(b=ve.get(x.a),k=Q.getModel(),se=Q.getSelection(),se.isEmpty()&&(se=new U.a(se.startLineNumber,1,se.startLineNumber,k.getLineMaxColumn(se.startLineNumber))),[4,b.invokeFunction(De,Q,se,1,re.a.None)]):[2];case 1:return ne.sent(),[2]}})})},Ee}(H.b);Object(H.h)(Xe.ID,Xe),Object(H.h)(pe.ID,pe),Object(H.f)(me),Object(H.f)(Se),R.a.registerCommand("editor.action.format",function(Re){return he(void 0,void 0,void 0,function(){var Ee,ve;return Pe(this,function(Q){switch(Q.label){case 0:return Ee=Re.get(z.a).getFocusedCodeEditor(),!Ee||!Ee.hasModel()?[2]:(ve=Re.get(R.b),Ee.getSelection().isEmpty()?[4,ve.executeCommand("editor.action.formatDocument")]:[3,2]);case 1:return Q.sent(),[3,4];case 2:return[4,ve.executeCommand("editor.action.formatSelection")];case 3:Q.sent(),Q.label=4;case 4:return[2]}})})})},cMOf:function(_t,P,e){"use strict";e.d(P,"a",function(){return S});var T=e("undH"),re=e.n(T),J=e("pmY6"),N=e("D3Dy"),H=e("MNsG"),z=e("746U"),M=e("pg8w"),U=e("XSiN"),A=e("MI8n"),c=e("EffR"),y=e("4y0V"),L=function(){var g=function(s,l){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var E in p)p.hasOwnProperty(E)&&(d[E]=p[E])},g(s,l)};return function(u,s){g(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),f=function(){for(var g=0,u=0,s=arguments.length;u<s;u++)g+=arguments[u].length;for(var l=Array(g),d=0,u=0;u<s;u++)for(var p=arguments[u],E=0,_=p.length;E<_;E++,d++)l[d]=p[E];return l},v=!1,S=function(g){L(u,g);function u(s,l,d){d===void 0&&(d={});var p=g.call(this)||this;return p._state=3,p._onDidEnablementChange=p._register(new A.a),p.onDidEnablementChange=p._onDidEnablementChange.event,p._onDidStart=p._register(new A.a),p.onDidStart=p._onDidStart.event,p._onDidChange=p._register(new A.a),p.onDidChange=p._onDidChange.event,p._onDidReset=p._register(new A.a),p.onDidReset=p._onDidReset.event,p._onDidEnd=p._register(new A.a),p.onDidEnd=p._onDidEnd.event,p.linkedSash=void 0,p.orthogonalStartSashDisposables=p._register(new J.b),p.orthogonalEndSashDisposables=p._register(new J.b),p.el=Object(c.q)(s,Object(c.a)(".monaco-sash")),H.e&&Object(c.f)(p.el,"mac"),p._register(Object(y.a)(p.el,"mousedown")(p.onMouseDown,p)),p._register(Object(y.a)(p.el,"dblclick")(p.onMouseDoubleClick,p)),p._register(M.b.addTarget(p.el)),p._register(Object(y.a)(p.el,M.a.Start)(p.onTouchStart,p)),N.j&&Object(c.f)(p.el,"touch"),p.setOrientation(d.orientation||0),p.hidden=!1,p.layoutProvider=l,p.orthogonalStartSash=d.orthogonalStartSash,p.orthogonalEndSash=d.orthogonalEndSash,Object(c.Y)(p.el,"debug",v),p}return Object.defineProperty(u.prototype,"state",{get:function(){return this._state},set:function(l){if(this._state===l)return;Object(c.Y)(this.el,"disabled",l===0),Object(c.Y)(this.el,"minimum",l===1),Object(c.Y)(this.el,"maximum",l===2),this._state=l,this._onDidEnablementChange.fire(l)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(l){this.orthogonalStartSashDisposables.clear(),l?(this.orthogonalStartSashDisposables.add(l.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(l.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=l},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(l){this.orthogonalEndSashDisposables.clear(),l?(this.orthogonalEndSashDisposables.add(l.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(l.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=l},enumerable:!0,configurable:!0}),u.prototype.setOrientation=function(s){this.orientation=s,this.orientation===1?(Object(c.f)(this.el,"horizontal"),Object(c.P)(this.el,"vertical")):(Object(c.P)(this.el,"horizontal"),Object(c.f)(this.el,"vertical")),this.layoutProvider&&this.layout()},u.prototype.onMouseDown=function(s){var l=this;c.c.stop(s,!1);var d=!1;if(!s.__orthogonalSashEvent){var p=this.getOrthogonalSash(s);p&&(d=!0,s.__orthogonalSashEvent=!0,p.onMouseDown(s))}if(this.linkedSash&&!s.__linkedSashEvent&&(s.__linkedSashEvent=!0,this.linkedSash.onMouseDown(s)),!this.state)return;for(var E=f(Object(c.D)("iframe"),Object(c.D)("webview")),_=0,x=E;_<x.length;_++){var F=x[_];F.style.pointerEvents="none"}var R=new U.b(s),$=R.posx,ie=R.posy,W=R.altKey,B={startX:$,currentX:$,startY:ie,currentY:ie,altKey:W};Object(c.f)(this.el,"active"),this._onDidStart.fire(B);var le=Object(c.w)(this.el),be=function(){var je="";d?je="all-scroll":l.orientation===1?l.state===1?je="s-resize":l.state===2?je="n-resize":je=H.e?"row-resize":"ns-resize":l.state===1?je="e-resize":l.state===2?je="w-resize":je=H.e?"col-resize":"ew-resize",le.innerHTML="* { cursor: "+je+" !important; }"},De=new J.b;be(),d||this.onDidEnablementChange(be,null,De);var Te=function(je){c.c.stop(je,!1);var oe=new U.b(je),ee={startX:$,currentX:oe.posx,startY:ie,currentY:oe.posy,altKey:W};l._onDidChange.fire(ee)},ke=function(je){c.c.stop(je,!1),l.el.removeChild(le),Object(c.P)(l.el,"active"),l._onDidEnd.fire(),De.dispose();for(var oe=0,ee=E;oe<ee.length;oe++){var ae=ee[oe];ae.style.pointerEvents="auto"}};Object(y.a)(window,"mousemove")(Te,null,De),Object(y.a)(window,"mouseup")(ke,null,De)},u.prototype.onMouseDoubleClick=function(s){var l=this.getOrthogonalSash(s);l&&l._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},u.prototype.onTouchStart=function(s){var l=this;c.c.stop(s);var d=[],p=s.pageX,E=s.pageY,_=s.altKey;this._onDidStart.fire({startX:p,currentX:p,startY:E,currentY:E,altKey:_}),d.push(Object(c.j)(this.el,M.a.Change,function(x){z.h(x.pageX)&&z.h(x.pageY)&&l._onDidChange.fire({startX:p,currentX:x.pageX,startY:E,currentY:x.pageY,altKey:_})})),d.push(Object(c.j)(this.el,M.a.End,function(x){l._onDidEnd.fire(),Object(J.f)(d)}))},u.prototype.layout=function(){var s=N.j?20:4;if(this.orientation===0){var l=this.layoutProvider;this.el.style.left=l.getVerticalSashLeft(this)-s/2+"px",l.getVerticalSashTop&&(this.el.style.top=l.getVerticalSashTop(this)+"px"),l.getVerticalSashHeight&&(this.el.style.height=l.getVerticalSashHeight(this)+"px")}else{var d=this.layoutProvider;this.el.style.top=d.getHorizontalSashTop(this)-s/2+"px",d.getHorizontalSashLeft&&(this.el.style.left=d.getHorizontalSashLeft(this)+"px"),d.getHorizontalSashWidth&&(this.el.style.width=d.getHorizontalSashWidth(this)+"px")}},u.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},u.prototype.onOrthogonalStartSashEnablementChange=function(s){Object(c.Y)(this.el,"orthogonal-start",s!==0)},u.prototype.onOrthogonalEndSashEnablementChange=function(s){Object(c.Y)(this.el,"orthogonal-end",s!==0)},u.prototype.getOrthogonalSash=function(s){if(this.orientation===0){if(s.offsetY<=4)return this.orthogonalStartSash;if(s.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(s.offsetX<=4)return this.orthogonalStartSash;if(s.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}return},u.prototype.dispose=function(){g.prototype.dispose.call(this),this.el.remove()},u}(J.a)},cMvZ:function(_t,P,e){"use strict";e.d(P,"a",function(){return g});var T=e("MI8n"),re=e("pmY6"),J=e("N0LK"),N=e("0JNc"),H=e("KDc4"),z=e("BFtn"),M=function(){function u(s){if(s.autoClosingPairs?this._autoClosingPairs=s.autoClosingPairs.map(function(d){return new H.b(d)}):s.brackets?this._autoClosingPairs=s.brackets.map(function(d){return new H.b({open:d[0],close:d[1]})}):this._autoClosingPairs=[],s.__electricCharacterSupport&&s.__electricCharacterSupport.docComment){var l=s.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new H.b({open:l.open,close:l.close||""}))}this._autoCloseBefore=typeof s.autoCloseBefore=="string"?s.autoCloseBefore:u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=s.surroundingPairs||this._autoClosingPairs}return u.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},u.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},u.shouldAutoClosePair=function(s,l,d){if(l.getTokenCount()===0)return!0;var p=l.findTokenIndexAtOffset(d-2),E=l.getStandardTokenType(p);return s.isOK(E)},u.prototype.getSurroundingPairs=function(){return this._surroundingPairs},u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])>
`,u}(),U=e("EIAu"),A=function(){function u(s){this._richEditBrackets=s}return u.prototype.getElectricCharacters=function(){var s=[];if(this._richEditBrackets)for(var l=0,d=this._richEditBrackets.brackets;l<d.length;l++)for(var p=d[l],E=0,_=p.close;E<_.length;E++){var x=_[E],F=x.charAt(x.length-1);s.push(F)}return s=s.filter(function(R,$,ie){return ie.indexOf(R)===$}),s},u.prototype.onElectricCharacter=function(s,l,d){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;var p=l.findTokenIndexAtOffset(d-1);if(Object(z.b)(l.getStandardTokenType(p)))return null;var E=this._richEditBrackets.reversedRegex,_=l.getLineContent().substring(0,d-1)+s,x=U.a.findPrevBracketInRange(E,1,_,0,_.length);if(!x)return null;var F=_.substring(x.startColumn-1,x.endColumn-1).toLowerCase(),R=this._richEditBrackets.textIsOpenBracket[F];if(R)return null;var $=l.getActualLineContentBefore(x.startColumn-1);return/^\s*$/.test($)?{matchOpenBracket:F}:null},u}(),c=function(){function u(s){this._indentationRules=s}return u.prototype.shouldIncrease=function(s){return!!(this._indentationRules&&(this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(s)))},u.prototype.shouldDecrease=function(s){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(s))},u.prototype.shouldIndentNextLine=function(s){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(s))},u.prototype.shouldIgnore=function(s){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(s))},u.prototype.getIndentMetadata=function(s){var l=0;return this.shouldIncrease(s)&&(l+=1),this.shouldDecrease(s)&&(l+=2),this.shouldIndentNextLine(s)&&(l+=4),this.shouldIgnore(s)&&(l+=8),l},u}(),y=e("/cxE"),L=function(){function u(s){var l=this;s=s||{},s.brackets=s.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],s.brackets.forEach(function(d){var p=u._createOpenBracketRegExp(d[0]),E=u._createCloseBracketRegExp(d[1]);p&&E&&l._brackets.push({open:d[0],openRegExp:p,close:d[1],closeRegExp:E})}),this._regExpRules=s.onEnterRules||[]}return u.prototype.onEnter=function(s,l,d,p){if(s>=3)for(var E=0,_=this._regExpRules.length;E<_;E++){var x=this._regExpRules[E],F=[{reg:x.beforeText,text:d},{reg:x.afterText,text:p},{reg:x.oneLineAboveText,text:l}].every(function($){return $.reg?$.reg.test($.text):!0});if(F)return x.action}if(s>=2&&(d.length>0&&p.length>0))for(var E=0,_=this._brackets.length;E<_;E++){var R=this._brackets[E];if(R.openRegExp.test(d)&&R.closeRegExp.test(p))return{indentAction:H.a.IndentOutdent}}if(s>=2&&d.length>0)for(var E=0,_=this._brackets.length;E<_;E++){var R=this._brackets[E];if(R.openRegExp.test(d))return{indentAction:H.a.Indent}}return null},u._createOpenBracketRegExp=function(s){var l=J.p(s);return/\B/.test(l.charAt(0))||(l="\\b"+l),l+="\\s*$",u._safeRegExp(l)},u._createCloseBracketRegExp=function(s){var l=J.p(s);return/\B/.test(l.charAt(l.length-1))||(l=l+"\\b"),l="^\\s*"+l,u._safeRegExp(l)},u._safeRegExp=function(s){try{return new RegExp(s)}catch(l){return Object(y.e)(l),null}},u}(),f=function(){function u(s,l,d){this._languageIdentifier=s,this._brackets=null,this._electricCharacter=null;var p=null;l&&(p=l._conf),this._conf=u._mergeConf(p,d),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new L(this._conf):null,this.comments=u._handleComments(this._conf),this.characterPair=new M(this._conf),this.wordDefinition=this._conf.wordPattern||N.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new c(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}return Object.defineProperty(u.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new U.b(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new A(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),u.prototype.onEnter=function(s,l,d,p){return this._onEnterSupport?this._onEnterSupport.onEnter(s,l,d,p):null},u._mergeConf=function(s,l){return{comments:s?l.comments||s.comments:l.comments,brackets:s?l.brackets||s.brackets:l.brackets,wordPattern:s?l.wordPattern||s.wordPattern:l.wordPattern,indentationRules:s?l.indentationRules||s.indentationRules:l.indentationRules,onEnterRules:s?l.onEnterRules||s.onEnterRules:l.onEnterRules,autoClosingPairs:s?l.autoClosingPairs||s.autoClosingPairs:l.autoClosingPairs,surroundingPairs:s?l.surroundingPairs||s.surroundingPairs:l.surroundingPairs,autoCloseBefore:s?l.autoCloseBefore||s.autoCloseBefore:l.autoCloseBefore,folding:s?l.folding||s.folding:l.folding,__electricCharacterSupport:s?l.__electricCharacterSupport||s.__electricCharacterSupport:l.__electricCharacterSupport}},u._handleComments=function(s){var l=s.comments;if(!l)return null;var d={};if(l.lineComment&&(d.lineCommentToken=l.lineComment),l.blockComment){var p=l.blockComment,E=p[0],_=p[1];d.blockCommentStartToken=E,d.blockCommentEndToken=_}return d},u}(),v=function(){function u(s){this.languageIdentifier=s}return u}(),S=function(){function u(){this._entries=new Map,this._onDidChange=new T.a,this.onDidChange=this._onDidChange.event}return u.prototype.register=function(s,l){var d=this,p=this._getRichEditSupport(s.id),E=new f(s,p,l);return this._entries.set(s.id,E),this._onDidChange.fire(new v(s)),Object(re.h)(function(){d._entries.get(s.id)===E&&(d._entries.set(s.id,p),d._onDidChange.fire(new v(s)))})},u.prototype._getRichEditSupport=function(s){return this._entries.get(s)},u.prototype._getElectricCharacterSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.electricCharacter||null},u.prototype.getElectricCharacters=function(s){var l=this._getElectricCharacterSupport(s);return l?l.getElectricCharacters():[]},u.prototype.onElectricCharacter=function(s,l,d){var p=Object(z.a)(l,d-1),E=this._getElectricCharacterSupport(p.languageId);return E?E.onElectricCharacter(s,p,d-p.firstCharOffset):null},u.prototype.getComments=function(s){var l=this._getRichEditSupport(s);return l&&l.comments||null},u.prototype._getCharacterPairSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.characterPair||null},u.prototype.getAutoClosingPairs=function(s){var l=this._getCharacterPairSupport(s);return l?l.getAutoClosingPairs():[]},u.prototype.getAutoCloseBeforeSet=function(s){var l=this._getCharacterPairSupport(s);return l?l.getAutoCloseBeforeSet():M.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},u.prototype.getSurroundingPairs=function(s){var l=this._getCharacterPairSupport(s);return l?l.getSurroundingPairs():[]},u.prototype.shouldAutoClosePair=function(s,l,d){var p=Object(z.a)(l,d-1);return M.shouldAutoClosePair(s,p,d-p.firstCharOffset)},u.prototype.getWordDefinition=function(s){var l=this._getRichEditSupport(s);return l?Object(N.c)(l.wordDefinition||null):Object(N.c)(null)},u.prototype.getFoldingRules=function(s){var l=this._getRichEditSupport(s);return l?l.foldingRules:{}},u.prototype.getIndentRulesSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.indentRulesSupport||null},u.prototype.getPrecedingValidLine=function(s,l,d){var p=s.getLanguageIdAtPosition(l,0);if(l>1){var E=void 0,_=-1;for(E=l-1;E>=1;E--){if(s.getLanguageIdAtPosition(E,0)!==p)return _;var x=s.getLineContent(E);if(d.shouldIgnore(x)||/^\s+$/.test(x)||x===""){_=E;continue}return E}}return-1},u.prototype.getInheritIndentForLine=function(s,l,d,p){if(p===void 0&&(p=!0),s<4)return null;var E=this.getIndentRulesSupport(l.getLanguageIdentifier().id);if(!E)return null;if(d<=1)return{indentation:"",action:null};var _=this.getPrecedingValidLine(l,d,E);if(_<0)return null;if(_<1)return{indentation:"",action:null};var x=l.getLineContent(_);if(E.shouldIncrease(x)||E.shouldIndentNextLine(x))return{indentation:J.t(x),action:H.a.Indent,line:_};if(E.shouldDecrease(x))return{indentation:J.t(x),action:null,line:_};if(_===1)return{indentation:J.t(l.getLineContent(_)),action:null,line:_};var F=_-1,R=E.getIndentMetadata(l.getLineContent(F));if(!(R&(1|2))&&R&4){for(var $=0,ie=F-1;ie>0;ie--){if(E.shouldIndentNextLine(l.getLineContent(ie)))continue;$=ie;break}return{indentation:J.t(l.getLineContent($+1)),action:null,line:$+1}}if(p)return{indentation:J.t(l.getLineContent(_)),action:null,line:_};for(var ie=_;ie>0;ie--){var W=l.getLineContent(ie);if(E.shouldIncrease(W))return{indentation:J.t(W),action:H.a.Indent,line:ie};if(E.shouldIndentNextLine(W)){for(var $=0,B=ie-1;B>0;B--){if(E.shouldIndentNextLine(l.getLineContent(ie)))continue;$=B;break}return{indentation:J.t(l.getLineContent($+1)),action:null,line:$+1}}else if(E.shouldDecrease(W))return{indentation:J.t(W),action:null,line:ie}}return{indentation:J.t(l.getLineContent(1)),action:null,line:1}},u.prototype.getGoodIndentForLine=function(s,l,d,p,E){if(s<4)return null;var _=this._getRichEditSupport(d);if(!_)return null;var x=this.getIndentRulesSupport(d);if(!x)return null;var F=this.getInheritIndentForLine(s,l,p),R=l.getLineContent(p);if(F){var $=F.line;if($!==void 0){var ie=_.onEnter(s,"",l.getLineContent($),"");if(ie){var W=J.t(l.getLineContent($));return ie.removeText&&(W=W.substring(0,W.length-ie.removeText)),ie.indentAction===H.a.Indent||ie.indentAction===H.a.IndentOutdent?W=E.shiftIndent(W):ie.indentAction===H.a.Outdent&&(W=E.unshiftIndent(W)),x.shouldDecrease(R)&&(W=E.unshiftIndent(W)),ie.appendText&&(W+=ie.appendText),J.t(W)}}return x.shouldDecrease(R)?F.action===H.a.Indent?F.indentation:E.unshiftIndent(F.indentation):F.action===H.a.Indent?E.shiftIndent(F.indentation):F.indentation}return null},u.prototype.getIndentForEnter=function(s,l,d,p){if(s<4)return null;l.forceTokenization(d.startLineNumber);var E=l.getLineTokens(d.startLineNumber),_=Object(z.a)(E,d.startColumn-1),x=_.getLineContent(),F=!1,R;_.firstCharOffset>0&&E.getLanguageId(0)!==_.languageId?(F=!0,R=x.substr(0,d.startColumn-1-_.firstCharOffset)):R=E.getLineContent().substring(0,d.startColumn-1);var $;if(d.isEmpty())$=x.substr(d.startColumn-1-_.firstCharOffset);else{var ie=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);$=ie.getLineContent().substr(d.endColumn-1-_.firstCharOffset)}var W=this.getIndentRulesSupport(_.languageId);if(!W)return null;var B=R,le=J.t(R),be={getLineTokens:function(oe){return l.getLineTokens(oe)},getLanguageIdentifier:function(){return l.getLanguageIdentifier()},getLanguageIdAtPosition:function(oe,ee){return l.getLanguageIdAtPosition(oe,ee)},getLineContent:function(oe){return oe===d.startLineNumber?B:l.getLineContent(oe)}},De=J.t(E.getLineContent()),Te=this.getInheritIndentForLine(s,be,d.startLineNumber+1);if(!Te){var ke=F?De:le;return{beforeEnter:ke,afterEnter:ke}}var He=F?De:Te.indentation;return Te.action===H.a.Indent&&(He=p.shiftIndent(He)),W.shouldDecrease($)&&(He=p.unshiftIndent(He)),{beforeEnter:F?De:le,afterEnter:He}},u.prototype.getIndentActionForType=function(s,l,d,p,E){if(s<4)return null;var _=this.getScopedLineTokens(l,d.startLineNumber,d.startColumn),x=this.getIndentRulesSupport(_.languageId);if(!x)return null;var F=_.getLineContent(),R=F.substr(0,d.startColumn-1-_.firstCharOffset),$;if(d.isEmpty())$=F.substr(d.startColumn-1-_.firstCharOffset);else{var ie=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);$=ie.getLineContent().substr(d.endColumn-1-_.firstCharOffset)}if(!x.shouldDecrease(R+$)&&x.shouldDecrease(R+p+$)){var W=this.getInheritIndentForLine(s,l,d.startLineNumber,!1);if(!W)return null;var B=W.indentation;return W.action!==H.a.Indent&&(B=E.unshiftIndent(B)),B}return null},u.prototype.getIndentMetadata=function(s,l){var d=this.getIndentRulesSupport(s.getLanguageIdentifier().id);return d?l<1||l>s.getLineCount()?null:d.getIndentMetadata(s.getLineContent(l)):null},u.prototype.getEnterAction=function(s,l,d){var p=this.getScopedLineTokens(l,d.startLineNumber,d.startColumn),E=this._getRichEditSupport(p.languageId);if(!E)return null;var _=p.getLineContent(),x=_.substr(0,d.startColumn-1-p.firstCharOffset),F;if(d.isEmpty())F=_.substr(d.startColumn-1-p.firstCharOffset);else{var R=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);F=R.getLineContent().substr(d.endColumn-1-p.firstCharOffset)}var $="";if(d.startLineNumber>1&&p.firstCharOffset===0){var ie=this.getScopedLineTokens(l,d.startLineNumber-1);ie.languageId===p.languageId&&($=ie.getLineContent())}var W=E.onEnter(s,$,x,F);if(!W)return null;var B=W.indentAction,le=W.appendText,be=W.removeText||0;le||(B===H.a.Indent||B===H.a.IndentOutdent?le=" ":le="");var De=this.getIndentationAtPosition(l,d.startLineNumber,d.startColumn);return be&&(De=De.substring(0,De.length-be)),{indentAction:B,appendText:le,removeText:be,indentation:De}},u.prototype.getIndentationAtPosition=function(s,l,d){var p=s.getLineContent(l),E=J.t(p);return E.length>d-1&&(E=E.substring(0,d-1)),E},u.prototype.getScopedLineTokens=function(s,l,d){s.forceTokenization(l);var p=s.getLineTokens(l),E=typeof d=="undefined"?s.getLineMaxColumn(l)-1:d-1;return Object(z.a)(p,E)},u.prototype.getBracketsSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.brackets||null},u}(),g=new S},"ci+S":function(_t,P,e){},cl4r:function(_t,P,e){},cldp:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return e.e(238).then(e.bind(null,"7Xl7"))}})},cqdO:function(_t,P,e){"use strict";e.d(P,"a",function(){return De}),e.d(P,"f",function(){return He}),e.d(P,"e",function(){return je}),e.d(P,"d",function(){return q}),e.d(P,"b",function(){return ce}),e.d(P,"c",function(){return ve});var T=e("4rho"),re=e("3/fG"),J=e("pmY6"),N=e("746U"),H=e("6OMU"),z=e("ZCR3"),M=e("EffR"),U=e("MNsG"),A=e("pg8w"),c=e("uDWl"),y=e("MI8n"),L=e("4y0V"),f=function(){var Q=function(k,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Ce){ne.__proto__=Ce}||function(ne,Ce){for(var Oe in Ce)Ce.hasOwnProperty(Oe)&&(ne[Oe]=Ce[Oe])},Q(k,se)};return function(b,k){Q(b,k);function se(){this.constructor=b}b.prototype=k===null?Object.create(k):(se.prototype=k.prototype,new se)}}(),v;(function(Q){Q.TREE="tree",Q.FORM="form"})(v||(v={}));var S=function(Q){f(b,Q);function b(k,se){return Q.call(this,"ListError ["+k+"] "+se)||this}return b}(Error),g=e("feEw"),u=e("zrhQ"),s=e("qj0h"),l=function(){function Q(b){this.spliceables=b}return Q.prototype.splice=function(b,k,se){this.spliceables.forEach(function(ne){return ne.splice(b,k,se)})},Q}(),d=e("Sdnv"),p=e("fpMC"),E=function(){var Q=function(k,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Ce){ne.__proto__=Ce}||function(ne,Ce){for(var Oe in Ce)Ce.hasOwnProperty(Oe)&&(ne[Oe]=Ce[Oe])},Q(k,se)};return function(b,k){Q(b,k);function se(){this.constructor=b}b.prototype=k===null?Object.create(k):(se.prototype=k.prototype,new se)}}(),_=function(){return _=Object.assign||function(Q){for(var b,k=1,se=arguments.length;k<se;k++){b=arguments[k];for(var ne in b)Object.prototype.hasOwnProperty.call(b,ne)&&(Q[ne]=b[ne])}return Q},_.apply(this,arguments)},x=function(Q,b,k,se){var ne=arguments.length,Ce=ne<3?b:se===null?se=Object.getOwnPropertyDescriptor(b,k):se,Oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ce=Reflect.decorate(Q,b,k,se);else for(var we=Q.length-1;we>=0;we--)(Oe=Q[we])&&(Ce=(ne<3?Oe(Ce):ne>3?Oe(b,k,Ce):Oe(b,k))||Ce);return ne>3&&Ce&&Object.defineProperty(b,k,Ce),Ce},F=function(){for(var Q=0,b=0,k=arguments.length;b<k;b++)Q+=arguments[b].length;for(var se=Array(Q),ne=0,b=0;b<k;b++)for(var Ce=arguments[b],Oe=0,we=Ce.length;Oe<we;Oe++,ne++)se[ne]=Ce[Oe];return se},R=function(){function Q(b){this.trait=b,this.renderedElements=[]}return Object.defineProperty(Q.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),Q.prototype.renderTemplate=function(b){return b},Q.prototype.renderElement=function(b,k,se){var ne=Object(H.k)(this.renderedElements,function(Oe){return Oe.templateData===se});if(ne>=0){var Ce=this.renderedElements[ne];this.trait.unrender(se),Ce.index=k}else{var Ce={index:k,templateData:se};this.renderedElements.push(Ce)}this.trait.renderIndex(k,se)},Q.prototype.splice=function(b,k,se){for(var ne=[],Ce=0,Oe=this.renderedElements;Ce<Oe.length;Ce++){var we=Oe[Ce];we.index<b?ne.push(we):we.index>=b+k&&ne.push({index:we.index+se-k,templateData:we.templateData})}this.renderedElements=ne},Q.prototype.renderIndexes=function(b){for(var k=0,se=this.renderedElements;k<se.length;k++){var ne=se[k],Ce=ne.index,Oe=ne.templateData;b.indexOf(Ce)>-1&&this.trait.renderIndex(Ce,Oe)}},Q.prototype.disposeTemplate=function(b){var k=Object(H.k)(this.renderedElements,function(se){return se.templateData===b});if(k<0)return;this.renderedElements.splice(k,1)},Q}(),$=function(){function Q(b){this._trait=b,this.indexes=[],this.sortedIndexes=[],this._onChange=new y.a,this.onChange=this._onChange.event}return Object.defineProperty(Q.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"renderer",{get:function(){return new R(this)},enumerable:!0,configurable:!0}),Q.prototype.splice=function(b,k,se){var ne=se.length-k,Ce=b+k,Oe=F(this.sortedIndexes.filter(function(we){return we<b}),se.map(function(we,Ve){return we?Ve+b:-1}).filter(function(we){return we!==-1}),this.sortedIndexes.filter(function(we){return we>=Ce}).map(function(we){return we+ne}));this.renderer.splice(b,k,se.length),this._set(Oe,Oe)},Q.prototype.renderIndex=function(b,k){M.Y(k,this._trait,this.contains(b))},Q.prototype.unrender=function(b){M.P(b,this._trait)},Q.prototype.set=function(b,k){return this._set(b,F(b).sort(me),k)},Q.prototype._set=function(b,k,se){var ne=this.indexes,Ce=this.sortedIndexes;this.indexes=b,this.sortedIndexes=k;var Oe=Xe(Ce,b);return this.renderer.renderIndexes(Oe),this._onChange.fire({indexes:b,browserEvent:se}),ne},Q.prototype.get=function(){return this.indexes},Q.prototype.contains=function(b){return Object(H.c)(this.sortedIndexes,b,me)>=0},Q.prototype.dispose=function(){Object(J.f)(this._onChange)},x([z.a],Q.prototype,"renderer",null),Q}(),ie=function(Q){E(b,Q);function b(){return Q.call(this,"focused")||this}return b.prototype.renderIndex=function(k,se){Q.prototype.renderIndex.call(this,k,se),this.contains(k)?se.setAttribute("aria-selected","true"):se.removeAttribute("aria-selected")},b}($),W=function(){function Q(b,k,se){this.trait=b,this.view=k,this.identityProvider=se}return Q.prototype.splice=function(b,k,se){var ne=this;if(!this.identityProvider)return this.trait.splice(b,k,se.map(function(){return!1}));var Ce=this.trait.get().map(function(we){return ne.identityProvider.getId(ne.view.element(we)).toString()}),Oe=se.map(function(we){return Ce.indexOf(ne.identityProvider.getId(we).toString())>-1});this.trait.splice(b,k,Oe)},Q}();function B(Q){return Q.tagName==="INPUT"||Q.tagName==="TEXTAREA"}var le=function(){function Q(b,k,se){this.list=b,this.view=k,this.disposables=new J.b;var ne=se.multipleSelectionSupport!==!1;this.openController=se.openController||ae;var Ce=y.b.chain(Object(L.a)(k.domNode,"keydown")).filter(function(Oe){return!B(Oe.target)}).map(function(Oe){return new c.a(Oe)});Ce.filter(function(Oe){return Oe.keyCode===3}).on(this.onEnter,this,this.disposables),Ce.filter(function(Oe){return Oe.keyCode===16}).on(this.onUpArrow,this,this.disposables),Ce.filter(function(Oe){return Oe.keyCode===18}).on(this.onDownArrow,this,this.disposables),Ce.filter(function(Oe){return Oe.keyCode===11}).on(this.onPageUpArrow,this,this.disposables),Ce.filter(function(Oe){return Oe.keyCode===12}).on(this.onPageDownArrow,this,this.disposables),Ce.filter(function(Oe){return Oe.keyCode===9}).on(this.onEscape,this,this.disposables),ne&&Ce.filter(function(Oe){return(U.e?Oe.metaKey:Oe.ctrlKey)&&Oe.keyCode===31}).on(this.onCtrlA,this,this.disposables)}return Q.prototype.onEnter=function(b){b.preventDefault(),b.stopPropagation(),this.list.setSelection(this.list.getFocus(),b.browserEvent),this.openController.shouldOpen(b.browserEvent)&&this.list.open(this.list.getFocus(),b.browserEvent)},Q.prototype.onUpArrow=function(b){b.preventDefault(),b.stopPropagation(),this.list.focusPrevious(1,!1,b.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onDownArrow=function(b){b.preventDefault(),b.stopPropagation(),this.list.focusNext(1,!1,b.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onPageUpArrow=function(b){b.preventDefault(),b.stopPropagation(),this.list.focusPreviousPage(b.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onPageDownArrow=function(b){b.preventDefault(),b.stopPropagation(),this.list.focusNextPage(b.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onCtrlA=function(b){b.preventDefault(),b.stopPropagation(),this.list.setSelection(Object(H.u)(this.list.length),b.browserEvent),this.view.domNode.focus()},Q.prototype.onEscape=function(b){b.preventDefault(),b.stopPropagation(),this.list.setSelection([],b.browserEvent),this.view.domNode.focus()},Q.prototype.dispose=function(){this.disposables.dispose()},Q}(),be;(function(Q){Q[Q.Idle=0]="Idle",Q[Q.Typing=1]="Typing"})(be||(be={}));var De=new(function(){function Q(){}return Q.prototype.mightProducePrintableCharacter=function(b){return b.ctrlKey||b.metaKey||b.altKey?!1:b.keyCode>=31&&b.keyCode<=56||b.keyCode>=21&&b.keyCode<=30||b.keyCode>=93&&b.keyCode<=102||b.keyCode>=80&&b.keyCode<=90},Q}()),Te=function(){function Q(b,k,se,ne){this.list=b,this.view=k,this.keyboardNavigationLabelProvider=se,this.delegate=ne,this.enabled=!1,this.state=be.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new J.b,this.disposables=new J.b,this.updateOptions(b.options)}return Q.prototype.updateOptions=function(b){var k=typeof b.enableKeyboardNavigation=="undefined"?!0:!!b.enableKeyboardNavigation;k?this.enable():this.disable(),typeof b.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=b.automaticKeyboardNavigation)},Q.prototype.enable=function(){var b=this;if(this.enabled)return;var k=y.b.chain(Object(L.a)(this.view.domNode,"keydown")).filter(function(Ce){return!B(Ce.target)}).filter(function(){return b.automaticKeyboardNavigation||b.triggered}).map(function(Ce){return new c.a(Ce)}).filter(function(Ce){return b.delegate.mightProducePrintableCharacter(Ce)}).forEach(function(Ce){Ce.stopPropagation(),Ce.preventDefault()}).map(function(Ce){return Ce.browserEvent.key}).event,se=y.b.debounce(k,function(){return null},800),ne=y.b.reduce(y.b.any(k,se),function(Ce,Oe){return Oe===null?null:(Ce||"")+Oe});ne(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1},Q.prototype.disable=function(){if(!this.enabled)return;this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1},Q.prototype.onInput=function(b){if(!b){this.state=be.Idle,this.triggered=!1;return}var k=this.list.getFocus(),se=k.length>0?k[0]:0,ne=this.state===be.Idle?1:0;this.state=be.Typing;for(var Ce=0;Ce<this.list.length;Ce++){var Oe=(se+Ce+ne)%this.list.length,we=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(Oe)),Ve=we&&we.toString();if(typeof Ve=="undefined"||Object(p.g)(b,Ve)){this.list.setFocus([Oe]),this.list.reveal(Oe);return}}},Q.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},Q}(),ke=function(){function Q(b,k){this.list=b,this.view=k,this.disposables=new J.b;var se=y.b.chain(Object(L.a)(k.domNode,"keydown")).filter(function(ne){return!B(ne.target)}).map(function(ne){return new c.a(ne)});se.filter(function(ne){return ne.keyCode===2&&!ne.ctrlKey&&!ne.metaKey&&!ne.shiftKey&&!ne.altKey}).on(this.onTab,this,this.disposables)}return Q.prototype.onTab=function(b){if(b.target!==this.view.domNode)return;var k=this.list.getFocus();if(k.length===0)return;var se=this.view.domElement(k[0]);if(!se)return;var ne=se.querySelector("[tabIndex]");if(!ne||!(ne instanceof HTMLElement)||ne.tabIndex===-1)return;var Ce=window.getComputedStyle(ne);if(Ce.visibility==="hidden"||Ce.display==="none")return;b.preventDefault(),b.stopPropagation(),ne.focus()},Q.prototype.dispose=function(){this.disposables.dispose()},Q}();function He(Q){return U.e?Q.browserEvent.metaKey:Q.browserEvent.ctrlKey}function je(Q){return Q.browserEvent.shiftKey}function oe(Q){return Q instanceof MouseEvent&&Q.button===2}var ee={isSelectionSingleChangeEvent:He,isSelectionRangeChangeEvent:je},ae={shouldOpen:function(b){return b instanceof MouseEvent?!oe(b):!0}},q=function(){function Q(b){this.list=b,this.disposables=new J.b,this.multipleSelectionSupport=!(b.options.multipleSelectionSupport===!1),this.multipleSelectionSupport&&(this.multipleSelectionController=b.options.multipleSelectionController||ee),this.openController=b.options.openController||ae,this.mouseSupport=typeof b.options.mouseSupport=="undefined"||!!b.options.mouseSupport,this.mouseSupport&&(b.onMouseDown(this.onMouseDown,this,this.disposables),b.onContextMenu(this.onContextMenu,this,this.disposables),b.onMouseDblClick(this.onDoubleClick,this,this.disposables),b.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(A.b.addTarget(b.getHTMLElement()))),b.onMouseClick(this.onPointer,this,this.disposables),b.onMouseMiddleClick(this.onPointer,this,this.disposables),b.onTap(this.onPointer,this,this.disposables)}return Q.prototype.isSelectionSingleChangeEvent=function(b){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(b):U.e?b.browserEvent.metaKey:b.browserEvent.ctrlKey},Q.prototype.isSelectionRangeChangeEvent=function(b){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(b):b.browserEvent.shiftKey},Q.prototype.isSelectionChangeEvent=function(b){return this.isSelectionSingleChangeEvent(b)||this.isSelectionRangeChangeEvent(b)},Q.prototype.onMouseDown=function(b){document.activeElement!==b.browserEvent.target&&this.list.domFocus()},Q.prototype.onContextMenu=function(b){var k=typeof b.index=="undefined"?[]:[b.index];this.list.setFocus(k,b.browserEvent)},Q.prototype.onPointer=function(b){if(!this.mouseSupport)return;if(B(b.browserEvent.target))return;var k=this.list.getFocus()[0],se=this.list.getSelection();k=k===void 0?se[0]:k;var ne=b.index;if(typeof ne=="undefined"){this.list.setFocus([],b.browserEvent),this.list.setSelection([],b.browserEvent);return}if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(b))return this.changeSelection(b,k);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(b))return this.changeSelection(b,k);this.list.setFocus([ne],b.browserEvent),oe(b.browserEvent)||(this.list.setSelection([ne],b.browserEvent),this.openController.shouldOpen(b.browserEvent)&&this.list.open([ne],b.browserEvent))},Q.prototype.onDoubleClick=function(b){if(B(b.browserEvent.target))return;if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(b))return;var k=this.list.getFocus();this.list.setSelection(k,b.browserEvent),this.list.pin(k)},Q.prototype.changeSelection=function(b,k){var se=b.index;if(this.isSelectionRangeChangeEvent(b)&&k!==void 0){var ne=Math.min(k,se),Ce=Math.max(k,se),Oe=Object(H.u)(ne,Ce+1),we=this.list.getSelection(),Ve=Pe(Xe(we,[k]),k);if(Ve.length===0)return;var Qe=Xe(Oe,pe(we,Ve));this.list.setSelection(Qe,b.browserEvent)}else if(this.isSelectionSingleChangeEvent(b)){var we=this.list.getSelection(),Qe=we.filter(function(Rt){return Rt!==se});this.list.setFocus([se]),we.length===Qe.length?this.list.setSelection(F(Qe,[se]),b.browserEvent):this.list.setSelection(Qe,b.browserEvent)}},Q.prototype.dispose=function(){this.disposables.dispose()},Q}(),ce=function(){function Q(b,k){this.styleElement=b,this.selectorSuffix=k}return Q.prototype.style=function(b){var k=this.selectorSuffix&&"."+this.selectorSuffix,se=[];b.listBackground&&(b.listBackground.isOpaque()?se.push(".monaco-list"+k+" .monaco-list-rows { background: "+b.listBackground+"; }"):U.e||console.warn("List with id '"+this.selectorSuffix+"' was styled with a non-opaque background color. This will break sub-pixel antialiasing.")),b.listFocusBackground&&(se.push(".monaco-list"+k+":focus .monaco-list-row.focused { background-color: "+b.listFocusBackground+"; }"),se.push(".monaco-list"+k+":focus .monaco-list-row.focused:hover { background-color: "+b.listFocusBackground+"; }")),b.listFocusForeground&&se.push(".monaco-list"+k+":focus .monaco-list-row.focused { color: "+b.listFocusForeground+"; }"),b.listActiveSelectionBackground&&(se.push(".monaco-list"+k+":focus .monaco-list-row.selected { background-color: "+b.listActiveSelectionBackground+"; }"),se.push(".monaco-list"+k+":focus .monaco-list-row.selected:hover { background-color: "+b.listActiveSelectionBackground+"; }")),b.listActiveSelectionForeground&&se.push(".monaco-list"+k+":focus .monaco-list-row.selected { color: "+b.listActiveSelectionForeground+"; }"),b.listFocusAndSelectionBackground&&se.push(`
.monaco-drag-image,
.monaco-list`+k+":focus .monaco-list-row.selected.focused { background-color: "+b.listFocusAndSelectionBackground+`; }
`),b.listFocusAndSelectionForeground&&se.push(`
.monaco-drag-image,
.monaco-list`+k+":focus .monaco-list-row.selected.focused { color: "+b.listFocusAndSelectionForeground+`; }
`),b.listInactiveFocusBackground&&(se.push(".monaco-list"+k+" .monaco-list-row.focused { background-color: "+b.listInactiveFocusBackground+"; }"),se.push(".monaco-list"+k+" .monaco-list-row.focused:hover { background-color: "+b.listInactiveFocusBackground+"; }")),b.listInactiveSelectionBackground&&(se.push(".monaco-list"+k+" .monaco-list-row.selected { background-color: "+b.listInactiveSelectionBackground+"; }"),se.push(".monaco-list"+k+" .monaco-list-row.selected:hover { background-color: "+b.listInactiveSelectionBackground+"; }")),b.listInactiveSelectionForeground&&se.push(".monaco-list"+k+" .monaco-list-row.selected { color: "+b.listInactiveSelectionForeground+"; }"),b.listHoverBackground&&se.push(".monaco-list"+k+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+b.listHoverBackground+"; }"),b.listHoverForeground&&se.push(".monaco-list"+k+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+b.listHoverForeground+"; }"),b.listSelectionOutline&&se.push(".monaco-list"+k+" .monaco-list-row.selected { outline: 1px dotted "+b.listSelectionOutline+"; outline-offset: -1px; }"),b.listFocusOutline&&se.push(`
.monaco-drag-image,
.monaco-list`+k+":focus .monaco-list-row.focused { outline: 1px solid "+b.listFocusOutline+`; outline-offset: -1px; }
`),b.listInactiveFocusOutline&&se.push(".monaco-list"+k+" .monaco-list-row.focused { outline: 1px dotted "+b.listInactiveFocusOutline+"; outline-offset: -1px; }"),b.listHoverOutline&&se.push(".monaco-list"+k+" .monaco-list-row:hover { outline: 1px dashed "+b.listHoverOutline+"; outline-offset: -1px; }"),b.listDropBackground&&se.push(`
.monaco-list`+k+`.drop-target,
.monaco-list`+k+` .monaco-list-rows.drop-target,
.monaco-list`+k+" .monaco-list-row.drop-target { background-color: "+b.listDropBackground+` !important; color: inherit !important; }
`),b.listFilterWidgetBackground&&se.push(".monaco-list-type-filter { background-color: "+b.listFilterWidgetBackground+" }"),b.listFilterWidgetOutline&&se.push(".monaco-list-type-filter { border: 1px solid "+b.listFilterWidgetOutline+"; }"),b.listFilterWidgetNoMatchesOutline&&se.push(".monaco-list-type-filter.no-matches { border: 1px solid "+b.listFilterWidgetNoMatchesOutline+"; }"),b.listMatchesShadow&&se.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+b.listMatchesShadow+"; }");var ne=se.join(`
`);ne!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=ne)},Q}(),X={listFocusBackground:u.a.fromHex("#7FB0D0"),listActiveSelectionBackground:u.a.fromHex("#0E639C"),listActiveSelectionForeground:u.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:u.a.fromHex("#094771"),listFocusAndSelectionForeground:u.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:u.a.fromHex("#3F3F46"),listHoverBackground:u.a.fromHex("#2A2D2E"),listDropBackground:u.a.fromHex("#383B3D"),treeIndentGuidesStroke:u.a.fromHex("#a9a9a9")},he={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:v.TREE};function Pe(Q,b){var k=Q.indexOf(b);if(k===-1)return[];for(var se=[],ne=k-1;ne>=0&&Q[ne]===b-(k-ne);)se.push(Q[ne--]);for(se.reverse(),ne=k;ne<Q.length&&Q[ne]===b+(ne-k);)se.push(Q[ne++]);return se}function Xe(Q,b){for(var k=[],se=0,ne=0;se<Q.length||ne<b.length;)if(se>=Q.length)k.push(b[ne++]);else if(ne>=b.length)k.push(Q[se++]);else if(Q[se]===b[ne]){k.push(Q[se]),se++,ne++;continue}else Q[se]<b[ne]?k.push(Q[se++]):k.push(b[ne++]);return k}function pe(Q,b){for(var k=[],se=0,ne=0;se<Q.length||ne<b.length;)if(se>=Q.length)k.push(b[ne++]);else if(ne>=b.length)k.push(Q[se++]);else if(Q[se]===b[ne]){se++,ne++;continue}else Q[se]<b[ne]?k.push(Q[se++]):ne++;return k}var me=function(b,k){return b-k},Se=function(){function Q(b,k){this._templateId=b,this.renderers=k}return Object.defineProperty(Q.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),Q.prototype.renderTemplate=function(b){return this.renderers.map(function(k){return k.renderTemplate(b)})},Q.prototype.renderElement=function(b,k,se,ne){for(var Ce=0,Oe=0,we=this.renderers;Oe<we.length;Oe++){var Ve=we[Oe];Ve.renderElement(b,k,se[Ce++],ne)}},Q.prototype.disposeElement=function(b,k,se,ne){for(var Ce=0,Oe=0,we=this.renderers;Oe<we.length;Oe++){var Ve=we[Oe];Ve.disposeElement&&Ve.disposeElement(b,k,se[Ce],ne),Ce+=1}},Q.prototype.disposeTemplate=function(b){for(var k=0,se=0,ne=this.renderers;se<ne.length;se++){var Ce=ne[se];Ce.disposeTemplate(b[k++])}},Q}(),Re=function(){function Q(b){this.accessibilityProvider=b,this.templateId="a18n"}return Q.prototype.renderTemplate=function(b){return b},Q.prototype.renderElement=function(b,k,se){var ne=this.accessibilityProvider.getAriaLabel(b);ne?se.setAttribute("aria-label",ne):se.removeAttribute("aria-label");var Ce=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(b);typeof Ce=="number"?se.setAttribute("aria-level",""+Ce):se.removeAttribute("aria-level")},Q.prototype.disposeTemplate=function(b){},Q}(),Ee=function(){function Q(b,k){this.list=b,this.dnd=k}return Q.prototype.getDragElements=function(b){var k=this.list.getSelectedElements(),se=k.indexOf(b)>-1?k:[b];return se},Q.prototype.getDragURI=function(b){return this.dnd.getDragURI(b)},Q.prototype.getDragLabel=function(b,k){return this.dnd.getDragLabel?this.dnd.getDragLabel(b,k):void 0},Q.prototype.onDragStart=function(b,k){this.dnd.onDragStart&&this.dnd.onDragStart(b,k)},Q.prototype.onDragOver=function(b,k,se,ne){return this.dnd.onDragOver(b,k,se,ne)},Q.prototype.onDragEnd=function(b){this.dnd.onDragEnd&&this.dnd.onDragEnd(b)},Q.prototype.drop=function(b,k,se,ne){this.dnd.drop(b,k,se,ne)},Q}(),ve=function(){function Q(b,k,se,ne,Ce){Ce===void 0&&(Ce=he),this.user=b,this._options=Ce,this.eventBufferer=new y.c,this.disposables=new J.b,this._onDidOpen=new y.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new y.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new y.a,this.onDidDispose=this._onDidDispose.event,this.focus=new ie,this.selection=new $("selected"),Object(s.g)(Ce,X,!1);var Oe=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=Ce.accessibilityProvider,this.accessibilityProvider&&(Oe.push(new Re(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),ne=ne.map(function(gt){return new Se(gt.templateId,F(Oe,[gt]))});var we=_(_({},Ce),{dnd:Ce.dnd&&new Ee(this,Ce.dnd)});if(this.view=new g.b(k,se,ne,we),typeof Ce.ariaRole!="string"?this.view.domNode.setAttribute("role",v.TREE):this.view.domNode.setAttribute("role",Ce.ariaRole),Ce.styleController)this.styleController=Ce.styleController(this.view.domId);else{var Ve=M.w(this.view.domNode);this.styleController=new ce(Ve,this.view.domId)}if(this.spliceable=new l([new W(this.focus,this.view,Ce.identityProvider),new W(this.selection,this.view,Ce.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=y.b.map(Object(L.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=y.b.map(Object(L.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new ke(this,this.view)),typeof Ce.keyboardSupport!="boolean"||Ce.keyboardSupport){var Qe=new le(this,this.view,Ce);this.disposables.add(Qe)}if(Ce.keyboardNavigationLabelProvider){var it=Ce.keyboardNavigationDelegate||De;this.typeLabelController=new Te(this,this.view,Ce.keyboardNavigationLabelProvider,it),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(Ce)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),Ce.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(re.a)("aria list","{0}. Use the navigation keys to navigate.",Ce.ariaLabel))}return Object.defineProperty(Q.prototype,"onFocusChange",{get:function(){var k=this;return y.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(se){return k.toListEvent(se)})},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onSelectionChange",{get:function(){var k=this;return y.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(se){return k.toListEvent(se)})},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onContextMenu",{get:function(){var k=this,se=y.b.chain(Object(L.a)(this.view.domNode,"keydown")).map(function(Oe){return new c.a(Oe)}).filter(function(Oe){return k.didJustPressContextMenuKey=Oe.keyCode===58||Oe.shiftKey&&Oe.keyCode===68}).filter(function(Oe){return Oe.preventDefault(),Oe.stopPropagation(),!1}).event,ne=y.b.chain(Object(L.a)(this.view.domNode,"keyup")).filter(function(){var Oe=k.didJustPressContextMenuKey;return k.didJustPressContextMenuKey=!1,Oe}).filter(function(){return k.getFocus().length>0&&!!k.view.domElement(k.getFocus()[0])}).map(function(Oe){var we=k.getFocus()[0],Ve=k.view.element(we),Qe=k.view.domElement(we);return{index:we,element:Ve,anchor:Qe,browserEvent:Oe}}).event,Ce=y.b.chain(this.view.onContextMenu).filter(function(){return!k.didJustPressContextMenuKey}).map(function(Oe){var we=Oe.element,Ve=Oe.index,Qe=Oe.browserEvent;return{element:we,index:Ve,anchor:{x:Qe.clientX+1,y:Qe.clientY},browserEvent:Qe}}).event;return y.b.any(se,ne,Ce)},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onKeyDown",{get:function(){return Object(L.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),Q.prototype.createMouseController=function(b){return new q(this)},Q.prototype.updateOptions=function(b){b===void 0&&(b={}),this._options=_(_({},this._options),b),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(Q.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Q.prototype.splice=function(b,k,se){var ne=this;if(se===void 0&&(se=[]),b<0||b>this.view.length)throw new S(this.user,"Invalid start index: "+b);if(k<0)throw new S(this.user,"Invalid delete count: "+k);if(k===0&&se.length===0)return;this.eventBufferer.bufferEvents(function(){return ne.spliceable.splice(b,k,se)})},Q.prototype.rerender=function(){this.view.rerender()},Q.prototype.element=function(b){return this.view.element(b)},Object.defineProperty(Q.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(k){this.view.setScrollTop(k)},enumerable:!0,configurable:!0}),Q.prototype.domFocus=function(){this.view.domNode.focus()},Q.prototype.layout=function(b,k){this.view.layout(b,k)},Q.prototype.setSelection=function(b,k){for(var se=0,ne=b;se<ne.length;se++){var Ce=ne[se];if(Ce<0||Ce>=this.length)throw new S(this.user,"Invalid index "+Ce)}this.selection.set(b,k)},Q.prototype.getSelection=function(){return this.selection.get()},Q.prototype.getSelectedElements=function(){var b=this;return this.getSelection().map(function(k){return b.view.element(k)})},Q.prototype.setFocus=function(b,k){for(var se=0,ne=b;se<ne.length;se++){var Ce=ne[se];if(Ce<0||Ce>=this.length)throw new S(this.user,"Invalid index "+Ce)}this.focus.set(b,k)},Q.prototype.focusNext=function(b,k,se,ne){if(b===void 0&&(b=1),k===void 0&&(k=!1),this.length===0)return;var Ce=this.focus.get(),Oe=this.findNextIndex(Ce.length>0?Ce[0]+b:0,k,ne);Oe>-1&&this.setFocus([Oe],se)},Q.prototype.focusPrevious=function(b,k,se,ne){if(b===void 0&&(b=1),k===void 0&&(k=!1),this.length===0)return;var Ce=this.focus.get(),Oe=this.findPreviousIndex(Ce.length>0?Ce[0]-b:0,k,ne);Oe>-1&&this.setFocus([Oe],se)},Q.prototype.focusNextPage=function(b,k){var se=this,ne=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);ne=ne===0?0:ne-1;var Ce=this.view.element(ne),Oe=this.getFocusedElements()[0];if(Oe!==Ce){var we=this.findPreviousIndex(ne,!1,k);we>-1&&Oe!==this.view.element(we)?this.setFocus([we],b):this.setFocus([ne],b)}else{var Ve=this.view.getScrollTop();this.view.setScrollTop(Ve+this.view.renderHeight-this.view.elementHeight(ne)),this.view.getScrollTop()!==Ve&&setTimeout(function(){return se.focusNextPage(b,k)},0)}},Q.prototype.focusPreviousPage=function(b,k){var se=this,ne,Ce=this.view.getScrollTop();Ce===0?ne=this.view.indexAt(Ce):ne=this.view.indexAfter(Ce-1);var Oe=this.view.element(ne),we=this.getFocusedElements()[0];if(we!==Oe){var Ve=this.findNextIndex(ne,!1,k);Ve>-1&&we!==this.view.element(Ve)?this.setFocus([Ve],b):this.setFocus([ne],b)}else{var Qe=Ce;this.view.setScrollTop(Ce-this.view.renderHeight),this.view.getScrollTop()!==Qe&&setTimeout(function(){return se.focusPreviousPage(b,k)},0)}},Q.prototype.focusLast=function(b,k){if(this.length===0)return;var se=this.findPreviousIndex(this.length-1,!1,k);se>-1&&this.setFocus([se],b)},Q.prototype.focusFirst=function(b,k){if(this.length===0)return;var se=this.findNextIndex(0,!1,k);se>-1&&this.setFocus([se],b)},Q.prototype.findNextIndex=function(b,k,se){k===void 0&&(k=!1);for(var ne=0;ne<this.length;ne++){if(b>=this.length&&!k)return-1;if(b=b%this.length,!se||se(this.element(b)))return b;b++}return-1},Q.prototype.findPreviousIndex=function(b,k,se){k===void 0&&(k=!1);for(var ne=0;ne<this.length;ne++){if(b<0&&!k)return-1;if(b=(this.length+b%this.length)%this.length,!se||se(this.element(b)))return b;b--}return-1},Q.prototype.getFocus=function(){return this.focus.get()},Q.prototype.getFocusedElements=function(){var b=this;return this.getFocus().map(function(k){return b.view.element(k)})},Q.prototype.reveal=function(b,k){if(b<0||b>=this.length)throw new S(this.user,"Invalid index "+b);var se=this.view.getScrollTop(),ne=this.view.elementTop(b),Ce=this.view.elementHeight(b);if(Object(N.h)(k)){var Oe=Ce-this.view.renderHeight;this.view.setScrollTop(Oe*Object(d.a)(k,0,1)+ne)}else{var we=ne+Ce,Ve=se+this.view.renderHeight;ne<se&&we>=Ve||(ne<se?this.view.setScrollTop(ne):we>=Ve&&this.view.setScrollTop(we-this.view.renderHeight))}},Q.prototype.getRelativeTop=function(b){if(b<0||b>=this.length)throw new S(this.user,"Invalid index "+b);var k=this.view.getScrollTop(),se=this.view.elementTop(b),ne=this.view.elementHeight(b);if(se<k||se+ne>k+this.view.renderHeight)return null;var Ce=ne-this.view.renderHeight;return Math.abs((k-se)/Ce)},Q.prototype.getHTMLElement=function(){return this.view.domNode},Q.prototype.open=function(b,k){for(var se=this,ne=0,Ce=b;ne<Ce.length;ne++){var Oe=Ce[ne];if(Oe<0||Oe>=this.length)throw new S(this.user,"Invalid index "+Oe)}this._onDidOpen.fire({indexes:b,elements:b.map(function(we){return se.view.element(we)}),browserEvent:k})},Q.prototype.pin=function(b,k){for(var se=this,ne=0,Ce=b;ne<Ce.length;ne++){var Oe=Ce[ne];if(Oe<0||Oe>=this.length)throw new S(this.user,"Invalid index "+Oe)}this._onDidPin.fire({indexes:b,elements:b.map(function(we){return se.view.element(we)}),browserEvent:k})},Q.prototype.style=function(b){this.styleController.style(b)},Q.prototype.toListEvent=function(b){var k=this,se=b.indexes,ne=b.browserEvent;return{indexes:se,elements:se.map(function(Ce){return k.view.element(Ce)}),browserEvent:ne}},Q.prototype._onFocusChange=function(){var b=this.focus.get();M.Y(this.view.domNode,"element-focused",b.length>0),this.onDidChangeActiveDescendant()},Q.prototype.onDidChangeActiveDescendant=function(){var b,k=this.focus.get();if(k.length>0){var se=void 0;((b=this.accessibilityProvider)===null||b===void 0?void 0:b.getActiveDescendantId)&&(se=this.accessibilityProvider.getActiveDescendantId(this.view.element(k[0]))),this.view.domNode.setAttribute("aria-activedescendant",se||this.view.getElementDomId(k[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},Q.prototype._onSelectionChange=function(){var b=this.selection.get();M.Y(this.view.domNode,"selection-none",b.length===0),M.Y(this.view.domNode,"selection-single",b.length===1),M.Y(this.view.domNode,"selection-multiple",b.length>1)},Q.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},x([z.a],Q.prototype,"onFocusChange",null),x([z.a],Q.prototype,"onSelectionChange",null),x([z.a],Q.prototype,"onContextMenu",null),Q}()},d6R0:function(_t,P,e){"use strict";e.r(P),e.d(P,"CodeLensContribution",function(){return ce});var T=e("X+cX"),re=e("/cxE"),J=e("pmY6"),N=e("vATl"),H=e("sswD"),z=e("twdY"),M=e("6OMU"),U=e("JQT/"),A=e("bY76"),c=e("G2kB"),y=function(){function X(){this.lenses=[],this._disposables=new J.b}return X.prototype.dispose=function(){this._disposables.dispose()},X.prototype.add=function(he,Pe){this._disposables.add(he);for(var Xe=0,pe=he.lenses;Xe<pe.length;Xe++){var me=pe[Xe];this.lenses.push({symbol:me,provider:Pe})}},X}();function L(X,he){var Pe=z.b.ordered(X),Xe=new Map,pe=new y,me=Pe.map(function(Se,Re){return Xe.set(Se,Re),Promise.resolve(Se.provideCodeLenses(X,he)).then(function(Ee){return Ee&&pe.add(Ee,Se)}).catch(re.f)});return Promise.all(me).then(function(){return pe.lenses=Object(M.r)(pe.lenses,function(Se,Re){return Se.symbol.range.startLineNumber<Re.symbol.range.startLineNumber?-1:Se.symbol.range.startLineNumber>Re.symbol.range.startLineNumber?1:Xe.get(Se.provider)<Xe.get(Re.provider)?-1:Xe.get(Se.provider)>Xe.get(Re.provider)?1:Se.symbol.range.startColumn<Re.symbol.range.startColumn?-1:Se.symbol.range.startColumn>Re.symbol.range.startColumn?1:0}),pe})}Object(H.j)("_executeCodeLensProvider",function(X,he){var Pe=he.resource,Xe=he.itemResolveCount;if(!(Pe instanceof A.a))throw Object(re.b)();var pe=X.get(c.a).getModel(Pe);if(!pe)throw Object(re.b)();var me=[],Se=new J.b;return L(pe,U.a.None).then(function(Re){Se.add(Re);for(var Ee=[],ve=function(ne){typeof Xe=="undefined"||Boolean(ne.symbol.command)?me.push(ne.symbol):Xe-- >0&&ne.provider.resolveCodeLens&&Ee.push(Promise.resolve(ne.provider.resolveCodeLens(pe,ne.symbol,U.a.None)).then(function(Ce){return me.push(Ce||ne.symbol)}))},Q=0,b=Re.lenses;Q<b.length;Q++){var k=b[Q];ve(k)}return Promise.all(Ee)}).then(function(){return me}).finally(function(){setTimeout(function(){return Se.dispose()},100)})});var f=e("RMfO"),v=e("EffR"),S=e("Vhoy"),g=e("N0LK"),u=e("aokT"),s=e("tX9W"),l=e("kYye"),d=e("MD5Z"),p=e("t9D7"),E=function(){function X(he,Pe){this.afterLineNumber=he,this._onHeight=Pe,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}return X.prototype.onComputedHeight=function(he){this._lastHeight===void 0?this._lastHeight=he:this._lastHeight!==he&&(this._lastHeight=he,this._onHeight())},X}(),_=function(){function X(he,Pe,Xe){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=he,this._id="codelens.widget-"+X._idPool++,this.updatePosition(Xe),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+Pe}return X.prototype.withCommands=function(he,Pe){this._commands.clear();for(var Xe="",pe=!1,me=0;me<he.length;me++){var Se=he[me];if(!Se)continue;if(pe=!0,Se.command){var Re=Object(S.c)(Object(g.o)(Se.command.title));Se.command.id?(Xe+="<a id="+me+">"+Re+"</a>",this._commands.set(String(me),Se.command)):Xe+="<span>"+Re+"</span>",me+1<he.length&&(Xe+="<span>&#160;|&#160;</span>")}}pe?(Xe||(Xe="&#160;"),this._domNode.innerHTML=Xe,this._isEmpty&&Pe&&v.f(this._domNode,"fadein"),this._isEmpty=!1):this._domNode.innerHTML="<span>no commands</span>"},X.prototype.getCommand=function(he){return he.parentElement===this._domNode?this._commands.get(he.id):void 0},X.prototype.getId=function(){return this._id},X.prototype.getDomNode=function(){return this._domNode},X.prototype.updatePosition=function(he){var Pe=this._editor.getModel().getLineFirstNonWhitespaceColumn(he);this._widgetPosition={position:{lineNumber:he,column:Pe},preference:[1]}},X.prototype.getPosition=function(){return this._widgetPosition||null},X._idPool=0,X}(),x=function(){function X(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}return X.prototype.addDecoration=function(he,Pe){this._addDecorations.push(he),this._addDecorationsCallbacks.push(Pe)},X.prototype.removeDecoration=function(he){this._removeDecorations.push(he)},X.prototype.commit=function(he){for(var Pe=he.deltaDecorations(this._removeDecorations,this._addDecorations),Xe=0,pe=Pe.length;Xe<pe;Xe++)this._addDecorationsCallbacks[Xe](Pe[Xe])},X}(),F=function(){function X(he,Pe,Xe,pe,me,Se){var Re=this;this._isDisposed=!1,this._editor=Pe,this._className=Xe,this._data=he,this._decorationIds=[];var Ee,ve=[];this._data.forEach(function(Q,b){Q.symbol.command&&ve.push(Q.symbol),pe.addDecoration({range:Q.symbol.range,options:s.a.EMPTY},function(k){return Re._decorationIds[b]=k}),Ee?Ee=u.a.plusRange(Ee,Q.symbol.range):Ee=u.a.lift(Q.symbol.range)}),this._viewZone=new E(Ee.startLineNumber-1,Se),this._viewZoneId=me.addZone(this._viewZone),ve.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(ve,!1))}return X.prototype._createContentWidgetIfNecessary=function(){this._contentWidget||(this._contentWidget=new _(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))},X.prototype.dispose=function(he,Pe){this._decorationIds.forEach(he.removeDecoration,he),this._decorationIds=[],Pe&&Pe.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0},X.prototype.isDisposed=function(){return this._isDisposed},X.prototype.isValid=function(){var he=this;return this._decorationIds.some(function(Pe,Xe){var pe=he._editor.getModel().getDecorationRange(Pe),me=he._data[Xe].symbol;return!!(pe&&u.a.isEmpty(me.range)===pe.isEmpty())})},X.prototype.updateCodeLensSymbols=function(he,Pe){var Xe=this;this._decorationIds.forEach(Pe.removeDecoration,Pe),this._decorationIds=[],this._data=he,this._data.forEach(function(pe,me){Pe.addDecoration({range:pe.symbol.range,options:s.a.EMPTY},function(Se){return Xe._decorationIds[me]=Se})})},X.prototype.computeIfNecessary=function(he){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(var Pe=0;Pe<this._decorationIds.length;Pe++){var Xe=he.getDecorationRange(this._decorationIds[Pe]);Xe&&(this._data[Pe].symbol.range=Xe)}return this._data},X.prototype.updateCommands=function(he){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(he,!0);for(var Pe=0;Pe<this._data.length;Pe++){var Xe=he[Pe];if(Xe){var pe=this._data[Pe].symbol;pe.command=Xe.command||pe.command}}},X.prototype.getCommand=function(he){var Pe;return(Pe=this._contentWidget)===null||Pe===void 0?void 0:Pe.getCommand(he)},X.prototype.getLineNumber=function(){var he=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return he?he.startLineNumber:-1},X.prototype.update=function(he){if(this.isValid()){var Pe=this._editor.getModel().getDecorationRange(this._decorationIds[0]);Pe&&(this._viewZone.afterLineNumber=Pe.startLineNumber-1,he.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(Pe.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}},X}();Object(p.e)(function(X,he){var Pe=X.getColor(l.e);Pe&&(he.addRule(".monaco-editor .codelens-decoration { color: "+Pe+"; }"),he.addRule(".monaco-editor .codelens-decoration .codicon { color: "+Pe+"; }"));var Xe=X.getColor(d.n);Xe&&(he.addRule(".monaco-editor .codelens-decoration > a:hover { color: "+Xe+" !important; }"),he.addRule(".monaco-editor .codelens-decoration > a:hover .codicon { color: "+Xe+" !important; }"))});var R=e("nnTU"),$=e("sM1p"),ie=e("Cg/j"),W=e("9fML"),B=e("QDVR"),le=e("A+jI"),be=e("C/vA"),De=function(X,he,Pe,Xe){var pe=arguments.length,me=pe<3?he:Xe===null?Xe=Object.getOwnPropertyDescriptor(he,Pe):Xe,Se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(X,he,Pe,Xe);else for(var Re=X.length-1;Re>=0;Re--)(Se=X[Re])&&(me=(pe<3?Se(me):pe>3?Se(he,Pe,me):Se(he,Pe))||me);return pe>3&&me&&Object.defineProperty(he,Pe,me),me},Te=function(X,he){return function(Pe,Xe){he(Pe,Xe,X)}},ke=Object(ie.c)("ICodeLensCache"),He=function(){function X(he,Pe){this.lineCount=he,this.data=Pe}return X}(),je=function(){function X(he){var Pe=this;this._fakeProvider=new(function(){function Se(){}return Se.prototype.provideCodeLenses=function(){throw new Error("not supported")},Se}()),this._cache=new B.a(20,.75);var Xe="codelens/cache";Object(T.k)(function(){return he.remove(Xe,1)});var pe="codelens/cache2",me=he.get(pe,1,"{}");this._deserialize(me),Object(be.a)(he.onWillSaveState)(function(Se){Se.reason===le.c.SHUTDOWN&&he.store(pe,Pe._serialize(),1)})}return X.prototype.put=function(he,Pe){var Xe=Pe.lenses.map(function(Se){var Re;return{range:Se.symbol.range,command:Se.symbol.command&&{id:"",title:(Re=Se.symbol.command)===null||Re===void 0?void 0:Re.title}}}),pe=new y;pe.add({lenses:Xe,dispose:function(){}},this._fakeProvider);var me=new He(he.getLineCount(),pe);this._cache.set(he.uri.toString(),me)},X.prototype.get=function(he){var Pe=this._cache.get(he.uri.toString());return Pe&&Pe.lineCount===he.getLineCount()?Pe.data:void 0},X.prototype.delete=function(he){this._cache.delete(he.uri.toString())},X.prototype._serialize=function(){var he=Object.create(null);return this._cache.forEach(function(Pe,Xe){for(var pe=new Set,me=0,Se=Pe.data.lenses;me<Se.length;me++){var Re=Se[me];pe.add(Re.symbol.range.startLineNumber)}he[Xe]={lineCount:Pe.lineCount,lines:Object(B.e)(pe)}}),JSON.stringify(he)},X.prototype._deserialize=function(he){try{var Pe=JSON.parse(he);for(var Xe in Pe){for(var pe=Pe[Xe],me=[],Se=0,Re=pe.lines;Se<Re.length;Se++){var Ee=Re[Se];me.push({range:new u.a(Ee,1,Ee,11)})}var ve=new y;ve.add({lenses:me,dispose:function(){}},this._fakeProvider),this._cache.set(Xe,new He(pe.lineCount,ve))}}catch(Q){}},X=De([Te(0,le.a)],X),X}();Object(W.b)(ke,je);var oe=e("7afs"),ee=function(X,he,Pe,Xe){var pe=arguments.length,me=pe<3?he:Xe===null?Xe=Object.getOwnPropertyDescriptor(he,Pe):Xe,Se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(X,he,Pe,Xe);else for(var Re=X.length-1;Re>=0;Re--)(Se=X[Re])&&(me=(pe<3?Se(me):pe>3?Se(he,Pe,me):Se(he,Pe))||me);return pe>3&&me&&Object.defineProperty(he,Pe,me),me},ae=function(X,he){return function(Pe,Xe){he(Pe,Xe,X)}},q=function(){for(var X=0,he=0,Pe=arguments.length;he<Pe;he++)X+=arguments[he].length;for(var Xe=Array(X),pe=0,he=0;he<Pe;he++)for(var me=arguments[he],Se=0,Re=me.length;Se<Re;Se++,pe++)Xe[pe]=me[Se];return Xe},ce=function(){function X(he,Pe,Xe,pe){var me=this;this._editor=he,this._commandService=Pe,this._notificationService=Xe,this._codeLensCache=pe,this._globalToDispose=new J.b,this._localToDispose=new J.b,this._lenses=[],this._oldCodeLensModels=new J.b,this._modelChangeCounter=0,this._isEnabled=this._editor.getOption(11),this._globalToDispose.add(this._editor.onDidChangeModel(function(){return me._onModelChange()})),this._globalToDispose.add(this._editor.onDidChangeModelLanguage(function(){return me._onModelChange()})),this._globalToDispose.add(this._editor.onDidChangeConfiguration(function(){var Se=me._isEnabled;me._isEnabled=me._editor.getOption(11),Se!==me._isEnabled&&me._onModelChange()})),this._globalToDispose.add(z.b.onDidChange(this._onModelChange,this)),this._globalToDispose.add(this._editor.onDidChangeConfiguration(function(Se){Se.hasChanged(34)&&me._updateLensStyle()})),this._onModelChange(),this._styleClassName=Object(oe.a)(this._editor.getId()).toString(16),this._styleElement=v.w(v.N(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}return X.prototype.dispose=function(){this._localDispose(),this._globalToDispose.dispose(),this._oldCodeLensModels.dispose(),Object(J.f)(this._currentCodeLensModel)},X.prototype._updateLensStyle=function(){var he=this._editor.getOptions(),Pe=he.get(34),Xe=he.get(49),pe=Math.round(Xe*1.1),me=Math.round(Pe.fontSize*.9),Se=`
.monaco-editor .codelens-decoration.`+this._styleClassName+" { height: "+pe+"px; line-height: "+Xe+"px; font-size: "+me+"px; padding-right: "+Math.round(Pe.fontSize*.45)+`px;}
.monaco-editor .codelens-decoration.`+this._styleClassName+" > a > .codicon { line-height: "+Xe+"px; font-size: "+me+`px; }
`;this._styleElement.innerHTML=Se},X.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=void 0,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0),this._localToDispose.clear(),this._oldCodeLensModels.clear(),Object(J.f)(this._currentCodeLensModel)},X.prototype._onModelChange=function(){var he=this;this._localDispose();var Pe=this._editor.getModel();if(!Pe)return;if(!this._isEnabled)return;var Xe=this._codeLensCache.get(Pe);if(Xe&&this._renderCodeLensSymbols(Xe),!z.b.has(Pe)){Xe&&this._localToDispose.add(Object(T.g)(function(){var Q=he._codeLensCache.get(Pe);Xe===Q&&(he._codeLensCache.delete(Pe),he._onModelChange())},30*1e3));return}for(var pe=0,me=z.b.all(Pe);pe<me.length;pe++){var Se=me[pe];if(typeof Se.onDidChange=="function"){var Re=Se.onDidChange(function(){return ve.schedule()});this._localToDispose.add(Re)}}var Ee=this._detectVisibleLenses=new T.d(function(){return he._onViewportChanged()},250),ve=new T.d(function(){var Q=++he._modelChangeCounter;he._currentFindCodeLensSymbolsPromise&&he._currentFindCodeLensSymbolsPromise.cancel(),he._currentFindCodeLensSymbolsPromise=Object(T.f)(function(b){return L(Pe,b)}),he._currentFindCodeLensSymbolsPromise.then(function(b){Q===he._modelChangeCounter&&(he._currentCodeLensModel&&he._oldCodeLensModels.add(he._currentCodeLensModel),he._currentCodeLensModel=b,he._codeLensCache.put(Pe,b),he._renderCodeLensSymbols(b),Ee.schedule())},re.e)},250);this._localToDispose.add(ve),this._localToDispose.add(Ee),this._localToDispose.add(this._editor.onDidChangeModelContent(function(){he._editor.changeDecorations(function(Q){he._editor.changeViewZones(function(b){var k=[],se=-1;he._lenses.forEach(function(Ce){!Ce.isValid()||se===Ce.getLineNumber()?k.push(Ce):(Ce.update(b),se=Ce.getLineNumber())});var ne=new x;k.forEach(function(Ce){Ce.dispose(ne,b),he._lenses.splice(he._lenses.indexOf(Ce),1)}),ne.commit(Q)})}),Ee.schedule(),ve.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(function(Q){Q.scrollTopChanged&&he._lenses.length>0&&Ee.schedule()})),this._localToDispose.add(this._editor.onDidLayoutChange(function(){Ee.schedule()})),this._localToDispose.add(Object(J.h)(function(){if(he._editor.getModel()){var Q=N.c.capture(he._editor);he._editor.changeDecorations(function(b){he._editor.changeViewZones(function(k){he._disposeAllLenses(b,k)})}),Q.restore(he._editor)}else he._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseUp(function(Q){var b;if(Q.target.type!==9)return;var k=Q.target.element;if((k==null?void 0:k.tagName)==="SPAN"&&(k=k.parentElement),(k==null?void 0:k.tagName)==="A")for(var se=0,ne=he._lenses;se<ne.length;se++){var Ce=ne[se],Oe=Ce.getCommand(k);if(Oe){(b=he._commandService).executeCommand.apply(b,q([Oe.id],Oe.arguments||[])).catch(function(we){return he._notificationService.error(we)});break}}})),ve.schedule()},X.prototype._disposeAllLenses=function(he,Pe){for(var Xe=new x,pe=0,me=this._lenses;pe<me.length;pe++){var Se=me[pe];Se.dispose(Xe,Pe)}he&&Xe.commit(he),this._lenses=[]},X.prototype._renderCodeLensSymbols=function(he){var Pe=this;if(!this._editor.hasModel())return;for(var Xe=this._editor.getModel().getLineCount(),pe=[],me,Se=0,Re=he.lenses;Se<Re.length;Se++){var Ee=Re[Se],ve=Ee.symbol.range.startLineNumber;if(ve<1||ve>Xe)continue;me&&me[me.length-1].symbol.range.startLineNumber===ve?me.push(Ee):(me=[Ee],pe.push(me))}var Q=N.c.capture(this._editor);this._editor.changeDecorations(function(b){Pe._editor.changeViewZones(function(k){for(var se=new x,ne=0,Ce=0;Ce<pe.length&&ne<Pe._lenses.length;){var Oe=pe[Ce][0].symbol.range.startLineNumber,we=Pe._lenses[ne].getLineNumber();we<Oe?(Pe._lenses[ne].dispose(se,k),Pe._lenses.splice(ne,1)):we===Oe?(Pe._lenses[ne].updateCodeLensSymbols(pe[Ce],se),Ce++,ne++):(Pe._lenses.splice(ne,0,new F(pe[Ce],Pe._editor,Pe._styleClassName,se,k,function(){return Pe._detectVisibleLenses&&Pe._detectVisibleLenses.schedule()})),ne++,Ce++)}for(;ne<Pe._lenses.length;)Pe._lenses[ne].dispose(se,k),Pe._lenses.splice(ne,1);for(;Ce<pe.length;)Pe._lenses.push(new F(pe[Ce],Pe._editor,Pe._styleClassName,se,k,function(){return Pe._detectVisibleLenses&&Pe._detectVisibleLenses.schedule()})),Ce++;se.commit(b)})}),Q.restore(this._editor)},X.prototype._onViewportChanged=function(){var he=this;this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);var Pe=this._editor.getModel();if(!Pe)return;var Xe=[],pe=[];if(this._lenses.forEach(function(Se){var Re=Se.computeIfNecessary(Pe);Re&&(Xe.push(Re),pe.push(Se))}),Xe.length===0)return;var me=Object(T.f)(function(Se){var Re=Xe.map(function(Ee,ve){var Q=new Array(Ee.length),b=Ee.map(function(k,se){return!k.symbol.command&&typeof k.provider.resolveCodeLens=="function"?Promise.resolve(k.provider.resolveCodeLens(Pe,k.symbol,Se)).then(function(ne){Q[se]=ne},re.f):(Q[se]=k.symbol,Promise.resolve(void 0))});return Promise.all(b).then(function(){!Se.isCancellationRequested&&!pe[ve].isDisposed()&&pe[ve].updateCommands(Q)})});return Promise.all(Re)});this._currentResolveCodeLensSymbolsPromise=me,this._currentResolveCodeLensSymbolsPromise.then(function(){he._currentCodeLensModel&&he._codeLensCache.put(Pe,he._currentCodeLensModel),he._oldCodeLensModels.clear(),me===he._currentResolveCodeLensSymbolsPromise&&(he._currentResolveCodeLensSymbolsPromise=void 0)},function(Se){Object(re.e)(Se),me===he._currentResolveCodeLensSymbolsPromise&&(he._currentResolveCodeLensSymbolsPromise=void 0)})},X.ID="css.editor.codeLens",X=ee([ae(1,R.b),ae(2,$.a),ae(3,ke)],X),X}();Object(H.h)(ce.ID,ce)},dBaI:function(_t,P,e){"use strict";e.d(P,"a",function(){return re}),e.d(P,"b",function(){return H});var T=e("N0LK"),re=function(){function z(M,U,A,c){this.startColumn=M,this.endColumn=U,this.className=A,this.type=c}return z._equals=function(M,U){return M.startColumn===U.startColumn&&M.endColumn===U.endColumn&&M.className===U.className&&M.type===U.type},z.equalsArr=function(M,U){var A=M.length,c=U.length;if(A!==c)return!1;for(var y=0;y<A;y++)if(!z._equals(M[y],U[y]))return!1;return!0},z.filter=function(M,U,A,c){if(M.length===0)return[];for(var y=[],L=0,f=0,v=M.length;f<v;f++){var S=M[f],g=S.range;if(g.endLineNumber<U||g.startLineNumber>U)continue;if(g.isEmpty()&&(S.type===0||S.type===3))continue;var u=g.startLineNumber===U?g.startColumn:A,s=g.endLineNumber===U?g.endColumn:c;y[L++]=new z(u,s,S.inlineClassName,S.type)}return y},z.compare=function(M,U){return M.startColumn===U.startColumn?M.endColumn===U.endColumn?M.className<U.className?-1:M.className>U.className?1:0:M.endColumn-U.endColumn:M.startColumn-U.startColumn},z}(),J=function(){function z(M,U,A){this.startOffset=M,this.endOffset=U,this.className=A}return z}(),N=function(){function z(){this.stopOffsets=[],this.classNames=[],this.count=0}return z.prototype.consumeLowerThan=function(M,U,A){for(;this.count>0&&this.stopOffsets[0]<M;){for(var c=0;c+1<this.count&&this.stopOffsets[c]===this.stopOffsets[c+1];)c++;A.push(new J(U,this.stopOffsets[c],this.classNames.join(" "))),U=this.stopOffsets[c]+1,this.stopOffsets.splice(0,c+1),this.classNames.splice(0,c+1),this.count-=c+1}return this.count>0&&U<M&&(A.push(new J(U,M-1,this.classNames.join(" "))),U=M),U},z.prototype.insert=function(M,U){if(this.count===0||this.stopOffsets[this.count-1]<=M)this.stopOffsets.push(M),this.classNames.push(U);else for(var A=0;A<this.count;A++)if(this.stopOffsets[A]>=M){this.stopOffsets.splice(A,0,M),this.classNames.splice(A,0,U);break}this.count++;return},z}(),H=function(){function z(){}return z.normalize=function(M,U){if(U.length===0)return[];for(var A=[],c=new N,y=0,L=0,f=U.length;L<f;L++){var v=U[L],S=v.startColumn,g=v.endColumn,u=v.className;if(S>1){var s=M.charCodeAt(S-2);T.z(s)&&S--}if(g>1){var s=M.charCodeAt(g-2);T.z(s)&&g--}var l=S-1,d=g-2;y=c.consumeLowerThan(l,y,A),c.count===0&&(y=l),c.insert(d,u)}return c.consumeLowerThan(1073741824,y,A),A},z}()},dFcq:function(_t,P,e){},"dH+W":function(_t,P,e){"use strict";e.r(P),e.d(P,"DuplicateSelectionAction",function(){return W}),e.d(P,"AbstractSortLinesAction",function(){return De}),e.d(P,"SortLinesAscendingAction",function(){return Te}),e.d(P,"SortLinesDescendingAction",function(){return ke}),e.d(P,"TrimTrailingWhitespaceAction",function(){return He}),e.d(P,"DeleteLinesAction",function(){return je}),e.d(P,"IndentLinesAction",function(){return oe}),e.d(P,"InsertLineBeforeAction",function(){return ae}),e.d(P,"InsertLineAfterAction",function(){return q}),e.d(P,"AbstractDeleteAllToBoundaryAction",function(){return ce}),e.d(P,"DeleteAllLeftAction",function(){return X}),e.d(P,"DeleteAllRightAction",function(){return he}),e.d(P,"JoinLinesAction",function(){return Pe}),e.d(P,"TransposeAction",function(){return Xe}),e.d(P,"AbstractCaseAction",function(){return pe}),e.d(P,"UpperCaseAction",function(){return me}),e.d(P,"LowerCaseAction",function(){return Se}),e.d(P,"TitleCaseAction",function(){return Re});var T=e("3/fG"),re=e("/kV6"),J=e("1YUG"),N=e("sswD"),H=e("LCkn"),z=e("N0LK"),M=e("0/Sa"),U=e("aokT"),A=function(){function Ee(ve,Q){this._selection=ve,this._cursors=Q,this._selectionId=null}return Ee.prototype.getEditOperations=function(ve,Q){for(var b=c(ve,this._cursors),k=0,se=b.length;k<se;k++){var ne=b[k];Q.addEditOperation(ne.range,ne.text)}this._selectionId=Q.trackSelection(this._selection)},Ee.prototype.computeCursorState=function(ve,Q){return Q.getTrackedSelection(this._selectionId)},Ee}();function c(Ee,ve){ve.sort(function(Rt,Dt){return Rt.lineNumber===Dt.lineNumber?Rt.column-Dt.column:Rt.lineNumber-Dt.lineNumber});for(var Q=ve.length-2;Q>=0;Q--)ve[Q].lineNumber===ve[Q+1].lineNumber&&ve.splice(Q,1);for(var b=[],k=0,se=0,ne=ve.length,Ce=1,Oe=Ee.getLineCount();Ce<=Oe;Ce++){var we=Ee.getLineContent(Ce),Ve=we.length+1,Qe=0;if(se<ne&&ve[se].lineNumber===Ce&&(Qe=ve[se].column,se++,Qe===Ve))continue;if(we.length===0)continue;var it=z.D(we),gt=0;if(it===-1)gt=1;else if(it!==we.length-1)gt=it+2;else continue;gt=Math.max(Qe,gt),b[k++]=M.a.delete(new U.a(Ce,gt,Ce,Ve))}return b}var y=e("GR/f"),L=e("cGHE"),f=e("gCVg"),v=e("wQH0"),S=function(){function Ee(ve,Q){this._selection=ve,this._isCopyingDown=Q,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}return Ee.prototype.getEditOperations=function(ve,Q){var b=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,b.startLineNumber<b.endLineNumber&&b.endColumn===1&&(this._endLineNumberDelta=1,b=b.setEndPosition(b.endLineNumber-1,ve.getLineMaxColumn(b.endLineNumber-1)));for(var k=[],se=b.startLineNumber;se<=b.endLineNumber;se++)k.push(ve.getLineContent(se));var ne=k.join(`
`);ne===""&&(this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++)),this._isCopyingDown?Q.addEditOperation(new U.a(b.startLineNumber,1,b.startLineNumber,1),ne+`
`):Q.addEditOperation(new U.a(b.endLineNumber,ve.getLineMaxColumn(b.endLineNumber),b.endLineNumber,ve.getLineMaxColumn(b.endLineNumber)),`
`+ne),this._selectionId=Q.trackSelection(b),this._selectionDirection=this._selection.getDirection()},Ee.prototype.computeCursorState=function(ve,Q){var b=Q.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){var k=b.startLineNumber,se=b.startColumn,ne=b.endLineNumber,Ce=b.endColumn;this._startLineNumberDelta!==0&&(k=k+this._startLineNumberDelta,se=1),this._endLineNumberDelta!==0&&(ne=ne+this._endLineNumberDelta,Ce=1),b=f.a.createWithDirection(k,se,ne,Ce,this._selectionDirection)}return b},Ee}(),g=e("zN7H"),u=e("KDc4"),s=e("cMvZ");function l(Ee,ve){for(var Q=0,b=0;b<Ee.length;b++)Ee.charAt(b)===" "?Q+=ve:Q++;return Q}function d(Ee,ve,Q){Ee=Ee<0?0:Ee;var b="";if(!Q){var k=Math.floor(Ee/ve);Ee=Ee%ve;for(var se=0;se<k;se++)b+=" "}for(var se=0;se<Ee;se++)b+=" ";return b}var p=function(){function Ee(ve,Q,b){this._selection=ve,this._isMovingDown=Q,this._autoIndent=b,this._selectionId=null,this._moveEndLineSelectionShrink=!1}return Ee.prototype.getEditOperations=function(ve,Q){var b=ve.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===b){this._selectionId=Q.trackSelection(this._selection);return}if(!this._isMovingDown&&this._selection.startLineNumber===1){this._selectionId=Q.trackSelection(this._selection);return}this._moveEndPositionDown=!1;var k=this._selection;k.startLineNumber<k.endLineNumber&&k.endColumn===1&&(this._moveEndPositionDown=!0,k=k.setEndPosition(k.endLineNumber-1,ve.getLineMaxColumn(k.endLineNumber-1)));var se=ve.getOptions(),ne=se.tabSize,Ce=se.indentSize,Oe=se.insertSpaces,we=this.buildIndentConverter(ne,Ce,Oe),Ve={getLineTokens:function(mt){return ve.getLineTokens(mt)},getLanguageIdentifier:function(){return ve.getLanguageIdentifier()},getLanguageIdAtPosition:function(mt,Ct){return ve.getLanguageIdAtPosition(mt,Ct)},getLineContent:null};if(k.startLineNumber===k.endLineNumber&&ve.getLineMaxColumn(k.startLineNumber)===1){var Qe=k.startLineNumber,it=this._isMovingDown?Qe+1:Qe-1;ve.getLineMaxColumn(it)===1?Q.addEditOperation(new U.a(1,1,1,1),null):(Q.addEditOperation(new U.a(Qe,1,Qe,1),ve.getLineContent(it)),Q.addEditOperation(new U.a(it,1,it,ve.getLineMaxColumn(it)),null)),k=new f.a(it,1,it,1)}else{var gt,Rt=void 0;if(this._isMovingDown){gt=k.endLineNumber+1,Rt=ve.getLineContent(gt),Q.addEditOperation(new U.a(gt-1,ve.getLineMaxColumn(gt-1),gt,ve.getLineMaxColumn(gt)),null);var Dt=Rt;if(this.shouldAutoIndent(ve,k)){var zt=this.matchEnterRule(ve,we,ne,gt,k.startLineNumber-1);if(zt!==null){var cn=z.t(ve.getLineContent(gt)),ln=zt+l(cn,ne),an=d(ln,ne,Oe);Dt=an+this.trimLeft(Rt)}else{Ve.getLineContent=function(bt){return bt===k.startLineNumber?ve.getLineContent(gt):ve.getLineContent(bt)};var jt=s.a.getGoodIndentForLine(this._autoIndent,Ve,ve.getLanguageIdAtPosition(gt,1),k.startLineNumber,we);if(jt!==null){var cn=z.t(ve.getLineContent(gt)),ln=l(jt,ne),ft=l(cn,ne);if(ln!==ft){var an=d(ln,ne,Oe);Dt=an+this.trimLeft(Rt)}}}Q.addEditOperation(new U.a(k.startLineNumber,1,k.startLineNumber,1),Dt+`
`);var vt=this.matchEnterRule(ve,we,ne,k.startLineNumber,k.startLineNumber,Dt);if(vt!==null)vt!==0&&this.getIndentEditsOfMovingBlock(ve,Q,k,ne,Oe,vt);else{Ve.getLineContent=function(bt){return bt===k.startLineNumber?Dt:bt>=k.startLineNumber+1&&bt<=k.endLineNumber+1?ve.getLineContent(bt-1):ve.getLineContent(bt)};var xt=s.a.getGoodIndentForLine(this._autoIndent,Ve,ve.getLanguageIdAtPosition(gt,1),k.startLineNumber+1,we);if(xt!==null){var cn=z.t(ve.getLineContent(k.startLineNumber)),ln=l(xt,ne),ft=l(cn,ne);if(ln!==ft){var at=ln-ft;this.getIndentEditsOfMovingBlock(ve,Q,k,ne,Oe,at)}}}}else Q.addEditOperation(new U.a(k.startLineNumber,1,k.startLineNumber,1),Dt+`
`)}else if(gt=k.startLineNumber-1,Rt=ve.getLineContent(gt),Q.addEditOperation(new U.a(gt,1,gt+1,1),null),Q.addEditOperation(new U.a(k.endLineNumber,ve.getLineMaxColumn(k.endLineNumber),k.endLineNumber,ve.getLineMaxColumn(k.endLineNumber)),`
`+Rt),this.shouldAutoIndent(ve,k)){Ve.getLineContent=function(mt){return mt===gt?ve.getLineContent(k.startLineNumber):ve.getLineContent(mt)};var vt=this.matchEnterRule(ve,we,ne,k.startLineNumber,k.startLineNumber-2);if(vt!==null)vt!==0&&this.getIndentEditsOfMovingBlock(ve,Q,k,ne,Oe,vt);else{var tt=s.a.getGoodIndentForLine(this._autoIndent,Ve,ve.getLanguageIdAtPosition(k.startLineNumber,1),gt,we);if(tt!==null){var ct=z.t(ve.getLineContent(k.startLineNumber)),ln=l(tt,ne),ft=l(ct,ne);if(ln!==ft){var at=ln-ft;this.getIndentEditsOfMovingBlock(ve,Q,k,ne,Oe,at)}}}}}this._selectionId=Q.trackSelection(k)},Ee.prototype.buildIndentConverter=function(ve,Q,b){return{shiftIndent:function(se){return g.a.shiftIndent(se,se.length+1,ve,Q,b)},unshiftIndent:function(se){return g.a.unshiftIndent(se,se.length+1,ve,Q,b)}}},Ee.prototype.matchEnterRule=function(ve,Q,b,k,se,ne){for(var Ce=se;Ce>=1;){var Oe=void 0;Ce===se&&ne!==void 0?Oe=ne:Oe=ve.getLineContent(Ce);var we=z.D(Oe);if(we>=0)break;Ce--}if(Ce<1||k>ve.getLineCount())return null;var Ve=ve.getLineMaxColumn(Ce),Qe=s.a.getEnterAction(this._autoIndent,ve,new U.a(Ce,Ve,Ce,Ve));if(Qe){var it=Qe.indentation;Qe.indentAction===u.a.None||Qe.indentAction===u.a.Indent?it=Qe.indentation+Qe.appendText:Qe.indentAction===u.a.IndentOutdent?it=Qe.indentation:Qe.indentAction===u.a.Outdent&&(it=Q.unshiftIndent(Qe.indentation)+Qe.appendText);var gt=ve.getLineContent(k);if(this.trimLeft(gt).indexOf(this.trimLeft(it))>=0){var Rt=z.t(ve.getLineContent(k)),Dt=z.t(it),zt=s.a.getIndentMetadata(ve,k);zt!==null&&zt&2&&(Dt=Q.unshiftIndent(Dt));var cn=l(Dt,b),ln=l(Rt,b);return cn-ln}}return null},Ee.prototype.trimLeft=function(ve){return ve.replace(/^\s+/,"")},Ee.prototype.shouldAutoIndent=function(ve,Q){if(this._autoIndent<4)return!1;if(!ve.isCheapToTokenize(Q.startLineNumber))return!1;var b=ve.getLanguageIdAtPosition(Q.startLineNumber,1),k=ve.getLanguageIdAtPosition(Q.endLineNumber,1);return b!==k?!1:!(s.a.getIndentRulesSupport(b)===null)},Ee.prototype.getIndentEditsOfMovingBlock=function(ve,Q,b,k,se,ne){for(var Ce=b.startLineNumber;Ce<=b.endLineNumber;Ce++){var Oe=ve.getLineContent(Ce),we=z.t(Oe),Ve=l(we,k),Qe=Ve+ne,it=d(Qe,k,se);it!==we&&(Q.addEditOperation(new U.a(Ce,1,Ce,we.length+1),it),Ce===b.endLineNumber&&b.endColumn<=we.length+1&&it===""&&(this._moveEndLineSelectionShrink=!0))}},Ee.prototype.computeCursorState=function(ve,Q){var b=Q.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(b=b.setEndPosition(b.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&b.startLineNumber<b.endLineNumber&&(b=b.setEndPosition(b.endLineNumber,2)),b},Ee}(),E=function(){function Ee(ve,Q){this.selection=ve,this.descending=Q,this.selectionId=null}return Ee.getCollator=function(){return Ee._COLLATOR||(Ee._COLLATOR=new Intl.Collator),Ee._COLLATOR},Ee.prototype.getEditOperations=function(ve,Q){var b=x(ve,this.selection,this.descending);b&&Q.addEditOperation(b.range,b.text),this.selectionId=Q.trackSelection(this.selection)},Ee.prototype.computeCursorState=function(ve,Q){return Q.getTrackedSelection(this.selectionId)},Ee.canRun=function(ve,Q,b){if(ve===null)return!1;var k=_(ve,Q,b);if(!k)return!1;for(var se=0,ne=k.before.length;se<ne;se++)if(k.before[se]!==k.after[se])return!0;return!1},Ee._COLLATOR=null,Ee}();function _(Ee,ve,Q){var b=ve.startLineNumber,k=ve.endLineNumber;if(ve.endColumn===1&&k--,b>=k)return null;for(var se=[],ne=b;ne<=k;ne++)se.push(Ee.getLineContent(ne));var Ce=se.slice(0);return Ce.sort(E.getCollator().compare),Q===!0&&(Ce=Ce.reverse()),{startLineNumber:b,endLineNumber:k,before:se,after:Ce}}function x(Ee,ve,Q){var b=_(Ee,ve,Q);return b?M.a.replace(new U.a(b.startLineNumber,1,b.endLineNumber,Ee.getLineMaxColumn(b.endLineNumber)),b.after.join(`
`)):null}var F=function(){var Ee=function(Q,b){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,se){k.__proto__=se}||function(k,se){for(var ne in se)se.hasOwnProperty(ne)&&(k[ne]=se[ne])},Ee(Q,b)};return function(ve,Q){Ee(ve,Q);function b(){this.constructor=ve}ve.prototype=Q===null?Object.create(Q):(b.prototype=Q.prototype,new b)}}(),R=function(Ee){F(ve,Ee);function ve(Q,b){var k=Ee.call(this,b)||this;return k.down=Q,k}return ve.prototype.run=function(Q,b){for(var k=[],se=b.getSelections()||[],ne=0,Ce=se;ne<Ce.length;ne++){var Oe=Ce[ne];k.push(new S(Oe,this.down))}b.pushUndoStop(),b.executeCommands(this.id,k),b.pushUndoStop()},ve}(N.b),$=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,!1,{id:"editor.action.copyLinesUpAction",label:T.a("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:512|1024|16,linux:{primary:2048|512|1024|16},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})||this}return ve}(R),ie=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,!0,{id:"editor.action.copyLinesDownAction",label:T.a("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:512|1024|18,linux:{primary:2048|512|1024|18},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})||this}return ve}(R),W=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.duplicateSelection",label:T.a("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:v.a.writable,menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})||this}return ve.prototype.run=function(Q,b,k){if(!b.hasModel())return;for(var se=[],ne=b.getSelections(),Ce=b.getModel(),Oe=0,we=ne;Oe<we.length;Oe++){var Ve=we[Oe];if(Ve.isEmpty())se.push(new S(Ve,!0));else{var Qe=new f.a(Ve.endLineNumber,Ve.endColumn,Ve.endLineNumber,Ve.endColumn);se.push(new H.c(Qe,Ce.getValueInRange(Ve)))}}b.pushUndoStop(),b.executeCommands(this.id,se),b.pushUndoStop()},ve}(N.b),B=function(Ee){F(ve,Ee);function ve(Q,b){var k=Ee.call(this,b)||this;return k.down=Q,k}return ve.prototype.run=function(Q,b){for(var k=[],se=b.getSelections()||[],ne=b.getOption(8),Ce=0,Oe=se;Ce<Oe.length;Ce++){var we=Oe[Ce];k.push(new p(we,this.down,ne))}b.pushUndoStop(),b.executeCommands(this.id,k),b.pushUndoStop()},ve}(N.b),le=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,!1,{id:"editor.action.moveLinesUpAction",label:T.a("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:512|16,linux:{primary:512|16},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})||this}return ve}(B),be=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,!0,{id:"editor.action.moveLinesDownAction",label:T.a("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:512|18,linux:{primary:512|18},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})||this}return ve}(B),De=function(Ee){F(ve,Ee);function ve(Q,b){var k=Ee.call(this,b)||this;return k.descending=Q,k}return ve.prototype.run=function(Q,b){for(var k=b.getSelections()||[],se=0,ne=k;se<ne.length;se++){var Ce=ne[se];if(!E.canRun(b.getModel(),Ce,this.descending))return}for(var Oe=[],we=0,Ve=k.length;we<Ve;we++)Oe[we]=new E(k[we],this.descending);b.pushUndoStop(),b.executeCommands(this.id,Oe),b.pushUndoStop()},ve}(N.b),Te=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,!1,{id:"editor.action.sortLinesAscending",label:T.a("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:v.a.writable})||this}return ve}(De),ke=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,!0,{id:"editor.action.sortLinesDescending",label:T.a("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:v.a.writable})||this}return ve}(De),He=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:ve.ID,label:T.a("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:Object(re.a)(2048|41,2048|54),weight:100}})||this}return ve.prototype.run=function(Q,b,k){var se=[];k.reason==="auto-save"&&(se=(b.getSelections()||[]).map(function(Oe){return new L.a(Oe.positionLineNumber,Oe.positionColumn)}));var ne=b.getSelection();if(ne===null)return;var Ce=new A(ne,se);b.pushUndoStop(),b.executeCommands(this.id,[Ce]),b.pushUndoStop()},ve.ID="editor.action.trimTrailingWhitespace",ve}(N.b),je=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.deleteLines",label:T.a("lines.delete","Delete Line"),alias:"Delete Line",precondition:v.a.writable,kbOpts:{kbExpr:v.a.textInputFocus,primary:2048|1024|41,weight:100}})||this}return ve.prototype.run=function(Q,b){if(!b.hasModel())return;var k=this._getLinesToRemove(b),se=b.getModel();if(se.getLineCount()===1&&se.getLineMaxColumn(1)===1)return;for(var ne=0,Ce=[],Oe=[],we=0,Ve=k.length;we<Ve;we++){var Qe=k[we],it=Qe.startLineNumber,gt=Qe.endLineNumber,Rt=1,Dt=se.getLineMaxColumn(gt);gt<se.getLineCount()?(gt+=1,Dt=1):it>1&&(it-=1,Rt=se.getLineMaxColumn(it)),Ce.push(M.a.replace(new f.a(it,Rt,gt,Dt),"")),Oe.push(new f.a(it-ne,Qe.positionColumn,it-ne,Qe.positionColumn)),ne+=Qe.endLineNumber-Qe.startLineNumber+1}b.pushUndoStop(),b.executeEdits(this.id,Ce,Oe),b.pushUndoStop()},ve.prototype._getLinesToRemove=function(Q){var b=Q.getSelections().map(function(Ce){var Oe=Ce.endLineNumber;return Ce.startLineNumber<Ce.endLineNumber&&Ce.endColumn===1&&(Oe-=1),{startLineNumber:Ce.startLineNumber,selectionStartColumn:Ce.selectionStartColumn,endLineNumber:Oe,positionColumn:Ce.positionColumn}});b.sort(function(Ce,Oe){return Ce.startLineNumber===Oe.startLineNumber?Ce.endLineNumber-Oe.endLineNumber:Ce.startLineNumber-Oe.startLineNumber});for(var k=[],se=b[0],ne=1;ne<b.length;ne++)se.endLineNumber+1>=b[ne].startLineNumber?se.endLineNumber=b[ne].endLineNumber:(k.push(se),se=b[ne]);return k.push(se),k},ve}(N.b),oe=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.indentLines",label:T.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|89,weight:100}})||this}return ve.prototype.run=function(Q,b){var k=b._getCursors();if(!k)return;b.pushUndoStop(),b.executeCommands(this.id,y.a.indent(k.context.config,b.getModel(),b.getSelections())),b.pushUndoStop()},ve}(N.b),ee=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.outdentLines",label:T.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|87,weight:100}})||this}return ve.prototype.run=function(Q,b){J.CoreEditingCommands.Outdent.runEditorCommand(Q,b,null)},ve}(N.b),ae=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.insertLineBefore",label:T.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|1024|3,weight:100}})||this}return ve.prototype.run=function(Q,b){var k=b._getCursors();if(!k)return;b.pushUndoStop(),b.executeCommands(this.id,y.a.lineInsertBefore(k.context.config,b.getModel(),b.getSelections()))},ve}(N.b),q=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.insertLineAfter",label:T.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|3,weight:100}})||this}return ve.prototype.run=function(Q,b){var k=b._getCursors();if(!k)return;b.pushUndoStop(),b.executeCommands(this.id,y.a.lineInsertAfter(k.context.config,b.getModel(),b.getSelections()))},ve}(N.b),ce=function(Ee){F(ve,Ee);function ve(){return Ee!==null&&Ee.apply(this,arguments)||this}return ve.prototype.run=function(Q,b){if(!b.hasModel())return;for(var k=b.getSelection(),se=this._getRangesToDelete(b),ne=[],Ce=0,Oe=se.length-1;Ce<Oe;Ce++){var we=se[Ce],Ve=se[Ce+1];U.a.intersectRanges(we,Ve)===null?ne.push(we):se[Ce+1]=U.a.plusRange(we,Ve)}ne.push(se[se.length-1]);var Qe=this._getEndCursorState(k,ne),it=ne.map(function(gt){return M.a.replace(gt,"")});b.pushUndoStop(),b.executeEdits(this.id,it,Qe),b.pushUndoStop()},ve}(N.b),X=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"deleteAllLeft",label:T.a("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:v.a.writable,kbOpts:{kbExpr:v.a.textInputFocus,primary:0,mac:{primary:2048|1},weight:100}})||this}return ve.prototype._getEndCursorState=function(Q,b){var k=null,se=[],ne=0;return b.forEach(function(Ce){var Oe;if(Ce.endColumn===1&&ne>0){var we=Ce.startLineNumber-ne;Oe=new f.a(we,Ce.startColumn,we,Ce.startColumn)}else Oe=new f.a(Ce.startLineNumber,Ce.startColumn,Ce.startLineNumber,Ce.startColumn);ne+=Ce.endLineNumber-Ce.startLineNumber,Ce.intersectRanges(Q)?k=Oe:se.push(Oe)}),k&&se.unshift(k),se},ve.prototype._getRangesToDelete=function(Q){var b=Q.getSelections();if(b===null)return[];var k=b,se=Q.getModel();return se===null?[]:(k.sort(U.a.compareRangesUsingStarts),k=k.map(function(ne){if(ne.isEmpty())if(ne.startColumn===1){var Ce=Math.max(1,ne.startLineNumber-1),Oe=ne.startLineNumber===1?1:se.getLineContent(Ce).length+1;return new U.a(Ce,Oe,ne.startLineNumber,1)}else return new U.a(ne.startLineNumber,1,ne.startLineNumber,ne.startColumn);else return new U.a(ne.startLineNumber,1,ne.endLineNumber,ne.endColumn)}),k)},ve}(ce),he=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"deleteAllRight",label:T.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:v.a.writable,kbOpts:{kbExpr:v.a.textInputFocus,primary:0,mac:{primary:256|41,secondary:[2048|20]},weight:100}})||this}return ve.prototype._getEndCursorState=function(Q,b){for(var k=null,se=[],ne=0,Ce=b.length,Oe=0;ne<Ce;ne++){var we=b[ne],Ve=new f.a(we.startLineNumber-Oe,we.startColumn,we.startLineNumber-Oe,we.startColumn);we.intersectRanges(Q)?k=Ve:se.push(Ve)}return k&&se.unshift(k),se},ve.prototype._getRangesToDelete=function(Q){var b=Q.getModel();if(b===null)return[];var k=Q.getSelections();if(k===null)return[];var se=k.map(function(ne){if(ne.isEmpty()){var Ce=b.getLineMaxColumn(ne.startLineNumber);return ne.startColumn===Ce?new U.a(ne.startLineNumber,ne.startColumn,ne.startLineNumber+1,1):new U.a(ne.startLineNumber,ne.startColumn,ne.startLineNumber,Ce)}return ne});return se.sort(U.a.compareRangesUsingStarts),se},ve}(ce),Pe=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.joinLines",label:T.a("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:0,mac:{primary:256|40},weight:100}})||this}return ve.prototype.run=function(Q,b){var k=b.getSelections();if(k===null)return;var se=b.getSelection();if(se===null)return;k.sort(U.a.compareRangesUsingStarts);var ne=[],Ce=k.reduce(function(It,Et){return It.isEmpty()?It.endLineNumber===Et.startLineNumber?(se.equalsSelection(It)&&(se=Et),Et):Et.startLineNumber>It.endLineNumber+1?(ne.push(It),Et):new f.a(It.startLineNumber,It.startColumn,Et.endLineNumber,Et.endColumn):Et.startLineNumber>It.endLineNumber?(ne.push(It),Et):new f.a(It.startLineNumber,It.startColumn,Et.endLineNumber,Et.endColumn)});ne.push(Ce);var Oe=b.getModel();if(Oe===null)return;for(var we=[],Ve=[],Qe=se,it=0,gt=0,Rt=ne.length;gt<Rt;gt++){var Dt=ne[gt],zt=Dt.startLineNumber,cn=1,ln=0,an=void 0,jt=void 0,ft=Oe.getLineContent(Dt.endLineNumber).length-Dt.endColumn;if(Dt.isEmpty()||Dt.startLineNumber===Dt.endLineNumber){var vt=Dt.getStartPosition();vt.lineNumber<Oe.getLineCount()?(an=zt+1,jt=Oe.getLineMaxColumn(an)):(an=vt.lineNumber,jt=Oe.getLineMaxColumn(vt.lineNumber))}else an=Dt.endLineNumber,jt=Oe.getLineMaxColumn(an);for(var xt=Oe.getLineContent(zt),at=zt+1;at<=an;at++){var tt=Oe.getLineContent(at),ct=Oe.getLineFirstNonWhitespaceColumn(at);if(ct>=1){var bt=!0;xt===""&&(bt=!1),bt&&(xt.charAt(xt.length-1)===" "||xt.charAt(xt.length-1)===" ")&&(bt=!1,xt=xt.replace(/[\s\uFEFF\xA0]+$/g," "));var mt=tt.substr(ct-1);xt+=(bt?" ":"")+mt,bt?ln=mt.length+1:ln=mt.length}else ln=0}var Ct=new U.a(zt,cn,an,jt);if(!Ct.isEmpty()){var Gt=void 0;Dt.isEmpty()?(we.push(M.a.replace(Ct,xt)),Gt=new f.a(Ct.startLineNumber-it,xt.length-ln+1,zt-it,xt.length-ln+1)):Dt.startLineNumber===Dt.endLineNumber?(we.push(M.a.replace(Ct,xt)),Gt=new f.a(Dt.startLineNumber-it,Dt.startColumn,Dt.endLineNumber-it,Dt.endColumn)):(we.push(M.a.replace(Ct,xt)),Gt=new f.a(Dt.startLineNumber-it,Dt.startColumn,Dt.startLineNumber-it,xt.length-ft)),U.a.intersectRanges(Ct,se)!==null?Qe=Gt:Ve.push(Gt)}it+=Ct.endLineNumber-Ct.startLineNumber}Ve.unshift(Qe),b.pushUndoStop(),b.executeEdits(this.id,we,Ve),b.pushUndoStop()},ve}(N.b),Xe=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.transpose",label:T.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:v.a.writable})||this}return ve.prototype.run=function(Q,b){var k=b.getSelections();if(k===null)return;var se=b.getModel();if(se===null)return;for(var ne=[],Ce=0,Oe=k.length;Ce<Oe;Ce++){var we=k[Ce];if(!we.isEmpty())continue;var Ve=we.getStartPosition(),Qe=se.getLineMaxColumn(Ve.lineNumber);if(Ve.column>=Qe){if(Ve.lineNumber===se.getLineCount())continue;var it=new U.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber+1,1),gt=se.getValueInRange(it).split("").reverse().join("");ne.push(new H.a(new f.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber+1,1),gt))}else{var it=new U.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber,Ve.column+1),gt=se.getValueInRange(it).split("").reverse().join("");ne.push(new H.b(it,gt,new f.a(Ve.lineNumber,Ve.column+1,Ve.lineNumber,Ve.column+1)))}}b.pushUndoStop(),b.executeCommands(this.id,ne),b.pushUndoStop()},ve}(N.b),pe=function(Ee){F(ve,Ee);function ve(){return Ee!==null&&Ee.apply(this,arguments)||this}return ve.prototype.run=function(Q,b){var k=b.getSelections();if(k===null)return;var se=b.getModel();if(se===null)return;for(var ne=b.getOption(96),Ce=[],Oe=0,we=k.length;Oe<we;Oe++){var Ve=k[Oe];if(Ve.isEmpty()){var Qe=Ve.getStartPosition(),it=se.getWordAtPosition(Qe);if(!it)continue;var gt=new U.a(Qe.lineNumber,it.startColumn,Qe.lineNumber,it.endColumn),Rt=se.getValueInRange(gt);Ce.push(new H.b(gt,this._modifyText(Rt,ne),new f.a(Qe.lineNumber,Qe.column,Qe.lineNumber,Qe.column)))}else{var Rt=se.getValueInRange(Ve);Ce.push(new H.b(Ve,this._modifyText(Rt,ne),Ve))}}b.pushUndoStop(),b.executeCommands(this.id,Ce),b.pushUndoStop()},ve}(N.b),me=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.transformToUppercase",label:T.a("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:v.a.writable})||this}return ve.prototype._modifyText=function(Q,b){return Q.toLocaleUpperCase()},ve}(pe),Se=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.transformToLowercase",label:T.a("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:v.a.writable})||this}return ve.prototype._modifyText=function(Q,b){return Q.toLocaleLowerCase()},ve}(pe),Re=function(Ee){F(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.transformToTitlecase",label:T.a("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:v.a.writable})||this}return ve.prototype._modifyText=function(Q,b){for(var k=`\r
`+b,se=k.split(""),ne="",Ce=!0,Oe=0;Oe<Q.length;Oe++){var we=Q[Oe];se.indexOf(we)>=0?(Ce=!0,ne+=we):Ce?(Ce=!1,ne+=we.toLocaleUpperCase()):ne+=we.toLocaleLowerCase()}return ne},ve}(pe);Object(N.f)($),Object(N.f)(ie),Object(N.f)(W),Object(N.f)(le),Object(N.f)(be),Object(N.f)(Te),Object(N.f)(ke),Object(N.f)(He),Object(N.f)(je),Object(N.f)(oe),Object(N.f)(ee),Object(N.f)(ae),Object(N.f)(q),Object(N.f)(X),Object(N.f)(he),Object(N.f)(Pe),Object(N.f)(Xe),Object(N.f)(me),Object(N.f)(Se),Object(N.f)(Re)},dgXF:function(_t,P,e){"use strict";e.r(P),e.d(P,"FoldingController",function(){return k}),e.d(P,"foldBackgroundBackground",function(){return an});var T=e("CjOT"),re=e("3/fG"),J=e("746U"),N=e("N0LK"),H=e("X+cX"),z=e("/kV6"),M=e("pmY6"),U=e("sswD"),A=e("MI8n"),c=65535,y=16777215,L=4278190080,f=function(){function jt(ft,vt,xt){if(ft.length!==vt.length||ft.length>c)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=ft,this._endIndexes=vt,this._collapseStates=new Uint32Array(Math.ceil(ft.length/32)),this._types=xt,this._parentsComputed=!1}return jt.prototype.ensureParentIndices=function(){var ft=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var vt=[],xt=function(Gt,It){var Et=vt[vt.length-1];return ft.getStartLineNumber(Et)<=Gt&&ft.getEndLineNumber(Et)>=It},at=0,tt=this._startIndexes.length;at<tt;at++){var ct=this._startIndexes[at],bt=this._endIndexes[at];if(ct>y||bt>y)throw new Error("startLineNumber or endLineNumber must not exceed "+y);for(;vt.length>0&&!xt(ct,bt);)vt.pop();var mt=vt.length>0?vt[vt.length-1]:-1;vt.push(at),this._startIndexes[at]=ct+((mt&255)<<24),this._endIndexes[at]=bt+((mt&65280)<<16)}}},Object.defineProperty(jt.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),jt.prototype.getStartLineNumber=function(ft){return this._startIndexes[ft]&y},jt.prototype.getEndLineNumber=function(ft){return this._endIndexes[ft]&y},jt.prototype.getType=function(ft){return this._types?this._types[ft]:void 0},jt.prototype.hasTypes=function(){return!!this._types},jt.prototype.isCollapsed=function(ft){var vt=ft/32|0,xt=ft%32;return(this._collapseStates[vt]&1<<xt)!==0},jt.prototype.setCollapsed=function(ft,vt){var xt=ft/32|0,at=ft%32,tt=this._collapseStates[xt];vt?this._collapseStates[xt]=tt|1<<at:this._collapseStates[xt]=tt&~(1<<at)},jt.prototype.toRegion=function(ft){return new v(this,ft)},jt.prototype.getParentIndex=function(ft){this.ensureParentIndices();var vt=((this._startIndexes[ft]&L)>>>24)+((this._endIndexes[ft]&L)>>>16);return vt===c?-1:vt},jt.prototype.contains=function(ft,vt){return this.getStartLineNumber(ft)<=vt&&this.getEndLineNumber(ft)>=vt},jt.prototype.findIndex=function(ft){var vt=0,xt=this._startIndexes.length;if(xt===0)return-1;for(;vt<xt;){var at=Math.floor((vt+xt)/2);ft<this.getStartLineNumber(at)?xt=at:vt=at+1}return vt-1},jt.prototype.findRange=function(ft){var vt=this.findIndex(ft);if(vt>=0){var xt=this.getEndLineNumber(vt);if(xt>=ft)return vt;for(vt=this.getParentIndex(vt);vt!==-1;){if(this.contains(vt,ft))return vt;vt=this.getParentIndex(vt)}}return-1},jt.prototype.toString=function(){for(var ft=[],vt=0;vt<this.length;vt++)ft[vt]="["+(this.isCollapsed(vt)?"+":"-")+"] "+this.getStartLineNumber(vt)+"/"+this.getEndLineNumber(vt);return ft.join(", ")},jt}(),v=function(){function jt(ft,vt){this.ranges=ft,this.index=vt}return Object.defineProperty(jt.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),jt.prototype.containedBy=function(ft){return ft.startLineNumber<=this.startLineNumber&&ft.endLineNumber>=this.endLineNumber},jt.prototype.containsLine=function(ft){return this.startLineNumber<=ft&&ft<=this.endLineNumber},jt}(),S=function(){function jt(ft,vt){this._updateEventEmitter=new A.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=ft,this._decorationProvider=vt,this._regions=new f(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(jt.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),jt.prototype.toggleCollapseState=function(ft){var vt=this;if(!ft.length)return;var xt={};this._decorationProvider.changeDecorations(function(at){for(var tt=0,ct=ft;tt<ct.length;tt++){var bt=ct[tt],mt=bt.regionIndex,Ct=vt._editorDecorationIds[mt];if(Ct&&!xt[Ct]){xt[Ct]=!0;var Gt=!vt._regions.isCollapsed(mt);vt._regions.setCollapsed(mt,Gt),at.changeDecorationOptions(Ct,vt._decorationProvider.getDecorationOption(Gt))}}}),this._updateEventEmitter.fire({model:this,collapseStateChanged:ft})},jt.prototype.update=function(ft,vt){var xt=this;vt===void 0&&(vt=[]);for(var at=[],tt=function(ze,Ke){for(var fe=0,G=vt;fe<G.length;fe++){var te=G[fe];if(ze<te&&te<=Ke)return!0}return!1},ct=function(ze,Ke){var fe=ft.getStartLineNumber(ze);Ke&&tt(fe,ft.getEndLineNumber(ze))&&(Ke=!1),ft.setCollapsed(ze,Ke);var G=xt._textModel.getLineMaxColumn(fe),te={startLineNumber:fe,startColumn:G,endLineNumber:fe,endColumn:G};at.push({range:te,options:xt._decorationProvider.getDecorationOption(Ke)})},bt=0,mt=function(){for(;bt<xt._regions.length;){var ze=xt._regions.isCollapsed(bt);if(bt++,ze)return bt-1}return-1},Ct=0,Gt=mt();Gt!==-1&&Ct<ft.length;){var It=this._textModel.getDecorationRange(this._editorDecorationIds[Gt]);if(It){var Et=It.startLineNumber;if(this._textModel.getLineMaxColumn(Et)===It.startColumn)for(;Ct<ft.length;){var Je=ft.getStartLineNumber(Ct);if(Et>=Je)ct(Ct,Et===Je),Ct++;else break}}Gt=mt()}for(;Ct<ft.length;)ct(Ct,!1),Ct++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,at),this._regions=ft,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},jt.prototype.getMemento=function(){for(var ft=[],vt=0;vt<this._regions.length;vt++)if(this._regions.isCollapsed(vt)){var xt=this._textModel.getDecorationRange(this._editorDecorationIds[vt]);if(xt){var at=xt.startLineNumber,tt=xt.endLineNumber+this._regions.getEndLineNumber(vt)-this._regions.getStartLineNumber(vt);ft.push({startLineNumber:at,endLineNumber:tt})}}return ft.length>0?ft:void 0},jt.prototype.applyMemento=function(ft){if(!Array.isArray(ft))return;for(var vt=[],xt=0,at=ft;xt<at.length;xt++){var tt=at[xt],ct=this.getRegionAtLine(tt.startLineNumber);ct&&!ct.isCollapsed&&vt.push(ct)}this.toggleCollapseState(vt)},jt.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},jt.prototype.getAllRegionsAtLine=function(ft,vt){var xt=[];if(this._regions)for(var at=this._regions.findRange(ft),tt=1;at>=0;){var ct=this._regions.toRegion(at);(!vt||vt(ct,tt))&&xt.push(ct),tt++,at=ct.parentIndex}return xt},jt.prototype.getRegionAtLine=function(ft){if(this._regions){var vt=this._regions.findRange(ft);if(vt>=0)return this._regions.toRegion(vt)}return null},jt.prototype.getRegionsInside=function(ft,vt){var xt=[],at=ft?ft.regionIndex+1:0,tt=ft?ft.endLineNumber:Number.MAX_VALUE;if(vt&&vt.length===2)for(var ct=[],bt=at,mt=this._regions.length;bt<mt;bt++){var Ct=this._regions.toRegion(bt);if(this._regions.getStartLineNumber(bt)<tt){for(;ct.length>0&&!Ct.containedBy(ct[ct.length-1]);)ct.pop();ct.push(Ct),vt(Ct,ct.length)&&xt.push(Ct)}else break}else for(var bt=at,mt=this._regions.length;bt<mt;bt++){var Ct=this._regions.toRegion(bt);if(this._regions.getStartLineNumber(bt)<tt)(!vt||vt(Ct))&&xt.push(Ct);else break}return xt},jt}();function g(jt,ft,vt){for(var xt=[],at=function(Ct){var Gt=jt.getRegionAtLine(Ct);if(Gt){var It=!Gt.isCollapsed;if(xt.push(Gt),ft>1){var Et=jt.getRegionsInside(Gt,function(Je,$e){return Je.isCollapsed!==It&&$e<ft});xt.push.apply(xt,Et)}}},tt=0,ct=vt;tt<ct.length;tt++){var bt=ct[tt];at(bt)}jt.toggleCollapseState(xt)}function u(jt,ft,vt,xt){vt===void 0&&(vt=Number.MAX_VALUE);var at=[];if(xt&&xt.length>0)for(var tt=0,ct=xt;tt<ct.length;tt++){var bt=ct[tt],mt=jt.getRegionAtLine(bt);if(mt&&(mt.isCollapsed!==ft&&at.push(mt),vt>1)){var Ct=jt.getRegionsInside(mt,function(Gt,It){return Gt.isCollapsed!==ft&&It<vt});at.push.apply(at,Ct)}}else{var Ct=jt.getRegionsInside(null,function(It,Et){return It.isCollapsed!==ft&&Et<vt});at.push.apply(at,Ct)}jt.toggleCollapseState(at)}function s(jt,ft,vt,xt){for(var at=[],tt=0,ct=xt;tt<ct.length;tt++){var bt=ct[tt],mt=jt.getAllRegionsAtLine(bt,function(Ct,Gt){return Ct.isCollapsed!==ft&&Gt<=vt});at.push.apply(at,mt)}jt.toggleCollapseState(at)}function l(jt,ft,vt){for(var xt=[],at=0,tt=vt;at<tt.length;at++){var ct=tt[at],bt=jt.getAllRegionsAtLine(ct,function(mt){return mt.isCollapsed!==ft});bt.length>0&&xt.push(bt[0])}jt.toggleCollapseState(xt)}function d(jt,ft,vt,xt){var at=function(bt,mt){return mt===ft&&bt.isCollapsed!==vt&&!xt.some(function(Ct){return bt.containsLine(Ct)})},tt=jt.getRegionsInside(null,at);jt.toggleCollapseState(tt)}function p(jt,ft,vt){for(var xt=jt.textModel,at=jt.regions,tt=[],ct=at.length-1;ct>=0;ct--)if(vt!==at.isCollapsed(ct)){var bt=at.getStartLineNumber(ct);ft.test(xt.getLineContent(bt))&&tt.push(at.toRegion(ct))}jt.toggleCollapseState(tt)}function E(jt,ft,vt){for(var xt=jt.regions,at=[],tt=xt.length-1;tt>=0;tt--)vt!==xt.isCollapsed(tt)&&ft===xt.getType(tt)&&at.push(xt.toRegion(tt));jt.toggleCollapseState(at)}var _=e("tX9W"),x=function(){function jt(ft){this.editor=ft,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}return jt.prototype.getDecorationOption=function(ft){return ft?this.showFoldingHighlights?jt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:jt.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?jt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:jt.EXPANDED_VISUAL_DECORATION},jt.prototype.deltaDecorations=function(ft,vt){return this.editor.deltaDecorations(ft,vt)},jt.prototype.changeDecorations=function(ft){return this.editor.changeDecorations(ft)},jt.COLLAPSED_VISUAL_DECORATION=_.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),jt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=_.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),jt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=_.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),jt.EXPANDED_VISUAL_DECORATION=_.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),jt}(),F=e("wQH0"),R=e("aokT"),$=e("6OMU"),ie=function(){function jt(ft){var vt=this;this._updateEventEmitter=new A.a,this._foldingModel=ft,this._foldingModelListener=ft.onDidChange(function(xt){return vt.updateHiddenRanges()}),this._hiddenRanges=[],ft.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(jt.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),jt.prototype.updateHiddenRanges=function(){for(var ft=!1,vt=[],xt=0,at=0,tt=Number.MAX_VALUE,ct=-1,bt=this._foldingModel.regions;xt<bt.length;xt++){if(!bt.isCollapsed(xt))continue;var mt=bt.getStartLineNumber(xt)+1,Ct=bt.getEndLineNumber(xt);if(tt<=mt&&Ct<=ct)continue;!ft&&at<this._hiddenRanges.length&&this._hiddenRanges[at].startLineNumber===mt&&this._hiddenRanges[at].endLineNumber===Ct?(vt.push(this._hiddenRanges[at]),at++):(ft=!0,vt.push(new R.a(mt,1,Ct,1))),tt=mt,ct=Ct}(ft||at<this._hiddenRanges.length)&&this.applyHiddenRanges(vt)},jt.prototype.applyMemento=function(ft){if(!Array.isArray(ft)||ft.length===0)return!1;for(var vt=[],xt=0,at=ft;xt<at.length;xt++){var tt=at[xt];if(!tt.startLineNumber||!tt.endLineNumber)return!1;vt.push(new R.a(tt.startLineNumber+1,1,tt.endLineNumber,1))}return this.applyHiddenRanges(vt),!0},jt.prototype.getMemento=function(){return this._hiddenRanges.map(function(ft){return{startLineNumber:ft.startLineNumber-1,endLineNumber:ft.endLineNumber}})},jt.prototype.applyHiddenRanges=function(ft){this._hiddenRanges=ft,this._updateEventEmitter.fire(ft)},jt.prototype.hasRanges=function(){return this._hiddenRanges.length>0},jt.prototype.isHidden=function(ft){return B(this._hiddenRanges,ft)!==null},jt.prototype.adjustSelections=function(ft){for(var vt=this,xt=!1,at=this._foldingModel.textModel,tt=null,ct=function(Je){return(!tt||!W(Je,tt))&&(tt=B(vt._hiddenRanges,Je)),tt?tt.startLineNumber-1:null},bt=0,mt=ft.length;bt<mt;bt++){var Ct=ft[bt],Gt=ct(Ct.startLineNumber);Gt&&(Ct=Ct.setStartPosition(Gt,at.getLineMaxColumn(Gt)),xt=!0);var It=ct(Ct.endLineNumber);It&&(Ct=Ct.setEndPosition(It,at.getLineMaxColumn(It)),xt=!0),ft[bt]=Ct}return xt},jt.prototype.dispose=function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},jt}();function W(jt,ft){return jt>=ft.startLineNumber&&jt<=ft.endLineNumber}function B(jt,ft){var vt=Object($.i)(jt,function(xt){return ft<xt.startLineNumber})-1;return vt>=0&&jt[vt].endLineNumber>=ft?jt[vt]:null}var le=e("cMvZ"),be=5e3,De="indent",Te=function(){function jt(ft){this.editorModel=ft,this.id=De}return jt.prototype.dispose=function(){},jt.prototype.compute=function(ft){var vt=le.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),xt=vt&&!!vt.offSide,at=vt&&vt.markers;return Promise.resolve(He(this.editorModel,xt,at))},jt}(),ke=function(){function jt(ft){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=ft}return jt.prototype.insertFirst=function(ft,vt,xt){if(ft>y||vt>y)return;var at=this._length;this._startIndexes[at]=ft,this._endIndexes[at]=vt,this._length++,xt<1e3&&(this._indentOccurrences[xt]=(this._indentOccurrences[xt]||0)+1)},jt.prototype.toIndentRanges=function(ft){if(this._length<=this._foldingRangesLimit){for(var vt=new Uint32Array(this._length),xt=new Uint32Array(this._length),at=this._length-1,tt=0;at>=0;at--,tt++)vt[tt]=this._startIndexes[at],xt[tt]=this._endIndexes[at];return new f(vt,xt)}else{for(var ct=0,bt=this._indentOccurrences.length,at=0;at<this._indentOccurrences.length;at++){var mt=this._indentOccurrences[at];if(mt){if(mt+ct>this._foldingRangesLimit){bt=at;break}ct+=mt}}for(var Ct=ft.getOptions().tabSize,vt=new Uint32Array(this._foldingRangesLimit),xt=new Uint32Array(this._foldingRangesLimit),at=this._length-1,tt=0;at>=0;at--){var Gt=this._startIndexes[at],It=ft.getLineContent(Gt),Et=_.b.computeIndentLevel(It,Ct);(Et<bt||Et===bt&&ct++<this._foldingRangesLimit)&&(vt[tt]=Gt,xt[tt]=this._endIndexes[at],tt++)}return new f(vt,xt)}},jt}();function He(jt,ft,vt,xt){xt===void 0&&(xt=be);var at=jt.getOptions().tabSize,tt=new ke(xt),ct=void 0;vt&&(ct=new RegExp("("+vt.start.source+")|(?:"+vt.end.source+")"));var bt=[],mt=jt.getLineCount()+1;bt.push({indent:-1,endAbove:mt,line:mt});for(var Ct=jt.getLineCount();Ct>0;Ct--){var Gt=jt.getLineContent(Ct),It=_.b.computeIndentLevel(Gt,at),Et=bt[bt.length-1];if(It===-1){ft&&(Et.endAbove=Ct);continue}var Je=void 0;if(ct&&(Je=Gt.match(ct)))if(Je[1]){for(var $e=bt.length-1;$e>0&&bt[$e].indent!==-2;)$e--;if($e>0){bt.length=$e+1,Et=bt[$e],tt.insertFirst(Ct,Et.line,It),Et.line=Ct,Et.indent=It,Et.endAbove=Ct;continue}}else{bt.push({indent:-2,endAbove:Ct,line:Ct});continue}if(Et.indent>It){do bt.pop(),Et=bt[bt.length-1];while(Et.indent>It);var ze=Et.endAbove-1;ze-Ct>=1&&tt.insertFirst(Ct,ze,It)}Et.indent===It?Et.endAbove=Ct:bt.push({indent:It,endAbove:Ct,line:Ct})}return tt.toIndentRanges(jt)}var je=e("twdY"),oe=e("/cxE"),ee=5e3,ae={},q="syntax",ce=function(){function jt(ft,vt,xt){xt===void 0&&(xt=ee),this.editorModel=ft,this.providers=vt,this.limit=xt,this.id=q}return jt.prototype.compute=function(ft){var vt=this;return X(this.providers,this.editorModel,ft).then(function(xt){if(xt){var at=Pe(xt,vt.limit);return at}return null})},jt.prototype.dispose=function(){},jt}();function X(jt,ft,vt){var xt=null,at=jt.map(function(tt,ct){return Promise.resolve(tt.provideFoldingRanges(ft,ae,vt)).then(function(bt){if(vt.isCancellationRequested)return;if(Array.isArray(bt)){Array.isArray(xt)||(xt=[]);for(var mt=ft.getLineCount(),Ct=0,Gt=bt;Ct<Gt.length;Ct++){var It=Gt[Ct];It.start>0&&It.end>It.start&&It.end<=mt&&xt.push({start:It.start,end:It.end,rank:ct,kind:It.kind})}}},oe.f)});return Promise.all(at).then(function(tt){return xt})}var he=function(){function jt(ft){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=ft}return jt.prototype.add=function(ft,vt,xt,at){if(ft>y||vt>y)return;var tt=this._length;this._startIndexes[tt]=ft,this._endIndexes[tt]=vt,this._nestingLevels[tt]=at,this._types[tt]=xt,this._length++,at<30&&(this._nestingLevelCounts[at]=(this._nestingLevelCounts[at]||0)+1)},jt.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var ft=new Uint32Array(this._length),vt=new Uint32Array(this._length),xt=0;xt<this._length;xt++)ft[xt]=this._startIndexes[xt],vt[xt]=this._endIndexes[xt];return new f(ft,vt,this._types)}else{for(var at=0,tt=this._nestingLevelCounts.length,xt=0;xt<this._nestingLevelCounts.length;xt++){var ct=this._nestingLevelCounts[xt];if(ct){if(ct+at>this._foldingRangesLimit){tt=xt;break}at+=ct}}for(var ft=new Uint32Array(this._foldingRangesLimit),vt=new Uint32Array(this._foldingRangesLimit),bt=[],xt=0,mt=0;xt<this._length;xt++){var Ct=this._nestingLevels[xt];(Ct<tt||Ct===tt&&at++<this._foldingRangesLimit)&&(ft[mt]=this._startIndexes[xt],vt[mt]=this._endIndexes[xt],bt[mt]=this._types[xt],mt++)}return new f(ft,vt,bt)}},jt}();function Pe(jt,ft){for(var vt=jt.sort(function(Ct,Gt){var It=Ct.start-Gt.start;return It===0&&(It=Ct.rank-Gt.rank),It}),xt=new he(ft),at=void 0,tt=[],ct=0,bt=vt;ct<bt.length;ct++){var mt=bt[ct];if(!at)at=mt,xt.add(mt.start,mt.end,mt.kind&&mt.kind.value,tt.length);else if(mt.start>at.start)if(mt.end<=at.end)tt.push(at),at=mt,xt.add(mt.start,mt.end,mt.kind&&mt.kind.value,tt.length);else{if(mt.start>at.end){do at=tt.pop();while(at&&mt.start>at.end);at&&tt.push(at),at=mt}xt.add(mt.start,mt.end,mt.kind&&mt.kind.value,tt.length)}}return xt.toIndentRanges()}var Xe="init",pe=function(){function jt(ft,vt,xt,at){if(this.editorModel=ft,this.id=Xe,vt.length){var tt=function(bt){return{range:{startLineNumber:bt.startLineNumber,startColumn:0,endLineNumber:bt.endLineNumber,endColumn:ft.getLineLength(bt.endLineNumber)},options:{stickiness:1}}};this.decorationIds=ft.deltaDecorations([],vt.map(tt)),this.timeout=setTimeout(xt,at)}}return jt.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),typeof this.timeout=="number"&&(clearTimeout(this.timeout),this.timeout=void 0)},jt.prototype.compute=function(ft){var vt=[];if(this.decorationIds)for(var xt=0,at=this.decorationIds;xt<at.length;xt++){var tt=at[xt],ct=this.editorModel.getDecorationRange(tt);ct&&vt.push({start:ct.startLineNumber,end:ct.endLineNumber,rank:1})}return Promise.resolve(Pe(vt,Number.MAX_VALUE))},jt}(),me=e("T8No"),Se=e("t9D7"),Re=e("MD5Z"),Ee=function(){var jt=function(vt,xt){return jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,tt){at.__proto__=tt}||function(at,tt){for(var ct in tt)tt.hasOwnProperty(ct)&&(at[ct]=tt[ct])},jt(vt,xt)};return function(ft,vt){jt(ft,vt);function xt(){this.constructor=ft}ft.prototype=vt===null?Object.create(vt):(xt.prototype=vt.prototype,new xt)}}(),ve=function(jt,ft,vt,xt){var at=arguments.length,tt=at<3?ft:xt===null?xt=Object.getOwnPropertyDescriptor(ft,vt):xt,ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(jt,ft,vt,xt);else for(var bt=jt.length-1;bt>=0;bt--)(ct=jt[bt])&&(tt=(at<3?ct(tt):at>3?ct(ft,vt,tt):ct(ft,vt))||tt);return at>3&&tt&&Object.defineProperty(ft,vt,tt),tt},Q=function(jt,ft){return function(vt,xt){ft(vt,xt,jt)}},b=new me.d("foldingEnabled",!1),k=function(jt){Ee(ft,jt);function ft(vt,xt){var at=jt.call(this)||this;at.contextKeyService=xt,at.localToDispose=at._register(new M.b),at.editor=vt;var tt=at.editor.getOptions();return at._isEnabled=tt.get(30),at._useFoldingProviders=tt.get(31)!=="indentation",at.foldingModel=null,at.hiddenRangeModel=null,at.rangeProvider=null,at.foldingRegionPromise=null,at.foldingStateMemento=null,at.foldingModelPromise=null,at.updateScheduler=null,at.cursorChangedScheduler=null,at.mouseDownInfo=null,at.foldingDecorationProvider=new x(vt),at.foldingDecorationProvider.autoHideFoldingControls=tt.get(84)==="mouseover",at.foldingDecorationProvider.showFoldingHighlights=tt.get(32),at.foldingEnabled=b.bindTo(at.contextKeyService),at.foldingEnabled.set(at._isEnabled),at._register(at.editor.onDidChangeModel(function(){return at.onModelChanged()})),at._register(at.editor.onDidChangeConfiguration(function(ct){if(ct.hasChanged(30)){var bt=at.editor.getOptions();at._isEnabled=bt.get(30),at.foldingEnabled.set(at._isEnabled),at.onModelChanged()}if(ct.hasChanged(84)||ct.hasChanged(32)){var mt=at.editor.getOptions();at.foldingDecorationProvider.autoHideFoldingControls=mt.get(84)==="mouseover",at.foldingDecorationProvider.showFoldingHighlights=mt.get(32),at.onModelContentChanged()}if(ct.hasChanged(31)){var Ct=at.editor.getOptions();at._useFoldingProviders=Ct.get(31)!=="indentation",at.onFoldingStrategyChanged()}})),at.onModelChanged(),at}return ft.get=function(vt){return vt.getContribution(ft.ID)},ft.prototype.saveViewState=function(){var vt=this.editor.getModel();if(!vt||!this._isEnabled||vt.isTooLargeForTokenization())return{};if(this.foldingModel){var xt=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),at=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:xt,lineCount:vt.getLineCount(),provider:at}}return},ft.prototype.restoreViewState=function(vt){var xt=this.editor.getModel();if(!xt||!this._isEnabled||xt.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!vt||!vt.collapsedRegions||vt.lineCount!==xt.getLineCount())return;(vt.provider===q||vt.provider===Xe)&&(this.foldingStateMemento=vt);var at=vt.collapsedRegions;if(this.hiddenRangeModel.applyMemento(at)){var tt=this.getFoldingModel();tt&&tt.then(function(ct){ct&&ct.applyMemento(at)}).then(void 0,oe.e)}},ft.prototype.onModelChanged=function(){var vt=this;this.localToDispose.clear();var xt=this.editor.getModel();if(!this._isEnabled||!xt||xt.isTooLargeForTokenization())return;this.foldingModel=new S(xt,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new ie(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(function(at){return vt.onHiddenRangesChanges(at)})),this.updateScheduler=new H.a(200),this.cursorChangedScheduler=new H.d(function(){return vt.revealCursor()},200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(je.o.onDidChange(function(){return vt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(function(){return vt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelContent(function(){return vt.onModelContentChanged()})),this.localToDispose.add(this.editor.onDidChangeCursorPosition(function(){return vt.onCursorPositionChanged()})),this.localToDispose.add(this.editor.onMouseDown(function(at){return vt.onEditorMouseDown(at)})),this.localToDispose.add(this.editor.onMouseUp(function(at){return vt.onEditorMouseUp(at)})),this.localToDispose.add({dispose:function(){vt.foldingRegionPromise&&(vt.foldingRegionPromise.cancel(),vt.foldingRegionPromise=null),vt.updateScheduler&&vt.updateScheduler.cancel(),vt.updateScheduler=null,vt.foldingModel=null,vt.foldingModelPromise=null,vt.hiddenRangeModel=null,vt.cursorChangedScheduler=null,vt.foldingStateMemento=null,vt.rangeProvider&&vt.rangeProvider.dispose(),vt.rangeProvider=null}}),this.onModelContentChanged()},ft.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},ft.prototype.getRangeProvider=function(vt){var xt=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new Te(vt),this._useFoldingProviders&&this.foldingModel){var at=je.o.ordered(this.foldingModel.textModel);if(at.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var tt=this.rangeProvider=new pe(vt,this.foldingStateMemento.collapsedRegions,function(){xt.foldingStateMemento=null,xt.onFoldingStrategyChanged()},3e4);return tt}else at.length>0&&(this.rangeProvider=new ce(vt,at))}return this.foldingStateMemento=null,this.rangeProvider},ft.prototype.getFoldingModel=function(){return this.foldingModelPromise},ft.prototype.onModelContentChanged=function(){var vt=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(function(){var xt=vt.foldingModel;if(!xt)return null;var at=vt.foldingRegionPromise=Object(H.f)(function(tt){return vt.getRangeProvider(xt.textModel).compute(tt)});return at.then(function(tt){if(tt&&at===vt.foldingRegionPromise){var ct=vt.editor.getSelections(),bt=ct?ct.map(function(mt){return mt.startLineNumber}):[];xt.update(tt,bt)}return xt})}).then(void 0,function(xt){return Object(oe.e)(xt),null}))},ft.prototype.onHiddenRangesChanges=function(vt){if(this.hiddenRangeModel&&vt.length){var xt=this.editor.getSelections();xt&&(this.hiddenRangeModel.adjustSelections(xt)&&this.editor.setSelections(xt))}this.editor.setHiddenAreas(vt)},ft.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},ft.prototype.revealCursor=function(){var vt=this,xt=this.getFoldingModel();if(!xt)return;xt.then(function(at){if(at){var tt=vt.editor.getSelections();if(tt&&tt.length>0){for(var ct=[],bt=function(Et){var Je=Et.selectionStartLineNumber;vt.hiddenRangeModel&&vt.hiddenRangeModel.isHidden(Je)&&ct.push.apply(ct,at.getAllRegionsAtLine(Je,function($e){return $e.isCollapsed&&Je>$e.startLineNumber}))},mt=0,Ct=tt;mt<Ct.length;mt++){var Gt=Ct[mt];bt(Gt)}ct.length&&(at.toggleCollapseState(ct),vt.reveal(tt[0].getPosition()))}}}).then(void 0,oe.e)},ft.prototype.onEditorMouseDown=function(vt){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!vt.target||!vt.target.range)return;if(!vt.event.leftButton&&!vt.event.middleButton)return;var xt=vt.target.range,at=!1;switch(vt.target.type){case 4:var tt=vt.target.detail,ct=vt.target.element.offsetLeft,bt=tt.offsetX-ct;if(bt<5)return;at=!0;break;case 6:{if(this.hiddenRangeModel.hasRanges()){var mt=this.editor.getModel();if(mt&&xt.startColumn===mt.getLineMaxColumn(xt.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:xt.startLineNumber,iconClicked:at}},ft.prototype.onEditorMouseUp=function(vt){var xt=this,at=this.getFoldingModel();if(!at||!this.mouseDownInfo||!vt.target)return;var tt=this.mouseDownInfo.lineNumber,ct=this.mouseDownInfo.iconClicked,bt=vt.target.range;if(!bt||bt.startLineNumber!==tt)return;if(ct){if(vt.target.type!==4)return}else{var mt=this.editor.getModel();if(!mt||bt.startColumn!==mt.getLineMaxColumn(tt))return}at.then(function(Ct){if(Ct){var Gt=Ct.getRegionAtLine(tt);if(Gt&&Gt.startLineNumber===tt){var It=Gt.isCollapsed;if(ct||It){var Et=[],Je=vt.event.middleButton||vt.event.shiftKey;if(Je)for(var $e=0,ze=Ct.getRegionsInside(Gt);$e<ze.length;$e++){var Ke=ze[$e];Ke.isCollapsed===It&&Et.push(Ke)}(It||!Je||Et.length===0)&&Et.push(Gt),Ct.toggleCollapseState(Et),xt.reveal({lineNumber:tt,column:1})}}}}).then(void 0,oe.e)},ft.prototype.reveal=function(vt){this.editor.revealPositionInCenterIfOutsideViewport(vt,0)},ft.ID="editor.contrib.folding",ft=ve([Q(1,me.c)],ft),ft}(M.a),se=function(jt){Ee(ft,jt);function ft(){return jt!==null&&jt.apply(this,arguments)||this}return ft.prototype.runEditorCommand=function(vt,xt,at){var tt=this,ct=k.get(xt);if(!ct)return;var bt=ct.getFoldingModel();if(bt)return this.reportTelemetry(vt,xt),bt.then(function(mt){if(mt){tt.invoke(ct,mt,xt,at);var Ct=xt.getSelection();Ct&&ct.reveal(Ct.getStartPosition())}})},ft.prototype.getSelectedLines=function(vt){var xt=vt.getSelections();return xt?xt.map(function(at){return at.startLineNumber}):[]},ft.prototype.getLineNumbers=function(vt,xt){return vt&&vt.selectionLines?vt.selectionLines.map(function(at){return at+1}):this.getSelectedLines(xt)},ft.prototype.run=function(vt,xt){},ft}(U.b);function ne(jt){if(!J.k(jt)){if(!J.i(jt))return!1;var ft=jt;if(!J.k(ft.levels)&&!J.h(ft.levels))return!1;if(!J.k(ft.direction)&&!J.j(ft.direction))return!1;if(!J.k(ft.selectionLines)&&(!J.d(ft.selectionLines)||!ft.selectionLines.every(J.h)))return!1}return!0}var Ce=function(jt){Ee(ft,jt);function ft(){return jt.call(this,{id:"editor.unfold",label:re.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:b,kbOpts:{kbExpr:F.a.editorTextFocus,primary:2048|1024|89,mac:{primary:2048|512|89},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument:
* 'levels': Number of levels to unfold. If not set, defaults to 1.
* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.
* 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.
`,constraint:ne,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return ft.prototype.invoke=function(vt,xt,at,tt){var ct=tt&&tt.levels||1,bt=this.getLineNumbers(tt,at);tt&&tt.direction==="up"?s(xt,!1,ct,bt):u(xt,!1,ct,bt)},ft}(se),Oe=function(jt){Ee(ft,jt);function ft(){return jt.call(this,{id:"editor.unfoldRecursively",label:re.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:b,kbOpts:{kbExpr:F.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|89),weight:100}})||this}return ft.prototype.invoke=function(vt,xt,at,tt){u(xt,!1,Number.MAX_VALUE,this.getSelectedLines(at))},ft}(se),we=function(jt){Ee(ft,jt);function ft(){return jt.call(this,{id:"editor.fold",label:re.a("foldAction.label","Fold"),alias:"Fold",precondition:b,kbOpts:{kbExpr:F.a.editorTextFocus,primary:2048|1024|87,mac:{primary:2048|512|87},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument:
* 'levels': Number of levels to fold.
* 'direction': If 'up', folds given number of levels up otherwise folds down.
* 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.
If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.
`,constraint:ne,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return ft.prototype.invoke=function(vt,xt,at,tt){var ct=this.getLineNumbers(tt,at),bt=tt&&tt.levels,mt=tt&&tt.direction;typeof bt!="number"&&typeof mt!="string"?l(xt,!0,ct):mt==="up"?s(xt,!0,bt||1,ct):u(xt,!0,bt||1,ct)},ft}(se),Ve=function(jt){Ee(ft,jt);function ft(){return jt.call(this,{id:"editor.toggleFold",label:re.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:b,kbOpts:{kbExpr:F.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|42),weight:100}})||this}return ft.prototype.invoke=function(vt,xt,at){var tt=this.getSelectedLines(at);g(xt,1,tt)},ft}(se),Qe=function(jt){Ee(ft,jt);function ft(){return jt.call(this,{id:"editor.foldRecursively",label:re.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:b,kbOpts:{kbExpr:F.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|87),weight:100}})||this}return ft.prototype.invoke=function(vt,xt,at){var tt=this.getSelectedLines(at);u(xt,!0,Number.MAX_VALUE,tt)},ft}(se),it=function(jt){Ee(ft,jt);function ft(){return jt.call(this,{id:"editor.foldAllBlockComments",label:re.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:b,kbOpts:{kbExpr:F.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|85),weight:100}})||this}return ft.prototype.invoke=function(vt,xt,at){if(xt.regions.hasTypes())E(xt,je.n.Comment.value,!0);else{var tt=at.getModel();if(!tt)return;var ct=le.a.getComments(tt.getLanguageIdentifier().id);if(ct&&ct.blockCommentStartToken){var bt=new RegExp("^\\s*"+Object(N.p)(ct.blockCommentStartToken));p(xt,bt,!0)}}},ft}(se),gt=function(jt){Ee(ft,jt);function ft(){return jt.call(this,{id:"editor.foldAllMarkerRegions",label:re.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:b,kbOpts:{kbExpr:F.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|29),weight:100}})||this}return ft.prototype.invoke=function(vt,xt,at){if(xt.regions.hasTypes())E(xt,je.n.Region.value,!0);else{var tt=at.getModel();if(!tt)return;var ct=le.a.getFoldingRules(tt.getLanguageIdentifier().id);if(ct&&ct.markers&&ct.markers.start){var bt=new RegExp(ct.markers.start);p(xt,bt,!0)}}},ft}(se),Rt=function(jt){Ee(ft,jt);function ft(){return jt.call(this,{id:"editor.unfoldAllMarkerRegions",label:re.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:b,kbOpts:{kbExpr:F.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|30),weight:100}})||this}return ft.prototype.invoke=function(vt,xt,at){if(xt.regions.hasTypes())E(xt,je.n.Region.value,!1);else{var tt=at.getModel();if(!tt)return;var ct=le.a.getFoldingRules(tt.getLanguageIdentifier().id);if(ct&&ct.markers&&ct.markers.start){var bt=new RegExp(ct.markers.start);p(xt,bt,!1)}}},ft}(se),Dt=function(jt){Ee(ft,jt);function ft(){return jt.call(this,{id:"editor.foldAll",label:re.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:b,kbOpts:{kbExpr:F.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|21),weight:100}})||this}return ft.prototype.invoke=function(vt,xt,at){u(xt,!0)},ft}(se),zt=function(jt){Ee(ft,jt);function ft(){return jt.call(this,{id:"editor.unfoldAll",label:re.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:b,kbOpts:{kbExpr:F.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|40),weight:100}})||this}return ft.prototype.invoke=function(vt,xt,at){u(xt,!1)},ft}(se),cn=function(jt){Ee(ft,jt);function ft(){return jt!==null&&jt.apply(this,arguments)||this}return ft.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(ft.ID_PREFIX.length))},ft.prototype.invoke=function(vt,xt,at){d(xt,this.getFoldingLevel(),!0,this.getSelectedLines(at))},ft.ID_PREFIX="editor.foldLevel",ft.ID=function(vt){return ft.ID_PREFIX+vt},ft}(se);Object(U.h)(k.ID,k),Object(U.f)(Ce),Object(U.f)(Oe),Object(U.f)(we),Object(U.f)(Qe),Object(U.f)(Dt),Object(U.f)(zt),Object(U.f)(it),Object(U.f)(gt),Object(U.f)(Rt),Object(U.f)(Ve);for(var ln=1;ln<=7;ln++)Object(U.i)(new cn({id:cn.ID(ln),label:re.a("foldLevelAction.label","Fold Level {0}",ln),alias:"Fold Level "+ln,precondition:b,kbOpts:{kbExpr:F.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|21+ln),weight:100}}));var an=Object(Re.Tb)("editor.foldBackground",{light:Object(Re.fc)(Re.K,.3),dark:Object(Re.fc)(Re.K,.3),hc:null},re.a("editorSelectionBackground","Color of the editor selection."));Object(Se.e)(function(jt,ft){var vt=jt.getColor(an);vt&&ft.addRule(".monaco-editor .folded-background { background-color: "+vt+"; }")})},e0rL:function(_t,P,e){"use strict";e.d(P,"a",function(){return re}),e.d(P,"b",function(){return J});var T=e("Cg/j"),re=Object(T.c)("textResourceConfigurationService"),J=Object(T.c)("textResourcePropertiesService")},e1ni:function(_t,P,e){},eC1c:function(_t,P,e){},eLzo:function(_t,P,e){"use strict";e.d(P,"a",function(){return J}),e.d(P,"b",function(){return N}),e.d(P,"c",function(){return z}),e.d(P,"e",function(){return U}),e.d(P,"d",function(){return A});var T=e("6OMU"),re=e("Vhoy"),J=function(){function c(y,L){y===void 0&&(y=""),L===void 0&&(L=!1);var f,v;this._value=y,typeof L=="boolean"?(this._isTrusted=L,this._supportThemeIcons=!1):(this._isTrusted=(f=L.isTrusted)!==null&&f!==void 0?f:!1,this._supportThemeIcons=(v=L.supportThemeIcons)!==null&&v!==void 0?v:!1)}return Object.defineProperty(c.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"supportThemeIcons",{get:function(){return this._supportThemeIcons},enumerable:!0,configurable:!0}),c.prototype.appendText=function(y){return this._value+=(this._supportThemeIcons?Object(re.a)(y):y).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace(`
`,`
`),this},c.prototype.appendMarkdown=function(y){return this._value+=y,this},c.prototype.appendCodeblock=function(y,L){return this._value+="\n```",this._value+=y,this._value+=`
`,this._value+=L,this._value+="\n```\n",this},c}();function N(c){return H(c)?!c.value:Array.isArray(c)?c.every(N):!0}function H(c){return c instanceof J?!0:c&&typeof c=="object"?typeof c.value=="string"&&(typeof c.isTrusted=="boolean"||c.isTrusted===void 0)&&(typeof c.supportThemeIcons=="boolean"||c.supportThemeIcons===void 0):!1}function z(c,y){return!c&&!y?!0:!c||!y?!1:Array.isArray(c)&&Array.isArray(y)?Object(T.g)(c,y,M):H(c)&&H(y)?M(c,y):!1}function M(c,y){return c===y?!0:!c||!y?!1:c.value===y.value&&c.isTrusted===y.isTrusted&&c.supportThemeIcons===y.supportThemeIcons}function U(c){return c&&c.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function A(c){var y=[],L=c.split("|").map(function(d){return d.trim()});c=L[0];var f=L[1];if(f){var v=/height=(\d+)/.exec(f),S=/width=(\d+)/.exec(f),g=v?v[1]:"",u=S?S[1]:"",s=isFinite(parseInt(u)),l=isFinite(parseInt(g));s&&y.push('width="'+u+'"'),l&&y.push('height="'+g+'"')}return{href:c,dimensions:y}}},eizg:function(_t,P,e){},ep4t:function(_t,P,e){"use strict";e.r(P),e.d(P,"SuggestController",function(){return io}),e.d(P,"TriggerSuggestAction",function(){return go});var T=e("OBOq"),re=e("6OMU"),J=e("/cxE"),N=e("/kV6"),H=e("pmY6"),z=e("sswD"),M=e("0/Sa"),U=e("aokT"),A=e("wQH0"),c=e("tXSY"),y=e("uACm"),L=e("QDVR"),f=e("A+jI"),v=e("twdY"),S=e("X+cX"),g=e("Cg/j"),u=e("+7oY"),s=e("9fML"),l=function(){var wt=function(ot,Ot){return wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Le,D){Le.__proto__=D}||function(Le,D){for(var j in D)D.hasOwnProperty(j)&&(Le[j]=D[j])},wt(ot,Ot)};return function(nt,ot){wt(nt,ot);function Ot(){this.constructor=nt}nt.prototype=ot===null?Object.create(ot):(Ot.prototype=ot.prototype,new Ot)}}(),d=function(wt,nt,ot,Ot){var Le=arguments.length,D=Le<3?nt:Ot===null?Ot=Object.getOwnPropertyDescriptor(nt,ot):Ot,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(wt,nt,ot,Ot);else for(var Z=wt.length-1;Z>=0;Z--)(j=wt[Z])&&(D=(Le<3?j(D):Le>3?j(nt,ot,D):j(nt,ot))||D);return Le>3&&D&&Object.defineProperty(nt,ot,D),D},p=function(wt,nt){return function(ot,Ot){nt(ot,Ot,wt)}},E=function(){function wt(){}return wt.prototype.select=function(nt,ot,Ot){if(Ot.length===0)return 0;for(var Le=Ot[0].score[0],D=1;D<Ot.length;D++){var j=Ot[D],Z=j.score,xe=j.completion;if(Z[0]!==Le)break;if(xe.preselect)return D}return 0},wt}(),_=function(wt){l(nt,wt);function nt(){return wt!==null&&wt.apply(this,arguments)||this}return nt.prototype.memorize=function(ot,Ot,Le){},nt.prototype.toJSON=function(){return},nt.prototype.fromJSON=function(){},nt}(E),x=function(wt){l(nt,wt);function nt(){var ot=wt!==null&&wt.apply(this,arguments)||this;return ot._cache=new L.a(300,.66),ot._seq=0,ot}return nt.prototype.memorize=function(ot,Ot,Le){var D=Le.completion.label,j=ot.getLanguageIdentifier().language+"/"+D;this._cache.set(j,{touch:this._seq++,type:Le.completion.kind,insertText:Le.completion.insertText})},nt.prototype.select=function(ot,Ot,Le){if(Le.length===0)return 0;var D=ot.getLineContent(Ot.lineNumber).substr(Ot.column-10,Ot.column-1);if(/\s$/.test(D))return wt.prototype.select.call(this,ot,Ot,Le);for(var j=Le[0].score[0],Z=-1,xe=-1,Ae=-1,Ie=0;Ie<Le.length&&!(Le[Ie].score[0]!==j);Ie++){var dt=ot.getLanguageIdentifier().language+"/"+Le[Ie].completion.label,ht=this._cache.peek(dt);if(ht&&ht.touch>Ae&&ht.type===Le[Ie].completion.kind&&ht.insertText===Le[Ie].completion.insertText&&(Ae=ht.touch,xe=Ie),Le[Ie].completion.preselect&&Z===-1)return Z=Ie}return xe!==-1?xe:Z!==-1?Z:0},nt.prototype.toJSON=function(){var ot=[];return this._cache.forEach(function(Ot,Le){ot.push([Le,Ot])}),ot},nt.prototype.fromJSON=function(ot){this._cache.clear();for(var Ot=0,Le=0,D=ot;Le<D.length;Le++){var j=D[Le],Z=j[0],xe=j[1];xe.touch=Ot,xe.type=typeof xe.type=="number"?xe.type:Object(v.E)(xe.type),this._cache.set(Z,xe)}this._seq=this._cache.size},nt}(E),F=function(wt){l(nt,wt);function nt(){var ot=wt!==null&&wt.apply(this,arguments)||this;return ot._trie=L.c.forStrings(),ot._seq=0,ot}return nt.prototype.memorize=function(ot,Ot,Le){var D=ot.getWordUntilPosition(Ot).word,j=ot.getLanguageIdentifier().language+"/"+D;this._trie.set(j,{type:Le.completion.kind,insertText:Le.completion.insertText,touch:this._seq++})},nt.prototype.select=function(ot,Ot,Le){var D=ot.getWordUntilPosition(Ot).word;if(!D)return wt.prototype.select.call(this,ot,Ot,Le);var j=ot.getLanguageIdentifier().language+"/"+D,Z=this._trie.get(j);if(Z||(Z=this._trie.findSubstr(j)),Z)for(var xe=0;xe<Le.length;xe++){var Ae=Le[xe].completion,Ie=Ae.kind,dt=Ae.insertText;if(Ie===Z.type&&dt===Z.insertText)return xe}return wt.prototype.select.call(this,ot,Ot,Le)},nt.prototype.toJSON=function(){var ot=[];return this._trie.forEach(function(Ot,Le){return ot.push([Le,Ot])}),ot.sort(function(Ot,Le){return-(Ot[1].touch-Le[1].touch)}).forEach(function(Ot,Le){return Ot[1].touch=Le}),ot.slice(0,200)},nt.prototype.fromJSON=function(ot){if(this._trie.clear(),ot.length>0){this._seq=ot[0][1].touch+1;for(var Ot=0,Le=ot;Ot<Le.length;Ot++){var D=Le[Ot],j=D[0],Z=D[1];Z.type=typeof Z.type=="number"?Z.type:Object(v.E)(Z.type),this._trie.set(j,Z)}}},nt}(E),R=function(wt){l(nt,wt);function nt(ot,Ot){var Le=wt.call(this)||this;Le._storageService=ot,Le._configService=Ot,Le._storagePrefix="suggest/memories";var D=function(){var Z=Le._configService.getValue("editor.suggestSelection"),xe=Le._configService.getValue("editor.suggest.shareSuggestSelections");Le._update(Z,xe,!1)};return Le._persistSoon=Le._register(new S.d(function(){return Le._saveState()},500)),Le._register(ot.onWillSaveState(function(j){j.reason===f.c.SHUTDOWN&&Le._saveState()})),Le._register(Le._configService.onDidChangeConfiguration(function(j){(j.affectsConfiguration("editor.suggestSelection")||j.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&D()})),Le._register(Le._storageService.onDidChangeStorage(function(j){j.scope===0&&j.key.indexOf(Le._storagePrefix)===0&&(document.hasFocus()||Le._update(Le._mode,Le._shareMem,!0))})),D(),Le}return nt.prototype._update=function(ot,Ot,Le){if(!Le&&this._mode===ot&&this._shareMem===Ot)return;this._shareMem=Ot,this._mode=ot,this._strategy=ot==="recentlyUsedByPrefix"?new F:ot==="recentlyUsed"?new x:new _;try{var D=Ot?0:1,j=this._storageService.get(this._storagePrefix+"/"+this._mode,D);j&&this._strategy.fromJSON(JSON.parse(j))}catch(Z){}},nt.prototype.memorize=function(ot,Ot,Le){this._strategy.memorize(ot,Ot,Le),this._persistSoon.schedule()},nt.prototype.select=function(ot,Ot,Le){return this._strategy.select(ot,Ot,Le)},nt.prototype._saveState=function(){var ot=JSON.stringify(this._strategy),Ot=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,ot,Ot)},nt=d([p(0,f.a),p(1,u.a)],nt),nt}(H.a),$=Object(g.c)("ISuggestMemories");Object(s.b)($,R,!0);var ie=e("3/fG"),W=e("nnTU"),B=e("T8No"),le=e("nrhi"),be=e("QVNv"),De=function(wt,nt,ot,Ot){var Le=arguments.length,D=Le<3?nt:Ot===null?Ot=Object.getOwnPropertyDescriptor(nt,ot):Ot,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(wt,nt,ot,Ot);else for(var Z=wt.length-1;Z>=0;Z--)(j=wt[Z])&&(D=(Le<3?j(D):Le>3?j(nt,ot,D):j(nt,ot))||D);return Le>3&&D&&Object.defineProperty(nt,ot,D),D},Te=function(wt,nt){return function(ot,Ot){nt(ot,Ot,wt)}},ke=function(){function wt(nt,ot){this._editor=nt,this._index=0,this._ckOtherSuggestions=wt.OtherSuggestions.bindTo(ot)}return wt.prototype.dispose=function(){this.reset()},wt.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(H.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},wt.prototype.set=function(nt,ot){var Ot=this,Le=nt.model,D=nt.index;if(Le.items.length===0){this.reset();return}var j=wt._moveIndex(!0,Le,D);if(j===D){this.reset();return}this._acceptNext=ot,this._model=Le,this._index=D,this._listener=this._editor.onDidChangeCursorPosition(function(){Ot._ignore||Ot.reset()}),this._ckOtherSuggestions.set(!0)},wt._moveIndex=function(nt,ot,Ot){for(var Le=Ot;!(Le=(Le+ot.items.length+(nt?1:-1))%ot.items.length,Le===Ot);)if(!ot.items[Le].completion.additionalTextEdits)break;return Le},wt.prototype.next=function(){this._move(!0)},wt.prototype.prev=function(){this._move(!1)},wt.prototype._move=function(nt){if(!this._model)return;try{this._ignore=!0,this._index=wt._moveIndex(nt,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},wt.OtherSuggestions=new B.d("hasOtherSuggestions",!1),wt=De([Te(1,B.c)],wt),wt}(),He=e("MI8n"),je=e("gCVg"),oe=e("fpMC"),ee=e("N0LK"),ae=function(){function wt(nt,ot){this.leadingLineContent=nt,this.characterCountDelta=ot}return wt}(),q=function(){function wt(nt,ot,Ot,Le,D,j){this._snippetCompareFn=wt._compareCompletionItems,this._items=nt,this._column=ot,this._wordDistance=Le,this._options=D,this._refilterKind=1,this._lineContext=Ot,j==="top"?this._snippetCompareFn=wt._compareCompletionItemsSnippetsUp:j==="bottom"&&(this._snippetCompareFn=wt._compareCompletionItemsSnippetsDown)}return Object.defineProperty(wt.prototype,"lineContext",{get:function(){return this._lineContext},set:function(ot){(this._lineContext.leadingLineContent!==ot.leadingLineContent||this._lineContext.characterCountDelta!==ot.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta<ot.characterCountDelta&&this._filteredItems?2:1,this._lineContext=ot)},enumerable:!0,configurable:!0}),Object.defineProperty(wt.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(wt.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),wt.prototype.adopt=function(nt){for(var ot=new Array,Ot=0;Ot<this._items.length;)nt.has(this._items[Ot].provider)?Ot++:(ot.push(this._items[Ot]),this._items[Ot]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,ot},Object.defineProperty(wt.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),wt.prototype._ensureCachedState=function(){this._refilterKind!==0&&this._createCachedState()},wt.prototype._createCachedState=function(){this._isIncomplete=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};for(var nt=this._lineContext,ot=nt.leadingLineContent,Ot=nt.characterCountDelta,Le="",D="",j=this._refilterKind===1?this._items:this._filteredItems,Z=[],xe=!this._options.filterGraceful||j.length>2e3?oe.d:oe.e,Ae=0;Ae<j.length;Ae++){var Ie=j[Ae];Ie.container.incomplete&&this._isIncomplete.add(Ie.provider);var dt=Ie.position.column-Ie.editStart.column,ht=dt+Ot-(Ie.position.column-this._column);if(Le.length!==ht&&(Le=ht===0?"":ot.slice(-ht),D=Le.toLowerCase()),Ie.word=Le,ht===0)Ie.score=oe.a.Default;else{for(var At=0;At<dt;){var Bt=Le.charCodeAt(At);if(Bt===32||Bt===9)At+=1;else break}var Ut=typeof Ie.completion.label=="string"?Ie.completion.label:Ie.completion.label.name;if(At>=ht)Ie.score=oe.a.Default;else if(typeof Ie.completion.filterText=="string"){var Ht=xe(Le,D,At,Ie.completion.filterText,Ie.filterTextLow,0,!1);if(!Ht)continue;Object(ee.f)(Ie.completion.filterText,Ut)===0?Ie.score=Ht:(Ie.score=Object(oe.b)(Le,D,At,Ut,Ie.labelLow,0),Ie.score[0]=Ht[0])}else{var Ht=xe(Le,D,At,Ut,Ie.labelLow,0,!1);if(!Ht)continue;Ie.score=Ht}}Ie.idx=Ae,Ie.distance=this._wordDistance.distance(Ie.position,Ie.completion),Z.push(Ie),this._stats.suggestionCount++;switch(Ie.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=Z.sort(this._snippetCompareFn),this._refilterKind=0},wt._compareCompletionItems=function(nt,ot){return nt.score[0]>ot.score[0]?-1:nt.score[0]<ot.score[0]?1:nt.distance<ot.distance?-1:nt.distance>ot.distance?1:nt.idx<ot.idx?-1:nt.idx>ot.idx?1:0},wt._compareCompletionItemsSnippetsDown=function(nt,ot){if(nt.completion.kind!==ot.completion.kind){if(nt.completion.kind===25)return 1;if(ot.completion.kind===25)return-1}return wt._compareCompletionItems(nt,ot)},wt._compareCompletionItemsSnippetsUp=function(nt,ot){if(nt.completion.kind!==ot.completion.kind){if(nt.completion.kind===25)return-1;if(ot.completion.kind===25)return 1}return wt._compareCompletionItems(nt,ot)},wt}(),ce=e("JQT/"),X=e("Z7SF"),he=function(){var wt=function(ot,Ot){return wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Le,D){Le.__proto__=D}||function(Le,D){for(var j in D)D.hasOwnProperty(j)&&(Le[j]=D[j])},wt(ot,Ot)};return function(nt,ot){wt(nt,ot);function Ot(){this.constructor=nt}nt.prototype=ot===null?Object.create(ot):(Ot.prototype=ot.prototype,new Ot)}}(),Pe=function(wt,nt,ot,Ot){function Le(D){return D instanceof ot?D:new ot(function(j){j(D)})}return new(ot||(ot=Promise))(function(D,j){function Z(Ie){try{Ae(Ot.next(Ie))}catch(dt){j(dt)}}function xe(Ie){try{Ae(Ot.throw(Ie))}catch(dt){j(dt)}}function Ae(Ie){Ie.done?D(Ie.value):Le(Ie.value).then(Z,xe)}Ae((Ot=Ot.apply(wt,nt||[])).next())})},Xe=function(wt,nt){var ot={label:0,sent:function(){if(D[0]&1)throw D[1];return D[1]},trys:[],ops:[]},Ot,Le,D,j;return j={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function Z(Ae){return function(Ie){return xe([Ae,Ie])}}function xe(Ae){if(Ot)throw new TypeError("Generator is already executing.");for(;ot;)try{if(Ot=1,Le&&(D=Ae[0]&2?Le.return:Ae[0]?Le.throw||((D=Le.return)&&D.call(Le),0):Le.next)&&!(D=D.call(Le,Ae[1])).done)return D;(Le=0,D)&&(Ae=[Ae[0]&2,D.value]);switch(Ae[0]){case 0:case 1:D=Ae;break;case 4:return ot.label++,{value:Ae[1],done:!1};case 5:ot.label++,Le=Ae[1],Ae=[0];continue;case 7:Ae=ot.ops.pop(),ot.trys.pop();continue;default:if(!(D=ot.trys,D=D.length>0&&D[D.length-1])&&(Ae[0]===6||Ae[0]===2)){ot=0;continue}if(Ae[0]===3&&(!D||Ae[1]>D[0]&&Ae[1]<D[3])){ot.label=Ae[1];break}if(Ae[0]===6&&ot.label<D[1]){ot.label=D[1],D=Ae;break}if(D&&ot.label<D[2]){ot.label=D[2],ot.ops.push(Ae);break}D[2]&&ot.ops.pop(),ot.trys.pop();continue}Ae=nt.call(wt,ot)}catch(Ie){Ae=[6,Ie],Le=0}finally{Ot=D=0}if(Ae[0]&5)throw Ae[1];return{value:Ae[0]?Ae[1]:void 0,done:!0}}},pe=function(){function wt(){}return wt.create=function(nt,ot){return Pe(this,void 0,void 0,function(){var Ot,Le,D,j;return Xe(this,function(Z){switch(Z.label){case 0:return ot.getOption(89).localityBonus?ot.hasModel()?(Ot=ot.getModel(),Le=ot.getPosition(),nt.canComputeWordRanges(Ot.uri)?[4,new X.a().provideSelectionRanges(Ot,[Le])]:[2,wt.None]):[2,wt.None]:[2,wt.None];case 1:return D=Z.sent(),!D||D.length===0||D[0].length===0?[2,wt.None]:[4,nt.computeWordRanges(Ot.uri,D[0][0].range)];case 2:return j=Z.sent(),[2,new(function(xe){he(Ae,xe);function Ae(){return xe!==null&&xe.apply(this,arguments)||this}return Ae.prototype.distance=function(Ie,dt){if(!j||!Le.equals(ot.getPosition()))return 0;if(dt.kind===17)return 2<<20;var ht=typeof dt.label=="string"?dt.label:dt.label.name,At=j[ht];if(Object(re.p)(At))return 2<<20;for(var Bt=Object(re.c)(At,U.a.fromPositions(Ie),U.a.compareRangesUsingStarts),Ut=Bt>=0?At[Bt]:At[Math.max(0,~Bt-1)],Ht=D.length,nn=0,Zt=D[0];nn<Zt.length;nn++){var fn=Zt[nn];if(!U.a.containsRange(fn.range,Ut))break;Ht-=1}return Ht},Ae}(wt))]}})})},wt.None=new(function(nt){he(ot,nt);function ot(){return nt!==null&&nt.apply(this,arguments)||this}return ot.prototype.distance=function(){return 0},ot}(wt)),wt}(),me=function(){function wt(nt,ot,Ot,Le){this.leadingLineContent=nt.getLineContent(ot.lineNumber).substr(0,ot.column-1),this.leadingWord=nt.getWordUntilPosition(ot),this.lineNumber=ot.lineNumber,this.column=ot.column,this.auto=Ot,this.shy=Le}return wt.shouldAutoTrigger=function(nt){if(!nt.hasModel())return!1;var ot=nt.getModel(),Ot=nt.getPosition();ot.tokenizeIfCheap(Ot.lineNumber);var Le=ot.getWordAtPosition(Ot);return Le?Le.endColumn!==Ot.column?!1:!!isNaN(Number(Le.word)):!1},wt}(),Se=function(){function wt(nt,ot){var Ot=this;this._editor=nt,this._editorWorker=ot,this._toDispose=new H.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new H.b,this._triggerQuickSuggest=new S.e,this._state=0,this._completionDisposables=new H.b,this._onDidCancel=new He.a,this._onDidTrigger=new He.a,this._onDidSuggest=new He.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new je.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(function(){Ot._updateTriggerCharacters(),Ot.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(function(){Ot._updateTriggerCharacters(),Ot.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(function(){Ot._updateTriggerCharacters(),Ot._updateQuickSuggest()})),this._toDispose.add(v.d.onDidChange(function(){Ot._updateTriggerCharacters(),Ot._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(function(D){Ot._onCursorChange(D)}));var Le=!1;this._toDispose.add(this._editor.onDidCompositionStart(function(){Le=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(function(){Le=!1,Ot._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(function(){Le||Ot._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}return wt.prototype.dispose=function(){Object(H.f)(this._triggerCharacterListener),Object(H.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},wt.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getOption(67),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&this._quickSuggestDelay!==0||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},wt.prototype._updateTriggerCharacters=function(){var nt=this;if(this._triggerCharacterListener.clear(),this._editor.getOption(68)||!this._editor.hasModel()||!this._editor.getOption(92))return;for(var ot=new Map,Ot=0,Le=v.d.all(this._editor.getModel());Ot<Le.length;Ot++)for(var D=Le[Ot],j=0,Z=D.triggerCharacters||[];j<Z.length;j++){var xe=Z[j],Ae=ot.get(xe);Ae||(Ae=new Set,Ae.add(Object(be.c)()),ot.set(xe,Ae)),Ae.add(D)}var Ie=function(ht){if(!ht){var At=nt._editor.getPosition(),Bt=nt._editor.getModel();ht=Bt.getLineContent(At.lineNumber).substr(0,At.column-1)}var Ut="";Object(ee.A)(ht.charCodeAt(ht.length-1))?Object(ee.z)(ht.charCodeAt(ht.length-2))&&(Ut=ht.substr(ht.length-2)):Ut=ht.charAt(ht.length-1);var Ht=ot.get(Ut);if(Ht){var nn=nt._completionModel?nt._completionModel.adopt(Ht):void 0;nt.trigger({auto:!0,shy:!1,triggerCharacter:Ut},Boolean(nt._completionModel),Ht,nn)}};this._triggerCharacterListener.add(this._editor.onDidType(Ie)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(Ie))},Object.defineProperty(wt.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),wt.prototype.cancel=function(nt){nt===void 0&&(nt=!1),this._state!==0&&(this._triggerQuickSuggest.cancel(),this._requestToken&&(this._requestToken.cancel(),this._requestToken=void 0),this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:nt}))},wt.prototype.clear=function(){this._completionDisposables.clear()},wt.prototype._updateActiveSuggestSession=function(){this._state!==0&&(!this._editor.hasModel()||!v.d.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._state===2,shy:!1},!0))},wt.prototype._onCursorChange=function(nt){var ot=this;if(!this._editor.hasModel())return;var Ot=this._editor.getModel(),Le=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!nt.selection.isEmpty()||nt.reason!==0||nt.source!=="keyboard"&&nt.source!=="deleteLeft"){this.cancel();return}if(!v.d.has(Ot))return;if(this._state===0){if(this._editor.getOption(66)===!1)return;if(!Le.containsRange(this._currentSelection)&&!Le.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(89).snippetsPreventQuickSuggestions&&c.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(function(){if(ot._state!==0)return;if(!me.shouldAutoTrigger(ot._editor))return;if(!ot._editor.hasModel())return;var D=ot._editor.getModel(),j=ot._editor.getPosition(),Z=ot._editor.getOption(66);if(Z===!1)return;if(!(Z===!0)){D.tokenizeIfCheap(j.lineNumber);var xe=D.getLineTokens(j.lineNumber),Ae=xe.getStandardTokenType(xe.findTokenIndexAtOffset(Math.max(j.column-1-1,0))),Ie=Z.other&&Ae===0||Z.comments&&Ae===1||Z.strings&&Ae===2;if(!Ie)return}ot.trigger({auto:!0,shy:!1})},this._quickSuggestDelay)}},wt.prototype._refilterCompletionItems=function(){var nt=this;Promise.resolve().then(function(){if(nt._state===0)return;if(!nt._editor.hasModel())return;var ot=nt._editor.getModel(),Ot=nt._editor.getPosition(),Le=new me(ot,Ot,nt._state===2,!1);nt._onNewContext(Le)})},wt.prototype.trigger=function(nt,ot,Ot,Le){var D=this;if(ot===void 0&&(ot=!1),!this._editor.hasModel())return;var j=this._editor.getModel(),Z=nt.auto,xe=new me(j,this._editor.getPosition(),Z,nt.shy);this.cancel(ot),this._state=Z?2:1,this._onDidTrigger.fire({auto:Z,shy:nt.shy,position:this._editor.getPosition()}),this._context=xe;var Ae;nt.triggerCharacter?Ae={triggerKind:1,triggerCharacter:nt.triggerCharacter}:Ot&&Ot.size>0?Ae={triggerKind:2}:Ae={triggerKind:0},this._requestToken=new ce.b;var Ie=this._editor.getOption(86),dt=1;switch(Ie){case"top":dt=0;break;case"bottom":dt=2;break}var ht=wt._createItemKindFilter(this._editor),At=pe.create(this._editorWorker,this._editor),Bt=Object(be.e)(j,this._editor.getPosition(),new be.a(dt,ht,Ot),Ae,this._requestToken.token);Promise.all([Bt,At]).then(function(Ut){var Ht=Ut[0],nn=Ut[1];if(Object(H.f)(D._requestToken),D._state===0)return;if(!D._editor.hasModel())return;var Zt=D._editor.getModel();if(Object(re.q)(Le)){var fn=Object(be.d)(dt);Ht=Ht.concat(Le).sort(fn)}var yt=new me(Zt,D._editor.getPosition(),Z,nt.shy);D._completionModel=new q(Ht,D._context.column,{leadingLineContent:yt.leadingLineContent,characterCountDelta:yt.column-D._context.column},nn,D._editor.getOption(89),D._editor.getOption(86));for(var Ue=0,Me=Ht;Ue<Me.length;Ue++){var rt=Me[Ue];Object(H.g)(rt.container)&&D._completionDisposables.add(rt.container)}D._onNewContext(yt)}).catch(J.e)},wt._createItemKindFilter=function(nt){var ot=new Set,Ot=nt.getOption(86);Ot==="none"&&ot.add(25);var Le=nt.getOption(89);return Le.showMethods||ot.add(0),Le.showFunctions||ot.add(1),Le.showConstructors||ot.add(2),Le.showFields||ot.add(3),Le.showVariables||ot.add(4),Le.showClasses||ot.add(5),Le.showStructs||ot.add(6),Le.showInterfaces||ot.add(7),Le.showModules||ot.add(8),Le.showProperties||ot.add(9),Le.showEvents||ot.add(10),Le.showOperators||ot.add(11),Le.showUnits||ot.add(12),Le.showValues||ot.add(13),Le.showConstants||ot.add(14),Le.showEnums||ot.add(15),Le.showEnumMembers||ot.add(16),Le.showKeywords||ot.add(17),Le.showWords||ot.add(18),Le.showColors||ot.add(19),Le.showFiles||ot.add(20),Le.showReferences||ot.add(21),Le.showColors||ot.add(22),Le.showFolders||ot.add(23),Le.showTypeParameters||ot.add(24),Le.showSnippets||ot.add(25),ot},wt.prototype._onNewContext=function(nt){if(!this._context)return;if(nt.lineNumber!==this._context.lineNumber){this.cancel();return}if(nt.leadingWord.startColumn<this._context.leadingWord.startColumn){this.cancel();return}if(nt.column<this._context.column){nt.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();return}if(!this._completionModel)return;if(nt.column>this._context.column&&this._completionModel.incomplete.size>0&&nt.leadingWord.word.length!==0){var ot=this._completionModel.incomplete,Ot=this._completionModel.adopt(ot);this.trigger({auto:this._state===2,shy:!1},!0,ot,Ot)}else{var Le=this._completionModel.lineContext,D=!1;if(this._completionModel.lineContext={leadingLineContent:nt.leadingLineContent,characterCountDelta:nt.column-this._context.column},this._completionModel.items.length===0){if(me.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<nt.leadingWord.startColumn){this.trigger({auto:this._context.auto,shy:!1},!0);return}if(this._context.auto){this.cancel();return}else if(this._completionModel.lineContext=Le,D=this._completionModel.items.length>0,D&&nt.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:D})}},wt}(),Re=e("CClx"),Ee=e("nn6Y"),ve=e("k76M"),Q=e("jqj9"),b=e("EffR"),k=e("cqdO"),se=e("GJhM"),ne=e("bexQ"),Ce=e("XXUj"),Oe=e("ptcw"),we=e("t9D7"),Ve=e("MD5Z"),Qe=e("3qCu"),it=e("WBhO"),gt=e("W9cx"),Rt=e("xONI"),Dt=e("tYmi"),zt=e("gslv"),cn=e("MqQJ"),ln;(function(wt){wt[wt.FILE=0]="FILE",wt[wt.FOLDER=1]="FOLDER",wt[wt.ROOT_FOLDER=2]="ROOT_FOLDER"})(ln||(ln={}));function an(wt,nt,ot,Ot){var Le=Ot===ln.ROOT_FOLDER?["rootfolder-icon"]:Ot===ln.FOLDER?["folder-icon"]:["file-icon"];if(ot){var D;if(ot.scheme===Dt.b.data){var j=zt.a.parseMetaData(ot);D=j.get(zt.a.META_DATA_LABEL)}else D=ft(Object(zt.c)(ot).toLowerCase());if(Ot===ln.FOLDER)Le.push(D+"-name-folder-icon");else{if(D){Le.push(D+"-name-file-icon");for(var Z=D.split("."),xe=1;xe<Z.length;xe++)Le.push(Z.slice(xe).join(".")+"-ext-file-icon");Le.push("ext-file-icon")}var Ae=jt(wt,nt,ot);Ae&&Le.push(ft(Ae)+"-lang-file-icon")}}return Le}function jt(wt,nt,ot){if(!ot)return null;var Ot=null;if(ot.scheme===Dt.b.data){var Le=zt.a.parseMetaData(ot),D=Le.get(zt.a.META_DATA_MIME);D&&(Ot=nt.getModeId(D))}else{var j=wt.getModel(ot);j&&(Ot=j.getModeId())}return Ot&&Ot!==cn.c?Ot:nt.getModeIdByFilepathOrFirstLine(ot)}function ft(wt){return wt.replace(/\s/g,"\\$&")}var vt=e("G2kB"),xt=e("bY76"),at=e("eLzo"),tt=e("cGHE"),ct=function(){return ct=Object.assign||function(wt){for(var nt,ot=1,Ot=arguments.length;ot<Ot;ot++){nt=arguments[ot];for(var Le in nt)Object.prototype.hasOwnProperty.call(nt,Le)&&(wt[Le]=nt[Le])}return wt},ct.apply(this,arguments)},bt=function(wt,nt,ot,Ot){var Le=arguments.length,D=Le<3?nt:Ot===null?Ot=Object.getOwnPropertyDescriptor(nt,ot):Ot,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(wt,nt,ot,Ot);else for(var Z=wt.length-1;Z>=0;Z--)(j=wt[Z])&&(D=(Le<3?j(D):Le>3?j(nt,ot,D):j(nt,ot))||D);return Le>3&&D&&Object.defineProperty(nt,ot,D),D},mt=function(wt,nt){return function(ot,Ot){nt(ot,Ot,wt)}},Ct=function(wt,nt,ot,Ot){function Le(D){return D instanceof ot?D:new ot(function(j){j(D)})}return new(ot||(ot=Promise))(function(D,j){function Z(Ie){try{Ae(Ot.next(Ie))}catch(dt){j(dt)}}function xe(Ie){try{Ae(Ot.throw(Ie))}catch(dt){j(dt)}}function Ae(Ie){Ie.done?D(Ie.value):Le(Ie.value).then(Z,xe)}Ae((Ot=Ot.apply(wt,nt||[])).next())})},Gt=function(wt,nt){var ot={label:0,sent:function(){if(D[0]&1)throw D[1];return D[1]},trys:[],ops:[]},Ot,Le,D,j;return j={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function Z(Ae){return function(Ie){return xe([Ae,Ie])}}function xe(Ae){if(Ot)throw new TypeError("Generator is already executing.");for(;ot;)try{if(Ot=1,Le&&(D=Ae[0]&2?Le.return:Ae[0]?Le.throw||((D=Le.return)&&D.call(Le),0):Le.next)&&!(D=D.call(Le,Ae[1])).done)return D;(Le=0,D)&&(Ae=[Ae[0]&2,D.value]);switch(Ae[0]){case 0:case 1:D=Ae;break;case 4:return ot.label++,{value:Ae[1],done:!1};case 5:ot.label++,Le=Ae[1],Ae=[0];continue;case 7:Ae=ot.ops.pop(),ot.trys.pop();continue;default:if(!(D=ot.trys,D=D.length>0&&D[D.length-1])&&(Ae[0]===6||Ae[0]===2)){ot=0;continue}if(Ae[0]===3&&(!D||Ae[1]>D[0]&&Ae[1]<D[3])){ot.label=Ae[1];break}if(Ae[0]===6&&ot.label<D[1]){ot.label=D[1],D=Ae;break}if(D&&ot.label<D[2]){ot.label=D[2],ot.ops.push(Ae);break}D[2]&&ot.ops.pop(),ot.trys.pop();continue}Ae=nt.call(wt,ot)}catch(Ie){Ae=[6,Ie],Le=0}finally{Ot=D=0}if(Ae[0]&5)throw Ae[1];return{value:Ae[0]?Ae[1]:void 0,done:!0}}},It=!1,Et=Object(Ve.Tb)("editorSuggestWidget.background",{dark:Ve.Q,light:Ve.Q,hc:Ve.Q},ie.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),Je=Object(Ve.Tb)("editorSuggestWidget.border",{dark:Ve.R,light:Ve.R,hc:Ve.R},ie.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),$e=Object(Ve.Tb)("editorSuggestWidget.foreground",{dark:Ve.x,light:Ve.x,hc:Ve.x},ie.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),ze=Object(Ve.Tb)("editorSuggestWidget.selectedBackground",{dark:Ve.rb,light:Ve.rb,hc:Ve.rb},ie.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),Ke=Object(Ve.Tb)("editorSuggestWidget.highlightForeground",{dark:Ve.tb,light:Ve.tb,hc:Ve.tb},ie.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),fe=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i;function G(wt,nt){var ot=typeof wt.completion.label=="string"?wt.completion.label:wt.completion.label.name;return ot.match(fe)?(nt[0]=ot,!0):typeof wt.completion.documentation=="string"&&wt.completion.documentation.match(fe)?(nt[0]=wt.completion.documentation,!0):!1}function te(wt){if(!wt)return!1;var nt=wt.completion;return nt.documentation?!0:nt.detail&&nt.detail!==nt.label}function Y(wt){return"suggest-aria-id:"+wt}var de=function(){function wt(nt,ot,Ot,Le,D,j){this.widget=nt,this.editor=ot,this.triggerKeybindingLabel=Ot,this._modelService=Le,this._modeService=D,this._themeService=j}return Object.defineProperty(wt.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),wt.prototype.renderTemplate=function(nt){var ot=this,Ot=Object.create(null);Ot.disposables=new H.b,Ot.root=nt,Object(b.f)(Ot.root,"show-file-icons"),Ot.icon=Object(b.q)(nt,Object(b.a)(".icon")),Ot.colorspan=Object(b.q)(Ot.icon,Object(b.a)("span.colorspan"));var Le=Object(b.q)(nt,Object(b.a)(".contents")),D=Object(b.q)(Le,Object(b.a)(".main"));Ot.left=Object(b.q)(D,Object(b.a)("span.left")),Ot.right=Object(b.q)(D,Object(b.a)("span.right")),Ot.iconContainer=Object(b.q)(Ot.left,Object(b.a)(".icon-label.codicon")),Ot.iconLabel=new Rt.a(Ot.left,{supportHighlights:!0,supportCodicons:!0}),Ot.disposables.add(Ot.iconLabel),Ot.signatureLabel=Object(b.q)(Ot.left,Object(b.a)("span.signature-label")),Ot.qualifierLabel=Object(b.q)(Ot.left,Object(b.a)("span.qualifier-label")),Ot.detailsLabel=Object(b.q)(Ot.right,Object(b.a)("span.details-label")),Ot.readMore=Object(b.q)(Ot.right,Object(b.a)("span.readMore.codicon.codicon-info")),Ot.readMore.title=ie.a("readMore","Read More...{0}",this.triggerKeybindingLabel);var j=function(){var xe=ot.editor.getOptions(),Ae=xe.get(34),Ie=Ae.fontFamily,dt=Ae.fontFeatureSettings,ht=xe.get(90)||Ae.fontSize,At=xe.get(91)||Ae.lineHeight,Bt=Ae.fontWeight,Ut=ht+"px",Ht=At+"px";Ot.root.style.fontSize=Ut,Ot.root.style.fontWeight=Bt,D.style.fontFamily=Ie,D.style.fontFeatureSettings=dt,D.style.lineHeight=Ht,Ot.icon.style.height=Ht,Ot.icon.style.width=Ht,Ot.readMore.style.height=Ht,Ot.readMore.style.width=Ht};return j(),Ot.disposables.add(He.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Z){return Z.hasChanged(34)||Z.hasChanged(90)||Z.hasChanged(91)}).on(j,null)),Ot},wt.prototype.renderElement=function(nt,ot,Ot){var Le=this,D=Ot,j=nt.completion,Z=typeof j.label=="string"?j.label:j.label.name;D.root.id=Y(ot),D.icon.className="icon "+Object(v.F)(j.kind),D.colorspan.style.backgroundColor="";var xe={labelEscapeNewLines:!0,matches:Object(oe.c)(nt.score)},Ae=[];if(j.kind===19&&G(nt,Ae))D.icon.className="icon customcolor",D.iconContainer.className="icon hide",D.colorspan.style.backgroundColor=Ae[0];else if(j.kind===20&&this._themeService.getIconTheme().hasFileIcons){D.icon.className="icon hide",D.iconContainer.className="icon hide";var Ie=an(this._modelService,this._modeService,xt.a.from({scheme:"fake",path:Z}),ln.FILE),dt=an(this._modelService,this._modeService,xt.a.from({scheme:"fake",path:j.detail}),ln.FILE);xe.extraClasses=Ie.length>dt.length?Ie:dt}else j.kind===23&&this._themeService.getIconTheme().hasFolderIcons?(D.icon.className="icon hide",D.iconContainer.className="icon hide",xe.extraClasses=Object(re.m)([an(this._modelService,this._modeService,xt.a.from({scheme:"fake",path:Z}),ln.FOLDER),an(this._modelService,this._modeService,xt.a.from({scheme:"fake",path:j.detail}),ln.FOLDER)])):(D.icon.className="icon hide",D.iconContainer.className="",Object(b.g)(D.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(v.F)(j.kind)));j.tags&&j.tags.indexOf(1)>=0&&(xe.extraClasses=(xe.extraClasses||[]).concat(["deprecated"]),xe.matches=[]),D.iconLabel.setLabel(Z,void 0,xe),typeof j.label=="string"?(D.signatureLabel.textContent="",D.qualifierLabel.textContent="",D.detailsLabel.textContent=(j.detail||"").replace(/\n.*$/m,""),Object(b.P)(D.right,"always-show-details")):(D.signatureLabel.textContent=(j.label.signature||"").replace(/\n.*$/m,""),D.qualifierLabel.textContent=(j.label.qualifier||"").replace(/\n.*$/m,""),D.detailsLabel.textContent=(j.label.type||"").replace(/\n.*$/m,""),Object(b.f)(D.right,"always-show-details")),te(nt)?(Object(b.f)(D.right,"can-expand-details"),Object(b.X)(D.readMore),D.readMore.onmousedown=function(ht){ht.stopPropagation(),ht.preventDefault()},D.readMore.onclick=function(ht){ht.stopPropagation(),ht.preventDefault(),Le.widget.toggleDetails()}):(Object(b.P)(D.right,"can-expand-details"),Object(b.J)(D.readMore),D.readMore.onmousedown=null,D.readMore.onclick=null)},wt.prototype.disposeTemplate=function(nt){nt.disposables.dispose()},wt=bt([mt(3,vt.a),mt(4,it.a),mt(5,we.c)],wt),wt}(),Fe=function(){function wt(nt,ot,Ot,Le,D){var j=this;this.widget=ot,this.editor=Ot,this.markdownRenderer=Le,this.kbToggleDetails=D,this.borderWidth=1,this.disposables=new H.b,this.el=Object(b.q)(nt,Object(b.a)(".details")),this.disposables.add(Object(H.h)(function(){return nt.removeChild(j.el)})),this.body=Object(b.a)(".body"),this.scrollbar=new se.a(this.body,{}),Object(b.q)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(b.q)(this.body,Object(b.a)(".header")),this.close=Object(b.q)(this.header,Object(b.a)("span.codicon.codicon-close")),this.close.title=ie.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(b.q)(this.header,Object(b.a)("p.type")),this.docs=Object(b.q)(this.body,Object(b.a)("p.docs")),this.configureFont(),He.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Z){return Z.hasChanged(34)}).on(this.configureFont,this,this.disposables),Le.onDidRenderCodeBlock(function(){return j.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(wt.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),wt.prototype.renderLoading=function(){this.type.textContent=ie.a("loading","Loading..."),this.docs.textContent=""},wt.prototype.renderItem=function(nt,ot){var Ot=this;this.renderDisposeable=Object(H.f)(this.renderDisposeable);var Le=nt.completion,D=Le.documentation,j=Le.detail;if(ot){var Z="";Z+="score: "+nt.score[0]+(nt.word?", compared '"+(nt.completion.filterText&&nt.completion.filterText+" (filterText)"||nt.completion.label)+"' with '"+nt.word+"'":" (no prefix)")+`
`,Z+="distance: "+nt.distance+`, see localityBonus-setting
`,Z+="index: "+nt.idx+", based on "+(nt.completion.sortText&&'sortText: "'+nt.completion.sortText+'"'||"label")+`
`,D=new at.a().appendCodeblock("empty",Z),j="Provider: "+nt.provider._debugDisplayName}if(!ot&&!te(nt)){this.type.textContent="",this.docs.textContent="",Object(b.f)(this.el,"no-docs");return}if(Object(b.P)(this.el,"no-docs"),typeof D=="string")Object(b.P)(this.docs,"markdown-docs"),this.docs.textContent=D;else{Object(b.f)(this.docs,"markdown-docs"),this.docs.innerHTML="";var xe=this.markdownRenderer.render(D);this.renderDisposeable=xe,this.docs.appendChild(xe.element)}j?(this.type.innerText=j,Object(b.X)(this.type)):(this.type.innerText="",Object(b.J)(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(Ae){Ae.preventDefault(),Ae.stopPropagation()},this.close.onclick=function(Ae){Ae.preventDefault(),Ae.stopPropagation(),Ot.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},wt.prototype.scrollDown=function(nt){nt===void 0&&(nt=8),this.body.scrollTop+=nt},wt.prototype.scrollUp=function(nt){nt===void 0&&(nt=8),this.body.scrollTop-=nt},wt.prototype.scrollTop=function(){this.body.scrollTop=0},wt.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},wt.prototype.pageDown=function(){this.scrollDown(80)},wt.prototype.pageUp=function(){this.scrollUp(80)},wt.prototype.setBorderWidth=function(nt){this.borderWidth=nt},wt.prototype.configureFont=function(){var nt=this.editor.getOptions(),ot=nt.get(34),Ot=ot.fontFamily,Le=nt.get(90)||ot.fontSize,D=nt.get(91)||ot.lineHeight,j=ot.fontWeight,Z=Le+"px",xe=D+"px";this.el.style.fontSize=Z,this.el.style.fontWeight=j,this.el.style.fontFeatureSettings=ot.fontFeatureSettings,this.type.style.fontFamily=Ot,this.close.style.height=xe,this.close.style.width=xe},wt.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(H.f)(this.renderDisposeable)},wt}(),lt=function(){function wt(nt,ot,Ot,Le,D,j,Z,xe,Ae){var Ie=this,dt,ht;this.editor=nt,this.telemetryService=ot,this.keybindingService=Ot,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=H.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new S.e,this.toDispose=new H.b,this.onDidSelectEmitter=new He.a,this.onDidFocusEmitter=new He.a,this.onDidHideEmitter=new He.a,this.onDidShowEmitter=new He.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 He.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var At=this.toDispose.add(new Qe.a(nt,Z,xe)),Bt=(ht=(dt=Ot.lookupKeybinding("toggleSuggestionDetails"))===null||dt===void 0?void 0:dt.getLabel())!==null&&ht!==void 0?ht:"";this.msgDetailsLess=ie.a("detail.less","{0} for less...",Bt),this.msgDetailMore=ie.a("detail.more","{0} for more...",Bt),this.isAuto=!1,this.focusedItem=null,this.storageService=j,this.element=Object(b.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(b.j)(this.element,"click",function(Zt){Zt.target===Ie.element&&Ie.hideWidget()})),this.messageElement=Object(b.q)(this.element,Object(b.a)(".message")),this.listElement=Object(b.q)(this.element,Object(b.a)(".tree"));var Ut=function(){return Object(b.Y)(Ie.element,"with-status-bar",!Ie.editor.getOption(89).hideStatusBar)};Ut(),this.statusBarElement=Object(b.q)(this.element,Object(b.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(b.q)(this.statusBarElement,Object(b.a)("span")),this.statusBarRightSpan=Object(b.q)(this.statusBarElement,Object(b.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=Ae.createInstance(Fe,this.element,this,this.editor,At,Bt);var Ht=function(){return Object(b.Y)(Ie.element,"no-icons",!Ie.editor.getOption(89).showIcons)};Ht();var nn=Ae.createInstance(de,this,this.editor,Bt);this.list=new k.c("SuggestWidget",this.listElement,this,[nn],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(fn){var yt=typeof fn.completion.label=="string"?fn.completion.label:fn.completion.label.name;if(fn.isResolved&&Ie.expandDocsSettingFromStorage()){var Ue=fn.completion,Me=Ue.documentation,rt=Ue.detail,Nt=ee.r("{0}{1}",rt||"",Me?typeof Me=="string"?Me:Me.value:"");return ie.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",yt,Nt)}else return yt}}}),this.toDispose.add(Object(Oe.b)(this.list,D,{listInactiveFocusBackground:ze,listInactiveFocusOutline:Ve.b})),this.toDispose.add(D.onThemeChange(function(Zt){return Ie.onThemeChange(Zt)})),this.toDispose.add(nt.onDidLayoutChange(function(){return Ie.onEditorLayoutChange()})),this.toDispose.add(this.list.onMouseDown(function(Zt){return Ie.onListMouseDownOrTap(Zt)})),this.toDispose.add(this.list.onTap(function(Zt){return Ie.onListMouseDownOrTap(Zt)})),this.toDispose.add(this.list.onSelectionChange(function(Zt){return Ie.onListSelection(Zt)})),this.toDispose.add(this.list.onFocusChange(function(Zt){return Ie.onListFocus(Zt)})),this.toDispose.add(this.editor.onDidChangeCursorSelection(function(){return Ie.onCursorSelectionChanged()})),this.toDispose.add(this.editor.onDidChangeConfiguration(function(Zt){Zt.hasChanged(89)&&(Ut(),Ht())})),this.suggestWidgetVisible=be.b.Visible.bindTo(Le),this.suggestWidgetMultipleSuggestions=be.b.MultipleSuggestions.bindTo(Le),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(D.getTheme()),this.toDispose.add(Object(b.o)(this.details.element,"keydown",function(Zt){Ie._onDetailsKeydown.fire(Zt)})),this.toDispose.add(this.editor.onMouseDown(function(Zt){return Ie.onEditorMouseDown(Zt)}))}return wt.prototype.onEditorMouseDown=function(nt){this.details.element.contains(nt.target.element)?this.details.element.focus():this.element.contains(nt.target.element)&&this.editor.focus()},wt.prototype.onCursorSelectionChanged=function(){if(this.state===0)return;this.editor.layoutContentWidget(this)},wt.prototype.onEditorLayoutChange=function(){(this.state===3||this.state===5)&&this.expandDocsSettingFromStorage()&&this.expandSideOrBelow()},wt.prototype.onListMouseDownOrTap=function(nt){if(typeof nt.element=="undefined"||typeof nt.index=="undefined")return;nt.browserEvent.preventDefault(),nt.browserEvent.stopPropagation(),this.select(nt.element,nt.index)},wt.prototype.onListSelection=function(nt){if(!nt.elements.length)return;this.select(nt.elements[0],nt.indexes[0])},wt.prototype.select=function(nt,ot){var Ot=this.completionModel;if(!Ot)return;this.onDidSelectEmitter.fire({item:nt,index:ot,model:Ot}),this.editor.focus()},wt.prototype.onThemeChange=function(nt){var ot=nt.getColor(Et);ot&&(this.listElement.style.backgroundColor=ot.toString(),this.statusBarElement.style.backgroundColor=ot.toString(),this.details.element.style.backgroundColor=ot.toString(),this.messageElement.style.backgroundColor=ot.toString());var Ot=nt.getColor(Je);Ot&&(this.listElement.style.borderColor=Ot.toString(),this.statusBarElement.style.borderColor=Ot.toString(),this.details.element.style.borderColor=Ot.toString(),this.messageElement.style.borderColor=Ot.toString(),this.detailsBorderColor=Ot.toString());var Le=nt.getColor(Ve.V);Le&&(this.detailsFocusBorderColor=Le.toString()),this.details.setBorderWidth(nt.type==="hc"?2:1)},wt.prototype.onListFocus=function(nt){var ot=this,Ot,Le;if(this.ignoreFocusEvents)return;if(!nt.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 D=nt.elements[0],j=nt.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,D!==this.focusedItem){var Z=this.editor.getOption(89).insertMode==="insert",xe=(Ot=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))===null||Ot===void 0?void 0:Ot.getLabel(),Ae=(Le=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))===null||Le===void 0?void 0:Le.getLabel();tt.a.equals(D.editInsertEnd,D.editReplaceEnd)?this.setStatusBarLeftText(ie.a("accept","{0} to accept",xe)):Z?this.setStatusBarLeftText(ie.a("insert","{0} to insert, {1} to replace",xe,Ae)):this.setStatusBarLeftText(ie.a("replace","{0} to replace, {1} to insert",xe,Ae)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=D,this.list.reveal(j),this.currentSuggestionDetails=Object(S.f)(function(Ie){return Ct(ot,void 0,void 0,function(){var dt,ht,At=this;return Gt(this,function(Bt){switch(Bt.label){case 0:return dt=Object(S.g)(function(){return At.showDetails(!0)},250),Ie.onCancellationRequested(function(){return dt.dispose()}),[4,D.resolve(Ie)];case 1:return ht=Bt.sent(),dt.dispose(),[2,ht]}})})}),this.currentSuggestionDetails.then(function(){if(j>=ot.list.length||D!==ot.list.element(j))return;ot.ignoreFocusEvents=!0,ot.list.splice(j,1,[D]),ot.list.setFocus([j]),ot.ignoreFocusEvents=!1,ot.expandDocsSettingFromStorage()?ot.showDetails(!1):Object(b.P)(ot.element,"docs-side"),te(ot.focusedItem)?ot.expandDocsSettingFromStorage()?ot.setStatusBarRightText(ot.msgDetailsLess):ot.setStatusBarRightText(ot.msgDetailMore):ot.statusBarRightSpan.innerText="",ot.editor.setAriaOptions({activeDescendant:Y(j)})}).catch(J.e)}this.onDidFocusEmitter.fire({item:D,index:j,model:this.completionModel})},wt.prototype.setState=function(nt){if(!this.element)return;var ot=this.state!==nt;this.state=nt,Object(b.Y)(this.element,"frozen",nt===4);switch(nt){case 0:Object(b.J)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,ot&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=wt.LOADING_MESSAGE,Object(b.J)(this.listElement,this.details.element,this.statusBarElement),Object(b.X)(this.messageElement),Object(b.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=wt.NO_SUGGESTIONS_MESSAGE,Object(b.J)(this.listElement,this.details.element,this.statusBarElement),Object(b.X)(this.messageElement),Object(b.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(b.J)(this.messageElement),Object(b.X)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(b.J)(this.messageElement),Object(b.X)(this.listElement),this.show();break;case 5:Object(b.J)(this.messageElement),Object(b.X)(this.details.element,this.listElement,this.statusBarElement),this.show();break}},wt.prototype.showTriggered=function(nt,ot){var Ot=this;if(this.state!==0)return;this.isAuto=!!nt,this.isAuto||(this.loadingTimeout=Object(S.g)(function(){return Ot.setState(1)},ot))},wt.prototype.showSuggestions=function(nt,ot,Ot,Le){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==nt&&(this.completionModel=nt),Ot&&this.state!==2&&this.state!==0){this.setState(4);return}var D=this.completionModel.items.length,j=D===0;if(this.suggestWidgetMultipleSuggestions.set(D>1),j)Le?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){var Z=this.completionModel.stats;Z.wasAutomaticallyTriggered=!!Le,this.telemetryService.publicLog("suggestWidget",ct({},Z))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),Ot?this.setState(4):this.setState(3),this.list.reveal(ot,0),this.list.setFocus([ot]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}},wt.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}},wt.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},wt.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}},wt.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}},wt.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},wt.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}},wt.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},wt.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")},wt.prototype.toggleDetails=function(){if(!te(this.list.getFocusedElements()[0]))return;if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(b.J)(this.details.element),Object(b.P)(this.element,"docs-side"),Object(b.P)(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")}},wt.prototype.showDetails=function(nt){nt||this.expandSideOrBelow(),Object(b.X)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",nt?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()},wt.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},wt.prototype.show=function(){var nt=this,ot=this.updateListHeight();ot!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=ot),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(b.f)(nt.element,"visible"),nt.onDidShowEmitter.fire(nt)},100)},wt.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(b.P)(this.element,"visible")},wt.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},wt.prototype.getPosition=function(){if(this.state===0)return null;var nt=[2,1];return this.preferDocPositionTop&&(nt=[1]),{position:this.editor.getPosition(),preference:nt}},wt.prototype.getDomNode=function(){return this.element},wt.prototype.getId=function(){return wt.ID},wt.prototype.isFrozen=function(){return this.state===4},wt.prototype.updateListHeight=function(){var nt=0;if(this.state===2||this.state===1)nt=this.unfocusedHeight;else{var ot=this.list.contentHeight/this.unfocusedHeight,Ot=this.editor.getOption(89).maxVisibleSuggestions;nt=Math.min(ot,Ot)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=nt+"px",this.statusBarElement.style.top=nt+"px",this.list.layout(nt),nt},wt.prototype.adjustDocsPosition=function(){if(!this.editor.hasModel())return;var nt=this.editor.getOption(49),ot=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),Ot=Object(b.C)(this.editor.getDomNode()),Le=Ot.left+ot.left,D=Ot.top+ot.top+ot.height,j=Object(b.C)(this.element),Z=j.left,xe=j.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<xe&&!this.preferDocPositionTop){this.preferDocPositionTop=!0,this.adjustDocsPosition();return}this.docsPositionPreviousWidgetY=xe,Z<Le-this.listWidth?Object(b.f)(this.element,"list-right"):Object(b.P)(this.element,"list-right"),Object(b.I)(this.element,"docs-side")&&D-nt>xe&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},wt.prototype.expandSideOrBelow=function(){if(!te(this.focusedItem)&&this.firstFocusInCurrentList){Object(b.P)(this.element,"docs-side"),Object(b.P)(this.element,"docs-below");return}var nt=this.element.style.maxWidth.match(/(\d+)px/);!nt||Number(nt[1])<this.maxWidgetWidth?(Object(b.f)(this.element,"docs-below"),Object(b.P)(this.element,"docs-side")):te(this.focusedItem)&&(Object(b.f)(this.element,"docs-side"),Object(b.P)(this.element,"docs-below"))},Object.defineProperty(wt.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getOption(89).maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(wt.prototype,"unfocusedHeight",{get:function(){var ot=this.editor.getOptions();return ot.get(91)||ot.get(34).lineHeight},enumerable:!0,configurable:!0}),wt.prototype.getHeight=function(nt){return this.unfocusedHeight},wt.prototype.getTemplateId=function(nt){return"suggestion"},wt.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,It)},wt.prototype.updateExpandDocsSetting=function(nt){this.storageService.store("expandSuggestionDocs",nt,0)},wt.prototype.setStatusBarLeftText=function(nt){this.statusBarLeftSpan.innerText=nt},wt.prototype.setStatusBarRightText=function(nt){this.statusBarRightSpan.innerText=nt},wt.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},wt.ID="editor.widget.suggestWidget",wt.LOADING_MESSAGE=ie.a("suggestWidget.loading","Loading..."),wt.NO_SUGGESTIONS_MESSAGE=ie.a("suggestWidget.noSuggestions","No suggestions."),wt=bt([mt(1,Ce.a),mt(2,ne.a),mt(3,B.c),mt(4,we.c),mt(5,f.a),mt(6,it.a),mt(7,gt.a),mt(8,g.a)],wt),wt}();Object(we.e)(function(wt,nt){var ot=wt.getColor(Ke);ot&&nt.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+ot+"; }");var Ot=wt.getColor($e);Ot&&nt.addRule(".monaco-editor .suggest-widget { color: "+Ot+"; }");var Le=wt.getColor(Ve.ec);Le&&nt.addRule(".monaco-editor .suggest-widget a { color: "+Le+"; }");var D=wt.getColor(Ve.dc);D&&nt.addRule(".monaco-editor .suggest-widget code { background-color: "+D+"; }")});var Tt=function(){var wt=function(ot,Ot){return wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Le,D){Le.__proto__=D}||function(Le,D){for(var j in D)D.hasOwnProperty(j)&&(Le[j]=D[j])},wt(ot,Ot)};return function(nt,ot){wt(nt,ot);function Ot(){this.constructor=nt}nt.prototype=ot===null?Object.create(ot):(Ot.prototype=ot.prototype,new Ot)}}(),Jt=function(wt,nt,ot,Ot){var Le=arguments.length,D=Le<3?nt:Ot===null?Ot=Object.getOwnPropertyDescriptor(nt,ot):Ot,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(wt,nt,ot,Ot);else for(var Z=wt.length-1;Z>=0;Z--)(j=wt[Z])&&(D=(Le<3?j(D):Le>3?j(nt,ot,D):j(nt,ot))||D);return Le>3&&D&&Object.defineProperty(nt,ot,D),D},en=function(wt,nt){return function(ot,Ot){nt(ot,Ot,wt)}},gn=function(wt){Tt(nt,wt);function nt(ot,Ot){var Le=wt.call(this)||this;return Le._editor=ot,Le._enabled=!1,Le._ckAtEnd=nt.AtEnd.bindTo(Ot),Le._register(Le._editor.onDidChangeConfiguration(function(D){return D.hasChanged(94)&&Le._update()})),Le._update(),Le}return nt.prototype.dispose=function(){wt.prototype.dispose.call(this),Object(H.f)(this._selectionListener),this._ckAtEnd.reset()},nt.prototype._update=function(){var ot=this,Ot=this._editor.getOption(94)==="on";if(this._enabled===Ot)return;if(this._enabled=Ot,this._enabled){var Le=function(){if(!ot._editor.hasModel()){ot._ckAtEnd.set(!1);return}var j=ot._editor.getModel(),Z=ot._editor.getSelection(),xe=j.getWordAtPosition(Z.getStartPosition());if(!xe){ot._ckAtEnd.set(!1);return}ot._ckAtEnd.set(xe.endColumn===Z.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(Le),Le()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},nt.AtEnd=new B.d("atEndOfWord",!1),nt=Jt([en(1,B.c)],nt),nt}(H.a),un=e("pAvP"),En=e("746U"),Mn=e("MXAL"),xn=function(){function wt(nt,ot,Ot){var Le=this;this._disposables=new H.b,this._disposables.add(ot.onDidShow(function(){return Le._onItem(ot.getFocusedItem())})),this._disposables.add(ot.onDidFocus(this._onItem,this)),this._disposables.add(ot.onDidHide(this.reset,this)),this._disposables.add(nt.onWillType(function(D){if(Le._active&&!ot.isFrozen()){var j=D.charCodeAt(D.length-1);Le._active.acceptCharacters.has(j)&&nt.getOption(0)&&Ot(Le._active.item)}}))}return wt.prototype._onItem=function(nt){if(!nt||!Object(re.q)(nt.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===nt.item)return;for(var ot=new Mn.b,Ot=0,Le=nt.item.completion.commitCharacters;Ot<Le.length;Ot++){var D=Le[Ot];D.length>0&&ot.add(D.charCodeAt(0))}this._active={acceptCharacters:ot,item:nt}},wt.prototype.reset=function(){this._active=void 0},wt.prototype.dispose=function(){this._disposables.dispose()},wt}(),Zn=e("MNsG"),bn=e("4y0V"),Wn=function(){var wt=function(ot,Ot){return wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Le,D){Le.__proto__=D}||function(Le,D){for(var j in D)D.hasOwnProperty(j)&&(Le[j]=D[j])},wt(ot,Ot)};return function(nt,ot){wt(nt,ot);function Ot(){this.constructor=nt}nt.prototype=ot===null?Object.create(ot):(Ot.prototype=ot.prototype,new Ot)}}(),Gn=function(){function wt(nt){var ot=this;this._controller=nt,this._disposables=new H.b,this._decorations=[],this._disposables.add(nt.model.onDidSuggest(function(Ot){if(!Ot.shy){var Le=ot._controller.widget.getValue(),D=Le.getFocusedItem();D&&ot._highlight(D.item),ot._widgetListener||(ot._widgetListener=Le.onDidFocus(function(j){return ot._highlight(j.item)}))}})),this._disposables.add(nt.model.onDidCancel(function(){ot._reset()}))}return wt.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(H.f)(this._widgetListener),Object(H.f)(this._shiftKeyListener)},wt.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},wt.prototype._highlight=function(nt){var ot=this,Ot;this._currentItem=nt;var Le=this._controller.editor.getOption(89),D=[];if(Le.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=Bn.event(function(){return ot._highlight(ot._currentItem)}));var j=this._controller.getOverwriteInfo(nt,Bn.isPressed),Z=this._controller.editor.getPosition();if(Le.insertMode==="insert"&&j.overwriteAfter>0)D=[{range:new U.a(Z.lineNumber,Z.column,Z.lineNumber,Z.column+j.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if(Le.insertMode==="replace"&&j.overwriteAfter===0){var xe=(Ot=this._controller.editor.getModel())===null||Ot===void 0?void 0:Ot.getWordAtPosition(Z);xe&&xe.endColumn>Z.column&&(D=[{range:new U.a(Z.lineNumber,Z.column,Z.lineNumber,xe.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,D)},wt}(),Bn=new(function(wt){Wn(nt,wt);function nt(){var ot=wt.call(this)||this;return ot._subscriptions=new H.b,ot._isPressed=!1,ot._subscriptions.add(Object(bn.a)(document.body,"keydown")(function(Ot){return ot.isPressed=Ot.shiftKey})),ot._subscriptions.add(Object(bn.a)(document.body,"keyup")(function(){return ot.isPressed=!1})),ot._subscriptions.add(Object(bn.a)(document.body,"mouseleave")(function(){return ot.isPressed=!1})),ot._subscriptions.add(Object(bn.a)(document.body,"blur")(function(){return ot.isPressed=!1})),ot}return Object.defineProperty(nt.prototype,"isPressed",{get:function(){return this._isPressed},set:function(Ot){this._isPressed!==Ot&&(this._isPressed=Ot,this.fire(Ot))},enumerable:!0,configurable:!0}),nt.prototype.dispose=function(){this._subscriptions.dispose(),wt.prototype.dispose.call(this)},nt}(He.a)),Dn=function(){var wt=function(ot,Ot){return wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Le,D){Le.__proto__=D}||function(Le,D){for(var j in D)D.hasOwnProperty(j)&&(Le[j]=D[j])},wt(ot,Ot)};return function(nt,ot){wt(nt,ot);function Ot(){this.constructor=nt}nt.prototype=ot===null?Object.create(ot):(Ot.prototype=ot.prototype,new Ot)}}(),Qn=function(){return Qn=Object.assign||function(wt){for(var nt,ot=1,Ot=arguments.length;ot<Ot;ot++){nt=arguments[ot];for(var Le in nt)Object.prototype.hasOwnProperty.call(nt,Le)&&(wt[Le]=nt[Le])}return wt},Qn.apply(this,arguments)},fo=function(wt,nt,ot,Ot){var Le=arguments.length,D=Le<3?nt:Ot===null?Ot=Object.getOwnPropertyDescriptor(nt,ot):Ot,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(wt,nt,ot,Ot);else for(var Z=wt.length-1;Z>=0;Z--)(j=wt[Z])&&(D=(Le<3?j(D):Le>3?j(nt,ot,D):j(nt,ot))||D);return Le>3&&D&&Object.defineProperty(nt,ot,D),D},Vn=function(wt,nt){return function(ot,Ot){nt(ot,Ot,wt)}},po=function(){for(var wt=0,nt=0,ot=arguments.length;nt<ot;nt++)wt+=arguments[nt].length;for(var Ot=Array(wt),Le=0,nt=0;nt<ot;nt++)for(var D=arguments[nt],j=0,Z=D.length;j<Z;j++,Le++)Ot[Le]=D[j];return Ot},yo=!1,lo=function(){function wt(nt,ot){this._model=nt,this._position=ot;var Ot=nt.getLineMaxColumn(ot.lineNumber);if(Ot!==ot.column){var Le=nt.getOffsetAt(ot),D=nt.getPositionAt(Le+1);this._marker=nt.deltaDecorations([],[{range:U.a.fromPositions(ot,D),options:{stickiness:1}}])}}return wt.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},wt.prototype.delta=function(nt){if(this._model.isDisposed()||this._position.lineNumber!==nt.lineNumber)return 0;if(this._marker){var ot=this._model.getDecorationRange(this._marker[0]),Ot=this._model.getOffsetAt(ot.getStartPosition());return Ot-this._model.getOffsetAt(nt)}else return this._model.getLineMaxColumn(nt.lineNumber)-nt.column},wt}(),io=function(){function wt(nt,ot,Ot,Le,D,j){var Z=this;this._memoryService=Ot,this._commandService=Le,this._contextKeyService=D,this._instantiationService=j,this._lineSuffix=new H.d,this._toDispose=new H.b,this.editor=nt,this.model=new Se(this.editor,ot),this.widget=this._toDispose.add(new S.b(function(){var Ie=Z._instantiationService.createInstance(lt,Z.editor);Z._toDispose.add(Ie),Z._toDispose.add(Ie.onDidSelect(function(At){return Z._insertSuggestion(At,0)},Z));var dt=new xn(Z.editor,Ie,function(At){return Z._insertSuggestion(At,2)});Z._toDispose.add(dt),Z._toDispose.add(Z.model.onDidSuggest(function(At){At.completionModel.items.length===0&&dt.reset()}));var ht=be.b.MakesTextEdit.bindTo(Z._contextKeyService);return Z._toDispose.add(Ie.onDidFocus(function(At){var Bt=At.item,Ut=Z.editor.getPosition(),Ht=Bt.editStart.column,nn=Ut.column,Zt=!0;if(Z.editor.getOption(1)==="smart"&&Z.model.state===2&&!Bt.completion.command&&!Bt.completion.additionalTextEdits&&!(Bt.completion.insertTextRules&4)&&nn-Ht===Bt.completion.insertText.length){var fn=Z.editor.getModel().getValueInRange({startLineNumber:Ut.lineNumber,startColumn:Ht,endLineNumber:Ut.lineNumber,endColumn:nn});Zt=fn!==Bt.completion.insertText}ht.set(Zt)})),Z._toDispose.add(Object(H.h)(function(){return ht.reset()})),Z._toDispose.add(Ie.onDetailsKeyDown(function(At){if(At.toKeybinding().equals(new N.e(!0,!1,!1,!1,33))||Zn.e&&At.toKeybinding().equals(new N.e(!1,!1,!1,!0,33))){At.stopPropagation();return}At.toKeybinding().isModifierKey()||Z.editor.focus()})),Ie})),this._alternatives=this._toDispose.add(new S.b(function(){return Z._toDispose.add(new ke(Z.editor,Z._contextKeyService))})),this._toDispose.add(j.createInstance(gn,nt)),this._toDispose.add(this.model.onDidTrigger(function(Ie){Z.widget.getValue().showTriggered(Ie.auto,Ie.shy?250:50),Z._lineSuffix.value=new lo(Z.editor.getModel(),Ie.position)})),this._toDispose.add(this.model.onDidSuggest(function(Ie){if(!Ie.shy){var dt=Z._memoryService.select(Z.editor.getModel(),Z.editor.getPosition(),Ie.completionModel.items);Z.widget.getValue().showSuggestions(Ie.completionModel,dt,Ie.isFrozen,Ie.auto)}})),this._toDispose.add(this.model.onDidCancel(function(Ie){Ie.retrigger||Z.widget.getValue().hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(function(){yo||(Z.model.cancel(),Z.model.clear())}));var xe=be.b.AcceptSuggestionsOnEnter.bindTo(D),Ae=function(){var dt=Z.editor.getOption(1);xe.set(dt==="on"||dt==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(function(){return Ae()})),Ae(),this._toDispose.add(new Gn(this))}return wt.get=function(nt){return nt.getContribution(wt.ID)},wt.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()},wt.prototype._insertSuggestion=function(nt,ot){var Ot,Le=this;if(!nt||!nt.item){this._alternatives.getValue().reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;var D=this.editor.getModel(),j=D.getAlternativeVersionId(),Z=nt.item,xe=Z.completion;ot&1||this.editor.pushUndoStop();var Ae=this.getOverwriteInfo(Z,Boolean(ot&8));this._memoryService.memorize(D,this.editor.getPosition(),Z),Array.isArray(xe.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",xe.additionalTextEdits.map(function(dt){return M.a.replace(U.a.lift(dt.range),dt.text)}));var Ie=xe.insertText;xe.insertTextRules&4||(Ie=y.c.escape(Ie)),c.SnippetController2.get(this.editor).insert(Ie,{overwriteBefore:Ae.overwriteBefore,overwriteAfter:Ae.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(xe.insertTextRules&1)}),ot&2||this.editor.pushUndoStop(),xe.command?xe.command.id===go.id?this.model.trigger({auto:!0,shy:!1},!0):((Ot=this._commandService).executeCommand.apply(Ot,po([xe.command.id],xe.command.arguments?po(xe.command.arguments):[])).catch(J.e).finally(function(){return Le.model.clear()}),this.model.cancel()):(this.model.cancel(),this.model.clear()),ot&4&&this._alternatives.getValue().set(nt,function(dt){for(;D.canUndo();){j!==D.getAlternativeVersionId()&&D.undo(),Le._insertSuggestion(dt,1|2|(ot&8?8:0));break}}),this._alertCompletionItem(nt.item)},wt.prototype.getOverwriteInfo=function(nt,ot){Object(En.a)(this.editor.hasModel());var Ot=this.editor.getOption(89).insertMode==="replace";ot&&(Ot=!Ot);var Le=nt.position.column-nt.editStart.column,D=(Ot?nt.editReplaceEnd.column:nt.editInsertEnd.column)-nt.position.column,j=this.editor.getPosition().column-nt.position.column,Z=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:Le+j,overwriteAfter:D+Z}},wt.prototype._alertCompletionItem=function(nt){var ot=nt.completion,Ot=typeof ot.label=="string"?ot.label:ot.label.name;if(Object(re.q)(ot.additionalTextEdits)){var Le=ie.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",Ot,ot.additionalTextEdits.length);Object(T.a)(Le)}},wt.prototype.triggerSuggest=function(nt){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,nt),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())},wt.prototype.triggerSuggestAndAcceptBest=function(nt){var ot=this;if(!this.editor.hasModel())return;var Ot=this.editor.getPosition(),Le=function(){Ot.equals(ot.editor.getPosition())&&ot._commandService.executeCommand(nt.fallback)},D=function(Z){if(Z.completion.insertTextRules&4||Z.completion.additionalTextEdits)return!0;var xe=ot.editor.getPosition(),Ae=Z.editStart.column,Ie=xe.column;if(Ie-Ae!==Z.completion.insertText.length)return!0;var dt=ot.editor.getModel().getValueInRange({startLineNumber:xe.lineNumber,startColumn:Ae,endLineNumber:xe.lineNumber,endColumn:Ie});return dt!==Z.completion.insertText};He.b.once(this.model.onDidTrigger)(function(j){var Z=[];He.b.any(ot.model.onDidTrigger,ot.model.onDidCancel)(function(){Object(H.f)(Z),Le()},void 0,Z),ot.model.onDidSuggest(function(xe){var Ae=xe.completionModel;if(Object(H.f)(Z),Ae.items.length===0){Le();return}var Ie=ot._memoryService.select(ot.editor.getModel(),ot.editor.getPosition(),Ae.items),dt=Ae.items[Ie];if(!D(dt)){Le();return}ot.editor.pushUndoStop(),ot._insertSuggestion({index:Ie,item:dt,model:Ae},4|1|2)},void 0,Z)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(Ot.lineNumber,0),this.editor.focus()},wt.prototype.acceptSelectedSuggestion=function(nt,ot){var Ot=this.widget.getValue().getFocusedItem(),Le=0;nt&&(Le|=4),ot&&(Le|=8),this._insertSuggestion(Ot,Le)},wt.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},wt.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},wt.prototype.cancelSuggestWidget=function(){this.model.cancel(),this.model.clear(),this.widget.getValue().hideWidget()},wt.prototype.selectNextSuggestion=function(){this.widget.getValue().selectNext()},wt.prototype.selectNextPageSuggestion=function(){this.widget.getValue().selectNextPage()},wt.prototype.selectLastSuggestion=function(){this.widget.getValue().selectLast()},wt.prototype.selectPrevSuggestion=function(){this.widget.getValue().selectPrevious()},wt.prototype.selectPrevPageSuggestion=function(){this.widget.getValue().selectPreviousPage()},wt.prototype.selectFirstSuggestion=function(){this.widget.getValue().selectFirst()},wt.prototype.toggleSuggestionDetails=function(){this.widget.getValue().toggleDetails()},wt.prototype.toggleExplainMode=function(){this.widget.getValue().toggleExplainMode()},wt.prototype.toggleSuggestionFocus=function(){this.widget.getValue().toggleDetailsFocus()},wt.ID="editor.contrib.suggestController",wt=fo([Vn(1,un.a),Vn(2,$),Vn(3,W.b),Vn(4,B.c),Vn(5,g.a)],wt),wt}(),go=function(wt){Dn(nt,wt);function nt(){return wt.call(this,{id:nt.id,label:ie.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:B.a.and(A.a.writable,A.a.hasCompletionItemProvider),kbOpts:{kbExpr:A.a.textInputFocus,primary:2048|10,mac:{primary:256|10,secondary:[512|9]},weight:100}})||this}return nt.prototype.run=function(ot,Ot){var Le=io.get(Ot);if(!Le)return;Le.triggerSuggest()},nt.id="editor.action.triggerSuggest",nt}(z.b);Object(z.h)(io.ID,io),Object(z.f)(go);var zn=100+90,Un=z.c.bindToContribution(io.get);Object(z.g)(new Un({id:"acceptSelectedSuggestion",precondition:be.b.Visible,handler:function(nt){nt.acceptSelectedSuggestion(!0,!1)}})),le.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:B.a.and(be.b.Visible,A.a.textInputFocus),primary:2,weight:zn}),le.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:B.a.and(be.b.Visible,A.a.textInputFocus,be.b.AcceptSuggestionsOnEnter,be.b.MakesTextEdit),primary:3,weight:zn}),Object(z.g)(new Un({id:"acceptAlternativeSelectedSuggestion",precondition:B.a.and(be.b.Visible,A.a.textInputFocus),kbOpts:{weight:zn,kbExpr:A.a.textInputFocus,primary:1024|3,secondary:[1024|2]},handler:function(nt){nt.acceptSelectedSuggestion(!1,!0)}})),W.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(z.g)(new Un({id:"hideSuggestWidget",precondition:be.b.Visible,handler:function(nt){return nt.cancelSuggestWidget()},kbOpts:{weight:zn,kbExpr:A.a.textInputFocus,primary:9,secondary:[1024|9]}})),Object(z.g)(new Un({id:"selectNextSuggestion",precondition:B.a.and(be.b.Visible,be.b.MultipleSuggestions),handler:function(nt){return nt.selectNextSuggestion()},kbOpts:{weight:zn,kbExpr:A.a.textInputFocus,primary:18,secondary:[2048|18],mac:{primary:18,secondary:[2048|18,256|44]}}})),Object(z.g)(new Un({id:"selectNextPageSuggestion",precondition:B.a.and(be.b.Visible,be.b.MultipleSuggestions),handler:function(nt){return nt.selectNextPageSuggestion()},kbOpts:{weight:zn,kbExpr:A.a.textInputFocus,primary:12,secondary:[2048|12]}})),Object(z.g)(new Un({id:"selectLastSuggestion",precondition:B.a.and(be.b.Visible,be.b.MultipleSuggestions),handler:function(nt){return nt.selectLastSuggestion()}})),Object(z.g)(new Un({id:"selectPrevSuggestion",precondition:B.a.and(be.b.Visible,be.b.MultipleSuggestions),handler:function(nt){return nt.selectPrevSuggestion()},kbOpts:{weight:zn,kbExpr:A.a.textInputFocus,primary:16,secondary:[2048|16],mac:{primary:16,secondary:[2048|16,256|46]}}})),Object(z.g)(new Un({id:"selectPrevPageSuggestion",precondition:B.a.and(be.b.Visible,be.b.MultipleSuggestions),handler:function(nt){return nt.selectPrevPageSuggestion()},kbOpts:{weight:zn,kbExpr:A.a.textInputFocus,primary:11,secondary:[2048|11]}})),Object(z.g)(new Un({id:"selectFirstSuggestion",precondition:B.a.and(be.b.Visible,be.b.MultipleSuggestions),handler:function(nt){return nt.selectFirstSuggestion()}})),Object(z.g)(new Un({id:"toggleSuggestionDetails",precondition:be.b.Visible,handler:function(nt){return nt.toggleSuggestionDetails()},kbOpts:{weight:zn,kbExpr:A.a.textInputFocus,primary:2048|10,mac:{primary:256|10}}})),Object(z.g)(new Un({id:"toggleExplainMode",precondition:be.b.Visible,handler:function(nt){return nt.toggleExplainMode()},kbOpts:{weight:100,primary:2048|85}})),Object(z.g)(new Un({id:"toggleSuggestionFocus",precondition:be.b.Visible,handler:function(nt){return nt.toggleSuggestionFocus()},kbOpts:{weight:zn,kbExpr:A.a.textInputFocus,primary:2048|512|10,mac:{primary:256|512|10}}})),Object(z.g)(new Un({id:"insertBestCompletion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),gn.AtEnd,be.b.Visible.toNegated(),ke.OtherSuggestions.toNegated(),c.SnippetController2.InSnippetMode.toNegated()),handler:function(nt,ot){nt.triggerSuggestAndAcceptBest(Object(En.i)(ot)?Qn({fallback:"tab"},ot):{fallback:"tab"})},kbOpts:{weight:zn,primary:2}})),Object(z.g)(new Un({id:"insertNextSuggestion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),ke.OtherSuggestions,be.b.Visible.toNegated(),c.SnippetController2.InSnippetMode.toNegated()),handler:function(nt){return nt.acceptNextSuggestion()},kbOpts:{weight:zn,kbExpr:A.a.textInputFocus,primary:2}})),Object(z.g)(new Un({id:"insertPrevSuggestion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),ke.OtherSuggestions,be.b.Visible.toNegated(),c.SnippetController2.InSnippetMode.toNegated()),handler:function(nt){return nt.acceptPrevSuggestion()},kbOpts:{weight:zn,kbExpr:A.a.textInputFocus,primary:1024|2}}))},epnl:function(_t,P,e){},eq1K:function(_t,P,e){},erNZ:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("N0LK"),re;typeof TextDecoder!="undefined"?re=function(z){return new J(z)}:re=function(z){return new N};var J=function(){function H(z){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=z|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return H.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},H.prototype.build=function(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},H.prototype._buildBuffer=function(){if(this._bufferLength===0)return"";var z=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(z)},H.prototype._flushBuffer=function(){var z=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[z]:this._completedStrings[this._completedStrings.length]=z},H.prototype.write1=function(z){var M=this._capacity-this._bufferLength;M<=1&&((M===0||T.z(z))&&this._flushBuffer()),this._buffer[this._bufferLength++]=z},H.prototype.appendASCII=function(z){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=z},H.prototype.appendASCIIString=function(z){var M=z.length;if(this._bufferLength+M>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=z;return}for(var U=0;U<M;U++)this._buffer[this._bufferLength++]=z.charCodeAt(U)},H}(),N=function(){function H(){this._pieces=[],this._piecesLen=0}return H.prototype.reset=function(){this._pieces=[],this._piecesLen=0},H.prototype.build=function(){return this._pieces.join("")},H.prototype.write1=function(z){this._pieces[this._piecesLen++]=String.fromCharCode(z)},H.prototype.appendASCII=function(z){this._pieces[this._piecesLen++]=String.fromCharCode(z)},H.prototype.appendASCIIString=function(z){this._pieces[this._piecesLen++]=z},H}()},fD5p:function(_t,P,e){"use strict";e.r(P),e.d(P,"ContextMenuController",function(){return u});var T=e("3/fG"),re=e("EffR"),J=e("WqXY"),N=e("pmY6"),H=e("sswD"),z=e("wQH0"),M=e("fjLI"),U=e("T8No"),A=e("Uzvx"),c=e("bexQ"),y=e("2gzu"),L=function(){var l=function(p,E){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,x){_.__proto__=x}||function(_,x){for(var F in x)x.hasOwnProperty(F)&&(_[F]=x[F])},l(p,E)};return function(d,p){l(d,p);function E(){this.constructor=d}d.prototype=p===null?Object.create(p):(E.prototype=p.prototype,new E)}}(),f=function(l){L(d,l);function d(p,E){var _=l.call(this,p,E,"contextsubmenu")||this;return _.entries=E,_}return d}(y.b),v=function(){var l=function(p,E){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,x){_.__proto__=x}||function(_,x){for(var F in x)x.hasOwnProperty(F)&&(_[F]=x[F])},l(p,E)};return function(d,p){l(d,p);function E(){this.constructor=d}d.prototype=p===null?Object.create(p):(E.prototype=p.prototype,new E)}}(),S=function(l,d,p,E){var _=arguments.length,x=_<3?d:E===null?E=Object.getOwnPropertyDescriptor(d,p):E,F;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(l,d,p,E);else for(var R=l.length-1;R>=0;R--)(F=l[R])&&(x=(_<3?F(x):_>3?F(d,p,x):F(d,p))||x);return _>3&&x&&Object.defineProperty(d,p,x),x},g=function(l,d){return function(p,E){d(p,E,l)}},u=function(){function l(d,p,E,_,x,F){var R=this;this._contextMenuService=p,this._contextViewService=E,this._contextKeyService=_,this._keybindingService=x,this._menuService=F,this._toDispose=new N.b,this._contextMenuIsBeingShownCount=0,this._editor=d,this._toDispose.add(this._editor.onContextMenu(function($){return R._onContextMenu($)})),this._toDispose.add(this._editor.onMouseWheel(function($){R._contextMenuIsBeingShownCount>0&&R._contextViewService.hideContextView()})),this._toDispose.add(this._editor.onKeyDown(function($){$.keyCode===58&&($.preventDefault(),$.stopPropagation(),R.showContextMenu())}))}return l.get=function(d){return d.getContribution(l.ID)},l.prototype._onContextMenu=function(d){if(!this._editor.hasModel())return;if(!this._editor.getOption(14)){this._editor.focus(),d.target.position&&!this._editor.getSelection().containsPosition(d.target.position)&&this._editor.setPosition(d.target.position);return}if(d.target.type===12)return;if(d.event.preventDefault(),d.target.type!==6&&d.target.type!==7&&d.target.type!==1)return;if(this._editor.focus(),d.target.position){for(var p=!1,E=0,_=this._editor.getSelections();E<_.length;E++){var x=_[E];if(x.containsPosition(d.target.position)){p=!0;break}}p||this._editor.setPosition(d.target.position)}var F=null;d.target.type!==1&&(F={x:d.event.posx-1,width:2,y:d.event.posy-1,height:2}),this.showContextMenu(F)},l.prototype.showContextMenu=function(d){if(!this._editor.getOption(14))return;if(!this._editor.hasModel())return;if(!this._contextMenuService){this._editor.focus();return}var p=this._getMenuActions(this._editor.getModel(),7);p.length>0&&this._doShowContextMenu(p,d)},l.prototype._getMenuActions=function(d,p){var E=[],_=this._menuService.createMenu(p,this._contextKeyService),x=_.getActions({arg:d.uri});_.dispose();for(var F=0,R=x;F<R.length;F++){for(var $=R[F],ie=$[1],W=0,B=0,le=ie;B<le.length;B++){var be=le[B];if(be instanceof M.d){var De=this._getMenuActions(d,be.item.submenu);De.length>0&&(E.push(new f(be.label,De)),W++)}else E.push(be),W++}W&&E.push(new J.d)}return E.length&&E.pop(),E},l.prototype._doShowContextMenu=function(d,p){var E=this;if(p===void 0&&(p=null),!this._editor.hasModel())return;var _=this._editor.getOption(44);if(this._editor.updateOptions({hover:{enabled:!1}}),!p){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var x=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),F=re.C(this._editor.getDomNode()),R=F.left+x.left,$=F.top+x.top+x.height;p={x:R,y:$}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return p},getActions:function(){return d},getActionViewItem:function(W){var B=E._keybindingFor(W);if(B)return new J.b(W,W,{label:!0,keybinding:B.getLabel(),isMenu:!0});var le=W;return typeof le.getActionViewItem=="function"?le.getActionViewItem():new J.b(W,W,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(W){return E._keybindingFor(W)},onHide:function(W){E._contextMenuIsBeingShownCount--,E._editor.focus(),E._editor.updateOptions({hover:_})}})},l.prototype._keybindingFor=function(d){return this._keybindingService.lookupKeybinding(d.id)},l.prototype.dispose=function(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()},l.ID="editor.contrib.contextmenu",l=S([g(1,A.a),g(2,A.b),g(3,U.c),g(4,c.a),g(5,M.a)],l),l}(),s=function(l){v(d,l);function d(){return l.call(this,{id:"editor.action.showContextMenu",label:T.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:1024|68,weight:100}})||this}return d.prototype.run=function(p,E){var _=u.get(E);_.showContextMenu()},d}(H.b);Object(H.h)(u.ID,u),Object(H.f)(s)},feEw:function(_t,P,e){"use strict";e.d(P,"a",function(){return x}),e.d(P,"b",function(){return ie});var T=e("qj0h"),re=e("pmY6"),J=e("pg8w"),N=e("EffR"),H=e("MI8n"),z=e("4y0V"),M=e("GJhM"),U=e("nuFA");function A(W,B){for(var le=[],be=0,De=B;be<De.length;be++){var Te=De[be];if(W.start>=Te.range.end)continue;if(W.end<Te.range.start)break;var ke=U.a.intersect(W,Te.range);if(U.a.isEmpty(ke))continue;le.push({range:ke,size:Te.size})}return le}function c(W,B){var le=W.start,be=W.end;return{start:le+B,end:be+B}}function y(W){for(var B=[],le=null,be=0,De=W;be<De.length;be++){var Te=De[be],ke=Te.range.start,He=Te.range.end,je=Te.size;if(le&&je===le.size){le.range.end=He;continue}le={range:{start:ke,end:He},size:je},B.push(le)}return B}function L(){for(var W=[],B=0;B<arguments.length;B++)W[B]=arguments[B];return y(W.reduce(function(le,be){return le.concat(be)},[]))}var f=function(){function W(){this.groups=[],this._size=0}return W.prototype.splice=function(B,le,be){be===void 0&&(be=[]);var De=be.length-le,Te=A({start:0,end:B},this.groups),ke=A({start:B+le,end:Number.POSITIVE_INFINITY},this.groups).map(function(je){return{range:c(je.range,De),size:je.size}}),He=be.map(function(je,oe){return{range:{start:B+oe,end:B+oe+1},size:je.size}});this.groups=L(Te,He,ke),this._size=this.groups.reduce(function(je,oe){return je+oe.size*(oe.range.end-oe.range.start)},0)},Object.defineProperty(W.prototype,"count",{get:function(){var le=this.groups.length;return le?this.groups[le-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),W.prototype.indexAt=function(B){if(B<0)return-1;for(var le=0,be=0,De=0,Te=this.groups;De<Te.length;De++){var ke=Te[De],He=ke.range.end-ke.range.start,je=be+He*ke.size;if(B<je)return le+Math.floor((B-be)/ke.size);le+=He,be=je}return le},W.prototype.indexAfter=function(B){return Math.min(this.indexAt(B)+1,this.count)},W.prototype.positionAt=function(B){if(B<0)return-1;for(var le=0,be=0,De=0,Te=this.groups;De<Te.length;De++){var ke=Te[De],He=ke.range.end-ke.range.start,je=be+He;if(B<je)return le+(B-be)*ke.size;le+=He*ke.size,be=je}return-1},W}();function v(W){try{W.parentElement&&W.parentElement.removeChild(W)}catch(B){}}var S=function(){function W(B){this.renderers=B,this.cache=new Map}return W.prototype.alloc=function(B){var le=this.getTemplateCache(B).pop();if(!le){var be=Object(N.a)(".monaco-list-row"),De=this.getRenderer(B),Te=De.renderTemplate(be);le={domNode:be,templateId:B,templateData:Te}}return le},W.prototype.release=function(B){if(!B)return;this.releaseRow(B)},W.prototype.releaseRow=function(B){var le=B.domNode,be=B.templateId;le&&(Object(N.P)(le,"scrolling"),v(le));var De=this.getTemplateCache(be);De.push(B)},W.prototype.getTemplateCache=function(B){var le=this.cache.get(B);return le||(le=[],this.cache.set(B,le)),le},W.prototype.dispose=function(){var B=this;this.cache.forEach(function(le,be){for(var De=0,Te=le;De<Te.length;De++){var ke=Te[De],He=B.getRenderer(be);He.disposeTemplate(ke.templateData),ke.domNode=null,ke.templateData=null}}),this.cache.clear()},W.prototype.getRenderer=function(B){var le=this.renderers.get(B);if(!le)throw new Error("No renderer found for "+B);return le},W}(),g=e("ZCR3"),u=e("6OMU"),s=e("ZQ78"),l=e("X+cX"),d=e("D3Dy"),p=function(W,B,le,be){var De=arguments.length,Te=De<3?B:be===null?be=Object.getOwnPropertyDescriptor(B,le):be,ke;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Te=Reflect.decorate(W,B,le,be);else for(var He=W.length-1;He>=0;He--)(ke=W[He])&&(Te=(De<3?ke(Te):De>3?ke(B,le,Te):ke(B,le))||Te);return De>3&&Te&&Object.defineProperty(B,le,Te),Te},E=function(){for(var W=0,B=0,le=arguments.length;B<le;B++)W+=arguments[B].length;for(var be=Array(W),De=0,B=0;B<le;B++)for(var Te=arguments[B],ke=0,He=Te.length;ke<He;ke++,De++)be[De]=Te[ke];return be},_={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(B){return[B]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},x=function(){function W(B){this.elements=B}return W.prototype.update=function(){},W.prototype.getData=function(){return this.elements},W}(),F=function(){function W(B){this.elements=B}return W.prototype.update=function(){},W.prototype.getData=function(){return this.elements},W}(),R=function(){function W(){this.types=[],this.files=[]}return W.prototype.update=function(B){var le;if(B.types&&(le=this.types).splice.apply(le,E([0,this.types.length],B.types)),B.files){this.files.splice(0,this.files.length);for(var be=0;be<B.files.length;be++){var De=B.files.item(be);De&&(De.size||De.type)&&this.files.push(De)}}},W.prototype.getData=function(){return{types:this.types,files:this.files}},W}();function $(W,B){return Array.isArray(W)&&Array.isArray(B)?Object(u.g)(W,B):W===B}var ie=function(){function W(B,le,be,De){var Te=this;if(De===void 0&&(De=_),this.virtualDelegate=le,this.domId="list_id_"+ ++W.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new l.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=re.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=re.a.None,this.onDragLeaveTimeout=re.a.None,this.disposables=new re.b,this._onDidChangeContentHeight=new H.a,De.horizontalScrolling&&De.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new f;for(var ke=0,He=be;ke<He.length;ke++){var je=He[ke];this.renderers.set(je.templateId,je)}this.cache=this.disposables.add(new S(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",N.f(this.domNode,this.domId),this.domNode.tabIndex=0,N.Y(this.domNode,"mouse-support",typeof De.mouseSupport=="boolean"?De.mouseSupport:!0),this.horizontalScrolling=Object(T.f)(De,function(oe){return oe.horizontalScrolling},_.horizontalScrolling),N.Y(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight=typeof De.additionalScrollHeight=="undefined"?0:De.additionalScrollHeight,this.ariaProvider=De.ariaProvider||{getSetSize:function(ee,ae,q){return q},getPosInSet:function(ee,ae){return ae+1}},this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.disposables.add(J.b.addTarget(this.rowsContainer)),this.scrollableElement=this.disposables.add(new M.b(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(T.f)(De,function(oe){return oe.verticalScrollMode},_.verticalScrollMode),useShadows:Object(T.f)(De,function(oe){return oe.useShadows},_.useShadows)})),this.domNode.appendChild(this.scrollableElement.getDomNode()),B.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(z.a)(this.rowsContainer,J.a.Change)(this.onTouchChange,this,this.disposables),Object(z.a)(this.scrollableElement.getDomNode(),"scroll")(function(oe){return oe.target.scrollTop=0},null,this.disposables),H.b.map(Object(z.a)(this.domNode,"dragover"),function(oe){return Te.toDragEvent(oe)})(this.onDragOver,this,this.disposables),H.b.map(Object(z.a)(this.domNode,"drop"),function(oe){return Te.toDragEvent(oe)})(this.onDrop,this,this.disposables),Object(z.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(z.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(T.f)(De,function(oe){return oe.setRowLineHeight},_.setRowLineHeight),this.supportDynamicHeights=Object(T.f)(De,function(oe){return oe.supportDynamicHeights},_.supportDynamicHeights),this.dnd=Object(T.f)(De,function(oe){return oe.dnd},_.dnd),this.layout()}return Object.defineProperty(W.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),W.prototype.splice=function(B,le,be){if(be===void 0&&(be=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(B,le,be)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},W.prototype._splice=function(B,le,be){var De,Te=this;be===void 0&&(be=[]);for(var ke=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),He={start:B,end:B+le},je=U.a.intersect(ke,He),oe=je.start;oe<je.end;oe++)this.removeItemFromDOM(oe);var ee={start:B+le,end:this.items.length},ae=U.a.intersect(ee,ke),q=U.a.relativeComplement(ee,ke),ce=be.map(function(Ce){return{id:String(Te.itemId++),element:Ce,templateId:Te.virtualDelegate.getTemplateId(Ce),size:Te.virtualDelegate.getHeight(Ce),width:void 0,hasDynamicHeight:!!Te.virtualDelegate.hasDynamicHeight&&Te.virtualDelegate.hasDynamicHeight(Ce),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:re.a.None}}),X;B===0&&le>=this.items.length?(this.rangeMap=new f,this.rangeMap.splice(0,0,ce),this.items=ce,X=[]):(this.rangeMap.splice(B,le,ce),X=(De=this.items).splice.apply(De,E([B,le],ce)));for(var he=be.length-le,Pe=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Xe=c(ae,he),pe=U.a.intersect(Pe,Xe),oe=pe.start;oe<pe.end;oe++)this.updateItemInDOM(this.items[oe],oe);for(var me=U.a.relativeComplement(Xe,Pe),Se=0,Re=me;Se<Re.length;Se++)for(var Ee=Re[Se],oe=Ee.start;oe<Ee.end;oe++)this.removeItemFromDOM(oe);for(var ve=q.map(function(Ce){return c(Ce,he)}),Q={start:B,end:B+be.length},b=E([Q],ve).map(function(Ce){return U.a.intersect(Pe,Ce)}),k=this.getNextToLastElement(b),se=0,ne=b;se<ne.length;se++)for(var Ee=ne[se],oe=Ee.start;oe<Ee.end;oe++)this.insertItemInDOM(oe,k);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),X.map(function(Ce){return Ce.element})},W.prototype.eventuallyUpdateScrollDimensions=function(){var B=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=N.W(function(){B.scrollableElement.setScrollDimensions({scrollHeight:B.scrollHeight}),B.updateScrollWidth(),B.scrollableElementUpdateDisposable=null}))},W.prototype.eventuallyUpdateScrollWidth=function(){var B=this;if(!this.horizontalScrolling)return;this.scrollableElementWidthDelayer.trigger(function(){return B.updateScrollWidth()})},W.prototype.updateScrollWidth=function(){if(!this.horizontalScrolling)return;this.items.length===0&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var B=0,le=0,be=this.items;le<be.length;le++){var De=be[le];typeof De.width!="undefined"&&(B=Math.max(B,De.width))}this.scrollWidth=B,this.scrollableElement.setScrollDimensions({scrollWidth:B+10})},W.prototype.rerender=function(){if(!this.supportDynamicHeights)return;for(var B=0,le=this.items;B<le.length;B++){var be=le[B];be.lastDynamicHeightWidth=void 0}this._rerender(this.lastRenderTop,this.lastRenderHeight)},Object.defineProperty(W.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"renderHeight",{get:function(){var le=this.scrollableElement.getScrollDimensions();return le.height},enumerable:!0,configurable:!0}),W.prototype.element=function(B){return this.items[B].element},W.prototype.domElement=function(B){var le=this.items[B].row;return le&&le.domNode},W.prototype.elementHeight=function(B){return this.items[B].size},W.prototype.elementTop=function(B){return this.rangeMap.positionAt(B)},W.prototype.indexAt=function(B){return this.rangeMap.indexAt(B)},W.prototype.indexAfter=function(B){return this.rangeMap.indexAfter(B)},W.prototype.layout=function(B,le){var be={height:typeof B=="number"?B:N.A(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,be.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(be),typeof le!="undefined"&&(this.renderWidth=le,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof le=="number"?le:N.B(this.domNode)}))},W.prototype.render=function(B,le,be,De){for(var Te=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),ke=this.getRenderRange(B,le),He=U.a.relativeComplement(ke,Te),je=U.a.relativeComplement(Te,ke),oe=this.getNextToLastElement(He),ee=0,ae=He;ee<ae.length;ee++)for(var q=ae[ee],ce=q.start;ce<q.end;ce++)this.insertItemInDOM(ce,oe);for(var X=0,he=je;X<he.length;X++)for(var q=he[X],ce=q.start;ce<q.end;ce++)this.removeItemFromDOM(ce);this.rowsContainer.style.left="-"+be+"px",this.rowsContainer.style.top="-"+B+"px",this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(De,this.renderWidth)+"px"),this.lastRenderTop=B,this.lastRenderHeight=le},W.prototype.insertItemInDOM=function(B,le){var be=this,De=this.items[B];if(!De.row){De.row=this.cache.alloc(De.templateId);var Te=this.ariaProvider.getRole?this.ariaProvider.getRole(De.element):"treeitem";De.row.domNode.setAttribute("role",Te);var ke=this.ariaProvider.isChecked?this.ariaProvider.isChecked(De.element):void 0;typeof ke!="undefined"&&De.row.domNode.setAttribute("aria-checked",String(ke))}De.row.domNode.parentElement||(le?this.rowsContainer.insertBefore(De.row.domNode,le):this.rowsContainer.appendChild(De.row.domNode)),this.updateItemInDOM(De,B);var He=this.renderers.get(De.templateId);if(!He)throw new Error("No renderer found for template id "+De.templateId);He&&He.renderElement(De.element,B,De.row.templateData,De.size);var je=this.dnd.getDragURI(De.element);if(De.dragStartDisposable.dispose(),De.row.domNode.draggable=!!je,je){var oe=Object(z.a)(De.row.domNode,"dragstart");De.dragStartDisposable=oe(function(ee){return be.onDragStart(De.element,je,ee)})}this.horizontalScrolling&&(this.measureItemWidth(De),this.eventuallyUpdateScrollWidth())},W.prototype.measureItemWidth=function(B){if(!B.row||!B.row.domNode)return;B.row.domNode.style.width=d.h?"-moz-fit-content":"fit-content",B.width=N.B(B.row.domNode);var le=window.getComputedStyle(B.row.domNode);le.paddingLeft&&(B.width+=parseFloat(le.paddingLeft)),le.paddingRight&&(B.width+=parseFloat(le.paddingRight)),B.row.domNode.style.width=""},W.prototype.updateItemInDOM=function(B,le){B.row.domNode.style.top=this.elementTop(le)+"px",B.row.domNode.style.height=B.size+"px",this.setRowLineHeight&&(B.row.domNode.style.lineHeight=B.size+"px"),B.row.domNode.setAttribute("data-index",""+le),B.row.domNode.setAttribute("data-last-element",le===this.length-1?"true":"false"),B.row.domNode.setAttribute("aria-setsize",String(this.ariaProvider.getSetSize(B.element,le,this.length))),B.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(B.element,le))),B.row.domNode.setAttribute("id",this.getElementDomId(le)),N.Y(B.row.domNode,"drop-target",B.dropTarget)},W.prototype.removeItemFromDOM=function(B){var le=this.items[B];le.dragStartDisposable.dispose();var be=this.renderers.get(le.templateId);be&&be.disposeElement&&be.disposeElement(le.element,B,le.row.templateData,le.size),this.cache.release(le.row),le.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},W.prototype.getScrollTop=function(){var B=this.scrollableElement.getScrollPosition();return B.scrollTop},W.prototype.setScrollTop=function(B){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:B})},Object.defineProperty(W.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(le){this.setScrollTop(le)},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onMouseClick",{get:function(){var le=this;return H.b.map(Object(z.a)(this.domNode,"click"),function(be){return le.toMouseEvent(be)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onMouseDblClick",{get:function(){var le=this;return H.b.map(Object(z.a)(this.domNode,"dblclick"),function(be){return le.toMouseEvent(be)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onMouseMiddleClick",{get:function(){var le=this;return H.b.filter(H.b.map(Object(z.a)(this.domNode,"auxclick"),function(be){return le.toMouseEvent(be)}),function(be){return be.browserEvent.button===1})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onMouseDown",{get:function(){var le=this;return H.b.map(Object(z.a)(this.domNode,"mousedown"),function(be){return le.toMouseEvent(be)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onContextMenu",{get:function(){var le=this;return H.b.map(Object(z.a)(this.domNode,"contextmenu"),function(be){return le.toMouseEvent(be)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onTouchStart",{get:function(){var le=this;return H.b.map(Object(z.a)(this.domNode,"touchstart"),function(be){return le.toTouchEvent(be)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onTap",{get:function(){var le=this;return H.b.map(Object(z.a)(this.rowsContainer,J.a.Tap),function(be){return le.toGestureEvent(be)})},enumerable:!0,configurable:!0}),W.prototype.toMouseEvent=function(B){var le=this.getItemIndexFromEventTarget(B.target||null),be=typeof le=="undefined"?void 0:this.items[le],De=be&&be.element;return{browserEvent:B,index:le,element:De}},W.prototype.toTouchEvent=function(B){var le=this.getItemIndexFromEventTarget(B.target||null),be=typeof le=="undefined"?void 0:this.items[le],De=be&&be.element;return{browserEvent:B,index:le,element:De}},W.prototype.toGestureEvent=function(B){var le=this.getItemIndexFromEventTarget(B.initialTarget||null),be=typeof le=="undefined"?void 0:this.items[le],De=be&&be.element;return{browserEvent:B,index:le,element:De}},W.prototype.toDragEvent=function(B){var le=this.getItemIndexFromEventTarget(B.target||null),be=typeof le=="undefined"?void 0:this.items[le],De=be&&be.element;return{browserEvent:B,index:le,element:De}},W.prototype.onScroll=function(B){try{this.render(B.scrollTop,B.height,B.scrollLeft,B.scrollWidth),this.supportDynamicHeights&&this._rerender(B.scrollTop,B.height)}catch(le){throw console.error("Got bad scroll event:",B),le}},W.prototype.onTouchChange=function(B){B.preventDefault(),B.stopPropagation(),this.scrollTop-=B.translationY},W.prototype.onDragStart=function(B,le,be){if(!be.dataTransfer)return;var De=this.dnd.getDragElements(B);if(be.dataTransfer.effectAllowed="copyMove",be.dataTransfer.setData(s.a.RESOURCES,JSON.stringify([le])),be.dataTransfer.setDragImage){var Te=void 0;this.dnd.getDragLabel&&(Te=this.dnd.getDragLabel(De,be)),typeof Te=="undefined"&&(Te=String(De.length));var ke=N.a(".monaco-drag-image");ke.textContent=Te,document.body.appendChild(ke),be.dataTransfer.setDragImage(ke,-10,-10),setTimeout(function(){return document.body.removeChild(ke)},0)}this.currentDragData=new x(De),s.c.CurrentDragAndDropData=new F(De),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,be)},W.prototype.onDragOver=function(B){var le=this;if(B.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),s.c.CurrentDragAndDropData&&s.c.CurrentDragAndDropData.getData()==="vscode-ui")return!1;if(this.setupDragAndDropScrollTopAnimation(B.browserEvent),!B.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(s.c.CurrentDragAndDropData)this.currentDragData=s.c.CurrentDragAndDropData;else{if(!B.browserEvent.dataTransfer.types)return!1;this.currentDragData=new R}var be=this.dnd.onDragOver(this.currentDragData,B.element,B.index,B.browserEvent);if(this.canDrop=typeof be=="boolean"?be:be.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;B.browserEvent.dataTransfer.dropEffect=typeof be!="boolean"&&be.effect===0?"copy":"move";var De;if(typeof be!="boolean"&&be.feedback?De=be.feedback:typeof B.index=="undefined"?De=[-1]:De=[B.index],De=Object(u.e)(De).filter(function(oe){return oe>=-1&&oe<le.length}).sort(function(oe,ee){return oe-ee}),De=De[0]===-1?[-1]:De,$(this.currentDragFeedback,De))return!0;if(this.currentDragFeedback=De,this.currentDragFeedbackDisposable.dispose(),De[0]===-1)N.f(this.domNode,"drop-target"),N.f(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(re.h)(function(){N.P(le.domNode,"drop-target"),N.P(le.rowsContainer,"drop-target")});else{for(var Te=0,ke=De;Te<ke.length;Te++){var He=ke[Te],je=this.items[He];je.dropTarget=!0,je.row&&je.row.domNode&&N.f(je.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(re.h)(function(){for(var oe=0,ee=De;oe<ee.length;oe++){var ae=ee[oe],q=le.items[ae];q.dropTarget=!1,q.row&&q.row.domNode&&N.P(q.row.domNode,"drop-target")}})}return!0},W.prototype.onDragLeave=function(){var B=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(l.g)(function(){return B.clearDragOverFeedback()},100)},W.prototype.onDrop=function(B){if(!this.canDrop)return;var le=this.currentDragData;if(this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,s.c.CurrentDragAndDropData=void 0,!le||!B.browserEvent.dataTransfer)return;B.browserEvent.preventDefault(),le.update(B.browserEvent.dataTransfer),this.dnd.drop(le,B.element,B.index,B.browserEvent)},W.prototype.onDragEnd=function(B){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,s.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(B)},W.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=re.a.None},W.prototype.setupDragAndDropScrollTopAnimation=function(B){var le=this;if(!this.dragOverAnimationDisposable){var be=N.F(this.domNode).top;this.dragOverAnimationDisposable=N.p(this.animateDragAndDropScrollTop.bind(this,be))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(l.g)(function(){le.dragOverAnimationDisposable&&(le.dragOverAnimationDisposable.dispose(),le.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=B.pageY},W.prototype.animateDragAndDropScrollTop=function(B){if(this.dragOverMouseY===void 0)return;var le=this.dragOverMouseY-B,be=this.renderHeight-35;le<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(le-35))):le>be&&(this.scrollTop+=Math.min(14,Math.floor(.3*(le-be))))},W.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},W.prototype.getItemIndexFromEventTarget=function(B){for(var le=B;le instanceof HTMLElement&&le!==this.rowsContainer;){var be=le.getAttribute("data-index");if(be){var De=Number(be);if(!isNaN(De))return De}le=le.parentElement}return},W.prototype.getRenderRange=function(B,le){return{start:this.rangeMap.indexAt(B),end:this.rangeMap.indexAfter(B+le-1)}},W.prototype._rerender=function(B,le){var be=this.getRenderRange(B,le),De,Te;B===this.elementTop(be.start)?(De=be.start,Te=0):be.end-be.start>1&&(De=be.start+1,Te=this.elementTop(De)-B);for(var ke=0;;){for(var He=this.getRenderRange(B,le),je=!1,oe=He.start;oe<He.end;oe++){var ee=this.probeDynamicHeight(oe);ee!==0&&this.rangeMap.splice(oe,1,[this.items[oe]]),ke+=ee,je=je||ee!==0}if(!je){ke!==0&&this.eventuallyUpdateScrollDimensions();for(var ae=U.a.relativeComplement(be,He),q=0,ce=ae;q<ce.length;q++)for(var X=ce[q],oe=X.start;oe<X.end;oe++)this.items[oe].row&&this.removeItemFromDOM(oe);for(var he=U.a.relativeComplement(He,be),Pe=0,Xe=he;Pe<Xe.length;Pe++)for(var X=Xe[Pe],oe=X.start;oe<X.end;oe++){var pe=oe+1,me=pe<this.items.length?this.items[pe].row:null,Se=me?me.domNode:null;this.insertItemInDOM(oe,Se)}for(var oe=He.start;oe<He.end;oe++)this.items[oe].row&&this.updateItemInDOM(this.items[oe],oe);typeof De=="number"&&(this.scrollTop=this.elementTop(De)-Te),this._onDidChangeContentHeight.fire(this.contentHeight);return}}},W.prototype.probeDynamicHeight=function(B){var le=this.items[B];if(!le.hasDynamicHeight||le.lastDynamicHeightWidth===this.renderWidth)return 0;var be=le.size,De=this.cache.alloc(le.templateId);De.domNode.style.height="",this.rowsContainer.appendChild(De.domNode);var Te=this.renderers.get(le.templateId);return Te&&(Te.renderElement(le.element,B,De.templateData,void 0),Te.disposeElement&&Te.disposeElement(le.element,B,De.templateData,void 0)),le.size=De.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(le.element,le.size),le.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(De.domNode),this.cache.release(De),le.size-be},W.prototype.getNextToLastElement=function(B){var le=B[B.length-1];if(!le)return null;var be=this.items[le.end];return be&&be.row?be.row.domNode:null},W.prototype.getElementDomId=function(B){return this.domId+"_"+B},W.prototype.dispose=function(){if(this.items){for(var B=0,le=this.items;B<le.length;B++){var be=le[B];if(be.row){var De=this.renderers.get(be.row.templateId);De&&De.disposeTemplate(be.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(re.f)(this.disposables)},W.InstanceCount=0,p([g.a],W.prototype,"onMouseClick",null),p([g.a],W.prototype,"onMouseDblClick",null),p([g.a],W.prototype,"onMouseMiddleClick",null),p([g.a],W.prototype,"onMouseDown",null),p([g.a],W.prototype,"onContextMenu",null),p([g.a],W.prototype,"onTouchStart",null),p([g.a],W.prototype,"onTap",null),W}()},fjLI:function(_t,P,e){"use strict";e.d(P,"e",function(){return c}),e.d(P,"a",function(){return y}),e.d(P,"c",function(){return L}),e.d(P,"d",function(){return v}),e.d(P,"b",function(){return S});var T=e("8HAY"),re=e("Cg/j"),J=e("T8No"),N=e("nnTU"),H=e("MI8n"),z=function(){var g=function(s,l){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var E in p)p.hasOwnProperty(E)&&(d[E]=p[E])},g(s,l)};return function(u,s){g(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),M=function(g,u,s,l){var d=arguments.length,p=d<3?u:l===null?l=Object.getOwnPropertyDescriptor(u,s):l,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(g,u,s,l);else for(var _=g.length-1;_>=0;_--)(E=g[_])&&(p=(d<3?E(p):d>3?E(u,s,p):E(u,s))||p);return d>3&&p&&Object.defineProperty(u,s,p),p},U=function(g,u){return function(s,l){u(s,l,g)}},A=function(){for(var g=0,u=0,s=arguments.length;u<s;u++)g+=arguments[u].length;for(var l=Array(g),d=0,u=0;u<s;u++)for(var p=arguments[u],E=0,_=p.length;E<_;E++,d++)l[d]=p[E];return l};function c(g){return g.command!==void 0}var y=Object(re.c)("menuService"),L=new(function(){function g(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new H.a,this.onDidChangeMenu=this._onDidChangeMenu.event}return g.prototype.addCommand=function(u){var s=this;return this._commands.set(u.id,u),this._onDidChangeMenu.fire(0),{dispose:function(){s._commands.delete(u.id)&&s._onDidChangeMenu.fire(0)}}},g.prototype.getCommand=function(u){return this._commands.get(u)},g.prototype.getCommands=function(){var u=new Map;return this._commands.forEach(function(s,l){return u.set(l,s)}),u},g.prototype.appendMenuItem=function(u,s){var l=this,d=this._menuItems.get(u);return d?d.push(s):(d=[s],this._menuItems.set(u,d)),this._onDidChangeMenu.fire(u),{dispose:function(){var E=d.indexOf(s);E>=0&&(d.splice(E,1),l._onDidChangeMenu.fire(u))}}},g.prototype.getMenuItems=function(u){var s=(this._menuItems.get(u)||[]).slice(0);return u===0&&this._appendImplicitItems(s),s},g.prototype._appendImplicitItems=function(u){for(var s=new Set,l=u.filter(function(F){return c(F)}),d=0,p=l;d<p.length;d++){var E=p[d],_=E.command,x=E.alt;s.add(_.id),x&&s.add(x.id)}this._commands.forEach(function(F,R){s.has(R)||u.push({command:F})})},g}()),f=function(g){z(u,g);function u(s,l,d){var p=g.call(this,s,l)||this;return p._commandService=d,p}return u.prototype.run=function(){for(var s,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return(s=this._commandService).executeCommand.apply(s,A([this.id],l))},u=M([U(2,N.b)],u),u}(T.a),v=function(g){z(u,g);function u(s){var l=this;return typeof s.title=="string"?l=g.call(this,"",s.title,"submenu")||this:l=g.call(this,"",s.title.value,"submenu")||this,l.item=s,l}return u}(T.a),S=function(g){z(u,g);function u(s,l,d,p,E){var _=this;return typeof s.title=="string"?_=g.call(this,s.id,s.title,E)||this:_=g.call(this,s.id,s.title.value,E)||this,_._cssClass=void 0,_._enabled=!s.precondition||p.contextMatchesRules(s.precondition),_._checked=Boolean(s.toggled&&p.contextMatchesRules(s.toggled)),_._options=d||{},_.item=s,_.alt=l?new u(l,void 0,_._options,p,E):void 0,_}return u.prototype.dispose=function(){this.alt&&this.alt.dispose(),g.prototype.dispose.call(this)},u.prototype.run=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var d=[];return this._options.arg&&(d=A(d,[this._options.arg])),this._options.shouldForwardArgs&&(d=A(d,s)),g.prototype.run.apply(this,d)},u=M([U(3,J.c),U(4,N.b)],u),u}(f)},fpMC:function(_t,P,e){"use strict";e.d(P,"g",function(){return N}),e.d(P,"f",function(){return R}),e.d(P,"b",function(){return $}),e.d(P,"c",function(){return ie}),e.d(P,"a",function(){return q}),e.d(P,"d",function(){return ce}),e.d(P,"e",function(){return Re});var T=e("QDVR"),re=e("N0LK");function J(){for(var Q=[],b=0;b<arguments.length;b++)Q[b]=arguments[b];return function(k,se){for(var ne=0,Ce=Q.length;ne<Ce;ne++){var Oe=Q[ne](k,se);if(Oe)return Oe}return null}}var N=H.bind(void 0,!0);function H(Q,b,k){if(!k||k.length<b.length)return null;var se;return Q?se=re.O(k,b):se=k.indexOf(b)===0,se?b.length>0?[{start:0,end:b.length}]:[]:null}function z(Q,b){var k=b.toLowerCase().indexOf(Q.toLowerCase());return k===-1?null:[{start:k,end:k+Q.length}]}function M(Q,b){return U(Q.toLowerCase(),b.toLowerCase(),0,0)}function U(Q,b,k,se){if(k===Q.length)return[];if(se===b.length)return null;if(Q[k]===b[se]){var ne=null;return(ne=U(Q,b,k+1,se+1))?S({start:se,end:se+1},ne):null}return U(Q,b,k,se+1)}function A(Q){return 97<=Q&&Q<=122}function c(Q){return 65<=Q&&Q<=90}function y(Q){return 48<=Q&&Q<=57}function L(Q){return Q===32||Q===9||Q===10||Q===13}var f=new Set;"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(function(Q){return f.add(Q.charCodeAt(0))});function v(Q){return A(Q)||c(Q)||y(Q)}function S(Q,b){return b.length===0?b=[Q]:Q.end===b[0].start?b[0].start=Q.start:b.unshift(Q),b}function g(Q,b){for(var k=b;k<Q.length;k++){var se=Q.charCodeAt(k);if(c(se)||y(se)||k>0&&!v(Q.charCodeAt(k-1)))return k}return Q.length}function u(Q,b,k,se){if(k===Q.length)return[];if(se===b.length)return null;if(Q[k]!==b[se].toLowerCase())return null;var ne=null,Ce=se+1;for(ne=u(Q,b,k+1,se+1);!ne&&(Ce=g(b,Ce))<b.length;)ne=u(Q,b,k+1,Ce),Ce++;return ne===null?null:S({start:se,end:se+1},ne)}function s(Q){for(var b=0,k=0,se=0,ne=0,Ce=0,Oe=0;Oe<Q.length;Oe++)Ce=Q.charCodeAt(Oe),c(Ce)&&b++,A(Ce)&&k++,v(Ce)&&se++,y(Ce)&&ne++;var we=b/Q.length,Ve=k/Q.length,Qe=se/Q.length,it=ne/Q.length;return{upperPercent:we,lowerPercent:Ve,alphaPercent:Qe,numericPercent:it}}function l(Q){var b=Q.upperPercent,k=Q.lowerPercent;return k===0&&b>.6}function d(Q){var b=Q.upperPercent,k=Q.lowerPercent,se=Q.alphaPercent,ne=Q.numericPercent;return k>.2&&b<.8&&se>.6&&ne<.2}function p(Q){for(var b=0,k=0,se=0,ne=0,Ce=0;Ce<Q.length;Ce++)se=Q.charCodeAt(Ce),c(se)&&b++,A(se)&&k++,L(se)&&ne++;return(b===0||k===0)&&ne===0?Q.length<=30:b<=5}function E(Q,b){if(!b)return null;if(b=b.trim(),b.length===0)return null;if(!p(Q))return null;if(b.length>60)return null;var k=s(b);if(!d(k)){if(!l(k))return null;b=b.toLowerCase()}var se=null,ne=0;for(Q=Q.toLowerCase();ne<b.length&&(se=u(Q,b,0,ne))===null;)ne=g(b,ne+1);return se}var _=J(N,E,z),x=J(N,E,M),F=new T.a(1e4);function R(Q,b,k){if(k===void 0&&(k=!1),typeof Q!="string"||typeof b!="string")return null;var se=F.get(Q);se||(se=new RegExp(re.k(Q),"i"),F.set(Q,se));var ne=se.exec(b);return ne?[{start:ne.index,end:ne.index+ne[0].length}]:k?x(Q,b):_(Q,b)}function $(Q,b,k,se,ne,Ce){var Oe=ce(Q,b,0,se,ne,0,!0);if(Oe)return Oe;for(var we=0,Ve=0,Qe=Ce,it=0;it<b.length&&it<W;++it){var gt=ne.indexOf(b.charAt(it),Qe);if(gt>=0)Ve+=1,we+=Math.pow(2,gt),Qe=gt+1;else if(we!==0)break}return[Ve,we,Ce]}function ie(Q){if(typeof Q=="undefined")return[];for(var b=Q[1].toString(2),k=Q[2],se=[],ne=k;ne<W;ne++)if(b[b.length-(ne+1)]==="1"){var Ce=se[se.length-1];Ce&&Ce.end===ne?Ce.end=ne+1:se.push({start:ne,end:ne+1})}return se}var W=128;function B(){for(var Q=[],b=[0],k=1;k<=W;k++)b.push(-k);for(var k=0;k<=W;k++){var se=b.slice(0);se[0]=-k,Q.push(se)}return Q}var le=B(),be=B(),De=B(),Te=!1;function ke(Q,b,k,se,ne){function Ce(Ve,Qe,it){for(it===void 0&&(it=" ");Ve.length<Qe;)Ve=it+Ve;return Ve}for(var Oe=" | |"+se.split("").map(function(Ve){return Ce(Ve,3)}).join("|")+`
`,we=0;we<=k;we++)we===0?Oe+=" |":Oe+=b[we-1]+"|",Oe+=Q[we].slice(0,ne+1).map(function(Ve){return Ce(Ve.toString(),3)}).join("|")+`
`;return Oe}function He(Q,b,k,se){Q=Q.substr(b),k=k.substr(se),console.log(ke(le,Q,Q.length,k,k.length)),console.log(ke(De,Q,Q.length,k,k.length)),console.log(ke(be,Q,Q.length,k,k.length))}function je(Q,b){if(b<0||b>=Q.length)return!1;var k=Q.charCodeAt(b);switch(k){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 oe(Q,b){if(b<0||b>=Q.length)return!1;var k=Q.charCodeAt(b);switch(k){case 32:case 9:return!0;default:return!1}}function ee(Q,b,k){return b[Q]!==k[Q]}function ae(Q,b,k,se,ne,Ce){for(;b<k&&ne<Ce;)Q[b]===se[ne]&&(b+=1),ne+=1;return b===k}var q;(function(Q){Q.Default=Object.freeze([-100,0,0]);function b(k){return!k||k[0]===-100&&k[1]===0&&k[2]===0}Q.isDefault=b})(q||(q={}));function ce(Q,b,k,se,ne,Ce,Oe){var we=Q.length>W?W:Q.length,Ve=se.length>W?W:se.length;if(k>=we||Ce>=Ve||we-k>Ve-Ce)return;if(!ae(b,k,we,ne,Ce,Ve))return;var Qe=1,it=1,gt=k,Rt=Ce;for(Qe=1,gt=k;gt<we;Qe++,gt++)for(it=1,Rt=Ce;Rt<Ve;it++,Rt++){var Dt=X(Q,b,gt,k,se,ne,Rt);be[Qe][it]=Dt;var zt=le[Qe-1][it-1]+(Dt>1?1:Dt),cn=le[Qe-1][it]+-1,ln=le[Qe][it-1]+-1;ln>=cn?ln>zt?(le[Qe][it]=ln,De[Qe][it]=4):ln===zt?(le[Qe][it]=ln,De[Qe][it]=4|2):(le[Qe][it]=zt,De[Qe][it]=2):cn>zt?(le[Qe][it]=cn,De[Qe][it]=1):cn===zt?(le[Qe][it]=cn,De[Qe][it]=1|2):(le[Qe][it]=zt,De[Qe][it]=2)}return Te&&He(Q,k,se,Ce),he=0,Xe=-100,pe=Ce,me=Oe,Se(Qe-1,it-1,we===Ve?1:0,0,!1),he===0?void 0:[Xe,Pe,Ce]}function X(Q,b,k,se,ne,Ce,Oe){return b[k]!==Ce[Oe]?-1:Oe===k-se||ee(Oe,ne,Ce)&&(Oe===0||!ee(Oe-1,ne,Ce))?Q[k]===ne[Oe]?7:5:je(Ce,Oe)&&(Oe===0||!je(Ce,Oe-1))||(je(Ce,Oe-1)||oe(Ce,Oe-1))?5:1}var he=0,Pe=0,Xe=0,pe=0,me=!1;function Se(Q,b,k,se,ne){if(he>=10||k<-25)return;for(var Ce=0;Q>0&&b>0;){var Oe=be[Q][b],we=De[Q][b];if(we===4)b-=1,ne?k-=5:se!==0&&(k-=1),ne=!1,Ce=0;else if(we&2)if(we&4&&Se(Q,b-1,se!==0?k-1:k,se,ne),k+=Oe,Q-=1,b-=1,ne=!0,se+=Math.pow(2,b+pe),Oe===1){if(Ce+=1,Q===0&&!me)return}else k+=1+Ce*(Oe-1),Ce=0;else return}k-=b>=3?9:b*3,he+=1,k>Xe&&(Xe=k,Pe=se)}function Re(Q,b,k,se,ne,Ce,Oe){return Ee(Q,b,k,se,ne,Ce,!0,Oe)}function Ee(Q,b,k,se,ne,Ce,Oe,we){var Ve=ce(Q,b,k,se,ne,Ce,we);if(Ve&&!Oe)return Ve;if(Q.length>=3)for(var Qe=Math.min(7,Q.length-1),it=k+1;it<Qe;it++){var gt=ve(Q,it);if(gt){var Rt=ce(gt,gt.toLowerCase(),k,se,ne,Ce,we);Rt&&(Rt[0]-=3,(!Ve||Rt[0]>Ve[0])&&(Ve=Rt))}}return Ve}function ve(Q,b){if(b+1>=Q.length)return;var k=Q[b],se=Q[b+1];return k===se?void 0:Q.slice(0,b)+se+k+Q.slice(b+2)}},gCVg:function(_t,P,e){"use strict";e.d(P,"a",function(){return N});var T=e("cGHE"),re=e("aokT"),J=function(){var H=function(M,U){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,c){A.__proto__=c}||function(A,c){for(var y in c)c.hasOwnProperty(y)&&(A[y]=c[y])},H(M,U)};return function(z,M){H(z,M);function U(){this.constructor=z}z.prototype=M===null?Object.create(M):(U.prototype=M.prototype,new U)}}(),N=function(H){J(z,H);function z(M,U,A,c){var y=H.call(this,M,U,A,c)||this;return y.selectionStartLineNumber=M,y.selectionStartColumn=U,y.positionLineNumber=A,y.positionColumn=c,y}return z.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},z.prototype.equalsSelection=function(M){return z.selectionsEqual(this,M)},z.selectionsEqual=function(M,U){return M.selectionStartLineNumber===U.selectionStartLineNumber&&M.selectionStartColumn===U.selectionStartColumn&&M.positionLineNumber===U.positionLineNumber&&M.positionColumn===U.positionColumn},z.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},z.prototype.setEndPosition=function(M,U){return this.getDirection()===0?new z(this.startLineNumber,this.startColumn,M,U):new z(M,U,this.startLineNumber,this.startColumn)},z.prototype.getPosition=function(){return new T.a(this.positionLineNumber,this.positionColumn)},z.prototype.setStartPosition=function(M,U){return this.getDirection()===0?new z(M,U,this.endLineNumber,this.endColumn):new z(this.endLineNumber,this.endColumn,M,U)},z.fromPositions=function(M,U){return U===void 0&&(U=M),new z(M.lineNumber,M.column,U.lineNumber,U.column)},z.liftSelection=function(M){return new z(M.selectionStartLineNumber,M.selectionStartColumn,M.positionLineNumber,M.positionColumn)},z.selectionsArrEqual=function(M,U){if(M&&!U||!M&&U)return!1;if(!M&&!U)return!0;if(M.length!==U.length)return!1;for(var A=0,c=M.length;A<c;A++)if(!this.selectionsEqual(M[A],U[A]))return!1;return!0},z.isISelection=function(M){return M&&typeof M.selectionStartLineNumber=="number"&&typeof M.selectionStartColumn=="number"&&typeof M.positionLineNumber=="number"&&typeof M.positionColumn=="number"},z.createWithDirection=function(M,U,A,c,y){return y===0?new z(M,U,A,c):new z(A,c,M,U)},z}(re.a)},gJAb:function(_t,P,e){"use strict";e.r(P);var T=e("EzsQ"),re=e.n(T),J=e("zrhQ"),N=e("pmY6"),H=e("N0LK"),z=e("sswD"),M=e("twdY"),U=e("i/Ef"),A=e("WBhO"),c=e("scqD"),y=e("MD5Z"),L=e("t9D7"),f=e("A9l+"),v=function(){var E=function(x,F){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,$){R.__proto__=$}||function(R,$){for(var ie in $)$.hasOwnProperty(ie)&&(R[ie]=$[ie])},E(x,F)};return function(_,x){E(_,x);function F(){this.constructor=_}_.prototype=x===null?Object.create(x):(F.prototype=x.prototype,new F)}}(),S=function(E,_,x,F){var R=arguments.length,$=R<3?_:F===null?F=Object.getOwnPropertyDescriptor(_,x):F,ie;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$=Reflect.decorate(E,_,x,F);else for(var W=E.length-1;W>=0;W--)(ie=E[W])&&($=(R<3?ie($):R>3?ie(_,x,$):ie(_,x))||$);return R>3&&$&&Object.defineProperty(_,x,$),$},g=function(E,_){return function(x,F){_(x,F,E)}},u=function(E){v(_,E);function _(x,F,R){var $=E.call(this)||this;return $._editor=x,$._modeService=R,$._widget=null,$._register($._editor.onDidChangeModel(function(ie){return $.stop()})),$._register($._editor.onDidChangeModelLanguage(function(ie){return $.stop()})),$._register(M.B.onDidChange(function(ie){return $.stop()})),$}return _.get=function(x){return x.getContribution(_.ID)},_.prototype.dispose=function(){this.stop(),E.prototype.dispose.call(this)},_.prototype.launch=function(){if(this._widget)return;if(!this._editor.hasModel())return;this._widget=new p(this._editor,this._modeService)},_.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},_.ID="editor.contrib.inspectTokens",_=S([g(1,c.a),g(2,A.a)],_),_}(N.a),s=function(E){v(_,E);function _(){return E.call(this,{id:"editor.action.inspectTokens",label:f.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})||this}return _.prototype.run=function(x,F){var R=u.get(F);R&&R.launch()},_}(z.b);function l(E){for(var _="",x=0,F=E.length;x<F;x++){var R=E.charCodeAt(x);switch(R){case 9:_+="&rarr;";break;case 32:_+="&middot;";break;case 60:_+="&lt;";break;case 62:_+="&gt;";break;case 38:_+="&amp;";break;default:_+=String.fromCharCode(R)}}return _}function d(E){var _=M.B.get(E.language);return _||{getInitialState:function(){return U.c},tokenize:function(F,R,$){return Object(U.d)(E.language,F,R,$)},tokenize2:function(F,R,$){return Object(U.e)(E.id,F,R,$)}}}var p=function(E){v(_,E);function _(x,F){var R=E.call(this)||this;return R.allowEditorOverflow=!0,R._editor=x,R._modeService=F,R._model=R._editor.getModel(),R._domNode=document.createElement("div"),R._domNode.className="tokens-inspect-widget",R._tokenizationSupport=d(R._model.getLanguageIdentifier()),R._compute(R._editor.getPosition()),R._register(R._editor.onDidChangeCursorPosition(function($){return R._compute(R._editor.getPosition())})),R._editor.addContentWidget(R),R}return _.prototype.dispose=function(){this._editor.removeContentWidget(this),E.prototype.dispose.call(this)},_.prototype.getId=function(){return _._ID},_.prototype._compute=function(x){for(var F=this._getTokensAtLine(x.lineNumber),R=0,$=F.tokens1.length-1;$>=0;$--){var ie=F.tokens1[$];if(x.column-1>=ie.offset){R=$;break}}for(var W=0,$=F.tokens2.length>>>1;$>=0;$--)if(x.column-1>=F.tokens2[$<<1]){W=$;break}var B="",le=this._model.getLineContent(x.lineNumber),be="";if(R<F.tokens1.length){var De=F.tokens1[R].offset,Te=R+1<F.tokens1.length?F.tokens1[R+1].offset:le.length;be=le.substring(De,Te)}B+='<h2 class="tm-token">'+l(be)+'<span class="tm-token-length">('+be.length+" "+(be.length===1?"char":"chars")+")</span></h2>",B+='<hr class="tokens-inspect-separator" style="clear:both"/>';var ke=this._decodeMetadata(F.tokens2[(W<<1)+1]);B+='<table class="tm-metadata-table"><tbody>',B+='<tr><td class="tm-metadata-key">language</td><td class="tm-metadata-value">'+Object(H.o)(ke.languageIdentifier.language)+"</td>",B+='<tr><td class="tm-metadata-key">token type</td><td class="tm-metadata-value">'+this._tokenTypeToString(ke.tokenType)+"</td>",B+='<tr><td class="tm-metadata-key">font style</td><td class="tm-metadata-value">'+this._fontStyleToString(ke.fontStyle)+"</td>",B+='<tr><td class="tm-metadata-key">foreground</td><td class="tm-metadata-value">'+J.a.Format.CSS.formatHex(ke.foreground)+"</td>",B+='<tr><td class="tm-metadata-key">background</td><td class="tm-metadata-value">'+J.a.Format.CSS.formatHex(ke.background)+"</td>",B+="</tbody></table>",B+='<hr class="tokens-inspect-separator"/>',R<F.tokens1.length&&(B+='<span class="tm-token-type">'+Object(H.o)(F.tokens1[R].type)+"</span>"),this._domNode.innerHTML=B,this._editor.layoutContentWidget(this)},_.prototype._decodeMetadata=function(x){var F=M.B.getColorMap(),R=M.A.getLanguageId(x),$=M.A.getTokenType(x),ie=M.A.getFontStyle(x),W=M.A.getForeground(x),B=M.A.getBackground(x);return{languageIdentifier:this._modeService.getLanguageIdentifier(R),tokenType:$,fontStyle:ie,foreground:F[W],background:F[B]}},_.prototype._tokenTypeToString=function(x){switch(x){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},_.prototype._fontStyleToString=function(x){var F="";return x&1&&(F+="italic "),x&2&&(F+="bold "),x&4&&(F+="underline "),F.length===0&&(F="---"),F},_.prototype._getTokensAtLine=function(x){var F=this._getStateBeforeLine(x),R=this._tokenizationSupport.tokenize(this._model.getLineContent(x),F,0),$=this._tokenizationSupport.tokenize2(this._model.getLineContent(x),F,0);return{startState:F,tokens1:R.tokens,tokens2:$.tokens,endState:R.endState}},_.prototype._getStateBeforeLine=function(x){for(var F=this._tokenizationSupport.getInitialState(),R=1;R<x;R++){var $=this._tokenizationSupport.tokenize(this._model.getLineContent(R),F,0);F=$.endState}return F},_.prototype.getDomNode=function(){return this._domNode},_.prototype.getPosition=function(){return{position:this._editor.getPosition(),preference:[2,1]}},_._ID="editor.contrib.inspectTokensWidget",_}(N.a);Object(z.h)(u.ID,u),Object(z.f)(s),Object(L.e)(function(E,_){var x=E.getColor(y.B);if(x){var F=E.type===L.b?2:1;_.addRule(".monaco-editor .tokens-inspect-widget { border: "+F+"px solid "+x+"; }"),_.addRule(".monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: "+x+"; }")}var R=E.getColor(y.A);R&&_.addRule(".monaco-editor .tokens-inspect-widget { background-color: "+R+"; }");var $=E.getColor(y.C);$&&_.addRule(".monaco-editor .tokens-inspect-widget { color: "+$+"; }")})},gqHg:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return e.e(27).then(e.bind(null,"fhwZ"))}}),Object(T.a)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return e.e(27).then(e.bind(null,"fhwZ"))}})},gslv:function(_t,P,e){"use strict";e.d(P,"c",function(){return A}),e.d(P,"e",function(){return y}),e.d(P,"b",function(){return L}),e.d(P,"d",function(){return f}),e.d(P,"f",function(){return v}),e.d(P,"g",function(){return S}),e.d(P,"h",function(){return u}),e.d(P,"a",function(){return s});var T=e("PTeM"),re=e("MrjW"),J=e("bY76"),N=e("N0LK"),H=e("tYmi"),z=e("MNsG"),M=function(){for(var l=0,d=0,p=arguments.length;d<p;d++)l+=arguments[d].length;for(var E=Array(l),_=0,d=0;d<p;d++)for(var x=arguments[d],F=0,R=x.length;F<R;F++,_++)E[_]=x[F];return E};function U(l){return l&&l.scheme===H.b.file?!z.d:!0}function A(l){return L(l)||l.authority}function c(l,d){return l===d||Object(N.n)(l,d)}function y(l,d,p){if(p===void 0&&(p=U(l)),l===d)return!0;if(!l||!d)return!1;if(l.scheme!==d.scheme||!c(l.authority,d.authority))return!1;var E=l.path||"/",_=d.path||"/";return E===_||p&&Object(N.n)(E||"/",_||"/")}function L(l){return re.posix.basename(l.path)}function f(l){if(l.path.length===0)return l;if(l.scheme===H.b.file)return J.a.file(re.dirname(g(l)));var d=re.posix.dirname(l.path);return l.authority&&d.length&&d.charCodeAt(0)!==47&&(console.error('dirname("'+l.toString+")) resulted in a relative path"),d="/"),l.with({path:d})}function v(l){for(var d,p=[],E=1;E<arguments.length;E++)p[E-1]=arguments[E];var _;return l.scheme===H.b.file?_=J.a.file(re.join.apply(re,M([g(l)],p))).path:_=(d=re.posix).join.apply(d,M([l.path||"/"],p)),l.with({path:_})}function S(l){if(!l.path.length)return l;var d;return l.scheme===H.b.file?d=J.a.file(re.normalize(g(l))).path:d=re.posix.normalize(l.path),l.with({path:d})}function g(l){var d,p=l.path;return l.authority&&p.length>1&&l.scheme===H.b.file?d="//"+l.authority+p:z.h&&p.charCodeAt(0)===47&&T.b(p.charCodeAt(1))&&p.charCodeAt(2)===58?d=p.substr(1):d=p,z.h&&(d=d.replace(/\//g,"\\")),d}function u(l,d,p){if(p===void 0&&(p=U(l)),l.scheme!==d.scheme||!c(l.authority,d.authority))return;if(l.scheme===H.b.file){var E=re.relative(l.path,d.path);return z.h?T.c(E):E}var _=l.path||"/",x=d.path||"/";if(p){for(var F=0,R=Math.min(_.length,x.length);F<R&&!(_.charCodeAt(F)!==x.charCodeAt(F)&&_.charAt(F).toLowerCase()!==x.charAt(F).toLowerCase());F++);_=x.substr(0,F)+_.substr(F)}return re.posix.relative(_,x)}var s;(function(l){l.META_DATA_LABEL="label",l.META_DATA_DESCRIPTION="description",l.META_DATA_SIZE="size",l.META_DATA_MIME="mime";function d(p){var E=new Map,_=p.path.substring(p.path.indexOf(";")+1,p.path.lastIndexOf(";"));_.split(";").forEach(function(F){var R=F.split(":"),$=R[0],ie=R[1];$&&ie&&E.set($,ie)});var x=p.path.substring(0,p.path.indexOf(";"));return x&&E.set(l.META_DATA_MIME,x),E}l.parseMetaData=d})(s||(s={}))},hFdI:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return e.e(258).then(e.bind(null,"tpLM"))}})},hHjc:function(_t,P,e){},hJVp:function(_t,P,e){"use strict";e.d(P,"a",function(){return u}),e.d(P,"e",function(){return s}),e.d(P,"f",function(){return l}),e.d(P,"d",function(){return d}),e.d(P,"b",function(){return p}),e.d(P,"c",function(){return _});var T=e("6OMU"),re=e("JQT/"),J=e("/cxE"),N=e("pmY6"),H=e("bY76"),z=e("vATl"),M=e("sswD"),U=e("aokT"),A=e("gCVg"),c=e("twdY"),y=e("G2kB"),L=e("nlbu"),f=function(){var F=function($,ie){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,B){W.__proto__=B}||function(W,B){for(var le in B)B.hasOwnProperty(le)&&(W[le]=B[le])},F($,ie)};return function(R,$){F(R,$);function ie(){this.constructor=R}R.prototype=$===null?Object.create($):(ie.prototype=$.prototype,new ie)}}(),v=function(F,R,$,ie){function W(B){return B instanceof $?B:new $(function(le){le(B)})}return new($||($=Promise))(function(B,le){function be(ke){try{Te(ie.next(ke))}catch(He){le(He)}}function De(ke){try{Te(ie.throw(ke))}catch(He){le(He)}}function Te(ke){ke.done?B(ke.value):W(ke.value).then(be,De)}Te((ie=ie.apply(F,R||[])).next())})},S=function(F,R){var $={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]},ie,W,B,le;return le={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function be(Te){return function(ke){return De([Te,ke])}}function De(Te){if(ie)throw new TypeError("Generator is already executing.");for(;$;)try{if(ie=1,W&&(B=Te[0]&2?W.return:Te[0]?W.throw||((B=W.return)&&B.call(W),0):W.next)&&!(B=B.call(W,Te[1])).done)return B;(W=0,B)&&(Te=[Te[0]&2,B.value]);switch(Te[0]){case 0:case 1:B=Te;break;case 4:return $.label++,{value:Te[1],done:!1};case 5:$.label++,W=Te[1],Te=[0];continue;case 7:Te=$.ops.pop(),$.trys.pop();continue;default:if(!(B=$.trys,B=B.length>0&&B[B.length-1])&&(Te[0]===6||Te[0]===2)){$=0;continue}if(Te[0]===3&&(!B||Te[1]>B[0]&&Te[1]<B[3])){$.label=Te[1];break}if(Te[0]===6&&$.label<B[1]){$.label=B[1],B=Te;break}if(B&&$.label<B[2]){$.label=B[2],$.ops.push(Te);break}B[2]&&$.ops.pop(),$.trys.pop();continue}Te=R.call(F,$)}catch(ke){Te=[6,ke],W=0}finally{ie=B=0}if(Te[0]&5)throw Te[1];return{value:Te[0]?Te[1]:void 0,done:!0}}},g=function(){for(var F=0,R=0,$=arguments.length;R<$;R++)F+=arguments[R].length;for(var ie=Array(F),W=0,R=0;R<$;R++)for(var B=arguments[R],le=0,be=B.length;le<be;le++,W++)ie[W]=B[le];return ie},u="editor.action.codeAction",s="editor.action.refactor",l="editor.action.sourceAction",d="editor.action.organizeImports",p="editor.action.fixAll",E=function(F){f(R,F);function R($,ie){var W=F.call(this)||this;return W._register(ie),W.allActions=Object(T.r)(g($),R.codeActionsComparator),W.validActions=W.allActions.filter(function(B){return!B.disabled}),W}return R.codeActionsComparator=function($,ie){return Object(T.q)($.diagnostics)?Object(T.q)(ie.diagnostics)?$.diagnostics[0].message.localeCompare(ie.diagnostics[0].message):-1:Object(T.q)(ie.diagnostics)?1:0},Object.defineProperty(R.prototype,"hasAutoFix",{get:function(){return this.validActions.some(function(ie){return!!ie.kind&&L.b.QuickFix.contains(new L.b(ie.kind))&&!!ie.isPreferred})},enumerable:!0,configurable:!0}),R}(N.a);function _(F,R,$,ie){var W=this,B,le=$.filter||{},be={only:(B=le.include)===null||B===void 0?void 0:B.value,trigger:$.type},De=new z.d(F,ie),Te=x(F,le),ke=new N.b,He=Te.map(function(oe){return v(W,void 0,void 0,function(){var ee,ae;return S(this,function(q){switch(q.label){case 0:return q.trys.push([0,2,,3]),[4,oe.provideCodeActions(F,R,be,De.token)];case 1:return ee=q.sent(),De.token.isCancellationRequested||!ee?[2,[]]:(ke.add(ee),[2,ee.actions.filter(function(ce){return ce&&Object(L.c)(le,ce)})]);case 2:if(ae=q.sent(),Object(J.d)(ae))throw ae;return Object(J.f)(ae),[2,[]];case 3:return[2]}})})}),je=c.a.onDidChange(function(){var oe=c.a.all(F);Object(T.g)(oe,Te)||De.cancel()});return Promise.all(He).then(T.m).then(function(oe){return new E(oe,ke)}).finally(function(){je.dispose(),De.dispose()})}function x(F,R){return c.a.all(F).filter(function($){return $.providedCodeActionKinds?$.providedCodeActionKinds.some(function(ie){return Object(L.d)(R,new L.b(ie))}):!0})}Object(M.j)("_executeCodeActionProvider",function(F,R){return v(this,void 0,void 0,function(){var $,ie,W,B,le,be;return S(this,function(De){switch(De.label){case 0:if($=R.resource,ie=R.rangeOrSelection,W=R.kind,!($ instanceof H.a))throw Object(J.b)();if(B=F.get(y.a).getModel($),!B)throw Object(J.b)();if(le=A.a.isISelection(ie)?A.a.liftSelection(ie):U.a.isIRange(ie)?B.validateRange(ie):void 0,!le)throw Object(J.b)();return[4,_(B,le,{type:2,filter:{includeSourceActions:!0,include:W&&W.value?new L.b(W.value):void 0}},re.a.None)];case 1:return be=De.sent(),setTimeout(function(){return be.dispose()},100),[2,be.validActions]}})})})},"i/Ef":function(_t,P,e){"use strict";e.d(P,"c",function(){return N}),e.d(P,"b",function(){return H}),e.d(P,"a",function(){return z}),e.d(P,"d",function(){return M}),e.d(P,"e",function(){return U});var T=e("Tcc1"),re=e("twdY"),J=function(){function A(){}return A.prototype.clone=function(){return this},A.prototype.equals=function(c){return this===c},A}(),N=new J,H="vs.editor.nullMode",z=new re.r(H,0);function M(A,c,y,L){return new T.b([new T.a(L,"",A)],y)}function U(A,c,y,L){var f=new Uint32Array(2);return f[0]=L,f[1]=(A<<0|0<<8|0<<11|1<<14|2<<23)>>>0,new T.c(f,y===null?N:y)}},"i/Rh":function(_t,P,e){},i04g:function(_t,P,e){"use strict";e.d(P,"b",function(){return J}),e.d(P,"a",function(){return N});var T=e("3/fG"),re=function(){function z(M,U,A){A===void 0&&(A=U),this.modifierLabels=[null],this.modifierLabels[2]=M,this.modifierLabels[1]=U,this.modifierLabels[3]=A}return z.prototype.toLabel=function(M,U,A){if(U.length===0)return null;for(var c=[],y=0,L=U.length;y<L;y++){var f=U[y],v=A(f);if(v===null)return null;c[y]=H(f,v,this.modifierLabels[M])}return c.join(" ")},z}(),J=new re({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:T.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:T.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:T.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),N=new re({ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function H(z,M,U){if(M===null)return"";var A=[];return z.ctrlKey&&A.push(U.ctrlKey),z.shiftKey&&A.push(U.shiftKey),z.altKey&&A.push(U.altKey),z.metaKey&&A.push(U.metaKey),A.push(M),A.join(U.separator)}},iDAx:function(_t,P,e){"use strict";e.d(P,"b",function(){return v}),e.d(P,"a",function(){return p}),e.d(P,"d",function(){return De}),e.d(P,"c",function(){return Te});var T=e("3/fG"),re=e("MI8n"),J=e("pmY6"),N=e("qj0h"),H=e("6OMU"),z=e("/UlZ"),M=e("Yr1X"),U=e("+3Gp"),A=e("CRAX"),c=e("ic2d"),y=e("vl9R"),L=function(){var ke=function(je,oe){return ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,ae){ee.__proto__=ae}||function(ee,ae){for(var q in ae)ae.hasOwnProperty(q)&&(ee[q]=ae[q])},ke(je,oe)};return function(He,je){ke(He,je);function oe(){this.constructor=He}He.prototype=je===null?Object.create(je):(oe.prototype=je.prototype,new oe)}}(),f=function(){return f=Object.assign||function(ke){for(var He,je=1,oe=arguments.length;je<oe;je++){He=arguments[je];for(var ee in He)Object.prototype.hasOwnProperty.call(He,ee)&&(ke[ee]=He[ee])}return ke},f.apply(this,arguments)},v=new(function(){function ke(){this._tabFocus=!1,this._onDidChangeTabFocus=new re.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return ke.prototype.getTabFocusMode=function(){return this._tabFocus},ke.prototype.setTabFocusMode=function(He){if(this._tabFocus===He)return;this._tabFocus=He,this._onDidChangeTabFocus.fire(this._tabFocus)},ke}()),S=Object.hasOwnProperty,g=function(){function ke(){this._values=[]}return ke.prototype._read=function(He){return this._values[He]},ke.prototype.get=function(He){return this._values[He]},ke.prototype._write=function(He,je){this._values[He]=je},ke}(),u=function(){function ke(){this._values=[]}return ke.prototype._read=function(He){return this._values[He]},ke.prototype._write=function(He,je){this._values[He]=je},ke}(),s=function(){function ke(){}return ke.readOptions=function(He){for(var je=He,oe=new u,ee=0,ae=z.i;ee<ae.length;ee++){var q=ae[ee],ce=q.name==="_never_"?void 0:je[q.name];oe._write(q.id,ce)}return oe},ke.validateOptions=function(He){for(var je=new z.h,oe=0,ee=z.i;oe<ee.length;oe++){var ae=ee[oe];je._write(ae.id,ae.validate(He._read(ae.id)))}return je},ke.computeOptions=function(He,je){for(var oe=new g,ee=0,ae=z.i;ee<ae.length;ee++){var q=ae[ee];oe._write(q.id,q.compute(je,oe,He._read(q.id)))}return oe},ke._deepEquals=function(He,je){if(typeof He!="object"||typeof je!="object")return He===je;if(Array.isArray(He)||Array.isArray(je))return Array.isArray(He)&&Array.isArray(je)?H.g(He,je):!1;for(var oe in He)if(!ke._deepEquals(He[oe],je[oe]))return!1;return!0},ke.checkEquals=function(He,je){for(var oe=[],ee=!1,ae=0,q=z.i;ae<q.length;ae++){var ce=q[ae],X=!ke._deepEquals(He._read(ce.id),je._read(ce.id));oe[ce.id]=X,X&&(ee=!0)}return ee?new z.a(oe):null},ke}();function l(ke){var He=ke.wordWrap;He===!0?ke.wordWrap="on":He===!1&&(ke.wordWrap="off");var je=ke.lineNumbers;je===!0?ke.lineNumbers="on":je===!1&&(ke.lineNumbers="off");var oe=ke.autoClosingBrackets;oe===!1&&(ke.autoClosingBrackets="never",ke.autoClosingQuotes="never",ke.autoSurround="never");var ee=ke.cursorBlinking;ee==="visible"&&(ke.cursorBlinking="solid");var ae=ke.renderWhitespace;ae===!0?ke.renderWhitespace="boundary":ae===!1&&(ke.renderWhitespace="none");var q=ke.renderLineHighlight;q===!0?ke.renderLineHighlight="line":q===!1&&(ke.renderLineHighlight="none");var ce=ke.acceptSuggestionOnEnter;ce===!0?ke.acceptSuggestionOnEnter="on":ce===!1&&(ke.acceptSuggestionOnEnter="off");var X=ke.tabCompletion;X===!1?ke.tabCompletion="off":X===!0&&(ke.tabCompletion="onlySnippets");var he=ke.suggest;if(he&&typeof he.filteredTypes=="object"&&he.filteredTypes){var Pe={};Pe.method="showMethods",Pe.function="showFunctions",Pe.constructor="showConstructors",Pe.field="showFields",Pe.variable="showVariables",Pe.class="showClasses",Pe.struct="showStructs",Pe.interface="showInterfaces",Pe.module="showModules",Pe.property="showProperties",Pe.event="showEvents",Pe.operator="showOperators",Pe.unit="showUnits",Pe.value="showValues",Pe.constant="showConstants",Pe.enum="showEnums",Pe.enumMember="showEnumMembers",Pe.keyword="showKeywords",Pe.text="showWords",Pe.color="showColors",Pe.file="showFiles",Pe.reference="showReferences",Pe.folder="showFolders",Pe.typeParameter="showTypeParameters",Pe.snippet="showSnippets",Object(y.c)(Pe,function(Re){var Ee=he.filteredTypes[Re.key];Ee===!1&&(he[Re.value]=Ee)})}var Xe=ke.hover;Xe===!0?ke.hover={enabled:!0}:Xe===!1&&(ke.hover={enabled:!1});var pe=ke.parameterHints;pe===!0?ke.parameterHints={enabled:!0}:pe===!1&&(ke.parameterHints={enabled:!1});var me=ke.autoIndent;me===!0?ke.autoIndent="full":me===!1&&(ke.autoIndent="advanced");var Se=ke.matchBrackets;Se===!0?ke.matchBrackets="always":Se===!1&&(ke.matchBrackets="never")}function d(ke){var He=N.c(ke);return l(He),He}var p=function(ke){L(He,ke);function He(je,oe){var ee=ke.call(this)||this;return ee._onDidChange=ee._register(new re.a),ee.onDidChange=ee._onDidChange.event,ee.isSimpleWidget=je,ee._isDominatedByLongLines=!1,ee._lineNumbersDigitCount=1,ee._rawOptions=d(oe),ee._readOptions=s.readOptions(ee._rawOptions),ee._validatedOptions=s.validateOptions(ee._readOptions),ee._register(M.a.onDidChangeZoomLevel(function(ae){return ee._recomputeOptions()})),ee._register(v.onDidChangeTabFocus(function(ae){return ee._recomputeOptions()})),ee}return He.prototype.observeReferenceElement=function(je){},He.prototype.dispose=function(){ke.prototype.dispose.call(this)},He.prototype._recomputeOptions=function(){var je=this.options,oe=this._computeInternalOptions();if(!je)this.options=oe;else{var ee=s.checkEquals(je,oe);if(ee===null)return;this.options=oe,this._onDidChange.fire(ee)}},He.prototype.getRawOptions=function(){return this._rawOptions},He.prototype._computeInternalOptions=function(){var je=this._getEnvConfiguration(),oe=U.a.createFromValidatedSettings(this._validatedOptions,je.zoomLevel,this.isSimpleWidget),ee={outerWidth:je.outerWidth,outerHeight:je.outerHeight,fontInfo:this.readConfiguration(oe),extraEditorClassName:je.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:je.emptySelectionClipboard,pixelRatio:je.pixelRatio,tabFocusMode:v.getTabFocusMode(),accessibilitySupport:je.accessibilitySupport};return s.computeOptions(this._validatedOptions,ee)},He._subsetEquals=function(je,oe){for(var ee in oe)if(S.call(oe,ee)){var ae=oe[ee],q=je[ee];if(q===ae)continue;if(Array.isArray(q)&&Array.isArray(ae)){if(!H.g(q,ae))return!1;continue}if(typeof q=="object"&&typeof ae=="object"){if(!this._subsetEquals(q,ae))return!1;continue}return!1}return!0},He.prototype.updateOptions=function(je){if(typeof je=="undefined")return;var oe=d(je);if(He._subsetEquals(this._rawOptions,oe))return;this._rawOptions=N.g(this._rawOptions,oe||{}),this._readOptions=s.readOptions(this._rawOptions),this._validatedOptions=s.validateOptions(this._readOptions),this._recomputeOptions()},He.prototype.setIsDominatedByLongLines=function(je){this._isDominatedByLongLines=je,this._recomputeOptions()},He.prototype.setMaxLineNumber=function(je){var oe=He._digitCount(je);if(this._lineNumbersDigitCount===oe)return;this._lineNumbersDigitCount=oe,this._recomputeOptions()},He._digitCount=function(je){for(var oe=0;je;)je=Math.floor(je/10),oe++;return oe||1},He}(J.a),E=Object.freeze({id:"editor",order:5,type:"object",title:T.a("editorConfigurationTitle","Editor"),scope:5}),_=c.a.as(A.a.Configuration),x=f(f({},E),{properties:{"editor.tabSize":{type:"number",default:z.c.tabSize,minimum:1,markdownDescription:T.a("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:z.c.insertSpaces,markdownDescription:T.a("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:z.c.detectIndentation,markdownDescription:T.a("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:z.c.trimAutoWhitespace,description:T.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:z.c.largeFileOptimizations,description:T.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:T.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{type:"boolean",default:!1,description:T.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:T.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:T.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:T.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:T.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:T.a("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:T.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}});function F(ke){return typeof ke.type!="undefined"||typeof ke.anyOf!="undefined"}for(var R=0,$=z.i;R<$.length;R++){var ie=$[R],W=ie.schema;if(typeof W!="undefined")if(F(W))x.properties["editor."+ie.name]=W;else for(var B in W)S.call(W,B)&&(x.properties[B]=W[B])}var le=null;function be(){return le===null&&(le=Object.create(null),Object.keys(x.properties).forEach(function(ke){le[ke]=!0})),le}function De(ke){var He=be();return He["editor."+ke]||!1}function Te(ke){var He=be();return He["diffEditor."+ke]||!1}_.registerConfiguration(x)},iJk1:function(_t,P,e){},iLY9:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return e.e(278).then(e.bind(null,"8ahN"))}})},iNS8:function(_t,P,e){"use strict";e.d(P,"a",function(){return De}),e.d(P,"b",function(){return Te}),e.d(P,"d",function(){return He}),e.d(P,"c",function(){return oe}),e.d(P,"p",function(){return ee}),e.d(P,"q",function(){return ae}),e.d(P,"r",function(){return q}),e.d(P,"e",function(){return ce}),e.d(P,"j",function(){return X}),e.d(P,"l",function(){return he}),e.d(P,"k",function(){return Pe}),e.d(P,"n",function(){return Xe}),e.d(P,"o",function(){return pe}),e.d(P,"f",function(){return me}),e.d(P,"g",function(){return Se}),e.d(P,"m",function(){return Re}),e.d(P,"h",function(){return Ee}),e.d(P,"i",function(){return ve});var T=e("e1ni"),re=e("EffR"),J=e("WqXY"),N=e("8HAY"),H=e("zrhQ"),z=e("MI8n"),M=e("qj0h"),U=e("N0LK"),A=e("Vxe3"),c=e("03kh"),y=e("uWgD"),L=e("cMOf"),f=e("nD70"),v=e("pmY6"),S=e("aokT"),g=e("tX9W"),u=new H.a(new H.c(0,122,204)),s={showArrow:!0,showFrame:!0,className:"",frameColor:u,arrowColor:u,keepEditorSelection:!1},l="vs.editor.contrib.zoneWidget",d=function(){function Q(b,k,se,ne,Ce,Oe){this.id="",this.domNode=b,this.afterLineNumber=k,this.afterColumn=se,this.heightInLines=ne,this._onDomNodeTop=Ce,this._onComputedHeight=Oe}return Q.prototype.onDomNodeTop=function(b){this._onDomNodeTop(b)},Q.prototype.onComputedHeight=function(b){this._onComputedHeight(b)},Q}(),p=function(){function Q(b,k){this._id=b,this._domNode=k}return Q.prototype.getId=function(){return this._id},Q.prototype.getDomNode=function(){return this._domNode},Q.prototype.getPosition=function(){return null},Q}(),E=function(){function Q(b){this._editor=b,this._ruleName=Q._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}return Q.prototype.dispose=function(){this.hide(),re.O(this._ruleName)},Object.defineProperty(Q.prototype,"color",{set:function(k){this._color!==k&&(this._color=k,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"height",{set:function(k){this._height!==k&&(this._height=k,this._updateStyle())},enumerable:!0,configurable:!0}),Q.prototype._updateStyle=function(){re.O(this._ruleName),re.v(".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; ")},Q.prototype.show=function(b){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:S.a.fromPositions(b),options:{className:this._ruleName,stickiness:1}}])},Q.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},Q._IdGenerator=new f.a(".arrow-decoration-"),Q}(),_=function(){function Q(b,k){var se=this;k===void 0&&(k={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new v.b,this.container=null,this._isShowing=!1,this.editor=b,this.options=M.c(k),M.g(this.options,s,!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(ne){var Ce=se._getWidth(ne);se.domNode.style.width=Ce+"px",se.domNode.style.left=se._getLeft(ne)+"px",se._onWidth(Ce)}))}return Q.prototype.dispose=function(){var b=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(k){b._viewZone&&k.removeZone(b._viewZone.id),b._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},Q.prototype.create=function(){re.f(this.domNode,"zone-widget"),this.options.className&&re.f(this.domNode,this.options.className),this.container=document.createElement("div"),re.f(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new E(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},Q.prototype.style=function(b){b.frameColor&&(this.options.frameColor=b.frameColor),b.arrowColor&&(this.options.arrowColor=b.arrowColor),this._applyStyles()},Q.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var b=this.options.frameColor.toString();this.container.style.borderTopColor=b,this.container.style.borderBottomColor=b}if(this._arrow&&this.options.arrowColor){var k=this.options.arrowColor.toString();this._arrow.color=k}},Q.prototype._getWidth=function(b){return b.width-b.minimapWidth-b.verticalScrollbarWidth},Q.prototype._getLeft=function(b){return b.minimapWidth>0&&b.minimapLeft===0?b.minimapWidth:0},Q.prototype._onViewZoneTop=function(b){this.domNode.style.top=b+"px"},Q.prototype._onViewZoneHeight=function(b){if(this.domNode.style.height=b+"px",this.container){var k=b-this._decoratingElementsHeight();this.container.style.height=k+"px";var se=this.editor.getLayoutInfo();this._doLayout(k,this._getWidth(se))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(Q.prototype,"position",{get:function(){var k=this._positionMarkerId[0];if(!k)return;var se=this.editor.getModel();if(!se)return;var ne=se.getDecorationRange(k);return ne?ne.getStartPosition():void 0},enumerable:!0,configurable:!0}),Q.prototype.show=function(b,k){var se=S.a.isIRange(b)?S.a.lift(b):S.a.fromPositions(b);this._isShowing=!0,this._showImpl(se,k),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:se,options:g.a.EMPTY}])},Q.prototype.hide=function(){var b=this;this._viewZone&&(this.editor.changeViewZones(function(k){b._viewZone&&k.removeZone(b._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},Q.prototype._decoratingElementsHeight=function(){var b=this.editor.getOption(49),k=0;if(this.options.showArrow){var se=Math.round(b/3);k+=2*se}if(this.options.showFrame){var ne=Math.round(b/9);k+=2*ne}return k},Q.prototype._showImpl=function(b,k){var se=this,ne=b.getStartPosition(),Ce=this.editor.getLayoutInfo(),Oe=this._getWidth(Ce);this.domNode.style.width=Oe+"px",this.domNode.style.left=this._getLeft(Ce)+"px";var we=document.createElement("div");we.style.overflow="hidden";var Ve=this.editor.getOption(49),Qe=this.editor.getLayoutInfo().height/Ve*.8;k>=Qe&&(k=Qe);var it=0,gt=0;if(this._arrow&&this.options.showArrow&&(it=Math.round(Ve/3),this._arrow.height=it,this._arrow.show(ne)),this.options.showFrame&&(gt=Math.round(Ve/9)),this.editor.changeViewZones(function(ln){se._viewZone&&ln.removeZone(se._viewZone.id),se._overlayWidget&&(se.editor.removeOverlayWidget(se._overlayWidget),se._overlayWidget=null),se.domNode.style.top="-1000px",se._viewZone=new d(we,ne.lineNumber,ne.column,k,function(an){return se._onViewZoneTop(an)},function(an){return se._onViewZoneHeight(an)}),se._viewZone.id=ln.addZone(se._viewZone),se._overlayWidget=new p(l+se._viewZone.id,se.domNode),se.editor.addOverlayWidget(se._overlayWidget)}),this.container&&this.options.showFrame){var Rt=this.options.frameWidth?this.options.frameWidth:gt;this.container.style.borderTopWidth=Rt+"px",this.container.style.borderBottomWidth=Rt+"px"}var Dt=k*Ve-this._decoratingElementsHeight();this.container&&(this.container.style.top=it+"px",this.container.style.height=Dt+"px",this.container.style.overflow="hidden"),this._doLayout(Dt,Oe),this.options.keepEditorSelection||this.editor.setSelection(b);var zt=this.editor.getModel();if(zt){var cn=b.endLineNumber+1;cn<=zt.getLineCount()?this.revealLine(cn,!1):this.revealLine(zt.getLineCount(),!0)}},Q.prototype.revealLine=function(b,k){k?this.editor.revealLineInCenter(b,0):this.editor.revealLine(b,0)},Q.prototype.setCssClass=function(b,k){if(!this.container)return;k&&this.container.classList.remove(k),re.f(this.container,b)},Q.prototype._onWidth=function(b){},Q.prototype._doLayout=function(b,k){},Q.prototype._relayout=function(b){var k=this;this._viewZone&&this._viewZone.heightInLines!==b&&this.editor.changeViewZones(function(se){k._viewZone&&(k._viewZone.heightInLines=b,se.layoutZone(k._viewZone.id))})},Q.prototype._initSash=function(){var b=this;if(this._resizeSash)return;this._resizeSash=this._disposables.add(new L.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0);var k;this._disposables.add(this._resizeSash.onDidStart(function(se){b._viewZone&&(k={startY:se.startY,heightInLines:b._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){k=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(se){if(k){var ne=(se.currentY-k.startY)/b.editor.getOption(49),Ce=ne<0?Math.ceil(ne):Math.floor(ne),Oe=k.heightInLines+Ce;Oe>5&&Oe<35&&b._relayout(Oe)}}))},Q.prototype.getHorizontalSashLeft=function(){return 0},Q.prototype.getHorizontalSashTop=function(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},Q.prototype.getHorizontalSashWidth=function(){var b=this.editor.getLayoutInfo();return b.width-b.minimapWidth},Q}(),x=e("3/fG"),F=e("T8No"),R=e("Cg/j"),$=e("9fML"),ie=e("sswD"),W=e("MD5Z"),B=function(){var Q=function(k,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Ce){ne.__proto__=Ce}||function(ne,Ce){for(var Oe in Ce)Ce.hasOwnProperty(Oe)&&(ne[Oe]=Ce[Oe])},Q(k,se)};return function(b,k){Q(b,k);function se(){this.constructor=b}b.prototype=k===null?Object.create(k):(se.prototype=k.prototype,new se)}}(),le=function(Q,b,k,se){var ne=arguments.length,Ce=ne<3?b:se===null?se=Object.getOwnPropertyDescriptor(b,k):se,Oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ce=Reflect.decorate(Q,b,k,se);else for(var we=Q.length-1;we>=0;we--)(Oe=Q[we])&&(Ce=(ne<3?Oe(Ce):ne>3?Oe(b,k,Ce):Oe(b,k))||Ce);return ne>3&&Ce&&Object.defineProperty(b,k,Ce),Ce},be=function(Q,b){return function(k,se){b(k,se,Q)}},De=Object(R.c)("IPeekViewService");Object($.b)(De,function(){function Q(){this._widgets=new Map}return Q.prototype.addExclusiveWidget=function(b,k){var se=this,ne=this._widgets.get(b);ne&&(ne.listener.dispose(),ne.widget.dispose());var Ce=function(){var we=se._widgets.get(b);we&&we.widget===k&&(we.listener.dispose(),se._widgets.delete(b))};this._widgets.set(b,{widget:k,listener:k.onDidClose(Ce)})},Q}());var Te;(function(Q){Q.inPeekEditor=new F.d("inReferenceSearchEditor",!0),Q.notInPeekEditor=Q.inPeekEditor.toNegated()})(Te||(Te={}));var ke=function(){function Q(b,k){b instanceof c.a&&Te.inPeekEditor.bindTo(k)}return Q.prototype.dispose=function(){},Q.ID="editor.contrib.referenceController",Q=le([be(1,F.c)],Q),Q}();Object(ie.h)(ke.ID,ke);function He(Q){var b=Q.get(A.a).getFocusedCodeEditor();return b instanceof c.a?b.getParentEditor():b}var je={headerBackgroundColor:H.a.white,primaryHeadingColor:H.a.fromHex("#333333"),secondaryHeadingColor:H.a.fromHex("#6c6c6cb3")},oe=function(Q){B(b,Q);function b(k,se){se===void 0&&(se={});var ne=Q.call(this,k,se)||this;return ne._onDidClose=new z.a,ne.onDidClose=ne._onDidClose.event,M.g(ne.options,je,!1),ne}return b.prototype.dispose=function(){Q.prototype.dispose.call(this),this._onDidClose.fire(this)},b.prototype.style=function(k){var se=this.options;k.headerBackgroundColor&&(se.headerBackgroundColor=k.headerBackgroundColor),k.primaryHeadingColor&&(se.primaryHeadingColor=k.primaryHeadingColor),k.secondaryHeadingColor&&(se.secondaryHeadingColor=k.secondaryHeadingColor),Q.prototype.style.call(this,k)},b.prototype._applyStyles=function(){Q.prototype._applyStyles.call(this);var k=this.options;this._headElement&&k.headerBackgroundColor&&(this._headElement.style.backgroundColor=k.headerBackgroundColor.toString()),this._primaryHeading&&k.primaryHeadingColor&&(this._primaryHeading.style.color=k.primaryHeadingColor.toString()),this._secondaryHeading&&k.secondaryHeadingColor&&(this._secondaryHeading.style.color=k.secondaryHeadingColor.toString()),this._bodyElement&&k.frameColor&&(this._bodyElement.style.borderColor=k.frameColor.toString())},b.prototype._fillContainer=function(k){this.setCssClass("peekview-widget"),this._headElement=re.a(".head"),this._bodyElement=re.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),k.appendChild(this._headElement),k.appendChild(this._bodyElement)},b.prototype._fillHead=function(k){var se=this,ne=re.a(".peekview-title");re.q(this._headElement,ne),re.o(ne,"click",function(we){return se._onTitleClick(we)}),this._fillTitleIcon(ne),this._primaryHeading=re.a("span.filename"),this._secondaryHeading=re.a("span.dirname"),this._metaHeading=re.a("span.meta"),re.q(ne,this._primaryHeading,this._secondaryHeading,this._metaHeading);var Ce=re.a(".peekview-actions");re.q(this._headElement,Ce);var Oe=this._getActionBarOptions();this._actionbarWidget=new J.a(Ce,Oe),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new N.a("peekview.close",x.a("label.close","Close"),"codicon-close",!0,function(){return se.dispose(),Promise.resolve()}),{label:!1,icon:!0})},b.prototype._fillTitleIcon=function(k){},b.prototype._getActionBarOptions=function(){return{}},b.prototype._onTitleClick=function(k){},b.prototype.setTitle=function(k,se){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=U.o(k),this._primaryHeading.setAttribute("aria-label",k),se?this._secondaryHeading.innerHTML=U.o(se):re.t(this._secondaryHeading))},b.prototype.setMetaTitle=function(k){this._metaHeading&&(k?(this._metaHeading.innerHTML=U.o(k),re.X(this._metaHeading)):re.J(this._metaHeading))},b.prototype._doLayout=function(k,se){if(!this._isShowing&&k<0){this.dispose();return}var ne=Math.ceil(this.editor.getOption(49)*1.2),Ce=Math.round(k-(ne+2));this._doLayoutHead(ne,se),this._doLayoutBody(Ce,se)},b.prototype._doLayoutHead=function(k,se){this._headElement&&(this._headElement.style.height=k+"px",this._headElement.style.lineHeight=this._headElement.style.height)},b.prototype._doLayoutBody=function(k,se){this._bodyElement&&(this._bodyElement.style.height=k+"px")},b}(_),ee=Object(W.Tb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},x.a("peekViewTitleBackground","Background color of the peek view title area.")),ae=Object(W.Tb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},x.a("peekViewTitleForeground","Color of the peek view title.")),q=Object(W.Tb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},x.a("peekViewTitleInfoForeground","Color of the peek view title info.")),ce=Object(W.Tb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:W.e},x.a("peekViewBorder","Color of the peek view borders and arrow.")),X=Object(W.Tb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:H.a.black},x.a("peekViewResultsBackground","Background color of the peek view result list.")),he=Object(W.Tb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:H.a.white},x.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),Pe=Object(W.Tb)("peekViewResult.fileForeground",{dark:H.a.white,light:"#1E1E1E",hc:H.a.white},x.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Xe=Object(W.Tb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},x.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),pe=Object(W.Tb)("peekViewResult.selectionForeground",{dark:H.a.white,light:"#6C6C6C",hc:H.a.white},x.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),me=Object(W.Tb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:H.a.black},x.a("peekViewEditorBackground","Background color of the peek view editor.")),Se=Object(W.Tb)("peekViewEditorGutter.background",{dark:me,light:me,hc:me},x.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Re=Object(W.Tb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},x.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ee=Object(W.Tb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},x.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),ve=Object(W.Tb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:W.b},x.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},ic2d:function(_t,P,e){"use strict";e.d(P,"a",function(){return N});var T=e("746U"),re=e("FWmy"),J=function(){function H(){this.data=new Map}return H.prototype.add=function(z,M){re.a(T.j(z)),re.a(T.i(M)),re.a(!this.data.has(z),"There is already an extension with this id"),this.data.set(z,M)},H.prototype.as=function(z){return this.data.get(z)||null},H}(),N=new J},"ij/i":function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return e.e(284).then(e.bind(null,"3MdH"))}})},iuje:function(_t,P,e){"use strict";e.d(P,"c",function(){return T}),e.d(P,"a",function(){return re}),e.d(P,"b",function(){return J});function T(N){return N&&typeof N.id=="string"}var re={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},J={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},j2o1:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return e.e(276).then(e.bind(null,"ppMK"))}})},"jAJ/":function(_t,P,e){"use strict";e.d(P,"a",function(){return M}),e.d(P,"d",function(){return c}),e.d(P,"c",function(){return L}),e.d(P,"e",function(){return S}),e.d(P,"b",function(){return g});var T=e("N0LK"),re=e("5v8Y"),J=e("cGHE"),N=e("aokT"),H=e("M1Kb"),z=999,M=function(){function u(s,l,d,p){this.searchString=s,this.isRegex=l,this.matchCase=d,this.wordSeparators=p}return u.prototype.parseSearchRequest=function(){if(this.searchString==="")return null;var s;this.isRegex?s=U(this.searchString):s=this.searchString.indexOf(`
`)>=0;var l=null;try{l=T.l(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:s,global:!0,unicode:!0})}catch(p){return null}if(!l)return null;var d=!this.isRegex&&!s;return d&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(d=this.matchCase),new A(l,this.wordSeparators?Object(re.a)(this.wordSeparators):null,d?this.searchString:null)},u}();function U(u){if(!u||u.length===0)return!1;for(var s=0,l=u.length;s<l;s++){var d=u.charCodeAt(s);if(d===92){if(s++,s>=l)break;var p=u.charCodeAt(s);if(p===110||p===114||p===87||p===119)return!0}}return!1}var A=function(){function u(s,l,d){this.regex=s,this.wordSeparators=l,this.simpleSearch=d}return u}();function c(u,s,l){if(!l)return new H.b(u,null);for(var d=[],p=0,E=s.length;p<E;p++)d[p]=s[p];return new H.b(u,d)}var y=function(){function u(s){for(var l=[],d=0,p=0,E=s.length;p<E;p++)s.charCodeAt(p)===10&&(l[d++]=p);this._lineFeedsOffsets=l}return u.prototype.findLineFeedCountBeforeOffset=function(s){var l=this._lineFeedsOffsets,d=0,p=l.length-1;if(p===-1)return 0;if(s<=l[0])return 0;for(;d<p;){var E=d+((p-d)/2>>0);l[E]>=s?p=E-1:l[E+1]>=s?(d=E,p=E):d=E+1}return d+1},u}(),L=function(){function u(){}return u.findMatches=function(s,l,d,p,E){var _=l.parseSearchRequest();return _?_.regex.multiline?this._doFindMatchesMultiline(s,d,new g(_.wordSeparators,_.regex),p,E):this._doFindMatchesLineByLine(s,d,_,p,E):[]},u._getMultilineMatchRange=function(s,l,d,p,E,_){var x,F=0;p?(F=p.findLineFeedCountBeforeOffset(E),x=l+E+F):x=l+E;var R;if(p){var $=p.findLineFeedCountBeforeOffset(E+_.length),ie=$-F;R=x+_.length+ie}else R=x+_.length;var W=s.getPositionAt(x),B=s.getPositionAt(R);return new N.a(W.lineNumber,W.column,B.lineNumber,B.column)},u._doFindMatchesMultiline=function(s,l,d,p,E){var _=s.getOffsetAt(l.getStartPosition()),x=s.getValueInRange(l,1),F=s.getEOL()===`\r
`?new y(x):null,R=[],$=0,ie;for(d.reset(0);ie=d.next(x);)if(R[$++]=c(this._getMultilineMatchRange(s,_,x,F,ie.index,ie[0]),ie,p),$>=E)return R;return R},u._doFindMatchesLineByLine=function(s,l,d,p,E){var _=[],x=0;if(l.startLineNumber===l.endLineNumber){var F=s.getLineContent(l.startLineNumber).substring(l.startColumn-1,l.endColumn-1);return x=this._findMatchesInLine(d,F,l.startLineNumber,l.startColumn-1,x,_,p,E),_}var R=s.getLineContent(l.startLineNumber).substring(l.startColumn-1);x=this._findMatchesInLine(d,R,l.startLineNumber,l.startColumn-1,x,_,p,E);for(var $=l.startLineNumber+1;$<l.endLineNumber&&x<E;$++)x=this._findMatchesInLine(d,s.getLineContent($),$,0,x,_,p,E);if(x<E){var ie=s.getLineContent(l.endLineNumber).substring(0,l.endColumn-1);x=this._findMatchesInLine(d,ie,l.endLineNumber,0,x,_,p,E)}return _},u._findMatchesInLine=function(s,l,d,p,E,_,x,F){var R=s.wordSeparators;if(!x&&s.simpleSearch){for(var $=s.simpleSearch,ie=$.length,W=l.length,B=-ie;(B=l.indexOf($,B+ie))!==-1;)if((!R||S(R,l,W,B,ie))&&(_[E++]=new H.b(new N.a(d,B+1+p,d,B+1+ie+p),null),E>=F))return E;return E}var le=new g(s.wordSeparators,s.regex),be;le.reset(0);do if(be=le.next(l),be&&(_[E++]=c(new N.a(d,be.index+1+p,d,be.index+1+be[0].length+p),be,x),E>=F))return E;while(be);return E},u.findNextMatch=function(s,l,d,p){var E=l.parseSearchRequest();if(!E)return null;var _=new g(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindNextMatchMultiline(s,d,_,p):this._doFindNextMatchLineByLine(s,d,_,p)},u._doFindNextMatchMultiline=function(s,l,d,p){var E=new J.a(l.lineNumber,1),_=s.getOffsetAt(E),x=s.getLineCount(),F=s.getValueInRange(new N.a(E.lineNumber,E.column,x,s.getLineMaxColumn(x)),1),R=s.getEOL()===`\r
`?new y(F):null;d.reset(l.column-1);var $=d.next(F);return $?c(this._getMultilineMatchRange(s,_,F,R,$.index,$[0]),$,p):l.lineNumber!==1||l.column!==1?this._doFindNextMatchMultiline(s,new J.a(1,1),d,p):null},u._doFindNextMatchLineByLine=function(s,l,d,p){var E=s.getLineCount(),_=l.lineNumber,x=s.getLineContent(_),F=this._findFirstMatchInLine(d,x,_,l.column,p);if(F)return F;for(var R=1;R<=E;R++){var $=(_+R-1)%E,ie=s.getLineContent($+1),W=this._findFirstMatchInLine(d,ie,$+1,1,p);if(W)return W}return null},u._findFirstMatchInLine=function(s,l,d,p,E){s.reset(p-1);var _=s.next(l);return _?c(new N.a(d,_.index+1,d,_.index+1+_[0].length),_,E):null},u.findPreviousMatch=function(s,l,d,p){var E=l.parseSearchRequest();if(!E)return null;var _=new g(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindPreviousMatchMultiline(s,d,_,p):this._doFindPreviousMatchLineByLine(s,d,_,p)},u._doFindPreviousMatchMultiline=function(s,l,d,p){var E=this._doFindMatchesMultiline(s,new N.a(1,1,l.lineNumber,l.column),d,p,10*z);if(E.length>0)return E[E.length-1];var _=s.getLineCount();return l.lineNumber!==_||l.column!==s.getLineMaxColumn(_)?this._doFindPreviousMatchMultiline(s,new J.a(_,s.getLineMaxColumn(_)),d,p):null},u._doFindPreviousMatchLineByLine=function(s,l,d,p){var E=s.getLineCount(),_=l.lineNumber,x=s.getLineContent(_).substring(0,l.column-1),F=this._findLastMatchInLine(d,x,_,p);if(F)return F;for(var R=1;R<=E;R++){var $=(E+_-R-1)%E,ie=s.getLineContent($+1),W=this._findLastMatchInLine(d,ie,$+1,p);if(W)return W}return null},u._findLastMatchInLine=function(s,l,d,p){var E=null,_;for(s.reset(0);_=s.next(l);)E=c(new N.a(d,_.index+1,d,_.index+1+_[0].length),_,p);return E},u}();function f(u,s,l,d,p){if(d===0)return!0;var E=s.charCodeAt(d-1);if(u.get(E)!==0)return!0;if(E===13||E===10)return!0;if(p>0){var _=s.charCodeAt(d);if(u.get(_)!==0)return!0}return!1}function v(u,s,l,d,p){if(d+p===l)return!0;var E=s.charCodeAt(d+p);if(u.get(E)!==0)return!0;if(E===13||E===10)return!0;if(p>0){var _=s.charCodeAt(d+p-1);if(u.get(_)!==0)return!0}return!1}function S(u,s,l,d,p){return f(u,s,l,d,p)&&v(u,s,l,d,p)}var g=function(){function u(s,l){this._wordSeparators=s,this._searchRegex=l,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return u.prototype.reset=function(s){this._searchRegex.lastIndex=s,this._prevMatchStartIndex=-1,this._prevMatchLength=0},u.prototype.next=function(s){var l=s.length,d;do{if(this._prevMatchStartIndex+this._prevMatchLength===l)return null;if(d=this._searchRegex.exec(s),!d)return null;var p=d.index,E=d[0].length;if(p===this._prevMatchStartIndex&&E===this._prevMatchLength){if(E===0){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=p,this._prevMatchLength=E,!this._wordSeparators||S(this._wordSeparators,s,l,p,E))return d}while(d);return null},u}()},jVwG:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return e.e(268).then(e.bind(null,"fYNN"))}})},jqj9:function(_t,P,e){"use strict";var T=e("yI7H"),re=e.n(T),J=e("ujyM"),N=e.n(J),H=e("3/fG"),z=e("t9D7"),M=e("MD5Z"),U=Object(M.Tb)("symbolIcon.arrayForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=Object(M.Tb)("symbolIcon.booleanForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=Object(M.Tb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(H.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=Object(M.Tb)("symbolIcon.colorForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=Object(M.Tb)("symbolIcon.constantForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=Object(M.Tb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(H.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=Object(M.Tb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(H.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=Object(M.Tb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=Object(M.Tb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(H.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=Object(M.Tb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),s=Object(M.Tb)("symbolIcon.fileForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=Object(M.Tb)("symbolIcon.folderForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=Object(M.Tb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(H.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=Object(M.Tb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=Object(M.Tb)("symbolIcon.keyForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=Object(M.Tb)("symbolIcon.keywordForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=Object(M.Tb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(H.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=Object(M.Tb)("symbolIcon.moduleForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=Object(M.Tb)("symbolIcon.namespaceForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$=Object(M.Tb)("symbolIcon.nullForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ie=Object(M.Tb)("symbolIcon.numberForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),W=Object(M.Tb)("symbolIcon.objectForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=Object(M.Tb)("symbolIcon.operatorForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),le=Object(M.Tb)("symbolIcon.packageForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),be=Object(M.Tb)("symbolIcon.propertyForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),De=Object(M.Tb)("symbolIcon.referenceForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Te=Object(M.Tb)("symbolIcon.snippetForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ke=Object(M.Tb)("symbolIcon.stringForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),He=Object(M.Tb)("symbolIcon.structForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),je=Object(M.Tb)("symbolIcon.textForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),oe=Object(M.Tb)("symbolIcon.typeParameterForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ee=Object(M.Tb)("symbolIcon.unitForeground",{dark:M.W,light:M.W,hc:M.W},Object(H.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ae=Object(M.Tb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(z.e)(function(q,ce){var X=q.getColor(U);X&&ce.addRule(".codicon-symbol-array { color: "+X+" !important; }");var he=q.getColor(A);he&&ce.addRule(".codicon-symbol-boolean { color: "+he+" !important; }");var Pe=q.getColor(c);Pe&&ce.addRule(".codicon-symbol-class { color: "+Pe+" !important; }");var Xe=q.getColor(x);Xe&&ce.addRule(".codicon-symbol-method { color: "+Xe+" !important; }");var pe=q.getColor(y);pe&&ce.addRule(".codicon-symbol-color { color: "+pe+" !important; }");var me=q.getColor(L);me&&ce.addRule(".codicon-symbol-constant { color: "+me+" !important; }");var Se=q.getColor(f);Se&&ce.addRule(".codicon-symbol-constructor { color: "+Se+" !important; }");var Re=q.getColor(v);Re&&ce.addRule(`
.codicon-symbol-value,.codicon-symbol-enum { color: `+Re+" !important; }");var Ee=q.getColor(S);Ee&&ce.addRule(".codicon-symbol-enum-member { color: "+Ee+" !important; }");var ve=q.getColor(g);ve&&ce.addRule(".codicon-symbol-event { color: "+ve+" !important; }");var Q=q.getColor(u);Q&&ce.addRule(".codicon-symbol-field { color: "+Q+" !important; }");var b=q.getColor(s);b&&ce.addRule(".codicon-symbol-file { color: "+b+" !important; }");var k=q.getColor(l);k&&ce.addRule(".codicon-symbol-folder { color: "+k+" !important; }");var se=q.getColor(d);se&&ce.addRule(".codicon-symbol-function { color: "+se+" !important; }");var ne=q.getColor(p);ne&&ce.addRule(".codicon-symbol-interface { color: "+ne+" !important; }");var Ce=q.getColor(E);Ce&&ce.addRule(".codicon-symbol-key { color: "+Ce+" !important; }");var Oe=q.getColor(_);Oe&&ce.addRule(".codicon-symbol-keyword { color: "+Oe+" !important; }");var we=q.getColor(F);we&&ce.addRule(".codicon-symbol-module { color: "+we+" !important; }");var Ve=q.getColor(R);Ve&&ce.addRule(".codicon-symbol-namespace { color: "+Ve+" !important; }");var Qe=q.getColor($);Qe&&ce.addRule(".codicon-symbol-null { color: "+Qe+" !important; }");var it=q.getColor(ie);it&&ce.addRule(".codicon-symbol-number { color: "+it+" !important; }");var gt=q.getColor(W);gt&&ce.addRule(".codicon-symbol-object { color: "+gt+" !important; }");var Rt=q.getColor(B);Rt&&ce.addRule(".codicon-symbol-operator { color: "+Rt+" !important; }");var Dt=q.getColor(le);Dt&&ce.addRule(".codicon-symbol-package { color: "+Dt+" !important; }");var zt=q.getColor(be);zt&&ce.addRule(".codicon-symbol-property { color: "+zt+" !important; }");var cn=q.getColor(De);cn&&ce.addRule(".codicon-symbol-reference { color: "+cn+" !important; }");var ln=q.getColor(Te);ln&&ce.addRule(".codicon-symbol-snippet { color: "+ln+" !important; }");var an=q.getColor(ke);an&&ce.addRule(".codicon-symbol-string { color: "+an+" !important; }");var jt=q.getColor(He);jt&&ce.addRule(".codicon-symbol-struct { color: "+jt+" !important; }");var ft=q.getColor(je);ft&&ce.addRule(".codicon-symbol-text { color: "+ft+" !important; }");var vt=q.getColor(oe);vt&&ce.addRule(".codicon-symbol-type-parameter { color: "+vt+" !important; }");var xt=q.getColor(ee);xt&&ce.addRule(".codicon-symbol-unit { color: "+xt+" !important; }");var at=q.getColor(ae);at&&ce.addRule(".codicon-symbol-variable { color: "+at+" !important; }")})},jrbv:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return e.e(249).then(e.bind(null,"2ZXa"))}})},k76M:function(_t,P,e){"use strict";var T=e("XNtB"),re=e.n(T),J=e("epnl"),N=e.n(J)},k7mE:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return e.e(260).then(e.bind(null,"BjZ/"))}})},k7pc:function(_t,P,e){"use strict";e.r(P),e.d(P,"ToggleTabFocusModeAction",function(){return z});var T=e("3/fG"),re=e("OBOq"),J=e("sswD"),N=e("iDAx"),H=function(){var M=function(A,c){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,L){y.__proto__=L}||function(y,L){for(var f in L)L.hasOwnProperty(f)&&(y[f]=L[f])},M(A,c)};return function(U,A){M(U,A);function c(){this.constructor=U}U.prototype=A===null?Object.create(A):(c.prototype=A.prototype,new c)}}(),z=function(M){H(U,M);function U(){return M.call(this,{id:U.ID,label:T.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|43,mac:{primary:256|1024|43},weight:100}})||this}return U.prototype.run=function(A,c){var y=N.b.getTabFocusMode(),L=!y;N.b.setTabFocusMode(L),L?Object(re.a)(T.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(re.a)(T.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))},U.ID="editor.action.toggleTabFocusMode",U}(J.b);Object(J.f)(z)},k9mg:function(_t,P,e){"use strict";e.d(P,"a",function(){return fo}),e.d(P,"b",function(){return Vn}),e.d(P,"d",function(){return lo}),e.d(P,"c",function(){return yt});var T=e("EffR"),re=e("cqdO"),J=e("pmY6"),N=e("3/fG"),H=e("+7oY"),z=e("CRAX"),M=e("T8No"),U=e("Cg/j"),A=e("bexQ"),c=e("ic2d"),y=e("ptcw"),L=e("t9D7"),f="inputFocus",v=e("2V9f"),S=e("MI8n"),g=e("uDWl"),u=e("ZQ78"),s=e("6OMU"),l=e("feEw"),d=e("4y0V"),p=e("fpMC"),E=function(){var ge=function(ye,We){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var pt in st)st.hasOwnProperty(pt)&&(Ze[pt]=st[pt])},ge(ye,We)};return function(O,ye){ge(O,ye);function We(){this.constructor=O}O.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),_=function(ge){E(O,ge);function O(ye,We){return ge.call(this,"TreeError ["+ye+"] "+We)||this}return O}(Error),x=function(){function ge(O){this.fn=O,this._map=new WeakMap}return ge.prototype.map=function(O){var ye=this._map.get(O);return ye||(ye=this.fn(O),this._map.set(O,ye)),ye},ge}(),F=e("JYp7"),R=function(){for(var ge=0,O=0,ye=arguments.length;O<ye;O++)ge+=arguments[O].length;for(var We=Array(ge),Ze=0,O=0;O<ye;O++)for(var st=arguments[O],pt=0,Kt=st.length;pt<Kt;pt++,Ze++)We[Ze]=st[pt];return We};function $(ge){return typeof ge=="object"&&"visibility"in ge&&"data"in ge}function ie(ge){switch(ge){case!0:return 1;case!1:return 0;default:return ge}}function W(ge){return typeof ge.collapsible=="boolean"}var B=function(){function ge(O,ye,We,Ze){Ze===void 0&&(Ze={}),this.user=O,this.list=ye,this.rootRef=[],this.eventBufferer=new S.c,this._onDidChangeCollapseState=new S.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new S.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new S.a,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=typeof Ze.collapseByDefault=="undefined"?!1:Ze.collapseByDefault,this.filter=Ze.filter,this.autoExpandSingleChildren=typeof Ze.autoExpandSingleChildren=="undefined"?!1:Ze.autoExpandSingleChildren,this.root={parent:void 0,element:We,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return ge.prototype.splice=function(O,ye,We,Ze,st){var pt,Kt=this;if(O.length===0)throw new _(this.user,"Invalid tree location");for(var Xt=this.getParentNodeWithListIndex(O),on=Xt.parentNode,vn=Xt.listIndex,dn=Xt.revealed,Rn=Xt.visible,Sn=[],Ln=F.d.map(F.d.from(We),function(Fo){return Kt.createTreeNode(Fo,on,on.visible?1:0,dn,Sn,Ze)}),Pn=O[O.length-1],Hn=0,On=Pn;On>=0&&On<on.children.length;On--){var An=on.children[On];if(An.visible){Hn=An.visibleChildIndex;break}}var to=[],mo=0,Eo=0;F.d.forEach(Ln,function(Fo){to.push(Fo),Eo+=Fo.renderNodeCount,Fo.visible&&(Fo.visibleChildIndex=Hn+mo++)});for(var no=(pt=on.children).splice.apply(pt,R([Pn,ye],to)),Mo=0,Uo=0,Ro=no;Uo<Ro.length;Uo++){var An=Ro[Uo];An.visible&&Mo++}if(Mo!==0)for(var On=Pn+to.length;On<on.children.length;On++){var An=on.children[On];An.visible&&(An.visibleChildIndex-=Mo)}if(on.visibleChildrenCount+=mo-Mo,dn&&Rn){var ai=no.reduce(function(Fo,Qo){return Fo+(Qo.visible?Qo.renderNodeCount:0)},0);this._updateAncestorsRenderNodeCount(on,Eo-ai),this.list.splice(vn,ai,Sn)}if(no.length>0&&st){var Ci=function Fo(Qo){st(Qo),Qo.children.forEach(Fo)};no.forEach(Ci)}this._onDidSplice.fire({insertedNodes:to,deletedNodes:no})},ge.prototype.rerender=function(O){if(O.length===0)throw new _(this.user,"Invalid tree location");var ye=this.getTreeNodeWithListIndex(O),We=ye.node,Ze=ye.listIndex,st=ye.revealed;st&&this.list.splice(Ze,1,[We])},ge.prototype.has=function(O){return this.hasTreeNode(O)},ge.prototype.getListIndex=function(O){var ye=this.getTreeNodeWithListIndex(O),We=ye.listIndex,Ze=ye.visible,st=ye.revealed;return Ze&&st?We:-1},ge.prototype.getListRenderCount=function(O){return this.getTreeNode(O).renderNodeCount},ge.prototype.isCollapsible=function(O){return this.getTreeNode(O).collapsible},ge.prototype.setCollapsible=function(O,ye){var We=this,Ze=this.getTreeNode(O);typeof ye=="undefined"&&(ye=!Ze.collapsible);var st={collapsible:ye};return this.eventBufferer.bufferEvents(function(){return We._setCollapseState(O,st)})},ge.prototype.isCollapsed=function(O){return this.getTreeNode(O).collapsed},ge.prototype.setCollapsed=function(O,ye,We){var Ze=this,st=this.getTreeNode(O);typeof ye=="undefined"&&(ye=!st.collapsed);var pt={collapsed:ye,recursive:We||!1};return this.eventBufferer.bufferEvents(function(){return Ze._setCollapseState(O,pt)})},ge.prototype._setCollapseState=function(O,ye){var We=this.getTreeNodeWithListIndex(O),Ze=We.node,st=We.listIndex,pt=We.revealed,Kt=this._setListNodeCollapseState(Ze,st,pt,ye);if(Ze!==this.root&&this.autoExpandSingleChildren&&Kt&&!W(ye)&&Ze.collapsible&&!Ze.collapsed&&!ye.recursive){for(var Xt=-1,on=0;on<Ze.children.length;on++){var vn=Ze.children[on];if(vn.visible)if(Xt>-1){Xt=-1;break}else Xt=on}Xt>-1&&this._setCollapseState(R(O,[Xt]),ye)}return Kt},ge.prototype._setListNodeCollapseState=function(O,ye,We,Ze){var st=this._setNodeCollapseState(O,Ze,!1);if(!We||!O.visible||!st)return st;var pt=O.renderNodeCount,Kt=this.updateNodeAfterCollapseChange(O),Xt=pt-(ye===-1?0:1);return this.list.splice(ye+1,Xt,Kt.slice(1)),st},ge.prototype._setNodeCollapseState=function(O,ye,We){var Ze;if(O===this.root?Ze=!1:(W(ye)?(Ze=O.collapsible!==ye.collapsible,O.collapsible=ye.collapsible):O.collapsible?(Ze=O.collapsed!==ye.collapsed,O.collapsed=ye.collapsed):Ze=!1,Ze&&this._onDidChangeCollapseState.fire({node:O,deep:We})),!W(ye)&&ye.recursive)for(var st=0,pt=O.children;st<pt.length;st++){var Kt=pt[st];Ze=this._setNodeCollapseState(Kt,ye,!0)||Ze}return Ze},ge.prototype.expandTo=function(O){var ye=this;this.eventBufferer.bufferEvents(function(){for(var We=ye.getTreeNode(O);We.parent;)We=We.parent,O=O.slice(0,O.length-1),We.collapsed&&ye._setCollapseState(O,{collapsed:!1,recursive:!1})})},ge.prototype.refilter=function(){var O=this.root.renderNodeCount,ye=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,O,ye)},ge.prototype.createTreeNode=function(O,ye,We,Ze,st,pt){var Kt=this,Xt={parent:ye,element:O.element,children:[],depth:ye.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof O.collapsible=="boolean"?O.collapsible:typeof O.collapsed!="undefined",collapsed:typeof O.collapsed=="undefined"?this.collapseByDefault:O.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},on=this._filterNode(Xt,We);Ze&&st.push(Xt);var vn=F.d.from(O.children),dn=Ze&&on!==0&&!Xt.collapsed,Rn=F.d.map(vn,function(Pn){return Kt.createTreeNode(Pn,Xt,on,dn,st,pt)}),Sn=0,Ln=1;return F.d.forEach(Rn,function(Pn){Xt.children.push(Pn),Ln+=Pn.renderNodeCount,Pn.visible&&(Pn.visibleChildIndex=Sn++)}),Xt.collapsible=Xt.collapsible||Xt.children.length>0,Xt.visibleChildrenCount=Sn,Xt.visible=on===2?Sn>0:on===1,Xt.visible?Xt.collapsed||(Xt.renderNodeCount=Ln):(Xt.renderNodeCount=0,Ze&&st.pop()),pt&&pt(Xt),Xt},ge.prototype.updateNodeAfterCollapseChange=function(O){var ye=O.renderNodeCount,We=[];return this._updateNodeAfterCollapseChange(O,We),this._updateAncestorsRenderNodeCount(O.parent,We.length-ye),We},ge.prototype._updateNodeAfterCollapseChange=function(O,ye){if(O.visible===!1)return 0;if(ye.push(O),O.renderNodeCount=1,!O.collapsed)for(var We=0,Ze=O.children;We<Ze.length;We++){var st=Ze[We];O.renderNodeCount+=this._updateNodeAfterCollapseChange(st,ye)}return this._onDidChangeRenderNodeCount.fire(O),O.renderNodeCount},ge.prototype.updateNodeAfterFilterChange=function(O){var ye=O.renderNodeCount,We=[];return this._updateNodeAfterFilterChange(O,O.visible?1:0,We),this._updateAncestorsRenderNodeCount(O.parent,We.length-ye),We},ge.prototype._updateNodeAfterFilterChange=function(O,ye,We,Ze){Ze===void 0&&(Ze=!0);var st;if(O!==this.root){if(st=this._filterNode(O,ye),st===0)return O.visible=!1,O.renderNodeCount=0,!1;Ze&&We.push(O)}var pt=We.length;O.renderNodeCount=O===this.root?0:1;var Kt=!1;if(!O.collapsed||st!==0){for(var Xt=0,on=0,vn=O.children;on<vn.length;on++){var dn=vn[on];Kt=this._updateNodeAfterFilterChange(dn,st,We,Ze&&!O.collapsed)||Kt,dn.visible&&(dn.visibleChildIndex=Xt++)}O.visibleChildrenCount=Xt}else O.visibleChildrenCount=0;return O!==this.root&&(O.visible=st===2?Kt:st===1),O.visible?O.collapsed||(O.renderNodeCount+=We.length-pt):(O.renderNodeCount=0,Ze&&We.pop()),this._onDidChangeRenderNodeCount.fire(O),O.visible},ge.prototype._updateAncestorsRenderNodeCount=function(O,ye){if(ye===0)return;for(;O;)O.renderNodeCount+=ye,this._onDidChangeRenderNodeCount.fire(O),O=O.parent},ge.prototype._filterNode=function(O,ye){var We=this.filter?this.filter.filter(O.element,ye):1;return typeof We=="boolean"?(O.filterData=void 0,We?1:0):$(We)?(O.filterData=We.data,ie(We.visibility)):(O.filterData=void 0,ie(We))},ge.prototype.hasTreeNode=function(O,ye){if(ye===void 0&&(ye=this.root),!O||O.length===0)return!0;var We=O[0],Ze=O.slice(1);return We<0||We>ye.children.length?!1:this.hasTreeNode(Ze,ye.children[We])},ge.prototype.getTreeNode=function(O,ye){if(ye===void 0&&(ye=this.root),!O||O.length===0)return ye;var We=O[0],Ze=O.slice(1);if(We<0||We>ye.children.length)throw new _(this.user,"Invalid tree location");return this.getTreeNode(Ze,ye.children[We])},ge.prototype.getTreeNodeWithListIndex=function(O){if(O.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var ye=this.getParentNodeWithListIndex(O),We=ye.parentNode,Ze=ye.listIndex,st=ye.revealed,pt=ye.visible,Kt=O[O.length-1];if(Kt<0||Kt>We.children.length)throw new _(this.user,"Invalid tree location");var Xt=We.children[Kt];return{node:Xt,listIndex:Ze,revealed:st,visible:pt&&Xt.visible}},ge.prototype.getParentNodeWithListIndex=function(O,ye,We,Ze,st){ye===void 0&&(ye=this.root),We===void 0&&(We=0),Ze===void 0&&(Ze=!0),st===void 0&&(st=!0);var pt=O[0],Kt=O.slice(1);if(pt<0||pt>ye.children.length)throw new _(this.user,"Invalid tree location");for(var Xt=0;Xt<pt;Xt++)We+=ye.children[Xt].renderNodeCount;return Ze=Ze&&!ye.collapsed,st=st&&ye.visible,Kt.length===0?{parentNode:ye,listIndex:We,revealed:Ze,visible:st}:this.getParentNodeWithListIndex(Kt,ye.children[pt],We+1,Ze,st)},ge.prototype.getNode=function(O){return O===void 0&&(O=[]),this.getTreeNode(O)},ge.prototype.getNodeLocation=function(O){for(var ye=[],We=O;We.parent;)ye.push(We.parent.children.indexOf(We)),We=We.parent;return ye.reverse()},ge.prototype.getParentNodeLocation=function(O){return O.length===0?void 0:O.length===1?[]:Object(s.w)(O)[0]},ge}(),le=e("X+cX"),be=e("MNsG"),De=e("QDVR"),Te=e("Sdnv"),ke=e("vl9R"),He=function(){var ge=function(ye,We){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var pt in st)st.hasOwnProperty(pt)&&(Ze[pt]=st[pt])},ge(ye,We)};return function(O,ye){ge(O,ye);function We(){this.constructor=O}O.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),je=function(){return je=Object.assign||function(ge){for(var O,ye=1,We=arguments.length;ye<We;ye++){O=arguments[ye];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(ge[Ze]=O[Ze])}return ge},je.apply(this,arguments)},oe=function(){for(var ge=0,O=0,ye=arguments.length;O<ye;O++)ge+=arguments[O].length;for(var We=Array(ge),Ze=0,O=0;O<ye;O++)for(var st=arguments[O],pt=0,Kt=st.length;pt<Kt;pt++,Ze++)We[Ze]=st[pt];return We},ee=function(ge){He(O,ge);function O(ye){var We=ge.call(this,ye.elements.map(function(Ze){return Ze.element}))||this;return We.data=ye,We}return O}(l.a);function ae(ge){return ge instanceof l.a?new ee(ge):ge}var q=function(){function ge(O,ye){this.modelProvider=O,this.dnd=ye,this.autoExpandDisposable=J.a.None}return ge.prototype.getDragURI=function(O){return this.dnd.getDragURI(O.element)},ge.prototype.getDragLabel=function(O,ye){return this.dnd.getDragLabel?this.dnd.getDragLabel(O.map(function(We){return We.element}),ye):void 0},ge.prototype.onDragStart=function(O,ye){this.dnd.onDragStart&&this.dnd.onDragStart(ae(O),ye)},ge.prototype.onDragOver=function(O,ye,We,Ze,st){var pt=this;st===void 0&&(st=!0);var Kt=this.dnd.onDragOver(ae(O),ye&&ye.element,We,Ze),Xt=this.autoExpandNode!==ye;if(Xt&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=ye),typeof ye=="undefined")return Kt;if(Xt&&typeof Kt!="boolean"&&Kt.autoExpand&&(this.autoExpandDisposable=Object(le.g)(function(){var mo=pt.modelProvider(),Eo=mo.getNodeLocation(ye);mo.isCollapsed(Eo)&&mo.setCollapsed(Eo,!1),pt.autoExpandNode=void 0},500)),typeof Kt=="boolean"||!Kt.accept||typeof Kt.bubble=="undefined"||Kt.feedback){if(!st){var on=typeof Kt=="boolean"?Kt:Kt.accept,vn=typeof Kt=="boolean"?void 0:Kt.effect;return{accept:on,effect:vn,feedback:[We]}}return Kt}if(Kt.bubble===1){var dn=this.modelProvider(),Rn=dn.getNodeLocation(ye),Sn=dn.getParentNodeLocation(Rn),Ln=dn.getNode(Sn),Pn=Sn&&dn.getListIndex(Sn);return this.onDragOver(O,Ln,Pn,Ze,!1)}var Hn=this.modelProvider(),On=Hn.getNodeLocation(ye),An=Hn.getListIndex(On),to=Hn.getListRenderCount(On);return je(je({},Kt),{feedback:Object(s.u)(An,An+to)})},ge.prototype.drop=function(O,ye,We,Ze){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(ae(O),ye&&ye.element,We,Ze)},ge.prototype.onDragEnd=function(O){this.dnd.onDragEnd&&this.dnd.onDragEnd(O)},ge}();function ce(ge,O){return O&&je(je({},O),{identityProvider:O.identityProvider&&{getId:function(We){return O.identityProvider.getId(We.element)}},dnd:O.dnd&&new q(ge,O.dnd),multipleSelectionController:O.multipleSelectionController&&{isSelectionSingleChangeEvent:function(We){return O.multipleSelectionController.isSelectionSingleChangeEvent(je(je({},We),{element:We.element}))},isSelectionRangeChangeEvent:function(We){return O.multipleSelectionController.isSelectionRangeChangeEvent(je(je({},We),{element:We.element}))}},accessibilityProvider:O.accessibilityProvider&&je(je({},O.accessibilityProvider),{getAriaLabel:function(We){return O.accessibilityProvider.getAriaLabel(We.element)},getAriaLevel:function(We){return We.depth},getActiveDescendantId:O.accessibilityProvider.getActiveDescendantId&&function(ye){return O.accessibilityProvider.getActiveDescendantId(ye.element)}}),keyboardNavigationLabelProvider:O.keyboardNavigationLabelProvider&&je(je({},O.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(We){return O.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(We.element)}}),enableKeyboardNavigation:O.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(We){var Ze=ge(),st=Ze.getNodeLocation(We),pt=Ze.getParentNodeLocation(st),Kt=Ze.getNode(pt);return Kt.visibleChildrenCount},getPosInSet:function(We){return We.visibleChildIndex+1},isChecked:O.ariaProvider&&O.ariaProvider.isChecked?function(ye){return O.ariaProvider.isChecked(ye.element)}:void 0,getRole:O.ariaProvider&&O.ariaProvider.getRole?function(ye){return O.ariaProvider.getRole(ye.element)}:void 0}})}var X=function(){function ge(O){this.delegate=O}return ge.prototype.getHeight=function(O){return this.delegate.getHeight(O.element)},ge.prototype.getTemplateId=function(O){return this.delegate.getTemplateId(O.element)},ge.prototype.hasDynamicHeight=function(O){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(O.element)},ge.prototype.setDynamicHeight=function(O,ye){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(O.element,ye)},ge}(),he;(function(ge){ge.None="none",ge.OnHover="onHover",ge.Always="always"})(he||(he={}));var Pe=function(){function ge(O,ye){var We=this;ye===void 0&&(ye=[]),this._elements=ye,this.onDidChange=S.b.forEach(O,function(Ze){return We._elements=Ze})}return Object.defineProperty(ge.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),ge}(),Xe=function(){function ge(O,ye,We,Ze,st){st===void 0&&(st={}),this.renderer=O,this.modelProvider=ye,this.activeNodes=Ze,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=ge.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new ke.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=J.a.None,this.disposables=new J.b,this.templateId=O.templateId,this.updateOptions(st),S.b.map(We,function(pt){return pt.node})(this.onDidChangeNodeTwistieState,this,this.disposables),O.onDidChangeTwistieState&&O.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}return ge.prototype.updateOptions=function(O){if(O===void 0&&(O={}),typeof O.indent!="undefined"&&(this.indent=Object(Te.a)(O.indent,0,40)),typeof O.renderIndentGuides!="undefined"){var ye=O.renderIndentGuides!==he.None;if(ye!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=ye,this.indentGuidesDisposable.dispose(),ye)){var We=new J.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,We),this.indentGuidesDisposable=We,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof O.hideTwistiesOfChildlessElements!="undefined"&&(this.hideTwistiesOfChildlessElements=O.hideTwistiesOfChildlessElements)},ge.prototype.renderTemplate=function(O){var ye=Object(T.q)(O,Object(T.a)(".monaco-tl-row")),We=Object(T.q)(ye,Object(T.a)(".monaco-tl-indent")),Ze=Object(T.q)(ye,Object(T.a)(".monaco-tl-twistie")),st=Object(T.q)(ye,Object(T.a)(".monaco-tl-contents")),pt=this.renderer.renderTemplate(st);return{container:O,indent:We,twistie:Ze,indentGuidesDisposable:J.a.None,templateData:pt}},ge.prototype.renderElement=function(O,ye,We,Ze){typeof Ze=="number"&&(this.renderedNodes.set(O,{templateData:We,height:Ze}),this.renderedElements.set(O.element,O));var st=ge.DefaultIndent+(O.depth-1)*this.indent;We.twistie.style.paddingLeft=st+"px",We.indent.style.width=st+this.indent-16+"px",this.renderTwistie(O,We),typeof Ze=="number"&&this.renderIndentGuides(O,We),this.renderer.renderElement(O,ye,We.templateData,Ze)},ge.prototype.disposeElement=function(O,ye,We,Ze){We.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(O,ye,We.templateData,Ze),typeof Ze=="number"&&(this.renderedNodes.delete(O),this.renderedElements.delete(O.element))},ge.prototype.disposeTemplate=function(O){this.renderer.disposeTemplate(O.templateData)},ge.prototype.onDidChangeTwistieState=function(O){var ye=this.renderedElements.get(O);if(!ye)return;this.onDidChangeNodeTwistieState(ye)},ge.prototype.onDidChangeNodeTwistieState=function(O){var ye=this.renderedNodes.get(O);if(!ye)return;this.renderTwistie(O,ye.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(O,ye.templateData)},ge.prototype.renderTwistie=function(O,ye){this.renderer.renderTwistie&&this.renderer.renderTwistie(O.element,ye.twistie),O.collapsible&&(!this.hideTwistiesOfChildlessElements||O.visibleChildrenCount>0)?(Object(T.g)(ye.twistie,"codicon","codicon-chevron-down","collapsible"),Object(T.Y)(ye.twistie,"collapsed",O.collapsed)):Object(T.Q)(ye.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),O.collapsible?ye.container.setAttribute("aria-expanded",String(!O.collapsed)):ye.container.removeAttribute("aria-expanded")},ge.prototype.renderIndentGuides=function(O,ye){var We=this;if(Object(T.t)(ye.indent),ye.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;for(var Ze=new J.b,st=this.modelProvider(),pt=O,Kt=function(){var dn=st.getNodeLocation(pt),Rn=st.getParentNodeLocation(dn);if(!Rn)return"break";var Sn=st.getNode(Rn),Ln=Object(T.a)(".indent-guide",{style:"width: "+Xt.indent+"px"});Xt.activeIndentNodes.has(Sn)&&Object(T.f)(Ln,"active"),ye.indent.childElementCount===0?ye.indent.appendChild(Ln):ye.indent.insertBefore(Ln,ye.indent.firstElementChild),Xt.renderedIndentGuides.add(Sn,Ln),Ze.add(Object(J.h)(function(){return We.renderedIndentGuides.delete(Sn,Ln)})),pt=Sn},Xt=this;;){var on=Kt();if(on==="break")break}ye.indentGuidesDisposable=Ze},ge.prototype._onDidChangeActiveNodes=function(O){var ye=this;if(!this.shouldRenderIndentGuides)return;var We=new Set,Ze=this.modelProvider();O.forEach(function(st){var pt=Ze.getNodeLocation(st);try{var Kt=Ze.getParentNodeLocation(pt);st.collapsible&&st.children.length>0&&!st.collapsed?We.add(st):Kt&&We.add(Ze.getNode(Kt))}catch(Xt){}}),this.activeIndentNodes.forEach(function(st){We.has(st)||ye.renderedIndentGuides.forEach(st,function(pt){return Object(T.P)(pt,"active")})}),We.forEach(function(st){ye.activeIndentNodes.has(st)||ye.renderedIndentGuides.forEach(st,function(pt){return Object(T.f)(pt,"active")})}),this.activeIndentNodes=We},ge.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(J.f)(this.disposables)},ge.DefaultIndent=8,ge}(),pe=function(){function ge(O,ye,We){this.tree=O,this.keyboardNavigationLabelProvider=ye,this._filter=We,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new J.b,O.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(ge.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"pattern",{set:function(ye){this._pattern=ye,this._lowercasePattern=ye.toLowerCase()},enumerable:!0,configurable:!0}),ge.prototype.filter=function(O,ye){if(this._filter){var We=this._filter.filter(O,ye);if(this.tree.options.simpleKeyboardNavigation)return We;var Ze=void 0;if(typeof We=="boolean"?Ze=We?1:0:$(We)?Ze=ie(We.visibility):Ze=We,Ze===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:p.a.Default,visibility:!0};var st=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(O),pt=st&&st.toString();if(typeof pt=="undefined")return{data:p.a.Default,visibility:!0};var Kt=Object(p.d)(this._pattern,this._lowercasePattern,0,pt,pt.toLowerCase(),0,!0);return Kt?(this._matchCount++,{data:Kt,visibility:!0}):this.tree.options.filterOnType?2:{data:p.a.Default,visibility:!0}},ge.prototype.reset=function(){this._totalCount=0,this._matchCount=0},ge.prototype.dispose=function(){Object(J.f)(this.disposables)},ge}(),me=function(){function ge(O,ye,We,Ze,st){this.tree=O,this.view=We,this.filter=Ze,this.keyboardNavigationDelegate=st,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new S.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new S.a,this.enabledDisposables=new J.b,this.disposables=new J.b,this.domNode=Object(T.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(d.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(T.q)(We.getHTMLElement(),Object(T.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(T.q)(this.domNode,Object(T.a)("span.label"));var pt=Object(T.q)(this.domNode,Object(T.a)(".controls"));this._filterOnType=!!O.options.filterOnType,this.filterOnTypeDomNode=Object(T.q)(pt,Object(T.a)("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(d.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(T.q)(pt,Object(T.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(N.a)("clear","Clear"),this.keyboardNavigationEventFilter=O.options.keyboardNavigationEventFilter,ye.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(O.options)}return Object.defineProperty(ge.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),ge.prototype.updateOptions=function(O){O.simpleKeyboardNavigation?this.disable():this.enable(),typeof O.filterOnType!="undefined"&&(this._filterOnType=!!O.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),typeof O.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=O.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},ge.prototype.enable=function(){var O=this;if(this._enabled)return;var ye=S.b.chain(Object(d.a)(this.view.getHTMLElement(),"keydown")).filter(function(Ze){return!Se(Ze.target)||Ze.target===O.filterOnTypeDomNode}).filter(function(Ze){return Ze.key!=="Dead"&&!/^Media/.test(Ze.key)}).map(function(Ze){return new g.a(Ze)}).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter(function(){return O.automaticKeyboardNavigation||O.triggered}).filter(function(Ze){return O.keyboardNavigationDelegate.mightProducePrintableCharacter(Ze)||(O.pattern.length>0||O.triggered)&&(Ze.keyCode===9||Ze.keyCode===1)&&!Ze.altKey&&!Ze.ctrlKey&&!Ze.metaKey||Ze.keyCode===1&&(be.e?Ze.altKey&&!Ze.metaKey:Ze.ctrlKey)&&!Ze.shiftKey}).forEach(function(Ze){Ze.stopPropagation(),Ze.preventDefault()}).event,We=Object(d.a)(this.clearDomNode,"click");S.b.chain(S.b.any(ye,We)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1},ge.prototype.disable=function(){if(!this._enabled)return;this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1},ge.prototype.onEventOrInput=function(O){typeof O=="string"?this.onInput(O):O instanceof MouseEvent||O.keyCode===9||O.keyCode===1&&(be.e?O.altKey:O.ctrlKey)?this.onInput(""):O.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+O.browserEvent.key)},ge.prototype.onInput=function(O){var ye=this.view.getHTMLElement();O&&!this.domNode.parentElement?ye.append(this.domNode):!O&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=O,this._onDidChangePattern.fire(O),this.filter.pattern=O,this.tree.refilter(),O&&this.tree.focusNext(0,!0,void 0,function(st){return!p.a.isDefault(st.filterData)});var We=this.tree.getFocus();if(We.length>0){var Ze=We[0];this.tree.getRelativeTop(Ze)===null&&this.tree.reveal(Ze,.5)}this.render(),O||(this.triggered=!1)},ge.prototype.onDragStart=function(){var O=this,ye=this.view.getHTMLElement(),We=Object(T.C)(ye).left,Ze=ye.clientWidth,st=Ze/2,pt=this.domNode.clientWidth,Kt=new J.b,Xt=this.positionClassName,on=function(){switch(Xt){case"nw":O.domNode.style.top="4px",O.domNode.style.left="4px";break;case"ne":O.domNode.style.top="4px",O.domNode.style.left=Ze-pt-6+"px";break}},vn=function(Sn){Sn.preventDefault();var Ln=Sn.screenX-We;Sn.dataTransfer&&(Sn.dataTransfer.dropEffect="none"),Ln<st?Xt="nw":Xt="ne",on()},dn=function(){O.positionClassName=Xt,O.domNode.className="monaco-list-type-filter "+O.positionClassName,O.domNode.style.top="",O.domNode.style.left="",Object(J.f)(Kt)};on(),Object(T.P)(this.domNode,Xt),Object(T.f)(this.domNode,"dragging"),Kt.add(Object(J.h)(function(){return Object(T.P)(O.domNode,"dragging")})),Object(d.a)(document,"dragover")(vn,null,Kt),Object(d.a)(this.domNode,"dragend")(dn,null,Kt),u.c.CurrentDragAndDropData=new u.b("vscode-ui"),Kt.add(Object(J.h)(function(){return u.c.CurrentDragAndDropData=void 0}))},ge.prototype.onDidSpliceModel=function(){if(!this._enabled||this.pattern.length===0)return;this.tree.refilter(),this.render()},ge.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},ge.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(N.a)("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(N.a)("enable filter on type","Enable Filter on Type")},ge.prototype.render=function(){var O=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&O?(this.messageDomNode.textContent=Object(N.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(T.Y)(this.domNode,"no-matches",O),this.domNode.title=Object(N.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},ge.prototype.shouldAllowFocus=function(O){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!p.a.isDefault(O.filterData)},ge.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(J.f)(this.disposables)},ge}();function Se(ge){return ge.tagName==="INPUT"||ge.tagName==="TEXTAREA"}function Re(ge){return{elements:ge.elements.map(function(O){return O.element}),browserEvent:ge.browserEvent}}function Ee(ge,O){O(ge),ge.children.forEach(function(ye){return Ee(ye,O)})}var ve=function(){function ge(O){this.identityProvider=O,this.nodes=[],this._onDidChange=new S.a,this.onDidChange=this._onDidChange.event}return Object.defineProperty(ge.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),ge.prototype.set=function(O,ye){if(Object(s.g)(this.nodes,O))return;this._set(O,!1,ye)},ge.prototype._set=function(O,ye,We){if(this.nodes=oe(O),this.elements=void 0,this._nodeSet=void 0,!ye){var Ze=this;this._onDidChange.fire({get elements(){return Ze.get()},browserEvent:We})}},ge.prototype.get=function(){return this.elements||(this.elements=this.nodes.map(function(O){return O.element})),oe(this.elements)},ge.prototype.getNodes=function(){return this.nodes},ge.prototype.has=function(O){return this.nodeSet.has(O)},ge.prototype.onDidModelSplice=function(O){var ye=this,We=O.insertedNodes,Ze=O.deletedNodes;if(!this.identityProvider){var st=this.createNodeSet(),pt=function(to){return st.delete(to)};Ze.forEach(function(An){return Ee(An,pt)}),this.set(Object(De.e)(st));return}var Kt=new Set,Xt=function(to){return Kt.add(ye.identityProvider.getId(to.element).toString())};Ze.forEach(function(An){return Ee(An,Xt)});var on=new Map,vn=function(to){return on.set(ye.identityProvider.getId(to.element).toString(),to)};We.forEach(function(An){return Ee(An,vn)});for(var dn=[],Rn=0,Sn=this.nodes;Rn<Sn.length;Rn++){var Ln=Sn[Rn],Pn=this.identityProvider.getId(Ln.element).toString(),Hn=Kt.has(Pn);if(!Hn)dn.push(Ln);else{var On=on.get(Pn);On&&dn.push(On)}}this._set(dn,!0)},ge.prototype.createNodeSet=function(){for(var O=new Set,ye=0,We=this.nodes;ye<We.length;ye++){var Ze=We[ye];O.add(Ze)}return O},ge}(),Q=function(ge){He(O,ge);function O(ye,We){var Ze=ge.call(this,ye)||this;return Ze.tree=We,Ze}return O.prototype.onPointer=function(ye){if(Se(ye.browserEvent.target))return;var We=ye.element;if(!We)return ge.prototype.onPointer.call(this,ye);if(this.isSelectionRangeChangeEvent(ye)||this.isSelectionSingleChangeEvent(ye))return ge.prototype.onPointer.call(this,ye);var Ze=Object(T.I)(ye.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&ye.browserEvent.detail!==2&&!Ze)return ge.prototype.onPointer.call(this,ye);var st=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?st=this.tree.expandOnlyOnTwistieClick(We.element):st=!!this.tree.expandOnlyOnTwistieClick,st&&!Ze)return ge.prototype.onPointer.call(this,ye);if(We.collapsible){var pt=this.tree.model,Kt=pt.getNodeLocation(We),Xt=ye.browserEvent.altKey;if(pt.setCollapsed(Kt,void 0,Xt),st&&Ze)return}ge.prototype.onPointer.call(this,ye)},O.prototype.onDoubleClick=function(ye){var We=Object(T.I)(ye.browserEvent.target,"monaco-tl-twistie");if(We)return;ge.prototype.onDoubleClick.call(this,ye)},O}(re.d),b=function(ge){He(O,ge);function O(ye,We,Ze,st,pt,Kt,Xt){var on=ge.call(this,ye,We,Ze,st,Xt)||this;return on.focusTrait=pt,on.selectionTrait=Kt,on}return O.prototype.createMouseController=function(ye){return new Q(this,ye.tree)},O.prototype.splice=function(ye,We,Ze){var st=this;if(Ze===void 0&&(Ze=[]),ge.prototype.splice.call(this,ye,We,Ze),Ze.length===0)return;var pt=[],Kt=[];Ze.forEach(function(Xt,on){st.focusTrait.has(Xt)&&pt.push(ye+on),st.selectionTrait.has(Xt)&&Kt.push(ye+on)}),pt.length>0&&ge.prototype.setFocus.call(this,Object(s.f)(oe(ge.prototype.getFocus.call(this),pt))),Kt.length>0&&ge.prototype.setSelection.call(this,Object(s.f)(oe(ge.prototype.getSelection.call(this),Kt)))},O.prototype.setFocus=function(ye,We,Ze){var st=this;Ze===void 0&&(Ze=!1),ge.prototype.setFocus.call(this,ye,We),Ze||this.focusTrait.set(ye.map(function(pt){return st.element(pt)}),We)},O.prototype.setSelection=function(ye,We,Ze){var st=this;Ze===void 0&&(Ze=!1),ge.prototype.setSelection.call(this,ye,We),Ze||this.selectionTrait.set(ye.map(function(pt){return st.element(pt)}),We)},O}(re.c),k=function(){function ge(O,ye,We,Ze,st){var pt=this;st===void 0&&(st={}),this._options=st,this.eventBufferer=new S.c,this.disposables=new J.b,this._onWillRefilter=new S.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new S.a;var Kt=new X(We),Xt=new S.f,on=new S.f,vn=new Pe(on.event);this.renderers=Ze.map(function(An){return new Xe(An,function(){return pt.model},Xt.event,vn,st)});for(var dn=0,Rn=this.renderers;dn<Rn.length;dn++){var Sn=Rn[dn];this.disposables.add(Sn)}var Ln;st.keyboardNavigationLabelProvider&&(Ln=new pe(this,st.keyboardNavigationLabelProvider,st.filter),st=je(je({},st),{filter:Ln}),this.disposables.add(Ln)),this.focus=new ve(st.identityProvider),this.selection=new ve(st.identityProvider),this.view=new b(O,ye,Kt,this.renderers,this.focus,this.selection,je(je({},ce(function(){return pt.model},st)),{tree:this})),this.model=this.createModel(O,this.view,st),Xt.input=this.model.onDidChangeCollapseState;var Pn=S.b.forEach(this.model.onDidSplice,function(An){pt.eventBufferer.bufferEvents(function(){pt.focus.onDidModelSplice(An),pt.selection.onDidModelSplice(An)})});if(Pn(function(){return null},null,this.disposables),on.input=S.b.chain(S.b.any(Pn,this.focus.onDidChange,this.selection.onDidChange)).debounce(function(){return null},0).map(function(){for(var An=new Set,to=0,mo=pt.focus.getNodes();to<mo.length;to++){var Eo=mo[to];An.add(Eo)}for(var no=0,Mo=pt.selection.getNodes();no<Mo.length;no++){var Eo=Mo[no];An.add(Eo)}return Object(s.n)(An)}).event,st.keyboardSupport!==!1){var Hn=S.b.chain(this.view.onKeyDown).filter(function(An){return!Se(An.target)}).map(function(An){return new g.a(An)});Hn.filter(function(An){return An.keyCode===15}).on(this.onLeftArrow,this,this.disposables),Hn.filter(function(An){return An.keyCode===17}).on(this.onRightArrow,this,this.disposables),Hn.filter(function(An){return An.keyCode===10}).on(this.onSpace,this,this.disposables)}if(st.keyboardNavigationLabelProvider){var On=st.keyboardNavigationDelegate||re.a;this.typeFilterController=new me(this,this.model,this.view,Ln,On),this.focusNavigationFilter=function(An){return pt.typeFilterController.shouldAllowFocus(An)},this.disposables.add(this.typeFilterController)}this.styleElement=Object(T.w)(this.view.getHTMLElement()),Object(T.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===he.Always)}return Object.defineProperty(ge.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"onDidOpen",{get:function(){return S.b.map(this.view.onDidOpen,Re)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"openOnSingleClick",{get:function(){return typeof this._options.openOnSingleClick=="undefined"?!0:this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"expandOnlyOnTwistieClick",{get:function(){return typeof this._options.expandOnlyOnTwistieClick=="undefined"?!1:this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),ge.prototype.updateOptions=function(O){O===void 0&&(O={}),this._options=je(je({},this._options),O);for(var ye=0,We=this.renderers;ye<We.length;ye++){var Ze=We[ye];Ze.updateOptions(O)}this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(T.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===he.Always)},Object.defineProperty(ge.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),ge.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(ge.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(ye){this.view.scrollTop=ye},enumerable:!0,configurable:!0}),ge.prototype.domFocus=function(){this.view.domFocus()},ge.prototype.layout=function(O,ye){this.view.layout(O,ye)},ge.prototype.style=function(O){var ye="."+this.view.domId,We=[];O.treeIndentGuidesStroke&&(We.push(".monaco-list"+ye+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+ye+".always .monaco-tl-indent > .indent-guide { border-color: "+O.treeIndentGuidesStroke.transparent(.4)+"; }"),We.push(".monaco-list"+ye+" .monaco-tl-indent > .indent-guide.active { border-color: "+O.treeIndentGuidesStroke+"; }"));var Ze=We.join(`
`);Ze!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=Ze),this.view.style(O)},ge.prototype.collapse=function(O,ye){return ye===void 0&&(ye=!1),this.model.setCollapsed(O,!0,ye)},ge.prototype.expand=function(O,ye){return ye===void 0&&(ye=!1),this.model.setCollapsed(O,!1,ye)},ge.prototype.isCollapsible=function(O){return this.model.isCollapsible(O)},ge.prototype.setCollapsible=function(O,ye){return this.model.setCollapsible(O,ye)},ge.prototype.isCollapsed=function(O){return this.model.isCollapsed(O)},ge.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},ge.prototype.setSelection=function(O,ye){var We=this,Ze=O.map(function(pt){return We.model.getNode(pt)});this.selection.set(Ze,ye);var st=O.map(function(pt){return We.model.getListIndex(pt)}).filter(function(pt){return pt>-1});this.view.setSelection(st,ye,!0)},ge.prototype.getSelection=function(){return this.selection.get()},ge.prototype.setFocus=function(O,ye){var We=this,Ze=O.map(function(pt){return We.model.getNode(pt)});this.focus.set(Ze,ye);var st=O.map(function(pt){return We.model.getListIndex(pt)}).filter(function(pt){return pt>-1});this.view.setFocus(st,ye,!0)},ge.prototype.focusNext=function(O,ye,We,Ze){O===void 0&&(O=1),ye===void 0&&(ye=!1),Ze===void 0&&(Ze=this.focusNavigationFilter),this.view.focusNext(O,ye,We,Ze)},ge.prototype.getFocus=function(){return this.focus.get()},ge.prototype.reveal=function(O,ye){this.model.expandTo(O);var We=this.model.getListIndex(O);if(We===-1)return;this.view.reveal(We,ye)},ge.prototype.getRelativeTop=function(O){var ye=this.model.getListIndex(O);return ye===-1?null:this.view.getRelativeTop(ye)},ge.prototype.onLeftArrow=function(O){O.preventDefault(),O.stopPropagation();var ye=this.view.getFocusedElements();if(ye.length===0)return;var We=ye[0],Ze=this.model.getNodeLocation(We),st=this.model.setCollapsed(Ze,!0);if(!st){var pt=this.model.getParentNodeLocation(Ze);if(!pt)return;var Kt=this.model.getListIndex(pt);this.view.reveal(Kt),this.view.setFocus([Kt])}},ge.prototype.onRightArrow=function(O){O.preventDefault(),O.stopPropagation();var ye=this.view.getFocusedElements();if(ye.length===0)return;var We=ye[0],Ze=this.model.getNodeLocation(We),st=this.model.setCollapsed(Ze,!1);if(!st){if(!We.children.some(function(Xt){return Xt.visible}))return;var pt=this.view.getFocus()[0],Kt=pt+1;this.view.reveal(Kt),this.view.setFocus([Kt])}},ge.prototype.onSpace=function(O){O.preventDefault(),O.stopPropagation();var ye=this.view.getFocusedElements();if(ye.length===0)return;var We=ye[0],Ze=this.model.getNodeLocation(We),st=O.browserEvent.altKey;this.model.setCollapsed(Ze,void 0,st)},ge.prototype.dispose=function(){Object(J.f)(this.disposables),this.view.dispose()},ge}(),se=function(){return se=Object.assign||function(ge){for(var O,ye=1,We=arguments.length;ye<We;ye++){O=arguments[ye];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(ge[Ze]=O[Ze])}return ge},se.apply(this,arguments)},ne=function(){for(var ge=0,O=0,ye=arguments.length;O<ye;O++)ge+=arguments[O].length;for(var We=Array(ge),Ze=0,O=0;O<ye;O++)for(var st=arguments[O],pt=0,Kt=st.length;pt<Kt;pt++,Ze++)We[Ze]=st[pt];return We},Ce=function(){function ge(O,ye,We){We===void 0&&(We={}),this.user=O,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new B(O,ye,null,We),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,We.sorter&&(this.sorter={compare:function(st,pt){return We.sorter.compare(st.element,pt.element)}}),this.identityProvider=We.identityProvider}return ge.prototype.setChildren=function(O,ye,We,Ze){var st=this.getElementLocation(O);this._setChildren(st,this.preserveCollapseState(ye),We,Ze)},ge.prototype._setChildren=function(O,ye,We,Ze){var st=this,pt=new Set,Kt=new Set,Xt=function(dn){if(pt.add(dn.element),st.nodes.set(dn.element,dn),st.identityProvider){var Rn=st.identityProvider.getId(dn.element).toString();Kt.add(Rn),st.nodesByIdentity.set(Rn,dn)}We&&We(dn)},on=function(dn){if(pt.has(dn.element)||st.nodes.delete(dn.element),st.identityProvider){var Rn=st.identityProvider.getId(dn.element).toString();Kt.has(Rn)||st.nodesByIdentity.delete(Rn)}Ze&&Ze(dn)};this.model.splice(ne(O,[0]),Number.MAX_VALUE,ye,Xt,on)},ge.prototype.preserveCollapseState=function(O){var ye=this,We=O?Object(F.f)(O):F.d.empty();return this.sorter&&(We=F.d.fromArray(Object(s.r)(F.d.collect(We),this.sorter.compare.bind(this.sorter)))),F.d.map(We,function(Ze){var st=ye.nodes.get(Ze.element);if(!st&&ye.identityProvider){var pt=ye.identityProvider.getId(Ze.element).toString();st=ye.nodesByIdentity.get(pt)}if(!st)return se(se({},Ze),{children:ye.preserveCollapseState(Ze.children)});var Kt=typeof Ze.collapsible=="boolean"?Ze.collapsible:st.collapsible,Xt=typeof Ze.collapsed!="undefined"?Ze.collapsed:st.collapsed;return se(se({},Ze),{collapsible:Kt,collapsed:Xt,children:ye.preserveCollapseState(Ze.children)})})},ge.prototype.rerender=function(O){var ye=this.getElementLocation(O);this.model.rerender(ye)},ge.prototype.has=function(O){return this.nodes.has(O)},ge.prototype.getListIndex=function(O){var ye=this.getElementLocation(O);return this.model.getListIndex(ye)},ge.prototype.getListRenderCount=function(O){var ye=this.getElementLocation(O);return this.model.getListRenderCount(ye)},ge.prototype.isCollapsible=function(O){var ye=this.getElementLocation(O);return this.model.isCollapsible(ye)},ge.prototype.setCollapsible=function(O,ye){var We=this.getElementLocation(O);return this.model.setCollapsible(We,ye)},ge.prototype.isCollapsed=function(O){var ye=this.getElementLocation(O);return this.model.isCollapsed(ye)},ge.prototype.setCollapsed=function(O,ye,We){var Ze=this.getElementLocation(O);return this.model.setCollapsed(Ze,ye,We)},ge.prototype.expandTo=function(O){var ye=this.getElementLocation(O);this.model.expandTo(ye)},ge.prototype.refilter=function(){this.model.refilter()},ge.prototype.getNode=function(O){if(O===void 0&&(O=null),O===null)return this.model.getNode(this.model.rootRef);var ye=this.nodes.get(O);if(!ye)throw new _(this.user,"Tree element not found: "+O);return ye},ge.prototype.getNodeLocation=function(O){return O.element},ge.prototype.getParentNodeLocation=function(O){if(O===null)throw new _(this.user,"Invalid getParentNodeLocation call");var ye=this.nodes.get(O);if(!ye)throw new _(this.user,"Tree element not found: "+O);var We=this.model.getNodeLocation(ye),Ze=this.model.getParentNodeLocation(We),st=this.model.getNode(Ze);return st.element},ge.prototype.getElementLocation=function(O){if(O===null)return[];var ye=this.nodes.get(O);if(!ye)throw new _(this.user,"Tree element not found: "+O);return this.model.getNodeLocation(ye)},ge}(),Oe=function(){return Oe=Object.assign||function(ge){for(var O,ye=1,We=arguments.length;ye<We;ye++){O=arguments[ye];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(ge[Ze]=O[Ze])}return ge},Oe.apply(this,arguments)};function we(ge){var O=[ge.element],ye=ge.incompressible||!1;return{element:{elements:O,incompressible:ye},children:F.d.map(F.d.from(ge.children),we),collapsible:ge.collapsible,collapsed:ge.collapsed}}function Ve(ge){for(var O=[ge.element],ye=ge.incompressible||!1,We,Ze;!(We=F.d.from(ge.children),Ze=F.d.collect(We,2),Ze.length!==1);){if(ge=Ze[0],ge.incompressible)break;O.push(ge.element)}return{element:{elements:O,incompressible:ye},children:F.d.map(F.d.concat(F.d.fromArray(Ze),We),Ve),collapsible:ge.collapsible,collapsed:ge.collapsed}}function Qe(ge,O){O===void 0&&(O=0);var ye;return O<ge.element.elements.length-1?ye=F.d.single(Qe(ge,O+1)):ye=F.d.map(F.d.from(ge.children),function(We){return Qe(We,0)}),O===0&&ge.element.incompressible?{element:ge.element.elements[O],children:ye,incompressible:!0,collapsible:ge.collapsible,collapsed:ge.collapsed}:{element:ge.element.elements[O],children:ye,collapsible:ge.collapsible,collapsed:ge.collapsed}}function it(ge){return Qe(ge,0)}function gt(ge,O,ye){return ge.element===O?Oe(Oe({},ge),{children:ye}):Oe(Oe({},ge),{children:F.d.map(F.d.from(ge.children),function(We){return gt(We,O,ye)})})}var Rt=function(){function ge(O,ye,We){We===void 0&&(We={}),this.user=O,this.nodes=new Map,this.model=new Ce(O,ye,We),this.enabled=typeof We.compressionEnabled=="undefined"?!0:We.compressionEnabled}return Object.defineProperty(ge.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),ge.prototype.setChildren=function(O,ye){if(O===null){var We=F.d.map(F.d.from(ye),this.enabled?Ve:we);this._setChildren(null,We);return}var Ze=this.nodes.get(O);if(!Ze)throw new Error("Unknown compressed tree node");var st=this.model.getNode(Ze),pt=this.model.getParentNodeLocation(Ze),Kt=this.model.getNode(pt),Xt=it(st),on=gt(Xt,O,F.d.from(ye)),vn=(this.enabled?Ve:we)(on),dn=Kt.children.map(function(Rn){return Rn===st?vn:Rn});this._setChildren(Kt.element,dn)},ge.prototype.setCompressionEnabled=function(O){if(O===this.enabled)return;this.enabled=O;var ye=this.model.getNode(),We=F.d.from(ye.children),Ze=F.d.map(We,it),st=F.d.map(Ze,O?Ve:we);this._setChildren(null,st)},ge.prototype._setChildren=function(O,ye){var We=this,Ze=new Set,st=function(Xt){for(var on=0,vn=Xt.element.elements;on<vn.length;on++){var dn=vn[on];Ze.add(dn),We.nodes.set(dn,Xt.element)}},pt=function(Xt){for(var on=0,vn=Xt.element.elements;on<vn.length;on++){var dn=vn[on];Ze.has(dn)||We.nodes.delete(dn)}};this.model.setChildren(O,ye,st,pt)},ge.prototype.has=function(O){return this.nodes.has(O)},ge.prototype.getListIndex=function(O){var ye=this.getCompressedNode(O);return this.model.getListIndex(ye)},ge.prototype.getListRenderCount=function(O){var ye=this.getCompressedNode(O);return this.model.getListRenderCount(ye)},ge.prototype.getNode=function(O){if(typeof O=="undefined")return this.model.getNode();var ye=this.getCompressedNode(O);return this.model.getNode(ye)},ge.prototype.getNodeLocation=function(O){var ye=this.model.getNodeLocation(O);return ye===null?null:ye.elements[ye.elements.length-1]},ge.prototype.getParentNodeLocation=function(O){var ye=this.getCompressedNode(O),We=this.model.getParentNodeLocation(ye);return We===null?null:We.elements[We.elements.length-1]},ge.prototype.isCollapsible=function(O){var ye=this.getCompressedNode(O);return this.model.isCollapsible(ye)},ge.prototype.setCollapsible=function(O,ye){var We=this.getCompressedNode(O);return this.model.setCollapsible(We,ye)},ge.prototype.isCollapsed=function(O){var ye=this.getCompressedNode(O);return this.model.isCollapsed(ye)},ge.prototype.setCollapsed=function(O,ye,We){var Ze=this.getCompressedNode(O);return this.model.setCollapsed(Ze,ye,We)},ge.prototype.expandTo=function(O){var ye=this.getCompressedNode(O);this.model.expandTo(ye)},ge.prototype.rerender=function(O){var ye=this.getCompressedNode(O);this.model.rerender(ye)},ge.prototype.refilter=function(){this.model.refilter()},ge.prototype.getCompressedNode=function(O){if(O===null)return null;var ye=this.nodes.get(O);if(!ye)throw new _(this.user,"Tree element not found: "+O);return ye},ge}(),Dt=function(O){return O[O.length-1]},zt=function(){function ge(O,ye){this.unwrapper=O,this.node=ye}return Object.defineProperty(ge.prototype,"element",{get:function(){return this.node.element===null?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"children",{get:function(){var ye=this;return this.node.children.map(function(We){return new ge(ye.unwrapper,We)})},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),ge}();function cn(ge,O){return{splice:function(We,Ze,st){O.splice(We,Ze,st.map(function(pt){return ge.map(pt)}))}}}function ln(ge,O){return Oe(Oe({},O),{sorter:O.sorter&&{compare:function(We,Ze){return O.sorter.compare(We.elements[0],Ze.elements[0])}},identityProvider:O.identityProvider&&{getId:function(We){return O.identityProvider.getId(ge(We))}},filter:O.filter&&{filter:function(We,Ze){return O.filter.filter(ge(We),Ze)}}})}var an=function(){function ge(O,ye,We){var Ze=this;We===void 0&&(We={}),this.elementMapper=We.elementMapper||Dt;var st=function(Kt){return Ze.elementMapper(Kt.elements)};this.nodeMapper=new x(function(pt){return new zt(st,pt)}),this.model=new Rt(O,cn(this.nodeMapper,ye),ln(st,We))}return Object.defineProperty(ge.prototype,"onDidSplice",{get:function(){var ye=this;return S.b.map(this.model.onDidSplice,function(We){var Ze=We.insertedNodes,st=We.deletedNodes;return{insertedNodes:Ze.map(function(pt){return ye.nodeMapper.map(pt)}),deletedNodes:st.map(function(pt){return ye.nodeMapper.map(pt)})}})},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"onDidChangeCollapseState",{get:function(){var ye=this;return S.b.map(this.model.onDidChangeCollapseState,function(We){var Ze=We.node,st=We.deep;return{node:ye.nodeMapper.map(Ze),deep:st}})},enumerable:!0,configurable:!0}),ge.prototype.setChildren=function(O,ye){this.model.setChildren(O,ye)},ge.prototype.setCompressionEnabled=function(O){this.model.setCompressionEnabled(O)},ge.prototype.has=function(O){return this.model.has(O)},ge.prototype.getListIndex=function(O){return this.model.getListIndex(O)},ge.prototype.getListRenderCount=function(O){return this.model.getListRenderCount(O)},ge.prototype.getNode=function(O){return this.nodeMapper.map(this.model.getNode(O))},ge.prototype.getNodeLocation=function(O){return O.element},ge.prototype.getParentNodeLocation=function(O){return this.model.getParentNodeLocation(O)},ge.prototype.isCollapsible=function(O){return this.model.isCollapsible(O)},ge.prototype.setCollapsible=function(O,ye){return this.model.setCollapsible(O,ye)},ge.prototype.isCollapsed=function(O){return this.model.isCollapsed(O)},ge.prototype.setCollapsed=function(O,ye,We){return this.model.setCollapsed(O,ye,We)},ge.prototype.expandTo=function(O){return this.model.expandTo(O)},ge.prototype.rerender=function(O){return this.model.rerender(O)},ge.prototype.refilter=function(){return this.model.refilter()},ge.prototype.getCompressedTreeNode=function(O){return O===void 0&&(O=null),this.model.getNode(O)},ge}(),jt=e("ZCR3"),ft=function(){var ge=function(ye,We){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var pt in st)st.hasOwnProperty(pt)&&(Ze[pt]=st[pt])},ge(ye,We)};return function(O,ye){ge(O,ye);function We(){this.constructor=O}O.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),vt=function(){return vt=Object.assign||function(ge){for(var O,ye=1,We=arguments.length;ye<We;ye++){O=arguments[ye];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(ge[Ze]=O[Ze])}return ge},vt.apply(this,arguments)},xt=function(ge,O,ye,We){var Ze=arguments.length,st=Ze<3?O:We===null?We=Object.getOwnPropertyDescriptor(O,ye):We,pt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")st=Reflect.decorate(ge,O,ye,We);else for(var Kt=ge.length-1;Kt>=0;Kt--)(pt=ge[Kt])&&(st=(Ze<3?pt(st):Ze>3?pt(O,ye,st):pt(O,ye))||st);return Ze>3&&st&&Object.defineProperty(O,ye,st),st},at=function(ge){ft(O,ge);function O(ye,We,Ze,st,pt){return pt===void 0&&(pt={}),ge.call(this,ye,We,Ze,st,pt)||this}return Object.defineProperty(O.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),O.prototype.setChildren=function(ye,We){this.model.setChildren(ye,We)},O.prototype.rerender=function(ye){if(ye===void 0){this.view.rerender();return}this.model.rerender(ye)},O.prototype.hasElement=function(ye){return this.model.has(ye)},O.prototype.createModel=function(ye,We,Ze){return new Ce(ye,We,Ze)},O}(k),tt=function(){function ge(O,ye){this._compressedTreeNodeProvider=O,this.renderer=ye,this.templateId=ye.templateId,ye.onDidChangeTwistieState&&(this.onDidChangeTwistieState=ye.onDidChangeTwistieState)}return Object.defineProperty(ge.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),ge.prototype.renderTemplate=function(O){var ye=this.renderer.renderTemplate(O);return{compressedTreeNode:void 0,data:ye}},ge.prototype.renderElement=function(O,ye,We,Ze){var st=this.compressedTreeNodeProvider.getCompressedTreeNode(O.element);st.element.elements.length===1?(We.compressedTreeNode=void 0,this.renderer.renderElement(O,ye,We.data,Ze)):(We.compressedTreeNode=st,this.renderer.renderCompressedElements(st,ye,We.data,Ze))},ge.prototype.disposeElement=function(O,ye,We,Ze){We.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(We.compressedTreeNode,ye,We.data,Ze):this.renderer.disposeElement&&this.renderer.disposeElement(O,ye,We.data,Ze)},ge.prototype.disposeTemplate=function(O){this.renderer.disposeTemplate(O.data)},ge.prototype.renderTwistie=function(O,ye){this.renderer.renderTwistie&&this.renderer.renderTwistie(O,ye)},xt([jt.a],ge.prototype,"compressedTreeNodeProvider",null),ge}();function ct(ge,O){return O&&vt(vt({},O),{keyboardNavigationLabelProvider:O.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(We){var Ze;try{Ze=ge().getCompressedTreeNode(We)}catch(st){return O.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(We)}return Ze.element.elements.length===1?O.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(We):O.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(Ze.element.elements)}}})}var bt=function(ge){ft(O,ge);function O(ye,We,Ze,st,pt){pt===void 0&&(pt={});var Kt=this,Xt=function(){return Kt},on=st.map(function(vn){return new tt(Xt,vn)});return Kt=ge.call(this,ye,We,Ze,on,ct(Xt,pt))||this,Kt}return O.prototype.setChildren=function(ye,We){this.model.setChildren(ye,We)},O.prototype.createModel=function(ye,We,Ze){return new an(ye,We,Ze)},O.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),ge.prototype.updateOptions.call(this,ye),typeof ye.compressionEnabled!="undefined"&&this.model.setCompressionEnabled(ye.compressionEnabled)},O.prototype.getCompressedTreeNode=function(ye){return ye===void 0&&(ye=null),this.model.getCompressedTreeNode(ye)},O}(at),mt=e("/cxE"),Ct=function(){var ge=function(ye,We){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var pt in st)st.hasOwnProperty(pt)&&(Ze[pt]=st[pt])},ge(ye,We)};return function(O,ye){ge(O,ye);function We(){this.constructor=O}O.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),Gt=function(){return Gt=Object.assign||function(ge){for(var O,ye=1,We=arguments.length;ye<We;ye++){O=arguments[ye];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(ge[Ze]=O[Ze])}return ge},Gt.apply(this,arguments)},It=function(ge,O,ye,We){function Ze(st){return st instanceof ye?st:new ye(function(pt){pt(st)})}return new(ye||(ye=Promise))(function(st,pt){function Kt(vn){try{on(We.next(vn))}catch(dn){pt(dn)}}function Xt(vn){try{on(We.throw(vn))}catch(dn){pt(dn)}}function on(vn){vn.done?st(vn.value):Ze(vn.value).then(Kt,Xt)}on((We=We.apply(ge,O||[])).next())})},Et=function(ge,O){var ye={label:0,sent:function(){if(st[0]&1)throw st[1];return st[1]},trys:[],ops:[]},We,Ze,st,pt;return pt={next:Kt(0),throw:Kt(1),return:Kt(2)},typeof Symbol=="function"&&(pt[Symbol.iterator]=function(){return this}),pt;function Kt(on){return function(vn){return Xt([on,vn])}}function Xt(on){if(We)throw new TypeError("Generator is already executing.");for(;ye;)try{if(We=1,Ze&&(st=on[0]&2?Ze.return:on[0]?Ze.throw||((st=Ze.return)&&st.call(Ze),0):Ze.next)&&!(st=st.call(Ze,on[1])).done)return st;(Ze=0,st)&&(on=[on[0]&2,st.value]);switch(on[0]){case 0:case 1:st=on;break;case 4:return ye.label++,{value:on[1],done:!1};case 5:ye.label++,Ze=on[1],on=[0];continue;case 7:on=ye.ops.pop(),ye.trys.pop();continue;default:if(!(st=ye.trys,st=st.length>0&&st[st.length-1])&&(on[0]===6||on[0]===2)){ye=0;continue}if(on[0]===3&&(!st||on[1]>st[0]&&on[1]<st[3])){ye.label=on[1];break}if(on[0]===6&&ye.label<st[1]){ye.label=st[1],st=on;break}if(st&&ye.label<st[2]){ye.label=st[2],ye.ops.push(on);break}st[2]&&ye.ops.pop(),ye.trys.pop();continue}on=O.call(ge,ye)}catch(vn){on=[6,vn],Ze=0}finally{We=st=0}if(on[0]&5)throw on[1];return{value:on[0]?on[1]:void 0,done:!0}}},Je=function(){for(var ge=0,O=0,ye=arguments.length;O<ye;O++)ge+=arguments[O].length;for(var We=Array(ge),Ze=0,O=0;O<ye;O++)for(var st=arguments[O],pt=0,Kt=st.length;pt<Kt;pt++,Ze++)We[Ze]=st[pt];return We};function $e(ge){return Gt(Gt({},ge),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function ze(ge,O){return O.parent?O.parent===ge?!0:ze(ge,O.parent):!1}function Ke(ge,O){return ge===O||ze(ge,O)||ze(O,ge)}var fe=function(){function ge(O){this.node=O}return Object.defineProperty(ge.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"children",{get:function(){return this.node.children.map(function(ye){return new ge(ye)})},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),ge}(),G=function(){function ge(O,ye,We){this.renderer=O,this.nodeMapper=ye,this.onDidChangeTwistieState=We,this.renderedNodes=new Map,this.templateId=O.templateId}return ge.prototype.renderTemplate=function(O){var ye=this.renderer.renderTemplate(O);return{templateData:ye}},ge.prototype.renderElement=function(O,ye,We,Ze){this.renderer.renderElement(this.nodeMapper.map(O),ye,We.templateData,Ze)},ge.prototype.renderTwistie=function(O,ye){return Object(T.Y)(ye,"codicon-loading",O.slow),!1},ge.prototype.disposeElement=function(O,ye,We,Ze){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(O),ye,We.templateData,Ze)},ge.prototype.disposeTemplate=function(O){this.renderer.disposeTemplate(O.templateData)},ge.prototype.dispose=function(){this.renderedNodes.clear()},ge}();function te(ge){return{browserEvent:ge.browserEvent,elements:ge.elements.map(function(O){return O.element})}}var Y=function(ge){Ct(O,ge);function O(ye){var We=ge.call(this,ye.elements.map(function(Ze){return Ze.element}))||this;return We.data=ye,We}return O}(l.a);function de(ge){return ge instanceof l.a?new Y(ge):ge}var Fe=function(){function ge(O){this.dnd=O}return ge.prototype.getDragURI=function(O){return this.dnd.getDragURI(O.element)},ge.prototype.getDragLabel=function(O,ye){return this.dnd.getDragLabel?this.dnd.getDragLabel(O.map(function(We){return We.element}),ye):void 0},ge.prototype.onDragStart=function(O,ye){this.dnd.onDragStart&&this.dnd.onDragStart(de(O),ye)},ge.prototype.onDragOver=function(O,ye,We,Ze,st){return st===void 0&&(st=!0),this.dnd.onDragOver(de(O),ye&&ye.element,We,Ze)},ge.prototype.drop=function(O,ye,We,Ze){this.dnd.drop(de(O),ye&&ye.element,We,Ze)},ge.prototype.onDragEnd=function(O){this.dnd.onDragEnd&&this.dnd.onDragEnd(O)},ge}();function lt(ge){return ge&&Gt(Gt({},ge),{collapseByDefault:!0,identityProvider:ge.identityProvider&&{getId:function(ye){return ge.identityProvider.getId(ye.element)}},dnd:ge.dnd&&new Fe(ge.dnd),multipleSelectionController:ge.multipleSelectionController&&{isSelectionSingleChangeEvent:function(ye){return ge.multipleSelectionController.isSelectionSingleChangeEvent(Gt(Gt({},ye),{element:ye.element}))},isSelectionRangeChangeEvent:function(ye){return ge.multipleSelectionController.isSelectionRangeChangeEvent(Gt(Gt({},ye),{element:ye.element}))}},accessibilityProvider:ge.accessibilityProvider&&Gt(Gt({},ge.accessibilityProvider),{getAriaLabel:function(ye){return ge.accessibilityProvider.getAriaLabel(ye.element)},getAriaLevel:ge.accessibilityProvider.getAriaLevel&&function(O){return ge.accessibilityProvider.getAriaLevel(O.element)},getActiveDescendantId:ge.accessibilityProvider.getActiveDescendantId&&function(O){return ge.accessibilityProvider.getActiveDescendantId(O.element)}}),filter:ge.filter&&{filter:function(ye,We){return ge.filter.filter(ye.element,We)}},keyboardNavigationLabelProvider:ge.keyboardNavigationLabelProvider&&Gt(Gt({},ge.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(ye){return ge.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ye.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof ge.expandOnlyOnTwistieClick=="undefined"?void 0:typeof ge.expandOnlyOnTwistieClick!="function"?ge.expandOnlyOnTwistieClick:function(O){return ge.expandOnlyOnTwistieClick(O.element)},ariaProvider:ge.ariaProvider&&{getPosInSet:function(ye,We){return ge.ariaProvider.getPosInSet(ye.element,We)},getSetSize:function(ye,We,Ze){return ge.ariaProvider.getSetSize(ye.element,We,Ze)},getRole:ge.ariaProvider.getRole?function(O){return ge.ariaProvider.getRole(O.element)}:void 0,isChecked:ge.ariaProvider.isChecked?function(O){var ye;return((ye=ge.ariaProvider)===null||ye===void 0?void 0:ye.isChecked)(O.element)}:void 0},additionalScrollHeight:ge.additionalScrollHeight})}function Tt(ge,O){O(ge),ge.children.forEach(function(ye){return Tt(ye,O)})}var Jt=function(){function ge(O,ye,We,Ze,st,pt){pt===void 0&&(pt={}),this.user=O,this.dataSource=st,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new S.a,this._onDidChangeNodeSlowState=new S.a,this.nodeMapper=new x(function(Kt){return new fe(Kt)}),this.disposables=new J.b,this.identityProvider=pt.identityProvider,this.autoExpandSingleChildren=typeof pt.autoExpandSingleChildren=="undefined"?!1:pt.autoExpandSingleChildren,this.sorter=pt.sorter,this.collapseByDefault=pt.collapseByDefault,this.tree=this.createTree(O,ye,We,Ze,pt),this.root=$e({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Gt(Gt({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}return Object.defineProperty(ge.prototype,"onDidChangeFocus",{get:function(){return S.b.map(this.tree.onDidChangeFocus,te)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"onDidChangeSelection",{get:function(){return S.b.map(this.tree.onDidChangeSelection,te)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"onDidOpen",{get:function(){return S.b.map(this.tree.onDidOpen,te)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),ge.prototype.createTree=function(O,ye,We,Ze,st){var pt=this,Kt=new X(We),Xt=Ze.map(function(vn){return new G(vn,pt.nodeMapper,pt._onDidChangeNodeSlowState.event)}),on=lt(st)||{};return new at(O,ye,Kt,Xt,on)},ge.prototype.updateOptions=function(O){O===void 0&&(O={}),this.tree.updateOptions(O)},ge.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(ge.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(ye){this.tree.scrollTop=ye},enumerable:!0,configurable:!0}),ge.prototype.domFocus=function(){this.tree.domFocus()},ge.prototype.layout=function(O,ye){this.tree.layout(O,ye)},ge.prototype.style=function(O){this.tree.style(O)},ge.prototype.getInput=function(){return this.root.element},ge.prototype.setInput=function(O,ye){return It(this,void 0,void 0,function(){var We;return Et(this,function(Ze){switch(Ze.label){case 0:return this.refreshPromises.forEach(function(st){return st.cancel()}),this.refreshPromises.clear(),this.root.element=O,We=ye&&{viewState:ye,focus:[],selection:[]},[4,this._updateChildren(O,!0,!1,We)];case 1:return Ze.sent(),We&&(this.tree.setFocus(We.focus),this.tree.setSelection(We.selection)),ye&&typeof ye.scrollTop=="number"&&(this.scrollTop=ye.scrollTop),[2]}})})},ge.prototype._updateChildren=function(O,ye,We,Ze){return O===void 0&&(O=this.root.element),ye===void 0&&(ye=!0),We===void 0&&(We=!1),It(this,void 0,void 0,function(){var st;return Et(this,function(pt){switch(pt.label){case 0:if(typeof this.root.element=="undefined")throw new _(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return pt.sent(),[4,S.b.toPromise(this._onDidRender.event)];case 2:pt.sent(),pt.label=3;case 3:return st=this.getDataNode(O),[4,this.refreshAndRenderNode(st,ye,Ze)];case 4:if(pt.sent(),We)try{this.tree.rerender(st)}catch(Kt){}return[2]}})})},ge.prototype.rerender=function(O){if(O===void 0||O===this.root.element){this.tree.rerender();return}var ye=this.getDataNode(O);this.tree.rerender(ye)},ge.prototype.collapse=function(O,ye){ye===void 0&&(ye=!1);var We=this.getDataNode(O);return this.tree.collapse(We===this.root?null:We,ye)},ge.prototype.expand=function(O,ye){return ye===void 0&&(ye=!1),It(this,void 0,void 0,function(){var We,Ze;return Et(this,function(st){switch(st.label){case 0:if(typeof this.root.element=="undefined")throw new _(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return st.sent(),[4,S.b.toPromise(this._onDidRender.event)];case 2:st.sent(),st.label=3;case 3:return We=this.getDataNode(O),this.tree.hasElement(We)&&!this.tree.isCollapsible(We)?[2,!1]:We.refreshPromise?[4,this.root.refreshPromise]:[3,6];case 4:return st.sent(),[4,S.b.toPromise(this._onDidRender.event)];case 5:st.sent(),st.label=6;case 6:return We!==this.root&&!We.refreshPromise&&!this.tree.isCollapsed(We)?[2,!1]:(Ze=this.tree.expand(We===this.root?null:We,ye),We.refreshPromise?[4,this.root.refreshPromise]:[3,9]);case 7:return st.sent(),[4,S.b.toPromise(this._onDidRender.event)];case 8:st.sent(),st.label=9;case 9:return[2,Ze]}})})},ge.prototype.setSelection=function(O,ye){var We=this,Ze=O.map(function(st){return We.getDataNode(st)});this.tree.setSelection(Ze,ye)},ge.prototype.getSelection=function(){var O=this.tree.getSelection();return O.map(function(ye){return ye.element})},ge.prototype.setFocus=function(O,ye){var We=this,Ze=O.map(function(st){return We.getDataNode(st)});this.tree.setFocus(Ze,ye)},ge.prototype.getFocus=function(){var O=this.tree.getFocus();return O.map(function(ye){return ye.element})},ge.prototype.reveal=function(O,ye){this.tree.reveal(this.getDataNode(O),ye)},ge.prototype.getDataNode=function(O){var ye=this.nodes.get(O===this.root.element?null:O);if(!ye)throw new _(this.user,"Data tree node not found: "+O);return ye},ge.prototype.refreshAndRenderNode=function(O,ye,We){return It(this,void 0,void 0,function(){return Et(this,function(Ze){switch(Ze.label){case 0:return[4,this.refreshNode(O,ye,We)];case 1:return Ze.sent(),this.render(O,We),[2]}})})},ge.prototype.refreshNode=function(O,ye,We){return It(this,void 0,void 0,function(){var Ze,st=this;return Et(this,function(pt){return this.subTreeRefreshPromises.forEach(function(Kt,Xt){!Ze&&Ke(Xt,O)&&(Ze=Kt.then(function(){return st.refreshNode(O,ye,We)}))}),Ze?[2,Ze]:[2,this.doRefreshSubTree(O,ye,We)]})})},ge.prototype.doRefreshSubTree=function(O,ye,We){return It(this,void 0,void 0,function(){var Ze,st,pt=this;return Et(this,function(Kt){switch(Kt.label){case 0:O.refreshPromise=new Promise(function(Xt){return Ze=Xt}),this.subTreeRefreshPromises.set(O,O.refreshPromise),O.refreshPromise.finally(function(){O.refreshPromise=void 0,pt.subTreeRefreshPromises.delete(O)}),Kt.label=1;case 1:return Kt.trys.push([1,,4,5]),[4,this.doRefreshNode(O,ye,We)];case 2:return st=Kt.sent(),O.stale=!1,[4,Promise.all(st.map(function(Xt){return pt.doRefreshSubTree(Xt,ye,We)}))];case 3:return Kt.sent(),[3,5];case 4:return Ze(),[7];case 5:return[2]}})})},ge.prototype.doRefreshNode=function(O,ye,We){return It(this,void 0,void 0,function(){var Ze,st,pt,Kt,Xt=this;return Et(this,function(on){switch(on.label){case 0:O.hasChildren=!!this.dataSource.hasChildren(O.element),O.hasChildren?(st=Object(le.l)(800),st.then(function(){O.slow=!0,Xt._onDidChangeNodeSlowState.fire(O)},function(vn){return null}),Ze=this.doGetChildren(O).finally(function(){return st.cancel()})):Ze=Promise.resolve([]),on.label=1;case 1:return on.trys.push([1,3,4,5]),[4,Ze];case 2:return pt=on.sent(),[2,this.setChildren(O,pt,ye,We)];case 3:if(Kt=on.sent(),O!==this.root&&this.tree.collapse(O===this.root?null:O),Object(mt.d)(Kt))return[2,[]];throw Kt;case 4:return O.slow&&(O.slow=!1,this._onDidChangeNodeSlowState.fire(O)),[7];case 5:return[2]}})})},ge.prototype.doGetChildren=function(O){var ye=this,We=this.refreshPromises.get(O);return We||(We=Object(le.f)(function(){return It(ye,void 0,void 0,function(){var Ze;return Et(this,function(st){switch(st.label){case 0:return[4,this.dataSource.getChildren(O.element)];case 1:return Ze=st.sent(),[2,this.processChildren(Ze)]}})})}),this.refreshPromises.set(O,We),We.finally(function(){return ye.refreshPromises.delete(O)}))},ge.prototype._onDidChangeCollapseState=function(O){var ye=O.node,We=O.deep;!ye.collapsed&&ye.element.stale&&(We?this.collapse(ye.element.element):this.refreshAndRenderNode(ye.element,!1).catch(mt.e))},ge.prototype.setChildren=function(O,ye,We,Ze){var st,pt=this;if(O.children.length===0&&ye.length===0)return[];for(var Kt=new Map,Xt=new Map,on=0,vn=O.children;on<vn.length;on++){var dn=vn[on];if(Kt.set(dn.element,dn),this.identityProvider){var Rn=this.tree.isCollapsed(dn);Xt.set(dn.id,{node:dn,collapsed:Rn})}}for(var Sn=[],Ln=ye.map(function(mo){var Eo=!!pt.dataSource.hasChildren(mo);if(!pt.identityProvider){var no=$e({element:mo,parent:O,hasChildren:Eo});return Eo&&pt.collapseByDefault&&!pt.collapseByDefault(mo)&&(no.collapsedByDefault=!1,Sn.push(no)),no}var Mo=pt.identityProvider.getId(mo).toString(),Uo=Xt.get(Mo);if(Uo){var no=Uo.node;return Kt.delete(no.element),pt.nodes.delete(no.element),pt.nodes.set(mo,no),no.element=mo,no.hasChildren=Eo,We?Uo.collapsed?(no.children.forEach(function(Ci){return Tt(Ci,function(Fo){return pt.nodes.delete(Fo.element)})}),no.children.splice(0,no.children.length),no.stale=!0):Sn.push(no):Eo&&pt.collapseByDefault&&!pt.collapseByDefault(mo)&&(no.collapsedByDefault=!1,Sn.push(no)),no}var Ro=$e({element:mo,parent:O,id:Mo,hasChildren:Eo});return Ze&&Ze.viewState.focus&&Ze.viewState.focus.indexOf(Mo)>-1&&Ze.focus.push(Ro),Ze&&Ze.viewState.selection&&Ze.viewState.selection.indexOf(Mo)>-1&&Ze.selection.push(Ro),Ze&&Ze.viewState.expanded&&Ze.viewState.expanded.indexOf(Mo)>-1?Sn.push(Ro):Eo&&pt.collapseByDefault&&!pt.collapseByDefault(mo)&&(Ro.collapsedByDefault=!1,Sn.push(Ro)),Ro}),Pn=0,Hn=Object(De.e)(Kt);Pn<Hn.length;Pn++){var On=Hn[Pn];Tt(On,function(mo){return pt.nodes.delete(mo.element)})}for(var An=0,to=Ln;An<to.length;An++){var dn=to[An];this.nodes.set(dn.element,dn)}return(st=O.children).splice.apply(st,Je([0,O.children.length],Ln)),O!==this.root&&this.autoExpandSingleChildren&&Ln.length===1&&Sn.length===0&&(Ln[0].collapsedByDefault=!1,Sn.push(Ln[0])),Sn},ge.prototype.render=function(O,ye){var We=this,Ze=O.children.map(function(st){return We.asTreeElement(st,ye)});this.tree.setChildren(O===this.root?null:O,Ze),O!==this.root&&this.tree.setCollapsible(O,O.hasChildren),this._onDidRender.fire()},ge.prototype.asTreeElement=function(O,ye){var We=this;if(O.stale)return{element:O,collapsible:O.hasChildren,collapsed:!0};var Ze;return ye&&ye.viewState.expanded&&O.id&&ye.viewState.expanded.indexOf(O.id)>-1?Ze=!1:Ze=O.collapsedByDefault,O.collapsedByDefault=void 0,{element:O,children:O.hasChildren?F.d.map(F.d.fromArray(O.children),function(st){return We.asTreeElement(st,ye)}):[],collapsible:O.hasChildren,collapsed:Ze}},ge.prototype.processChildren=function(O){return this.sorter&&O.sort(this.sorter.compare.bind(this.sorter)),O},ge.prototype.dispose=function(){this.disposables.dispose()},ge}(),en=function(){function ge(O){this.node=O}return Object.defineProperty(ge.prototype,"element",{get:function(){return{elements:this.node.element.elements.map(function(ye){return ye.element}),incompressible:this.node.element.incompressible}},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"children",{get:function(){return this.node.children.map(function(ye){return new ge(ye)})},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),ge}(),gn=function(){function ge(O,ye,We,Ze){this.renderer=O,this.nodeMapper=ye,this.compressibleNodeMapperProvider=We,this.onDidChangeTwistieState=Ze,this.renderedNodes=new Map,this.disposables=[],this.templateId=O.templateId}return ge.prototype.renderTemplate=function(O){var ye=this.renderer.renderTemplate(O);return{templateData:ye}},ge.prototype.renderElement=function(O,ye,We,Ze){this.renderer.renderElement(this.nodeMapper.map(O),ye,We.templateData,Ze)},ge.prototype.renderCompressedElements=function(O,ye,We,Ze){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(O),ye,We.templateData,Ze)},ge.prototype.renderTwistie=function(O,ye){return Object(T.Y)(ye,"codicon-loading",O.slow),!1},ge.prototype.disposeElement=function(O,ye,We,Ze){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(O),ye,We.templateData,Ze)},ge.prototype.disposeCompressedElements=function(O,ye,We,Ze){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(O),ye,We.templateData,Ze)},ge.prototype.disposeTemplate=function(O){this.renderer.disposeTemplate(O.templateData)},ge.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(J.f)(this.disposables)},ge}();function un(ge){var O=ge&&lt(ge);return O&&Gt(Gt({},O),{keyboardNavigationLabelProvider:O.keyboardNavigationLabelProvider&&Gt(Gt({},O.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(We){return ge.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(We.map(function(Ze){return Ze.element}))}})})}var En=function(ge){Ct(O,ge);function O(ye,We,Ze,st,pt,Kt,Xt){Xt===void 0&&(Xt={});var on=ge.call(this,ye,We,Ze,pt,Kt,Xt)||this;return on.compressionDelegate=st,on.compressibleNodeMapper=new x(function(vn){return new en(vn)}),on.filter=Xt.filter,on}return O.prototype.createTree=function(ye,We,Ze,st,pt){var Kt=this,Xt=new X(Ze),on=st.map(function(dn){return new gn(dn,Kt.nodeMapper,function(){return Kt.compressibleNodeMapper},Kt._onDidChangeNodeSlowState.event)}),vn=un(pt)||{};return new bt(ye,We,Xt,on,vn)},O.prototype.asTreeElement=function(ye,We){return Gt({incompressible:this.compressionDelegate.isIncompressible(ye.element)},ge.prototype.asTreeElement.call(this,ye,We))},O.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),this.tree.updateOptions(ye)},O.prototype.render=function(ye,We){var Ze=this;if(!this.identityProvider)return ge.prototype.render.call(this,ye,We);var st=function(Pn){return Ze.identityProvider.getId(Pn).toString()},pt=function(Pn){for(var Hn=new Set,On=0,An=Pn;On<An.length;On++){var to=An[On],mo=Ze.tree.getCompressedTreeNode(to===Ze.root?null:to);if(!mo.element)continue;for(var Eo=0,no=mo.element.elements;Eo<no.length;Eo++){var Mo=no[Eo];Hn.add(st(Mo.element))}}return Hn},Kt=pt(this.tree.getSelection()),Xt=pt(this.tree.getFocus());ge.prototype.render.call(this,ye,We);var on=this.getSelection(),vn=!1,dn=this.getFocus(),Rn=!1,Sn=function Ln(Pn){var Hn=Pn.element;if(Hn)for(var On=0;On<Hn.elements.length;On++){var An=st(Hn.elements[On].element),to=Hn.elements[Hn.elements.length-1].element;Kt.has(An)&&on.indexOf(to)===-1&&(on.push(to),vn=!0),Xt.has(An)&&dn.indexOf(to)===-1&&(dn.push(to),Rn=!0)}Pn.children.forEach(Ln)};Sn(this.tree.getCompressedTreeNode(ye===this.root?null:ye)),vn&&this.setSelection(on),Rn&&this.setFocus(dn)},O.prototype.processChildren=function(ye){var We=this;return this.filter&&(ye=ye.filter(function(Ze){var st=We.filter.filter(Ze,1),pt=Mn(st);if(pt===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return pt===1})),ge.prototype.processChildren.call(this,ye)},O}(Jt);function Mn(ge){return typeof ge=="boolean"?ge?1:0:$(ge)?ie(ge.visibility):ie(ge)}var xn=function(){var ge=function(ye,We){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var pt in st)st.hasOwnProperty(pt)&&(Ze[pt]=st[pt])},ge(ye,We)};return function(O,ye){ge(O,ye);function We(){this.constructor=O}O.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),Zn=function(ge){xn(O,ge);function O(ye,We,Ze,st,pt,Kt){Kt===void 0&&(Kt={});var Xt=ge.call(this,ye,We,Ze,st,Kt)||this;return Xt.user=ye,Xt.dataSource=pt,Xt.identityProvider=Kt.identityProvider,Xt}return O.prototype.createModel=function(ye,We,Ze){return new Ce(ye,We,Ze)},O}(k),bn=e("R3nR"),Wn=function(){var ge=function(ye,We){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var pt in st)st.hasOwnProperty(pt)&&(Ze[pt]=st[pt])},ge(ye,We)};return function(O,ye){ge(O,ye);function We(){this.constructor=O}O.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),Gn=function(){return Gn=Object.assign||function(ge){for(var O,ye=1,We=arguments.length;ye<We;ye++){O=arguments[ye];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(ge[Ze]=O[Ze])}return ge},Gn.apply(this,arguments)},Bn=function(ge,O,ye,We){var Ze=arguments.length,st=Ze<3?O:We===null?We=Object.getOwnPropertyDescriptor(O,ye):We,pt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")st=Reflect.decorate(ge,O,ye,We);else for(var Kt=ge.length-1;Kt>=0;Kt--)(pt=ge[Kt])&&(st=(Ze<3?pt(st):Ze>3?pt(O,ye,st):pt(O,ye))||st);return Ze>3&&st&&Object.defineProperty(O,ye,st),st},Dn=function(ge,O){return function(ye,We){O(ye,We,ge)}},Qn,fo=Object(U.c)("listService"),Vn=function(){function ge(O){this._themeService=O,this.disposables=new J.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}return Object.defineProperty(ge.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),ge.prototype.register=function(O,ye){var We=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var Ze=new re.b(Object(T.w)(),"");this.disposables.add(Object(y.b)(Ze,this._themeService))}if(this.lists.some(function(pt){return pt.widget===O}))throw new Error("Cannot register the same widget multiple times");var st={widget:O,extraContextKeys:ye};return this.lists.push(st),O.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=O),Object(J.e)(O.onDidFocus(function(){return We._lastFocusedWidget=O}),Object(J.h)(function(){return We.lists.splice(We.lists.indexOf(st),1)}),O.onDidDispose(function(){We.lists=We.lists.filter(function(pt){return pt!==st}),We._lastFocusedWidget===O&&(We._lastFocusedWidget=void 0)}))},ge.prototype.dispose=function(){this.disposables.dispose()},ge=Bn([Dn(0,L.c)],ge),ge}(),po=new M.d("listFocus",!0),yo=new M.d("listSupportsMultiselect",!0),lo=M.a.and(po,M.a.not(f)),io=new M.d("listHasSelectionOrFocus",!1),go=new M.d("listDoubleSelection",!1),zn=new M.d("listMultiSelection",!1),Un=new M.d("listSupportsKeyboardNavigation",!0),wt="listAutomaticKeyboardNavigation",nt=new M.d(wt,!0),ot=!1;function Ot(ge,O){var ye=ge.createScoped(O.getHTMLElement());return po.bindTo(ye),ye}var Le="workbench.list.multiSelectModifier",D="workbench.list.openMode",j="workbench.list.horizontalScrolling",Z="workbench.list.keyboardNavigation",xe="workbench.list.automaticKeyboardNavigation",Ae="workbench.tree.indent",Ie="workbench.tree.renderIndentGuides";function dt(ge){return Object(H.f)(ge,j,"workbench.tree.horizontalScrolling")}function ht(ge){return ge.getValue(Le)==="alt"}function At(ge){return ge.getValue(D)!=="doubleClick"}var Bt=function(ge){Wn(O,ge);function O(ye){var We=ge.call(this)||this;return We.configurationService=ye,We.useAltAsMultipleSelectionModifier=ht(ye),We.registerListeners(),We}return O.prototype.registerListeners=function(){var ye=this;this._register(this.configurationService.onDidChangeConfiguration(function(We){We.affectsConfiguration(Le)&&(ye.useAltAsMultipleSelectionModifier=ht(ye.configurationService))}))},O.prototype.isSelectionSingleChangeEvent=function(ye){return this.useAltAsMultipleSelectionModifier?ye.browserEvent.altKey:Object(re.f)(ye)},O.prototype.isSelectionRangeChangeEvent=function(ye){return Object(re.e)(ye)},O}(J.a),Ut=function(ge){Wn(O,ge);function O(ye,We){var Ze=ge.call(this)||this;return Ze.configurationService=ye,Ze.existingOpenController=We,Ze.openOnSingleClick=At(ye),Ze.registerListeners(),Ze}return O.prototype.registerListeners=function(){var ye=this;this._register(this.configurationService.onDidChangeConfiguration(function(We){We.affectsConfiguration(D)&&(ye.openOnSingleClick=At(ye.configurationService))}))},O.prototype.shouldOpen=function(ye){if(ye instanceof MouseEvent){var We=ye.button===0,Ze=ye.detail===2;return We&&!this.openOnSingleClick&&!Ze?!1:We||ye.button===1?this.existingOpenController?this.existingOpenController.shouldOpen(ye):!0:!1}return this.existingOpenController?this.existingOpenController.shouldOpen(ye):!0},O}(J.a);function Ht(ge,O,ye){var We=new J.b,Ze=Gn({},ge);if(ge.multipleSelectionSupport!==!1&&!ge.multipleSelectionController){var st=new Bt(O);Ze.multipleSelectionController=st,We.add(st)}var pt=new Ut(O,ge.openController);return Ze.openController=pt,We.add(pt),Ze.keyboardNavigationDelegate={mightProducePrintableCharacter:function(Xt){return ye.mightProducePrintableCharacter(Xt)}},[Ze,We]}function nn(ge,O){var ye=!1;return function(We){if(ye)return ye=!1,!1;var Ze=O.softDispatch(We,ge);return Ze&&Ze.enterChord?(ye=!0,!1):(ye=!1,!0)}}var Zt=function(ge){Wn(O,ge);function O(ye,We,Ze,st,pt,Kt,Xt,on,vn,dn,Rn){var Sn=this,Ln=Me(We,pt,Kt,vn,dn,Rn),Pn=Ln.options,Hn=Ln.getAutomaticKeyboardNavigation,On=Ln.disposable;return Sn=ge.call(this,ye,We,Ze,st,Pn)||this,Sn.disposables.add(On),Sn.internals=new rt(Sn,Pn,Hn,pt.overrideStyles,Kt,Xt,on,vn,Rn),Sn.disposables.add(Sn.internals),Sn}return O=Bn([Dn(5,M.c),Dn(6,fo),Dn(7,L.c),Dn(8,H.a),Dn(9,A.a),Dn(10,bn.b)],O),O}(at),fn=function(ge){Wn(O,ge);function O(ye,We,Ze,st,pt,Kt,Xt,on,vn,dn,Rn,Sn){var Ln=this,Pn=Me(We,Kt,Xt,dn,Rn,Sn),Hn=Pn.options,On=Pn.getAutomaticKeyboardNavigation,An=Pn.disposable;return Ln=ge.call(this,ye,We,Ze,st,pt,Hn)||this,Ln.disposables.add(An),Ln.internals=new rt(Ln,Hn,On,Kt.overrideStyles,Xt,on,vn,dn,Sn),Ln.disposables.add(Ln.internals),Ln}return O.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),ge.prototype.updateOptions.call(this,ye),ye.overrideStyles&&this.internals.updateStyleOverrides(ye.overrideStyles)},O=Bn([Dn(6,M.c),Dn(7,fo),Dn(8,L.c),Dn(9,H.a),Dn(10,A.a),Dn(11,bn.b)],O),O}(Zn),yt=function(ge){Wn(O,ge);function O(ye,We,Ze,st,pt,Kt,Xt,on,vn,dn,Rn,Sn){var Ln=this,Pn=Me(We,Kt,Xt,dn,Rn,Sn),Hn=Pn.options,On=Pn.getAutomaticKeyboardNavigation,An=Pn.disposable;return Ln=ge.call(this,ye,We,Ze,st,pt,Hn)||this,Ln.disposables.add(An),Ln.internals=new rt(Ln,Hn,On,Kt.overrideStyles,Xt,on,vn,dn,Sn),Ln.disposables.add(Ln.internals),Ln}return O.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),ge.prototype.updateOptions.call(this,ye),ye.overrideStyles&&this.internals.updateStyleOverrides(ye.overrideStyles)},O=Bn([Dn(6,M.c),Dn(7,fo),Dn(8,L.c),Dn(9,H.a),Dn(10,A.a),Dn(11,bn.b)],O),O}(Jt),Ue=function(ge){Wn(O,ge);function O(ye,We,Ze,st,pt,Kt,Xt,on,vn,dn,Rn,Sn,Ln){var Pn=this,Hn=Me(We,Xt,on,Rn,Sn,Ln),On=Hn.options,An=Hn.getAutomaticKeyboardNavigation,to=Hn.disposable;return Pn=ge.call(this,ye,We,Ze,st,pt,Kt,On)||this,Pn.disposables.add(to),Pn.internals=new rt(Pn,On,An,Xt.overrideStyles,on,vn,dn,Rn,Ln),Pn.disposables.add(Pn.internals),Pn}return O=Bn([Dn(7,M.c),Dn(8,fo),Dn(9,L.c),Dn(10,H.a),Dn(11,A.a),Dn(12,bn.b)],O),O}(En);function Me(ge,O,ye,We,Ze,st){Un.bindTo(ye),ot||(nt.bindTo(ye),ot=!0);var pt=function(){var Hn=ye.getContextKeyValue(wt);return Hn&&(Hn=We.getValue(xe)),Hn},Kt=st.isScreenReaderOptimized(),Xt=Kt?"simple":We.getValue(Z),on=typeof O.horizontalScrolling!="undefined"?O.horizontalScrolling:dt(We),vn=At(We),dn=Ht(O,We,Ze),Rn=dn[0],Sn=dn[1],Ln=O.additionalScrollHeight;return{getAutomaticKeyboardNavigation:pt,disposable:Sn,options:Gn(Gn({keyboardSupport:!1},Rn),{indent:We.getValue(Ae),renderIndentGuides:We.getValue(Ie),automaticKeyboardNavigation:pt(),simpleKeyboardNavigation:Xt==="simple",filterOnType:Xt==="filter",horizontalScrolling:on,openOnSingleClick:vn,keyboardNavigationEventFilter:nn(ge,Ze),additionalScrollHeight:Ln,hideTwistiesOfChildlessElements:O.hideTwistiesOfChildlessElements})}}var rt=function(){function ge(O,ye,We,Ze,st,pt,Kt,Xt,on){var vn=this;this.tree=O,this.themeService=Kt,this.disposables=[],this.contextKeyService=Ot(st,O);var dn=yo.bindTo(this.contextKeyService);dn.set(!(ye.multipleSelectionSupport===!1)),this.hasSelectionOrFocus=io.bindTo(this.contextKeyService),this.hasDoubleSelection=go.bindTo(this.contextKeyService),this.hasMultiSelection=zn.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=ht(Xt);var Rn=new Set;Rn.add(wt);var Sn=function(){var Pn=on.isScreenReaderOptimized(),Hn=Pn?"simple":Xt.getValue(Z);O.updateOptions({simpleKeyboardNavigation:Hn==="simple",filterOnType:Hn==="filter"})};this.updateStyleOverrides(Ze),this.disposables.push(this.contextKeyService,pt.register(O),O.onDidChangeSelection(function(){var Ln=O.getSelection(),Pn=O.getFocus();vn.hasSelectionOrFocus.set(Ln.length>0||Pn.length>0),vn.hasMultiSelection.set(Ln.length>1),vn.hasDoubleSelection.set(Ln.length===2)}),O.onDidChangeFocus(function(){var Ln=O.getSelection(),Pn=O.getFocus();vn.hasSelectionOrFocus.set(Ln.length>0||Pn.length>0)}),Xt.onDidChangeConfiguration(function(Ln){if(Ln.affectsConfiguration(D)&&O.updateOptions({openOnSingleClick:At(Xt)}),Ln.affectsConfiguration(Le)&&(vn._useAltAsMultipleSelectionModifier=ht(Xt)),Ln.affectsConfiguration(Ae)){var Pn=Xt.getValue(Ae);O.updateOptions({indent:Pn})}if(Ln.affectsConfiguration(Ie)){var Hn=Xt.getValue(Ie);O.updateOptions({renderIndentGuides:Hn})}Ln.affectsConfiguration(Z)&&Sn(),Ln.affectsConfiguration(xe)&&O.updateOptions({automaticKeyboardNavigation:We()})}),this.contextKeyService.onDidChangeContext(function(Ln){Ln.affectsSome(Rn)&&O.updateOptions({automaticKeyboardNavigation:We()})}),on.onDidChangeScreenReaderOptimized(function(){return Sn()}))}return ge.prototype.updateStyleOverrides=function(O){Object(J.f)(this.styler),this.styler=O?Object(y.b)(this.tree,this.themeService,O):J.a.None},ge.prototype.dispose=function(){this.disposables=Object(J.f)(this.disposables),this.styler=Object(J.f)(this.styler)},ge=Bn([Dn(4,M.c),Dn(5,fo),Dn(6,L.c),Dn(7,H.a),Dn(8,bn.b)],ge),ge}(),Nt=c.a.as(z.a.Configuration);Nt.registerConfiguration({id:"workbench",order:7,title:Object(N.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:(Qn={},Qn[Le]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(N.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(N.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(N.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},Qn[D]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(N.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},Qn[j]={type:"boolean",default:!1,description:Object(N.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},Qn["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(N.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(N.a)("deprecated","This setting is deprecated, please use '{0}' instead.",j)},Qn[Ae]={type:"number",default:8,minimum:0,maximum:40,description:Object(N.a)("tree indent setting","Controls tree indentation in pixels.")},Qn[Ie]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(N.a)("render tree indent guides","Controls whether the tree should render indent guides.")},Qn[Z]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(N.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(N.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(N.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(N.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},Qn[xe]={type:"boolean",default:!0,markdownDescription:Object(N.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},Qn)})},kYye:function(_t,P,e){"use strict";e.d(P,"i",function(){return H}),e.d(P,"j",function(){return z}),e.d(P,"g",function(){return y}),e.d(P,"f",function(){return L}),e.d(P,"h",function(){return v}),e.d(P,"a",function(){return S}),e.d(P,"k",function(){return g}),e.d(P,"b",function(){return s}),e.d(P,"m",function(){return l}),e.d(P,"e",function(){return d}),e.d(P,"c",function(){return p}),e.d(P,"d",function(){return E}),e.d(P,"l",function(){return _}),e.d(P,"n",function(){return F}),e.d(P,"o",function(){return R}),e.d(P,"p",function(){return $}),e.d(P,"r",function(){return ie}),e.d(P,"q",function(){return W});var T=e("3/fG"),re=e("zrhQ"),J=e("MD5Z"),N=e("t9D7"),H=Object(J.Tb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},T.a("lineHighlight","Background color for the highlight of line at the cursor position.")),z=Object(J.Tb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},T.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),M=Object(J.Tb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},T.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),U=Object(J.Tb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:J.b},T.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),A=Object(J.Tb)("editor.symbolHighlightBackground",{dark:J.t,light:J.t,hc:null},T.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),c=Object(J.Tb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:J.b},T.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),y=Object(J.Tb)("editorCursor.foreground",{dark:"#AEAFAD",light:re.a.black,hc:re.a.white},T.a("caret","Color of the editor cursor.")),L=Object(J.Tb)("editorCursor.background",null,T.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),f=Object(J.Tb)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},T.a("editorWhitespaces","Color of whitespace characters in the editor.")),v=Object(J.Tb)("editorIndentGuide.background",{dark:f,light:f,hc:f},T.a("editorIndentGuides","Color of the editor indentation guides.")),S=Object(J.Tb)("editorIndentGuide.activeBackground",{dark:f,light:f,hc:f},T.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),g=Object(J.Tb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:re.a.white},T.a("editorLineNumbers","Color of editor line numbers.")),u=Object(J.Tb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:J.b},T.a("editorActiveLineNumber","Color of editor active line number"),!1,T.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),s=Object(J.Tb)("editorLineNumber.activeForeground",{dark:u,light:u,hc:u},T.a("editorActiveLineNumber","Color of editor active line number")),l=Object(J.Tb)("editorRuler.foreground",{dark:"#5A5A5A",light:re.a.lightgrey,hc:re.a.white},T.a("editorRuler","Color of the editor rulers.")),d=Object(J.Tb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},T.a("editorCodeLensForeground","Foreground color of editor code lenses")),p=Object(J.Tb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},T.a("editorBracketMatchBackground","Background color behind matching brackets")),E=Object(J.Tb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:J.e},T.a("editorBracketMatchBorder","Color for matching brackets boxes")),_=Object(J.Tb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},T.a("editorOverviewRulerBorder","Color of the overview ruler border.")),x=Object(J.Tb)("editorGutter.background",{dark:J.o,light:J.o,hc:J.o},T.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),F=Object(J.Tb)("editorUnnecessaryCode.border",{dark:null,light:null,hc:re.a.fromHex("#fff").transparent(.8)},T.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),R=Object(J.Tb)("editorUnnecessaryCode.opacity",{dark:re.a.fromHex("#000a"),light:re.a.fromHex("#0007"),hc:null},T.a("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),$=Object(J.Tb)("editorOverviewRuler.errorForeground",{dark:new re.a(new re.c(255,18,18,.7)),light:new re.a(new re.c(255,18,18,.7)),hc:new re.a(new re.c(255,50,50,1))},T.a("overviewRuleError","Overview ruler marker color for errors.")),ie=Object(J.Tb)("editorOverviewRuler.warningForeground",{dark:J.P,light:J.P,hc:J.O},T.a("overviewRuleWarning","Overview ruler marker color for warnings.")),W=Object(J.Tb)("editorOverviewRuler.infoForeground",{dark:J.H,light:J.H,hc:J.G},T.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(N.e)(function(B,le){var be=B.getColor(J.o);be&&le.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+be+"; }");var De=B.getColor(J.x);De&&le.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+De+"; }");var Te=B.getColor(x);Te&&le.addRule(".monaco-editor .margin { background-color: "+Te+"; }");var ke=B.getColor(M);ke&&le.addRule(".monaco-editor .rangeHighlight { background-color: "+ke+"; }");var He=B.getColor(U);He&&le.addRule(".monaco-editor .rangeHighlight { border: 1px "+(B.type==="hc"?"dotted":"solid")+" "+He+"; }");var je=B.getColor(A);je&&le.addRule(".monaco-editor .symbolHighlight { background-color: "+je+"; }");var oe=B.getColor(c);oe&&le.addRule(".monaco-editor .symbolHighlight { border: 1px "+(B.type==="hc"?"dotted":"solid")+" "+oe+"; }");var ee=B.getColor(f);ee&&le.addRule(".vs-whitespace { color: "+ee+" !important; }")})},kdPm:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return e.e(247).then(e.bind(null,"3VBA"))}})},kqbb:function(_t,P,e){"use strict";e.r(P),e.d(P,"ColorDetector",function(){return u});var T=e("X+cX"),re=e("zrhQ"),J=e("/cxE"),N=e("7afs"),H=e("pmY6"),z=e("sswD"),M=e("Vxe3"),U=e("aokT"),A=e("tX9W"),c=e("twdY"),y=e("ZIMw"),L=e("+7oY"),f=function(){var s=function(d,p){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,_){E.__proto__=_}||function(E,_){for(var x in _)_.hasOwnProperty(x)&&(E[x]=_[x])},s(d,p)};return function(l,d){s(l,d);function p(){this.constructor=l}l.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}(),v=function(s,l,d,p){var E=arguments.length,_=E<3?l:p===null?p=Object.getOwnPropertyDescriptor(l,d):p,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(s,l,d,p);else for(var F=s.length-1;F>=0;F--)(x=s[F])&&(_=(E<3?x(_):E>3?x(l,d,_):x(l,d))||_);return E>3&&_&&Object.defineProperty(l,d,_),_},S=function(s,l){return function(d,p){l(d,p,s)}},g=500,u=function(s){f(l,s);function l(d,p,E){var _=s.call(this)||this;return _._editor=d,_._codeEditorService=p,_._configurationService=E,_._localToDispose=_._register(new H.b),_._decorationsIds=[],_._colorDatas=new Map,_._colorDecoratorIds=[],_._decorationsTypes=new Set,_._register(d.onDidChangeModel(function(x){_._isEnabled=_.isEnabled(),_.onModelChanged()})),_._register(d.onDidChangeModelLanguage(function(x){return _.onModelChanged()})),_._register(c.c.onDidChange(function(x){return _.onModelChanged()})),_._register(d.onDidChangeConfiguration(function(x){var F=_._isEnabled;_._isEnabled=_.isEnabled(),F!==_._isEnabled&&(_._isEnabled?_.onModelChanged():_.removeAllDecorations())})),_._timeoutTimer=null,_._computePromise=null,_._isEnabled=_.isEnabled(),_.onModelChanged(),_}return l.prototype.isEnabled=function(){var d=this._editor.getModel();if(!d)return!1;var p=d.getLanguageIdentifier(),E=this._configurationService.getValue(p.language);if(E){var _=E.colorDecorators;if(_&&_.enable!==void 0&&!_.enable)return _.enable}return this._editor.getOption(12)},l.get=function(d){return d.getContribution(this.ID)},l.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),s.prototype.dispose.call(this)},l.prototype.onModelChanged=function(){var d=this;if(this.stop(),!this._isEnabled)return;var p=this._editor.getModel();if(!p||!c.c.has(p))return;this._localToDispose.add(this._editor.onDidChangeModelContent(function(E){d._timeoutTimer||(d._timeoutTimer=new T.e,d._timeoutTimer.cancelAndSet(function(){d._timeoutTimer=null,d.beginCompute()},l.RECOMPUTE_TIME))})),this.beginCompute()},l.prototype.beginCompute=function(){var d=this;this._computePromise=Object(T.f)(function(p){var E=d._editor.getModel();return E?Object(y.b)(E,p):Promise.resolve([])}),this._computePromise.then(function(p){d.updateDecorations(p),d.updateColorDecorators(p),d._computePromise=null},J.e)},l.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},l.prototype.updateDecorations=function(d){var p=this,E=d.map(function(_){return{range:{startLineNumber:_.colorInfo.range.startLineNumber,startColumn:_.colorInfo.range.startColumn,endLineNumber:_.colorInfo.range.endLineNumber,endColumn:_.colorInfo.range.endColumn},options:A.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,E),this._colorDatas=new Map,this._decorationsIds.forEach(function(_,x){return p._colorDatas.set(_,d[x])})},l.prototype.updateColorDecorators=function(d){for(var p=this,E=[],_={},x=0;x<d.length&&E.length<g;x++){var F=d[x].colorInfo.color,R=F.red,$=F.green,ie=F.blue,W=F.alpha,B=new re.c(Math.round(R*255),Math.round($*255),Math.round(ie*255),W),le=Object(N.a)(B).toString(16),be="rgba("+B.r+", "+B.g+", "+B.b+", "+B.a+")",De="colorBox-"+le;!this._decorationsTypes.has(De)&&!_[De]&&this._codeEditorService.registerDecorationType(De,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:be},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),_[De]=!0,E.push({range:{startLineNumber:d[x].colorInfo.range.startLineNumber,startColumn:d[x].colorInfo.range.startColumn,endLineNumber:d[x].colorInfo.range.endLineNumber,endColumn:d[x].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(De,!0)})}this._decorationsTypes.forEach(function(Te){_[Te]||p._codeEditorService.removeDecorationType(Te)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,E)},l.prototype.removeAllDecorations=function(){var d=this;this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(function(p){d._codeEditorService.removeDecorationType(p)})},l.prototype.getColorData=function(d){var p=this,E=this._editor.getModel();if(!E)return null;var _=E.getDecorationsInRange(U.a.fromPositions(d,d)).filter(function(x){return p._colorDatas.has(x.id)});return _.length===0?null:this._colorDatas.get(_[0].id)},l.ID="editor.contrib.colorDetector",l.RECOMPUTE_TIME=1e3,l=v([S(1,M.a),S(2,L.a)],l),l}(H.a);Object(z.h)(u.ID,u)},"kw+w":function(_t,P,e){},l2gE:function(_t,P,e){"use strict";e.d(P,"a",function(){return le});var T=e("6OMU"),re=e("N0LK"),J=e("PTeM"),N=e("MrjW"),H=e("QDVR"),z=e("X+cX"),M="**",U="/",A="[/\\\\]",c="[^/\\\\]",y=/\//g;function L(je){switch(je){case 0:return"";case 1:return c+"*?";default:return"(?:"+A+"|"+c+"+"+A+"|"+A+c+"+)*?"}}function f(je,oe){if(!je)return[];for(var ee=[],ae=!1,q=!1,ce="",X=0,he=je;X<he.length;X++){var Pe=he[X];switch(Pe){case oe:if(!ae&&!q){ee.push(ce),ce="";continue}break;case"{":ae=!0;break;case"}":ae=!1;break;case"[":q=!0;break;case"]":q=!1;break}ce+=Pe}return ce&&ee.push(ce),ee}function v(je){if(!je)return"";var oe="",ee=f(je,U);if(ee.every(function(q){return q===M}))oe=".*";else{var ae=!1;ee.forEach(function(q,ce){if(q===M){ae||(oe+=L(2),ae=!0);return}for(var X=!1,he="",Pe=!1,Xe="",pe=0,me=q;pe<me.length;pe++){var Se=me[pe];if(Se!=="}"&&X){he+=Se;continue}if(Pe&&(Se!=="]"||!Xe)){var Re=void 0;Se==="-"?Re=Se:(Se==="^"||Se==="!")&&!Xe?Re="^":Se===U?Re="":Re=re.p(Se),Xe+=Re;continue}switch(Se){case"{":X=!0;continue;case"[":Pe=!0;continue;case"}":var Ee=f(he,","),ve="(?:"+Ee.map(function(Q){return v(Q)}).join("|")+")";oe+=ve,X=!1,he="";break;case"]":oe+="["+Xe+"]",Pe=!1,Xe="";break;case"?":oe+=c;continue;case"*":oe+=L(1);continue;default:oe+=re.p(Se)}}ce<ee.length-1&&(ee[ce+1]!==M||ce+2<ee.length)&&(oe+=A),ae=!1})}return oe}var S=/^\*\*\/\*\.[\w\.-]+$/,g=/^\*\*\/([\w\.-]+)\/?$/,u=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,s=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,l=/^\*\*((\/[\w\.-]+)+)\/?$/,d=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,p=new H.a(1e4),E=function(){return!1},_=function(){return null};function x(je,oe){if(!je)return _;var ee;typeof je!="string"?ee=je.pattern:ee=je,ee=ee.trim();var ae=ee+"_"+!!oe.trimForExclusions,q=p.get(ae);if(q)return F(q,je);var ce;if(S.test(ee)){var X=ee.substr(4);q=function(Pe,Xe){return typeof Pe=="string"&&re.m(Pe,X)?ee:null}}else(ce=g.exec(R(ee,oe)))?q=$(ce[1],ee):(oe.trimForExclusions?s:u).test(ee)?q=ie(ee,oe):(ce=l.exec(R(ee,oe)))?q=W(ce[1].substr(1),ee,!0):(ce=d.exec(R(ee,oe)))?q=W(ce[1],ee,!1):q=B(ee);return p.set(ae,q),F(q,je)}function F(je,oe){return typeof oe=="string"?je:function(ee,ae){return J.a(ee,oe.base)?je(N.relative(oe.base,ee),ae):null}}function R(je,oe){return oe.trimForExclusions&&re.m(je,"/**")?je.substr(0,je.length-2):je}function $(je,oe){var ee="/"+je,ae="\\"+je,q=function(he,Pe){return typeof he!="string"?null:Pe?Pe===je?oe:null:he===je||re.m(he,ee)||re.m(he,ae)?oe:null},ce=[je];return q.basenames=ce,q.patterns=[oe],q.allBasenames=ce,q}function ie(je,oe){var ee=He(je.slice(1,-1).split(",").map(function(he){return x(he,oe)}).filter(function(he){return he!==_}),je),ae=ee.length;if(!ae)return _;if(ae===1)return ee[0];var q=function(Pe,Xe){for(var pe=0,me=ee.length;pe<me;pe++)if(ee[pe](Pe,Xe))return je;return null},ce=T.j(ee,function(he){return!!he.allBasenames});ce&&(q.allBasenames=ce.allBasenames);var X=ee.reduce(function(he,Pe){return Pe.allPaths?he.concat(Pe.allPaths):he},[]);return X.length&&(q.allPaths=X),q}function W(je,oe,ee){var ae=N.sep!==N.posix.sep?je.replace(y,N.sep):je,q=N.sep+ae,ce=ee?function(X,he){return typeof X=="string"&&(X===ae||re.m(X,q))?oe:null}:function(X,he){return typeof X=="string"&&X===ae?oe:null};return ce.allPaths=[(ee?"*/":"./")+je],ce}function B(je){try{var oe=new RegExp("^"+v(je)+"$");return function(ee,ae){return oe.lastIndex=0,typeof ee=="string"&&oe.test(ee)?je:null}}catch(ee){return _}}function le(je,oe,ee){return!je||typeof oe!="string"?!1:be(je)(oe,void 0,ee)}function be(je,oe){if(oe===void 0&&(oe={}),!je)return E;if(typeof je=="string"||De(je)){var ee=x(je,oe);if(ee===_)return E;var ae=function(ce,X){return!!ee(ce,X)};return ee.allBasenames&&(ae.allBasenames=ee.allBasenames),ee.allPaths&&(ae.allPaths=ee.allPaths),ae}return Te(je,oe)}function De(je){var oe=je;return oe&&typeof oe.base=="string"&&typeof oe.pattern=="string"}function Te(je,oe){var ee=He(Object.getOwnPropertyNames(je).map(function(pe){return ke(pe,je[pe],oe)}).filter(function(pe){return pe!==_})),ae=ee.length;if(!ae)return _;if(!ee.some(function(pe){return!!pe.requiresSiblings})){if(ae===1)return ee[0];var q=function(me,Se){for(var Re=0,Ee=ee.length;Re<Ee;Re++){var ve=ee[Re](me,Se);if(ve)return ve}return null},ce=T.j(ee,function(pe){return!!pe.allBasenames});ce&&(q.allBasenames=ce.allBasenames);var X=ee.reduce(function(pe,me){return me.allPaths?pe.concat(me.allPaths):pe},[]);return X.length&&(q.allPaths=X),q}var he=function(me,Se,Re){for(var Ee=void 0,ve=0,Q=ee.length;ve<Q;ve++){var b=ee[ve];b.requiresSiblings&&Re&&(Se||(Se=N.basename(me)),Ee||(Ee=Se.substr(0,Se.length-N.extname(me).length)));var k=b(me,Se,Ee,Re);if(k)return k}return null},Pe=T.j(ee,function(pe){return!!pe.allBasenames});Pe&&(he.allBasenames=Pe.allBasenames);var Xe=ee.reduce(function(pe,me){return me.allPaths?pe.concat(me.allPaths):pe},[]);return Xe.length&&(he.allPaths=Xe),he}function ke(je,oe,ee){if(oe===!1)return _;var ae=x(je,ee);if(ae===_)return _;if(typeof oe=="boolean")return ae;if(oe){var q=oe.when;if(typeof q=="string"){var ce=function(he,Pe,Xe,pe){if(!pe||!ae(he,Pe))return null;var me=q.replace("$(basename)",Xe),Se=pe(me);return Object(z.i)(Se)?Se.then(function(Re){return Re?je:null}):Se?je:null};return ce.requiresSiblings=!0,ce}}return ae}function He(je,oe){var ee=je.filter(function(Xe){return!!Xe.basenames});if(ee.length<2)return je;var ae=ee.reduce(function(Xe,pe){var me=pe.basenames;return me?Xe.concat(me):Xe},[]),q;if(oe){q=[];for(var ce=0,X=ae.length;ce<X;ce++)q.push(oe)}else q=ee.reduce(function(Xe,pe){var me=pe.patterns;return me?Xe.concat(me):Xe},[]);var he=function(pe,me){if(typeof pe!="string")return null;if(!me){var Se=void 0;for(Se=pe.length;Se>0;Se--){var Re=pe.charCodeAt(Se-1);if(Re===47||Re===92)break}me=pe.substr(Se)}var Ee=ae.indexOf(me);return Ee!==-1?q[Ee]:null};he.basenames=ae,he.patterns=q,he.allBasenames=ae;var Pe=je.filter(function(Xe){return!Xe.basenames});return Pe.push(he),Pe}},lKfe:function(_t,P,e){},"lY/7":function(_t,P,e){"use strict";e.r(P),e.d(P,"MarkerController",function(){return he}),e.d(P,"NextMarkerAction",function(){return Xe});var T=e("3/fG"),re=e("MI8n"),J=e("pmY6"),N=e("T8No"),H=e("tADe"),z=e("aokT"),M=e("sswD"),U=e("t9D7"),A=e("wQH0"),c=e("/oaI"),y=e("EffR"),L=e("MD5Z"),f=e("zrhQ"),v=e("GJhM"),S=e("3rx1"),g=e("6OMU"),u=e("iNS8"),s=e("gslv"),l=e("S3by"),d;(function(ve){function Q(b){switch(b){case l.a.Ignore:return"severity-ignore codicon-info";case l.a.Info:return"codicon-info";case l.a.Warning:return"codicon-warning";case l.a.Error:return"codicon-error"}return""}ve.className=Q})(d||(d={})),Object(U.e)(function(ve,Q){var b=ve.getColor(L.Pb);b&&Q.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: `+b+`;
}
`);var k=ve.getColor(L.Rb);b&&Q.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: `+k+`;
}
`);var se=ve.getColor(L.Qb);b&&Q.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: `+se+`;
}
`)});var p=function(){var ve=function(b,k){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ne){se.__proto__=ne}||function(se,ne){for(var Ce in ne)ne.hasOwnProperty(Ce)&&(se[Ce]=ne[Ce])},ve(b,k)};return function(Q,b){ve(Q,b);function k(){this.constructor=Q}Q.prototype=b===null?Object.create(b):(k.prototype=b.prototype,new k)}}(),E=function(){function ve(Q,b,k,se){var ne=this;this._openerService=se,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new J.b,this._editor=b;var Ce=document.createElement("div");Ce.className="descriptioncontainer",Ce.setAttribute("aria-live","assertive"),Ce.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),y.f(this._messageBlock,"message"),Ce.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),Ce.appendChild(this._relatedBlock),this._disposables.add(y.o(this._relatedBlock,"click",function(Oe){Oe.preventDefault();var we=ne._relatedDiagnostics.get(Oe.target);we&&k(we)})),this._scrollable=new v.b(Ce,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),Q.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(function(Oe){Ce.style.left="-"+Oe.scrollLeft+"px",Ce.style.top="-"+Oe.scrollTop+"px"})),this._disposables.add(this._scrollable)}return ve.prototype.dispose=function(){Object(J.f)(this._disposables)},ve.prototype.update=function(Q){var b=this,k=Q.source,se=Q.message,ne=Q.relatedInformation,Ce=Q.code,Oe=((k==null?void 0:k.length)||0)+"()".length;Ce&&(typeof Ce=="string"?Oe+=Ce.length:Oe+=Ce.value.length);var we=se.split(/\r\n|\r|\n/g);this._lines=we.length,this._longestLineLength=0;for(var Ve=0,Qe=we;Ve<Qe.length;Ve++){var it=Qe[Ve];this._longestLineLength=Math.max(it.length+Oe,this._longestLineLength)}y.t(this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var gt=this._messageBlock,Rt=0,Dt=we;Rt<Dt.length;Rt++){var it=Dt[Rt];gt=document.createElement("div"),gt.innerText=it,it===""&&(gt.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(gt)}if(k||Ce){var zt=document.createElement("span");if(y.f(zt,"details"),gt.appendChild(zt),k){var cn=document.createElement("span");cn.innerText=k,y.f(cn,"source"),zt.appendChild(cn)}if(Ce)if(typeof Ce=="string"){var ln=document.createElement("span");ln.innerText="("+Ce+")",y.f(ln,"code"),zt.appendChild(ln)}else{this._codeLink=y.a("a.code-link"),this._codeLink.setAttribute("href",""+Ce.link.toString()),this._codeLink.onclick=function(Gt){b._openerService.open(Ce.link),Gt.preventDefault(),Gt.stopPropagation()};var ln=y.q(this._codeLink,y.a("span"));ln.innerText=Ce.value,zt.appendChild(this._codeLink)}}if(y.t(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(g.q)(ne)){var an=this._relatedBlock.appendChild(document.createElement("div"));an.style.paddingTop=Math.floor(this._editor.getOption(49)*.66)+"px",this._lines+=1;for(var jt=0,ft=ne;jt<ft.length;jt++){var vt=ft[jt],xt=document.createElement("div"),at=document.createElement("a");y.f(at,"filename"),at.innerHTML=Object(S.a)(vt.resource)+"("+vt.startLineNumber+", "+vt.startColumn+"): ",at.title=Object(S.b)(vt.resource,void 0),this._relatedDiagnostics.set(at,vt);var tt=document.createElement("span");tt.innerText=vt.message,xt.appendChild(at),xt.appendChild(tt),this._lines+=1,an.appendChild(xt)}}var ct=this._editor.getOption(34),bt=Math.ceil(ct.typicalFullwidthCharacterWidth*this._longestLineLength*.75),mt=ct.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:bt,scrollHeight:mt})},ve.prototype.layout=function(Q,b){this._scrollable.getDomNode().style.height=Q+"px",this._scrollable.getDomNode().style.width=b+"px",this._scrollable.setScrollDimensions({width:b,height:Q})},ve.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},ve}(),_=function(ve){p(Q,ve);function Q(b,k,se,ne){var Ce=ve.call(this,b,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return Ce.actions=k,Ce._themeService=se,Ce._openerService=ne,Ce._callOnDispose=new J.b,Ce._onDidSelectRelatedInformation=new re.a,Ce.onDidSelectRelatedInformation=Ce._onDidSelectRelatedInformation.event,Ce._severity=H.c.Warning,Ce._backgroundColor=f.a.white,Ce._applyTheme(se.getTheme()),Ce._callOnDispose.add(se.onThemeChange(Ce._applyTheme.bind(Ce))),Ce.create(),Ce}return Q.prototype._applyTheme=function(b){this._backgroundColor=b.getColor(B);var k=$;this._severity===H.c.Warning?k=ie:this._severity===H.c.Info&&(k=W);var se=b.getColor(k);this.style({arrowColor:se,frameColor:se,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:b.getColor(u.q),secondaryHeadingColor:b.getColor(u.r)})},Q.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),ve.prototype._applyStyles.call(this)},Q.prototype.dispose=function(){this._callOnDispose.dispose(),ve.prototype.dispose.call(this)},Q.prototype._fillHead=function(b){ve.prototype._fillHead.call(this,b),this._actionbarWidget.push(this.actions,{label:!1,icon:!0,index:0})},Q.prototype._fillTitleIcon=function(b){this._icon=y.q(b,y.a(""))},Q.prototype._getActionBarOptions=function(){return{orientation:0}},Q.prototype._fillBody=function(b){var k=this;this._parentContainer=b,y.f(b,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),b.appendChild(this._container),this._message=new E(this._container,this.editor,function(se){return k._onDidSelectRelatedInformation.fire(se)},this._openerService),this._disposables.add(this._message)},Q.prototype.show=function(b,k){throw new Error("call showAtMarker")},Q.prototype.showAtMarker=function(b,k,se){this._container.classList.remove("stale"),this._message.update(b),this._severity=b.severity,this._applyTheme(this._themeService.getTheme());var ne=z.a.lift(b),Ce=this.editor.getPosition(),Oe=Ce&&ne.containsPosition(Ce)?Ce:ne.getStartPosition();ve.prototype.show.call(this,Oe,this.computeRequiredHeight());var we=this.editor.getModel();if(we){var Ve=se>1?T.a("problems","{0} of {1} problems",k,se):T.a("change","{0} of {1} problem",k,se);this.setTitle(Object(s.b)(we.uri),Ve)}this._icon.className="codicon "+d.className(H.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(Oe,0),this.editor.focus()},Q.prototype.updateMarker=function(b){this._container.classList.remove("stale"),this._message.update(b)},Q.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},Q.prototype._doLayoutBody=function(b,k){ve.prototype._doLayoutBody.call(this,b,k),this._heightInPixel=b,this._message.layout(b,k),this._container.style.height=b+"px"},Q.prototype._onWidth=function(b){this._message.layout(this._heightInPixel,b)},Q.prototype._relayout=function(){ve.prototype._relayout.call(this,this.computeRequiredHeight())},Q.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},Q}(u.c),x=Object(L.Kb)(L.q,L.p),F=Object(L.Kb)(L.P,L.O),R=Object(L.Kb)(L.H,L.G),$=Object(L.Tb)("editorMarkerNavigationError.background",{dark:x,light:x,hc:x},T.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),ie=Object(L.Tb)("editorMarkerNavigationWarning.background",{dark:F,light:F,hc:F},T.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),W=Object(L.Tb)("editorMarkerNavigationInfo.background",{dark:R,light:R,hc:R},T.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),B=Object(L.Tb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:f.a.white,hc:"#0C141F"},T.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(U.e)(function(ve,Q){var b=ve.getColor(L.ec);b&&(Q.addRule(".monaco-editor .marker-widget a { color: "+b+"; }"),Q.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+b+"; }"))});var le=e("N0LK"),be=e("Vxe3"),De=e("/cxE"),Te=e("fjLI"),ke=e("8HAY"),He=e("bexQ"),je=e("W9cx"),oe=function(){var ve=function(b,k){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ne){se.__proto__=ne}||function(se,ne){for(var Ce in ne)ne.hasOwnProperty(Ce)&&(se[Ce]=ne[Ce])},ve(b,k)};return function(Q,b){ve(Q,b);function k(){this.constructor=Q}Q.prototype=b===null?Object.create(b):(k.prototype=b.prototype,new k)}}(),ee=function(ve,Q,b,k){var se=arguments.length,ne=se<3?Q:k===null?k=Object.getOwnPropertyDescriptor(Q,b):k,Ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(ve,Q,b,k);else for(var Oe=ve.length-1;Oe>=0;Oe--)(Ce=ve[Oe])&&(ne=(se<3?Ce(ne):se>3?Ce(Q,b,ne):Ce(Q,b))||ne);return se>3&&ne&&Object.defineProperty(Q,b,ne),ne},ae=function(ve,Q){return function(b,k){Q(b,k,ve)}},q=function(ve,Q,b,k){function se(ne){return ne instanceof b?ne:new b(function(Ce){Ce(ne)})}return new(b||(b=Promise))(function(ne,Ce){function Oe(Qe){try{Ve(k.next(Qe))}catch(it){Ce(it)}}function we(Qe){try{Ve(k.throw(Qe))}catch(it){Ce(it)}}function Ve(Qe){Qe.done?ne(Qe.value):se(Qe.value).then(Oe,we)}Ve((k=k.apply(ve,Q||[])).next())})},ce=function(ve,Q){var b={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},k,se,ne,Ce;return Ce={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(Ce[Symbol.iterator]=function(){return this}),Ce;function Oe(Ve){return function(Qe){return we([Ve,Qe])}}function we(Ve){if(k)throw new TypeError("Generator is already executing.");for(;b;)try{if(k=1,se&&(ne=Ve[0]&2?se.return:Ve[0]?se.throw||((ne=se.return)&&ne.call(se),0):se.next)&&!(ne=ne.call(se,Ve[1])).done)return ne;(se=0,ne)&&(Ve=[Ve[0]&2,ne.value]);switch(Ve[0]){case 0:case 1:ne=Ve;break;case 4:return b.label++,{value:Ve[1],done:!1};case 5:b.label++,se=Ve[1],Ve=[0];continue;case 7:Ve=b.ops.pop(),b.trys.pop();continue;default:if(!(ne=b.trys,ne=ne.length>0&&ne[ne.length-1])&&(Ve[0]===6||Ve[0]===2)){b=0;continue}if(Ve[0]===3&&(!ne||Ve[1]>ne[0]&&Ve[1]<ne[3])){b.label=Ve[1];break}if(Ve[0]===6&&b.label<ne[1]){b.label=ne[1],ne=Ve;break}if(ne&&b.label<ne[2]){b.label=ne[2],b.ops.push(Ve);break}ne[2]&&b.ops.pop(),b.trys.pop();continue}Ve=Q.call(ve,b)}catch(Qe){Ve=[6,Qe],se=0}finally{k=ne=0}if(Ve[0]&5)throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}},X=function(){function ve(Q,b){var k=this;this._toUnbind=new J.b,this._editor=Q,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new re.a,this._onMarkerSetChanged=new re.a,this.setMarkers(b),this._toUnbind.add(this._editor.onDidDispose(function(){return k.dispose()})),this._toUnbind.add(this._editor.onDidChangeCursorPosition(function(){if(k._ignoreSelectionChange)return;if(k.currentMarker&&k._editor.getPosition()&&z.a.containsPosition(k.currentMarker,k._editor.getPosition()))return;k._nextIdx=-1}))}return Object.defineProperty(ve.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event},enumerable:!0,configurable:!0}),ve.prototype.setMarkers=function(Q){var b=this._nextIdx>=0?this._markers[this._nextIdx]:void 0;this._markers=Q||[],this._markers.sort(Pe.compareMarker),b?this._nextIdx=Math.max(-1,Object(g.c)(this._markers,b,Pe.compareMarker)):this._nextIdx=-1,this._onMarkerSetChanged.fire(this)},ve.prototype.withoutWatchingEditorPosition=function(Q){this._ignoreSelectionChange=!0;try{Q()}finally{this._ignoreSelectionChange=!1}},ve.prototype._initIdx=function(Q){for(var b=!1,k=this._editor.getPosition(),se=0;se<this._markers.length;se++){var ne=z.a.lift(this._markers[se]);if(ne.isEmpty()&&this._editor.getModel()){var Ce=this._editor.getModel().getWordAtPosition(ne.getStartPosition());Ce&&(ne=new z.a(ne.startLineNumber,Ce.startColumn,ne.startLineNumber,Ce.endColumn))}if(k&&(ne.containsPosition(k)||k.isBeforeOrEqual(ne.getStartPosition()))){this._nextIdx=se,b=!0;break}}b||(this._nextIdx=Q?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)},Object.defineProperty(ve.prototype,"currentMarker",{get:function(){return this.canNavigate()?this._markers[this._nextIdx]:void 0},set:function(b){var k=this._nextIdx;this._nextIdx=-1,b&&(this._nextIdx=this.indexOf(b)),this._nextIdx!==k&&this._onCurrentMarkerChanged.fire(b)},enumerable:!0,configurable:!0}),ve.prototype.move=function(Q,b){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!b;var k=this._nextIdx,se=!1;if(this._nextIdx===-1?this._initIdx(Q):Q?b||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:se=!0:Q||(b||this._nextIdx>0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:se=!0),k!==this._nextIdx){var ne=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(ne)}return se},ve.prototype.canNavigate=function(){return this._markers.length>0},ve.prototype.findMarkerAtPosition=function(Q){return Object(g.h)(this._markers,function(b){return z.a.containsPosition(b,Q)})},Object.defineProperty(ve.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),ve.prototype.indexOf=function(Q){return 1+this._markers.indexOf(Q)},ve.prototype.dispose=function(){this._toUnbind.dispose()},ve}(),he=function(){function ve(Q,b,k,se,ne,Ce,Oe){this._markerService=b,this._contextKeyService=k,this._themeService=se,this._editorService=ne,this._keybindingService=Ce,this._openerService=Oe,this._model=null,this._widget=null,this._disposeOnClose=new J.b,this._editor=Q,this._widgetVisible=Re.bindTo(this._contextKeyService)}return ve.get=function(Q){return Q.getContribution(ve.ID)},ve.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},ve.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},ve.prototype.getOrCreateModel=function(){var Q=this;if(this._model)return this._model;var b=this._getMarkers();this._model=new X(this._editor,b),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var k=this._keybindingService.lookupKeybinding(pe.ID),se=this._keybindingService.lookupKeybinding(Xe.ID),ne=[new ke.a(Xe.ID,Xe.LABEL+(se?" ("+se.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),function(){return q(Q,void 0,void 0,function(){return ce(this,function(Ve){return this._model&&this._model.move(!0,!0),[2]})})}),new ke.a(pe.ID,pe.LABEL+(k?" ("+k.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),function(){return q(Q,void 0,void 0,function(){return ce(this,function(Ve){return this._model&&this._model.move(!1,!0),[2]})})})];this._widget=new _(this._editor,ne,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose(function(){return Q.closeMarkersNavigation()},this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var Ce=0,Oe=ne;Ce<Oe.length;Ce++){var we=Oe[Ce];this._disposeOnClose.add(we)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation(function(Ve){Q._editorService.openCodeEditor({resource:Ve.resource,options:{pinned:!0,revealIfOpened:!0,selection:z.a.lift(Ve).collapseToStart()}},Q._editor).then(void 0,De.e),Q.closeMarkersNavigation(!1)})),this._disposeOnClose.add(this._editor.onDidChangeModel(function(){return Q._cleanUp()})),this._disposeOnClose.add(this._model.onCurrentMarkerChanged(function(Ve){!Ve||!Q._model?Q._cleanUp():Q._model.withoutWatchingEditorPosition(function(){if(!Q._widget||!Q._model)return;Q._widget.showAtMarker(Ve,Q._model.indexOf(Ve),Q._model.total)})})),this._disposeOnClose.add(this._model.onMarkerSetChanged(function(){if(!Q._widget||!Q._widget.position||!Q._model)return;var Ve=Q._model.findMarkerAtPosition(Q._widget.position);Ve?Q._widget.updateMarker(Ve):Q._widget.showStale()})),this._model},ve.prototype.closeMarkersNavigation=function(Q){Q===void 0&&(Q=!0),this._cleanUp(),Q&&this._editor.focus()},ve.prototype.show=function(Q){var b=this.getOrCreateModel();b.currentMarker=Q},ve.prototype._onMarkerChanged=function(Q){var b=this._editor.getModel();if(!b)return;if(!this._model)return;if(!Q.some(function(k){return Object(s.e)(b.uri,k)}))return;this._model.setMarkers(this._getMarkers())},ve.prototype._getMarkers=function(){var Q=this._editor.getModel();return Q?this._markerService.read({resource:Q.uri,severities:H.c.Error|H.c.Warning|H.c.Info}):[]},ve.ID="editor.contrib.markerController",ve=ee([ae(1,H.b),ae(2,N.c),ae(3,U.c),ae(4,be.a),ae(5,He.a),ae(6,je.a)],ve),ve}(),Pe=function(ve){oe(Q,ve);function Q(b,k,se){var ne=ve.call(this,se)||this;return ne._isNext=b,ne._multiFile=k,ne}return Q.prototype.run=function(b,k){var se=this,ne=b.get(H.b),Ce=b.get(be.a),Oe=he.get(k);if(!Oe)return Promise.resolve(void 0);var we=Oe.getOrCreateModel(),Ve=we.move(this._isNext,!this._multiFile);if(!Ve||!this._multiFile)return Promise.resolve(void 0);var Qe=ne.read({severities:H.c.Error|H.c.Warning|H.c.Info}).sort(Q.compareMarker);if(Qe.length===0)return Promise.resolve(void 0);var it=k.getModel();if(!it)return Promise.resolve(void 0);var gt=we.currentMarker||{resource:it.uri,severity:H.c.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},Rt=Object(g.c)(Qe,gt,Q.compareMarker);Rt<0?(Rt=~Rt,Rt%=Qe.length):this._isNext?Rt=(Rt+1)%Qe.length:Rt=(Rt+Qe.length-1)%Qe.length;var Dt=Qe[Rt];return Object(s.e)(Dt.resource,it.uri)?(we.move(this._isNext,!0),Promise.resolve(void 0)):(Oe.closeMarkersNavigation(),Ce.openCodeEditor({resource:Dt.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:Dt}},k).then(function(zt){return zt?zt.getAction(se.id).run():void 0}))},Q.compareMarker=function(b,k){var se=Object(le.e)(b.resource.toString(),k.resource.toString());return se===0&&(se=H.c.compare(b.severity,k.severity)),se===0&&(se=z.a.compareRangesUsingStarts(b,k)),se},Q}(M.b),Xe=function(ve){oe(Q,ve);function Q(){return ve.call(this,!0,!1,{id:Q.ID,label:Q.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:A.a.writable,kbOpts:{kbExpr:A.a.focus,primary:512|66,weight:100}})||this}return Q.ID="editor.action.marker.next",Q.LABEL=T.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),Q}(Pe),pe=function(ve){oe(Q,ve);function Q(){return ve.call(this,!1,!1,{id:Q.ID,label:Q.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:A.a.writable,kbOpts:{kbExpr:A.a.focus,primary:1024|512|66,weight:100}})||this}return Q.ID="editor.action.marker.prev",Q.LABEL=T.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),Q}(Pe),me=function(ve){oe(Q,ve);function Q(){return ve.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:T.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:A.a.writable,kbOpts:{kbExpr:A.a.focus,primary:66,weight:100}})||this}return Q}(Pe),Se=function(ve){oe(Q,ve);function Q(){return ve.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:T.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:A.a.writable,kbOpts:{kbExpr:A.a.focus,primary:1024|66,weight:100}})||this}return Q}(Pe);Object(M.h)(he.ID,he),Object(M.f)(Xe),Object(M.f)(pe),Object(M.f)(me),Object(M.f)(Se);var Re=new N.d("markersNavigationVisible",!1),Ee=M.c.bindToContribution(he.get);Object(M.g)(new Ee({id:"closeMarkersNavigation",precondition:Re,handler:function(Q){return Q.closeMarkersNavigation()},kbOpts:{weight:100+50,kbExpr:A.a.focus,primary:9,secondary:[1024|9]}})),Te.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.nextInFiles",title:T.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem")},order:1}),Te.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.prevInFiles",title:T.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem")},order:2})},li8W:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return e.e(246).then(e.bind(null,"7s2V"))}})},lrmC:function(_t,P,e){},n01l:function(_t,P,e){"use strict";e.r(P);var T=e("3/fG"),re=e("/kV6"),J=e("sswD"),N=e("wQH0"),H=e("0/Sa"),z=e("cGHE"),M=e("aokT"),U=e("gCVg"),A=e("cMvZ"),c=function(){function l(d,p){this._selection=d,this._insertSpace=p,this._usedEndToken=null}return l._haystackHasNeedleAtOffset=function(d,p,E){if(E<0)return!1;var _=p.length,x=d.length;if(E+_>x)return!1;for(var F=0;F<_;F++){var R=d.charCodeAt(E+F),$=p.charCodeAt(F);if(R===$)continue;if(R>=65&&R<=90&&R+32===$)continue;if($>=65&&$<=90&&$+32===R)continue;return!1}return!0},l.prototype._createOperationsForBlockComment=function(d,p,E,_,x,F){var R=d.startLineNumber,$=d.startColumn,ie=d.endLineNumber,W=d.endColumn,B=x.getLineContent(R),le=x.getLineContent(ie),be=B.lastIndexOf(p,$-1+p.length),De=le.indexOf(E,W-1-E.length);if(be!==-1&&De!==-1)if(R===ie){var Te=B.substring(be+p.length,De);Te.indexOf(E)>=0&&(be=-1,De=-1)}else{var ke=B.substring(be+p.length),He=le.substring(0,De);(ke.indexOf(E)>=0||He.indexOf(E)>=0)&&(be=-1,De=-1)}var je;be!==-1&&De!==-1?(_&&be+p.length<B.length&&B.charCodeAt(be+p.length)===32&&(p=p+" "),_&&De>0&&le.charCodeAt(De-1)===32&&(E=" "+E,De-=1),je=l._createRemoveBlockCommentOperations(new M.a(R,be+p.length+1,ie,De+1),p,E)):(je=l._createAddBlockCommentOperations(d,p,E,this._insertSpace),this._usedEndToken=je.length===1?E:null);for(var oe=0,ee=je;oe<ee.length;oe++){var ae=ee[oe];F.addTrackedEditOperation(ae.range,ae.text)}},l._createRemoveBlockCommentOperations=function(d,p,E){var _=[];return M.a.isEmpty(d)?_.push(H.a.delete(new M.a(d.startLineNumber,d.startColumn-p.length,d.endLineNumber,d.endColumn+E.length))):(_.push(H.a.delete(new M.a(d.startLineNumber,d.startColumn-p.length,d.startLineNumber,d.startColumn))),_.push(H.a.delete(new M.a(d.endLineNumber,d.endColumn,d.endLineNumber,d.endColumn+E.length)))),_},l._createAddBlockCommentOperations=function(d,p,E,_){var x=[];return M.a.isEmpty(d)?x.push(H.a.replace(new M.a(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),p+" "+E)):(x.push(H.a.insert(new z.a(d.startLineNumber,d.startColumn),p+(_?" ":""))),x.push(H.a.insert(new z.a(d.endLineNumber,d.endColumn),(_?" ":"")+E))),x},l.prototype.getEditOperations=function(d,p){var E=this._selection.startLineNumber,_=this._selection.startColumn;d.tokenizeIfCheap(E);var x=d.getLanguageIdAtPosition(E,_),F=A.a.getComments(x);if(!F||!F.blockCommentStartToken||!F.blockCommentEndToken)return;this._createOperationsForBlockComment(this._selection,F.blockCommentStartToken,F.blockCommentEndToken,this._insertSpace,d,p)},l.prototype.computeCursorState=function(d,p){var E=p.getInverseEditOperations();if(E.length===2){var _=E[0],x=E[1];return new U.a(_.range.endLineNumber,_.range.endColumn,x.range.startLineNumber,x.range.startColumn)}else{var F=E[0].range,R=this._usedEndToken?-this._usedEndToken.length-1:0;return new U.a(F.endLineNumber,F.endColumn+R,F.endLineNumber,F.endColumn+R)}},l}(),y=e("N0LK"),L=function(){function l(d,p,E,_){this._selection=d,this._tabSize=p,this._type=E,this._insertSpace=_,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1}return l._gatherPreflightCommentStrings=function(d,p,E){d.tokenizeIfCheap(p);var _=d.getLanguageIdAtPosition(p,1),x=A.a.getComments(_),F=x?x.lineCommentToken:null;if(!F)return null;for(var R=[],$=0,ie=E-p+1;$<ie;$++)R[$]={ignore:!1,commentStr:F,commentStrOffset:0,commentStrLength:F.length};return R},l._analyzeLines=function(d,p,E,_,x){var F=!0,R;d===0?R=!0:d===1?R=!1:R=!0;for(var $=0,ie=_.length;$<ie;$++){var W=_[$],B=x+$,le=E.getLineContent(B),be=y.q(le);if(be===-1){d===0||d===1,W.ignore=!0,W.commentStrOffset=le.length;continue}if(F=!1,W.ignore=!1,W.commentStrOffset=be,R&&!c._haystackHasNeedleAtOffset(le,W.commentStr,be)&&(d===0?R=!1:d===1||(W.ignore=!0)),R&&p){var De=be+W.commentStrLength;De<le.length&&le.charCodeAt(De)===32&&(W.commentStrLength+=1)}}if(d===0&&F){R=!1;for(var $=0,ie=_.length;$<ie;$++)_[$].ignore=!1}return{supported:!0,shouldRemoveComments:R,lines:_}},l._gatherPreflightData=function(d,p,E,_,x){var F=l._gatherPreflightCommentStrings(E,_,x);return F===null?{supported:!1}:l._analyzeLines(d,p,E,F,_)},l.prototype._executeLineComments=function(d,p,E,_){var x;E.shouldRemoveComments?x=l._createRemoveLineCommentsOperations(E.lines,_.startLineNumber):(l._normalizeInsertionPoint(d,E.lines,_.startLineNumber,this._tabSize),x=this._createAddLineCommentsOperations(E.lines,_.startLineNumber));for(var F=new z.a(_.positionLineNumber,_.positionColumn),R=0,$=x.length;R<$;R++)if(p.addEditOperation(x[R].range,x[R].text),x[R].range.isEmpty()&&x[R].range.getStartPosition().equals(F)){var ie=d.getLineContent(F.lineNumber);ie.length+1===F.column&&(this._deltaColumn=(x[R].text||"").length)}this._selectionId=p.trackSelection(_)},l.prototype._attemptRemoveBlockComment=function(d,p,E,_){var x=p.startLineNumber,F=p.endLineNumber,R=_.length+Math.max(d.getLineFirstNonWhitespaceColumn(p.startLineNumber),p.startColumn),$=d.getLineContent(x).lastIndexOf(E,R-1),ie=d.getLineContent(F).indexOf(_,p.endColumn-1-E.length);return $!==-1&&ie===-1&&(ie=d.getLineContent(x).indexOf(_,$+E.length),F=x),$===-1&&ie!==-1&&($=d.getLineContent(F).lastIndexOf(E,ie),x=F),p.isEmpty()&&($===-1||ie===-1)&&($=d.getLineContent(x).indexOf(E),$!==-1&&(ie=d.getLineContent(x).indexOf(_,$+E.length))),$!==-1&&d.getLineContent(x).charCodeAt($+E.length)===32&&(E+=" "),ie!==-1&&d.getLineContent(F).charCodeAt(ie-1)===32&&(_=" "+_,ie-=1),$!==-1&&ie!==-1?c._createRemoveBlockCommentOperations(new M.a(x,$+E.length+1,F,ie+1),E,_):null},l.prototype._executeBlockComment=function(d,p,E){d.tokenizeIfCheap(E.startLineNumber);var _=d.getLanguageIdAtPosition(E.startLineNumber,1),x=A.a.getComments(_);if(!x||!x.blockCommentStartToken||!x.blockCommentEndToken)return;var F=x.blockCommentStartToken,R=x.blockCommentEndToken,$=this._attemptRemoveBlockComment(d,E,F,R);if(!$){if(E.isEmpty()){var ie=d.getLineContent(E.startLineNumber),W=y.q(ie);W===-1&&(W=ie.length),$=c._createAddBlockCommentOperations(new M.a(E.startLineNumber,W+1,E.startLineNumber,ie.length+1),F,R,this._insertSpace)}else $=c._createAddBlockCommentOperations(new M.a(E.startLineNumber,d.getLineFirstNonWhitespaceColumn(E.startLineNumber),E.endLineNumber,d.getLineMaxColumn(E.endLineNumber)),F,R,this._insertSpace);$.length===1&&(this._deltaColumn=F.length+1)}this._selectionId=p.trackSelection(E);for(var B=0,le=$;B<le.length;B++){var be=le[B];p.addEditOperation(be.range,be.text)}},l.prototype.getEditOperations=function(d,p){var E=this._selection;this._moveEndPositionDown=!1,E.startLineNumber<E.endLineNumber&&E.endColumn===1&&(this._moveEndPositionDown=!0,E=E.setEndPosition(E.endLineNumber-1,d.getLineMaxColumn(E.endLineNumber-1)));var _=l._gatherPreflightData(this._type,this._insertSpace,d,E.startLineNumber,E.endLineNumber);return _.supported?this._executeLineComments(d,p,_,E):this._executeBlockComment(d,p,E)},l.prototype.computeCursorState=function(d,p){var E=p.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(E=E.setEndPosition(E.endLineNumber+1,1)),new U.a(E.selectionStartLineNumber,E.selectionStartColumn+this._deltaColumn,E.positionLineNumber,E.positionColumn+this._deltaColumn)},l._createRemoveLineCommentsOperations=function(d,p){for(var E=[],_=0,x=d.length;_<x;_++){var F=d[_];if(F.ignore)continue;E.push(H.a.delete(new M.a(p+_,F.commentStrOffset+1,p+_,F.commentStrOffset+F.commentStrLength+1)))}return E},l.prototype._createAddLineCommentsOperations=function(d,p){for(var E=[],_=this._insertSpace?" ":"",x=0,F=d.length;x<F;x++){var R=d[x];if(R.ignore)continue;E.push(H.a.insert(new z.a(p+x,R.commentStrOffset+1),R.commentStr+_))}return E},l.nextVisibleColumn=function(d,p,E,_){return E?d+(p-d%p):d+_},l._normalizeInsertionPoint=function(d,p,E,_){for(var x=1073741824,F,R,$=0,ie=p.length;$<ie;$++){if(p[$].ignore)continue;for(var W=d.getLineContent(E+$),B=0,le=0,be=p[$].commentStrOffset;B<x&&le<be;le++)B=l.nextVisibleColumn(B,_,W.charCodeAt(le)===9,1);B<x&&(x=B)}x=Math.floor(x/_)*_;for(var $=0,ie=p.length;$<ie;$++){if(p[$].ignore)continue;var W=d.getLineContent(E+$),B=0;for(F=0,R=p[$].commentStrOffset;B<x&&F<R;F++)B=l.nextVisibleColumn(B,_,W.charCodeAt(F)===9,1);B>x?p[$].commentStrOffset=F-1:p[$].commentStrOffset=F}},l}(),f=function(){var l=function(p,E){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,x){_.__proto__=x}||function(_,x){for(var F in x)x.hasOwnProperty(F)&&(_[F]=x[F])},l(p,E)};return function(d,p){l(d,p);function E(){this.constructor=d}d.prototype=p===null?Object.create(p):(E.prototype=p.prototype,new E)}}(),v=function(l){f(d,l);function d(p,E){var _=l.call(this,E)||this;return _._type=p,_}return d.prototype.run=function(p,E){if(!E.hasModel())return;for(var _=E.getModel(),x=[],F=E.getSelections(),R=_.getOptions(),$=E.getOption(13),ie=0,W=F;ie<W.length;ie++){var B=W[ie];x.push(new L(B,R.tabSize,this._type,$.insertSpace))}E.pushUndoStop(),E.executeCommands(this.id,x),E.pushUndoStop()},d}(J.b),S=function(l){f(d,l);function d(){return l.call(this,0,{id:"editor.action.commentLine",label:T.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:2048|85,weight:100},menuOpts:{menuId:17,group:"5_insert",title:T.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}return d}(v),g=function(l){f(d,l);function d(){return l.call(this,1,{id:"editor.action.addCommentLine",label:T.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:Object(re.a)(2048|41,2048|33),weight:100}})||this}return d}(v),u=function(l){f(d,l);function d(){return l.call(this,2,{id:"editor.action.removeCommentLine",label:T.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:Object(re.a)(2048|41,2048|51),weight:100}})||this}return d}(v),s=function(l){f(d,l);function d(){return l.call(this,{id:"editor.action.blockComment",label:T.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:1024|512|31,linux:{primary:2048|1024|31},weight:100},menuOpts:{menuId:17,group:"5_insert",title:T.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}return d.prototype.run=function(p,E){if(!E.hasModel())return;for(var _=E.getOption(13),x=[],F=E.getSelections(),R=0,$=F;R<$.length;R++){var ie=$[R];x.push(new c(ie,_.insertSpace))}E.pushUndoStop(),E.executeCommands(this.id,x),E.pushUndoStop()},d}(J.b);Object(J.f)(S),Object(J.f)(g),Object(J.f)(u),Object(J.f)(s)},n18v:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return e.e(296).then(e.bind(null,"nNVF"))}})},nB0o:function(_t,P,e){"use strict";e.d(P,"a",function(){return Fs});var T=e("lrmC"),re=e("3/fG"),J=e("EffR"),N=e("/cxE"),H=e("MI8n"),z=e("pmY6"),M=e("tYmi"),U=e("HdwC"),A=e("sswD"),c=e("Vxe3"),y=e("ZlPH"),L=e("MNsG"),f=e("pg8w"),v=e("D3Dy"),S=e("XSiN"),g=e("X+cX"),u=e("AKMP"),s=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),l=function(){function V(n,t){this.x=n,this.y=t}return V.prototype.toClientCoordinates=function(){return new d(this.x-J.e.scrollX,this.y-J.e.scrollY)},V}(),d=function(){function V(n,t){this.clientX=n,this.clientY=t}return V.prototype.toPageCoordinates=function(){return new l(this.clientX+J.e.scrollX,this.clientY+J.e.scrollY)},V}(),p=function(){function V(n,t,i,m){this.x=n,this.y=t,this.width=i,this.height=m}return V}();function E(V){var n=J.C(V);return new p(n.left,n.top,n.width,n.height)}var _=function(V){s(n,V);function n(t,i){var m=V.call(this,t)||this;return m.pos=new l(m.posx,m.posy),m.editorPos=E(i),m}return n}(S.b),x=function(){function V(n){this._editorViewDomNode=n}return V.prototype._create=function(n){return new _(n,this._editorViewDomNode)},V.prototype.onContextMenu=function(n,t){var i=this;return J.j(n,"contextmenu",function(m){t(i._create(m))})},V.prototype.onMouseUp=function(n,t){var i=this;return J.j(n,"mouseup",function(m){t(i._create(m))})},V.prototype.onMouseDown=function(n,t){var i=this;return J.j(n,"mousedown",function(m){t(i._create(m))})},V.prototype.onMouseLeave=function(n,t){var i=this;return J.k(n,function(m){t(i._create(m))})},V.prototype.onMouseMoveThrottled=function(n,t,i,m){var C=this,K=function(_e,qe){return i(_e,C._create(qe))};return J.m(n,"mousemove",t,K,m)},V}(),F=function(){function V(n){this._editorViewDomNode=n}return V.prototype._create=function(n){return new _(n,this._editorViewDomNode)},V.prototype.onPointerUp=function(n,t){var i=this;return J.j(n,"pointerup",function(m){t(i._create(m))})},V.prototype.onPointerDown=function(n,t){var i=this;return J.j(n,"pointerdown",function(m){t(i._create(m))})},V.prototype.onPointerLeave=function(n,t){var i=this;return J.l(n,function(m){t(i._create(m))})},V.prototype.onPointerMoveThrottled=function(n,t,i,m){var C=this,K=function(_e,qe){return i(_e,C._create(qe))};return J.m(n,"pointermove",t,K,m)},V}(),R=function(V){s(n,V);function n(t){var i=V.call(this)||this;return i._editorViewDomNode=t,i._globalMouseMoveMonitor=i._register(new u.a),i._keydownListener=null,i}return n.prototype.startMonitoring=function(t,i,m,C,K){var Ne=this;this._keydownListener=J.o(document,"keydown",function(qe){var ut=qe.toKeybinding();if(ut.isModifierKey())return;Ne._globalMouseMoveMonitor.stopMonitoring(!0)},!0);var _e=function(ut,St){return m(ut,new _(St,Ne._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(t,i,_e,C,function(){Ne._keydownListener.dispose(),K()})},n}(z.a),$=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ie=function(V){$(n,V);function n(){var t=V.call(this)||this;return t._shouldRender=!0,t}return n.prototype.shouldRender=function(){return this._shouldRender},n.prototype.forceShouldRender=function(){this._shouldRender=!0},n.prototype.setShouldRender=function(){this._shouldRender=!0},n.prototype.onDidRender=function(){this._shouldRender=!1},n.prototype.onConfigurationChanged=function(t){return!1},n.prototype.onContentSizeChanged=function(t){return!1},n.prototype.onCursorStateChanged=function(t){return!1},n.prototype.onDecorationsChanged=function(t){return!1},n.prototype.onFlushed=function(t){return!1},n.prototype.onFocusChanged=function(t){return!1},n.prototype.onLanguageConfigurationChanged=function(t){return!1},n.prototype.onLineMappingChanged=function(t){return!1},n.prototype.onLinesChanged=function(t){return!1},n.prototype.onLinesDeleted=function(t){return!1},n.prototype.onLinesInserted=function(t){return!1},n.prototype.onRevealRangeRequest=function(t){return!1},n.prototype.onScrollChanged=function(t){return!1},n.prototype.onThemeChanged=function(t){return!1},n.prototype.onTokensChanged=function(t){return!1},n.prototype.onTokensColorsChanged=function(t){return!1},n.prototype.onZonesChanged=function(t){return!1},n.prototype.handleEvents=function(t){for(var i=!1,m=0,C=t.length;m<C;m++){var K=t[m];switch(K.type){case 1:this.onConfigurationChanged(K)&&(i=!0);break;case 2:this.onContentSizeChanged(K)&&(i=!0);break;case 3:this.onCursorStateChanged(K)&&(i=!0);break;case 4:this.onDecorationsChanged(K)&&(i=!0);break;case 5:this.onFlushed(K)&&(i=!0);break;case 6:this.onFocusChanged(K)&&(i=!0);break;case 7:this.onLanguageConfigurationChanged(K)&&(i=!0);break;case 8:this.onLineMappingChanged(K)&&(i=!0);break;case 9:this.onLinesChanged(K)&&(i=!0);break;case 10:this.onLinesDeleted(K)&&(i=!0);break;case 11:this.onLinesInserted(K)&&(i=!0);break;case 12:this.onRevealRangeRequest(K)&&(i=!0);break;case 13:this.onScrollChanged(K)&&(i=!0);break;case 15:this.onTokensChanged(K)&&(i=!0);break;case 14:this.onThemeChanged(K)&&(i=!0);break;case 16:this.onTokensColorsChanged(K)&&(i=!0);break;case 17:this.onZonesChanged(K)&&(i=!0);break;default:console.info("View received unknown event: "),console.info(K)}}i&&(this._shouldRender=!0)},n}(z.a),W=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),B=function(V){W(n,V);function n(t){var i=V.call(this)||this;return i._context=t,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},n}(ie),le=function(){function V(){}return V.write=function(n,t){n instanceof y.a,n.setAttribute("data-mprt",String(t))},V.read=function(n){var t=n.getAttribute("data-mprt");return t===null?0:parseInt(t,10)},V.collect=function(n,t){for(var i=[],m=0;n&&n!==document.body&&!(n===t);)n.nodeType===n.ELEMENT_NODE&&(i[m++]=this.read(n)),n=n.parentElement;for(var C=new Uint8Array(m),K=0;K<m;K++)C[K]=i[m-K-1];return C},V}(),be=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),De=function(){function V(n,t){this._viewLayout=n,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}return V.prototype.getScrolledTopFromAbsoluteTop=function(n){return n-this.scrollTop},V.prototype.getVerticalOffsetForLineNumber=function(n){return this._viewLayout.getVerticalOffsetForLineNumber(n)},V.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},V}(),Te=function(V){be(n,V);function n(t,i,m){var C=V.call(this,t,i)||this;return C._viewLines=m,C}return n.prototype.linesVisibleRangesForRange=function(t,i){return this._viewLines.linesVisibleRangesForRange(t,i)},n.prototype.visibleRangeForPosition=function(t){return this._viewLines.visibleRangeForPosition(t)},n}(De),ke=function(){function V(n,t,i){this.outsideRenderedLine=n,this.lineNumber=t,this.ranges=i}return V}(),He=function(){function V(n,t){this.left=Math.round(n),this.width=Math.round(t)}return V.prototype.toString=function(){return"["+this.left+","+this.width+"]"},V}(),je=function(){function V(n,t){this.outsideRenderedLine=n,this.left=Math.round(t)}return V}(),oe=function(){function V(n,t){this.outsideRenderedLine=n,this.ranges=t}return V}(),ee=function(){function V(n,t){this.left=n,this.width=t}return V.prototype.toString=function(){return"["+this.left+","+this.width+"]"},V.compare=function(n,t){return n.left-t.left},V}(),ae=function(){function V(){}return V._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},V._detachRange=function(n,t){n.selectNodeContents(t)},V._readClientRects=function(n,t,i,m,C){var K=this._createRange();try{return K.setStart(n,t),K.setEnd(i,m),K.getClientRects()}catch(Ne){return null}finally{this._detachRange(K,C)}},V._mergeAdjacentRanges=function(n){if(n.length===1)return[new He(n[0].left,n[0].width)];n.sort(ee.compare);for(var t=[],i=0,m=n[0].left,C=n[0].width,K=1,Ne=n.length;K<Ne;K++){var _e=n[K],qe=_e.left,ut=_e.width;m+C+.9>=qe?C=Math.max(C,qe+ut-m):(t[i++]=new He(m,C),m=qe,C=ut)}return t[i++]=new He(m,C),t},V._createHorizontalRangesFromClientRects=function(n,t){if(!n||n.length===0)return null;for(var i=[],m=0,C=n.length;m<C;m++){var K=n[m];i[m]=new ee(Math.max(0,K.left-t),K.width)}return this._mergeAdjacentRanges(i)},V.readHorizontalRanges=function(n,t,i,m,C,K,Ne){var _e=0,qe=n.children.length-1;if(_e>qe)return null;t=Math.min(qe,Math.max(_e,t)),m=Math.min(qe,Math.max(_e,m)),t!==m&&(m>0&&C===0&&(m--,C=1073741824));var ut=n.children[t].firstChild,St=n.children[m].firstChild;if((!ut||!St)&&(!ut&&i===0&&t>0&&(ut=n.children[t-1].firstChild,i=1073741824),!St&&C===0&&m>0&&(St=n.children[m-1].firstChild,C=1073741824)),!ut||!St)return null;i=Math.min(ut.textContent.length,Math.max(0,i)),C=Math.min(St.textContent.length,Math.max(0,C));var et=this._readClientRects(ut,i,St,C,Ne);return this._createHorizontalRangesFromClientRects(et,K)},V}(),q=e("dBaI"),ce=e("baJR"),X=e("t9D7"),he=e("/UlZ"),Pe=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Xe=function(){return L.f?!0:!(L.d||v.h||v.k)}(),pe=v.f,me=function(){function V(n,t){this._domNode=n,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(V.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),V}(),Se=function(){function V(n,t){this.themeType=t;var i=n.options,m=i.get(34);this.renderWhitespace=i.get(74),this.renderControlCharacters=i.get(69),this.spaceWidth=m.spaceWidth,this.middotWidth=m.middotWidth,this.useMonospaceOptimizations=m.isMonospace&&!i.get(23),this.canUseHalfwidthRightwardsArrow=m.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(49),this.stopRenderingLineAfter=i.get(88),this.fontLigatures=i.get(35)}return V.prototype.equals=function(n){return this.themeType===n.themeType&&this.renderWhitespace===n.renderWhitespace&&this.renderControlCharacters===n.renderControlCharacters&&this.spaceWidth===n.spaceWidth&&this.middotWidth===n.middotWidth&&this.useMonospaceOptimizations===n.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===n.canUseHalfwidthRightwardsArrow&&this.lineHeight===n.lineHeight&&this.stopRenderingLineAfter===n.stopRenderingLineAfter&&this.fontLigatures===n.fontLigatures},V}(),Re=function(){function V(n){this._options=n,this._isMaybeInvalid=!0,this._renderedViewLine=null}return V.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},V.prototype.setDomNode=function(n){if(this._renderedViewLine)this._renderedViewLine.domNode=Object(y.b)(n);else throw new Error("I have no rendered view line to set the dom node to...")},V.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},V.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},V.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},V.prototype.onOptionsChanged=function(n){this._isMaybeInvalid=!0,this._options=n},V.prototype.onSelectionChanged=function(){return pe||this._options.themeType===X.b||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1},V.prototype.renderLine=function(n,t,i,m){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var C=i.getViewLineRenderingData(n),K=this._options,Ne=q.a.filter(C.inlineDecorations,n,C.minColumn,C.maxColumn),_e=null;if(pe||K.themeType===X.b||this._options.renderWhitespace==="selection")for(var qe=i.selections,ut=0,St=qe;ut<St.length;ut++){var et=St[ut];if(et.endLineNumber<n||et.startLineNumber>n)continue;var Wt=et.startLineNumber===n?et.startColumn:C.minColumn,Ft=et.endLineNumber===n?et.endColumn:C.maxColumn;Wt<Ft&&(this._options.renderWhitespace!=="selection"?Ne.push(new q.a(Wt,Ft,"inline-selected-text",0)):(_e||(_e=[]),_e.push(new ce.b(Wt-1,Ft-1))))}var Vt=new ce.c(K.useMonospaceOptimizations,K.canUseHalfwidthRightwardsArrow,C.content,C.continuesWithWrappedLine,C.isBasicASCII,C.containsRTL,C.minColumn-1,C.tokens,Ne,C.tabSize,C.startVisibleColumn,K.spaceWidth,K.middotWidth,K.stopRenderingLineAfter,K.renderWhitespace,K.renderControlCharacters,K.fontLigatures!==he.d.OFF,_e);if(this._renderedViewLine&&this._renderedViewLine.input.equals(Vt))return!1;m.appendASCIIString('<div style="top:'),m.appendASCIIString(String(t)),m.appendASCIIString("px;height:"),m.appendASCIIString(String(this._options.lineHeight)),m.appendASCIIString('px;" class="'),m.appendASCIIString(V.CLASS_NAME),m.appendASCIIString('">');var qt=Object(ce.d)(Vt,m);m.appendASCIIString("</div>");var $t=null;return Xe&&C.isBasicASCII&&K.useMonospaceOptimizations&&qt.containsForeignElements===0&&(C.content.length<300&&Vt.lineTokens.getCount()<100&&($t=new Ee(this._renderedViewLine?this._renderedViewLine.domNode:null,Vt,qt.characterMapping))),$t||($t=b(this._renderedViewLine?this._renderedViewLine.domNode:null,Vt,qt.characterMapping,qt.containsRTL,qt.containsForeignElements)),this._renderedViewLine=$t,!0},V.prototype.layoutLine=function(n,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},V.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},V.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},V.prototype.getVisibleRangesForRange=function(n,t,i){if(!this._renderedViewLine)return null;n=n|0,t=t|0,n=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,n)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var m=this._renderedViewLine.input.stopRenderingLineAfter|0,C=!1;m!==-1&&n>m+1&&t>m+1&&(C=!0),m!==-1&&n>m+1&&(n=m+1),m!==-1&&t>m+1&&(t=m+1);var K=this._renderedViewLine.getVisibleRangesForRange(n,t,i);return K&&K.length>0?new oe(C,K):null},V.prototype.getColumnOfNodeOffset=function(n,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(n,t,i):1},V.CLASS_NAME="view-line",V}(),Ee=function(){function V(n,t,i){this.domNode=n,this.input=t,this._characterMapping=i,this._charWidth=t.spaceWidth}return V.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},V.prototype.getWidthIsFast=function(){return!0},V.prototype.getVisibleRangesForRange=function(n,t,i){var m=this._getCharPosition(n),C=this._getCharPosition(t);return[new He(m,C-m)]},V.prototype._getCharPosition=function(n){var t=this._characterMapping.getAbsoluteOffsets();return t.length===0?0:Math.round(this._charWidth*t[n-1])},V.prototype.getColumnOfNodeOffset=function(n,t,i){for(var m=t.textContent.length,C=-1;t;)t=t.previousSibling,C++;var K=this._characterMapping.partDataToCharOffset(C,m,i);return K+1},V}(),ve=function(){function V(n,t,i,m,C){if(this.domNode=n,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=C,this._cachedWidth=-1,this._pixelOffsetCache=null,!m||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var K=0,Ne=this._characterMapping.length;K<=Ne;K++)this._pixelOffsetCache[K]=-1}}return V.prototype._getReadingTarget=function(n){return n.domNode.firstChild},V.prototype.getWidth=function(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},V.prototype.getWidthIsFast=function(){return!(this._cachedWidth===-1)},V.prototype.getVisibleRangesForRange=function(n,t,i){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){var m=this._readPixelOffset(this.domNode,n,i);if(m===-1)return null;var C=this._readPixelOffset(this.domNode,t,i);return C===-1?null:[new He(m,C-m)]}return this._readVisibleRangesForRange(this.domNode,n,t,i)},V.prototype._readVisibleRangesForRange=function(n,t,i,m){if(t===i){var C=this._readPixelOffset(n,t,m);return C===-1?null:[new He(C,0)]}else return this._readRawVisibleRangesForRange(n,t,i,m)},V.prototype._readPixelOffset=function(n,t,i){if(this._characterMapping.length===0){if(this._containsForeignElements===0)return 0;if(this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();var m=this._getReadingTarget(n);return m.firstChild?m.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){var C=this._pixelOffsetCache[t];if(C!==-1)return C;var K=this._actualReadPixelOffset(n,t,i);return this._pixelOffsetCache[t]=K,K}return this._actualReadPixelOffset(n,t,i)},V.prototype._actualReadPixelOffset=function(n,t,i){if(this._characterMapping.length===0){var m=ae.readHorizontalRanges(this._getReadingTarget(n),0,0,0,0,i.clientRectDeltaLeft,i.endNode);return!m||m.length===0?-1:m[0].left}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var C=this._characterMapping.charOffsetToPartData(t-1),K=ce.a.getPartIndex(C),Ne=ce.a.getCharIndex(C),_e=ae.readHorizontalRanges(this._getReadingTarget(n),K,Ne,K,Ne,i.clientRectDeltaLeft,i.endNode);return!_e||_e.length===0?-1:_e[0].left},V.prototype._readRawVisibleRangesForRange=function(n,t,i,m){if(t===1&&i===this._characterMapping.length)return[new He(0,this.getWidth())];var C=this._characterMapping.charOffsetToPartData(t-1),K=ce.a.getPartIndex(C),Ne=ce.a.getCharIndex(C),_e=this._characterMapping.charOffsetToPartData(i-1),qe=ce.a.getPartIndex(_e),ut=ce.a.getCharIndex(_e);return ae.readHorizontalRanges(this._getReadingTarget(n),K,Ne,qe,ut,m.clientRectDeltaLeft,m.endNode)},V.prototype.getColumnOfNodeOffset=function(n,t,i){for(var m=t.textContent.length,C=-1;t;)t=t.previousSibling,C++;var K=this._characterMapping.partDataToCharOffset(C,m,i);return K+1},V}(),Q=function(V){Pe(n,V);function n(){return V!==null&&V.apply(this,arguments)||this}return n.prototype._readVisibleRangesForRange=function(t,i,m,C){var K=V.prototype._readVisibleRangesForRange.call(this,t,i,m,C);if(!K||K.length===0||i===m||i===1&&m===this._characterMapping.length)return K;if(!this.input.containsRTL){var Ne=this._readPixelOffset(t,m,C);if(Ne!==-1){var _e=K[K.length-1];_e.left<Ne&&(_e.width=Ne-_e.left)}}return K},n}(ve),b=function(){return v.m?k:se}();function k(V,n,t,i,m){return new Q(V,n,t,i,m)}function se(V,n,t,i,m){return new ve(V,n,t,i,m)}var ne=e("cGHE"),Ce=e("aokT"),Oe=e("Ll0s"),we=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ve=function(){function V(n,t){this.lastViewCursorsRenderData=n,this.lastTextareaPosition=t}return V}(),Qe=function(){function V(n,t,i,m,C,K){i===void 0&&(i=0),m===void 0&&(m=null),C===void 0&&(C=null),K===void 0&&(K=null),this.element=n,this.type=t,this.mouseColumn=i,this.position=m,!C&&m&&(C=new Ce.a(m.lineNumber,m.column,m.lineNumber,m.column)),this.range=C,this.detail=K}return V._typeToString=function(n){return n===1?"TEXTAREA":n===2?"GUTTER_GLYPH_MARGIN":n===3?"GUTTER_LINE_NUMBERS":n===4?"GUTTER_LINE_DECORATIONS":n===5?"GUTTER_VIEW_ZONE":n===6?"CONTENT_TEXT":n===7?"CONTENT_EMPTY":n===8?"CONTENT_VIEW_ZONE":n===9?"CONTENT_WIDGET":n===10?"OVERVIEW_RULER":n===11?"SCROLLBAR":n===12?"OVERLAY_WIDGET":"UNKNOWN"},V.toString=function(n){return this._typeToString(n.type)+": "+n.position+" - "+n.range+" - "+n.detail},V.prototype.toString=function(){return V.toString(this)},V}(),it=function(){function V(){}return V.isTextArea=function(n){return n.length===2&&n[0]===3&&n[1]===6},V.isChildOfViewLines=function(n){return n.length>=4&&n[0]===3&&n[3]===7},V.isStrictChildOfViewLines=function(n){return n.length>4&&n[0]===3&&n[3]===7},V.isChildOfScrollableElement=function(n){return n.length>=2&&n[0]===3&&n[1]===5},V.isChildOfMinimap=function(n){return n.length>=2&&n[0]===3&&n[1]===8},V.isChildOfContentWidgets=function(n){return n.length>=4&&n[0]===3&&n[3]===1},V.isChildOfOverflowingContentWidgets=function(n){return n.length>=1&&n[0]===2},V.isChildOfOverlayWidgets=function(n){return n.length>=2&&n[0]===3&&n[1]===4},V}(),gt=function(){function V(n,t,i){this.model=n.model;var m=n.configuration.options;this.layoutInfo=m.get(107),this.viewDomNode=t.viewDomNode,this.lineHeight=m.get(49),this.typicalHalfwidthCharacterWidth=m.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=n,this._viewHelper=t}return V.prototype.getZoneAtCoord=function(n){return V.getZoneAtCoord(this._context,n)},V.getZoneAtCoord=function(n,t){var i=n.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){var m=i.verticalOffset+i.height/2,C=n.model.getLineCount(),K=null,Ne=void 0,_e=null;return i.afterLineNumber!==C&&(_e=new ne.a(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(K=new ne.a(i.afterLineNumber,n.model.getLineMaxColumn(i.afterLineNumber))),_e===null?Ne=K:K===null?Ne=_e:t<m?Ne=K:Ne=_e,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:K,positionAfter:_e,position:Ne}}return null},V.prototype.getFullLineRangeAtCoord=function(n){if(this._context.viewLayout.isAfterLines(n)){var t=this._context.model.getLineCount(),i=this._context.model.getLineMaxColumn(t);return{range:new Ce.a(t,i,t,i),isAfterLines:!0}}var m=this._context.viewLayout.getLineNumberAtVerticalOffset(n),C=this._context.model.getLineMaxColumn(m);return{range:new Ce.a(m,1,m,C),isAfterLines:!1}},V.prototype.getLineNumberAtVerticalOffset=function(n){return this._context.viewLayout.getLineNumberAtVerticalOffset(n)},V.prototype.isAfterLines=function(n){return this._context.viewLayout.isAfterLines(n)},V.prototype.getVerticalOffsetForLineNumber=function(n){return this._context.viewLayout.getVerticalOffsetForLineNumber(n)},V.prototype.findAttribute=function(n,t){return V._findAttribute(n,t,this._viewHelper.viewDomNode)},V._findAttribute=function(n,t,i){for(;n&&n!==document.body;){if(n.hasAttribute&&n.hasAttribute(t))return n.getAttribute(t);if(n===i)return null;n=n.parentNode}return null},V.prototype.getLineWidth=function(n){return this._viewHelper.getLineWidth(n)},V.prototype.visibleRangeForPosition=function(n,t){return this._viewHelper.visibleRangeForPosition(n,t)},V.prototype.getPositionFromDOMInfo=function(n,t){return this._viewHelper.getPositionFromDOMInfo(n,t)},V.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},V.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},V}(),Rt=function(){function V(n,t,i){this.editorPos=t,this.pos=i,this.mouseVerticalOffset=Math.max(0,n.getCurrentScrollTop()+i.y-t.y),this.mouseContentHorizontalOffset=n.getCurrentScrollLeft()+i.x-t.x-n.layoutInfo.contentLeft,this.isInMarginArea=i.x-t.x<n.layoutInfo.contentLeft&&i.x-t.x>=n.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,ln._getMouseColumn(this.mouseContentHorizontalOffset,n.typicalHalfwidthCharacterWidth))}return V}(),Dt=function(V){we(n,V);function n(t,i,m,C){var K=V.call(this,t,i,m)||this;return K._ctx=t,C?(K.target=C,K.targetPath=le.collect(C,t.viewDomNode)):(K.target=null,K.targetPath=new Uint8Array(0)),K}return n.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+`
target: `+(this.target?this.target.outerHTML:null)},n.prototype.fulfill=function(t,i,m,C){i===void 0&&(i=null),m===void 0&&(m=null),C===void 0&&(C=null);var K=this.mouseColumn;return i&&i.column<this._ctx.model.getLineMaxColumn(i.lineNumber)&&(K=Oe.a.visibleColumnFromColumn(this._ctx.model.getLineContent(i.lineNumber),i.column,this._ctx.model.getOptions().tabSize)+1),new Qe(this.target,t,K,i,m,C)},n.prototype.withTarget=function(t){return new n(this._ctx,this.editorPos,this.pos,t)},n}(Rt),zt={isAfterLines:!0};function cn(V){return{isAfterLines:!1,horizontalDistanceToText:V}}var ln=function(){function V(n,t){this._context=n,this._viewHelper=t}return V.prototype.mouseTargetIsWidget=function(n){var t=n.target,i=le.collect(t,this._viewHelper.viewDomNode);return it.isChildOfContentWidgets(i)||it.isChildOfOverflowingContentWidgets(i)?!0:!!it.isChildOfOverlayWidgets(i)},V.prototype.createMouseTarget=function(n,t,i,m){var C=new gt(this._context,this._viewHelper,n),K=new Dt(C,t,i,m);try{var Ne=V._createMouseTarget(C,K,!1);return Ne}catch(_e){return K.fulfill(0)}},V._createMouseTarget=function(n,t,i){if(t.target===null){if(i)return t.fulfill(0);var m=V._doHitTest(n,t);return m.position?V.createMouseTargetFromHitTestPosition(n,t,m.position.lineNumber,m.position.column):this._createMouseTarget(n,t.withTarget(m.hitTarget),!0)}var C=t,K=null;return K=K||V._hitTestContentWidget(n,C),K=K||V._hitTestOverlayWidget(n,C),K=K||V._hitTestMinimap(n,C),K=K||V._hitTestScrollbarSlider(n,C),K=K||V._hitTestViewZone(n,C),K=K||V._hitTestMargin(n,C),K=K||V._hitTestViewCursor(n,C),K=K||V._hitTestTextArea(n,C),K=K||V._hitTestViewLines(n,C,i),K=K||V._hitTestScrollbar(n,C),K||t.fulfill(0)},V._hitTestContentWidget=function(n,t){if(it.isChildOfContentWidgets(t.targetPath)||it.isChildOfOverflowingContentWidgets(t.targetPath)){var i=n.findAttribute(t.target,"widgetId");return i?t.fulfill(9,null,null,i):t.fulfill(0)}return null},V._hitTestOverlayWidget=function(n,t){if(it.isChildOfOverlayWidgets(t.targetPath)){var i=n.findAttribute(t.target,"widgetId");return i?t.fulfill(12,null,null,i):t.fulfill(0)}return null},V._hitTestViewCursor=function(n,t){if(t.target)for(var i=n.lastRenderData.lastViewCursorsRenderData,m=0,C=i;m<C.length;m++){var K=C[m];if(t.target===K.domNode)return t.fulfill(6,K.position)}if(t.isInContentArea)for(var i=n.lastRenderData.lastViewCursorsRenderData,Ne=t.mouseContentHorizontalOffset,_e=t.mouseVerticalOffset,qe=0,ut=i;qe<ut.length;qe++){var K=ut[qe];if(Ne<K.contentLeft)continue;if(Ne>K.contentLeft+K.width)continue;var St=n.getVerticalOffsetForLineNumber(K.position.lineNumber);if(St<=_e&&_e<=St+K.height)return t.fulfill(6,K.position)}return null},V._hitTestViewZone=function(n,t){var i=n.getZoneAtCoord(t.mouseVerticalOffset);if(i){var m=t.isInContentArea?8:5;return t.fulfill(m,i.position,null,i)}return null},V._hitTestTextArea=function(n,t){return it.isTextArea(t.targetPath)?n.lastRenderData.lastTextareaPosition?t.fulfill(6,n.lastRenderData.lastTextareaPosition):t.fulfill(1,n.lastRenderData.lastTextareaPosition):null},V._hitTestMargin=function(n,t){if(t.isInMarginArea){var i=n.getFullLineRangeAtCoord(t.mouseVerticalOffset),m=i.range.getStartPosition(),C=Math.abs(t.pos.x-t.editorPos.x),K={isAfterLines:i.isAfterLines,glyphMarginLeft:n.layoutInfo.glyphMarginLeft,glyphMarginWidth:n.layoutInfo.glyphMarginWidth,lineNumbersWidth:n.layoutInfo.lineNumbersWidth,offsetX:C};return C-=n.layoutInfo.glyphMarginLeft,C<=n.layoutInfo.glyphMarginWidth?t.fulfill(2,m,i.range,K):(C-=n.layoutInfo.glyphMarginWidth,C<=n.layoutInfo.lineNumbersWidth?t.fulfill(3,m,i.range,K):(C-=n.layoutInfo.lineNumbersWidth,t.fulfill(4,m,i.range,K)))}return null},V._hitTestViewLines=function(n,t,i){if(!it.isChildOfViewLines(t.targetPath))return null;if(n.isAfterLines(t.mouseVerticalOffset)){var m=n.model.getLineCount(),C=n.model.getLineMaxColumn(m);return t.fulfill(7,new ne.a(m,C),void 0,zt)}if(i){if(it.isStrictChildOfViewLines(t.targetPath)){var K=n.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(n.model.getLineLength(K)===0){var Ne=n.getLineWidth(K),_e=cn(t.mouseContentHorizontalOffset-Ne);return t.fulfill(7,new ne.a(K,1),void 0,_e)}var qe=n.getLineWidth(K);if(t.mouseContentHorizontalOffset>=qe){var _e=cn(t.mouseContentHorizontalOffset-qe),ut=new ne.a(K,n.model.getLineMaxColumn(K));return t.fulfill(7,ut,void 0,_e)}}return t.fulfill(0)}var St=V._doHitTest(n,t);return St.position?V.createMouseTargetFromHitTestPosition(n,t,St.position.lineNumber,St.position.column):this._createMouseTarget(n,t.withTarget(St.hitTarget),!0)},V._hitTestMinimap=function(n,t){if(it.isChildOfMinimap(t.targetPath)){var i=n.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),m=n.model.getLineMaxColumn(i);return t.fulfill(11,new ne.a(i,m))}return null},V._hitTestScrollbarSlider=function(n,t){if(it.isChildOfScrollableElement(t.targetPath)&&(t.target&&t.target.nodeType===1)){var i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){var m=n.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),C=n.model.getLineMaxColumn(m);return t.fulfill(11,new ne.a(m,C))}}return null},V._hitTestScrollbar=function(n,t){if(it.isChildOfScrollableElement(t.targetPath)){var i=n.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),m=n.model.getLineMaxColumn(i);return t.fulfill(11,new ne.a(i,m))}return null},V.prototype.getMouseColumn=function(n,t){var i=this._context.configuration.options,m=i.get(107),C=this._context.viewLayout.getCurrentScrollLeft()+t.x-n.x-m.contentLeft;return V._getMouseColumn(C,i.get(34).typicalHalfwidthCharacterWidth)},V._getMouseColumn=function(n,t){if(n<0)return 1;var i=Math.round(n/t);return i+1},V.createMouseTargetFromHitTestPosition=function(n,t,i,m){var C=new ne.a(i,m),K=n.getLineWidth(i);if(t.mouseContentHorizontalOffset>K){if(v.e&&C.column===1){var Ne=cn(t.mouseContentHorizontalOffset-K);return t.fulfill(7,new ne.a(i,n.model.getLineMaxColumn(i)),void 0,Ne)}var _e=cn(t.mouseContentHorizontalOffset-K);return t.fulfill(7,C,void 0,_e)}var qe=n.visibleRangeForPosition(i,m);if(!qe)return t.fulfill(0,C);var ut=qe.left;if(t.mouseContentHorizontalOffset===ut)return t.fulfill(6,C);var St=[];if(St.push({offset:qe.left,column:m}),m>1){var et=n.visibleRangeForPosition(i,m-1);et&&St.push({offset:et.left,column:m-1})}var Wt=n.model.getLineMaxColumn(i);if(m<Wt){var Ft=n.visibleRangeForPosition(i,m+1);Ft&&St.push({offset:Ft.left,column:m+1})}St.sort(function(yn,pn){return yn.offset-pn.offset});for(var Vt=1;Vt<St.length;Vt++){var qt=St[Vt-1],$t=St[Vt];if(qt.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=$t.offset){var rn=new Ce.a(i,qt.column,i,$t.column);return t.fulfill(6,C,rn)}}return t.fulfill(6,C)},V._doHitTestWithCaretRangeFromPoint=function(n,t){var i=n.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),m=n.getVerticalOffsetForLineNumber(i),C=m+Math.floor(n.lineHeight/2),K=t.pos.y+(C-t.mouseVerticalOffset);K<=t.editorPos.y&&(K=t.editorPos.y+1),K>=t.editorPos.y+n.layoutInfo.height&&(K=t.editorPos.y+n.layoutInfo.height-1);var Ne=new l(t.pos.x,K),_e=this._actualDoHitTestWithCaretRangeFromPoint(n,Ne.toClientCoordinates());return _e.position?_e:this._actualDoHitTestWithCaretRangeFromPoint(n,t.pos.toClientCoordinates())},V._actualDoHitTestWithCaretRangeFromPoint=function(n,t){var i=J.E(n.viewDomNode),m;if(i?typeof i.caretRangeFromPoint=="undefined"?m=an(i,t.clientX,t.clientY):m=i.caretRangeFromPoint(t.clientX,t.clientY):m=document.caretRangeFromPoint(t.clientX,t.clientY),!m||!m.startContainer)return{position:null,hitTarget:null};var C=m.startContainer,K=null;if(C.nodeType===C.TEXT_NODE){var Ne=C.parentNode,_e=Ne?Ne.parentNode:null,qe=_e?_e.parentNode:null,ut=qe&&qe.nodeType===qe.ELEMENT_NODE?qe.className:null;if(ut===Re.CLASS_NAME){var St=n.getPositionFromDOMInfo(Ne,m.startOffset);return{position:St,hitTarget:null}}else K=C.parentNode}else if(C.nodeType===C.ELEMENT_NODE){var Ne=C.parentNode,_e=Ne?Ne.parentNode:null,et=_e&&_e.nodeType===_e.ELEMENT_NODE?_e.className:null;if(et===Re.CLASS_NAME){var St=n.getPositionFromDOMInfo(C,C.textContent.length);return{position:St,hitTarget:null}}else K=C}return{position:null,hitTarget:K}},V._doHitTestWithCaretPositionFromPoint=function(n,t){var i=document.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){var m=i.offsetNode.parentNode,C=m?m.parentNode:null,K=C?C.parentNode:null,Ne=K&&K.nodeType===K.ELEMENT_NODE?K.className:null;if(Ne===Re.CLASS_NAME){var _e=n.getPositionFromDOMInfo(i.offsetNode.parentNode,i.offset);return{position:_e,hitTarget:null}}else return{position:null,hitTarget:i.offsetNode.parentNode}}return{position:null,hitTarget:i.offsetNode}},V._doHitTestWithMoveToPoint=function(n,t){var i=null,m=null,C=document.body.createTextRange();try{C.moveToPoint(t.clientX,t.clientY)}catch(St){return{position:null,hitTarget:null}}C.collapse(!0);var K=C?C.parentElement():null,Ne=K?K.parentNode:null,_e=Ne?Ne.parentNode:null,qe=_e&&_e.nodeType===_e.ELEMENT_NODE?_e.className:"";if(qe===Re.CLASS_NAME){var ut=C.duplicate();ut.moveToElementText(K),ut.setEndPoint("EndToStart",C),i=n.getPositionFromDOMInfo(K,ut.text.length),ut.moveToElementText(n.viewDomNode)}else m=K;return C.moveToElementText(n.viewDomNode),{position:i,hitTarget:m}},V._doHitTest=function(n,t){return typeof document.caretRangeFromPoint=="function"?this._doHitTestWithCaretRangeFromPoint(n,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(n,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(n,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},V}();function an(V,n,t){var i=document.createRange(),m=V.elementFromPoint(n,t);if(m!==null){for(;m&&m.firstChild&&m.firstChild.nodeType!==m.firstChild.TEXT_NODE;)m=m.lastChild;var C=m.getBoundingClientRect(),K=window.getComputedStyle(m,null).getPropertyValue("font"),Ne=m.innerText,_e=C.left,qe=0,ut=void 0;if(n>C.left+C.width)qe=Ne.length;else for(var St=jt.getInstance(),et=0;et<Ne.length+1;et++){if(ut=St.getCharWidth(Ne.charAt(et),K)/2,_e+=ut,n<_e){qe=et;break}_e+=ut}i.setStart(m.firstChild,qe),i.setEnd(m.firstChild,qe)}return i}var jt=function(){function V(){this._cache={},this._canvas=document.createElement("canvas")}return V.getInstance=function(){return V._INSTANCE||(V._INSTANCE=new V),V._INSTANCE},V.prototype.getCharWidth=function(n,t){var i=n+t;if(this._cache[i])return this._cache[i];var m=this._canvas.getContext("2d");m.font=t;var C=m.measureText(n),K=C.width;return this._cache[i]=K,K},V._INSTANCE=null,V}(),ft=e("Yr1X"),vt=e("gCVg"),xt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function at(V){return function(n,t){var i=!1;return V&&(i=V.mouseTargetIsWidget(t)),i||t.preventDefault(),t}}var tt=function(V){xt(n,V);function n(t,i,m){var C=V.call(this)||this;C._isFocused=!1,C._context=t,C.viewController=i,C.viewHelper=m,C.mouseTargetFactory=new ln(C._context,m),C._mouseDownOperation=C._register(new ct(C._context,C.viewController,C.viewHelper,function(_e,qe){return C._createMouseTarget(_e,qe)},function(_e){return C._getMouseColumn(_e)})),C._asyncFocus=C._register(new g.d(function(){return C.viewHelper.focusTextArea()},0)),C.lastMouseLeaveTime=-1;var K=new x(C.viewHelper.viewDomNode);C._register(K.onContextMenu(C.viewHelper.viewDomNode,function(_e){return C._onContextMenu(_e,!0)})),C._register(K.onMouseMoveThrottled(C.viewHelper.viewDomNode,function(_e){return C._onMouseMove(_e)},at(C.mouseTargetFactory),n.MOUSE_MOVE_MINIMUM_TIME)),C._register(K.onMouseUp(C.viewHelper.viewDomNode,function(_e){return C._onMouseUp(_e)})),C._register(K.onMouseLeave(C.viewHelper.viewDomNode,function(_e){return C._onMouseLeave(_e)})),C._register(K.onMouseDown(C.viewHelper.viewDomNode,function(_e){return C._onMouseDown(_e)}));var Ne=function(qe){if(C.viewController.emitMouseWheel(qe),!C._context.configuration.options.get(57))return;var ut=new S.c(qe);if(ut.browserEvent.ctrlKey||ut.browserEvent.metaKey){var St=ft.a.getZoomLevel(),et=ut.deltaY>0?1:-1;ft.a.setZoomLevel(St+et),ut.preventDefault(),ut.stopPropagation()}};return C._register(J.j(C.viewHelper.viewDomNode,v.f?"mousewheel":"wheel",Ne,{capture:!0,passive:!1})),C._context.addEventHandler(C),C}return n.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},n.prototype.onCursorStateChanged=function(t){return this._mouseDownOperation.onCursorStateChanged(t),!1},n.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!1},n.prototype.onScrollChanged=function(t){return this._mouseDownOperation.onScrollChanged(),!1},n.prototype.getTargetAtClientPoint=function(t,i){var m=new d(t,i),C=m.toPageCoordinates(),K=E(this.viewHelper.viewDomNode);return C.y<K.y||C.y>K.y+K.height||C.x<K.x||C.x>K.x+K.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),K,C,null)},n.prototype._createMouseTarget=function(t,i){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),t.editorPos,t.pos,i?t.target:null)},n.prototype._getMouseColumn=function(t){return this.mouseTargetFactory.getMouseColumn(t.editorPos,t.pos)},n.prototype._onContextMenu=function(t,i){this.viewController.emitContextMenu({event:t,target:this._createMouseTarget(t,i)})},n.prototype._onMouseMove=function(t){if(this._mouseDownOperation.isActive())return;var i=t.timestamp;if(i<this.lastMouseLeaveTime)return;this.viewController.emitMouseMove({event:t,target:this._createMouseTarget(t,!0)})},n.prototype._onMouseLeave=function(t){this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:t,target:null})},n.prototype._onMouseUp=function(t){this.viewController.emitMouseUp({event:t,target:this._createMouseTarget(t,!0)})},n.prototype._onMouseDown=function(t){var i=this,m=this._createMouseTarget(t,!0),C=m.type===6||m.type===7,K=m.type===2||m.type===3||m.type===4,Ne=m.type===3,_e=this._context.configuration.options.get(83),qe=m.type===8||m.type===5,ut=m.type===9,St=t.leftButton||t.middleButton;L.e&&t.leftButton&&t.ctrlKey&&(St=!1);var et=function(){v.i&&!i._isFocused?i._asyncFocus.schedule():(t.preventDefault(),i.viewHelper.focusTextArea())};if(St&&(C||Ne&&_e))et(),this._mouseDownOperation.start(m.type,t);else if(K)t.preventDefault();else if(qe){var Wt=m.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(Wt.viewZoneId)&&(et(),this._mouseDownOperation.start(m.type,t),t.preventDefault())}else ut&&this.viewHelper.shouldSuppressMouseDownOnWidget(m.detail)&&(et(),t.preventDefault());this.viewController.emitMouseDown({event:t,target:m})},n.MOUSE_MOVE_MINIMUM_TIME=100,n}(ie),ct=function(V){xt(n,V);function n(t,i,m,C,K){var Ne=V.call(this)||this;return Ne._context=t,Ne._viewController=i,Ne._viewHelper=m,Ne._createMouseTarget=C,Ne._getMouseColumn=K,Ne._mouseMoveMonitor=Ne._register(new R(Ne._viewHelper.viewDomNode)),Ne._onScrollTimeout=Ne._register(new g.e),Ne._mouseState=new bt,Ne._currentSelection=new vt.a(1,1,1,1),Ne._isActive=!1,Ne._lastMouseEvent=null,Ne}return n.prototype.dispose=function(){V.prototype.dispose.call(this)},n.prototype.isActive=function(){return this._isActive},n.prototype._onMouseDownThenMove=function(t){this._lastMouseEvent=t,this._mouseState.setModifiers(t);var i=this._findMousePosition(t,!0);if(!i)return;this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:t,target:i}):this._dispatchMouse(i,!0)},n.prototype.start=function(t,i){var m=this;this._lastMouseEvent=i,this._mouseState.setStartedOnLineNumbers(t===3),this._mouseState.setStartButtons(i),this._mouseState.setModifiers(i);var C=this._findMousePosition(i,!0);if(!C||!C.position)return;this._mouseState.trySetCount(i.detail,C.position),i.detail=this._mouseState.count;var K=this._context.configuration.options;if(!K.get(68)&&K.get(24)&&!this._mouseState.altKey&&i.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&C.type===6&&C.position&&this._currentSelection.containsPosition(C.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,at(null),function(Ne){return m._onMouseDownThenMove(Ne)},function(){var Ne=m._findMousePosition(m._lastMouseEvent,!0);m._viewController.emitMouseDrop({event:m._lastMouseEvent,target:Ne?m._createMouseTarget(m._lastMouseEvent,!0):null}),m._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(C,i.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,at(null),function(Ne){return m._onMouseDownThenMove(Ne)},function(){return m._stop()}))},n.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},n.prototype.onScrollChanged=function(){var t=this;if(!this._isActive)return;this._onScrollTimeout.setIfNotSet(function(){if(!t._lastMouseEvent)return;var i=t._findMousePosition(t._lastMouseEvent,!1);if(!i)return;if(t._mouseState.isDragAndDrop)return;t._dispatchMouse(i,!0)},10)},n.prototype.onCursorStateChanged=function(t){this._currentSelection=t.selections[0]},n.prototype._getPositionOutsideEditor=function(t){var i=t.editorPos,m=this._context.model,C=this._context.viewLayout,K=this._getMouseColumn(t);if(t.posy<i.y){var Ne=Math.max(C.getCurrentScrollTop()-(i.y-t.posy),0),_e=gt.getZoneAtCoord(this._context,Ne);if(_e){var qe=this._helpPositionJumpOverViewZone(_e);if(qe)return new Qe(null,13,K,qe)}var ut=C.getLineNumberAtVerticalOffset(Ne);return new Qe(null,13,K,new ne.a(ut,1))}if(t.posy>i.y+i.height){var Ne=C.getCurrentScrollTop()+(t.posy-i.y),_e=gt.getZoneAtCoord(this._context,Ne);if(_e){var qe=this._helpPositionJumpOverViewZone(_e);if(qe)return new Qe(null,13,K,qe)}var St=C.getLineNumberAtVerticalOffset(Ne);return new Qe(null,13,K,new ne.a(St,m.getLineMaxColumn(St)))}var et=C.getLineNumberAtVerticalOffset(C.getCurrentScrollTop()+(t.posy-i.y));return t.posx<i.x?new Qe(null,13,K,new ne.a(et,1)):t.posx>i.x+i.width?new Qe(null,13,K,new ne.a(et,m.getLineMaxColumn(et))):null},n.prototype._findMousePosition=function(t,i){var m=this._getPositionOutsideEditor(t);if(m)return m;var C=this._createMouseTarget(t,i),K=C.position;if(!K)return null;if(C.type===8||C.type===5){var Ne=this._helpPositionJumpOverViewZone(C.detail);if(Ne)return new Qe(C.element,C.type,C.mouseColumn,Ne,null,C.detail)}return C},n.prototype._helpPositionJumpOverViewZone=function(t){var i=new ne.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),m=t.positionBefore,C=t.positionAfter;return m&&C?m.isBefore(i)?m:C:null},n.prototype._dispatchMouse=function(t,i){if(!t.position)return;this._viewController.dispatchMouse({position:t.position,mouseColumn:t.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:i,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},n}(z.a),bt=function(){function V(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return Object.defineProperty(V.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),V.prototype.setModifiers=function(n){this._altKey=n.altKey,this._ctrlKey=n.ctrlKey,this._metaKey=n.metaKey,this._shiftKey=n.shiftKey},V.prototype.setStartButtons=function(n){this._leftButton=n.leftButton,this._middleButton=n.middleButton},V.prototype.setStartedOnLineNumbers=function(n){this._startedOnLineNumbers=n},V.prototype.trySetCount=function(n,t){var i=new Date().getTime();i-this._lastSetMouseDownCountTime>V.CLEAR_MOUSE_DOWN_COUNT_TIME&&(n=1),this._lastSetMouseDownCountTime=i,n>this._lastMouseDownCount+1&&(n=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(n,this._lastMouseDownPositionEqualCount)},V.CLEAR_MOUSE_DOWN_COUNT_TIME=400,V}(),mt=e("CjF5"),Ct=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Gt(V,n){var t={translationY:n.translationY,translationX:n.translationX};return V&&(t.translationY+=V.translationY,t.translationX+=V.translationX),t}var It=function(V){Ct(n,V);function n(t,i,m){var C=V.call(this,t,i,m)||this;return C.viewHelper.linesContentDomNode.style.msTouchAction="none",C.viewHelper.linesContentDomNode.style.msContentZooming="none",C._installGestureHandlerTimeout=window.setTimeout(function(){if(C._installGestureHandlerTimeout=-1,window.MSGesture){var K=new MSGesture,Ne=new MSGesture;K.target=C.viewHelper.linesContentDomNode,Ne.target=C.viewHelper.linesContentDomNode,C.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(_e){var qe=_e.pointerType;if(qe===(_e.MSPOINTER_TYPE_MOUSE||"mouse")){C._lastPointerType="mouse";return}else qe===(_e.MSPOINTER_TYPE_TOUCH||"touch")?(C._lastPointerType="touch",K.addPointer(_e.pointerId)):(C._lastPointerType="pen",Ne.addPointer(_e.pointerId))}),C._register(J.m(C.viewHelper.linesContentDomNode,"MSGestureChange",function(_e){return C._onGestureChange(_e)},Gt)),C._register(J.j(C.viewHelper.linesContentDomNode,"MSGestureTap",function(_e){return C._onCaptureGestureTap(_e)},!0))}},100),C._lastPointerType="mouse",C}return n.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&V.prototype._onMouseDown.call(this,t)},n.prototype._onCaptureGestureTap=function(t){var i=this,m=new _(t,this.viewHelper.viewDomNode),C=this._createMouseTarget(m,!1);C.position&&this.viewController.moveTo(C.position),m.browserEvent.fromElement?(m.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},n.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},n.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),V.prototype.dispose.call(this)},n}(tt),Et=function(V){Ct(n,V);function n(t,i,m){var C=V.call(this,t,i,m)||this;return C.viewHelper.linesContentDomNode.style.touchAction="none",C._installGestureHandlerTimeout=window.setTimeout(function(){if(C._installGestureHandlerTimeout=-1,window.MSGesture){var K=new MSGesture,Ne=new MSGesture;K.target=C.viewHelper.linesContentDomNode,Ne.target=C.viewHelper.linesContentDomNode,C.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(_e){var qe=_e.pointerType;if(qe==="mouse"){C._lastPointerType="mouse";return}else qe==="touch"?(C._lastPointerType="touch",K.addPointer(_e.pointerId)):(C._lastPointerType="pen",Ne.addPointer(_e.pointerId))}),C._register(J.m(C.viewHelper.linesContentDomNode,"MSGestureChange",function(_e){return C._onGestureChange(_e)},Gt)),C._register(J.j(C.viewHelper.linesContentDomNode,"MSGestureTap",function(_e){return C._onCaptureGestureTap(_e)},!0))}},100),C._lastPointerType="mouse",C}return n.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&V.prototype._onMouseDown.call(this,t)},n.prototype._onCaptureGestureTap=function(t){var i=this,m=new _(t,this.viewHelper.viewDomNode),C=this._createMouseTarget(m,!1);C.position&&this.viewController.moveTo(C.position),m.browserEvent.fromElement?(m.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},n.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},n.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),V.prototype.dispose.call(this)},n}(tt),Je=function(V){Ct(n,V);function n(t,i,m){var C=V.call(this,t,i,m)||this;C._register(f.b.addTarget(C.viewHelper.linesContentDomNode)),C._register(J.j(C.viewHelper.linesContentDomNode,f.a.Tap,function(Ne){return C.onTap(Ne)})),C._register(J.j(C.viewHelper.linesContentDomNode,f.a.Change,function(Ne){return C.onChange(Ne)})),C._register(J.j(C.viewHelper.linesContentDomNode,f.a.Contextmenu,function(Ne){return C._onContextMenu(new _(Ne,C.viewHelper.viewDomNode),!1)})),C._lastPointerType="mouse",C._register(J.j(C.viewHelper.linesContentDomNode,"pointerdown",function(Ne){var _e=Ne.pointerType;if(_e==="mouse"){C._lastPointerType="mouse";return}else _e==="touch"?C._lastPointerType="touch":C._lastPointerType="pen"}));var K=new F(C.viewHelper.viewDomNode);return C._register(K.onPointerMoveThrottled(C.viewHelper.viewDomNode,function(Ne){return C._onMouseMove(Ne)},at(C.mouseTargetFactory),tt.MOUSE_MOVE_MINIMUM_TIME)),C._register(K.onPointerUp(C.viewHelper.viewDomNode,function(Ne){return C._onMouseUp(Ne)})),C._register(K.onPointerLeave(C.viewHelper.viewDomNode,function(Ne){return C._onMouseLeave(Ne)})),C._register(K.onPointerDown(C.viewHelper.viewDomNode,function(Ne){return C._onMouseDown(Ne)})),C}return n.prototype.onTap=function(t){if(!t.initialTarget||!this.viewHelper.linesContentDomNode.contains(t.initialTarget))return;t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new _(t,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,mouseDownCount:t.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})},n.prototype.onChange=function(t){this._lastPointerType==="touch"&&this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},n.prototype._onMouseDown=function(t){if(t.target&&this.viewHelper.linesContentDomNode.contains(t.target)&&this._lastPointerType==="touch")return;V.prototype._onMouseDown.call(this,t)},n}(tt),$e=function(V){Ct(n,V);function n(t,i,m){var C=V.call(this,t,i,m)||this;return C._register(f.b.addTarget(C.viewHelper.linesContentDomNode)),C._register(J.j(C.viewHelper.linesContentDomNode,f.a.Tap,function(K){return C.onTap(K)})),C._register(J.j(C.viewHelper.linesContentDomNode,f.a.Change,function(K){return C.onChange(K)})),C._register(J.j(C.viewHelper.linesContentDomNode,f.a.Contextmenu,function(K){return C._onContextMenu(new _(K,C.viewHelper.viewDomNode),!1)})),C}return n.prototype.onTap=function(t){t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new _(t,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.moveTo(i.position)},n.prototype.onChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},n}(tt),ze=function(V){Ct(n,V);function n(t,i,m){var C=V.call(this)||this;return window.navigator.msPointerEnabled?C.handler=C._register(new It(t,i,m)):L.c&&mt.a.pointerEvents?C.handler=C._register(new Je(t,i,m)):window.TouchEvent?C.handler=C._register(new $e(t,i,m)):window.navigator.pointerEnabled||window.PointerEvent?C.handler=C._register(new Et(t,i,m)):C.handler=C._register(new tt(t,i,m)),C}return n.prototype.getTargetAtClientPoint=function(t,i){return this.handler.getTargetAtClientPoint(t,i)},n}(z.a),Ke=e("VvMK"),fe=e("N0LK"),G=e("5TxY"),te=e("Comh"),Y=e("Krc3"),de=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Fe=function(V){de(n,V);function n(){return V!==null&&V.apply(this,arguments)||this}return n}(ie),lt=e("kYye"),Tt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Jt=function(V){Tt(n,V);function n(t){var i=V.call(this)||this;return i._context=t,i._readConfig(),i._lastCursorModelPosition=new ne.a(1,1),i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype._readConfig=function(){var t=this._context.configuration.options;this._lineHeight=t.get(49);var i=t.get(50);this._renderLineNumbers=i.renderType,this._renderCustomLineNumbers=i.renderFn,this._renderFinalNewline=t.get(71);var m=t.get(107);this._lineNumbersLeft=m.lineNumbersLeft,this._lineNumbersWidth=m.lineNumbersWidth},n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(t){return this._readConfig(),!0},n.prototype.onCursorStateChanged=function(t){var i=t.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(i),this._renderLineNumbers===2||this._renderLineNumbers===3},n.prototype.onFlushed=function(t){return!0},n.prototype.onLinesChanged=function(t){return!0},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype.onScrollChanged=function(t){return t.scrollTopChanged},n.prototype.onZonesChanged=function(t){return!0},n.prototype._getLineRenderLineNumber=function(t){var i=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(t,1));if(i.column!==1)return"";var m=i.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(m);if(this._renderLineNumbers===2){var C=Math.abs(this._lastCursorModelPosition.lineNumber-m);return C===0?'<span class="relative-current-line-number">'+m+"</span>":String(C)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===m||m%10===0?String(m):"":String(m)},n.prototype.prepareRender=function(t){if(this._renderLineNumbers===0){this._renderResult=null;return}for(var i=L.d?this._lineHeight%2===0?" lh-even":" lh-odd":"",m=t.visibleRange.startLineNumber,C=t.visibleRange.endLineNumber,K='<div class="'+n.CLASS_NAME+i+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',Ne=this._context.model.getLineCount(),_e=[],qe=m;qe<=C;qe++){var ut=qe-m;if(!this._renderFinalNewline&&(qe===Ne&&this._context.model.getLineLength(qe)===0)){_e[ut]="";continue}var St=this._getLineRenderLineNumber(qe);St?_e[ut]=K+St+"</div>":_e[ut]=""}this._renderResult=_e},n.prototype.render=function(t,i){if(!this._renderResult)return"";var m=i-t;return m<0||m>=this._renderResult.length?"":this._renderResult[m]},n.CLASS_NAME="line-numbers",n}(Fe);Object(X.e)(function(V,n){var t=V.getColor(lt.k);t&&n.addRule(".monaco-editor .line-numbers { color: "+t+"; }");var i=V.getColor(lt.b);i&&n.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var en=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),gn=function(V){en(n,V);function n(t){var i=V.call(this,t)||this,m=i._context.configuration.options,C=m.get(107);return i._canUseLayerHinting=!m.get(22),i._contentLeft=C.contentLeft,i._glyphMarginLeft=C.glyphMarginLeft,i._glyphMarginWidth=C.glyphMarginWidth,i._domNode=Object(y.b)(document.createElement("div")),i._domNode.setClassName(n.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=Object(y.b)(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(n.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return n.prototype.dispose=function(){V.prototype.dispose.call(this)},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._canUseLayerHinting=!i.get(22),this._contentLeft=m.contentLeft,this._glyphMarginLeft=m.glyphMarginLeft,this._glyphMarginWidth=m.glyphMarginWidth,!0},n.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},n.prototype.prepareRender=function(t){},n.prototype.render=function(t){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var i=t.scrollTop-t.bigNumbersDelta;this._domNode.setTop(-i);var m=Math.min(t.scrollHeight,1e6);this._domNode.setHeight(m),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(m)},n.CLASS_NAME="glyph-margin",n.OUTER_CLASS_NAME="margin",n}(B),un=e("5v8Y"),En=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Mn=function(){function V(n){this.type=1,this._source=n}return V.prototype.hasChanged=function(n){return this._source.hasChanged(n)},V}(),xn=function(){function V(n){this.type=2,this.contentWidth=n.contentWidth,this.contentHeight=n.contentHeight,this.contentWidthChanged=n.contentWidthChanged,this.contentHeightChanged=n.contentHeightChanged}return V}(),Zn=function(){function V(n,t){this.type=3,this.selections=n,this.modelSelections=t}return V}(),bn=function(){function V(){this.type=4}return V}(),Wn=function(){function V(){this.type=5}return V}(),Gn=function(){function V(n){this.type=6,this.isFocused=n}return V}(),Bn=function(){function V(){this.type=7}return V}(),Dn=function(){function V(){this.type=8}return V}(),Qn=function(){function V(n,t){this.type=9,this.fromLineNumber=n,this.toLineNumber=t}return V}(),fo=function(){function V(n,t){this.type=10,this.fromLineNumber=n,this.toLineNumber=t}return V}(),Vn=function(){function V(n,t){this.type=11,this.fromLineNumber=n,this.toLineNumber=t}return V}(),po=function(){function V(n,t,i,m,C){this.type=12,this.source=n,this.range=t,this.verticalType=i,this.revealHorizontal=m,this.scrollType=C}return V}(),yo=function(){function V(n){this.type=13,this.scrollWidth=n.scrollWidth,this.scrollLeft=n.scrollLeft,this.scrollHeight=n.scrollHeight,this.scrollTop=n.scrollTop,this.scrollWidthChanged=n.scrollWidthChanged,this.scrollLeftChanged=n.scrollLeftChanged,this.scrollHeightChanged=n.scrollHeightChanged,this.scrollTopChanged=n.scrollTopChanged}return V}(),lo=function(){function V(){this.type=14}return V}(),io=function(){function V(n){this.type=15,this.ranges=n}return V}(),go=function(){function V(){this.type=16}return V}(),zn=function(){function V(){this.type=17}return V}(),Un=function(V){En(n,V);function n(){var t=V.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return n.prototype.dispose=function(){this._listeners=[],V.prototype.dispose.call(this)},n.prototype._beginEmit=function(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new wt),this._collector},n.prototype._endEmit=function(){if(this._collectorCnt--,this._collectorCnt===0){var t=this._collector.finalize();this._collector=null,t.length>0&&this._emit(t)}},n.prototype._emit=function(t){for(var i=this._listeners.slice(0),m=0,C=i.length;m<C;m++)nt(i[m],t)},n.prototype.addEventListener=function(t){var i=this;return this._listeners.push(t),Object(z.h)(function(){for(var m=i._listeners,C=0,K=m.length;C<K;C++)if(m[C]===t){m.splice(C,1);break}})},n}(z.a),wt=function(){function V(){this._eventsLen=0,this._events=[],this._eventsLen=0}return V.prototype.emit=function(n){this._events[this._eventsLen++]=n},V.prototype.finalize=function(){var n=this._events;return this._events=[],n},V}();function nt(V,n){try{V(n)}catch(t){N.e(t)}}var ot=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ot=function(){function V(n,t,i){this.top=n,this.left=t,this.width=i}return V.prototype.setWidth=function(n){return new V(this.top,this.left,n)},V}(),Le=v.f||v.h,D=function(V){ot(n,V);function n(t,i,m){var C=V.call(this,t)||this;C._primaryCursorPosition=new ne.a(1,1),C._primaryCursorVisibleRange=null,C._viewController=i,C._viewHelper=m,C._scrollLeft=0,C._scrollTop=0;var K=C._context.configuration.options,Ne=K.get(107);C._setAccessibilityOptions(K),C._contentLeft=Ne.contentLeft,C._contentWidth=Ne.contentWidth,C._contentHeight=Ne.height,C._fontInfo=K.get(34),C._lineHeight=K.get(49),C._emptySelectionClipboard=K.get(25),C._copyWithSyntaxHighlighting=K.get(15),C._visibleTextArea=null,C._selections=[new vt.a(1,1,1,1)],C._modelSelections=[new vt.a(1,1,1,1)],C._lastRenderPosition=null,C.textArea=Object(y.b)(document.createElement("textarea")),le.write(C.textArea,6),C.textArea.setClassName("inputarea"),C.textArea.setAttribute("wrap","off"),C.textArea.setAttribute("autocorrect","off"),C.textArea.setAttribute("autocapitalize","off"),C.textArea.setAttribute("autocomplete","off"),C.textArea.setAttribute("spellcheck","false"),C.textArea.setAttribute("aria-label",C._getAriaLabel(K)),C.textArea.setAttribute("role","textbox"),C.textArea.setAttribute("aria-multiline","true"),C.textArea.setAttribute("aria-haspopup","false"),C.textArea.setAttribute("aria-autocomplete","both"),L.g&&K.get(68)&&C.textArea.setAttribute("readonly","true"),C.textAreaCover=Object(y.b)(document.createElement("div")),C.textAreaCover.setPosition("absolute");var _e={getLineCount:function(){return C._context.model.getLineCount()},getLineMaxColumn:function(St){return C._context.model.getLineMaxColumn(St)},getValueInRange:function(St,et){return C._context.model.getValueInRange(St,et)}},qe={getDataToCopy:function(St){var et=C._context.model.getPlainTextToCopy(C._modelSelections,C._emptySelectionClipboard,L.h),Wt=C._context.model.getEOL(),Ft=C._emptySelectionClipboard&&C._modelSelections.length===1&&C._modelSelections[0].isEmpty(),Vt=Array.isArray(et)?et:null,qt=Array.isArray(et)?et.join(Wt):et,$t=void 0,rn=null;if(St&&(G.a.forceCopyWithSyntaxHighlighting||C._copyWithSyntaxHighlighting&&qt.length<65536)){var yn=C._context.model.getRichTextToCopy(C._modelSelections,C._emptySelectionClipboard);yn&&($t=yn.html,rn=yn.mode)}return{isFromEmptySelection:Ft,multicursorText:Vt,text:qt,html:$t,mode:rn}},getScreenReaderContent:function(St){if(v.j)return te.b.EMPTY;if(C._accessibilitySupport===1){if(L.e){var et=C._selections[0];if(et.isEmpty()){var Wt=et.getStartPosition(),Ft=C._getWordBeforePosition(Wt);if(Ft.length===0&&(Ft=C._getCharacterBeforePosition(Wt)),Ft.length>0)return new te.b(Ft,Ft.length,Ft.length,Wt,Wt)}}return te.b.EMPTY}return te.a.fromEditorSelection(St,_e,C._selections[0],C._accessibilityPageSize,C._accessibilitySupport===0)},deduceModelPosition:function(St,et,Wt){return C._context.model.deduceModelPositionRelativeToViewPosition(St,et,Wt)}};return C._textAreaInput=C._register(new G.b(qe,C.textArea)),C._register(C._textAreaInput.onKeyDown(function(ut){C._viewController.emitKeyDown(ut)})),C._register(C._textAreaInput.onKeyUp(function(ut){C._viewController.emitKeyUp(ut)})),C._register(C._textAreaInput.onPaste(function(ut){var St=!1,et=null,Wt=null;ut.metadata&&(St=C._emptySelectionClipboard&&!!ut.metadata.isFromEmptySelection,et=typeof ut.metadata.multicursorText!="undefined"?ut.metadata.multicursorText:null,Wt=ut.metadata.mode),C._viewController.paste("keyboard",ut.text,St,et,Wt)})),C._register(C._textAreaInput.onCut(function(){C._viewController.cut("keyboard")})),C._register(C._textAreaInput.onType(function(ut){ut.replaceCharCnt?C._viewController.replacePreviousChar("keyboard",ut.text,ut.replaceCharCnt):C._viewController.type("keyboard",ut.text)})),C._register(C._textAreaInput.onSelectionChangeRequest(function(ut){C._viewController.setSelection("keyboard",ut)})),C._register(C._textAreaInput.onCompositionStart(function(){var ut=C._selections[0].startLineNumber,St=C._selections[0].startColumn;C._context.privateViewEventBus.emit(new po("keyboard",new Ce.a(ut,St,ut,St),0,!0,1));var et=C._viewHelper.visibleRangeForPositionRelativeToEditor(ut,St);et&&(C._visibleTextArea=new Ot(C._context.viewLayout.getVerticalOffsetForLineNumber(ut),et.left,Le?0:1),C._render()),C.textArea.setClassName("inputarea ime-input"),C._viewController.compositionStart("keyboard")})),C._register(C._textAreaInput.onCompositionUpdate(function(ut){v.f?C._visibleTextArea=C._visibleTextArea.setWidth(0):C._visibleTextArea=C._visibleTextArea.setWidth(j(ut.data,C._fontInfo)),C._render()})),C._register(C._textAreaInput.onCompositionEnd(function(){C._visibleTextArea=null,C._render(),C.textArea.setClassName("inputarea"),C._viewController.compositionEnd("keyboard")})),C._register(C._textAreaInput.onFocus(function(){C._context.privateViewEventBus.emit(new Gn(!0))})),C._register(C._textAreaInput.onBlur(function(){C._context.privateViewEventBus.emit(new Gn(!1))})),C}return n.prototype.dispose=function(){V.prototype.dispose.call(this)},n.prototype._getWordBeforePosition=function(t){for(var i=this._context.model.getLineContent(t.lineNumber),m=Object(un.a)(this._context.configuration.options.get(96)),C=t.column,K=0;C>1;){var Ne=i.charCodeAt(C-2),_e=m.get(Ne);if(_e!==0||K>50)return i.substring(C-1,t.column-1);K++,C--}return i.substring(0,t.column-1)},n.prototype._getCharacterBeforePosition=function(t){if(t.column>1){var i=this._context.model.getLineContent(t.lineNumber),m=i.charAt(t.column-2);if(!fe.z(m.charCodeAt(0)))return m}return""},n.prototype._getAriaLabel=function(t){var i=t.get(2);return i===1?re.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):t.get(4)},n.prototype._setAccessibilityOptions=function(t){this._accessibilitySupport=t.get(2);var i=t.get(3);this._accessibilitySupport===2&&i===he.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=i},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._setAccessibilityOptions(i),this._contentLeft=m.contentLeft,this._contentWidth=m.contentWidth,this._contentHeight=m.height,this._fontInfo=i.get(34),this._lineHeight=i.get(49),this._emptySelectionClipboard=i.get(25),this._copyWithSyntaxHighlighting=i.get(15),this.textArea.setAttribute("aria-label",this._getAriaLabel(i)),L.g&&t.hasChanged(68)&&(i.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),t.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},n.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),this._modelSelections=t.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},n.prototype.onDecorationsChanged=function(t){return!0},n.prototype.onFlushed=function(t){return!0},n.prototype.onLinesChanged=function(t){return!0},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype.onScrollChanged=function(t){return this._scrollLeft=t.scrollLeft,this._scrollTop=t.scrollTop,!0},n.prototype.onZonesChanged=function(t){return!0},n.prototype.isFocused=function(){return this._textAreaInput.isFocused()},n.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},n.prototype.getLastRenderData=function(){return this._lastRenderPosition},n.prototype.setAriaOptions=function(t){t.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",t.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant"))},n.prototype.prepareRender=function(t){this._primaryCursorPosition=new ne.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=t.visibleRangeForPosition(this._primaryCursorPosition)},n.prototype.render=function(t){this._textAreaInput.writeScreenReaderContent("render"),this._render()},n.prototype._render=function(){if(this._visibleTextArea){this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}var t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(t<this._contentLeft||t>this._contentLeft+this._contentWidth){this._renderAtTopLeft();return}var i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight){this._renderAtTopLeft();return}if(L.e){this._renderInsideEditor(this._primaryCursorPosition,i,t,Le?0:1,this._lineHeight);return}this._renderInsideEditor(this._primaryCursorPosition,i,t,Le?0:1,Le?0:1)},n.prototype._renderInsideEditor=function(t,i,m,C,K){this._lastRenderPosition=t;var Ne=this.textArea,_e=this.textAreaCover;U.a.applyFontInfo(Ne,this._fontInfo),Ne.setTop(i),Ne.setLeft(m),Ne.setWidth(C),Ne.setHeight(K),_e.setTop(0),_e.setLeft(0),_e.setWidth(0),_e.setHeight(0)},n.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var t=this.textArea,i=this.textAreaCover;if(U.a.applyFontInfo(t,this._fontInfo),t.setTop(0),t.setLeft(0),i.setTop(0),i.setLeft(0),Le){t.setWidth(0),t.setHeight(0),i.setWidth(0),i.setHeight(0);return}t.setWidth(1),t.setHeight(1),i.setWidth(1),i.setHeight(1);var m=this._context.configuration.options;m.get(40)?i.setClassName("monaco-editor-background textAreaCover "+gn.OUTER_CLASS_NAME):m.get(50).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+Jt.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")},n}(B);function j(V,n){var t=document.createElement("canvas"),i=t.getContext("2d");i.font=Z(n);var m=i.measureText(V);return v.h?m.width+2:m.width}function Z(V){return xe("normal",V.fontWeight,V.fontSize,V.lineHeight,V.fontFamily)}function xe(V,n,t,i,m){return V+" normal "+n+" "+t+"px / "+i+"px "+m}var Ae=e("1YUG"),Ie=function(){function V(n,t,i,m){this.configuration=n,this.viewModel=t,this.outgoingEvents=i,this.commandDelegate=m}return V.prototype._execMouseCommand=function(n,t){t.source="mouse",this.commandDelegate.executeEditorCommand(n,t)},V.prototype.paste=function(n,t,i,m,C){this.commandDelegate.paste(n,t,i,m,C)},V.prototype.type=function(n,t){this.commandDelegate.type(n,t)},V.prototype.replacePreviousChar=function(n,t,i){this.commandDelegate.replacePreviousChar(n,t,i)},V.prototype.compositionStart=function(n){this.commandDelegate.compositionStart(n)},V.prototype.compositionEnd=function(n){this.commandDelegate.compositionEnd(n)},V.prototype.cut=function(n){this.commandDelegate.cut(n)},V.prototype.setSelection=function(n,t){this.commandDelegate.executeEditorCommand(Ae.CoreNavigationCommands.SetSelection,{source:n,selection:t})},V.prototype._validateViewColumn=function(n){var t=this.viewModel.getLineMinColumn(n.lineNumber);return n.column<t?new ne.a(n.lineNumber,t):n},V.prototype._hasMulticursorModifier=function(n){switch(this.configuration.options.get(59)){case"altKey":return n.altKey;case"ctrlKey":return n.ctrlKey;case"metaKey":return n.metaKey}return!1},V.prototype._hasNonMulticursorModifier=function(n){switch(this.configuration.options.get(59)){case"altKey":return n.ctrlKey||n.metaKey;case"ctrlKey":return n.altKey||n.metaKey;case"metaKey":return n.ctrlKey||n.altKey}return!1},V.prototype.dispatchMouse=function(n){var t=L.d&&this.configuration.options.get(81);n.middleButton&&!t?this._columnSelect(n.position,n.mouseColumn,n.inSelectionMode):n.startedOnLineNumbers?this._hasMulticursorModifier(n)?n.inSelectionMode?this._lastCursorLineSelect(n.position):this._createCursor(n.position,!0):n.inSelectionMode?this._lineSelectDrag(n.position):this._lineSelect(n.position):n.mouseDownCount>=4?this._selectAll():n.mouseDownCount===3?this._hasMulticursorModifier(n)?n.inSelectionMode?this._lastCursorLineSelectDrag(n.position):this._lastCursorLineSelect(n.position):n.inSelectionMode?this._lineSelectDrag(n.position):this._lineSelect(n.position):n.mouseDownCount===2?this._hasMulticursorModifier(n)?this._lastCursorWordSelect(n.position):n.inSelectionMode?this._wordSelectDrag(n.position):this._wordSelect(n.position):this._hasMulticursorModifier(n)?this._hasNonMulticursorModifier(n)||(n.shiftKey?this._columnSelect(n.position,n.mouseColumn,!0):n.inSelectionMode?this._lastCursorMoveToSelect(n.position):this._createCursor(n.position,!1)):n.inSelectionMode?n.altKey?this._columnSelect(n.position,n.mouseColumn,!0):this._moveToSelect(n.position):this.moveTo(n.position)},V.prototype._usualArgs=function(n){return n=this._validateViewColumn(n),{position:this._convertViewToModelPosition(n),viewPosition:n}},V.prototype.moveTo=function(n){this._execMouseCommand(Ae.CoreNavigationCommands.MoveTo,this._usualArgs(n))},V.prototype._moveToSelect=function(n){this._execMouseCommand(Ae.CoreNavigationCommands.MoveToSelect,this._usualArgs(n))},V.prototype._columnSelect=function(n,t,i){n=this._validateViewColumn(n),this._execMouseCommand(Ae.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(n),viewPosition:n,mouseColumn:t,doColumnSelect:i})},V.prototype._createCursor=function(n,t){n=this._validateViewColumn(n),this._execMouseCommand(Ae.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(n),viewPosition:n,wholeLine:t})},V.prototype._lastCursorMoveToSelect=function(n){this._execMouseCommand(Ae.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(n))},V.prototype._wordSelect=function(n){this._execMouseCommand(Ae.CoreNavigationCommands.WordSelect,this._usualArgs(n))},V.prototype._wordSelectDrag=function(n){this._execMouseCommand(Ae.CoreNavigationCommands.WordSelectDrag,this._usualArgs(n))},V.prototype._lastCursorWordSelect=function(n){this._execMouseCommand(Ae.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(n))},V.prototype._lineSelect=function(n){this._execMouseCommand(Ae.CoreNavigationCommands.LineSelect,this._usualArgs(n))},V.prototype._lineSelectDrag=function(n){this._execMouseCommand(Ae.CoreNavigationCommands.LineSelectDrag,this._usualArgs(n))},V.prototype._lastCursorLineSelect=function(n){this._execMouseCommand(Ae.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(n))},V.prototype._lastCursorLineSelectDrag=function(n){this._execMouseCommand(Ae.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(n))},V.prototype._selectAll=function(){this._execMouseCommand(Ae.CoreNavigationCommands.SelectAll,{})},V.prototype._convertViewToModelPosition=function(n){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(n)},V.prototype.emitKeyDown=function(n){this.outgoingEvents.emitKeyDown(n)},V.prototype.emitKeyUp=function(n){this.outgoingEvents.emitKeyUp(n)},V.prototype.emitContextMenu=function(n){this.outgoingEvents.emitContextMenu(n)},V.prototype.emitMouseMove=function(n){this.outgoingEvents.emitMouseMove(n)},V.prototype.emitMouseLeave=function(n){this.outgoingEvents.emitMouseLeave(n)},V.prototype.emitMouseUp=function(n){this.outgoingEvents.emitMouseUp(n)},V.prototype.emitMouseDown=function(n){this.outgoingEvents.emitMouseDown(n)},V.prototype.emitMouseDrag=function(n){this.outgoingEvents.emitMouseDrag(n)},V.prototype.emitMouseDrop=function(n){this.outgoingEvents.emitMouseDrop(n)},V.prototype.emitMouseWheel=function(n){this.outgoingEvents.emitMouseWheel(n)},V}(),dt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ht=function(V){dt(n,V);function n(t){var i=V.call(this)||this;return i.onDidContentSizeChange=null,i.onDidScroll=null,i.onDidGainFocus=null,i.onDidLoseFocus=null,i.onKeyDown=null,i.onKeyUp=null,i.onContextMenu=null,i.onMouseMove=null,i.onMouseLeave=null,i.onMouseUp=null,i.onMouseDown=null,i.onMouseDrag=null,i.onMouseDrop=null,i.onMouseWheel=null,i._viewModel=t,i}return n.prototype.emitContentSizeChange=function(t){this.onDidContentSizeChange&&this.onDidContentSizeChange(t)},n.prototype.emitScrollChanged=function(t){this.onDidScroll&&this.onDidScroll(t)},n.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},n.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},n.prototype.emitKeyDown=function(t){this.onKeyDown&&this.onKeyDown(t)},n.prototype.emitKeyUp=function(t){this.onKeyUp&&this.onKeyUp(t)},n.prototype.emitContextMenu=function(t){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(t))},n.prototype.emitMouseMove=function(t){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(t))},n.prototype.emitMouseLeave=function(t){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(t))},n.prototype.emitMouseUp=function(t){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(t))},n.prototype.emitMouseDown=function(t){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(t))},n.prototype.emitMouseDrag=function(t){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(t))},n.prototype.emitMouseDrop=function(t){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(t))},n.prototype.emitMouseWheel=function(t){this.onMouseWheel&&this.onMouseWheel(t)},n.prototype._convertViewToModelMouseEvent=function(t){return t.target?{event:t.event,target:this._convertViewToModelMouseTarget(t.target)}:t},n.prototype._convertViewToModelMouseTarget=function(t){return n.convertViewToModelMouseTarget(t,this._viewModel.coordinatesConverter)},n.convertViewToModelMouseTarget=function(t,i){return new At(t.element,t.type,t.mouseColumn,t.position?i.convertViewPositionToModelPosition(t.position):null,t.range?i.convertViewRangeToModelRange(t.range):null,t.detail)},n}(z.a),At=function(){function V(n,t,i,m,C,K){this.element=n,this.type=t,this.mouseColumn=i,this.position=m,this.range=C,this.detail=K}return V.prototype.toString=function(){return Qe.toString(this)},V}(),Bt=e("erNZ"),Ut=function(){function V(n){this._createLine=n,this._set(1,[])}return V.prototype.flush=function(){this._set(1,[])},V.prototype._set=function(n,t){this._lines=t,this._rendLineNumberStart=n},V.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},V.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},V.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},V.prototype.getCount=function(){return this._lines.length},V.prototype.getLine=function(n){var t=n-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},V.prototype.onLinesDeleted=function(n,t){if(this.getCount()===0)return null;var i=this.getStartLineNumber(),m=this.getEndLineNumber();if(t<i){var C=t-n+1;return this._rendLineNumberStart-=C,null}if(n>m)return null;for(var K=0,Ne=0,_e=i;_e<=m;_e++){var qe=_e-this._rendLineNumberStart;n<=_e&&_e<=t&&(Ne===0?(K=qe,Ne=1):Ne++)}if(n<i){var ut=0;t<i?ut=t-n+1:ut=i-n,this._rendLineNumberStart-=ut}var St=this._lines.splice(K,Ne);return St},V.prototype.onLinesChanged=function(n,t){if(this.getCount()===0)return!1;for(var i=this.getStartLineNumber(),m=this.getEndLineNumber(),C=!1,K=n;K<=t;K++)K>=i&&K<=m&&(this._lines[K-this._rendLineNumberStart].onContentChanged(),C=!0);return C},V.prototype.onLinesInserted=function(n,t){if(this.getCount()===0)return null;var i=t-n+1,m=this.getStartLineNumber(),C=this.getEndLineNumber();if(n<=m)return this._rendLineNumberStart+=i,null;if(n>C)return null;if(i+n>C){var K=this._lines.splice(n-this._rendLineNumberStart,C-n+1);return K}for(var Ne=[],_e=0;_e<i;_e++)Ne[_e]=this._createLine();var qe=n-this._rendLineNumberStart,ut=this._lines.slice(0,qe),St=this._lines.slice(qe,this._lines.length-i),et=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=ut.concat(Ne).concat(St),et},V.prototype.onTokensChanged=function(n){if(this.getCount()===0)return!1;for(var t=this.getStartLineNumber(),i=this.getEndLineNumber(),m=!1,C=0,K=n.length;C<K;C++){var Ne=n[C];if(Ne.toLineNumber<t||Ne.fromLineNumber>i)continue;for(var _e=Math.max(t,Ne.fromLineNumber),qe=Math.min(i,Ne.toLineNumber),ut=_e;ut<=qe;ut++){var St=ut-this._rendLineNumberStart;this._lines[St].onTokensChanged(),m=!0}}return m},V}(),Ht=function(){function V(n){var t=this;this._host=n,this.domNode=this._createDomNode(),this._linesCollection=new Ut(function(){return t._host.createVisibleLine()})}return V.prototype._createDomNode=function(){var n=Object(y.b)(document.createElement("div"));return n.setClassName("view-layer"),n.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n},V.prototype.onConfigurationChanged=function(n){return!!n.hasChanged(107)},V.prototype.onFlushed=function(n){return this._linesCollection.flush(),!0},V.prototype.onLinesChanged=function(n){return this._linesCollection.onLinesChanged(n.fromLineNumber,n.toLineNumber)},V.prototype.onLinesDeleted=function(n){var t=this._linesCollection.onLinesDeleted(n.fromLineNumber,n.toLineNumber);if(t)for(var i=0,m=t.length;i<m;i++){var C=t[i].getDomNode();C&&this.domNode.domNode.removeChild(C)}return!0},V.prototype.onLinesInserted=function(n){var t=this._linesCollection.onLinesInserted(n.fromLineNumber,n.toLineNumber);if(t)for(var i=0,m=t.length;i<m;i++){var C=t[i].getDomNode();C&&this.domNode.domNode.removeChild(C)}return!0},V.prototype.onScrollChanged=function(n){return n.scrollTopChanged},V.prototype.onTokensChanged=function(n){return this._linesCollection.onTokensChanged(n.ranges)},V.prototype.onZonesChanged=function(n){return!0},V.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},V.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},V.prototype.getVisibleLine=function(n){return this._linesCollection.getLine(n)},V.prototype.renderLines=function(n){var t=this._linesCollection._get(),i=new nn(this.domNode.domNode,this._host,n),m={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},C=i.render(m,n.startLineNumber,n.endLineNumber,n.relativeVerticalOffset);this._linesCollection._set(C.rendLineNumberStart,C.lines)},V}(),nn=function(){function V(n,t,i){this.domNode=n,this.host=t,this.viewportData=i}return V.prototype.render=function(n,t,i,m){var C={rendLineNumberStart:n.rendLineNumberStart,lines:n.lines.slice(0),linesLength:n.linesLength};if(C.rendLineNumberStart+C.linesLength-1<t||i<C.rendLineNumberStart){C.rendLineNumberStart=t,C.linesLength=i-t+1,C.lines=[];for(var K=t;K<=i;K++)C.lines[K-t]=this.host.createVisibleLine();return this._finishRendering(C,!0,m),C}if(this._renderUntouchedLines(C,Math.max(t-C.rendLineNumberStart,0),Math.min(i-C.rendLineNumberStart,C.linesLength-1),m,t),C.rendLineNumberStart>t){var Ne=t,_e=Math.min(i,C.rendLineNumberStart-1);Ne<=_e&&(this._insertLinesBefore(C,Ne,_e,m,t),C.linesLength+=_e-Ne+1)}else if(C.rendLineNumberStart<t){var qe=Math.min(C.linesLength,t-C.rendLineNumberStart);qe>0&&(this._removeLinesBefore(C,qe),C.linesLength-=qe)}if(C.rendLineNumberStart=t,C.rendLineNumberStart+C.linesLength-1<i){var Ne=C.rendLineNumberStart+C.linesLength,_e=i;Ne<=_e&&(this._insertLinesAfter(C,Ne,_e,m,t),C.linesLength+=_e-Ne+1)}else if(C.rendLineNumberStart+C.linesLength-1>i){var Ne=Math.max(0,i-C.rendLineNumberStart+1),_e=C.linesLength-1,qe=_e-Ne+1;qe>0&&(this._removeLinesAfter(C,qe),C.linesLength-=qe)}return this._finishRendering(C,!1,m),C},V.prototype._renderUntouchedLines=function(n,t,i,m,C){for(var K=n.rendLineNumberStart,Ne=n.lines,_e=t;_e<=i;_e++){var qe=K+_e;Ne[_e].layoutLine(qe,m[qe-C])}},V.prototype._insertLinesBefore=function(n,t,i,m,C){for(var K=[],Ne=0,_e=t;_e<=i;_e++)K[Ne++]=this.host.createVisibleLine();n.lines=K.concat(n.lines)},V.prototype._removeLinesBefore=function(n,t){for(var i=0;i<t;i++){var m=n.lines[i].getDomNode();m&&this.domNode.removeChild(m)}n.lines.splice(0,t)},V.prototype._insertLinesAfter=function(n,t,i,m,C){for(var K=[],Ne=0,_e=t;_e<=i;_e++)K[Ne++]=this.host.createVisibleLine();n.lines=n.lines.concat(K)},V.prototype._removeLinesAfter=function(n,t){for(var i=n.linesLength-t,m=0;m<t;m++){var C=n.lines[i+m].getDomNode();C&&this.domNode.removeChild(C)}n.lines.splice(i,t)},V.prototype._finishRenderingNewLines=function(n,t,i,m){var C=this.domNode.lastChild;t||!C?this.domNode.innerHTML=i:C.insertAdjacentHTML("afterend",i);for(var K=this.domNode.lastChild,Ne=n.linesLength-1;Ne>=0;Ne--){var _e=n.lines[Ne];m[Ne]&&(_e.setDomNode(K),K=K.previousSibling)}},V.prototype._finishRenderingInvalidLines=function(n,t,i){var m=document.createElement("div");m.innerHTML=t;for(var C=0;C<n.linesLength;C++){var K=n.lines[C];if(i[C]){var Ne=m.firstChild,_e=K.getDomNode();_e.parentNode.replaceChild(Ne,_e),K.setDomNode(Ne)}}},V.prototype._finishRendering=function(n,t,i){var m=V._sb,C=n.linesLength,K=n.lines,Ne=n.rendLineNumberStart,_e=[];{m.reset();for(var qe=!1,ut=0;ut<C;ut++){var St=K[ut];_e[ut]=!1;var et=St.getDomNode();if(et)continue;var Wt=St.renderLine(ut+Ne,i[ut],this.viewportData,m);if(!Wt)continue;_e[ut]=!0,qe=!0}qe&&this._finishRenderingNewLines(n,t,m.build(),_e)}{m.reset();for(var Ft=!1,Vt=[],ut=0;ut<C;ut++){var St=K[ut];if(Vt[ut]=!1,_e[ut])continue;var Wt=St.renderLine(ut+Ne,i[ut],this.viewportData,m);if(!Wt)continue;Vt[ut]=!0,Ft=!0}Ft&&this._finishRenderingInvalidLines(n,m.build(),Vt)}},V._sb=Object(Bt.a)(1e5),V}(),Zt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),fn=function(V){Zt(n,V);function n(t){var i=V.call(this,t)||this;return i._visibleLines=new Ht(i),i.domNode=i._visibleLines.domNode,i._dynamicOverlays=[],i._isFocused=!1,i.domNode.setClassName("view-overlays"),i}return n.prototype.shouldRender=function(){if(V.prototype.shouldRender.call(this))return!0;for(var t=0,i=this._dynamicOverlays.length;t<i;t++){var m=this._dynamicOverlays[t];if(m.shouldRender())return!0}return!1},n.prototype.dispose=function(){V.prototype.dispose.call(this);for(var t=0,i=this._dynamicOverlays.length;t<i;t++){var m=this._dynamicOverlays[t];m.dispose()}this._dynamicOverlays=[]},n.prototype.getDomNode=function(){return this.domNode},n.prototype.createVisibleLine=function(){return new yt(this._context.configuration,this._dynamicOverlays)},n.prototype.addDynamicOverlay=function(t){this._dynamicOverlays.push(t)},n.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t);for(var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber(),C=i;C<=m;C++){var K=this._visibleLines.getVisibleLine(C);K.onConfigurationChanged(t)}return!0},n.prototype.onFlushed=function(t){return this._visibleLines.onFlushed(t)},n.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!0},n.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},n.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},n.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},n.prototype.onScrollChanged=function(t){return this._visibleLines.onScrollChanged(t)||!0},n.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},n.prototype.onZonesChanged=function(t){return this._visibleLines.onZonesChanged(t)},n.prototype.prepareRender=function(t){for(var i=this._dynamicOverlays.filter(function(Ne){return Ne.shouldRender()}),m=0,C=i.length;m<C;m++){var K=i[m];K.prepareRender(t),K.onDidRender()}},n.prototype.render=function(t){this._viewOverlaysRender(t),this.domNode.toggleClassName("focused",this._isFocused)},n.prototype._viewOverlaysRender=function(t){this._visibleLines.renderLines(t.viewportData)},n}(B),yt=function(){function V(n,t){this._configuration=n,this._lineHeight=this._configuration.options.get(49),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}return V.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},V.prototype.setDomNode=function(n){this._domNode=Object(y.b)(n)},V.prototype.onContentChanged=function(){},V.prototype.onTokensChanged=function(){},V.prototype.onConfigurationChanged=function(n){this._lineHeight=this._configuration.options.get(49)},V.prototype.renderLine=function(n,t,i,m){for(var C="",K=0,Ne=this._dynamicOverlays.length;K<Ne;K++){var _e=this._dynamicOverlays[K];C+=_e.render(i.startLineNumber,n)}return this._renderedContent===C?!1:(this._renderedContent=C,m.appendASCIIString('<div style="position:absolute;top:'),m.appendASCIIString(String(t)),m.appendASCIIString("px;width:100%;height:"),m.appendASCIIString(String(this._lineHeight)),m.appendASCIIString('px;">'),m.appendASCIIString(C),m.appendASCIIString("</div>"),!0)},V.prototype.layoutLine=function(n,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},V}(),Ue=function(V){Zt(n,V);function n(t){var i=V.call(this,t)||this,m=i._context.configuration.options,C=m.get(107);return i._contentWidth=C.contentWidth,i.domNode.setHeight(0),i}return n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._contentWidth=m.contentWidth,V.prototype.onConfigurationChanged.call(this,t)||!0},n.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},n.prototype._viewOverlaysRender=function(t){V.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},n}(fn),Me=function(V){Zt(n,V);function n(t){var i=V.call(this,t)||this,m=i._context.configuration.options,C=m.get(107);return i._contentLeft=C.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),U.a.applyFontInfo(i.domNode,m.get(34)),i}return n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;U.a.applyFontInfo(this.domNode,i.get(34));var m=i.get(107);return this._contentLeft=m.contentLeft,V.prototype.onConfigurationChanged.call(this,t)||!0},n.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},n.prototype._viewOverlaysRender=function(t){V.prototype._viewOverlaysRender.call(this,t);var i=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(i),this.domNode.setWidth(this._contentLeft)},n}(fn),rt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Nt=function(){function V(n,t){this.top=n,this.left=t}return V}(),ge=function(V){rt(n,V);function n(t,i){var m=V.call(this,t)||this;return m._viewDomNode=i,m._widgets={},m.domNode=Object(y.b)(document.createElement("div")),le.write(m.domNode,1),m.domNode.setClassName("contentWidgets"),m.domNode.setPosition("absolute"),m.domNode.setTop(0),m.overflowingContentWidgetsDomNode=Object(y.b)(document.createElement("div")),le.write(m.overflowingContentWidgetsDomNode,2),m.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),m}return n.prototype.dispose=function(){V.prototype.dispose.call(this),this._widgets={}},n.prototype.onConfigurationChanged=function(t){for(var i=Object.keys(this._widgets),m=0,C=i;m<C.length;m++){var K=C[m];this._widgets[K].onConfigurationChanged(t)}return!0},n.prototype.onDecorationsChanged=function(t){return!0},n.prototype.onFlushed=function(t){return!0},n.prototype.onLineMappingChanged=function(t){for(var i=Object.keys(this._widgets),m=0,C=i;m<C.length;m++){var K=C[m];this._widgets[K].onLineMappingChanged(t)}return!0},n.prototype.onLinesChanged=function(t){return!0},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype.onScrollChanged=function(t){return!0},n.prototype.onZonesChanged=function(t){return!0},n.prototype.addWidget=function(t){var i=new O(this._context,this._viewDomNode,t);this._widgets[i.id]=i,i.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(i.domNode):this.domNode.appendChild(i.domNode),this.setShouldRender()},n.prototype.setWidgetPosition=function(t,i,m){var C=this._widgets[t.getId()];C.setPosition(i,m),this.setShouldRender()},n.prototype.removeWidget=function(t){var i=t.getId();if(this._widgets.hasOwnProperty(i)){var m=this._widgets[i];delete this._widgets[i];var C=m.domNode.domNode;C.parentNode.removeChild(C),C.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},n.prototype.shouldSuppressMouseDownOnWidget=function(t){return this._widgets.hasOwnProperty(t)?this._widgets[t].suppressMouseDown:!1},n.prototype.onBeforeRender=function(t){for(var i=Object.keys(this._widgets),m=0,C=i;m<C.length;m++){var K=C[m];this._widgets[K].onBeforeRender(t)}},n.prototype.prepareRender=function(t){for(var i=Object.keys(this._widgets),m=0,C=i;m<C.length;m++){var K=C[m];this._widgets[K].prepareRender(t)}},n.prototype.render=function(t){for(var i=Object.keys(this._widgets),m=0,C=i;m<C.length;m++){var K=C[m];this._widgets[K].render(t)}},n}(B),O=function(){function V(n,t,i){this._context=n,this._viewDomNode=t,this._actual=i,this.domNode=Object(y.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var m=this._context.configuration.options,C=m.get(107);this._fixedOverflowWidgets=m.get(29),this._contentWidth=C.contentWidth,this._contentLeft=C.contentLeft,this._lineHeight=m.get(49),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}return V.prototype.onConfigurationChanged=function(n){var t=this._context.configuration.options;if(this._lineHeight=t.get(49),n.hasChanged(107)){var i=t.get(107);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}},V.prototype.onLineMappingChanged=function(n){this._setPosition(this._range)},V.prototype._setPosition=function(n){if(this._range=n,this._viewRange=null,this._range){var t=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(t.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(t.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(t))}},V.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},V.prototype.setPosition=function(n,t){this._setPosition(n),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},V.prototype._layoutBoxInViewport=function(n,t,i,m,C){var K=n.top,Ne=K,_e=t.top+this._lineHeight,qe=C.viewportHeight-_e,ut=K-m,St=Ne>=m,et=_e,Wt=qe>=m,Ft=n.left,Vt=t.left;return Ft+i>C.scrollLeft+C.viewportWidth&&(Ft=C.scrollLeft+C.viewportWidth-i),Vt+i>C.scrollLeft+C.viewportWidth&&(Vt=C.scrollLeft+C.viewportWidth-i),Ft<C.scrollLeft&&(Ft=C.scrollLeft),Vt<C.scrollLeft&&(Vt=C.scrollLeft),{fitsAbove:St,aboveTop:ut,aboveLeft:Ft,fitsBelow:Wt,belowTop:et,belowLeft:Vt}},V.prototype._layoutHorizontalSegmentInPage=function(n,t,i,m){var C=Math.max(0,t.left-m),K=Math.min(t.left+t.width+m,n.width),Ne=t.left+i-J.e.scrollX;if(Ne+m>K){var _e=Ne-(K-m);Ne-=_e,i-=_e}if(Ne<C){var _e=Ne-C;Ne-=_e,i-=_e}return[i,Ne]},V.prototype._layoutBoxInPage=function(n,t,i,m,C){var K=n.top-m,Ne=t.top+this._lineHeight,_e=J.C(this._viewDomNode.domNode),qe=_e.top+K-J.e.scrollY,ut=_e.top+Ne-J.e.scrollY,St=J.y(document.body),et=this._layoutHorizontalSegmentInPage(St,_e,n.left-C.scrollLeft+this._contentLeft,i),Wt=et[0],Ft=et[1],Vt=this._layoutHorizontalSegmentInPage(St,_e,t.left-C.scrollLeft+this._contentLeft,i),qt=Vt[0],$t=Vt[1],rn=22,yn=22,pn=qe>=rn,Cn=ut+m<=St.height-yn;return this._fixedOverflowWidgets?{fitsAbove:pn,aboveTop:Math.max(qe,rn),aboveLeft:Ft,fitsBelow:Cn,belowTop:ut,belowLeft:$t}:{fitsAbove:pn,aboveTop:Math.max(K,rn),aboveLeft:Wt,fitsBelow:Cn,belowTop:Ne,belowLeft:qt}},V.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(n){return new Nt(n.top,n.left+this._contentLeft)},V.prototype._getTopAndBottomLeft=function(n){if(!this._viewRange)return[null,null];var t=n.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];for(var i=t[0],m=t[0],C=0,K=t;C<K.length;C++){var Ne=K[C];Ne.lineNumber<i.lineNumber&&(i=Ne),Ne.lineNumber>m.lineNumber&&(m=Ne)}for(var _e=1073741824,qe=0,ut=i.ranges;qe<ut.length;qe++){var St=ut[qe];St.left<_e&&(_e=St.left)}for(var et=1073741824,Wt=0,Ft=m.ranges;Wt<Ft.length;Wt++){var St=Ft[Wt];St.left<et&&(et=St.left)}var Vt=n.getVerticalOffsetForLineNumber(i.lineNumber)-n.scrollTop,qt=new Nt(Vt,_e),$t=n.getVerticalOffsetForLineNumber(m.lineNumber)-n.scrollTop,rn=new Nt($t,et);return[qt,rn]},V.prototype._prepareRenderWidget=function(n){var t=this._getTopAndBottomLeft(n),i=t[0],m=t[1];if(!i||!m)return null;if(this._cachedDomNodeClientWidth===-1||this._cachedDomNodeClientHeight===-1){var C=this.domNode.domNode;this._cachedDomNodeClientWidth=C.clientWidth,this._cachedDomNodeClientHeight=C.clientHeight}var K;if(this.allowEditorOverflow?K=this._layoutBoxInPage(i,m,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,n):K=this._layoutBoxInViewport(i,m,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,n),this._preference)for(var Ne=1;Ne<=2;Ne++)for(var _e=0,qe=this._preference;_e<qe.length;_e++){var ut=qe[_e];if(ut===1){if(!K)return null;if(Ne===2||K.fitsAbove)return new Nt(K.aboveTop,K.aboveLeft)}else if(ut===2){if(!K)return null;if(Ne===2||K.fitsBelow)return new Nt(K.belowTop,K.belowLeft)}else return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i}return null},V.prototype.onBeforeRender=function(n){if(!this._viewRange||!this._preference)return;if(this._viewRange.endLineNumber<n.startLineNumber||this._viewRange.startLineNumber>n.endLineNumber)return;this.domNode.setMaxWidth(this._maxWidth)},V.prototype.prepareRender=function(n){this._renderData=this._prepareRenderWidget(n)},V.prototype.render=function(n){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"));return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+n.scrollTop-n.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)},V}(),ye=e("kw+w"),We=e("6OMU"),Ze=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),st=!0,pt=function(V){Ze(n,V);function n(t){var i=V.call(this)||this;i._context=t;var m=i._context.configuration.options,C=m.get(107);return i._lineHeight=m.get(49),i._renderLineHighlight=m.get(72),i._contentLeft=C.contentLeft,i._contentWidth=C.contentWidth,i._selectionIsEmpty=!0,i._cursorLineNumbers=[],i._selections=[],i._renderData=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},n.prototype._readFromSelections=function(){var t=!1,i=st?this._selections.slice(0,1):this._selections,m=i.map(function(K){return K.positionLineNumber});m.sort(function(K,Ne){return K-Ne}),We.g(this._cursorLineNumbers,m)||(this._cursorLineNumbers=m,t=!0);var C=i.every(function(K){return K.isEmpty()});return this._selectionIsEmpty!==C&&(this._selectionIsEmpty=C,t=!0),t},n.prototype.onThemeChanged=function(t){return this._readFromSelections()},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._lineHeight=i.get(49),this._renderLineHighlight=i.get(72),this._contentLeft=m.contentLeft,this._contentWidth=m.contentWidth,!0},n.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._readFromSelections()},n.prototype.onFlushed=function(t){return!0},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype.onScrollChanged=function(t){return t.scrollWidthChanged||t.scrollTopChanged},n.prototype.onZonesChanged=function(t){return!0},n.prototype.prepareRender=function(t){if(!this._shouldRenderThis()){this._renderData=null;return}for(var i=this._renderOne(t),m=t.visibleRange.startLineNumber,C=t.visibleRange.endLineNumber,K=this._cursorLineNumbers.length,Ne=0,_e=[],qe=m;qe<=C;qe++){for(var ut=qe-m;Ne<K&&this._cursorLineNumbers[Ne]<qe;)Ne++;Ne<K&&this._cursorLineNumbers[Ne]===qe?_e[ut]=i:_e[ut]=""}this._renderData=_e},n.prototype.render=function(t,i){if(!this._renderData)return"";var m=i-t;return m>=this._renderData.length?"":this._renderData[m]},n}(Fe),Kt=function(V){Ze(n,V);function n(){return V!==null&&V.apply(this,arguments)||this}return n.prototype._renderOne=function(t){var i="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'<div class="'+i+'" style="width:'+Math.max(t.scrollWidth,this._contentWidth)+"px; height:"+this._lineHeight+'px;"></div>'},n.prototype._shouldRenderThis=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},n.prototype._shouldRenderOther=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},n}(pt),Xt=function(V){Ze(n,V);function n(){return V!==null&&V.apply(this,arguments)||this}return n.prototype._renderOne=function(t){var i="current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"");return'<div class="'+i+'" style="width:'+this._contentLeft+"px; height:"+this._lineHeight+'px;"></div>'},n.prototype._shouldRenderThis=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},n.prototype._shouldRenderOther=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},n}(pt);Object(X.e)(function(V,n){st=!1;var t=V.getColor(lt.i);if(t&&(n.addRule(".monaco-editor .view-overlays .current-line { background-color: "+t+"; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+t+"; border: none; }")),!t||t.isTransparent()||V.defines(lt.j)){var i=V.getColor(lt.j);i&&(st=!0,n.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),V.type==="hc"&&(n.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});var on=e("Vtyv"),vn=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),dn=function(V){vn(n,V);function n(t){var i=V.call(this)||this;i._context=t;var m=i._context.configuration.options;return i._lineHeight=m.get(49),i._typicalHalfwidthCharacterWidth=m.get(34).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onDecorationsChanged=function(t){return!0},n.prototype.onFlushed=function(t){return!0},n.prototype.onLinesChanged=function(t){return!0},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},n.prototype.onZonesChanged=function(t){return!0},n.prototype.prepareRender=function(t){for(var i=t.getDecorationsInViewport(),m=[],C=0,K=0,Ne=i.length;K<Ne;K++){var _e=i[K];_e.options.className&&(m[C++]=_e)}m=m.sort(function(Ft,Vt){if(Ft.options.zIndex<Vt.options.zIndex)return-1;if(Ft.options.zIndex>Vt.options.zIndex)return 1;var qt=Ft.options.className,$t=Vt.options.className;return qt<$t?-1:qt>$t?1:Ce.a.compareRangesUsingStarts(Ft.range,Vt.range)});for(var qe=t.visibleRange.startLineNumber,ut=t.visibleRange.endLineNumber,St=[],et=qe;et<=ut;et++){var Wt=et-qe;St[Wt]=""}this._renderWholeLineDecorations(t,m,St),this._renderNormalDecorations(t,m,St),this._renderResult=St},n.prototype._renderWholeLineDecorations=function(t,i,m){for(var C=String(this._lineHeight),K=t.visibleRange.startLineNumber,Ne=t.visibleRange.endLineNumber,_e=0,qe=i.length;_e<qe;_e++){var ut=i[_e];if(!ut.options.isWholeLine)continue;for(var St='<div class="cdr '+ut.options.className+'" style="left:0;width:100%;height:'+C+'px;"></div>',et=Math.max(ut.range.startLineNumber,K),Wt=Math.min(ut.range.endLineNumber,Ne),Ft=et;Ft<=Wt;Ft++){var Vt=Ft-K;m[Vt]+=St}}},n.prototype._renderNormalDecorations=function(t,i,m){for(var C=String(this._lineHeight),K=t.visibleRange.startLineNumber,Ne=null,_e=!1,qe=null,ut=0,St=i.length;ut<St;ut++){var et=i[ut];if(et.options.isWholeLine)continue;var Wt=et.options.className,Ft=Boolean(et.options.showIfCollapsed),Vt=et.range;if(Ft&&Vt.endColumn===1&&Vt.endLineNumber!==Vt.startLineNumber&&(Vt=new Ce.a(Vt.startLineNumber,Vt.startColumn,Vt.endLineNumber-1,this._context.model.getLineMaxColumn(Vt.endLineNumber-1))),Ne===Wt&&_e===Ft&&Ce.a.areIntersectingOrTouching(qe,Vt)){qe=Ce.a.plusRange(qe,Vt);continue}Ne!==null&&this._renderNormalDecoration(t,qe,Ne,_e,C,K,m),Ne=Wt,_e=Ft,qe=Vt}Ne!==null&&this._renderNormalDecoration(t,qe,Ne,_e,C,K,m)},n.prototype._renderNormalDecoration=function(t,i,m,C,K,Ne,_e){var qe=t.linesVisibleRangesForRange(i,m==="findMatch");if(!qe)return;for(var ut=0,St=qe.length;ut<St;ut++){var et=qe[ut];if(et.outsideRenderedLine)continue;var Wt=et.lineNumber-Ne;if(C&&et.ranges.length===1){var Ft=et.ranges[0];Ft.width===0&&(et.ranges[0]=new He(Ft.left,this._typicalHalfwidthCharacterWidth))}for(var Vt=0,qt=et.ranges.length;Vt<qt;Vt++){var $t=et.ranges[Vt],rn='<div class="cdr '+m+'" style="left:'+String($t.left)+"px;width:"+String($t.width)+"px;height:"+K+'px;"></div>';_e[Wt]+=rn}}},n.prototype.render=function(t,i){if(!this._renderResult)return"";var m=i-t;return m<0||m>=this._renderResult.length?"":this._renderResult[m]},n}(Fe),Rn=e("GJhM"),Sn=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ln=function(V){Sn(n,V);function n(t,i,m,C){var K=V.call(this,t)||this,Ne=K._context.configuration.options,_e=Ne.get(78),qe=Ne.get(56),ut=Ne.get(27),St={listenOnDomNode:m.domNode,className:"editor-scrollable "+Object(X.d)(t.theme.type),useShadows:!1,lazyRender:!0,vertical:_e.vertical,horizontal:_e.horizontal,verticalHasArrows:_e.verticalHasArrows,horizontalHasArrows:_e.horizontalHasArrows,verticalScrollbarSize:_e.verticalScrollbarSize,verticalSliderSize:_e.verticalSliderSize,horizontalScrollbarSize:_e.horizontalScrollbarSize,horizontalSliderSize:_e.horizontalSliderSize,handleMouseWheel:_e.handleMouseWheel,alwaysConsumeMouseWheel:_e.alwaysConsumeMouseWheel,arrowSize:_e.arrowSize,mouseWheelScrollSensitivity:qe,fastScrollSensitivity:ut};K.scrollbar=K._register(new Rn.c(i.domNode,St,K._context.viewLayout.getScrollable())),le.write(K.scrollbar.getDomNode(),5),K.scrollbarDomNode=Object(y.b)(K.scrollbar.getDomNode()),K.scrollbarDomNode.setPosition("absolute"),K._setLayout();var et=function(Ft,Vt,qt){var $t={};if(Vt){var rn=Ft.scrollTop;rn&&($t.scrollTop=K._context.viewLayout.getCurrentScrollTop()+rn,Ft.scrollTop=0)}if(qt){var yn=Ft.scrollLeft;yn&&($t.scrollLeft=K._context.viewLayout.getCurrentScrollLeft()+yn,Ft.scrollLeft=0)}K._context.viewLayout.setScrollPositionNow($t)};return K._register(J.j(m.domNode,"scroll",function(Wt){return et(m.domNode,!0,!0)})),K._register(J.j(i.domNode,"scroll",function(Wt){return et(i.domNode,!0,!1)})),K._register(J.j(C.domNode,"scroll",function(Wt){return et(C.domNode,!0,!1)})),K._register(J.j(K.scrollbarDomNode.domNode,"scroll",function(Wt){return et(K.scrollbarDomNode.domNode,!0,!1)})),K}return n.prototype.dispose=function(){V.prototype.dispose.call(this)},n.prototype._setLayout=function(){var t=this._context.configuration.options,i=t.get(107);this.scrollbarDomNode.setLeft(i.contentLeft);var m=t.get(54),C=m.side;C==="right"?this.scrollbarDomNode.setWidth(i.contentWidth+i.minimapWidth):this.scrollbarDomNode.setWidth(i.contentWidth),this.scrollbarDomNode.setHeight(i.height)},n.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},n.prototype.getDomNode=function(){return this.scrollbarDomNode},n.prototype.delegateVerticalScrollbarMouseDown=function(t){this.scrollbar.delegateVerticalScrollbarMouseDown(t)},n.prototype.onConfigurationChanged=function(t){if(t.hasChanged(78)||t.hasChanged(56)||t.hasChanged(27)){var i=this._context.configuration.options,m=i.get(78),C=i.get(56),K=i.get(27),Ne={handleMouseWheel:m.handleMouseWheel,mouseWheelScrollSensitivity:C,fastScrollSensitivity:K};this.scrollbar.updateOptions(Ne)}return t.hasChanged(107)&&this._setLayout(),!0},n.prototype.onScrollChanged=function(t){return!0},n.prototype.onThemeChanged=function(t){return this.scrollbar.updateClassName("editor-scrollable "+Object(X.d)(this._context.theme.type)),!0},n.prototype.prepareRender=function(t){},n.prototype.render=function(t){this.scrollbar.renderNow()},n}(B),Pn=e("hHjc"),Hn=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),On=function(){function V(n,t,i){this.startLineNumber=+n,this.endLineNumber=+t,this.className=String(i)}return V}(),An=function(V){Hn(n,V);function n(){return V!==null&&V.apply(this,arguments)||this}return n.prototype._render=function(t,i,m){for(var C=[],K=t;K<=i;K++){var Ne=K-t;C[Ne]=[]}if(m.length===0)return C;m.sort(function($t,rn){return $t.className===rn.className?$t.startLineNumber===rn.startLineNumber?$t.endLineNumber-rn.endLineNumber:$t.startLineNumber-rn.startLineNumber:$t.className<rn.className?-1:1});for(var _e=null,qe=0,ut=0,St=m.length;ut<St;ut++){var et=m[ut],Wt=et.className,Ft=Math.max(et.startLineNumber,t)-t,Vt=Math.min(et.endLineNumber,i)-t;_e===Wt?(Ft=Math.max(qe+1,Ft),qe=Math.max(qe,Vt)):(_e=Wt,qe=Vt);for(var qt=Ft;qt<=qe;qt++)C[qt].push(_e)}return C},n}(Fe),to=function(V){Hn(n,V);function n(t){var i=V.call(this)||this;i._context=t;var m=i._context.configuration.options,C=m.get(107);return i._lineHeight=m.get(49),i._glyphMargin=m.get(40),i._glyphMarginLeft=C.glyphMarginLeft,i._glyphMarginWidth=C.glyphMarginWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._lineHeight=i.get(49),this._glyphMargin=i.get(40),this._glyphMarginLeft=m.glyphMarginLeft,this._glyphMarginWidth=m.glyphMarginWidth,!0},n.prototype.onDecorationsChanged=function(t){return!0},n.prototype.onFlushed=function(t){return!0},n.prototype.onLinesChanged=function(t){return!0},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype.onScrollChanged=function(t){return t.scrollTopChanged},n.prototype.onZonesChanged=function(t){return!0},n.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),m=[],C=0,K=0,Ne=i.length;K<Ne;K++){var _e=i[K],qe=_e.options.glyphMarginClassName;qe&&(m[C++]=new On(_e.range.startLineNumber,_e.range.endLineNumber,qe))}return m},n.prototype.prepareRender=function(t){if(!this._glyphMargin){this._renderResult=null;return}for(var i=t.visibleRange.startLineNumber,m=t.visibleRange.endLineNumber,C=this._render(i,m,this._getDecorations(t)),K=this._lineHeight.toString(),Ne=this._glyphMarginLeft.toString(),_e=this._glyphMarginWidth.toString(),qe='" style="left:'+Ne+"px;width:"+_e+"px;height:"+K+'px;"></div>',ut=[],St=i;St<=m;St++){var et=St-i,Wt=C[et];Wt.length===0?ut[et]="":ut[et]='<div class="cgmr codicon '+Wt.join(" ")+qe}this._renderResult=ut},n.prototype.render=function(t,i){if(!this._renderResult)return"";var m=i-t;return m<0||m>=this._renderResult.length?"":this._renderResult[m]},n}(An),mo=e("C6rC"),Eo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),no=function(V){Eo(n,V);function n(t){var i=V.call(this)||this;i._context=t,i._primaryLineNumber=0;var m=i._context.configuration.options,C=m.get(108),K=m.get(34);return i._lineHeight=m.get(49),i._spaceWidth=K.spaceWidth,i._enabled=m.get(70),i._activeIndentEnabled=m.get(43),i._maxIndentLeft=C.wrappingColumn===-1?-1:C.wrappingColumn*K.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(108),C=i.get(34);return this._lineHeight=i.get(49),this._spaceWidth=C.spaceWidth,this._enabled=i.get(70),this._activeIndentEnabled=i.get(43),this._maxIndentLeft=m.wrappingColumn===-1?-1:m.wrappingColumn*C.typicalHalfwidthCharacterWidth,!0},n.prototype.onCursorStateChanged=function(t){var i=t.selections[0],m=i.isEmpty()?i.positionLineNumber:0;return this._primaryLineNumber!==m?(this._primaryLineNumber=m,!0):!1},n.prototype.onDecorationsChanged=function(t){return!0},n.prototype.onFlushed=function(t){return!0},n.prototype.onLinesChanged=function(t){return!0},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype.onScrollChanged=function(t){return t.scrollTopChanged},n.prototype.onZonesChanged=function(t){return!0},n.prototype.onLanguageConfigurationChanged=function(t){return!0},n.prototype.prepareRender=function(t){if(!this._enabled){this._renderResult=null;return}var i=t.visibleRange.startLineNumber,m=t.visibleRange.endLineNumber,C=this._context.model.getOptions().indentSize,K=C*this._spaceWidth,Ne=t.scrollWidth,_e=this._lineHeight,qe=this._context.model.getLinesIndentGuides(i,m),ut=0,St=0,et=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var Wt=this._context.model.getActiveIndentGuide(this._primaryLineNumber,i,m);ut=Wt.startLineNumber,St=Wt.endLineNumber,et=Wt.indent}for(var Ft=[],Vt=i;Vt<=m;Vt++){var qt=ut<=Vt&&Vt<=St,$t=Vt-i,rn=qe[$t],yn="";if(rn>=1)for(var pn=t.visibleRangeForPosition(new ne.a(Vt,1)),Cn=pn?pn.left:0,mn=1;mn<=rn;mn++){var _n=qt&&mn===et?"cigra":"cigr";if(yn+='<div class="'+_n+'" style="left:'+Cn+"px;height:"+_e+"px;width:"+K+'px"></div>',Cn+=K,Cn>Ne||this._maxIndentLeft>0&&Cn>this._maxIndentLeft)break}Ft[$t]=yn}this._renderResult=Ft},n.prototype.render=function(t,i){if(!this._renderResult)return"";var m=i-t;return m<0||m>=this._renderResult.length?"":this._renderResult[m]},n}(Fe);Object(X.e)(function(V,n){var t=V.getColor(lt.h);t&&n.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+t+" inset; }");var i=V.getColor(lt.a)||t;i&&n.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")});var Mo=e("OKK6"),Uo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ro=function(){function V(){this._currentVisibleRange=new Ce.a(1,1,1,1)}return V.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},V.prototype.setCurrentVisibleRange=function(n){this._currentVisibleRange=n},V}(),ai=function(){function V(n,t,i,m,C,K){this.lineNumber=n,this.startColumn=t,this.endColumn=i,this.startScrollTop=m,this.stopScrollTop=C,this.scrollType=K}return V}(),Ci=function(V){Uo(n,V);function n(t,i){var m=V.call(this,t)||this;m._linesContent=i,m._textRangeRestingSpot=document.createElement("div"),m._visibleLines=new Ht(m),m.domNode=m._visibleLines.domNode;var C=m._context.configuration,K=m._context.configuration.options,Ne=K.get(34),_e=K.get(108);return m._lineHeight=K.get(49),m._typicalHalfwidthCharacterWidth=Ne.typicalHalfwidthCharacterWidth,m._isViewportWrapping=_e.isViewportWrapping,m._revealHorizontalRightPadding=K.get(75),m._cursorSurroundingLines=K.get(19),m._cursorSurroundingLinesStyle=K.get(20),m._canUseLayerHinting=!K.get(22),m._viewLineOptions=new Se(C,m._context.theme.type),le.write(m.domNode,7),m.domNode.setClassName("view-lines"),U.a.applyFontInfo(m.domNode,Ne),m._maxLineWidth=0,m._asyncUpdateLineWidths=new g.d(function(){m._updateLineWidthsSlow()},200),m._lastRenderedData=new Ro,m._horizontalRevealRequest=null,m}return n.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),V.prototype.dispose.call(this)},n.prototype.getDomNode=function(){return this.domNode},n.prototype.createVisibleLine=function(){return new Re(this._viewLineOptions)},n.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t),t.hasChanged(108)&&(this._maxLineWidth=0);var i=this._context.configuration.options,m=i.get(34),C=i.get(108);return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=m.typicalHalfwidthCharacterWidth,this._isViewportWrapping=C.isViewportWrapping,this._revealHorizontalRightPadding=i.get(75),this._cursorSurroundingLines=i.get(19),this._cursorSurroundingLinesStyle=i.get(20),this._canUseLayerHinting=!i.get(22),U.a.applyFontInfo(this.domNode,m),this._onOptionsMaybeChanged(),t.hasChanged(107)&&(this._maxLineWidth=0),!0},n.prototype._onOptionsMaybeChanged=function(){var t=this._context.configuration,i=new Se(t,this._context.theme.type);if(!this._viewLineOptions.equals(i)){this._viewLineOptions=i;for(var m=this._visibleLines.getStartLineNumber(),C=this._visibleLines.getEndLineNumber(),K=m;K<=C;K++){var Ne=this._visibleLines.getVisibleLine(K);Ne.onOptionsChanged(this._viewLineOptions)}return!0}return!1},n.prototype.onCursorStateChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber(),C=!1,K=i;K<=m;K++)C=this._visibleLines.getVisibleLine(K).onSelectionChanged()||C;return C},n.prototype.onDecorationsChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber(),C=i;C<=m;C++)this._visibleLines.getVisibleLine(C).onDecorationsChanged();return!0},n.prototype.onFlushed=function(t){var i=this._visibleLines.onFlushed(t);return this._maxLineWidth=0,i},n.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},n.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},n.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},n.prototype.onRevealRangeRequest=function(t){var i=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),t.source,t.range,t.verticalType),m=this._context.viewLayout.validateScrollPosition({scrollTop:i});t.revealHorizontal?t.range.startLineNumber!==t.range.endLineNumber?m={scrollTop:m.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new ai(t.range.startLineNumber,t.range.startColumn,t.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),m.scrollTop,t.scrollType):this._horizontalRevealRequest=null;var C=Math.abs(this._context.viewLayout.getCurrentScrollTop()-m.scrollTop);return t.scrollType===0&&C>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(m):this._context.viewLayout.setScrollPositionNow(m),!0},n.prototype.onScrollChanged=function(t){if(this._horizontalRevealRequest&&t.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&t.scrollTopChanged){var i=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),m=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(t.scrollTop<i||t.scrollTop>m)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(t.scrollWidth),this._visibleLines.onScrollChanged(t)||!0},n.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},n.prototype.onZonesChanged=function(t){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(t)},n.prototype.onThemeChanged=function(t){return this._onOptionsMaybeChanged()},n.prototype.getPositionFromDOMInfo=function(t,i){var m=this._getViewLineDomNode(t);if(m===null)return null;var C=this._getLineNumberFor(m);if(C===-1)return null;if(C<1||C>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(C)===1)return new ne.a(C,1);var K=this._visibleLines.getStartLineNumber(),Ne=this._visibleLines.getEndLineNumber();if(C<K||C>Ne)return null;var _e=this._visibleLines.getVisibleLine(C).getColumnOfNodeOffset(C,t,i),qe=this._context.model.getLineMinColumn(C);return _e<qe&&(_e=qe),new ne.a(C,_e)},n.prototype._getViewLineDomNode=function(t){for(;t&&t.nodeType===1;){if(t.className===Re.CLASS_NAME)return t;t=t.parentElement}return null},n.prototype._getLineNumberFor=function(t){for(var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber(),C=i;C<=m;C++){var K=this._visibleLines.getVisibleLine(C);if(t===K.getDomNode())return C}return-1},n.prototype.getLineWidth=function(t){var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber();return t<i||t>m?-1:this._visibleLines.getVisibleLine(t).getWidth()},n.prototype.linesVisibleRangesForRange=function(t,i){if(this.shouldRender())return null;var m=t.endLineNumber,C=Ce.a.intersectRanges(t,this._lastRenderedData.getCurrentVisibleRange());if(!C)return null;var K=[],Ne=0,_e=new me(this.domNode.domNode,this._textRangeRestingSpot),qe=0;i&&(qe=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(C.startLineNumber,1)).lineNumber);for(var ut=this._visibleLines.getStartLineNumber(),St=this._visibleLines.getEndLineNumber(),et=C.startLineNumber;et<=C.endLineNumber;et++){if(et<ut||et>St)continue;var Wt=et===C.startLineNumber?C.startColumn:1,Ft=et===C.endLineNumber?C.endColumn:this._context.model.getLineMaxColumn(et),Vt=this._visibleLines.getVisibleLine(et).getVisibleRangesForRange(Wt,Ft,_e);if(!Vt)continue;if(i&&et<m){var qt=qe;qe=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(et+1,1)).lineNumber,qt!==qe&&(Vt.ranges[Vt.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}K[Ne++]=new ke(Vt.outsideRenderedLine,et,Vt.ranges)}return Ne===0?null:K},n.prototype._visibleRangesForLineRange=function(t,i,m){return this.shouldRender()||(t<this._visibleLines.getStartLineNumber()||t>this._visibleLines.getEndLineNumber())?null:this._visibleLines.getVisibleLine(t).getVisibleRangesForRange(i,m,new me(this.domNode.domNode,this._textRangeRestingSpot))},n.prototype.visibleRangeForPosition=function(t){var i=this._visibleRangesForLineRange(t.lineNumber,t.column,t.column);return i?new je(i.outsideRenderedLine,i.ranges[0].left):null},n.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},n.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},n.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},n.prototype._updateLineWidths=function(t){for(var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber(),C=1,K=!0,Ne=i;Ne<=m;Ne++){var _e=this._visibleLines.getVisibleLine(Ne);if(t&&!_e.getWidthIsFast()){K=!1;continue}C=Math.max(C,_e.getWidth())}return K&&i===1&&m===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(C),K},n.prototype.prepareRender=function(){throw new Error("Not supported")},n.prototype.render=function(){throw new Error("Not supported")},n.prototype.renderText=function(t){if(this._visibleLines.renderLines(t),this._lastRenderedData.setCurrentVisibleRange(t.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var i=this._horizontalRevealRequest.lineNumber,m=this._horizontalRevealRequest.startColumn,C=this._horizontalRevealRequest.endColumn,K=this._horizontalRevealRequest.scrollType;if(t.startLineNumber<=i&&i<=t.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var Ne=this._computeScrollLeftToRevealRange(i,m,C),_e=this._isViewportWrapping;_e||this._ensureMaxLineWidth(Ne.maxHorizontalOffset),K===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:Ne.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:Ne.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var qe=this._context.viewLayout.getCurrentScrollTop()-t.bigNumbersDelta;this._linesContent.setTop(-qe),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},n.prototype._ensureMaxLineWidth=function(t){var i=Math.ceil(t);this._maxLineWidth<i&&(this._maxLineWidth=i,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},n.prototype._computeScrollTopToRevealRange=function(t,i,m,C){var K=t.top,Ne=t.height,_e=K+Ne,qe,ut;qe=this._context.viewLayout.getVerticalOffsetForLineNumber(m.startLineNumber),ut=this._context.viewLayout.getVerticalOffsetForLineNumber(m.endLineNumber)+this._lineHeight;var St=i==="mouse"&&this._cursorSurroundingLinesStyle==="default";if(!St){var et=Math.min(Ne/this._lineHeight/2,this._cursorSurroundingLines);qe-=et*this._lineHeight,ut+=Math.max(0,et-1)*this._lineHeight}(C===0||C===4)&&(ut+=this._lineHeight);var Wt;if(ut-qe>Ne)Wt=qe;else if(C===1||C===2)if(C===2&&K<=qe&&ut<=_e)Wt=K;else{var Ft=(qe+ut)/2;Wt=Math.max(0,Ft-Ne/2)}else Wt=this._computeMinimumScrolling(K,_e,qe,ut,C===3,C===4);return Wt},n.prototype._computeScrollLeftToRevealRange=function(t,i,m){var C=0,K=this._context.viewLayout.getCurrentViewport(),Ne=K.left,_e=Ne+K.width,qe=this._visibleRangesForLineRange(t,i,m),ut=1073741824,St=0;if(!qe)return{scrollLeft:Ne,maxHorizontalOffset:C};for(var et=0,Wt=qe.ranges;et<Wt.length;et++){var Ft=Wt[et];Ft.left<ut&&(ut=Ft.left),Ft.left+Ft.width>St&&(St=Ft.left+Ft.width)}C=St,ut=Math.max(0,ut-n.HORIZONTAL_EXTRA_PX),St+=this._revealHorizontalRightPadding;var Vt=this._computeMinimumScrolling(Ne,_e,ut,St);return{scrollLeft:Vt,maxHorizontalOffset:C}},n.prototype._computeMinimumScrolling=function(t,i,m,C,K,Ne){t=t|0,i=i|0,m=m|0,C=C|0,K=!!K,Ne=!!Ne;var _e=i-t,qe=C-m;if(qe<_e){if(K)return m;if(Ne)return Math.max(0,C-_e);if(m<t)return m;if(C>i)return Math.max(0,C-_e)}else return m;return t},n.HORIZONTAL_EXTRA_PX=30,n}(B),Fo=e("J+ZK"),Qo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Yr=function(V){Qo(n,V);function n(t){var i=V.call(this)||this;i._context=t;var m=i._context.configuration.options,C=m.get(107);return i._decorationsLeft=C.decorationsLeft,i._decorationsWidth=C.decorationsWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._decorationsLeft=m.decorationsLeft,this._decorationsWidth=m.decorationsWidth,!0},n.prototype.onDecorationsChanged=function(t){return!0},n.prototype.onFlushed=function(t){return!0},n.prototype.onLinesChanged=function(t){return!0},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype.onScrollChanged=function(t){return t.scrollTopChanged},n.prototype.onZonesChanged=function(t){return!0},n.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),m=[],C=0,K=0,Ne=i.length;K<Ne;K++){var _e=i[K],qe=_e.options.linesDecorationsClassName;qe&&(m[C++]=new On(_e.range.startLineNumber,_e.range.endLineNumber,qe))}return m},n.prototype.prepareRender=function(t){for(var i=t.visibleRange.startLineNumber,m=t.visibleRange.endLineNumber,C=this._render(i,m,this._getDecorations(t)),K=this._decorationsLeft.toString(),Ne=this._decorationsWidth.toString(),_e='" style="left:'+K+"px;width:"+Ne+'px;"></div>',qe=[],ut=i;ut<=m;ut++){for(var St=ut-i,et=C[St],Wt="",Ft=0,Vt=et.length;Ft<Vt;Ft++)Wt+='<div class="cldr '+et[Ft]+_e;qe[St]=Wt}this._renderResult=qe},n.prototype.render=function(t,i){return this._renderResult?this._renderResult[i-t]:""},n}(An),na=e("XXBq"),zi=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ki=function(V){zi(n,V);function n(t){var i=V.call(this)||this;return i._context=t,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(t){return!0},n.prototype.onDecorationsChanged=function(t){return!0},n.prototype.onFlushed=function(t){return!0},n.prototype.onLinesChanged=function(t){return!0},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype.onScrollChanged=function(t){return t.scrollTopChanged},n.prototype.onZonesChanged=function(t){return!0},n.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),m=[],C=0,K=0,Ne=i.length;K<Ne;K++){var _e=i[K],qe=_e.options.marginClassName;qe&&(m[C++]=new On(_e.range.startLineNumber,_e.range.endLineNumber,qe))}return m},n.prototype.prepareRender=function(t){for(var i=t.visibleRange.startLineNumber,m=t.visibleRange.endLineNumber,C=this._render(i,m,this._getDecorations(t)),K=[],Ne=i;Ne<=m;Ne++){for(var _e=Ne-i,qe=C[_e],ut="",St=0,et=qe.length;St<et;St++)ut+='<div class="cmdr '+qe[St]+'" style=""></div>';K[_e]=ut}this._renderResult=K},n.prototype.render=function(t,i){return this._renderResult?this._renderResult[i-t]:""},n}(An),Zr=e("8gvo"),Gi=function(){function V(n,t,i,m){this.r=V._clamp(n),this.g=V._clamp(t),this.b=V._clamp(i),this.a=V._clamp(m)}return V._clamp=function(n){return n<0?0:n>255?255:n|0},V.Empty=new V(0,0,0,0),V}(),$n=e("twdY"),li=function(){function V(){var n=this;this._onDidChange=new H.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),$n.B.onDidChange(function(t){t.changedColorMap&&n._updateColorMap()})}return V.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new V),this._INSTANCE},V.prototype._updateColorMap=function(){var n=$n.B.getColorMap();if(!n){this._colors=[Gi.Empty],this._backgroundIsLight=!0;return}this._colors=[Gi.Empty];for(var t=1;t<n.length;t++){var i=n[t].rgba;this._colors[t]=new Gi(i.r,i.g,i.b,Math.round(i.a*255))}var m=n[2].getRelativeLuminance();this._backgroundIsLight=m>=.5,this._onDidChange.fire(void 0)},V.prototype.getColor=function(n){return(n<1||n>=this._colors.length)&&(n=2),this._colors[n]},V.prototype.backgroundIsLight=function(){return this._backgroundIsLight},V._INSTANCE=null,V}(),To=e("MD5Z"),yr=function(){for(var V=[],n=32;n<=126;n++)V.push(n);return V.push(65533),V}(),Qr=function(n,t){return n-=32,n<0||n>96?t<=2?(n+96)%96:96-1:n},Ao=function(){function V(n,t){this.scale=t,this.charDataNormal=V.soften(n,12/15),this.charDataLight=V.soften(n,50/60)}return V.soften=function(n,t){for(var i=new Uint8ClampedArray(n.length),m=0,C=n.length;m<C;m++)i[m]=n[m]*t;return i},V.prototype.renderChar=function(n,t,i,m,C,K,Ne,_e){var qe=1*this.scale,ut=2*this.scale;if(t+qe>n.width||i+ut>n.height){console.warn("bad render request outside image data");return}for(var St=_e?this.charDataLight:this.charDataNormal,et=Qr(m,Ne),Wt=n.width*4,Ft=K.r,Vt=K.g,qt=K.b,$t=C.r-Ft,rn=C.g-Vt,yn=C.b-qt,pn=n.data,Cn=et*qe*ut,mn=i*Wt+t*4,_n=0;_n<ut;_n++){for(var In=mn,kn=0;kn<qe;kn++){var Xn=St[Cn++]/255;pn[In++]=Ft+$t*Xn,pn[In++]=Vt+rn*Xn,pn[In++]=qt+yn*Xn,In++}mn+=Wt}},V.prototype.blockRenderChar=function(n,t,i,m,C,K){var Ne=1*this.scale,_e=2*this.scale;if(t+Ne>n.width||i+_e>n.height){console.warn("bad render request outside image data");return}for(var qe=n.width*4,ut=.5,St=C.r,et=C.g,Wt=C.b,Ft=m.r-St,Vt=m.g-et,qt=m.b-Wt,$t=St+Ft*ut,rn=et+Vt*ut,yn=Wt+qt*ut,pn=n.data,Cn=i*qe+t*4,mn=0;mn<_e;mn++){for(var _n=Cn,In=0;In<Ne;In++)pn[_n++]=$t,pn[_n++]=rn,pn[_n++]=yn,_n++;Cn+=qe}},V}(),$o=e("C/vA"),Xi={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,A:10,B:11,C:12,D:13,E:14,F:15},Cr=function(n){for(var t=new Uint8ClampedArray(n.length/2),i=0;i<n.length;i+=2)t[i>>1]=Xi[n[i]]<<4|Xi[n[i+1]]&15;return t},Yi={1:Object($o.a)(function(){return Cr("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")}),2:Object($o.a)(function(){return Cr("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")})},di=function(){function V(){}return V.create=function(n,t){if(this.lastCreated&&n===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;var i;return Yi[n]?i=new Ao(Yi[n](),n):i=V.createFromSampleData(V.createSampleData(t).data,n),this.lastFontFamily=t,this.lastCreated=i,i},V.createSampleData=function(n){var t=document.createElement("canvas"),i=t.getContext("2d");t.style.height=16+"px",t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font="bold "+16+"px "+n,i.textBaseline="middle";for(var m=0,C=0,K=yr;C<K.length;C++){var Ne=K[C];i.fillText(String.fromCharCode(Ne),m,16/2),m+=10}return i.getImageData(0,0,96*10,16)},V.createFromSampleData=function(n,t){var i=16*10*4*96;if(n.length!==i)throw new Error("Unexpected source in MinimapCharRenderer");var m=V._downsample(n,t);return new Ao(m,t)},V._downsampleChar=function(n,t,i,m,C){for(var K=1*C,Ne=2*C,_e=m,qe=0,ut=0;ut<Ne;ut++)for(var St=ut/Ne*16,et=(ut+1)/Ne*16,Wt=0;Wt<K;Wt++){for(var Ft=Wt/K*10,Vt=(Wt+1)/K*10,qt=0,$t=0,rn=St;rn<et;rn++)for(var yn=t+Math.floor(rn)*3840,pn=1-(rn-Math.floor(rn)),Cn=Ft;Cn<Vt;Cn++){var mn=1-(Cn-Math.floor(Cn)),_n=yn+Math.floor(Cn)*4,In=mn*pn;$t+=In,qt+=n[_n]*n[_n+3]/255*In}var kn=qt/$t;qe=Math.max(qe,kn),i[_e++]=kn}return qe},V._downsample=function(n,t){for(var i=2*t*1*t,m=i*96,C=new Uint8ClampedArray(m),K=0,Ne=0,_e=0,qe=0;qe<96;qe++)_e=Math.max(_e,this._downsampleChar(n,Ne,C,K,t)),K+=i,Ne+=10*4;if(_e>0)for(var ut=255/_e,St=0;St<m;St++)C[St]*=ut;return C},V}(),br=e("M1Kb"),$r=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Lo(V,n){return V===1?2*n:(2+1)*n}function Zi(V,n){return V===1,1*n}var Jr=140,wo=2,Qi=function(){function V(n){var t=this,i=n.options,m=i.get(105),C=i.get(107),K=i.get(34);this.renderMinimap=C.renderMinimap|0,this.scrollBeyondLastLine=i.get(80);var Ne=i.get(54);this.showSlider=Ne.showSlider,this.fontScale=Math.round(Ne.scale*m),this.charRenderer=Object($o.a)(function(){return di.create(t.fontScale,K.fontFamily)}),this.pixelRatio=m,this.typicalHalfwidthCharacterWidth=K.typicalHalfwidthCharacterWidth,this.lineHeight=i.get(49),this.minimapLeft=C.minimapLeft,this.minimapWidth=C.minimapWidth,this.minimapHeight=C.height,this.canvasInnerWidth=Math.floor(m*this.minimapWidth),this.canvasInnerHeight=Math.floor(m*this.minimapHeight),this.canvasOuterWidth=this.canvasInnerWidth/m,this.canvasOuterHeight=this.canvasInnerHeight/m}return V.prototype.equals=function(n){return this.renderMinimap===n.renderMinimap&&this.scrollBeyondLastLine===n.scrollBeyondLastLine&&this.showSlider===n.showSlider&&this.pixelRatio===n.pixelRatio&&this.typicalHalfwidthCharacterWidth===n.typicalHalfwidthCharacterWidth&&this.lineHeight===n.lineHeight&&this.fontScale===n.fontScale&&this.minimapLeft===n.minimapLeft&&this.minimapWidth===n.minimapWidth&&this.minimapHeight===n.minimapHeight&&this.canvasInnerWidth===n.canvasInnerWidth&&this.canvasInnerHeight===n.canvasInnerHeight&&this.canvasOuterWidth===n.canvasOuterWidth&&this.canvasOuterHeight===n.canvasOuterHeight},V}(),qr=function(){function V(n,t,i,m,C,K,Ne){this.scrollTop=n,this.scrollHeight=t,this._computedSliderRatio=i,this.sliderTop=m,this.sliderHeight=C,this.startLineNumber=K,this.endLineNumber=Ne}return V.prototype.getDesiredScrollTopFromDelta=function(n){var t=this.sliderTop+n;return Math.round(t/this._computedSliderRatio)},V.prototype.getDesiredScrollTopFromTouchLocation=function(n){return Math.round((n-this.sliderHeight/2)/this._computedSliderRatio)},V.create=function(n,t,i,m,C,K,Ne,_e,qe){var ut=n.pixelRatio,St=Lo(n.renderMinimap,n.fontScale),et=Math.floor(n.canvasInnerHeight/St),Wt=n.lineHeight,Ft;if(C&&i!==K){var Vt=i-t+1;Ft=Math.floor(Vt*St/ut)}else{var qt=m/Wt;Ft=Math.floor(qt*St/ut)}var $t;n.scrollBeyondLastLine?$t=(K-1)*St/ut:$t=Math.max(0,K*St/ut-Ft),$t=Math.min(n.minimapHeight-Ft,$t);var rn=$t/(_e-m),yn=Ne*rn,pn=0;if(n.scrollBeyondLastLine){var qt=m/Wt;pn=qt}if(et>=K+pn){var Cn=1,mn=K;return new V(Ne,_e,rn,yn,Ft,Cn,mn)}else{var Cn=Math.max(1,Math.floor(t-yn*ut/St));qe&&qe.scrollHeight===_e&&(qe.scrollTop>Ne&&(Cn=Math.min(Cn,qe.startLineNumber)),qe.scrollTop<Ne&&(Cn=Math.max(Cn,qe.startLineNumber)));var mn=Math.min(K,Cn+et-1);return new V(Ne,_e,rn,yn,Ft,Cn,mn)}},V}(),$i=function(){function V(n){this.dy=n}return V.prototype.onContentChanged=function(){this.dy=-1},V.prototype.onTokensChanged=function(){this.dy=-1},V.INVALID=new V(-1),V}(),Er=function(){function V(n,t,i){this.renderedLayout=n,this._imageData=t,this._renderedLines=new Ut(function(){return $i.INVALID}),this._renderedLines._set(n.startLineNumber,i)}return V.prototype.linesEquals=function(n){if(!this.scrollEquals(n))return!1;for(var t=this._renderedLines._get(),i=t.lines,m=0,C=i.length;m<C;m++)if(i[m].dy===-1)return!1;return!0},V.prototype.scrollEquals=function(n){return this.renderedLayout.startLineNumber===n.startLineNumber&&this.renderedLayout.endLineNumber===n.endLineNumber},V.prototype._get=function(){var n=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:n.rendLineNumberStart,lines:n.lines}},V.prototype.onLinesChanged=function(n){return this._renderedLines.onLinesChanged(n.fromLineNumber,n.toLineNumber)},V.prototype.onLinesDeleted=function(n){this._renderedLines.onLinesDeleted(n.fromLineNumber,n.toLineNumber)},V.prototype.onLinesInserted=function(n){this._renderedLines.onLinesInserted(n.fromLineNumber,n.toLineNumber)},V.prototype.onTokensChanged=function(n){return this._renderedLines.onTokensChanged(n.ranges)},V}(),Sr=function(){function V(n,t,i,m){this._backgroundFillData=V._createBackgroundFillData(t,i,m),this._buffers=[n.createImageData(t,i),n.createImageData(t,i)],this._lastUsedBuffer=0}return V.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var n=this._buffers[this._lastUsedBuffer];return n.data.set(this._backgroundFillData),n},V._createBackgroundFillData=function(n,t,i){for(var m=i.r,C=i.g,K=i.b,Ne=new Uint8ClampedArray(n*t*4),_e=0,qe=0;qe<t;qe++)for(var ut=0;ut<n;ut++)Ne[_e]=m,Ne[_e+1]=C,Ne[_e+2]=K,Ne[_e+3]=255,_e+=4;return Ne},V}(),es=function(V){$r(n,V);function n(t){var i=V.call(this,t)||this;return i._selections=[],i._renderDecorations=!1,i._gestureInProgress=!1,i._options=new Qi(i._context.configuration),i._lastRenderData=null,i._buffers=null,i._selectionColor=i._context.theme.getColor(To.Ib),i._domNode=Object(y.b)(document.createElement("div")),le.write(i._domNode,8),i._domNode.setClassName(i._getMinimapDomNodeClassName()),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._shadow=Object(y.b)(document.createElement("div")),i._shadow.setClassName("minimap-shadow-hidden"),i._domNode.appendChild(i._shadow),i._canvas=Object(y.b)(document.createElement("canvas")),i._canvas.setPosition("absolute"),i._canvas.setLeft(0),i._domNode.appendChild(i._canvas),i._decorationsCanvas=Object(y.b)(document.createElement("canvas")),i._decorationsCanvas.setPosition("absolute"),i._decorationsCanvas.setClassName("minimap-decorations-layer"),i._decorationsCanvas.setLeft(0),i._domNode.appendChild(i._decorationsCanvas),i._slider=Object(y.b)(document.createElement("div")),i._slider.setPosition("absolute"),i._slider.setClassName("minimap-slider"),i._slider.setLayerHinting(!0),i._slider.setContain("strict"),i._domNode.appendChild(i._slider),i._sliderHorizontal=Object(y.b)(document.createElement("div")),i._sliderHorizontal.setPosition("absolute"),i._sliderHorizontal.setClassName("minimap-slider-horizontal"),i._slider.appendChild(i._sliderHorizontal),i._tokensColorTracker=li.getInstance(),i._applyLayout(),i._mouseDownListener=J.o(i._domNode.domNode,"mousedown",function(m){m.preventDefault();var C=i._options.renderMinimap;if(C===0)return;if(!i._lastRenderData)return;var K=Lo(C,i._options.fontScale),Ne=i._options.pixelRatio*m.browserEvent.offsetY,_e=Math.floor(Ne/K),qe=_e+i._lastRenderData.renderedLayout.startLineNumber;qe=Math.min(qe,i._context.model.getLineCount()),i._context.privateViewEventBus.emit(new po("mouse",new Ce.a(qe,1,qe,1),1,!1,0))}),i._sliderMouseMoveMonitor=new u.a,i._sliderMouseDownListener=J.o(i._slider.domNode,"mousedown",function(m){if(m.preventDefault(),m.stopPropagation(),m.leftButton&&i._lastRenderData){var C=m.posy,K=m.posx,Ne=i._lastRenderData.renderedLayout;i._slider.toggleClassName("active",!0),i._sliderMouseMoveMonitor.startMonitoring(m.target,m.buttons,u.b,function(_e){var qe=Math.abs(_e.posx-K);if(L.h&&qe>Jr){i._context.viewLayout.setScrollPositionNow({scrollTop:Ne.scrollTop});return}var ut=_e.posy-C;i._context.viewLayout.setScrollPositionNow({scrollTop:Ne.getDesiredScrollTopFromDelta(ut)})},function(){i._slider.toggleClassName("active",!1)})}}),i._gestureDisposable=f.b.addTarget(i._domNode.domNode),i._sliderTouchStartListener=J.j(i._domNode.domNode,f.a.Start,function(m){m.preventDefault(),m.stopPropagation(),i._lastRenderData&&(i._slider.toggleClassName("active",!0),i._gestureInProgress=!0,i.scrollDueToTouchEvent(m))}),i._sliderTouchMoveListener=J.o(i._domNode.domNode,f.a.Change,function(m){m.preventDefault(),m.stopPropagation(),i._lastRenderData&&i._gestureInProgress&&i.scrollDueToTouchEvent(m)}),i._sliderTouchEndListener=J.o(i._domNode.domNode,f.a.End,function(m){m.preventDefault(),m.stopPropagation(),i._gestureInProgress=!1,i._slider.toggleClassName("active",!1)}),i}return n.prototype.scrollDueToTouchEvent=function(t){var i=this._domNode.domNode.getBoundingClientRect().top,m=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(t.pageY-i);this._context.viewLayout.setScrollPositionNow({scrollTop:m})},n.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),V.prototype.dispose.call(this)},n.prototype._getMinimapDomNodeClassName=function(){return this._options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"},n.prototype.getDomNode=function(){return this._domNode},n.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},n.prototype._getBuffer=function(){return this._buffers||this._options.canvasInnerWidth>0&&this._options.canvasInnerHeight>0&&(this._buffers=new Sr(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},n.prototype._onOptionsMaybeChanged=function(){var t=new Qi(this._context.configuration);return this._options.equals(t)?!1:(this._options=t,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},n.prototype.onConfigurationChanged=function(t){return this._onOptionsMaybeChanged()},n.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._renderDecorations=!0,!0},n.prototype.onFlushed=function(t){return this._lastRenderData=null,!0},n.prototype.onLinesChanged=function(t){return this._lastRenderData?this._lastRenderData.onLinesChanged(t):!1},n.prototype.onLinesDeleted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(t),!0},n.prototype.onLinesInserted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(t),!0},n.prototype.onScrollChanged=function(t){return this._renderDecorations=!0,!0},n.prototype.onTokensChanged=function(t){return this._lastRenderData?this._lastRenderData.onTokensChanged(t):!1},n.prototype.onTokensColorsChanged=function(t){return this._lastRenderData=null,this._buffers=null,!0},n.prototype.onZonesChanged=function(t){return this._lastRenderData=null,!0},n.prototype.onDecorationsChanged=function(t){return this._renderDecorations=!0,!0},n.prototype.onThemeChanged=function(t){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(To.Ib),this._renderDecorations=!0,!0},n.prototype.prepareRender=function(t){},n.prototype.render=function(t){var i=this._options.renderMinimap;if(i===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}t.scrollLeft+t.viewportWidth>=t.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var m=qr.create(this._options,t.visibleRange.startLineNumber,t.visibleRange.endLineNumber,t.viewportHeight,t.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),t.scrollTop,t.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(m.sliderTop),this._slider.setHeight(m.sliderHeight);var C=t.scrollLeft/this._options.typicalHalfwidthCharacterWidth,K=Math.min(this._options.minimapWidth,Math.round(C*Zi(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(K),this._sliderHorizontal.setWidth(this._options.minimapWidth-K),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(m.sliderHeight),this.renderDecorations(m),this._lastRenderData=this.renderLines(m)},n.prototype.renderDecorations=function(t){if(this._renderDecorations){this._renderDecorations=!1;var i=this._context.model.getDecorationsInViewport(new Ce.a(t.startLineNumber,1,t.endLineNumber,this._context.model.getLineMaxColumn(t.endLineNumber))),m=this._options,C=m.renderMinimap,K=m.canvasInnerWidth,Ne=m.canvasInnerHeight,_e=Lo(C,this._options.fontScale),qe=Zi(C,this._options.fontScale),ut=this._context.model.getOptions().tabSize,St=this._decorationsCanvas.domNode.getContext("2d");St.clearRect(0,0,K,Ne);for(var et=new Map,Wt=0;Wt<this._selections.length;Wt++)for(var Ft=this._selections[Wt],Vt=Ft.startLineNumber;Vt<=Ft.endLineNumber;Vt++)this.renderDecorationOnLine(St,et,Ft,this._selectionColor,t,Vt,_e,_e,ut,qe);for(var Wt=0;Wt<i.length;Wt++){var qt=i[Wt];if(!qt.options.minimap)continue;for(var $t=qt.options.minimap.getColor(this._context.theme),Vt=qt.range.startLineNumber;Vt<=qt.range.endLineNumber;Vt++)switch(qt.options.minimap.position){case br.c.Inline:this.renderDecorationOnLine(St,et,qt.range,$t,t,Vt,_e,_e,ut,qe);continue;case br.c.Gutter:var rn=(Vt-t.startLineNumber)*_e,yn=2;this.renderDecoration(St,$t,yn,rn,wo,_e);continue}}}},n.prototype.renderDecorationOnLine=function(t,i,m,C,K,Ne,_e,qe,ut,St){var et=(Ne-K.startLineNumber)*qe;if(et+_e<0||et>this._options.canvasInnerHeight)return;var Wt=i.get(Ne),Ft=!Wt;if(!Wt){var Vt=this._context.model.getLineContent(Ne);Wt=[he.f];for(var qt=1;qt<Vt.length+1;qt++){var $t=Vt.charCodeAt(qt-1),rn=$t===9?ut*St:fe.y($t)?2*St:St;Wt[qt]=Wt[qt-1]+rn}i.set(Ne,Wt)}var yn=m.startColumn,pn=m.endColumn,Cn=m.startLineNumber,mn=m.endLineNumber,_n=Cn===Ne?Wt[yn-1]:he.f,In=mn>Ne?Wt.length-1:pn-1;if(In>0){var kn=Wt[In]-_n||2;this.renderDecoration(t,C,_n,et,kn,_e)}Ft&&this.renderLineHighlight(t,C,et,_e)},n.prototype.renderLineHighlight=function(t,i,m,C){t.fillStyle=i&&i.transparent(.5).toString()||"",t.fillRect(he.f,m,t.canvas.width,C)},n.prototype.renderDecoration=function(t,i,m,C,K,Ne){t.fillStyle=i&&i.toString()||"",t.fillRect(m,C,K,Ne)},n.prototype.renderLines=function(t){var i=this._options.renderMinimap,m=this._options.charRenderer(),C=t.startLineNumber,K=t.endLineNumber,Ne=Lo(i,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(t)){var _e=this._lastRenderData._get();return new Er(t,_e.imageData,_e.lines)}var qe=this._getBuffer();if(!qe)return null;for(var ut=n._renderUntouchedLines(qe,C,K,Ne,this._lastRenderData),St=ut[0],et=ut[1],Wt=ut[2],Ft=this._context.model.getMinimapLinesRenderingData(C,K,Wt),Vt=Ft.tabSize,qt=this._tokensColorTracker.getColor(2),$t=this._tokensColorTracker.backgroundIsLight(),rn=0,yn=[],pn=0,Cn=K-C+1;pn<Cn;pn++)Wt[pn]&&n._renderLine(qe,qt,$t,i,this._tokensColorTracker,m,rn,Vt,Ft.data[pn],this._options.fontScale),yn[pn]=new $i(rn),rn+=Ne;var mn=St===-1?0:St,_n=et===-1?qe.height:et,In=_n-mn,kn=this._canvas.domNode.getContext("2d");return kn.putImageData(qe,0,0,0,mn,qe.width,In),new Er(t,qe,yn)},n._renderUntouchedLines=function(t,i,m,C,K){var Ne=[];if(!K){for(var _e=0,qe=m-i+1;_e<qe;_e++)Ne[_e]=!0;return[-1,-1,Ne]}for(var ut=K._get(),St=ut.imageData.data,et=ut.rendLineNumberStart,Wt=ut.lines,Ft=Wt.length,Vt=t.width,qt=t.data,$t=(m-i+1)*C*Vt*4,rn=-1,yn=-1,pn=-1,Cn=-1,mn=-1,_n=-1,In=0,kn=i;kn<=m;kn++){var Xn=kn-i,jn=kn-et,oo=jn>=0&&jn<Ft?Wt[jn].dy:-1;if(oo===-1){Ne[Xn]=!0,In+=C;continue}var vo=oo*Vt*4,uo=(oo+C)*Vt*4,Io=In*Vt*4,ho=(In+C)*Vt*4;Cn===vo&&_n===Io?(Cn=uo,_n=ho):(pn!==-1&&(qt.set(St.subarray(pn,Cn),mn),rn===-1&&pn===0&&pn===mn&&(rn=Cn),yn===-1&&Cn===$t&&pn===mn&&(yn=pn)),pn=vo,Cn=uo,mn=Io,_n=ho),Ne[Xn]=!1,In+=C}pn!==-1&&(qt.set(St.subarray(pn,Cn),mn),rn===-1&&pn===0&&pn===mn&&(rn=Cn),yn===-1&&Cn===$t&&pn===mn&&(yn=pn));var Wo=rn===-1?-1:rn/(Vt*4),ko=yn===-1?-1:yn/(Vt*4);return[Wo,ko,Ne]},n._renderLine=function(t,i,m,C,K,Ne,_e,qe,ut,St){for(var et=ut.content,Wt=ut.tokens,Ft=Zi(C,St),Vt=t.width-Ft,qt=he.f,$t=0,rn=0,yn=0,pn=Wt.getCount();yn<pn;yn++)for(var Cn=Wt.getEndOffset(yn),mn=Wt.getForeground(yn),_n=K.getColor(mn);$t<Cn;$t++){if(qt>Vt)return;var In=et.charCodeAt($t);if(In===9){var kn=qe-($t+rn)%qe;rn+=kn-1,qt+=kn*Ft}else if(In===32)qt+=Ft;else for(var Xn=fe.y(In)?2:1,jn=0;jn<Xn;jn++)if(C===2?Ne.blockRenderChar(t,qt,_e,_n,i,m):Ne.renderChar(t,qt,_e,In,_n,i,St,m),qt+=Ft,qt>Vt)return}},n}(B);Object(X.e)(function(V,n){var t=V.getColor(To.Xb);if(t){var i=t.transparent(.5);n.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var m=V.getColor(To.Yb);if(m){var C=m.transparent(.5);n.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+C+"; }")}var K=V.getColor(To.Wb);if(K){var Ne=K.transparent(.5);n.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+Ne+"; }")}var _e=V.getColor(To.Vb);_e&&n.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+_e+" -6px 0 6px -6px inset; }")});var oa=e("cl4r"),ts=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Lr=function(V){ts(n,V);function n(t){var i=V.call(this,t)||this,m=i._context.configuration.options,C=m.get(107);return i._widgets={},i._verticalScrollbarWidth=C.verticalScrollbarWidth,i._minimapWidth=C.minimapWidth,i._horizontalScrollbarHeight=C.horizontalScrollbarHeight,i._editorHeight=C.height,i._editorWidth=C.width,i._domNode=Object(y.b)(document.createElement("div")),le.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return n.prototype.dispose=function(){V.prototype.dispose.call(this),this._widgets={}},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._verticalScrollbarWidth=m.verticalScrollbarWidth,this._minimapWidth=m.minimapWidth,this._horizontalScrollbarHeight=m.horizontalScrollbarHeight,this._editorHeight=m.height,this._editorWidth=m.width,!0},n.prototype.addWidget=function(t){var i=Object(y.b)(t.getDomNode());this._widgets[t.getId()]={widget:t,preference:null,domNode:i},i.setPosition("absolute"),i.setAttribute("widgetId",t.getId()),this._domNode.appendChild(i),this.setShouldRender()},n.prototype.setWidgetPosition=function(t,i){var m=this._widgets[t.getId()];return m.preference===i?!1:(m.preference=i,this.setShouldRender(),!0)},n.prototype.removeWidget=function(t){var i=t.getId();if(this._widgets.hasOwnProperty(i)){var m=this._widgets[i],C=m.domNode.domNode;delete this._widgets[i],C.parentNode.removeChild(C),this.setShouldRender()}},n.prototype._renderWidget=function(t){var i=t.domNode;if(t.preference===null){i.unsetTop();return}if(t.preference===0)i.setTop(0),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(t.preference===1){var m=i.domNode.clientHeight;i.setTop(this._editorHeight-m-2*this._horizontalScrollbarHeight),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else t.preference===2&&(i.setTop(0),i.domNode.style.right="50%")},n.prototype.prepareRender=function(t){},n.prototype.render=function(t){this._domNode.setWidth(this._editorWidth);for(var i=Object.keys(this._widgets),m=0,C=i.length;m<C;m++){var K=i[m];this._renderWidget(this._widgets[K])}},n}(B),Ho=e("zrhQ"),wr=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Mi=function(){function V(n,t){var i=n.options;this.lineHeight=i.get(49),this.pixelRatio=i.get(105),this.overviewRulerLanes=i.get(63),this.renderBorder=i.get(62);var m=t.getColor(lt.l);this.borderColor=m?m.toString():null,this.hideCursor=i.get(42);var C=t.getColor(lt.g);this.cursorColor=C?C.transparent(.7).toString():null,this.themeType=t.type;var K=i.get(54),Ne=K.enabled,_e=K.side,qe=Ne?$n.B.getDefaultBackground():null;qe===null||_e==="left"?this.backgroundColor=null:this.backgroundColor=Ho.a.Format.CSS.formatHex(qe);var ut=i.get(107),St=ut.overviewRuler;this.top=St.top,this.right=St.right,this.domWidth=St.width,this.domHeight=St.height,this.overviewRulerLanes===0?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);var et=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),Wt=et[0],Ft=et[1];this.x=Wt,this.w=Ft}return V.prototype._initLanes=function(n,t,i){var m=t-n;if(i>=3){var C=Math.floor(m/3),K=Math.floor(m/3),Ne=m-C-K,_e=n,qe=_e+C,ut=_e+C+Ne;return[[0,_e,qe,_e,ut,_e,qe,_e],[0,C,Ne,C+Ne,K,C+Ne+K,Ne+K,C+Ne+K]]}else if(i===2){var C=Math.floor(m/2),K=m-C,_e=n,ut=_e+C;return[[0,_e,_e,_e,ut,_e,_e,_e],[0,C,C,C,K,C+K,C+K,C+K]]}else{var St=n,et=m;return[[0,St,St,St,St,St,St,St],[0,et,et,et,et,et,et,et]]}},V.prototype.equals=function(n){return this.lineHeight===n.lineHeight&&this.pixelRatio===n.pixelRatio&&this.overviewRulerLanes===n.overviewRulerLanes&&this.renderBorder===n.renderBorder&&this.borderColor===n.borderColor&&this.hideCursor===n.hideCursor&&this.cursorColor===n.cursorColor&&this.themeType===n.themeType&&this.backgroundColor===n.backgroundColor&&this.top===n.top&&this.right===n.right&&this.domWidth===n.domWidth&&this.domHeight===n.domHeight&&this.canvasWidth===n.canvasWidth&&this.canvasHeight===n.canvasHeight},V}(),ns=function(V){wr(n,V);function n(t){var i=V.call(this,t)||this;return i._domNode=Object(y.b)(document.createElement("canvas")),i._domNode.setClassName("decorationsOverviewRuler"),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._domNode.setContain("strict"),i._domNode.setAttribute("aria-hidden","true"),i._updateSettings(!1),i._tokensColorTrackerListener=$n.B.onDidChange(function(m){m.changedColorMap&&i._updateSettings(!0)}),i._cursorPositions=[],i}return n.prototype.dispose=function(){V.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},n.prototype._updateSettings=function(t){var i=new Mi(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(i)?!1:(this._settings=i,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,t&&this._render(),!0)},n.prototype.onConfigurationChanged=function(t){return this._updateSettings(!1)},n.prototype.onCursorStateChanged=function(t){this._cursorPositions=[];for(var i=0,m=t.selections.length;i<m;i++)this._cursorPositions[i]=t.selections[i].getPosition();return this._cursorPositions.sort(ne.a.compare),!0},n.prototype.onDecorationsChanged=function(t){return!0},n.prototype.onFlushed=function(t){return!0},n.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},n.prototype.onZonesChanged=function(t){return!0},n.prototype.onThemeChanged=function(t){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},n.prototype.getDomNode=function(){return this._domNode.domNode},n.prototype.prepareRender=function(t){},n.prototype.render=function(t){this._render()},n.prototype._render=function(){if(this._settings.overviewRulerLanes===0){this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"");return}var t=this._settings.canvasWidth,i=this._settings.canvasHeight,m=this._settings.lineHeight,C=this._context.viewLayout,K=this._context.viewLayout.getScrollHeight(),Ne=i/K,_e=this._context.model.getAllOverviewRulerDecorations(this._context.theme),qe=6*this._settings.pixelRatio|0,ut=qe/2|0,St=this._domNode.domNode.getContext("2d");this._settings.backgroundColor===null?St.clearRect(0,0,t,i):(St.fillStyle=this._settings.backgroundColor,St.fillRect(0,0,t,i));var et=this._settings.x,Wt=this._settings.w,Ft=Object.keys(_e);Ft.sort();for(var Vt=0,qt=Ft.length;Vt<qt;Vt++){var $t=Ft[Vt],rn=_e[$t];St.fillStyle=$t;for(var yn=0,pn=0,Cn=0,mn=0,_n=rn.length;mn<_n;mn++){var In=rn[3*mn],kn=rn[3*mn+1],Xn=rn[3*mn+2],jn=C.getVerticalOffsetForLineNumber(kn)*Ne|0,oo=(C.getVerticalOffsetForLineNumber(Xn)+m)*Ne|0,vo=oo-jn;if(vo<qe){var uo=(jn+oo)/2|0;uo<ut?uo=ut:uo+ut>i&&(uo=i-ut),jn=uo-ut,oo=uo+ut}jn>Cn+1||In!==yn?(mn!==0&&St.fillRect(et[yn],pn,Wt[yn],Cn-pn),yn=In,pn=jn,Cn=oo):oo>Cn&&(Cn=oo)}St.fillRect(et[yn],pn,Wt[yn],Cn-pn)}if(!this._settings.hideCursor&&this._settings.cursorColor){var Io=2*this._settings.pixelRatio|0,ho=Io/2|0,Wo=this._settings.x[7],ko=this._settings.w[7];St.fillStyle=this._settings.cursorColor;for(var pn=-100,Cn=-100,mn=0,_n=this._cursorPositions.length;mn<_n;mn++){var Ui=this._cursorPositions[mn],uo=C.getVerticalOffsetForLineNumber(Ui.lineNumber)*Ne|0;uo<ho?uo=ho:uo+ho>i&&(uo=i-ho);var jn=uo-ho,oo=jn+Io;jn>Cn+1?(mn!==0&&St.fillRect(Wo,pn,ko,Cn-pn),pn=jn,Cn=oo):oo>Cn&&(Cn=oo)}St.fillRect(Wo,pn,ko,Cn-pn)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(St.beginPath(),St.lineWidth=1,St.strokeStyle=this._settings.borderColor,St.moveTo(0,0),St.lineTo(0,i),St.stroke(),St.moveTo(0,0),St.lineTo(t,0),St.stroke())},n}(B),os=e("MvK1"),is=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),rs=function(V){is(n,V);function n(t,i){var m=V.call(this)||this;m._context=t;var C=m._context.configuration.options;return m._domNode=Object(y.b)(document.createElement("canvas")),m._domNode.setClassName(i),m._domNode.setPosition("absolute"),m._domNode.setLayerHinting(!0),m._domNode.setContain("strict"),m._zoneManager=new os.b(function(K){return m._context.viewLayout.getVerticalOffsetForLineNumber(K)}),m._zoneManager.setDOMWidth(0),m._zoneManager.setDOMHeight(0),m._zoneManager.setOuterHeight(m._context.viewLayout.getScrollHeight()),m._zoneManager.setLineHeight(C.get(49)),m._zoneManager.setPixelRatio(C.get(105)),m._context.addEventHandler(m),m}return n.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return t.hasChanged(49)&&(this._zoneManager.setLineHeight(i.get(49)),this._render()),t.hasChanged(105)&&(this._zoneManager.setPixelRatio(i.get(105)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},n.prototype.onFlushed=function(t){return this._render(),!0},n.prototype.onScrollChanged=function(t){return t.scrollHeightChanged&&(this._zoneManager.setOuterHeight(t.scrollHeight),this._render()),!0},n.prototype.onZonesChanged=function(t){return this._render(),!0},n.prototype.getDomNode=function(){return this._domNode.domNode},n.prototype.setLayout=function(t){this._domNode.setTop(t.top),this._domNode.setRight(t.right);var i=!1;i=this._zoneManager.setDOMWidth(t.width)||i,i=this._zoneManager.setDOMHeight(t.height)||i,i&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},n.prototype.setZones=function(t){this._zoneManager.setZones(t),this._render()},n.prototype._render=function(){if(this._zoneManager.getOuterHeight()===0)return!1;var t=this._zoneManager.getCanvasWidth(),i=this._zoneManager.getCanvasHeight(),m=this._zoneManager.resolveColorZones(),C=this._zoneManager.getId2Color(),K=this._domNode.domNode.getContext("2d");return K.clearRect(0,0,t,i),m.length>0&&this._renderOneLane(K,m,C,t),!0},n.prototype._renderOneLane=function(t,i,m,C){for(var K=0,Ne=0,_e=0,qe=0,ut=i;qe<ut.length;qe++){var St=ut[qe],et=St.colorId,Wt=St.from,Ft=St.to;et!==K?(t.fillRect(0,Ne,C,_e-Ne),K=et,t.fillStyle=m[K],Ne=Wt,_e=Ft):_e>=Wt?_e=Math.max(_e,Ft):(t.fillRect(0,Ne,C,_e-Ne),Ne=Wt,_e=Ft)}t.fillRect(0,Ne,C,_e-Ne)},n}(ie),ia=e("7zd4"),ss=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),as=function(V){ss(n,V);function n(t){var i=V.call(this,t)||this;i.domNode=Object(y.b)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[];var m=i._context.configuration.options;return i._rulers=m.get(77),i._typicalHalfwidthCharacterWidth=m.get(34).typicalHalfwidthCharacterWidth,i}return n.prototype.dispose=function(){V.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._rulers=i.get(77),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},n.prototype.prepareRender=function(t){},n.prototype._ensureRulersCount=function(){var t=this._renderedRulers.length,i=this._rulers.length;if(t===i)return;if(t<i){for(var m=this._context.model.getOptions().tabSize,C=m,K=i-t;K>0;){var Ne=Object(y.b)(document.createElement("div"));Ne.setClassName("view-ruler"),Ne.setWidth(C),this.domNode.appendChild(Ne),this._renderedRulers.push(Ne),K--}return}for(var _e=t-i;_e>0;){var Ne=this._renderedRulers.pop();this.domNode.removeChild(Ne),_e--}},n.prototype.render=function(t){this._ensureRulersCount();for(var i=0,m=this._rulers.length;i<m;i++){var C=this._renderedRulers[i];C.setHeight(Math.min(t.scrollHeight,1e6)),C.setLeft(this._rulers[i]*this._typicalHalfwidthCharacterWidth)}},n}(B);Object(X.e)(function(V,n){var t=V.getColor(lt.m);t&&n.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+t+" inset; }")});var ra=e("2MPD"),ls=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ds=function(V){ls(n,V);function n(t){var i=V.call(this,t)||this;i._scrollTop=0,i._width=0,i._updateWidth(),i._shouldShow=!1;var m=i._context.configuration.options,C=m.get(78);return i._useShadows=C.useShadows,i._domNode=Object(y.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i}return n.prototype.dispose=function(){V.prototype.dispose.call(this)},n.prototype._updateShouldShow=function(){var t=this._useShadows&&this._scrollTop>0;return this._shouldShow!==t?(this._shouldShow=t,!0):!1},n.prototype.getDomNode=function(){return this._domNode},n.prototype._updateWidth=function(){var t=this._context.configuration.options,i=t.get(107);i.renderMinimap===0||i.minimapWidth>0&&i.minimapLeft===0?this._width=i.width:this._width=i.width-i.minimapWidth-i.verticalScrollbarWidth},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(78);return this._useShadows=m.useShadows,this._updateWidth(),this._updateShouldShow(),!0},n.prototype.onScrollChanged=function(t){return this._scrollTop=t.scrollTop,this._updateShouldShow()},n.prototype.prepareRender=function(t){},n.prototype.render=function(t){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},n}(B);Object(X.e)(function(V,n){var t=V.getColor(To.Vb);t&&n.addRule(".monaco-editor .scroll-decoration { box-shadow: "+t+" 0 6px 6px -6px inset; }")});var us=e("eC1c"),_r=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Dr=function(){function V(n){this.left=n.left,this.width=n.width,this.startStyle=null,this.endStyle=null}return V}(),Or=function(){function V(n,t){this.lineNumber=n,this.ranges=t}return V}();function cs(V){return new Dr(V)}function hs(V){return new Or(V.lineNumber,V.ranges.map(cs))}var fs=v.f,ps=function(V){_r(n,V);function n(t){var i=V.call(this)||this;i._previousFrameVisibleRangesWithStyle=[],i._context=t;var m=i._context.configuration.options;return i._lineHeight=m.get(49),i._roundedSelection=m.get(76),i._typicalHalfwidthCharacterWidth=m.get(34).typicalHalfwidthCharacterWidth,i._selections=[],i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._roundedSelection=i.get(76),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),!0},n.prototype.onDecorationsChanged=function(t){return!0},n.prototype.onFlushed=function(t){return!0},n.prototype.onLinesChanged=function(t){return!0},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype.onScrollChanged=function(t){return t.scrollTopChanged},n.prototype.onZonesChanged=function(t){return!0},n.prototype._visibleRangesHaveGaps=function(t){for(var i=0,m=t.length;i<m;i++){var C=t[i];if(C.ranges.length>1)return!0}return!1},n.prototype._enrichVisibleRangesWithStyle=function(t,i,m){var C=this._typicalHalfwidthCharacterWidth/4,K=null,Ne=null;if(m&&m.length>0&&i.length>0){var _e=i[0].lineNumber;if(_e===t.startLineNumber)for(var qe=0;!K&&qe<m.length;qe++)m[qe].lineNumber===_e&&(K=m[qe].ranges[0]);var ut=i[i.length-1].lineNumber;if(ut===t.endLineNumber)for(var qe=m.length-1;!Ne&&qe>=0;qe--)m[qe].lineNumber===ut&&(Ne=m[qe].ranges[0]);K&&!K.startStyle&&(K=null),Ne&&!Ne.startStyle&&(Ne=null)}for(var qe=0,St=i.length;qe<St;qe++){var et=i[qe].ranges[0],Wt=et.left,Ft=et.left+et.width,Vt={top:0,bottom:0},qt={top:0,bottom:0};if(qe>0){var $t=i[qe-1].ranges[0].left,rn=i[qe-1].ranges[0].left+i[qe-1].ranges[0].width;ni(Wt-$t)<C?Vt.top=2:Wt>$t&&(Vt.top=1),ni(Ft-rn)<C?qt.top=2:$t<Ft&&Ft<rn&&(qt.top=1)}else K&&(Vt.top=K.startStyle.top,qt.top=K.endStyle.top);if(qe+1<St){var yn=i[qe+1].ranges[0].left,pn=i[qe+1].ranges[0].left+i[qe+1].ranges[0].width;ni(Wt-yn)<C?Vt.bottom=2:yn<Wt&&Wt<pn&&(Vt.bottom=1),ni(Ft-pn)<C?qt.bottom=2:Ft<pn&&(qt.bottom=1)}else Ne&&(Vt.bottom=Ne.startStyle.bottom,qt.bottom=Ne.endStyle.bottom);et.startStyle=Vt,et.endStyle=qt}},n.prototype._getVisibleRangesWithStyle=function(t,i,m){var C=i.linesVisibleRangesForRange(t,!0)||[],K=C.map(hs),Ne=this._visibleRangesHaveGaps(K);return!fs&&!Ne&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(i.visibleRange,K,m),K},n.prototype._createSelectionPiece=function(t,i,m,C,K){return'<div class="cslr '+m+'" style="top:'+t.toString()+"px;left:"+C.toString()+"px;width:"+K.toString()+"px;height:"+i+'px;"></div>'},n.prototype._actualRenderOneSelection=function(t,i,m,C){if(C.length===0)return;for(var K=!!C[0].ranges[0].startStyle,Ne=this._lineHeight.toString(),_e=(this._lineHeight-1).toString(),qe=C[0].lineNumber,ut=C[C.length-1].lineNumber,St=0,et=C.length;St<et;St++){for(var Wt=C[St],Ft=Wt.lineNumber,Vt=Ft-i,qt=m&&(Ft===ut||Ft===qe)?_e:Ne,$t=m&&Ft===qe?1:0,rn="",yn="",pn=0,Cn=Wt.ranges.length;pn<Cn;pn++){var mn=Wt.ranges[pn];if(K){var _n=mn.startStyle,In=mn.endStyle;if(_n.top===1||_n.bottom===1){rn+=this._createSelectionPiece($t,qt,n.SELECTION_CLASS_NAME,mn.left-n.ROUNDED_PIECE_WIDTH,n.ROUNDED_PIECE_WIDTH);var kn=n.EDITOR_BACKGROUND_CLASS_NAME;_n.top===1&&(kn+=" "+n.SELECTION_TOP_RIGHT),_n.bottom===1&&(kn+=" "+n.SELECTION_BOTTOM_RIGHT),rn+=this._createSelectionPiece($t,qt,kn,mn.left-n.ROUNDED_PIECE_WIDTH,n.ROUNDED_PIECE_WIDTH)}if(In.top===1||In.bottom===1){rn+=this._createSelectionPiece($t,qt,n.SELECTION_CLASS_NAME,mn.left+mn.width,n.ROUNDED_PIECE_WIDTH);var Xn=n.EDITOR_BACKGROUND_CLASS_NAME;In.top===1&&(Xn+=" "+n.SELECTION_TOP_LEFT),In.bottom===1&&(Xn+=" "+n.SELECTION_BOTTOM_LEFT),rn+=this._createSelectionPiece($t,qt,Xn,mn.left+mn.width,n.ROUNDED_PIECE_WIDTH)}}var jn=n.SELECTION_CLASS_NAME;if(K){var _n=mn.startStyle,In=mn.endStyle;_n.top===0&&(jn+=" "+n.SELECTION_TOP_LEFT),_n.bottom===0&&(jn+=" "+n.SELECTION_BOTTOM_LEFT),In.top===0&&(jn+=" "+n.SELECTION_TOP_RIGHT),In.bottom===0&&(jn+=" "+n.SELECTION_BOTTOM_RIGHT)}yn+=this._createSelectionPiece($t,qt,jn,mn.left,mn.width)}t[Vt][0]+=rn,t[Vt][1]+=yn}},n.prototype.prepareRender=function(t){for(var i=[],m=t.visibleRange.startLineNumber,C=t.visibleRange.endLineNumber,K=m;K<=C;K++){var Ne=K-m;i[Ne]=["",""]}for(var _e=[],qe=0,ut=this._selections.length;qe<ut;qe++){var St=this._selections[qe];if(St.isEmpty()){_e[qe]=null;continue}var et=this._getVisibleRangesWithStyle(St,t,this._previousFrameVisibleRangesWithStyle[qe]);_e[qe]=et,this._actualRenderOneSelection(i,m,this._selections.length>1,et)}this._previousFrameVisibleRangesWithStyle=_e,this._renderResult=i.map(function(Wt){var Ft=Wt[0],Vt=Wt[1];return Ft+Vt})},n.prototype.render=function(t,i){if(!this._renderResult)return"";var m=i-t;return m<0||m>=this._renderResult.length?"":this._renderResult[m]},n.SELECTION_CLASS_NAME="selected-text",n.SELECTION_TOP_LEFT="top-left-radius",n.SELECTION_BOTTOM_LEFT="bottom-left-radius",n.SELECTION_TOP_RIGHT="top-right-radius",n.SELECTION_BOTTOM_RIGHT="bottom-right-radius",n.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",n.ROUNDED_PIECE_WIDTH=10,n}(Fe);Object(X.e)(function(V,n){var t=V.getColor(To.K);t&&n.addRule(".monaco-editor .focused .selected-text { background-color: "+t+"; }");var i=V.getColor(To.F);i&&n.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var m=V.getColor(To.L);m&&n.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+m+"; }")});function ni(V){return V<0?-V:V}var sa=e("2Tsy"),Mr=function(){function V(n,t,i,m,C,K){this.top=n,this.left=t,this.width=i,this.height=m,this.textContent=C,this.textContentClassName=K}return V}(),Tr=function(){function V(n){this._context=n;var t=this._context.configuration.options,i=t.get(34);this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(y.b)(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),U.a.applyFontInfo(this._domNode,i),this._domNode.setDisplay("none"),this._position=new ne.a(1,1),this._lastRenderedContent="",this._renderData=null}return V.prototype.getDomNode=function(){return this._domNode},V.prototype.getPosition=function(){return this._position},V.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},V.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},V.prototype.onConfigurationChanged=function(n){var t=this._context.configuration.options,i=t.get(34);return this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),U.a.applyFontInfo(this._domNode,i),!0},V.prototype.onCursorPositionChanged=function(n){return this._position=n,!0},V.prototype._prepareRender=function(n){var t="";if(this._cursorStyle===he.g.Line||this._cursorStyle===he.g.LineThin){var i=n.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;var m;if(this._cursorStyle===he.g.Line){if(m=J.u(this._lineCursorWidth>0?this._lineCursorWidth:2),m>2){var C=this._context.model.getLineContent(this._position.lineNumber),K=fe.E(C,this._position.column-1);t=C.substr(this._position.column-1,K)}}else m=J.u(1);var Ne=i.left;m>=2&&Ne>=1&&(Ne-=1);var _e=n.getVerticalOffsetForLineNumber(this._position.lineNumber)-n.bigNumbersDelta;return new Mr(_e,Ne,m,this._lineHeight,t,"")}var qe=this._context.model.getLineContent(this._position.lineNumber),ut=fe.E(qe,this._position.column-1),St=n.linesVisibleRangesForRange(new Ce.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+ut),!1);if(!St||St.length===0)return null;var et=St[0];if(et.outsideRenderedLine||et.ranges.length===0)return null;var Wt=et.ranges[0],Ft=Wt.width<1?this._typicalHalfwidthCharacterWidth:Wt.width,Vt="";if(this._cursorStyle===he.g.Block){var qt=this._context.model.getViewLineData(this._position.lineNumber);t=qe.substr(this._position.column-1,ut);var $t=qt.tokens.findTokenIndexAtOffset(this._position.column-1);Vt=qt.tokens.getClassName($t)}var rn=n.getVerticalOffsetForLineNumber(this._position.lineNumber)-n.bigNumbersDelta,yn=this._lineHeight;return(this._cursorStyle===he.g.Underline||this._cursorStyle===he.g.UnderlineThin)&&(rn+=this._lineHeight-2,yn=2),new Mr(rn,Wt.left,Ft,yn,t,Vt)},V.prototype.prepareRender=function(n){this._renderData=this._prepareRender(n)},V.prototype.render=function(n){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},V}(),gs=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ms=function(V){gs(n,V);function n(t){var i=V.call(this,t)||this,m=i._context.configuration.options;return i._readOnly=m.get(68),i._cursorBlinking=m.get(16),i._cursorStyle=m.get(18),i._cursorSmoothCaretAnimation=m.get(17),i._selectionIsEmpty=!0,i._isVisible=!1,i._primaryCursor=new Tr(i._context),i._secondaryCursors=[],i._renderData=[],i._domNode=Object(y.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._updateDomClassName(),i._domNode.appendChild(i._primaryCursor.getDomNode()),i._startCursorBlinkAnimation=new g.e,i._cursorFlatBlinkInterval=new g.c,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return n.prototype.dispose=function(){V.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;this._readOnly=i.get(68),this._cursorBlinking=i.get(16),this._cursorStyle=i.get(18),this._cursorSmoothCaretAnimation=i.get(17),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(t);for(var m=0,C=this._secondaryCursors.length;m<C;m++)this._secondaryCursors[m].onConfigurationChanged(t);return!0},n.prototype._onCursorPositionChanged=function(t,i){if(this._primaryCursor.onCursorPositionChanged(t),this._updateBlinking(),this._secondaryCursors.length<i.length)for(var m=i.length-this._secondaryCursors.length,C=0;C<m;C++){var K=new Tr(this._context);this._domNode.domNode.insertBefore(K.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(K)}else if(this._secondaryCursors.length>i.length)for(var Ne=this._secondaryCursors.length-i.length,C=0;C<Ne;C++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1);for(var C=0;C<i.length;C++)this._secondaryCursors[C].onCursorPositionChanged(i[C])},n.prototype.onCursorStateChanged=function(t){for(var i=[],m=0,C=t.selections.length;m<C;m++)i[m]=t.selections[m].getPosition();this._onCursorPositionChanged(i[0],i.slice(1));var K=t.selections[0].isEmpty();return this._selectionIsEmpty!==K&&(this._selectionIsEmpty=K,this._updateDomClassName()),!0},n.prototype.onDecorationsChanged=function(t){return!0},n.prototype.onFlushed=function(t){return!0},n.prototype.onFocusChanged=function(t){return this._editorHasFocus=t.isFocused,this._updateBlinking(),!1},n.prototype.onLinesChanged=function(t){return!0},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype.onScrollChanged=function(t){return!0},n.prototype.onTokensChanged=function(t){var i=function(_e){for(var qe=0,ut=t.ranges.length;qe<ut;qe++)if(t.ranges[qe].fromLineNumber<=_e.lineNumber&&_e.lineNumber<=t.ranges[qe].toLineNumber)return!0;return!1};if(i(this._primaryCursor.getPosition()))return!0;for(var m=0,C=this._secondaryCursors;m<C.length;m++){var K=C[m];if(i(K.getPosition()))return!0}return!1},n.prototype.onZonesChanged=function(t){return!0},n.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},n.prototype._updateBlinking=function(){var t=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var i=this._getCursorBlinking(),m=i===0,C=i===5;m?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!m&&!C&&(i===1?this._cursorFlatBlinkInterval.cancelAndSet(function(){t._isVisible?t._hide():t._show()},n.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(function(){t._blinkingEnabled=!0,t._updateDomClassName()},n.BLINK_INTERVAL))},n.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},n.prototype._getClassName=function(){var t="cursors-layer";this._selectionIsEmpty||(t+=" has-selection");switch(this._cursorStyle){case he.g.Line:t+=" cursor-line-style";break;case he.g.Block:t+=" cursor-block-style";break;case he.g.Underline:t+=" cursor-underline-style";break;case he.g.LineThin:t+=" cursor-line-thin-style";break;case he.g.BlockOutline:t+=" cursor-block-outline-style";break;case he.g.UnderlineThin:t+=" cursor-underline-thin-style";break;default:t+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:t+=" cursor-blink";break;case 2:t+=" cursor-smooth";break;case 3:t+=" cursor-phase";break;case 4:t+=" cursor-expand";break;case 5:t+=" cursor-solid";break;default:t+=" cursor-solid"}else t+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(t+=" cursor-smooth-caret-animation"),t},n.prototype._show=function(){this._primaryCursor.show();for(var t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].show();this._isVisible=!0},n.prototype._hide=function(){this._primaryCursor.hide();for(var t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].hide();this._isVisible=!1},n.prototype.prepareRender=function(t){this._primaryCursor.prepareRender(t);for(var i=0,m=this._secondaryCursors.length;i<m;i++)this._secondaryCursors[i].prepareRender(t)},n.prototype.render=function(t){var i=[],m=0,C=this._primaryCursor.render(t);C&&(i[m++]=C);for(var K=0,Ne=this._secondaryCursors.length;K<Ne;K++){var _e=this._secondaryCursors[K].render(t);_e&&(i[m++]=_e)}this._renderData=i},n.prototype.getLastRenderData=function(){return this._renderData},n.BLINK_INTERVAL=500,n}(B);Object(X.e)(function(V,n){var t=V.getColor(lt.g);if(t){var i=V.getColor(lt.f);i||(i=t.opposite()),n.addRule(".monaco-editor .cursor { background-color: "+t+"; border-color: "+t+"; color: "+i+"; }"),V.type==="hc"&&n.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }")}});var Ar=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),xr=function(){throw new Error("Invalid change accessor")},bi=function(V){Ar(n,V);function n(t){var i=V.call(this,t)||this,m=i._context.configuration.options,C=m.get(107);return i._lineHeight=m.get(49),i._contentWidth=C.contentWidth,i._contentLeft=C.contentLeft,i.domNode=Object(y.b)(document.createElement("div")),i.domNode.setClassName("view-zones"),i.domNode.setPosition("absolute"),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.marginDomNode=Object(y.b)(document.createElement("div")),i.marginDomNode.setClassName("margin-view-zones"),i.marginDomNode.setPosition("absolute"),i.marginDomNode.setAttribute("role","presentation"),i.marginDomNode.setAttribute("aria-hidden","true"),i._zones={},i}return n.prototype.dispose=function(){V.prototype.dispose.call(this),this._zones={}},n.prototype._recomputeWhitespacesProps=function(){for(var t=this,i=this._context.viewLayout.getWhitespaces(),m=new Map,C=0,K=i;C<K.length;C++){var Ne=K[C];m.set(Ne.id,Ne)}return this._context.viewLayout.changeWhitespace(function(_e){for(var qe=!1,ut=Object.keys(t._zones),St=0,et=ut.length;St<et;St++){var Wt=ut[St],Ft=t._zones[Wt],Vt=t._computeWhitespaceProps(Ft.delegate),qt=m.get(Wt);qt&&(qt.afterLineNumber!==Vt.afterViewLineNumber||qt.height!==Vt.heightInPx)&&(_e.changeOneWhitespace(Wt,Vt.afterViewLineNumber,Vt.heightInPx),t._safeCallOnComputedHeight(Ft.delegate,Vt.heightInPx),qe=!0)}return qe})},n.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._lineHeight=i.get(49),this._contentWidth=m.contentWidth,this._contentLeft=m.contentLeft,t.hasChanged(49)&&this._recomputeWhitespacesProps(),!0},n.prototype.onLineMappingChanged=function(t){var i=this._recomputeWhitespacesProps();return i&&this._context.viewLayout.onHeightMaybeChanged(),i},n.prototype.onLinesDeleted=function(t){return!0},n.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},n.prototype.onZonesChanged=function(t){return!0},n.prototype.onLinesInserted=function(t){return!0},n.prototype._getZoneOrdinal=function(t){return typeof t.afterColumn!="undefined"?t.afterColumn:1e4},n.prototype._computeWhitespaceProps=function(t){if(t.afterLineNumber===0)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(t),minWidthInPx:this._minWidthInPixels(t)};var i;if(typeof t.afterColumn!="undefined")i=this._context.model.validateModelPosition({lineNumber:t.afterLineNumber,column:t.afterColumn});else{var m=this._context.model.validateModelPosition({lineNumber:t.afterLineNumber,column:1}).lineNumber;i=new ne.a(m,this._context.model.getModelLineMaxColumn(m))}var C;i.column===this._context.model.getModelLineMaxColumn(i.lineNumber)?C=this._context.model.validateModelPosition({lineNumber:i.lineNumber+1,column:1}):C=this._context.model.validateModelPosition({lineNumber:i.lineNumber,column:i.column+1});var K=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(i),Ne=this._context.model.coordinatesConverter.modelPositionIsVisible(C);return{afterViewLineNumber:K.lineNumber,heightInPx:Ne?this._heightInPixels(t):0,minWidthInPx:this._minWidthInPixels(t)}},n.prototype.changeViewZones=function(t){var i=this;return this._context.viewLayout.changeWhitespace(function(m){var C=!1,K={addZone:function(_e){return C=!0,i._addZone(m,_e)},removeZone:function(_e){if(!_e)return;C=i._removeZone(m,_e)||C},layoutZone:function(_e){if(!_e)return;C=i._layoutZone(m,_e)||C}};return vs(t,K),K.addZone=xr,K.removeZone=xr,K.layoutZone=xr,C})},n.prototype._addZone=function(t,i){var m=this._computeWhitespaceProps(i),C=t.insertWhitespace(m.afterViewLineNumber,this._getZoneOrdinal(i),m.heightInPx,m.minWidthInPx),K={whitespaceId:C,delegate:i,isVisible:!1,domNode:Object(y.b)(i.domNode),marginDomNode:i.marginDomNode?Object(y.b)(i.marginDomNode):null};return this._safeCallOnComputedHeight(K.delegate,m.heightInPx),K.domNode.setPosition("absolute"),K.domNode.domNode.style.width="100%",K.domNode.setDisplay("none"),K.domNode.setAttribute("monaco-view-zone",K.whitespaceId),this.domNode.appendChild(K.domNode),K.marginDomNode&&(K.marginDomNode.setPosition("absolute"),K.marginDomNode.domNode.style.width="100%",K.marginDomNode.setDisplay("none"),K.marginDomNode.setAttribute("monaco-view-zone",K.whitespaceId),this.marginDomNode.appendChild(K.marginDomNode)),this._zones[K.whitespaceId]=K,this.setShouldRender(),K.whitespaceId},n.prototype._removeZone=function(t,i){if(this._zones.hasOwnProperty(i)){var m=this._zones[i];return delete this._zones[i],t.removeWhitespace(m.whitespaceId),m.domNode.removeAttribute("monaco-visible-view-zone"),m.domNode.removeAttribute("monaco-view-zone"),m.domNode.domNode.parentNode.removeChild(m.domNode.domNode),m.marginDomNode&&(m.marginDomNode.removeAttribute("monaco-visible-view-zone"),m.marginDomNode.removeAttribute("monaco-view-zone"),m.marginDomNode.domNode.parentNode.removeChild(m.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},n.prototype._layoutZone=function(t,i){if(this._zones.hasOwnProperty(i)){var m=this._zones[i],C=this._computeWhitespaceProps(m.delegate);return t.changeOneWhitespace(m.whitespaceId,C.afterViewLineNumber,C.heightInPx),this._safeCallOnComputedHeight(m.delegate,C.heightInPx),this.setShouldRender(),!0}return!1},n.prototype.shouldSuppressMouseDownOnViewZone=function(t){if(this._zones.hasOwnProperty(t)){var i=this._zones[t];return Boolean(i.delegate.suppressMouseDown)}return!1},n.prototype._heightInPixels=function(t){return typeof t.heightInPx=="number"?t.heightInPx:typeof t.heightInLines=="number"?this._lineHeight*t.heightInLines:this._lineHeight},n.prototype._minWidthInPixels=function(t){return typeof t.minWidthInPx=="number"?t.minWidthInPx:0},n.prototype._safeCallOnComputedHeight=function(t,i){if(typeof t.onComputedHeight=="function")try{t.onComputedHeight(i)}catch(m){Object(N.e)(m)}},n.prototype._safeCallOnDomNodeTop=function(t,i){if(typeof t.onDomNodeTop=="function")try{t.onDomNodeTop(i)}catch(m){Object(N.e)(m)}},n.prototype.prepareRender=function(t){},n.prototype.render=function(t){for(var i=t.viewportData.whitespaceViewportData,m={},C=!1,K=0,Ne=i.length;K<Ne;K++)m[i[K].id]=i[K],C=!0;for(var _e=Object.keys(this._zones),K=0,Ne=_e.length;K<Ne;K++){var qe=_e[K],ut=this._zones[qe],St=0,et=0,Wt="none";m.hasOwnProperty(qe)?(St=m[qe].verticalOffset-t.bigNumbersDelta,et=m[qe].height,Wt="block",ut.isVisible||(ut.domNode.setAttribute("monaco-visible-view-zone","true"),ut.isVisible=!0),this._safeCallOnDomNodeTop(ut.delegate,t.getScrolledTopFromAbsoluteTop(m[qe].verticalOffset))):(ut.isVisible&&(ut.domNode.removeAttribute("monaco-visible-view-zone"),ut.isVisible=!1),this._safeCallOnDomNodeTop(ut.delegate,t.getScrolledTopFromAbsoluteTop(-1e6))),ut.domNode.setTop(St),ut.domNode.setHeight(et),ut.domNode.setDisplay(Wt),ut.marginDomNode&&(ut.marginDomNode.setTop(St),ut.marginDomNode.setHeight(et),ut.marginDomNode.setDisplay(Wt))}C&&(this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},n}(B);function vs(V,n){try{return V(n)}catch(t){Object(N.e)(t)}}var Ti=function(){function V(n,t,i,m){this.configuration=n,this.theme=t,this.model=i,this.viewLayout=i.viewLayout,this.privateViewEventBus=m}return V.prototype.addEventHandler=function(n){this.privateViewEventBus.addEventHandler(n)},V.prototype.removeEventHandler=function(n){this.privateViewEventBus.removeEventHandler(n)},V}(),ys=function(){function V(n){this._eventHandlerGateKeeper=n,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return V.prototype.addEventHandler=function(n){for(var t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===n&&console.warn("Detected duplicate listener in ViewEventDispatcher",n);this._eventHandlers.push(n)},V.prototype.removeEventHandler=function(n){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===n){this._eventHandlers.splice(t,1);break}},V.prototype.emit=function(n){this._eventQueue?this._eventQueue.push(n):this._eventQueue=[n],this._isConsumingQueue||this.consumeQueue()},V.prototype.emitMany=function(n){this._eventQueue?this._eventQueue=this._eventQueue.concat(n):this._eventQueue=n,this._isConsumingQueue||this.consumeQueue()},V.prototype.consumeQueue=function(){var n=this;this._eventHandlerGateKeeper(function(){try{n._isConsumingQueue=!0,n._doConsumeQueue()}finally{n._isConsumingQueue=!1}})},V.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var n=this._eventQueue;this._eventQueue=null;for(var t=this._eventHandlers.slice(0),i=0,m=t.length;i<m;i++)t[i].handleEvents(n)}},V}(),aa=function(){function V(n,t,i,m){this.selections=n,this.startLineNumber=t.startLineNumber|0,this.endLineNumber=t.endLineNumber|0,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=t.bigNumbersDelta|0,this.whitespaceViewportData=i,this._model=m,this.visibleRange=new Ce.a(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}return V.prototype.getViewLineRenderingData=function(n){return this._model.getViewLineRenderingData(this.visibleRange,n)},V.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},V}(),Cs=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),bs=function(V){Cs(n,V);function n(t,i,m,C,K,Ne){var _e=V.call(this)||this;_e._cursor=K,_e._renderAnimationFrame=null,_e.outgoingEvents=Ne;var qe=new Ie(i,C,_e.outgoingEvents,t);_e.eventDispatcher=new ys(function(rn){return _e._renderOnce(rn)}),_e.eventDispatcher.addEventHandler(_e),_e._context=new Ti(i,m.getTheme(),C,_e.eventDispatcher),_e._register(m.onThemeChange(function(rn){_e._context.theme=rn,_e.eventDispatcher.emit(new lo),_e.render(!0,!1)})),_e.viewParts=[],_e._textAreaHandler=new D(_e._context,qe,_e.createTextAreaHandlerHelper()),_e.viewParts.push(_e._textAreaHandler),_e.linesContent=Object(y.b)(document.createElement("div")),_e.linesContent.setClassName("lines-content monaco-editor-background"),_e.linesContent.setPosition("absolute"),_e.domNode=Object(y.b)(document.createElement("div")),_e.domNode.setClassName(_e.getEditorClassName()),_e.overflowGuardContainer=Object(y.b)(document.createElement("div")),le.write(_e.overflowGuardContainer,3),_e.overflowGuardContainer.setClassName("overflow-guard"),_e._scrollbar=new Ln(_e._context,_e.linesContent,_e.domNode,_e.overflowGuardContainer),_e.viewParts.push(_e._scrollbar),_e.viewLines=new Ci(_e._context,_e.linesContent),_e.viewZones=new bi(_e._context),_e.viewParts.push(_e.viewZones);var ut=new ns(_e._context);_e.viewParts.push(ut);var St=new ds(_e._context);_e.viewParts.push(St);var et=new Ue(_e._context);_e.viewParts.push(et),et.addDynamicOverlay(new Kt(_e._context)),et.addDynamicOverlay(new ps(_e._context)),et.addDynamicOverlay(new no(_e._context)),et.addDynamicOverlay(new dn(_e._context));var Wt=new Me(_e._context);_e.viewParts.push(Wt),Wt.addDynamicOverlay(new Xt(_e._context)),Wt.addDynamicOverlay(new to(_e._context)),Wt.addDynamicOverlay(new Ki(_e._context)),Wt.addDynamicOverlay(new Yr(_e._context)),Wt.addDynamicOverlay(new Jt(_e._context));var Ft=new gn(_e._context);Ft.getDomNode().appendChild(_e.viewZones.marginDomNode),Ft.getDomNode().appendChild(Wt.getDomNode()),_e.viewParts.push(Ft),_e.contentWidgets=new ge(_e._context,_e.domNode),_e.viewParts.push(_e.contentWidgets),_e.viewCursors=new ms(_e._context),_e.viewParts.push(_e.viewCursors),_e.overlayWidgets=new Lr(_e._context),_e.viewParts.push(_e.overlayWidgets);var Vt=new as(_e._context);_e.viewParts.push(Vt);var qt=new es(_e._context);if(_e.viewParts.push(qt),ut){var $t=_e._scrollbar.getOverviewRulerLayoutInfo();$t.parent.insertBefore(ut.getDomNode(),$t.insertBefore)}return _e.linesContent.appendChild(et.getDomNode()),_e.linesContent.appendChild(Vt.domNode),_e.linesContent.appendChild(_e.viewZones.domNode),_e.linesContent.appendChild(_e.viewLines.getDomNode()),_e.linesContent.appendChild(_e.contentWidgets.domNode),_e.linesContent.appendChild(_e.viewCursors.getDomNode()),_e.overflowGuardContainer.appendChild(Ft.getDomNode()),_e.overflowGuardContainer.appendChild(_e._scrollbar.getDomNode()),_e.overflowGuardContainer.appendChild(St.getDomNode()),_e.overflowGuardContainer.appendChild(_e._textAreaHandler.textArea),_e.overflowGuardContainer.appendChild(_e._textAreaHandler.textAreaCover),_e.overflowGuardContainer.appendChild(_e.overlayWidgets.getDomNode()),_e.overflowGuardContainer.appendChild(qt.getDomNode()),_e.domNode.appendChild(_e.overflowGuardContainer),_e.domNode.appendChild(_e.contentWidgets.overflowingContentWidgetsDomNode),_e._applyLayout(),_e.pointerHandler=_e._register(new ze(_e._context,qe,_e.createPointerHandlerHelper())),_e._register(C.addEventListener(function(rn){_e.eventDispatcher.emitMany(rn)})),_e._register(_e._cursor.addEventListener(function(rn){_e.eventDispatcher.emitMany(rn)})),_e}return n.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},n.prototype.createPointerHandlerHelper=function(){var t=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){t.focus()},getLastRenderData:function(){var m=t.viewCursors.getLastRenderData()||[],C=t._textAreaHandler.getLastRenderData();return new Ve(m,C)},shouldSuppressMouseDownOnViewZone:function(m){return t.viewZones.shouldSuppressMouseDownOnViewZone(m)},shouldSuppressMouseDownOnWidget:function(m){return t.contentWidgets.shouldSuppressMouseDownOnWidget(m)},getPositionFromDOMInfo:function(m,C){return t._flushAccumulatedAndRenderNow(),t.viewLines.getPositionFromDOMInfo(m,C)},visibleRangeForPosition:function(m,C){return t._flushAccumulatedAndRenderNow(),t.viewLines.visibleRangeForPosition(new ne.a(m,C))},getLineWidth:function(m){return t._flushAccumulatedAndRenderNow(),t.viewLines.getLineWidth(m)}}},n.prototype.createTextAreaHandlerHelper=function(){var t=this;return{visibleRangeForPositionRelativeToEditor:function(m,C){return t._flushAccumulatedAndRenderNow(),t.viewLines.visibleRangeForPosition(new ne.a(m,C))}}},n.prototype._applyLayout=function(){var t=this._context.configuration.options,i=t.get(107);this.domNode.setWidth(i.width),this.domNode.setHeight(i.height),this.overflowGuardContainer.setWidth(i.width),this.overflowGuardContainer.setHeight(i.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},n.prototype.getEditorClassName=function(){var t=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(104)+" "+Object(X.d)(this._context.theme.type)+t},n.prototype.onConfigurationChanged=function(t){return this.domNode.setClassName(this.getEditorClassName()),this._applyLayout(),!1},n.prototype.onContentSizeChanged=function(t){return this.outgoingEvents.emitContentSizeChange(t),!1},n.prototype.onFocusChanged=function(t){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(t.isFocused),t.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},n.prototype.onScrollChanged=function(t){return this.outgoingEvents.emitScrollChanged(t),!1},n.prototype.onThemeChanged=function(t){return this.domNode.setClassName(this.getEditorClassName()),!1},n.prototype.dispose=function(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var t=0,i=this.viewParts.length;t<i;t++)this.viewParts[t].dispose();this.viewParts=[],V.prototype.dispose.call(this)},n.prototype._renderOnce=function(t){var i=ui(t);return this._scheduleRender(),i},n.prototype._scheduleRender=function(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=J.U(this._onRenderScheduled.bind(this),100))},n.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},n.prototype._renderNow=function(){var t=this;ui(function(){return t._actualRender()})},n.prototype._getViewPartsToRender=function(){for(var t=[],i=0,m=0,C=this.viewParts.length;m<C;m++){var K=this.viewParts[m];K.shouldRender()&&(t[i++]=K)}return t},n.prototype._actualRender=function(){if(!J.M(this.domNode.domNode))return;var t=this._getViewPartsToRender();if(!this.viewLines.shouldRender()&&t.length===0)return;var i=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(i.startLineNumber,i.endLineNumber,i.centeredLineNumber);var m=new aa(this._cursor.getViewSelections(),i,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(m),this.viewLines.shouldRender()&&(this.viewLines.renderText(m),this.viewLines.onDidRender(),t=this._getViewPartsToRender());for(var C=new Te(this._context.viewLayout,m,this.viewLines),K=0,Ne=t.length;K<Ne;K++){var _e=t[K];_e.prepareRender(C)}for(var K=0,Ne=t.length;K<Ne;K++){var _e=t[K];_e.render(C),_e.onDidRender()}},n.prototype.delegateVerticalScrollbarMouseDown=function(t){this._scrollbar.delegateVerticalScrollbarMouseDown(t)},n.prototype.restoreState=function(t){this._context.viewLayout.setScrollPositionNow({scrollTop:t.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:t.scrollLeft})},n.prototype.getOffsetForColumn=function(t,i){var m=this._context.model.validateModelPosition({lineNumber:t,column:i}),C=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(m);this._flushAccumulatedAndRenderNow();var K=this.viewLines.visibleRangeForPosition(new ne.a(C.lineNumber,C.column));return K?K.left:-1},n.prototype.getTargetAtClientPoint=function(t,i){var m=this.pointerHandler.getTargetAtClientPoint(t,i);return m?ht.convertViewToModelMouseTarget(m,this._context.model.coordinatesConverter):null},n.prototype.createOverviewRuler=function(t){return new rs(this._context,t)},n.prototype.change=function(t){var i=this;return this._renderOnce(function(){var m=i.viewZones.changeViewZones(t);return m&&(i._context.viewLayout.onHeightMaybeChanged(),i._context.privateViewEventBus.emit(new zn)),m})},n.prototype.render=function(t,i){if(i){this.viewLines.forceShouldRender();for(var m=0,C=this.viewParts.length;m<C;m++){var K=this.viewParts[m];K.forceShouldRender()}}t?this._flushAccumulatedAndRenderNow():this._scheduleRender()},n.prototype.focus=function(){this._textAreaHandler.focusTextArea()},n.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},n.prototype.setAriaOptions=function(t){this._textAreaHandler.setAriaOptions(t)},n.prototype.addContentWidget=function(t){this.contentWidgets.addWidget(t.widget),this.layoutContentWidget(t),this._scheduleRender()},n.prototype.layoutContentWidget=function(t){var i=t.position&&t.position.range||null;if(i===null){var m=t.position?t.position.position:null;m!==null&&(i=new Ce.a(m.lineNumber,m.column,m.lineNumber,m.column))}var C=t.position?t.position.preference:null;this.contentWidgets.setWidgetPosition(t.widget,i,C),this._scheduleRender()},n.prototype.removeContentWidget=function(t){this.contentWidgets.removeWidget(t.widget),this._scheduleRender()},n.prototype.addOverlayWidget=function(t){this.overlayWidgets.addWidget(t.widget),this.layoutOverlayWidget(t),this._scheduleRender()},n.prototype.layoutOverlayWidget=function(t){var i=t.position?t.position.preference:null,m=this.overlayWidgets.setWidgetPosition(t.widget,i);m&&this._scheduleRender()},n.prototype.removeOverlayWidget=function(t){this.overlayWidgets.removeWidget(t.widget),this._scheduleRender()},n}(ie);function ui(V){try{return V()}catch(n){Object(N.e)(n)}}var ci=function(){function V(n){this._selTrackedRange=null,this._trackSelection=!0,this._setState(n,new Oe.f(new Ce.a(1,1,1,1),0,new ne.a(1,1),0),new Oe.f(new Ce.a(1,1,1,1),0,new ne.a(1,1),0))}return V.prototype.dispose=function(n){this._removeTrackedRange(n)},V.prototype.startTrackingSelection=function(n){this._trackSelection=!0,this._updateTrackedRange(n)},V.prototype.stopTrackingSelection=function(n){this._trackSelection=!1,this._removeTrackedRange(n)},V.prototype._updateTrackedRange=function(n){if(!this._trackSelection)return;this._selTrackedRange=n.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0)},V.prototype._removeTrackedRange=function(n){this._selTrackedRange=n.model._setTrackedRange(this._selTrackedRange,null,0)},V.prototype.asCursorState=function(){return new Oe.d(this.modelState,this.viewState)},V.prototype.readSelectionFromMarkers=function(n){var t=n.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.getDirection()===0?new vt.a(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new vt.a(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},V.prototype.ensureValidState=function(n){this._setState(n,this.modelState,this.viewState)},V.prototype.setState=function(n,t,i){this._setState(n,t,i)},V.prototype._setState=function(n,t,i){if(t){var m=n.model.validateRange(t.selectionStart),K=t.selectionStart.equalsRange(m)?t.selectionStartLeftoverVisibleColumns:0,C=n.model.validatePosition(t.position),Ne=t.position.equals(C)?t.leftoverVisibleColumns:0;t=new Oe.f(m,K,C,Ne)}else{if(!i)return;var m=n.model.validateRange(n.convertViewRangeToModelRange(i.selectionStart)),C=n.model.validatePosition(n.convertViewPositionToModelPosition(i.position.lineNumber,i.position.column));t=new Oe.f(m,i.selectionStartLeftoverVisibleColumns,C,i.leftoverVisibleColumns)}if(i){var ut=n.validateViewRange(i.selectionStart,t.selectionStart),St=n.validateViewPosition(i.position,t.position);i=new Oe.f(ut,t.selectionStartLeftoverVisibleColumns,St,t.leftoverVisibleColumns)}else{var _e=n.convertModelPositionToViewPosition(new ne.a(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),qe=n.convertModelPositionToViewPosition(new ne.a(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),ut=new Ce.a(_e.lineNumber,_e.column,qe.lineNumber,qe.column),St=n.convertModelPositionToViewPosition(t.position);i=new Oe.f(ut,t.selectionStartLeftoverVisibleColumns,St,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(n)},V}(),Vo=function(){function V(n){this.context=n,this.primaryCursor=new ci(n),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return V.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},V.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var n=0,t=this.secondaryCursors.length;n<t;n++)this.secondaryCursors[n].startTrackingSelection(this.context)},V.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var n=0,t=this.secondaryCursors.length;n<t;n++)this.secondaryCursors[n].stopTrackingSelection(this.context)},V.prototype.updateContext=function(n){this.context=n},V.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var n=0,t=this.secondaryCursors.length;n<t;n++)this.secondaryCursors[n].ensureValidState(this.context)},V.prototype.readSelectionFromMarkers=function(){var n=[];n[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var t=0,i=this.secondaryCursors.length;t<i;t++)n[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return n},V.prototype.getAll=function(){var n=[];n[0]=this.primaryCursor.asCursorState();for(var t=0,i=this.secondaryCursors.length;t<i;t++)n[t+1]=this.secondaryCursors[t].asCursorState();return n},V.prototype.getViewPositions=function(){var n=[];n[0]=this.primaryCursor.viewState.position;for(var t=0,i=this.secondaryCursors.length;t<i;t++)n[t+1]=this.secondaryCursors[t].viewState.position;return n},V.prototype.getSelections=function(){var n=[];n[0]=this.primaryCursor.modelState.selection;for(var t=0,i=this.secondaryCursors.length;t<i;t++)n[t+1]=this.secondaryCursors[t].modelState.selection;return n},V.prototype.getViewSelections=function(){var n=[];n[0]=this.primaryCursor.viewState.selection;for(var t=0,i=this.secondaryCursors.length;t<i;t++)n[t+1]=this.secondaryCursors[t].viewState.selection;return n},V.prototype.setSelections=function(n){this.setStates(Oe.d.fromModelSelections(n))},V.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},V.prototype.setStates=function(n){if(n===null)return;this.primaryCursor.setState(this.context,n[0].modelState,n[0].viewState),this._setSecondaryStates(n.slice(1))},V.prototype._setSecondaryStates=function(n){var t=this.secondaryCursors.length,i=n.length;if(t<i)for(var m=i-t,C=0;C<m;C++)this._addSecondaryCursor();else if(t>i)for(var K=t-i,C=0;C<K;C++)this._removeSecondaryCursor(this.secondaryCursors.length-1);for(var C=0;C<i;C++)this.secondaryCursors[C].setState(this.context,n[C].modelState,n[C].viewState)},V.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},V.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new ci(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},V.prototype.getLastAddedCursorIndex=function(){return this.secondaryCursors.length===0||this.lastAddedCursorIndex===0?0:this.lastAddedCursorIndex},V.prototype._removeSecondaryCursor=function(n){this.lastAddedCursorIndex>=n+1&&this.lastAddedCursorIndex--,this.secondaryCursors[n].dispose(this.context),this.secondaryCursors.splice(n,1)},V.prototype._getAll=function(){var n=[];n[0]=this.primaryCursor;for(var t=0,i=this.secondaryCursors.length;t<i;t++)n[t+1]=this.secondaryCursors[t];return n},V.prototype.normalize=function(){if(this.secondaryCursors.length===0)return;for(var n=this._getAll(),t=[],i=0,m=n.length;i<m;i++)t.push({index:i,selection:n[i].modelState.selection});t.sort(function(Xn,jn){return Xn.selection.startLineNumber===jn.selection.startLineNumber?Xn.selection.startColumn-jn.selection.startColumn:Xn.selection.startLineNumber-jn.selection.startLineNumber});for(var C=0;C<t.length-1;C++){var K=t[C],Ne=t[C+1],_e=K.selection,qe=Ne.selection;if(!this.context.config.multiCursorMergeOverlapping)continue;var ut=void 0;if(qe.isEmpty()||_e.isEmpty()?ut=qe.getStartPosition().isBeforeOrEqual(_e.getEndPosition()):ut=qe.getStartPosition().isBefore(_e.getEndPosition()),ut){var St=K.index<Ne.index?C:C+1,et=K.index<Ne.index?C+1:C,Wt=t[et].index,Ft=t[St].index,Vt=t[et].selection,qt=t[St].selection;if(!Vt.equalsSelection(qt)){var $t=Vt.plusRange(qt),rn=Vt.selectionStartLineNumber===Vt.startLineNumber&&Vt.selectionStartColumn===Vt.startColumn,yn=qt.selectionStartLineNumber===qt.startLineNumber&&qt.selectionStartColumn===qt.startColumn,pn=void 0;Wt===this.lastAddedCursorIndex?(pn=rn,this.lastAddedCursorIndex=Ft):pn=yn;var Cn=void 0;pn?Cn=new vt.a($t.startLineNumber,$t.startColumn,$t.endLineNumber,$t.endColumn):Cn=new vt.a($t.endLineNumber,$t.endColumn,$t.startLineNumber,$t.startColumn),t[St].selection=Cn;var mn=Oe.d.fromModelSelection(Cn);n[Ft].setState(this.context,mn.modelState,mn.viewState)}for(var _n=0,In=t;_n<In.length;_n++){var kn=In[_n];kn.index>Wt&&kn.index--}n.splice(Wt,1),t.splice(et,1),this._removeSecondaryCursor(Wt-1),C--}}},V}(),Co=e("snIX"),Do=e("GR/f"),_o=e("iuje"),Ai=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Ei(V){for(var n=0,t=V.length;n<t;n++)if(V[n].type===8)return!0;return!1}var Ji=function(){function V(n,t,i,m,C,K){this.selections=n,this.modelVersionId=t,this.oldSelections=i,this.oldModelVersionId=m,this.source=C,this.reason=K}return V}(),qi=function(){function V(n,t){this.modelVersionId=n.getVersionId(),this.cursorState=t.getAll()}return V.prototype.equals=function(n){if(!n)return!1;if(this.modelVersionId!==n.modelVersionId)return!1;if(this.cursorState.length!==n.cursorState.length)return!1;for(var t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(n.cursorState[t]))return!1;return!0},V}(),er=function(){function V(n,t,i){this._model=n,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}return V.getAllAutoClosedCharacters=function(n){for(var t=[],i=0,m=n;i<m.length;i++){var C=m[i];t=t.concat(C.getAutoClosedCharactersRanges())}return t},V.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},V.prototype.getAutoClosedCharactersRanges=function(){for(var n=[],t=0;t<this._autoClosedCharactersDecorations.length;t++){var i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&n.push(i)}return n},V.prototype.isValid=function(n){for(var t=[],i=0;i<this._autoClosedEnclosingDecorations.length;i++){var m=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(m&&(t.push(m),m.startLineNumber!==m.endLineNumber))return!1}t.sort(Ce.a.compareRangesUsingStarts),n.sort(Ce.a.compareRangesUsingStarts);for(var i=0;i<n.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(n[i]))return!1}return!0},V}(),Rr=function(V){Ai(n,V);function n(t,i,m){var C=V.call(this)||this;C._onDidReachMaxCursorCount=C._register(new H.a),C.onDidReachMaxCursorCount=C._onDidReachMaxCursorCount.event,C._onDidAttemptReadOnlyEdit=C._register(new H.a),C.onDidAttemptReadOnlyEdit=C._onDidAttemptReadOnlyEdit.event,C._onDidChange=C._register(new H.a),C.onDidChange=C._onDidChange.event,C._configuration=t,C._model=i,C._knownModelVersionId=C._model.getVersionId(),C._viewModel=m,C.context=new Oe.c(C._configuration,C._model,C._viewModel),C._cursors=new Vo(C.context),C._isHandling=!1,C._isDoingComposition=!1,C._selectionsWhenCompositionStarted=null,C._columnSelectData=null,C._autoClosedActions=[],C._prevEditOperationType=0,C._register(C._model.onDidChangeRawContent(function(Ne){if(C._knownModelVersionId=Ne.versionId,C._isHandling)return;var _e=Ne.containsEvent(1);C._onModelContentChanged(_e)})),C._register(m.addEventListener(function(Ne){if(!Ei(Ne))return;if(C._knownModelVersionId!==C._model.getVersionId())return;C.setStates("viewModel",0,C.getAll())}));var K=function(){C.context=new Oe.c(C._configuration,C._model,C._viewModel),C._cursors.updateContext(C.context)};return C._register(C._model.onDidChangeLanguage(function(Ne){K()})),C._register(C._model.onDidChangeLanguageConfiguration(function(){K()})),C._register(C._model.onDidChangeOptions(function(){K()})),C._register(C._configuration.onDidChange(function(Ne){Oe.b.shouldRecreate(Ne)&&K()})),C}return n.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(z.f)(this._autoClosedActions),V.prototype.dispose.call(this)},n.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var t=this._cursors.getSelections(),i=0;i<this._autoClosedActions.length;i++){var m=this._autoClosedActions[i];m.isValid(t)||(m.dispose(),this._autoClosedActions.splice(i,1),i--)}},n.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},n.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},n.prototype.getAll=function(){return this._cursors.getAll()},n.prototype.setStates=function(t,i,m){m!==null&&m.length>n.MAX_CURSOR_COUNT&&(m=m.slice(0,n.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var C=new qi(this._model,this);this._cursors.setStates(m),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,C)},n.prototype.setColumnSelectData=function(t){this._columnSelectData=t},n.prototype.reveal=function(t,i,m,C){this._revealRange(t,m,0,i,C)},n.prototype.revealRange=function(t,i,m,C,K){this.emitCursorRevealRange(t,m,C,i,K)},n.prototype.scrollTo=function(t){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:t})},n.prototype.saveState=function(){for(var t=[],i=this._cursors.getSelections(),m=0,C=i.length;m<C;m++){var K=i[m];t.push({inSelectionMode:!K.isEmpty(),selectionStart:{lineNumber:K.selectionStartLineNumber,column:K.selectionStartColumn},position:{lineNumber:K.positionLineNumber,column:K.positionColumn}})}return t},n.prototype.restoreState=function(t){for(var i=[],m=0,C=t.length;m<C;m++){var K=t[m],Ne=1,_e=1;K.position&&K.position.lineNumber&&(Ne=K.position.lineNumber),K.position&&K.position.column&&(_e=K.position.column);var qe=Ne,ut=_e;K.selectionStart&&K.selectionStart.lineNumber&&(qe=K.selectionStart.lineNumber),K.selectionStart&&K.selectionStart.column&&(ut=K.selectionStart.column),i.push({selectionStartLineNumber:qe,selectionStartColumn:ut,positionLineNumber:Ne,positionColumn:_e})}this.setStates("restoreState",0,Oe.d.fromModelSelections(i)),this.reveal("restoreState",!0,0,1)},n.prototype._onModelContentChanged=function(t){if(this._prevEditOperationType=0,t)this._cursors.dispose(),this._cursors=new Vo(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var i=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,Oe.d.fromModelSelections(i))}},n.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},n.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var t=this._cursors.getPrimaryCursor(),i=t.viewState.selectionStart.getStartPosition(),m=i.lineNumber,C=Oe.a.visibleColumnFromColumn2(this.context.config,this.context.viewModel,i);return{isReal:!1,fromViewLineNumber:m,fromViewVisualColumn:C,toViewLineNumber:m,toViewVisualColumn:C}},n.prototype.getSelections=function(){return this._cursors.getSelections()},n.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},n.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},n.prototype.setSelections=function(t,i){this.setStates(t,0,Oe.d.fromModelSelections(i))},n.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},n.prototype.setPrevEditOperationType=function(t){this._prevEditOperationType=t},n.prototype._pushAutoClosedAction=function(t,i){for(var m=[],C=[],K=0,Ne=t.length;K<Ne;K++)m.push({range:t[K],options:{inlineClassName:"auto-closed-character",stickiness:1}}),C.push({range:i[K],options:{stickiness:1}});var _e=this._model.deltaDecorations([],m),qe=this._model.deltaDecorations([],C);this._autoClosedActions.push(new er(this._model,_e,qe))},n.prototype._executeEditOperation=function(t){if(!t)return;t.shouldPushStackElementBefore&&this._model.pushStackElement();var i=Nr.executeCommands(this._model,this._cursors.getSelections(),t.commands);if(i){this._interpretCommandResult(i);for(var m=[],C=[],K=0;K<t.commands.length;K++){var Ne=t.commands[K];Ne instanceof Do.b&&Ne.enclosingRange&&Ne.closeCharacterRange&&(m.push(Ne.closeCharacterRange),C.push(Ne.enclosingRange))}m.length>0&&this._pushAutoClosedAction(m,C),this._prevEditOperationType=t.type}t.shouldPushStackElementAfter&&this._model.pushStackElement()},n.prototype._interpretCommandResult=function(t){(!t||t.length===0)&&(t=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(t),this._cursors.normalize()},n.prototype._emitStateChangedIfNecessary=function(t,i,m){var C=new qi(this._model,this);if(C.equals(m))return!1;var K=this._cursors.getSelections(),Ne=this._cursors.getViewSelections();try{var _e=this._beginEmit();_e.emit(new Zn(Ne,K))}finally{this._endEmit()}if(!m||m.cursorState.length!==C.cursorState.length||C.cursorState.some(function(St,et){return!St.modelState.equals(m.cursorState[et].modelState)})){var qe=m?m.cursorState.map(function(St){return St.modelState.selection}):null,ut=m?m.modelVersionId:0;this._onDidChange.fire(new Ji(K,C.modelVersionId,qe,ut,t||"keyboard",i))}return!0},n.prototype._revealRange=function(t,i,m,C,K){var Ne=this._cursors.getViewPositions(),_e=Ne[0];if(i===1)for(var qe=1;qe<Ne.length;qe++)Ne[qe].isBefore(_e)&&(_e=Ne[qe]);else if(i===2)for(var qe=1;qe<Ne.length;qe++)_e.isBeforeOrEqual(Ne[qe])&&(_e=Ne[qe]);else if(Ne.length>1)return;var ut=new Ce.a(_e.lineNumber,_e.column,_e.lineNumber,_e.column);this.emitCursorRevealRange(t,ut,m,C,K)},n.prototype.emitCursorRevealRange=function(t,i,m,C,K){try{var Ne=this._beginEmit();Ne.emit(new po(t,i,m,C,K))}finally{this._endEmit()}},n.prototype._findAutoClosingPairs=function(t){if(!t.length)return null;for(var i=[],m=0,C=t.length;m<C;m++){var K=t[m];if(!K.text||K.text.indexOf(`
`)>=0)return null;var Ne=K.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!Ne)return null;var _e=Ne[1],qe=this.context.config.autoClosingPairsClose2.get(_e);if(!qe||qe.length!==1)return null;var ut=qe[0].open,St=K.text.length-Ne[2].length-1,et=K.text.lastIndexOf(ut,St-1);if(et===-1)return null;i.push([et,St])}return i},n.prototype.executeEdits=function(t,i,m){var C=this,K=null;t==="snippet"&&(K=this._findAutoClosingPairs(i)),K&&(i[0]._isTracked=!0);var Ne=[],_e=[],qe=this._model.pushEditOperations(this.getSelections(),i,function(ut){if(K)for(var St=0,et=K.length;St<et;St++){var Wt=K[St],Ft=Wt[0],Vt=Wt[1],qt=ut[St],$t=qt.range.startLineNumber,rn=qt.range.startColumn-1+Ft,yn=qt.range.startColumn-1+Vt;Ne.push(new Ce.a($t,yn+1,$t,yn+2)),_e.push(new Ce.a($t,rn+1,$t,yn+2))}var pn=m(ut);return pn&&(C._isHandling=!0),pn});qe&&(this._isHandling=!1,this.setSelections(t,qe)),Ne.length>0&&this._pushAutoClosedAction(Ne,_e)},n.prototype.trigger=function(t,i,m){var C=_o.b;if(i===C.CompositionStart){this._isDoingComposition=!0,this._selectionsWhenCompositionStarted=this.getSelections().slice(0);return}if(i===C.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68)){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var K=new qi(this._model,this),Ne=0;i!==C.Undo&&i!==C.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(i){case C.Type:this._type(t,m.text);break;case C.ReplacePreviousChar:this._replacePreviousChar(m.text,m.replaceCharCnt);break;case C.Paste:Ne=4,this._paste(m.text,m.pasteOnNewLine,m.multicursorText||[]);break;case C.Cut:this._cut();break;case C.Undo:Ne=5,this._interpretCommandResult(this._model.undo());break;case C.Redo:Ne=6,this._interpretCommandResult(this._model.redo());break;case C.ExecuteCommand:this._externalExecuteCommand(m);break;case C.ExecuteCommands:this._externalExecuteCommands(m);break;case C.CompositionEnd:this._interpretCompositionEnd(t);break}}catch(_e){Object(N.e)(_e)}this._isHandling=!1,i!==C.Undo&&i!==C.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,Ne,K)&&this._revealRange(t,0,0,!0,0)},n.prototype._interpretCompositionEnd=function(t){if(!this._isDoingComposition&&t==="keyboard"){var i=er.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Do.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),i)),this._selectionsWhenCompositionStarted=null}},n.prototype._type=function(t,i){if(!this._isDoingComposition&&t==="keyboard")for(var m=i.length,C=0;C<m;){var K=fe.E(i,C),Ne=i.substr(C,K),_e=er.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Do.a.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),_e,Ne)),C+=K}else this._executeEditOperation(Do.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),i))},n.prototype._replacePreviousChar=function(t,i){this._executeEditOperation(Do.a.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t,i))},n.prototype._paste=function(t,i,m){this._executeEditOperation(Do.a.paste(this.context.config,this.context.model,this.getSelections(),t,i,m))},n.prototype._cut=function(){this._executeEditOperation(Co.a.cut(this.context.config,this.context.model,this.getSelections()))},n.prototype._externalExecuteCommand=function(t){this._cursors.killSecondaryCursors(),this._executeEditOperation(new Oe.e(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},n.prototype._externalExecuteCommands=function(t){this._executeEditOperation(new Oe.e(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},n.MAX_CURSOR_COUNT=1e4,n}(Un),Nr=function(){function V(){}return V.executeCommands=function(n,t,i){for(var m={model:n,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},C=this._innerExecuteCommands(m,i),K=0,Ne=m.trackedRanges.length;K<Ne;K++)m.model._setTrackedRange(m.trackedRanges[K],null,0);return C},V._innerExecuteCommands=function(n,t){if(this._arrayIsEmpty(t))return null;var i=this._getEditOperations(n,t);if(i.operations.length===0)return null;var m=i.operations,C=this._getLoserCursorMap(m);if(C.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var K=[],Ne=0,_e=m.length;Ne<_e;Ne++)C.hasOwnProperty(m[Ne].identifier.major.toString())||K.push(m[Ne]);i.hadTrackedEditOperation&&K.length>0&&(K[0]._isTracked=!0);var qe=n.model.pushEditOperations(n.selectionsBefore,K,function(Vt){for(var qt=[],$t=0;$t<n.selectionsBefore.length;$t++)qt[$t]=[];for(var rn=0,yn=Vt;rn<yn.length;rn++){var pn=yn[rn];if(!pn.identifier)continue;qt[pn.identifier.major].push(pn)}for(var Cn=function(kn,Xn){return kn.identifier.minor-Xn.identifier.minor},mn=[],_n=function(kn){qt[kn].length>0?(qt[kn].sort(Cn),mn[kn]=t[kn].computeCursorState(n.model,{getInverseEditOperations:function(){return qt[kn]},getTrackedSelection:function(jn){var oo=parseInt(jn,10),vo=n.model._getTrackedRange(n.trackedRanges[oo]);return n.trackedRangesDirection[oo]===0?new vt.a(vo.startLineNumber,vo.startColumn,vo.endLineNumber,vo.endColumn):new vt.a(vo.endLineNumber,vo.endColumn,vo.startLineNumber,vo.startColumn)}})):mn[kn]=n.selectionsBefore[kn]},$t=0;$t<n.selectionsBefore.length;$t++)_n($t);return mn});qe||(qe=n.selectionsBefore);var ut=[];for(var St in C)C.hasOwnProperty(St)&&ut.push(parseInt(St,10));ut.sort(function(Vt,qt){return qt-Vt});for(var et=0,Wt=ut;et<Wt.length;et++){var Ft=Wt[et];qe.splice(Ft,1)}return qe},V._arrayIsEmpty=function(n){for(var t=0,i=n.length;t<i;t++)if(n[t])return!1;return!0},V._getEditOperations=function(n,t){for(var i=[],m=!1,C=0,K=t.length;C<K;C++){var Ne=t[C];if(Ne){var _e=this._getEditOperationsFromCommand(n,C,Ne);i=i.concat(_e.operations),m=m||_e.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:m}},V._getEditOperationsFromCommand=function(n,t,i){var m=[],C=0,K=function(et,Wt,Ft){if(Ft===void 0&&(Ft=!1),et.isEmpty()&&Wt==="")return;m.push({identifier:{major:t,minor:C++},range:et,text:Wt,forceMoveMarkers:Ft,isAutoWhitespaceEdit:i.insertsAutoWhitespace})},Ne=!1,_e=function(et,Wt,Ft){Ne=!0,K(et,Wt,Ft)},qe=function(et,Wt){var Ft;if(et.isEmpty())if(typeof Wt=="boolean")Wt?Ft=2:Ft=3;else{var Vt=n.model.getLineMaxColumn(et.startLineNumber);et.startColumn===Vt?Ft=2:Ft=3}else Ft=1;var qt=n.trackedRanges.length,$t=n.model._setTrackedRange(null,et,Ft);return n.trackedRanges[qt]=$t,n.trackedRangesDirection[qt]=et.getDirection(),qt.toString()},ut={addEditOperation:K,addTrackedEditOperation:_e,trackSelection:qe};try{i.getEditOperations(n.model,ut)}catch(St){return Object(N.e)(St),{operations:[],hadTrackedEditOperation:!1}}return{operations:m,hadTrackedEditOperation:Ne}},V._getLoserCursorMap=function(n){n=n.slice(0),n.sort(function(_e,qe){return-Ce.a.compareRangesUsingEnds(_e.range,qe.range)});for(var t={},i=1;i<n.length;i++){var m=n[i-1],C=n[i];if(m.range.getStartPosition().isBefore(C.range.getEndPosition())){var K=void 0;m.identifier.major>C.identifier.major?K=m.identifier.major:K=C.identifier.major,t[K.toString()]=!0;for(var Ne=0;Ne<n.length;Ne++)n[Ne].identifier.major===K&&(n.splice(Ne,1),Ne<i&&i--,Ne--);i>0&&i--}}return t},V}(),Es=e("9Y+e"),Jn=e("wQH0"),xi=e("TQUy"),Ss=e("QuOb"),No=function(){function V(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return V.prototype.insert=function(n){this._hasPending=!0,this._inserts.push(n)},V.prototype.change=function(n){this._hasPending=!0,this._changes.push(n)},V.prototype.remove=function(n){this._hasPending=!0,this._removes.push(n)},V.prototype.mustCommit=function(){return this._hasPending},V.prototype.commit=function(n){if(!this._hasPending)return;var t=this._inserts,i=this._changes,m=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],n._commitPendingChanges(t,i,m)},V}(),Si=function(){function V(n,t,i,m,C){this.id=n,this.afterLineNumber=t,this.ordinal=i,this.height=m,this.minWidth=C,this.prefixSum=0}return V}(),Xo=function(){function V(n,t){this._instanceId=fe.M(++V.INSTANCE_COUNT),this._pendingChanges=new No,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=n,this._lineHeight=t}return V.findInsertionIndex=function(n,t,i){for(var m=0,C=n.length;m<C;){var K=m+C>>>1;t===n[K].afterLineNumber?i<n[K].ordinal?C=K:m=K+1:t<n[K].afterLineNumber?C=K:m=K+1}return m},V.prototype.setLineHeight=function(n){this._checkPendingChanges(),this._lineHeight=n},V.prototype.onFlushed=function(n){this._checkPendingChanges(),this._lineCount=n},V.prototype.changeWhitespace=function(n){var t=this;try{var i={insertWhitespace:function(C,K,Ne,_e){C=C|0,K=K|0,Ne=Ne|0,_e=_e|0;var qe=t._instanceId+ ++t._lastWhitespaceId;return t._pendingChanges.insert(new Si(qe,C,K,Ne,_e)),qe},changeOneWhitespace:function(C,K,Ne){K=K|0,Ne=Ne|0,t._pendingChanges.change({id:C,newAfterLineNumber:K,newHeight:Ne})},removeWhitespace:function(C){t._pendingChanges.remove({id:C})}};return n(i)}finally{this._pendingChanges.commit(this)}},V.prototype._commitPendingChanges=function(n,t,i){if((n.length>0||i.length>0)&&(this._minWidth=-1),n.length+t.length+i.length<=1){for(var m=0,C=n;m<C.length;m++){var K=C[m];this._insertWhitespace(K)}for(var Ne=0,_e=t;Ne<_e.length;Ne++){var qe=_e[Ne];this._changeOneWhitespace(qe.id,qe.newAfterLineNumber,qe.newHeight)}for(var ut=0,St=i;ut<St.length;ut++){var et=St[ut],Wt=this._findWhitespaceIndex(et.id);if(Wt===-1)continue;this._removeWhitespace(Wt)}return}for(var Ft=new Set,Vt=0,qt=i;Vt<qt.length;Vt++){var et=qt[Vt];Ft.add(et.id)}for(var $t=new Map,rn=0,yn=t;rn<yn.length;rn++){var qe=yn[rn];$t.set(qe.id,qe)}var pn=function(_n){for(var In=[],kn=0,Xn=_n;kn<Xn.length;kn++){var jn=Xn[kn];if(Ft.has(jn.id))continue;if($t.has(jn.id)){var oo=$t.get(jn.id);jn.afterLineNumber=oo.newAfterLineNumber,jn.height=oo.newHeight}In.push(jn)}return In},Cn=pn(this._arr).concat(pn(n));Cn.sort(function(mn,_n){return mn.afterLineNumber===_n.afterLineNumber?mn.ordinal-_n.ordinal:mn.afterLineNumber-_n.afterLineNumber}),this._arr=Cn,this._prefixSumValidIndex=-1},V.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)},V.prototype._insertWhitespace=function(n){var t=V.findInsertionIndex(this._arr,n.afterLineNumber,n.ordinal);this._arr.splice(t,0,n),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},V.prototype._findWhitespaceIndex=function(n){for(var t=this._arr,i=0,m=t.length;i<m;i++)if(t[i].id===n)return i;return-1},V.prototype._changeOneWhitespace=function(n,t,i){var m=this._findWhitespaceIndex(n);if(m===-1)return;if(this._arr[m].height!==i&&(this._arr[m].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,m-1)),this._arr[m].afterLineNumber!==t){var C=this._arr[m];this._removeWhitespace(m),C.afterLineNumber=t,this._insertWhitespace(C)}},V.prototype._removeWhitespace=function(n){this._arr.splice(n,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)},V.prototype.onLinesDeleted=function(n,t){this._checkPendingChanges(),n=n|0,t=t|0,this._lineCount-=t-n+1;for(var i=0,m=this._arr.length;i<m;i++){var C=this._arr[i].afterLineNumber;n<=C&&C<=t?this._arr[i].afterLineNumber=n-1:C>t&&(this._arr[i].afterLineNumber-=t-n+1)}},V.prototype.onLinesInserted=function(n,t){this._checkPendingChanges(),n=n|0,t=t|0,this._lineCount+=t-n+1;for(var i=0,m=this._arr.length;i<m;i++){var C=this._arr[i].afterLineNumber;n<=C&&(this._arr[i].afterLineNumber+=t-n+1)}},V.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),this._arr.length===0?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},V.prototype.getWhitespacesAccumulatedHeight=function(n){this._checkPendingChanges(),n=n|0;var t=Math.max(0,this._prefixSumValidIndex+1);t===0&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(var i=t;i<=n;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,n),this._arr[n].prefixSum},V.prototype.getLinesTotalHeight=function(){this._checkPendingChanges();var n=this._lineHeight*this._lineCount,t=this.getWhitespacesTotalHeight();return n+t},V.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(n){this._checkPendingChanges(),n=n|0;var t=this._findLastWhitespaceBeforeLineNumber(n);return t===-1?0:this.getWhitespacesAccumulatedHeight(t)},V.prototype._findLastWhitespaceBeforeLineNumber=function(n){n=n|0;for(var t=this._arr,i=0,m=t.length-1;i<=m;){var C=m-i|0,K=C/2|0,Ne=i+K|0;if(t[Ne].afterLineNumber<n){if(Ne+1>=t.length||t[Ne+1].afterLineNumber>=n)return Ne;i=Ne+1|0}else m=Ne-1|0}return-1},V.prototype._findFirstWhitespaceAfterLineNumber=function(n){n=n|0;var t=this._findLastWhitespaceBeforeLineNumber(n),i=t+1;return i<this._arr.length?i:-1},V.prototype.getFirstWhitespaceIndexAfterLineNumber=function(n){return this._checkPendingChanges(),n=n|0,this._findFirstWhitespaceAfterLineNumber(n)},V.prototype.getVerticalOffsetForLineNumber=function(n){this._checkPendingChanges(),n=n|0;var t;n>1?t=this._lineHeight*(n-1):t=0;var i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(n);return t+i},V.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),this._minWidth===-1){for(var n=0,t=0,i=this._arr.length;t<i;t++)n=Math.max(n,this._arr[t].minWidth);this._minWidth=n}return this._minWidth},V.prototype.isAfterLines=function(n){this._checkPendingChanges();var t=this.getLinesTotalHeight();return n>t},V.prototype.getLineNumberAtOrAfterVerticalOffset=function(n){if(this._checkPendingChanges(),n=n|0,n<0)return 1;for(var t=this._lineCount|0,i=this._lineHeight,m=1,C=t;m<C;){var K=(m+C)/2|0,Ne=this.getVerticalOffsetForLineNumber(K)|0;if(n>=Ne+i)m=K+1;else{if(n>=Ne)return K;C=K}}return m>t?t:m},V.prototype.getLinesViewportData=function(n,t){this._checkPendingChanges(),n=n|0,t=t|0;var i=this._lineHeight,m=this.getLineNumberAtOrAfterVerticalOffset(n)|0,C=this.getVerticalOffsetForLineNumber(m)|0,K=this._lineCount|0,Ne=this.getFirstWhitespaceIndexAfterLineNumber(m)|0,_e=this.getWhitespacesCount()|0,qe,ut;Ne===-1?(Ne=_e,ut=K+1,qe=0):(ut=this.getAfterLineNumberForWhitespaceIndex(Ne)|0,qe=this.getHeightForWhitespaceIndex(Ne)|0);var St=C,et=St,Wt=5e5,Ft=0;C>=Wt&&(Ft=Math.floor(C/Wt)*Wt,Ft=Math.floor(Ft/i)*i,et-=Ft);for(var Vt=[],qt=n+(t-n)/2,$t=-1,rn=m;rn<=K;rn++){if($t===-1){var yn=St,pn=St+i;(yn<=qt&&qt<pn||yn>qt)&&($t=rn)}for(St+=i,Vt[rn-m]=et,et+=i;ut===rn;)et+=qe,St+=qe,Ne++,Ne>=_e?ut=K+1:(ut=this.getAfterLineNumberForWhitespaceIndex(Ne)|0,qe=this.getHeightForWhitespaceIndex(Ne)|0);if(St>=t){K=rn;break}}$t===-1&&($t=K);var Cn=this.getVerticalOffsetForLineNumber(K)|0,mn=m,_n=K;return mn<_n&&(C<n&&mn++),mn<_n&&(Cn+i>t&&_n--),{bigNumbersDelta:Ft,startLineNumber:m,endLineNumber:K,relativeVerticalOffset:Vt,centeredLineNumber:$t,completelyVisibleStartLineNumber:mn,completelyVisibleEndLineNumber:_n}},V.prototype.getVerticalOffsetForWhitespaceIndex=function(n){this._checkPendingChanges(),n=n|0;var t=this.getAfterLineNumberForWhitespaceIndex(n),i;t>=1?i=this._lineHeight*t:i=0;var m;return n>0?m=this.getWhitespacesAccumulatedHeight(n-1):m=0,i+m},V.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(n){this._checkPendingChanges(),n=n|0;var t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;var m=this.getVerticalOffsetForWhitespaceIndex(i),C=this.getHeightForWhitespaceIndex(i);if(n>=m+C)return-1;for(;t<i;){var K=Math.floor((t+i)/2),Ne=this.getVerticalOffsetForWhitespaceIndex(K),_e=this.getHeightForWhitespaceIndex(K);if(n>=Ne+_e)t=K+1;else{if(n>=Ne)return K;i=K}}return t},V.prototype.getWhitespaceAtVerticalOffset=function(n){this._checkPendingChanges(),n=n|0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(n);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>n)return null;var m=this.getHeightForWhitespaceIndex(t),C=this.getIdForWhitespaceIndex(t),K=this.getAfterLineNumberForWhitespaceIndex(t);return{id:C,afterLineNumber:K,verticalOffset:i,height:m}},V.prototype.getWhitespaceViewportData=function(n,t){this._checkPendingChanges(),n=n|0,t=t|0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(n),m=this.getWhitespacesCount()-1;if(i<0)return[];for(var C=[],K=i;K<=m;K++){var Ne=this.getVerticalOffsetForWhitespaceIndex(K),_e=this.getHeightForWhitespaceIndex(K);if(Ne>=t)break;C.push({id:this.getIdForWhitespaceIndex(K),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(K),verticalOffset:Ne,height:_e})}return C},V.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},V.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},V.prototype.getIdForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].id},V.prototype.getAfterLineNumberForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].afterLineNumber},V.prototype.getHeightForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].height},V.INSTANCE_COUNT=0,V}(),zo=e("qNAo"),Ri=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),tr=125,Li=function(){function V(n,t,i,m){n=n|0,t=t|0,i=i|0,m=m|0,n<0&&(n=0),t<0&&(t=0),i<0&&(i=0),m<0&&(m=0),this.width=n,this.contentWidth=t,this.scrollWidth=Math.max(n,t),this.height=i,this.contentHeight=m,this.scrollHeight=Math.max(i,m)}return V.prototype.equals=function(n){return this.width===n.width&&this.contentWidth===n.contentWidth&&this.height===n.height&&this.contentHeight===n.contentHeight},V}(),Ni=function(V){Ri(n,V);function n(t,i){var m=V.call(this)||this;return m._onDidContentSizeChange=m._register(new H.a),m.onDidContentSizeChange=m._onDidContentSizeChange.event,m._dimensions=new Li(0,0,0,0),m._scrollable=m._register(new Ss.a(t,i)),m.onDidScroll=m._scrollable.onScroll,m}return n.prototype.getScrollable=function(){return this._scrollable},n.prototype.setSmoothScrollDuration=function(t){this._scrollable.setSmoothScrollDuration(t)},n.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},n.prototype.getScrollDimensions=function(){return this._dimensions},n.prototype.setScrollDimensions=function(t){if(this._dimensions.equals(t))return;var i=this._dimensions;this._dimensions=t,this._scrollable.setScrollDimensions({width:t.width,scrollWidth:t.scrollWidth,height:t.height,scrollHeight:t.scrollHeight});var m=i.contentWidth!==t.contentWidth,C=i.contentHeight!==t.contentHeight;(m||C)&&this._onDidContentSizeChange.fire({contentWidth:t.contentWidth,contentHeight:t.contentHeight,contentWidthChanged:m,contentHeightChanged:C})},n.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},n.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},n.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},n.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},n}(z.a),Ls=function(V){Ri(n,V);function n(t,i,m){var C=V.call(this)||this;C._configuration=t;var K=C._configuration.options,Ne=K.get(107);return C._linesLayout=new Xo(i,K.get(49)),C._scrollable=C._register(new Ni(0,m)),C._configureSmoothScrollDuration(),C._scrollable.setScrollDimensions(new Li(Ne.contentWidth,0,Ne.height,0)),C.onDidScroll=C._scrollable.onDidScroll,C.onDidContentSizeChange=C._scrollable.onDidContentSizeChange,C._updateHeight(),C}return n.prototype.dispose=function(){V.prototype.dispose.call(this)},n.prototype.getScrollable=function(){return this._scrollable.getScrollable()},n.prototype.onHeightMaybeChanged=function(){this._updateHeight()},n.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?tr:0)},n.prototype.onConfigurationChanged=function(t){var i=this._configuration.options;if(t.hasChanged(49)&&this._linesLayout.setLineHeight(i.get(49)),t.hasChanged(107)){var m=i.get(107),C=m.contentWidth,K=m.height,Ne=this._scrollable.getScrollDimensions(),_e=Ne.scrollWidth;this._scrollable.setScrollDimensions(new Li(C,Ne.contentWidth,K,this._getContentHeight(C,K,_e)))}else this._updateHeight();t.hasChanged(87)&&this._configureSmoothScrollDuration()},n.prototype.onFlushed=function(t){this._linesLayout.onFlushed(t)},n.prototype.onLinesDeleted=function(t,i){this._linesLayout.onLinesDeleted(t,i)},n.prototype.onLinesInserted=function(t,i){this._linesLayout.onLinesInserted(t,i)},n.prototype._getHorizontalScrollbarHeight=function(t,i){var m=this._configuration.options,C=m.get(78);return C.horizontal===2||t>=i?0:C.horizontalScrollbarSize},n.prototype._getContentHeight=function(t,i,m){var C=this._configuration.options,K=this._linesLayout.getLinesTotalHeight();return C.get(80)?K+=i-C.get(49):K+=this._getHorizontalScrollbarHeight(t,m),K},n.prototype._updateHeight=function(){var t=this._scrollable.getScrollDimensions(),i=t.width,m=t.height,C=t.scrollWidth;this._scrollable.setScrollDimensions(new Li(i,t.contentWidth,m,this._getContentHeight(i,m,C)))},n.prototype.getCurrentViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getCurrentScrollPosition();return new zo.f(i.scrollTop,i.scrollLeft,t.width,t.height)},n.prototype.getFutureViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getFutureScrollPosition();return new zo.f(i.scrollTop,i.scrollLeft,t.width,t.height)},n.prototype._computeContentWidth=function(t){var i=this._configuration.options,m=i.get(108),C=i.get(34);if(m.isViewportWrapping){var K=i.get(107),Ne=i.get(54);return t>K.contentWidth+C.typicalHalfwidthCharacterWidth&&(Ne.enabled&&Ne.side==="right")?t+K.verticalScrollbarWidth:t}else{var _e=i.get(79)*C.typicalHalfwidthCharacterWidth,qe=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+_e,qe)}},n.prototype.onMaxLineWidthChanged=function(t){var i=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Li(i.width,this._computeContentWidth(t),i.height,i.contentHeight)),this._updateHeight()},n.prototype.saveState=function(){var t=this._scrollable.getFutureScrollPosition(),i=t.scrollTop,m=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i),C=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(m);return{scrollTop:i,scrollTopWithoutViewZones:i-C,scrollLeft:t.scrollLeft}},n.prototype.changeWhitespace=function(t){return this._linesLayout.changeWhitespace(t)},n.prototype.getVerticalOffsetForLineNumber=function(t){return this._linesLayout.getVerticalOffsetForLineNumber(t)},n.prototype.isAfterLines=function(t){return this._linesLayout.isAfterLines(t)},n.prototype.getLineNumberAtVerticalOffset=function(t){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t)},n.prototype.getWhitespaceAtVerticalOffset=function(t){return this._linesLayout.getWhitespaceAtVerticalOffset(t)},n.prototype.getLinesViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(t.top,t.top+t.height)},n.prototype.getLinesViewportDataAtScrollTop=function(t){var i=this._scrollable.getScrollDimensions();return t+i.height>i.scrollHeight&&(t=i.scrollHeight-i.height),t<0&&(t=0),this._linesLayout.getLinesViewportData(t,t+i.height)},n.prototype.getWhitespaceViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(t.top,t.top+t.height)},n.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},n.prototype.getContentWidth=function(){var t=this._scrollable.getScrollDimensions();return t.contentWidth},n.prototype.getScrollWidth=function(){var t=this._scrollable.getScrollDimensions();return t.scrollWidth},n.prototype.getContentHeight=function(){var t=this._scrollable.getScrollDimensions();return t.contentHeight},n.prototype.getScrollHeight=function(){var t=this._scrollable.getScrollDimensions();return t.scrollHeight},n.prototype.getCurrentScrollLeft=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollLeft},n.prototype.getCurrentScrollTop=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollTop},n.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},n.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},n.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},n.prototype.deltaScrollNow=function(t,i){var m=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:m.scrollLeft+t,scrollTop:m.scrollTop+i})},n}(z.a),hi=e("tX9W"),ws=e("LeU+"),Jo=function(){function V(n,t){this.outputLineIndex=n,this.outputOffset=t}return V}(),qo=function(){function V(n,t,i){this.breakOffsets=n,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=i}return V.getInputOffsetOfOutputPosition=function(n,t,i){return t===0?i:n[t-1]+i},V.getOutputPositionOfInputOffset=function(n,t){for(var i=0,m=n.length-1,C=0,K=0;i<=m;){C=i+(m-i)/2|0;var Ne=n[C];if(K=C>0?n[C-1]:0,t<K)m=C-1;else if(t>=Ne)i=C+1;else break}return new Jo(C,t-K)},V}(),_s=function(){function V(n){this._lines=n}return V.prototype.convertViewPositionToModelPosition=function(n){return this._lines.convertViewPositionToModelPosition(n.lineNumber,n.column)},V.prototype.convertViewRangeToModelRange=function(n){return this._lines.convertViewRangeToModelRange(n)},V.prototype.validateViewPosition=function(n,t){return this._lines.validateViewPosition(n.lineNumber,n.column,t)},V.prototype.validateViewRange=function(n,t){return this._lines.validateViewRange(n,t)},V.prototype.convertModelPositionToViewPosition=function(n){return this._lines.convertModelPositionToViewPosition(n.lineNumber,n.column)},V.prototype.convertModelRangeToViewRange=function(n){return this._lines.convertModelRangeToViewRange(n)},V.prototype.modelPositionIsVisible=function(n){return this._lines.modelPositionIsVisible(n.lineNumber,n.column)},V}(),nr=function(){function V(n){this._counts=n,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}return V.prototype._invalidate=function(n){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,n-1)},V.prototype._ensureValid=function(){if(this._isValid)return;for(var n=this._validEndIndex+1,t=this._counts.length;n<t;n++){var i=this._counts[n],m=n>0?this._modelToView[n-1]:0;this._modelToView[n]=m+i;for(var C=0;C<i;C++)this._viewToModel[m+C]=n}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1},V.prototype.changeValue=function(n,t){if(this._counts[n]===t)return;this._counts[n]=t,this._invalidate(n)},V.prototype.removeValues=function(n,t){this._counts.splice(n,t),this._invalidate(n)},V.prototype.insertValues=function(n,t){this._counts=We.a(this._counts,n,t),this._invalidate(n)},V.prototype.getTotalValue=function(){return this._ensureValid(),this._viewToModel.length},V.prototype.getAccumulatedValue=function(n){return this._ensureValid(),this._modelToView[n]},V.prototype.getIndexOf=function(n){this._ensureValid();var t=this._viewToModel[n],i=t>0?this._modelToView[t-1]:0;return new ws.b(t,n-i)},V}(),Ir=function(){function V(n,t,i,m,C,K,Ne,_e){this.model=n,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=m,this.tabSize=C,this.wrappingStrategy=K,this.wrappingColumn=Ne,this.wrappingIndent=_e,this._constructLines(!0,null)}return V.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},V.prototype.createCoordinatesConverter=function(){return new _s(this)},V.prototype._constructLines=function(n,t){var i=this;this.lines=[],n&&(this.hiddenAreasIds=[]);for(var m=this.model.getLinesContent(),C=m.length,K=this.createLineBreaksComputer(),Ne=0;Ne<C;Ne++)K.addRequest(m[Ne],t?t[Ne]:null);for(var _e=K.finalize(),qe=[],ut=this.hiddenAreasIds.map(function(rn){return i.model.getDecorationRange(rn)}).sort(Ce.a.compareRangesUsingStarts),St=1,et=0,Wt=-1,Ft=Wt+1<ut.length?et+1:C+2,Ne=0;Ne<C;Ne++){var Vt=Ne+1;Vt===Ft&&(Wt++,St=ut[Wt].startLineNumber,et=ut[Wt].endLineNumber,Ft=Wt+1<ut.length?et+1:C+2);var qt=Vt>=St&&Vt<=et,$t=Ii(_e[Ne],!qt);qe[Ne]=$t.getViewLineCount(),this.lines[Ne]=$t}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new nr(qe)},V.prototype.getHiddenAreas=function(){var n=this;return this.hiddenAreasIds.map(function(t){return n.model.getDecorationRange(t)})},V.prototype._reduceRanges=function(n){var t=this;if(n.length===0)return[];for(var i=n.map(function(ut){return t.model.validateRange(ut)}).sort(Ce.a.compareRangesUsingStarts),m=[],C=i[0].startLineNumber,K=i[0].endLineNumber,Ne=1,_e=i.length;Ne<_e;Ne++){var qe=i[Ne];qe.startLineNumber>K+1?(m.push(new Ce.a(C,1,K,1)),C=qe.startLineNumber,K=qe.endLineNumber):qe.endLineNumber>K&&(K=qe.endLineNumber)}return m.push(new Ce.a(C,1,K,1)),m},V.prototype.setHiddenAreas=function(n){var t=this,i=this._reduceRanges(n),m=this.hiddenAreasIds.map(function(pn){return t.model.getDecorationRange(pn)}).sort(Ce.a.compareRangesUsingStarts);if(i.length===m.length){for(var C=!1,K=0;K<i.length;K++)if(!i[K].equalsRange(m[K])){C=!0;break}if(!C)return!1}for(var Ne=[],_e=0,qe=i;_e<qe.length;_e++){var ut=qe[_e];Ne.push({range:ut,options:hi.a.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,Ne);for(var St=i,et=1,Wt=0,Ft=-1,Vt=Ft+1<St.length?Wt+1:this.lines.length+2,qt=!1,K=0;K<this.lines.length;K++){var $t=K+1;$t===Vt&&(Ft++,et=St[Ft].startLineNumber,Wt=St[Ft].endLineNumber,Vt=Ft+1<St.length?Wt+1:this.lines.length+2);var rn=!1;if($t>=et&&$t<=Wt?this.lines[K].isVisible()&&(this.lines[K]=this.lines[K].setVisible(!1),rn=!0):(qt=!0,this.lines[K].isVisible()||(this.lines[K]=this.lines[K].setVisible(!0),rn=!0)),rn){var yn=this.lines[K].getViewLineCount();this.prefixSumComputer.changeValue(K,yn)}}return qt||this.setHiddenAreas([]),!0},V.prototype.modelPositionIsVisible=function(n,t){return n<1||n>this.lines.length?!1:this.lines[n-1].isVisible()},V.prototype.setTabSize=function(n){return this.tabSize===n?!1:(this.tabSize=n,this._constructLines(!1,null),!0)},V.prototype.setWrappingSettings=function(n,t,i,m){var C=this.fontInfo.equals(n),K=this.wrappingStrategy===t,Ne=this.wrappingColumn===i,_e=this.wrappingIndent===m;if(C&&K&&Ne&&_e)return!1;var qe=C&&K&&!Ne&&_e;this.fontInfo=n,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=m;var ut=null;if(qe){ut=[];for(var St=0,et=this.lines.length;St<et;St++)ut[St]=this.lines[St].getLineBreakData()}return this._constructLines(!1,ut),!0},V.prototype.createLineBreaksComputer=function(){var n=this.wrappingStrategy==="advanced"?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory;return n.createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)},V.prototype.onModelFlushed=function(){this._constructLines(!0,null)},V.prototype.onModelLinesDeleted=function(n,t,i){if(n<=this._validModelVersionId)return null;var m=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,C=this.prefixSumComputer.getAccumulatedValue(i-1);return this.lines.splice(t-1,i-t+1),this.prefixSumComputer.removeValues(t-1,i-t+1),new fo(m,C)},V.prototype.onModelLinesInserted=function(n,t,i,m){if(n<=this._validModelVersionId)return null;for(var C=this.getHiddenAreas(),K=!1,Ne=new ne.a(t,1),_e=0,qe=C;_e<qe.length;_e++){var ut=qe[_e];if(ut.containsPosition(Ne)){K=!0;break}}for(var St=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,et=0,Wt=[],Ft=[],Vt=0,qt=m.length;Vt<qt;Vt++){var $t=Ii(m[Vt],!K);Wt.push($t);var rn=$t.getViewLineCount();et+=rn,Ft[Vt]=rn}return this.lines=this.lines.slice(0,t-1).concat(Wt).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,Ft),new Vn(St,St+et-1)},V.prototype.onModelLineChanged=function(n,t,i){if(n<=this._validModelVersionId)return[!1,null,null,null];var m=t-1,C=this.lines[m].getViewLineCount(),K=this.lines[m].isVisible(),Ne=Ii(i,K);this.lines[m]=Ne;var _e=this.lines[m].getViewLineCount(),qe=!1,ut=0,St=-1,et=0,Wt=-1,Ft=0,Vt=-1;C>_e?(ut=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,St=ut+_e-1,Ft=St+1,Vt=Ft+(C-_e)-1,qe=!0):C<_e?(ut=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,St=ut+C-1,et=St+1,Wt=et+(_e-C)-1,qe=!0):(ut=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,St=ut+_e-1),this.prefixSumComputer.changeValue(m,_e);var qt=ut<=St?new Qn(ut,St):null,$t=et<=Wt?new Vn(et,Wt):null,rn=Ft<=Vt?new fo(Ft,Vt):null;return[qe,qt,$t,rn]},V.prototype.acceptVersionId=function(n){this._validModelVersionId=n,this.lines.length===1&&!this.lines[0].isVisible()&&this.setHiddenAreas([])},V.prototype.getViewLineCount=function(){return this.prefixSumComputer.getTotalValue()},V.prototype._toValidViewLineNumber=function(n){if(n<1)return 1;var t=this.getViewLineCount();return n>t?t:n|0},V.prototype.getActiveIndentGuide=function(n,t,i){n=this._toValidViewLineNumber(n),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);var m=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),C=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),K=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),Ne=this.model.getActiveIndentGuide(m.lineNumber,C.lineNumber,K.lineNumber),_e=this.convertModelPositionToViewPosition(Ne.startLineNumber,1),qe=this.convertModelPositionToViewPosition(Ne.endLineNumber,this.model.getLineMaxColumn(Ne.endLineNumber));return{startLineNumber:_e.lineNumber,endLineNumber:qe.lineNumber,indent:Ne.indent}},V.prototype.getViewLinesIndentGuides=function(n,t){n=this._toValidViewLineNumber(n),t=this._toValidViewLineNumber(t);for(var i=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),m=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),C=[],K=[],Ne=[],_e=i.lineNumber-1,qe=m.lineNumber-1,ut=null,St=_e;St<=qe;St++){var et=this.lines[St];if(et.isVisible()){var Wt=et.getViewLineNumberOfModelPosition(0,St===_e?i.column:1),Ft=et.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(St+1)),Vt=Ft-Wt+1,qt=0;Vt>1&&et.getViewLineMinColumn(this.model,St+1,Ft)===1&&(qt=Wt===0?1:2),K.push(Vt),Ne.push(qt),ut===null&&(ut=new ne.a(St+1,0))}else ut!==null&&(C=C.concat(this.model.getLinesIndentGuides(ut.lineNumber,St)),ut=null)}ut!==null&&(C=C.concat(this.model.getLinesIndentGuides(ut.lineNumber,m.lineNumber)),ut=null);for(var $t=t-n+1,rn=new Array($t),yn=0,pn=0,Cn=C.length;pn<Cn;pn++){var mn=C[pn],Vt=Math.min($t-yn,K[pn]),qt=Ne[pn],_n=void 0;qt===2?_n=0:qt===1?_n=1:_n=Vt;for(var In=0;In<Vt;In++)In===_n&&(mn=0),rn[yn++]=mn}return rn},V.prototype.getViewLineContent=function(n){n=this._toValidViewLineNumber(n);var t=this.prefixSumComputer.getIndexOf(n-1),i=t.index,m=t.remainder;return this.lines[i].getViewLineContent(this.model,i+1,m)},V.prototype.getViewLineLength=function(n){n=this._toValidViewLineNumber(n);var t=this.prefixSumComputer.getIndexOf(n-1),i=t.index,m=t.remainder;return this.lines[i].getViewLineLength(this.model,i+1,m)},V.prototype.getViewLineMinColumn=function(n){n=this._toValidViewLineNumber(n);var t=this.prefixSumComputer.getIndexOf(n-1),i=t.index,m=t.remainder;return this.lines[i].getViewLineMinColumn(this.model,i+1,m)},V.prototype.getViewLineMaxColumn=function(n){n=this._toValidViewLineNumber(n);var t=this.prefixSumComputer.getIndexOf(n-1),i=t.index,m=t.remainder;return this.lines[i].getViewLineMaxColumn(this.model,i+1,m)},V.prototype.getViewLineData=function(n){n=this._toValidViewLineNumber(n);var t=this.prefixSumComputer.getIndexOf(n-1),i=t.index,m=t.remainder;return this.lines[i].getViewLineData(this.model,i+1,m)},V.prototype.getViewLinesData=function(n,t,i){n=this._toValidViewLineNumber(n),t=this._toValidViewLineNumber(t);for(var m=this.prefixSumComputer.getIndexOf(n-1),C=n,K=m.index,Ne=m.remainder,_e=[],qe=K,ut=this.model.getLineCount();qe<ut;qe++){var St=this.lines[qe];if(!St.isVisible())continue;var et=qe===K?Ne:0,Wt=St.getViewLineCount()-et,Ft=!1;C+Wt>t&&(Ft=!0,Wt=t-C+1);var Vt=et+Wt;if(St.getViewLinesData(this.model,qe+1,et,Vt,C-n,i,_e),C+=Wt,Ft)break}return _e},V.prototype.validateViewPosition=function(n,t,i){n=this._toValidViewLineNumber(n);var m=this.prefixSumComputer.getIndexOf(n-1),C=m.index,K=m.remainder,Ne=this.lines[C],_e=Ne.getViewLineMinColumn(this.model,C+1,K),qe=Ne.getViewLineMaxColumn(this.model,C+1,K);t<_e&&(t=_e),t>qe&&(t=qe);var ut=Ne.getModelColumnOfViewPosition(K,t),St=this.model.validatePosition(new ne.a(C+1,ut));return St.equals(i)?new ne.a(n,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},V.prototype.validateViewRange=function(n,t){var i=this.validateViewPosition(n.startLineNumber,n.startColumn,t.getStartPosition()),m=this.validateViewPosition(n.endLineNumber,n.endColumn,t.getEndPosition());return new Ce.a(i.lineNumber,i.column,m.lineNumber,m.column)},V.prototype.convertViewPositionToModelPosition=function(n,t){n=this._toValidViewLineNumber(n);var i=this.prefixSumComputer.getIndexOf(n-1),m=i.index,C=i.remainder,K=this.lines[m].getModelColumnOfViewPosition(C,t);return this.model.validatePosition(new ne.a(m+1,K))},V.prototype.convertViewRangeToModelRange=function(n){var t=this.convertViewPositionToModelPosition(n.startLineNumber,n.startColumn),i=this.convertViewPositionToModelPosition(n.endLineNumber,n.endColumn);return new Ce.a(t.lineNumber,t.column,i.lineNumber,i.column)},V.prototype.convertModelPositionToViewPosition=function(n,t){for(var i=this.model.validatePosition(new ne.a(n,t)),m=i.lineNumber,C=i.column,K=m-1,Ne=!1;K>0&&!this.lines[K].isVisible();)K--,Ne=!0;if(K===0&&!this.lines[K].isVisible())return new ne.a(1,1);var _e=1+(K===0?0:this.prefixSumComputer.getAccumulatedValue(K-1)),qe;return Ne?qe=this.lines[K].getViewPositionOfModelPosition(_e,this.model.getLineMaxColumn(K+1)):qe=this.lines[m-1].getViewPositionOfModelPosition(_e,C),qe},V.prototype.convertModelRangeToViewRange=function(n){var t=this.convertModelPositionToViewPosition(n.startLineNumber,n.startColumn),i=this.convertModelPositionToViewPosition(n.endLineNumber,n.endColumn);return n.startLineNumber===n.endLineNumber&&t.lineNumber!==i.lineNumber&&i.column===this.getViewLineMinColumn(i.lineNumber)?new Ce.a(t.lineNumber,t.column,i.lineNumber-1,this.getViewLineMaxColumn(i.lineNumber-1)):new Ce.a(t.lineNumber,t.column,i.lineNumber,i.column)},V.prototype._getViewLineNumberForModelPosition=function(n,t){var i=n-1;if(this.lines[i].isVisible()){var m=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(m,t)}for(;i>0&&!this.lines[i].isVisible();)i--;if(i===0&&!this.lines[i].isVisible())return 1;var C=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(C,this.model.getLineMaxColumn(i+1))},V.prototype.getAllOverviewRulerDecorations=function(n,t,i){for(var m=this.model.getOverviewRulerDecorations(n,t),C=new oi,K=0,Ne=m;K<Ne.length;K++){var _e=Ne[K],qe=_e.options.overviewRuler,ut=qe?qe.position:0;if(ut===0)continue;var St=qe.getColor(i),et=this._getViewLineNumberForModelPosition(_e.range.startLineNumber,_e.range.startColumn),Wt=this._getViewLineNumberForModelPosition(_e.range.endLineNumber,_e.range.endColumn);C.accept(St,et,Wt,ut)}return C.result},V.prototype.getDecorationsInRange=function(n,t,i){var m=this.convertViewPositionToModelPosition(n.startLineNumber,n.startColumn),C=this.convertViewPositionToModelPosition(n.endLineNumber,n.endColumn);if(C.lineNumber-m.lineNumber<=n.endLineNumber-n.startLineNumber)return this.model.getDecorationsInRange(new Ce.a(m.lineNumber,1,C.lineNumber,C.column),t,i);for(var K=[],Ne=m.lineNumber-1,_e=C.lineNumber-1,qe=null,ut=Ne;ut<=_e;ut++){var St=this.lines[ut];if(St.isVisible())qe===null&&(qe=new ne.a(ut+1,ut===Ne?m.column:1));else if(qe!==null){var et=this.model.getLineMaxColumn(ut);K=K.concat(this.model.getDecorationsInRange(new Ce.a(qe.lineNumber,qe.column,ut,et),t,i)),qe=null}}qe!==null&&(K=K.concat(this.model.getDecorationsInRange(new Ce.a(qe.lineNumber,qe.column,C.lineNumber,C.column),t,i)),qe=null),K.sort(function(pn,Cn){var mn=Ce.a.compareRangesUsingStarts(pn.range,Cn.range);return mn===0?pn.id<Cn.id?-1:pn.id>Cn.id?1:0:mn});for(var Wt=[],Ft=0,Vt=null,qt=0,$t=K;qt<$t.length;qt++){var rn=$t[qt],yn=rn.id;if(Vt===yn)continue;Vt=yn,Wt[Ft++]=rn}return Wt},V}(),or=function(){function V(){}return V.prototype.isVisible=function(){return!0},V.prototype.setVisible=function(n){return n?this:ir.INSTANCE},V.prototype.getLineBreakData=function(){return null},V.prototype.getViewLineCount=function(){return 1},V.prototype.getViewLineContent=function(n,t,i){return n.getLineContent(t)},V.prototype.getViewLineLength=function(n,t,i){return n.getLineLength(t)},V.prototype.getViewLineMinColumn=function(n,t,i){return n.getLineMinColumn(t)},V.prototype.getViewLineMaxColumn=function(n,t,i){return n.getLineMaxColumn(t)},V.prototype.getViewLineData=function(n,t,i){var m=n.getLineTokens(t),C=m.getLineContent();return new zo.c(C,!1,1,C.length+1,0,m.inflate())},V.prototype.getViewLinesData=function(n,t,i,m,C,K,Ne){if(!K[C]){Ne[C]=null;return}Ne[C]=this.getViewLineData(n,t,0)},V.prototype.getModelColumnOfViewPosition=function(n,t){return t},V.prototype.getViewPositionOfModelPosition=function(n,t){return new ne.a(n,t)},V.prototype.getViewLineNumberOfModelPosition=function(n,t){return n},V.INSTANCE=new V,V}(),ir=function(){function V(){}return V.prototype.isVisible=function(){return!1},V.prototype.setVisible=function(n){return n?or.INSTANCE:this},V.prototype.getLineBreakData=function(){return null},V.prototype.getViewLineCount=function(){return 0},V.prototype.getViewLineContent=function(n,t,i){throw new Error("Not supported")},V.prototype.getViewLineLength=function(n,t,i){throw new Error("Not supported")},V.prototype.getViewLineMinColumn=function(n,t,i){throw new Error("Not supported")},V.prototype.getViewLineMaxColumn=function(n,t,i){throw new Error("Not supported")},V.prototype.getViewLineData=function(n,t,i){throw new Error("Not supported")},V.prototype.getViewLinesData=function(n,t,i,m,C,K,Ne){throw new Error("Not supported")},V.prototype.getModelColumnOfViewPosition=function(n,t){throw new Error("Not supported")},V.prototype.getViewPositionOfModelPosition=function(n,t){throw new Error("Not supported")},V.prototype.getViewLineNumberOfModelPosition=function(n,t){throw new Error("Not supported")},V.INSTANCE=new V,V}(),Yo=function(){function V(n,t){this._lineBreakData=n,this._isVisible=t}return V.prototype.isVisible=function(){return this._isVisible},V.prototype.setVisible=function(n){return this._isVisible=n,this},V.prototype.getLineBreakData=function(){return this._lineBreakData},V.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},V.prototype.getInputStartOffsetOfOutputLineIndex=function(n){return qo.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n,0)},V.prototype.getInputEndOffsetOfOutputLineIndex=function(n,t,i){return i+1===this._lineBreakData.breakOffsets.length?n.getLineMaxColumn(t)-1:qo.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i+1,0)},V.prototype.getViewLineContent=function(n,t,i){if(!this._isVisible)throw new Error("Not supported");var m=this.getInputStartOffsetOfOutputLineIndex(i),C=this.getInputEndOffsetOfOutputLineIndex(n,t,i),K=n.getValueInRange({startLineNumber:t,startColumn:m+1,endLineNumber:t,endColumn:C+1});return i>0&&(K=rr(this._lineBreakData.wrappedTextIndentLength)+K),K},V.prototype.getViewLineLength=function(n,t,i){if(!this._isVisible)throw new Error("Not supported");var m=this.getInputStartOffsetOfOutputLineIndex(i),C=this.getInputEndOffsetOfOutputLineIndex(n,t,i),K=C-m;return i>0&&(K=this._lineBreakData.wrappedTextIndentLength+K),K},V.prototype.getViewLineMinColumn=function(n,t,i){if(!this._isVisible)throw new Error("Not supported");return i>0?this._lineBreakData.wrappedTextIndentLength+1:1},V.prototype.getViewLineMaxColumn=function(n,t,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(n,t,i).length+1},V.prototype.getViewLineData=function(n,t,i){if(!this._isVisible)throw new Error("Not supported");var m=this.getInputStartOffsetOfOutputLineIndex(i),C=this.getInputEndOffsetOfOutputLineIndex(n,t,i),K=n.getValueInRange({startLineNumber:t,startColumn:m+1,endLineNumber:t,endColumn:C+1});i>0&&(K=rr(this._lineBreakData.wrappedTextIndentLength)+K);var Ne=i>0?this._lineBreakData.wrappedTextIndentLength+1:1,_e=K.length+1,qe=i+1<this.getViewLineCount(),ut=0;i>0&&(ut=this._lineBreakData.wrappedTextIndentLength);var St=n.getLineTokens(t),et=i===0?0:this._lineBreakData.breakOffsetsVisibleColumn[i-1];return new zo.c(K,qe,Ne,_e,et,St.sliceAndInflate(m,C,ut))},V.prototype.getViewLinesData=function(n,t,i,m,C,K,Ne){if(!this._isVisible)throw new Error("Not supported");for(var _e=i;_e<m;_e++){var qe=C+_e-i;if(!K[qe]){Ne[qe]=null;continue}Ne[qe]=this.getViewLineData(n,t,_e)}},V.prototype.getModelColumnOfViewPosition=function(n,t){if(!this._isVisible)throw new Error("Not supported");var i=t-1;return n>0&&(i<this._lineBreakData.wrappedTextIndentLength?i=0:i-=this._lineBreakData.wrappedTextIndentLength),qo.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n,i)+1},V.prototype.getViewPositionOfModelPosition=function(n,t){if(!this._isVisible)throw new Error("Not supported");var i=qo.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1),m=i.outputLineIndex,C=i.outputOffset+1;return m>0&&(C+=this._lineBreakData.wrappedTextIndentLength),new ne.a(n+m,C)},V.prototype.getViewLineNumberOfModelPosition=function(n,t){if(!this._isVisible)throw new Error("Not supported");var i=qo.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1);return n+i.outputLineIndex},V}(),xo=[""];function rr(V){if(V>=xo.length)for(var n=1;n<=V;n++)xo[n]=Ds(n);return xo[V]}function Ds(V){return new Array(V+1).join(" ")}function Ii(V,n){return V===null?n?or.INSTANCE:ir.INSTANCE:new Yo(V,n)}var Os=function(){function V(n){this._lines=n}return V.prototype._validPosition=function(n){return this._lines.model.validatePosition(n)},V.prototype._validRange=function(n){return this._lines.model.validateRange(n)},V.prototype.convertViewPositionToModelPosition=function(n){return this._validPosition(n)},V.prototype.convertViewRangeToModelRange=function(n){return this._validRange(n)},V.prototype.validateViewPosition=function(n,t){return this._validPosition(t)},V.prototype.validateViewRange=function(n,t){return this._validRange(t)},V.prototype.convertModelPositionToViewPosition=function(n){return this._validPosition(n)},V.prototype.convertModelRangeToViewRange=function(n){return this._validRange(n)},V.prototype.modelPositionIsVisible=function(n){var t=this._lines.model.getLineCount();return!(n.lineNumber<1||n.lineNumber>t)},V}(),fi=function(){function V(n){this.model=n}return V.prototype.dispose=function(){},V.prototype.createCoordinatesConverter=function(){return new Os(this)},V.prototype.getHiddenAreas=function(){return[]},V.prototype.setHiddenAreas=function(n){return!1},V.prototype.setTabSize=function(n){return!1},V.prototype.setWrappingSettings=function(n,t,i,m){return!1},V.prototype.createLineBreaksComputer=function(){var n=[];return{addRequest:function(i,m){n.push(null)},finalize:function(){return n}}},V.prototype.onModelFlushed=function(){},V.prototype.onModelLinesDeleted=function(n,t,i){return new fo(t,i)},V.prototype.onModelLinesInserted=function(n,t,i,m){return new Vn(t,i)},V.prototype.onModelLineChanged=function(n,t,i){return[!1,new Qn(t,t),null,null]},V.prototype.acceptVersionId=function(n){},V.prototype.getViewLineCount=function(){return this.model.getLineCount()},V.prototype.getActiveIndentGuide=function(n,t,i){return{startLineNumber:n,endLineNumber:n,indent:0}},V.prototype.getViewLinesIndentGuides=function(n,t){for(var i=t-n+1,m=new Array(i),C=0;C<i;C++)m[C]=0;return m},V.prototype.getViewLineContent=function(n){return this.model.getLineContent(n)},V.prototype.getViewLineLength=function(n){return this.model.getLineLength(n)},V.prototype.getViewLineMinColumn=function(n){return this.model.getLineMinColumn(n)},V.prototype.getViewLineMaxColumn=function(n){return this.model.getLineMaxColumn(n)},V.prototype.getViewLineData=function(n){var t=this.model.getLineTokens(n),i=t.getLineContent();return new zo.c(i,!1,1,i.length+1,0,t.inflate())},V.prototype.getViewLinesData=function(n,t,i){var m=this.model.getLineCount();n=Math.min(Math.max(1,n),m),t=Math.min(Math.max(1,t),m);for(var C=[],K=n;K<=t;K++){var Ne=K-n;i[Ne]||(C[Ne]=null),C[Ne]=this.getViewLineData(K)}return C},V.prototype.getAllOverviewRulerDecorations=function(n,t,i){for(var m=this.model.getOverviewRulerDecorations(n,t),C=new oi,K=0,Ne=m;K<Ne.length;K++){var _e=Ne[K],qe=_e.options.overviewRuler,ut=qe?qe.position:0;if(ut===0)continue;var St=qe.getColor(i),et=_e.range.startLineNumber,Wt=_e.range.endLineNumber;C.accept(St,et,Wt,ut)}return C.result},V.prototype.getDecorationsInRange=function(n,t,i){return this.model.getDecorationsInRange(n,t,i)},V}(),oi=function(){function V(){this.result=Object.create(null)}return V.prototype.accept=function(n,t,i,m){var C=this.result[n];if(C){var K=C[C.length-3],Ne=C[C.length-1];if(K===m&&Ne+1>=t){i>Ne&&(C[C.length-1]=i);return}C.push(m,t,i)}else this.result[n]=[m,t,i]},V}(),Ms=function(){function V(n,t,i,m,C){this.editorId=n,this.model=t,this.configuration=i,this._linesCollection=m,this._coordinatesConverter=C,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return V.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},V.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype._getOrCreateViewModelDecoration=function(n){var t=n.id,i=this._decorationsCache[t];if(!i){var m=n.range,C=n.options,K=void 0;if(C.isWholeLine){var Ne=this._coordinatesConverter.convertModelPositionToViewPosition(new ne.a(m.startLineNumber,1)),_e=this._coordinatesConverter.convertModelPositionToViewPosition(new ne.a(m.endLineNumber,this.model.getLineMaxColumn(m.endLineNumber)));K=new Ce.a(Ne.lineNumber,Ne.column,_e.lineNumber,_e.column)}else K=this._coordinatesConverter.convertModelRangeToViewRange(m);i=new zo.e(K,C),this._decorationsCache[t]=i}return i},V.prototype.getDecorationsViewportData=function(n){var t=this._cachedModelDecorationsResolver!==null;return t=t&&n.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(n),this._cachedModelDecorationsResolverViewRange=n),this._cachedModelDecorationsResolver},V.prototype._getDecorationsViewportData=function(n){for(var t=this._linesCollection.getDecorationsInRange(n,this.editorId,Object(he.j)(this.configuration.options)),i=n.startLineNumber,m=n.endLineNumber,C=[],K=0,Ne=[],_e=i;_e<=m;_e++)Ne[_e-i]=[];for(var qe=0,ut=t.length;qe<ut;qe++){var St=t[qe],et=St.options,Wt=this._getOrCreateViewModelDecoration(St),Ft=Wt.range;if(C[K++]=Wt,et.inlineClassName)for(var Vt=new zo.a(Ft,et.inlineClassName,et.inlineClassNameAffectsLetterSpacing?3:0),qt=Math.max(i,Ft.startLineNumber),$t=Math.min(m,Ft.endLineNumber),_e=qt;_e<=$t;_e++)Ne[_e-i].push(Vt);if(et.beforeContentClassName&&(i<=Ft.startLineNumber&&Ft.startLineNumber<=m)){var Vt=new zo.a(new Ce.a(Ft.startLineNumber,Ft.startColumn,Ft.startLineNumber,Ft.startColumn),et.beforeContentClassName,1);Ne[Ft.startLineNumber-i].push(Vt)}if(et.afterContentClassName&&(i<=Ft.endLineNumber&&Ft.endLineNumber<=m)){var Vt=new zo.a(new Ce.a(Ft.endLineNumber,Ft.endColumn,Ft.endLineNumber,Ft.endColumn),et.afterContentClassName,2);Ne[Ft.endLineNumber-i].push(Vt)}}return{decorations:C,inlineDecorations:Ne}},V}(),Ts=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),wi=!0,Ko=function(V){Ts(n,V);function n(t,i,m,C,K,Ne){var _e=V.call(this)||this;if(_e.editorId=t,_e.configuration=i,_e.model=m,_e._tokenizeViewportSoon=_e._register(new g.d(function(){return _e.tokenizeViewport()},50)),_e.hasFocus=!1,_e.viewportStartLine=-1,_e.viewportStartLineTrackedRange=null,_e.viewportStartLineDelta=0,wi&&_e.model.isTooLargeForTokenization())_e.lines=new fi(_e.model);else{var qe=_e.configuration.options,ut=qe.get(34),St=qe.get(103),et=qe.get(108),Wt=qe.get(102);_e.lines=new Ir(_e.model,C,K,ut,_e.model.getOptions().tabSize,St,et.wrappingColumn,Wt)}return _e.coordinatesConverter=_e.lines.createCoordinatesConverter(),_e.viewLayout=_e._register(new Ls(_e.configuration,_e.getLineCount(),Ne)),_e._register(_e.viewLayout.onDidScroll(function(Ft){Ft.scrollTopChanged&&_e._tokenizeViewportSoon.schedule();try{var Vt=_e._beginEmit();Vt.emit(new yo(Ft))}finally{_e._endEmit()}})),_e._register(_e.viewLayout.onDidContentSizeChange(function(Ft){try{var Vt=_e._beginEmit();Vt.emit(new xn(Ft))}finally{_e._endEmit()}})),_e.decorations=new Ms(_e.editorId,_e.model,_e.configuration,_e.lines,_e.coordinatesConverter),_e._registerModelEvents(),_e._register(_e.configuration.onDidChange(function(Ft){try{var Vt=_e._beginEmit();_e._onConfigurationChanged(Vt,Ft)}finally{_e._endEmit()}})),_e._register(li.getInstance().onDidChange(function(){try{var Ft=_e._beginEmit();Ft.emit(new go)}finally{_e._endEmit()}})),_e}return n.prototype.dispose=function(){V.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.invalidateMinimapColorCache(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},n.prototype.tokenizeViewport=function(){var t=this.viewLayout.getLinesViewportData(),i=this.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(t.startLineNumber,1)),m=this.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(t.endLineNumber,1));this.model.tokenizeViewport(i.lineNumber,m.lineNumber)},n.prototype.setHasFocus=function(t){this.hasFocus=t},n.prototype._onConfigurationChanged=function(t,i){var m=null;if(this.viewportStartLine!==-1){var C=new ne.a(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));m=this.coordinatesConverter.convertViewPositionToModelPosition(C)}var K=!1,Ne=this.configuration.options,_e=Ne.get(34),qe=Ne.get(103),ut=Ne.get(108),St=Ne.get(102);if(this.lines.setWrappingSettings(_e,qe,ut.wrappingColumn,St)&&(t.emit(new Wn),t.emit(new Dn),t.emit(new bn),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(K=!0)),i.hasChanged(68)&&(this.decorations.reset(),t.emit(new bn)),t.emit(new Mn(i)),this.viewLayout.onConfigurationChanged(i),K&&m){var et=this.coordinatesConverter.convertModelPositionToViewPosition(m),Wt=this.viewLayout.getVerticalOffsetForLineNumber(et.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:Wt+this.viewportStartLineDelta})}},n.prototype._registerModelEvents=function(){var t=this;this._register(this.model.onDidChangeRawContentFast(function(i){try{for(var m=t._beginEmit(),C=!1,K=!1,Ne=i.changes,_e=i.versionId,qe=t.lines.createLineBreaksComputer(),ut=0,St=Ne;ut<St.length;ut++){var et=St[ut];switch(et.changeType){case 4:{for(var Wt=0,Ft=et.detail;Wt<Ft.length;Wt++){var Vt=Ft[Wt];qe.addRequest(Vt,null)}break}case 2:{qe.addRequest(et.detail,null);break}}}for(var qt=qe.finalize(),$t=0,rn=0,yn=Ne;rn<yn.length;rn++){var et=yn[rn];switch(et.changeType){case 1:{t.lines.onModelFlushed(),m.emit(new Wn),t.decorations.reset(),t.viewLayout.onFlushed(t.getLineCount()),C=!0;break}case 3:{var pn=t.lines.onModelLinesDeleted(_e,et.fromLineNumber,et.toLineNumber);pn!==null&&(m.emit(pn),t.viewLayout.onLinesDeleted(pn.fromLineNumber,pn.toLineNumber)),C=!0;break}case 4:{var Cn=qt.slice($t,$t+et.detail.length);$t+=et.detail.length;var mn=t.lines.onModelLinesInserted(_e,et.fromLineNumber,et.toLineNumber,Cn);mn!==null&&(m.emit(mn),t.viewLayout.onLinesInserted(mn.fromLineNumber,mn.toLineNumber)),C=!0;break}case 2:{var _n=qt[$t];$t++;var In=t.lines.onModelLineChanged(_e,et.lineNumber,_n),kn=In[0],Xn=In[1],mn=In[2],pn=In[3];K=kn,Xn&&m.emit(Xn),mn&&(m.emit(mn),t.viewLayout.onLinesInserted(mn.fromLineNumber,mn.toLineNumber)),pn&&(m.emit(pn),t.viewLayout.onLinesDeleted(pn.fromLineNumber,pn.toLineNumber));break}case 5:break}}t.lines.acceptVersionId(_e),t.viewLayout.onHeightMaybeChanged(),!C&&K&&(m.emit(new Dn),m.emit(new bn),t.decorations.onLineMappingChanged())}finally{t._endEmit()}if(t.viewportStartLine=-1,t.configuration.setMaxLineNumber(t.model.getLineCount()),!t.hasFocus&&t.model.getAttachedEditorCount()>=2&&t.viewportStartLineTrackedRange){var jn=t.model._getTrackedRange(t.viewportStartLineTrackedRange);if(jn){var oo=t.coordinatesConverter.convertModelPositionToViewPosition(jn.getStartPosition()),vo=t.viewLayout.getVerticalOffsetForLineNumber(oo.lineNumber);t.viewLayout.setScrollPositionNow({scrollTop:vo+t.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(i){for(var m=[],C=0,K=i.ranges.length;C<K;C++){var Ne=i.ranges[C],_e=t.coordinatesConverter.convertModelPositionToViewPosition(new ne.a(Ne.fromLineNumber,1)).lineNumber,qe=t.coordinatesConverter.convertModelPositionToViewPosition(new ne.a(Ne.toLineNumber,t.model.getLineMaxColumn(Ne.toLineNumber))).lineNumber;m[C]={fromLineNumber:_e,toLineNumber:qe}}try{var ut=t._beginEmit();ut.emit(new io(m))}finally{t._endEmit()}i.tokenizationSupportChanged&&t._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(function(i){try{var m=t._beginEmit();m.emit(new Bn)}finally{t._endEmit()}})),this._register(this.model.onDidChangeOptions(function(i){if(t.lines.setTabSize(t.model.getOptions().tabSize)){t.decorations.onLineMappingChanged(),t.viewLayout.onFlushed(t.getLineCount());try{var m=t._beginEmit();m.emit(new Wn),m.emit(new Dn),m.emit(new bn)}finally{t._endEmit()}}})),this._register(this.model.onDidChangeDecorations(function(i){t.decorations.onModelDecorationsChanged();try{var m=t._beginEmit();m.emit(new bn)}finally{t._endEmit()}}))},n.prototype.setHiddenAreas=function(t){try{var i=this._beginEmit(),m=this.lines.setHiddenAreas(t);m&&(i.emit(new Wn),i.emit(new Dn),i.emit(new bn),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},n.prototype.getVisibleRanges=function(){var t=this.getCompletelyVisibleViewRange(),i=this.coordinatesConverter.convertViewRangeToModelRange(t),m=this.lines.getHiddenAreas();if(m.length===0)return[i];for(var C=[],K=0,Ne=i.startLineNumber,_e=i.startColumn,qe=i.endLineNumber,ut=i.endColumn,St=0,et=m.length;St<et;St++){var Wt=m[St].startLineNumber,Ft=m[St].endLineNumber;if(Ft<Ne)continue;if(Wt>qe)continue;Ne<Wt&&(C[K++]=new Ce.a(Ne,_e,Wt-1,this.model.getLineMaxColumn(Wt-1))),Ne=Ft+1,_e=1}return(Ne<qe||Ne===qe&&_e<ut)&&(C[K++]=new Ce.a(Ne,_e,qe,ut)),C},n.prototype.getCompletelyVisibleViewRange=function(){var t=this.viewLayout.getLinesViewportData(),i=t.completelyVisibleStartLineNumber,m=t.completelyVisibleEndLineNumber;return new Ce.a(i,this.getLineMinColumn(i),m,this.getLineMaxColumn(m))},n.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(t){var i=this.viewLayout.getLinesViewportDataAtScrollTop(t),m=i.completelyVisibleStartLineNumber,C=i.completelyVisibleEndLineNumber;return new Ce.a(m,this.getLineMinColumn(m),C,this.getLineMaxColumn(C))},n.prototype.saveState=function(){var t=this.viewLayout.saveState(),i=t.scrollTop,m=this.viewLayout.getLineNumberAtVerticalOffset(i),C=this.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(m,this.getLineMinColumn(m))),K=this.viewLayout.getVerticalOffsetForLineNumber(m)-i;return{scrollLeft:t.scrollLeft,firstPosition:C,firstPositionDeltaTop:K}},n.prototype.reduceRestoreState=function(t){if(typeof t.firstPosition=="undefined")return this._reduceRestoreStateCompatibility(t);var i=this.model.validatePosition(t.firstPosition),m=this.coordinatesConverter.convertModelPositionToViewPosition(i),C=this.viewLayout.getVerticalOffsetForLineNumber(m.lineNumber)-t.firstPositionDeltaTop;return{scrollLeft:t.scrollLeft,scrollTop:C}},n.prototype._reduceRestoreStateCompatibility=function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTopWithoutViewZones}},n.prototype.getTabSize=function(){return this.model.getOptions().tabSize},n.prototype.getOptions=function(){return this.model.getOptions()},n.prototype.getLineCount=function(){return this.lines.getViewLineCount()},n.prototype.setViewport=function(t,i,m){this.viewportStartLine=t;var C=this.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(t,this.getLineMinColumn(t)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new Ce.a(C.lineNumber,C.column,C.lineNumber,C.column),1);var K=this.viewLayout.getVerticalOffsetForLineNumber(t),Ne=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=Ne-K},n.prototype.getActiveIndentGuide=function(t,i,m){return this.lines.getActiveIndentGuide(t,i,m)},n.prototype.getLinesIndentGuides=function(t,i){return this.lines.getViewLinesIndentGuides(t,i)},n.prototype.getLineContent=function(t){return this.lines.getViewLineContent(t)},n.prototype.getLineLength=function(t){return this.lines.getViewLineLength(t)},n.prototype.getLineMinColumn=function(t){return this.lines.getViewLineMinColumn(t)},n.prototype.getLineMaxColumn=function(t){return this.lines.getViewLineMaxColumn(t)},n.prototype.getLineFirstNonWhitespaceColumn=function(t){var i=fe.q(this.getLineContent(t));return i===-1?0:i+1},n.prototype.getLineLastNonWhitespaceColumn=function(t){var i=fe.D(this.getLineContent(t));return i===-1?0:i+2},n.prototype.getDecorationsInViewport=function(t){return this.decorations.getDecorationsViewportData(t).decorations},n.prototype.getViewLineRenderingData=function(t,i){var m=this.model.mightContainRTL(),C=this.model.mightContainNonBasicASCII(),K=this.getTabSize(),Ne=this.lines.getViewLineData(i),_e=this.decorations.getDecorationsViewportData(t).inlineDecorations,qe=_e[i-t.startLineNumber];return new zo.d(Ne.minColumn,Ne.maxColumn,Ne.content,Ne.continuesWithWrappedLine,m,C,Ne.tokens,qe,K,Ne.startVisibleColumn)},n.prototype.getViewLineData=function(t){return this.lines.getViewLineData(t)},n.prototype.getMinimapLinesRenderingData=function(t,i,m){var C=this.lines.getViewLinesData(t,i,m);return new zo.b(this.getTabSize(),C)},n.prototype.getAllOverviewRulerDecorations=function(t){return this.lines.getAllOverviewRulerDecorations(this.editorId,Object(he.j)(this.configuration.options),t)},n.prototype.invalidateOverviewRulerColorCache=function(){for(var t=this.model.getOverviewRulerDecorations(),i=0,m=t;i<m.length;i++){var C=m[i],K=C.options.overviewRuler;K&&K.invalidateCachedColor()}},n.prototype.invalidateMinimapColorCache=function(){for(var t=this.model.getAllDecorations(),i=0,m=t;i<m.length;i++){var C=m[i],K=C.options.minimap;K&&K.invalidateCachedColor()}},n.prototype.getValueInRange=function(t,i){var m=this.coordinatesConverter.convertViewRangeToModelRange(t);return this.model.getValueInRange(m,i)},n.prototype.getModelLineMaxColumn=function(t){return this.model.getLineMaxColumn(t)},n.prototype.validateModelPosition=function(t){return this.model.validatePosition(t)},n.prototype.validateModelRange=function(t){return this.model.validateRange(t)},n.prototype.deduceModelPositionRelativeToViewPosition=function(t,i,m){var C=this.coordinatesConverter.convertViewPositionToModelPosition(t);this.model.getEOL().length===2&&(i<0?i-=m:i+=m);var K=this.model.getOffsetAt(C),Ne=K+i;return this.model.getPositionAt(Ne)},n.prototype.getEOL=function(){return this.model.getEOL()},n.prototype.getPlainTextToCopy=function(t,i,m){var C=m?`\r
`:this.model.getEOL();t=t.slice(0),t.sort(Ce.a.compareRangesUsingStarts);for(var K=!1,Ne=!1,_e=0,qe=t;_e<qe.length;_e++){var ut=qe[_e];ut.isEmpty()?K=!0:Ne=!0}if(!Ne){if(!i)return"";for(var St=t.map(function(_n){return _n.startLineNumber}),et="",Wt=0;Wt<St.length;Wt++){if(Wt>0&&St[Wt-1]===St[Wt])continue;et+=this.model.getLineContent(St[Wt])+C}return et}if(K&&i){for(var Ft=[],Vt=0,qt=0,$t=t;qt<$t.length;qt++){var rn=$t[qt],yn=rn.startLineNumber;rn.isEmpty()?yn!==Vt&&Ft.push(this.model.getLineContent(yn)):Ft.push(this.model.getValueInRange(rn,m?2:0)),Vt=yn}return Ft.length===1?Ft[0]:Ft}for(var pn=[],Cn=0,mn=t;Cn<mn.length;Cn++){var rn=mn[Cn];rn.isEmpty()||pn.push(this.model.getValueInRange(rn,m?2:0))}return pn.length===1?pn[0]:pn},n.prototype.getRichTextToCopy=function(t,i){var m=this.model.getLanguageIdentifier();if(m.id===1)return null;if(t.length!==1)return null;var C=t[0];if(C.isEmpty()){if(!i)return null;var K=C.startLineNumber;C=new Ce.a(K,this.model.getLineMinColumn(K),K,this.model.getLineMaxColumn(K))}var Ne=this.configuration.options.get(34),_e=this._getColorMap(),qe=Ne.fontFamily===he.b.fontFamily?Ne.fontFamily:"'"+Ne.fontFamily+"', "+he.b.fontFamily;return{mode:m.language,html:'<div style="'+("color: "+_e[1]+";")+("background-color: "+_e[2]+";")+("font-family: "+qe+";")+("font-weight: "+Ne.fontWeight+";")+("font-size: "+Ne.fontSize+"px;")+("line-height: "+Ne.lineHeight+"px;")+'white-space: pre;">'+this._getHTMLToCopy(C,_e)+"</div>"}},n.prototype._getHTMLToCopy=function(t,i){for(var m=t.startLineNumber,C=t.startColumn,K=t.endLineNumber,Ne=t.endColumn,_e=this.getTabSize(),qe="",ut=m;ut<=K;ut++){var St=this.model.getLineTokens(ut),et=St.getLineContent(),Wt=ut===m?C-1:0,Ft=ut===K?Ne-1:et.length;et===""?qe+="<br>":qe+=Object(xi.a)(et,St.inflate(),i,Wt,Ft,_e,L.h)}return qe},n.prototype._getColorMap=function(){var t=$n.B.getColorMap(),i=["#000000"];if(t)for(var m=1,C=t.length;m<C;m++)i[m]=Ho.a.Format.CSS.formatHex(t[m]);return i},n}(Un),ii=e("nnTU"),pi=e("T8No"),As=e("Cg/j"),sr=e("8HsV"),ar=e("sM1p"),so=e("R3nR"),xs=e("746U"),Rs=e("MXAL"),Pr=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ns=function(V){Pr(n,V);function n(t,i){for(var m=V.call(this,0)||this,C=0;C<t.length;C++)m.set(t.charCodeAt(C),1);for(var C=0;C<i.length;C++)m.set(i.charCodeAt(C),2);return m}return n.prototype.get=function(t){return t>=0&&t<256?this._asciiMap[t]:t>=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?3:this._map.get(t)||this._defaultValue},n}(Rs.a),Pi=[],lr=[],Is=function(){function V(n,t){this.classifier=new Ns(n,t)}return V.create=function(n){return new V(n.get(99),n.get(98))},V.prototype.createLineBreaksComputer=function(n,t,i,m){var C=this;t=t|0,i=+i;var K=[],Ne=[];return{addRequest:function(qe,ut){K.push(qe),Ne.push(ut)},finalize:function(){for(var qe=n.typicalFullwidthCharacterWidth/n.typicalHalfwidthCharacterWidth,ut=[],St=0,et=K.length;St<et;St++){var Wt=Ne[St];Wt?ut[St]=Ps(C.classifier,Wt,K[St],t,i,qe,m):ut[St]=js(C.classifier,K[St],t,i,qe,m)}return Pi.length=0,lr.length=0,ut}}},V}();function Ps(V,n,t,i,m,C,K){if(m===-1)return null;var Ne=t.length;if(Ne<=1)return null;var _e=n.breakOffsets,qe=n.breakOffsetsVisibleColumn,ut=Fi(t,i,m,C,K),St=m-ut,et=Pi,Wt=lr,Ft=0,Vt=m,qt=_e.length,$t=0;if($t>=0)for(var rn=Math.abs(qe[$t]-Vt);$t+1<qt;){var yn=Math.abs(qe[$t+1]-Vt);if(yn>=rn)break;rn=yn,$t++}for(;$t<qt;){var pn=$t<0?0:_e[$t],Cn=$t<0?0:qe[$t],mn=0,_n=0,In=0,kn=0;if(Cn<=Vt){for(var Xn=Cn,jn=t.charCodeAt(pn-1),oo=V.get(jn),vo=!0,uo=pn;uo<Ne;uo++){var Io=uo,ho=t.charCodeAt(uo),Wo=void 0,ko=void 0;if(fe.z(ho)?(uo++,Wo=0,ko=2):(Wo=V.get(ho),ko=ji(ho,Xn,i,C)),ur(jn,oo,ho,Wo)&&(mn=Io,_n=Xn),Xn+=ko,Xn>Vt){In=Io,kn=Xn-ko,Xn-_n>St&&(mn=0),vo=!1;break}jn=ho,oo=Wo}if(vo){Ft>0&&(et[Ft]=_e[_e.length-1],Wt[Ft]=qe[_e.length-1],Ft++);break}}if(mn===0){for(var Xn=Cn,ho=t.charCodeAt(pn),Wo=V.get(ho),Ui=!1,uo=pn-1;uo>=0;uo--){var Io=uo+1,jn=t.charCodeAt(uo);if(jn===9){Ui=!0;break}var oo=void 0,fr=void 0;if(fe.A(jn)?(uo--,oo=0,fr=2):(oo=V.get(jn),fr=fe.y(jn)?C:1),Xn<=Vt){if(In===0&&(In=Io,kn=Xn),Xn<=Vt-St)break;if(ur(jn,oo,ho,Wo)){mn=Io,_n=Xn;break}}Xn-=fr,ho=jn,Wo=oo}if(mn!==0){var Hr=St-(kn-_n);if(Hr<=i){var Zo=t.charCodeAt(In),ko=void 0;fe.z(Zo)?ko=2:ko=ji(Zo,kn,i,C),Hr-ko<0&&(mn=0)}}if(Ui){$t--;continue}}for(mn===0&&(mn=In,_n=kn),et[Ft]=mn,Wt[Ft]=_n,Ft++,Vt=_n+St;$t<0||$t<qt&&qe[$t]<_n;)$t++;for(var rn=Math.abs(qe[$t]-Vt);$t+1<qt;){var yn=Math.abs(qe[$t+1]-Vt);if(yn>=rn)break;rn=yn,$t++}}return Ft===0?null:(et.length=Ft,Wt.length=Ft,Pi=n.breakOffsets,lr=n.breakOffsetsVisibleColumn,n.breakOffsets=et,n.breakOffsetsVisibleColumn=Wt,n.wrappedTextIndentLength=ut,n)}function js(V,n,t,i,m,C){if(i===-1)return null;var K=n.length;if(K<=1)return null;var Ne=Fi(n,t,i,m,C),_e=i-Ne,qe=[],ut=[],St=0,et=0,Wt=0,Ft=i,Vt=n.charCodeAt(0),qt=V.get(Vt),$t=ji(Vt,0,t,m),rn=1;fe.z(Vt)&&($t+=1,Vt=n.charCodeAt(1),qt=V.get(Vt),rn++);for(var yn=rn;yn<K;yn++){var pn=yn,Cn=n.charCodeAt(yn),mn=void 0,_n=void 0;fe.z(Cn)?(yn++,mn=0,_n=2):(mn=V.get(Cn),_n=ji(Cn,$t,t,m)),ur(Vt,qt,Cn,mn)&&(et=pn,Wt=$t),$t+=_n,$t>Ft&&((et===0||$t-Wt>_e)&&(et=pn,Wt=$t-_n),qe[St]=et,ut[St]=Wt,St++,Ft=Wt+_e,et=0),Vt=Cn,qt=mn}return St===0?null:(qe[St]=K,ut[St]=$t,new qo(qe,ut,Ne))}function ji(V,n,t,i){return V===9?t-n%t:fe.y(V)?i:1}function dr(V,n){return n-V%n}function ur(V,n,t,i){return t!==32&&(n===2||n===3&&i!==2||i===1||i===3&&n!==1)}function Fi(V,n,t,i,m){var C=0;if(m!==0){var K=fe.q(V);if(K!==-1){for(var Ne=0;Ne<K;Ne++){var _e=V.charCodeAt(Ne)===9?dr(C,n):1;C+=_e}for(var qe=m===3?2:m===2?1:0,Ne=0;Ne<qe;Ne++){var _e=dr(C,n);C+=_e}C+i>t&&(C=0)}}return C}var jr=function(){function V(){}return V.create=function(){return new V},V.prototype.createLineBreaksComputer=function(n,t,i,m){t=t|0,i=+i;var C=[];return{addRequest:function(Ne,_e){C.push(Ne)},finalize:function(){return ki(C,n,t,i,m)}}},V}();function ki(V,n,t,i,m){if(i===-1){for(var C=[],K=0,Ne=V.length;K<Ne;K++)C[K]=null;return C}var _e=Math.round(i*n.typicalHalfwidthCharacterWidth);(m===2||m===3)&&(m=1);var qe=document.createElement("div");U.a.applyFontInfoSlow(qe,n);for(var ut=Object(Bt.a)(1e4),St=[],et=[],Wt=[],Ft=[],Vt=[],K=0;K<V.length;K++){var qt=V[K],$t=0,rn=0,yn=_e;if(m!==0)if($t=fe.q(qt),$t===-1)$t=0;else{for(var pn=0;pn<$t;pn++){var Cn=qt.charCodeAt(pn)===9?t-rn%t:1;rn+=Cn}var mn=Math.ceil(n.spaceWidth*rn);mn+n.typicalFullwidthCharacterWidth>_e?($t=0,rn=0):yn=_e-mn}var _n=qt.substr($t),In=Fr(_n,rn,t,yn,ut);St[K]=$t,et[K]=rn,Wt[K]=_n,Ft[K]=In[0],Vt[K]=In[1]}qe.innerHTML=ut.build(),qe.style.position="absolute",qe.style.top="10000",qe.style.wordWrap="break-word",document.body.appendChild(qe);for(var kn=document.createRange(),Xn=Array.prototype.slice.call(qe.children,0),jn=[],K=0;K<V.length;K++){var oo=Xn[K],vo=kr(kn,oo,Wt[K],Ft[K]);if(vo===null){jn[K]=null;continue}for(var $t=St[K],rn=et[K],uo=Vt[K],Io=[],ho=0,Ne=vo.length;ho<Ne;ho++)Io[ho]=uo[vo[ho]];if($t!==0)for(var ho=0,Ne=vo.length;ho<Ne;ho++)vo[ho]+=$t;jn[K]=new qo(vo,Io,rn)}return document.body.removeChild(qe),jn}function Fr(V,n,t,i,m){m.appendASCIIString('<div style="width:'),m.appendASCIIString(String(i)),m.appendASCIIString('px;">');for(var C=V.length,K=n,Ne=0,_e=[],qe=[],ut=0<C?V.charCodeAt(0):0,St=0;St<C;St++){_e[St]=Ne,qe[St]=K;var et=ut;ut=St+1<C?V.charCodeAt(St+1):0;var Wt=1,Ft=1;switch(et){case 9:Wt=t-K%t,Ft=Wt;for(var Vt=1;Vt<=Wt;Vt++)Vt<Wt?m.write1(160):m.appendASCII(32);break;case 32:ut===32?m.write1(160):m.appendASCII(32);break;case 60:m.appendASCIIString("&lt;");break;case 62:m.appendASCIIString("&gt;");break;case 38:m.appendASCIIString("&amp;");break;case 0:m.appendASCIIString("&#00;");break;case 65279:case 8232:m.write1(65533);break;default:fe.y(et)&&Ft++,m.write1(et)}Ne+=Wt,K+=Ft}return _e[V.length]=Ne,qe[V.length]=K,m.appendASCIIString("</div>"),[_e,qe]}function kr(V,n,t,i){if(t.length<=1)return null;var m=n.firstChild,C=[];return gi(V,m,i,0,null,t.length-1,null,C),C.length===0?null:(C.push(t.length),C)}function gi(V,n,t,i,m,C,K,Ne){if(i===C)return;if(m=m||cr(V,n,t[i],t[i+1]),K=K||cr(V,n,t[C],t[C+1]),Math.abs(m[0].top-K[0].top)<=.1)return;if(i+1===C){Ne.push(C);return}var _e=i+(C-i)/2|0,qe=cr(V,n,t[_e],t[_e+1]);gi(V,n,t,i,m,_e,qe,Ne),gi(V,n,t,_e,qe,C,K,Ne)}function cr(V,n,t,i){return V.setStart(n,t),V.setEnd(n,i),V.getClientRects()}var _i=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var K in C)C.hasOwnProperty(K)&&(m[K]=C[K])},V(t,i)};return function(n,t){V(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Wr=function(V,n,t,i){var m=arguments.length,C=m<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,t):i,K;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(V,n,t,i);else for(var Ne=V.length-1;Ne>=0;Ne--)(K=V[Ne])&&(C=(m<3?K(C):m>3?K(n,t,C):K(n,t))||C);return m>3&&C&&Object.defineProperty(n,t,C),C},ri=function(V,n){return function(t,i){n(t,i,V)}},mi=0,hr=function(){function V(n,t,i,m,C,K){this.model=n,this.viewModel=t,this.cursor=i,this.view=m,this.hasRealView=C,this.listenersToRemove=K}return V.prototype.dispose=function(){Object(z.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},V}(),Fs=function(V){_i(n,V);function n(t,i,m,C,K,Ne,_e,qe,ut,St){var et=V.call(this)||this;et._onDidDispose=et._register(new H.a),et.onDidDispose=et._onDidDispose.event,et._onDidChangeModelContent=et._register(new H.a),et.onDidChangeModelContent=et._onDidChangeModelContent.event,et._onDidChangeModelLanguage=et._register(new H.a),et.onDidChangeModelLanguage=et._onDidChangeModelLanguage.event,et._onDidChangeModelLanguageConfiguration=et._register(new H.a),et.onDidChangeModelLanguageConfiguration=et._onDidChangeModelLanguageConfiguration.event,et._onDidChangeModelOptions=et._register(new H.a),et.onDidChangeModelOptions=et._onDidChangeModelOptions.event,et._onDidChangeModelDecorations=et._register(new H.a),et.onDidChangeModelDecorations=et._onDidChangeModelDecorations.event,et._onDidChangeConfiguration=et._register(new H.a),et.onDidChangeConfiguration=et._onDidChangeConfiguration.event,et._onDidChangeModel=et._register(new H.a),et.onDidChangeModel=et._onDidChangeModel.event,et._onDidChangeCursorPosition=et._register(new H.a),et.onDidChangeCursorPosition=et._onDidChangeCursorPosition.event,et._onDidChangeCursorSelection=et._register(new H.a),et.onDidChangeCursorSelection=et._onDidChangeCursorSelection.event,et._onDidAttemptReadOnlyEdit=et._register(new H.a),et.onDidAttemptReadOnlyEdit=et._onDidAttemptReadOnlyEdit.event,et._onDidLayoutChange=et._register(new H.a),et.onDidLayoutChange=et._onDidLayoutChange.event,et._editorTextFocus=et._register(new ei),et.onDidFocusEditorText=et._editorTextFocus.onDidChangeToTrue,et.onDidBlurEditorText=et._editorTextFocus.onDidChangeToFalse,et._editorWidgetFocus=et._register(new ei),et.onDidFocusEditorWidget=et._editorWidgetFocus.onDidChangeToTrue,et.onDidBlurEditorWidget=et._editorWidgetFocus.onDidChangeToFalse,et._onWillType=et._register(new H.a),et.onWillType=et._onWillType.event,et._onDidType=et._register(new H.a),et.onDidType=et._onDidType.event,et._onDidCompositionStart=et._register(new H.a),et.onDidCompositionStart=et._onDidCompositionStart.event,et._onDidCompositionEnd=et._register(new H.a),et.onDidCompositionEnd=et._onDidCompositionEnd.event,et._onDidPaste=et._register(new H.a),et.onDidPaste=et._onDidPaste.event,et._onMouseUp=et._register(new H.a),et.onMouseUp=et._onMouseUp.event,et._onMouseDown=et._register(new H.a),et.onMouseDown=et._onMouseDown.event,et._onMouseDrag=et._register(new H.a),et.onMouseDrag=et._onMouseDrag.event,et._onMouseDrop=et._register(new H.a),et.onMouseDrop=et._onMouseDrop.event,et._onContextMenu=et._register(new H.a),et.onContextMenu=et._onContextMenu.event,et._onMouseMove=et._register(new H.a),et.onMouseMove=et._onMouseMove.event,et._onMouseLeave=et._register(new H.a),et.onMouseLeave=et._onMouseLeave.event,et._onMouseWheel=et._register(new H.a),et.onMouseWheel=et._onMouseWheel.event,et._onKeyUp=et._register(new H.a),et.onKeyUp=et._onKeyUp.event,et._onKeyDown=et._register(new H.a),et.onKeyDown=et._onKeyDown.event,et._onDidContentSizeChange=et._register(new H.a),et.onDidContentSizeChange=et._onDidContentSizeChange.event,et._onDidScrollChange=et._register(new H.a),et.onDidScrollChange=et._onDidScrollChange.event,et._onDidChangeViewZones=et._register(new H.a),et.onDidChangeViewZones=et._onDidChangeViewZones.event,et._domElement=t,et._id=++mi,et._decorationTypeKeysToIds={},et._decorationTypeSubtypes={},et.isSimpleWidget=m.isSimpleWidget||!1,et._telemetryData=m.telemetryData,i=i||{},et._configuration=et._register(et._createConfiguration(i,St)),et._register(et._configuration.onDidChange(function(rn){et._onDidChangeConfiguration.fire(rn);var yn=et._configuration.options;if(rn.hasChanged(107)){var pn=yn.get(107);et._onDidLayoutChange.fire(pn)}})),et._contextKeyService=et._register(_e.createScoped(et._domElement)),et._notificationService=ut,et._codeEditorService=K,et._commandService=Ne,et._themeService=qe,et._register(new ks(et,et._contextKeyService)),et._register(new Ws(et,et._contextKeyService)),et._instantiationService=C.createChild(new sr.a([pi.c,et._contextKeyService])),et._modelData=null,et._contributions={},et._actions={},et._focusTracker=new Br(t),et._focusTracker.onChange(function(){et._editorWidgetFocus.setValue(et._focusTracker.hasFocus())}),et._contentWidgets={},et._overlayWidgets={};var Wt;Array.isArray(m.contributions)?Wt=m.contributions:Wt=A.d.getEditorContributions();for(var Ft=0,Vt=Wt;Ft<Vt.length;Ft++){var qt=Vt[Ft];try{var $t=et._instantiationService.createInstance(qt.ctor,et);et._contributions[qt.id]=$t}catch(rn){Object(N.e)(rn)}}return A.d.getEditorActions().forEach(function(rn){var yn=new Es.a(rn.id,rn.label,rn.alias,Object(xs.n)(rn.precondition),function(){return et._instantiationService.invokeFunction(function(pn){return Promise.resolve(rn.runEditorCommand(pn,et,null))})},et._contextKeyService);et._actions[yn.id]=yn}),et._codeEditorService.addCodeEditor(et),et}return n.prototype._createConfiguration=function(t,i){return new U.a(this.isSimpleWidget,t,this._domElement,i)},n.prototype.getId=function(){return this.getEditorType()+":"+this._id},n.prototype.getEditorType=function(){return _o.a.ICodeEditor},n.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var t=Object.keys(this._contributions),i=0,m=t.length;i<m;i++){var C=t[i];this._contributions[C].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),V.prototype.dispose.call(this)},n.prototype.invokeWithinContext=function(t){return this._instantiationService.invokeFunction(t)},n.prototype.updateOptions=function(t){this._configuration.updateOptions(t)},n.prototype.getOptions=function(){return this._configuration.options},n.prototype.getOption=function(t){return this._configuration.options.get(t)},n.prototype.getRawOptions=function(){return this._configuration.getRawOptions()},n.prototype.getValue=function(t){if(t===void 0&&(t=null),!this._modelData)return"";var i=!!(t&&t.preserveBOM),m=0;return t&&t.lineEnding&&t.lineEnding===`
`?m=1:t&&t.lineEnding&&t.lineEnding===`\r
`&&(m=2),this._modelData.model.getValue(m,i)},n.prototype.setValue=function(t){if(!this._modelData)return;this._modelData.model.setValue(t)},n.prototype.getModel=function(){return this._modelData?this._modelData.model:null},n.prototype.setModel=function(t){t===void 0&&(t=null);var i=t;if(this._modelData===null&&i===null)return;if(this._modelData&&this._modelData.model===i)return;var m=this.hasTextFocus(),C=this._detachModel();this._attachModel(i),m&&this.hasModel()&&this.focus();var K={oldModelUrl:C?C.uri:null,newModelUrl:i?i.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(K),this._postDetachModelCleanup(C)},n.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var t in this._decorationTypeSubtypes){var i=this._decorationTypeSubtypes[t];for(var m in i)this._removeDecorationType(t+"-"+m)}this._decorationTypeSubtypes={}}},n.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},n.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},n._getVerticalOffsetForPosition=function(t,i,m){var C=t.model.validatePosition({lineNumber:i,column:m}),K=t.viewModel.coordinatesConverter.convertModelPositionToViewPosition(C);return t.viewModel.viewLayout.getVerticalOffsetForLineNumber(K.lineNumber)},n.prototype.getTopForLineNumber=function(t){return this._modelData?n._getVerticalOffsetForPosition(this._modelData,t,1):-1},n.prototype.getTopForPosition=function(t,i){return this._modelData?n._getVerticalOffsetForPosition(this._modelData,t,i):-1},n.prototype.setHiddenAreas=function(t){this._modelData&&this._modelData.viewModel.setHiddenAreas(t.map(function(i){return Ce.a.lift(i)}))},n.prototype.getVisibleColumnFromPosition=function(t){if(!this._modelData)return t.column;var i=this._modelData.model.validatePosition(t),m=this._modelData.model.getOptions().tabSize;return Oe.a.visibleColumnFromColumn(this._modelData.model.getLineContent(i.lineNumber),i.column,m)+1},n.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},n.prototype.setPosition=function(t){if(!this._modelData)return;if(!ne.a.isIPosition(t))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:t.lineNumber,selectionStartColumn:t.column,positionLineNumber:t.lineNumber,positionColumn:t.column}])},n.prototype._sendRevealRange=function(t,i,m,C){if(!this._modelData)return;if(!Ce.a.isIRange(t))throw new Error("Invalid arguments");var K=this._modelData.model.validateRange(t),Ne=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(K);this._modelData.cursor.emitCursorRevealRange("api",Ne,i,m,C)},n.prototype.revealLine=function(t,i){i===void 0&&(i=0),this._revealLine(t,0,i)},n.prototype.revealLineInCenter=function(t,i){i===void 0&&(i=0),this._revealLine(t,1,i)},n.prototype.revealLineInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealLine(t,2,i)},n.prototype._revealLine=function(t,i,m){if(typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Ce.a(t,1,t,1),i,!1,m)},n.prototype.revealPosition=function(t,i){i===void 0&&(i=0),this._revealPosition(t,0,!0,i)},n.prototype.revealPositionInCenter=function(t,i){i===void 0&&(i=0),this._revealPosition(t,1,!0,i)},n.prototype.revealPositionInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealPosition(t,2,!0,i)},n.prototype._revealPosition=function(t,i,m,C){if(!ne.a.isIPosition(t))throw new Error("Invalid arguments");this._sendRevealRange(new Ce.a(t.lineNumber,t.column,t.lineNumber,t.column),i,m,C)},n.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},n.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},n.prototype.setSelection=function(t){var i=vt.a.isISelection(t),m=Ce.a.isIRange(t);if(!i&&!m)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(t);else if(m){var C={selectionStartLineNumber:t.startLineNumber,selectionStartColumn:t.startColumn,positionLineNumber:t.endLineNumber,positionColumn:t.endColumn};this._setSelectionImpl(C)}},n.prototype._setSelectionImpl=function(t){if(!this._modelData)return;var i=new vt.a(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn);this._modelData.cursor.setSelections("api",[i])},n.prototype.revealLines=function(t,i,m){m===void 0&&(m=0),this._revealLines(t,i,0,m)},n.prototype.revealLinesInCenter=function(t,i,m){m===void 0&&(m=0),this._revealLines(t,i,1,m)},n.prototype.revealLinesInCenterIfOutsideViewport=function(t,i,m){m===void 0&&(m=0),this._revealLines(t,i,2,m)},n.prototype._revealLines=function(t,i,m,C){if(typeof t!="number"||typeof i!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Ce.a(t,1,i,1),m,!1,C)},n.prototype.revealRange=function(t,i,m,C){i===void 0&&(i=0),m===void 0&&(m=!1),C===void 0&&(C=!0),this._revealRange(t,m?1:0,C,i)},n.prototype.revealRangeInCenter=function(t,i){i===void 0&&(i=0),this._revealRange(t,1,!0,i)},n.prototype.revealRangeInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealRange(t,2,!0,i)},n.prototype.revealRangeAtTop=function(t,i){i===void 0&&(i=0),this._revealRange(t,3,!0,i)},n.prototype._revealRange=function(t,i,m,C){if(!Ce.a.isIRange(t))throw new Error("Invalid arguments");this._sendRevealRange(Ce.a.lift(t),i,m,C)},n.prototype.setSelections=function(t,i){if(i===void 0&&(i="api"),!this._modelData)return;if(!t||t.length===0)throw new Error("Invalid arguments");for(var m=0,C=t.length;m<C;m++)if(!vt.a.isISelection(t[m]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(i,t)},n.prototype.getContentWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1},n.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},n.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},n.prototype.getContentHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1},n.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},n.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},n.prototype.setScrollLeft=function(t){if(!this._modelData)return;if(typeof t!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:t})},n.prototype.setScrollTop=function(t){if(!this._modelData)return;if(typeof t!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:t})},n.prototype.setScrollPosition=function(t){if(!this._modelData)return;this._modelData.viewModel.viewLayout.setScrollPositionNow(t)},n.prototype.saveViewState=function(){if(!this._modelData)return null;for(var t={},i=Object.keys(this._contributions),m=0,C=i;m<C.length;m++){var K=C[m],Ne=this._contributions[K];typeof Ne.saveViewState=="function"&&(t[K]=Ne.saveViewState())}var _e=this._modelData.cursor.saveState(),qe=this._modelData.viewModel.saveState();return{cursorState:_e,viewState:qe,contributionsState:t}},n.prototype.restoreViewState=function(t){if(!this._modelData||!this._modelData.hasRealView)return;var i=t;if(i&&i.cursorState&&i.viewState){var m=i.cursorState;Array.isArray(m)?this._modelData.cursor.restoreState(m):this._modelData.cursor.restoreState([m]);for(var C=i.contributionsState||{},K=Object.keys(this._contributions),Ne=0,_e=K.length;Ne<_e;Ne++){var qe=K[Ne],ut=this._contributions[qe];typeof ut.restoreViewState=="function"&&ut.restoreViewState(C[qe])}var St=this._modelData.viewModel.reduceRestoreState(i.viewState);this._modelData.view.restoreState(St)}},n.prototype.getContribution=function(t){return this._contributions[t]||null},n.prototype.getActions=function(){for(var t=[],i=Object.keys(this._actions),m=0,C=i.length;m<C;m++){var K=i[m];t.push(this._actions[K])}return t},n.prototype.getSupportedActions=function(){var t=this.getActions();return t=t.filter(function(i){return i.isSupported()}),t},n.prototype.getAction=function(t){return this._actions[t]||null},n.prototype.trigger=function(t,i,m){if(m=m||{},i===_o.b.Type){if(!this._modelData||typeof m.text!="string"||m.text.length===0)return;t==="keyboard"&&this._onWillType.fire(m.text),this._modelData.cursor.trigger(t,i,m),t==="keyboard"&&this._onDidType.fire(m.text);return}if(i===_o.b.Paste){if(!this._modelData||typeof m.text!="string"||m.text.length===0)return;var C=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(t,i,m);var K=this._modelData.cursor.getSelection().getStartPosition();t==="keyboard"&&this._onDidPaste.fire({range:new Ce.a(C.lineNumber,C.column,K.lineNumber,K.column),mode:m.mode});return}var Ne=this.getAction(i);if(Ne){Promise.resolve(Ne.run()).then(void 0,N.e);return}if(!this._modelData)return;if(this._triggerEditorCommand(t,i,m))return;this._modelData.cursor.trigger(t,i,m),i===_o.b.CompositionStart&&this._onDidCompositionStart.fire(),i===_o.b.CompositionEnd&&this._onDidCompositionEnd.fire()},n.prototype._triggerEditorCommand=function(t,i,m){var C=this,K=A.d.getEditorCommand(i);return K?(m=m||{},m.source=t,this._instantiationService.invokeFunction(function(Ne){Promise.resolve(K.runEditorCommand(Ne,C,m)).then(void 0,N.e)}),!0):!1},n.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},n.prototype.pushUndoStop=function(){return this._modelData?this._configuration.options.get(68)?!1:(this._modelData.model.pushStackElement(),!0):!1},n.prototype.executeEdits=function(t,i,m){if(!this._modelData)return!1;if(this._configuration.options.get(68))return!1;var C;return m?Array.isArray(m)?C=function(){return m}:C=m:C=function(){return null},this._modelData.cursor.executeEdits(t,i,C),!0},n.prototype.executeCommand=function(t,i){if(!this._modelData)return;this._modelData.cursor.trigger(t,_o.b.ExecuteCommand,i)},n.prototype.executeCommands=function(t,i){if(!this._modelData)return;this._modelData.cursor.trigger(t,_o.b.ExecuteCommands,i)},n.prototype.changeDecorations=function(t){return this._modelData?this._modelData.model.changeDecorations(t,this._id):null},n.prototype.getLineDecorations=function(t){return this._modelData?this._modelData.model.getLineDecorations(t,this._id,Object(he.j)(this._configuration.options)):null},n.prototype.deltaDecorations=function(t,i){return this._modelData?t.length===0&&i.length===0?t:this._modelData.model.deltaDecorations(t,i,this._id):[]},n.prototype.removeDecorations=function(t){var i=this._decorationTypeKeysToIds[t];i&&this.deltaDecorations(i,[]),this._decorationTypeKeysToIds.hasOwnProperty(t)&&delete this._decorationTypeKeysToIds[t],this._decorationTypeSubtypes.hasOwnProperty(t)&&delete this._decorationTypeSubtypes[t]},n.prototype.getLayoutInfo=function(){var t=this._configuration.options,i=t.get(107);return i},n.prototype.createOverviewRuler=function(t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(t)},n.prototype.getContainerDomNode=function(){return this._domElement},n.prototype.getDomNode=function(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode},n.prototype.delegateVerticalScrollbarMouseDown=function(t){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.delegateVerticalScrollbarMouseDown(t)},n.prototype.layout=function(t){this._configuration.observeReferenceElement(t),this.render()},n.prototype.focus=function(){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.focus()},n.prototype.hasTextFocus=function(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()},n.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},n.prototype.addContentWidget=function(t){var i={widget:t,position:t.getPosition()};this._contentWidgets.hasOwnProperty(t.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[t.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(i)},n.prototype.layoutContentWidget=function(t){var i=t.getId();if(this._contentWidgets.hasOwnProperty(i)){var m=this._contentWidgets[i];m.position=t.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(m)}},n.prototype.removeContentWidget=function(t){var i=t.getId();if(this._contentWidgets.hasOwnProperty(i)){var m=this._contentWidgets[i];delete this._contentWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(m)}},n.prototype.addOverlayWidget=function(t){var i={widget:t,position:t.getPosition()};this._overlayWidgets.hasOwnProperty(t.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[t.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(i)},n.prototype.layoutOverlayWidget=function(t){var i=t.getId();if(this._overlayWidgets.hasOwnProperty(i)){var m=this._overlayWidgets[i];m.position=t.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(m)}},n.prototype.removeOverlayWidget=function(t){var i=t.getId();if(this._overlayWidgets.hasOwnProperty(i)){var m=this._overlayWidgets[i];delete this._overlayWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(m)}},n.prototype.changeViewZones=function(t){if(!this._modelData||!this._modelData.hasRealView)return;var i=this._modelData.view.change(t);i&&this._onDidChangeViewZones.fire()},n.prototype.getTargetAtClientPoint=function(t,i){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(t,i)},n.prototype.getScrolledVisiblePosition=function(t){if(!this._modelData||!this._modelData.hasRealView)return null;var i=this._modelData.model.validatePosition(t),m=this._configuration.options,C=m.get(107),K=n._getVerticalOffsetForPosition(this._modelData,i.lineNumber,i.column)-this.getScrollTop(),Ne=this._modelData.view.getOffsetForColumn(i.lineNumber,i.column)+C.glyphMarginWidth+C.lineNumbersWidth+C.decorationsWidth-this.getScrollLeft();return{top:K,left:Ne,height:m.get(49)}},n.prototype.getOffsetForColumn=function(t,i){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(t,i)},n.prototype.render=function(t){if(t===void 0&&(t=!1),!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.render(!0,t)},n.prototype.setAriaOptions=function(t){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.setAriaOptions(t)},n.prototype.applyFontInfo=function(t){U.a.applyFontInfoSlow(t,this._configuration.options.get(34))},n.prototype._attachModel=function(t){var i=this;if(!t){this._modelData=null;return}var m=[];this._domElement.setAttribute("data-mode-id",t.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(t.isDominatedByLongLines()),this._configuration.setMaxLineNumber(t.getLineCount()),t.onBeforeAttached();var C=new Ko(this._id,this._configuration,t,jr.create(),Is.create(this._configuration.options),function(Ft){return J.W(Ft)});m.push(t.onDidChangeDecorations(function(Ft){return i._onDidChangeModelDecorations.fire(Ft)})),m.push(t.onDidChangeLanguage(function(Ft){i._domElement.setAttribute("data-mode-id",t.getLanguageIdentifier().language),i._onDidChangeModelLanguage.fire(Ft)})),m.push(t.onDidChangeLanguageConfiguration(function(Ft){return i._onDidChangeModelLanguageConfiguration.fire(Ft)})),m.push(t.onDidChangeContent(function(Ft){return i._onDidChangeModelContent.fire(Ft)})),m.push(t.onDidChangeOptions(function(Ft){return i._onDidChangeModelOptions.fire(Ft)})),m.push(t.onWillDispose(function(){return i.setModel(null)}));var K=new Rr(this._configuration,t,C);m.push(K.onDidReachMaxCursorCount(function(){i._notificationService.warn(re.a("cursors.maximum","The number of cursors has been limited to {0}.",Rr.MAX_CURSOR_COUNT))})),m.push(K.onDidAttemptReadOnlyEdit(function(){i._onDidAttemptReadOnlyEdit.fire(void 0)})),m.push(K.onDidChange(function(Ft){for(var Vt=[],qt=0,$t=Ft.selections.length;qt<$t;qt++)Vt[qt]=Ft.selections[qt].getPosition();var rn={position:Vt[0],secondaryPositions:Vt.slice(1),reason:Ft.reason,source:Ft.source};i._onDidChangeCursorPosition.fire(rn);var yn={selection:Ft.selections[0],secondarySelections:Ft.selections.slice(1),modelVersionId:Ft.modelVersionId,oldSelections:Ft.oldSelections,oldModelVersionId:Ft.oldModelVersionId,source:Ft.source,reason:Ft.reason};i._onDidChangeCursorSelection.fire(yn)}));var Ne=this._createView(C,K),_e=Ne[0],qe=Ne[1];if(qe){this._domElement.appendChild(_e.domNode.domNode);for(var ut=Object.keys(this._contentWidgets),St=0,et=ut.length;St<et;St++){var Wt=ut[St];_e.addContentWidget(this._contentWidgets[Wt])}ut=Object.keys(this._overlayWidgets);for(var St=0,et=ut.length;St<et;St++){var Wt=ut[St];_e.addOverlayWidget(this._overlayWidgets[Wt])}_e.render(!1,!0),_e.domNode.domNode.setAttribute("data-uri",t.uri.toString())}this._modelData=new hr(t,C,K,_e,qe,m)},n.prototype._createView=function(t,i){var m=this,C;this.isSimpleWidget?C={executeEditorCommand:function(qe,ut){qe.runCoreEditorCommand(i,ut)},paste:function(qe,ut,St,et,Wt){m.trigger(qe,_o.b.Paste,{text:ut,pasteOnNewLine:St,multicursorText:et,mode:Wt})},type:function(qe,ut){m.trigger(qe,_o.b.Type,{text:ut})},replacePreviousChar:function(qe,ut,St){m.trigger(qe,_o.b.ReplacePreviousChar,{text:ut,replaceCharCnt:St})},compositionStart:function(qe){m.trigger(qe,_o.b.CompositionStart,void 0)},compositionEnd:function(qe){m.trigger(qe,_o.b.CompositionEnd,void 0)},cut:function(qe){m.trigger(qe,_o.b.Cut,void 0)}}:C={executeEditorCommand:function(qe,ut){qe.runCoreEditorCommand(i,ut)},paste:function(qe,ut,St,et,Wt){m._commandService.executeCommand(_o.b.Paste,{text:ut,pasteOnNewLine:St,multicursorText:et,mode:Wt})},type:function(qe,ut){m._commandService.executeCommand(_o.b.Type,{text:ut})},replacePreviousChar:function(qe,ut,St){m._commandService.executeCommand(_o.b.ReplacePreviousChar,{text:ut,replaceCharCnt:St})},compositionStart:function(qe){m._commandService.executeCommand(_o.b.CompositionStart,{})},compositionEnd:function(qe){m._commandService.executeCommand(_o.b.CompositionEnd,{})},cut:function(qe){m._commandService.executeCommand(_o.b.Cut,{})}};var K=new ht(t);K.onDidContentSizeChange=function(_e){return m._onDidContentSizeChange.fire(_e)},K.onDidScroll=function(_e){return m._onDidScrollChange.fire(_e)},K.onDidGainFocus=function(){return m._editorTextFocus.setValue(!0)},K.onDidLoseFocus=function(){return m._editorTextFocus.setValue(!1)},K.onContextMenu=function(_e){return m._onContextMenu.fire(_e)},K.onMouseDown=function(_e){return m._onMouseDown.fire(_e)},K.onMouseUp=function(_e){return m._onMouseUp.fire(_e)},K.onMouseDrag=function(_e){return m._onMouseDrag.fire(_e)},K.onMouseDrop=function(_e){return m._onMouseDrop.fire(_e)},K.onKeyUp=function(_e){return m._onKeyUp.fire(_e)},K.onMouseMove=function(_e){return m._onMouseMove.fire(_e)},K.onMouseLeave=function(_e){return m._onMouseLeave.fire(_e)},K.onMouseWheel=function(_e){return m._onMouseWheel.fire(_e)},K.onKeyDown=function(_e){return m._onKeyDown.fire(_e)};var Ne=new bs(C,this._configuration,this._themeService,t,i,K);return[Ne,!0]},n.prototype._postDetachModelCleanup=function(t){t&&t.removeAllDecorationsWithOwnerId(this._id)},n.prototype._detachModel=function(){if(!this._modelData)return null;var t=this._modelData.model,i=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),i&&this._domElement.removeChild(i),t},n.prototype._removeDecorationType=function(t){this._codeEditorService.removeDecorationType(t)},n.prototype.hasModel=function(){return this._modelData!==null},n=Wr([ri(3,As.a),ri(4,c.a),ri(5,ii.b),ri(6,pi.c),ri(7,X.c),ri(8,ar.a),ri(9,so.b)],n),n}(z.a),ei=function(V){_i(n,V);function n(){var t=V.call(this)||this;return t._onDidChangeToTrue=t._register(new H.a),t.onDidChangeToTrue=t._onDidChangeToTrue.event,t._onDidChangeToFalse=t._register(new H.a),t.onDidChangeToFalse=t._onDidChangeToFalse.event,t._value=0,t}return n.prototype.setValue=function(t){var i=t?2:1;if(this._value===i)return;this._value=i,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire()},n}(z.a),ks=function(V){_i(n,V);function n(t,i){var m=V.call(this)||this;return m._editor=t,i.createKey("editorId",t.getId()),m._editorSimpleInput=Jn.a.editorSimpleInput.bindTo(i),m._editorFocus=Jn.a.focus.bindTo(i),m._textInputFocus=Jn.a.textInputFocus.bindTo(i),m._editorTextFocus=Jn.a.editorTextFocus.bindTo(i),m._editorTabMovesFocus=Jn.a.tabMovesFocus.bindTo(i),m._editorReadonly=Jn.a.readOnly.bindTo(i),m._hasMultipleSelections=Jn.a.hasMultipleSelections.bindTo(i),m._hasNonEmptySelection=Jn.a.hasNonEmptySelection.bindTo(i),m._canUndo=Jn.a.canUndo.bindTo(i),m._canRedo=Jn.a.canRedo.bindTo(i),m._register(m._editor.onDidChangeConfiguration(function(){return m._updateFromConfig()})),m._register(m._editor.onDidChangeCursorSelection(function(){return m._updateFromSelection()})),m._register(m._editor.onDidFocusEditorWidget(function(){return m._updateFromFocus()})),m._register(m._editor.onDidBlurEditorWidget(function(){return m._updateFromFocus()})),m._register(m._editor.onDidFocusEditorText(function(){return m._updateFromFocus()})),m._register(m._editor.onDidBlurEditorText(function(){return m._updateFromFocus()})),m._register(m._editor.onDidChangeModel(function(){return m._updateFromModel()})),m._register(m._editor.onDidChangeConfiguration(function(){return m._updateFromModel()})),m._updateFromConfig(),m._updateFromSelection(),m._updateFromFocus(),m._updateFromModel(),m._editorSimpleInput.set(m._editor.isSimpleWidget),m}return n.prototype._updateFromConfig=function(){var t=this._editor.getOptions();this._editorTabMovesFocus.set(t.get(106)),this._editorReadonly.set(t.get(68))},n.prototype._updateFromSelection=function(){var t=this._editor.getSelections();t?(this._hasMultipleSelections.set(t.length>1),this._hasNonEmptySelection.set(t.some(function(i){return!i.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},n.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},n.prototype._updateFromModel=function(){var t=this._editor.getModel();this._canUndo.set(Boolean(t&&t.canUndo())),this._canRedo.set(Boolean(t&&t.canRedo()))},n}(z.a),Ws=function(V){_i(n,V);function n(t,i){var m=V.call(this)||this;m._editor=t,m._contextKeyService=i,m._langId=Jn.a.languageId.bindTo(i),m._hasCompletionItemProvider=Jn.a.hasCompletionItemProvider.bindTo(i),m._hasCodeActionsProvider=Jn.a.hasCodeActionsProvider.bindTo(i),m._hasCodeLensProvider=Jn.a.hasCodeLensProvider.bindTo(i),m._hasDefinitionProvider=Jn.a.hasDefinitionProvider.bindTo(i),m._hasDeclarationProvider=Jn.a.hasDeclarationProvider.bindTo(i),m._hasImplementationProvider=Jn.a.hasImplementationProvider.bindTo(i),m._hasTypeDefinitionProvider=Jn.a.hasTypeDefinitionProvider.bindTo(i),m._hasHoverProvider=Jn.a.hasHoverProvider.bindTo(i),m._hasDocumentHighlightProvider=Jn.a.hasDocumentHighlightProvider.bindTo(i),m._hasDocumentSymbolProvider=Jn.a.hasDocumentSymbolProvider.bindTo(i),m._hasReferenceProvider=Jn.a.hasReferenceProvider.bindTo(i),m._hasRenameProvider=Jn.a.hasRenameProvider.bindTo(i),m._hasSignatureHelpProvider=Jn.a.hasSignatureHelpProvider.bindTo(i),m._hasDocumentFormattingProvider=Jn.a.hasDocumentFormattingProvider.bindTo(i),m._hasDocumentSelectionFormattingProvider=Jn.a.hasDocumentSelectionFormattingProvider.bindTo(i),m._hasMultipleDocumentFormattingProvider=Jn.a.hasMultipleDocumentFormattingProvider.bindTo(i),m._hasMultipleDocumentSelectionFormattingProvider=Jn.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(i),m._isInWalkThrough=Jn.a.isInEmbeddedEditor.bindTo(i);var C=function(){return m._update()};return m._register(t.onDidChangeModel(C)),m._register(t.onDidChangeModelLanguage(C)),m._register($n.d.onDidChange(C)),m._register($n.a.onDidChange(C)),m._register($n.b.onDidChange(C)),m._register($n.f.onDidChange(C)),m._register($n.e.onDidChange(C)),m._register($n.q.onDidChange(C)),m._register($n.C.onDidChange(C)),m._register($n.p.onDidChange(C)),m._register($n.i.onDidChange(C)),m._register($n.m.onDidChange(C)),m._register($n.u.onDidChange(C)),m._register($n.v.onDidChange(C)),m._register($n.g.onDidChange(C)),m._register($n.j.onDidChange(C)),m._register($n.x.onDidChange(C)),C(),m}return n.prototype.dispose=function(){V.prototype.dispose.call(this)},n.prototype.reset=function(){var t=this;this._contextKeyService.bufferChangeEvents(function(){t._langId.reset(),t._hasCompletionItemProvider.reset(),t._hasCodeActionsProvider.reset(),t._hasCodeLensProvider.reset(),t._hasDefinitionProvider.reset(),t._hasDeclarationProvider.reset(),t._hasImplementationProvider.reset(),t._hasTypeDefinitionProvider.reset(),t._hasHoverProvider.reset(),t._hasDocumentHighlightProvider.reset(),t._hasDocumentSymbolProvider.reset(),t._hasReferenceProvider.reset(),t._hasRenameProvider.reset(),t._hasDocumentFormattingProvider.reset(),t._hasDocumentSelectionFormattingProvider.reset(),t._hasSignatureHelpProvider.reset(),t._isInWalkThrough.reset()})},n.prototype._update=function(){var t=this,i=this._editor.getModel();if(!i){this.reset();return}this._contextKeyService.bufferChangeEvents(function(){t._langId.set(i.getLanguageIdentifier().language),t._hasCompletionItemProvider.set($n.d.has(i)),t._hasCodeActionsProvider.set($n.a.has(i)),t._hasCodeLensProvider.set($n.b.has(i)),t._hasDefinitionProvider.set($n.f.has(i)),t._hasDeclarationProvider.set($n.e.has(i)),t._hasImplementationProvider.set($n.q.has(i)),t._hasTypeDefinitionProvider.set($n.C.has(i)),t._hasHoverProvider.set($n.p.has(i)),t._hasDocumentHighlightProvider.set($n.i.has(i)),t._hasDocumentSymbolProvider.set($n.m.has(i)),t._hasReferenceProvider.set($n.u.has(i)),t._hasRenameProvider.set($n.v.has(i)),t._hasSignatureHelpProvider.set($n.x.has(i)),t._hasDocumentFormattingProvider.set($n.g.has(i)||$n.j.has(i)),t._hasDocumentSelectionFormattingProvider.set($n.j.has(i)),t._hasMultipleDocumentFormattingProvider.set($n.g.all(i).length+$n.j.all(i).length>1),t._hasMultipleDocumentSelectionFormattingProvider.set($n.j.all(i).length>1),t._isInWalkThrough.set(i.uri.scheme===M.b.walkThroughSnippet)})},n}(z.a),Br=function(V){_i(n,V);function n(t){var i=V.call(this)||this;return i._onChange=i._register(new H.a),i.onChange=i._onChange.event,i._hasFocus=!1,i._domFocusTracker=i._register(J.Z(t)),i._register(i._domFocusTracker.onDidFocus(function(){i._hasFocus=!0,i._onChange.fire(void 0)})),i._register(i._domFocusTracker.onDidBlur(function(){i._hasFocus=!1,i._onChange.fire(void 0)})),i}return n.prototype.hasFocus=function(){return this._hasFocus},n}(z.a),Bs=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),Ur=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function vi(V){return Bs+encodeURIComponent(V.toString())+Ur}var Us=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),Wi=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');function Bi(V){return Us+encodeURIComponent(V.toString())+Wi}Object(X.e)(function(V,n){var t=V.getColor(To.p);t&&n.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+t+"; }");var i=V.getColor(To.q);i&&n.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+vi(i)+'") repeat-x bottom left; }');var m=V.getColor(To.O);m&&n.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+m+"; }");var C=V.getColor(To.P);C&&n.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+vi(C)+'") repeat-x bottom left; }');var K=V.getColor(To.G);K&&n.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+K+"; }");var Ne=V.getColor(To.H);Ne&&n.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+vi(Ne)+'") repeat-x bottom left; }');var _e=V.getColor(To.y);_e&&n.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+_e+"; }");var qe=V.getColor(To.z);qe&&n.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+Bi(qe)+'") no-repeat bottom left; }');var ut=V.getColor(lt.o);ut&&n.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+ut.rgba.a+"; }");var St=V.getColor(lt.n);St&&n.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+St+"; }");var et=V.getColor(To.x)||"inherit";n.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+et+"}")})},nD70:function(_t,P,e){"use strict";e.d(P,"a",function(){return T}),e.d(P,"b",function(){return re});var T=function(){function J(N){this._prefix=N,this._lastId=0}return J.prototype.nextId=function(){return this._prefix+ ++this._lastId},J}(),re=new T("id#")},nlbu:function(_t,P,e){"use strict";e.d(P,"b",function(){return re}),e.d(P,"d",function(){return J}),e.d(P,"c",function(){return N}),e.d(P,"a",function(){return z});var T=e("N0LK"),re=function(){function M(U){this.value=U}return M.prototype.equals=function(U){return this.value===U.value},M.prototype.contains=function(U){return this.equals(U)||this.value===""||Object(T.N)(U.value,this.value+M.sep)},M.prototype.intersects=function(U){return this.contains(U)||U.contains(this)},M.prototype.append=function(U){return new M(this.value+M.sep+U)},M.sep=".",M.None=new M("@@none@@"),M.Empty=new M(""),M.QuickFix=new M("quickfix"),M.Refactor=new M("refactor"),M.Source=new M("source"),M.SourceOrganizeImports=M.Source.append("organizeImports"),M.SourceFixAll=M.Source.append("fixAll"),M}();function J(M,U){return M.include&&!M.include.intersects(U)||M.excludes&&M.excludes.some(function(A){return H(U,A,M.include)})?!1:!(!M.includeSourceActions&&re.Source.contains(U))}function N(M,U){var A=U.kind?new re(U.kind):void 0;return M.include&&(!A||!M.include.contains(A))||(M.excludes&&(A&&M.excludes.some(function(c){return H(A,c,M.include)}))||!M.includeSourceActions&&(A&&re.Source.contains(A)))?!1:!(M.onlyIncludePreferredActions&&!U.isPreferred)}function H(M,U,A){return U.contains(M)?!(A&&U.contains(A)):!1}var z=function(){function M(U,A,c){this.kind=U,this.apply=A,this.preferred=c}return M.fromUser=function(U,A){return!U||typeof U!="object"?new M(A.kind,A.apply,!1):new M(M.getKindFromUser(U,A.kind),M.getApplyFromUser(U,A.apply),M.getPreferredUser(U))},M.getApplyFromUser=function(U,A){switch(typeof U.apply=="string"?U.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return A}},M.getKindFromUser=function(U,A){return typeof U.kind=="string"?new re(U.kind):A},M.getPreferredUser=function(U){return typeof U.preferred=="boolean"?U.preferred:!1},M}()},nn6Y:function(_t,P,e){},nnTU:function(_t,P,e){"use strict";e.d(P,"b",function(){return U}),e.d(P,"a",function(){return A});var T=e("pmY6"),re=e("746U"),J=e("Cg/j"),N=e("MI8n"),H=e("24hK"),z=e("QDVR"),M=function(){for(var c=0,y=0,L=arguments.length;y<L;y++)c+=arguments[y].length;for(var f=Array(c),v=0,y=0;y<L;y++)for(var S=arguments[y],g=0,u=S.length;g<u;g++,v++)f[v]=S[g];return f},U=Object(J.c)("commandService"),A=new(function(){function c(){this._commands=new Map,this._onDidRegisterCommand=new N.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return c.prototype.registerCommand=function(y,L){var f=this;if(!y)throw new Error("invalid command");if(typeof y=="string"){if(!L)throw new Error("invalid command");return this.registerCommand({id:y,handler:L})}if(y.description){for(var v=[],S=0,g=y.description.args;S<g.length;S++){var u=g[S];v.push(u.constraint)}var s=y.handler;y.handler=function(_){for(var x=[],F=1;F<arguments.length;F++)x[F-1]=arguments[F];return Object(re.m)(x,v),s.apply(void 0,M([_],x))}}var l=y.id,d=this._commands.get(l);d||(d=new H.a,this._commands.set(l,d));var p=d.unshift(y),E=Object(T.h)(function(){p();var _=f._commands.get(l);(_==null?void 0:_.isEmpty())&&f._commands.delete(l)});return this._onDidRegisterCommand.fire(l),E},c.prototype.registerCommandAlias=function(y,L){return A.registerCommand(y,function(f){for(var v,S=[],g=1;g<arguments.length;g++)S[g-1]=arguments[g];return(v=f.get(U)).executeCommand.apply(v,M([L],S))})},c.prototype.getCommand=function(y){var L=this._commands.get(y);return!L||L.isEmpty()?void 0:L.iterator().next().value},c.prototype.getCommands=function(){for(var y=new Map,L=0,f=Object(z.d)(this._commands);L<f.length;L++){var v=f[L],S=this.getCommand(v);S&&y.set(v,S)}return y},c}())},nrBJ:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return e.e(298).then(e.bind(null,"eXtt"))}})},nrhi:function(_t,P,e){"use strict";e.d(P,"a",function(){return z});var T=e("/kV6"),re=e("MNsG"),J=e("nnTU"),N=e("ic2d"),H=function(){function A(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return A.bindToCurrentPlatform=function(c){if(re.a===1){if(c&&c.win)return c.win}else if(re.a===2){if(c&&c.mac)return c.mac}else if(c&&c.linux)return c.linux;return c},A.prototype.registerKeybindingRule=function(c){var y=A.bindToCurrentPlatform(c);if(y&&y.primary){var L=Object(T.f)(y.primary,re.a);L&&this._registerDefaultKeybinding(L,c.id,c.args,c.weight,0,c.when)}if(y&&Array.isArray(y.secondary))for(var f=0,v=y.secondary.length;f<v;f++){var S=y.secondary[f],L=Object(T.f)(S,re.a);L&&this._registerDefaultKeybinding(L,c.id,c.args,c.weight,-f-1,c.when)}},A.prototype.registerCommandAndKeybindingRule=function(c){this.registerKeybindingRule(c),J.a.registerCommand(c)},A._mightProduceChar=function(c){return c>=21&&c<=30||c>=31&&c<=56?!0:c===80||c===81||c===82||c===83||c===84||c===85||c===86||c===110||c===111||c===87||c===88||c===89||c===90||c===91||c===92},A.prototype._assertNoCtrlAlt=function(c,y){c.ctrlKey&&c.altKey&&!c.metaKey&&(A._mightProduceChar(c.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",c," for ",y))},A.prototype._registerDefaultKeybinding=function(c,y,L,f,v,S){re.a===1&&this._assertNoCtrlAlt(c.parts[0],y),this._coreKeybindings.push({keybinding:c,command:y,commandArgs:L,when:S,weight1:f,weight2:v}),this._cachedMergedKeybindings=null},A.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(U)),this._cachedMergedKeybindings.slice(0)},A}(),z=new H,M={EditorModes:"platform.keybindingsRegistry"};N.a.add(M.EditorModes,z);function U(A,c){return A.weight1!==c.weight1?A.weight1-c.weight1:A.command<c.command?-1:A.command>c.command?1:A.weight2-c.weight2}},nuFA:function(_t,P,e){"use strict";e.d(P,"a",function(){return T});var T;(function(re){function J(M,U){if(M.start>=U.end||U.start>=M.end)return{start:0,end:0};var A=Math.max(M.start,U.start),c=Math.min(M.end,U.end);return c-A<=0?{start:0,end:0}:{start:A,end:c}}re.intersect=J;function N(M){return M.end-M.start<=0}re.isEmpty=N;function H(M,U){return!N(J(M,U))}re.intersects=H;function z(M,U){var A=[],c={start:M.start,end:Math.min(U.start,M.end)},y={start:Math.max(U.end,M.start),end:M.end};return N(c)||A.push(c),N(y)||A.push(y),A}re.relativeComplement=z})(T||(T={}))},o39E:function(_t,P,e){"use strict";e.d(P,"a",function(){return N});var T=e("pmY6"),re=e("EffR"),J=function(){var H=function(M,U){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,c){A.__proto__=c}||function(A,c){for(var y in c)c.hasOwnProperty(y)&&(A[y]=c[y])},H(M,U)};return function(z,M){H(z,M);function U(){this.constructor=z}z.prototype=M===null?Object.create(M):(U.prototype=M.prototype,new U)}}(),N=function(H){J(z,H);function z(M,U,A){var c=H.call(this)||this;return c.referenceDomElement=M,c.changeCallback=A,c.width=-1,c.height=-1,c.mutationObserver=null,c.windowSizeListener=null,c.measureReferenceDomElement(!1,U),c}return z.prototype.dispose=function(){this.stopObserving(),H.prototype.dispose.call(this)},z.prototype.getWidth=function(){return this.width},z.prototype.getHeight=function(){return this.height},z.prototype.startObserving=function(){var M=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver(function(){return M._onDidMutate()}),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=re.j(window,"resize",function(){return M._onDidResizeWindow()}))},z.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},z.prototype.observe=function(M){this.measureReferenceDomElement(!0,M)},z.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},z.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},z.prototype.measureReferenceDomElement=function(M,U){var A=0,c=0;U?(A=U.width,c=U.height):this.referenceDomElement&&(A=this.referenceDomElement.clientWidth,c=this.referenceDomElement.clientHeight),A=Math.max(5,A),c=Math.max(5,c),(this.width!==A||this.height!==c)&&(this.width=A,this.height=c,M&&this.changeCallback())},z}(T.a)},oAeH:function(_t,P,e){"use strict";e.d(P,"b",function(){return M}),e.d(P,"a",function(){return U});var T=e("746U"),re=e("Ll0s"),J=e("+Fos"),N=e("1I1M"),H=e("cGHE"),z=e("aokT"),M=function(){function A(){}return A.addCursorDown=function(c,y,L){for(var f=[],v=0,S=0,g=y.length;S<g;S++){var u=y[S];f[v++]=new re.d(u.modelState,u.viewState),L?f[v++]=re.d.fromModelState(J.a.translateDown(c.config,c.model,u.modelState)):f[v++]=re.d.fromViewState(J.a.translateDown(c.config,c.viewModel,u.viewState))}return f},A.addCursorUp=function(c,y,L){for(var f=[],v=0,S=0,g=y.length;S<g;S++){var u=y[S];f[v++]=new re.d(u.modelState,u.viewState),L?f[v++]=re.d.fromModelState(J.a.translateUp(c.config,c.model,u.modelState)):f[v++]=re.d.fromViewState(J.a.translateUp(c.config,c.viewModel,u.viewState))}return f},A.moveToBeginningOfLine=function(c,y,L){for(var f=[],v=0,S=y.length;v<S;v++){var g=y[v];f[v]=this._moveToLineStart(c,g,L)}return f},A._moveToLineStart=function(c,y,L){var f=y.viewState.position.column,v=y.modelState.position.column,S=f===v,g=y.viewState.position.lineNumber,u=c.viewModel.getLineFirstNonWhitespaceColumn(g),s=f===u;return!S&&!s?this._moveToLineStartByView(c,y,L):this._moveToLineStartByModel(c,y,L)},A._moveToLineStartByView=function(c,y,L){return re.d.fromViewState(J.a.moveToBeginningOfLine(c.config,c.viewModel,y.viewState,L))},A._moveToLineStartByModel=function(c,y,L){return re.d.fromModelState(J.a.moveToBeginningOfLine(c.config,c.model,y.modelState,L))},A.moveToEndOfLine=function(c,y,L){for(var f=[],v=0,S=y.length;v<S;v++){var g=y[v];f[v]=this._moveToLineEnd(c,g,L)}return f},A._moveToLineEnd=function(c,y,L){var f=y.viewState.position,v=c.viewModel.getLineMaxColumn(f.lineNumber),S=f.column===v,g=y.modelState.position,u=c.model.getLineMaxColumn(g.lineNumber),s=v-f.column===u-g.column;return S||s?this._moveToLineEndByModel(c,y,L):this._moveToLineEndByView(c,y,L)},A._moveToLineEndByView=function(c,y,L){return re.d.fromViewState(J.a.moveToEndOfLine(c.config,c.viewModel,y.viewState,L))},A._moveToLineEndByModel=function(c,y,L){return re.d.fromModelState(J.a.moveToEndOfLine(c.config,c.model,y.modelState,L))},A.expandLineSelection=function(c,y){for(var L=[],f=0,v=y.length;f<v;f++){var S=y[f],g=S.modelState.selection.startLineNumber,u=c.model.getLineCount(),s=S.modelState.selection.endLineNumber,l=void 0;s===u?l=c.model.getLineMaxColumn(u):(s++,l=1),L[f]=re.d.fromModelState(new re.f(new z.a(g,1,g,1),0,new H.a(s,l),0))}return L},A.moveToBeginningOfBuffer=function(c,y,L){for(var f=[],v=0,S=y.length;v<S;v++){var g=y[v];f[v]=re.d.fromModelState(J.a.moveToBeginningOfBuffer(c.config,c.model,g.modelState,L))}return f},A.moveToEndOfBuffer=function(c,y,L){for(var f=[],v=0,S=y.length;v<S;v++){var g=y[v];f[v]=re.d.fromModelState(J.a.moveToEndOfBuffer(c.config,c.model,g.modelState,L))}return f},A.selectAll=function(c,y){var L=c.model.getLineCount(),f=c.model.getLineMaxColumn(L);return re.d.fromModelState(new re.f(new z.a(1,1,1,1),0,new H.a(L,f),0))},A.line=function(c,y,L,f,v){var S=c.model.validatePosition(f),g=v?c.validateViewPosition(new H.a(v.lineNumber,v.column),S):c.convertModelPositionToViewPosition(S);if(!L||!y.modelState.hasSelection()){var u=c.model.getLineCount(),s=S.lineNumber+1,l=1;return s>u&&(s=u,l=c.model.getLineMaxColumn(s)),re.d.fromModelState(new re.f(new z.a(S.lineNumber,1,s,l),0,new H.a(s,l),0))}var d=y.modelState.selectionStart.getStartPosition().lineNumber;if(S.lineNumber<d)return re.d.fromViewState(y.viewState.move(y.modelState.hasSelection(),g.lineNumber,1,0));if(S.lineNumber>d){var u=c.viewModel.getLineCount(),p=g.lineNumber+1,E=1;return p>u&&(p=u,E=c.viewModel.getLineMaxColumn(p)),re.d.fromViewState(y.viewState.move(y.modelState.hasSelection(),p,E,0))}else{var _=y.modelState.selectionStart.getEndPosition();return re.d.fromModelState(y.modelState.move(y.modelState.hasSelection(),_.lineNumber,_.column,0))}},A.word=function(c,y,L,f){var v=c.model.validatePosition(f);return re.d.fromModelState(N.a.word(c.config,c.model,y.modelState,L,v))},A.cancelSelection=function(c,y){if(!y.modelState.hasSelection())return new re.d(y.modelState,y.viewState);var L=y.viewState.position.lineNumber,f=y.viewState.position.column;return re.d.fromViewState(new re.f(new z.a(L,f,L,f),0,new H.a(L,f),0))},A.moveTo=function(c,y,L,f,v){var S=c.model.validatePosition(f),g=v?c.validateViewPosition(new H.a(v.lineNumber,v.column),S):c.convertModelPositionToViewPosition(S);return re.d.fromViewState(y.viewState.move(L,g.lineNumber,g.column,0))},A.move=function(c,y,L){var f=L.select,v=L.value;switch(L.direction){case 0:return L.unit===4?this._moveHalfLineLeft(c,y,f):this._moveLeft(c,y,f,v);case 1:return L.unit===4?this._moveHalfLineRight(c,y,f):this._moveRight(c,y,f,v);case 2:return L.unit===2?this._moveUpByViewLines(c,y,f,v):this._moveUpByModelLines(c,y,f,v);case 3:return L.unit===2?this._moveDownByViewLines(c,y,f,v):this._moveDownByModelLines(c,y,f,v);case 4:return this._moveToViewMinColumn(c,y,f);case 5:return this._moveToViewFirstNonWhitespaceColumn(c,y,f);case 6:return this._moveToViewCenterColumn(c,y,f);case 7:return this._moveToViewMaxColumn(c,y,f);case 8:return this._moveToViewLastNonWhitespaceColumn(c,y,f);case 9:{var S=y[0],g=c.getCompletelyVisibleModelRange(),u=this._firstLineNumberInRange(c.model,g,v),s=c.model.getLineFirstNonWhitespaceColumn(u);return[this._moveToModelPosition(c,S,f,u,s)]}case 11:{var S=y[0],g=c.getCompletelyVisibleModelRange(),u=this._lastLineNumberInRange(c.model,g,v),s=c.model.getLineFirstNonWhitespaceColumn(u);return[this._moveToModelPosition(c,S,f,u,s)]}case 10:{var S=y[0],g=c.getCompletelyVisibleModelRange(),u=Math.round((g.startLineNumber+g.endLineNumber)/2),s=c.model.getLineFirstNonWhitespaceColumn(u);return[this._moveToModelPosition(c,S,f,u,s)]}case 12:{for(var l=c.getCompletelyVisibleViewRange(),d=[],p=0,E=y.length;p<E;p++){var S=y[p];d[p]=this.findPositionInViewportIfOutside(c,S,l,f)}return d}}return null},A.findPositionInViewportIfOutside=function(c,y,L,f){var v=y.viewState.position.lineNumber;if(L.startLineNumber<=v&&v<=L.endLineNumber-1)return new re.d(y.modelState,y.viewState);v>L.endLineNumber-1&&(v=L.endLineNumber-1),v<L.startLineNumber&&(v=L.startLineNumber);var S=c.viewModel.getLineFirstNonWhitespaceColumn(v);return this._moveToViewPosition(c,y,f,v,S)},A._firstLineNumberInRange=function(c,y,L){var f=y.startLineNumber;return y.startColumn!==c.getLineMinColumn(f)&&f++,Math.min(y.endLineNumber,f+L-1)},A._lastLineNumberInRange=function(c,y,L){var f=y.startLineNumber;return y.startColumn!==c.getLineMinColumn(f)&&f++,Math.max(f,y.endLineNumber-L+1)},A._moveLeft=function(c,y,L,f){for(var v=[],S=0,g=y.length;S<g;S++){var u=y[S],s=J.a.moveLeft(c.config,c.viewModel,u.viewState,L,f);if(f===1&&s.position.lineNumber!==u.viewState.position.lineNumber){var l=c.viewModel.coordinatesConverter.convertViewPositionToModelPosition(s.position);l.lineNumber===u.modelState.position.lineNumber&&(s=J.a.moveLeft(c.config,c.viewModel,s,L,1))}v[S]=re.d.fromViewState(s)}return v},A._moveHalfLineLeft=function(c,y,L){for(var f=[],v=0,S=y.length;v<S;v++){var g=y[v],u=g.viewState.position.lineNumber,s=Math.round(c.viewModel.getLineContent(u).length/2);f[v]=re.d.fromViewState(J.a.moveLeft(c.config,c.viewModel,g.viewState,L,s))}return f},A._moveRight=function(c,y,L,f){for(var v=[],S=0,g=y.length;S<g;S++){var u=y[S],s=J.a.moveRight(c.config,c.viewModel,u.viewState,L,f);if(f===1&&s.position.lineNumber!==u.viewState.position.lineNumber){var l=c.viewModel.coordinatesConverter.convertViewPositionToModelPosition(s.position);l.lineNumber===u.modelState.position.lineNumber&&(s=J.a.moveRight(c.config,c.viewModel,s,L,1))}v[S]=re.d.fromViewState(s)}return v},A._moveHalfLineRight=function(c,y,L){for(var f=[],v=0,S=y.length;v<S;v++){var g=y[v],u=g.viewState.position.lineNumber,s=Math.round(c.viewModel.getLineContent(u).length/2);f[v]=re.d.fromViewState(J.a.moveRight(c.config,c.viewModel,g.viewState,L,s))}return f},A._moveDownByViewLines=function(c,y,L,f){for(var v=[],S=0,g=y.length;S<g;S++){var u=y[S];v[S]=re.d.fromViewState(J.a.moveDown(c.config,c.viewModel,u.viewState,L,f))}return v},A._moveDownByModelLines=function(c,y,L,f){for(var v=[],S=0,g=y.length;S<g;S++){var u=y[S];v[S]=re.d.fromModelState(J.a.moveDown(c.config,c.model,u.modelState,L,f))}return v},A._moveUpByViewLines=function(c,y,L,f){for(var v=[],S=0,g=y.length;S<g;S++){var u=y[S];v[S]=re.d.fromViewState(J.a.moveUp(c.config,c.viewModel,u.viewState,L,f))}return v},A._moveUpByModelLines=function(c,y,L,f){for(var v=[],S=0,g=y.length;S<g;S++){var u=y[S];v[S]=re.d.fromModelState(J.a.moveUp(c.config,c.model,u.modelState,L,f))}return v},A._moveToViewPosition=function(c,y,L,f,v){return re.d.fromViewState(y.viewState.move(L,f,v,0))},A._moveToModelPosition=function(c,y,L,f,v){return re.d.fromModelState(y.modelState.move(L,f,v,0))},A._moveToViewMinColumn=function(c,y,L){for(var f=[],v=0,S=y.length;v<S;v++){var g=y[v],u=g.viewState.position.lineNumber,s=c.viewModel.getLineMinColumn(u);f[v]=this._moveToViewPosition(c,g,L,u,s)}return f},A._moveToViewFirstNonWhitespaceColumn=function(c,y,L){for(var f=[],v=0,S=y.length;v<S;v++){var g=y[v],u=g.viewState.position.lineNumber,s=c.viewModel.getLineFirstNonWhitespaceColumn(u);f[v]=this._moveToViewPosition(c,g,L,u,s)}return f},A._moveToViewCenterColumn=function(c,y,L){for(var f=[],v=0,S=y.length;v<S;v++){var g=y[v],u=g.viewState.position.lineNumber,s=Math.round((c.viewModel.getLineMaxColumn(u)+c.viewModel.getLineMinColumn(u))/2);f[v]=this._moveToViewPosition(c,g,L,u,s)}return f},A._moveToViewMaxColumn=function(c,y,L){for(var f=[],v=0,S=y.length;v<S;v++){var g=y[v],u=g.viewState.position.lineNumber,s=c.viewModel.getLineMaxColumn(u);f[v]=this._moveToViewPosition(c,g,L,u,s)}return f},A._moveToViewLastNonWhitespaceColumn=function(c,y,L){for(var f=[],v=0,S=y.length;v<S;v++){var g=y[v],u=g.viewState.position.lineNumber,s=c.viewModel.getLineLastNonWhitespaceColumn(u);f[v]=this._moveToViewPosition(c,g,L,u,s)}return f},A}(),U;(function(A){var c=function(f){if(!T.i(f))return!1;var v=f;return T.j(v.to)?!T.k(v.select)&&!T.e(v.select)||!T.k(v.by)&&!T.j(v.by)?!1:!(!T.k(v.value)&&!T.h(v.value)):!1};A.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:`Property-value pairs that can be passed through this argument:
* 'to': A mandatory logical position value providing where to move the cursor.
\`\`\`
'left', 'right', 'up', 'down'
'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'
'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'
'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'
\`\`\`
* 'by': Unit to move. Default is computed based on 'to' value.
\`\`\`
'line', 'wrappedLine', 'character', 'halfLine'
\`\`\`
* 'value': Number of units to move. Default is '1'.
* 'select': If 'true' makes the selection. Default is 'false'.
`,constraint:c,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},A.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},A.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function y(L){if(!L.to)return null;var f;switch(L.to){case A.RawDirection.Left:f=0;break;case A.RawDirection.Right:f=1;break;case A.RawDirection.Up:f=2;break;case A.RawDirection.Down:f=3;break;case A.RawDirection.WrappedLineStart:f=4;break;case A.RawDirection.WrappedLineFirstNonWhitespaceCharacter:f=5;break;case A.RawDirection.WrappedLineColumnCenter:f=6;break;case A.RawDirection.WrappedLineEnd:f=7;break;case A.RawDirection.WrappedLineLastNonWhitespaceCharacter:f=8;break;case A.RawDirection.ViewPortTop:f=9;break;case A.RawDirection.ViewPortBottom:f=11;break;case A.RawDirection.ViewPortCenter:f=10;break;case A.RawDirection.ViewPortIfOutside:f=12;break;default:return null}var v=0;switch(L.by){case A.RawUnit.Line:v=1;break;case A.RawUnit.WrappedLine:v=2;break;case A.RawUnit.Character:v=3;break;case A.RawUnit.HalfLine:v=4;break}return{direction:f,unit:v,select:!!L.select,value:L.value||1}}A.parse=y})(U||(U={}))},oKJv:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return e.e(272).then(e.bind(null,"HGU1"))}})},oQaD:function(_t,P,e){"use strict";e.r(P),e.d(P,"getSelectionSearchString",function(){return D}),e.d(P,"CommonFindController",function(){return j}),e.d(P,"FindController",function(){return Z}),e.d(P,"StartFindAction",function(){return xe}),e.d(P,"StartFindWithSelectionAction",function(){return Ae}),e.d(P,"MatchFindAction",function(){return Ie}),e.d(P,"NextMatchFindAction",function(){return dt}),e.d(P,"NextMatchFindAction2",function(){return ht}),e.d(P,"PreviousMatchFindAction",function(){return At}),e.d(P,"PreviousMatchFindAction2",function(){return Bt}),e.d(P,"SelectionMatchFindAction",function(){return Ut}),e.d(P,"NextSelectionMatchFindAction",function(){return Ht}),e.d(P,"PreviousSelectionMatchFindAction",function(){return nn}),e.d(P,"StartFindReplaceAction",function(){return Zt});var T=e("3/fG"),re=e("X+cX"),J=e("pmY6"),N=e("N0LK"),H=e("sswD"),z=e("wQH0"),M=e("LCkn"),U=e("cGHE"),A=e("aokT"),c=e("gCVg"),y=e("jAJ/"),L=e("M1Kb"),f=e("tX9W"),v=e("MD5Z"),S=e("t9D7"),g=function(){function yt(Ue){this._editor=Ue,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return yt.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},yt.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},yt.prototype.getCount=function(){return this._decorations.length},yt.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},yt.prototype.getStartPosition=function(){return this._startPosition},yt.prototype.setStartPosition=function(Ue){this._startPosition=Ue,this.setCurrentFindMatch(null)},yt.prototype._getDecorationIndex=function(Ue){var Me=this._decorations.indexOf(Ue);return Me>=0?Me+1:1},yt.prototype.getCurrentMatchesPosition=function(Ue){for(var Me=this._editor.getModel().getDecorationsInRange(Ue),rt=0,Nt=Me;rt<Nt.length;rt++){var ge=Nt[rt],O=ge.options;if(O===yt._FIND_MATCH_DECORATION||O===yt._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(ge.id)}return 1},yt.prototype.setCurrentFindMatch=function(Ue){var Me=this,rt=null,Nt=0;if(Ue)for(var ge=0,O=this._decorations.length;ge<O;ge++){var ye=this._editor.getModel().getDecorationRange(this._decorations[ge]);if(Ue.equalsRange(ye)){rt=this._decorations[ge],Nt=ge+1;break}}return(this._highlightedDecorationId!==null||rt!==null)&&this._editor.changeDecorations(function(We){if(Me._highlightedDecorationId!==null&&(We.changeDecorationOptions(Me._highlightedDecorationId,yt._FIND_MATCH_DECORATION),Me._highlightedDecorationId=null),rt!==null&&(Me._highlightedDecorationId=rt,We.changeDecorationOptions(Me._highlightedDecorationId,yt._CURRENT_FIND_MATCH_DECORATION)),Me._rangeHighlightDecorationId!==null&&(We.removeDecoration(Me._rangeHighlightDecorationId),Me._rangeHighlightDecorationId=null),rt!==null){var Ze=Me._editor.getModel().getDecorationRange(rt);if(Ze.startLineNumber!==Ze.endLineNumber&&Ze.endColumn===1){var st=Ze.endLineNumber-1,pt=Me._editor.getModel().getLineMaxColumn(st);Ze=new A.a(Ze.startLineNumber,Ze.startColumn,st,pt)}Me._rangeHighlightDecorationId=We.addDecoration(Ze,yt._RANGE_HIGHLIGHT_DECORATION)}}),Nt},yt.prototype.set=function(Ue,Me){var rt=this;this._editor.changeDecorations(function(Nt){var ge=yt._FIND_MATCH_DECORATION,O=[];if(Ue.length>1e3){ge=yt._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var ye=rt._editor.getModel().getLineCount(),We=rt._editor.getLayoutInfo().height,Ze=We/ye,st=Math.max(2,Math.ceil(3/Ze)),pt=Ue[0].range.startLineNumber,Kt=Ue[0].range.endLineNumber,Xt=1,on=Ue.length;Xt<on;Xt++){var vn=Ue[Xt].range;Kt+st>=vn.startLineNumber?vn.endLineNumber>Kt&&(Kt=vn.endLineNumber):(O.push({range:new A.a(pt,1,Kt,1),options:yt._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),pt=vn.startLineNumber,Kt=vn.endLineNumber)}O.push({range:new A.a(pt,1,Kt,1),options:yt._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var dn=new Array(Ue.length),Xt=0,on=Ue.length;Xt<on;Xt++)dn[Xt]={range:Ue[Xt].range,options:ge};rt._decorations=Nt.deltaDecorations(rt._decorations,dn),rt._overviewRulerApproximateDecorations=Nt.deltaDecorations(rt._overviewRulerApproximateDecorations,O),rt._rangeHighlightDecorationId&&(Nt.removeDecoration(rt._rangeHighlightDecorationId),rt._rangeHighlightDecorationId=null),rt._findScopeDecorationId&&(Nt.removeDecoration(rt._findScopeDecorationId),rt._findScopeDecorationId=null),Me&&(rt._findScopeDecorationId=Nt.addDecoration(Me,yt._FIND_SCOPE_DECORATION))})},yt.prototype.matchBeforePosition=function(Ue){if(this._decorations.length===0)return null;for(var Me=this._decorations.length-1;Me>=0;Me--){var rt=this._decorations[Me],Nt=this._editor.getModel().getDecorationRange(rt);if(!Nt||Nt.endLineNumber>Ue.lineNumber)continue;if(Nt.endLineNumber<Ue.lineNumber)return Nt;if(Nt.endColumn>Ue.column)continue;return Nt}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},yt.prototype.matchAfterPosition=function(Ue){if(this._decorations.length===0)return null;for(var Me=0,rt=this._decorations.length;Me<rt;Me++){var Nt=this._decorations[Me],ge=this._editor.getModel().getDecorationRange(Nt);if(!ge||ge.startLineNumber<Ue.lineNumber)continue;if(ge.startLineNumber>Ue.lineNumber)return ge;if(ge.startColumn<Ue.column)continue;return ge}return this._editor.getModel().getDecorationRange(this._decorations[0])},yt.prototype._allDecorations=function(){var Ue=[];return Ue=Ue.concat(this._decorations),Ue=Ue.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&Ue.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&Ue.push(this._rangeHighlightDecorationId),Ue},yt._CURRENT_FIND_MATCH_DECORATION=f.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(S.f)(v.Lb),position:L.d.Center},minimap:{color:Object(S.f)(v.Hb),position:L.c.Inline}}),yt._FIND_MATCH_DECORATION=f.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(S.f)(v.Lb),position:L.d.Center},minimap:{color:Object(S.f)(v.Hb),position:L.c.Inline}}),yt._FIND_MATCH_NO_OVERVIEW_DECORATION=f.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),yt._FIND_MATCH_ONLY_OVERVIEW_DECORATION=f.a.register({stickiness:1,overviewRuler:{color:Object(S.f)(v.Lb),position:L.d.Center}}),yt._RANGE_HIGHLIGHT_DECORATION=f.a.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),yt._FIND_SCOPE_DECORATION=f.a.register({className:"findScope",isWholeLine:!0}),yt}(),u=function(){function yt(Ue,Me,rt){this._editorSelection=Ue,this._ranges=Me,this._replaceStrings=rt,this._trackedEditorSelectionId=null}return yt.prototype.getEditOperations=function(Ue,Me){if(this._ranges.length>0){for(var rt=[],Nt=0;Nt<this._ranges.length;Nt++)rt.push({range:this._ranges[Nt],text:this._replaceStrings[Nt]});rt.sort(function(st,pt){return A.a.compareRangesUsingStarts(st.range,pt.range)});for(var ge=[],O=rt[0],Nt=1;Nt<rt.length;Nt++)O.range.endLineNumber===rt[Nt].range.startLineNumber&&O.range.endColumn===rt[Nt].range.startColumn?(O.range=O.range.plusRange(rt[Nt].range),O.text=O.text+rt[Nt].text):(ge.push(O),O=rt[Nt]);ge.push(O);for(var ye=0,We=ge;ye<We.length;ye++){var Ze=We[ye];Me.addEditOperation(Ze.range,Ze.text)}}this._trackedEditorSelectionId=Me.trackSelection(this._editorSelection)},yt.prototype.computeCursorState=function(Ue,Me){return Me.getTrackedSelection(this._trackedEditorSelectionId)},yt}();function s(yt,Ue){if(yt&&yt[0]!==""){var Me=l(yt,Ue,"-"),rt=l(yt,Ue,"_");return Me&&!rt?d(yt,Ue,"-"):!Me&&rt?d(yt,Ue,"_"):yt[0].toUpperCase()===yt[0]?Ue.toUpperCase():yt[0].toLowerCase()===yt[0]?Ue.toLowerCase():N.j(yt[0][0])?Ue[0].toUpperCase()+Ue.substr(1):Ue}else return Ue}function l(yt,Ue,Me){var rt=yt[0].indexOf(Me)!==-1&&Ue.indexOf(Me)!==-1;return rt&&yt[0].split(Me).length===Ue.split(Me).length}function d(yt,Ue,Me){var rt=Ue.split(Me),Nt=yt[0].split(Me),ge="";return rt.forEach(function(O,ye){ge+=s([Nt[ye]],O)+Me}),ge.slice(0,-1)}var p=function(){function yt(Ue){this.staticValue=Ue,this.kind=0}return yt}(),E=function(){function yt(Ue){this.pieces=Ue,this.kind=1}return yt}(),_=function(){function yt(Ue){!Ue||Ue.length===0?this._state=new p(""):Ue.length===1&&Ue[0].staticValue!==null?this._state=new p(Ue[0].staticValue):this._state=new E(Ue)}return yt.fromStaticValue=function(Ue){return new yt([x.staticValue(Ue)])},Object.defineProperty(yt.prototype,"hasReplacementPatterns",{get:function(){return this._state.kind===1},enumerable:!0,configurable:!0}),yt.prototype.buildReplaceString=function(Ue,Me){if(this._state.kind===0)return Me?s(Ue,this._state.staticValue):this._state.staticValue;for(var rt="",Nt=0,ge=this._state.pieces.length;Nt<ge;Nt++){var O=this._state.pieces[Nt];if(O.staticValue!==null){rt+=O.staticValue;continue}rt+=yt._substitute(O.matchIndex,Ue)}return rt},yt._substitute=function(Ue,Me){if(Me===null)return"";if(Ue===0)return Me[0];for(var rt="";Ue>0;){if(Ue<Me.length){var Nt=Me[Ue]||"";return Nt+rt}rt=String(Ue%10)+rt,Ue=Math.floor(Ue/10)}return"$"+rt},yt}(),x=function(){function yt(Ue,Me){this.staticValue=Ue,this.matchIndex=Me}return yt.staticValue=function(Ue){return new yt(Ue,-1)},yt.matchIndex=function(Ue){return new yt(null,Ue)},yt}(),F=function(){function yt(Ue){this._source=Ue,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return yt.prototype.emitUnchanged=function(Ue){this._emitStatic(this._source.substring(this._lastCharIndex,Ue)),this._lastCharIndex=Ue},yt.prototype.emitStatic=function(Ue,Me){this._emitStatic(Ue),this._lastCharIndex=Me},yt.prototype._emitStatic=function(Ue){if(Ue.length===0)return;this._currentStaticPiece+=Ue},yt.prototype.emitMatchIndex=function(Ue,Me){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=x.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=x.matchIndex(Ue),this._lastCharIndex=Me},yt.prototype.finalize=function(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=x.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new _(this._result)},yt}();function R(yt){if(!yt||yt.length===0)return new _(null);for(var Ue=new F(yt),Me=0,rt=yt.length;Me<rt;Me++){var Nt=yt.charCodeAt(Me);if(Nt===92){if(Me++,Me>=rt)break;var ge=yt.charCodeAt(Me);switch(ge){case 92:Ue.emitUnchanged(Me-1),Ue.emitStatic("\\",Me+1);break;case 110:Ue.emitUnchanged(Me-1),Ue.emitStatic(`
`,Me+1);break;case 116:Ue.emitUnchanged(Me-1),Ue.emitStatic(" ",Me+1);break}continue}if(Nt===36){if(Me++,Me>=rt)break;var ge=yt.charCodeAt(Me);if(ge===36){Ue.emitUnchanged(Me-1),Ue.emitStatic("$",Me+1);continue}if(ge===48||ge===38){Ue.emitUnchanged(Me-1),Ue.emitMatchIndex(0,Me+1);continue}if(49<=ge&&ge<=57){var O=ge-48;if(Me+1<rt){var ye=yt.charCodeAt(Me+1);if(48<=ye&&ye<=57){Me++,O=O*10+(ye-48),Ue.emitUnchanged(Me-2),Ue.emitMatchIndex(O,Me+1);continue}}Ue.emitUnchanged(Me-1),Ue.emitMatchIndex(O,Me+1);continue}}}return Ue.finalize()}var $=e("T8No"),ie=new $.d("findWidgetVisible",!1),W=new $.d("findInputFocussed",!1),B=new $.d("replaceInputFocussed",!1),le={primary:512|33,mac:{primary:2048|512|33}},be={primary:512|53,mac:{primary:2048|512|53}},De={primary:512|48,mac:{primary:2048|512|48}},Te={primary:512|42,mac:{primary:2048|512|42}},ke={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},He=19999,je=240,oe=function(){function yt(Ue,Me){var rt=this;this._toDispose=new J.b,this._editor=Ue,this._state=Me,this._isDisposed=!1,this._startSearchingTimer=new re.e,this._decorations=new g(Ue),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new re.d(function(){return rt.research(!1)},100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(function(Nt){(Nt.reason===3||Nt.reason===5||Nt.reason===6)&&rt._decorations.setStartPosition(rt._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(function(Nt){if(rt._ignoreModelContentChanged)return;Nt.isFlush&&rt._decorations.reset(),rt._decorations.setStartPosition(rt._editor.getPosition()),rt._updateDecorationsScheduler.schedule()})),this._toDispose.add(this._state.onFindReplaceStateChange(function(Nt){return rt._onStateChanged(Nt)})),this.research(!1,this._state.searchScope)}return yt.prototype.dispose=function(){this._isDisposed=!0,Object(J.f)(this._startSearchingTimer),this._toDispose.dispose()},yt.prototype._onStateChanged=function(Ue){var Me=this;if(this._isDisposed)return;if(!this._editor.hasModel())return;if(Ue.searchString||Ue.isReplaceRevealed||Ue.isRegex||Ue.wholeWord||Ue.matchCase||Ue.searchScope){var rt=this._editor.getModel();rt.isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(function(){Ue.searchScope?Me.research(Ue.moveCursor,Me._state.searchScope):Me.research(Ue.moveCursor)},je)):Ue.searchScope?this.research(Ue.moveCursor,this._state.searchScope):this.research(Ue.moveCursor)}},yt._getSearchRange=function(Ue,Me){return Me||Ue.getFullModelRange()},yt.prototype.research=function(Ue,Me){var rt=null;typeof Me!="undefined"?rt=Me:rt=this._decorations.getFindScope(),rt!==null&&(rt.startLineNumber!==rt.endLineNumber&&(rt.endColumn===1?rt=new A.a(rt.startLineNumber,1,rt.endLineNumber-1,this._editor.getModel().getLineMaxColumn(rt.endLineNumber-1)):rt=new A.a(rt.startLineNumber,1,rt.endLineNumber,this._editor.getModel().getLineMaxColumn(rt.endLineNumber))));var Nt=this._findMatches(rt,!1,He);this._decorations.set(Nt,rt),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),Ue&&this._moveToNextMatch(this._decorations.getStartPosition())},yt.prototype._hasMatches=function(){return this._state.matchesCount>0},yt.prototype._cannotFind=function(){if(!this._hasMatches()){var Ue=this._decorations.getFindScope();return Ue&&this._editor.revealRangeInCenterIfOutsideViewport(Ue,0),!0}return!1},yt.prototype._setCurrentFindMatch=function(Ue){var Me=this._decorations.setCurrentFindMatch(Ue);this._state.changeMatchInfo(Me,this._decorations.getCount(),Ue),this._editor.setSelection(Ue),this._editor.revealRangeInCenterIfOutsideViewport(Ue,0)},yt.prototype._prevSearchPosition=function(Ue){var Me=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),rt=Ue.lineNumber,Nt=Ue.column,ge=this._editor.getModel();return Me||Nt===1?(rt===1?rt=ge.getLineCount():rt--,Nt=ge.getLineMaxColumn(rt)):Nt--,new U.a(rt,Nt)},yt.prototype._moveToPrevMatch=function(Ue,Me){if(Me===void 0&&(Me=!1),this._decorations.getCount()<He){var rt=this._decorations.matchBeforePosition(Ue);rt&&rt.isEmpty()&&rt.getStartPosition().equals(Ue)&&(Ue=this._prevSearchPosition(Ue),rt=this._decorations.matchBeforePosition(Ue)),rt&&this._setCurrentFindMatch(rt);return}if(this._cannotFind())return;var Nt=this._decorations.getFindScope(),ge=yt._getSearchRange(this._editor.getModel(),Nt);ge.getEndPosition().isBefore(Ue)&&(Ue=ge.getEndPosition()),Ue.isBefore(ge.getStartPosition())&&(Ue=ge.getEndPosition());var O=Ue.lineNumber,ye=Ue.column,We=this._editor.getModel(),Ze=new U.a(O,ye),st=We.findPreviousMatch(this._state.searchString,Ze,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1);if(st&&st.range.isEmpty()&&st.range.getStartPosition().equals(Ze)&&(Ze=this._prevSearchPosition(Ze),st=We.findPreviousMatch(this._state.searchString,Ze,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1)),!st)return;if(!Me&&!ge.containsRange(st.range))return this._moveToPrevMatch(st.range.getStartPosition(),!0);this._setCurrentFindMatch(st.range)},yt.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},yt.prototype._nextSearchPosition=function(Ue){var Me=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),rt=Ue.lineNumber,Nt=Ue.column,ge=this._editor.getModel();return Me||Nt===ge.getLineMaxColumn(rt)?(rt===ge.getLineCount()?rt=1:rt++,Nt=1):Nt++,new U.a(rt,Nt)},yt.prototype._moveToNextMatch=function(Ue){if(this._decorations.getCount()<He){var Me=this._decorations.matchAfterPosition(Ue);Me&&Me.isEmpty()&&Me.getStartPosition().equals(Ue)&&(Ue=this._nextSearchPosition(Ue),Me=this._decorations.matchAfterPosition(Ue)),Me&&this._setCurrentFindMatch(Me);return}var rt=this._getNextMatch(Ue,!1,!0);rt&&this._setCurrentFindMatch(rt.range)},yt.prototype._getNextMatch=function(Ue,Me,rt,Nt){if(Nt===void 0&&(Nt=!1),this._cannotFind())return null;var ge=this._decorations.getFindScope(),O=yt._getSearchRange(this._editor.getModel(),ge);O.getEndPosition().isBefore(Ue)&&(Ue=O.getStartPosition()),Ue.isBefore(O.getStartPosition())&&(Ue=O.getStartPosition());var ye=Ue.lineNumber,We=Ue.column,Ze=this._editor.getModel(),st=new U.a(ye,We),pt=Ze.findNextMatch(this._state.searchString,st,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Me);return rt&&pt&&pt.range.isEmpty()&&pt.range.getStartPosition().equals(st)&&(st=this._nextSearchPosition(st),pt=Ze.findNextMatch(this._state.searchString,st,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Me)),pt?!Nt&&!O.containsRange(pt.range)?this._getNextMatch(pt.range.getEndPosition(),Me,rt,!0):pt:null},yt.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},yt.prototype._getReplacePattern=function(){return this._state.isRegex?R(this._state.replaceString):_.fromStaticValue(this._state.replaceString)},yt.prototype.replace=function(){if(!this._hasMatches())return;var Ue=this._getReplacePattern(),Me=this._editor.getSelection(),rt=this._getNextMatch(Me.getStartPosition(),!0,!1);if(rt)if(Me.equalsRange(rt.range)){var Nt=Ue.buildReplaceString(rt.matches,this._state.preserveCase),ge=new M.a(Me,Nt);this._executeEditorCommand("replace",ge),this._decorations.setStartPosition(new U.a(Me.startLineNumber,Me.startColumn+Nt.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(rt.range)},yt.prototype._findMatches=function(Ue,Me,rt){var Nt=yt._getSearchRange(this._editor.getModel(),Ue);return this._editor.getModel().findMatches(this._state.searchString,Nt,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Me,rt)},yt.prototype.replaceAll=function(){if(!this._hasMatches())return;var Ue=this._decorations.getFindScope();Ue===null&&this._state.matchesCount>=He?this._largeReplaceAll():this._regularReplaceAll(Ue),this.research(!1)},yt.prototype._largeReplaceAll=function(){var Ue=new y.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null),Me=Ue.parseSearchRequest();if(!Me)return;var rt=Me.regex;if(!rt.multiline){var Nt="mu";rt.ignoreCase&&(Nt+="i"),rt.global&&(Nt+="g"),rt=new RegExp(rt.source,Nt)}var ge=this._editor.getModel(),O=ge.getValue(1),ye=ge.getFullModelRange(),We=this._getReplacePattern(),Ze,st=this._state.preserveCase;We.hasReplacementPatterns||st?Ze=O.replace(rt,function(){return We.buildReplaceString(arguments,st)}):Ze=O.replace(rt,We.buildReplaceString(null,st));var pt=new M.b(ye,Ze,this._editor.getSelection());this._executeEditorCommand("replaceAll",pt)},yt.prototype._regularReplaceAll=function(Ue){for(var Me=this._getReplacePattern(),rt=this._findMatches(Ue,Me.hasReplacementPatterns||this._state.preserveCase,1073741824),Nt=[],ge=0,O=rt.length;ge<O;ge++)Nt[ge]=Me.buildReplaceString(rt[ge].matches,this._state.preserveCase);var ye=new u(this._editor.getSelection(),rt.map(function(We){return We.range}),Nt);this._executeEditorCommand("replaceAll",ye)},yt.prototype.selectAllMatches=function(){if(!this._hasMatches())return;for(var Ue=this._decorations.getFindScope(),Me=this._findMatches(Ue,!1,1073741824),rt=Me.map(function(We){return new c.a(We.range.startLineNumber,We.range.startColumn,We.range.endLineNumber,We.range.endColumn)}),Nt=this._editor.getSelection(),ge=0,O=rt.length;ge<O;ge++){var ye=rt[ge];if(ye.equalsRange(Nt)){rt=[Nt].concat(rt.slice(0,ge)).concat(rt.slice(ge+1));break}}this._editor.setSelections(rt)},yt.prototype._executeEditorCommand=function(Ue,Me){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(Ue,Me),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},yt}(),ee=e("EffR"),ae=e("iJk1"),q=e("G300"),ce=e("zrhQ"),X=e("MI8n"),he=e("qj0h"),Pe=function(){var yt=function(Me,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Nt,ge){Nt.__proto__=ge}||function(Nt,ge){for(var O in ge)ge.hasOwnProperty(O)&&(Nt[O]=ge[O])},yt(Me,rt)};return function(Ue,Me){yt(Ue,Me);function rt(){this.constructor=Ue}Ue.prototype=Me===null?Object.create(Me):(rt.prototype=Me.prototype,new rt)}}(),Xe={inputActiveOptionBorder:ce.a.fromHex("#007ACC00"),inputActiveOptionBackground:ce.a.fromHex("#0E639C50")},pe=function(yt){Pe(Ue,yt);function Ue(Me){var rt=yt.call(this)||this;return rt._onChange=rt._register(new X.a),rt.onChange=rt._onChange.event,rt._onKeyDown=rt._register(new X.a),rt.onKeyDown=rt._onKeyDown.event,rt._opts=he.c(Me),he.g(rt._opts,Xe,!1),rt._checked=rt._opts.isChecked,rt.domNode=document.createElement("div"),rt.domNode.title=rt._opts.title,rt.domNode.className="monaco-custom-checkbox codicon "+(rt._opts.actionClassName||"")+" "+(rt._checked?"checked":"unchecked"),rt.domNode.tabIndex=0,rt.domNode.setAttribute("role","checkbox"),rt.domNode.setAttribute("aria-checked",String(rt._checked)),rt.domNode.setAttribute("aria-label",rt._opts.title),rt.applyStyles(),rt.onclick(rt.domNode,function(Nt){rt.checked=!rt._checked,rt._onChange.fire(!1),Nt.preventDefault()}),rt.ignoreGesture(rt.domNode),rt.onkeydown(rt.domNode,function(Nt){if(Nt.keyCode===10||Nt.keyCode===3){rt.checked=!rt._checked,rt._onChange.fire(!0),Nt.preventDefault();return}rt._onKeyDown.fire(Nt)}),rt}return Object.defineProperty(Ue.prototype,"enabled",{get:function(){return this.domNode.getAttribute("aria-disabled")!=="true"},enumerable:!0,configurable:!0}),Ue.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(Ue.prototype,"checked",{get:function(){return this._checked},set:function(rt){this._checked=rt,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()},enumerable:!0,configurable:!0}),Ue.prototype.width=function(){return 2+2+2+16},Ue.prototype.style=function(Me){Me.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=Me.inputActiveOptionBorder),Me.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=Me.inputActiveOptionBackground),this.applyStyles()},Ue.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")},Ue.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},Ue.prototype.disable=function(){ee.S(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},Ue}(q.a),me=function(){var yt=function(Me,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Nt,ge){Nt.__proto__=ge}||function(Nt,ge){for(var O in ge)ge.hasOwnProperty(O)&&(Nt[O]=ge[O])},yt(Me,rt)};return function(Ue,Me){yt(Ue,Me);function rt(){this.constructor=Ue}Ue.prototype=Me===null?Object.create(Me):(rt.prototype=Me.prototype,new rt)}}(),Se=T.a("caseDescription","Match Case"),Re=T.a("wordsDescription","Match Whole Word"),Ee=T.a("regexDescription","Use Regular Expression"),ve=function(yt){me(Ue,yt);function Ue(Me){return yt.call(this,{actionClassName:"codicon-case-sensitive",title:Se+Me.appendTitle,isChecked:Me.isChecked,inputActiveOptionBorder:Me.inputActiveOptionBorder,inputActiveOptionBackground:Me.inputActiveOptionBackground})||this}return Ue}(pe),Q=function(yt){me(Ue,yt);function Ue(Me){return yt.call(this,{actionClassName:"codicon-whole-word",title:Re+Me.appendTitle,isChecked:Me.isChecked,inputActiveOptionBorder:Me.inputActiveOptionBorder,inputActiveOptionBackground:Me.inputActiveOptionBackground})||this}return Ue}(pe),b=function(yt){me(Ue,yt);function Ue(Me){return yt.call(this,{actionClassName:"codicon-regex",title:Ee+Me.appendTitle,isChecked:Me.isChecked,inputActiveOptionBorder:Me.inputActiveOptionBorder,inputActiveOptionBackground:Me.inputActiveOptionBackground})||this}return Ue}(pe),k=function(){var yt=function(Me,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Nt,ge){Nt.__proto__=ge}||function(Nt,ge){for(var O in ge)ge.hasOwnProperty(O)&&(Nt[O]=ge[O])},yt(Me,rt)};return function(Ue,Me){yt(Ue,Me);function rt(){this.constructor=Ue}Ue.prototype=Me===null?Object.create(Me):(rt.prototype=Me.prototype,new rt)}}(),se=function(yt){k(Ue,yt);function Ue(Me,rt,Nt,ge){var O=yt.call(this)||this;O._hideSoon=O._register(new re.d(function(){return O._hide()},2e3)),O._isVisible=!1,O._editor=Me,O._state=rt,O._keybindingService=Nt,O._domNode=document.createElement("div"),O._domNode.className="findOptionsWidget",O._domNode.style.display="none",O._domNode.style.top="10px",O._domNode.setAttribute("role","presentation"),O._domNode.setAttribute("aria-hidden","true");var ye=ge.getTheme().getColor(v.Y),We=ge.getTheme().getColor(v.X);return O.caseSensitive=O._register(new ve({appendTitle:O._keybindingLabelFor(ke.ToggleCaseSensitiveCommand),isChecked:O._state.matchCase,inputActiveOptionBorder:ye,inputActiveOptionBackground:We})),O._domNode.appendChild(O.caseSensitive.domNode),O._register(O.caseSensitive.onChange(function(){O._state.change({matchCase:O.caseSensitive.checked},!1)})),O.wholeWords=O._register(new Q({appendTitle:O._keybindingLabelFor(ke.ToggleWholeWordCommand),isChecked:O._state.wholeWord,inputActiveOptionBorder:ye,inputActiveOptionBackground:We})),O._domNode.appendChild(O.wholeWords.domNode),O._register(O.wholeWords.onChange(function(){O._state.change({wholeWord:O.wholeWords.checked},!1)})),O.regex=O._register(new b({appendTitle:O._keybindingLabelFor(ke.ToggleRegexCommand),isChecked:O._state.isRegex,inputActiveOptionBorder:ye,inputActiveOptionBackground:We})),O._domNode.appendChild(O.regex.domNode),O._register(O.regex.onChange(function(){O._state.change({isRegex:O.regex.checked},!1)})),O._editor.addOverlayWidget(O),O._register(O._state.onFindReplaceStateChange(function(Ze){var st=!1;Ze.isRegex&&(O.regex.checked=O._state.isRegex,st=!0),Ze.wholeWord&&(O.wholeWords.checked=O._state.wholeWord,st=!0),Ze.matchCase&&(O.caseSensitive.checked=O._state.matchCase,st=!0),!O._state.isRevealed&&st&&O._revealTemporarily()})),O._register(ee.k(O._domNode,function(Ze){return O._onMouseOut()})),O._register(ee.j(O._domNode,"mouseover",function(Ze){return O._onMouseOver()})),O._applyTheme(ge.getTheme()),O._register(ge.onThemeChange(O._applyTheme.bind(O))),O}return Ue.prototype._keybindingLabelFor=function(Me){var rt=this._keybindingService.lookupKeybinding(Me);return rt?" ("+rt.getLabel()+")":""},Ue.prototype.dispose=function(){this._editor.removeOverlayWidget(this),yt.prototype.dispose.call(this)},Ue.prototype.getId=function(){return Ue.ID},Ue.prototype.getDomNode=function(){return this._domNode},Ue.prototype.getPosition=function(){return{preference:0}},Ue.prototype.highlightFindOptions=function(){this._revealTemporarily()},Ue.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},Ue.prototype._onMouseOut=function(){this._hideSoon.schedule()},Ue.prototype._onMouseOver=function(){this._hideSoon.cancel()},Ue.prototype._show=function(){if(this._isVisible)return;this._isVisible=!0,this._domNode.style.display="block"},Ue.prototype._hide=function(){if(!this._isVisible)return;this._isVisible=!1,this._domNode.style.display="none"},Ue.prototype._applyTheme=function(Me){var rt={inputActiveOptionBorder:Me.getColor(v.Y),inputActiveOptionBackground:Me.getColor(v.X)};this.caseSensitive.style(rt),this.wholeWords.style(rt),this.regex.style(rt)},Ue.ID="editor.contrib.findOptionsWidget",Ue}(q.a);Object(S.e)(function(yt,Ue){var Me=yt.getColor(v.Q);Me&&Ue.addRule(".monaco-editor .findOptionsWidget { background-color: "+Me+"; }");var rt=yt.getColor(v.S);rt&&Ue.addRule(".monaco-editor .findOptionsWidget { color: "+rt+"; }");var Nt=yt.getColor(v.hc);Nt&&Ue.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+Nt+"; }");var ge=yt.getColor(v.e);ge&&Ue.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+ge+"; }")});var ne=function(){var yt=function(Me,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Nt,ge){Nt.__proto__=ge}||function(Nt,ge){for(var O in ge)ge.hasOwnProperty(O)&&(Nt[O]=ge[O])},yt(Me,rt)};return function(Ue,Me){yt(Ue,Me);function rt(){this.constructor=Ue}Ue.prototype=Me===null?Object.create(Me):(rt.prototype=Me.prototype,new rt)}}();function Ce(yt,Ue){return yt===1?!0:yt===2?!1:Ue}var Oe=function(yt){ne(Ue,yt);function Ue(){var Me=yt.call(this)||this;return Me._onFindReplaceStateChange=Me._register(new X.a),Me.onFindReplaceStateChange=Me._onFindReplaceStateChange.event,Me._searchString="",Me._replaceString="",Me._isRevealed=!1,Me._isReplaceRevealed=!1,Me._isRegex=!1,Me._isRegexOverride=0,Me._wholeWord=!1,Me._wholeWordOverride=0,Me._matchCase=!1,Me._matchCaseOverride=0,Me._preserveCase=!1,Me._preserveCaseOverride=0,Me._searchScope=null,Me._matchesPosition=0,Me._matchesCount=0,Me._currentMatch=null,Me}return Object.defineProperty(Ue.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"isRegex",{get:function(){return Ce(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"wholeWord",{get:function(){return Ce(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"matchCase",{get:function(){return Ce(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"preserveCase",{get:function(){return Ce(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),Ue.prototype.changeMatchInfo=function(Me,rt,Nt){var ge={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},O=!1;rt===0&&(Me=0),Me>rt&&(Me=rt),this._matchesPosition!==Me&&(this._matchesPosition=Me,ge.matchesPosition=!0,O=!0),this._matchesCount!==rt&&(this._matchesCount=rt,ge.matchesCount=!0,O=!0),typeof Nt!="undefined"&&(A.a.equalsRange(this._currentMatch,Nt)||(this._currentMatch=Nt,ge.currentMatch=!0,O=!0)),O&&this._onFindReplaceStateChange.fire(ge)},Ue.prototype.change=function(Me,rt,Nt){Nt===void 0&&(Nt=!0);var ge={moveCursor:rt,updateHistory:Nt,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},O=!1,ye=this.isRegex,We=this.wholeWord,Ze=this.matchCase,st=this.preserveCase;typeof Me.searchString!="undefined"&&(this._searchString!==Me.searchString&&(this._searchString=Me.searchString,ge.searchString=!0,O=!0)),typeof Me.replaceString!="undefined"&&(this._replaceString!==Me.replaceString&&(this._replaceString=Me.replaceString,ge.replaceString=!0,O=!0)),typeof Me.isRevealed!="undefined"&&(this._isRevealed!==Me.isRevealed&&(this._isRevealed=Me.isRevealed,ge.isRevealed=!0,O=!0)),typeof Me.isReplaceRevealed!="undefined"&&(this._isReplaceRevealed!==Me.isReplaceRevealed&&(this._isReplaceRevealed=Me.isReplaceRevealed,ge.isReplaceRevealed=!0,O=!0)),typeof Me.isRegex!="undefined"&&(this._isRegex=Me.isRegex),typeof Me.wholeWord!="undefined"&&(this._wholeWord=Me.wholeWord),typeof Me.matchCase!="undefined"&&(this._matchCase=Me.matchCase),typeof Me.preserveCase!="undefined"&&(this._preserveCase=Me.preserveCase),typeof Me.searchScope!="undefined"&&(A.a.equalsRange(this._searchScope,Me.searchScope)||(this._searchScope=Me.searchScope,ge.searchScope=!0,O=!0)),this._isRegexOverride=typeof Me.isRegexOverride!="undefined"?Me.isRegexOverride:0,this._wholeWordOverride=typeof Me.wholeWordOverride!="undefined"?Me.wholeWordOverride:0,this._matchCaseOverride=typeof Me.matchCaseOverride!="undefined"?Me.matchCaseOverride:0,this._preserveCaseOverride=typeof Me.preserveCaseOverride!="undefined"?Me.preserveCaseOverride:0,ye!==this.isRegex&&(O=!0,ge.isRegex=!0),We!==this.wholeWord&&(O=!0,ge.wholeWord=!0),Ze!==this.matchCase&&(O=!0,ge.matchCase=!0),st!==this.preserveCase&&(O=!0,ge.preserveCase=!0),O&&this._onFindReplaceStateChange.fire(ge)},Ue}(J.a),we=e("AbCa"),Ve=e("OBOq"),Qe=e("cMOf"),it=e("/cxE"),gt=e("MNsG"),Rt=e("yqFB"),Dt=e("0+8E"),zt=function(){var yt=function(Me,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Nt,ge){Nt.__proto__=ge}||function(Nt,ge){for(var O in ge)ge.hasOwnProperty(O)&&(Nt[O]=ge[O])},yt(Me,rt)};return function(Ue,Me){yt(Ue,Me);function rt(){this.constructor=Ue}Ue.prototype=Me===null?Object.create(Me):(rt.prototype=Me.prototype,new rt)}}(),cn=T.a("defaultLabel","input"),ln=function(yt){zt(Ue,yt);function Ue(Me,rt,Nt,ge){var O=yt.call(this)||this;O._showOptionButtons=Nt,O.fixFocusOnOptionClickEnabled=!0,O._onDidOptionChange=O._register(new X.a),O.onDidOptionChange=O._onDidOptionChange.event,O._onKeyDown=O._register(new X.a),O.onKeyDown=O._onKeyDown.event,O._onMouseDown=O._register(new X.a),O.onMouseDown=O._onMouseDown.event,O._onInput=O._register(new X.a),O._onKeyUp=O._register(new X.a),O._onCaseSensitiveKeyDown=O._register(new X.a),O.onCaseSensitiveKeyDown=O._onCaseSensitiveKeyDown.event,O._onRegexKeyDown=O._register(new X.a),O.onRegexKeyDown=O._onRegexKeyDown.event,O._lastHighlightFindOptions=0,O.contextViewProvider=rt,O.placeholder=ge.placeholder||"",O.validation=ge.validation,O.label=ge.label||cn,O.inputActiveOptionBorder=ge.inputActiveOptionBorder,O.inputActiveOptionBackground=ge.inputActiveOptionBackground,O.inputBackground=ge.inputBackground,O.inputForeground=ge.inputForeground,O.inputBorder=ge.inputBorder,O.inputValidationInfoBorder=ge.inputValidationInfoBorder,O.inputValidationInfoBackground=ge.inputValidationInfoBackground,O.inputValidationInfoForeground=ge.inputValidationInfoForeground,O.inputValidationWarningBorder=ge.inputValidationWarningBorder,O.inputValidationWarningBackground=ge.inputValidationWarningBackground,O.inputValidationWarningForeground=ge.inputValidationWarningForeground,O.inputValidationErrorBorder=ge.inputValidationErrorBorder,O.inputValidationErrorBackground=ge.inputValidationErrorBackground,O.inputValidationErrorForeground=ge.inputValidationErrorForeground;var ye=ge.appendCaseSensitiveLabel||"",We=ge.appendWholeWordsLabel||"",Ze=ge.appendRegexLabel||"",st=ge.history||[],pt=!!ge.flexibleHeight,Kt=!!ge.flexibleWidth,Xt=ge.flexibleMaxHeight;O.domNode=document.createElement("div"),ee.f(O.domNode,"monaco-findInput"),O.inputBox=O._register(new Dt.a(O.domNode,O.contextViewProvider,{placeholder:O.placeholder||"",ariaLabel:O.label||"",validationOptions:{validation:O.validation},inputBackground:O.inputBackground,inputForeground:O.inputForeground,inputBorder:O.inputBorder,inputValidationInfoBackground:O.inputValidationInfoBackground,inputValidationInfoForeground:O.inputValidationInfoForeground,inputValidationInfoBorder:O.inputValidationInfoBorder,inputValidationWarningBackground:O.inputValidationWarningBackground,inputValidationWarningForeground:O.inputValidationWarningForeground,inputValidationWarningBorder:O.inputValidationWarningBorder,inputValidationErrorBackground:O.inputValidationErrorBackground,inputValidationErrorForeground:O.inputValidationErrorForeground,inputValidationErrorBorder:O.inputValidationErrorBorder,history:st,flexibleHeight:pt,flexibleWidth:Kt,flexibleMaxHeight:Xt})),O.regex=O._register(new b({appendTitle:Ze,isChecked:!1,inputActiveOptionBorder:O.inputActiveOptionBorder,inputActiveOptionBackground:O.inputActiveOptionBackground})),O._register(O.regex.onChange(function(dn){O._onDidOptionChange.fire(dn),!dn&&O.fixFocusOnOptionClickEnabled&&O.inputBox.focus(),O.validate()})),O._register(O.regex.onKeyDown(function(dn){O._onRegexKeyDown.fire(dn)})),O.wholeWords=O._register(new Q({appendTitle:We,isChecked:!1,inputActiveOptionBorder:O.inputActiveOptionBorder,inputActiveOptionBackground:O.inputActiveOptionBackground})),O._register(O.wholeWords.onChange(function(dn){O._onDidOptionChange.fire(dn),!dn&&O.fixFocusOnOptionClickEnabled&&O.inputBox.focus(),O.validate()})),O.caseSensitive=O._register(new ve({appendTitle:ye,isChecked:!1,inputActiveOptionBorder:O.inputActiveOptionBorder,inputActiveOptionBackground:O.inputActiveOptionBackground})),O._register(O.caseSensitive.onChange(function(dn){O._onDidOptionChange.fire(dn),!dn&&O.fixFocusOnOptionClickEnabled&&O.inputBox.focus(),O.validate()})),O._register(O.caseSensitive.onKeyDown(function(dn){O._onCaseSensitiveKeyDown.fire(dn)})),O._showOptionButtons&&(O.inputBox.paddingRight=O.caseSensitive.width()+O.wholeWords.width()+O.regex.width());var on=[O.caseSensitive.domNode,O.wholeWords.domNode,O.regex.domNode];O.onkeydown(O.domNode,function(dn){if(dn.equals(15)||dn.equals(17)||dn.equals(9)){var Rn=on.indexOf(document.activeElement);if(Rn>=0){var Sn=-1;dn.equals(17)?Sn=(Rn+1)%on.length:dn.equals(15)&&(Rn===0?Sn=on.length-1:Sn=Rn-1),dn.equals(9)?on[Rn].blur():Sn>=0&&on[Sn].focus(),ee.c.stop(dn,!0)}}});var vn=document.createElement("div");return vn.className="controls",vn.style.display=O._showOptionButtons?"block":"none",vn.appendChild(O.caseSensitive.domNode),vn.appendChild(O.wholeWords.domNode),vn.appendChild(O.regex.domNode),O.domNode.appendChild(vn),Me&&Me.appendChild(O.domNode),O.onkeydown(O.inputBox.inputElement,function(dn){return O._onKeyDown.fire(dn)}),O.onkeyup(O.inputBox.inputElement,function(dn){return O._onKeyUp.fire(dn)}),O.oninput(O.inputBox.inputElement,function(dn){return O._onInput.fire()}),O.onmousedown(O.inputBox.inputElement,function(dn){return O._onMouseDown.fire(dn)}),O}return Ue.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},Ue.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},Ue.prototype.setFocusInputOnOptionClick=function(Me){this.fixFocusOnOptionClickEnabled=Me},Ue.prototype.setEnabled=function(Me){Me?this.enable():this.disable()},Ue.prototype.getValue=function(){return this.inputBox.value},Ue.prototype.setValue=function(Me){this.inputBox.value!==Me&&(this.inputBox.value=Me)},Ue.prototype.style=function(Me){this.inputActiveOptionBorder=Me.inputActiveOptionBorder,this.inputActiveOptionBackground=Me.inputActiveOptionBackground,this.inputBackground=Me.inputBackground,this.inputForeground=Me.inputForeground,this.inputBorder=Me.inputBorder,this.inputValidationInfoBackground=Me.inputValidationInfoBackground,this.inputValidationInfoForeground=Me.inputValidationInfoForeground,this.inputValidationInfoBorder=Me.inputValidationInfoBorder,this.inputValidationWarningBackground=Me.inputValidationWarningBackground,this.inputValidationWarningForeground=Me.inputValidationWarningForeground,this.inputValidationWarningBorder=Me.inputValidationWarningBorder,this.inputValidationErrorBackground=Me.inputValidationErrorBackground,this.inputValidationErrorForeground=Me.inputValidationErrorForeground,this.inputValidationErrorBorder=Me.inputValidationErrorBorder,this.applyStyles()},Ue.prototype.applyStyles=function(){if(this.domNode){var Me={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(Me),this.wholeWords.style(Me),this.caseSensitive.style(Me);var rt={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(rt)}},Ue.prototype.select=function(){this.inputBox.select()},Ue.prototype.focus=function(){this.inputBox.focus()},Ue.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},Ue.prototype.setCaseSensitive=function(Me){this.caseSensitive.checked=Me},Ue.prototype.getWholeWords=function(){return this.wholeWords.checked},Ue.prototype.setWholeWords=function(Me){this.wholeWords.checked=Me},Ue.prototype.getRegex=function(){return this.regex.checked},Ue.prototype.setRegex=function(Me){this.regex.checked=Me,this.validate()},Ue.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},Ue.prototype.highlightFindOptions=function(){ee.P(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,ee.f(this.domNode,"highlight-"+this._lastHighlightFindOptions)},Ue.prototype.validate=function(){this.inputBox.validate()},Ue.prototype.clearMessage=function(){this.inputBox.hideMessage()},Ue}(q.a),an=e("nrhi"),jt=function(){var yt=function(Me,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Nt,ge){Nt.__proto__=ge}||function(Nt,ge){for(var O in ge)ge.hasOwnProperty(O)&&(Nt[O]=ge[O])},yt(Me,rt)};return function(Ue,Me){yt(Ue,Me);function rt(){this.constructor=Ue}Ue.prototype=Me===null?Object.create(Me):(rt.prototype=Me.prototype,new rt)}}(),ft=T.a("defaultLabel","input"),vt=T.a("label.preserveCaseCheckbox","Preserve Case"),xt=function(yt){jt(Ue,yt);function Ue(Me){return yt.call(this,{actionClassName:"codicon-preserve-case",title:vt+Me.appendTitle,isChecked:Me.isChecked,inputActiveOptionBorder:Me.inputActiveOptionBorder,inputActiveOptionBackground:Me.inputActiveOptionBackground})||this}return Ue}(pe),at=function(yt){jt(Ue,yt);function Ue(Me,rt,Nt,ge){var O=yt.call(this)||this;O._showOptionButtons=Nt,O.fixFocusOnOptionClickEnabled=!0,O.cachedOptionsWidth=0,O._onDidOptionChange=O._register(new X.a),O.onDidOptionChange=O._onDidOptionChange.event,O._onKeyDown=O._register(new X.a),O.onKeyDown=O._onKeyDown.event,O._onMouseDown=O._register(new X.a),O._onInput=O._register(new X.a),O._onKeyUp=O._register(new X.a),O._onPreserveCaseKeyDown=O._register(new X.a),O.onPreserveCaseKeyDown=O._onPreserveCaseKeyDown.event,O.contextViewProvider=rt,O.placeholder=ge.placeholder||"",O.validation=ge.validation,O.label=ge.label||ft,O.inputActiveOptionBorder=ge.inputActiveOptionBorder,O.inputActiveOptionBackground=ge.inputActiveOptionBackground,O.inputBackground=ge.inputBackground,O.inputForeground=ge.inputForeground,O.inputBorder=ge.inputBorder,O.inputValidationInfoBorder=ge.inputValidationInfoBorder,O.inputValidationInfoBackground=ge.inputValidationInfoBackground,O.inputValidationInfoForeground=ge.inputValidationInfoForeground,O.inputValidationWarningBorder=ge.inputValidationWarningBorder,O.inputValidationWarningBackground=ge.inputValidationWarningBackground,O.inputValidationWarningForeground=ge.inputValidationWarningForeground,O.inputValidationErrorBorder=ge.inputValidationErrorBorder,O.inputValidationErrorBackground=ge.inputValidationErrorBackground,O.inputValidationErrorForeground=ge.inputValidationErrorForeground;var ye=ge.history||[],We=!!ge.flexibleHeight,Ze=!!ge.flexibleWidth,st=ge.flexibleMaxHeight;O.domNode=document.createElement("div"),ee.f(O.domNode,"monaco-findInput"),O.inputBox=O._register(new Dt.a(O.domNode,O.contextViewProvider,{ariaLabel:O.label||"",placeholder:O.placeholder||"",validationOptions:{validation:O.validation},inputBackground:O.inputBackground,inputForeground:O.inputForeground,inputBorder:O.inputBorder,inputValidationInfoBackground:O.inputValidationInfoBackground,inputValidationInfoForeground:O.inputValidationInfoForeground,inputValidationInfoBorder:O.inputValidationInfoBorder,inputValidationWarningBackground:O.inputValidationWarningBackground,inputValidationWarningForeground:O.inputValidationWarningForeground,inputValidationWarningBorder:O.inputValidationWarningBorder,inputValidationErrorBackground:O.inputValidationErrorBackground,inputValidationErrorForeground:O.inputValidationErrorForeground,inputValidationErrorBorder:O.inputValidationErrorBorder,history:ye,flexibleHeight:We,flexibleWidth:Ze,flexibleMaxHeight:st})),O.preserveCase=O._register(new xt({appendTitle:"",isChecked:!1,inputActiveOptionBorder:O.inputActiveOptionBorder,inputActiveOptionBackground:O.inputActiveOptionBackground})),O._register(O.preserveCase.onChange(function(Xt){O._onDidOptionChange.fire(Xt),!Xt&&O.fixFocusOnOptionClickEnabled&&O.inputBox.focus(),O.validate()})),O._register(O.preserveCase.onKeyDown(function(Xt){O._onPreserveCaseKeyDown.fire(Xt)})),O._showOptionButtons?O.cachedOptionsWidth=O.preserveCase.width():O.cachedOptionsWidth=0;var pt=[O.preserveCase.domNode];O.onkeydown(O.domNode,function(Xt){if(Xt.equals(15)||Xt.equals(17)||Xt.equals(9)){var on=pt.indexOf(document.activeElement);if(on>=0){var vn=-1;Xt.equals(17)?vn=(on+1)%pt.length:Xt.equals(15)&&(on===0?vn=pt.length-1:vn=on-1),Xt.equals(9)?pt[on].blur():vn>=0&&pt[vn].focus(),ee.c.stop(Xt,!0)}}});var Kt=document.createElement("div");return Kt.className="controls",Kt.style.display=O._showOptionButtons?"block":"none",Kt.appendChild(O.preserveCase.domNode),O.domNode.appendChild(Kt),Me&&Me.appendChild(O.domNode),O.onkeydown(O.inputBox.inputElement,function(Xt){return O._onKeyDown.fire(Xt)}),O.onkeyup(O.inputBox.inputElement,function(Xt){return O._onKeyUp.fire(Xt)}),O.oninput(O.inputBox.inputElement,function(Xt){return O._onInput.fire()}),O.onmousedown(O.inputBox.inputElement,function(Xt){return O._onMouseDown.fire(Xt)}),O}return Ue.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},Ue.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},Ue.prototype.setEnabled=function(Me){Me?this.enable():this.disable()},Ue.prototype.style=function(Me){this.inputActiveOptionBorder=Me.inputActiveOptionBorder,this.inputActiveOptionBackground=Me.inputActiveOptionBackground,this.inputBackground=Me.inputBackground,this.inputForeground=Me.inputForeground,this.inputBorder=Me.inputBorder,this.inputValidationInfoBackground=Me.inputValidationInfoBackground,this.inputValidationInfoForeground=Me.inputValidationInfoForeground,this.inputValidationInfoBorder=Me.inputValidationInfoBorder,this.inputValidationWarningBackground=Me.inputValidationWarningBackground,this.inputValidationWarningForeground=Me.inputValidationWarningForeground,this.inputValidationWarningBorder=Me.inputValidationWarningBorder,this.inputValidationErrorBackground=Me.inputValidationErrorBackground,this.inputValidationErrorForeground=Me.inputValidationErrorForeground,this.inputValidationErrorBorder=Me.inputValidationErrorBorder,this.applyStyles()},Ue.prototype.applyStyles=function(){if(this.domNode){var Me={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(Me);var rt={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(rt)}},Ue.prototype.select=function(){this.inputBox.select()},Ue.prototype.focus=function(){this.inputBox.focus()},Ue.prototype.getPreserveCase=function(){return this.preserveCase.checked},Ue.prototype.setPreserveCase=function(Me){this.preserveCase.checked=Me},Ue.prototype.focusOnPreserve=function(){this.preserveCase.focus()},Ue.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(Ue.prototype,"width",{set:function(rt){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=rt,this.domNode.style.width=rt+"px"},enumerable:!0,configurable:!0}),Ue.prototype.dispose=function(){yt.prototype.dispose.call(this)},Ue}(q.a),tt=function(){var yt=function(Me,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Nt,ge){Nt.__proto__=ge}||function(Nt,ge){for(var O in ge)ge.hasOwnProperty(O)&&(Nt[O]=ge[O])},yt(Me,rt)};return function(Ue,Me){yt(Ue,Me);function rt(){this.constructor=Ue}Ue.prototype=Me===null?Object.create(Me):(rt.prototype=Me.prototype,new rt)}}(),ct=function(yt,Ue,Me,rt){var Nt=arguments.length,ge=Nt<3?Ue:rt===null?rt=Object.getOwnPropertyDescriptor(Ue,Me):rt,O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ge=Reflect.decorate(yt,Ue,Me,rt);else for(var ye=yt.length-1;ye>=0;ye--)(O=yt[ye])&&(ge=(Nt<3?O(ge):Nt>3?O(Ue,Me,ge):O(Ue,Me))||ge);return Nt>3&&ge&&Object.defineProperty(Ue,Me,ge),ge},bt=function(yt,Ue){return function(Me,rt){Ue(Me,rt,yt)}},mt="historyNavigationWidget",Ct="historyNavigationEnabled";function Gt(yt,Ue,Me){new $.d(Me,Ue).bindTo(yt)}function It(yt,Ue){return yt.createScoped(Ue.target)}function Et(yt,Ue){return yt.getContext(document.activeElement).getValue(Ue)}function Je(yt,Ue){var Me=It(yt,Ue);Gt(Me,Ue,mt);var rt=new $.d(Ct,!0).bindTo(Me);return{scopedContextKeyService:Me,historyNavigationEnablement:rt}}var $e=function(yt){tt(Ue,yt);function Ue(Me,rt,Nt,ge,O){O===void 0&&(O=!1);var ye=yt.call(this,Me,rt,O,Nt)||this;return ye._register(Je(ge,{target:ye.inputBox.element,historyNavigator:ye.inputBox}).scopedContextKeyService),ye}return Ue=ct([bt(3,$.c)],Ue),Ue}(ln),ze=function(yt){tt(Ue,yt);function Ue(Me,rt,Nt,ge,O){O===void 0&&(O=!1);var ye=yt.call(this,Me,rt,O,Nt)||this;return ye._register(Je(ge,{target:ye.inputBox.element,historyNavigator:ye.inputBox}).scopedContextKeyService),ye}return Ue=ct([bt(3,$.c)],Ue),Ue}(at);an.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:$.a.and($.a.has(mt),$.a.equals(Ct,!0)),primary:16,secondary:[512|16],handler:function(Ue,Me){var rt=Et(Ue.get($.c),mt);if(rt){var Nt=rt.historyNavigator;Nt.showPreviousValue()}}}),an.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:$.a.and($.a.has(mt),$.a.equals(Ct,!0)),primary:18,secondary:[512|18],handler:function(Ue,Me){var rt=Et(Ue.get($.c),mt);if(rt){var Nt=rt.historyNavigator;Nt.showNextValue()}}});var Ke=function(){var yt=function(Me,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Nt,ge){Nt.__proto__=ge}||function(Nt,ge){for(var O in ge)ge.hasOwnProperty(O)&&(Nt[O]=ge[O])},yt(Me,rt)};return function(Ue,Me){yt(Ue,Me);function rt(){this.constructor=Ue}Ue.prototype=Me===null?Object.create(Me):(rt.prototype=Me.prototype,new rt)}}(),fe=T.a("label.find","Find"),G=T.a("placeholder.find","Find"),te=T.a("label.previousMatchButton","Previous match"),Y=T.a("label.nextMatchButton","Next match"),de=T.a("label.toggleSelectionFind","Find in selection"),Fe=T.a("label.closeButton","Close"),lt=T.a("label.replace","Replace"),Tt=T.a("placeholder.replace","Replace"),Jt=T.a("label.replaceButton","Replace"),en=T.a("label.replaceAllButton","Replace All"),gn=T.a("label.toggleReplaceButton","Toggle Replace mode"),un=T.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",He),En=T.a("label.matchesLocation","{0} of {1}"),Mn=T.a("label.noResults","No Results"),xn=419,Zn=275,bn=Zn-54,Wn=69,Gn=33,Bn="ctrlEnterReplaceAll.windows.donotask",Dn=gt.e?256:2048,Qn=function(){function yt(Ue){this.afterLineNumber=Ue,this.heightInPx=Gn,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return yt}();function fo(yt,Ue,Me){var rt=!!Ue.match(/\n/);if(Me&&rt&&Me.selectionStart>0){yt.stopPropagation();return}}function Vn(yt,Ue,Me){var rt=!!Ue.match(/\n/);if(Me&&rt&&Me.selectionEnd<Me.value.length){yt.stopPropagation();return}}var po=function(yt){Ke(Ue,yt);function Ue(Me,rt,Nt,ge,O,ye,We,Ze,st){var pt=yt.call(this)||this;return pt._cachedHeight=null,pt._codeEditor=Me,pt._controller=rt,pt._state=Nt,pt._contextViewProvider=ge,pt._keybindingService=O,pt._contextKeyService=ye,pt._storageService=Ze,pt._notificationService=st,pt._ctrlEnterReplaceAllWarningPrompted=!!Ze.getBoolean(Bn,0),pt._isVisible=!1,pt._isReplaceVisible=!1,pt._ignoreChangeEvent=!1,pt._updateHistoryDelayer=new re.a(500),pt._register(Object(J.h)(function(){return pt._updateHistoryDelayer.cancel()})),pt._register(pt._state.onFindReplaceStateChange(function(Kt){return pt._onStateChanged(Kt)})),pt._buildDomNode(),pt._updateButtons(),pt._tryUpdateWidgetWidth(),pt._findInput.inputBox.layout(),pt._register(pt._codeEditor.onDidChangeConfiguration(function(Kt){if(Kt.hasChanged(68)&&(pt._codeEditor.getOption(68)&&pt._state.change({isReplaceRevealed:!1},!1),pt._updateButtons()),Kt.hasChanged(107)&&pt._tryUpdateWidgetWidth(),Kt.hasChanged(2)&&pt.updateAccessibilitySupport(),Kt.hasChanged(28)){var Xt=pt._codeEditor.getOption(28).addExtraSpaceOnTop;Xt&&!pt._viewZone&&(pt._viewZone=new Qn(0),pt._showViewZone()),!Xt&&pt._viewZone&&pt._removeViewZone()}})),pt.updateAccessibilitySupport(),pt._register(pt._codeEditor.onDidChangeCursorSelection(function(){pt._isVisible&&pt._updateToggleSelectionFindButton()})),pt._register(pt._codeEditor.onDidFocusEditorWidget(function(){if(pt._isVisible){var Kt=pt._controller.getGlobalBufferTerm();Kt&&Kt!==pt._state.searchString&&(pt._state.change({searchString:Kt},!0),pt._findInput.select())}})),pt._findInputFocused=W.bindTo(ye),pt._findFocusTracker=pt._register(ee.Z(pt._findInput.inputBox.inputElement)),pt._register(pt._findFocusTracker.onDidFocus(function(){pt._findInputFocused.set(!0),pt._updateSearchScope()})),pt._register(pt._findFocusTracker.onDidBlur(function(){pt._findInputFocused.set(!1)})),pt._replaceInputFocused=B.bindTo(ye),pt._replaceFocusTracker=pt._register(ee.Z(pt._replaceInput.inputBox.inputElement)),pt._register(pt._replaceFocusTracker.onDidFocus(function(){pt._replaceInputFocused.set(!0),pt._updateSearchScope()})),pt._register(pt._replaceFocusTracker.onDidBlur(function(){pt._replaceInputFocused.set(!1)})),pt._codeEditor.addOverlayWidget(pt),pt._codeEditor.getOption(28).addExtraSpaceOnTop&&(pt._viewZone=new Qn(0)),pt._applyTheme(We.getTheme()),pt._register(We.onThemeChange(pt._applyTheme.bind(pt))),pt._register(pt._codeEditor.onDidChangeModel(function(){if(!pt._isVisible)return;pt._viewZoneId=void 0})),pt._register(pt._codeEditor.onDidScrollChange(function(Kt){if(Kt.scrollTopChanged){pt._layoutViewZone();return}setTimeout(function(){pt._layoutViewZone()},0)})),pt}return Ue.prototype.getId=function(){return Ue.ID},Ue.prototype.getDomNode=function(){return this._domNode},Ue.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},Ue.prototype._onStateChanged=function(Me){if(Me.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(Me.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),Me.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),Me.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(68)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=ee.H(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(Me.isRevealed||Me.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&(this._tryUpdateHeight()&&this._showViewZone()),Me.isRegex&&this._findInput.setRegex(this._state.isRegex),Me.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),Me.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),Me.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),Me.searchString||Me.matchesCount||Me.matchesPosition){var rt=this._state.searchString.length>0&&this._state.matchesCount===0;ee.Y(this._domNode,"no-results",rt),this._updateMatchesCount(),this._updateButtons()}(Me.searchString||Me.currentMatch)&&this._layoutViewZone(),Me.updateHistory&&this._delayedUpdateHistory()},Ue.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},Ue.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},Ue.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=Wn+"px",this._state.matchesCount>=He?this._matchesCount.title=un:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var Me;if(this._state.matchesCount>0){var rt=String(this._state.matchesCount);this._state.matchesCount>=He&&(rt+="+");var Nt=String(this._state.matchesPosition);Nt==="0"&&(Nt="?"),Me=N.r(En,Nt,rt)}else Me=Mn;this._matchesCount.appendChild(document.createTextNode(Me)),Object(Ve.a)(this._getAriaLabel(Me,this._state.currentMatch,this._state.searchString),!0),Wn=Math.max(Wn,this._matchesCount.clientWidth)},Ue.prototype._getAriaLabel=function(Me,rt,Nt){return Me===Mn?Nt===""?T.a("ariaSearchNoResultEmpty","{0} found",Me):T.a("ariaSearchNoResult","{0} found for {1}",Me,Nt):rt?T.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",Me,Nt,rt.startLineNumber+":"+rt.startColumn):T.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",Me,Nt)},Ue.prototype._updateToggleSelectionFindButton=function(){var Me=this._codeEditor.getSelection(),rt=Me?Me.startLineNumber!==Me.endLineNumber||Me.startColumn!==Me.endColumn:!1,Nt=this._toggleSelectionFind.checked;this._isVisible&&(Nt||rt)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},Ue.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var Me=this._state.searchString.length>0,rt=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&Me&&rt),this._nextBtn.setEnabled(this._isVisible&&Me&&rt),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Me),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Me),ee.Y(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var Nt=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&Nt)},Ue.prototype._reveal=function(){var Me=this;if(!this._isVisible){this._isVisible=!0;var rt=this._codeEditor.getSelection();switch(this._codeEditor.getOption(28).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var Nt=!!rt&&rt.startLineNumber!==rt.endLineNumber;this._toggleSelectionFind.checked=Nt;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){ee.f(Me._domNode,"visible"),Me._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){Me._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var ge=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&rt){var O=this._codeEditor.getDomNode();if(O){var ye=ee.C(O),We=this._codeEditor.getScrolledVisiblePosition(rt.getStartPosition()),Ze=ye.left+(We?We.left:0),st=We?We.top:0;if(this._viewZone&&st<this._viewZone.heightInPx){rt.endLineNumber>rt.startLineNumber&&(ge=!1);var pt=ee.F(this._domNode).left;Ze>pt&&(ge=!1);var Kt=this._codeEditor.getScrolledVisiblePosition(rt.getEndPosition()),Xt=ye.left+(Kt?Kt.left:0);Xt>pt&&(ge=!1)}}}this._showViewZone(ge)}},Ue.prototype._hide=function(Me){this._isVisible&&(this._isVisible=!1,this._updateButtons(),ee.P(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),Me&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},Ue.prototype._layoutViewZone=function(){var Me=this,rt=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!rt){this._removeViewZone();return}if(!this._isVisible)return;var Nt=this._viewZone;if(this._viewZoneId!==void 0||!Nt)return;this._codeEditor.changeViewZones(function(ge){Nt.heightInPx=Me._getHeight(),Me._viewZoneId=ge.addZone(Nt),Me._codeEditor.setScrollTop(Me._codeEditor.getScrollTop()+Nt.heightInPx)})},Ue.prototype._showViewZone=function(Me){var rt=this;if(Me===void 0&&(Me=!0),!this._isVisible)return;var Nt=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!Nt)return;this._viewZone===void 0&&(this._viewZone=new Qn(0));var ge=this._viewZone;this._codeEditor.changeViewZones(function(O){if(rt._viewZoneId!==void 0){var ye=rt._getHeight();if(ye===ge.heightInPx)return;var We=ye-ge.heightInPx;ge.heightInPx=ye,O.layoutZone(rt._viewZoneId),Me&&rt._codeEditor.setScrollTop(rt._codeEditor.getScrollTop()+We);return}else{var We=rt._getHeight();ge.heightInPx=We,rt._viewZoneId=O.addZone(ge),Me&&rt._codeEditor.setScrollTop(rt._codeEditor.getScrollTop()+We)}})},Ue.prototype._removeViewZone=function(){var Me=this;this._codeEditor.changeViewZones(function(rt){Me._viewZoneId!==void 0&&(rt.removeZone(Me._viewZoneId),Me._viewZoneId=void 0,Me._viewZone&&(Me._codeEditor.setScrollTop(Me._codeEditor.getScrollTop()-Me._viewZone.heightInPx),Me._viewZone=void 0))})},Ue.prototype._applyTheme=function(Me){var rt={inputActiveOptionBorder:Me.getColor(v.Y),inputActiveOptionBackground:Me.getColor(v.X),inputBackground:Me.getColor(v.Z),inputForeground:Me.getColor(v.bb),inputBorder:Me.getColor(v.ab),inputValidationInfoBackground:Me.getColor(v.fb),inputValidationInfoForeground:Me.getColor(v.hb),inputValidationInfoBorder:Me.getColor(v.gb),inputValidationWarningBackground:Me.getColor(v.ib),inputValidationWarningForeground:Me.getColor(v.kb),inputValidationWarningBorder:Me.getColor(v.jb),inputValidationErrorBackground:Me.getColor(v.cb),inputValidationErrorForeground:Me.getColor(v.eb),inputValidationErrorBorder:Me.getColor(v.db)};this._findInput.style(rt),this._replaceInput.style(rt),this._toggleSelectionFind.style(rt)},Ue.prototype._tryUpdateWidgetWidth=function(){if(!this._isVisible)return;if(!ee.M(this._domNode))return;var Me=this._codeEditor.getLayoutInfo(),rt=Me.contentWidth;if(rt<=0){ee.f(this._domNode,"hiddenEditor");return}else ee.I(this._domNode,"hiddenEditor")&&ee.P(this._domNode,"hiddenEditor");var Nt=Me.width,ge=Me.minimapWidth,O=!1,ye=!1,We=!1;if(this._resized){var Ze=ee.H(this._domNode);if(Ze>xn){this._domNode.style.maxWidth=Nt-28-ge-15+"px",this._replaceInput.width=ee.H(this._findInput.domNode);return}}if(xn+28+ge>=Nt&&(ye=!0),xn+28+ge-Wn>=Nt&&(We=!0),xn+28+ge-Wn>=Nt+50&&(O=!0),ee.Y(this._domNode,"collapsed-find-widget",O),ee.Y(this._domNode,"narrow-find-widget",We),ee.Y(this._domNode,"reduced-find-widget",ye),!We&&!O&&(this._domNode.style.maxWidth=Nt-28-ge-15+"px"),this._resized){this._findInput.inputBox.layout();var st=this._findInput.inputBox.element.clientWidth;st>0&&(this._replaceInput.width=st)}else this._isReplaceVisible&&(this._replaceInput.width=ee.H(this._findInput.domNode))},Ue.prototype._getHeight=function(){var Me=0;return Me+=4,Me+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(Me+=4,Me+=this._replaceInput.inputBox.height+2),Me+=4,Me},Ue.prototype._tryUpdateHeight=function(){var Me=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===Me?!1:(this._cachedHeight=Me,this._domNode.style.height=Me+"px",!0)},Ue.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},Ue.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},Ue.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},Ue.prototype._updateSearchScope=function(){if(!this._codeEditor.hasModel())return;if(this._toggleSelectionFind.checked){var Me=this._codeEditor.getSelection();Me.endColumn===1&&Me.endLineNumber>Me.startLineNumber&&(Me=Me.setEndPosition(Me.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(Me.endLineNumber-1)));var rt=this._state.currentMatch;Me.startLineNumber!==Me.endLineNumber&&(A.a.equalsRange(Me,rt)||this._state.change({searchScope:Me},!0))}},Ue.prototype._onFindInputMouseDown=function(Me){Me.middleButton&&Me.stopPropagation()},Ue.prototype._onFindInputKeyDown=function(Me){if(Me.equals(Dn|3)){this._findInput.inputBox.insertAtCursor(`
`),Me.preventDefault();return}if(Me.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),Me.preventDefault();return}if(Me.equals(2048|18)){this._codeEditor.focus(),Me.preventDefault();return}if(Me.equals(16))return fo(Me,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(Me.equals(18))return Vn(Me,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))},Ue.prototype._onReplaceInputKeyDown=function(Me){if(Me.equals(Dn|3)){gt.h&&gt.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(T.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Bn,!0,0)),this._replaceInput.inputBox.insertAtCursor(`
`),Me.preventDefault();return}if(Me.equals(2)){this._findInput.focusOnCaseSensitive(),Me.preventDefault();return}if(Me.equals(1024|2)){this._findInput.focus(),Me.preventDefault();return}if(Me.equals(2048|18)){this._codeEditor.focus(),Me.preventDefault();return}if(Me.equals(16))return fo(Me,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(Me.equals(18))return Vn(Me,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))},Ue.prototype.getHorizontalSashTop=function(Me){return 0},Ue.prototype.getHorizontalSashLeft=function(Me){return 0},Ue.prototype.getHorizontalSashWidth=function(Me){return 500},Ue.prototype._keybindingLabelFor=function(Me){var rt=this._keybindingService.lookupKeybinding(Me);return rt?" ("+rt.getLabel()+")":""},Ue.prototype._buildDomNode=function(){var Me=this,rt=!0,Nt=!0;this._findInput=this._register(new $e(null,this._contextViewProvider,{width:bn,label:fe,placeholder:G,appendCaseSensitiveLabel:this._keybindingLabelFor(ke.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(ke.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(ke.ToggleRegexCommand),validation:function(pt){if(pt.length===0||!Me._findInput.getRegex())return null;try{return new RegExp(pt),null}catch(Kt){return{content:Kt.message}}},flexibleHeight:rt,flexibleWidth:Nt,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(function(st){return Me._onFindInputKeyDown(st)})),this._register(this._findInput.inputBox.onDidChange(function(){if(Me._ignoreChangeEvent)return;Me._state.change({searchString:Me._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){Me._state.change({isRegex:Me._findInput.getRegex(),wholeWord:Me._findInput.getWholeWords(),matchCase:Me._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(st){st.equals(1024|2)&&(Me._isReplaceVisible&&(Me._replaceInput.focus(),st.preventDefault()))})),this._register(this._findInput.onRegexKeyDown(function(st){st.equals(2)&&(Me._isReplaceVisible&&(Me._replaceInput.focusOnPreserve(),st.preventDefault()))})),this._register(this._findInput.inputBox.onDidHeightChange(function(st){Me._tryUpdateHeight()&&Me._showViewZone()})),gt.d&&this._register(this._findInput.onMouseDown(function(st){return Me._onFindInputMouseDown(st)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new yo({label:te+this._keybindingLabelFor(ke.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){Me._codeEditor.getAction(ke.PreviousMatchFindAction).run().then(void 0,it.e)}})),this._nextBtn=this._register(new yo({label:Y+this._keybindingLabelFor(ke.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){Me._codeEditor.getAction(ke.NextMatchFindAction).run().then(void 0,it.e)}}));var ge=document.createElement("div");ge.className="find-part",ge.appendChild(this._findInput.domNode);var O=document.createElement("div");O.className="find-actions",ge.appendChild(O),O.appendChild(this._matchesCount),O.appendChild(this._prevBtn.domNode),O.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new pe({actionClassName:"codicon codicon-selection",title:de+this._keybindingLabelFor(ke.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(function(){if(Me._toggleSelectionFind.checked){if(Me._codeEditor.hasModel()){var st=Me._codeEditor.getSelection();st.endColumn===1&&st.endLineNumber>st.startLineNumber&&(st=st.setEndPosition(st.endLineNumber-1,Me._codeEditor.getModel().getLineMaxColumn(st.endLineNumber-1))),st.isEmpty()||Me._state.change({searchScope:st},!0)}}else Me._state.change({searchScope:null},!0)})),O.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new yo({label:Fe+this._keybindingLabelFor(ke.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){Me._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(pt){pt.equals(2)&&(Me._isReplaceVisible&&(Me._replaceBtn.isEnabled()?Me._replaceBtn.focus():Me._codeEditor.focus(),pt.preventDefault()))}})),O.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ze(null,void 0,{label:lt,placeholder:Tt,history:[],flexibleHeight:rt,flexibleWidth:Nt,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(function(st){return Me._onReplaceInputKeyDown(st)})),this._register(this._replaceInput.inputBox.onDidChange(function(){Me._state.change({replaceString:Me._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(function(st){Me._isReplaceVisible&&Me._tryUpdateHeight()&&Me._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(function(){Me._state.change({preserveCase:Me._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(function(st){st.equals(2)&&(Me._prevBtn.isEnabled()?Me._prevBtn.focus():Me._nextBtn.isEnabled()?Me._nextBtn.focus():Me._toggleSelectionFind.enabled?Me._toggleSelectionFind.focus():Me._closeBtn.isEnabled()&&Me._closeBtn.focus(),st.preventDefault())})),this._replaceBtn=this._register(new yo({label:Jt+this._keybindingLabelFor(ke.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){Me._controller.replace()},onKeyDown:function(pt){pt.equals(1024|2)&&(Me._closeBtn.focus(),pt.preventDefault())}})),this._replaceAllBtn=this._register(new yo({label:en+this._keybindingLabelFor(ke.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){Me._controller.replaceAll()}}));var ye=document.createElement("div");ye.className="replace-part",ye.appendChild(this._replaceInput.domNode);var We=document.createElement("div");We.className="replace-actions",ye.appendChild(We),We.appendChild(this._replaceBtn.domNode),We.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new yo({label:gn,className:"codicon toggle left",onTrigger:function(){Me._state.change({isReplaceRevealed:!Me._isReplaceVisible},!1),Me._isReplaceVisible&&(Me._replaceInput.width=ee.H(Me._findInput.domNode),Me._replaceInput.inputBox.layout()),Me._showViewZone()}})),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=xn+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(ge),this._domNode.appendChild(ye),this._resizeSash=new Qe.a(this._domNode,this,{orientation:0}),this._resized=!1;var Ze=xn;this._register(this._resizeSash.onDidStart(function(){Ze=ee.H(Me._domNode)})),this._register(this._resizeSash.onDidChange(function(st){Me._resized=!0;var pt=Ze+st.startX-st.currentX;if(pt<xn)return;var Kt=parseFloat(ee.z(Me._domNode).maxWidth)||0;if(pt>Kt)return;Me._domNode.style.width=pt+"px",Me._isReplaceVisible&&(Me._replaceInput.width=ee.H(Me._findInput.domNode)),Me._findInput.inputBox.layout(),Me._tryUpdateHeight()})),this._register(this._resizeSash.onDidReset(function(){var st=ee.H(Me._domNode);if(st<xn)return;var pt=xn;if(!Me._resized||st===xn){var Kt=Me._codeEditor.getLayoutInfo();pt=Kt.width-28-Kt.minimapWidth-15,Me._resized=!0}Me._domNode.style.width=pt+"px",Me._isReplaceVisible&&(Me._replaceInput.width=ee.H(Me._findInput.domNode)),Me._findInput.inputBox.layout()}))},Ue.prototype.updateAccessibilitySupport=function(){var Me=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(Me!==2)},Ue.ID="editor.contrib.findWidget",Ue}(q.a),yo=function(yt){Ke(Ue,yt);function Ue(Me){var rt=yt.call(this)||this;return rt._opts=Me,rt._domNode=document.createElement("div"),rt._domNode.title=rt._opts.label,rt._domNode.tabIndex=0,rt._domNode.className="button "+rt._opts.className,rt._domNode.setAttribute("role","button"),rt._domNode.setAttribute("aria-label",rt._opts.label),rt.onclick(rt._domNode,function(Nt){rt._opts.onTrigger(),Nt.preventDefault()}),rt.onkeydown(rt._domNode,function(Nt){if(Nt.equals(10)||Nt.equals(3)){rt._opts.onTrigger(),Nt.preventDefault();return}rt._opts.onKeyDown&&rt._opts.onKeyDown(Nt)}),rt}return Object.defineProperty(Ue.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),Ue.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},Ue.prototype.focus=function(){this._domNode.focus()},Ue.prototype.setEnabled=function(Me){ee.Y(this._domNode,"disabled",!Me),this._domNode.setAttribute("aria-disabled",String(!Me)),this._domNode.tabIndex=Me?0:-1},Ue.prototype.setExpanded=function(Me){this._domNode.setAttribute("aria-expanded",String(!!Me))},Ue.prototype.toggleClass=function(Me,rt){ee.Y(this._domNode,Me,rt)},Ue}(q.a);Object(S.e)(function(yt,Ue){var Me=function(vn,dn){dn&&Ue.addRule(".monaco-editor "+vn+" { background-color: "+dn+"; }")};Me(".findMatch",yt.getColor(v.t)),Me(".currentFindMatch",yt.getColor(v.r)),Me(".findScope",yt.getColor(v.v));var rt=yt.getColor(v.Q);Me(".find-widget",rt);var Nt=yt.getColor(v.hc);Nt&&Ue.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+Nt+"; }");var ge=yt.getColor(v.u);ge&&Ue.addRule(".monaco-editor .findMatch { border: 1px "+(yt.type==="hc"?"dotted":"solid")+" "+ge+"; box-sizing: border-box; }");var O=yt.getColor(v.s);O&&Ue.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+O+"; padding: 1px; box-sizing: border-box; }");var ye=yt.getColor(v.w);ye&&Ue.addRule(".monaco-editor .findScope { border: 1px "+(yt.type==="hc"?"dashed":"solid")+" "+ye+"; }");var We=yt.getColor(v.e);We&&Ue.addRule(".monaco-editor .find-widget { border: 1px solid "+We+"; }");var Ze=yt.getColor(v.S);Ze&&Ue.addRule(".monaco-editor .find-widget { color: "+Ze+"; }");var st=yt.getColor(v.U);st&&Ue.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+st+"; }");var pt=yt.getColor(v.T);if(pt)Ue.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+pt+"; width: 3px !important; margin-left: -4px;}");else{var Kt=yt.getColor(v.R);Kt&&Ue.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+Kt+"; width: 3px !important; margin-left: -4px;}")}var Xt=yt.getColor(v.V);Xt&&Ue.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+Xt+"; }")});var lo=e("9XeP"),io=e("Uzvx"),go=e("Cg/j"),zn=e("bexQ"),Un=e("A+jI"),wt=e("sM1p"),nt=function(){var yt=function(Me,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Nt,ge){Nt.__proto__=ge}||function(Nt,ge){for(var O in ge)ge.hasOwnProperty(O)&&(Nt[O]=ge[O])},yt(Me,rt)};return function(Ue,Me){yt(Ue,Me);function rt(){this.constructor=Ue}Ue.prototype=Me===null?Object.create(Me):(rt.prototype=Me.prototype,new rt)}}(),ot=function(yt,Ue,Me,rt){var Nt=arguments.length,ge=Nt<3?Ue:rt===null?rt=Object.getOwnPropertyDescriptor(Ue,Me):rt,O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ge=Reflect.decorate(yt,Ue,Me,rt);else for(var ye=yt.length-1;ye>=0;ye--)(O=yt[ye])&&(ge=(Nt<3?O(ge):Nt>3?O(Ue,Me,ge):O(Ue,Me))||ge);return Nt>3&&ge&&Object.defineProperty(Ue,Me,ge),ge},Ot=function(yt,Ue){return function(Me,rt){Ue(Me,rt,yt)}},Le=524288;function D(yt){if(!yt.hasModel())return null;var Ue=yt.getSelection();if(Ue.startLineNumber===Ue.endLineNumber){if(Ue.isEmpty()){var Me=yt.getModel().getWordAtPosition(Ue.getStartPosition());if(Me)return Me.word}else if(yt.getModel().getValueLengthInRange(Ue)<Le)return yt.getModel().getValueInRange(Ue)}return null}var j=function(yt){nt(Ue,yt);function Ue(Me,rt,Nt,ge){var O=yt.call(this)||this;return O._editor=Me,O._findWidgetVisible=ie.bindTo(rt),O._contextKeyService=rt,O._storageService=Nt,O._clipboardService=ge,O._updateHistoryDelayer=new re.a(500),O._state=O._register(new Oe),O.loadQueryState(),O._register(O._state.onFindReplaceStateChange(function(ye){return O._onStateChanged(ye)})),O._model=null,O._register(O._editor.onDidChangeModel(function(){var ye=O._editor.getModel()&&O._state.isRevealed;O.disposeModel(),O._state.change({searchScope:null,matchCase:O._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:O._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:O._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:O._storageService.getBoolean("editor.preserveCase",1,!1)},!1),ye&&O._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})})),O}return Ue.get=function(Me){return Me.getContribution(Ue.ID)},Ue.prototype.dispose=function(){this.disposeModel(),yt.prototype.dispose.call(this)},Ue.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},Ue.prototype._onStateChanged=function(Me){this.saveQueryState(Me),Me.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),Me.searchString&&this.setGlobalBufferTerm(this._state.searchString)},Ue.prototype.saveQueryState=function(Me){Me.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),Me.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),Me.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),Me.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},Ue.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)},Ue.prototype.isFindInputFocused=function(){return!!W.getValue(this._contextKeyService)},Ue.prototype.getState=function(){return this._state},Ue.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},Ue.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},Ue.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},Ue.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},Ue.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var Me=this._editor.getSelection();Me.endColumn===1&&Me.endLineNumber>Me.startLineNumber&&(Me=Me.setEndPosition(Me.endLineNumber-1,this._editor.getModel().getLineMaxColumn(Me.endLineNumber-1))),Me.isEmpty()||this._state.change({searchScope:Me},!0)}},Ue.prototype.setSearchString=function(Me){this._state.isRegex&&(Me=N.p(Me)),this._state.change({searchString:Me},!1)},Ue.prototype.highlightFindOptions=function(){},Ue.prototype._start=function(Me){if(this.disposeModel(),!this._editor.hasModel())return;var rt={isRevealed:!0};if(Me.seedSearchStringFromSelection){var Nt=D(this._editor);Nt&&(this._state.isRegex?rt.searchString=N.p(Nt):rt.searchString=Nt)}if(!rt.searchString&&Me.seedSearchStringFromGlobalClipboard){var Nt=this.getGlobalBufferTerm();Nt&&(rt.searchString=Nt)}if(Me.forceRevealReplace?rt.isReplaceRevealed=!0:this._findWidgetVisible.get()||(rt.isReplaceRevealed=!1),Me.updateSearchScope){var ge=this._editor.getSelection();ge.isEmpty()||(rt.searchScope=ge)}this._state.change(rt,!1),this._model||(this._model=new oe(this._editor,this._state))},Ue.prototype.start=function(Me){this._start(Me)},Ue.prototype.moveToNextMatch=function(){return this._model?(this._model.moveToNextMatch(),!0):!1},Ue.prototype.moveToPrevMatch=function(){return this._model?(this._model.moveToPrevMatch(),!0):!1},Ue.prototype.replace=function(){return this._model?(this._model.replace(),!0):!1},Ue.prototype.replaceAll=function(){return this._model?(this._model.replaceAll(),!0):!1},Ue.prototype.selectAllMatches=function(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1},Ue.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},Ue.prototype.setGlobalBufferTerm=function(Me){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(Me)},Ue.ID="editor.contrib.findController",Ue=ot([Ot(1,$.c),Ot(2,Un.a),Ot(3,lo.a)],Ue),Ue}(J.a),Z=function(yt){nt(Ue,yt);function Ue(Me,rt,Nt,ge,O,ye,We,Ze){var st=yt.call(this,Me,Nt,We,Ze)||this;return st._contextViewService=rt,st._keybindingService=ge,st._themeService=O,st._notificationService=ye,st._widget=null,st._findOptionsWidget=null,st}return Ue.prototype._start=function(Me){this._widget||this._createFindWidget();var rt=this._editor.getSelection(),Nt=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":Nt=!0;break;case"never":Nt=!1;break;case"multiline":var ge=!!rt&&rt.startLineNumber!==rt.endLineNumber;Nt=ge;break;default:break}Me.updateSearchScope=Nt,yt.prototype._start.call(this,Me),Me.shouldFocus===2?this._widget.focusReplaceInput():Me.shouldFocus===1&&this._widget.focusFindInput()},Ue.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},Ue.prototype._createFindWidget=function(){this._widget=this._register(new po(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new se(this._editor,this._state,this._keybindingService,this._themeService))},Ue=ot([Ot(1,io.b),Ot(2,$.c),Ot(3,zn.a),Ot(4,S.c),Ot(5,wt.a),Ot(6,Un.a),Ot(7,Object(go.d)(lo.a))],Ue),Ue}(j),xe=function(yt){nt(Ue,yt);function Ue(){return yt.call(this,{id:ke.StartFindAction,label:T.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|36,weight:100},menuOpts:{menuId:17,group:"3_find",title:T.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return Ue.prototype.run=function(Me,rt){var Nt=j.get(rt);Nt&&Nt.start({forceRevealReplace:!1,seedSearchStringFromSelection:rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:rt.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},Ue}(H.b),Ae=function(yt){nt(Ue,yt);function Ue(){return yt.call(this,{id:ke.StartFindWithSelection,label:T.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2048|35},weight:100}})||this}return Ue.prototype.run=function(Me,rt){var Nt=j.get(rt);Nt&&(Nt.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),Nt.setGlobalBufferTerm(Nt.getState().searchString))},Ue}(H.b),Ie=function(yt){nt(Ue,yt);function Ue(){return yt!==null&&yt.apply(this,arguments)||this}return Ue.prototype.run=function(Me,rt){var Nt=j.get(rt);Nt&&!this._run(Nt)&&(Nt.start({forceRevealReplace:!1,seedSearchStringFromSelection:Nt.getState().searchString.length===0&&rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(Nt))},Ue}(H.b),dt=function(yt){nt(Ue,yt);function Ue(){return yt.call(this,{id:ke.NextMatchFindAction,label:T.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:61,mac:{primary:2048|37,secondary:[61]},weight:100}})||this}return Ue.prototype._run=function(Me){return Me.moveToNextMatch()},Ue}(Ie),ht=function(yt){nt(Ue,yt);function Ue(){return yt.call(this,{id:ke.NextMatchFindAction,label:T.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:$.a.and(z.a.focus,W),primary:3,weight:100}})||this}return Ue.prototype._run=function(Me){return Me.moveToNextMatch()},Ue}(Ie),At=function(yt){nt(Ue,yt);function Ue(){return yt.call(this,{id:ke.PreviousMatchFindAction,label:T.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:1024|61,mac:{primary:2048|1024|37,secondary:[1024|61]},weight:100}})||this}return Ue.prototype._run=function(Me){return Me.moveToPrevMatch()},Ue}(Ie),Bt=function(yt){nt(Ue,yt);function Ue(){return yt.call(this,{id:ke.PreviousMatchFindAction,label:T.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:$.a.and(z.a.focus,W),primary:1024|3,weight:100}})||this}return Ue.prototype._run=function(Me){return Me.moveToPrevMatch()},Ue}(Ie),Ut=function(yt){nt(Ue,yt);function Ue(){return yt!==null&&yt.apply(this,arguments)||this}return Ue.prototype.run=function(Me,rt){var Nt=j.get(rt);if(!Nt)return;var ge=D(rt);ge&&Nt.setSearchString(ge),this._run(Nt)||(Nt.start({forceRevealReplace:!1,seedSearchStringFromSelection:rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(Nt))},Ue}(H.b),Ht=function(yt){nt(Ue,yt);function Ue(){return yt.call(this,{id:ke.NextSelectionMatchFindAction,label:T.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2048|61,weight:100}})||this}return Ue.prototype._run=function(Me){return Me.moveToNextMatch()},Ue}(Ut),nn=function(yt){nt(Ue,yt);function Ue(){return yt.call(this,{id:ke.PreviousSelectionMatchFindAction,label:T.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2048|1024|61,weight:100}})||this}return Ue.prototype._run=function(Me){return Me.moveToPrevMatch()},Ue}(Ut),Zt=function(yt){nt(Ue,yt);function Ue(){return yt.call(this,{id:ke.StartFindReplaceAction,label:T.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|38,mac:{primary:2048|512|36},weight:100},menuOpts:{menuId:17,group:"3_find",title:T.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return Ue.prototype.run=function(Me,rt){if(!rt.hasModel()||rt.getOption(68))return;var Nt=j.get(rt),ge=rt.getSelection(),O=Nt.isFindInputFocused(),ye=!ge.isEmpty()&&ge.startLineNumber===ge.endLineNumber&&rt.getOption(28).seedSearchStringFromSelection&&!O,We=O||ye?2:1;Nt&&Nt.start({forceRevealReplace:!0,seedSearchStringFromSelection:ye,seedSearchStringFromGlobalClipboard:rt.getOption(28).seedSearchStringFromSelection,shouldFocus:We,shouldAnimate:!0,updateSearchScope:!1})},Ue}(H.b);Object(H.h)(j.ID,Z),Object(H.f)(xe),Object(H.f)(Ae),Object(H.f)(dt),Object(H.f)(ht),Object(H.f)(At),Object(H.f)(Bt),Object(H.f)(Ht),Object(H.f)(nn),Object(H.f)(Zt);var fn=H.c.bindToContribution(j.get);Object(H.g)(new fn({id:ke.CloseFindWidgetCommand,precondition:ie,handler:function(Ue){return Ue.closeFindWidget()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:9,secondary:[1024|9]}})),Object(H.g)(new fn({id:ke.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(Ue){return Ue.toggleCaseSensitive()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:le.primary,mac:le.mac,win:le.win,linux:le.linux}})),Object(H.g)(new fn({id:ke.ToggleWholeWordCommand,precondition:void 0,handler:function(Ue){return Ue.toggleWholeWords()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:be.primary,mac:be.mac,win:be.win,linux:be.linux}})),Object(H.g)(new fn({id:ke.ToggleRegexCommand,precondition:void 0,handler:function(Ue){return Ue.toggleRegex()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:De.primary,mac:De.mac,win:De.win,linux:De.linux}})),Object(H.g)(new fn({id:ke.ToggleSearchScopeCommand,precondition:void 0,handler:function(Ue){return Ue.toggleSearchScope()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Te.primary,mac:Te.mac,win:Te.win,linux:Te.linux}})),Object(H.g)(new fn({id:ke.ReplaceOneAction,precondition:ie,handler:function(Ue){return Ue.replace()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:2048|1024|22}})),Object(H.g)(new fn({id:ke.ReplaceOneAction,precondition:ie,handler:function(Ue){return Ue.replace()},kbOpts:{weight:100+5,kbExpr:$.a.and(z.a.focus,B),primary:3}})),Object(H.g)(new fn({id:ke.ReplaceAllAction,precondition:ie,handler:function(Ue){return Ue.replaceAll()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:2048|512|3}})),Object(H.g)(new fn({id:ke.ReplaceAllAction,precondition:ie,handler:function(Ue){return Ue.replaceAll()},kbOpts:{weight:100+5,kbExpr:$.a.and(z.a.focus,B),primary:void 0,mac:{primary:2048|3}}})),Object(H.g)(new fn({id:ke.SelectAllMatchesAction,precondition:ie,handler:function(Ue){return Ue.selectAllMatches()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:512|3}}))},oiKk:function(_t,P,e){"use strict";e.r(P),e.d(P,"IPadShowKeyboard",function(){return U});var T=e("ci+S"),re=e.n(T),J=e("D3Dy"),N=e("EffR"),H=e("pmY6"),z=e("sswD"),M=function(){var c=function(L,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var g in S)S.hasOwnProperty(g)&&(v[g]=S[g])},c(L,f)};return function(y,L){c(y,L);function f(){this.constructor=y}y.prototype=L===null?Object.create(L):(f.prototype=L.prototype,new f)}}(),U=function(c){M(y,c);function y(L){var f=c.call(this)||this;return f.editor=L,f.widget=null,J.j&&(f._register(L.onDidChangeConfiguration(function(){return f.update()})),f.update()),f}return y.prototype.update=function(){var L=!this.editor.getOption(68);!this.widget&&L?this.widget=new A(this.editor):this.widget&&!L&&(this.widget.dispose(),this.widget=null)},y.prototype.dispose=function(){c.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},y.ID="editor.contrib.iPadShowKeyboard",y}(H.a),A=function(c){M(y,c);function y(L){var f=c.call(this)||this;return f.editor=L,f._domNode=document.createElement("textarea"),f._domNode.className="iPadShowKeyboard",f._register(N.j(f._domNode,"touchstart",function(v){f.editor.focus()})),f._register(N.j(f._domNode,"focus",function(v){f.editor.focus()})),f.editor.addOverlayWidget(f),f}return y.prototype.dispose=function(){this.editor.removeOverlayWidget(this),c.prototype.dispose.call(this)},y.prototype.getId=function(){return y.ID},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return{preference:1}},y.ID="editor.contrib.ShowKeyboardWidget",y}(H.a);Object(z.h)(U.ID,U)},p3Ex:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return e.e(250).then(e.bind(null,"/Om3"))}})},p5tG:function(_t,P,e){"use strict";e.r(P),e.d(P,"LanguageServiceDefaultsImpl",function(){return N});var T=e("M/lh"),re=e.n(T);"use strict";var J=monaco.Emitter,N=function(){function c(y,L,f){this._onDidChange=new J,this._languageId=y,this.setDiagnosticsOptions(L),this.setModeConfiguration(f)}return Object.defineProperty(c.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),c.prototype.setDiagnosticsOptions=function(y){this._diagnosticsOptions=y||Object.create(null),this._onDidChange.fire(this)},c.prototype.setModeConfiguration=function(y){this._modeConfiguration=y||Object.create(null),this._onDidChange.fire(this)},c}(),H={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},z={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},M=new N("json",H,z);function U(){return{jsonDefaults:M}}monaco.languages.json=U();function A(){return e.e(241).then(e.bind(null,"R7lK"))}monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){A().then(function(c){return c.setupMode(M)})})},pAvP:function(_t,P,e){"use strict";e.d(P,"a",function(){return J});var T=e("Cg/j"),re="editorWorkerService",J=Object(T.c)(re)},pI2L:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return e.e(282).then(e.bind(null,"KpXS"))}})},pg8w:function(_t,P,e){"use strict";e.d(P,"a",function(){return M}),e.d(P,"b",function(){return U});var T=e("6OMU"),re=e("pmY6"),J=e("EffR"),N=e("ZCR3"),H=function(){var A=function(y,L){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var S in v)v.hasOwnProperty(S)&&(f[S]=v[S])},A(y,L)};return function(c,y){A(c,y);function L(){this.constructor=c}c.prototype=y===null?Object.create(y):(L.prototype=y.prototype,new L)}}(),z=function(A,c,y,L){var f=arguments.length,v=f<3?c:L===null?L=Object.getOwnPropertyDescriptor(c,y):L,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(A,c,y,L);else for(var g=A.length-1;g>=0;g--)(S=A[g])&&(v=(f<3?S(v):f>3?S(c,y,v):S(c,y))||v);return f>3&&v&&Object.defineProperty(c,y,v),v},M;(function(A){A.Tap="-monaco-gesturetap",A.Change="-monaco-gesturechange",A.Start="-monaco-gesturestart",A.End="-monaco-gesturesend",A.Contextmenu="-monaco-gesturecontextmenu"})(M||(M={}));var U=function(A){H(c,A);function c(){var y=A.call(this)||this;return y.dispatched=!1,y.activeTouches={},y.handle=null,y.targets=[],y.ignoreTargets=[],y._lastSetTapCountTime=0,y._register(J.j(document,"touchstart",function(L){return y.onTouchStart(L)})),y._register(J.j(document,"touchend",function(L){return y.onTouchEnd(L)})),y._register(J.j(document,"touchmove",function(L){return y.onTouchMove(L)})),y}return c.addTarget=function(y){return c.isTouchDevice()?(c.INSTANCE||(c.INSTANCE=new c),c.INSTANCE.targets.push(y),{dispose:function(){c.INSTANCE.targets=c.INSTANCE.targets.filter(function(f){return f!==y})}}):re.a.None},c.ignoreTarget=function(y){return c.isTouchDevice()?(c.INSTANCE||(c.INSTANCE=new c),c.INSTANCE.ignoreTargets.push(y),{dispose:function(){c.INSTANCE.ignoreTargets=c.INSTANCE.ignoreTargets.filter(function(f){return f!==y})}}):re.a.None},c.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},c.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),A.prototype.dispose.call(this)},c.prototype.onTouchStart=function(y){var L=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var f=0,v=y.targetTouches.length;f<v;f++){var S=y.targetTouches.item(f);this.activeTouches[S.identifier]={id:S.identifier,initialTarget:S.target,initialTimeStamp:L,initialPageX:S.pageX,initialPageY:S.pageY,rollingTimestamps:[L],rollingPageX:[S.pageX],rollingPageY:[S.pageY]};var g=this.newGestureEvent(M.Start,S.target);g.pageX=S.pageX,g.pageY=S.pageY,this.dispatchEvent(g)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)},c.prototype.onTouchEnd=function(y){for(var L=Date.now(),f=Object.keys(this.activeTouches).length,v=function(l,d){var p=y.changedTouches.item(l);if(!S.activeTouches.hasOwnProperty(String(p.identifier)))return console.warn("move of an UNKNOWN touch",p),"continue";var E=S.activeTouches[p.identifier],_=Date.now()-E.initialTimeStamp;if(_<c.HOLD_DELAY&&Math.abs(E.initialPageX-T.v(E.rollingPageX))<30&&Math.abs(E.initialPageY-T.v(E.rollingPageY))<30){var x=S.newGestureEvent(M.Tap,E.initialTarget);x.pageX=T.v(E.rollingPageX),x.pageY=T.v(E.rollingPageY),S.dispatchEvent(x)}else if(_>=c.HOLD_DELAY&&Math.abs(E.initialPageX-T.v(E.rollingPageX))<30&&Math.abs(E.initialPageY-T.v(E.rollingPageY))<30){var x=S.newGestureEvent(M.Contextmenu,E.initialTarget);x.pageX=T.v(E.rollingPageX),x.pageY=T.v(E.rollingPageY),S.dispatchEvent(x)}else if(f===1){var F=T.v(E.rollingPageX),R=T.v(E.rollingPageY),$=T.v(E.rollingTimestamps)-E.rollingTimestamps[0],ie=F-E.rollingPageX[0],W=R-E.rollingPageY[0],B=S.targets.filter(function(le){return E.initialTarget instanceof Node&&le.contains(E.initialTarget)});S.inertia(B,L,Math.abs(ie)/$,ie>0?1:-1,F,Math.abs(W)/$,W>0?1:-1,R)}S.dispatchEvent(S.newGestureEvent(M.End,E.initialTarget)),delete S.activeTouches[p.identifier]},S=this,g=0,u=y.changedTouches.length;g<u;g++)v(g,u);this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)},c.prototype.newGestureEvent=function(y,L){var f=document.createEvent("CustomEvent");return f.initEvent(y,!1,!0),f.initialTarget=L,f.tapCount=0,f},c.prototype.dispatchEvent=function(y){var L=this;if(y.type===M.Tap){var f=new Date().getTime(),v=0;f-this._lastSetTapCountTime>c.CLEAR_TAP_COUNT_TIME?v=1:v=2,this._lastSetTapCountTime=f,y.tapCount=v}else(y.type===M.Change||y.type===M.Contextmenu)&&(this._lastSetTapCountTime=0);for(var S=0;S<this.ignoreTargets.length;S++)if(y.initialTarget instanceof Node&&this.ignoreTargets[S].contains(y.initialTarget))return;this.targets.forEach(function(g){y.initialTarget instanceof Node&&g.contains(y.initialTarget)&&(g.dispatchEvent(y),L.dispatched=!0)})},c.prototype.inertia=function(y,L,f,v,S,g,u,s){var l=this;this.handle=J.W(function(){var d=Date.now(),p=d-L,E=0,_=0,x=!0;f+=c.SCROLL_FRICTION*p,g+=c.SCROLL_FRICTION*p,f>0&&(x=!1,E=v*f*p),g>0&&(x=!1,_=u*g*p);var F=l.newGestureEvent(M.Change);F.translationX=E,F.translationY=_,y.forEach(function(R){return R.dispatchEvent(F)}),x||l.inertia(y,d,f,v,S+E,g,u,s+_)})},c.prototype.onTouchMove=function(y){for(var L=Date.now(),f=0,v=y.changedTouches.length;f<v;f++){var S=y.changedTouches.item(f);if(!this.activeTouches.hasOwnProperty(String(S.identifier))){console.warn("end of an UNKNOWN touch",S);continue}var g=this.activeTouches[S.identifier],u=this.newGestureEvent(M.Change,g.initialTarget);u.translationX=S.pageX-T.v(g.rollingPageX),u.translationY=S.pageY-T.v(g.rollingPageY),u.pageX=S.pageX,u.pageY=S.pageY,this.dispatchEvent(u),g.rollingPageX.length>3&&(g.rollingPageX.shift(),g.rollingPageY.shift(),g.rollingTimestamps.shift()),g.rollingPageX.push(S.pageX),g.rollingPageY.push(S.pageY),g.rollingTimestamps.push(L)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)},c.SCROLL_FRICTION=-.005,c.HOLD_DELAY=700,c.CLEAR_TAP_COUNT_TIME=400,z([N.a],c,"isTouchDevice",null),c}(re.a)},pmY6:function(_t,P,e){"use strict";e.d(P,"g",function(){return H}),e.d(P,"f",function(){return z}),e.d(P,"e",function(){return M}),e.d(P,"h",function(){return U}),e.d(P,"b",function(){return A}),e.d(P,"a",function(){return c}),e.d(P,"d",function(){return y}),e.d(P,"c",function(){return L});var T=!1,re="__is_disposable_tracked__";function J(f){if(!T)return;if(f&&f!==c.None)try{f[re]=!0}catch(v){}}function N(f){if(!T)return f;var v=new Error("Potentially leaked disposable").stack;return setTimeout(function(){f[re]||console.log(v)},3e3),f}function H(f){return typeof f.dispose=="function"&&f.dispose.length===0}function z(f){return Array.isArray(f)?(f.forEach(function(v){v&&(J(v),v.dispose())}),[]):f?(J(f),f.dispose(),f):void 0}function M(){for(var f=[],v=0;v<arguments.length;v++)f[v]=arguments[v];return f.forEach(J),N({dispose:function(){return z(f)}})}function U(f){var v=N({dispose:function(){J(v),f()}});return v}var A=function(){function f(){this._toDispose=new Set,this._isDisposed=!1}return f.prototype.dispose=function(){if(this._isDisposed)return;J(this),this._isDisposed=!0,this.clear()},f.prototype.clear=function(){this._toDispose.forEach(function(v){return v.dispose()}),this._toDispose.clear()},f.prototype.add=function(v){if(!v)return v;if(v===this)throw new Error("Cannot register a disposable on itself!");return J(v),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(v),v},f}(),c=function(){function f(){this._store=new A,N(this)}return f.prototype.dispose=function(){J(this),this._store.dispose()},f.prototype._register=function(v){if(v===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(v)},f.None=Object.freeze({dispose:function(){}}),f}(),y=function(){function f(){this._isDisposed=!1,N(this)}return Object.defineProperty(f.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(S){if(this._isDisposed||S===this._value)return;this._value&&this._value.dispose(),S&&J(S),this._value=S},enumerable:!0,configurable:!0}),f.prototype.clear=function(){this.value=void 0},f.prototype.dispose=function(){this._isDisposed=!0,J(this),this._value&&this._value.dispose(),this._value=void 0},f}(),L=function(){function f(v){this.object=v}return f.prototype.dispose=function(){},f}()},ptcw:function(_t,P,e){"use strict";e.d(P,"a",function(){return H}),e.d(P,"d",function(){return z}),e.d(P,"b",function(){return M}),e.d(P,"c",function(){return c});var T=e("MD5Z"),re=function(){return re=Object.assign||function(y){for(var L,f=1,v=arguments.length;f<v;f++){L=arguments[f];for(var S in L)Object.prototype.hasOwnProperty.call(L,S)&&(y[S]=L[S])}return y},re.apply(this,arguments)};function J(y,L){var f=Object.create(null);for(var v in L){var S=L[v];S&&(f[v]=Object(T.Ub)(S,y))}return f}function N(y,L,f){function v(S){var g=J(y.getTheme(),L);typeof f=="function"?f(g):f.style(g)}return v(y.getTheme()),y.onThemeChange(v)}function H(y,L,f){return N(L,{badgeBackground:f&&f.badgeBackground||T.c,badgeForeground:f&&f.badgeForeground||T.d,badgeBorder:T.e},y)}function z(y,L,f){return N(L,{foreground:f&&f.foreground||T.W,background:f&&f.background||T.o,borderColor:f&&f.borderColor||T.e,widgetShadow:f&&f.widgetShadow||T.hc,progressBarBackground:f&&f.progressBarBackground||T.Sb,pickerGroupForeground:f&&f.pickerGroupForeground||T.Ob,pickerGroupBorder:f&&f.pickerGroupBorder||T.Nb,inputBackground:f&&f.inputBackground||T.Z,inputForeground:f&&f.inputForeground||T.bb,inputBorder:f&&f.inputBorder||T.ab,inputValidationInfoBorder:f&&f.inputValidationInfoBorder||T.gb,inputValidationInfoBackground:f&&f.inputValidationInfoBackground||T.fb,inputValidationInfoForeground:f&&f.inputValidationInfoForeground||T.hb,inputValidationWarningBorder:f&&f.inputValidationWarningBorder||T.jb,inputValidationWarningBackground:f&&f.inputValidationWarningBackground||T.ib,inputValidationWarningForeground:f&&f.inputValidationWarningForeground||T.kb,inputValidationErrorBorder:f&&f.inputValidationErrorBorder||T.db,inputValidationErrorBackground:f&&f.inputValidationErrorBackground||T.cb,inputValidationErrorForeground:f&&f.inputValidationErrorForeground||T.eb,listFocusBackground:f&&f.listFocusBackground||T.rb,listFocusForeground:f&&f.listFocusForeground||T.sb,listActiveSelectionBackground:f&&f.listActiveSelectionBackground||Object(T.f)(T.lb,.1),listActiveSelectionForeground:f&&f.listActiveSelectionForeground||T.mb,listFocusAndSelectionBackground:f&&f.listFocusAndSelectionBackground||T.lb,listFocusAndSelectionForeground:f&&f.listFocusAndSelectionForeground||T.mb,listInactiveSelectionBackground:f&&f.listInactiveSelectionBackground||T.xb,listInactiveSelectionForeground:f&&f.listInactiveSelectionForeground||T.yb,listInactiveFocusBackground:f&&f.listInactiveFocusBackground||T.wb,listHoverBackground:f&&f.listHoverBackground||T.ub,listHoverForeground:f&&f.listHoverForeground||T.vb,listDropBackground:f&&f.listDropBackground||T.nb,listFocusOutline:f&&f.listFocusOutline||T.b,listSelectionOutline:f&&f.listSelectionOutline||T.b,listHoverOutline:f&&f.listHoverOutline||T.b},y)}function M(y,L,f){return N(L,re(re({},U),f||{}),y)}var U={listFocusBackground:T.rb,listFocusForeground:T.sb,listActiveSelectionBackground:Object(T.f)(T.lb,.1),listActiveSelectionForeground:T.mb,listFocusAndSelectionBackground:T.lb,listFocusAndSelectionForeground:T.mb,listInactiveSelectionBackground:T.xb,listInactiveSelectionForeground:T.yb,listInactiveFocusBackground:T.wb,listHoverBackground:T.ub,listHoverForeground:T.vb,listDropBackground:T.nb,listFocusOutline:T.b,listSelectionOutline:T.b,listHoverOutline:T.b,listFilterWidgetBackground:T.ob,listFilterWidgetOutline:T.qb,listFilterWidgetNoMatchesOutline:T.pb,listMatchesShadow:T.hc,treeIndentGuidesStroke:T.gc},A={shadowColor:T.hc,borderColor:T.Ab,foregroundColor:T.Bb,backgroundColor:T.zb,selectionForegroundColor:T.Eb,selectionBackgroundColor:T.Cb,selectionBorderColor:T.Db,separatorColor:T.Fb};function c(y,L,f){return N(L,re(re({},A),f),y)}},"q/I2":function(_t,P,e){},q8qy:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return e.e(270).then(e.bind(null,"ywQP"))}})},qH2V:function(_t,P,e){},qNAo:function(_t,P,e){"use strict";e.d(P,"f",function(){return re}),e.d(P,"b",function(){return J}),e.d(P,"c",function(){return N}),e.d(P,"d",function(){return H}),e.d(P,"a",function(){return z}),e.d(P,"e",function(){return M});var T=e("N0LK"),re=function(){function U(A,c,y,L){this.top=A|0,this.left=c|0,this.width=y|0,this.height=L|0}return U}(),J=function(){function U(A,c){this.tabSize=A,this.data=c}return U}(),N=function(){function U(A,c,y,L,f,v){this.content=A,this.continuesWithWrappedLine=c,this.minColumn=y,this.maxColumn=L,this.startVisibleColumn=f,this.tokens=v}return U}(),H=function(){function U(A,c,y,L,f,v,S,g,u,s){this.minColumn=A,this.maxColumn=c,this.content=y,this.continuesWithWrappedLine=L,this.isBasicASCII=U.isBasicASCII(y,v),this.containsRTL=U.containsRTL(y,this.isBasicASCII,f),this.tokens=S,this.inlineDecorations=g,this.tabSize=u,this.startVisibleColumn=s}return U.isBasicASCII=function(A,c){return c?T.v(A):!0},U.containsRTL=function(A,c,y){return!c&&y?T.i(A):!1},U}(),z=function(){function U(A,c,y){this.range=A,this.inlineClassName=c,this.type=y}return U}(),M=function(){function U(A,c){this.range=A,this.options=c}return U}()},qj0h:function(_t,P,e){"use strict";e.d(P,"c",function(){return re}),e.d(P,"d",function(){return J}),e.d(P,"b",function(){return H}),e.d(P,"g",function(){return M}),e.d(P,"a",function(){return U}),e.d(P,"e",function(){return A}),e.d(P,"f",function(){return c});var T=e("746U");function re(y){if(!y||typeof y!="object")return y;if(y instanceof RegExp)return y;var L=Array.isArray(y)?[]:{};return Object.keys(y).forEach(function(f){y[f]&&typeof y[f]=="object"?L[f]=re(y[f]):L[f]=y[f]}),L}function J(y){if(!y||typeof y!="object")return y;for(var L=[y];L.length>0;){var f=L.shift();Object.freeze(f);for(var v in f)if(N.call(f,v)){var S=f[v];typeof S=="object"&&!Object.isFrozen(S)&&L.push(S)}}return y}var N=Object.prototype.hasOwnProperty;function H(y,L){return z(y,L,new Set)}function z(y,L,f){if(Object(T.l)(y))return y;var v=L(y);if(typeof v!="undefined")return v;if(Object(T.d)(y)){for(var S=[],g=0,u=y;g<u.length;g++){var s=u[g];S.push(z(s,L,f))}return S}if(Object(T.i)(y)){if(f.has(y))throw new Error("Cannot clone recursive data-structure");f.add(y);var l={};for(var d in y)N.call(y,d)&&(l[d]=z(y[d],L,f));return f.delete(y),l}return y}function M(y,L,f){return f===void 0&&(f=!0),Object(T.i)(y)?(Object(T.i)(L)&&Object.keys(L).forEach(function(v){v in y?f&&(Object(T.i)(y[v])&&Object(T.i)(L[v])?M(y[v],L[v],f):y[v]=L[v]):y[v]=L[v]}),y):L}function U(y){for(var L=[],f=1;f<arguments.length;f++)L[f-1]=arguments[f];return L.forEach(function(v){return Object.keys(v).forEach(function(S){return y[S]=v[S]})}),y}function A(y,L){if(y===L)return!0;if(y==null||L===null||L===void 0)return!1;if(typeof y!==typeof L)return!1;if(typeof y!="object")return!1;if(Array.isArray(y)!==Array.isArray(L))return!1;var f,v;if(Array.isArray(y)){if(y.length!==L.length)return!1;for(f=0;f<y.length;f++)if(!A(y[f],L[f]))return!1}else{var S=[];for(v in y)S.push(v);S.sort();var g=[];for(v in L)g.push(v);if(g.sort(),!A(S,g))return!1;for(f=0;f<S.length;f++)if(!A(y[S[f]],L[S[f]]))return!1}return!0}function c(y,L,f){var v=L(y);return typeof v=="undefined"?f:v}},r0BQ:function(_t,P,e){"use strict";e.d(P,"a",function(){return T});var T=function(){function re(J,N,H){N===void 0&&(N=[]),H===void 0&&(H=!1),this.ctor=J,this.staticArguments=N,this.supportsDelayedInstantiation=H}return re}()},rugR:function(_t,P,e){"use strict";e.r(P),e.d(P,"ModesHoverController",function(){return ft});var T=e("uAX5"),re=e("3/fG"),J=e("/kV6"),N=e("pmY6"),H=e("sswD"),z=e("aokT"),M=e("wQH0"),U=e("WBhO"),A=e("EffR"),c=e("JQT/"),y=e("zrhQ"),L=e("eLzo"),f=e("cGHE"),v=e("tX9W"),S=e("twdY"),g=e("ZIMw"),u=e("kqbb"),s=e("MI8n"),l=function(){function at(tt,ct,bt){this.presentationIndex=bt,this._onColorFlushed=new s.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new s.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new s.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=tt,this._color=tt,this._colorPresentations=ct}return Object.defineProperty(at.prototype,"color",{get:function(){return this._color},set:function(ct){if(this._color.equals(ct))return;this._color=ct,this._onDidChangeColor.fire(ct)},enumerable:!0,configurable:!0}),Object.defineProperty(at.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(at.prototype,"colorPresentations",{get:function(){return this._colorPresentations},set:function(ct){this._colorPresentations=ct,this.presentationIndex>ct.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),at.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},at.prototype.guessColorPresentation=function(tt,ct){for(var bt=0;bt<this.colorPresentations.length;bt++)if(ct===this.colorPresentations[bt].label){this.presentationIndex=bt,this._onDidChangePresentation.fire(this.presentation);break}},at.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},at}(),d=e("EPS+"),p=e("D3Dy"),E=e("AKMP"),_=e("G300"),x=e("MD5Z"),F=e("t9D7"),R=function(){var at=function(ct,bt){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,Ct){mt.__proto__=Ct}||function(mt,Ct){for(var Gt in Ct)Ct.hasOwnProperty(Gt)&&(mt[Gt]=Ct[Gt])},at(ct,bt)};return function(tt,ct){at(tt,ct);function bt(){this.constructor=tt}tt.prototype=ct===null?Object.create(ct):(bt.prototype=ct.prototype,new bt)}}(),$=A.a,ie=function(at){R(tt,at);function tt(ct,bt,mt){var Ct=at.call(this)||this;Ct.model=bt,Ct.domNode=$(".colorpicker-header"),A.q(ct,Ct.domNode),Ct.pickedColorNode=A.q(Ct.domNode,$(".picked-color"));var Gt=A.q(Ct.domNode,$(".original-color"));return Gt.style.backgroundColor=y.a.Format.CSS.format(Ct.model.originalColor)||"",Ct.backgroundColor=mt.getTheme().getColor(x.A)||y.a.white,Ct._register(Object(F.e)(function(It,Et){Ct.backgroundColor=It.getColor(x.A)||y.a.white})),Ct._register(A.j(Ct.pickedColorNode,A.d.CLICK,function(){return Ct.model.selectNextColorPresentation()})),Ct._register(A.j(Gt,A.d.CLICK,function(){Ct.model.color=Ct.model.originalColor,Ct.model.flushColor()})),Ct._register(bt.onDidChangeColor(Ct.onDidChangeColor,Ct)),Ct._register(bt.onDidChangePresentation(Ct.onDidChangePresentation,Ct)),Ct.pickedColorNode.style.backgroundColor=y.a.Format.CSS.format(bt.color)||"",A.Y(Ct.pickedColorNode,"light",bt.color.rgba.a<.5?Ct.backgroundColor.isLighter():bt.color.isLighter()),Ct}return tt.prototype.onDidChangeColor=function(ct){this.pickedColorNode.style.backgroundColor=y.a.Format.CSS.format(ct)||"",A.Y(this.pickedColorNode,"light",ct.rgba.a<.5?this.backgroundColor.isLighter():ct.isLighter()),this.onDidChangePresentation()},tt.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},tt}(N.a),W=function(at){R(tt,at);function tt(ct,bt,mt){var Ct=at.call(this)||this;return Ct.model=bt,Ct.pixelRatio=mt,Ct.domNode=$(".colorpicker-body"),A.q(ct,Ct.domNode),Ct.saturationBox=new B(Ct.domNode,Ct.model,Ct.pixelRatio),Ct._register(Ct.saturationBox),Ct._register(Ct.saturationBox.onDidChange(Ct.onDidSaturationValueChange,Ct)),Ct._register(Ct.saturationBox.onColorFlushed(Ct.flushColor,Ct)),Ct.opacityStrip=new be(Ct.domNode,Ct.model),Ct._register(Ct.opacityStrip),Ct._register(Ct.opacityStrip.onDidChange(Ct.onDidOpacityChange,Ct)),Ct._register(Ct.opacityStrip.onColorFlushed(Ct.flushColor,Ct)),Ct.hueStrip=new De(Ct.domNode,Ct.model),Ct._register(Ct.hueStrip),Ct._register(Ct.hueStrip.onDidChange(Ct.onDidHueChange,Ct)),Ct._register(Ct.hueStrip.onColorFlushed(Ct.flushColor,Ct)),Ct}return tt.prototype.flushColor=function(){this.model.flushColor()},tt.prototype.onDidSaturationValueChange=function(ct){var bt=ct.s,mt=ct.v,Ct=this.model.color.hsva;this.model.color=new y.a(new y.b(Ct.h,bt,mt,Ct.a))},tt.prototype.onDidOpacityChange=function(ct){var bt=this.model.color.hsva;this.model.color=new y.a(new y.b(bt.h,bt.s,bt.v,ct))},tt.prototype.onDidHueChange=function(ct){var bt=this.model.color.hsva,mt=(1-ct)*360;this.model.color=new y.a(new y.b(mt===360?0:mt,bt.s,bt.v,bt.a))},tt.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},tt}(N.a),B=function(at){R(tt,at);function tt(ct,bt,mt){var Ct=at.call(this)||this;return Ct.model=bt,Ct.pixelRatio=mt,Ct._onDidChange=new s.a,Ct.onDidChange=Ct._onDidChange.event,Ct._onColorFlushed=new s.a,Ct.onColorFlushed=Ct._onColorFlushed.event,Ct.domNode=$(".saturation-wrap"),A.q(ct,Ct.domNode),Ct.canvas=document.createElement("canvas"),Ct.canvas.className="saturation-box",A.q(Ct.domNode,Ct.canvas),Ct.selection=$(".saturation-selection"),A.q(Ct.domNode,Ct.selection),Ct.layout(),Ct._register(A.h(Ct.domNode,function(Gt){return Ct.onMouseDown(Gt)})),Ct._register(Ct.model.onDidChangeColor(Ct.onDidChangeColor,Ct)),Ct.monitor=null,Ct}return tt.prototype.onMouseDown=function(ct){var bt=this;this.monitor=this._register(new E.a);var mt=A.C(this.domNode);ct.target!==this.selection&&this.onDidChangePosition(ct.offsetX,ct.offsetY),this.monitor.startMonitoring(ct.target,ct.buttons,E.b,function(Gt){return bt.onDidChangePosition(Gt.posx-mt.left,Gt.posy-mt.top)},function(){return null});var Ct=A.i(document,function(){bt._onColorFlushed.fire(),Ct.dispose(),bt.monitor&&(bt.monitor.stopMonitoring(!0),bt.monitor=null)},!0)},tt.prototype.onDidChangePosition=function(ct,bt){var mt=Math.max(0,Math.min(1,ct/this.width)),Ct=Math.max(0,Math.min(1,1-bt/this.height));this.paintSelection(mt,Ct),this._onDidChange.fire({s:mt,v:Ct})},tt.prototype.layout=function(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();var ct=this.model.color.hsva;this.paintSelection(ct.s,ct.v)},tt.prototype.paint=function(){var ct=this.model.color.hsva,bt=new y.a(new y.b(ct.h,1,1,1)),mt=this.canvas.getContext("2d"),Ct=mt.createLinearGradient(0,0,this.canvas.width,0);Ct.addColorStop(0,"rgba(255, 255, 255, 1)"),Ct.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),Ct.addColorStop(1,"rgba(255, 255, 255, 0)");var Gt=mt.createLinearGradient(0,0,0,this.canvas.height);Gt.addColorStop(0,"rgba(0, 0, 0, 0)"),Gt.addColorStop(1,"rgba(0, 0, 0, 1)"),mt.rect(0,0,this.canvas.width,this.canvas.height),mt.fillStyle=y.a.Format.CSS.format(bt),mt.fill(),mt.fillStyle=Ct,mt.fill(),mt.fillStyle=Gt,mt.fill()},tt.prototype.paintSelection=function(ct,bt){this.selection.style.left=ct*this.width+"px",this.selection.style.top=this.height-bt*this.height+"px"},tt.prototype.onDidChangeColor=function(){if(this.monitor&&this.monitor.isMonitoring())return;this.paint()},tt}(N.a),le=function(at){R(tt,at);function tt(ct,bt){var mt=at.call(this)||this;return mt.model=bt,mt._onDidChange=new s.a,mt.onDidChange=mt._onDidChange.event,mt._onColorFlushed=new s.a,mt.onColorFlushed=mt._onColorFlushed.event,mt.domNode=A.q(ct,$(".strip")),mt.overlay=A.q(mt.domNode,$(".overlay")),mt.slider=A.q(mt.domNode,$(".slider")),mt.slider.style.top="0px",mt._register(A.h(mt.domNode,function(Ct){return mt.onMouseDown(Ct)})),mt.layout(),mt}return tt.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var ct=this.getValue(this.model.color);this.updateSliderPosition(ct)},tt.prototype.onMouseDown=function(ct){var bt=this,mt=this._register(new E.a),Ct=A.C(this.domNode);A.f(this.domNode,"grabbing"),ct.target!==this.slider&&this.onDidChangeTop(ct.offsetY),mt.startMonitoring(ct.target,ct.buttons,E.b,function(It){return bt.onDidChangeTop(It.posy-Ct.top)},function(){return null});var Gt=A.i(document,function(){bt._onColorFlushed.fire(),Gt.dispose(),mt.stopMonitoring(!0),A.P(bt.domNode,"grabbing")},!0)},tt.prototype.onDidChangeTop=function(ct){var bt=Math.max(0,Math.min(1,1-ct/this.height));this.updateSliderPosition(bt),this._onDidChange.fire(bt)},tt.prototype.updateSliderPosition=function(ct){this.slider.style.top=(1-ct)*this.height+"px"},tt}(N.a),be=function(at){R(tt,at);function tt(ct,bt){var mt=at.call(this,ct,bt)||this;return A.f(mt.domNode,"opacity-strip"),mt._register(bt.onDidChangeColor(mt.onDidChangeColor,mt)),mt.onDidChangeColor(mt.model.color),mt}return tt.prototype.onDidChangeColor=function(ct){var bt=ct.rgba,mt=bt.r,Ct=bt.g,Gt=bt.b,It=new y.a(new y.c(mt,Ct,Gt,1)),Et=new y.a(new y.c(mt,Ct,Gt,0));this.overlay.style.background="linear-gradient(to bottom, "+It+" 0%, "+Et+" 100%)"},tt.prototype.getValue=function(ct){return ct.hsva.a},tt}(le),De=function(at){R(tt,at);function tt(ct,bt){var mt=at.call(this,ct,bt)||this;return A.f(mt.domNode,"hue-strip"),mt}return tt.prototype.getValue=function(ct){return 1-ct.hsva.h/360},tt}(le),Te=function(at){R(tt,at);function tt(ct,bt,mt,Ct){var Gt=at.call(this)||this;Gt.model=bt,Gt.pixelRatio=mt,Gt._register(Object(p.o)(function(){return Gt.layout()}));var It=$(".colorpicker-widget");ct.appendChild(It);var Et=new ie(It,Gt.model,Ct);return Gt.body=new W(It,Gt.model,Gt.pixelRatio),Gt._register(Et),Gt._register(Gt.body),Gt}return tt.prototype.layout=function(){this.body.layout()},tt}(_.a),ke=e("6OMU"),He=e("/cxE");function je(at,tt,ct){var bt=S.p.ordered(at),mt=bt.map(function(Ct){return Promise.resolve(Ct.provideHover(at,tt,ct)).then(function(Gt){return Gt&&oe(Gt)?Gt:void 0},function(Gt){Object(He.f)(Gt);return})});return Promise.all(mt).then(ke.d)}Object(H.k)("_executeHoverProvider",function(at,tt){return je(at,tt,c.a.None)});function oe(at){var tt=typeof at.range!="undefined",ct=typeof at.contents!="undefined"&&at.contents&&at.contents.length>0;return tt&&ct}var ee=e("X+cX"),ae=function(){function at(tt,ct,bt,mt,Ct){var Gt=this;this._computer=tt,this._state=0,this._hoverTime=Ct,this._firstWaitScheduler=new ee.d(function(){return Gt._triggerAsyncComputation()},0),this._secondWaitScheduler=new ee.d(function(){return Gt._triggerSyncComputation()},0),this._loadingMessageScheduler=new ee.d(function(){return Gt._showLoadingMessage()},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=ct,this._errorCallback=bt,this._progressCallback=mt}return at.prototype.setHoverTime=function(tt){this._hoverTime=tt},at.prototype._firstWaitTime=function(){return this._hoverTime/2},at.prototype._secondWaitTime=function(){return this._hoverTime/2},at.prototype._loadingMessageTime=function(){return 3*this._hoverTime},at.prototype._triggerAsyncComputation=function(){var tt=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(ee.f)(function(ct){return tt._computer.computeAsync(ct)}),this._asyncComputationPromise.then(function(ct){tt._asyncComputationPromiseDone=!0,tt._withAsyncResult(ct)},function(ct){return tt._onError(ct)})):this._asyncComputationPromiseDone=!0},at.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()))},at.prototype._showLoadingMessage=function(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())},at.prototype._withAsyncResult=function(tt){tt&&this._computer.onResult(tt,!1),this._state===3&&(this._state=0,this._onComplete(this._computer.getResult()))},at.prototype._onComplete=function(tt){this._completeCallback&&this._completeCallback(tt)},at.prototype._onError=function(tt){this._errorCallback?this._errorCallback(tt):Object(He.e)(tt)},at.prototype._onProgress=function(tt){this._progressCallback&&this._progressCallback(tt)},at.prototype.start=function(tt){if(tt===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}},at.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},at}(),q=e("GJhM"),ce=function(){var at=function(ct,bt){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,Ct){mt.__proto__=Ct}||function(mt,Ct){for(var Gt in Ct)Ct.hasOwnProperty(Gt)&&(mt[Gt]=Ct[Gt])},at(ct,bt)};return function(tt,ct){at(tt,ct);function bt(){this.constructor=tt}tt.prototype=ct===null?Object.create(ct):(bt.prototype=ct.prototype,new bt)}}(),X=function(){for(var at=0,tt=0,ct=arguments.length;tt<ct;tt++)at+=arguments[tt].length;for(var bt=Array(at),mt=0,tt=0;tt<ct;tt++)for(var Ct=arguments[tt],Gt=0,It=Ct.length;Gt<It;Gt++,mt++)bt[mt]=Ct[Gt];return bt},he=function(at){ce(tt,at);function tt(ct,bt){var mt=at.call(this)||this;return mt.allowEditorOverflow=!0,mt._id=ct,mt._editor=bt,mt._isVisible=!1,mt._stoleFocus=!1,mt._containerDomNode=document.createElement("div"),mt._containerDomNode.className="monaco-editor-hover hidden",mt._containerDomNode.tabIndex=0,mt._domNode=document.createElement("div"),mt._domNode.className="monaco-editor-hover-content",mt.scrollbar=new q.a(mt._domNode,{}),mt._register(mt.scrollbar),mt._containerDomNode.appendChild(mt.scrollbar.getDomNode()),mt.onkeydown(mt._containerDomNode,function(Ct){Ct.equals(9)&&mt.hide()}),mt._register(mt._editor.onDidChangeConfiguration(function(Ct){Ct.hasChanged(34)&&mt.updateFont()})),mt._editor.onDidLayoutChange(function(Ct){return mt.layout()}),mt.layout(),mt._editor.addContentWidget(mt),mt._showAtPosition=null,mt._showAtRange=null,mt._stoleFocus=!1,mt}return Object.defineProperty(tt.prototype,"isVisible",{get:function(){return this._isVisible},set:function(bt){this._isVisible=bt,Object(A.Y)(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),tt.prototype.getId=function(){return this._id},tt.prototype.getDomNode=function(){return this._containerDomNode},tt.prototype.showAt=function(ct,bt,mt){this._showAtPosition=ct,this._showAtRange=bt,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=mt,mt&&this._containerDomNode.focus()},tt.prototype.hide=function(){if(!this.isVisible)return;this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus()},tt.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null},tt.prototype.dispose=function(){this._editor.removeContentWidget(this),at.prototype.dispose.call(this)},tt.prototype.updateFont=function(){var ct=this,bt=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));bt.forEach(function(mt){return ct._editor.applyFontInfo(mt)})},tt.prototype.updateContents=function(ct){this._domNode.textContent="",this._domNode.appendChild(ct),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},tt.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},tt.prototype.layout=function(){var ct=Math.max(this._editor.getLayoutInfo().height/4,250),bt=this._editor.getOption(34),mt=bt.fontSize,Ct=bt.lineHeight;this._domNode.style.fontSize=mt+"px",this._domNode.style.lineHeight=Ct+"px",this._domNode.style.maxHeight=ct+"px",this._domNode.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px"},tt}(_.a),Pe=function(at){ce(tt,at);function tt(ct,bt){var mt=at.call(this)||this;return mt._id=ct,mt._editor=bt,mt._isVisible=!1,mt._domNode=document.createElement("div"),mt._domNode.className="monaco-editor-hover hidden",mt._domNode.setAttribute("aria-hidden","true"),mt._domNode.setAttribute("role","presentation"),mt._showAtLineNumber=-1,mt._register(mt._editor.onDidChangeConfiguration(function(Ct){Ct.hasChanged(34)&&mt.updateFont()})),mt._editor.addOverlayWidget(mt),mt}return Object.defineProperty(tt.prototype,"isVisible",{get:function(){return this._isVisible},set:function(bt){this._isVisible=bt,Object(A.Y)(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),tt.prototype.getId=function(){return this._id},tt.prototype.getDomNode=function(){return this._domNode},tt.prototype.showAt=function(ct){this._showAtLineNumber=ct,this.isVisible||(this.isVisible=!0);var bt=this._editor.getLayoutInfo(),mt=this._editor.getTopForLineNumber(this._showAtLineNumber),Ct=this._editor.getScrollTop(),Gt=this._editor.getOption(49),It=this._domNode.clientHeight,Et=mt-Ct-(It-Gt)/2;this._domNode.style.left=bt.glyphMarginLeft+bt.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(Et),0)+"px"},tt.prototype.hide=function(){if(!this.isVisible)return;this.isVisible=!1},tt.prototype.getPosition=function(){return null},tt.prototype.dispose=function(){this._editor.removeOverlayWidget(this),at.prototype.dispose.call(this)},tt.prototype.updateFont=function(){var ct=this,bt=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),mt=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));X(bt,mt).forEach(function(Ct){return ct._editor.applyFontInfo(Ct)})},tt.prototype.updateContents=function(ct){this._domNode.textContent="",this._domNode.appendChild(ct),this.updateFont()},tt}(_.a),Xe=e("3qCu"),pe=e("tADe"),me=e("gslv"),Se=e("W9cx"),Re=e("lY/7"),Ee=e("hJVp"),ve=e("C1Q+"),Q=e("nlbu"),b=function(){var at=function(ct,bt){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,Ct){mt.__proto__=Ct}||function(mt,Ct){for(var Gt in Ct)Ct.hasOwnProperty(Gt)&&(mt[Gt]=Ct[Gt])},at(ct,bt)};return function(tt,ct){at(tt,ct);function bt(){this.constructor=tt}tt.prototype=ct===null?Object.create(ct):(bt.prototype=ct.prototype,new bt)}}(),k=function(){for(var at=0,tt=0,ct=arguments.length;tt<ct;tt++)at+=arguments[tt].length;for(var bt=Array(at),mt=0,tt=0;tt<ct;tt++)for(var Ct=arguments[tt],Gt=0,It=Ct.length;Gt<It;Gt++,mt++)bt[mt]=Ct[Gt];return bt},se=A.a,ne=function(){function at(tt,ct,bt){this.range=tt,this.color=ct,this.provider=bt}return at}(),Ce=function(){function at(tt,ct){this.range=tt,this.marker=ct}return at}(),Oe=function(){function at(tt,ct){this._markerDecorationsService=ct,this._editor=tt,this._result=[]}return at.prototype.setRange=function(tt){this._range=tt,this._result=[]},at.prototype.clearResult=function(){this._result=[]},at.prototype.computeAsync=function(tt){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);var ct=this._editor.getModel();return S.p.has(ct)?je(ct,new f.a(this._range.startLineNumber,this._range.startColumn),tt):Promise.resolve([])},at.prototype.computeSync=function(){var tt=this;if(!this._editor.hasModel()||!this._range)return[];var ct=this._editor.getModel(),bt=this._range.startLineNumber;if(bt>this._editor.getModel().getLineCount())return[];var mt=u.ColorDetector.get(this._editor),Ct=ct.getLineMaxColumn(bt),Gt=this._editor.getLineDecorations(bt),It=!1,Et=this._range,Je=Gt.map(function($e){var ze=$e.range.startLineNumber===bt?$e.range.startColumn:1,Ke=$e.range.endLineNumber===bt?$e.range.endColumn:Ct;if(ze>Et.startColumn||Et.endColumn>Ke)return null;var fe=new z.a(Et.startLineNumber,ze,Et.startLineNumber,Ke),G=tt._markerDecorationsService.getMarker(ct,$e);if(G)return new Ce(fe,G);var te=mt.getColorData($e.range.getStartPosition());if(!It&&te){It=!0;var Y=te.colorInfo,de=Y.color,Fe=Y.range;return new ne(Fe,de,te.provider)}else{if(Object(L.b)($e.options.hoverMessage))return null;var lt=$e.options.hoverMessage?Object(ke.b)($e.options.hoverMessage):[];return{contents:lt,range:fe}}});return Object(ke.d)(Je)},at.prototype.onResult=function(tt,ct){ct?this._result=tt.concat(this._result.sort(function(bt,mt){return bt instanceof ne?-1:mt instanceof ne?1:0})):this._result=this._result.concat(tt)},at.prototype.getResult=function(){return this._result.slice(0)},at.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},at.prototype._getLoadingMessage=function(){return{range:this._range,contents:[new L.a().appendText(re.a("modesContentHover.loading","Loading..."))]}},at}(),we={type:2,filter:{include:Q.b.QuickFix}},Ve=function(at){b(tt,at);function tt(ct,bt,mt,Ct,Gt,It){It===void 0&&(It=Se.b);var Et=at.call(this,tt.ID,ct)||this;return Et._themeService=mt,Et._keybindingService=Ct,Et._modeService=Gt,Et._openerService=It,Et.renderDisposable=Et._register(new N.d),Et._messages=[],Et._lastRange=null,Et._computer=new Oe(Et._editor,bt),Et._highlightDecorations=[],Et._isChangingDecorations=!1,Et._shouldFocus=!1,Et._colorPicker=null,Et._hoverOperation=new ae(Et._computer,function(Je){return Et._withResult(Je,!0)},null,function(Je){return Et._withResult(Je,!1)},Et._editor.getOption(44).delay),Et._register(A.o(Et.getDomNode(),A.d.FOCUS,function(){Et._colorPicker&&A.f(Et.getDomNode(),"colorpicker-hover")})),Et._register(A.o(Et.getDomNode(),A.d.BLUR,function(){A.P(Et.getDomNode(),"colorpicker-hover")})),Et._register(ct.onDidChangeConfiguration(function(Je){Et._hoverOperation.setHoverTime(Et._editor.getOption(44).delay)})),Et._register(S.B.onDidChange(function(Je){Et.isVisible&&Et._lastRange&&Et._messages.length>0&&(Et._domNode.textContent="",Et._renderMessages(Et._lastRange,Et._messages))})),Et}return tt.prototype.dispose=function(){this._hoverOperation.cancel(),at.prototype.dispose.call(this)},tt.prototype.onModelDecorationsChanged=function(){if(this._isChangingDecorations)return;this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},tt.prototype.startShowingAt=function(ct,bt,mt){if(this._lastRange&&this._lastRange.equalsRange(ct))return;if(this._hoverOperation.cancel(),this.isVisible)if(!this._showAtPosition||this._showAtPosition.lineNumber!==ct.startLineNumber)this.hide();else{for(var Ct=[],Gt=0,It=this._messages.length;Gt<It;Gt++){var Et=this._messages[Gt],Je=Et.range;Je&&Je.startColumn<=ct.startColumn&&Je.endColumn>=ct.endColumn&&Ct.push(Et)}if(Ct.length>0){if(Qe(Ct,this._messages))return;this._renderMessages(ct,Ct)}else this.hide()}this._lastRange=ct,this._computer.setRange(ct),this._shouldFocus=mt,this._hoverOperation.start(bt)},tt.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),at.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},tt.prototype.isColorPickerVisible=function(){return!!this._colorPicker},tt.prototype._withResult=function(ct,bt){this._messages=ct,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):bt&&this.hide()},tt.prototype._renderMessages=function(ct,bt){var mt=this;this.renderDisposable.dispose(),this._colorPicker=null;var Ct=1073741824,Gt=bt[0].range?z.a.lift(bt[0].range):null,It=document.createDocumentFragment(),Et=!0,Je=!1,$e=new N.b,ze=[];if(bt.forEach(function(fe){if(!fe.range)return;if(Ct=Math.min(Ct,fe.range.startColumn),Gt=Gt?z.a.plusRange(Gt,fe.range):z.a.lift(fe.range),fe instanceof ne){Je=!0;var G=fe.color,te=G.red,Y=G.green,de=G.blue,Fe=G.alpha,lt=new y.c(Math.round(te*255),Math.round(Y*255),Math.round(de*255),Fe),Tt=new y.a(lt);if(!mt._editor.hasModel())return;var Jt=mt._editor.getModel(),en=new z.a(fe.range.startLineNumber,fe.range.startColumn,fe.range.endLineNumber,fe.range.endColumn),gn={range:fe.range,color:fe.color},un=new l(Tt,[],0),En=new Te(It,un,mt._editor.getOption(105),mt._themeService);Object(g.a)(Jt,gn,fe.provider,c.a.None).then(function(Mn){if(un.colorPresentations=Mn||[],!mt._editor.hasModel())return;var xn=mt._editor.getModel().getValueInRange(fe.range);un.guessColorPresentation(Tt,xn);var Zn=function(){var Dn,Qn;un.presentation.textEdit?(Dn=[un.presentation.textEdit],Qn=new z.a(un.presentation.textEdit.range.startLineNumber,un.presentation.textEdit.range.startColumn,un.presentation.textEdit.range.endLineNumber,un.presentation.textEdit.range.endColumn),Qn=Qn.setEndPosition(Qn.endLineNumber,Qn.startColumn+un.presentation.textEdit.text.length)):(Dn=[{identifier:null,range:en,text:un.presentation.label,forceMoveMarkers:!1}],Qn=en.setEndPosition(en.endLineNumber,en.startColumn+un.presentation.label.length)),mt._editor.pushUndoStop(),mt._editor.executeEdits("colorpicker",Dn),un.presentation.additionalTextEdits&&(Dn=k(un.presentation.additionalTextEdits),mt._editor.executeEdits("colorpicker",Dn),mt.hide()),mt._editor.pushUndoStop(),en=Qn},bn=function(Dn){return Object(g.a)(Jt,{range:en,color:{red:Dn.rgba.r/255,green:Dn.rgba.g/255,blue:Dn.rgba.b/255,alpha:Dn.rgba.a}},fe.provider,c.a.None).then(function(Qn){un.colorPresentations=Qn||[]})},Wn=un.onColorFlushed(function(Bn){bn(Bn).then(Zn)}),Gn=un.onDidChangeColor(bn);mt._colorPicker=En,mt.showAt(en.getStartPosition(),en,mt._shouldFocus),mt.updateContents(It),mt._colorPicker.layout(),mt.renderDisposable.value=Object(N.e)(Wn,Gn,En,$e)})}else fe instanceof Ce?(ze.push(fe),Et=!1):fe.contents.filter(function(Mn){return!Object(L.b)(Mn)}).forEach(function(Mn){var xn=se("div.hover-row.markdown-hover"),Zn=A.q(xn,se("div.hover-contents")),bn=$e.add(new Xe.a(mt._editor,mt._modeService,mt._openerService));$e.add(bn.onDidRenderCodeBlock(function(){Zn.className="hover-contents code-hover-contents",mt.onContentsChange()}));var Wn=$e.add(bn.render(Mn));Zn.appendChild(Wn.element),It.appendChild(xn),Et=!1})}),ze.length){ze.forEach(function(fe){return It.appendChild(mt.renderMarkerHover(fe))});var Ke=ze.length===1?ze[0]:ze.sort(function(fe,G){return pe.c.compare(fe.marker.severity,G.marker.severity)})[0];It.appendChild(this.renderMarkerStatusbar(Ke))}!Je&&!Et&&(this.showAt(new f.a(ct.startLineNumber,Ct),Gt,this._shouldFocus),this.updateContents(It)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,Gt?[{range:Gt,options:tt._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},tt.prototype.renderMarkerHover=function(ct){var bt=this,mt=se("div.hover-row"),Ct=A.q(mt,se("div.marker.hover-contents")),Gt=ct.marker,It=Gt.source,Et=Gt.message,Je=Gt.code,$e=Gt.relatedInformation;this._editor.applyFontInfo(Ct);var ze=A.q(Ct,se("span"));if(ze.style.whiteSpace="pre-wrap",ze.innerText=Et,It||Je){if(typeof Je=="string"){var Ke=A.q(Ct,se("span"));Ke.style.opacity="0.6",Ke.style.paddingLeft="6px",Ke.innerText=It&&Je?It+"("+Je+")":It||"("+Je+")"}else if(Je){var fe=se("span");if(It){var G=A.q(fe,se("span"));G.innerText=It}this._codeLink=A.q(fe,se("a.code-link")),this._codeLink.setAttribute("href",Je.link.toString()),this._codeLink.onclick=function(Mn){bt._openerService.open(Je.link),Mn.preventDefault(),Mn.stopPropagation()};var te=A.q(this._codeLink,se("span"));te.innerText=Je.value;var Ke=A.q(Ct,fe);Ke.style.opacity="0.6",Ke.style.paddingLeft="6px"}}if(Object(ke.q)($e))for(var Y=function(Mn,xn,Zn,bn){var Wn=A.q(Ct,se("div"));Wn.style.marginTop="8px";var Gn=A.q(Wn,se("a"));Gn.innerText=Object(me.b)(xn)+"("+Zn+", "+bn+"): ",Gn.style.cursor="pointer",Gn.onclick=function(Dn){Dn.stopPropagation(),Dn.preventDefault(),bt._openerService&&bt._openerService.open(xn.with({fragment:Zn+","+bn}),{fromUserGesture:!0}).catch(He.e)};var Bn=A.q(Wn,se("span"));Bn.innerText=Mn,de._editor.applyFontInfo(Bn)},de=this,Fe=0,lt=$e;Fe<lt.length;Fe++){var Tt=lt[Fe],Jt=Tt.message,en=Tt.resource,gn=Tt.startLineNumber,un=Tt.startColumn;Y(Jt,en,gn,un)}return mt},tt.prototype.renderMarkerStatusbar=function(ct){var bt=this,mt=se("div.hover-row.status-bar"),Ct=new N.b,Gt=A.q(mt,se("div.actions"));(ct.marker.severity===pe.c.Error||ct.marker.severity===pe.c.Warning||ct.marker.severity===pe.c.Info)&&Ct.add(this.renderAction(Gt,{label:re.a("peek problem","Peek Problem"),commandId:Re.NextMarkerAction.ID,run:function(){bt.hide(),Re.MarkerController.get(bt._editor).show(ct.marker),bt._editor.focus()}}));var It=A.q(Gt,se("div"));It.style.opacity="0",It.style.transition="opacity 0.2s",setTimeout(function(){return It.style.opacity="1"},200),It.textContent=re.a("checkingForQuickFixes","Checking for quick fixes..."),Ct.add(Object(N.h)(function(){return It.remove()}));var Et=this.getCodeActions(ct.marker);return Ct.add(Object(N.h)(function(){return Et.cancel()})),Et.then(function(Je){if(It.style.transition="",It.style.opacity="1",!Je.validActions.length){Je.dispose(),It.textContent=re.a("noQuickFixes","No quick fixes available");return}It.remove();var $e=!1;Ct.add(Object(N.h)(function(){$e||Je.dispose()})),Ct.add(bt.renderAction(Gt,{label:re.a("quick fixes","Quick Fix..."),commandId:ve.e.Id,run:function(Ke){$e=!0;var fe=ve.f.get(bt._editor),G=A.C(Ke);fe.showCodeActions(we,Je,{x:G.left+6,y:G.top+G.height+6})}}))}),this.renderDisposable.value=Ct,mt},tt.prototype.getCodeActions=function(ct){var bt=this;return Object(ee.f)(function(mt){return Object(Ee.c)(bt._editor.getModel(),new z.a(ct.startLineNumber,ct.startColumn,ct.endLineNumber,ct.endColumn),we,mt)})},tt.prototype.renderAction=function(ct,bt){var mt=A.q(ct,se("div.action-container")),Ct=A.q(mt,se("a.action"));bt.iconClass&&A.q(Ct,se("span.icon."+bt.iconClass));var Gt=A.q(Ct,se("span"));Gt.textContent=bt.label;var It=this._keybindingService.lookupKeybinding(bt.commandId);return It&&(Gt.title=bt.label+" ("+It.getLabel()+")"),A.j(mt,A.d.CLICK,function(Et){Et.stopPropagation(),Et.preventDefault(),bt.run(mt)})},tt.ID="editor.contrib.modesContentHoverWidget",tt._DECORATION_OPTIONS=v.a.register({className:"hoverHighlight"}),tt}(he);function Qe(at,tt){if(!at&&tt||at&&!tt||at.length!==tt.length)return!1;for(var ct=0;ct<at.length;ct++){var bt=at[ct],mt=tt[ct];if(bt instanceof Ce&&mt instanceof Ce)return pe.a.makeKey(bt.marker)===pe.a.makeKey(mt.marker);if(bt instanceof ne||mt instanceof ne)return!1;if(bt instanceof Ce||mt instanceof Ce)return!1;if(!Object(L.c)(bt.contents,mt.contents))return!1}return!0}Object(F.e)(function(at,tt){var ct=at.getColor(x.ec);ct&&tt.addRule(".monaco-editor-hover .hover-contents a.code-link span:hover { color: "+ct+"; }")});var it=function(){var at=function(ct,bt){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,Ct){mt.__proto__=Ct}||function(mt,Ct){for(var Gt in Ct)Ct.hasOwnProperty(Gt)&&(mt[Gt]=Ct[Gt])},at(ct,bt)};return function(tt,ct){at(tt,ct);function bt(){this.constructor=tt}tt.prototype=ct===null?Object.create(ct):(bt.prototype=ct.prototype,new bt)}}(),gt=function(){function at(tt){this._editor=tt,this._lineNumber=-1,this._result=[]}return at.prototype.setLineNumber=function(tt){this._lineNumber=tt,this._result=[]},at.prototype.clearResult=function(){this._result=[]},at.prototype.computeSync=function(){var tt=function(Je){return{value:Je}},ct=this._editor.getLineDecorations(this._lineNumber),bt=[];if(!ct)return bt;for(var mt=0,Ct=ct;mt<Ct.length;mt++){var Gt=Ct[mt];if(!Gt.options.glyphMarginClassName)continue;var It=Gt.options.glyphMarginHoverMessage;if(!It||Object(L.b)(It))continue;bt.push.apply(bt,Object(ke.b)(It).map(tt))}return bt},at.prototype.onResult=function(tt,ct){this._result=this._result.concat(tt)},at.prototype.getResult=function(){return this._result},at.prototype.getResultWithLoadingMessage=function(){return this.getResult()},at}(),Rt=function(at){it(tt,at);function tt(ct,bt,mt){mt===void 0&&(mt=Se.b);var Ct=at.call(this,tt.ID,ct)||this;return Ct._renderDisposeables=Ct._register(new N.b),Ct._messages=[],Ct._lastLineNumber=-1,Ct._markdownRenderer=Ct._register(new Xe.a(Ct._editor,bt,mt)),Ct._computer=new gt(Ct._editor),Ct._hoverOperation=new ae(Ct._computer,function(Gt){return Ct._withResult(Gt)},void 0,function(Gt){return Ct._withResult(Gt)},300),Ct}return tt.prototype.dispose=function(){this._hoverOperation.cancel(),at.prototype.dispose.call(this)},tt.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))},tt.prototype.startShowingAt=function(ct){if(this._lastLineNumber===ct)return;this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=ct,this._computer.setLineNumber(ct),this._hoverOperation.start(0)},tt.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),at.prototype.hide.call(this)},tt.prototype._withResult=function(ct){this._messages=ct,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},tt.prototype._renderMessages=function(ct,bt){this._renderDisposeables.clear();for(var mt=document.createDocumentFragment(),Ct=0,Gt=bt;Ct<Gt.length;Ct++){var It=Gt[Ct],Et=this._markdownRenderer.render(It.value);this._renderDisposeables.add(Et),mt.appendChild(Object(A.a)("div.hover-row",void 0,Et.element))}this.updateContents(mt),this.showAt(ct)},tt.ID="editor.contrib.modesGlyphHoverWidget",tt}(Pe),Dt=e("79sc"),zt=e("bexQ"),cn=e("H4T2"),ln=function(){var at=function(ct,bt){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,Ct){mt.__proto__=Ct}||function(mt,Ct){for(var Gt in Ct)Ct.hasOwnProperty(Gt)&&(mt[Gt]=Ct[Gt])},at(ct,bt)};return function(tt,ct){at(tt,ct);function bt(){this.constructor=tt}tt.prototype=ct===null?Object.create(ct):(bt.prototype=ct.prototype,new bt)}}(),an=function(at,tt,ct,bt){var mt=arguments.length,Ct=mt<3?tt:bt===null?bt=Object.getOwnPropertyDescriptor(tt,ct):bt,Gt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ct=Reflect.decorate(at,tt,ct,bt);else for(var It=at.length-1;It>=0;It--)(Gt=at[It])&&(Ct=(mt<3?Gt(Ct):mt>3?Gt(tt,ct,Ct):Gt(tt,ct))||Ct);return mt>3&&Ct&&Object.defineProperty(tt,ct,Ct),Ct},jt=function(at,tt){return function(ct,bt){tt(ct,bt,at)}},ft=function(){function at(tt,ct,bt,mt,Ct,Gt){var It=this;this._editor=tt,this._openerService=ct,this._modeService=bt,this._markerDecorationsService=mt,this._keybindingService=Ct,this._themeService=Gt,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(Et){Et.hasChanged(44)&&(It._hideWidgets(),It._unhookEvents(),It._hookEvents())})}return Object.defineProperty(at.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(at.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),at.get=function(tt){return tt.getContribution(at.ID)},at.prototype._hookEvents=function(){var tt=this,ct=function(){return tt._hideWidgets()},bt=this._editor.getOption(44);this._isHoverEnabled=bt.enabled,this._isHoverSticky=bt.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(mt){return tt._onEditorMouseDown(mt)})),this._toUnhook.add(this._editor.onMouseUp(function(mt){return tt._onEditorMouseUp(mt)})),this._toUnhook.add(this._editor.onMouseMove(function(mt){return tt._onEditorMouseMove(mt)})),this._toUnhook.add(this._editor.onKeyDown(function(mt){return tt._onKeyDown(mt)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return tt._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(ct)),this._toUnhook.add(this._editor.onMouseLeave(ct)),this._toUnhook.add(this._editor.onDidChangeModel(ct)),this._toUnhook.add(this._editor.onDidScrollChange(function(mt){return tt._onEditorScrollChanged(mt)}))},at.prototype._unhookEvents=function(){this._toUnhook.clear()},at.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},at.prototype._onEditorScrollChanged=function(tt){(tt.scrollTopChanged||tt.scrollLeftChanged)&&this._hideWidgets()},at.prototype._onEditorMouseDown=function(tt){this._isMouseDown=!0;var ct=tt.target.type;if(ct===9&&tt.target.detail===Ve.ID){this._hoverClicked=!0;return}if(ct===12&&tt.target.detail===Rt.ID)return;ct!==12&&tt.target.detail!==Rt.ID&&(this._hoverClicked=!1),this._hideWidgets()},at.prototype._onEditorMouseUp=function(tt){this._isMouseDown=!1},at.prototype._onEditorMouseMove=function(tt){var ct=tt.target.type;if(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())return;if(this._isHoverSticky&&ct===9&&tt.target.detail===Ve.ID)return;if(this._isHoverSticky&&ct===12&&tt.target.detail===Rt.ID)return;if(ct===7){var bt=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,mt=tt.target.detail;mt&&!mt.isAfterLines&&typeof mt.horizontalDistanceToText=="number"&&mt.horizontalDistanceToText<bt&&(ct=6)}ct===6?(this.glyphWidget.hide(),this._isHoverEnabled&&tt.target.range&&this.contentWidget.startShowingAt(tt.target.range,0,!1)):ct===2?(this.contentWidget.hide(),this._isHoverEnabled&&tt.target.position&&this.glyphWidget.startShowingAt(tt.target.position.lineNumber)):this._hideWidgets()},at.prototype._onKeyDown=function(tt){tt.keyCode!==5&&tt.keyCode!==6&&tt.keyCode!==57&&tt.keyCode!==4&&this._hideWidgets()},at.prototype._hideWidgets=function(){if(!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible())return;this._glyphWidget.value.hide(),this._contentWidget.value.hide()},at.prototype._createHoverWidgets=function(){this._contentWidget.value=new Ve(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget.value=new Rt(this._editor,this._modeService,this._openerService)},at.prototype.showContentHover=function(tt,ct,bt){this.contentWidget.startShowingAt(tt,ct,bt)},at.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},at.ID="editor.contrib.hover",at=an([jt(1,Se.a),jt(2,U.a),jt(3,Dt.a),jt(4,zt.a),jt(5,F.c)],at),at}(),vt=function(at){ln(tt,at);function tt(){return at.call(this,{id:"editor.action.showHover",label:re.a({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:M.a.editorTextFocus,primary:Object(J.a)(2048|41,2048|39),weight:100}})||this}return tt.prototype.run=function(ct,bt){if(!bt.hasModel())return;var mt=ft.get(bt);if(!mt)return;var Ct=bt.getPosition(),Gt=new z.a(Ct.lineNumber,Ct.column,Ct.lineNumber,Ct.column),It=bt.getOption(2)===2;mt.showContentHover(Gt,1,It)},tt}(H.b),xt=function(at){ln(tt,at);function tt(){return at.call(this,{id:"editor.action.showDefinitionPreviewHover",label:re.a({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})||this}return tt.prototype.run=function(ct,bt){var mt=ft.get(bt);if(!mt)return;var Ct=bt.getPosition();if(!Ct)return;var Gt=new z.a(Ct.lineNumber,Ct.column,Ct.lineNumber,Ct.column),It=cn.GotoDefinitionAtPositionEditorContribution.get(bt),Et=It.startFindDefinitionFromCursor(Ct);Et?Et.then(function(){mt.showContentHover(Gt,1,!0)}):mt.showContentHover(Gt,1,!0)},tt}(H.b);Object(H.h)(ft.ID,ft),Object(H.f)(vt),Object(H.f)(xt),Object(F.e)(function(at,tt){var ct=at.getColor(x.D);ct&&tt.addRule(".monaco-editor .hoverHighlight { background-color: "+ct+"; }");var bt=at.getColor(x.A);bt&&tt.addRule(".monaco-editor .monaco-editor-hover { background-color: "+bt+"; }");var mt=at.getColor(x.B);mt&&(tt.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+mt+"; }"),tt.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+mt.transparent(.5)+"; }"),tt.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+mt.transparent(.5)+"; }"),tt.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+mt.transparent(.5)+"; }"));var Ct=at.getColor(x.ec);Ct&&tt.addRule(".monaco-editor .monaco-editor-hover a { color: "+Ct+"; }");var Gt=at.getColor(x.C);Gt&&tt.addRule(".monaco-editor .monaco-editor-hover { color: "+Gt+"; }");var It=at.getColor(x.E);It&&tt.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+It+"; }");var Et=at.getColor(x.dc);Et&&tt.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+Et+"; }")})},rzPn:function(_t,P,e){"use strict";e.d(P,"a",function(){return Ke});var T=e("qH2V"),re=e("sswD"),J=e("tX9W"),N=e("EffR"),H=e("UsjR"),z=e("3/fG"),M=e("MNsG"),U=e("746U"),A=function(){function fe(G){this.modelProvider=Object(U.g)(G.getModel)?G:{getModel:function(){return G}}}return fe.prototype.getId=function(G,te){if(!te)return null;var Y=this.modelProvider.getModel();return Y===te?"__root__":Y.dataSource.getId(te)},fe.prototype.hasChildren=function(G,te){var Y=this.modelProvider.getModel();return!!(Y&&Y===te&&Y.entries.length>0)},fe.prototype.getChildren=function(G,te){var Y=this.modelProvider.getModel();return Promise.resolve(Y===te?Y.entries:[])},fe.prototype.getParent=function(G,te){return Promise.resolve(null)},fe}(),c=function(){function fe(G){this.modelProvider=G}return fe.prototype.getAriaLabel=function(G,te){var Y=this.modelProvider.getModel();return Y.accessibilityProvider?Y.accessibilityProvider.getAriaLabel(te):null},fe.prototype.getPosInSet=function(G,te){var Y=this.modelProvider.getModel(),de=0;if(Y.filter)for(var Fe=0,lt=Y.entries;Fe<lt.length;Fe++){var Tt=lt[Fe];if(Y.filter.isVisible(Tt)&&de++,Tt===te)break}else de=Y.entries.indexOf(te)+1;return String(de)},fe.prototype.getSetSize=function(){var G=this.modelProvider.getModel(),te=0;if(G.filter)for(var Y=0,de=G.entries;Y<de.length;Y++){var Fe=de[Y];G.filter.isVisible(Fe)&&te++}else te=G.entries.length;return String(te)},fe}(),y=function(){function fe(G){this.modelProvider=G}return fe.prototype.isVisible=function(G,te){var Y=this.modelProvider.getModel();return Y.filter?Y.filter.isVisible(te):!0},fe}(),L=function(){function fe(G,te){this.modelProvider=G,this.styles=te}return fe.prototype.updateStyles=function(G){this.styles=G},fe.prototype.getHeight=function(G,te){var Y=this.modelProvider.getModel();return Y.renderer.getHeight(te)},fe.prototype.getTemplateId=function(G,te){var Y=this.modelProvider.getModel();return Y.renderer.getTemplateId(te)},fe.prototype.renderTemplate=function(G,te,Y){var de=this.modelProvider.getModel();return de.renderer.renderTemplate(te,Y,this.styles)},fe.prototype.renderElement=function(G,te,Y,de){var Fe=this.modelProvider.getModel();Fe.renderer.renderElement(te,Y,de,this.styles)},fe.prototype.disposeTemplate=function(G,te,Y){var de=this.modelProvider.getModel();de.renderer.disposeTemplate(te,Y)},fe}(),f=e("0+8E"),v=e("vMFT"),S=e("/cxE"),g=e("/kV6"),u=function(){function fe(){this._arr=[]}return fe.prototype.set=function(G,te){this._arr.push({keybinding:Object(g.f)(G,M.a),callback:te})},fe.prototype.dispatch=function(G){for(var te=this._arr.length-1;te>=0;te--){var Y=this._arr[te];if(G.toChord().equals(Y.keybinding))return Y.callback}return null},fe}(),s=function(){function fe(G){var te=this;G===void 0&&(G={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=G,this.downKeyBindingDispatcher=new u,this.upKeyBindingDispatcher=new u,(typeof G.keyboardSupport!="boolean"||G.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,function(Y,de){return te.onUp(Y,de)}),this.downKeyBindingDispatcher.set(18,function(Y,de){return te.onDown(Y,de)}),this.downKeyBindingDispatcher.set(15,function(Y,de){return te.onLeft(Y,de)}),this.downKeyBindingDispatcher.set(17,function(Y,de){return te.onRight(Y,de)}),M.e&&(this.downKeyBindingDispatcher.set(2048|16,function(Y,de){return te.onLeft(Y,de)}),this.downKeyBindingDispatcher.set(256|44,function(Y,de){return te.onDown(Y,de)}),this.downKeyBindingDispatcher.set(256|46,function(Y,de){return te.onUp(Y,de)})),this.downKeyBindingDispatcher.set(11,function(Y,de){return te.onPageUp(Y,de)}),this.downKeyBindingDispatcher.set(12,function(Y,de){return te.onPageDown(Y,de)}),this.downKeyBindingDispatcher.set(14,function(Y,de){return te.onHome(Y,de)}),this.downKeyBindingDispatcher.set(13,function(Y,de){return te.onEnd(Y,de)}),this.downKeyBindingDispatcher.set(10,function(Y,de){return te.onSpace(Y,de)}),this.downKeyBindingDispatcher.set(9,function(Y,de){return te.onEscape(Y,de)}),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2048|3,this.onEnter.bind(this)))}return fe.prototype.onMouseDown=function(G,te,Y,de){if(de===void 0&&(de="mouse"),this.options.clickBehavior===0&&(Y.leftButton||Y.middleButton)){if(Y.target){if(Y.target.tagName&&Y.target.tagName.toLowerCase()==="input")return!1;if(N.x(Y.target,"scrollbar","monaco-tree"))return!1;if(N.x(Y.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(G,te,Y,de)}return!1},fe.prototype.onClick=function(G,te,Y){var de=M.e;return de&&Y.ctrlKey?(Y.preventDefault(),Y.stopPropagation(),!1):Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input"||this.options.clickBehavior===0&&(Y.leftButton||Y.middleButton)?!1:this.onLeftClick(G,te,Y)},fe.prototype.onLeftClick=function(G,te,Y,de){de===void 0&&(de="mouse");var Fe=Y,lt={origin:de,originalEvent:Y,didClickOnTwistie:this.isClickOnTwistie(Fe)};if(G.getInput()===te)G.clearFocus(lt),G.clearSelection(lt);else{var Tt=Y&&Fe.browserEvent&&Fe.browserEvent.type==="mousedown"&&Fe.browserEvent.detail===1;Tt||Y.preventDefault(),Y.stopPropagation(),G.domFocus(),G.setSelection([te],lt),G.setFocus(te,lt),this.shouldToggleExpansion(te,Fe,de)&&(G.isExpanded(te)?G.collapse(te).then(void 0,S.e):G.expand(te).then(void 0,S.e))}return!0},fe.prototype.shouldToggleExpansion=function(G,te,Y){var de=Y==="mouse"&&te.detail===2;return this.openOnSingleClick||de||this.isClickOnTwistie(te)},Object.defineProperty(fe.prototype,"openOnSingleClick",{get:function(){return this.options.openMode===0},enumerable:!0,configurable:!0}),fe.prototype.isClickOnTwistie=function(G){var te=G.target;if(!N.I(te,"content"))return!1;var Y=window.getComputedStyle(te,":before");if(Y.backgroundImage==="none"||Y.display==="none")return!1;var de=parseInt(Y.width)+parseInt(Y.paddingRight);return G.browserEvent.offsetX<=de},fe.prototype.onContextMenu=function(G,te,Y){return Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input"||Y&&(Y.preventDefault(),Y.stopPropagation()),!1},fe.prototype.onTap=function(G,te,Y){var de=Y.initialTarget;return de&&de.tagName&&de.tagName.toLowerCase()==="input"?!1:this.onLeftClick(G,te,Y,"touch")},fe.prototype.onKeyDown=function(G,te){return this.onKey(this.downKeyBindingDispatcher,G,te)},fe.prototype.onKeyUp=function(G,te){return this.onKey(this.upKeyBindingDispatcher,G,te)},fe.prototype.onKey=function(G,te,Y){var de=G.dispatch(Y.toKeybinding());return de&&de(te,Y)?(Y.preventDefault(),Y.stopPropagation(),!0):!1},fe.prototype.onUp=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusPrevious(1,Y),G.reveal(G.getFocus()).then(void 0,S.e)),!0},fe.prototype.onPageUp=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusPreviousPage(Y),G.reveal(G.getFocus()).then(void 0,S.e)),!0},fe.prototype.onDown=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusNext(1,Y),G.reveal(G.getFocus()).then(void 0,S.e)),!0},fe.prototype.onPageDown=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusNextPage(Y),G.reveal(G.getFocus()).then(void 0,S.e)),!0},fe.prototype.onHome=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusFirst(Y),G.reveal(G.getFocus()).then(void 0,S.e)),!0},fe.prototype.onEnd=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusLast(Y),G.reveal(G.getFocus()).then(void 0,S.e)),!0},fe.prototype.onLeft=function(G,te){var Y={origin:"keyboard",originalEvent:te};if(G.getHighlight())G.clearHighlight(Y);else{var de=G.getFocus();G.collapse(de).then(function(Fe){return de&&!Fe?(G.focusParent(Y),G.reveal(G.getFocus())):void 0}).then(void 0,S.e)}return!0},fe.prototype.onRight=function(G,te){var Y={origin:"keyboard",originalEvent:te};if(G.getHighlight())G.clearHighlight(Y);else{var de=G.getFocus();G.expand(de).then(function(Fe){return de&&!Fe?(G.focusFirstChild(Y),G.reveal(G.getFocus())):void 0}).then(void 0,S.e)}return!0},fe.prototype.onEnter=function(G,te){var Y={origin:"keyboard",originalEvent:te};if(G.getHighlight())return!1;var de=G.getFocus();return de&&G.setSelection([de],Y),!0},fe.prototype.onSpace=function(G,te){if(G.getHighlight())return!1;var Y=G.getFocus();return Y&&G.toggleExpansion(Y),!0},fe.prototype.onEscape=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?(G.clearHighlight(Y),!0):G.getSelection().length?(G.clearSelection(Y),!0):G.getFocus()?(G.clearFocus(Y),!0):!1},fe}(),l=function(){function fe(){}return fe.prototype.getDragURI=function(G,te){return null},fe.prototype.onDragStart=function(G,te,Y){return},fe.prototype.onDragOver=function(G,te,Y,de){return null},fe.prototype.drop=function(G,te,Y,de){return},fe}(),d=function(){function fe(){}return fe.prototype.isVisible=function(G,te){return!0},fe}(),p=function(){function fe(){}return fe.prototype.getAriaLabel=function(G,te){return null},fe}(),E=function(){function fe(G,te){this.styleElement=G,this.selectorSuffix=te}return fe.prototype.style=function(G){var te=this.selectorSuffix?"."+this.selectorSuffix:"",Y=[];G.listFocusBackground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+G.listFocusBackground+"; }"),G.listFocusForeground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+G.listFocusForeground+"; }"),G.listActiveSelectionBackground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+G.listActiveSelectionBackground+"; }"),G.listActiveSelectionForeground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+G.listActiveSelectionForeground+"; }"),G.listFocusAndSelectionBackground&&Y.push(`
.monaco-tree-drag-image,
.monaco-tree`+te+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+G.listFocusAndSelectionBackground+`; }
`),G.listFocusAndSelectionForeground&&Y.push(`
.monaco-tree-drag-image,
.monaco-tree`+te+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+G.listFocusAndSelectionForeground+`; }
`),G.listInactiveSelectionBackground&&Y.push(".monaco-tree"+te+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+G.listInactiveSelectionBackground+"; }"),G.listInactiveSelectionForeground&&Y.push(".monaco-tree"+te+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+G.listInactiveSelectionForeground+"; }"),G.listHoverBackground&&Y.push(".monaco-tree"+te+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+G.listHoverBackground+"; }"),G.listHoverForeground&&Y.push(".monaco-tree"+te+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+G.listHoverForeground+"; }"),G.listDropBackground&&Y.push(`
.monaco-tree`+te+` .monaco-tree-wrapper.drop-target,
.monaco-tree`+te+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+G.listDropBackground+` !important; color: inherit !important; }
`),G.listFocusOutline&&Y.push(`
.monaco-tree-drag-image { border: 1px solid `+G.listFocusOutline+`; background: #000; }
.monaco-tree`+te+` .monaco-tree-rows > .monaco-tree-row { border: 1px solid transparent; }
.monaco-tree`+te+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { border: 1px dotted "+G.listFocusOutline+`; }
.monaco-tree`+te+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { border: 1px solid "+G.listFocusOutline+`; }
.monaco-tree`+te+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { border: 1px solid "+G.listFocusOutline+`; }
.monaco-tree`+te+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { border: 1px dashed "+G.listFocusOutline+`; }
.monaco-tree`+te+` .monaco-tree-wrapper.drop-target,
.monaco-tree`+te+" .monaco-tree-rows > .monaco-tree-row.drop-target { border: 1px dashed "+G.listFocusOutline+`; }
`);var de=Y.join(`
`);de!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=de)},fe}(),_=e("FWmy"),x=e("pmY6"),F=e("MI8n"),R=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,Fe){de.__proto__=Fe}||function(de,Fe){for(var lt in Fe)Fe.hasOwnProperty(lt)&&(de[lt]=Fe[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),$=function(){function fe(G){this._onDispose=new F.a,this.onDispose=this._onDispose.event,this._item=G}return Object.defineProperty(fe.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),fe.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},fe}(),ie=function(){function fe(){this.locks=Object.create({})}return fe.prototype.isLocked=function(G){return!!this.locks[G.id]},fe.prototype.run=function(G,te){var Y=this,de=this.getLock(G);if(de)return new Promise(function(lt,Tt){F.b.once(de.onDispose)(function(){return Y.run(G,te).then(lt,Tt)})});var Fe;return new Promise(function(lt,Tt){if(G.isDisposed())return Tt(new Error("Item is disposed."));var Jt=Y.locks[G.id]=new $(G);return Fe=te().then(function(en){return delete Y.locks[G.id],Jt.dispose(),en}).then(lt,Tt),Fe})},fe.prototype.getLock=function(G){var te;for(te in this.locks){var Y=this.locks[te];if(G.intersects(Y.item))return Y}return null},fe}(),W=function(){function fe(){this._isDisposed=!1,this._onDidRevealItem=new F.d,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new F.d,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new F.d,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new F.d,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new F.d,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new F.d,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new F.d,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new F.d,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new F.d,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new F.d,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new F.d,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return fe.prototype.register=function(G){_.a(!this.isRegistered(G.id),"item already registered: "+G.id);var te=Object(x.e)(this._onDidRevealItem.add(G.onDidReveal),this._onExpandItem.add(G.onExpand),this._onDidExpandItem.add(G.onDidExpand),this._onCollapseItem.add(G.onCollapse),this._onDidCollapseItem.add(G.onDidCollapse),this._onDidAddTraitItem.add(G.onDidAddTrait),this._onDidRemoveTraitItem.add(G.onDidRemoveTrait),this._onDidRefreshItem.add(G.onDidRefresh),this._onRefreshItemChildren.add(G.onRefreshChildren),this._onDidRefreshItemChildren.add(G.onDidRefreshChildren),this._onDidDisposeItem.add(G.onDidDispose));this.items[G.id]={item:G,disposable:te}},fe.prototype.deregister=function(G){_.a(this.isRegistered(G.id),"item not registered: "+G.id),this.items[G.id].disposable.dispose(),delete this.items[G.id]},fe.prototype.isRegistered=function(G){return this.items.hasOwnProperty(G)},fe.prototype.getItem=function(G){var te=this.items[G];return te?te.item:null},fe.prototype.dispose=function(){this.items={},this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},fe.prototype.isDisposed=function(){return this._isDisposed},fe}(),B=function(){function fe(G,te,Y,de,Fe){this._onDidCreate=new F.a,this._onDidReveal=new F.a,this.onDidReveal=this._onDidReveal.event,this._onExpand=new F.a,this.onExpand=this._onExpand.event,this._onDidExpand=new F.a,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new F.a,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new F.a,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new F.a,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new F.a,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new F.a,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new F.a,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new F.a,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new F.a,this.onDidDispose=this._onDidDispose.event,this.registry=te,this.context=Y,this.lock=de,this.element=Fe,this.id=G,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=!!(this.context.dataSource.shouldAutoexpand&&this.context.dataSource.shouldAutoexpand(this.context.tree,Fe)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return fe.prototype.getElement=function(){return this.element},fe.prototype.hasChildren=function(){return this.doesHaveChildren},fe.prototype.getDepth=function(){return this.depth},fe.prototype.isVisible=function(){return this.visible},fe.prototype.setVisible=function(G){this.visible=G},fe.prototype.isExpanded=function(){return this.expanded},fe.prototype._setExpanded=function(G){this.expanded=G},fe.prototype.reveal=function(G){G===void 0&&(G=null);var te={item:this,relativeTop:G};this._onDidReveal.fire(te)},fe.prototype.expand=function(){var G=this;if(this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this))return Promise.resolve(!1);var te=this.lock.run(this,function(){if(G.isExpanded()||!G.doesHaveChildren)return Promise.resolve(!1);var Y={item:G},de;return G._onExpand.fire(Y),G.needsChildrenRefresh?de=G.refreshChildren(!1,!0,!0):de=Promise.resolve(null),de.then(function(){return G._setExpanded(!0),G._onDidExpand.fire(Y),!0})});return te.then(function(Y){return G.isDisposed()?!1:G.context.options.autoExpandSingleChildren&&Y&&G.firstChild!==null&&G.firstChild===G.lastChild&&G.firstChild.isVisible()?G.firstChild.expand().then(function(){return!0}):Y})},fe.prototype.collapse=function(G){var te=this;if(G===void 0&&(G=!1),G){var Y=Promise.resolve(null);return this.forEachChild(function(de){Y=Y.then(function(){return de.collapse(!0)})}),Y.then(function(){return te.collapse(!1)})}else return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){var de={item:te};return te._onCollapse.fire(de),te._setExpanded(!1),te._onDidCollapse.fire(de),Promise.resolve(!0)})},fe.prototype.addTrait=function(G){var te={item:this,trait:G};this.traits[G]=!0,this._onDidAddTrait.fire(te)},fe.prototype.removeTrait=function(G){var te={item:this,trait:G};delete this.traits[G],this._onDidRemoveTrait.fire(te)},fe.prototype.hasTrait=function(G){return this.traits[G]||!1},fe.prototype.getAllTraits=function(){var G=[],te;for(te in this.traits)this.traits.hasOwnProperty(te)&&this.traits[te]&&G.push(te);return G},fe.prototype.getHeight=function(){return this.height},fe.prototype.refreshChildren=function(G,te,Y){var de=this;if(te===void 0&&(te=!1),Y===void 0&&(Y=!1),!Y&&!this.isExpanded()){var Fe=function Tt(Jt){Jt.needsChildrenRefresh=!0,Jt.forEachChild(Tt)};return Fe(this),Promise.resolve(this)}this.needsChildrenRefresh=!1;var lt=function(){var Jt={item:de,isNested:te};de._onRefreshChildren.fire(Jt);var en;de.doesHaveChildren?en=de.context.dataSource.getChildren(de.context.tree,de.element):en=Promise.resolve([]);var gn=en.then(function(un){if(de.isDisposed()||de.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(un))return Promise.reject(new Error("Please return an array of children."));un=un?un.slice(0):[],un=de.sort(un);for(var En={};de.firstChild!==null;)En[de.firstChild.id]=de.firstChild,de.removeChild(de.firstChild);for(var Mn=0,xn=un.length;Mn<xn;Mn++){var Zn=un[Mn],bn=de.context.dataSource.getId(de.context.tree,Zn),Wn=En[bn]||new fe(bn,de.registry,de.context,de.lock,Zn);Wn.element=Zn,G&&(Wn.needsChildrenRefresh=G),delete En[bn],de.addChild(Wn)}for(var Gn in En)En.hasOwnProperty(Gn)&&En[Gn].dispose();return G?Promise.all(de.mapEachChild(function(Bn){return Bn.doRefresh(G,!0)})):Promise.all(de.mapEachChild(function(Bn){return Bn.isExpanded()&&Bn.needsChildrenRefresh?Bn.doRefresh(G,!0):(Bn.updateVisibility(),Promise.resolve(null))}))});return gn.then(void 0,S.e).then(function(){return de._onDidRefreshChildren.fire(Jt)})};return te?lt():this.lock.run(this,lt)},fe.prototype.doRefresh=function(G,te){return te===void 0&&(te=!1),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.height=this._getHeight(),this.updateVisibility(),this._onDidRefresh.fire(this),this.refreshChildren(G,te)},fe.prototype.updateVisibility=function(){this.setVisible(this._isVisible())},fe.prototype.refresh=function(G){return this.doRefresh(G)},fe.prototype.getNavigator=function(){return new be(this)},fe.prototype.intersects=function(G){return this.isAncestorOf(G)||G.isAncestorOf(this)},fe.prototype.isAncestorOf=function(G){for(var te=G;te;){if(te.id===this.id)return!0;te=te.parent}return!1},fe.prototype.addChild=function(G,te){te===void 0&&(te=this.lastChild);var Y=this.firstChild===null,de=te===null,Fe=te===this.lastChild;if(Y)this.firstChild=this.lastChild=G,G.next=G.previous=null;else if(de){if(!this.firstChild)throw new Error("Invalid tree state");this.firstChild.previous=G,G.next=this.firstChild,G.previous=null,this.firstChild=G}else if(Fe){if(!this.lastChild)throw new Error("Invalid tree state");this.lastChild.next=G,G.next=null,G.previous=this.lastChild,this.lastChild=G}else{if(G.previous=te,!te)throw new Error("Invalid tree state");if(G.next=te.next,!te.next)throw new Error("Invalid tree state");te.next.previous=G,te.next=G}G.parent=this,G.depth=this.depth+1},fe.prototype.removeChild=function(G){var te=this.firstChild===G,Y=this.lastChild===G;if(te&&Y)this.firstChild=this.lastChild=null;else if(te){if(!G.next)throw new Error("Invalid tree state");G.next.previous=null,this.firstChild=G.next}else if(Y){if(!G.previous)throw new Error("Invalid tree state");G.previous.next=null,this.lastChild=G.previous}else{if(!G.next)throw new Error("Invalid tree state");if(G.next.previous=G.previous,!G.previous)throw new Error("Invalid tree state");G.previous.next=G.next}G.parent=null,G.depth=NaN},fe.prototype.forEachChild=function(G){for(var te=this.firstChild,Y;te;)Y=te.next,G(te),te=Y},fe.prototype.mapEachChild=function(G){var te=[];return this.forEachChild(function(Y){te.push(G(Y))}),te},fe.prototype.sort=function(G){var te=this,Y=this.context.sorter;return Y?G.sort(function(de,Fe){return Y.compare(te.context.tree,de,Fe)}):G},fe.prototype._getHeight=function(){return this.context.renderer?this.context.renderer.getHeight(this.context.tree,this.element):0},fe.prototype._isVisible=function(){return this.context.filter?this.context.filter.isVisible(this.context.tree,this.element):!1},fe.prototype.isDisposed=function(){return this._isDisposed},fe.prototype.dispose=function(){this.forEachChild(function(G){return G.dispose()}),this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this._onDidDispose.fire(this),this.registry.deregister(this),this._onDidCreate.dispose(),this._onDidReveal.dispose(),this._onExpand.dispose(),this._onDidExpand.dispose(),this._onCollapse.dispose(),this._onDidCollapse.dispose(),this._onDidAddTrait.dispose(),this._onDidRemoveTrait.dispose(),this._onDidRefresh.dispose(),this._onRefreshChildren.dispose(),this._onDidRefreshChildren.dispose(),this._onDidDispose.dispose(),this._isDisposed=!0},fe}(),le=function(fe){R(G,fe);function G(te,Y,de,Fe,lt){return fe.call(this,te,Y,de,Fe,lt)||this}return G.prototype.isVisible=function(){return!1},G.prototype.setVisible=function(te){},G.prototype.isExpanded=function(){return!0},G.prototype._setExpanded=function(te){},G.prototype._getHeight=function(){return 0},G.prototype._isVisible=function(){return!1},G}(B),be=function(){function fe(G,te){te===void 0&&(te=!0),this.item=G,this.start=te?G:null}return fe.lastDescendantOf=function(G){return G?G instanceof le?fe.lastDescendantOf(G.lastChild):G.isVisible()?!G.isExpanded()||G.lastChild===null?G:fe.lastDescendantOf(G.lastChild):fe.lastDescendantOf(G.previous):null},fe.prototype.current=function(){return this.item||null},fe.prototype.next=function(){if(this.item)do if((this.item instanceof le||this.item.isVisible()&&this.item.isExpanded())&&this.item.firstChild)this.item=this.item.firstChild;else if(this.item===this.start)this.item=null;else{for(;this.item&&this.item!==this.start&&!this.item.next;)this.item=this.item.parent;this.item===this.start&&(this.item=null),this.item=this.item?this.item.next:null}while(this.item&&!this.item.isVisible());return this.item||null},fe.prototype.previous=function(){if(this.item)do{var G=fe.lastDescendantOf(this.item.previous);G?this.item=G:this.item.parent&&this.item.parent!==this.start&&this.item.parent.isVisible()?this.item=this.item.parent:this.item=null}while(this.item&&!this.item.isVisible());return this.item||null},fe.prototype.parent=function(){if(this.item){var G=this.item.parent;G&&G!==this.start&&G.isVisible()?this.item=G:this.item=null}return this.item||null},fe.prototype.first=function(){return this.item=this.start,this.next(),this.item||null},fe.prototype.last=function(){return fe.lastDescendantOf(this.start)},fe}(),De=function(){function fe(G){this.registry=new W,this.registryDisposable=x.a.None,this._onSetInput=new F.a,this.onSetInput=this._onSetInput.event,this._onDidSetInput=new F.a,this.onDidSetInput=this._onDidSetInput.event,this._onRefresh=new F.a,this.onRefresh=this._onRefresh.event,this._onDidRefresh=new F.a,this.onDidRefresh=this._onDidRefresh.event,this._onDidHighlight=new F.a,this.onDidHighlight=this._onDidHighlight.event,this._onDidSelect=new F.a,this.onDidSelect=this._onDidSelect.event,this._onDidFocus=new F.a,this.onDidFocus=this._onDidFocus.event,this._onDidRevealItem=new F.f,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new F.f,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new F.f,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new F.f,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new F.f,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new F.f,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new F.f,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new F.f,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new F.f,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new F.f,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new F.f,this.context=G,this.input=null,this.traitsToItems={}}return fe.prototype.setInput=function(G){var te=this,Y={item:this.input};this._onSetInput.fire(Y),this.setSelection([]),this.setFocus(),this.setHighlight(),this.lock=new ie,this.input&&this.input.dispose(),this.registry&&(this.registry.dispose(),this.registryDisposable.dispose()),this.registry=new W,this._onDidRevealItem.input=this.registry.onDidRevealItem,this._onExpandItem.input=this.registry.onExpandItem,this._onDidExpandItem.input=this.registry.onDidExpandItem,this._onCollapseItem.input=this.registry.onCollapseItem,this._onDidCollapseItem.input=this.registry.onDidCollapseItem,this._onDidAddTraitItem.input=this.registry.onDidAddTraitItem,this._onDidRemoveTraitItem.input=this.registry.onDidRemoveTraitItem,this._onDidRefreshItem.input=this.registry.onDidRefreshItem,this._onRefreshItemChildren.input=this.registry.onRefreshItemChildren,this._onDidRefreshItemChildren.input=this.registry.onDidRefreshItemChildren,this._onDidDisposeItem.input=this.registry.onDidDisposeItem,this.registryDisposable=this.registry.onDidDisposeItem(function(Fe){return Fe.getAllTraits().forEach(function(lt){return delete te.traitsToItems[lt][Fe.id]})});var de=this.context.dataSource.getId(this.context.tree,G);return this.input=new le(de,this.registry,this.context,this.lock,G),Y={item:this.input},this._onDidSetInput.fire(Y),this.refresh(this.input)},fe.prototype.getInput=function(){return this.input?this.input.getElement():null},fe.prototype.refresh=function(G,te){var Y=this;G===void 0&&(G=null),te===void 0&&(te=!0);var de=this.getItem(G);if(!de)return Promise.resolve(null);var Fe={item:de,recursive:te};return this._onRefresh.fire(Fe),de.refresh(te).then(function(){Y._onDidRefresh.fire(Fe)})},fe.prototype.expand=function(G){var te=this.getItem(G);return te?te.expand():Promise.resolve(!1)},fe.prototype.collapse=function(G,te){te===void 0&&(te=!1);var Y=this.getItem(G);return Y?Y.collapse(te):Promise.resolve(!1)},fe.prototype.toggleExpansion=function(G,te){return te===void 0&&(te=!1),this.isExpanded(G)?this.collapse(G,te):this.expand(G)},fe.prototype.isExpanded=function(G){var te=this.getItem(G);return te?te.isExpanded():!1},fe.prototype.reveal=function(G,te){var Y=this;return te===void 0&&(te=null),this.resolveUnknownParentChain(G).then(function(de){var Fe=Promise.resolve(null);return de.forEach(function(lt){Fe=Fe.then(function(){return Y.expand(lt)})}),Fe}).then(function(){var de=Y.getItem(G);if(de)return de.reveal(te)})},fe.prototype.resolveUnknownParentChain=function(G){var te=this;return this.context.dataSource.getParent(this.context.tree,G).then(function(Y){return Y?te.resolveUnknownParentChain(Y).then(function(de){return de.push(Y),de}):Promise.resolve([])})},fe.prototype.setHighlight=function(G,te){this.setTraits("highlighted",G?[G]:[]);var Y={highlight:this.getHighlight(),payload:te};this._onDidHighlight.fire(Y)},fe.prototype.getHighlight=function(G){G===void 0&&(G=!1);var te=this.getElementsWithTrait("highlighted",G);return te.length===0?null:te[0]},fe.prototype.setSelection=function(G,te){this.setTraits("selected",G);var Y={selection:this.getSelection(),payload:te};this._onDidSelect.fire(Y)},fe.prototype.getSelection=function(G){return G===void 0&&(G=!1),this.getElementsWithTrait("selected",G)},fe.prototype.setFocus=function(G,te){this.setTraits("focused",G?[G]:[]);var Y={focus:this.getFocus(),payload:te};this._onDidFocus.fire(Y)},fe.prototype.getFocus=function(G){G===void 0&&(G=!1);var te=this.getElementsWithTrait("focused",G);return te.length===0?null:te[0]},fe.prototype.focusNext=function(G,te){G===void 0&&(G=1);for(var Y=this.getFocus()||this.input,de,Fe=this.getNavigator(Y,!1),lt=0;lt<G&&!(de=Fe.next(),!de);lt++)Y=de;this.setFocus(Y,te)},fe.prototype.focusPrevious=function(G,te){G===void 0&&(G=1);for(var Y=this.getFocus()||this.input,de,Fe=this.getNavigator(Y,!1),lt=0;lt<G&&!(de=Fe.previous(),!de);lt++)Y=de;this.setFocus(Y,te)},fe.prototype.focusParent=function(G){var te=this.getFocus()||this.input,Y=this.getNavigator(te,!1),de=Y.parent();de&&this.setFocus(de,G)},fe.prototype.focusFirstChild=function(G){var te=this.getItem(this.getFocus()||this.input),Y=this.getNavigator(te,!1),de=Y.next(),Fe=Y.parent();Fe===te&&this.setFocus(de,G)},fe.prototype.focusFirst=function(G,te){this.focusNth(0,G,te)},fe.prototype.focusNth=function(G,te,Y){for(var de=this.getParent(Y),Fe=this.getNavigator(de),lt=Fe.first(),Tt=0;Tt<G;Tt++)lt=Fe.next();lt&&this.setFocus(lt,te)},fe.prototype.focusLast=function(G,te){var Y=this.getParent(te),de;if(te&&Y)de=Y.lastChild;else{var Fe=this.getNavigator(Y);de=Fe.last()}de&&this.setFocus(de,G)},fe.prototype.getParent=function(G){if(G){var te=this.getItem(G);if(te&&te.parent)return te.parent}return this.getItem(this.input)},fe.prototype.getNavigator=function(G,te){return G===void 0&&(G=null),te===void 0&&(te=!0),new be(this.getItem(G),te)},fe.prototype.getItem=function(G){return G===void 0&&(G=null),G===null?this.input:G instanceof B?G:typeof G=="string"?this.registry.getItem(G):this.registry.getItem(this.context.dataSource.getId(this.context.tree,G))},fe.prototype.removeTraits=function(G,te){var Y=this.traitsToItems[G]||{},de,Fe;if(te.length===0){for(Fe in Y)Y.hasOwnProperty(Fe)&&(de=Y[Fe],de.removeTrait(G));delete this.traitsToItems[G]}else for(var lt=0,Tt=te.length;lt<Tt;lt++)de=this.getItem(te[lt]),de&&(de.removeTrait(G),delete Y[de.id])},fe.prototype.setTraits=function(G,te){if(te.length===0)this.removeTraits(G,te);else{for(var Y={},de=void 0,Fe=0,lt=te.length;Fe<lt;Fe++)de=this.getItem(te[Fe]),de&&(Y[de.id]=de);var Tt=this.traitsToItems[G]||{},Jt=[],en=void 0;for(en in Tt)Tt.hasOwnProperty(en)&&(Y.hasOwnProperty(en)?delete Y[en]:Jt.push(Tt[en]));for(var Fe=0,lt=Jt.length;Fe<lt;Fe++)de=Jt[Fe],de.removeTrait(G),delete Tt[de.id];for(en in Y)Y.hasOwnProperty(en)&&(de=Y[en],de.addTrait(G),Tt[en]=de);this.traitsToItems[G]=Tt}},fe.prototype.getElementsWithTrait=function(G,te){var Y=[],de=this.traitsToItems[G]||{},Fe;for(Fe in de)de.hasOwnProperty(Fe)&&(de[Fe].isVisible()||te)&&Y.push(de[Fe].getElement());return Y},fe.prototype.dispose=function(){this.registry.dispose(),this._onSetInput.dispose(),this._onDidSetInput.dispose(),this._onRefresh.dispose(),this._onDidRefresh.dispose(),this._onDidHighlight.dispose(),this._onDidSelect.dispose(),this._onDidFocus.dispose(),this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._onDidDisposeItem.dispose()},fe}(),Te=e("D3Dy"),ke=e("Gw4z"),He=e("pg8w"),je=e("N0LK"),oe=e("XSiN"),ee=e("uDWl"),ae=function(){function fe(G){this.elements=G}return fe.prototype.update=function(G){},fe.prototype.getData=function(){return this.elements},fe}(),q=function(){function fe(G){this.elements=G}return fe.prototype.update=function(G){},fe.prototype.getData=function(){return this.elements},fe}(),ce=function(){function fe(){this.types=[],this.files=[]}return fe.prototype.update=function(G){G.types&&(this.types=[],Array.prototype.push.apply(this.types,G.types)),G.files&&(this.files=[],Array.prototype.push.apply(this.files,G.files),this.files=this.files.filter(function(te){return te.size||te.type}))},fe.prototype.getData=function(){return{types:this.types,files:this.files}},fe}(),X=e("JYp7"),he=e("GJhM"),Pe=function(){function fe(){this.heightMap=[],this.indexes={}}return fe.prototype.getContentHeight=function(){var G=this.heightMap[this.heightMap.length-1];return G?G.top+G.height:0},fe.prototype.onInsertItems=function(G,te){te===void 0&&(te=null);var Y=null,de,Fe,lt,Tt,Jt=0;if(te===null)Fe=0,Tt=0;else{if(Fe=this.indexes[te]+1,de=this.heightMap[Fe-1],!de){console.error("view item doesnt exist");return}Tt=de.top+de.height}for(var en=this.heightMap.splice.bind(this.heightMap,Fe,0),gn=[];Y=G.next();)de=this.createViewItem(Y),de.top=Tt+Jt,this.indexes[Y.id]=Fe++,gn.push(de),Jt+=de.height;for(en.apply(this.heightMap,gn),lt=Fe;lt<this.heightMap.length;lt++)de=this.heightMap[lt],de.top+=Jt,this.indexes[de.model.id]=lt;for(lt=gn.length-1;lt>=0;lt--)this.onInsertItem(gn[lt]);for(lt=this.heightMap.length-1;lt>=Fe;lt--)this.onRefreshItem(this.heightMap[lt]);return Jt},fe.prototype.onInsertItem=function(G){},fe.prototype.onRemoveItems=function(G){for(var te=null,Y,de=null,Fe=0,lt=0;te=G.next();){if(Fe=this.indexes[te],Y=this.heightMap[Fe],!Y){console.error("view item doesnt exist");return}lt-=Y.height,delete this.indexes[te],this.onRemoveItem(Y),de===null&&(de=Fe)}if(lt===0||de===null)return;for(this.heightMap.splice(de,Fe-de+1),Fe=de;Fe<this.heightMap.length;Fe++)Y=this.heightMap[Fe],Y.top+=lt,this.indexes[Y.model.id]=Fe,this.onRefreshItem(Y)},fe.prototype.onRemoveItem=function(G){},fe.prototype.onRefreshItemSet=function(G){var te=this,Y=G.sort(function(de,Fe){return te.indexes[de.id]-te.indexes[Fe.id]});this.onRefreshItems(new X.a(Y))},fe.prototype.onRefreshItems=function(G){for(var te=null,Y,de,Fe,lt=null,Tt=0;te=G.next();){for(Fe=this.indexes[te.id];Tt!==0&&lt!==null&&lt<Fe;lt++)Y=this.heightMap[lt],Y.top+=Tt,this.onRefreshItem(Y);Y=this.heightMap[Fe],de=te.getHeight(),Y.top+=Tt,Tt+=de-Y.height,Y.height=de,this.onRefreshItem(Y,!0),lt=Fe+1}if(Tt!==0&&lt!==null)for(;lt<this.heightMap.length;lt++)Y=this.heightMap[lt],Y.top+=Tt,this.onRefreshItem(Y)},fe.prototype.onRefreshItem=function(G,te){te===void 0&&(te=!1)},fe.prototype.indexAt=function(G){for(var te=0,Y=this.heightMap.length,de,Fe;te<Y;)if(de=Math.floor((te+Y)/2),Fe=this.heightMap[de],G<Fe.top)Y=de;else if(G>=Fe.top+Fe.height){if(te===de)break;te=de}else return de;return this.heightMap.length},fe.prototype.indexAfter=function(G){return Math.min(this.indexAt(G)+1,this.heightMap.length)},fe.prototype.itemAtIndex=function(G){return this.heightMap[G]},fe.prototype.itemAfter=function(G){return this.heightMap[this.indexes[G.model.id]+1]||null},fe.prototype.createViewItem=function(G){throw new Error("not implemented")},fe.prototype.dispose=function(){this.heightMap=[],this.indexes={}},fe}(),Xe=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,Fe){de.__proto__=Fe}||function(de,Fe){for(var lt in Fe)Fe.hasOwnProperty(lt)&&(de[lt]=Fe[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),pe=function(){function fe(G,te,Y){this._posx=G,this._posy=te,this._target=Y}return fe.prototype.preventDefault=function(){},fe.prototype.stopPropagation=function(){},Object.defineProperty(fe.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),fe}(),me=function(fe){Xe(G,fe);function G(te){var Y=fe.call(this,te.posx,te.posy,te.target)||this;return Y.originalEvent=te,Y}return G.prototype.preventDefault=function(){this.originalEvent.preventDefault()},G.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},G}(pe),Se=function(fe){Xe(G,fe);function G(te,Y,de){var Fe=fe.call(this,te,Y,de.target)||this;return Fe.originalEvent=de,Fe}return G.prototype.preventDefault=function(){this.originalEvent.preventDefault()},G.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},G}(pe),Re=e("ZQ78"),Ee=e("X+cX"),ve=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,Fe){de.__proto__=Fe}||function(de,Fe){for(var lt in Fe)Fe.hasOwnProperty(lt)&&(de[lt]=Fe[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}();function Q(fe){try{fe.parentElement.removeChild(fe)}catch(G){}}var b=function(){function fe(G){this.context=G,this._cache={"":[]}}return fe.prototype.alloc=function(G){var te=this.cache(G).pop();if(!te){var Y=document.createElement("div");Y.className="content";var de=document.createElement("div");de.appendChild(Y);var Fe=null;try{Fe=this.context.renderer.renderTemplate(this.context.tree,G,Y)}catch(lt){console.error("Tree usage error: exception while rendering template"),console.error(lt)}te={element:de,templateId:G,templateData:Fe}}return te},fe.prototype.release=function(G,te){Q(te.element),this.cache(G).push(te)},fe.prototype.cache=function(G){return this._cache[G]||(this._cache[G]=[])},fe.prototype.garbageCollect=function(){var G=this;this._cache&&Object.keys(this._cache).forEach(function(te){G._cache[te].forEach(function(Y){G.context.renderer.disposeTemplate(G.context.tree,te,Y.templateData),Y.element=null,Y.templateData=null}),delete G._cache[te]})},fe.prototype.dispose=function(){this.garbageCollect(),this._cache=null},fe}(),k=function(){function fe(G,te){var Y=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=x.a.None,this._draggable=!1,this.context=G,this.model=te,this.id=this.model.id,this.row=null,this.top=0,this.height=te.getHeight(),this._styles={},te.getAllTraits().forEach(function(de){return Y._styles[de]=!0}),te.isExpanded()&&this.addClass("expanded")}return Object.defineProperty(fe.prototype,"expanded",{set:function(te){te?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"loading",{set:function(te){te?this.addClass("codicon-loading"):this.removeClass("codicon-loading")},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"draggable",{get:function(){return this._draggable},set:function(te){this._draggable=te,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"dropTarget",{set:function(te){te?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),fe.prototype.addClass=function(G){this._styles[G]=!0,this.render(!0)},fe.prototype.removeClass=function(G){delete this._styles[G],this.render(!0)},fe.prototype.render=function(G){var te=this;if(G===void 0&&(G=!1),!this.model||!this.element)return;var Y=["monaco-tree-row"];Y.push.apply(Y,Object.keys(this._styles)),this.model.hasChildren()&&Y.push("has-children"),this.element.className=Y.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var de=this.context.accessibilityProvider,Fe=de.getAriaLabel(this.context.tree,this.model.getElement());if(Fe&&this.element.setAttribute("aria-label",Fe),de.getPosInSet&&de.getSetSize&&(this.element.setAttribute("aria-setsize",de.getSetSize()),this.element.setAttribute("aria-posinset",de.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var lt=je.L(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",lt)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles.expanded)):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var Tt=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(Tt!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),Tt?(this.uri=Tt,this.draggable=!0,this.unbindDragStart=N.j(this.element,"dragstart",function(gn){te.onDragStart(gn)})):this.uri=null),!G&&this.element){var Jt=0;if(this.context.horizontalScrolling){var en=window.getComputedStyle(this.element);Jt=parseFloat(en.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width=Te.h?"-moz-fit-content":"fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(gn){console.error("Tree usage error: exception while rendering element"),console.error(gn)}this.context.horizontalScrolling&&(this.width=N.B(this.element)+Jt,this.element.style.width="")}},fe.prototype.insertInDOM=function(G,te){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[Ce.BINDING]=this),this.element.parentElement)return;if(te===null)G.appendChild(this.element);else try{G.insertBefore(this.element,te)}catch(Y){console.warn("Failed to locate previous tree element"),G.appendChild(this.element)}this.render()},fe.prototype.removeFromDOM=function(){if(!this.row)return;this.unbindDragStart.dispose(),this.uri=null,this.element[Ce.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null},fe.prototype.dispose=function(){this.row=null},fe}(),se=function(fe){ve(G,fe);function G(te,Y,de){var Fe=fe.call(this,te,Y)||this;return Fe.row={element:de,templateData:null,templateId:null},Fe}return G.prototype.render=function(){if(!this.model||!this.element)return;var te=["monaco-tree-wrapper"];te.push.apply(te,Object.keys(this._styles)),this.model.hasChildren()&&te.push("has-children"),this.element.className=te.join(" ")},G.prototype.insertInDOM=function(te,Y){},G.prototype.removeFromDOM=function(){},G}(k);function ne(fe,G){return!fe&&!G?!0:!fe||!G||(fe.accept!==G.accept||fe.bubble!==G.bubble)?!1:!(fe.effect!==G.effect)}var Ce=function(fe){ve(G,fe);function G(te,Y){var de=fe.call(this)||this;de.model=null,de.lastPointerType="",de.lastClickTimeStamp=0,de.contentWidthUpdateDelayer=new Ee.a(50),de.isRefreshing=!1,de.refreshingPreviousChildrenIds={},de.currentDragAndDropData=null,de.currentDropTarget=null,de.currentDropTargets=null,de.currentDropDisposable=x.a.None,de.gestureDisposable=x.a.None,de.dragAndDropScrollInterval=null,de.dragAndDropScrollTimeout=null,de.dragAndDropMouseY=null,de.highlightedItemWasDraggable=!1,de.onHiddenScrollTop=null,de._onDOMFocus=new F.a,de.onDOMFocus=de._onDOMFocus.event,de._onDOMBlur=new F.a,de._onDidScroll=new F.a,G.counter++,de.instance=G.counter;var Fe=typeof te.options.horizontalScrollMode=="undefined"?2:te.options.horizontalScrollMode;de.horizontalScrolling=Fe!==2,de.context={dataSource:te.dataSource,renderer:te.renderer,controller:te.controller,dnd:te.dnd,filter:te.filter,sorter:te.sorter,tree:te.tree,accessibilityProvider:te.accessibilityProvider,options:te.options,cache:new b(te),horizontalScrolling:de.horizontalScrolling},de.modelListeners=[],de.viewListeners=[],de.items={},de.domNode=document.createElement("div"),de.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+de.instance,de.domNode.tabIndex=te.options.preventRootFocus?-1:0,de.styleElement=N.w(de.domNode),de.treeStyler=te.styler||new E(de.styleElement,"monaco-tree-instance-"+de.instance),de.domNode.setAttribute("role","tree"),de.context.options.ariaLabel&&de.domNode.setAttribute("aria-label",de.context.options.ariaLabel),de.context.options.alwaysFocused&&N.f(de.domNode,"focused"),de.context.options.paddingOnRow||N.f(de.domNode,"no-row-padding"),de.wrapper=document.createElement("div"),de.wrapper.className="monaco-tree-wrapper",de.scrollableElement=new he.b(de.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:Fe,vertical:typeof te.options.verticalScrollMode!="undefined"?te.options.verticalScrollMode:1,useShadows:te.options.useShadows}),de.scrollableElement.onScroll(function(Tt){de.render(Tt.scrollTop,Tt.height,Tt.scrollLeft,Tt.width,Tt.scrollWidth),de._onDidScroll.fire()}),Te.i?(de.wrapper.style.msTouchAction="none",de.wrapper.style.msContentZooming="none"):de.gestureDisposable=He.b.addTarget(de.wrapper),de.rowsContainer=document.createElement("div"),de.rowsContainer.className="monaco-tree-rows",te.options.showTwistie&&(de.rowsContainer.className+=" show-twisties");var lt=N.Z(de.domNode);return de.viewListeners.push(lt.onDidFocus(function(){return de.onFocus()})),de.viewListeners.push(lt.onDidBlur(function(){return de.onBlur()})),de.viewListeners.push(lt),de.viewListeners.push(N.j(de.domNode,"keydown",function(Tt){return de.onKeyDown(Tt)})),de.viewListeners.push(N.j(de.domNode,"keyup",function(Tt){return de.onKeyUp(Tt)})),de.viewListeners.push(N.j(de.domNode,"mousedown",function(Tt){return de.onMouseDown(Tt)})),de.viewListeners.push(N.j(de.domNode,"mouseup",function(Tt){return de.onMouseUp(Tt)})),de.viewListeners.push(N.j(de.wrapper,"auxclick",function(Tt){Tt&&Tt.button===1&&de.onMouseMiddleClick(Tt)})),de.viewListeners.push(N.j(de.wrapper,"click",function(Tt){return de.onClick(Tt)})),de.viewListeners.push(N.j(de.domNode,"contextmenu",function(Tt){return de.onContextMenu(Tt)})),de.viewListeners.push(N.j(de.wrapper,He.a.Tap,function(Tt){return de.onTap(Tt)})),de.viewListeners.push(N.j(de.wrapper,He.a.Change,function(Tt){return de.onTouchChange(Tt)})),Te.i&&(de.viewListeners.push(N.j(de.wrapper,"MSPointerDown",function(Tt){return de.onMsPointerDown(Tt)})),de.viewListeners.push(N.j(de.wrapper,"MSGestureTap",function(Tt){return de.onMsGestureTap(Tt)})),de.viewListeners.push(N.m(de.wrapper,"MSGestureChange",function(Tt){return de.onThrottledMsGestureChange(Tt)},function(Tt,Jt){Jt.stopPropagation(),Jt.preventDefault();var en={translationY:Jt.translationY,translationX:Jt.translationX};return Tt&&(en.translationY+=Tt.translationY,en.translationX+=Tt.translationX),en}))),de.viewListeners.push(N.j(window,"dragover",function(Tt){return de.onDragOver(Tt)})),de.viewListeners.push(N.j(de.wrapper,"drop",function(Tt){return de.onDrop(Tt)})),de.viewListeners.push(N.j(window,"dragend",function(Tt){return de.onDragEnd(Tt)})),de.viewListeners.push(N.j(window,"dragleave",function(Tt){return de.onDragOver(Tt)})),de.wrapper.appendChild(de.rowsContainer),de.domNode.appendChild(de.scrollableElement.getDomNode()),Y.appendChild(de.domNode),de.lastRenderTop=0,de.lastRenderHeight=0,de.didJustPressContextMenuKey=!1,de.currentDropTarget=null,de.currentDropTargets=[],de.shouldInvalidateDropReaction=!1,de.dragAndDropScrollInterval=null,de.dragAndDropScrollTimeout=null,de.onRowsChanged(),de.layout(),de.setupMSGesture(),de.applyStyles(te.options),de}return G.prototype.applyStyles=function(te){this.treeStyler.style(te)},G.prototype.createViewItem=function(te){return new k(this.context,te)},G.prototype.getHTMLElement=function(){return this.domNode},G.prototype.focus=function(){this.domNode.focus()},G.prototype.isFocused=function(){return document.activeElement===this.domNode},G.prototype.blur=function(){this.domNode.blur()},G.prototype.setupMSGesture=function(){var te=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout(function(){return te.msGesture.target=te.wrapper},100))},G.prototype.isTreeVisible=function(){return this.onHiddenScrollTop===null},G.prototype.layout=function(te,Y){if(!this.isTreeVisible())return;this.viewHeight=te||N.A(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=Y||N.B(this.wrapper))},G.prototype.render=function(te,Y,de,Fe,lt){var Tt,Jt,en=te,gn=te+Y,un=this.lastRenderTop+this.lastRenderHeight;for(Tt=this.indexAfter(gn)-1,Jt=this.indexAt(Math.max(un,en));Tt>=Jt;Tt--)this.insertItemInDOM(this.itemAtIndex(Tt));for(Tt=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(gn))-1,Jt=this.indexAt(en);Tt>=Jt;Tt--)this.insertItemInDOM(this.itemAtIndex(Tt));for(Tt=this.indexAt(this.lastRenderTop),Jt=Math.min(this.indexAt(en),this.indexAfter(un));Tt<Jt;Tt++)this.removeItemFromDOM(this.itemAtIndex(Tt));for(Tt=Math.max(this.indexAfter(gn),this.indexAt(this.lastRenderTop)),Jt=this.indexAfter(un);Tt<Jt;Tt++)this.removeItemFromDOM(this.itemAtIndex(Tt));var En=this.itemAtIndex(this.indexAt(en));En&&(this.rowsContainer.style.top=En.top-en+"px"),this.horizontalScrolling&&(this.rowsContainer.style.left=-de+"px",this.rowsContainer.style.width=Math.max(lt,Fe)+"px"),this.lastRenderTop=en,this.lastRenderHeight=gn-en},G.prototype.setModel=function(te){this.releaseModel(),this.model=te,this.model.onRefresh(this.onRefreshing,this,this.modelListeners),this.model.onDidRefresh(this.onRefreshed,this,this.modelListeners),this.model.onSetInput(this.onClearingInput,this,this.modelListeners),this.model.onDidSetInput(this.onSetInput,this,this.modelListeners),this.model.onDidFocus(this.onModelFocusChange,this,this.modelListeners),this.model.onRefreshItemChildren(this.onItemChildrenRefreshing,this,this.modelListeners),this.model.onDidRefreshItemChildren(this.onItemChildrenRefreshed,this,this.modelListeners),this.model.onDidRefreshItem(this.onItemRefresh,this,this.modelListeners),this.model.onExpandItem(this.onItemExpanding,this,this.modelListeners),this.model.onDidExpandItem(this.onItemExpanded,this,this.modelListeners),this.model.onCollapseItem(this.onItemCollapsing,this,this.modelListeners),this.model.onDidRevealItem(this.onItemReveal,this,this.modelListeners),this.model.onDidAddTraitItem(this.onItemAddTrait,this,this.modelListeners),this.model.onDidRemoveTraitItem(this.onItemRemoveTrait,this,this.modelListeners)},G.prototype.onRefreshing=function(){this.isRefreshing=!0},G.prototype.onRefreshed=function(){this.isRefreshing=!1,this.onRowsChanged()},G.prototype.onRowsChanged=function(te){if(te===void 0&&(te=this.scrollTop),this.isRefreshing)return;this.scrollTop=te,this.updateScrollWidth()},G.prototype.updateScrollWidth=function(){var te=this;if(!this.horizontalScrolling)return;this.contentWidthUpdateDelayer.trigger(function(){for(var Y=Object.keys(te.items),de=0,Fe=0,lt=Y;Fe<lt.length;Fe++){var Tt=lt[Fe];de=Math.max(de,te.items[Tt].width)}te.scrollWidth=de+10})},G.prototype.focusNextPage=function(te){var Y=this,de=this.indexAt(this.scrollTop+this.viewHeight);de=de===0?0:de-1;var Fe=this.itemAtIndex(de).model.getElement(),lt=this.model.getFocus();if(lt!==Fe)this.model.setFocus(Fe,te);else{var Tt=this.scrollTop;this.scrollTop+=this.viewHeight,this.scrollTop!==Tt&&setTimeout(function(){Y.focusNextPage(te)},0)}},G.prototype.focusPreviousPage=function(te){var Y=this,de;this.scrollTop===0?de=this.indexAt(this.scrollTop):de=this.indexAfter(this.scrollTop-1);var Fe=this.itemAtIndex(de).model.getElement(),lt=this.model.getFocus();if(lt!==Fe)this.model.setFocus(Fe,te);else{var Tt=this.scrollTop;this.scrollTop-=this.viewHeight,this.scrollTop!==Tt&&setTimeout(function(){Y.focusPreviousPage(te)},0)}},Object.defineProperty(G.prototype,"viewHeight",{get:function(){var Y=this.scrollableElement.getScrollDimensions();return Y.height},set:function(Y){this.scrollableElement.setScrollDimensions({height:Y})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"scrollHeight",{set:function(Y){Y=Y+(this.horizontalScrolling?10:0),this.scrollableElement.setScrollDimensions({scrollHeight:Y})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"viewWidth",{get:function(){var Y=this.scrollableElement.getScrollDimensions();return Y.width},set:function(Y){this.scrollableElement.setScrollDimensions({width:Y})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"scrollWidth",{set:function(Y){this.scrollableElement.setScrollDimensions({scrollWidth:Y})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"scrollTop",{get:function(){var Y=this.scrollableElement.getScrollPosition();return Y.scrollTop},set:function(Y){var de=this.getContentHeight()+(this.horizontalScrolling?10:0);this.scrollableElement.setScrollDimensions({scrollHeight:de}),this.scrollableElement.setScrollPosition({scrollTop:Y})},enumerable:!0,configurable:!0}),G.prototype.onClearingInput=function(te){var Y=te.item;Y&&(this.onRemoveItems(new X.e(Y.getNavigator(),function(de){return de&&de.id})),this.onRowsChanged())},G.prototype.onSetInput=function(te){this.context.cache.garbageCollect(),this.inputItem=new se(this.context,te.item,this.wrapper)},G.prototype.onItemChildrenRefreshing=function(te){var Y=te.item,de=this.items[Y.id];if(de&&this.context.options.showLoading&&(de.loadingTimer=setTimeout(function(){de.loadingTimer=0,de.loading=!0},G.LOADING_DECORATION_DELAY)),!te.isNested){for(var Fe=[],lt=Y.getNavigator(),Tt=void 0;Tt=lt.next();)Fe.push(Tt.id);this.refreshingPreviousChildrenIds[Y.id]=Fe}},G.prototype.onItemChildrenRefreshed=function(te){var Y=this,de=te.item,Fe=this.items[de.id];if(Fe&&(Fe.loadingTimer&&(clearTimeout(Fe.loadingTimer),Fe.loadingTimer=0),Fe.loading=!1),!te.isNested){for(var lt=this.refreshingPreviousChildrenIds[de.id],Tt=[],Jt=de.getNavigator(),en=void 0;en=Jt.next();)Tt.push(en);var gn=Math.abs(lt.length-Tt.length)>1e3,un=[],En=!1;if(!gn){var Mn=new ke.a({getElements:function(){return lt}},{getElements:function(){return Tt.map(function(Bn){return Bn.id})}},null);un=Mn.ComputeDiff(!1).changes,En=un.some(function(Gn){if(Gn.modifiedLength>0){for(var Bn=Gn.modifiedStart,Dn=Gn.modifiedStart+Gn.modifiedLength;Bn<Dn;Bn++)if(Y.items.hasOwnProperty(Tt[Bn].id))return!0}return!1})}if(!gn&&!En&&un.length<50)for(var xn=0,Zn=un;xn<Zn.length;xn++){var bn=Zn[xn];if(bn.originalLength>0&&this.onRemoveItems(new X.a(lt,bn.originalStart,bn.originalStart+bn.originalLength)),bn.modifiedLength>0){var Wn=Tt[bn.modifiedStart-1]||de;Wn=Wn.getDepth()>0?Wn:null,this.onInsertItems(new X.a(Tt,bn.modifiedStart,bn.modifiedStart+bn.modifiedLength),Wn?Wn.id:null)}}else(gn||un.length)&&(this.onRemoveItems(new X.a(lt)),this.onInsertItems(new X.a(Tt),de.getDepth()>0?de.id:null));(gn||un.length)&&this.onRowsChanged()}},G.prototype.onItemRefresh=function(te){this.onItemsRefresh([te])},G.prototype.onItemsRefresh=function(te){var Y=this;this.onRefreshItemSet(te.filter(function(de){return Y.items.hasOwnProperty(de.id)})),this.onRowsChanged()},G.prototype.onItemExpanding=function(te){var Y=this.items[te.item.id];Y&&(Y.expanded=!0)},G.prototype.onItemExpanded=function(te){var Y=te.item,de=this.items[Y.id];if(de){de.expanded=!0;var Fe=this.onInsertItems(Y.getNavigator(),Y.id)||0,lt=this.scrollTop;de.top+de.height<=this.scrollTop&&(lt+=Fe),this.onRowsChanged(lt)}},G.prototype.onItemCollapsing=function(te){var Y=te.item,de=this.items[Y.id];de&&(de.expanded=!1,this.onRemoveItems(new X.e(Y.getNavigator(),function(Fe){return Fe&&Fe.id})),this.onRowsChanged())},G.prototype.onItemReveal=function(te){var Y=te.item,de=te.relativeTop,Fe=this.items[Y.id];if(Fe)if(de!==null){de=de<0?0:de,de=de>1?1:de;var lt=Fe.height-this.viewHeight;this.scrollTop=lt*de+Fe.top}else{var Tt=Fe.top+Fe.height,Jt=this.scrollTop+this.viewHeight;Fe.top<this.scrollTop?this.scrollTop=Fe.top:Tt>=Jt&&(this.scrollTop=Tt-this.viewHeight)}},G.prototype.onItemAddTrait=function(te){var Y=te.item,de=te.trait,Fe=this.items[Y.id];Fe&&Fe.addClass(de),de==="highlighted"&&(N.f(this.domNode,de),Fe&&(this.highlightedItemWasDraggable=!!Fe.draggable,Fe.draggable&&(Fe.draggable=!1)))},G.prototype.onItemRemoveTrait=function(te){var Y=te.item,de=te.trait,Fe=this.items[Y.id];Fe&&Fe.removeClass(de),de==="highlighted"&&(N.P(this.domNode,de),this.highlightedItemWasDraggable&&(Fe.draggable=!0),this.highlightedItemWasDraggable=!1)},G.prototype.onModelFocusChange=function(){var te=this.model&&this.model.getFocus();N.Y(this.domNode,"no-focused-item",!te),te?this.domNode.setAttribute("aria-activedescendant",je.L(this.context.dataSource.getId(this.context.tree,te))):this.domNode.removeAttribute("aria-activedescendant")},G.prototype.onInsertItem=function(te){var Y=this;te.onDragStart=function(de){Y.onDragStart(te,de)},te.needsRender=!0,this.refreshViewItem(te),this.items[te.id]=te},G.prototype.onRefreshItem=function(te,Y){Y===void 0&&(Y=!1),te.needsRender=te.needsRender||Y,this.refreshViewItem(te)},G.prototype.onRemoveItem=function(te){this.removeItemFromDOM(te),te.dispose(),delete this.items[te.id]},G.prototype.refreshViewItem=function(te){te.render(),this.shouldBeRendered(te)?this.insertItemInDOM(te):this.removeItemFromDOM(te)},G.prototype.onClick=function(te){if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new oe.b(te),de=this.getItemAround(Y.target);if(!de)return;Te.i&&Date.now()-this.lastClickTimeStamp<300&&(Y.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,de.model.getElement(),Y)},G.prototype.onMouseMiddleClick=function(te){if(!this.context.controller.onMouseMiddleClick)return;var Y=new oe.b(te),de=this.getItemAround(Y.target);if(!de)return;this.context.controller.onMouseMiddleClick(this.context.tree,de.model.getElement(),Y)},G.prototype.onMouseDown=function(te){if(this.didJustPressContextMenuKey=!1,!this.context.controller.onMouseDown)return;if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new oe.b(te);if(Y.ctrlKey&&M.f&&M.e)return;var de=this.getItemAround(Y.target);if(!de)return;this.context.controller.onMouseDown(this.context.tree,de.model.getElement(),Y)},G.prototype.onMouseUp=function(te){if(!this.context.controller.onMouseUp)return;if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new oe.b(te);if(Y.ctrlKey&&M.f&&M.e)return;var de=this.getItemAround(Y.target);if(!de)return;this.context.controller.onMouseUp(this.context.tree,de.model.getElement(),Y)},G.prototype.onTap=function(te){var Y=this.getItemAround(te.initialTarget);if(!Y)return;this.context.controller.onTap(this.context.tree,Y.model.getElement(),te)},G.prototype.onTouchChange=function(te){te.preventDefault(),te.stopPropagation(),this.scrollTop-=te.translationY},G.prototype.onContextMenu=function(te){var Y,de;if(te instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var Fe=new ee.a(te);de=this.model.getFocus();var lt=void 0;if(!de)de=this.model.getInput(),lt=N.C(this.inputItem.element);else{var Tt=this.context.dataSource.getId(this.context.tree,de),Jt=this.items[Tt];lt=N.C(Jt.element)}Y=new Se(lt.left+lt.width,lt.top,Fe)}else{var en=new oe.b(te),gn=this.getItemAround(en.target);if(!gn)return;de=gn.model.getElement(),Y=new me(en)}this.context.controller.onContextMenu(this.context.tree,de,Y)},G.prototype.onKeyDown=function(te){var Y=new ee.a(te);if(this.didJustPressContextMenuKey=Y.keyCode===58||Y.shiftKey&&Y.keyCode===68,Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input")return;this.didJustPressContextMenuKey&&(Y.preventDefault(),Y.stopPropagation()),this.context.controller.onKeyDown(this.context.tree,Y)},G.prototype.onKeyUp=function(te){this.didJustPressContextMenuKey&&this.onContextMenu(te),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new ee.a(te))},G.prototype.onDragStart=function(te,Y){if(this.model.getHighlight())return;var de=te.model.getElement(),Fe=this.model.getSelection(),lt;if(Fe.indexOf(de)>-1?lt=Fe:lt=[de],Y.dataTransfer.effectAllowed="copyMove",Y.dataTransfer.setData(Re.a.RESOURCES,JSON.stringify([te.uri])),Y.dataTransfer.setDragImage){var Tt=void 0;this.context.dnd.getDragLabel?Tt=this.context.dnd.getDragLabel(this.context.tree,lt):Tt=String(lt.length);var Jt=document.createElement("div");Jt.className="monaco-tree-drag-image",Jt.textContent=Tt,document.body.appendChild(Jt),Y.dataTransfer.setDragImage(Jt,-10,-10),setTimeout(function(){return document.body.removeChild(Jt)},0)}this.currentDragAndDropData=new ae(lt),Re.c.CurrentDragAndDropData=new q(lt),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new oe.a(Y))},G.prototype.setupDragAndDropScrollInterval=function(){var te=this,Y=N.F(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(te.dragAndDropMouseY===null)return;var de=te.dragAndDropMouseY-Y,Fe=0,lt=te.viewHeight-35;de<35?Fe=Math.max(-14,.2*(de-35)):de>lt&&(Fe=Math.min(14,.2*(de-lt))),te.scrollTop+=Fe},10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout(function(){te.cancelDragAndDropScrollInterval(),te.dragAndDropScrollTimeout=null},1e3))},G.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},G.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},G.prototype.onDragOver=function(te){var Y=this;te.preventDefault();var de=new oe.a(te),Fe=this.getItemAround(de.target);if(!Fe||de.posx===0&&de.posy===0&&de.browserEvent.type===N.d.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach(function(xn){return xn.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=de.posy,!this.currentDragAndDropData)if(Re.c.CurrentDragAndDropData)this.currentDragAndDropData=Re.c.CurrentDragAndDropData;else{if(!de.dataTransfer.types)return!1;this.currentDragAndDropData=new ce}this.currentDragAndDropData.update(de.browserEvent.dataTransfer);var lt,Tt=Fe.model,Jt;do{if(lt=Tt?Tt.getElement():this.model.getInput(),Jt=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,lt,de),!Jt||Jt.bubble!==1)break;Tt=Tt&&Tt.parent}while(Tt);if(!Tt)return this.currentDropElement=null,!1;var en=Jt&&Jt.accept;en?(this.currentDropElement=Tt.getElement(),de.preventDefault(),de.dataTransfer.dropEffect=Jt.effect===0?"copy":"move"):this.currentDropElement=null;var gn=Tt.id===this.inputItem.id?this.inputItem:this.items[Tt.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==gn||!ne(this.currentDropElementReaction,Jt))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach(function(xn){return xn.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=gn,this.currentDropElementReaction=Jt,en)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),Jt.bubble===0)for(var un=Tt.getNavigator(),En=void 0;En=un.next();)Fe=this.items[En.id],Fe&&(Fe.dropTarget=!0,this.currentDropTargets.push(Fe));if(Jt.autoExpand){var Mn=Object(Ee.l)(500);this.currentDropDisposable=x.h(function(){return Mn.cancel()}),Mn.then(function(){return Y.context.tree.expand(Y.currentDropElement)}).then(function(){return Y.shouldInvalidateDropReaction=!0})}}return!0},G.prototype.onDrop=function(te){if(this.currentDropElement){var Y=new oe.a(te);Y.preventDefault(),this.currentDragAndDropData.update(Y.browserEvent.dataTransfer),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,Y),this.onDragEnd(te)}this.cancelDragAndDropScrollInterval()},G.prototype.onDragEnd=function(te){this.currentDropTarget&&(this.currentDropTargets.forEach(function(Y){return Y.dropTarget=!1}),this.currentDropTargets=[]),this.currentDropDisposable.dispose(),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,Re.c.CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},G.prototype.onFocus=function(){this.context.options.alwaysFocused||N.f(this.domNode,"focused"),this._onDOMFocus.fire()},G.prototype.onBlur=function(){this.context.options.alwaysFocused||N.P(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},G.prototype.onMsPointerDown=function(te){if(!this.msGesture)return;var Y=te.pointerType;if(Y===(te.MSPOINTER_TYPE_MOUSE||"mouse")){this.lastPointerType="mouse";return}else if(Y===(te.MSPOINTER_TYPE_TOUCH||"touch"))this.lastPointerType="touch";else return;te.stopPropagation(),te.preventDefault(),this.msGesture.addPointer(te.pointerId)},G.prototype.onThrottledMsGestureChange=function(te){this.scrollTop-=te.translationY},G.prototype.onMsGestureTap=function(te){te.initialTarget=document.elementFromPoint(te.clientX,te.clientY),this.onTap(te)},G.prototype.insertItemInDOM=function(te){var Y=null,de=this.itemAfter(te);de&&de.element&&(Y=de.element),te.insertInDOM(this.rowsContainer,Y)},G.prototype.removeItemFromDOM=function(te){if(!te)return;te.removeFromDOM()},G.prototype.shouldBeRendered=function(te){return te.top<this.lastRenderTop+this.lastRenderHeight&&te.top+te.height>this.lastRenderTop},G.prototype.getItemAround=function(te){var Y=this.inputItem,de=te;do{if(de[G.BINDING]&&(Y=de[G.BINDING]),de===this.wrapper||de===this.domNode)return Y;if(de===this.scrollableElement.getDomNode()||de===document.body)return}while(de=de.parentElement);return},G.prototype.releaseModel=function(){this.model&&(this.modelListeners=x.f(this.modelListeners),this.model=null)},G.prototype.dispose=function(){var te=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=x.f(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach(function(Y){return te.items[Y].removeFromDOM()}),this.context.cache&&this.context.cache.dispose(),this.gestureDisposable.dispose(),fe.prototype.dispose.call(this)},G.BINDING="monaco-tree-row",G.LOADING_DECORATION_DELAY=800,G.counter=0,G}(Pe),Oe=e("zrhQ"),we=e("qj0h"),Ve=function(){function fe(G,te,Y){if(Y===void 0&&(Y={}),this.tree=G,this.configuration=te,this.options=Y,!te.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=te.dataSource,this.renderer=te.renderer,this.controller=te.controller||new s({clickBehavior:1,keyboardSupport:typeof Y.keyboardSupport!="boolean"||Y.keyboardSupport}),this.dnd=te.dnd||new l,this.filter=te.filter||new d,this.sorter=te.sorter,this.accessibilityProvider=te.accessibilityProvider||new p,this.styler=te.styler}return fe}(),Qe={listFocusBackground:Oe.a.fromHex("#073655"),listActiveSelectionBackground:Oe.a.fromHex("#0E639C"),listActiveSelectionForeground:Oe.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:Oe.a.fromHex("#094771"),listFocusAndSelectionForeground:Oe.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:Oe.a.fromHex("#3F3F46"),listHoverBackground:Oe.a.fromHex("#2A2D2E"),listDropBackground:Oe.a.fromHex("#383B3D")},it=function(){function fe(G,te,Y){Y===void 0&&(Y={}),this._onDidChangeFocus=new F.f,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new F.f,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new F.f,this._onDidExpandItem=new F.f,this._onDidCollapseItem=new F.f,this._onDispose=new F.a,this.onDidDispose=this._onDispose.event,this.container=G,Object(we.g)(Y,Qe,!1),Y.twistiePixels=typeof Y.twistiePixels=="number"?Y.twistiePixels:32,Y.showTwistie=!(Y.showTwistie===!1),Y.indentPixels=typeof Y.indentPixels=="number"?Y.indentPixels:12,Y.alwaysFocused=Y.alwaysFocused===!0,Y.useShadows=!(Y.useShadows===!1),Y.paddingOnRow=!(Y.paddingOnRow===!1),Y.showLoading=!(Y.showLoading===!1),this.context=new Ve(this,te,Y),this.model=new De(this.context),this.view=new Ce(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}return fe.prototype.style=function(G){this.view.applyStyles(G)},Object.defineProperty(fe.prototype,"onDidFocus",{get:function(){return this.view.onDOMFocus},enumerable:!0,configurable:!0}),fe.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},fe.prototype.layout=function(G,te){this.view.layout(G,te)},fe.prototype.domFocus=function(){this.view.focus()},fe.prototype.isDOMFocused=function(){return this.view.isFocused()},fe.prototype.domBlur=function(){this.view.blur()},fe.prototype.setInput=function(G){return this.model.setInput(G)},fe.prototype.getInput=function(){return this.model.getInput()},fe.prototype.expand=function(G){return this.model.expand(G)},fe.prototype.collapse=function(G,te){return te===void 0&&(te=!1),this.model.collapse(G,te)},fe.prototype.toggleExpansion=function(G,te){return te===void 0&&(te=!1),this.model.toggleExpansion(G,te)},fe.prototype.isExpanded=function(G){return this.model.isExpanded(G)},fe.prototype.reveal=function(G,te){return te===void 0&&(te=null),this.model.reveal(G,te)},fe.prototype.getHighlight=function(){return this.model.getHighlight()},fe.prototype.clearHighlight=function(G){this.model.setHighlight(null,G)},fe.prototype.setSelection=function(G,te){this.model.setSelection(G,te)},fe.prototype.getSelection=function(){return this.model.getSelection()},fe.prototype.clearSelection=function(G){this.model.setSelection([],G)},fe.prototype.setFocus=function(G,te){this.model.setFocus(G,te)},fe.prototype.getFocus=function(){return this.model.getFocus()},fe.prototype.focusNext=function(G,te){this.model.focusNext(G,te)},fe.prototype.focusPrevious=function(G,te){this.model.focusPrevious(G,te)},fe.prototype.focusParent=function(G){this.model.focusParent(G)},fe.prototype.focusFirstChild=function(G){this.model.focusFirstChild(G)},fe.prototype.focusFirst=function(G,te){this.model.focusFirst(G,te)},fe.prototype.focusNth=function(G,te){this.model.focusNth(G,te)},fe.prototype.focusLast=function(G,te){this.model.focusLast(G,te)},fe.prototype.focusNextPage=function(G){this.view.focusNextPage(G)},fe.prototype.focusPreviousPage=function(G){this.view.focusPreviousPage(G)},fe.prototype.clearFocus=function(G){this.model.setFocus(null,G)},fe.prototype.dispose=function(){this._onDispose.fire(),this.model.dispose(),this.view.dispose(),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},fe}(),gt=e("HyZH"),Rt=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,Fe){de.__proto__=Fe}||function(de,Fe){for(var lt in Fe)Fe.hasOwnProperty(lt)&&(de[lt]=Fe[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),Dt="done",zt="active",cn="infinite",ln="discrete",an="monaco-progress-container",jt="progress-bit",ft={progressBarBackground:Oe.a.fromHex("#0E70C0")},vt=function(fe){Rt(G,fe);function G(te,Y){var de=fe.call(this)||this;return de.options=Y||Object.create(null),Object(we.g)(de.options,ft,!1),de.workedVal=0,de.progressBarBackground=de.options.progressBarBackground,de._register(de.showDelayedScheduler=new Ee.d(function(){return Object(N.X)(de.element)},0)),de.create(te),de}return G.prototype.create=function(te){this.element=document.createElement("div"),Object(N.f)(this.element,an),te.appendChild(this.element),this.bit=document.createElement("div"),Object(N.f)(this.bit,jt),this.element.appendChild(this.bit),this.applyStyles()},G.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(N.Q)(this.element,zt,cn,ln),this.workedVal=0,this.totalWork=void 0},G.prototype.stop=function(){return this.doDone(!1)},G.prototype.doDone=function(te){var Y=this;return Object(N.f)(this.element,Dt),Object(N.I)(this.element,cn)?(this.bit.style.opacity="0",te?setTimeout(function(){return Y.off()},200):this.off()):(this.bit.style.width="inherit",te?setTimeout(function(){return Y.off()},200):this.off()),this},G.prototype.hide=function(){Object(N.J)(this.element),this.showDelayedScheduler.cancel()},G.prototype.style=function(te){this.progressBarBackground=te.progressBarBackground,this.applyStyles()},G.prototype.applyStyles=function(){if(this.bit){var te=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=te}},G}(x.a),xt=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,Fe){de.__proto__=Fe}||function(de,Fe){for(var lt in Fe)Fe.hasOwnProperty(lt)&&(de[lt]=Fe[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),at=function(fe){xt(G,fe);function G(){return fe!==null&&fe.apply(this,arguments)||this}return G.prototype.onContextMenu=function(te,Y,de){return M.e?this.onLeftClick(te,Y,de):fe.prototype.onContextMenu.call(this,te,Y,de)},G}(s),tt={background:Oe.a.fromHex("#1E1E1E"),foreground:Oe.a.fromHex("#CCCCCC"),pickerGroupForeground:Oe.a.fromHex("#0097FB"),pickerGroupBorder:Oe.a.fromHex("#3F3F46"),widgetShadow:Oe.a.fromHex("#000000"),progressBarBackground:Oe.a.fromHex("#0E70C0")},ct=z.a("quickOpenAriaLabel","Quick picker. Type to narrow down results."),bt=function(fe){xt(G,fe);function G(te,Y,de){var Fe=fe.call(this)||this;return Fe.isDisposed=!1,Fe.container=te,Fe.callbacks=Y,Fe.options=de,Fe.styles=de||Object.create(null),Object(we.g)(Fe.styles,tt,!1),Fe.model=null,Fe}return G.prototype.getModel=function(){return this.model},G.prototype.create=function(){var te=this;this.element=document.createElement("div"),N.f(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(N.j(this.element,N.d.CONTEXT_MENU,function(de){return N.c.stop(de,!0)})),this._register(N.j(this.element,N.d.FOCUS,function(de){return te.gainingFocus()},!0)),this._register(N.j(this.element,N.d.BLUR,function(de){return te.loosingFocus(de)},!0)),this._register(N.j(this.element,N.d.KEY_DOWN,function(de){var Fe=new ee.a(de);if(Fe.keyCode===9)N.c.stop(de,!0),te.hide(2);else if(Fe.keyCode===2&&!Fe.altKey&&!Fe.ctrlKey&&!Fe.metaKey){var lt=de.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");Fe.shiftKey&&Fe.target===lt[0]?(N.c.stop(de,!0),lt[lt.length-1].focus()):!Fe.shiftKey&&Fe.target===lt[lt.length-1]&&(N.c.stop(de,!0),lt[0].focus())}})),this.progressBar=this._register(new vt(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),N.f(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new f.b(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:ct,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(N.j(this.inputBox.inputElement,N.d.INPUT,function(de){return te.onType()})),this._register(N.j(this.inputBox.inputElement,N.d.KEY_DOWN,function(de){var Fe=new ee.a(de),lt=te.shouldOpenInBackground(Fe);if(Fe.keyCode===2)return;if(Fe.keyCode===18||Fe.keyCode===16||Fe.keyCode===12||Fe.keyCode===11)N.c.stop(de,!0),te.navigateInTree(Fe.keyCode,Fe.shiftKey),te.inputBox.inputElement.selectionStart===te.inputBox.inputElement.selectionEnd&&(te.inputBox.inputElement.selectionStart=te.inputBox.value.length);else if(Fe.keyCode===3||lt){N.c.stop(de,!0);var Tt=te.tree.getFocus();Tt&&te.elementSelected(Tt,de,lt?2:1)}})),this.resultCount=document.createElement("div"),N.f(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),N.f(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var Y=this.options.treeCreator||function(de,Fe,lt){return new it(de,Fe,lt)};return this.tree=this._register(Y(this.treeContainer,{dataSource:new A(this),controller:new at({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new L(this,this.styles),filter:new y(this),accessibilityProvider:new c(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:z.a("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus(function(de){te.elementFocused(de.focus,de)})),this._register(this.tree.onDidChangeSelection(function(de){if(de.selection&&de.selection.length>0){var Fe=de.payload&&de.payload.originalEvent instanceof oe.b?de.payload.originalEvent:void 0,lt=Fe?te.shouldOpenInBackground(Fe):!1;te.elementSelected(de.selection[0],de,lt?2:1)}})),this._register(N.j(this.treeContainer,N.d.KEY_DOWN,function(de){var Fe=new ee.a(de);if(!te.quickNavigateConfiguration)return;if(Fe.keyCode===18||Fe.keyCode===16||Fe.keyCode===12||Fe.keyCode===11)N.c.stop(de,!0),te.navigateInTree(Fe.keyCode);else if(Fe.keyCode===3){N.c.stop(de,!0);var lt=te.tree.getFocus();lt&&te.elementSelected(lt,de)}})),this._register(N.j(this.treeContainer,N.d.KEY_UP,function(de){var Fe=new ee.a(de),lt=Fe.keyCode;if(!te.quickNavigateConfiguration)return;var Tt=te.quickNavigateConfiguration.keybindings,Jt=Tt.some(function(gn){var un=gn.getParts(),En=un[0],Mn=un[1];return Mn?!1:En.shiftKey&&lt===4?!(Fe.ctrlKey||Fe.altKey||Fe.metaKey):En.altKey&&lt===6||En.ctrlKey&&lt===5?!0:!!(En.metaKey&&lt===57)});if(Jt){var en=te.tree.getFocus();en&&te.elementSelected(en,de)}})),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(N.j(this.treeContainer,N.d.KEY_DOWN,function(de){var Fe=new ee.a(de);if(te.quickNavigateConfiguration)return;(Fe.keyCode===18||Fe.keyCode===16||Fe.keyCode===12||Fe.keyCode===11)&&(N.c.stop(de,!0),te.navigateInTree(Fe.keyCode,Fe.shiftKey),te.treeElement.focus())})),this.element},G.prototype.style=function(te){this.styles=te,this.applyStyles()},G.prototype.applyStyles=function(){if(this.element){var te=this.styles.foreground?this.styles.foreground.toString():"",Y=this.styles.background?this.styles.background.toString():"",de=this.styles.borderColor?this.styles.borderColor.toString():"",Fe=this.styles.widgetShadow?this.styles.widgetShadow.toString():"";this.element.style.color=te,this.element.style.backgroundColor=Y,this.element.style.borderColor=de,this.element.style.borderWidth=de?"1px":"",this.element.style.borderStyle=de?"solid":"",this.element.style.boxShadow=Fe?"0 5px 8px "+Fe:""}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},G.prototype.shouldOpenInBackground=function(te){if(te instanceof ee.a){if(te.keyCode!==17)return!1;if(te.metaKey||te.ctrlKey||te.shiftKey||te.altKey)return!1;var Y=this.inputBox.inputElement;return Y.selectionEnd===this.inputBox.value.length&&Y.selectionStart===Y.selectionEnd}return te.middleButton},G.prototype.onType=function(){var te=this.inputBox.value;this.helpText&&(te?N.J(this.helpText):N.X(this.helpText)),this.callbacks.onType(te)},G.prototype.navigateInTree=function(te,Y){var de=this.tree.getInput(),Fe=de?de.entries:[],lt=this.tree.getFocus();switch(te){case 18:this.tree.focusNext();break;case 16:this.tree.focusPrevious();break;case 12:this.tree.focusNextPage();break;case 11:this.tree.focusPreviousPage();break;case 2:Y?this.tree.focusPrevious():this.tree.focusNext();break}var Tt=this.tree.getFocus();Fe.length>1&&lt===Tt&&(te===16||te===2&&Y?this.tree.focusLast():(te===18||te===2&&!Y)&&this.tree.focusFirst()),Tt=this.tree.getFocus(),Tt&&this.tree.reveal(Tt)},G.prototype.elementFocused=function(te,Y){if(!te||!this.isVisible())return;var de=this.treeElement.getAttribute("aria-activedescendant");de?this.inputElement.setAttribute("aria-activedescendant",de):this.inputElement.removeAttribute("aria-activedescendant");var Fe={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(te,0,Fe)},G.prototype.elementSelected=function(te,Y,de){var Fe=!0;if(this.isVisible()){var lt=de||1,Tt={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};Fe=this.model.runner.run(te,lt,Tt)}Fe&&this.hide(0)},G.prototype.extractKeyMods=function(te){return{ctrlCmd:te&&(te.ctrlKey||te.metaKey||te.payload&&te.payload.originalEvent&&(te.payload.originalEvent.ctrlKey||te.payload.originalEvent.metaKey)),alt:te&&(te.altKey||te.payload&&te.payload.originalEvent&&te.payload.originalEvent.altKey)}},G.prototype.show=function(te,Y){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=Y?Y.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(N.J(this.inputContainer),N.X(this.element),this.tree.domFocus()):(N.X(this.inputContainer),N.X(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||U.j(te)?N.J(this.helpText):N.X(this.helpText)),U.j(te)?this.doShowWithPrefix(te):(Y&&Y.value&&this.restoreLastInput(Y.value),this.doShowWithInput(te,Y&&Y.autoFocus?Y.autoFocus:{})),Y&&Y.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(Y.inputSelection),this.callbacks.onShow&&this.callbacks.onShow()},G.prototype.restoreLastInput=function(te){this.inputBox.value=te,this.inputBox.select(),this.callbacks.onType(te)},G.prototype.doShowWithPrefix=function(te){this.inputBox.value=te,this.callbacks.onType(te)},G.prototype.doShowWithInput=function(te,Y){this.setInput(te,Y)},G.prototype.setInputAndLayout=function(te,Y){var de=this;this.treeContainer.style.height=this.getHeight(te)+"px",this.tree.setInput(null).then(function(){return de.model=te,de.inputElement.setAttribute("aria-haspopup",String(te&&te.entries&&te.entries.length>0)),de.tree.setInput(te)}).then(function(){de.tree.layout();var Fe=te?te.entries.filter(function(lt){return de.isElementVisible(te,lt)}):[];de.updateResultCount(Fe.length),Fe.length&&de.autoFocus(te,Fe,Y)})},G.prototype.isElementVisible=function(te,Y){return te.filter?te.filter.isVisible(Y):!0},G.prototype.autoFocus=function(te,Y,de){if(de===void 0&&(de={}),de.autoFocusPrefixMatch){for(var Fe=void 0,lt=void 0,Tt=de.autoFocusPrefixMatch,Jt=Tt.toLowerCase(),en=0,gn=Y;en<gn.length;en++){var un=gn[en],En=te.dataSource.getLabel(un)||"";if(!Fe&&En.indexOf(Tt)===0?Fe=un:!lt&&En.toLowerCase().indexOf(Jt)===0&&(lt=un),Fe&&lt)break}var Mn=Fe||lt;if(Mn){this.tree.setFocus(Mn),this.tree.reveal(Mn,.5);return}}de.autoFocusFirstEntry?(this.tree.focusFirst(),this.tree.reveal(this.tree.getFocus())):typeof de.autoFocusIndex=="number"?Y.length>de.autoFocusIndex&&(this.tree.focusNth(de.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):de.autoFocusSecondEntry?Y.length>1&&this.tree.focusNth(1):de.autoFocusLastEntry&&(Y.length>1&&(this.tree.focusLast(),this.tree.reveal(this.tree.getFocus())))},G.prototype.getHeight=function(te){var Y=this,de=te.renderer;if(!te){var Fe=de.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*Fe:0}var lt=0,Tt;this.layoutDimensions&&this.layoutDimensions.height&&(Tt=(this.layoutDimensions.height-50)*.4),(!Tt||Tt>G.MAX_ITEMS_HEIGHT)&&(Tt=G.MAX_ITEMS_HEIGHT);for(var Jt=te.entries.filter(function(En){return Y.isElementVisible(te,En)}),en=this.options.maxItemsToShow||Jt.length,gn=0;gn<en&&gn<Jt.length;gn++){var un=de.getHeight(Jt[gn]);if(lt+un<=Tt)lt+=un;else break}return lt},G.prototype.updateResultCount=function(te){this.resultCount.textContent=z.a({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results",te)},G.prototype.hide=function(te){if(!this.isVisible())return;this.visible=!1,N.J(this.element),this.element.blur(),this.inputBox.value="",this.tree.setInput(null),this.inputElement.setAttribute("aria-haspopup","false"),this.treeContainer.style.height=(this.options.minItemsToShow?this.options.minItemsToShow*22:0)+"px",this.progressBar.stop().hide(),this.tree.isDOMFocused()?this.tree.domBlur():this.inputBox.hasFocus()&&this.inputBox.blur(),te===0?this.callbacks.onOk():this.callbacks.onCancel(),this.callbacks.onHide&&this.callbacks.onHide(te)},G.prototype.setInput=function(te,Y,de){if(!this.isVisible())return;this.getInput()&&this.onInputChanging(),this.setInputAndLayout(te,Y),this.inputBox&&this.inputBox.setAriaLabel(de||ct)},G.prototype.onInputChanging=function(){var te=this;this.inputChangingTimeoutHandle&&(clearTimeout(this.inputChangingTimeoutHandle),this.inputChangingTimeoutHandle=null),N.f(this.element,"content-changing"),this.inputChangingTimeoutHandle=setTimeout(function(){N.P(te.element,"content-changing")},500)},G.prototype.getInput=function(){return this.tree.getInput()},G.prototype.isVisible=function(){return this.visible},G.prototype.layout=function(te){this.layoutDimensions=te;var Y=Math.min(this.layoutDimensions.width*.62,G.MAX_WIDTH);this.element&&(this.element.style.width=Y+"px",this.element.style.marginLeft="-"+Y/2+"px",this.inputContainer.style.width=Y-12+"px")},G.prototype.gainingFocus=function(){this.isLoosingFocus=!1},G.prototype.loosingFocus=function(te){var Y=this;if(!this.isVisible())return;var de=te.relatedTarget;if(!this.quickNavigateConfiguration&&N.K(de,this.element))return;this.isLoosingFocus=!0,setTimeout(function(){if(!Y.isLoosingFocus||Y.isDisposed)return;var Fe=Y.callbacks.onFocusLost&&Y.callbacks.onFocusLost();Fe||Y.hide(1)},0)},G.prototype.dispose=function(){fe.prototype.dispose.call(this),this.isDisposed=!0},G.MAX_WIDTH=600,G.MAX_ITEMS_HEIGHT=20*22,G}(x.a),mt=e("MD5Z"),Ct=e("ptcw"),Gt=function(){function fe(G,te,Y,de,Fe,lt){this.codeEditor=G,this.themeService=lt,this.visible=!1,this.domNode=document.createElement("div"),this.quickOpenWidget=new bt(this.domNode,{onOk:te,onCancel:Y,onType:de},{inputPlaceHolder:void 0,inputAriaLabel:Fe.inputAriaLabel,keyboardSupport:!0}),this.styler=Object(Ct.d)(this.quickOpenWidget,this.themeService,{pickerGroupForeground:mt.W}),this.quickOpenWidget.create(),this.codeEditor.addOverlayWidget(this)}return fe.prototype.setInput=function(G,te){this.quickOpenWidget.setInput(G,te)},fe.prototype.getId=function(){return fe.ID},fe.prototype.getDomNode=function(){return this.domNode},fe.prototype.destroy=function(){this.codeEditor.removeOverlayWidget(this),this.quickOpenWidget.dispose(),this.styler.dispose()},fe.prototype.show=function(G){this.visible=!0;var te=this.codeEditor.getLayoutInfo();te&&this.quickOpenWidget.layout(new N.b(te.width,te.height)),this.quickOpenWidget.show(G),this.codeEditor.layoutOverlayWidget(this)},fe.prototype.getPosition=function(){return this.visible?{preference:2}:null},fe.ID="editor.contrib.quickOpenEditorWidget",fe}(),It=e("t9D7"),Et=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,Fe){de.__proto__=Fe}||function(de,Fe){for(var lt in Fe)Fe.hasOwnProperty(lt)&&(de[lt]=Fe[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),Je=function(fe,G,te,Y){var de=arguments.length,Fe=de<3?G:Y===null?Y=Object.getOwnPropertyDescriptor(G,te):Y,lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Fe=Reflect.decorate(fe,G,te,Y);else for(var Tt=fe.length-1;Tt>=0;Tt--)(lt=fe[Tt])&&(Fe=(de<3?lt(Fe):de>3?lt(G,te,Fe):lt(G,te))||Fe);return de>3&&Fe&&Object.defineProperty(G,te,Fe),Fe},$e=function(fe,G){return function(te,Y){G(te,Y,fe)}},ze=function(){function fe(G,te){this.themeService=te,this.widget=null,this.rangeHighlightDecorationId=null,this.lastKnownEditorSelection=null,this.editor=G}return fe.get=function(G){return G.getContribution(fe.ID)},fe.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},fe.prototype.run=function(G){var te=this;this.widget&&(this.widget.destroy(),this.widget=null);var Y=function(Fe){te.clearDecorations(),Fe&&te.lastKnownEditorSelection&&(te.editor.setSelection(te.lastKnownEditorSelection),te.editor.revealRangeInCenterIfOutsideViewport(te.lastKnownEditorSelection,0)),te.lastKnownEditorSelection=null,(document.activeElement===document.body||!Fe)&&te.editor.focus()};this.widget=new Gt(this.editor,function(){return Y(!1)},function(){return Y(!0)},function(de){te.widget.setInput(G.getModel(de),G.getAutoFocus(de))},{inputAriaLabel:G.inputAriaLabel},this.themeService),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("")},fe.prototype.decorateLine=function(G,te){var Y=[];this.rangeHighlightDecorationId&&(Y.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var de=[{range:G,options:fe._RANGE_HIGHLIGHT_DECORATION}],Fe=te.deltaDecorations(Y,de);this.rangeHighlightDecorationId=Fe[0]},fe.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},fe.ID="editor.controller.quickOpenController",fe._RANGE_HIGHLIGHT_DECORATION=J.a.register({className:"rangeHighlight",isWholeLine:!0}),fe=Je([$e(1,It.c)],fe),fe}(),Ke=function(fe){Et(G,fe);function G(te,Y){var de=fe.call(this,Y)||this;return de._inputAriaLabel=te,de}return G.prototype.getController=function(te){return ze.get(te)},G.prototype._show=function(te,Y){te.run({inputAriaLabel:this._inputAriaLabel,getModel:function(Fe){return Y.getModel(Fe)},getAutoFocus:function(Fe){return Y.getAutoFocus(Fe)}})},G}(re.b);Object(re.h)(ze.ID,ze)},s7Km:function(_t,P,e){"use strict";e.r(P),e.d(P,"MoveWordCommand",function(){return v}),e.d(P,"WordLeftCommand",function(){return S}),e.d(P,"WordRightCommand",function(){return g}),e.d(P,"CursorWordStartLeft",function(){return u}),e.d(P,"CursorWordEndLeft",function(){return s}),e.d(P,"CursorWordLeft",function(){return l}),e.d(P,"CursorWordStartLeftSelect",function(){return d}),e.d(P,"CursorWordEndLeftSelect",function(){return p}),e.d(P,"CursorWordLeftSelect",function(){return E}),e.d(P,"CursorWordAccessibilityLeft",function(){return _}),e.d(P,"CursorWordAccessibilityLeftSelect",function(){return x}),e.d(P,"CursorWordStartRight",function(){return F}),e.d(P,"CursorWordEndRight",function(){return R}),e.d(P,"CursorWordRight",function(){return $}),e.d(P,"CursorWordStartRightSelect",function(){return ie}),e.d(P,"CursorWordEndRightSelect",function(){return W}),e.d(P,"CursorWordRightSelect",function(){return B}),e.d(P,"CursorWordAccessibilityRight",function(){return le}),e.d(P,"CursorWordAccessibilityRightSelect",function(){return be}),e.d(P,"DeleteWordCommand",function(){return De}),e.d(P,"DeleteWordLeftCommand",function(){return Te}),e.d(P,"DeleteWordRightCommand",function(){return ke}),e.d(P,"DeleteWordStartLeft",function(){return He}),e.d(P,"DeleteWordEndLeft",function(){return je}),e.d(P,"DeleteWordLeft",function(){return oe}),e.d(P,"DeleteWordStartRight",function(){return ee}),e.d(P,"DeleteWordEndRight",function(){return ae}),e.d(P,"DeleteWordRight",function(){return q});var T=e("sswD"),re=e("LCkn"),J=e("Ll0s"),N=e("1I1M"),H=e("5v8Y"),z=e("cGHE"),M=e("aokT"),U=e("gCVg"),A=e("wQH0"),c=e("R3nR"),y=e("T8No"),L=e("/UlZ"),f=function(){var ce=function(he,Pe){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Xe,pe){Xe.__proto__=pe}||function(Xe,pe){for(var me in pe)pe.hasOwnProperty(me)&&(Xe[me]=pe[me])},ce(he,Pe)};return function(X,he){ce(X,he);function Pe(){this.constructor=X}X.prototype=he===null?Object.create(he):(Pe.prototype=he.prototype,new Pe)}}(),v=function(ce){f(X,ce);function X(he){var Pe=ce.call(this,he)||this;return Pe._inSelectionMode=he.inSelectionMode,Pe._wordNavigationType=he.wordNavigationType,Pe}return X.prototype.runEditorCommand=function(he,Pe,Xe){var pe=this;if(!Pe.hasModel())return;var me=Object(H.a)(Pe.getOption(96)),Se=Pe.getModel(),Re=Pe.getSelections(),Ee=Re.map(function(Q){var b=new z.a(Q.positionLineNumber,Q.positionColumn),k=pe._move(me,Se,b,pe._wordNavigationType);return pe._moveTo(Q,k,pe._inSelectionMode)});if(Pe._getCursors().setStates("moveWordCommand",0,Ee.map(function(Q){return J.d.fromModelSelection(Q)})),Ee.length===1){var ve=new z.a(Ee[0].positionLineNumber,Ee[0].positionColumn);Pe.revealPosition(ve,0)}},X.prototype._moveTo=function(he,Pe,Xe){return Xe?new U.a(he.selectionStartLineNumber,he.selectionStartColumn,Pe.lineNumber,Pe.column):new U.a(Pe.lineNumber,Pe.column,Pe.lineNumber,Pe.column)},X}(T.c),S=function(ce){f(X,ce);function X(){return ce!==null&&ce.apply(this,arguments)||this}return X.prototype._move=function(he,Pe,Xe,pe){return N.a.moveWordLeft(he,Pe,Xe,pe)},X}(v),g=function(ce){f(X,ce);function X(){return ce!==null&&ce.apply(this,arguments)||this}return X.prototype._move=function(he,Pe,Xe,pe){return N.a.moveWordRight(he,Pe,Xe,pe)},X}(v),u=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:A.a.textInputFocus,primary:2048|15,mac:{primary:512|15},weight:100}})||this}return X}(S),s=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}return X}(S),l=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}return X}(S),d=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:A.a.textInputFocus,primary:2048|1024|15,mac:{primary:512|1024|15},weight:100}})||this}return X}(S),p=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}return X}(S),E=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}return X}(S),_=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:y.a.and(A.a.textInputFocus,c.a),win:{primary:2048|15},weight:100+1}})||this}return X.prototype._move=function(he,Pe,Xe,pe){return ce.prototype._move.call(this,Object(H.a)(L.e.wordSeparators.defaultValue),Pe,Xe,pe)},X}(S),x=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:y.a.and(A.a.textInputFocus,c.a),win:{primary:2048|1024|15},weight:100+1}})||this}return X.prototype._move=function(he,Pe,Xe,pe){return ce.prototype._move.call(this,Object(H.a)(L.e.wordSeparators.defaultValue),Pe,Xe,pe)},X}(S),F=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}return X}(g),R=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:A.a.textInputFocus,primary:2048|17,mac:{primary:512|17},weight:100}})||this}return X}(g),$=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}return X}(g),ie=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}return X}(g),W=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:A.a.textInputFocus,primary:2048|1024|17,mac:{primary:512|1024|17},weight:100}})||this}return X}(g),B=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}return X}(g),le=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:y.a.and(A.a.textInputFocus,c.a),win:{primary:2048|17},weight:100+1}})||this}return X.prototype._move=function(he,Pe,Xe,pe){return ce.prototype._move.call(this,Object(H.a)(L.e.wordSeparators.defaultValue),Pe,Xe,pe)},X}(g),be=function(ce){f(X,ce);function X(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:y.a.and(A.a.textInputFocus,c.a),win:{primary:2048|1024|17},weight:100+1}})||this}return X.prototype._move=function(he,Pe,Xe,pe){return ce.prototype._move.call(this,Object(H.a)(L.e.wordSeparators.defaultValue),Pe,Xe,pe)},X}(g),De=function(ce){f(X,ce);function X(he){var Pe=ce.call(this,he)||this;return Pe._whitespaceHeuristics=he.whitespaceHeuristics,Pe._wordNavigationType=he.wordNavigationType,Pe}return X.prototype.runEditorCommand=function(he,Pe,Xe){var pe=this;if(!Pe.hasModel())return;var me=Object(H.a)(Pe.getOption(96)),Se=Pe.getModel(),Re=Pe.getSelections(),Ee=Re.map(function(ve){var Q=pe._delete(me,Se,ve,pe._whitespaceHeuristics,pe._wordNavigationType);return new re.a(Q,"")});Pe.pushUndoStop(),Pe.executeCommands(this.id,Ee),Pe.pushUndoStop()},X}(T.c),Te=function(ce){f(X,ce);function X(){return ce!==null&&ce.apply(this,arguments)||this}return X.prototype._delete=function(he,Pe,Xe,pe,me){var Se=N.a.deleteWordLeft(he,Pe,Xe,pe,me);return Se||new M.a(1,1,1,1)},X}(De),ke=function(ce){f(X,ce);function X(){return ce!==null&&ce.apply(this,arguments)||this}return X.prototype._delete=function(he,Pe,Xe,pe,me){var Se=N.a.deleteWordRight(he,Pe,Xe,pe,me);if(Se)return Se;var Re=Pe.getLineCount(),Ee=Pe.getLineMaxColumn(Re);return new M.a(Re,Ee,Re,Ee)},X}(De),He=function(ce){f(X,ce);function X(){return ce.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:A.a.writable})||this}return X}(Te),je=function(ce){f(X,ce);function X(){return ce.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:A.a.writable})||this}return X}(Te),oe=function(ce){f(X,ce);function X(){return ce.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:A.a.writable,kbOpts:{kbExpr:A.a.textInputFocus,primary:2048|1,mac:{primary:512|1},weight:100}})||this}return X}(Te),ee=function(ce){f(X,ce);function X(){return ce.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:A.a.writable})||this}return X}(ke),ae=function(ce){f(X,ce);function X(){return ce.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:A.a.writable})||this}return X}(ke),q=function(ce){f(X,ce);function X(){return ce.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:A.a.writable,kbOpts:{kbExpr:A.a.textInputFocus,primary:2048|20,mac:{primary:512|20},weight:100}})||this}return X}(ke);Object(T.g)(new u),Object(T.g)(new s),Object(T.g)(new l),Object(T.g)(new d),Object(T.g)(new p),Object(T.g)(new E),Object(T.g)(new F),Object(T.g)(new R),Object(T.g)(new $),Object(T.g)(new ie),Object(T.g)(new W),Object(T.g)(new B),Object(T.g)(new _),Object(T.g)(new x),Object(T.g)(new le),Object(T.g)(new be),Object(T.g)(new He),Object(T.g)(new je),Object(T.g)(new oe),Object(T.g)(new ee),Object(T.g)(new ae),Object(T.g)(new q)},sFUC:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("iuje");function re(J){return J&&typeof J.getEditorType=="function"?J.getEditorType()===T.a.ICodeEditor:!1}},sM1p:function(_t,P,e){"use strict";e.d(P,"a",function(){return N}),e.d(P,"b",function(){return H});var T=e("S3by"),re=e("Cg/j"),J=T.a,N=Object(re.c)("notificationService"),H=function(){function z(){}return z}()},sStQ:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return e.e(271).then(e.bind(null,"QKwv"))}})},scqD:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("themeService")},siPX:function(_t,P,e){},snIX:function(_t,P,e){"use strict";e.d(P,"a",function(){return z});var T=e("N0LK"),re=e("LCkn"),J=e("Ll0s"),N=e("+Fos"),H=e("aokT"),z=function(){function M(){}return M.deleteRight=function(U,A,c,y){for(var L=[],f=U!==3,v=0,S=y.length;v<S;v++){var g=y[v],u=g;if(u.isEmpty()){var s=g.getPosition(),l=N.a.right(A,c,s.lineNumber,s.column);u=new H.a(l.lineNumber,l.column,s.lineNumber,s.column)}if(u.isEmpty()){L[v]=null;continue}u.startLineNumber!==u.endLineNumber&&(f=!0),L[v]=new re.a(u,"")}return[f,L]},M._isAutoClosingPairDelete=function(U,A,c){if(U.autoClosingBrackets==="never"&&U.autoClosingQuotes==="never")return!1;for(var y=0,L=c.length;y<L;y++){var f=c[y],v=f.getPosition();if(!f.isEmpty())return!1;var S=A.getLineContent(v.lineNumber),g=S[v.column-2],u=U.autoClosingPairsOpen2.get(g);if(!u)return!1;if(Object(J.g)(g)){if(U.autoClosingQuotes==="never")return!1}else if(U.autoClosingBrackets==="never")return!1;for(var s=S[v.column-1],l=!1,d=0,p=u;d<p.length;d++){var E=p[d];E.open===g&&E.close===s&&(l=!0)}if(!l)return!1}return!0},M._runAutoClosingPairDelete=function(U,A,c){for(var y=[],L=0,f=c.length;L<f;L++){var v=c[L].getPosition(),S=new H.a(v.lineNumber,v.column-1,v.lineNumber,v.column+1);y[L]=new re.a(S,"")}return[!0,y]},M.deleteLeft=function(U,A,c,y){if(this._isAutoClosingPairDelete(A,c,y))return this._runAutoClosingPairDelete(A,c,y);for(var L=[],f=U!==2,v=0,S=y.length;v<S;v++){var g=y[v],u=g;if(u.isEmpty()){var s=g.getPosition();if(A.useTabStops&&s.column>1){var l=c.getLineContent(s.lineNumber),d=T.q(l),p=d===-1?l.length+1:d+1;if(s.column<=p){var E=J.a.visibleColumnFromColumn2(A,c,s),_=J.a.prevIndentTabStop(E,A.indentSize),x=J.a.columnFromVisibleColumn2(A,c,s.lineNumber,_);u=new H.a(s.lineNumber,x,s.lineNumber,s.column)}else u=new H.a(s.lineNumber,s.column-1,s.lineNumber,s.column)}else{var F=N.a.left(A,c,s.lineNumber,s.column);u=new H.a(F.lineNumber,F.column,s.lineNumber,s.column)}}if(u.isEmpty()){L[v]=null;continue}u.startLineNumber!==u.endLineNumber&&(f=!0),L[v]=new re.a(u,"")}return[f,L]},M.cut=function(U,A,c){for(var y=[],L=0,f=c.length;L<f;L++){var v=c[L];if(v.isEmpty())if(U.emptySelectionClipboard){var S=v.getPosition(),g=void 0,u=void 0,s=void 0,l=void 0;S.lineNumber<A.getLineCount()?(g=S.lineNumber,u=1,s=S.lineNumber+1,l=1):S.lineNumber>1?(g=S.lineNumber-1,u=A.getLineMaxColumn(S.lineNumber-1),s=S.lineNumber,l=A.getLineMaxColumn(S.lineNumber)):(g=S.lineNumber,u=1,s=S.lineNumber,l=A.getLineMaxColumn(S.lineNumber));var d=new H.a(g,u,s,l);d.isEmpty()?y[L]=null:y[L]=new re.a(d,"")}else y[L]=null;else y[L]=new re.a(v,"")}return new J.e(0,y,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},M}()},sswD:function(_t,P,e){"use strict";e.d(P,"a",function(){return S}),e.d(P,"c",function(){return g}),e.d(P,"b",function(){return u}),e.d(P,"j",function(){return s}),e.d(P,"e",function(){return l}),e.d(P,"k",function(){return d}),e.d(P,"l",function(){return p}),e.d(P,"g",function(){return E}),e.d(P,"f",function(){return _}),e.d(P,"i",function(){return x}),e.d(P,"h",function(){return F}),e.d(P,"d",function(){return R});var T=e("/cxE"),re=e("bY76"),J=e("Vxe3"),N=e("cGHE"),H=e("G2kB"),z=e("t49l"),M=e("fjLI"),U=e("nnTU"),A=e("T8No"),c=e("nrhi"),y=e("ic2d"),L=e("XXUj"),f=e("746U"),v=function(){var W=function(le,be){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Te){De.__proto__=Te}||function(De,Te){for(var ke in Te)Te.hasOwnProperty(ke)&&(De[ke]=Te[ke])},W(le,be)};return function(B,le){W(B,le);function be(){this.constructor=B}B.prototype=le===null?Object.create(le):(be.prototype=le.prototype,new be)}}(),S=function(){function W(B){this.id=B.id,this.precondition=B.precondition,this._kbOpts=B.kbOpts,this._menuOpts=B.menuOpts,this._description=B.description}return W.prototype.register=function(){var B=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var le=this._kbOpts.kbExpr;this.precondition&&(le?le=A.a.and(le,this.precondition):le=this.precondition),c.a.registerCommandAndKeybindingRule({id:this.id,handler:function(De,Te){return B.runCommand(De,Te)},weight:this._kbOpts.weight,when:le,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else U.a.registerCommand({id:this.id,handler:function(De,Te){return B.runCommand(De,Te)},description:this._description})},W.prototype._registerMenuItem=function(B){M.c.appendMenuItem(B.menuId,{group:B.group,command:{id:this.id,title:B.title},when:B.when,order:B.order})},W}(),g=function(W){v(B,W);function B(){return W!==null&&W.apply(this,arguments)||this}return B.bindToContribution=function(le){return function(be){v(De,be);function De(Te){var ke=be.call(this,Te)||this;return ke._callback=Te.handler,ke}return De.prototype.runEditorCommand=function(Te,ke,He){var je=le(ke);je&&this._callback(le(ke),He)},De}(B)},B.prototype.runCommand=function(le,be){var De=this,Te=le.get(J.a),ke=Te.getFocusedCodeEditor()||Te.getActiveCodeEditor();return ke?ke.invokeWithinContext(function(He){var je=He.get(A.c);return je.contextMatchesRules(Object(f.n)(De.precondition))?De.runEditorCommand(He,ke,be):void 0}):void 0},B}(S),u=function(W){v(B,W);function B(le){var be=W.call(this,B.convertOptions(le))||this;return be.label=le.label,be.alias=le.alias,be}return B.convertOptions=function(le){var be;Array.isArray(le.menuOpts)?be=le.menuOpts:le.menuOpts?be=[le.menuOpts]:be=[];function De(Te){return Te.menuId||(Te.menuId=7),Te.title||(Te.title=le.label),Te.when=A.a.and(le.precondition,Te.when),Te}return Array.isArray(le.contextMenuOpts)?be.push.apply(be,le.contextMenuOpts.map(De)):le.contextMenuOpts&&be.push(De(le.contextMenuOpts)),le.menuOpts=be,le},B.prototype.runEditorCommand=function(le,be,De){return this.reportTelemetry(le,be),this.run(le,be,De||{})},B.prototype.reportTelemetry=function(le,be){le.get(L.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},B}(g);function s(W,B){U.a.registerCommand(W,function(le,be){return B(le,be||{})})}function l(W,B){s(W,function(le,be){var De=be.resource,Te=be.position;if(!(De instanceof re.a))throw Object(T.b)("resource");if(!N.a.isIPosition(Te))throw Object(T.b)("position");var ke=le.get(H.a).getModel(De);if(ke){var He=N.a.lift(Te);return B(ke,He,be)}return le.get(z.a).createModelReference(De).then(function(je){return new Promise(function(oe,ee){try{var ae=B(je.object.textEditorModel,N.a.lift(Te),be);oe(ae)}catch(q){ee(q)}}).finally(function(){je.dispose()})})})}function d(W,B){U.a.registerCommand(W,function(le){for(var be=[],De=1;De<arguments.length;De++)be[De-1]=arguments[De];var Te=be[0],ke=be[1];Object(f.a)(re.a.isUri(Te)),Object(f.a)(N.a.isIPosition(ke));var He=le.get(H.a).getModel(Te);if(He){var je=N.a.lift(ke);return B(He,je,be.slice(2))}return le.get(z.a).createModelReference(Te).then(function(oe){return new Promise(function(ee,ae){try{var q=B(oe.object.textEditorModel,N.a.lift(ke),be.slice(2));ee(q)}catch(ce){ae(ce)}}).finally(function(){oe.dispose()})})})}function p(W,B){U.a.registerCommand(W,function(le){for(var be=[],De=1;De<arguments.length;De++)be[De-1]=arguments[De];var Te=be[0];Object(f.a)(re.a.isUri(Te));var ke=le.get(H.a).getModel(Te);return ke?B(ke,be.slice(1)):le.get(z.a).createModelReference(Te).then(function(He){return new Promise(function(je,oe){try{var ee=B(He.object.textEditorModel,be.slice(1));je(ee)}catch(ae){oe(ae)}}).finally(function(){He.dispose()})})})}function E(W){return ie.INSTANCE.registerEditorCommand(W),W}function _(W){ie.INSTANCE.registerEditorAction(new W)}function x(W){ie.INSTANCE.registerEditorAction(W)}function F(W,B){ie.INSTANCE.registerEditorContribution(W,B)}var R;(function(W){function B(ke){return ie.INSTANCE.getEditorCommand(ke)}W.getEditorCommand=B;function le(){return ie.INSTANCE.getEditorActions()}W.getEditorActions=le;function be(){return ie.INSTANCE.getEditorContributions()}W.getEditorContributions=be;function De(ke){return ie.INSTANCE.getEditorContributions().filter(function(He){return ke.indexOf(He.id)>=0})}W.getSomeEditorContributions=De;function Te(){return ie.INSTANCE.getDiffEditorContributions()}W.getDiffEditorContributions=Te})(R||(R={}));var $={EditorCommonContributions:"editor.contributions"},ie=function(){function W(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return W.prototype.registerEditorContribution=function(B,le){this.editorContributions.push({id:B,ctor:le})},W.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},W.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},W.prototype.registerEditorAction=function(B){B.register(),this.editorActions.push(B)},W.prototype.getEditorActions=function(){return this.editorActions.slice(0)},W.prototype.registerEditorCommand=function(B){B.register(),this.editorCommands[B.id]=B},W.prototype.getEditorCommand=function(B){return this.editorCommands[B]||null},W.INSTANCE=new W,W}();y.a.add($.EditorCommonContributions,ie.INSTANCE)},synD:function(_t,P,e){},t49l:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("textModelService")},t9D7:function(_t,P,e){"use strict";e.d(P,"c",function(){return H}),e.d(P,"f",function(){return z}),e.d(P,"b",function(){return U}),e.d(P,"d",function(){return A}),e.d(P,"a",function(){return c}),e.d(P,"e",function(){return f});var T=e("Cg/j"),re=e("pmY6"),J=e("ic2d"),N=e("MI8n"),H=Object(T.c)("themeService");function z(v){return{id:v}}var M="dark",U="hc";function A(v){switch(v){case M:return"vs-dark";case U:return"hc-black";default:return"vs"}}var c={ThemingContribution:"base.contributions.theming"},y=function(){function v(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new N.a}return v.prototype.onThemeChange=function(S){var g=this;return this.themingParticipants.push(S),this.onThemingParticipantAddedEmitter.fire(S),Object(re.h)(function(){var u=g.themingParticipants.indexOf(S);g.themingParticipants.splice(u,1)})},v.prototype.getThemingParticipants=function(){return this.themingParticipants},v}(),L=new y;J.a.add(c.ThemingContribution,L);function f(v){return L.onThemeChange(v)}},tADe:function(_t,P,e){"use strict";e.d(P,"c",function(){return N}),e.d(P,"a",function(){return H}),e.d(P,"b",function(){return z});var T=e("Cg/j"),re=e("3/fG"),J=e("S3by"),N;(function(M){M[M.Hint=1]="Hint",M[M.Info=2]="Info",M[M.Warning=4]="Warning",M[M.Error=8]="Error"})(N||(N={})),function(M){function U(f,v){return v-f}M.compare=U;var A=Object.create(null);A[M.Error]=Object(re.a)("sev.error","Error"),A[M.Warning]=Object(re.a)("sev.warning","Warning"),A[M.Info]=Object(re.a)("sev.info","Info");function c(f){return A[f]||""}M.toString=c;function y(f){switch(f){case J.a.Error:return M.Error;case J.a.Warning:return M.Warning;case J.a.Info:return M.Info;case J.a.Ignore:return M.Hint}}M.fromSeverity=y;function L(f){switch(f){case M.Error:return J.a.Error;case M.Warning:return J.a.Warning;case M.Info:return J.a.Info;case M.Hint:return J.a.Ignore}}M.toSeverity=L}(N||(N={}));var H;(function(M){var U="";function A(y){return c(y,!0)}M.makeKey=A;function c(y,L){var f=[U];return y.source?f.push(y.source.replace("\xA6","\xA6")):f.push(U),y.code?typeof y.code=="string"?f.push(y.code.replace("\xA6","\xA6")):f.push(y.code.value.replace("\xA6","\xA6")):f.push(U),y.severity!==void 0&&y.severity!==null?f.push(N.toString(y.severity)):f.push(U),y.message&&L?f.push(y.message.replace("\xA6","\xA6")):f.push(U),y.startLineNumber!==void 0&&y.startLineNumber!==null?f.push(y.startLineNumber.toString()):f.push(U),y.startColumn!==void 0&&y.startColumn!==null?f.push(y.startColumn.toString()):f.push(U),y.endLineNumber!==void 0&&y.endLineNumber!==null?f.push(y.endLineNumber.toString()):f.push(U),y.endColumn!==void 0&&y.endColumn!==null?f.push(y.endColumn.toString()):f.push(U),f.push(U),f.join("\xA6")}M.makeKeyOptionalMessage=c})(H||(H={}));var z=Object(T.c)("markerService")},tTk5:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("editorProgressService")},tX9W:function(_t,P,e){"use strict";e.d(P,"b",function(){return po}),e.d(P,"a",function(){return Un});var T=e("/cxE"),re=e("MI8n"),J=e("pmY6"),N=e("N0LK"),H=e("bY76"),z=e("/UlZ"),M=e("cGHE"),U=e("aokT"),A=e("gCVg"),c=e("M1Kb"),y=function(){function Le(D,j){this.beforeVersionId=D,this.beforeCursorState=j,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return Le.prototype.undo=function(D){for(var j=this.editOperations.length-1;j>=0;j--)this.editOperations[j]={operations:D.applyEdits(this.editOperations[j].operations)}},Le.prototype.redo=function(D){for(var j=0;j<this.editOperations.length;j++)this.editOperations[j]={operations:D.applyEdits(this.editOperations[j].operations)}},Le}();function L(Le){var D=Le.getEOL();return D===`
`?0:1}var f=function(){function Le(D,j){this.beforeVersionId=D,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=j}return Le.prototype.undo=function(D){var j=L(D);D.setEOL(this.eol),this.eol=j},Le.prototype.redo=function(D){var j=L(D);D.setEOL(this.eol),this.eol=j},Le}(),v=function(){function Le(D){this.model=D,this.currentOpenStackElement=null,this.past=[],this.future=[]}return Le.prototype.pushStackElement=function(){this.currentOpenStackElement!==null&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},Le.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},Le.prototype.pushEOL=function(D){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var j=L(this.model),Z=new f(this.model.getAlternativeVersionId(),j);this.model.setEOL(D),Z.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=Z,this.pushStackElement()},Le.prototype.pushEditOperation=function(D,j,Z){this.future=[];var xe=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof y?xe=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(xe=new y(this.model.getAlternativeVersionId(),D),this.currentOpenStackElement=xe);var Ae={operations:this.model.applyEdits(j)};return xe.editOperations.push(Ae),xe.afterCursorState=Le._computeCursorState(Z,Ae.operations),xe.afterVersionId=this.model.getVersionId(),xe.afterCursorState},Le._computeCursorState=function(D,j){try{return D?D(j):null}catch(Z){return Object(T.e)(Z),null}},Le.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var D=this.past.pop();try{D.undo(this.model)}catch(j){return Object(T.e)(j),this.clear(),null}return this.future.push(D),{selections:D.beforeCursorState,recordedVersionId:D.beforeVersionId}}return null},Le.prototype.canUndo=function(){return this.past.length>0||this.currentOpenStackElement!==null},Le.prototype.redo=function(){if(this.future.length>0){var D=this.future.pop();try{D.redo(this.model)}catch(j){return Object(T.e)(j),this.clear(),null}return this.past.push(D),{selections:D.afterCursorState,recordedVersionId:D.afterVersionId}}return null},Le.prototype.canRedo=function(){return this.future.length>0},Le}(),S=function(){function Le(){this.spacesDiff=0,this.looksLikeAlignment=!1}return Le}();function g(Le,D,j,Z,xe){xe.spacesDiff=0,xe.looksLikeAlignment=!1;var Ae;for(Ae=0;Ae<D&&Ae<Z;Ae++){var Ie=Le.charCodeAt(Ae),dt=j.charCodeAt(Ae);if(Ie!==dt)break}for(var ht=0,At=0,Bt=Ae;Bt<D;Bt++){var Ie=Le.charCodeAt(Bt);Ie===32?ht++:At++}for(var Ut=0,Ht=0,Bt=Ae;Bt<Z;Bt++){var dt=j.charCodeAt(Bt);dt===32?Ut++:Ht++}if(ht>0&&At>0)return;if(Ut>0&&Ht>0)return;var nn=Math.abs(At-Ht),Zt=Math.abs(ht-Ut);if(nn===0){xe.spacesDiff=Zt,Zt>0&&0<=Ut-1&&Ut-1<Le.length&&Ut<j.length&&(j.charCodeAt(Ut)!==32&&Le.charCodeAt(Ut-1)===32&&(Le.charCodeAt(Le.length-1)===44&&(xe.looksLikeAlignment=!0)));return}if(Zt%nn===0){xe.spacesDiff=Zt/nn;return}}function u(Le,D,j){for(var Z=Math.min(Le.getLineCount(),1e4),xe=0,Ae=0,Ie="",dt=0,ht=[2,4,6,8,3,5,7],At=8,Bt=[0,0,0,0,0,0,0,0,0],Ut=new S,Ht=1;Ht<=Z;Ht++){for(var nn=Le.getLineLength(Ht),Zt=Le.getLineContent(Ht),fn=nn<=65536,yt=!1,Ue=0,Me=0,rt=0,Nt=0,ge=nn;Nt<ge;Nt++){var O=fn?Zt.charCodeAt(Nt):Le.getLineCharCode(Ht,Nt);if(O===9)rt++;else if(O===32)Me++;else{yt=!0,Ue=Nt;break}}if(!yt)continue;if(rt>0?xe++:Me>1&&Ae++,g(Ie,dt,Zt,Ue,Ut),Ut.looksLikeAlignment&&!(j&&D===Ut.spacesDiff))continue;var ye=Ut.spacesDiff;ye<=At&&Bt[ye]++,Ie=Zt,dt=Ue}var We=j;xe!==Ae&&(We=xe<Ae);var Ze=D;if(We){var st=We?0:.1*Z;ht.forEach(function(pt){var Kt=Bt[pt];Kt>st&&(st=Kt,Ze=pt)}),Ze===4&&Bt[4]>0&&Bt[2]>0&&Bt[2]>=Bt[4]/2&&(Ze=2)}return{insertSpaces:We,tabSize:Ze}}function s(Le){return(Le.metadata&1)>>>0}function l(Le,D){Le.metadata=Le.metadata&254|D<<0}function d(Le){return(Le.metadata&2)>>>1===1}function p(Le,D){Le.metadata=Le.metadata&253|(D?1:0)<<1}function E(Le){return(Le.metadata&4)>>>2===1}function _(Le,D){Le.metadata=Le.metadata&251|(D?1:0)<<2}function x(Le){return(Le.metadata&8)>>>3===1}function F(Le,D){Le.metadata=Le.metadata&247|(D?1:0)<<3}function R(Le){return(Le.metadata&48)>>>4}function $(Le,D){Le.metadata=Le.metadata&207|D<<4}function ie(Le){return(Le.metadata&64)>>>6===1}function W(Le,D){Le.metadata=Le.metadata&191|(D?1:0)<<6}var B=function(){function Le(D,j,Z){this.metadata=0,this.parent=this,this.left=this,this.right=this,l(this,1),this.start=j,this.end=Z,this.delta=0,this.maxEnd=Z,this.id=D,this.ownerId=0,this.options=null,_(this,!1),$(this,1),F(this,!1),W(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=j,this.cachedAbsoluteEnd=Z,this.range=null,p(this,!1)}return Le.prototype.reset=function(D,j,Z,xe){this.start=j,this.end=Z,this.maxEnd=Z,this.cachedVersionId=D,this.cachedAbsoluteStart=j,this.cachedAbsoluteEnd=Z,this.range=xe},Le.prototype.setOptions=function(D){this.options=D;var j=this.options.className;_(this,j==="squiggly-error"||j==="squiggly-warning"||j==="squiggly-info"),$(this,this.options.stickiness),F(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),W(this,this.options.collapseOnReplaceEdit)},Le.prototype.setCachedOffsets=function(D,j,Z){this.cachedVersionId!==Z&&(this.range=null),this.cachedVersionId=Z,this.cachedAbsoluteStart=D,this.cachedAbsoluteEnd=j},Le.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},Le}(),le=new B(null,0,0);le.parent=le,le.left=le,le.right=le,l(le,0);var be=function(){function Le(){this.root=le,this.requestNormalizeDelta=!1}return Le.prototype.intervalSearch=function(D,j,Z,xe,Ae){return this.root===le?[]:q(this,D,j,Z,xe,Ae)},Le.prototype.search=function(D,j,Z){return this.root===le?[]:ae(this,D,j,Z)},Le.prototype.collectNodesFromOwner=function(D){return oe(this,D)},Le.prototype.collectNodesPostOrder=function(){return ee(this)},Le.prototype.insert=function(D){ce(this,D),this._normalizeDeltaIfNecessary()},Le.prototype.delete=function(D){he(this,D),this._normalizeDeltaIfNecessary()},Le.prototype.resolveNode=function(D,j){for(var Z=D,xe=0;D!==this.root;)D===D.parent.right&&(xe+=D.parent.delta),D=D.parent;var Ae=Z.start+xe,Ie=Z.end+xe;Z.setCachedOffsets(Ae,Ie,j)},Le.prototype.acceptReplace=function(D,j,Z,xe){for(var Ae=He(this,D,D+j),Ie=0,dt=Ae.length;Ie<dt;Ie++){var ht=Ae[Ie];he(this,ht)}this._normalizeDeltaIfNecessary(),je(this,D,D+j,Z),this._normalizeDeltaIfNecessary();for(var Ie=0,dt=Ae.length;Ie<dt;Ie++){var ht=Ae[Ie];ht.start=ht.cachedAbsoluteStart,ht.end=ht.cachedAbsoluteEnd,ke(ht,D,D+j,Z,xe),ht.maxEnd=ht.end,ce(this,ht)}this._normalizeDeltaIfNecessary()},Le.prototype._normalizeDeltaIfNecessary=function(){if(!this.requestNormalizeDelta)return;this.requestNormalizeDelta=!1,De(this)},Le}();function De(Le){for(var D=Le.root,j=0;D!==le;){if(D.left!==le&&!d(D.left)){D=D.left;continue}if(D.right!==le&&!d(D.right)){j+=D.delta,D=D.right;continue}D.start=j+D.start,D.end=j+D.end,D.delta=0,Re(D),p(D,!0),p(D.left,!1),p(D.right,!1),D===D.parent.right&&(j-=D.parent.delta),D=D.parent}p(Le.root,!1)}function Te(Le,D,j,Z){return Le<j?!0:Le>j||Z===1?!1:Z===2?!0:D}function ke(Le,D,j,Z,xe){var Ae=R(Le),Ie=Ae===0||Ae===2,dt=Ae===1||Ae===2,ht=j-D,At=Z,Bt=Math.min(ht,At),Ut=Le.start,Ht=!1,nn=Le.end,Zt=!1;D<=Ut&&nn<=j&&ie(Le)&&(Le.start=D,Ht=!0,Le.end=D,Zt=!0);{var fn=xe?1:ht>0?2:0;!Ht&&Te(Ut,Ie,D,fn)&&(Ht=!0),!Zt&&Te(nn,dt,D,fn)&&(Zt=!0)}if(Bt>0&&!xe){var fn=ht>At?2:0;!Ht&&Te(Ut,Ie,D+Bt,fn)&&(Ht=!0),!Zt&&Te(nn,dt,D+Bt,fn)&&(Zt=!0)}{var fn=xe?1:0;!Ht&&Te(Ut,Ie,j,fn)&&(Le.start=D+At,Ht=!0),!Zt&&Te(nn,dt,j,fn)&&(Le.end=D+At,Zt=!0)}var yt=At-ht;Ht||(Le.start=Math.max(0,Ut+yt)),Zt||(Le.end=Math.max(0,nn+yt)),Le.start>Le.end&&(Le.end=Le.start)}function He(Le,D,j){for(var Z=Le.root,xe=0,Ae=0,Ie=0,dt=0,ht=[],At=0;Z!==le;){if(d(Z)){p(Z.left,!1),p(Z.right,!1),Z===Z.parent.right&&(xe-=Z.parent.delta),Z=Z.parent;continue}if(!d(Z.left)){if(Ae=xe+Z.maxEnd,Ae<D){p(Z,!0);continue}if(Z.left!==le){Z=Z.left;continue}}if(Ie=xe+Z.start,Ie>j){p(Z,!0);continue}if(dt=xe+Z.end,dt>=D&&(Z.setCachedOffsets(Ie,dt,0),ht[At++]=Z),p(Z,!0),Z.right!==le&&!d(Z.right)){xe+=Z.delta,Z=Z.right;continue}}return p(Le.root,!1),ht}function je(Le,D,j,Z){for(var xe=Le.root,Ae=0,Ie=0,dt=0,ht=Z-(j-D);xe!==le;){if(d(xe)){p(xe.left,!1),p(xe.right,!1),xe===xe.parent.right&&(Ae-=xe.parent.delta),Re(xe),xe=xe.parent;continue}if(!d(xe.left)){if(Ie=Ae+xe.maxEnd,Ie<D){p(xe,!0);continue}if(xe.left!==le){xe=xe.left;continue}}if(dt=Ae+xe.start,dt>j){xe.start+=ht,xe.end+=ht,xe.delta+=ht,(xe.delta<-1073741824||xe.delta>1073741824)&&(Le.requestNormalizeDelta=!0),p(xe,!0);continue}if(p(xe,!0),xe.right!==le&&!d(xe.right)){Ae+=xe.delta,xe=xe.right;continue}}p(Le.root,!1)}function oe(Le,D){for(var j=Le.root,Z=[],xe=0;j!==le;){if(d(j)){p(j.left,!1),p(j.right,!1),j=j.parent;continue}if(j.left!==le&&!d(j.left)){j=j.left;continue}if(j.ownerId===D&&(Z[xe++]=j),p(j,!0),j.right!==le&&!d(j.right)){j=j.right;continue}}return p(Le.root,!1),Z}function ee(Le){for(var D=Le.root,j=[],Z=0;D!==le;){if(d(D)){p(D.left,!1),p(D.right,!1),D=D.parent;continue}if(D.left!==le&&!d(D.left)){D=D.left;continue}if(D.right!==le&&!d(D.right)){D=D.right;continue}j[Z++]=D,p(D,!0)}return p(Le.root,!1),j}function ae(Le,D,j,Z){for(var xe=Le.root,Ae=0,Ie=0,dt=0,ht=[],At=0;xe!==le;){if(d(xe)){p(xe.left,!1),p(xe.right,!1),xe===xe.parent.right&&(Ae-=xe.parent.delta),xe=xe.parent;continue}if(xe.left!==le&&!d(xe.left)){xe=xe.left;continue}Ie=Ae+xe.start,dt=Ae+xe.end,xe.setCachedOffsets(Ie,dt,Z);var Bt=!0;if(D&&xe.ownerId&&xe.ownerId!==D&&(Bt=!1),j&&E(xe)&&(Bt=!1),Bt&&(ht[At++]=xe),p(xe,!0),xe.right!==le&&!d(xe.right)){Ae+=xe.delta,xe=xe.right;continue}}return p(Le.root,!1),ht}function q(Le,D,j,Z,xe,Ae){for(var Ie=Le.root,dt=0,ht=0,At=0,Bt=0,Ut=[],Ht=0;Ie!==le;){if(d(Ie)){p(Ie.left,!1),p(Ie.right,!1),Ie===Ie.parent.right&&(dt-=Ie.parent.delta),Ie=Ie.parent;continue}if(!d(Ie.left)){if(ht=dt+Ie.maxEnd,ht<D){p(Ie,!0);continue}if(Ie.left!==le){Ie=Ie.left;continue}}if(At=dt+Ie.start,At>j){p(Ie,!0);continue}if(Bt=dt+Ie.end,Bt>=D){Ie.setCachedOffsets(At,Bt,Ae);var nn=!0;Z&&Ie.ownerId&&Ie.ownerId!==Z&&(nn=!1),xe&&E(Ie)&&(nn=!1),nn&&(Ut[Ht++]=Ie)}if(p(Ie,!0),Ie.right!==le&&!d(Ie.right)){dt+=Ie.delta,Ie=Ie.right;continue}}return p(Le.root,!1),Ut}function ce(Le,D){if(Le.root===le)return D.parent=le,D.left=le,D.right=le,l(D,0),Le.root=D,Le.root;X(Le,D),Ee(D.parent);for(var j=D;j!==Le.root&&s(j.parent)===1;)if(j.parent===j.parent.parent.left){var Z=j.parent.parent.right;s(Z)===1?(l(j.parent,0),l(Z,0),l(j.parent.parent,1),j=j.parent.parent):(j===j.parent.right&&(j=j.parent,pe(Le,j)),l(j.parent,0),l(j.parent.parent,1),me(Le,j.parent.parent))}else{var Z=j.parent.parent.left;s(Z)===1?(l(j.parent,0),l(Z,0),l(j.parent.parent,1),j=j.parent.parent):(j===j.parent.left&&(j=j.parent,me(Le,j)),l(j.parent,0),l(j.parent.parent,1),pe(Le,j.parent.parent))}return l(Le.root,0),D}function X(Le,D){for(var j=0,Z=Le.root,xe=D.start,Ae=D.end;;){var Ie=ve(xe,Ae,Z.start+j,Z.end+j);if(Ie<0)if(Z.left===le){D.start-=j,D.end-=j,D.maxEnd-=j,Z.left=D;break}else Z=Z.left;else if(Z.right===le){D.start-=j+Z.delta,D.end-=j+Z.delta,D.maxEnd-=j+Z.delta,Z.right=D;break}else j+=Z.delta,Z=Z.right}D.parent=Z,D.left=le,D.right=le,l(D,1)}function he(Le,D){var j,Z;if(D.left===le?(j=D.right,Z=D,j.delta+=D.delta,(j.delta<-1073741824||j.delta>1073741824)&&(Le.requestNormalizeDelta=!0),j.start+=D.delta,j.end+=D.delta):D.right===le?(j=D.left,Z=D):(Z=Pe(D.right),j=Z.right,j.start+=Z.delta,j.end+=Z.delta,j.delta+=Z.delta,(j.delta<-1073741824||j.delta>1073741824)&&(Le.requestNormalizeDelta=!0),Z.start+=D.delta,Z.end+=D.delta,Z.delta=D.delta,(Z.delta<-1073741824||Z.delta>1073741824)&&(Le.requestNormalizeDelta=!0)),Z===Le.root){Le.root=j,l(j,0),D.detach(),Xe(),Re(j),Le.root.parent=le;return}var xe=s(Z)===1;if(Z===Z.parent.left?Z.parent.left=j:Z.parent.right=j,Z===D?j.parent=Z.parent:(Z.parent===D?j.parent=Z:j.parent=Z.parent,Z.left=D.left,Z.right=D.right,Z.parent=D.parent,l(Z,s(D)),D===Le.root?Le.root=Z:D===D.parent.left?D.parent.left=Z:D.parent.right=Z,Z.left!==le&&(Z.left.parent=Z),Z.right!==le&&(Z.right.parent=Z)),D.detach(),xe){Ee(j.parent),Z!==D&&(Ee(Z),Ee(Z.parent)),Xe();return}Ee(j),Ee(j.parent),Z!==D&&(Ee(Z),Ee(Z.parent));for(var Ae;j!==Le.root&&s(j)===0;)j===j.parent.left?(Ae=j.parent.right,s(Ae)===1&&(l(Ae,0),l(j.parent,1),pe(Le,j.parent),Ae=j.parent.right),s(Ae.left)===0&&s(Ae.right)===0?(l(Ae,1),j=j.parent):(s(Ae.right)===0&&(l(Ae.left,0),l(Ae,1),me(Le,Ae),Ae=j.parent.right),l(Ae,s(j.parent)),l(j.parent,0),l(Ae.right,0),pe(Le,j.parent),j=Le.root)):(Ae=j.parent.left,s(Ae)===1&&(l(Ae,0),l(j.parent,1),me(Le,j.parent),Ae=j.parent.left),s(Ae.left)===0&&s(Ae.right)===0?(l(Ae,1),j=j.parent):(s(Ae.left)===0&&(l(Ae.right,0),l(Ae,1),pe(Le,Ae),Ae=j.parent.left),l(Ae,s(j.parent)),l(j.parent,0),l(Ae.left,0),me(Le,j.parent),j=Le.root));l(j,0),Xe()}function Pe(Le){for(;Le.left!==le;)Le=Le.left;return Le}function Xe(){le.parent=le,le.delta=0,le.start=0,le.end=0}function pe(Le,D){var j=D.right;j.delta+=D.delta,(j.delta<-1073741824||j.delta>1073741824)&&(Le.requestNormalizeDelta=!0),j.start+=D.delta,j.end+=D.delta,D.right=j.left,j.left!==le&&(j.left.parent=D),j.parent=D.parent,D.parent===le?Le.root=j:D===D.parent.left?D.parent.left=j:D.parent.right=j,j.left=D,D.parent=j,Re(D),Re(j)}function me(Le,D){var j=D.left;D.delta-=j.delta,(D.delta<-1073741824||D.delta>1073741824)&&(Le.requestNormalizeDelta=!0),D.start-=j.delta,D.end-=j.delta,D.left=j.right,j.right!==le&&(j.right.parent=D),j.parent=D.parent,D.parent===le?Le.root=j:D===D.parent.right?D.parent.right=j:D.parent.left=j,j.right=D,D.parent=j,Re(D),Re(j)}function Se(Le){var D=Le.end;if(Le.left!==le){var j=Le.left.maxEnd;j>D&&(D=j)}if(Le.right!==le){var Z=Le.right.maxEnd+Le.delta;Z>D&&(D=Z)}return D}function Re(Le){Le.maxEnd=Se(Le)}function Ee(Le){for(;Le!==le;){var D=Se(Le);if(Le.maxEnd===D)return;Le.maxEnd=D,Le=Le.parent}}function ve(Le,D,j,Z){return Le===j?D-Z:Le-j}var Q=function(){function Le(D,j){this.piece=D,this.color=j,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return Le.prototype.next=function(){if(this.right!==b)return k(this.right);for(var D=this;D.parent!==b&&!(D.parent.left===D);)D=D.parent;return D.parent===b?b:D.parent},Le.prototype.prev=function(){if(this.left!==b)return se(this.left);for(var D=this;D.parent!==b&&!(D.parent.right===D);)D=D.parent;return D.parent===b?b:D.parent},Le.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},Le}(),b=new Q(null,0);b.parent=b,b.left=b,b.right=b,b.color=0;function k(Le){for(;Le.left!==b;)Le=Le.left;return Le}function se(Le){for(;Le.right!==b;)Le=Le.right;return Le}function ne(Le){return Le===b?0:Le.size_left+Le.piece.length+ne(Le.right)}function Ce(Le){return Le===b?0:Le.lf_left+Le.piece.lineFeedCnt+Ce(Le.right)}function Oe(){b.parent=b}function we(Le,D){var j=D.right;j.size_left+=D.size_left+(D.piece?D.piece.length:0),j.lf_left+=D.lf_left+(D.piece?D.piece.lineFeedCnt:0),D.right=j.left,j.left!==b&&(j.left.parent=D),j.parent=D.parent,D.parent===b?Le.root=j:D.parent.left===D?D.parent.left=j:D.parent.right=j,j.left=D,D.parent=j}function Ve(Le,D){var j=D.left;D.left=j.right,j.right!==b&&(j.right.parent=D),j.parent=D.parent,D.size_left-=j.size_left+(j.piece?j.piece.length:0),D.lf_left-=j.lf_left+(j.piece?j.piece.lineFeedCnt:0),D.parent===b?Le.root=j:D===D.parent.right?D.parent.right=j:D.parent.left=j,j.right=D,D.parent=j}function Qe(Le,D){var j,Z;if(D.left===b?(Z=D,j=Z.right):D.right===b?(Z=D,j=Z.left):(Z=k(D.right),j=Z.right),Z===Le.root){Le.root=j,j.color=0,D.detach(),Oe(),Le.root.parent=b;return}var xe=Z.color===1;if(Z===Z.parent.left?Z.parent.left=j:Z.parent.right=j,Z===D?(j.parent=Z.parent,Rt(Le,j)):(Z.parent===D?j.parent=Z:j.parent=Z.parent,Rt(Le,j),Z.left=D.left,Z.right=D.right,Z.parent=D.parent,Z.color=D.color,D===Le.root?Le.root=Z:D===D.parent.left?D.parent.left=Z:D.parent.right=Z,Z.left!==b&&(Z.left.parent=Z),Z.right!==b&&(Z.right.parent=Z),Z.size_left=D.size_left,Z.lf_left=D.lf_left,Rt(Le,Z)),D.detach(),j.parent.left===j){var Ae=ne(j),Ie=Ce(j);if(Ae!==j.parent.size_left||Ie!==j.parent.lf_left){var dt=Ae-j.parent.size_left,ht=Ie-j.parent.lf_left;j.parent.size_left=Ae,j.parent.lf_left=Ie,gt(Le,j.parent,dt,ht)}}if(Rt(Le,j.parent),xe){Oe();return}for(var At;j!==Le.root&&j.color===0;)j===j.parent.left?(At=j.parent.right,At.color===1&&(At.color=0,j.parent.color=1,we(Le,j.parent),At=j.parent.right),At.left.color===0&&At.right.color===0?(At.color=1,j=j.parent):(At.right.color===0&&(At.left.color=0,At.color=1,Ve(Le,At),At=j.parent.right),At.color=j.parent.color,j.parent.color=0,At.right.color=0,we(Le,j.parent),j=Le.root)):(At=j.parent.left,At.color===1&&(At.color=0,j.parent.color=1,Ve(Le,j.parent),At=j.parent.left),At.left.color===0&&At.right.color===0?(At.color=1,j=j.parent):(At.left.color===0&&(At.right.color=0,At.color=1,we(Le,At),At=j.parent.left),At.color=j.parent.color,j.parent.color=0,At.left.color=0,Ve(Le,j.parent),j=Le.root));j.color=0,Oe()}function it(Le,D){for(Rt(Le,D);D!==Le.root&&D.parent.color===1;)if(D.parent===D.parent.parent.left){var j=D.parent.parent.right;j.color===1?(D.parent.color=0,j.color=0,D.parent.parent.color=1,D=D.parent.parent):(D===D.parent.right&&(D=D.parent,we(Le,D)),D.parent.color=0,D.parent.parent.color=1,Ve(Le,D.parent.parent))}else{var j=D.parent.parent.left;j.color===1?(D.parent.color=0,j.color=0,D.parent.parent.color=1,D=D.parent.parent):(D===D.parent.left&&(D=D.parent,Ve(Le,D)),D.parent.color=0,D.parent.parent.color=1,we(Le,D.parent.parent))}Le.root.color=0}function gt(Le,D,j,Z){for(;D!==Le.root&&D!==b;)D.parent.left===D&&(D.parent.size_left+=j,D.parent.lf_left+=Z),D=D.parent}function Rt(Le,D){var j=0,Z=0;if(D===Le.root)return;if(j===0){for(;D!==Le.root&&D===D.parent.right;)D=D.parent;if(D===Le.root)return;D=D.parent,j=ne(D.left)-D.size_left,Z=Ce(D.left)-D.lf_left,D.size_left+=j,D.lf_left+=Z}for(;D!==Le.root&&(j!==0||Z!==0);)D.parent.left===D&&(D.parent.size_left+=j,D.parent.lf_left+=Z),D=D.parent}var Dt=e("jAJ/"),zt=65535;function cn(Le){var D;return Le[Le.length-1]<65536?D=new Uint16Array(Le.length):D=new Uint32Array(Le.length),D.set(Le,0),D}var ln=function(){function Le(D,j,Z,xe,Ae){this.lineStarts=D,this.cr=j,this.lf=Z,this.crlf=xe,this.isBasicASCII=Ae}return Le}();function an(Le,D){D===void 0&&(D=!0);for(var j=[0],Z=1,xe=0,Ae=Le.length;xe<Ae;xe++){var Ie=Le.charCodeAt(xe);Ie===13?xe+1<Ae&&Le.charCodeAt(xe+1)===10?(j[Z++]=xe+2,xe++):j[Z++]=xe+1:Ie===10&&(j[Z++]=xe+1)}return D?cn(j):j}function jt(Le,D){Le.length=0,Le[0]=0;for(var j=1,Z=0,xe=0,Ae=0,Ie=!0,dt=0,ht=D.length;dt<ht;dt++){var At=D.charCodeAt(dt);At===13?dt+1<ht&&D.charCodeAt(dt+1)===10?(Ae++,Le[j++]=dt+2,dt++):(Z++,Le[j++]=dt+1):At===10?(xe++,Le[j++]=dt+1):Ie&&(At!==9&&(At<32||At>126)&&(Ie=!1))}var Bt=new ln(cn(Le),Z,xe,Ae,Ie);return Le.length=0,Bt}var ft=function(){function Le(D,j,Z,xe,Ae){this.bufferIndex=D,this.start=j,this.end=Z,this.lineFeedCnt=xe,this.length=Ae}return Le}(),vt=function(){function Le(D,j){this.buffer=D,this.lineStarts=j}return Le}(),xt=function(){function Le(D){this._limit=D,this._cache=[]}return Le.prototype.get=function(D){for(var j=this._cache.length-1;j>=0;j--){var Z=this._cache[j];if(Z.nodeStartOffset<=D&&Z.nodeStartOffset+Z.node.piece.length>=D)return Z}return null},Le.prototype.get2=function(D){for(var j=this._cache.length-1;j>=0;j--){var Z=this._cache[j];if(Z.nodeStartLineNumber&&Z.nodeStartLineNumber<D&&Z.nodeStartLineNumber+Z.node.piece.lineFeedCnt>=D)return Z}return null},Le.prototype.set=function(D){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(D)},Le.prototype.valdiate=function(D){for(var j=!1,Z=this._cache,xe=0;xe<Z.length;xe++){var Ae=Z[xe];if(Ae.node.parent===null||Ae.nodeStartOffset>=D){Z[xe]=null,j=!0;continue}}if(j){for(var Ie=[],dt=0,ht=Z;dt<ht.length;dt++){var At=ht[dt];At!==null&&Ie.push(At)}this._cache=Ie}},Le}(),at=function(){function Le(D,j,Z){this.create(D,j,Z)}return Le.prototype.create=function(D,j,Z){this._buffers=[new vt("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=b,this._lineCnt=1,this._length=0,this._EOL=j,this._EOLLength=j.length,this._EOLNormalized=Z;for(var xe=null,Ae=0,Ie=D.length;Ae<Ie;Ae++)if(D[Ae].buffer.length>0){D[Ae].lineStarts||(D[Ae].lineStarts=an(D[Ae].buffer));var dt=new ft(Ae+1,{line:0,column:0},{line:D[Ae].lineStarts.length-1,column:D[Ae].buffer.length-D[Ae].lineStarts[D[Ae].lineStarts.length-1]},D[Ae].lineStarts.length-1,D[Ae].buffer.length);this._buffers.push(D[Ae]),xe=this.rbInsertRight(xe,dt)}this._searchCache=new xt(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},Le.prototype.normalizeEOL=function(D){var j=this,Z=zt,xe=Z-Math.floor(Z/3),Ae=xe*2,Ie="",dt=0,ht=[];if(this.iterate(this.root,function(Bt){var Ut=j.getNodeContent(Bt),Ht=Ut.length;if(dt<=xe||dt+Ht<Ae)return Ie+=Ut,dt+=Ht,!0;var nn=Ie.replace(/\r\n|\r|\n/g,D);return ht.push(new vt(nn,an(nn))),Ie=Ut,dt=Ht,!0}),dt>0){var At=Ie.replace(/\r\n|\r|\n/g,D);ht.push(new vt(At,an(At)))}this.create(ht,D,!0)},Le.prototype.getEOL=function(){return this._EOL},Le.prototype.setEOL=function(D){this._EOL=D,this._EOLLength=this._EOL.length,this.normalizeEOL(D)},Le.prototype.getOffsetAt=function(D,j){for(var Z=0,xe=this.root;xe!==b;)if(xe.left!==b&&xe.lf_left+1>=D)xe=xe.left;else if(xe.lf_left+xe.piece.lineFeedCnt+1>=D){Z+=xe.size_left;var Ae=this.getAccumulatedValue(xe,D-xe.lf_left-2);return Z+=Ae+j-1}else D-=xe.lf_left+xe.piece.lineFeedCnt,Z+=xe.size_left+xe.piece.length,xe=xe.right;return Z},Le.prototype.getPositionAt=function(D){D=Math.floor(D),D=Math.max(0,D);for(var j=this.root,Z=0,xe=D;j!==b;)if(j.size_left!==0&&j.size_left>=D)j=j.left;else if(j.size_left+j.piece.length>=D){var Ae=this.getIndexOf(j,D-j.size_left);if(Z+=j.lf_left+Ae.index,Ae.index===0){var Ie=this.getOffsetAt(Z+1,1),dt=xe-Ie;return new M.a(Z+1,dt+1)}return new M.a(Z+1,Ae.remainder+1)}else if(D-=j.size_left+j.piece.length,Z+=j.lf_left+j.piece.lineFeedCnt,j.right===b){var Ie=this.getOffsetAt(Z+1,1),dt=xe-D-Ie;return new M.a(Z+1,dt+1)}else j=j.right;return new M.a(1,1)},Le.prototype.getValueInRange=function(D,j){if(D.startLineNumber===D.endLineNumber&&D.startColumn===D.endColumn)return"";var Z=this.nodeAt2(D.startLineNumber,D.startColumn),xe=this.nodeAt2(D.endLineNumber,D.endColumn),Ae=this.getValueInRange2(Z,xe);return j?j!==this._EOL||!this._EOLNormalized?Ae.replace(/\r\n|\r|\n/g,j):j===this.getEOL()&&this._EOLNormalized?(j===`\r
`,Ae):Ae.replace(/\r\n|\r|\n/g,j):Ae},Le.prototype.getValueInRange2=function(D,j){if(D.node===j.node){var Z=D.node,xe=this._buffers[Z.piece.bufferIndex].buffer,Ae=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return xe.substring(Ae+D.remainder,Ae+j.remainder)}var Ie=D.node,dt=this._buffers[Ie.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Ie.piece.bufferIndex,Ie.piece.start),At=dt.substring(ht+D.remainder,ht+Ie.piece.length);for(Ie=Ie.next();Ie!==b;){var Bt=this._buffers[Ie.piece.bufferIndex].buffer,Ut=this.offsetInBuffer(Ie.piece.bufferIndex,Ie.piece.start);if(Ie===j.node){At+=Bt.substring(Ut,Ut+j.remainder);break}else At+=Bt.substr(Ut,Ie.piece.length);Ie=Ie.next()}return At},Le.prototype.getLinesContent=function(){var D=this,j=[],Z=0,xe="",Ae=!1;return this.iterate(this.root,function(Ie){if(Ie===b)return!0;var dt=Ie.piece,ht=dt.length;if(ht===0)return!0;var At=D._buffers[dt.bufferIndex].buffer,Bt=D._buffers[dt.bufferIndex].lineStarts,Ut=dt.start.line,Ht=dt.end.line,nn=Bt[Ut]+dt.start.column;if(Ae&&(At.charCodeAt(nn)===10&&(nn++,ht--),j[Z++]=xe,xe="",Ae=!1,ht===0))return!0;if(Ut===Ht)return!D._EOLNormalized&&At.charCodeAt(nn+ht-1)===13?(Ae=!0,xe+=At.substr(nn,ht-1)):xe+=At.substr(nn,ht),!0;xe+=D._EOLNormalized?At.substring(nn,Math.max(nn,Bt[Ut+1]-D._EOLLength)):At.substring(nn,Bt[Ut+1]).replace(/(\r\n|\r|\n)$/,""),j[Z++]=xe;for(var Zt=Ut+1;Zt<Ht;Zt++)xe=D._EOLNormalized?At.substring(Bt[Zt],Bt[Zt+1]-D._EOLLength):At.substring(Bt[Zt],Bt[Zt+1]).replace(/(\r\n|\r|\n)$/,""),j[Z++]=xe;return!D._EOLNormalized&&At.charCodeAt(Bt[Ht]+dt.end.column-1)===13?(Ae=!0,dt.end.column===0?Z--:xe=At.substr(Bt[Ht],dt.end.column-1)):xe=At.substr(Bt[Ht],dt.end.column),!0}),Ae&&(j[Z++]=xe,xe=""),j[Z++]=xe,j},Le.prototype.getLength=function(){return this._length},Le.prototype.getLineCount=function(){return this._lineCnt},Le.prototype.getLineContent=function(D){return this._lastVisitedLine.lineNumber===D?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=D,D===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(D):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(D,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(D).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},Le.prototype.getLineCharCode=function(D,j){var Z=this.nodeAt2(D,j+1);if(Z.remainder===Z.node.piece.length){var xe=Z.node.next();if(!xe)return 0;var Ae=this._buffers[xe.piece.bufferIndex],Ie=this.offsetInBuffer(xe.piece.bufferIndex,xe.piece.start);return Ae.buffer.charCodeAt(Ie)}else{var Ae=this._buffers[Z.node.piece.bufferIndex],Ie=this.offsetInBuffer(Z.node.piece.bufferIndex,Z.node.piece.start),dt=Ie+Z.remainder;return Ae.buffer.charCodeAt(dt)}},Le.prototype.getLineLength=function(D){if(D===this.getLineCount()){var j=this.getOffsetAt(D,1);return this.getLength()-j}return this.getOffsetAt(D+1,1)-this.getOffsetAt(D,1)-this._EOLLength},Le.prototype.findMatchesInNode=function(D,j,Z,xe,Ae,Ie,dt,ht,At,Bt,Ut){var Ht=this._buffers[D.piece.bufferIndex],nn=this.offsetInBuffer(D.piece.bufferIndex,D.piece.start),Zt=this.offsetInBuffer(D.piece.bufferIndex,Ae),fn=this.offsetInBuffer(D.piece.bufferIndex,Ie),yt,Ue={line:0,column:0},Me,rt;j._wordSeparators?(Me=Ht.buffer.substring(Zt,fn),rt=function(We){return We+Zt},j.reset(-1)):(Me=Ht.buffer,rt=function(We){return We},j.reset(Zt));do if(yt=j.next(Me),yt){if(rt(yt.index)>=fn)return Bt;this.positionInBuffer(D,rt(yt.index)-nn,Ue);var Nt=this.getLineFeedCnt(D.piece.bufferIndex,Ae,Ue),ge=Ue.line===Ae.line?Ue.column-Ae.column+xe:Ue.column+1,O=ge+yt[0].length;if(Ut[Bt++]=Object(Dt.d)(new U.a(Z+Nt,ge,Z+Nt,O),yt,ht),rt(yt.index)+yt[0].length>=fn)return Bt;if(Bt>=At)return Bt}while(yt);return Bt},Le.prototype.findMatchesLineByLine=function(D,j,Z,xe){var Ae=[],Ie=0,dt=new Dt.b(j.wordSeparators,j.regex),ht=this.nodeAt2(D.startLineNumber,D.startColumn);if(ht===null)return[];var At=this.nodeAt2(D.endLineNumber,D.endColumn);if(At===null)return[];var Bt=this.positionInBuffer(ht.node,ht.remainder),Ut=this.positionInBuffer(At.node,At.remainder);if(ht.node===At.node)return this.findMatchesInNode(ht.node,dt,D.startLineNumber,D.startColumn,Bt,Ut,j,Z,xe,Ie,Ae),Ae;for(var Ht=D.startLineNumber,nn=ht.node;nn!==At.node;){var Zt=this.getLineFeedCnt(nn.piece.bufferIndex,Bt,nn.piece.end);if(Zt>=1){var fn=this._buffers[nn.piece.bufferIndex].lineStarts,yt=this.offsetInBuffer(nn.piece.bufferIndex,nn.piece.start),Ue=fn[Bt.line+Zt],Me=Ht===D.startLineNumber?D.startColumn:1;if(Ie=this.findMatchesInNode(nn,dt,Ht,Me,Bt,this.positionInBuffer(nn,Ue-yt),j,Z,xe,Ie,Ae),Ie>=xe)return Ae;Ht+=Zt}var rt=Ht===D.startLineNumber?D.startColumn-1:0;if(Ht===D.endLineNumber){var Nt=this.getLineContent(Ht).substring(rt,D.endColumn-1);return Ie=this._findMatchesInLine(j,dt,Nt,D.endLineNumber,rt,Ie,Ae,Z,xe),Ae}if(Ie=this._findMatchesInLine(j,dt,this.getLineContent(Ht).substr(rt),Ht,rt,Ie,Ae,Z,xe),Ie>=xe)return Ae;Ht++,ht=this.nodeAt2(Ht,1),nn=ht.node,Bt=this.positionInBuffer(ht.node,ht.remainder)}if(Ht===D.endLineNumber){var ge=Ht===D.startLineNumber?D.startColumn-1:0,Nt=this.getLineContent(Ht).substring(ge,D.endColumn-1);return Ie=this._findMatchesInLine(j,dt,Nt,D.endLineNumber,ge,Ie,Ae,Z,xe),Ae}var O=Ht===D.startLineNumber?D.startColumn:1;return Ie=this.findMatchesInNode(At.node,dt,Ht,O,Bt,Ut,j,Z,xe,Ie,Ae),Ae},Le.prototype._findMatchesInLine=function(D,j,Z,xe,Ae,Ie,dt,ht,At){var Bt=D.wordSeparators;if(!ht&&D.simpleSearch){for(var Ut=D.simpleSearch,Ht=Ut.length,nn=Z.length,Zt=-Ht;(Zt=Z.indexOf(Ut,Zt+Ht))!==-1;)if((!Bt||Object(Dt.e)(Bt,Z,nn,Zt,Ht))&&(dt[Ie++]=new c.b(new U.a(xe,Zt+1+Ae,xe,Zt+1+Ht+Ae),null),Ie>=At))return Ie;return Ie}var fn;j.reset(0);do if(fn=j.next(Z),fn&&(dt[Ie++]=Object(Dt.d)(new U.a(xe,fn.index+1+Ae,xe,fn.index+1+fn[0].length+Ae),fn,ht),Ie>=At))return Ie;while(fn);return Ie},Le.prototype.insert=function(D,j,Z){if(Z===void 0&&(Z=!1),this._EOLNormalized=this._EOLNormalized&&Z,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==b){var xe=this.nodeAt(D),Ae=xe.node,Ie=xe.remainder,dt=xe.nodeStartOffset,ht=Ae.piece,At=ht.bufferIndex,Bt=this.positionInBuffer(Ae,Ie);if(Ae.piece.bufferIndex===0&&ht.end.line===this._lastChangeBufferPos.line&&ht.end.column===this._lastChangeBufferPos.column&&dt+ht.length===D&&j.length<zt){this.appendToNode(Ae,j),this.computeBufferMetadata();return}if(dt===D)this.insertContentToNodeLeft(j,Ae),this._searchCache.valdiate(D);else if(dt+Ae.piece.length>D){var Ut=[],Ht=new ft(ht.bufferIndex,Bt,ht.end,this.getLineFeedCnt(ht.bufferIndex,Bt,ht.end),this.offsetInBuffer(At,ht.end)-this.offsetInBuffer(At,Bt));if(this.shouldCheckCRLF()&&this.endWithCR(j)){var nn=this.nodeCharCodeAt(Ae,Ie);if(nn===10){var Zt={line:Ht.start.line+1,column:0};Ht=new ft(Ht.bufferIndex,Zt,Ht.end,this.getLineFeedCnt(Ht.bufferIndex,Zt,Ht.end),Ht.length-1),j+=`
`}}if(this.shouldCheckCRLF()&&this.startWithLF(j)){var fn=this.nodeCharCodeAt(Ae,Ie-1);if(fn===13){var yt=this.positionInBuffer(Ae,Ie-1);this.deleteNodeTail(Ae,yt),j="\r"+j,Ae.piece.length===0&&Ut.push(Ae)}else this.deleteNodeTail(Ae,Bt)}else this.deleteNodeTail(Ae,Bt);var Ue=this.createNewPieces(j);Ht.length>0&&this.rbInsertRight(Ae,Ht);for(var Me=Ae,rt=0;rt<Ue.length;rt++)Me=this.rbInsertRight(Me,Ue[rt]);this.deleteNodes(Ut)}else this.insertContentToNodeRight(j,Ae)}else for(var Nt=this.createNewPieces(j),Ae=this.rbInsertLeft(null,Nt[0]),rt=1;rt<Nt.length;rt++)Ae=this.rbInsertRight(Ae,Nt[rt]);this.computeBufferMetadata()},Le.prototype.delete=function(D,j){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",j<=0||this.root===b)return;var Z=this.nodeAt(D),xe=this.nodeAt(D+j),Ae=Z.node,Ie=xe.node;if(Ae===Ie){var dt=this.positionInBuffer(Ae,Z.remainder),ht=this.positionInBuffer(Ae,xe.remainder);if(Z.nodeStartOffset===D){if(j===Ae.piece.length){var At=Ae.next();Qe(this,Ae),this.validateCRLFWithPrevNode(At),this.computeBufferMetadata();return}this.deleteNodeHead(Ae,ht),this._searchCache.valdiate(D),this.validateCRLFWithPrevNode(Ae),this.computeBufferMetadata();return}if(Z.nodeStartOffset+Ae.piece.length===D+j){this.deleteNodeTail(Ae,dt),this.validateCRLFWithNextNode(Ae),this.computeBufferMetadata();return}this.shrinkNode(Ae,dt,ht),this.computeBufferMetadata();return}var Bt=[],Ut=this.positionInBuffer(Ae,Z.remainder);this.deleteNodeTail(Ae,Ut),this._searchCache.valdiate(D),Ae.piece.length===0&&Bt.push(Ae);var Ht=this.positionInBuffer(Ie,xe.remainder);this.deleteNodeHead(Ie,Ht),Ie.piece.length===0&&Bt.push(Ie);for(var nn=Ae.next(),Zt=nn;Zt!==b&&Zt!==Ie;Zt=Zt.next())Bt.push(Zt);var fn=Ae.piece.length===0?Ae.prev():Ae;this.deleteNodes(Bt),this.validateCRLFWithNextNode(fn),this.computeBufferMetadata()},Le.prototype.insertContentToNodeLeft=function(D,j){var Z=[];if(this.shouldCheckCRLF()&&this.endWithCR(D)&&this.startWithLF(j)){var xe=j.piece,Ae={line:xe.start.line+1,column:0},Ie=new ft(xe.bufferIndex,Ae,xe.end,this.getLineFeedCnt(xe.bufferIndex,Ae,xe.end),xe.length-1);j.piece=Ie,D+=`
`,gt(this,j,-1,-1),j.piece.length===0&&Z.push(j)}for(var dt=this.createNewPieces(D),ht=this.rbInsertLeft(j,dt[dt.length-1]),At=dt.length-2;At>=0;At--)ht=this.rbInsertLeft(ht,dt[At]);this.validateCRLFWithPrevNode(ht),this.deleteNodes(Z)},Le.prototype.insertContentToNodeRight=function(D,j){this.adjustCarriageReturnFromNext(D,j)&&(D+=`
`);for(var Z=this.createNewPieces(D),xe=this.rbInsertRight(j,Z[0]),Ae=xe,Ie=1;Ie<Z.length;Ie++)Ae=this.rbInsertRight(Ae,Z[Ie]);this.validateCRLFWithPrevNode(xe)},Le.prototype.positionInBuffer=function(D,j,Z){for(var xe=D.piece,Ae=D.piece.bufferIndex,Ie=this._buffers[Ae].lineStarts,dt=Ie[xe.start.line]+xe.start.column,ht=dt+j,At=xe.start.line,Bt=xe.end.line,Ut=0,Ht=0,nn=0;At<=Bt&&!(Ut=At+(Bt-At)/2|0,nn=Ie[Ut],Ut===Bt);)if(Ht=Ie[Ut+1],ht<nn)Bt=Ut-1;else if(ht>=Ht)At=Ut+1;else break;return Z?(Z.line=Ut,Z.column=ht-nn,null):{line:Ut,column:ht-nn}},Le.prototype.getLineFeedCnt=function(D,j,Z){if(Z.column===0)return Z.line-j.line;var xe=this._buffers[D].lineStarts;if(Z.line===xe.length-1)return Z.line-j.line;var Ae=xe[Z.line+1],Ie=xe[Z.line]+Z.column;if(Ae>Ie+1)return Z.line-j.line;var dt=Ie-1,ht=this._buffers[D].buffer;return ht.charCodeAt(dt)===13?Z.line-j.line+1:Z.line-j.line},Le.prototype.offsetInBuffer=function(D,j){var Z=this._buffers[D].lineStarts;return Z[j.line]+j.column},Le.prototype.deleteNodes=function(D){for(var j=0;j<D.length;j++)Qe(this,D[j])},Le.prototype.createNewPieces=function(D){if(D.length>zt){for(var j=[];D.length>zt;){var Z=D.charCodeAt(zt-1),xe=void 0;Z===13||Z>=55296&&Z<=56319?(xe=D.substring(0,zt-1),D=D.substring(zt-1)):(xe=D.substring(0,zt),D=D.substring(zt));var Ae=an(xe);j.push(new ft(this._buffers.length,{line:0,column:0},{line:Ae.length-1,column:xe.length-Ae[Ae.length-1]},Ae.length-1,xe.length)),this._buffers.push(new vt(xe,Ae))}var Ie=an(D);return j.push(new ft(this._buffers.length,{line:0,column:0},{line:Ie.length-1,column:D.length-Ie[Ie.length-1]},Ie.length-1,D.length)),this._buffers.push(new vt(D,Ie)),j}var dt=this._buffers[0].buffer.length,ht=an(D,!1),At=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===dt&&dt!==0&&this.startWithLF(D)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},At=this._lastChangeBufferPos;for(var Bt=0;Bt<ht.length;Bt++)ht[Bt]+=dt+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(ht.slice(1)),this._buffers[0].buffer+="_"+D,dt+=1}else{if(dt!==0)for(var Bt=0;Bt<ht.length;Bt++)ht[Bt]+=dt;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(ht.slice(1)),this._buffers[0].buffer+=D}var Ut=this._buffers[0].buffer.length,Ht=this._buffers[0].lineStarts.length-1,nn=Ut-this._buffers[0].lineStarts[Ht],Zt={line:Ht,column:nn},fn=new ft(0,At,Zt,this.getLineFeedCnt(0,At,Zt),Ut-dt);return this._lastChangeBufferPos=Zt,[fn]},Le.prototype.getLineRawContent=function(D,j){j===void 0&&(j=0);var Z=this.root,xe="",Ae=this._searchCache.get2(D);if(Ae){Z=Ae.node;var Ie=this.getAccumulatedValue(Z,D-Ae.nodeStartLineNumber-1),dt=this._buffers[Z.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);if(Ae.nodeStartLineNumber+Z.piece.lineFeedCnt===D)xe=dt.substring(ht+Ie,ht+Z.piece.length);else{var At=this.getAccumulatedValue(Z,D-Ae.nodeStartLineNumber);return dt.substring(ht+Ie,ht+At-j)}}else for(var Bt=0,Ut=D;Z!==b;)if(Z.left!==b&&Z.lf_left>=D-1)Z=Z.left;else if(Z.lf_left+Z.piece.lineFeedCnt>D-1){var Ie=this.getAccumulatedValue(Z,D-Z.lf_left-2),At=this.getAccumulatedValue(Z,D-Z.lf_left-1),dt=this._buffers[Z.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return Bt+=Z.size_left,this._searchCache.set({node:Z,nodeStartOffset:Bt,nodeStartLineNumber:Ut-(D-1-Z.lf_left)}),dt.substring(ht+Ie,ht+At-j)}else if(Z.lf_left+Z.piece.lineFeedCnt===D-1){var Ie=this.getAccumulatedValue(Z,D-Z.lf_left-2),dt=this._buffers[Z.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);xe=dt.substring(ht+Ie,ht+Z.piece.length);break}else D-=Z.lf_left+Z.piece.lineFeedCnt,Bt+=Z.size_left+Z.piece.length,Z=Z.right;for(Z=Z.next();Z!==b;){var dt=this._buffers[Z.piece.bufferIndex].buffer;if(Z.piece.lineFeedCnt>0){var At=this.getAccumulatedValue(Z,0),ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return xe+=dt.substring(ht,ht+At-j),xe}else{var ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);xe+=dt.substr(ht,Z.piece.length)}Z=Z.next()}return xe},Le.prototype.computeBufferMetadata=function(){for(var D=this.root,j=1,Z=0;D!==b;)j+=D.lf_left+D.piece.lineFeedCnt,Z+=D.size_left+D.piece.length,D=D.right;this._lineCnt=j,this._length=Z,this._searchCache.valdiate(this._length)},Le.prototype.getIndexOf=function(D,j){var Z=D.piece,xe=this.positionInBuffer(D,j),Ae=xe.line-Z.start.line;if(this.offsetInBuffer(Z.bufferIndex,Z.end)-this.offsetInBuffer(Z.bufferIndex,Z.start)===j){var Ie=this.getLineFeedCnt(D.piece.bufferIndex,Z.start,xe);if(Ie!==Ae)return{index:Ie,remainder:0}}return{index:Ae,remainder:xe.column}},Le.prototype.getAccumulatedValue=function(D,j){if(j<0)return 0;var Z=D.piece,xe=this._buffers[Z.bufferIndex].lineStarts,Ae=Z.start.line+j+1;return Ae>Z.end.line?xe[Z.end.line]+Z.end.column-xe[Z.start.line]-Z.start.column:xe[Ae]-xe[Z.start.line]-Z.start.column},Le.prototype.deleteNodeTail=function(D,j){var Z=D.piece,xe=Z.lineFeedCnt,Ae=this.offsetInBuffer(Z.bufferIndex,Z.end),Ie=j,dt=this.offsetInBuffer(Z.bufferIndex,Ie),ht=this.getLineFeedCnt(Z.bufferIndex,Z.start,Ie),At=ht-xe,Bt=dt-Ae,Ut=Z.length+Bt;D.piece=new ft(Z.bufferIndex,Z.start,Ie,ht,Ut),gt(this,D,Bt,At)},Le.prototype.deleteNodeHead=function(D,j){var Z=D.piece,xe=Z.lineFeedCnt,Ae=this.offsetInBuffer(Z.bufferIndex,Z.start),Ie=j,dt=this.getLineFeedCnt(Z.bufferIndex,Ie,Z.end),ht=this.offsetInBuffer(Z.bufferIndex,Ie),At=dt-xe,Bt=Ae-ht,Ut=Z.length+Bt;D.piece=new ft(Z.bufferIndex,Ie,Z.end,dt,Ut),gt(this,D,Bt,At)},Le.prototype.shrinkNode=function(D,j,Z){var xe=D.piece,Ae=xe.start,Ie=xe.end,dt=xe.length,ht=xe.lineFeedCnt,At=j,Bt=this.getLineFeedCnt(xe.bufferIndex,xe.start,At),Ut=this.offsetInBuffer(xe.bufferIndex,j)-this.offsetInBuffer(xe.bufferIndex,Ae);D.piece=new ft(xe.bufferIndex,xe.start,At,Bt,Ut),gt(this,D,Ut-dt,Bt-ht);var Ht=new ft(xe.bufferIndex,Z,Ie,this.getLineFeedCnt(xe.bufferIndex,Z,Ie),this.offsetInBuffer(xe.bufferIndex,Ie)-this.offsetInBuffer(xe.bufferIndex,Z)),nn=this.rbInsertRight(D,Ht);this.validateCRLFWithPrevNode(nn)},Le.prototype.appendToNode=function(D,j){this.adjustCarriageReturnFromNext(j,D)&&(j+=`
`);var Z=this.shouldCheckCRLF()&&this.startWithLF(j)&&this.endWithCR(D),xe=this._buffers[0].buffer.length;this._buffers[0].buffer+=j;for(var Ae=an(j,!1),Ie=0;Ie<Ae.length;Ie++)Ae[Ie]+=xe;if(Z){var dt=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:xe-dt}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(Ae.slice(1));var ht=this._buffers[0].lineStarts.length-1,At=this._buffers[0].buffer.length-this._buffers[0].lineStarts[ht],Bt={line:ht,column:At},Ut=D.piece.length+j.length,Ht=D.piece.lineFeedCnt,nn=this.getLineFeedCnt(0,D.piece.start,Bt),Zt=nn-Ht;D.piece=new ft(D.piece.bufferIndex,D.piece.start,Bt,nn,Ut),this._lastChangeBufferPos=Bt,gt(this,D,j.length,Zt)},Le.prototype.nodeAt=function(D){var j=this.root,Z=this._searchCache.get(D);if(Z)return{node:Z.node,nodeStartOffset:Z.nodeStartOffset,remainder:D-Z.nodeStartOffset};for(var xe=0;j!==b;)if(j.size_left>D)j=j.left;else if(j.size_left+j.piece.length>=D){xe+=j.size_left;var Ae={node:j,remainder:D-j.size_left,nodeStartOffset:xe};return this._searchCache.set(Ae),Ae}else D-=j.size_left+j.piece.length,xe+=j.size_left+j.piece.length,j=j.right;return null},Le.prototype.nodeAt2=function(D,j){for(var Z=this.root,xe=0;Z!==b;)if(Z.left!==b&&Z.lf_left>=D-1)Z=Z.left;else if(Z.lf_left+Z.piece.lineFeedCnt>D-1){var Ae=this.getAccumulatedValue(Z,D-Z.lf_left-2),Ie=this.getAccumulatedValue(Z,D-Z.lf_left-1);return xe+=Z.size_left,{node:Z,remainder:Math.min(Ae+j-1,Ie),nodeStartOffset:xe}}else if(Z.lf_left+Z.piece.lineFeedCnt===D-1){var Ae=this.getAccumulatedValue(Z,D-Z.lf_left-2);if(Ae+j-1<=Z.piece.length)return{node:Z,remainder:Ae+j-1,nodeStartOffset:xe};j-=Z.piece.length-Ae;break}else D-=Z.lf_left+Z.piece.lineFeedCnt,xe+=Z.size_left+Z.piece.length,Z=Z.right;for(Z=Z.next();Z!==b;){if(Z.piece.lineFeedCnt>0){var Ie=this.getAccumulatedValue(Z,0),dt=this.offsetOfNode(Z);return{node:Z,remainder:Math.min(j-1,Ie),nodeStartOffset:dt}}else if(Z.piece.length>=j-1){var ht=this.offsetOfNode(Z);return{node:Z,remainder:j-1,nodeStartOffset:ht}}else j-=Z.piece.length;Z=Z.next()}return null},Le.prototype.nodeCharCodeAt=function(D,j){if(D.piece.lineFeedCnt<1)return-1;var Z=this._buffers[D.piece.bufferIndex],xe=this.offsetInBuffer(D.piece.bufferIndex,D.piece.start)+j;return Z.buffer.charCodeAt(xe)},Le.prototype.offsetOfNode=function(D){if(!D)return 0;for(var j=D.size_left;D!==this.root;)D.parent.right===D&&(j+=D.parent.size_left+D.parent.piece.length),D=D.parent;return j},Le.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===`
`)},Le.prototype.startWithLF=function(D){if(typeof D=="string")return D.charCodeAt(0)===10;if(D===b||D.piece.lineFeedCnt===0)return!1;var j=D.piece,Z=this._buffers[j.bufferIndex].lineStarts,xe=j.start.line,Ae=Z[xe]+j.start.column;if(xe===Z.length-1)return!1;var Ie=Z[xe+1];return Ie>Ae+1?!1:this._buffers[j.bufferIndex].buffer.charCodeAt(Ae)===10},Le.prototype.endWithCR=function(D){return typeof D=="string"?D.charCodeAt(D.length-1)===13:D===b||D.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(D,D.piece.length-1)===13},Le.prototype.validateCRLFWithPrevNode=function(D){if(this.shouldCheckCRLF()&&this.startWithLF(D)){var j=D.prev();this.endWithCR(j)&&this.fixCRLF(j,D)}},Le.prototype.validateCRLFWithNextNode=function(D){if(this.shouldCheckCRLF()&&this.endWithCR(D)){var j=D.next();this.startWithLF(j)&&this.fixCRLF(D,j)}},Le.prototype.fixCRLF=function(D,j){var Z=[],xe=this._buffers[D.piece.bufferIndex].lineStarts,Ae;D.piece.end.column===0?Ae={line:D.piece.end.line-1,column:xe[D.piece.end.line]-xe[D.piece.end.line-1]-1}:Ae={line:D.piece.end.line,column:D.piece.end.column-1};var Ie=D.piece.length-1,dt=D.piece.lineFeedCnt-1;D.piece=new ft(D.piece.bufferIndex,D.piece.start,Ae,dt,Ie),gt(this,D,-1,-1),D.piece.length===0&&Z.push(D);var ht={line:j.piece.start.line+1,column:0},At=j.piece.length-1,Bt=this.getLineFeedCnt(j.piece.bufferIndex,ht,j.piece.end);j.piece=new ft(j.piece.bufferIndex,ht,j.piece.end,Bt,At),gt(this,j,-1,-1),j.piece.length===0&&Z.push(j);var Ut=this.createNewPieces(`\r
`);this.rbInsertRight(D,Ut[0]);for(var Ht=0;Ht<Z.length;Ht++)Qe(this,Z[Ht])},Le.prototype.adjustCarriageReturnFromNext=function(D,j){if(this.shouldCheckCRLF()&&this.endWithCR(D)){var Z=j.next();if(this.startWithLF(Z)){if(D+=`
`,Z.piece.length===1)Qe(this,Z);else{var xe=Z.piece,Ae={line:xe.start.line+1,column:0},Ie=xe.length-1,dt=this.getLineFeedCnt(xe.bufferIndex,Ae,xe.end);Z.piece=new ft(xe.bufferIndex,Ae,xe.end,dt,Ie),gt(this,Z,-1,-1)}return!0}}return!1},Le.prototype.iterate=function(D,j){if(D===b)return j(b);var Z=this.iterate(D.left,j);return Z&&(j(D)&&this.iterate(D.right,j))},Le.prototype.getNodeContent=function(D){if(D===b)return"";var j=this._buffers[D.piece.bufferIndex],Z,xe=D.piece,Ae=this.offsetInBuffer(xe.bufferIndex,xe.start),Ie=this.offsetInBuffer(xe.bufferIndex,xe.end);return Z=j.buffer.substring(Ae,Ie),Z},Le.prototype.rbInsertRight=function(D,j){var Z=new Q(j,1);Z.left=b,Z.right=b,Z.parent=b,Z.size_left=0,Z.lf_left=0;var xe=this.root;if(xe===b)this.root=Z,Z.color=0;else if(D.right===b)D.right=Z,Z.parent=D;else{var Ae=k(D.right);Ae.left=Z,Z.parent=Ae}return it(this,Z),Z},Le.prototype.rbInsertLeft=function(D,j){var Z=new Q(j,1);if(Z.left=b,Z.right=b,Z.parent=b,Z.size_left=0,Z.lf_left=0,this.root===b)this.root=Z,Z.color=0;else if(D.left===b)D.left=Z,Z.parent=D;else{var xe=se(D.left);xe.right=Z,Z.parent=xe}return it(this,Z),Z},Le}(),tt=function(){function Le(D,j,Z,xe,Ae,Ie){this._BOM=j,this._mightContainNonBasicASCII=!Ae,this._mightContainRTL=xe,this._pieceTree=new at(D,Z,Ie)}return Le.prototype.mightContainRTL=function(){return this._mightContainRTL},Le.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},Le.prototype.getBOM=function(){return this._BOM},Le.prototype.getEOL=function(){return this._pieceTree.getEOL()},Le.prototype.getOffsetAt=function(D,j){return this._pieceTree.getOffsetAt(D,j)},Le.prototype.getPositionAt=function(D){return this._pieceTree.getPositionAt(D)},Le.prototype.getRangeAt=function(D,j){var Z=D+j,xe=this.getPositionAt(D),Ae=this.getPositionAt(Z);return new U.a(xe.lineNumber,xe.column,Ae.lineNumber,Ae.column)},Le.prototype.getValueInRange=function(D,j){if(j===void 0&&(j=0),D.isEmpty())return"";var Z=this._getEndOfLine(j);return this._pieceTree.getValueInRange(D,Z)},Le.prototype.getValueLengthInRange=function(D,j){if(j===void 0&&(j=0),D.isEmpty())return 0;if(D.startLineNumber===D.endLineNumber)return D.endColumn-D.startColumn;var Z=this.getOffsetAt(D.startLineNumber,D.startColumn),xe=this.getOffsetAt(D.endLineNumber,D.endColumn);return xe-Z},Le.prototype.getCharacterCountInRange=function(D,j){if(j===void 0&&(j=0),this._mightContainNonBasicASCII){for(var Z=0,xe=D.startLineNumber,Ae=D.endLineNumber,Ie=xe;Ie<=Ae;Ie++)for(var dt=this.getLineContent(Ie),ht=Ie===xe?D.startColumn-1:0,At=Ie===Ae?D.endColumn-1:dt.length,Bt=ht;Bt<At;Bt++)N.z(dt.charCodeAt(Bt))?(Z=Z+1,Bt=Bt+1):Z=Z+1;return Z+=this._getEndOfLine(j).length*(Ae-xe),Z}return this.getValueLengthInRange(D,j)},Le.prototype.getLength=function(){return this._pieceTree.getLength()},Le.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},Le.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},Le.prototype.getLineContent=function(D){return this._pieceTree.getLineContent(D)},Le.prototype.getLineCharCode=function(D,j){return this._pieceTree.getLineCharCode(D,j)},Le.prototype.getLineLength=function(D){return this._pieceTree.getLineLength(D)},Le.prototype.getLineFirstNonWhitespaceColumn=function(D){var j=N.q(this.getLineContent(D));return j===-1?0:j+1},Le.prototype.getLineLastNonWhitespaceColumn=function(D){var j=N.D(this.getLineContent(D));return j===-1?0:j+2},Le.prototype._getEndOfLine=function(D){switch(D){case 1:return`
`;case 2:return`\r
`;case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},Le.prototype.setEOL=function(D){this._pieceTree.setEOL(D)},Le.prototype.applyEdits=function(D,j){for(var Z=this._mightContainRTL,xe=this._mightContainNonBasicASCII,Ae=!0,Ie=[],dt=0;dt<D.length;dt++){var ht=D[dt];Ae&&ht._isTracked&&(Ae=!1);var At=ht.range;!Z&&ht.text&&(Z=N.i(ht.text)),!xe&&ht.text&&(xe=!N.v(ht.text)),Ie[dt]={sortIndex:dt,identifier:ht.identifier||null,range:At,rangeOffset:this.getOffsetAt(At.startLineNumber,At.startColumn),rangeLength:this.getValueLengthInRange(At),lines:ht.text?ht.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(ht.forceMoveMarkers),isAutoWhitespaceEdit:ht.isAutoWhitespaceEdit||!1}}Ie.sort(Le._sortOpsAscending);for(var Bt=!1,dt=0,Ut=Ie.length-1;dt<Ut;dt++){var Ht=Ie[dt].range.getEndPosition(),nn=Ie[dt+1].range.getStartPosition();if(nn.isBeforeOrEqual(Ht)){if(nn.isBefore(Ht))throw new Error("Overlapping ranges are not allowed!");Bt=!0}}Ae&&(Ie=this._reduceOperations(Ie));for(var Zt=Le._getInverseEditRanges(Ie),fn=[],dt=0;dt<Ie.length;dt++){var ht=Ie[dt],yt=Zt[dt];if(j&&ht.isAutoWhitespaceEdit&&ht.range.isEmpty())for(var Ue=yt.startLineNumber;Ue<=yt.endLineNumber;Ue++){var Me="";if(Ue===yt.startLineNumber&&(Me=this.getLineContent(ht.range.startLineNumber),N.q(Me)!==-1))continue;fn.push({lineNumber:Ue,oldContent:Me})}}for(var rt=[],dt=0;dt<Ie.length;dt++){var ht=Ie[dt],yt=Zt[dt];rt[dt]={sortIndex:ht.sortIndex,identifier:ht.identifier,range:yt,text:this.getValueInRange(ht.range),forceMoveMarkers:ht.forceMoveMarkers}}Bt||rt.sort(function(Ze,st){return Ze.sortIndex-st.sortIndex}),this._mightContainRTL=Z,this._mightContainNonBasicASCII=xe;var Nt=this._doApplyEdits(Ie),ge=null;if(j&&fn.length>0){fn.sort(function(Ze,st){return st.lineNumber-Ze.lineNumber}),ge=[];for(var dt=0,O=fn.length;dt<O;dt++){var Ue=fn[dt].lineNumber;if(dt>0&&fn[dt-1].lineNumber===Ue)continue;var ye=fn[dt].oldContent,We=this.getLineContent(Ue);if(We.length===0||We===ye||N.q(We)!==-1)continue;ge.push(Ue)}}return new c.a(rt,Nt,ge)},Le.prototype._reduceOperations=function(D){return D.length<1e3?D:[this._toSingleEditOperation(D)]},Le.prototype._toSingleEditOperation=function(D){for(var j=!1,Z=D[0].range,xe=D[D.length-1].range,Ae=new U.a(Z.startLineNumber,Z.startColumn,xe.endLineNumber,xe.endColumn),Ie=Z.startLineNumber,dt=Z.startColumn,ht=[],At=0,Bt=D.length;At<Bt;At++){var Ut=D[At],Ht=Ut.range;j=j||Ut.forceMoveMarkers;for(var nn=Ie;nn<Ht.startLineNumber;nn++)nn===Ie?ht.push(this.getLineContent(nn).substring(dt-1)):(ht.push(`
`),ht.push(this.getLineContent(nn)));if(Ht.startLineNumber===Ie?ht.push(this.getLineContent(Ht.startLineNumber).substring(dt-1,Ht.startColumn-1)):(ht.push(`
`),ht.push(this.getLineContent(Ht.startLineNumber).substring(0,Ht.startColumn-1))),Ut.lines)for(var Zt=0,fn=Ut.lines.length;Zt<fn;Zt++)Zt!==0&&ht.push(`
`),ht.push(Ut.lines[Zt]);Ie=Ut.range.endLineNumber,dt=Ut.range.endColumn}return{sortIndex:0,identifier:D[0].identifier,range:Ae,rangeOffset:this.getOffsetAt(Ae.startLineNumber,Ae.startColumn),rangeLength:this.getValueLengthInRange(Ae,0),lines:ht.join("").split(`
`),forceMoveMarkers:j,isAutoWhitespaceEdit:!1}},Le.prototype._doApplyEdits=function(D){D.sort(Le._sortOpsDescending);for(var j=[],Z=0;Z<D.length;Z++){var xe=D[Z],Ae=xe.range.startLineNumber,Ie=xe.range.startColumn,dt=xe.range.endLineNumber,ht=xe.range.endColumn;if(Ae===dt&&Ie===ht&&(!xe.lines||xe.lines.length===0))continue;var At=dt-Ae,Bt=xe.lines?xe.lines.length-1:0,Ut=Math.min(At,Bt),Ht=xe.lines?xe.lines.join(this.getEOL()):"";if(Ht?(this._pieceTree.delete(xe.rangeOffset,xe.rangeLength),this._pieceTree.insert(xe.rangeOffset,Ht,!0)):this._pieceTree.delete(xe.rangeOffset,xe.rangeLength),Ut<Bt){for(var nn=[],Zt=Ut+1;Zt<=Bt;Zt++)nn.push(xe.lines[Zt]);nn[nn.length-1]=this.getLineContent(Ae+Bt-1)}var fn=new U.a(Ae,Ie,dt,ht);j.push({range:fn,rangeLength:xe.rangeLength,text:Ht,rangeOffset:xe.rangeOffset,forceMoveMarkers:xe.forceMoveMarkers})}return j},Le.prototype.findMatchesLineByLine=function(D,j,Z,xe){return this._pieceTree.findMatchesLineByLine(D,j,Z,xe)},Le._getInverseEditRanges=function(D){for(var j=[],Z=0,xe=0,Ae=null,Ie=0,dt=D.length;Ie<dt;Ie++){var ht=D[Ie],At=void 0,Bt=void 0;Ae?Ae.range.endLineNumber===ht.range.startLineNumber?(At=Z,Bt=xe+(ht.range.startColumn-Ae.range.endColumn)):(At=Z+(ht.range.startLineNumber-Ae.range.endLineNumber),Bt=ht.range.startColumn):(At=ht.range.startLineNumber,Bt=ht.range.startColumn);var Ut=void 0;if(ht.lines&&ht.lines.length>0){var Ht=ht.lines.length,nn=ht.lines[0],Zt=ht.lines[Ht-1];Ht===1?Ut=new U.a(At,Bt,At,Bt+nn.length):Ut=new U.a(At,Bt,At+Ht-1,Zt.length+1)}else Ut=new U.a(At,Bt,At,Bt);Z=Ut.endLineNumber,xe=Ut.endColumn,j.push(Ut),Ae=ht}return j},Le._sortOpsAscending=function(D,j){var Z=U.a.compareRangesUsingEnds(D.range,j.range);return Z===0?D.sortIndex-j.sortIndex:Z},Le._sortOpsDescending=function(D,j){var Z=U.a.compareRangesUsingEnds(D.range,j.range);return Z===0?j.sortIndex-D.sortIndex:-Z},Le}(),ct=function(){function Le(D,j,Z,xe,Ae,Ie,dt,ht){this._chunks=D,this._bom=j,this._cr=Z,this._lf=xe,this._crlf=Ae,this._containsRTL=Ie,this._isBasicASCII=dt,this._normalizeEOL=ht}return Le.prototype._getEOL=function(D){var j=this._cr+this._lf+this._crlf,Z=this._cr+this._crlf;return j===0?D===1?`
`:`\r
`:Z>j/2?`\r
`:`
`},Le.prototype.create=function(D){var j=this._getEOL(D),Z=this._chunks;if(this._normalizeEOL&&(j===`\r
`&&(this._cr>0||this._lf>0)||j===`
`&&(this._cr>0||this._crlf>0)))for(var xe=0,Ae=Z.length;xe<Ae;xe++){var Ie=Z[xe].buffer.replace(/\r\n|\r|\n/g,j),dt=an(Ie);Z[xe]=new vt(Ie,dt)}return new tt(Z,this._bom,j,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},Le}(),bt=function(){function Le(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.isBasicASCII=!0}return Le.prototype.acceptChunk=function(D){if(D.length===0)return;this.chunks.length===0&&(N.P(D)&&(this.BOM=N.a,D=D.substr(1)));var j=D.charCodeAt(D.length-1);j===13||j>=55296&&j<=56319?(this._acceptChunk1(D.substr(0,D.length-1),!1),this._hasPreviousChar=!0,this._previousChar=j):(this._acceptChunk1(D,!1),this._hasPreviousChar=!1,this._previousChar=j)},Le.prototype._acceptChunk1=function(D,j){if(!j&&D.length===0)return;this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+D):this._acceptChunk2(D)},Le.prototype._acceptChunk2=function(D){var j=jt(this._tmpLineStarts,D);this.chunks.push(new vt(D,j.lineStarts)),this.cr+=j.cr,this.lf+=j.lf,this.crlf+=j.crlf,this.isBasicASCII&&(this.isBasicASCII=j.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=N.i(D))},Le.prototype.finish=function(D){return D===void 0&&(D=!0),this._finish(),new ct(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,D)},Le.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var D=this.chunks[this.chunks.length-1];D.buffer+=String.fromCharCode(this._previousChar);var j=an(D.buffer);D.lineStarts=j,this._previousChar===13&&this.cr++}},Le}(),mt=function(){function Le(){this.changeType=1}return Le}(),Ct=function(){function Le(D,j){this.changeType=2,this.lineNumber=D,this.detail=j}return Le}(),Gt=function(){function Le(D,j){this.changeType=3,this.fromLineNumber=D,this.toLineNumber=j}return Le}(),It=function(){function Le(D,j,Z){this.changeType=4,this.fromLineNumber=D,this.toLineNumber=j,this.detail=Z}return Le}(),Et=function(){function Le(){this.changeType=5}return Le}(),Je=function(){function Le(D,j,Z,xe){this.changes=D,this.versionId=j,this.isUndoing=Z,this.isRedoing=xe}return Le.prototype.containsEvent=function(D){for(var j=0,Z=this.changes.length;j<Z;j++){var xe=this.changes[j];if(xe.changeType===D)return!0}return!1},Le.merge=function(D,j){var Z=[].concat(D.changes).concat(j.changes),xe=j.versionId,Ae=D.isUndoing||j.isUndoing,Ie=D.isRedoing||j.isRedoing;return new Le(Z,xe,Ae,Ie)},Le}(),$e=function(){function Le(D,j){this.rawContentChangedEvent=D,this.contentChangedEvent=j}return Le.prototype.merge=function(D){var j=Je.merge(this.rawContentChangedEvent,D.rawContentChangedEvent),Z=Le._mergeChangeEvents(this.contentChangedEvent,D.contentChangedEvent);return new Le(j,Z)},Le._mergeChangeEvents=function(D,j){var Z=[].concat(D.changes).concat(j.changes),xe=j.eol,Ae=j.versionId,Ie=D.isUndoing||j.isUndoing,dt=D.isRedoing||j.isRedoing,ht=D.isFlush||j.isFlush;return{changes:Z,eol:xe,versionId:Ae,isUndoing:Ie,isRedoing:dt,isFlush:ht}},Le}(),ze=e("6OMU"),Ke=e("4bUh"),fe=e("twdY"),G=e("i/Ef"),te=e("5Y4S"),Y=e("QRHv"),de=e("MNsG"),Fe=function(){var Le=function(j,Z){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Ae){xe.__proto__=Ae}||function(xe,Ae){for(var Ie in Ae)Ae.hasOwnProperty(Ie)&&(xe[Ie]=Ae[Ie])},Le(j,Z)};return function(D,j){Le(D,j);function Z(){this.constructor=D}D.prototype=j===null?Object.create(j):(Z.prototype=j.prototype,new Z)}}(),lt=function(){function Le(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return Le.prototype._reset=function(D){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,D&&this._setBeginState(0,D)},Le.prototype.flush=function(D){this._reset(D)},Object.defineProperty(Le.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),Le.prototype._invalidateLine=function(D){D<this._len&&(this._valid[D]=!1),D<this._invalidLineStartIndex&&(this._invalidLineStartIndex=D)},Le.prototype._isValid=function(D){return D<this._len?this._valid[D]:!1},Le.prototype.getBeginState=function(D){return D<this._len?this._beginState[D]:null},Le.prototype._ensureLine=function(D){for(;D>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},Le.prototype._deleteLines=function(D,j){if(j===0)return;D+j>this._len&&(j=this._len-D),this._beginState.splice(D,j),this._valid.splice(D,j),this._len-=j},Le.prototype._insertLines=function(D,j){if(j===0)return;for(var Z=[],xe=[],Ae=0;Ae<j;Ae++)Z[Ae]=null,xe[Ae]=!1;this._beginState=ze.a(this._beginState,D,Z),this._valid=ze.a(this._valid,D,xe),this._len+=j},Le.prototype._setValid=function(D,j){this._ensureLine(D),this._valid[D]=j},Le.prototype._setBeginState=function(D,j){this._ensureLine(D),this._beginState[D]=j},Le.prototype.setEndState=function(D,j,Z){if(this._setValid(j,!0),this._invalidLineStartIndex=j+1,j===D-1)return;var xe=this.getBeginState(j+1);if(xe===null||!Z.equals(xe)){this._setBeginState(j+1,Z),this._invalidateLine(j+1);return}for(var Ae=j+1;Ae<D&&this._isValid(Ae);)Ae++;this._invalidLineStartIndex=Ae},Le.prototype.setFakeTokens=function(D){this._setValid(D,!1)},Le.prototype.applyEdits=function(D,j){for(var Z=D.endLineNumber-D.startLineNumber,xe=j,Ae=Math.min(Z,xe),Ie=Ae;Ie>=0;Ie--)this._invalidateLine(D.startLineNumber+Ie-1);this._acceptDeleteRange(D),this._acceptInsertText(new M.a(D.startLineNumber,D.startColumn),j)},Le.prototype._acceptDeleteRange=function(D){var j=D.startLineNumber-1;if(j>=this._len)return;this._deleteLines(D.startLineNumber,D.endLineNumber-D.startLineNumber)},Le.prototype._acceptInsertText=function(D,j){var Z=D.lineNumber-1;if(Z>=this._len)return;this._insertLines(D.lineNumber,j)},Le}(),Tt=function(Le){Fe(D,Le);function D(j){var Z=Le.call(this)||this;return Z._isDisposed=!1,Z._textModel=j,Z._tokenizationStateStore=new lt,Z._tokenizationSupport=null,Z._register(fe.B.onDidChange(function(xe){var Ae=Z._textModel.getLanguageIdentifier();if(xe.changedLanguages.indexOf(Ae.language)===-1)return;Z._resetTokenizationState(),Z._textModel.clearTokens()})),Z._register(Z._textModel.onDidChangeRawContentFast(function(xe){if(xe.containsEvent(1)){Z._resetTokenizationState();return}})),Z._register(Z._textModel.onDidChangeContentFast(function(xe){for(var Ae=0,Ie=xe.changes.length;Ae<Ie;Ae++){var dt=xe.changes[Ae],ht=Object(Y.f)(dt.text)[0];Z._tokenizationStateStore.applyEdits(dt.range,ht)}Z._beginBackgroundTokenization()})),Z._register(Z._textModel.onDidChangeAttached(function(){Z._beginBackgroundTokenization()})),Z._register(Z._textModel.onDidChangeLanguage(function(){Z._resetTokenizationState(),Z._textModel.clearTokens()})),Z._resetTokenizationState(),Z}return D.prototype.dispose=function(){this._isDisposed=!0,Le.prototype.dispose.call(this)},D.prototype._resetTokenizationState=function(){var j=Jt(this._textModel),Z=j[0],xe=j[1];this._tokenizationSupport=Z,this._tokenizationStateStore.flush(xe),this._beginBackgroundTokenization()},D.prototype._beginBackgroundTokenization=function(){var j=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&de.i(function(){if(j._isDisposed)return;j._revalidateTokensNow()})},D.prototype._revalidateTokensNow=function(j){j===void 0&&(j=this._textModel.getLineCount());for(var Z=1,xe=new Y.b,Ae=te.a.create(!1);this._hasLinesToTokenize()&&!(Ae.elapsed()>Z);){var Ie=this._tokenizeOneInvalidLine(xe);if(Ie>=j)break}this._beginBackgroundTokenization(),this._textModel.setTokens(xe.tokens)},D.prototype.tokenizeViewport=function(j,Z){var xe=new Y.b;this._tokenizeViewport(xe,j,Z),this._textModel.setTokens(xe.tokens)},D.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},D.prototype.forceTokenization=function(j){var Z=new Y.b;this._updateTokensUntilLine(Z,j),this._textModel.setTokens(Z.tokens)},D.prototype.isCheapToTokenize=function(j){if(!this._tokenizationSupport)return!0;var Z=this._tokenizationStateStore.invalidLineStartIndex+1;return j>Z?!1:j<Z?!0:this._textModel.getLineLength(j)<2048},D.prototype._hasLinesToTokenize=function(){return this._tokenizationSupport?this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount():!1},D.prototype._tokenizeOneInvalidLine=function(j){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var Z=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(j,Z),Z},D.prototype._updateTokensUntilLine=function(j,Z){if(!this._tokenizationSupport)return;for(var xe=this._textModel.getLanguageIdentifier(),Ae=this._textModel.getLineCount(),Ie=Z-1,dt=this._tokenizationStateStore.invalidLineStartIndex;dt<=Ie;dt++){var ht=this._textModel.getLineContent(dt+1),At=this._tokenizationStateStore.getBeginState(dt),Bt=en(xe,this._tokenizationSupport,ht,At);j.add(dt+1,Bt.tokens),this._tokenizationStateStore.setEndState(Ae,dt,Bt.endState),dt=this._tokenizationStateStore.invalidLineStartIndex-1}},D.prototype._tokenizeViewport=function(j,Z,xe){if(!this._tokenizationSupport)return;if(xe<=this._tokenizationStateStore.invalidLineStartIndex)return;if(Z<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(j,xe);return}for(var Ae=this._textModel.getLineFirstNonWhitespaceColumn(Z),Ie=[],dt=null,ht=Z-1;Ae>0&&ht>=1;ht--){var At=this._textModel.getLineFirstNonWhitespaceColumn(ht);if(At===0)continue;if(At<Ae){if(dt=this._tokenizationStateStore.getBeginState(ht-1),dt)break;Ie.push(this._textModel.getLineContent(ht)),Ae=At}}dt||(dt=this._tokenizationSupport.getInitialState());for(var Bt=this._textModel.getLanguageIdentifier(),Ut=dt,ht=Ie.length-1;ht>=0;ht--){var Ht=en(Bt,this._tokenizationSupport,Ie[ht],Ut);Ut=Ht.endState}for(var nn=Z;nn<=xe;nn++){var Zt=this._textModel.getLineContent(nn),Ht=en(Bt,this._tokenizationSupport,Zt,Ut);j.add(nn,Ht.tokens),this._tokenizationStateStore.setFakeTokens(nn-1),Ut=Ht.endState}},D}(J.a);function Jt(Le){var D=Le.getLanguageIdentifier(),j=Le.isTooLargeForTokenization()?null:fe.B.get(D.language),Z=null;if(j)try{Z=j.getInitialState()}catch(xe){Object(T.e)(xe),j=null}return[j,Z]}function en(Le,D,j,Z){var xe=null;if(D)try{xe=D.tokenize2(j,Z.clone(),0)}catch(Ae){Object(T.e)(Ae)}return xe||(xe=Object(G.e)(Le.id,j,Z,0)),Ke.a.convertToEndOffset(xe.tokens,j.length),xe}var gn=e("0JNc"),un=e("cMvZ"),En=e("BFtn"),Mn=e("EIAu"),xn=e("746U"),Zn=e("zrhQ"),bn=function(){var Le=function(j,Z){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Ae){xe.__proto__=Ae}||function(xe,Ae){for(var Ie in Ae)Ae.hasOwnProperty(Ie)&&(xe[Ie]=Ae[Ie])},Le(j,Z)};return function(D,j){Le(D,j);function Z(){this.constructor=D}D.prototype=j===null?Object.create(j):(Z.prototype=j.prototype,new Z)}}();function Wn(){return new bt}function Gn(Le){var D=Wn();return D.acceptChunk(Le),D.finish()}function Bn(Le,D){var j=typeof Le=="string"?Gn(Le):Le;return j.create(D)}var Dn=0,Qn=999,fo=1e4,Vn=function(){throw new Error("Invalid change accessor")},po=function(Le){bn(D,Le);function D(j,Z,xe,Ae){Ae===void 0&&(Ae=null);var Ie=Le.call(this)||this;Ie._onWillDispose=Ie._register(new re.a),Ie.onWillDispose=Ie._onWillDispose.event,Ie._onDidChangeDecorations=Ie._register(new ot),Ie.onDidChangeDecorations=Ie._onDidChangeDecorations.event,Ie._onDidChangeLanguage=Ie._register(new re.a),Ie.onDidChangeLanguage=Ie._onDidChangeLanguage.event,Ie._onDidChangeLanguageConfiguration=Ie._register(new re.a),Ie.onDidChangeLanguageConfiguration=Ie._onDidChangeLanguageConfiguration.event,Ie._onDidChangeTokens=Ie._register(new re.a),Ie.onDidChangeTokens=Ie._onDidChangeTokens.event,Ie._onDidChangeOptions=Ie._register(new re.a),Ie.onDidChangeOptions=Ie._onDidChangeOptions.event,Ie._onDidChangeAttached=Ie._register(new re.a),Ie.onDidChangeAttached=Ie._onDidChangeAttached.event,Ie._eventEmitter=Ie._register(new Ot),Dn++,Ie.id="$model"+Dn,Ie.isForSimpleWidget=Z.isForSimpleWidget,typeof Ae=="undefined"||Ae===null?Ie._associatedResource=H.a.parse("inmemory://model/"+Dn):Ie._associatedResource=Ae,Ie._attachedEditorCount=0,Ie._buffer=Bn(j,Z.defaultEOL),Ie._options=D.resolveOptions(Ie._buffer,Z);var dt=Ie._buffer.getLineCount(),ht=Ie._buffer.getValueLengthInRange(new U.a(1,1,dt,Ie._buffer.getLineLength(dt)+1),0);return Z.largeFileOptimizations?Ie._isTooLargeForTokenization=ht>D.LARGE_FILE_SIZE_THRESHOLD||dt>D.LARGE_FILE_LINE_COUNT_THRESHOLD:Ie._isTooLargeForTokenization=!1,Ie._isTooLargeForSyncing=ht>D.MODEL_SYNC_LIMIT,Ie._versionId=1,Ie._alternativeVersionId=1,Ie._isDisposed=!1,Ie._isDisposing=!1,Ie._languageIdentifier=xe||G.a,Ie._languageRegistryListener=un.a.onDidChange(function(At){At.languageIdentifier.id===Ie._languageIdentifier.id&&Ie._onDidChangeLanguageConfiguration.fire({})}),Ie._instanceId=N.M(Dn),Ie._lastDecorationId=0,Ie._decorations=Object.create(null),Ie._decorationsTree=new yo,Ie._commandManager=new v(Ie),Ie._isUndoing=!1,Ie._isRedoing=!1,Ie._trimAutoWhitespaceLines=null,Ie._tokens=new Y.d,Ie._tokens2=new Y.e,Ie._tokenization=new Tt(Ie),Ie}return D.createFromString=function(j,Z,xe,Ae){return Z===void 0&&(Z=D.DEFAULT_CREATION_OPTIONS),xe===void 0&&(xe=null),Ae===void 0&&(Ae=null),new D(j,Z,xe,Ae)},D.resolveOptions=function(j,Z){if(Z.detectIndentation){var xe=u(j,Z.tabSize,Z.insertSpaces);return new c.e({tabSize:xe.tabSize,indentSize:xe.tabSize,insertSpaces:xe.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})}return new c.e({tabSize:Z.tabSize,indentSize:Z.indentSize,insertSpaces:Z.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})},D.prototype.onDidChangeRawContentFast=function(j){return this._eventEmitter.fastEvent(function(Z){return j(Z.rawContentChangedEvent)})},D.prototype.onDidChangeRawContent=function(j){return this._eventEmitter.slowEvent(function(Z){return j(Z.rawContentChangedEvent)})},D.prototype.onDidChangeContentFast=function(j){return this._eventEmitter.fastEvent(function(Z){return j(Z.contentChangedEvent)})},D.prototype.onDidChangeContent=function(j){return this._eventEmitter.slowEvent(function(Z){return j(Z.contentChangedEvent)})},D.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,Le.prototype.dispose.call(this),this._isDisposing=!1},D.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},D.prototype._emitContentChangedEvent=function(j,Z){if(this._isDisposing)return;this._eventEmitter.fire(new $e(j,Z))},D.prototype.setValue=function(j){if(this._assertNotDisposed(),j===null)return;var Z=Bn(j,this._options.defaultEOL);this.setValueFromTextBuffer(Z)},D.prototype._createContentChanged2=function(j,Z,xe,Ae,Ie,dt,ht){return{changes:[{range:j,rangeOffset:Z,rangeLength:xe,text:Ae}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:Ie,isRedoing:dt,isFlush:ht}},D.prototype.setValueFromTextBuffer=function(j){if(this._assertNotDisposed(),j===null)return;var Z=this.getFullModelRange(),xe=this.getValueLengthInRange(Z),Ae=this.getLineCount(),Ie=this.getLineMaxColumn(Ae);this._buffer=j,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new yo,this._commandManager=new v(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Je([new mt],this._versionId,!1,!1),this._createContentChanged2(new U.a(1,1,Ae,Ie),0,xe,this.getValue(),!1,!1,!0))},D.prototype.setEOL=function(j){this._assertNotDisposed();var Z=j===1?`\r
`:`
`;if(this._buffer.getEOL()===Z)return;var xe=this.getFullModelRange(),Ae=this.getValueLengthInRange(xe),Ie=this.getLineCount(),dt=this.getLineMaxColumn(Ie);this._onBeforeEOLChange(),this._buffer.setEOL(Z),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Je([new Et],this._versionId,!1,!1),this._createContentChanged2(new U.a(1,1,Ie,dt),0,Ae,this.getValue(),!1,!1,!1))},D.prototype._onBeforeEOLChange=function(){var j=this.getVersionId(),Z=this._decorationsTree.search(0,!1,!1,j);this._ensureNodesHaveRanges(Z)},D.prototype._onAfterEOLChange=function(){for(var j=this.getVersionId(),Z=this._decorationsTree.collectNodesPostOrder(),xe=0,Ae=Z.length;xe<Ae;xe++){var Ie=Z[xe],dt=Ie.cachedAbsoluteStart-Ie.start,ht=this._buffer.getOffsetAt(Ie.range.startLineNumber,Ie.range.startColumn),At=this._buffer.getOffsetAt(Ie.range.endLineNumber,Ie.range.endColumn);Ie.cachedAbsoluteStart=ht,Ie.cachedAbsoluteEnd=At,Ie.cachedVersionId=j,Ie.start=ht-dt,Ie.end=At-dt,Re(Ie)}},D.prototype.onBeforeAttached=function(){this._attachedEditorCount++,this._attachedEditorCount===1&&this._onDidChangeAttached.fire(void 0)},D.prototype.onBeforeDetached=function(){this._attachedEditorCount--,this._attachedEditorCount===0&&this._onDidChangeAttached.fire(void 0)},D.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},D.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},D.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},D.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},D.prototype.isDisposed=function(){return this._isDisposed},D.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var j=0,Z=0,xe=this._buffer.getLineCount(),Ae=1;Ae<=xe;Ae++){var Ie=this._buffer.getLineLength(Ae);Ie>=fo?Z+=Ie:j+=Ie}return Z>j},Object.defineProperty(D.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),D.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},D.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},D.prototype.updateOptions=function(j){this._assertNotDisposed();var Z=typeof j.tabSize!="undefined"?j.tabSize:this._options.tabSize,xe=typeof j.indentSize!="undefined"?j.indentSize:this._options.indentSize,Ae=typeof j.insertSpaces!="undefined"?j.insertSpaces:this._options.insertSpaces,Ie=typeof j.trimAutoWhitespace!="undefined"?j.trimAutoWhitespace:this._options.trimAutoWhitespace,dt=new c.e({tabSize:Z,indentSize:xe,insertSpaces:Ae,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:Ie});if(this._options.equals(dt))return;var ht=this._options.createChangeEvent(dt);this._options=dt,this._onDidChangeOptions.fire(ht)},D.prototype.detectIndentation=function(j,Z){this._assertNotDisposed();var xe=u(this._buffer,Z,j);this.updateOptions({insertSpaces:xe.insertSpaces,tabSize:xe.tabSize,indentSize:xe.tabSize})},D._normalizeIndentationFromWhitespace=function(j,Z,xe){for(var Ae=0,Ie=0;Ie<j.length;Ie++)j.charAt(Ie)===" "?Ae+=Z:Ae++;var dt="";if(!xe){var ht=Math.floor(Ae/Z);Ae=Ae%Z;for(var Ie=0;Ie<ht;Ie++)dt+=" "}for(var Ie=0;Ie<Ae;Ie++)dt+=" ";return dt},D.normalizeIndentation=function(j,Z,xe){var Ae=N.q(j);return Ae===-1&&(Ae=j.length),D._normalizeIndentationFromWhitespace(j.substring(0,Ae),Z,xe)+j.substring(Ae)},D.prototype.normalizeIndentation=function(j){return this._assertNotDisposed(),D.normalizeIndentation(j,this._options.indentSize,this._options.insertSpaces)},D.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},D.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},D.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},D.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},D.prototype.getOffsetAt=function(j){this._assertNotDisposed();var Z=this._validatePosition(j.lineNumber,j.column,0);return this._buffer.getOffsetAt(Z.lineNumber,Z.column)},D.prototype.getPositionAt=function(j){this._assertNotDisposed();var Z=Math.min(this._buffer.getLength(),Math.max(0,j));return this._buffer.getPositionAt(Z)},D.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},D.prototype._overwriteAlternativeVersionId=function(j){this._alternativeVersionId=j},D.prototype.getValue=function(j,Z){Z===void 0&&(Z=!1),this._assertNotDisposed();var xe=this.getFullModelRange(),Ae=this.getValueInRange(xe,j);return Z?this._buffer.getBOM()+Ae:Ae},D.prototype.getValueLength=function(j,Z){Z===void 0&&(Z=!1),this._assertNotDisposed();var xe=this.getFullModelRange(),Ae=this.getValueLengthInRange(xe,j);return Z?this._buffer.getBOM().length+Ae:Ae},D.prototype.getValueInRange=function(j,Z){return Z===void 0&&(Z=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(j),Z)},D.prototype.getValueLengthInRange=function(j,Z){return Z===void 0&&(Z=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(j),Z)},D.prototype.getCharacterCountInRange=function(j,Z){return Z===void 0&&(Z=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(j),Z)},D.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},D.prototype.getLineContent=function(j){if(this._assertNotDisposed(),j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(j)},D.prototype.getLineLength=function(j){if(this._assertNotDisposed(),j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(j)},D.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},D.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},D.prototype.getLineMinColumn=function(j){return this._assertNotDisposed(),1},D.prototype.getLineMaxColumn=function(j){if(this._assertNotDisposed(),j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(j)+1},D.prototype.getLineFirstNonWhitespaceColumn=function(j){if(this._assertNotDisposed(),j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(j)},D.prototype.getLineLastNonWhitespaceColumn=function(j){if(this._assertNotDisposed(),j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(j)},D.prototype._validateRangeRelaxedNoAllocations=function(j){var Z=this._buffer.getLineCount(),xe=j.startLineNumber,Ae=j.startColumn,Ie,dt;if(xe<1)Ie=1,dt=1;else if(xe>Z)Ie=Z,dt=this.getLineMaxColumn(Ie);else if(Ie=xe|0,Ae<=1)dt=1;else{var ht=this.getLineMaxColumn(Ie);Ae>=ht?dt=ht:dt=Ae|0}var At=j.endLineNumber,Bt=j.endColumn,Ut,Ht;if(At<1)Ut=1,Ht=1;else if(At>Z)Ut=Z,Ht=this.getLineMaxColumn(Ut);else if(Ut=At|0,Bt<=1)Ht=1;else{var ht=this.getLineMaxColumn(Ut);Bt>=ht?Ht=ht:Ht=Bt|0}return xe===Ie&&Ae===dt&&At===Ut&&Bt===Ht&&j instanceof U.a&&!(j instanceof A.a)?j:new U.a(Ie,dt,Ut,Ht)},D.prototype._isValidPosition=function(j,Z,xe){if(typeof j!="number"||typeof Z!="number")return!1;if(isNaN(j)||isNaN(Z))return!1;if(j<1||Z<1)return!1;if((j|0)!==j||(Z|0)!==Z)return!1;var Ae=this._buffer.getLineCount();if(j>Ae)return!1;if(Z===1)return!0;var Ie=this.getLineMaxColumn(j);if(Z>Ie)return!1;if(xe===1){var dt=this._buffer.getLineCharCode(j,Z-2);if(N.z(dt))return!1}return!0},D.prototype._validatePosition=function(j,Z,xe){var Ae=Math.floor(typeof j=="number"&&!isNaN(j)?j:1),Ie=Math.floor(typeof Z=="number"&&!isNaN(Z)?Z:1),dt=this._buffer.getLineCount();if(Ae<1)return new M.a(1,1);if(Ae>dt)return new M.a(dt,this.getLineMaxColumn(dt));if(Ie<=1)return new M.a(Ae,1);var ht=this.getLineMaxColumn(Ae);if(Ie>=ht)return new M.a(Ae,ht);if(xe===1){var At=this._buffer.getLineCharCode(Ae,Ie-2);if(N.z(At))return new M.a(Ae,Ie-1)}return new M.a(Ae,Ie)},D.prototype.validatePosition=function(j){var Z=1;return this._assertNotDisposed(),j instanceof M.a&&this._isValidPosition(j.lineNumber,j.column,Z)?j:this._validatePosition(j.lineNumber,j.column,Z)},D.prototype._isValidRange=function(j,Z){var xe=j.startLineNumber,Ae=j.startColumn,Ie=j.endLineNumber,dt=j.endColumn;if(!this._isValidPosition(xe,Ae,0))return!1;if(!this._isValidPosition(Ie,dt,0))return!1;if(Z===1){var ht=Ae>1?this._buffer.getLineCharCode(xe,Ae-2):0,At=dt>1&&dt<=this._buffer.getLineLength(Ie)?this._buffer.getLineCharCode(Ie,dt-2):0,Bt=N.z(ht),Ut=N.z(At);return!Bt&&!Ut}return!0},D.prototype.validateRange=function(j){var Z=1;if(this._assertNotDisposed(),j instanceof U.a&&!(j instanceof A.a)&&this._isValidRange(j,Z))return j;var xe=this._validatePosition(j.startLineNumber,j.startColumn,0),Ae=this._validatePosition(j.endLineNumber,j.endColumn,0),Ie=xe.lineNumber,dt=xe.column,ht=Ae.lineNumber,At=Ae.column;if(Z===1){var Bt=dt>1?this._buffer.getLineCharCode(Ie,dt-2):0,Ut=At>1&&At<=this._buffer.getLineLength(ht)?this._buffer.getLineCharCode(ht,At-2):0,Ht=N.z(Bt),nn=N.z(Ut);return!Ht&&!nn?new U.a(Ie,dt,ht,At):Ie===ht&&dt===At?new U.a(Ie,dt-1,ht,At-1):Ht&&nn?new U.a(Ie,dt-1,ht,At+1):Ht?new U.a(Ie,dt-1,ht,At):new U.a(Ie,dt,ht,At+1)}return new U.a(Ie,dt,ht,At)},D.prototype.modifyPosition=function(j,Z){this._assertNotDisposed();var xe=this.getOffsetAt(j)+Z;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,xe)))},D.prototype.getFullModelRange=function(){this._assertNotDisposed();var j=this.getLineCount();return new U.a(1,1,j,this.getLineMaxColumn(j))},D.prototype.findMatchesLineByLine=function(j,Z,xe,Ae){return this._buffer.findMatchesLineByLine(j,Z,xe,Ae)},D.prototype.findMatches=function(j,Z,xe,Ae,Ie,dt,ht){ht===void 0&&(ht=Qn),this._assertNotDisposed();var At;if(U.a.isIRange(Z)?At=this.validateRange(Z):At=this.getFullModelRange(),!xe&&j.indexOf(`
`)<0){var Bt=new Dt.a(j,xe,Ae,Ie),Ut=Bt.parseSearchRequest();return Ut?this.findMatchesLineByLine(At,Ut,dt,ht):[]}return Dt.c.findMatches(this,new Dt.a(j,xe,Ae,Ie),At,dt,ht)},D.prototype.findNextMatch=function(j,Z,xe,Ae,Ie,dt){this._assertNotDisposed();var ht=this.validatePosition(Z);if(!xe&&j.indexOf(`
`)<0){var At=new Dt.a(j,xe,Ae,Ie),Bt=At.parseSearchRequest();if(!Bt)return null;var Ut=this.getLineCount(),Ht=new U.a(ht.lineNumber,ht.column,Ut,this.getLineMaxColumn(Ut)),nn=this.findMatchesLineByLine(Ht,Bt,dt,1);return Dt.c.findNextMatch(this,new Dt.a(j,xe,Ae,Ie),ht,dt),nn.length>0?nn[0]:(Ht=new U.a(1,1,ht.lineNumber,this.getLineMaxColumn(ht.lineNumber)),nn=this.findMatchesLineByLine(Ht,Bt,dt,1),nn.length>0?nn[0]:null)}return Dt.c.findNextMatch(this,new Dt.a(j,xe,Ae,Ie),ht,dt)},D.prototype.findPreviousMatch=function(j,Z,xe,Ae,Ie,dt){this._assertNotDisposed();var ht=this.validatePosition(Z);return Dt.c.findPreviousMatch(this,new Dt.a(j,xe,Ae,Ie),ht,dt)},D.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},D.prototype.pushEOL=function(j){var Z=this.getEOL()===`
`?0:1;if(Z===j)return;try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(j)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},D.prototype.pushEditOperations=function(j,Z,xe){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(j,Z,xe)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},D.prototype._pushEditOperations=function(j,Z,xe){var Ae=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var Ie=Z.map(function(ge){return{range:Ae.validateRange(ge.range),text:ge.text}}),dt=!0,ht=0,At=j.length;ht<At;ht++){for(var Bt=j[ht],Ut=!1,Ht=0,nn=Ie.length;Ht<nn;Ht++){var Zt=Ie[Ht].range,fn=Zt.startLineNumber>Bt.endLineNumber,yt=Bt.startLineNumber>Zt.endLineNumber;if(!fn&&!yt){Ut=!0;break}}if(!Ut){dt=!1;break}}if(dt)for(var ht=0,At=this._trimAutoWhitespaceLines.length;ht<At;ht++){for(var Ue=this._trimAutoWhitespaceLines[ht],Me=this.getLineMaxColumn(Ue),rt=!0,Ht=0,nn=Ie.length;Ht<nn;Ht++){var Zt=Ie[Ht].range,Nt=Ie[Ht].text;if(Ue<Zt.startLineNumber||Ue>Zt.endLineNumber)continue;if(Ue===Zt.startLineNumber&&Zt.startColumn===Me&&Zt.isEmpty()&&Nt&&Nt.length>0&&Nt.charAt(0)===`
`)continue;if(Ue===Zt.startLineNumber&&Zt.startColumn===1&&Zt.isEmpty()&&Nt&&Nt.length>0&&Nt.charAt(Nt.length-1)===`
`)continue;rt=!1;break}rt&&Z.push({range:new U.a(Ue,1,Ue,Me),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(j,Z,xe)},D.prototype.applyEdits=function(j){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(j)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},D.prototype._applyEdits=function(j){for(var Z=0,xe=j.length;Z<xe;Z++)j[Z].range=this.validateRange(j[Z].range);var Ae=this._buffer.getLineCount(),Ie=this._buffer.applyEdits(j,this._options.trimAutoWhitespace),dt=this._buffer.getLineCount(),ht=Ie.changes;if(this._trimAutoWhitespaceLines=Ie.trimAutoWhitespaceLineNumbers,ht.length!==0){for(var At=[],Bt=Ae,Z=0,xe=ht.length;Z<xe;Z++){var Ut=ht[Z],Ht=Object(Y.f)(Ut.text),nn=Ht[0],Zt=Ht[1],fn=Ht[2];this._tokens.acceptEdit(Ut.range,nn,Zt),this._tokens2.acceptEdit(Ut.range,nn,Zt,fn,Ut.text.length>0?Ut.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(Ut.rangeOffset,Ut.rangeLength,Ut.text.length,Ut.forceMoveMarkers);for(var yt=Ut.range.startLineNumber,Ue=Ut.range.endLineNumber,Me=Ue-yt,rt=nn,Nt=Math.min(Me,rt),ge=rt-Me,O=Nt;O>=0;O--){var ye=yt+O,We=dt-Bt-ge+ye;At.push(new Ct(ye,this.getLineContent(We)))}if(Nt<Me){var Ze=yt+Nt;At.push(new Gt(Ze+1,Ue))}if(Nt<rt){for(var st=yt+Nt,pt=rt-Nt,Kt=dt-Bt-pt+st+1,Xt=[],on=0;on<pt;on++){var vn=Kt+on;Xt[vn-Kt]=this.getLineContent(vn)}At.push(new It(st+1,yt+rt,Xt))}Bt+=ge}this._increaseVersionId(),this._emitContentChangedEvent(new Je(At,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:ht,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return Ie.reverseEdits},D.prototype._undo=function(){this._isUndoing=!0;var j=this._commandManager.undo();return this._isUndoing=!1,j?(this._overwriteAlternativeVersionId(j.recordedVersionId),j.selections):null},D.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},D.prototype.canUndo=function(){return this._commandManager.canUndo()},D.prototype._redo=function(){this._isRedoing=!0;var j=this._commandManager.redo();return this._isRedoing=!1,j?(this._overwriteAlternativeVersionId(j.recordedVersionId),j.selections):null},D.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},D.prototype.canRedo=function(){return this._commandManager.canRedo()},D.prototype.changeDecorations=function(j,Z){Z===void 0&&(Z=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(Z,j)}finally{this._onDidChangeDecorations.endDeferredEmit()}},D.prototype._changeDecorations=function(j,Z){var xe=this,Ae={addDecoration:function(ht,At){return xe._onDidChangeDecorations.fire(),xe._deltaDecorationsImpl(j,[],[{range:ht,options:At}])[0]},changeDecoration:function(ht,At){xe._onDidChangeDecorations.fire(),xe._changeDecorationImpl(ht,At)},changeDecorationOptions:function(ht,At){xe._onDidChangeDecorations.fire(),xe._changeDecorationOptionsImpl(ht,nt(At))},removeDecoration:function(ht){xe._onDidChangeDecorations.fire(),xe._deltaDecorationsImpl(j,[ht],[])},deltaDecorations:function(ht,At){return ht.length===0&&At.length===0?[]:(xe._onDidChangeDecorations.fire(),xe._deltaDecorationsImpl(j,ht,At))}},Ie=null;try{Ie=Z(Ae)}catch(dt){Object(T.e)(dt)}return Ae.addDecoration=Vn,Ae.changeDecoration=Vn,Ae.changeDecorationOptions=Vn,Ae.removeDecoration=Vn,Ae.deltaDecorations=Vn,Ie},D.prototype.deltaDecorations=function(j,Z,xe){if(xe===void 0&&(xe=0),this._assertNotDisposed(),j||(j=[]),j.length===0&&Z.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(xe,j,Z)}finally{this._onDidChangeDecorations.endDeferredEmit()}},D.prototype._getTrackedRange=function(j){return this.getDecorationRange(j)},D.prototype._setTrackedRange=function(j,Z,xe){var Ae=j?this._decorations[j]:null;if(!Ae)return Z?this._deltaDecorationsImpl(0,[],[{range:Z,options:wt[xe]}])[0]:null;if(!Z)return this._decorationsTree.delete(Ae),delete this._decorations[Ae.id],null;var Ie=this._validateRangeRelaxedNoAllocations(Z),dt=this._buffer.getOffsetAt(Ie.startLineNumber,Ie.startColumn),ht=this._buffer.getOffsetAt(Ie.endLineNumber,Ie.endColumn);return this._decorationsTree.delete(Ae),Ae.reset(this.getVersionId(),dt,ht,Ie),Ae.setOptions(wt[xe]),this._decorationsTree.insert(Ae),Ae.id},D.prototype.removeAllDecorationsWithOwnerId=function(j){if(this._isDisposed)return;for(var Z=this._decorationsTree.collectNodesFromOwner(j),xe=0,Ae=Z.length;xe<Ae;xe++){var Ie=Z[xe];this._decorationsTree.delete(Ie),delete this._decorations[Ie.id]}},D.prototype.getDecorationOptions=function(j){var Z=this._decorations[j];return Z?Z.options:null},D.prototype.getDecorationRange=function(j){var Z=this._decorations[j];if(!Z)return null;var xe=this.getVersionId();return Z.cachedVersionId!==xe&&this._decorationsTree.resolveNode(Z,xe),Z.range===null&&(Z.range=this._getRangeAt(Z.cachedAbsoluteStart,Z.cachedAbsoluteEnd)),Z.range},D.prototype.getLineDecorations=function(j,Z,xe){return Z===void 0&&(Z=0),xe===void 0&&(xe=!1),j<1||j>this.getLineCount()?[]:this.getLinesDecorations(j,j,Z,xe)},D.prototype.getLinesDecorations=function(j,Z,xe,Ae){xe===void 0&&(xe=0),Ae===void 0&&(Ae=!1);var Ie=this.getLineCount(),dt=Math.min(Ie,Math.max(1,j)),ht=Math.min(Ie,Math.max(1,Z)),At=this.getLineMaxColumn(ht);return this._getDecorationsInRange(new U.a(dt,1,ht,At),xe,Ae)},D.prototype.getDecorationsInRange=function(j,Z,xe){Z===void 0&&(Z=0),xe===void 0&&(xe=!1);var Ae=this.validateRange(j);return this._getDecorationsInRange(Ae,Z,xe)},D.prototype.getOverviewRulerDecorations=function(j,Z){j===void 0&&(j=0),Z===void 0&&(Z=!1);var xe=this.getVersionId(),Ae=this._decorationsTree.search(j,Z,!0,xe);return this._ensureNodesHaveRanges(Ae)},D.prototype.getAllDecorations=function(j,Z){j===void 0&&(j=0),Z===void 0&&(Z=!1);var xe=this.getVersionId(),Ae=this._decorationsTree.search(j,Z,!1,xe);return this._ensureNodesHaveRanges(Ae)},D.prototype._getDecorationsInRange=function(j,Z,xe){var Ae=this._buffer.getOffsetAt(j.startLineNumber,j.startColumn),Ie=this._buffer.getOffsetAt(j.endLineNumber,j.endColumn),dt=this.getVersionId(),ht=this._decorationsTree.intervalSearch(Ae,Ie,Z,xe,dt);return this._ensureNodesHaveRanges(ht)},D.prototype._ensureNodesHaveRanges=function(j){for(var Z=0,xe=j.length;Z<xe;Z++){var Ae=j[Z];Ae.range===null&&(Ae.range=this._getRangeAt(Ae.cachedAbsoluteStart,Ae.cachedAbsoluteEnd))}return j},D.prototype._getRangeAt=function(j,Z){return this._buffer.getRangeAt(j,Z-j)},D.prototype._changeDecorationImpl=function(j,Z){var xe=this._decorations[j];if(!xe)return;var Ae=this._validateRangeRelaxedNoAllocations(Z),Ie=this._buffer.getOffsetAt(Ae.startLineNumber,Ae.startColumn),dt=this._buffer.getOffsetAt(Ae.endLineNumber,Ae.endColumn);this._decorationsTree.delete(xe),xe.reset(this.getVersionId(),Ie,dt,Ae),this._decorationsTree.insert(xe)},D.prototype._changeDecorationOptionsImpl=function(j,Z){var xe=this._decorations[j];if(!xe)return;var Ae=!!(xe.options.overviewRuler&&xe.options.overviewRuler.color),Ie=!!(Z.overviewRuler&&Z.overviewRuler.color);Ae!==Ie?(this._decorationsTree.delete(xe),xe.setOptions(Z),this._decorationsTree.insert(xe)):xe.setOptions(Z)},D.prototype._deltaDecorationsImpl=function(j,Z,xe){for(var Ae=this.getVersionId(),Ie=Z.length,dt=0,ht=xe.length,At=0,Bt=new Array(ht);dt<Ie||At<ht;){var Ut=null;if(dt<Ie){do Ut=this._decorations[Z[dt++]];while(!Ut&&dt<Ie);Ut&&this._decorationsTree.delete(Ut)}if(At<ht){if(!Ut){var Ht=++this._lastDecorationId,nn=this._instanceId+";"+Ht;Ut=new B(nn,0,0),this._decorations[nn]=Ut}var Zt=xe[At],fn=this._validateRangeRelaxedNoAllocations(Zt.range),yt=nt(Zt.options),Ue=this._buffer.getOffsetAt(fn.startLineNumber,fn.startColumn),Me=this._buffer.getOffsetAt(fn.endLineNumber,fn.endColumn);Ut.ownerId=j,Ut.reset(Ae,Ue,Me,fn),Ut.setOptions(yt),this._decorationsTree.insert(Ut),Bt[At]=Ut.id,At++}else Ut&&delete this._decorations[Ut.id]}return Bt},D.prototype.setLineTokens=function(j,Z){if(j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,j-1,this._buffer.getLineLength(j),Z)},D.prototype.setTokens=function(j){if(j.length===0)return;for(var Z=[],xe=0,Ae=j.length;xe<Ae;xe++){var Ie=j[xe];Z.push({fromLineNumber:Ie.startLineNumber,toLineNumber:Ie.startLineNumber+Ie.tokens.length-1});for(var dt=0,ht=Ie.tokens.length;dt<ht;dt++)this.setLineTokens(Ie.startLineNumber+dt,Ie.tokens[dt])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:Z})},D.prototype.setSemanticTokens=function(j){this._tokens2.set(j),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},D.prototype.tokenizeViewport=function(j,Z){j=Math.max(1,j),Z=Math.min(this._buffer.getLineCount(),Z),this._tokenization.tokenizeViewport(j,Z)},D.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},D.prototype._emitModelTokensChangedEvent=function(j){this._isDisposing||this._onDidChangeTokens.fire(j)},D.prototype.resetTokenization=function(){this._tokenization.reset()},D.prototype.forceTokenization=function(j){if(j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(j)},D.prototype.isCheapToTokenize=function(j){return this._tokenization.isCheapToTokenize(j)},D.prototype.tokenizeIfCheap=function(j){this.isCheapToTokenize(j)&&this.forceTokenization(j)},D.prototype.getLineTokens=function(j){if(j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(j)},D.prototype._getLineTokens=function(j){var Z=this.getLineContent(j),xe=this._tokens.getTokens(this._languageIdentifier.id,j-1,Z);return this._tokens2.addSemanticTokens(j,xe)},D.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},D.prototype.getModeId=function(){return this._languageIdentifier.language},D.prototype.setMode=function(j){if(this._languageIdentifier.id===j.id)return;var Z={oldLanguage:this._languageIdentifier.language,newLanguage:j.language};this._languageIdentifier=j,this._onDidChangeLanguage.fire(Z),this._onDidChangeLanguageConfiguration.fire({})},D.prototype.getLanguageIdAtPosition=function(j,Z){var xe=this.validatePosition(new M.a(j,Z)),Ae=this.getLineTokens(xe.lineNumber);return Ae.getLanguageId(Ae.findTokenIndexAtOffset(xe.column-1))},D.prototype.getWordAtPosition=function(j){this._assertNotDisposed();var Z=this.validatePosition(j),xe=this.getLineContent(Z.lineNumber),Ae=this._getLineTokens(Z.lineNumber),Ie=Ae.findTokenIndexAtOffset(Z.column-1),dt=D._findLanguageBoundaries(Ae,Ie),ht=dt[0],At=dt[1],Bt=Object(gn.d)(Z.column,un.a.getWordDefinition(Ae.getLanguageId(Ie)),xe.substring(ht,At),ht);if(Bt&&Bt.startColumn<=j.column&&j.column<=Bt.endColumn)return Bt;if(Ie>0&&ht===Z.column-1){var Ut=D._findLanguageBoundaries(Ae,Ie-1),Ht=Ut[0],nn=Ut[1],Zt=Object(gn.d)(Z.column,un.a.getWordDefinition(Ae.getLanguageId(Ie-1)),xe.substring(Ht,nn),Ht);if(Zt&&Zt.startColumn<=j.column&&j.column<=Zt.endColumn)return Zt}return null},D._findLanguageBoundaries=function(j,Z){for(var xe=j.getLanguageId(Z),Ae=0,Ie=Z;Ie>=0&&j.getLanguageId(Ie)===xe;Ie--)Ae=j.getStartOffset(Ie);for(var dt=j.getLineContent().length,Ie=Z,ht=j.getCount();Ie<ht&&j.getLanguageId(Ie)===xe;Ie++)dt=j.getEndOffset(Ie);return[Ae,dt]},D.prototype.getWordUntilPosition=function(j){var Z=this.getWordAtPosition(j);return Z?{word:Z.word.substr(0,j.column-Z.startColumn),startColumn:Z.startColumn,endColumn:j.column}:{word:"",startColumn:j.column,endColumn:j.column}},D.prototype.findMatchingBracketUp=function(j,Z){var xe=j.toLowerCase(),Ae=this.validatePosition(Z),Ie=this._getLineTokens(Ae.lineNumber),dt=Ie.getLanguageId(Ie.findTokenIndexAtOffset(Ae.column-1)),ht=un.a.getBracketsSupport(dt);if(!ht)return null;var At=ht.textIsBracket[xe];return At?this._findMatchingBracketUp(At,Ae):null},D.prototype.matchBracket=function(j){return this._matchBracket(this.validatePosition(j))},D.prototype._matchBracket=function(j){var Z=j.lineNumber,xe=this._getLineTokens(Z),Ae=xe.getCount(),Ie=this._buffer.getLineContent(Z),dt=xe.findTokenIndexAtOffset(j.column-1);if(dt<0)return null;var ht=un.a.getBracketsSupport(xe.getLanguageId(dt));if(ht&&!Object(En.b)(xe.getStandardTokenType(dt))){for(var At=Math.max(0,j.column-1-ht.maxBracketLength),Bt=dt-1;Bt>=0;Bt--){var Ut=xe.getEndOffset(Bt);if(Ut<=At)break;Object(En.b)(xe.getStandardTokenType(Bt))&&(At=Ut)}for(var Ht=Math.min(Ie.length,j.column-1+ht.maxBracketLength),nn=null;;){var Zt=Mn.a.findNextBracketInRange(ht.forwardRegex,Z,Ie,At,Ht);if(!Zt)break;if(Zt.startColumn<=j.column&&j.column<=Zt.endColumn){var fn=Ie.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),yt=this._matchFoundBracket(Zt,ht.textIsBracket[fn],ht.textIsOpenBracket[fn]);yt&&(nn=yt)}At=Zt.endColumn-1}if(nn)return nn}if(dt>0&&xe.getStartOffset(dt)===j.column-1){var Ue=dt-1,Me=un.a.getBracketsSupport(xe.getLanguageId(Ue));if(Me&&!Object(En.b)(xe.getStandardTokenType(Ue))){for(var At=Math.max(0,j.column-1-Me.maxBracketLength),Ht=Math.min(Ie.length,j.column-1+Me.maxBracketLength),Bt=Ue+1;Bt<Ae;Bt++){var rt=xe.getStartOffset(Bt);if(rt>=Ht)break;Object(En.b)(xe.getStandardTokenType(Bt))&&(Ht=rt)}var Zt=Mn.a.findPrevBracketInRange(Me.reversedRegex,Z,Ie,At,Ht);if(Zt&&Zt.startColumn<=j.column&&j.column<=Zt.endColumn){var fn=Ie.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),yt=this._matchFoundBracket(Zt,Me.textIsBracket[fn],Me.textIsOpenBracket[fn]);if(yt)return yt}}}return null},D.prototype._matchFoundBracket=function(j,Z,xe){if(!Z)return null;if(xe){var Ae=this._findMatchingBracketDown(Z,j.getEndPosition());if(Ae)return[j,Ae]}else{var Ae=this._findMatchingBracketUp(Z,j.getStartPosition());if(Ae)return[j,Ae]}return null},D.prototype._findMatchingBracketUp=function(j,Z){for(var xe=j.languageIdentifier.id,Ae=j.reversedRegex,Ie=-1,dt=function(rt,Nt,ge,O){for(;;){var ye=Mn.a.findPrevBracketInRange(Ae,rt,Nt,ge,O);if(!ye)break;var We=Nt.substring(ye.startColumn-1,ye.endColumn-1).toLowerCase();if(j.isOpen(We)?Ie++:j.isClose(We)&&Ie--,Ie===0)return ye;O=ye.startColumn-1}return null},ht=Z.lineNumber;ht>=1;ht--){var At=this._getLineTokens(ht),Bt=At.getCount(),Ut=this._buffer.getLineContent(ht),Ht=Bt-1,nn=Ut.length,Zt=Ut.length;ht===Z.lineNumber&&(Ht=At.findTokenIndexAtOffset(Z.column-1),nn=Z.column-1,Zt=Z.column-1);for(var fn=!0;Ht>=0;Ht--){var yt=At.getLanguageId(Ht)===xe&&!Object(En.b)(At.getStandardTokenType(Ht));if(yt)fn?nn=At.getStartOffset(Ht):(nn=At.getStartOffset(Ht),Zt=At.getEndOffset(Ht));else if(fn&&nn!==Zt){var Ue=dt(ht,Ut,nn,Zt);if(Ue)return Ue}fn=yt}if(fn&&nn!==Zt){var Ue=dt(ht,Ut,nn,Zt);if(Ue)return Ue}}return null},D.prototype._findMatchingBracketDown=function(j,Z){for(var xe=j.languageIdentifier.id,Ae=j.forwardRegex,Ie=1,dt=function(Nt,ge,O,ye){for(;;){var We=Mn.a.findNextBracketInRange(Ae,Nt,ge,O,ye);if(!We)break;var Ze=ge.substring(We.startColumn-1,We.endColumn-1).toLowerCase();if(j.isOpen(Ze)?Ie++:j.isClose(Ze)&&Ie--,Ie===0)return We;O=We.endColumn-1}return null},ht=this.getLineCount(),At=Z.lineNumber;At<=ht;At++){var Bt=this._getLineTokens(At),Ut=Bt.getCount(),Ht=this._buffer.getLineContent(At),nn=0,Zt=0,fn=0;At===Z.lineNumber&&(nn=Bt.findTokenIndexAtOffset(Z.column-1),Zt=Z.column-1,fn=Z.column-1);for(var yt=!0;nn<Ut;nn++){var Ue=Bt.getLanguageId(nn)===xe&&!Object(En.b)(Bt.getStandardTokenType(nn));if(Ue)yt||(Zt=Bt.getStartOffset(nn)),fn=Bt.getEndOffset(nn);else if(yt&&Zt!==fn){var Me=dt(At,Ht,Zt,fn);if(Me)return Me}yt=Ue}if(yt&&Zt!==fn){var Me=dt(At,Ht,Zt,fn);if(Me)return Me}}return null},D.prototype.findPrevBracket=function(j){for(var Z=this.validatePosition(j),xe=-1,Ae=null,Ie=Z.lineNumber;Ie>=1;Ie--){var dt=this._getLineTokens(Ie),ht=dt.getCount(),At=this._buffer.getLineContent(Ie),Bt=ht-1,Ut=At.length,Ht=At.length;if(Ie===Z.lineNumber){Bt=dt.findTokenIndexAtOffset(Z.column-1),Ut=Z.column-1,Ht=Z.column-1;var nn=dt.getLanguageId(Bt);xe!==nn&&(xe=nn,Ae=un.a.getBracketsSupport(xe))}for(var Zt=!0;Bt>=0;Bt--){var nn=dt.getLanguageId(Bt);if(xe!==nn){if(Ae&&Zt&&Ut!==Ht){var fn=Mn.a.findPrevBracketInRange(Ae.reversedRegex,Ie,At,Ut,Ht);if(fn)return this._toFoundBracket(Ae,fn);Zt=!1}xe=nn,Ae=un.a.getBracketsSupport(xe)}var yt=!!Ae&&!Object(En.b)(dt.getStandardTokenType(Bt));if(yt)Zt?Ut=dt.getStartOffset(Bt):(Ut=dt.getStartOffset(Bt),Ht=dt.getEndOffset(Bt));else if(Ae&&Zt&&Ut!==Ht){var fn=Mn.a.findPrevBracketInRange(Ae.reversedRegex,Ie,At,Ut,Ht);if(fn)return this._toFoundBracket(Ae,fn)}Zt=yt}if(Ae&&Zt&&Ut!==Ht){var fn=Mn.a.findPrevBracketInRange(Ae.reversedRegex,Ie,At,Ut,Ht);if(fn)return this._toFoundBracket(Ae,fn)}}return null},D.prototype.findNextBracket=function(j){for(var Z=this.validatePosition(j),xe=this.getLineCount(),Ae=-1,Ie=null,dt=Z.lineNumber;dt<=xe;dt++){var ht=this._getLineTokens(dt),At=ht.getCount(),Bt=this._buffer.getLineContent(dt),Ut=0,Ht=0,nn=0;if(dt===Z.lineNumber){Ut=ht.findTokenIndexAtOffset(Z.column-1),Ht=Z.column-1,nn=Z.column-1;var Zt=ht.getLanguageId(Ut);Ae!==Zt&&(Ae=Zt,Ie=un.a.getBracketsSupport(Ae))}for(var fn=!0;Ut<At;Ut++){var Zt=ht.getLanguageId(Ut);if(Ae!==Zt){if(Ie&&fn&&Ht!==nn){var yt=Mn.a.findNextBracketInRange(Ie.forwardRegex,dt,Bt,Ht,nn);if(yt)return this._toFoundBracket(Ie,yt);fn=!1}Ae=Zt,Ie=un.a.getBracketsSupport(Ae)}var Ue=!!Ie&&!Object(En.b)(ht.getStandardTokenType(Ut));if(Ue)fn||(Ht=ht.getStartOffset(Ut)),nn=ht.getEndOffset(Ut);else if(Ie&&fn&&Ht!==nn){var yt=Mn.a.findNextBracketInRange(Ie.forwardRegex,dt,Bt,Ht,nn);if(yt)return this._toFoundBracket(Ie,yt)}fn=Ue}if(Ie&&fn&&Ht!==nn){var yt=Mn.a.findNextBracketInRange(Ie.forwardRegex,dt,Bt,Ht,nn);if(yt)return this._toFoundBracket(Ie,yt)}}return null},D.prototype.findEnclosingBrackets=function(j,Z){var xe=this;Z===void 0&&(Z=1073741824);for(var Ae=this.validatePosition(j),Ie=this.getLineCount(),dt=new Map,ht=[],At=function(pt,Kt){if(!dt.has(pt)){for(var Xt=[],on=0,vn=Kt?Kt.brackets.length:0;on<vn;on++)Xt[on]=0;dt.set(pt,Xt)}ht=dt.get(pt)},Bt=function(pt,Kt,Xt,on,vn){for(;;){var dn=Mn.a.findNextBracketInRange(pt.forwardRegex,Kt,Xt,on,vn);if(!dn)break;var Rn=Xt.substring(dn.startColumn-1,dn.endColumn-1).toLowerCase(),Sn=pt.textIsBracket[Rn];if(Sn&&(Sn.isOpen(Rn)?ht[Sn.index]++:Sn.isClose(Rn)&&ht[Sn.index]--,ht[Sn.index]===-1))return xe._matchFoundBracket(dn,Sn,!1);on=dn.endColumn-1}return null},Ut=-1,Ht=null,nn=Date.now(),Zt=Ae.lineNumber;Zt<=Ie;Zt++){var fn=Date.now()-nn;if(fn>Z)return null;var yt=this._getLineTokens(Zt),Ue=yt.getCount(),Me=this._buffer.getLineContent(Zt),rt=0,Nt=0,ge=0;if(Zt===Ae.lineNumber){rt=yt.findTokenIndexAtOffset(Ae.column-1),Nt=Ae.column-1,ge=Ae.column-1;var O=yt.getLanguageId(rt);Ut!==O&&(Ut=O,Ht=un.a.getBracketsSupport(Ut),At(Ut,Ht))}for(var ye=!0;rt<Ue;rt++){var O=yt.getLanguageId(rt);if(Ut!==O){if(Ht&&ye&&Nt!==ge){var We=Bt(Ht,Zt,Me,Nt,ge);if(We)return We;ye=!1}Ut=O,Ht=un.a.getBracketsSupport(Ut),At(Ut,Ht)}var Ze=!!Ht&&!Object(En.b)(yt.getStandardTokenType(rt));if(Ze)ye||(Nt=yt.getStartOffset(rt)),ge=yt.getEndOffset(rt);else if(Ht&&ye&&Nt!==ge){var We=Bt(Ht,Zt,Me,Nt,ge);if(We)return We}ye=Ze}if(Ht&&ye&&Nt!==ge){var We=Bt(Ht,Zt,Me,Nt,ge);if(We)return We}}return null},D.prototype._toFoundBracket=function(j,Z){if(!Z)return null;var xe=this.getValueInRange(Z);xe=xe.toLowerCase();var Ae=j.textIsBracket[xe];return Ae?{range:Z,open:Ae.open,close:Ae.close,isOpen:j.textIsOpenBracket[xe]}:null},D.computeIndentLevel=function(j,Z){for(var xe=0,Ae=0,Ie=j.length;Ae<Ie;){var dt=j.charCodeAt(Ae);if(dt===32)xe++;else if(dt===9)xe=xe-xe%Z+Z;else break;Ae++}return Ae===Ie?-1:xe},D.prototype._computeIndentLevel=function(j){return D.computeIndentLevel(this._buffer.getLineContent(j+1),this._options.tabSize)},D.prototype.getActiveIndentGuide=function(j,Z,xe){var Ae=this;this._assertNotDisposed();var Ie=this.getLineCount();if(j<1||j>Ie)throw new Error("Illegal value for lineNumber");for(var dt=un.a.getFoldingRules(this._languageIdentifier.id),ht=Boolean(dt&&dt.offSide),At=-2,Bt=-1,Ut=-2,Ht=-1,nn=function(vn){if(At!==-1&&(At===-2||At>vn-1)){At=-1,Bt=-1;for(var dn=vn-2;dn>=0;dn--){var Rn=Ae._computeIndentLevel(dn);if(Rn>=0){At=dn,Bt=Rn;break}}}if(Ut===-2){Ut=-1,Ht=-1;for(var dn=vn;dn<Ie;dn++){var Sn=Ae._computeIndentLevel(dn);if(Sn>=0){Ut=dn,Ht=Sn;break}}}},Zt=-2,fn=-1,yt=-2,Ue=-1,Me=function(vn){if(Zt===-2){Zt=-1,fn=-1;for(var dn=vn-2;dn>=0;dn--){var Rn=Ae._computeIndentLevel(dn);if(Rn>=0){Zt=dn,fn=Rn;break}}}if(yt!==-1&&(yt===-2||yt<vn-1)){yt=-1,Ue=-1;for(var dn=vn;dn<Ie;dn++){var Sn=Ae._computeIndentLevel(dn);if(Sn>=0){yt=dn,Ue=Sn;break}}}},rt=0,Nt=!0,ge=0,O=!0,ye=0,We=0;Nt||O;We++){var Ze=j-We,st=j+We;if(We!==0&&(Ze<1||Ze<Z)&&(Nt=!1),We!==0&&(st>Ie||st>xe)&&(O=!1),We>5e4&&(Nt=!1,O=!1),Nt){var pt=void 0,Kt=this._computeIndentLevel(Ze-1);if(Kt>=0?(Ut=Ze-1,Ht=Kt,pt=Math.ceil(Kt/this._options.indentSize)):(nn(Ze),pt=this._getIndentLevelForWhitespaceLine(ht,Bt,Ht)),We===0){if(rt=Ze,ge=st,ye=pt,ye===0)return{startLineNumber:rt,endLineNumber:ge,indent:ye};continue}pt>=ye?rt=Ze:Nt=!1}if(O){var Xt=void 0,Kt=this._computeIndentLevel(st-1);Kt>=0?(Zt=st-1,fn=Kt,Xt=Math.ceil(Kt/this._options.indentSize)):(Me(st),Xt=this._getIndentLevelForWhitespaceLine(ht,fn,Ue)),Xt>=ye?ge=st:O=!1}}return{startLineNumber:rt,endLineNumber:ge,indent:ye}},D.prototype.getLinesIndentGuides=function(j,Z){this._assertNotDisposed();var xe=this.getLineCount();if(j<1||j>xe)throw new Error("Illegal value for startLineNumber");if(Z<1||Z>xe)throw new Error("Illegal value for endLineNumber");for(var Ae=un.a.getFoldingRules(this._languageIdentifier.id),Ie=Boolean(Ae&&Ae.offSide),dt=new Array(Z-j+1),ht=-2,At=-1,Bt=-2,Ut=-1,Ht=j;Ht<=Z;Ht++){var nn=Ht-j,Zt=this._computeIndentLevel(Ht-1);if(Zt>=0){ht=Ht-1,At=Zt,dt[nn]=Math.ceil(Zt/this._options.indentSize);continue}if(ht===-2){ht=-1,At=-1;for(var fn=Ht-2;fn>=0;fn--){var yt=this._computeIndentLevel(fn);if(yt>=0){ht=fn,At=yt;break}}}if(Bt!==-1&&(Bt===-2||Bt<Ht-1)){Bt=-1,Ut=-1;for(var fn=Ht;fn<xe;fn++){var yt=this._computeIndentLevel(fn);if(yt>=0){Bt=fn,Ut=yt;break}}}dt[nn]=this._getIndentLevelForWhitespaceLine(Ie,At,Ut)}return dt},D.prototype._getIndentLevelForWhitespaceLine=function(j,Z,xe){return Z===-1||xe===-1?0:Z<xe?1+Math.floor(Z/this._options.indentSize):Z===xe?Math.ceil(xe/this._options.indentSize):j?Math.ceil(xe/this._options.indentSize):1+Math.floor(xe/this._options.indentSize)},D.MODEL_SYNC_LIMIT=50*1024*1024,D.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024,D.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3,D.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:z.c.tabSize,indentSize:z.c.indentSize,insertSpaces:z.c.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:z.c.trimAutoWhitespace,largeFileOptimizations:z.c.largeFileOptimizations},D}(J.a),yo=function(){function Le(){this._decorationsTree0=new be,this._decorationsTree1=new be}return Le.prototype.intervalSearch=function(D,j,Z,xe,Ae){var Ie=this._decorationsTree0.intervalSearch(D,j,Z,xe,Ae),dt=this._decorationsTree1.intervalSearch(D,j,Z,xe,Ae);return Ie.concat(dt)},Le.prototype.search=function(D,j,Z,xe){if(Z)return this._decorationsTree1.search(D,j,xe);var Ae=this._decorationsTree0.search(D,j,xe),Ie=this._decorationsTree1.search(D,j,xe);return Ae.concat(Ie)},Le.prototype.collectNodesFromOwner=function(D){var j=this._decorationsTree0.collectNodesFromOwner(D),Z=this._decorationsTree1.collectNodesFromOwner(D);return j.concat(Z)},Le.prototype.collectNodesPostOrder=function(){var D=this._decorationsTree0.collectNodesPostOrder(),j=this._decorationsTree1.collectNodesPostOrder();return D.concat(j)},Le.prototype.insert=function(D){x(D)?this._decorationsTree1.insert(D):this._decorationsTree0.insert(D)},Le.prototype.delete=function(D){x(D)?this._decorationsTree1.delete(D):this._decorationsTree0.delete(D)},Le.prototype.resolveNode=function(D,j){x(D)?this._decorationsTree1.resolveNode(D,j):this._decorationsTree0.resolveNode(D,j)},Le.prototype.acceptReplace=function(D,j,Z,xe){this._decorationsTree0.acceptReplace(D,j,Z,xe),this._decorationsTree1.acceptReplace(D,j,Z,xe)},Le}();function lo(Le){return Le.replace(/[^a-z0-9\-_]/gi," ")}var io=function(){function Le(D){this.color=D.color||"",this.darkColor=D.darkColor||""}return Le}(),go=function(Le){bn(D,Le);function D(j){var Z=Le.call(this,j)||this;return Z._resolvedColor=null,Z.position=typeof j.position=="number"?j.position:c.d.Center,Z}return D.prototype.getColor=function(j){return this._resolvedColor||(j.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,j):this._resolvedColor=this._resolveColor(this.color,j)),this._resolvedColor},D.prototype.invalidateCachedColor=function(){this._resolvedColor=null},D.prototype._resolveColor=function(j,Z){if(typeof j=="string")return j;var xe=j?Z.getColor(j.id):null;return xe?xe.toString():""},D}(io),zn=function(Le){bn(D,Le);function D(j){var Z=Le.call(this,j)||this;return Z.position=j.position,Z}return D.prototype.getColor=function(j){return this._resolvedColor||(j.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,j):this._resolvedColor=this._resolveColor(this.color,j)),this._resolvedColor},D.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},D.prototype._resolveColor=function(j,Z){return typeof j=="string"?Zn.a.fromHex(j):Z.getColor(j.id)},D}(io),Un=function(){function Le(D){this.stickiness=D.stickiness||0,this.zIndex=D.zIndex||0,this.className=D.className?lo(D.className):null,this.hoverMessage=Object(xn.o)(D.hoverMessage),this.glyphMarginHoverMessage=Object(xn.o)(D.glyphMarginHoverMessage),this.isWholeLine=D.isWholeLine||!1,this.showIfCollapsed=D.showIfCollapsed||!1,this.collapseOnReplaceEdit=D.collapseOnReplaceEdit||!1,this.overviewRuler=D.overviewRuler?new go(D.overviewRuler):null,this.minimap=D.minimap?new zn(D.minimap):null,this.glyphMarginClassName=D.glyphMarginClassName?lo(D.glyphMarginClassName):null,this.linesDecorationsClassName=D.linesDecorationsClassName?lo(D.linesDecorationsClassName):null,this.marginClassName=D.marginClassName?lo(D.marginClassName):null,this.inlineClassName=D.inlineClassName?lo(D.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=D.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=D.beforeContentClassName?lo(D.beforeContentClassName):null,this.afterContentClassName=D.afterContentClassName?lo(D.afterContentClassName):null}return Le.register=function(D){return new Le(D)},Le.createDynamic=function(D){return new Le(D)},Le}();Un.EMPTY=Un.register({});var wt=[Un.register({stickiness:0}),Un.register({stickiness:1}),Un.register({stickiness:2}),Un.register({stickiness:3})];function nt(Le){return Le instanceof Un?Le:Un.createDynamic(Le)}var ot=function(Le){bn(D,Le);function D(){var j=Le.call(this)||this;return j._actual=j._register(new re.a),j.event=j._actual.event,j._deferredCnt=0,j._shouldFire=!1,j}return D.prototype.beginDeferredEmit=function(){this._deferredCnt++},D.prototype.endDeferredEmit=function(){this._deferredCnt--,this._deferredCnt===0&&(this._shouldFire&&(this._shouldFire=!1,this._actual.fire({})))},D.prototype.fire=function(){this._shouldFire=!0},D}(J.a),Ot=function(Le){bn(D,Le);function D(){var j=Le.call(this)||this;return j._fastEmitter=j._register(new re.a),j.fastEvent=j._fastEmitter.event,j._slowEmitter=j._register(new re.a),j.slowEvent=j._slowEmitter.event,j._deferredCnt=0,j._deferredEvent=null,j}return D.prototype.beginDeferredEmit=function(){this._deferredCnt++},D.prototype.endDeferredEmit=function(){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){var j=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(j),this._slowEmitter.fire(j)}},D.prototype.fire=function(j){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(j):this._deferredEvent=j;return}this._fastEmitter.fire(j),this._slowEmitter.fire(j)},D}(J.a)},tXSY:function(_t,P,e){"use strict";e.r(P),e.d(P,"SnippetController2",function(){return Pe});var T=e("pmY6"),re=e("N0LK"),J=e("sswD"),N=e("aokT"),H=e("gCVg"),z=e("wQH0"),M=e("QVNv"),U=e("T8No"),A=e("09fa"),c=e("6OMU"),y=e("dFcq"),L=e("0/Sa"),f=e("tX9W"),v=e("9XeP"),S=e("EWX2"),g=e("Cg/j"),u=e("uACm"),s=e("3/fG"),l=e("MrjW"),d=e("gslv"),p=e("cMvZ"),E=e("bY76"),_="code-workspace";function x(pe){return pe instanceof E.a}function F(pe){return pe.configuration?{configPath:pe.configuration,id:pe.id}:pe.folders.length===1?pe.folders[0].uri:void 0}var R=e("3rx1"),$=function(){function pe(me){this._delegates=me}return pe.prototype.resolve=function(me){for(var Se=0,Re=this._delegates;Se<Re.length;Se++){var Ee=Re[Se],ve=Ee.resolve(me);if(ve!==void 0)return ve}return},pe}(),ie=function(){function pe(me,Se){this._model=me,this._selection=Se}return pe.prototype.resolve=function(me){var Se=me.name;if(Se==="SELECTION"||Se==="TM_SELECTED_TEXT"){var Re=this._model.getValueInRange(this._selection)||void 0;if(Re&&this._selection.startLineNumber!==this._selection.endLineNumber&&me.snippet){var Ee=this._model.getLineContent(this._selection.startLineNumber),ve=Object(re.t)(Ee,0,this._selection.startColumn-1),Q=ve;me.snippet.walk(function(se){return se===me?!1:(se instanceof u.d&&(Q=Object(re.t)(se.value.split(/\r\n|\r|\n/).pop())),!0)});var b=Object(re.c)(Q,ve);Re=Re.replace(/(\r\n|\r|\n)(.*)/g,function(se,ne,Ce){return""+ne+Q.substr(b)+Ce})}return Re}else{if(Se==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(Se==="TM_CURRENT_WORD"){var k=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return k&&k.word||void 0}else{if(Se==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(Se==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber)}}return},pe}(),W=function(){function pe(me,Se){this._labelService=me,this._model=Se}return pe.prototype.resolve=function(me){var Se=me.name;if(Se==="TM_FILENAME")return l.basename(this._model.uri.fsPath);if(Se==="TM_FILENAME_BASE"){var Re=l.basename(this._model.uri.fsPath),Ee=Re.lastIndexOf(".");return Ee<=0?Re:Re.slice(0,Ee)}else{if(Se==="TM_DIRECTORY"&&this._labelService)return l.dirname(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(Object(d.d)(this._model.uri));if(Se==="TM_FILEPATH"&&this._labelService)return this._labelService.getUriLabel(this._model.uri)}return},pe}(),B=function(){function pe(me,Se,Re,Ee){this._readClipboardText=me,this._selectionIdx=Se,this._selectionCount=Re,this._spread=Ee}return pe.prototype.resolve=function(me){if(me.name!=="CLIPBOARD")return;var Se=this._readClipboardText();if(!Se)return;if(this._spread){var Re=Se.split(/\r\n|\n|\r/).filter(function(Ee){return!Object(re.x)(Ee)});if(Re.length===this._selectionCount)return Re[this._selectionIdx]}return Se},pe}(),le=function(){function pe(me){this._model=me}return pe.prototype.resolve=function(me){var Se=me.name,Re=this._model.getLanguageIdentifier(),Ee=p.a.getComments(Re.id);return Ee?Se==="LINE_COMMENT"?Ee.lineCommentToken||void 0:Se==="BLOCK_COMMENT_START"?Ee.blockCommentStartToken||void 0:Se==="BLOCK_COMMENT_END"&&Ee.blockCommentEndToken||void 0:void 0},pe}(),be=function(){function pe(){}return pe.prototype.resolve=function(me){var Se=me.name;return Se==="CURRENT_YEAR"?String(new Date().getFullYear()):Se==="CURRENT_YEAR_SHORT"?String(new Date().getFullYear()).slice(-2):Se==="CURRENT_MONTH"?Object(re.F)(new Date().getMonth().valueOf()+1,2):Se==="CURRENT_DATE"?Object(re.F)(new Date().getDate().valueOf(),2):Se==="CURRENT_HOUR"?Object(re.F)(new Date().getHours().valueOf(),2):Se==="CURRENT_MINUTE"?Object(re.F)(new Date().getMinutes().valueOf(),2):Se==="CURRENT_SECOND"?Object(re.F)(new Date().getSeconds().valueOf(),2):Se==="CURRENT_DAY_NAME"?pe.dayNames[new Date().getDay()]:Se==="CURRENT_DAY_NAME_SHORT"?pe.dayNamesShort[new Date().getDay()]:Se==="CURRENT_MONTH_NAME"?pe.monthNames[new Date().getMonth()]:Se==="CURRENT_MONTH_NAME_SHORT"?pe.monthNamesShort[new Date().getMonth()]:Se==="CURRENT_SECONDS_UNIX"?String(Math.floor(Date.now()/1e3)):void 0},pe.dayNames=[s.a("Sunday","Sunday"),s.a("Monday","Monday"),s.a("Tuesday","Tuesday"),s.a("Wednesday","Wednesday"),s.a("Thursday","Thursday"),s.a("Friday","Friday"),s.a("Saturday","Saturday")],pe.dayNamesShort=[s.a("SundayShort","Sun"),s.a("MondayShort","Mon"),s.a("TuesdayShort","Tue"),s.a("WednesdayShort","Wed"),s.a("ThursdayShort","Thu"),s.a("FridayShort","Fri"),s.a("SaturdayShort","Sat")],pe.monthNames=[s.a("January","January"),s.a("February","February"),s.a("March","March"),s.a("April","April"),s.a("May","May"),s.a("June","June"),s.a("July","July"),s.a("August","August"),s.a("September","September"),s.a("October","October"),s.a("November","November"),s.a("December","December")],pe.monthNamesShort=[s.a("JanuaryShort","Jan"),s.a("FebruaryShort","Feb"),s.a("MarchShort","Mar"),s.a("AprilShort","Apr"),s.a("MayShort","May"),s.a("JuneShort","Jun"),s.a("JulyShort","Jul"),s.a("AugustShort","Aug"),s.a("SeptemberShort","Sep"),s.a("OctoberShort","Oct"),s.a("NovemberShort","Nov"),s.a("DecemberShort","Dec")],pe}(),De=function(){function pe(me){this._workspaceService=me}return pe.prototype.resolve=function(me){if(!this._workspaceService)return;var Se=F(this._workspaceService.getWorkspace());return Se?me.name==="WORKSPACE_NAME"?this._resolveWorkspaceName(Se):me.name==="WORKSPACE_FOLDER"?this._resoveWorkspacePath(Se):void 0:void 0},pe.prototype._resolveWorkspaceName=function(me){if(x(me))return l.basename(me.path);var Se=l.basename(me.configPath.path);return Object(re.m)(Se,_)&&(Se=Se.substr(0,Se.length-_.length-1)),Se},pe.prototype._resoveWorkspacePath=function(me){if(x(me))return Object(R.c)(me.fsPath);var Se=l.basename(me.configPath.path),Re=me.configPath.fsPath;return Object(re.m)(Re,Se)&&(Re=Re.substr(0,Re.length-Se.length-1)),Re?Object(R.c)(Re):"/"},pe}(),Te=function(){function pe(){}return pe.prototype.resolve=function(me){var Se=me.name;return Se==="RANDOM"?Math.random().toString().slice(-6):Se==="RANDOM_HEX"?Math.random().toString(16).slice(-6):void 0},pe}(),ke=e("t9D7"),He=e("MD5Z"),je=e("R8sh");Object(ke.e)(function(pe,me){function Se(Re){var Ee=pe.getColor(Re);return Ee?Ee.toString():"transparent"}me.addRule(".monaco-editor .snippet-placeholder { background-color: "+Se(He.bc)+"; outline-color: "+Se(He.cc)+"; }"),me.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+Se(He.Zb)+"; outline-color: "+Se(He.ac)+"; }")});var oe=function(){function pe(me,Se,Re){this._nestingLevel=1,this._editor=me,this._snippet=Se,this._offset=Re,this._placeholderGroups=Object(c.o)(Se.placeholders,u.b.compareByIndex),this._placeholderGroupsIdx=-1}return pe.prototype.dispose=function(){if(this._placeholderDecorations){var me=[];this._placeholderDecorations.forEach(function(Se){return me.push(Se)}),this._editor.deltaDecorations(me,[])}this._placeholderGroups.length=0},pe.prototype._initDecorations=function(){var me=this;if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;var Se=this._editor.getModel();this._editor.changeDecorations(function(Re){for(var Ee=0,ve=me._snippet.placeholders;Ee<ve.length;Ee++){var Q=ve[Ee],b=me._snippet.offset(Q),k=me._snippet.fullLen(Q),se=N.a.fromPositions(Se.getPositionAt(me._offset+b),Se.getPositionAt(me._offset+b+k)),ne=Q.isFinalTabstop?pe._decor.inactiveFinal:pe._decor.inactive,Ce=Re.addDecoration(se,ne);me._placeholderDecorations.set(Q,Ce)}})},pe.prototype.move=function(me){var Se=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){for(var Re=[],Ee=0,ve=this._placeholderGroups[this._placeholderGroupsIdx];Ee<ve.length;Ee++){var Q=ve[Ee];if(Q.transform){var b=this._placeholderDecorations.get(Q),k=this._editor.getModel().getDecorationRange(b),se=this._editor.getModel().getValueInRange(k);Re.push(L.a.replaceMove(k,Q.transform.resolve(se)))}}Re.length>0&&this._editor.executeEdits("snippet.placeholderTransform",Re)}var ne=!1;me===!0&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,ne=!0):me===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,ne=!0);var Ce=this._editor.getModel().changeDecorations(function(Oe){for(var we=new Set,Ve=[],Qe=0,it=Se._placeholderGroups[Se._placeholderGroupsIdx];Qe<it.length;Qe++){var gt=it[Qe],Rt=Se._placeholderDecorations.get(gt),Dt=Se._editor.getModel().getDecorationRange(Rt);Ve.push(new H.a(Dt.startLineNumber,Dt.startColumn,Dt.endLineNumber,Dt.endColumn)),ne=ne&&Se._hasPlaceholderBeenCollapsed(gt),Oe.changeDecorationOptions(Rt,gt.isFinalTabstop?pe._decor.activeFinal:pe._decor.active),we.add(gt);for(var zt=0,cn=Se._snippet.enclosingPlaceholders(gt);zt<cn.length;zt++){var ln=cn[zt],an=Se._placeholderDecorations.get(ln);Oe.changeDecorationOptions(an,ln.isFinalTabstop?pe._decor.activeFinal:pe._decor.active),we.add(ln)}}return Se._placeholderDecorations.forEach(function(jt,ft){we.has(ft)||Oe.changeDecorationOptions(jt,ft.isFinalTabstop?pe._decor.inactiveFinal:pe._decor.inactive)}),Ve});return ne?this.move(me):Ce},pe.prototype._hasPlaceholderBeenCollapsed=function(me){for(var Se=me;Se;){if(Se instanceof u.b){var Re=this._placeholderDecorations.get(Se),Ee=this._editor.getModel().getDecorationRange(Re);if(Ee.isEmpty()&&Se.toString().length>0)return!0}Se=Se.parent}return!1},Object.defineProperty(pe.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),pe.prototype.computePossibleSelections=function(){for(var me=new Map,Se=0,Re=this._placeholderGroups;Se<Re.length;Se++)for(var Ee=Re[Se],ve=void 0,Q=0,b=Ee;Q<b.length;Q++){var k=b[Q];if(k.isFinalTabstop)break;ve||(ve=[],me.set(k.index,ve));var se=this._placeholderDecorations.get(k),ne=this._editor.getModel().getDecorationRange(se);if(!ne){me.delete(k.index);break}ve.push(ne)}return me},Object.defineProperty(pe.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),pe.prototype.merge=function(me){var Se=this,Re=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(function(Ee){for(var ve=0,Q=Se._placeholderGroups[Se._placeholderGroupsIdx];ve<Q.length;ve++){var b=Q[ve],k=me.shift();console.assert(!k._placeholderDecorations);for(var se=k._snippet.placeholderInfo.last.index,ne=0,Ce=k._snippet.placeholderInfo.all;ne<Ce.length;ne++){var Oe=Ce[ne];Oe.isFinalTabstop?Oe.index=b.index+(se+1)/Se._nestingLevel:Oe.index=b.index+Oe.index/Se._nestingLevel}Se._snippet.replace(b,k._snippet.children);var we=Se._placeholderDecorations.get(b);Ee.removeDecoration(we),Se._placeholderDecorations.delete(b);for(var Ve=0,Qe=k._snippet.placeholders;Ve<Qe.length;Ve++){var it=Qe[Ve],gt=k._snippet.offset(it),Rt=k._snippet.fullLen(it),Dt=N.a.fromPositions(Re.getPositionAt(k._offset+gt),Re.getPositionAt(k._offset+gt+Rt)),zt=Ee.addDecoration(Dt,pe._decor.inactive);Se._placeholderDecorations.set(it,zt)}}Se._placeholderGroups=Object(c.o)(Se._snippet.placeholders,u.b.compareByIndex)})},pe._decor={active:f.a.register({stickiness:0,className:"snippet-placeholder"}),inactive:f.a.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:f.a.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:f.a.register({stickiness:1,className:"finish-snippet-placeholder"})},pe}(),ee={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},ae=function(){function pe(me,Se,Re){Re===void 0&&(Re=ee),this._templateMerges=[],this._snippets=[],this._editor=me,this._template=Se,this._options=Re}return pe.adjustWhitespace=function(me,Se,Re,Ee,ve){var Q=me.getLineContent(Se.lineNumber),b=Object(re.t)(Q,0,Se.column-1);Re.walk(function(k){if(k instanceof u.d&&!(k.parent instanceof u.a)){var se=k.value.split(/\r\n|\r|\n/);if(Ee)for(var ne=1;ne<se.length;ne++){var Ce=Object(re.t)(se[ne]);se[ne]=me.normalizeIndentation(b+Ce)+se[ne].substr(Ce.length)}if(ve){var Oe=se.join(me.getEOL());Oe!==k.value&&k.parent.replace(k,[new u.d(Oe)])}}return!0})},pe.adjustSelection=function(me,Se,Re,Ee){if(Re!==0||Ee!==0){var ve=Se.positionLineNumber,Q=Se.positionColumn,b=Q-Re,k=Q+Ee,se=me.validateRange({startLineNumber:ve,startColumn:b,endLineNumber:ve,endColumn:k});Se=H.a.createWithDirection(se.startLineNumber,se.startColumn,se.endLineNumber,se.endColumn,Se.getDirection())}return Se},pe.createEditsAndSnippets=function(me,Se,Re,Ee,ve,Q,b){var k=[],se=[];if(!me.hasModel())return{edits:k,snippets:se};for(var ne=me.getModel(),Ce=me.invokeWithinContext(function(bt){return bt.get(S.a,g.d)}),Oe=me.invokeWithinContext(function(bt){return new W(bt.get(je.a,g.d),ne)}),we=me.invokeWithinContext(function(bt){return bt.get(v.a,g.d)}),Ve=function(){return b||we&&we.readTextSync()},Qe=0,it=ne.getValueInRange(pe.adjustSelection(ne,me.getSelection(),Re,0)),gt=ne.getValueInRange(pe.adjustSelection(ne,me.getSelection(),0,Ee)),Rt=ne.getLineFirstNonWhitespaceColumn(me.getSelection().positionLineNumber),Dt=me.getSelections().map(function(bt,mt){return{selection:bt,idx:mt}}).sort(function(bt,mt){return N.a.compareRangesUsingStarts(bt.selection,mt.selection)}),zt=0,cn=Dt;zt<cn.length;zt++){var ln=cn[zt],an=ln.selection,jt=ln.idx,ft=pe.adjustSelection(ne,an,Re,0),vt=pe.adjustSelection(ne,an,0,Ee);it!==ne.getValueInRange(ft)&&(ft=an),gt!==ne.getValueInRange(vt)&&(vt=an);var xt=an.setStartPosition(ft.startLineNumber,ft.startColumn).setEndPosition(vt.endLineNumber,vt.endColumn),at=new u.c().parse(Se,!0,ve),tt=xt.getStartPosition();pe.adjustWhitespace(ne,tt,at,Q||jt>0&&Rt!==ne.getLineFirstNonWhitespaceColumn(an.positionLineNumber),!0),at.resolveVariables(new $([Oe,new B(Ve,jt,Dt.length,me.getOption(60)==="spread"),new ie(ne,an),new le(ne),new be,new De(Ce),new Te]));var ct=ne.getOffsetAt(tt)+Qe;Qe+=at.toString().length-ne.getValueLengthInRange(xt),k[jt]=L.a.replace(xt,at.toString()),se[jt]=new oe(me,at,ct)}return{edits:k,snippets:se}},pe.prototype.dispose=function(){Object(T.f)(this._snippets)},pe.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},pe.prototype.insert=function(){var me=this;if(!this._editor.hasModel())return;var Se=pe.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),Re=Se.edits,Ee=Se.snippets;this._snippets=Ee,this._editor.executeEdits("snippet",Re,function(ve){return me._snippets[0].hasPlaceholder?me._move(!0):ve.map(function(Q){return H.a.fromPositions(Q.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])},pe.prototype.merge=function(me,Se){var Re=this;if(Se===void 0&&(Se=ee),!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,me]);var Ee=pe.createEditsAndSnippets(this._editor,me,Se.overwriteBefore,Se.overwriteAfter,!0,Se.adjustWhitespace,Se.clipboardText),ve=Ee.edits,Q=Ee.snippets;this._editor.executeEdits("snippet",ve,function(b){for(var k=0,se=Re._snippets;k<se.length;k++){var ne=se[k];ne.merge(Q)}return console.assert(Q.length===0),Re._snippets[0].hasPlaceholder?Re._move(void 0):b.map(function(Ce){return H.a.fromPositions(Ce.range.getEndPosition())})})},pe.prototype.next=function(){var me=this._move(!0);this._editor.setSelections(me),this._editor.revealPositionInCenterIfOutsideViewport(me[0].getPosition())},pe.prototype.prev=function(){var me=this._move(!1);this._editor.setSelections(me),this._editor.revealPositionInCenterIfOutsideViewport(me[0].getPosition())},pe.prototype._move=function(me){for(var Se=[],Re=0,Ee=this._snippets;Re<Ee.length;Re++){var ve=Ee[Re],Q=ve.move(me);Se.push.apply(Se,Q)}return Se},Object.defineProperty(pe.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),pe.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var me=this._editor.getSelections();if(me.length<this._snippets.length)return!1;for(var Se=new Map,Re=function(se){var ne=se.computePossibleSelections();if(Se.size===0&&ne.forEach(function(Ce,Oe){Ce.sort(N.a.compareRangesUsingStarts);for(var we=0,Ve=me;we<Ve.length;we++){var Qe=Ve[we];if(Ce[0].containsRange(Qe)){Se.set(Oe,[]);break}}}),Se.size===0)return{value:!1};Se.forEach(function(Ce,Oe){Ce.push.apply(Ce,ne.get(Oe))})},Ee=0,ve=this._snippets;Ee<ve.length;Ee++){var Q=ve[Ee],b=Re(Q);if(typeof b=="object")return b.value}return me.sort(N.a.compareRangesUsingStarts),Se.forEach(function(k,se){if(k.length!==me.length){Se.delete(se);return}k.sort(N.a.compareRangesUsingStarts);for(var ne=0;ne<k.length;ne++)if(!k[ne].containsRange(me[ne])){Se.delete(se);return}}),Se.size>0},pe}(),q=function(){return q=Object.assign||function(pe){for(var me,Se=1,Re=arguments.length;Se<Re;Se++){me=arguments[Se];for(var Ee in me)Object.prototype.hasOwnProperty.call(me,Ee)&&(pe[Ee]=me[Ee])}return pe},q.apply(this,arguments)},ce=function(pe,me,Se,Re){var Ee=arguments.length,ve=Ee<3?me:Re===null?Re=Object.getOwnPropertyDescriptor(me,Se):Re,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(pe,me,Se,Re);else for(var b=pe.length-1;b>=0;b--)(Q=pe[b])&&(ve=(Ee<3?Q(ve):Ee>3?Q(me,Se,ve):Q(me,Se))||ve);return Ee>3&&ve&&Object.defineProperty(me,Se,ve),ve},X=function(pe,me){return function(Se,Re){me(Se,Re,pe)}},he={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},Pe=function(){function pe(me,Se,Re){this._editor=me,this._logService=Se,this._snippetListener=new T.b,this._modelVersionId=-1,this._inSnippet=pe.InSnippetMode.bindTo(Re),this._hasNextTabstop=pe.HasNextTabstop.bindTo(Re),this._hasPrevTabstop=pe.HasPrevTabstop.bindTo(Re)}return pe.get=function(me){return me.getContribution(pe.ID)},pe.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(T.f)(this._session),this._snippetListener.dispose()},pe.prototype.insert=function(me,Se){try{this._doInsert(me,typeof Se=="undefined"?he:q(q({},he),Se))}catch(Re){this.cancel(),this._logService.error(Re),this._logService.error("snippet_error"),this._logService.error("insert_template=",me),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},pe.prototype._doInsert=function(me,Se){var Re=this;if(!this._editor.hasModel())return;this._snippetListener.clear(),Se.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(me,Se):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new ae(this._editor,me,Se),this._session.insert()),Se.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(function(Ee){return Ee.isFlush&&Re.cancel()})),this._snippetListener.add(this._editor.onDidChangeModel(function(){return Re.cancel()})),this._snippetListener.add(this._editor.onDidChangeCursorSelection(function(){return Re._updateState()}))},pe.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()},pe.prototype._handleChoice=function(){var me=this;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}var Se=this._session.choice;if(!Se){this._currentChoice=void 0;return}if(this._currentChoice!==Se){this._currentChoice=Se,this._editor.setSelections(this._editor.getSelections().map(function(Ee){return H.a.fromPositions(Ee.getStartPosition())}));var Re=Se.options[0];Object(M.f)(this._editor,Se.options.map(function(Ee,ve){return{kind:13,label:Ee.value,insertText:Ee.value,sortText:Object(re.J)("a",ve+1),range:N.a.fromPositions(me._editor.getPosition(),me._editor.getPosition().delta(0,Re.value.length))}}))}},pe.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},pe.prototype.cancel=function(me){me===void 0&&(me=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(T.f)(this._session),this._session=void 0,this._modelVersionId=-1,me&&this._editor.setSelections([this._editor.getSelection()])},pe.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},pe.prototype.next=function(){this._session&&this._session.next(),this._updateState()},pe.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},pe.ID="snippetController2",pe.InSnippetMode=new U.d("inSnippetMode",!1),pe.HasNextTabstop=new U.d("hasNextTabstop",!1),pe.HasPrevTabstop=new U.d("hasPrevTabstop",!1),pe=ce([X(1,A.a),X(2,U.c)],pe),pe}();Object(J.h)(Pe.ID,Pe);var Xe=J.c.bindToContribution(Pe.get);Object(J.g)(new Xe({id:"jumpToNextSnippetPlaceholder",precondition:U.a.and(Pe.InSnippetMode,Pe.HasNextTabstop),handler:function(me){return me.next()},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:2}})),Object(J.g)(new Xe({id:"jumpToPrevSnippetPlaceholder",precondition:U.a.and(Pe.InSnippetMode,Pe.HasPrevTabstop),handler:function(me){return me.prev()},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:1024|2}})),Object(J.g)(new Xe({id:"leaveSnippet",precondition:Pe.InSnippetMode,handler:function(me){return me.cancel(!0)},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:9,secondary:[1024|9]}})),Object(J.g)(new Xe({id:"acceptSnippet",precondition:Pe.InSnippetMode,handler:function(me){return me.finish()}}))},tYmi:function(_t,P,e){"use strict";e.d(P,"b",function(){return J}),e.d(P,"a",function(){return H});var T=e("bY76"),re=e("MNsG"),J;(function(z){z.inMemory="inmemory",z.vscode="vscode",z.internal="private",z.walkThrough="walkThrough",z.walkThroughSnippet="walkThroughSnippet",z.http="http",z.https="https",z.file="file",z.mailto="mailto",z.untitled="untitled",z.data="data",z.command="command",z.vscodeRemote="vscode-remote",z.vscodeRemoteResource="vscode-remote-resource",z.userData="vscode-userdata"})(J||(J={}));var N=function(){function z(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}return z.prototype.setPreferredWebSchema=function(M){this._preferredWebSchema=M},z.prototype.rewrite=function(M){if(this._delegate)return this._delegate(M);var U=M.authority,A=this._hosts[U];A&&A.indexOf(":")!==-1&&(A="["+A+"]");var c=this._ports[U],y=this._connectionTokens[U],L="path="+encodeURIComponent(M.path);return typeof y=="string"&&(L+="&tkn="+encodeURIComponent(y)),T.a.from({scheme:re.g?this._preferredWebSchema:J.vscodeRemoteResource,authority:A+":"+c,path:"/vscode-remote-resource",query:L})},z}(),H=new N},twdY:function(_t,P,e){"use strict";e.d(P,"r",function(){return f}),e.d(P,"A",function(){return v}),e.d(P,"F",function(){return S}),e.d(P,"E",function(){return g}),e.d(P,"y",function(){return u}),e.d(P,"h",function(){return s}),e.d(P,"G",function(){return l}),e.d(P,"z",function(){return d}),e.d(P,"n",function(){return p}),e.d(P,"D",function(){return _}),e.d(P,"u",function(){return x}),e.d(P,"v",function(){return F}),e.d(P,"d",function(){return R}),e.d(P,"x",function(){return $}),e.d(P,"p",function(){return ie}),e.d(P,"m",function(){return W}),e.d(P,"i",function(){return B}),e.d(P,"f",function(){return le}),e.d(P,"e",function(){return be}),e.d(P,"q",function(){return De}),e.d(P,"C",function(){return Te}),e.d(P,"b",function(){return ke}),e.d(P,"a",function(){return He}),e.d(P,"g",function(){return je}),e.d(P,"j",function(){return oe}),e.d(P,"t",function(){return ee}),e.d(P,"s",function(){return ae}),e.d(P,"c",function(){return q}),e.d(P,"w",function(){return ce}),e.d(P,"o",function(){return X}),e.d(P,"l",function(){return he}),e.d(P,"k",function(){return Pe}),e.d(P,"B",function(){return Xe});var T=e("746U"),re=e("bY76"),J=e("aokT"),N=e("MI8n"),H=e("pmY6"),z=e("l2gE");function M(pe,me,Se,Re){if(Array.isArray(pe)){for(var Ee=0,ve=0,Q=pe;ve<Q.length;ve++){var b=Q[ve],k=M(b,me,Se,Re);if(k===10)return k;k>Ee&&(Ee=k)}return Ee}else{if(typeof pe=="string")return Re?pe==="*"?5:pe===Se?10:0:0;if(pe){var se=pe.language,ne=pe.pattern,Ce=pe.scheme,Oe=pe.hasAccessToAllModels;if(!Re&&!Oe)return 0;var Ee=0;if(Ce)if(Ce===me.scheme)Ee=10;else if(Ce==="*")Ee=5;else return 0;if(se)if(se===Se)Ee=10;else if(se==="*")Ee=Math.max(Ee,5);else return 0;if(ne)if(ne===me.fsPath||Object(z.a)(ne,me.fsPath))Ee=10;else return 0;return Ee}else return 0}}var U=e("G2kB");function A(pe){return typeof pe=="string"?!1:Array.isArray(pe)?pe.every(A):!!pe.exclusive}var c=function(){function pe(){this._clock=0,this._entries=[],this._onDidChange=new N.a}return Object.defineProperty(pe.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),pe.prototype.register=function(me,Se){var Re=this,Ee={selector:me,provider:Se,_score:-1,_time:this._clock++};return this._entries.push(Ee),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(H.h)(function(){if(Ee){var ve=Re._entries.indexOf(Ee);ve>=0&&(Re._entries.splice(ve,1),Re._lastCandidate=void 0,Re._onDidChange.fire(Re._entries.length),Ee=void 0)}})},pe.prototype.has=function(me){return this.all(me).length>0},pe.prototype.all=function(me){if(!me)return[];this._updateScores(me);for(var Se=[],Re=0,Ee=this._entries;Re<Ee.length;Re++){var ve=Ee[Re];ve._score>0&&Se.push(ve.provider)}return Se},pe.prototype.ordered=function(me){var Se=[];return this._orderedForEach(me,function(Re){return Se.push(Re.provider)}),Se},pe.prototype.orderedGroups=function(me){var Se=[],Re,Ee;return this._orderedForEach(me,function(ve){Re&&Ee===ve._score?Re.push(ve.provider):(Ee=ve._score,Re=[ve.provider],Se.push(Re))}),Se},pe.prototype._orderedForEach=function(me,Se){if(!me)return;this._updateScores(me);for(var Re=0,Ee=this._entries;Re<Ee.length;Re++){var ve=Ee[Re];ve._score>0&&Se(ve)}},pe.prototype._updateScores=function(me){var Se={uri:me.uri.toString(),language:me.getLanguageIdentifier().language};if(this._lastCandidate&&this._lastCandidate.language===Se.language&&this._lastCandidate.uri===Se.uri)return;this._lastCandidate=Se;for(var Re=0,Ee=this._entries;Re<Ee.length;Re++){var ve=Ee[Re];if(ve._score=M(ve.selector,me.uri,me.getLanguageIdentifier().language,Object(U.b)(me)),A(ve.selector)&&ve._score>0){for(var Q=0,b=this._entries;Q<b.length;Q++){var k=b[Q];k._score=0}ve._score=1e3;break}}this._entries.sort(pe._compareByScoreAndTime)},pe._compareByScoreAndTime=function(me,Se){return me._score<Se._score?1:me._score>Se._score?-1:me._time<Se._time?1:me._time>Se._time?-1:0},pe}(),y=e("QDVR"),L=function(){function pe(){this._map=new Map,this._promises=new Map,this._onDidChange=new N.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}return pe.prototype.fire=function(me){this._onDidChange.fire({changedLanguages:me,changedColorMap:!1})},pe.prototype.register=function(me,Se){var Re=this;return this._map.set(me,Se),this.fire([me]),Object(H.h)(function(){if(Re._map.get(me)!==Se)return;Re._map.delete(me),Re.fire([me])})},pe.prototype.registerPromise=function(me,Se){var Re=this,Ee=null,ve=!1;return this._promises.set(me,Se.then(function(Q){if(Re._promises.delete(me),ve||!Q)return;Ee=Re.register(me,Q)})),Object(H.h)(function(){ve=!0,Ee&&Ee.dispose()})},pe.prototype.getPromise=function(me){var Se=this,Re=this.get(me);if(Re)return Promise.resolve(Re);var Ee=this._promises.get(me);return Ee?Ee.then(function(ve){return Se.get(me)}):null},pe.prototype.get=function(me){return Object(T.o)(this._map.get(me))},pe.prototype.setColorMap=function(me){this._colorMap=me,this._onDidChange.fire({changedLanguages:Object(y.d)(this._map),changedColorMap:!0})},pe.prototype.getColorMap=function(){return this._colorMap},pe.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},pe}(),f=function(){function pe(me,Se){this.language=me,this.id=Se}return pe}(),v=function(){function pe(){}return pe.getLanguageId=function(me){return(me&255)>>>0},pe.getTokenType=function(me){return(me&1792)>>>8},pe.getFontStyle=function(me){return(me&14336)>>>11},pe.getForeground=function(me){return(me&8372224)>>>14},pe.getBackground=function(me){return(me&4286578688)>>>23},pe.getClassNameFromMetadata=function(me){var Se=this.getForeground(me),Re="mtk"+Se,Ee=this.getFontStyle(me);return Ee&1&&(Re+=" mtki"),Ee&2&&(Re+=" mtkb"),Ee&4&&(Re+=" mtku"),Re},pe.getInlineStyleFromMetadata=function(me,Se){var Re=this.getForeground(me),Ee=this.getFontStyle(me),ve="color: "+Se[Re]+";";return Ee&1&&(ve+="font-style: italic;"),Ee&2&&(ve+="font-weight: bold;"),Ee&4&&(ve+="text-decoration: underline;"),ve},pe}(),S=function(){var pe=Object.create(null);return pe[0]="method",pe[1]="function",pe[2]="constructor",pe[3]="field",pe[4]="variable",pe[5]="class",pe[6]="struct",pe[7]="interface",pe[8]="module",pe[9]="property",pe[10]="event",pe[11]="operator",pe[12]="unit",pe[13]="value",pe[14]="constant",pe[15]="enum",pe[16]="enum-member",pe[17]="keyword",pe[25]="snippet",pe[18]="text",pe[19]="color",pe[20]="file",pe[21]="reference",pe[22]="customcolor",pe[23]="folder",pe[24]="type-parameter",function(me){return pe[me]||"property"}}(),g=function(){var pe=Object.create(null);return pe.method=0,pe.function=1,pe.constructor=2,pe.field=3,pe.variable=4,pe.class=5,pe.struct=6,pe.interface=7,pe.module=8,pe.property=9,pe.event=10,pe.operator=11,pe.unit=12,pe.value=13,pe.constant=14,pe.enum=15,pe["enum-member"]=16,pe.enumMember=16,pe.keyword=17,pe.snippet=25,pe.text=18,pe.color=19,pe.file=20,pe.reference=21,pe.customcolor=22,pe.folder=23,pe["type-parameter"]=24,pe.typeParameter=24,function(me,Se){var Re=pe[me];return typeof Re=="undefined"&&!Se&&(Re=9),Re}}(),u;(function(pe){pe[pe.Invoke=1]="Invoke",pe[pe.TriggerCharacter=2]="TriggerCharacter",pe[pe.ContentChange=3]="ContentChange"})(u||(u={}));var s;(function(pe){pe[pe.Text=0]="Text",pe[pe.Read=1]="Read",pe[pe.Write=2]="Write"})(s||(s={}));function l(pe){return pe&&re.a.isUri(pe.uri)&&J.a.isIRange(pe.range)&&(J.a.isIRange(pe.originSelectionRange)||J.a.isIRange(pe.targetSelectionRange))}var d;(function(pe){var me=new Map;me.set("file",0),me.set("module",1),me.set("namespace",2),me.set("package",3),me.set("class",4),me.set("method",5),me.set("property",6),me.set("field",7),me.set("constructor",8),me.set("enum",9),me.set("interface",10),me.set("function",11),me.set("variable",12),me.set("constant",13),me.set("string",14),me.set("number",15),me.set("boolean",16),me.set("array",17),me.set("object",18),me.set("key",19),me.set("null",20),me.set("enum-member",21),me.set("struct",22),me.set("event",23),me.set("operator",24),me.set("type-parameter",25);var Se=new Map;Se.set(0,"file"),Se.set(1,"module"),Se.set(2,"namespace"),Se.set(3,"package"),Se.set(4,"class"),Se.set(5,"method"),Se.set(6,"property"),Se.set(7,"field"),Se.set(8,"constructor"),Se.set(9,"enum"),Se.set(10,"interface"),Se.set(11,"function"),Se.set(12,"variable"),Se.set(13,"constant"),Se.set(14,"string"),Se.set(15,"number"),Se.set(16,"boolean"),Se.set(17,"array"),Se.set(18,"object"),Se.set(19,"key"),Se.set(20,"null"),Se.set(21,"enum-member"),Se.set(22,"struct"),Se.set(23,"event"),Se.set(24,"operator"),Se.set(25,"type-parameter");function Re(Q){return me.get(Q)}pe.fromString=Re;function Ee(Q){return Se.get(Q)}pe.toString=Ee;function ve(Q,b){return"codicon "+(b?"inline":"block")+" codicon-symbol-"+(Se.get(Q)||"property")}pe.toCssClassName=ve})(d||(d={}));var p=function(){function pe(me){this.value=me}return pe.Comment=new pe("comment"),pe.Imports=new pe("imports"),pe.Region=new pe("region"),pe}(),E;(function(pe){function me(Se){return Object(T.i)(Se)&&(Boolean(Se.newUri)||Boolean(Se.oldUri))}pe.is=me})(E||(E={}));var _;(function(pe){function me(Se){return Object(T.i)(Se)&&re.a.isUri(Se.resource)&&Object(T.i)(Se.edit)}pe.is=me})(_||(_={}));var x=new c,F=new c,R=new c,$=new c,ie=new c,W=new c,B=new c,le=new c,be=new c,De=new c,Te=new c,ke=new c,He=new c,je=new c,oe=new c,ee=new c,ae=new c,q=new c,ce=new c,X=new c,he=new c,Pe=new c,Xe=new L},uACm:function(_t,P,e){"use strict";e.d(P,"d",function(){return z}),e.d(P,"b",function(){return U}),e.d(P,"a",function(){return A}),e.d(P,"c",function(){return S});var T=function(){var g=function(s,l){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var E in p)p.hasOwnProperty(E)&&(d[E]=p[E])},g(s,l)};return function(u,s){g(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),re=function(){for(var g=0,u=0,s=arguments.length;u<s;u++)g+=arguments[u].length;for(var l=Array(g),d=0,u=0;u<s;u++)for(var p=arguments[u],E=0,_=p.length;E<_;E++,d++)l[d]=p[E];return l},J,N=function(){function g(){this.value="",this.pos=0}return g.isDigitCharacter=function(u){return u>=48&&u<=57},g.isVariableCharacter=function(u){return u===95||u>=97&&u<=122||u>=65&&u<=90},g.prototype.text=function(u){this.value=u,this.pos=0},g.prototype.tokenText=function(u){return this.value.substr(u.pos,u.len)},g.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var u=this.pos,s=0,l=this.value.charCodeAt(u),d;if(d=g._table[l],typeof d=="number")return this.pos+=1,{type:d,pos:u,len:1};if(g.isDigitCharacter(l)){d=8;do s+=1,l=this.value.charCodeAt(u+s);while(g.isDigitCharacter(l));return this.pos+=s,{type:d,pos:u,len:s}}if(g.isVariableCharacter(l)){d=9;do l=this.value.charCodeAt(u+ ++s);while(g.isVariableCharacter(l)||g.isDigitCharacter(l));return this.pos+=s,{type:d,pos:u,len:s}}d=10;do s+=1,l=this.value.charCodeAt(u+s);while(!isNaN(l)&&typeof g._table[l]=="undefined"&&!g.isDigitCharacter(l)&&!g.isVariableCharacter(l));return this.pos+=s,{type:d,pos:u,len:s}},g._table=(J={},J[36]=0,J[58]=1,J[44]=2,J[123]=3,J[125]=4,J[92]=5,J[47]=6,J[124]=7,J[43]=11,J[45]=12,J[63]=13,J),g}(),H=function(){function g(){this._children=[]}return g.prototype.appendChild=function(u){return u instanceof z&&this._children[this._children.length-1]instanceof z?this._children[this._children.length-1].value+=u.value:(u.parent=this,this._children.push(u)),this},g.prototype.replace=function(u,s){var l=u.parent,d=l.children.indexOf(u),p=l.children.slice(0);p.splice.apply(p,re([d,1],s)),l._children=p,function E(_,x){for(var F=0,R=_;F<R.length;F++){var $=R[F];$.parent=x,E($.children,$)}}(s,l)},Object.defineProperty(g.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"snippet",{get:function(){for(var s=this;;){if(!s)return;if(s instanceof v)return s;s=s.parent}},enumerable:!0,configurable:!0}),g.prototype.toString=function(){return this.children.reduce(function(u,s){return u+s.toString()},"")},g.prototype.len=function(){return 0},g}(),z=function(g){T(u,g);function u(s){var l=g.call(this)||this;return l.value=s,l}return u.prototype.toString=function(){return this.value},u.prototype.len=function(){return this.value.length},u.prototype.clone=function(){return new u(this.value)},u}(H),M=function(g){T(u,g);function u(){return g!==null&&g.apply(this,arguments)||this}return u}(H),U=function(g){T(u,g);function u(s){var l=g.call(this)||this;return l.index=s,l}return u.compareByIndex=function(s,l){return s.index===l.index?0:s.isFinalTabstop?1:l.isFinalTabstop||s.index<l.index?-1:s.index>l.index?1:0},Object.defineProperty(u.prototype,"isFinalTabstop",{get:function(){return this.index===0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"choice",{get:function(){return this._children.length===1&&this._children[0]instanceof A?this._children[0]:void 0},enumerable:!0,configurable:!0}),u.prototype.clone=function(){var s=new u(this.index);return this.transform&&(s.transform=this.transform.clone()),s._children=this.children.map(function(l){return l.clone()}),s},u}(M),A=function(g){T(u,g);function u(){var s=g!==null&&g.apply(this,arguments)||this;return s.options=[],s}return u.prototype.appendChild=function(s){return s instanceof z&&(s.parent=this,this.options.push(s)),this},u.prototype.toString=function(){return this.options[0].value},u.prototype.len=function(){return this.options[0].len()},u.prototype.clone=function(){var s=new u;return this.options.forEach(s.appendChild,s),s},u}(H),c=function(g){T(u,g);function u(){var s=g!==null&&g.apply(this,arguments)||this;return s.regexp=new RegExp(""),s}return u.prototype.resolve=function(s){var l=this,d=!1,p=s.replace(this.regexp,function(){return d=!0,l._replace(Array.prototype.slice.call(arguments,0,-2))});return!d&&this._children.some(function(E){return E instanceof y&&Boolean(E.elseValue)})&&(p=this._replace([])),p},u.prototype._replace=function(s){for(var l="",d=0,p=this._children;d<p.length;d++){var E=p[d];if(E instanceof y){var _=s[E.index]||"";_=E.resolve(_),l+=_}else l+=E.toString()}return l},u.prototype.toString=function(){return""},u.prototype.clone=function(){var s=new u;return s.regexp=new RegExp(this.regexp.source,""+(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),s._children=this.children.map(function(l){return l.clone()}),s},u}(H),y=function(g){T(u,g);function u(s,l,d,p){var E=g.call(this)||this;return E.index=s,E.shorthandName=l,E.ifValue=d,E.elseValue=p,E}return u.prototype.resolve=function(s){return this.shorthandName==="upcase"?s?s.toLocaleUpperCase():"":this.shorthandName==="downcase"?s?s.toLocaleLowerCase():"":this.shorthandName==="capitalize"?s?s[0].toLocaleUpperCase()+s.substr(1):"":this.shorthandName==="pascalcase"?s?this._toPascalCase(s):"":Boolean(s)&&typeof this.ifValue=="string"?this.ifValue:!Boolean(s)&&typeof this.elseValue=="string"?this.elseValue:s||""},u.prototype._toPascalCase=function(s){var l=s.match(/[a-z]+/gi);return l?l.map(function(d){return d.charAt(0).toUpperCase()+d.substr(1).toLowerCase()}).join(""):s},u.prototype.clone=function(){var s=new u(this.index,this.shorthandName,this.ifValue,this.elseValue);return s},u}(H),L=function(g){T(u,g);function u(s){var l=g.call(this)||this;return l.name=s,l}return u.prototype.resolve=function(s){var l=s.resolve(this);return this.transform&&(l=this.transform.resolve(l||"")),l!==void 0?(this._children=[new z(l)],!0):!1},u.prototype.clone=function(){var s=new u(this.name);return this.transform&&(s.transform=this.transform.clone()),s._children=this.children.map(function(l){return l.clone()}),s},u}(M);function f(g,u){for(var s=re(g);s.length>0;){var l=s.shift(),d=u(l);if(!d)break;s.unshift.apply(s,l.children)}}var v=function(g){T(u,g);function u(){return g!==null&&g.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var l=[],d;this.walk(function(p){return p instanceof U&&(l.push(p),d=!d||d.index<p.index?p:d),!0}),this._placeholders={all:l,last:d}}return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"placeholders",{get:function(){var l=this.placeholderInfo.all;return l},enumerable:!0,configurable:!0}),u.prototype.offset=function(s){var l=0,d=!1;return this.walk(function(p){return p===s?(d=!0,!1):(l+=p.len(),!0)}),d?l:-1},u.prototype.fullLen=function(s){var l=0;return f([s],function(d){return l+=d.len(),!0}),l},u.prototype.enclosingPlaceholders=function(s){for(var l=[],d=s.parent;d;)d instanceof U&&l.push(d),d=d.parent;return l},u.prototype.resolveVariables=function(s){var l=this;return this.walk(function(d){return d instanceof L&&(d.resolve(s)&&(l._placeholders=void 0)),!0}),this},u.prototype.appendChild=function(s){return this._placeholders=void 0,g.prototype.appendChild.call(this,s)},u.prototype.replace=function(s,l){return this._placeholders=void 0,g.prototype.replace.call(this,s,l)},u.prototype.clone=function(){var s=new u;return this._children=this.children.map(function(l){return l.clone()}),s},u.prototype.walk=function(s){f(this.children,s)},u}(H),S=function(){function g(){this._scanner=new N,this._token={type:14,pos:0,len:0}}return g.escape=function(u){return u.replace(/\$|}|\\/g,"\\$&")},g.prototype.parse=function(u,s,l){this._scanner.text(u),this._token=this._scanner.next();for(var d=new v;this._parse(d););var p=new Map,E=[],_=0;d.walk(function(be){return be instanceof U&&(_+=1,be.isFinalTabstop?p.set(0,void 0):!p.has(be.index)&&be.children.length>0?p.set(be.index,be.children):E.push(be)),!0});for(var x=0,F=E;x<F.length;x++){var R=F[x],$=p.get(R.index);if($){var ie=new U(R.index);ie.transform=R.transform;for(var W=0,B=$;W<B.length;W++){var le=B[W];ie.appendChild(le.clone())}d.replace(R,[ie])}}return l||(l=_>0&&s),!p.has(0)&&l&&d.appendChild(new U(0)),d},g.prototype._accept=function(u,s){if(u===void 0||this._token.type===u){var l=s?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),l}return!1},g.prototype._backTo=function(u){return this._scanner.pos=u.pos+u.len,this._token=u,!1},g.prototype._until=function(u){for(var s=this._token;this._token.type!==u;){if(this._token.type===14)return!1;if(this._token.type===5){var l=this._scanner.next();if(l.type!==0&&l.type!==4&&l.type!==5)return!1}this._token=this._scanner.next()}var d=this._scanner.value.substring(s.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),d},g.prototype._parse=function(u){return this._parseEscaped(u)||this._parseTabstopOrVariableName(u)||this._parseComplexPlaceholder(u)||this._parseComplexVariable(u)||this._parseAnything(u)},g.prototype._parseEscaped=function(u){var s;return(s=this._accept(5,!0))?(s=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||s,u.appendChild(new z(s)),!0):!1},g.prototype._parseTabstopOrVariableName=function(u){var s,l=this._token,d=this._accept(0)&&(s=this._accept(9,!0)||this._accept(8,!0));return d?(u.appendChild(/^\d+$/.test(s)?new U(Number(s)):new L(s)),!0):this._backTo(l)},g.prototype._parseComplexPlaceholder=function(u){var s,l=this._token,d=this._accept(0)&&this._accept(3)&&(s=this._accept(8,!0));if(!d)return this._backTo(l);var p=new U(Number(s));if(this._accept(1))for(;;){if(this._accept(4))return u.appendChild(p),!0;if(this._parse(p))continue;return u.appendChild(new z("${"+s+":")),p.children.forEach(u.appendChild,u),!0}else if(p.index>0&&this._accept(7))for(var E=new A;;){if(this._parseChoiceElement(E)){if(this._accept(2))continue;if(this._accept(7)&&(p.appendChild(E),this._accept(4)))return u.appendChild(p),!0}return this._backTo(l),!1}else return this._accept(6)?this._parseTransform(p)?(u.appendChild(p),!0):(this._backTo(l),!1):this._accept(4)?(u.appendChild(p),!0):this._backTo(l)},g.prototype._parseChoiceElement=function(u){for(var s=this._token,l=[];!(this._token.type===2||this._token.type===7);){var d=void 0;if((d=this._accept(5,!0))?d=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||d:d=this._accept(void 0,!0),!d)return this._backTo(s),!1;l.push(d)}return l.length===0?(this._backTo(s),!1):(u.appendChild(new z(l.join(""))),!0)},g.prototype._parseComplexVariable=function(u){var s,l=this._token,d=this._accept(0)&&this._accept(3)&&(s=this._accept(9,!0));if(!d)return this._backTo(l);var p=new L(s);if(this._accept(1))for(;;){if(this._accept(4))return u.appendChild(p),!0;if(this._parse(p))continue;return u.appendChild(new z("${"+s+":")),p.children.forEach(u.appendChild,u),!0}else return this._accept(6)?this._parseTransform(p)?(u.appendChild(p),!0):(this._backTo(l),!1):this._accept(4)?(u.appendChild(p),!0):this._backTo(l)},g.prototype._parseTransform=function(u){for(var s=new c,l="",d="";!this._accept(6);){var p=void 0;if(p=this._accept(5,!0)){p=this._accept(6,!0)||p,l+=p;continue}if(this._token.type!==14){l+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){var p=void 0;if(p=this._accept(5,!0)){p=this._accept(5,!0)||this._accept(6,!0)||p,s.appendChild(new z(p));continue}if(this._parseFormatString(s)||this._parseAnything(s))continue;return!1}for(;!this._accept(4);){if(this._token.type!==14){d+=this._accept(void 0,!0);continue}return!1}try{s.regexp=new RegExp(l,d)}catch(E){return!1}return u.transform=s,!0},g.prototype._parseFormatString=function(u){var s=this._token;if(!this._accept(0))return!1;var l=!1;this._accept(3)&&(l=!0);var d=this._accept(8,!0);if(d)if(l){if(this._accept(4))return u.appendChild(new y(Number(d))),!0;if(!this._accept(1))return this._backTo(s),!1}else return u.appendChild(new y(Number(d))),!0;else return this._backTo(s),!1;if(this._accept(6)){var p=this._accept(9,!0);return!p||!this._accept(4)?(this._backTo(s),!1):(u.appendChild(new y(Number(d),p)),!0)}else if(this._accept(11)){var E=this._until(4);if(E)return u.appendChild(new y(Number(d),void 0,E,void 0)),!0}else if(this._accept(12)){var _=this._until(4);if(_)return u.appendChild(new y(Number(d),void 0,void 0,_)),!0}else if(this._accept(13)){var E=this._until(1);if(E){var _=this._until(4);if(_)return u.appendChild(new y(Number(d),void 0,E,_)),!0}}else{var _=this._until(4);if(_)return u.appendChild(new y(Number(d),void 0,void 0,_)),!0}return this._backTo(s),!1},g.prototype._parseAnything=function(u){return this._token.type!==14?(u.appendChild(new z(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1},g}()},uAX5:function(_t,P,e){},uDWl:function(_t,P,e){"use strict";e.d(P,"a",function(){return y});var T=e("D3Dy"),re=e("/kV6"),J=e("MNsG"),N=new Array(230),H=new Array(112);(function(){for(var L=0;L<H.length;L++)H[L]=-1;function f(v,S){N[v]=S,H[S]=v}f(3,7),f(8,1),f(9,2),f(13,3),f(16,4),f(17,5),f(18,6),f(19,7),f(20,8),f(27,9),f(32,10),f(33,11),f(34,12),f(35,13),f(36,14),f(37,15),f(38,16),f(39,17),f(40,18),f(45,19),f(46,20),f(48,21),f(49,22),f(50,23),f(51,24),f(52,25),f(53,26),f(54,27),f(55,28),f(56,29),f(57,30),f(65,31),f(66,32),f(67,33),f(68,34),f(69,35),f(70,36),f(71,37),f(72,38),f(73,39),f(74,40),f(75,41),f(76,42),f(77,43),f(78,44),f(79,45),f(80,46),f(81,47),f(82,48),f(83,49),f(84,50),f(85,51),f(86,52),f(87,53),f(88,54),f(89,55),f(90,56),f(93,58),f(96,93),f(97,94),f(98,95),f(99,96),f(100,97),f(101,98),f(102,99),f(103,100),f(104,101),f(105,102),f(106,103),f(107,104),f(108,105),f(109,106),f(110,107),f(111,108),f(112,59),f(113,60),f(114,61),f(115,62),f(116,63),f(117,64),f(118,65),f(119,66),f(120,67),f(121,68),f(122,69),f(123,70),f(124,71),f(125,72),f(126,73),f(127,74),f(128,75),f(129,76),f(130,77),f(144,78),f(145,79),f(186,80),f(187,81),f(188,82),f(189,83),f(190,84),f(191,85),f(192,86),f(193,110),f(194,111),f(219,87),f(220,88),f(221,89),f(222,90),f(223,91),f(226,92),f(229,109),T.i?f(91,57):T.h?(f(59,80),f(107,81),f(109,83),J.e&&f(224,57)):T.m&&(f(91,57),J.e?f(93,57):f(92,57))})();function z(L){if(L.charCode){var f=String.fromCharCode(L.charCode).toUpperCase();return re.b.fromString(f)}return N[L.keyCode]||0}var M=J.e?256:2048,U=512,A=1024,c=J.e?2048:256,y=function(){function L(f){this._standardKeyboardEventBrand=!0;var v=f;this.browserEvent=v,this.target=v.target,this.ctrlKey=v.ctrlKey,this.shiftKey=v.shiftKey,this.altKey=v.altKey,this.metaKey=v.metaKey,this.keyCode=z(v),this.code=v.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}return L.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},L.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},L.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},L.prototype.equals=function(f){return this._asKeybinding===f},L.prototype._computeKeybinding=function(){var f=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(f=this.keyCode);var v=0;return this.ctrlKey&&(v|=M),this.altKey&&(v|=U),this.shiftKey&&(v|=A),this.metaKey&&(v|=c),v|=f,v},L.prototype._computeRuntimeKeybinding=function(){var f=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(f=this.keyCode),new re.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,f)},L}()},uWgD:function(_t,P,e){},ufhN:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return e.e(293).then(e.bind(null,"rMIR"))}})},ujyM:function(_t,P,e){},undH:function(_t,P,e){},"v+CO":function(_t,P,e){"use strict";e.r(P),e.d(P,"EditorActionCommandEntry",function(){return L}),e.d(P,"QuickCommandAction",function(){return f});var T=e("N0LK"),re=e("D3Dy"),J=e("/cxE"),N=e("fpMC"),H=e("Rpxm"),z=e("sswD"),M=e("wQH0"),U=e("rzPn"),A=e("bexQ"),c=e("A9l+"),y=function(){var v=function(g,u){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])},v(g,u)};return function(S,g){v(S,g);function u(){this.constructor=S}S.prototype=g===null?Object.create(g):(u.prototype=g.prototype,new u)}}(),L=function(v){y(S,v);function S(g,u,s,l,d){var p=v.call(this)||this;return p.key=g,p.keyAriaLabel=u,p.setHighlights(s),p.action=l,p.editor=d,p}return S.prototype.getLabel=function(){return this.action.label},S.prototype.getAriaLabel=function(){return this.keyAriaLabel?T.r(c.d.ariaLabelEntryWithKey,this.getLabel(),this.keyAriaLabel):T.r(c.d.ariaLabelEntry,this.getLabel())},S.prototype.getGroupLabel=function(){return this.key},S.prototype.run=function(g,u){var s=this;return g===1?(setTimeout(function(){s.editor.focus();try{var l=s.action.run()||Promise.resolve();l.then(void 0,J.e)}catch(d){Object(J.e)(d)}},50),!0):!1},S}(H.b),f=function(v){y(S,v);function S(){return v.call(this,c.d.quickCommandActionInput,{id:"editor.action.quickCommand",label:c.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:M.a.focus,primary:re.i?512|59:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})||this}return S.prototype.run=function(g,u){var s=this,l=g.get(A.a);this._show(this.getController(u),{getModel:function(p){return new H.c(s._editorActionsToEntries(l,u,p))},getAutoFocus:function(p){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:p}}})},S.prototype._sort=function(g,u){var s=(g.getLabel()||"").toLowerCase(),l=(u.getLabel()||"").toLowerCase();return s.localeCompare(l)},S.prototype._editorActionsToEntries=function(g,u,s){for(var l=u.getSupportedActions(),d=[],p=0,E=l;p<E.length;p++){var _=E[p],x=g.lookupKeybinding(_.id);if(_.label){var F=Object(N.f)(s,_.label);F&&d.push(new L(x&&x.getLabel()||"",x&&x.getAriaLabel()||"",F,_,u))}}return d=d.sort(this._sort),d},S}(U.a);Object(z.f)(f)},vATl:function(_t,P,e){"use strict";e.d(P,"a",function(){return v}),e.d(P,"b",function(){return S}),e.d(P,"d",function(){return g}),e.d(P,"c",function(){return u});var T=e("N0LK"),re=e("JQT/"),J=e("pmY6"),N=e("sswD"),H=e("T8No"),z=e("24hK"),M=e("Cg/j"),U=e("9fML"),A=function(){var s=function(d,p){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,_){E.__proto__=_}||function(E,_){for(var x in _)_.hasOwnProperty(x)&&(E[x]=_[x])},s(d,p)};return function(l,d){s(l,d);function p(){this.constructor=l}l.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}(),c=Object(M.c)("IEditorCancelService"),y=new H.d("cancellableOperation",!1);Object(U.b)(c,function(){function s(){this._tokens=new WeakMap}return s.prototype.add=function(l,d){var p=this._tokens.get(l);p||(p=l.invokeWithinContext(function(_){var x=y.bindTo(_.get(H.c)),F=new z.a;return{key:x,tokens:F}}),this._tokens.set(l,p));var E;return p.key.set(!0),E=p.tokens.push(d),function(){E&&(E(),p.key.set(!p.tokens.isEmpty()),E=void 0)}},s.prototype.cancel=function(l){var d=this._tokens.get(l);if(!d)return;var p=d.tokens.pop();p&&(p.cancel(),d.key.set(!d.tokens.isEmpty()))},s}(),!0);var L=function(s){A(l,s);function l(d,p){var E=s.call(this,p)||this;return E.editor=d,E._unregister=d.invokeWithinContext(function(_){return _.get(c).add(d,E)}),E}return l.prototype.dispose=function(){this._unregister(),s.prototype.dispose.call(this)},l}(re.b);Object(N.g)(new(function(s){A(l,s);function l(){return s.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:y})||this}return l.prototype.runEditorCommand=function(d,p){d.get(c).cancel(p)},l}(N.c)));var f=function(){var s=function(d,p){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,_){E.__proto__=_}||function(E,_){for(var x in _)_.hasOwnProperty(x)&&(E[x]=_[x])},s(d,p)};return function(l,d){s(l,d);function p(){this.constructor=l}l.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}(),v=function(){function s(l,d){if(this.flags=d,(this.flags&1)!==0){var p=l.getModel();this.modelVersionId=p?T.r("{0}#{1}",p.uri.toString(),p.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=l.getPosition():this.position=null,(this.flags&2)!==0?this.selection=l.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=l.getScrollLeft(),this.scrollTop=l.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return s.prototype._equals=function(l){if(!(l instanceof s))return!1;var d=l;return this.modelVersionId!==d.modelVersionId||(this.scrollLeft!==d.scrollLeft||this.scrollTop!==d.scrollTop||(!this.position&&d.position||this.position&&!d.position||this.position&&d.position&&!this.position.equals(d.position)))?!1:!(!this.selection&&d.selection||this.selection&&!d.selection||this.selection&&d.selection&&!this.selection.equalsRange(d.selection))},s.prototype.validate=function(l){return this._equals(new s(l,this.flags))},s}(),S=function(s){f(l,s);function l(d,p,E){var _=s.call(this,d,E)||this;return _.editor=d,_._listener=new J.b,p&4&&_._listener.add(d.onDidChangeCursorPosition(function(x){return _.cancel()})),p&2&&_._listener.add(d.onDidChangeCursorSelection(function(x){return _.cancel()})),p&8&&_._listener.add(d.onDidScrollChange(function(x){return _.cancel()})),p&1&&(_._listener.add(d.onDidChangeModel(function(x){return _.cancel()})),_._listener.add(d.onDidChangeModelContent(function(x){return _.cancel()}))),_}return l.prototype.dispose=function(){this._listener.dispose(),s.prototype.dispose.call(this)},l}(L),g=function(s){f(l,s);function l(d,p){var E=s.call(this,p)||this;return E._listener=d.onDidChangeContent(function(){return E.cancel()}),E}return l.prototype.dispose=function(){this._listener.dispose(),s.prototype.dispose.call(this)},l}(re.b),u=function(){function s(l,d){this._visiblePosition=l,this._visiblePositionScrollDelta=d}return s.capture=function(l){var d=null,p=0;if(l.getScrollTop()!==0){var E=l.getVisibleRanges();if(E.length>0){d=E[0].getStartPosition();var _=l.getTopForPosition(d.lineNumber,d.column);p=l.getScrollTop()-_}}return new s(d,p)},s.prototype.restore=function(l){if(this._visiblePosition){var d=l.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);l.setScrollTop(d+this._visiblePositionScrollDelta)}},s}()},vMFT:function(_t,P,e){},vRMv:function(_t,P,e){"use strict";e.d(P,"b",function(){return A}),e.d(P,"a",function(){return c}),e.d(P,"c",function(){return y}),e.d(P,"e",function(){return L}),e.d(P,"d",function(){return f});var T=e("6OMU"),re=e("JQT/"),J=e("/cxE"),N=e("sswD"),H=e("twdY"),z=function(v,S,g,u){function s(l){return l instanceof g?l:new g(function(d){d(l)})}return new(g||(g=Promise))(function(l,d){function p(x){try{_(u.next(x))}catch(F){d(F)}}function E(x){try{_(u.throw(x))}catch(F){d(F)}}function _(x){x.done?l(x.value):s(x.value).then(p,E)}_((u=u.apply(v,S||[])).next())})},M=function(v,S){var g={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},u,s,l,d;return d={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(_){return function(x){return E([_,x])}}function E(_){if(u)throw new TypeError("Generator is already executing.");for(;g;)try{if(u=1,s&&(l=_[0]&2?s.return:_[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,_[1])).done)return l;(s=0,l)&&(_=[_[0]&2,l.value]);switch(_[0]){case 0:case 1:l=_;break;case 4:return g.label++,{value:_[1],done:!1};case 5:g.label++,s=_[1],_=[0];continue;case 7:_=g.ops.pop(),g.trys.pop();continue;default:if(!(l=g.trys,l=l.length>0&&l[l.length-1])&&(_[0]===6||_[0]===2)){g=0;continue}if(_[0]===3&&(!l||_[1]>l[0]&&_[1]<l[3])){g.label=_[1];break}if(_[0]===6&&g.label<l[1]){g.label=l[1],l=_;break}if(l&&g.label<l[2]){g.label=l[2],g.ops.push(_);break}l[2]&&g.ops.pop(),g.trys.pop();continue}_=S.call(v,g)}catch(x){_=[6,x],s=0}finally{u=l=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}};function U(v,S,g,u){var s=g.ordered(v),l=s.map(function(d){return Promise.resolve(u(d,v,S)).then(void 0,function(p){Object(J.f)(p);return})});return Promise.all(l).then(T.m).then(T.d)}function A(v,S,g){return U(v,S,H.f,function(u,s,l){return u.provideDefinition(s,l,g)})}function c(v,S,g){return U(v,S,H.e,function(u,s,l){return u.provideDeclaration(s,l,g)})}function y(v,S,g){return U(v,S,H.q,function(u,s,l){return u.provideImplementation(s,l,g)})}function L(v,S,g){return U(v,S,H.C,function(u,s,l){return u.provideTypeDefinition(s,l,g)})}function f(v,S,g,u){var s=this;return U(v,S,H.u,function(l,d,p){return z(s,void 0,void 0,function(){var E,_;return M(this,function(x){switch(x.label){case 0:return[4,l.provideReferences(d,p,{includeDeclaration:!0},u)];case 1:return E=x.sent(),!g||!E||E.length!==2?[2,E]:[4,l.provideReferences(d,p,{includeDeclaration:!1},u)];case 2:return _=x.sent(),_&&_.length===1?[2,_]:[2,E]}})})})}Object(N.k)("_executeDefinitionProvider",function(v,S){return A(v,S,re.a.None)}),Object(N.k)("_executeDeclarationProvider",function(v,S){return c(v,S,re.a.None)}),Object(N.k)("_executeImplementationProvider",function(v,S){return y(v,S,re.a.None)}),Object(N.k)("_executeTypeDefinitionProvider",function(v,S){return L(v,S,re.a.None)}),Object(N.k)("_executeReferenceProvider",function(v,S){return f(v,S,!1,re.a.None)})},vVA1:function(_t,P,e){"use strict";e.r(P);var T=e("sswD"),re=e("scqD"),J=e("A9l+"),N=function(){var z=function(U,A){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,y){c.__proto__=y}||function(c,y){for(var L in y)y.hasOwnProperty(L)&&(c[L]=y[L])},z(U,A)};return function(M,U){z(M,U);function A(){this.constructor=M}M.prototype=U===null?Object.create(U):(A.prototype=U.prototype,new A)}}(),H=function(z){N(M,z);function M(){var U=z.call(this,{id:"editor.action.toggleHighContrast",label:J.h.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0})||this;return U._originalThemeName=null,U}return M.prototype.run=function(U,A){var c=U.get(re.a);this._originalThemeName?(c.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=c.getTheme().themeName,c.setTheme("hc-black"))},M}(T.b);Object(T.f)(H)},vl9R:function(_t,P,e){"use strict";e.d(P,"d",function(){return re}),e.d(P,"b",function(){return J}),e.d(P,"c",function(){return N}),e.d(P,"a",function(){return H});var T=Object.prototype.hasOwnProperty;function re(z){var M=[];for(var U in z)T.call(z,U)&&M.push(z[U]);return M}function J(z){for(var M in z)if(T.call(z,M))return z[M];return}function N(z,M){var U=function(L){if(T.call(z,L)){var f=M({key:L,value:z[L]},function(){delete z[L]});if(f===!1)return{value:void 0}}};for(var A in z){var c=U(A);if(typeof c=="object")return c.value}}var H=function(){function z(){this.map=new Map}return z.prototype.add=function(M,U){var A=this.map.get(M);A||(A=new Set,this.map.set(M,A)),A.add(U)},z.prototype.delete=function(M,U){var A=this.map.get(M);if(!A)return;A.delete(U),A.size===0&&this.map.delete(M)},z.prototype.forEach=function(M,U){var A=this.map.get(M);if(!A)return;A.forEach(U)},z}()},"w29/":function(_t,P,e){"use strict";e.r(P);var T=e("5DEy"),re=e.n(T),J=e("3/fG"),N=e("D3Dy"),H=e("MNsG"),z=e("5TxY"),M=e("sswD"),U=e("Vxe3"),A=e("wQH0"),c=function(){var p=function(_,x){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,R){F.__proto__=R}||function(F,R){for(var $ in R)R.hasOwnProperty($)&&(F[$]=R[$])},p(_,x)};return function(E,_){p(E,_);function x(){this.constructor=E}E.prototype=_===null?Object.create(_):(x.prototype=_.prototype,new x)}}(),y="9_cutcopypaste",L=H.f||document.queryCommandSupported("cut"),f=H.f||document.queryCommandSupported("copy"),v=f&&!N.f,S=H.f||!N.d&&document.queryCommandSupported("paste"),g=function(p){c(E,p);function E(_,x){var F=p.call(this,x)||this;return F.browserCommand=_,F}return E.prototype.runCommand=function(_,x){var F=_.get(U.a).getFocusedCodeEditor();if(F&&F.hasTextFocus()){F.trigger("keyboard",this.id,x);return}document.execCommand(this.browserCommand)},E.prototype.run=function(_,x){x.focus(),document.execCommand(this.browserCommand)},E}(M.b),u=function(p){c(E,p);function E(){var _=this,x={kbExpr:A.a.textInputFocus,primary:2048|54,win:{primary:2048|54,secondary:[1024|20]},weight:100};return H.f||(x=void 0),_=p.call(this,"cut",{id:"editor.action.clipboardCutAction",label:J.a("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:A.a.writable,kbOpts:x,contextMenuOpts:{group:y,order:1},menuOpts:{menuId:17,group:"2_ccp",title:J.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this,_}return E.prototype.run=function(_,x){if(!x.hasModel())return;var F=x.getOption(25);if(!F&&x.getSelection().isEmpty())return;p.prototype.run.call(this,_,x)},E}(g),s=function(p){c(E,p);function E(){var _=this,x={kbExpr:A.a.textInputFocus,primary:2048|33,win:{primary:2048|33,secondary:[2048|19]},weight:100};return H.f||(x=void 0),_=p.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:J.a("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:x,contextMenuOpts:{group:y,order:2},menuOpts:{menuId:17,group:"2_ccp",title:J.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this,_}return E.prototype.run=function(_,x){if(!x.hasModel())return;var F=x.getOption(25);if(!F&&x.getSelection().isEmpty())return;p.prototype.run.call(this,_,x)},E}(g),l=function(p){c(E,p);function E(){var _=this,x={kbExpr:A.a.textInputFocus,primary:2048|52,win:{primary:2048|52,secondary:[1024|19]},weight:100};return H.f||(x=void 0),_=p.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:J.a("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:A.a.writable,kbOpts:x,contextMenuOpts:{group:y,order:3},menuOpts:{menuId:17,group:"2_ccp",title:J.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this,_}return E}(g),d=function(p){c(E,p);function E(){return p.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:J.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:A.a.textInputFocus,primary:0,weight:100}})||this}return E.prototype.run=function(_,x){if(!x.hasModel())return;var F=x.getOption(25);if(!F&&x.getSelection().isEmpty())return;z.a.forceCopyWithSyntaxHighlighting=!0,p.prototype.run.call(this,_,x),z.a.forceCopyWithSyntaxHighlighting=!1},E}(g);L&&Object(M.f)(u),f&&Object(M.f)(s),S&&Object(M.f)(l),v&&Object(M.f)(d)},w9QG:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return e.e(292).then(e.bind(null,"Czvm"))}})},wQH0:function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("T8No"),re;(function(J){J.editorSimpleInput=new T.d("editorSimpleInput",!1),J.editorTextFocus=new T.d("editorTextFocus",!1),J.focus=new T.d("editorFocus",!1),J.textInputFocus=new T.d("textInputFocus",!1),J.readOnly=new T.d("editorReadonly",!1),J.writable=J.readOnly.toNegated(),J.hasNonEmptySelection=new T.d("editorHasSelection",!1),J.hasOnlyEmptySelection=J.hasNonEmptySelection.toNegated(),J.hasMultipleSelections=new T.d("editorHasMultipleSelections",!1),J.hasSingleSelection=J.hasMultipleSelections.toNegated(),J.tabMovesFocus=new T.d("editorTabMovesFocus",!1),J.tabDoesNotMoveFocus=J.tabMovesFocus.toNegated(),J.isInEmbeddedEditor=new T.d("isInEmbeddedEditor",!1),J.canUndo=new T.d("canUndo",!1),J.canRedo=new T.d("canRedo",!1),J.languageId=new T.d("editorLangId",""),J.hasCompletionItemProvider=new T.d("editorHasCompletionItemProvider",!1),J.hasCodeActionsProvider=new T.d("editorHasCodeActionsProvider",!1),J.hasCodeLensProvider=new T.d("editorHasCodeLensProvider",!1),J.hasDefinitionProvider=new T.d("editorHasDefinitionProvider",!1),J.hasDeclarationProvider=new T.d("editorHasDeclarationProvider",!1),J.hasImplementationProvider=new T.d("editorHasImplementationProvider",!1),J.hasTypeDefinitionProvider=new T.d("editorHasTypeDefinitionProvider",!1),J.hasHoverProvider=new T.d("editorHasHoverProvider",!1),J.hasDocumentHighlightProvider=new T.d("editorHasDocumentHighlightProvider",!1),J.hasDocumentSymbolProvider=new T.d("editorHasDocumentSymbolProvider",!1),J.hasReferenceProvider=new T.d("editorHasReferenceProvider",!1),J.hasRenameProvider=new T.d("editorHasRenameProvider",!1),J.hasSignatureHelpProvider=new T.d("editorHasSignatureHelpProvider",!1),J.hasDocumentFormattingProvider=new T.d("editorHasDocumentFormattingProvider",!1),J.hasDocumentSelectionFormattingProvider=new T.d("editorHasDocumentSelectionFormattingProvider",!1),J.hasMultipleDocumentFormattingProvider=new T.d("editorHasMultipleDocumentFormattingProvider",!1),J.hasMultipleDocumentSelectionFormattingProvider=new T.d("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(re||(re={}))},woZy:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return e.e(277).then(e.bind(null,"I+Au"))}})},wxcJ:function(_t,P,e){"use strict";(function(T){e.d(P,"a",function(){return N}),e.d(P,"b",function(){return H}),e.d(P,"c",function(){return z});var re=e("MNsG"),J=typeof T=="undefined"?{cwd:function(){return"/"},env:Object.create(null),get platform(){return re.h?"win32":re.e?"darwin":"linux"},nextTick:function(U){return Object(re.i)(U)}}:T,N=J.cwd,H=J.env,z=J.platform}).call(this,e("Q2Ig"))},"x/UI":function(_t,P,e){"use strict";e.d(P,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("IWorkspaceEditService")},xONI:function(_t,P,e){"use strict";e.d(P,"a",function(){return c});var T=e("KgQ1"),re=e.n(T),J=e("EffR"),N=e("7lZ/"),H=e("pmY6"),z=e("nuFA"),M=e("qj0h"),U=function(){var v=function(g,u){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])},v(g,u)};return function(S,g){v(S,g);function u(){this.constructor=S}S.prototype=g===null?Object.create(g):(u.prototype=g.prototype,new u)}}(),A=function(){function v(S){this._element=S}return Object.defineProperty(v.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"textContent",{set:function(g){if(this.disposed||g===this._textContent)return;this._textContent=g,this._element.textContent=g},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"className",{set:function(g){if(this.disposed||g===this._className)return;this._className=g,this._element.className=g},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"title",{set:function(g){if(this.disposed||g===this._title)return;this._title=g,this._title?this._element.title=g:this._element.removeAttribute("title")},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"empty",{set:function(g){if(this.disposed||g===this._empty)return;this._empty=g,this._element.style.marginLeft=g?"0":""},enumerable:!0,configurable:!0}),v.prototype.dispose=function(){this.disposed=!0},v}(),c=function(v){U(S,v);function S(g,u){var s=v.call(this)||this;s.domNode=s._register(new A(J.q(g,J.a(".monaco-icon-label"))));var l=J.q(s.domNode.element,J.a(".monaco-icon-label-container")),d=J.q(l,J.a("span.monaco-icon-name-container"));return s.descriptionContainer=s._register(new A(J.q(l,J.a("span.monaco-icon-description-container")))),(u==null?void 0:u.supportHighlights)?s.nameNode=new f(d,!!u.supportCodicons):s.nameNode=new y(d),(u==null?void 0:u.supportDescriptionHighlights)?s.descriptionNodeFactory=function(){return new N.a(J.q(s.descriptionContainer.element,J.a("span.label-description")),!!u.supportCodicons)}:s.descriptionNodeFactory=function(){return s._register(new A(J.q(s.descriptionContainer.element,J.a("span.label-description"))))},s}return S.prototype.setLabel=function(g,u,s){var l=["monaco-icon-label"];s&&(s.extraClasses&&l.push.apply(l,s.extraClasses),s.italic&&l.push("italic")),this.domNode.className=l.join(" "),this.domNode.title=(s==null?void 0:s.title)||"",this.nameNode.setLabel(g,s),(u||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof N.a?(this.descriptionNode.set(u||"",s?s.descriptionMatches:void 0),(s==null?void 0:s.descriptionTitle)?this.descriptionNode.element.title=s.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=u||"",this.descriptionNode.title=(s==null?void 0:s.descriptionTitle)||"",this.descriptionNode.empty=!u))},S}(H.a),y=function(){function v(S){this.container=S,this.label=void 0,this.singleLabel=void 0}return v.prototype.setLabel=function(S,g){if(this.label===S&&Object(M.e)(this.options,g))return;if(this.label=S,this.options=g,typeof S=="string")this.singleLabel||(this.container.innerHTML="",J.P(this.container,"multiple"),this.singleLabel=J.q(this.container,J.a("a.label-name",{id:g==null?void 0:g.domId}))),this.singleLabel.textContent=S;else{this.container.innerHTML="",J.f(this.container,"multiple"),this.singleLabel=void 0;for(var u=0;u<S.length;u++){var s=S[u],l=(g==null?void 0:g.domId)&&(g==null?void 0:g.domId)+"_"+u;J.q(this.container,J.a("a.label-name",{id:l,"data-icon-label-count":S.length,"data-icon-label-index":u},s)),u<S.length-1&&J.q(this.container,J.a("span.label-separator",void 0,(g==null?void 0:g.separator)||"/"))}}},v}();function L(v,S,g){if(!g)return;var u=0;return v.map(function(s){var l={start:u,end:u+s.length},d=g.map(function(p){return z.a.intersect(l,p)}).filter(function(p){return!z.a.isEmpty(p)}).map(function(p){var E=p.start,_=p.end;return{start:E-u,end:_-u}});return u=l.end+S.length,d})}var f=function(){function v(S,g){this.container=S,this.supportCodicons=g,this.label=void 0,this.singleLabel=void 0}return v.prototype.setLabel=function(S,g){if(this.label===S&&Object(M.e)(this.options,g))return;if(this.label=S,this.options=g,typeof S=="string")this.singleLabel||(this.container.innerHTML="",J.P(this.container,"multiple"),this.singleLabel=new N.a(J.q(this.container,J.a("a.label-name",{id:g==null?void 0:g.domId})),this.supportCodicons)),this.singleLabel.set(S,g==null?void 0:g.matches,g==null?void 0:g.title,g==null?void 0:g.labelEscapeNewLines);else{this.container.innerHTML="",J.f(this.container,"multiple"),this.singleLabel=void 0;for(var u=(g==null?void 0:g.separator)||"/",s=L(S,u,g==null?void 0:g.matches),l=0;l<S.length;l++){var d=S[l],p=s?s[l]:void 0,E=(g==null?void 0:g.domId)&&(g==null?void 0:g.domId)+"_"+l,_=J.a("a.label-name",{id:E,"data-icon-label-count":S.length,"data-icon-label-index":l}),x=new N.a(J.q(this.container,_),this.supportCodicons);x.set(d,p,g==null?void 0:g.title,g==null?void 0:g.labelEscapeNewLines),l<S.length-1&&J.q(_,J.a("span.label-separator",void 0,u))}}},v}()},xYNL:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return e.e(267).then(e.bind(null,"tGOS"))}})},xmOD:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return e.e(287).then(e.bind(null,"fB/Z"))}})},y3CF:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return e.e(274).then(e.bind(null,"YdqL"))}})},yEoX:function(_t,P,e){},yI7H:function(_t,P,e){},yKqg:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return e.e(283).then(e.bind(null,"LdT9"))}})},yqFB:function(_t,P,e){},yrU1:function(_t,P,e){},z3hU:function(_t,P,e){"use strict";e.r(P),e.d(P,"LanguageServiceDefaultsImpl",function(){return N});var T=e("M/lh"),re="3.7.5";"use strict";var J=monaco.Emitter,N=function(){function g(u,s){this._onDidChange=new J,this._onDidExtraLibsChange=new J,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(u),this.setDiagnosticsOptions(s),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(g.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),g.prototype.getExtraLibs=function(){return this._extraLibs},g.prototype.addExtraLib=function(u,s){var l=this,d;if(typeof s=="undefined"?d="ts:extralib-"+Math.random().toString(36).substring(2,15):d=s,this._extraLibs[d]&&this._extraLibs[d].content===u)return{dispose:function(){}};var p=1;return this._extraLibs[d]&&(p=this._extraLibs[d].version+1),this._extraLibs[d]={content:u,version:p},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var _=l._extraLibs[d];if(!_)return;if(_.version!==p)return;delete l._extraLibs[d],l._fireOnDidExtraLibsChangeSoon()}}},g.prototype.setExtraLibs=function(u){if(this._extraLibs=Object.create(null),u&&u.length>0)for(var s=0,l=u;s<l.length;s++){var d=l[s],p=d.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),E=d.content;this._extraLibs[p]={content:E,version:1}}this._fireOnDidExtraLibsChangeSoon()},g.prototype._fireOnDidExtraLibsChangeSoon=function(){var u=this;if(this._onDidExtraLibsChangeTimeout!==-1)return;this._onDidExtraLibsChangeTimeout=setTimeout(function(){u._onDidExtraLibsChangeTimeout=-1,u._onDidExtraLibsChange.fire(void 0)},0)},g.prototype.getCompilerOptions=function(){return this._compilerOptions},g.prototype.setCompilerOptions=function(u){this._compilerOptions=u||Object.create(null),this._onDidChange.fire(void 0)},g.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},g.prototype.setDiagnosticsOptions=function(u){this._diagnosticsOptions=u||Object.create(null),this._onDidChange.fire(void 0)},g.prototype.setMaximumWorkerIdleTime=function(u){},g.prototype.setEagerModelSync=function(u){this._eagerModelSync=u},g.prototype.getEagerModelSync=function(){return this._eagerModelSync},g}(),H;(function(g){g[g.None=0]="None",g[g.CommonJS=1]="CommonJS",g[g.AMD=2]="AMD",g[g.UMD=3]="UMD",g[g.System=4]="System",g[g.ES2015=5]="ES2015",g[g.ESNext=99]="ESNext"})(H||(H={}));var z;(function(g){g[g.None=0]="None",g[g.Preserve=1]="Preserve",g[g.React=2]="React",g[g.ReactNative=3]="ReactNative"})(z||(z={}));var M;(function(g){g[g.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",g[g.LineFeed=1]="LineFeed"})(M||(M={}));var U;(function(g){g[g.ES3=0]="ES3",g[g.ES5=1]="ES5",g[g.ES2015=2]="ES2015",g[g.ES2016=3]="ES2016",g[g.ES2017=4]="ES2017",g[g.ES2018=5]="ES2018",g[g.ES2019=6]="ES2019",g[g.ES2020=7]="ES2020",g[g.ESNext=99]="ESNext",g[g.JSON=100]="JSON",g[g.Latest=99]="Latest"})(U||(U={}));var A;(function(g){g[g.Classic=1]="Classic",g[g.NodeJs=2]="NodeJs"})(A||(A={}));var c=new N({allowNonTsExtensions:!0,target:U.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),y=new N({allowNonTsExtensions:!0,allowJs:!0,target:U.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function L(){return S().then(function(g){return g.getTypeScriptWorker()})}function f(){return S().then(function(g){return g.getJavaScriptWorker()})}function v(){return{ModuleKind:H,JsxEmit:z,NewLineKind:M,ScriptTarget:U,ModuleResolutionKind:A,typescriptVersion:re,typescriptDefaults:c,javascriptDefaults:y,getTypeScriptWorker:L,getJavaScriptWorker:f}}monaco.languages.typescript=v();function S(){return e.e(301).then(e.bind(null,"4yiN"))}monaco.languages.onLanguage("typescript",function(){return S().then(function(g){return g.setupTypeScript(c)})}),monaco.languages.onLanguage("javascript",function(){return S().then(function(g){return g.setupJavaScript(y)})})},zN7H:function(_t,P,e){"use strict";e.d(P,"a",function(){return U});var T=e("N0LK"),re=e("Ll0s"),J=e("aokT"),N=e("gCVg"),H=e("cMvZ"),z=Object.create(null);function M(A,c){z[A]||(z[A]=["",A]);for(var y=z[A],L=y.length;L<=c;L++)y[L]=y[L-1]+A;return y[c]}var U=function(){function A(c,y){this._opts=y,this._selection=c,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return A.unshiftIndent=function(c,y,L,f,v){var S=re.a.visibleColumnFromColumn(c,y,L);if(v){var g=M(" ",f),u=re.a.prevIndentTabStop(S,f),s=u/f;return M(g,s)}else{var g=" ",u=re.a.prevRenderTabStop(S,L),s=u/L;return M(g,s)}},A.shiftIndent=function(c,y,L,f,v){var S=re.a.visibleColumnFromColumn(c,y,L);if(v){var g=M(" ",f),u=re.a.nextIndentTabStop(S,f),s=u/f;return M(g,s)}else{var g=" ",u=re.a.nextRenderTabStop(S,L),s=u/L;return M(g,s)}},A.prototype._addEditOperation=function(c,y,L){this._useLastEditRangeForCursorEndPosition?c.addTrackedEditOperation(y,L):c.addEditOperation(y,L)},A.prototype.getEditOperations=function(c,y){var L=this._selection.startLineNumber,f=this._selection.endLineNumber;this._selection.endColumn===1&&L!==f&&(f=f-1);var v=this._opts,S=v.tabSize,g=v.indentSize,u=v.insertSpaces,s=L===f;if(this._selection.isEmpty()&&(/^\s*$/.test(c.getLineContent(L))&&(this._useLastEditRangeForCursorEndPosition=!0)),this._opts.useTabStops)for(var l=0,d=0,p=L;p<=f;p++,l=d){d=0;var E=c.getLineContent(p),_=T.q(E);if(this._opts.isUnshift&&(E.length===0||_===0))continue;if(!s&&!this._opts.isUnshift&&E.length===0)continue;if(_===-1&&(_=E.length),p>1){var x=re.a.visibleColumnFromColumn(E,_+1,S);if(x%g!==0&&c.isCheapToTokenize(p-1)){var F=H.a.getEnterAction(this._opts.autoIndent,c,new J.a(p-1,c.getLineMaxColumn(p-1),p-1,c.getLineMaxColumn(p-1)));if(F){if(d=l,F.appendText)for(var R=0,$=F.appendText.length;R<$&&d<g&&F.appendText.charCodeAt(R)===32;R++)d++;F.removeText&&(d=Math.max(0,d-F.removeText));for(var R=0;R<d&&!(_===0||E.charCodeAt(_-1)!==32);R++)_--}}}if(this._opts.isUnshift&&_===0)continue;var ie=void 0;this._opts.isUnshift?ie=A.unshiftIndent(E,_+1,S,g,u):ie=A.shiftIndent(E,_+1,S,g,u),this._addEditOperation(y,new J.a(p,1,p,_+1),ie),p===L&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1)}else for(var W=u?M(" ",g):" ",p=L;p<=f;p++){var E=c.getLineContent(p),_=T.q(E);if(this._opts.isUnshift&&(E.length===0||_===0))continue;if(!s&&!this._opts.isUnshift&&E.length===0)continue;if(_===-1&&(_=E.length),this._opts.isUnshift&&_===0)continue;if(this._opts.isUnshift){_=Math.min(_,g);for(var B=0;B<_;B++){var le=E.charCodeAt(B);if(le===9){_=B+1;break}}this._addEditOperation(y,new J.a(p,1,p,_+1),"")}else this._addEditOperation(y,new J.a(p,1,p,1),W),p===L&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}this._selectionId=y.trackSelection(this._selection)},A.prototype.computeCursorState=function(c,y){if(this._useLastEditRangeForCursorEndPosition){var L=y.getInverseEditOperations()[0];return new N.a(L.range.endLineNumber,L.range.endColumn,L.range.endLineNumber,L.range.endColumn)}var f=y.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var v=this._selection.startColumn,S=f.startColumn;return S<=v?f:f.getDirection()===0?new N.a(f.startLineNumber,v,f.endLineNumber,f.endColumn):new N.a(f.endLineNumber,f.endColumn,f.startLineNumber,v)}return f},A}()},zQEy:function(_t,P,e){"use strict";e.r(P);var T=e("+hIS");Object(T.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return e.e(259).then(e.bind(null,"On+f"))}})},zrhQ:function(_t,P,e){"use strict";e.d(P,"c",function(){return re}),e.d(P,"b",function(){return N}),e.d(P,"a",function(){return H});function T(z,M){var U=Math.pow(10,M);return Math.round(z*U)/U}var re=function(){function z(M,U,A,c){c===void 0&&(c=1),this.r=Math.min(255,Math.max(0,M))|0,this.g=Math.min(255,Math.max(0,U))|0,this.b=Math.min(255,Math.max(0,A))|0,this.a=T(Math.max(Math.min(1,c),0),3)}return z.equals=function(M,U){return M.r===U.r&&M.g===U.g&&M.b===U.b&&M.a===U.a},z}(),J=function(){function z(M,U,A,c){this.h=Math.max(Math.min(360,M),0)|0,this.s=T(Math.max(Math.min(1,U),0),3),this.l=T(Math.max(Math.min(1,A),0),3),this.a=T(Math.max(Math.min(1,c),0),3)}return z.equals=function(M,U){return M.h===U.h&&M.s===U.s&&M.l===U.l&&M.a===U.a},z.fromRGBA=function(M){var U=M.r/255,A=M.g/255,c=M.b/255,y=M.a,L=Math.max(U,A,c),f=Math.min(U,A,c),v=0,S=0,g=(f+L)/2,u=L-f;if(u>0){S=Math.min(g<=.5?u/(2*g):u/(2-2*g),1);switch(L){case U:v=(A-c)/u+(A<c?6:0);break;case A:v=(c-U)/u+2;break;case c:v=(U-A)/u+4;break}v*=60,v=Math.round(v)}return new z(v,S,g,y)},z._hue2rgb=function(M,U,A){return A<0&&(A+=1),A>1&&(A-=1),A<1/6?M+(U-M)*6*A:A<1/2?U:A<2/3?M+(U-M)*(2/3-A)*6:M},z.toRGBA=function(M){var U=M.h/360,A=M.s,c=M.l,y=M.a,L,f,v;if(A===0)L=f=v=c;else{var S=c<.5?c*(1+A):c+A-c*A,g=2*c-S;L=z._hue2rgb(g,S,U+1/3),f=z._hue2rgb(g,S,U),v=z._hue2rgb(g,S,U-1/3)}return new re(Math.round(L*255),Math.round(f*255),Math.round(v*255),y)},z}(),N=function(){function z(M,U,A,c){this.h=Math.max(Math.min(360,M),0)|0,this.s=T(Math.max(Math.min(1,U),0),3),this.v=T(Math.max(Math.min(1,A),0),3),this.a=T(Math.max(Math.min(1,c),0),3)}return z.equals=function(M,U){return M.h===U.h&&M.s===U.s&&M.v===U.v&&M.a===U.a},z.fromRGBA=function(M){var U=M.r/255,A=M.g/255,c=M.b/255,y=Math.max(U,A,c),L=Math.min(U,A,c),f=y-L,v=y===0?0:f/y,S;return f===0?S=0:y===U?S=((A-c)/f%6+6)%6:y===A?S=(c-U)/f+2:S=(U-A)/f+4,new z(Math.round(S*60),v,y,M.a)},z.toRGBA=function(M){var U=M.h,A=M.s,c=M.v,y=M.a,L=c*A,f=L*(1-Math.abs(U/60%2-1)),v=c-L,S=[0,0,0],g=S[0],u=S[1],s=S[2];return U<60?(g=L,u=f):U<120?(g=f,u=L):U<180?(u=L,s=f):U<240?(u=f,s=L):U<300?(g=f,s=L):U<360&&(g=L,s=f),g=Math.round((g+v)*255),u=Math.round((u+v)*255),s=Math.round((s+v)*255),new re(g,u,s,y)},z}(),H=function(){function z(M){if(M)if(M instanceof re)this.rgba=M;else if(M instanceof J)this._hsla=M,this.rgba=J.toRGBA(M);else if(M instanceof N)this._hsva=M,this.rgba=N.toRGBA(M);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return z.fromHex=function(M){return z.Format.CSS.parseHex(M)||z.red},Object.defineProperty(z.prototype,"hsla",{get:function(){return this._hsla?this._hsla:J.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"hsva",{get:function(){return this._hsva?this._hsva:N.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),z.prototype.equals=function(M){return!!M&&re.equals(this.rgba,M.rgba)&&J.equals(this.hsla,M.hsla)&&N.equals(this.hsva,M.hsva)},z.prototype.getRelativeLuminance=function(){var M=z._relativeLuminanceForComponent(this.rgba.r),U=z._relativeLuminanceForComponent(this.rgba.g),A=z._relativeLuminanceForComponent(this.rgba.b),c=.2126*M+.7152*U+.0722*A;return T(c,4)},z._relativeLuminanceForComponent=function(M){var U=M/255;return U<=.03928?U/12.92:Math.pow((U+.055)/1.055,2.4)},z.prototype.isLighter=function(){var M=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return M>=128},z.prototype.isLighterThan=function(M){var U=this.getRelativeLuminance(),A=M.getRelativeLuminance();return U>A},z.prototype.isDarkerThan=function(M){var U=this.getRelativeLuminance(),A=M.getRelativeLuminance();return U<A},z.prototype.lighten=function(M){return new z(new J(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*M,this.hsla.a))},z.prototype.darken=function(M){return new z(new J(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*M,this.hsla.a))},z.prototype.transparent=function(M){var U=this.rgba,A=U.r,c=U.g,y=U.b,L=U.a;return new z(new re(A,c,y,L*M))},z.prototype.isTransparent=function(){return this.rgba.a===0},z.prototype.isOpaque=function(){return this.rgba.a===1},z.prototype.opposite=function(){return new z(new re(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},z.prototype.toString=function(){return""+z.Format.CSS.format(this)},z.getLighterColor=function(M,U,A){if(M.isLighterThan(U))return M;A=A||.5;var c=M.getRelativeLuminance(),y=U.getRelativeLuminance();return A=A*(y-c)/y,M.lighten(A)},z.getDarkerColor=function(M,U,A){if(M.isDarkerThan(U))return M;A=A||.5;var c=M.getRelativeLuminance(),y=U.getRelativeLuminance();return A=A*(c-y)/c,M.darken(A)},z.white=new z(new re(255,255,255,1)),z.black=new z(new re(0,0,0,1)),z.red=new z(new re(255,0,0,1)),z.blue=new z(new re(0,0,255,1)),z.cyan=new z(new re(0,255,255,1)),z.lightgrey=new z(new re(211,211,211,1)),z.transparent=new z(new re(0,0,0,0)),z}();(function(z){var M;(function(U){var A;(function(c){function y(p){return p.rgba.a===1?"rgb("+p.rgba.r+", "+p.rgba.g+", "+p.rgba.b+")":z.Format.CSS.formatRGBA(p)}c.formatRGB=y;function L(p){return"rgba("+p.rgba.r+", "+p.rgba.g+", "+p.rgba.b+", "+ +p.rgba.a.toFixed(2)+")"}c.formatRGBA=L;function f(p){return p.hsla.a===1?"hsl("+p.hsla.h+", "+(p.hsla.s*100).toFixed(2)+"%, "+(p.hsla.l*100).toFixed(2)+"%)":z.Format.CSS.formatHSLA(p)}c.formatHSL=f;function v(p){return"hsla("+p.hsla.h+", "+(p.hsla.s*100).toFixed(2)+"%, "+(p.hsla.l*100).toFixed(2)+"%, "+p.hsla.a.toFixed(2)+")"}c.formatHSLA=v;function S(p){var E=p.toString(16);return E.length!==2?"0"+E:E}function g(p){return"#"+S(p.rgba.r)+S(p.rgba.g)+S(p.rgba.b)}c.formatHex=g;function u(p,E){return E===void 0&&(E=!1),E&&p.rgba.a===1?z.Format.CSS.formatHex(p):"#"+S(p.rgba.r)+S(p.rgba.g)+S(p.rgba.b)+S(Math.round(p.rgba.a*255))}c.formatHexA=u;function s(p){return p.isOpaque()?z.Format.CSS.formatHex(p):z.Format.CSS.formatRGBA(p)}c.format=s;function l(p){var E=p.length;if(E===0)return null;if(p.charCodeAt(0)!==35)return null;if(E===7){var _=16*d(p.charCodeAt(1))+d(p.charCodeAt(2)),x=16*d(p.charCodeAt(3))+d(p.charCodeAt(4)),F=16*d(p.charCodeAt(5))+d(p.charCodeAt(6));return new z(new re(_,x,F,1))}if(E===9){var _=16*d(p.charCodeAt(1))+d(p.charCodeAt(2)),x=16*d(p.charCodeAt(3))+d(p.charCodeAt(4)),F=16*d(p.charCodeAt(5))+d(p.charCodeAt(6)),R=16*d(p.charCodeAt(7))+d(p.charCodeAt(8));return new z(new re(_,x,F,R/255))}if(E===4){var _=d(p.charCodeAt(1)),x=d(p.charCodeAt(2)),F=d(p.charCodeAt(3));return new z(new re(16*_+_,16*x+x,16*F+F))}if(E===5){var _=d(p.charCodeAt(1)),x=d(p.charCodeAt(2)),F=d(p.charCodeAt(3)),R=d(p.charCodeAt(4));return new z(new re(16*_+_,16*x+x,16*F+F,(16*R+R)/255))}return null}c.parseHex=l;function d(p){switch(p){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(A=U.CSS||(U.CSS={}))})(M=z.Format||(z.Format={}))})(H||(H={}))}}]);