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.8ea24101.asyn...

231 lines
2.3 MiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"+3Gp":function(Lt,j,e){"use strict";e.d(j,"a",function(){return z}),e.d(j,"b",function(){return O});var T=e("MNsG"),re=e("Yr1X"),J=function(){var H=function(u,y){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,f){_.__proto__=f}||function(_,f){for(var v in f)f.hasOwnProperty(v)&&(_[v]=f[v])},H(u,y)};return function(x,u){H(x,u);function y(){this.constructor=x}x.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),I=T.e?1.5:1.35,U=8,z=function(){function H(x){this.zoomLevel=x.zoomLevel,this.fontFamily=String(x.fontFamily),this.fontWeight=String(x.fontWeight),this.fontSize=x.fontSize,this.fontFeatureSettings=x.fontFeatureSettings,this.lineHeight=x.lineHeight|0,this.letterSpacing=x.letterSpacing}return H.createFromValidatedSettings=function(x,u,y){var _=x.get(33),f=x.get(37),v=x.get(36),w=x.get(35),p=x.get(49),c=x.get(46);return H._create(_,f,v,w,p,c,u,y)},H._create=function(x,u,y,_,f,v,w,p){f===0?f=Math.round(I*y):f<U&&(f=U);var c=1+(p?0:re.a.getZoomLevel()*.1);return y*=c,f*=c,new H({zoomLevel:w,fontFamily:x,fontWeight:u,fontSize:y,fontFeatureSettings:_,lineHeight:f,letterSpacing:v})},H.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing},H.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},H}(),O=function(H){J(x,H);function x(u,y){var _=H.call(this,u)||this;return _.isTrusted=y,_.isMonospace=u.isMonospace,_.typicalHalfwidthCharacterWidth=u.typicalHalfwidthCharacterWidth,_.typicalFullwidthCharacterWidth=u.typicalFullwidthCharacterWidth,_.canUseHalfwidthRightwardsArrow=u.canUseHalfwidthRightwardsArrow,_.spaceWidth=u.spaceWidth,_.middotWidth=u.middotWidth,_.maxDigitWidth=u.maxDigitWidth,_}return x.prototype.equals=function(u){return this.fontFamily===u.fontFamily&&this.fontWeight===u.fontWeight&&this.fontSize===u.fontSize&&this.fontFeatureSettings===u.fontFeatureSettings&&this.lineHeight===u.lineHeight&&this.letterSpacing===u.letterSpacing&&this.typicalHalfwidthCharacterWidth===u.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===u.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===u.canUseHalfwidthRightwardsArrow&&this.spaceWidth===u.spaceWidth&&this.middotWidth===u.middotWidth&&this.maxDigitWidth===u.maxDigitWidth},x}(z)},"+7oY":function(Lt,j,e){"use strict";e.d(j,"a",function(){return I}),e.d(j,"i",function(){return U}),e.d(j,"b",function(){return z}),e.d(j,"h",function(){return O}),e.d(j,"d",function(){return x}),e.d(j,"c",function(){return u}),e.d(j,"e",function(){return y}),e.d(j,"g",function(){return _}),e.d(j,"f",function(){return f});var T=e("ic2d"),re=e("Cg/j"),J=e("CRAX"),I=Object(re.c)("configurationService");function U(v,w){var p=Object.create(null);for(var c in v)z(p,c,v[c],w);return p}function z(v,w,p,c){for(var s=w.split("."),l=s.pop(),d=v,m=0;m<s.length;m++){var E=s[m],L=d[E];switch(typeof L){case"undefined":L=d[E]=Object.create(null);break;case"object":break;default:c("Ignoring "+w+" as "+s.slice(0,m+1).join(".")+" is "+JSON.stringify(L));return}d=L}typeof d=="object"?d[l]=p:c("Ignoring "+w+" as "+s.join(".")+" is "+JSON.stringify(d))}function O(v,w){var p=w.split(".");H(v,p)}function H(v,w){var p=w.shift();if(w.length===0){delete v[p];return}if(Object.keys(v).indexOf(p)!==-1){var c=v[p];typeof c=="object"&&!Array.isArray(c)&&(H(c,w),Object.keys(c).length===0&&delete v[p])}}function x(v,w,p){function c(d,m){for(var E=d,L=0,A=m;L<A.length;L++){var k=A[L];if(typeof E!="object"||E===null)return;E=E[k]}return E}var s=w.split("."),l=c(v,s);return typeof l=="undefined"?p:l}function u(){var v=T.a.as(J.a.Configuration).getConfigurationProperties();return Object.keys(v)}function y(){var v=Object.create(null),w=T.a.as(J.a.Configuration).getConfigurationProperties();for(var p in w){var c=w[p].default;z(v,p,c,function(s){return console.error("Conflict in default settings: "+s)})}return v}function _(v){return v.substring(1,v.length-1)}function f(v,w,p){var c=v.inspect(w),s=v.inspect(p);return typeof c.userValue!="undefined"||typeof c.workspaceValue!="undefined"||typeof c.workspaceFolderValue!="undefined"?c.value:typeof s.userValue!="undefined"||typeof s.workspaceValue!="undefined"||typeof s.workspaceFolderValue!="undefined"?s.value:c.defaultValue}},"+Fos":function(Lt,j,e){"use strict";e.d(j,"a",function(){return z});var T=e("Ll0s"),re=e("cGHE"),J=e("aokT"),I=e("N0LK"),U=function(){function O(H,x,u){this.lineNumber=H,this.column=x,this.leftoverVisibleColumns=u}return O}(),z=function(){function O(){}return O.leftPosition=function(H,x,u){return u>H.getLineMinColumn(x)?u=u-I.G(H.getLineContent(x),u-1):x>1&&(x=x-1,u=H.getLineMaxColumn(x)),new re.a(x,u)},O.left=function(H,x,u,y){var _=O.leftPosition(x,u,y);return new U(_.lineNumber,_.column,0)},O.moveLeft=function(H,x,u,y,_){var f,v;if(u.hasSelection()&&!y)f=u.selection.startLineNumber,v=u.selection.startColumn;else{var w=O.left(H,x,u.position.lineNumber,u.position.column-(_-1));f=w.lineNumber,v=w.column}return u.move(y,f,v,0)},O.rightPosition=function(H,x,u){return u<H.getLineMaxColumn(x)?u=u+I.E(H.getLineContent(x),u-1):x<H.getLineCount()&&(x=x+1,u=H.getLineMinColumn(x)),new re.a(x,u)},O.right=function(H,x,u,y){var _=O.rightPosition(x,u,y);return new U(_.lineNumber,_.column,0)},O.moveRight=function(H,x,u,y,_){var f,v;if(u.hasSelection()&&!y)f=u.selection.endLineNumber,v=u.selection.endColumn;else{var w=O.right(H,x,u.position.lineNumber,u.position.column+(_-1));f=w.lineNumber,v=w.column}return u.move(y,f,v,0)},O.down=function(H,x,u,y,_,f,v){var w=T.a.visibleColumnFromColumn(x.getLineContent(u),y,H.tabSize)+_;u=u+f;var p=x.getLineCount();return u>p?(u=p,v?y=x.getLineMaxColumn(u):y=Math.min(x.getLineMaxColumn(u),y)):y=T.a.columnFromVisibleColumn2(H,x,u,w),_=w-T.a.visibleColumnFromColumn(x.getLineContent(u),y,H.tabSize),new U(u,y,_)},O.moveDown=function(H,x,u,y,_){var f,v;u.hasSelection()&&!y?(f=u.selection.endLineNumber,v=u.selection.endColumn):(f=u.position.lineNumber,v=u.position.column);var w=O.down(H,x,f,v,u.leftoverVisibleColumns,_,!0);return u.move(y,w.lineNumber,w.column,w.leftoverVisibleColumns)},O.translateDown=function(H,x,u){var y=u.selection,_=O.down(H,x,y.selectionStartLineNumber,y.selectionStartColumn,u.selectionStartLeftoverVisibleColumns,1,!1),f=O.down(H,x,y.positionLineNumber,y.positionColumn,u.leftoverVisibleColumns,1,!1);return new T.f(new J.a(_.lineNumber,_.column,_.lineNumber,_.column),_.leftoverVisibleColumns,new re.a(f.lineNumber,f.column),f.leftoverVisibleColumns)},O.up=function(H,x,u,y,_,f,v){var w=T.a.visibleColumnFromColumn(x.getLineContent(u),y,H.tabSize)+_;return u=u-f,u<1?(u=1,v?y=x.getLineMinColumn(u):y=Math.min(x.getLineMaxColumn(u),y)):y=T.a.columnFromVisibleColumn2(H,x,u,w),_=w-T.a.visibleColumnFromColumn(x.getLineContent(u),y,H.tabSize),new U(u,y,_)},O.moveUp=function(H,x,u,y,_){var f,v;u.hasSelection()&&!y?(f=u.selection.startLineNumber,v=u.selection.startColumn):(f=u.position.lineNumber,v=u.position.column);var w=O.up(H,x,f,v,u.leftoverVisibleColumns,_,!0);return u.move(y,w.lineNumber,w.column,w.leftoverVisibleColumns)},O.translateUp=function(H,x,u){var y=u.selection,_=O.up(H,x,y.selectionStartLineNumber,y.selectionStartColumn,u.selectionStartLeftoverVisibleColumns,1,!1),f=O.up(H,x,y.positionLineNumber,y.positionColumn,u.leftoverVisibleColumns,1,!1);return new T.f(new J.a(_.lineNumber,_.column,_.lineNumber,_.column),_.leftoverVisibleColumns,new re.a(f.lineNumber,f.column),f.leftoverVisibleColumns)},O.moveToBeginningOfLine=function(H,x,u,y){var _=u.position.lineNumber,f=x.getLineMinColumn(_),v=x.getLineFirstNonWhitespaceColumn(_)||f,w,p=u.position.column;return p===v?w=f:w=v,u.move(y,_,w,0)},O.moveToEndOfLine=function(H,x,u,y){var _=u.position.lineNumber,f=x.getLineMaxColumn(_);return u.move(y,_,f,0)},O.moveToBeginningOfBuffer=function(H,x,u,y){return u.move(y,1,1,0)},O.moveToEndOfBuffer=function(H,x,u,y){var _=x.getLineCount(),f=x.getLineMaxColumn(_);return u.move(y,_,f,0)},O}()},"+a1H":function(Lt,j,e){"use strict";e.r(j);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(158).then(e.bind(null,"O3xE"))}})},"+hIS":function(Lt,j,e){"use strict";e.d(j,"a",function(){return z});var T=typeof monaco=="undefined"?self.monaco:monaco,re={},J={},I=function(){function O(H){var x=this;this._languageId=H,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(u,y){x._lazyLoadPromiseResolve=u,x._lazyLoadPromiseReject=y})}return O.getOrCreate=function(H){return J[H]||(J[H]=new O(H)),J[H]},O.prototype.whenLoaded=function(){return this._lazyLoadPromise},O.prototype.load=function(){var H=this;return this._loadingTriggered||(this._loadingTriggered=!0,re[this._languageId].loader().then(function(x){return H._lazyLoadPromiseResolve(x)},function(x){return H._lazyLoadPromiseReject(x)})),this._lazyLoadPromise},O}();function U(O){return I.getOrCreate(O).load()}function z(O){var H=O.id;re[H]=O,T.languages.register(O);var x=I.getOrCreate(H);T.languages.setMonarchTokensProvider(H,x.whenLoaded().then(function(u){return u.language})),T.languages.onLanguage(H,function(){x.load().then(function(u){T.languages.setLanguageConfiguration(H,u.conf)})})}},"/RFl":function(Lt,j,e){"use strict";e.r(j),e.d(j,"DragAndDropController",function(){return _});var T=e("OhnE"),re=e("pmY6"),J=e("MNsG"),I=e("sswD"),U=e("cGHE"),z=e("aokT"),O=e("gCVg"),H=function(){function f(v,w,p){this.selection=v,this.targetPosition=w,this.copy=p,this.targetSelection=null}return f.prototype.getEditOperations=function(v,w){var p=v.getValueInRange(this.selection);if(this.copy||w.addEditOperation(this.selection,null),w.addEditOperation(new z.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),p),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 O.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 O.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 O.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 O.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 O.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,w){return this.targetSelection},f}(),x=e("tX9W"),u=function(){var f=function(w,p){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var l in s)s.hasOwnProperty(l)&&(c[l]=s[l])},f(w,p)};return function(v,w){f(v,w);function p(){this.constructor=v}v.prototype=w===null?Object.create(w):(p.prototype=w.prototype,new p)}}();function y(f){return J.e?f.altKey:f.ctrlKey}var _=function(f){u(v,f);function v(w){var p=f.call(this)||this;return p._editor=w,p._register(p._editor.onMouseDown(function(c){return p._onEditorMouseDown(c)})),p._register(p._editor.onMouseUp(function(c){return p._onEditorMouseUp(c)})),p._register(p._editor.onMouseDrag(function(c){return p._onEditorMouseDrag(c)})),p._register(p._editor.onMouseDrop(function(c){return p._onEditorMouseDrop(c)})),p._register(p._editor.onKeyDown(function(c){return p.onEditorKeyDown(c)})),p._register(p._editor.onKeyUp(function(c){return p.onEditorKeyUp(c)})),p._register(p._editor.onDidBlurEditorWidget(function(){return p.onEditorBlur()})),p._dndDecorationIds=[],p._mouseDown=!1,p._modifierPressed=!1,p._dragSelection=null,p}return v.prototype.onEditorBlur=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1},v.prototype.onEditorKeyDown=function(w){if(!this._editor.getOption(24))return;y(w)&&(this._modifierPressed=!0),this._mouseDown&&y(w)&&this._editor.updateOptions({mouseStyle:"copy"})},v.prototype.onEditorKeyUp=function(w){if(!this._editor.getOption(24))return;y(w)&&(this._modifierPressed=!1),this._mouseDown&&w.keyCode===v.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"})},v.prototype._onEditorMouseDown=function(w){this._mouseDown=!0},v.prototype._onEditorMouseUp=function(w){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})},v.prototype._onEditorMouseDrag=function(w){var p=w.target;if(this._dragSelection===null){var c=this._editor.getSelections()||[],s=c.filter(function(l){return p.position&&l.containsPosition(p.position)});if(s.length===1)this._dragSelection=s[0];else return}y(w.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),p.position&&(this._dragSelection.containsPosition(p.position)?this._removeDecoration():this.showAt(p.position))},v.prototype._onEditorMouseDrop=function(w){if(w.target&&(this._hitContent(w.target)||this._hitMargin(w.target))&&w.target.position){var p=new U.a(w.target.position.lineNumber,w.target.position.column);if(this._dragSelection===null){var c=null;if(w.event.shiftKey){var s=this._editor.getSelection();if(s){var l=s.selectionStartLineNumber,d=s.selectionStartColumn;c=[new O.a(l,d,p.lineNumber,p.column)]}}else c=(this._editor.getSelections()||[]).map(function(m){return m.containsPosition(p)?new O.a(p.lineNumber,p.column,p.lineNumber,p.column):m});this._editor.setSelections(c||[],"mouse")}else(!this._dragSelection.containsPosition(p)||(y(w.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(p)||this._dragSelection.getStartPosition().equals(p)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(v.ID,new H(this._dragSelection,p,y(w.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1},v.prototype.showAt=function(w){var p=[{range:new z.a(w.lineNumber,w.column,w.lineNumber,w.column),options:v._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,p),this._editor.revealPosition(w,1)},v.prototype._removeDecoration=function(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])},v.prototype._hitContent=function(w){return w.type===6||w.type===7},v.prototype._hitMargin=function(w){return w.type===2||w.type===3||w.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=x.a.register({className:"dnd-target"}),v}(re.a);Object(I.h)(_.ID,_)},"/UlZ":function(Lt,j,e){"use strict";e.d(j,"f",function(){return z}),e.d(j,"a",function(){return O}),e.d(j,"h",function(){return H}),e.d(j,"g",function(){return E}),e.d(j,"d",function(){return $}),e.d(j,"j",function(){return q}),e.d(j,"b",function(){return ve}),e.d(j,"c",function(){return Q}),e.d(j,"i",function(){return C}),e.d(j,"e",function(){return se});var T=e("3/fG"),re=e("MNsG"),J=e("0JNc"),I=function(){var oe=function(De,Se){return oe=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])},oe(De,Se)};return function(be,De){oe(be,De);function Se(){this.constructor=be}be.prototype=De===null?Object.create(De):(Se.prototype=De.prototype,new Se)}}(),U=function(){return U=Object.assign||function(oe){for(var be,De=1,Se=arguments.length;De<Se;De++){be=arguments[De];for(var Ve in be)Object.prototype.hasOwnProperty.call(be,Ve)&&(oe[Ve]=be[Ve])}return oe},U.apply(this,arguments)},z=8,O=function(){function oe(be){this._values=be}return oe.prototype.hasChanged=function(be){return this._values[be]},oe}(),H=function(){function oe(){this._values=[]}return oe.prototype._read=function(be){return this._values[be]},oe.prototype.get=function(be){return this._values[be]},oe.prototype._write=function(be,De){this._values[be]=De},oe}(),x=function(){function oe(be,De,Se,Ve){this.id=be,this.name=De,this.defaultValue=Se,this.schema=Ve}return oe.prototype.compute=function(be,De,Se){return Se},oe}(),u=function(){function oe(be,De){De===void 0&&(De=null),this.schema=void 0,this.id=be,this.name="_never_",this.defaultValue=void 0,this.deps=De}return oe.prototype.validate=function(be){return this.defaultValue},oe}(),y=function(){function oe(be,De,Se,Ve){this.id=be,this.name=De,this.defaultValue=Se,this.schema=Ve}return oe.prototype.validate=function(be){return typeof be=="undefined"?this.defaultValue:be},oe.prototype.compute=function(be,De,Se){return Se},oe}(),_=function(oe){I(be,oe);function be(De,Se,Ve,Qe){Qe===void 0&&(Qe=void 0);var it=this;return typeof Qe!="undefined"&&(Qe.type="boolean",Qe.default=Ve),it=oe.call(this,De,Se,Ve,Qe)||this,it}return be.boolean=function(De,Se){return typeof De=="undefined"?Se:De==="false"?!1:Boolean(De)},be.prototype.validate=function(De){return be.boolean(De,this.defaultValue)},be}(y),f=function(oe){I(be,oe);function be(De,Se,Ve,Qe,it,pt){pt===void 0&&(pt=void 0);var Rt=this;return typeof pt!="undefined"&&(pt.type="integer",pt.default=Ve,pt.minimum=Qe,pt.maximum=it),Rt=oe.call(this,De,Se,Ve,pt)||this,Rt.minimum=Qe,Rt.maximum=it,Rt}return be.clampedInt=function(De,Se,Ve,Qe){var it;return typeof De=="undefined"?it=Se:(it=parseInt(De,10),isNaN(it)&&(it=Se)),it=Math.max(Ve,it),it=Math.min(Qe,it),it|0},be.prototype.validate=function(De){return be.clampedInt(De,this.defaultValue,this.minimum,this.maximum)},be}(y),v=function(oe){I(be,oe);function be(De,Se,Ve,Qe,it){var pt=this;return typeof it!="undefined"&&(it.type="number",it.default=Ve),pt=oe.call(this,De,Se,Ve,it)||this,pt.validationFn=Qe,pt}return be.clamp=function(De,Se,Ve){return De<Se?Se:De>Ve?Ve:De},be.float=function(De,Se){if(typeof De=="number")return De;if(typeof De=="undefined")return Se;var Ve=parseFloat(De);return isNaN(Ve)?Se:Ve},be.prototype.validate=function(De){return this.validationFn(be.float(De,this.defaultValue))},be}(y),w=function(oe){I(be,oe);function be(De,Se,Ve,Qe){Qe===void 0&&(Qe=void 0);var it=this;return typeof Qe!="undefined"&&(Qe.type="string",Qe.default=Ve),it=oe.call(this,De,Se,Ve,Qe)||this,it}return be.string=function(De,Se){return typeof De!="string"?Se:De},be.prototype.validate=function(De){return be.string(De,this.defaultValue)},be}(y),p=function(oe){I(be,oe);function be(De,Se,Ve,Qe,it){it===void 0&&(it=void 0);var pt=this;return typeof it!="undefined"&&(it.type="string",it.enum=Qe,it.default=Ve),pt=oe.call(this,De,Se,Ve,it)||this,pt._allowedValues=Qe,pt}return be.stringSet=function(De,Se,Ve){return typeof De!="string"||Ve.indexOf(De)===-1?Se:De},be.prototype.validate=function(De){return be.stringSet(De,this.defaultValue,this._allowedValues)},be}(y),c=function(oe){I(be,oe);function be(De,Se,Ve,Qe,it,pt,Rt){Rt===void 0&&(Rt=void 0);var Mt=this;return typeof Rt!="undefined"&&(Rt.type="string",Rt.enum=it,Rt.default=Qe),Mt=oe.call(this,De,Se,Ve,Rt)||this,Mt._allowedValues=it,Mt._convert=pt,Mt}return be.prototype.validate=function(De){return typeof De!="string"?this.defaultValue:this._allowedValues.indexOf(De)===-1?this.defaultValue:this._convert(De)},be}(x);function s(oe){switch(oe){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var l=function(oe){I(be,oe);function be(){return oe.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 be.prototype.validate=function(De){switch(De){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},be.prototype.compute=function(De,Se,Ve){return Ve===0?De.accessibilitySupport:Ve},be}(x),d=function(oe){I(be,oe);function be(){var De=this,Se={insertSpace:!0};return De=oe.call(this,13,"comments",Se,{"editor.comments.insertSpace":{type:"boolean",default:Se.insertSpace,description:T.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{insertSpace:_.boolean(Se.insertSpace,this.defaultValue.insertSpace)}},be}(x);function m(oe){switch(oe){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var E;(function(oe){oe[oe.Line=1]="Line",oe[oe.Block=2]="Block",oe[oe.Underline=3]="Underline",oe[oe.LineThin=4]="LineThin",oe[oe.BlockOutline=5]="BlockOutline",oe[oe.UnderlineThin=6]="UnderlineThin"})(E||(E={}));function L(oe){switch(oe){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 A=function(oe){I(be,oe);function be(){return oe.call(this,104,[55,26])||this}return be.prototype.compute=function(De,Se,Ve){var Qe="monaco-editor";return Se.get(26)&&(Qe+=" "+Se.get(26)),De.extraEditorClassName&&(Qe+=" "+De.extraEditorClassName),Se.get(55)==="default"?Qe+=" mouse-default":Se.get(55)==="copy"&&(Qe+=" mouse-copy"),Se.get(85)&&(Qe+=" showUnused"),Qe},be}(u),k=function(oe){I(be,oe);function be(){return oe.call(this,25,"emptySelectionClipboard",!0,{description:T.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return be.prototype.compute=function(De,Se,Ve){return Ve&&De.emptySelectionClipboard},be}(_),R=function(oe){I(be,oe);function be(){var De=this,Se={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return De=oe.call(this,28,"find",Se,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:Se.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:Se.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:Se.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:Se.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,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{seedSearchStringFromSelection:_.boolean(Se.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof De.autoFindInSelection=="boolean"?De.autoFindInSelection?"always":"never":p.stringSet(Se.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:_.boolean(Se.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:_.boolean(Se.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},be}(x),$=function(oe){I(be,oe);function be(){return oe.call(this,35,"fontLigatures",be.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 be.prototype.validate=function(De){return typeof De=="undefined"?this.defaultValue:typeof De=="string"?De==="false"?be.OFF:De==="true"?be.ON:De:Boolean(De)?be.ON:be.OFF},be.OFF='"liga" off, "calt" off',be.ON='"liga" on, "calt" on',be}(x),ie=function(oe){I(be,oe);function be(){return oe.call(this,34)||this}return be.prototype.compute=function(De,Se,Ve){return De.fontInfo},be}(u),W=function(oe){I(be,oe);function be(){return oe.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 be.prototype.validate=function(De){var Se=v.float(De,this.defaultValue);return Se===0?ve.fontSize:v.clamp(Se,6,100)},be.prototype.compute=function(De,Se,Ve){return De.fontInfo.fontSize},be}(y),B=function(oe){I(be,oe);function be(){var De=this,Se={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:Se.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 De=oe.call(this,41,"gotoLocation",Se,{"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":U({description:T.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.multipleTypeDefinitions":U({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":U({description:T.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.multipleImplementations":U({description:T.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.multipleReferences":U({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:Se.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:Se.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:Se.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:Se.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:Se.alternativeReferenceCommand,description:T.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,De}return be.prototype.validate=function(De){var Se,Ve,Qe,it,pt;if(typeof De!="object")return this.defaultValue;var Rt=De;return{multiple:p.stringSet(Rt.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(Se=Rt.multipleDefinitions)!==null&&Se!==void 0?Se:p.stringSet(Rt.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(Ve=Rt.multipleTypeDefinitions)!==null&&Ve!==void 0?Ve:p.stringSet(Rt.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Qe=Rt.multipleDeclarations)!==null&&Qe!==void 0?Qe:p.stringSet(Rt.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(it=Rt.multipleImplementations)!==null&&it!==void 0?it:p.stringSet(Rt.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(pt=Rt.multipleReferences)!==null&&pt!==void 0?pt:p.stringSet(Rt.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:w.string(Rt.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:w.string(Rt.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:w.string(Rt.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:w.string(Rt.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:w.string(Rt.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},be}(x),le=function(oe){I(be,oe);function be(){var De=this,Se={enabled:!0,delay:300,sticky:!0};return De=oe.call(this,44,"hover",Se,{"editor.hover.enabled":{type:"boolean",default:Se.enabled,description:T.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Se.delay,description:T.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Se.sticky,description:T.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{enabled:_.boolean(Se.enabled,this.defaultValue.enabled),delay:f.clampedInt(Se.delay,this.defaultValue.delay,0,1e4),sticky:_.boolean(Se.sticky,this.defaultValue.sticky)}},be}(x),Ce=function(oe){I(be,oe);function be(){return oe.call(this,107,[40,48,30,54,78,50])||this}return be.prototype.compute=function(De,Se,Ve){return be.computeLayout(Se,{outerWidth:De.outerWidth,outerHeight:De.outerHeight,lineHeight:De.fontInfo.lineHeight,lineNumbersDigitCount:De.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:De.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:De.fontInfo.maxDigitWidth,pixelRatio:De.pixelRatio})},be.computeLayout=function(De,Se){var Ve=Se.outerWidth|0,Qe=Se.outerHeight|0,it=Se.lineHeight|0,pt=Se.lineNumbersDigitCount|0,Rt=Se.typicalHalfwidthCharacterWidth,Mt=Se.maxDigitWidth,zt=Se.pixelRatio,uo=De.get(40),ao=De.get(50).renderType!==0,so=De.get(51)|0,Pt=De.get(54),ft=Pt.enabled,vt=Pt.side,At=Pt.renderCharacters,at=zt>=2?Math.round(Pt.scale*2):Pt.scale,tt=Pt.maxColumn|0,ut=De.get(78),Ct=ut.verticalScrollbarSize|0,gt=ut.verticalHasArrows,bt=ut.arrowSize|0,Gt=ut.horizontalScrollbarSize|0,Nt=De.get(48),Et=De.get(30),Je;if(typeof Nt=="string"&&/^\d+(\.\d+)?ch$/.test(Nt)){var $e=parseFloat(Nt.substr(0,Nt.length-2));Je=f.clampedInt($e*Rt,0,0,1e3)}else Je=f.clampedInt(Nt,0,0,1e3);Et&&(Je+=16);var ze=0;if(ao){var Ke=Math.max(pt,so);ze=Math.round(Ke*Mt)}var fe=0;uo&&(fe=it);var G=0,te=G+fe,Y=te+ze,de=Y+Je,ke=Ve-fe-ze-Je,lt,Tt,Jt,eo;if(!ft)Tt=0,Jt=0,lt=0,eo=ke;else{var po=at/zt;lt=At?1:2,Jt=Math.max(0,Math.floor((ke-Ct-2)*po/(Rt+po)))+z;var co=Jt/po;co>tt&&(Jt=Math.floor(tt*po)),eo=ke-Jt,vt==="left"?(Tt=0,G+=Jt,te+=Jt,Y+=Jt,de+=Jt):Tt=Ve-Jt-Ct}var Eo=Math.max(1,Math.floor((eo-Ct-2)/Rt)),Oo=gt?bt:0;return{width:Ve,height:Qe,glyphMarginLeft:G,glyphMarginWidth:fe,lineNumbersLeft:te,lineNumbersWidth:ze,decorationsLeft:Y,decorationsWidth:Je,contentLeft:de,contentWidth:eo,renderMinimap:lt,minimapLeft:Tt,minimapWidth:Jt,viewportColumn:Eo,verticalScrollbarWidth:Ct,horizontalScrollbarHeight:Gt,overviewRuler:{top:Oo,width:Ct,height:Qe-2*Oo,right:0}}},be}(u),Me=function(oe){I(be,oe);function be(){var De=this,Se={enabled:!0};return De=oe.call(this,47,"lightbulb",Se,{"editor.lightbulb.enabled":{type:"boolean",default:Se.enabled,description:T.a("codeActions","Enables the code action lightbulb in the editor.")}})||this,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{enabled:_.boolean(Se.enabled,this.defaultValue.enabled)}},be}(x),Te=function(oe){I(be,oe);function be(){return oe.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 be.prototype.compute=function(De,Se,Ve){return De.fontInfo.lineHeight},be}(f),Fe=function(oe){I(be,oe);function be(){var De=this,Se={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return De=oe.call(this,54,"minimap",Se,{"editor.minimap.enabled":{type:"boolean",default:Se.enabled,description:T.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Se.side,description:T.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Se.showSlider,description:T.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:Se.scale,minimum:1,maximum:3,description:T.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:Se.renderCharacters,description:T.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Se.maxColumn,description:T.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{enabled:_.boolean(Se.enabled,this.defaultValue.enabled),side:p.stringSet(Se.side,this.defaultValue.side,["right","left"]),showSlider:p.stringSet(Se.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:_.boolean(Se.renderCharacters,this.defaultValue.renderCharacters),scale:f.clampedInt(Se.scale,1,1,3),maxColumn:f.clampedInt(Se.maxColumn,this.defaultValue.maxColumn,1,1e4)}},be}(x);function Ue(oe){return oe==="ctrlCmd"?re.e?"metaKey":"ctrlKey":"altKey"}var Pe=function(oe){I(be,oe);function be(){var De=this,Se={enabled:!0,cycle:!1};return De=oe.call(this,64,"parameterHints",Se,{"editor.parameterHints.enabled":{type:"boolean",default:Se.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:Se.cycle,description:T.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{enabled:_.boolean(Se.enabled,this.defaultValue.enabled),cycle:_.boolean(Se.cycle,this.defaultValue.cycle)}},be}(x),ne=function(oe){I(be,oe);function be(){return oe.call(this,105)||this}return be.prototype.compute=function(De,Se,Ve){return De.pixelRatio},be}(u),ee=function(oe){I(be,oe);function be(){var De=this,Se={other:!0,comments:!1,strings:!1};return De=oe.call(this,66,"quickSuggestions",Se,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:Se.strings,description:T.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:Se.comments,description:T.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:Se.other,description:T.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:Se,description:T.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,De.defaultValue=Se,De}return be.prototype.validate=function(De){if(typeof De=="boolean")return De;if(typeof De=="object"){var Se=De,Ve={other:_.boolean(Se.other,this.defaultValue.other),comments:_.boolean(Se.comments,this.defaultValue.comments),strings:_.boolean(Se.strings,this.defaultValue.strings)};return Ve.other&&Ve.comments&&Ve.strings?!0:!Ve.other&&!Ve.comments&&!Ve.strings?!1:Ve}return this.defaultValue},be}(x),ae=function(oe){I(be,oe);function be(){return oe.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 be.prototype.validate=function(De){var Se=this.defaultValue.renderType,Ve=this.defaultValue.renderFn;return typeof De!="undefined"&&(typeof De=="function"?(Se=4,Ve=De):De==="interval"?Se=3:De==="relative"?Se=2:De==="on"?Se=1:Se=0),{renderType:Se,renderFn:Ve}},be}(x);function q(oe){var be=oe.get(73);return be==="editable"?oe.get(68):!(be==="on")}var ue=function(oe){I(be,oe);function be(){var De=this,Se=[];return De=oe.call(this,77,"rulers",Se,{type:"array",items:{type:"number"},default:Se,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,De}return be.prototype.validate=function(De){if(Array.isArray(De)){for(var Se=[],Ve=0,Qe=De;Ve<Qe.length;Ve++){var it=Qe[Ve];Se.push(f.clampedInt(it,0,0,1e4))}return Se.sort(function(pt,Rt){return pt-Rt}),Se}return this.defaultValue},be}(y);function X(oe,be){if(typeof oe!="string")return be;switch(oe){case"hidden":return 2;case"visible":return 3;default:return 1}}var he=function(oe){I(be,oe);function be(){return oe.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 be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De,Ve=f.clampedInt(Se.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),Qe=f.clampedInt(Se.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:f.clampedInt(Se.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:X(Se.vertical,this.defaultValue.vertical),horizontal:X(Se.horizontal,this.defaultValue.horizontal),useShadows:_.boolean(Se.useShadows,this.defaultValue.useShadows),verticalHasArrows:_.boolean(Se.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:_.boolean(Se.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:_.boolean(Se.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:_.boolean(Se.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:Ve,horizontalSliderSize:f.clampedInt(Se.horizontalSliderSize,Ve,0,1e3),verticalScrollbarSize:Qe,verticalSliderSize:f.clampedInt(Se.verticalSliderSize,Qe,0,1e3)}},be}(x),je=function(oe){I(be,oe);function be(){var De=this,Se={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 De=oe.call(this,89,"suggest",Se,{"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:Se.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:Se.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:Se.filterGraceful,description:T.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:Se.localityBonus,description:T.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:Se.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:Se.snippetsPreventQuickSuggestions,description:T.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:Se.showIcons,description:T.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:Se.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,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{insertMode:p.stringSet(Se.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:_.boolean(Se.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:_.boolean(Se.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:_.boolean(Se.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:_.boolean(Se.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:_.boolean(Se.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:_.boolean(Se.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:f.clampedInt(Se.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:_.boolean(Se.showMethods,this.defaultValue.showMethods),showFunctions:_.boolean(Se.showFunctions,this.defaultValue.showFunctions),showConstructors:_.boolean(Se.showConstructors,this.defaultValue.showConstructors),showFields:_.boolean(Se.showFields,this.defaultValue.showFields),showVariables:_.boolean(Se.showVariables,this.defaultValue.showVariables),showClasses:_.boolean(Se.showClasses,this.defaultValue.showClasses),showStructs:_.boolean(Se.showStructs,this.defaultValue.showStructs),showInterfaces:_.boolean(Se.showInterfaces,this.defaultValue.showInterfaces),showModules:_.boolean(Se.showModules,this.defaultValue.showModules),showProperties:_.boolean(Se.showProperties,this.defaultValue.showProperties),showEvents:_.boolean(Se.showEvents,this.defaultValue.showEvents),showOperators:_.boolean(Se.showOperators,this.defaultValue.showOperators),showUnits:_.boolean(Se.showUnits,this.defaultValue.showUnits),showValues:_.boolean(Se.showValues,this.defaultValue.showValues),showConstants:_.boolean(Se.showConstants,this.defaultValue.showConstants),showEnums:_.boolean(Se.showEnums,this.defaultValue.showEnums),showEnumMembers:_.boolean(Se.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:_.boolean(Se.showKeywords,this.defaultValue.showKeywords),showWords:_.boolean(Se.showWords,this.defaultValue.showWords),showColors:_.boolean(Se.showColors,this.defaultValue.showColors),showFiles:_.boolean(Se.showFiles,this.defaultValue.showFiles),showReferences:_.boolean(Se.showReferences,this.defaultValue.showReferences),showFolders:_.boolean(Se.showFolders,this.defaultValue.showFolders),showTypeParameters:_.boolean(Se.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:_.boolean(Se.showSnippets,this.defaultValue.showSnippets),hideStatusBar:_.boolean(Se.hideStatusBar,this.defaultValue.hideStatusBar)}},be}(x),Xe=function(oe){I(be,oe);function be(){return oe.call(this,106,[68])||this}return be.prototype.compute=function(De,Se,Ve){var Qe=Se.get(68);return Qe?!0:De.tabFocusMode},be}(u);function me(oe){switch(oe){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}var ge=function(oe){I(be,oe);function be(){return oe.call(this,108,[97,100,101,107,2])||this}return be.prototype.compute=function(De,Se,Ve){var Qe=Se.get(97),it=Se.get(100),pt=Se.get(101),Rt=Se.get(107),Mt=Se.get(2),zt=null;return Mt===2?zt={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:pt&&De.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:De.isDominatedByLongLines,isWordWrapMinified:zt.isWordWrapMinified,isViewportWrapping:zt.isViewportWrapping,wrappingColumn:zt.wrappingColumn}},be}(u),we="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:we,fontWeight:"normal",fontSize:re.e?12:14,lineHeight:0,letterSpacing:0},Q={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},C=[];function F(oe){return C[oe.id]=oe,oe}var se={acceptSuggestionOnCommitCharacter:F(new _(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:F(new p(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:F(new l),accessibilityPageSize:F(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:F(new w(4,"ariaLabel",T.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:F(new p(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:F(new p(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:F(new p(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:F(new c(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:F(new _(9,"automaticLayout",!1)),autoSurround:F(new p(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:F(new _(11,"codeLens",!0,{description:T.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:F(new _(12,"colorDecorators",!0,{description:T.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),comments:F(new d),contextmenu:F(new _(14,"contextmenu",!0)),copyWithSyntaxHighlighting:F(new _(15,"copyWithSyntaxHighlighting",!0,{description:T.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:F(new c(16,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],m,{description:T.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:F(new _(17,"cursorSmoothCaretAnimation",!1,{description:T.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:F(new c(18,"cursorStyle",E.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],L,{description:T.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:F(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:F(new p(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:F(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:F(new _(22,"disableLayerHinting",!1)),disableMonospaceOptimizations:F(new _(23,"disableMonospaceOptimizations",!1)),dragAndDrop:F(new _(24,"dragAndDrop",!0,{description:T.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:F(new k),extraEditorClassName:F(new w(26,"extraEditorClassName","")),fastScrollSensitivity:F(new v(27,"fastScrollSensitivity",5,function(oe){return oe<=0?5:oe},{markdownDescription:T.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:F(new R),fixedOverflowWidgets:F(new _(29,"fixedOverflowWidgets",!1)),folding:F(new _(30,"folding",!0,{description:T.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:F(new p(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:F(new _(32,"foldingHighlight",!0,{description:T.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),fontFamily:F(new w(33,"fontFamily",ve.fontFamily,{description:T.a("fontFamily","Controls the font family.")})),fontInfo:F(new ie),fontLigatures2:F(new $),fontSize:F(new W),fontWeight:F(new w(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:F(new _(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:F(new _(39,"formatOnType",!1,{description:T.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:F(new _(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:F(new B),hideCursorInOverviewRuler:F(new _(42,"hideCursorInOverviewRuler",!1,{description:T.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:F(new _(43,"highlightActiveIndentGuide",!0,{description:T.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:F(new le),inDiffEditor:F(new _(45,"inDiffEditor",!1)),letterSpacing:F(new v(46,"letterSpacing",ve.letterSpacing,function(oe){return v.clamp(oe,-5,20)},{description:T.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:F(new Me),lineDecorationsWidth:F(new y(48,"lineDecorationsWidth",10)),lineHeight:F(new Te),lineNumbers:F(new ae),lineNumbersMinChars:F(new f(51,"lineNumbersMinChars",5,1,300)),links:F(new _(52,"links",!0,{description:T.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:F(new p(53,"matchBrackets","always",["always","near","never"],{description:T.a("matchBrackets","Highlight matching brackets.")})),minimap:F(new Fe),mouseStyle:F(new p(55,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:F(new v(56,"mouseWheelScrollSensitivity",1,function(oe){return oe===0?1:oe},{markdownDescription:T.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:F(new _(57,"mouseWheelZoom",!1,{markdownDescription:T.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:F(new _(58,"multiCursorMergeOverlapping",!0,{description:T.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:F(new c(59,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Ue,{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:F(new p(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:F(new _(61,"occurrencesHighlight",!0,{description:T.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:F(new _(62,"overviewRulerBorder",!0,{description:T.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:F(new f(63,"overviewRulerLanes",3,0,3)),parameterHints:F(new Pe),peekWidgetDefaultFocus:F(new p(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:F(new ee),quickSuggestionsDelay:F(new f(67,"quickSuggestionsDelay",10,0,1073741824,{description:T.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:F(new _(68,"readOnly",!1)),renderControlCharacters:F(new _(69,"renderControlCharacters",!1,{description:T.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:F(new _(70,"renderIndentGuides",!0,{description:T.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:F(new _(71,"renderFinalNewline",!0,{description:T.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:F(new p(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:F(new p(73,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:F(new p(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:F(new f(75,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:F(new _(76,"roundedSelection",!0,{description:T.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:F(new ue),scrollbar:F(new he),scrollBeyondLastColumn:F(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:F(new _(80,"scrollBeyondLastLine",!0,{description:T.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:F(new _(81,"selectionClipboard",!0,{description:T.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:re.d})),selectionHighlight:F(new _(82,"selectionHighlight",!0,{description:T.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:F(new _(83,"selectOnLineNumbers",!0)),showFoldingControls:F(new p(84,"showFoldingControls","mouseover",["always","mouseover"],{description:T.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:F(new _(85,"showUnused",!0,{description:T.a("showUnused","Controls fading out of unused code.")})),snippetSuggestions:F(new p(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:F(new _(87,"smoothScrolling",!1,{description:T.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:F(new f(88,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:F(new je),suggestFontSize:F(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:F(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:F(new _(92,"suggestOnTriggerCharacters",!0,{description:T.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:F(new p(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:F(new p(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:F(new _(95,"useTabStops",!0,{description:T.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:F(new w(96,"wordSeparators",J.b,{description:T.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:F(new p(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:F(new w(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:F(new w(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:F(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:F(new _(101,"wordWrapMinified",!0)),wrappingIndent:F(new c(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],me,{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:F(new p(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:F(new A),pixelRatio:F(new ne),tabFocusMode:F(new Xe),layoutInfo:F(new Ce),wrappingInfo:F(new ge)}},"/cAr":function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return e.e(167).then(e.bind(null,"8m5U"))}})},"/cxE":function(Lt,j,e){"use strict";e.d(j,"e",function(){return J}),e.d(j,"f",function(){return I}),e.d(j,"g",function(){return U}),e.d(j,"d",function(){return O}),e.d(j,"a",function(){return H}),e.d(j,"b",function(){return x}),e.d(j,"c",function(){return u});var T=function(){function y(){this.listeners=[],this.unexpectedErrorHandler=function(_){setTimeout(function(){throw _.stack?new Error(_.message+`
`+_.stack):_},0)}}return y.prototype.emit=function(_){this.listeners.forEach(function(f){f(_)})},y.prototype.onUnexpectedError=function(_){this.unexpectedErrorHandler(_),this.emit(_)},y.prototype.onUnexpectedExternalError=function(_){this.unexpectedErrorHandler(_)},y}(),re=new T;function J(y){O(y)||re.onUnexpectedError(y);return}function I(y){O(y)||re.onUnexpectedExternalError(y);return}function U(y){if(y instanceof Error){var _=y.name,f=y.message,v=y.stacktrace||y.stack;return{$isError:!0,name:_,message:f,stack:v}}return y}var z="Canceled";function O(y){return y instanceof Error&&y.name===z&&y.message===z}function H(){var y=new Error(z);return y.name=y.message,y}function x(y){return y?new Error("Illegal argument: "+y):new Error("Illegal argument")}function u(y){return y?new Error("Illegal state: "+y):new Error("Illegal state")}},"/kV6":function(Lt,j,e){"use strict";e.d(j,"b",function(){return z}),e.d(j,"a",function(){return O}),e.d(j,"f",function(){return H}),e.d(j,"e",function(){return u}),e.d(j,"d",function(){return _}),e.d(j,"c",function(){return f});var T=e("/cxE"),re=function(){function v(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return v.prototype.define=function(w,p){this._keyCodeToStr[w]=p,this._strToKeyCode[p.toLowerCase()]=w},v.prototype.keyCodeToStr=function(w){return this._keyCodeToStr[w]},v.prototype.strToKeyCode=function(w){return this._strToKeyCode[w.toLowerCase()]||0},v}(),J=new re,I=new re,U=new re;(function(){function v(w,p,c,s){c===void 0&&(c=p),s===void 0&&(s=c),J.define(w,p),I.define(w,c),U.define(w,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 w(d){return J.keyCodeToStr(d)}v.toString=w;function p(d){return J.strToKeyCode(d)}v.fromString=p;function c(d){return I.keyCodeToStr(d)}v.toUserSettingsUS=c;function s(d){return U.keyCodeToStr(d)}v.toUserSettingsGeneral=s;function l(d){return I.strToKeyCode(d)||U.strToKeyCode(d)}v.fromUserSettings=l})(z||(z={}));function O(v,w){var p=(w&65535)<<16>>>0;return(v|p)>>>0}function H(v,w){if(v===0)return null;var p=(v&65535)>>>0,c=(v&4294901760)>>>16;return c!==0?new y([x(p,w),x(c,w)]):new y([x(p,w)])}function x(v,w){var p=!!(v&2048),c=!!(v&256),s=w===2?c:p,l=!!(v&1024),d=!!(v&512),m=w===2?p:c,E=v&255;return new u(s,l,d,m,E)}var u=function(){function v(w,p,c,s,l){this.ctrlKey=w,this.shiftKey=p,this.altKey=c,this.metaKey=s,this.keyCode=l}return v.prototype.equals=function(w){return this.ctrlKey===w.ctrlKey&&this.shiftKey===w.shiftKey&&this.altKey===w.altKey&&this.metaKey===w.metaKey&&this.keyCode===w.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(w){if(w.length===0)throw Object(T.b)("parts");this.parts=w}return v.prototype.equals=function(w){if(w===null)return!1;if(this.parts.length!==w.parts.length)return!1;for(var p=0;p<this.parts.length;p++)if(!this.parts[p].equals(w.parts[p]))return!1;return!0},v}(),_=function(){function v(w,p,c,s,l,d){this.ctrlKey=w,this.shiftKey=p,this.altKey=c,this.metaKey=s,this.keyLabel=l,this.keyAriaLabel=d}return v}(),f=function(){function v(){}return v}()},"/oaI":function(Lt,j,e){},"0+8E":function(Lt,j,e){"use strict";e.d(j,"b",function(){return l}),e.d(j,"a",function(){return d});var T=e("i/Rh"),re=e("3/fG"),J=e("D3Dy"),I=e("EffR"),U=e("Md8J"),z=e("OBOq"),O=e("WqXY"),H=e("MI8n"),x=e("G300"),u=e("zrhQ"),y=e("qj0h"),_=e("JYp7"),f=function(){function m(E,L){E===void 0&&(E=[]),L===void 0&&(L=10),this._initialize(E),this._limit=L,this._onChange()}return m.prototype.add=function(E){this._history.delete(E),this._history.add(E),this._onChange()},m.prototype.next=function(){return this._navigator.next()},m.prototype.previous=function(){return this._navigator.previous()},m.prototype.current=function(){return this._navigator.current()},m.prototype.parent=function(){return null},m.prototype.first=function(){return this._navigator.first()},m.prototype.last=function(){return this._navigator.last()},m.prototype.has=function(E){return this._history.has(E)},m.prototype._onChange=function(){this._reduceToLimit();var E=this._elements;this._navigator=new _.b(E,0,E.length,E.length)},m.prototype._reduceToLimit=function(){var E=this._elements;E.length>this._limit&&this._initialize(E.slice(E.length-this._limit))},m.prototype._initialize=function(E){this._history=new Set;for(var L=0,A=E;L<A.length;L++){var k=A[L];this._history.add(k)}},Object.defineProperty(m.prototype,"_elements",{get:function(){var L=[];return this._history.forEach(function(A){return L.push(A)}),L},enumerable:!0,configurable:!0}),m}(),v=e("GJhM"),w=e("4y0V"),p=function(){var m=function(L,A){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,R){k.__proto__=R}||function(k,R){for(var $ in R)R.hasOwnProperty($)&&(k[$]=R[$])},m(L,A)};return function(E,L){m(E,L);function A(){this.constructor=E}E.prototype=L===null?Object.create(L):(A.prototype=L.prototype,new A)}}(),c=I.a,s={inputBackground:u.a.fromHex("#3C3C3C"),inputForeground:u.a.fromHex("#CCCCCC"),inputValidationInfoBorder:u.a.fromHex("#55AAFF"),inputValidationInfoBackground:u.a.fromHex("#063B49"),inputValidationWarningBorder:u.a.fromHex("#B89500"),inputValidationWarningBackground:u.a.fromHex("#352A05"),inputValidationErrorBorder:u.a.fromHex("#BE1100"),inputValidationErrorBackground:u.a.fromHex("#5A1D1D")},l=function(m){p(E,m);function E(L,A,k){var R=m.call(this)||this;R.state="idle",R.maxHeight=Number.POSITIVE_INFINITY,R._onDidChange=R._register(new H.a),R.onDidChange=R._onDidChange.event,R._onDidHeightChange=R._register(new H.a),R.onDidHeightChange=R._onDidHeightChange.event,R.contextViewProvider=A,R.options=k||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=I.q(L,c(".monaco-inputbox.idle"));var $=R.options.flexibleHeight?"textarea":"input",ie=I.q(R.element,c(".wrapper"));if(R.input=I.q(ie,c($+".input.empty")),R.input.setAttribute("autocorrect","off"),R.input.setAttribute("autocapitalize","off"),R.input.setAttribute("spellcheck","false"),R.onfocus(R.input,function(){return I.f(R.element,"synthetic-focus")}),R.onblur(R.input,function(){return I.P(R.element,"synthetic-focus")}),R.options.flexibleHeight){R.maxHeight=typeof R.options.flexibleMaxHeight=="number"?R.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,R.mirror=I.q(ie,c("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"),I.q(L,R.scrollableElement.getDomNode()),R._register(R.scrollableElement),R._register(R.scrollableElement.onScroll(function(B){return R.input.scrollTop=B.scrollTop}));var W=H.b.filter(Object(w.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){I.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 O.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(L){this.placeholder=L,this.input.setAttribute("placeholder",L),this.input.title=L},E.prototype.setAriaLabel=function(L){this.ariaLabel=L,L?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(A){this.input.value!==A&&(this.input.value=A,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"height",{get:function(){return typeof this.cachedHeight=="number"?this.cachedHeight:I.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(L){L===void 0&&(L=null),this.input.select(),L&&this.input.setSelectionRange(L.start,L.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 I.H(this.input)},set:function(A){if(this.options.flexibleHeight&&this.options.flexibleWidth){var k=0;if(this.mirror){var R=parseFloat(this.mirror.style.paddingLeft||"")||0,$=parseFloat(this.mirror.style.paddingRight||"")||0;k=R+$}this.input.style.width=A-k+"px"}else this.input.style.width=A+"px";this.mirror&&(this.mirror.style.width=A+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"paddingRight",{set:function(A){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+A+"px)":this.input.style.paddingRight=A+"px",this.mirror&&(this.mirror.style.paddingRight=A+"px")},enumerable:!0,configurable:!0}),E.prototype.updateScrollDimensions=function(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;var L=this.cachedContentHeight,A=this.cachedHeight,k=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:L,height:A}),this.scrollableElement.setScrollPosition({scrollTop:k})},E.prototype.showMessage=function(L,A){this.message=L,I.P(this.element,"idle"),I.P(this.element,"info"),I.P(this.element,"warning"),I.P(this.element,"error"),I.f(this.element,this.classForType(L.type));var k=this.stylesForType(this.message.type);this.element.style.border=k.border?"1px solid "+k.border:"";var R;L.type===3?R=re.a("alertErrorMessage","Error: {0}",L.content):L.type===2?R=re.a("alertWarningMessage","Warning: {0}",L.content):R=re.a("alertInfoMessage","Info: {0}",L.content),z.a(R),(this.hasFocus()||A)&&this._showMessage()},E.prototype.hideMessage=function(){this.message=null,I.P(this.element,"info"),I.P(this.element,"warning"),I.P(this.element,"error"),I.f(this.element,"idle"),this._hideMessage(),this.applyStyles()},E.prototype.validate=function(){var L=null;return this.validation&&(L=this.validation(this.value),L?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(L)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!L},E.prototype.stylesForType=function(L){switch(L){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(L){switch(L){case 1:return"info";case 2:return"warning";default:return"error"}},E.prototype._showMessage=function(){var L=this;if(!this.contextViewProvider||!this.message)return;var A,k=function(){return A.style.width=I.H(L.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return L.element},anchorAlignment:1,render:function($){if(!L.message)return null;A=I.q($,c(".monaco-inputbox-container")),k();var ie={inline:!0,className:"monaco-inputbox-message"},W=L.message.formatContent?Object(U.b)(L.message.content,ie):Object(U.c)(L.message.content,ie);I.f(W,L.classForType(L.message.type));var B=L.stylesForType(L.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:"",I.q(A,W),null},onHide:function(){L.state="closed"},layout:k}),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(),I.Y(this.input,"empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()},E.prototype.updateMirror=function(){if(!this.mirror)return;var L=this.value,A=L.charCodeAt(L.length-1),k=A===10?" ":"",R=L+k;R?this.mirror.textContent=L+k:this.mirror.innerHTML="&#160;",this.layout()},E.prototype.style=function(L){this.inputBackground=L.inputBackground,this.inputForeground=L.inputForeground,this.inputBorder=L.inputBorder,this.inputValidationInfoBackground=L.inputValidationInfoBackground,this.inputValidationInfoForeground=L.inputValidationInfoForeground,this.inputValidationInfoBorder=L.inputValidationInfoBorder,this.inputValidationWarningBackground=L.inputValidationWarningBackground,this.inputValidationWarningForeground=L.inputValidationWarningForeground,this.inputValidationWarningBorder=L.inputValidationWarningBorder,this.inputValidationErrorBackground=L.inputValidationErrorBackground,this.inputValidationErrorForeground=L.inputValidationErrorForeground,this.inputValidationErrorBorder=L.inputValidationErrorBorder,this.applyStyles()},E.prototype.applyStyles=function(){var L=this.inputBackground?this.inputBackground.toString():"",A=this.inputForeground?this.inputForeground.toString():"",k=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=L,this.element.style.color=A,this.input.style.backgroundColor=L,this.input.style.color=A,this.element.style.borderWidth=k?"1px":"",this.element.style.borderStyle=k?"solid":"",this.element.style.borderColor=k},E.prototype.layout=function(){if(!this.mirror)return;var L=this.cachedContentHeight;this.cachedContentHeight=I.G(this.mirror),L!==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(L){var A=this.inputElement,k=A.selectionStart,R=A.selectionEnd,$=A.value;k!==null&&R!==null&&(this.value=$.substr(0,k)+L+$.substr(R),A.setSelectionRange(k+1,k+1),this.layout())},E.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),m.prototype.dispose.call(this)},E}(x.a),d=function(m){p(E,m);function E(L,A,k){var R=m.call(this,L,A,k)||this;return R.history=new f(k.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 L=this.getNextValue();L&&(L=L===this.value?this.getNextValue():L),L&&(this.value=L,z.c(this.value))},E.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var L=this.getPreviousValue();L&&(L=L===this.value?this.getPreviousValue():L),L&&(this.value=L,z.c(this.value))},E.prototype.getCurrentValue=function(){var L=this.history.current();return L||(L=this.history.last(),this.history.next()),L},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(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("aokT"),re=function(){function J(){}return J.insert=function(I,U){return{range:new T.a(I.lineNumber,I.column,I.lineNumber,I.column),text:U,forceMoveMarkers:!0}},J.delete=function(I){return{range:I,text:null}},J.replace=function(I,U){return{range:I,text:U}},J.replaceMove=function(I,U){return{range:I,text:U,forceMoveMarkers:!0}},J}()},"03kh":function(Lt,j,e){"use strict";e.d(j,"a",function(){return f});var T=e("qj0h"),re=e("Vxe3"),J=e("nB0o"),I=e("nnTU"),U=e("T8No"),z=e("Cg/j"),O=e("sM1p"),H=e("t9D7"),x=e("R3nR"),u=function(){var v=function(p,c){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(p,c)};return function(w,p){v(w,p);function c(){this.constructor=w}w.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}(),y=function(v,w,p,c){var s=arguments.length,l=s<3?w:c===null?c=Object.getOwnPropertyDescriptor(w,p):c,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(v,w,p,c);else for(var m=v.length-1;m>=0;m--)(d=v[m])&&(l=(s<3?d(l):s>3?d(w,p,l):d(w,p))||l);return s>3&&l&&Object.defineProperty(w,p,l),l},_=function(v,w){return function(p,c){w(p,c,v)}},f=function(v){u(w,v);function w(p,c,s,l,d,m,E,L,A,k){var R=v.call(this,p,s.getRawOptions(),{},l,d,m,E,L,A,k)||this;return R._parentEditor=s,R._overwriteOptions=c,v.prototype.updateOptions.call(R,R._overwriteOptions),R._register(s.onDidChangeConfiguration(function($){return R._onParentConfigurationChanged($)})),R}return w.prototype.getParentEditor=function(){return this._parentEditor},w.prototype._onParentConfigurationChanged=function(p){v.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),v.prototype.updateOptions.call(this,this._overwriteOptions)},w.prototype.updateOptions=function(p){T.g(this._overwriteOptions,p,!0),v.prototype.updateOptions.call(this,this._overwriteOptions)},w=y([_(3,z.a),_(4,re.a),_(5,I.b),_(6,U.c),_(7,H.c),_(8,O.a),_(9,x.b)],w),w}(J.a)},"09fa":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J}),e.d(j,"c",function(){return I});var T=e("Cg/j"),re=Object(T.c)("logService"),J;(function(U){U[U.Trace=0]="Trace",U[U.Debug=1]="Debug",U[U.Info=2]="Info",U[U.Warning=3]="Warning",U[U.Error=4]="Error",U[U.Critical=5]="Critical",U[U.Off=6]="Off"})(J||(J={}));var I=function(){function U(){}return U.prototype.getLevel=function(){return J.Info},U.prototype.trace=function(z){for(var O=[],H=1;H<arguments.length;H++)O[H-1]=arguments[H]},U.prototype.error=function(z){for(var O=[],H=1;H<arguments.length;H++)O[H-1]=arguments[H]},U.prototype.dispose=function(){},U}()},"0JNc":function(Lt,j,e){"use strict";e.d(j,"b",function(){return T}),e.d(j,"a",function(){return J}),e.d(j,"c",function(){return I}),e.d(j,"d",function(){return O});var T="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function re(H){H===void 0&&(H="");for(var x="(-?\\d*\\.\\d\\w*)|([^",u=0,y=T;u<y.length;u++){var _=y[u];if(H.indexOf(_)>=0)continue;x+="\\"+_}return x+="\\s]+)",new RegExp(x,"g")}var J=re();function I(H){var x=J;if(H&&H instanceof RegExp)if(H.global)x=H;else{var u="g";H.ignoreCase&&(u+="i"),H.multiline&&(u+="m"),H.unicode&&(u+="u"),x=new RegExp(H.source,u)}return x.lastIndex=0,x}function U(H,x,u,y){var _=H-1-y,f=u.lastIndexOf(" ",_-1)+1;x.lastIndex=f;for(var v;v=x.exec(u);){var w=v.index||0;if(w<=_&&x.lastIndex>=_)return{word:v[0],startColumn:y+1+w,endColumn:y+1+x.lastIndex}}return null}function z(H,x,u,y){var _=H-1-y;x.lastIndex=0;for(var f;f=x.exec(u);){var v=f.index||0;if(v>_)return null;if(x.lastIndex>=_)return{word:f[0],startColumn:y+1+v,endColumn:y+1+x.lastIndex}}return null}function O(H,x,u,y){x.lastIndex=0;var _=x.exec(u);if(!_)return null;var f=_[0].indexOf(" ")>=0?z(H,x,u,y):U(H,x,u,y);return x.lastIndex=0,f}},"0oIH":function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return e.e(157).then(e.bind(null,"Eg73"))}})},"10Fh":function(Lt,j,e){"use strict";e.r(j),e.d(j,"provideSelectionRanges",function(){return A});var T=e("6OMU"),re=e("JQT/"),J=e("sswD"),I=e("cGHE"),U=e("aokT"),z=e("gCVg"),O=e("wQH0"),H=e("twdY"),x=e("3/fG"),u=e("pmY6"),y=e("N0LK"),_=function(){function k(){}return k.prototype.provideSelectionRanges=function(R,$){for(var ie=[],W=0,B=$;W<B.length;W++){var le=B[W],Ce=[];ie.push(Ce),this._addInWordRanges(Ce,R,le),this._addWordRanges(Ce,R,le),this._addWhitespaceLine(Ce,R,le),Ce.push({range:R.getFullModelRange()})}return ie},k.prototype._addInWordRanges=function(R,$,ie){var W=$.getWordAtPosition(ie);if(!W)return;for(var B=W.word,le=W.startColumn,Ce=ie.column-le,Me=Ce,Te=Ce,Fe=0;Me>=0;Me--){var Ue=B.charCodeAt(Me);if(Ue===95||Ue===45)break;if(Object(y.B)(Ue)&&Object(y.C)(Fe))break;Fe=Ue}for(Me+=1;Te<B.length;Te++){var Ue=B.charCodeAt(Te);if(Object(y.C)(Ue)&&Object(y.B)(Fe))break;if(Ue===95||Ue===45)break;Fe=Ue}Me<Te&&R.push({range:new U.a(ie.lineNumber,le+Me,ie.lineNumber,le+Te)})},k.prototype._addWordRanges=function(R,$,ie){var W=$.getWordAtPosition(ie);W&&R.push({range:new U.a(ie.lineNumber,W.startColumn,ie.lineNumber,W.endColumn)})},k.prototype._addWhitespaceLine=function(R,$,ie){$.getLineLength(ie.lineNumber)>0&&$.getLineFirstNonWhitespaceColumn(ie.lineNumber)===0&&$.getLineLastNonWhitespaceColumn(ie.lineNumber)===0&&R.push({range:new U.a(ie.lineNumber,1,ie.lineNumber,$.getLineMaxColumn(ie.lineNumber))})},k}(),f=e("Z7SF"),v=e("nnTU"),w=e("/cxE"),p=function(){var k=function($,ie){return k=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])},k($,ie)};return function(R,$){k(R,$);function ie(){this.constructor=R}R.prototype=$===null?Object.create($):(ie.prototype=$.prototype,new ie)}}(),c=function(k,R,$,ie){function W(B){return B instanceof $?B:new $(function(le){le(B)})}return new($||($=Promise))(function(B,le){function Ce(Fe){try{Te(ie.next(Fe))}catch(Ue){le(Ue)}}function Me(Fe){try{Te(ie.throw(Fe))}catch(Ue){le(Ue)}}function Te(Fe){Fe.done?B(Fe.value):W(Fe.value).then(Ce,Me)}Te((ie=ie.apply(k,R||[])).next())})},s=function(k,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:Ce(0),throw:Ce(1),return:Ce(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Ce(Te){return function(Fe){return Me([Te,Fe])}}function Me(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(k,$)}catch(Fe){Te=[6,Fe],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 k(R,$){this.index=R,this.ranges=$}return k.prototype.mov=function(R){var $=this.index+(R?1:-1);if($<0||$>=this.ranges.length)return this;var ie=new k($,this.ranges);return ie.ranges[$].equalsRange(this.ranges[this.index])?ie.mov(R):ie},k}(),d=function(){function k(R){this._ignoreSelection=!1,this._editor=R}return k.get=function(R){return R.getContribution(k.ID)},k.prototype.dispose=function(){Object(u.f)(this._selectionListener)},k.prototype.run=function(R){var $=this;if(!this._editor.hasModel())return;var ie=this._editor.getSelections(),W=this._editor.getModel();if(!H.w.has(W))return;var B=Promise.resolve(void 0);return this._state||(B=A(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,Fe){return Te.equalsSelection(Fe)}))return;for(var Ce=function(Fe){le[Fe]=le[Fe].filter(function(Ue){return Ue.containsPosition(ie[Fe].getStartPosition())&&Ue.containsPosition(ie[Fe].getEndPosition())}),le[Fe].unshift(ie[Fe])},Me=0;Me<le.length;Me++)Ce(Me);$._state=le.map(function(Te){return new l(0,Te)}),Object(u.f)($._selectionListener),$._selectionListener=$._editor.onDidChangeCursorPosition(function(){$._ignoreSelection||(Object(u.f)($._selectionListener),$._state=void 0)})})),B.then(function(){if(!$._state)return;$._state=$._state.map(function(Ce){return Ce.mov(R)});var le=$._state.map(function(Ce){return z.a.fromPositions(Ce.ranges[Ce.index].getStartPosition(),Ce.ranges[Ce.index].getEndPosition())});$._ignoreSelection=!0;try{$._editor.setSelections(le)}finally{$._ignoreSelection=!1}})},k.ID="editor.contrib.smartSelectController",k}(),m=function(k){p(R,k);function R($,ie){var W=k.call(this,ie)||this;return W._forward=$,W}return R.prototype.run=function($,ie){return c(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(k){p(R,k);function R(){return k.call(this,!0,{id:"editor.action.smartSelect.expand",label:x.a("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:O.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:x.a({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})||this}return R}(m);v.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");var L=function(k){p(R,k);function R(){return k.call(this,!1,{id:"editor.action.smartSelect.shrink",label:x.a("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:O.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:x.a({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})||this}return R}(m);Object(J.h)(d.ID,d),Object(J.f)(E),Object(J.f)(L),H.w.register("*",new _);function A(k,R,$){var ie=H.w.all(k);ie.length===1&&ie.unshift(new f.a);for(var W=[],B=[],le=0,Ce=ie;le<Ce.length;le++){var Me=Ce[le];W.push(Promise.resolve(Me.provideSelectionRanges(k,R,$)).then(function(Te){if(T.q(Te)&&Te.length===R.length)for(var Fe=0;Fe<R.length;Fe++){B[Fe]||(B[Fe]=[]);for(var Ue=0,Pe=Te[Fe];Ue<Pe.length;Ue++){var ne=Pe[Ue];U.a.isIRange(ne.range)&&U.a.containsPosition(ne.range,R[Fe])&&B[Fe].push(U.a.lift(ne.range))}}},w.f))}return Promise.all(W).then(function(){return B.map(function(Te){if(Te.length===0)return[];Te.sort(function(Xe,me){return I.a.isBefore(Xe.getStartPosition(),me.getStartPosition())?1:I.a.isBefore(me.getStartPosition(),Xe.getStartPosition())||I.a.isBefore(Xe.getEndPosition(),me.getEndPosition())?-1:I.a.isBefore(me.getEndPosition(),Xe.getEndPosition())?1:0});for(var Fe=[],Ue,Pe=0,ne=Te;Pe<ne.length;Pe++){var ee=ne[Pe];(!Ue||U.a.containsRange(ee,Ue)&&!U.a.equalsRange(ee,Ue))&&(Fe.push(ee),Ue=ee)}for(var ae=[Fe[0]],q=1;q<Fe.length;q++){var ue=Fe[q-1],X=Fe[q];if(X.startLineNumber!==ue.startLineNumber||X.endLineNumber!==ue.endLineNumber){var he=new U.a(ue.startLineNumber,k.getLineFirstNonWhitespaceColumn(ue.startLineNumber),ue.endLineNumber,k.getLineLastNonWhitespaceColumn(ue.endLineNumber));he.containsRange(ue)&&!he.equalsRange(ue)&&X.containsRange(he)&&!X.equalsRange(he)&&ae.push(he);var je=new U.a(ue.startLineNumber,1,ue.endLineNumber,k.getLineMaxColumn(ue.endLineNumber));je.containsRange(ue)&&!je.equalsRange(he)&&X.containsRange(je)&&!X.equalsRange(je)&&ae.push(je)}ae.push(X)}return ae})})}Object(J.l)("_executeSelectionRangeProvider",function(k){for(var R=[],$=1;$<arguments.length;$++)R[$-1]=arguments[$];var ie=R[0];return A(k,ie,re.a.None)})},"1I1M":function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"b",function(){return H});var T=e("N0LK"),re=e("Ll0s"),J=e("5v8Y"),I=e("cGHE"),U=e("aokT"),z=function(){var u=function(_,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var p in w)w.hasOwnProperty(p)&&(v[p]=w[p])},u(_,f)};return function(y,_){u(y,_);function f(){this.constructor=y}y.prototype=_===null?Object.create(_):(f.prototype=_.prototype,new f)}}(),O=function(){function u(){}return u._createWord=function(y,_,f,v,w){return{start:v,end:w,wordType:_,nextCharClass:f}},u._findPreviousWordOnLine=function(y,_,f){var v=_.getLineContent(f.lineNumber);return this._doFindPreviousWordOnLine(v,y,f)},u._doFindPreviousWordOnLine=function(y,_,f){for(var v=0,w=f.column-2;w>=0;w--){var p=y.charCodeAt(w),c=_.get(p);if(c===0){if(v===2)return this._createWord(y,v,c,w+1,this._findEndOfWord(y,_,v,w+1));v=1}else if(c===2){if(v===1)return this._createWord(y,v,c,w+1,this._findEndOfWord(y,_,v,w+1));v=2}else if(c===1&&v!==0)return this._createWord(y,v,c,w+1,this._findEndOfWord(y,_,v,w+1))}return v!==0?this._createWord(y,v,1,0,this._findEndOfWord(y,_,v,0)):null},u._findEndOfWord=function(y,_,f,v){for(var w=y.length,p=v;p<w;p++){var c=y.charCodeAt(p),s=_.get(c);if(s===1)return p;if(f===1&&s===2)return p;if(f===2&&s===0)return p}return w},u._findNextWordOnLine=function(y,_,f){var v=_.getLineContent(f.lineNumber);return this._doFindNextWordOnLine(v,y,f)},u._doFindNextWordOnLine=function(y,_,f){for(var v=0,w=y.length,p=f.column-1;p<w;p++){var c=y.charCodeAt(p),s=_.get(c);if(s===0){if(v===2)return this._createWord(y,v,s,this._findStartOfWord(y,_,v,p-1),p);v=1}else if(s===2){if(v===1)return this._createWord(y,v,s,this._findStartOfWord(y,_,v,p-1),p);v=2}else if(s===1&&v!==0)return this._createWord(y,v,s,this._findStartOfWord(y,_,v,p-1),p)}return v!==0?this._createWord(y,v,1,this._findStartOfWord(y,_,v,w-1),w):null},u._findStartOfWord=function(y,_,f,v){for(var w=v;w>=0;w--){var p=y.charCodeAt(w),c=_.get(p);if(c===1)return w+1;if(f===1&&c===2)return w+1;if(f===2&&c===0)return w+1}return 0},u.moveWordLeft=function(y,_,f,v){var w=f.lineNumber,p=f.column,c=!1;p===1&&(w>1&&(c=!0,w=w-1,p=_.getLineMaxColumn(w)));var s=u._findPreviousWordOnLine(y,_,new I.a(w,p));if(v===0){if(s&&!c){var l=_.getLineLastNonWhitespaceColumn(w);if(l<p)return new I.a(w,s.end+1)}return new I.a(w,s?s.start+1:1)}if(v===1)return s&&s.wordType===2&&s.end-s.start===1&&s.nextCharClass===0&&(s=u._findPreviousWordOnLine(y,_,new I.a(w,s.start+1))),new I.a(w,s?s.start+1:1);if(v===3){for(;s&&s.wordType===2;)s=u._findPreviousWordOnLine(y,_,new I.a(w,s.start+1));return new I.a(w,s?s.start+1:1)}return s&&p<=s.end+1&&(s=u._findPreviousWordOnLine(y,_,new I.a(w,s.start+1))),new I.a(w,s?s.end+1:1)},u._moveWordPartLeft=function(y,_){var f=_.lineNumber,v=y.getLineMaxColumn(f);if(_.column===1)return f>1?new I.a(f-1,y.getLineMaxColumn(f-1)):_;for(var w=y.getLineContent(f),p=_.column-1;p>1;p--){var c=w.charCodeAt(p-2),s=w.charCodeAt(p-1);if(c!==95&&s===95)return new I.a(f,p);if(T.B(c)&&T.C(s))return new I.a(f,p);if(T.C(c)&&T.C(s)&&p+1<v){var l=w.charCodeAt(p);if(T.B(l))return new I.a(f,p)}}return new I.a(f,1)},u.moveWordRight=function(y,_,f,v){var w=f.lineNumber,p=f.column,c=!1;p===_.getLineMaxColumn(w)&&(w<_.getLineCount()&&(c=!0,w=w+1,p=1));var s=u._findNextWordOnLine(y,_,new I.a(w,p));if(v===2)s&&s.wordType===2&&(s.end-s.start===1&&s.nextCharClass===0&&(s=u._findNextWordOnLine(y,_,new I.a(w,s.end+1)))),s?p=s.end+1:p=_.getLineMaxColumn(w);else if(v===3){for(c&&(p=0);s&&(s.wordType===2||s.start+1<=p);)s=u._findNextWordOnLine(y,_,new I.a(w,s.end+1));s?p=s.start+1:p=_.getLineMaxColumn(w)}else s&&!c&&p>=s.start+1&&(s=u._findNextWordOnLine(y,_,new I.a(w,s.end+1))),s?p=s.start+1:p=_.getLineMaxColumn(w);return new I.a(w,p)},u._moveWordPartRight=function(y,_){var f=_.lineNumber,v=y.getLineMaxColumn(f);if(_.column===v)return f<y.getLineCount()?new I.a(f+1,1):_;for(var w=y.getLineContent(f),p=_.column+1;p<v;p++){var c=w.charCodeAt(p-2),s=w.charCodeAt(p-1);if(c===95&&s!==95)return new I.a(f,p);if(T.B(c)&&T.C(s))return new I.a(f,p);if(T.C(c)&&T.C(s)&&p+1<v){var l=w.charCodeAt(p);if(T.B(l))return new I.a(f,p)}}return new I.a(f,v)},u._deleteWordLeftWhitespace=function(y,_){var f=y.getLineContent(_.lineNumber),v=_.column-2,w=T.D(f,v);return w+1<v?new U.a(_.lineNumber,w+2,_.lineNumber,_.column):null},u.deleteWordLeft=function(y,_,f,v,w){if(!f.isEmpty())return f;var p=new I.a(f.positionLineNumber,f.positionColumn),c=p.lineNumber,s=p.column;if(c===1&&s===1)return null;if(v){var l=this._deleteWordLeftWhitespace(_,p);if(l)return l}var d=u._findPreviousWordOnLine(y,_,p);return w===0?d?s=d.start+1:s>1?s=1:(c--,s=_.getLineMaxColumn(c)):(d&&s<=d.end+1&&(d=u._findPreviousWordOnLine(y,_,new I.a(c,d.start+1))),d?s=d.end+1:s>1?s=1:(c--,s=_.getLineMaxColumn(c))),new U.a(c,s,p.lineNumber,p.column)},u._deleteWordPartLeft=function(y,_){if(!_.isEmpty())return _;var f=_.getPosition(),v=u._moveWordPartLeft(y,f);return new U.a(f.lineNumber,f.column,v.lineNumber,v.column)},u._findFirstNonWhitespaceChar=function(y,_){for(var f=y.length,v=_;v<f;v++){var w=y.charAt(v);if(w!==" "&&w!==" ")return v}return f},u._deleteWordRightWhitespace=function(y,_){var f=y.getLineContent(_.lineNumber),v=_.column-1,w=this._findFirstNonWhitespaceChar(f,v);return v+1<w?new U.a(_.lineNumber,_.column,_.lineNumber,w+1):null},u.deleteWordRight=function(y,_,f,v,w){if(!f.isEmpty())return f;var p=new I.a(f.positionLineNumber,f.positionColumn),c=p.lineNumber,s=p.column,l=_.getLineCount(),d=_.getLineMaxColumn(c);if(c===l&&s===d)return null;if(v){var m=this._deleteWordRightWhitespace(_,p);if(m)return m}var E=u._findNextWordOnLine(y,_,p);return w===2?E?s=E.end+1:s<d||c===l?s=d:(c++,E=u._findNextWordOnLine(y,_,new I.a(c,1)),E?s=E.start+1:s=_.getLineMaxColumn(c)):(E&&s>=E.start+1&&(E=u._findNextWordOnLine(y,_,new I.a(c,E.end+1))),E?s=E.start+1:s<d||c===l?s=d:(c++,E=u._findNextWordOnLine(y,_,new I.a(c,1)),E?s=E.start+1:s=_.getLineMaxColumn(c))),new U.a(c,s,p.lineNumber,p.column)},u._deleteWordPartRight=function(y,_){if(!_.isEmpty())return _;var f=_.getPosition(),v=u._moveWordPartRight(y,f);return new U.a(f.lineNumber,f.column,v.lineNumber,v.column)},u.word=function(y,_,f,v,w){var p=Object(J.a)(y.wordSeparators),c=u._findPreviousWordOnLine(p,_,w),s=u._findNextWordOnLine(p,_,w);if(!v){var l,d;return c&&c.wordType===1&&c.start<=w.column-1&&w.column-1<=c.end?(l=c.start+1,d=c.end+1):s&&s.wordType===1&&s.start<=w.column-1&&w.column-1<=s.end?(l=s.start+1,d=s.end+1):(c?l=c.end+1:l=1,s?d=s.start+1:d=_.getLineMaxColumn(w.lineNumber)),new re.f(new U.a(w.lineNumber,l,w.lineNumber,d),0,new I.a(w.lineNumber,d),0)}var m,E;c&&c.wordType===1&&c.start<w.column-1&&w.column-1<c.end?(m=c.start+1,E=c.end+1):s&&s.wordType===1&&s.start<w.column-1&&w.column-1<s.end?(m=s.start+1,E=s.end+1):(m=w.column,E=w.column);var L=w.lineNumber,A;if(f.selectionStart.containsPosition(w))A=f.selectionStart.endColumn;else if(w.isBeforeOrEqual(f.selectionStart.getStartPosition())){A=m;var k=new I.a(L,A);f.selectionStart.containsPosition(k)&&(A=f.selectionStart.endColumn)}else{A=E;var k=new I.a(L,A);f.selectionStart.containsPosition(k)&&(A=f.selectionStart.startColumn)}return f.move(!0,L,A,0)},u}(),H=function(u){z(y,u);function y(){return u!==null&&u.apply(this,arguments)||this}return y.deleteWordPartLeft=function(_,f,v,w){var p=x([O.deleteWordLeft(_,f,v,w,0),O.deleteWordLeft(_,f,v,w,2),O._deleteWordPartLeft(f,v)]);return p.sort(U.a.compareRangesUsingEnds),p[2]},y.deleteWordPartRight=function(_,f,v,w){var p=x([O.deleteWordRight(_,f,v,w,0),O.deleteWordRight(_,f,v,w,2),O._deleteWordPartRight(f,v)]);return p.sort(U.a.compareRangesUsingStarts),p[0]},y.moveWordPartLeft=function(_,f,v){var w=x([O.moveWordLeft(_,f,v,0),O.moveWordLeft(_,f,v,2),O._moveWordPartLeft(f,v)]);return w.sort(I.a.compare),w[2]},y.moveWordPartRight=function(_,f,v){var w=x([O.moveWordRight(_,f,v,0),O.moveWordRight(_,f,v,2),O._moveWordPartRight(f,v)]);return w.sort(I.a.compare),w[0]},y}(O);function x(u){return u.filter(function(y){return Boolean(y)})}},"1YUG":function(Lt,j,e){"use strict";e.r(j),e.d(j,"CoreEditorCommand",function(){return c}),e.d(j,"EditorScroll_",function(){return s}),e.d(j,"RevealLine_",function(){return l}),e.d(j,"CoreNavigationCommands",function(){return d}),e.d(j,"CoreEditingCommands",function(){return m});var T=e("3/fG"),re=e("746U"),J=e("sswD"),I=e("Vxe3"),U=e("Ll0s"),z=e("cGHE"),O=e("aokT"),H=function(){function R(){}return R.columnSelect=function($,ie,W,B,le,Ce){for(var Me=Math.abs(le-W)+1,Te=W>le,Fe=B>Ce,Ue=B<Ce,Pe=[],ne=0;ne<Me;ne++){var ee=W+(Te?-ne:ne),ae=U.a.columnFromVisibleColumn2($,ie,ee,B),q=U.a.columnFromVisibleColumn2($,ie,ee,Ce),ue=U.a.visibleColumnFromColumn2($,ie,new z.a(ee,ae)),X=U.a.visibleColumnFromColumn2($,ie,new z.a(ee,q));if(Ue){if(ue>Ce)continue;if(X<B)continue}if(Fe){if(X>B)continue;if(ue<Ce)continue}Pe.push(new U.f(new O.a(ee,ae,ee,ae),0,new z.a(ee,q),0))}if(Pe.length===0)for(var ne=0;ne<Me;ne++){var ee=W+(Te?-ne:ne),he=ie.getLineMaxColumn(ee);Pe.push(new U.f(new O.a(ee,he,ee,he),0,new z.a(ee,he),0))}return{viewStates:Pe,reversed:Te,fromLineNumber:W,fromVisualColumn:B,toLineNumber:le,toVisualColumn:Ce}},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),Ce=Math.max(W.fromViewLineNumber,W.toViewLineNumber),Me=le;Me<=Ce;Me++){var Te=ie.getLineMaxColumn(Me),Fe=U.a.visibleColumnFromColumn2($,ie,new z.a(Me,Te));B=Math.max(B,Fe)}var Ue=W.toViewVisualColumn;return Ue<B&&Ue++,this.columnSelect($,ie,W.fromViewLineNumber,W.fromViewVisualColumn,W.toViewLineNumber,Ue)},R.columnSelectUp=function($,ie,W,B){var le=B?$.pageSize:1,Ce=Math.max(1,W.toViewLineNumber-le);return this.columnSelect($,ie,W.fromViewLineNumber,W.fromViewVisualColumn,Ce,W.toViewVisualColumn)},R.columnSelectDown=function($,ie,W,B){var le=B?$.pageSize:1,Ce=Math.min(ie.getLineCount(),W.toViewLineNumber+le);return this.columnSelect($,ie,W.fromViewLineNumber,W.fromViewVisualColumn,Ce,W.toViewVisualColumn)},R}(),x=e("snIX"),u=e("oAeH"),y=e("GR/f"),_=e("iuje"),f=e("wQH0"),v=e("T8No"),w=function(){var R=function(ie,W){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,le){B.__proto__=le}||function(B,le){for(var Ce in le)le.hasOwnProperty(Ce)&&(B[Ce]=le[Ce])},R(ie,W)};return function($,ie){R($,ie);function W(){this.constructor=$}$.prototype=ie===null?Object.create(ie):(W.prototype=ie.prototype,new W)}}(),p=0,c=function(R){w($,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 Ce=Math.floor(W.value||1),Me=!!W.revealCursor;return{direction:B,unit:le,value:Ce,revealCursor:Me,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){w(ue,q);function ue(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[u.b.moveTo(X.context,X.getPrimaryCursor(),this._inSelectionMode,he.position,he.viewPosition)]),X.reveal(he.source,!0,0,0)},ue}(c);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){w(ue,q);function ue(){return q!==null&&q.apply(this,arguments)||this}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement();var je=this._getColumnSelectResult(X.context,X.getPrimaryCursor(),X.getColumnSelectData(),he);X.setStates(he.source,3,je.viewStates.map(function(Xe){return U.d.fromViewState(Xe)})),X.setColumnSelectData({isReal:!0,fromViewLineNumber:je.fromLineNumber,fromViewVisualColumn:je.fromVisualColumn,toViewLineNumber:je.toLineNumber,toViewVisualColumn:je.toVisualColumn}),X.reveal(he.source,!0,je.reversed?1:2,0)},ue}(c);R.ColumnSelect=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"columnSelect",precondition:void 0})||this}return ue.prototype._getColumnSelectResult=function(X,he,je,Xe){var me=X.model.validatePosition(Xe.position),ge=X.validateViewPosition(new z.a(Xe.viewPosition.lineNumber,Xe.viewPosition.column),me),we=Xe.doColumnSelect?je.fromViewLineNumber:ge.lineNumber,Re=Xe.doColumnSelect?je.fromViewVisualColumn:Xe.mouseColumn-1;return H.columnSelect(X.config,X.viewModel,we,Re,ge.lineNumber,Xe.mouseColumn-1)},ue}(ie))),R.CursorColumnSelectLeft=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:2048|1024|512|15,linux:{primary:0}}})||this}return ue.prototype._getColumnSelectResult=function(X,he,je,Xe){return H.columnSelectLeft(X.config,X.viewModel,je)},ue}(ie))),R.CursorColumnSelectRight=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:2048|1024|512|17,linux:{primary:0}}})||this}return ue.prototype._getColumnSelectResult=function(X,he,je,Xe){return H.columnSelectRight(X.config,X.viewModel,je)},ue}(ie)));var W=function(q){w(ue,q);function ue(X){var he=q.call(this,X)||this;return he._isPaged=X.isPaged,he}return ue.prototype._getColumnSelectResult=function(X,he,je,Xe){return H.columnSelectUp(X.config,X.viewModel,je,this._isPaged)},ue}(ie);R.CursorColumnSelectUp=Object(J.g)(new W({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:p,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:p,kbExpr:f.a.textInputFocus,primary:2048|1024|512|11,linux:{primary:0}}}));var B=function(q){w(ue,q);function ue(X){var he=q.call(this,X)||this;return he._isPaged=X.isPaged,he}return ue.prototype._getColumnSelectResult=function(X,he,je,Xe){return H.columnSelectDown(X.config,X.viewModel,je,this._isPaged)},ue}(ie);R.CursorColumnSelectDown=Object(J.g)(new B({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:p,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:p,kbExpr:f.a.textInputFocus,primary:2048|1024|512|12,linux:{primary:0}}}));var le=function(q){w(ue,q);function ue(){return q.call(this,{id:"cursorMove",precondition:void 0,description:u.a.description})||this}return ue.prototype.runCoreEditorCommand=function(X,he){var je=u.a.parse(he);if(!je)return;this._runCursorMove(X,he.source,je)},ue.prototype._runCursorMove=function(X,he,je){X.context.model.pushStackElement(),X.setStates(he,3,u.b.move(X.context,X.getAll(),je)),X.reveal(he,!0,0,0)},ue}(c);R.CursorMoveImpl=le,R.CursorMove=Object(J.g)(new le);var Ce=function(q){w(ue,q);function ue(X){var he=q.call(this,X)||this;return he._staticArgs=X.args,he}return ue.prototype.runCoreEditorCommand=function(X,he){var je=this._staticArgs;this._staticArgs.value===-1&&(je={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:X.context.config.pageSize}),R.CursorMove._runCursorMove(X,he.source,je)},ue}(c);R.CursorLeft=Object(J.g)(new Ce({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:15,mac:{primary:15,secondary:[256|32]}}})),R.CursorLeftSelect=Object(J.g)(new Ce({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:1024|15}})),R.CursorRight=Object(J.g)(new Ce({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:17,mac:{primary:17,secondary:[256|36]}}})),R.CursorRightSelect=Object(J.g)(new Ce({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:1024|17}})),R.CursorUp=Object(J.g)(new Ce({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:16,mac:{primary:16,secondary:[256|46]}}})),R.CursorUpSelect=Object(J.g)(new Ce({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:p,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 Ce({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:11}})),R.CursorPageUpSelect=Object(J.g)(new Ce({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:1024|11}})),R.CursorDown=Object(J.g)(new Ce({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:18,mac:{primary:18,secondary:[256|44]}}})),R.CursorDownSelect=Object(J.g)(new Ce({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:p,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 Ce({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:12}})),R.CursorPageDownSelect=Object(J.g)(new Ce({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:1024|12}})),R.CreateCursor=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"createCursor",precondition:void 0})||this}return ue.prototype.runCoreEditorCommand=function(X,he){var je=X.context,Xe;he.wholeLine?Xe=u.b.line(je,X.getPrimaryCursor(),!1,he.position,he.viewPosition):Xe=u.b.moveTo(je,X.getPrimaryCursor(),!1,he.position,he.viewPosition);var me=X.getAll();if(me.length>1)for(var ge=Xe.modelState?Xe.modelState.position:null,we=Xe.viewState?Xe.viewState.position:null,Re=0,Ee=me.length;Re<Ee;Re++){var ve=me[Re];if(ge&&!ve.modelState.selection.containsPosition(ge))continue;if(we&&!ve.viewState.selection.containsPosition(we))continue;me.splice(Re,1),X.context.model.pushStackElement(),X.setStates(he.source,3,me);return}me.push(Xe),X.context.model.pushStackElement(),X.setStates(he.source,3,me)},ue}(c))),R.LastCursorMoveToSelect=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}return ue.prototype.runCoreEditorCommand=function(X,he){var je=X.context,Xe=X.getLastAddedCursorIndex(),me=X.getAll(),ge=me.slice(0);ge[Xe]=u.b.moveTo(je,me[Xe],!0,he.position,he.viewPosition),X.context.model.pushStackElement(),X.setStates(he.source,3,ge)},ue}(c)));var Me=function(q){w(ue,q);function ue(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,u.b.moveToBeginningOfLine(X.context,X.getAll(),this._inSelectionMode)),X.reveal(he.source,!0,0,0)},ue}(c);R.CursorHome=Object(J.g)(new Me({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2048|15]}}})),R.CursorHomeSelect=Object(J.g)(new Me({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:1024|14,mac:{primary:1024|14,secondary:[2048|1024|15]}}})),R.CursorLineStart=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:0,mac:{primary:256|31}}})||this}return ue.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)},ue.prototype._exec=function(X,he){for(var je=[],Xe=0,me=he.length;Xe<me;Xe++){var ge=he[Xe],we=ge.modelState.position.lineNumber;je[Xe]=U.d.fromModelState(ge.modelState.move(!1,we,1,0))}return je},ue}(c)));var Te=function(q){w(ue,q);function ue(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,u.b.moveToEndOfLine(X.context,X.getAll(),this._inSelectionMode)),X.reveal(he.source,!0,0,0)},ue}(c);R.CursorEnd=Object(J.g)(new Te({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:p,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:p,kbExpr:f.a.textInputFocus,primary:1024|13,mac:{primary:1024|13,secondary:[2048|1024|17]}}})),R.CursorLineEnd=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:0,mac:{primary:256|35}}})||this}return ue.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)},ue.prototype._exec=function(X,he){for(var je=[],Xe=0,me=he.length;Xe<me;Xe++){var ge=he[Xe],we=ge.modelState.position.lineNumber,Re=X.model.getLineMaxColumn(we);je[Xe]=U.d.fromModelState(ge.modelState.move(!1,we,Re,0))}return je},ue}(c)));var Fe=function(q){w(ue,q);function ue(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,u.b.moveToBeginningOfBuffer(X.context,X.getAll(),this._inSelectionMode)),X.reveal(he.source,!0,0,0)},ue}(c);R.CursorTop=Object(J.g)(new Fe({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:2048|14,mac:{primary:2048|16}}})),R.CursorTopSelect=Object(J.g)(new Fe({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:2048|1024|14,mac:{primary:2048|1024|16}}}));var Ue=function(q){w(ue,q);function ue(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,u.b.moveToEndOfBuffer(X.context,X.getAll(),this._inSelectionMode)),X.reveal(he.source,!0,0,0)},ue}(c);R.CursorBottom=Object(J.g)(new Ue({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:2048|13,mac:{primary:2048|18}}})),R.CursorBottomSelect=Object(J.g)(new Ue({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:2048|1024|13,mac:{primary:2048|1024|18}}}));var Pe=function(q){w(ue,q);function ue(){return q.call(this,{id:"editorScroll",precondition:void 0,description:s.description})||this}return ue.prototype.runCoreEditorCommand=function(X,he){var je=s.parse(he);if(!je)return;this._runEditorScroll(X,he.source,je)},ue.prototype._runEditorScroll=function(X,he,je){var Xe=this._computeDesiredScrollTop(X.context,je);if(je.revealCursor){var me=X.context.getCompletelyVisibleViewRangeAtScrollTop(Xe);X.setStates(he,3,[u.b.findPositionInViewportIfOutside(X.context,X.getPrimaryCursor(),me,je.select)])}X.scrollTo(Xe)},ue.prototype._computeDesiredScrollTop=function(X,he){if(he.unit===1){var je=X.getCompletelyVisibleModelRange(),Xe=void 0;he.direction===1?Xe=Math.max(1,je.startLineNumber-he.value):Xe=Math.min(X.model.getLineCount(),je.startLineNumber+he.value);var me=X.convertModelPositionToViewPosition(new z.a(Xe,1));return X.getVerticalOffsetForViewLine(me.lineNumber)}var ge;he.unit===3?ge=X.config.pageSize*he.value:he.unit===4?ge=Math.round(X.config.pageSize/2)*he.value:ge=he.value;var we=(he.direction===1?-1:1)*ge;return X.getCurrentScrollTop()+we*X.config.lineHeight},ue}(c);R.EditorScrollImpl=Pe,R.EditorScroll=Object(J.g)(new Pe),R.ScrollLineUp=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:2048|16,mac:{primary:256|11}}})||this}return ue.prototype.runCoreEditorCommand=function(X,he){R.EditorScroll._runEditorScroll(X,he.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},ue}(c))),R.ScrollPageUp=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:2048|11,win:{primary:512|11},linux:{primary:512|11}}})||this}return ue.prototype.runCoreEditorCommand=function(X,he){R.EditorScroll._runEditorScroll(X,he.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},ue}(c))),R.ScrollLineDown=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:2048|18,mac:{primary:256|12}}})||this}return ue.prototype.runCoreEditorCommand=function(X,he){R.EditorScroll._runEditorScroll(X,he.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},ue}(c))),R.ScrollPageDown=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:2048|12,win:{primary:512|12},linux:{primary:512|12}}})||this}return ue.prototype.runCoreEditorCommand=function(X,he){R.EditorScroll._runEditorScroll(X,he.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},ue}(c)));var ne=function(q){w(ue,q);function ue(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[u.b.word(X.context,X.getPrimaryCursor(),this._inSelectionMode,he.position)]),X.reveal(he.source,!0,0,0)},ue}(c);R.WordSelect=Object(J.g)(new ne({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),R.WordSelectDrag=Object(J.g)(new ne({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),R.LastCursorWordSelect=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}return ue.prototype.runCoreEditorCommand=function(X,he){var je=X.context,Xe=X.getLastAddedCursorIndex(),me=X.getAll(),ge=me.slice(0),we=me[Xe];ge[Xe]=u.b.word(je,we,we.modelState.hasSelection(),he.position),je.model.pushStackElement(),X.setStates(he.source,3,ge)},ue}(c)));var ee=function(q){w(ue,q);function ue(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[u.b.line(X.context,X.getPrimaryCursor(),this._inSelectionMode,he.position,he.viewPosition)]),X.reveal(he.source,!1,0,0)},ue}(c);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){w(ue,q);function ue(X){var he=q.call(this,X)||this;return he._inSelectionMode=X.inSelectionMode,he}return ue.prototype.runCoreEditorCommand=function(X,he){var je=X.getLastAddedCursorIndex(),Xe=X.getAll(),me=Xe.slice(0);me[je]=u.b.line(X.context,Xe[je],this._inSelectionMode,he.position,he.viewPosition),X.context.model.pushStackElement(),X.setStates(he.source,3,me)},ue}(c);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){w(ue,q);function ue(){return q.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:2048|42}})||this}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,u.b.expandLineSelection(X.context,X.getAll())),X.reveal(he.source,!0,0,0)},ue}(c))),R.CancelSelection=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"cancelSelection",precondition:f.a.hasNonEmptySelection,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[u.b.cancelSelection(X.context,X.getPrimaryCursor())]),X.reveal(he.source,!0,0,0)},ue}(c))),R.RemoveSecondaryCursors=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"removeSecondaryCursors",precondition:f.a.hasMultipleSelections,kbOpts:{weight:p+1,kbExpr:f.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[X.getPrimaryCursor()]),X.reveal(he.source,!0,0,0)},ue}(c))),R.RevealLine=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"revealLine",precondition:void 0,description:l.description})||this}return ue.prototype.runCoreEditorCommand=function(X,he){var je=he,Xe=(je.lineNumber||0)+1;Xe<1&&(Xe=1);var me=X.context.model.getLineCount();Xe>me&&(Xe=me);var ge=new O.a(Xe,1,Xe,X.context.model.getLineMaxColumn(Xe)),we=0;if(je.at)switch(je.at){case l.RawAtArgument.Top:we=3;break;case l.RawAtArgument.Center:we=1;break;case l.RawAtArgument.Bottom:we=4;break;default:break}var Re=X.context.convertModelRangeToViewRange(ge);X.revealRange(he.source,!1,Re,we,0)},ue}(c))),R.SelectAll=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"selectAll",precondition:void 0})||this}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[u.b.selectAll(X.context,X.getPrimaryCursor())])},ue}(c))),R.SetSelection=Object(J.g)(new(function(q){w(ue,q);function ue(){return q.call(this,{id:"setSelection",precondition:void 0})||this}return ue.prototype.runCoreEditorCommand=function(X,he){X.context.model.pushStackElement(),X.setStates(he.source,3,[U.d.fromModelSelection(he.selection)])},ue}(c)))})(d||(d={}));var m;(function(R){var $=function(ie){w(W,ie);function W(){return ie!==null&&ie.apply(this,arguments)||this}return W.prototype.runEditorCommand=function(B,le,Ce){var Me=le._getCursors();if(!Me)return;this.runCoreEditingCommand(le,Me,Ce||{})},W}(J.c);R.CoreEditingCommand=$,R.LineBreakInsert=Object(J.g)(new(function(ie){w(W,ie);function W(){return ie.call(this,{id:"lineBreakInsert",precondition:f.a.writable,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:0,mac:{primary:256|45}}})||this}return W.prototype.runCoreEditingCommand=function(B,le,Ce){B.pushUndoStop(),B.executeCommands(this.id,y.a.lineBreakInsert(le.context.config,le.context.model,le.getAll().map(function(Me){return Me.modelState.selection})))},W}($))),R.Outdent=Object(J.g)(new(function(ie){w(W,ie);function W(){return ie.call(this,{id:"outdent",precondition:f.a.writable,kbOpts:{weight:p,kbExpr:v.a.and(f.a.editorTextFocus,f.a.tabDoesNotMoveFocus),primary:1024|2}})||this}return W.prototype.runCoreEditingCommand=function(B,le,Ce){B.pushUndoStop(),B.executeCommands(this.id,y.a.outdent(le.context.config,le.context.model,le.getAll().map(function(Me){return Me.modelState.selection}))),B.pushUndoStop()},W}($))),R.Tab=Object(J.g)(new(function(ie){w(W,ie);function W(){return ie.call(this,{id:"tab",precondition:f.a.writable,kbOpts:{weight:p,kbExpr:v.a.and(f.a.editorTextFocus,f.a.tabDoesNotMoveFocus),primary:2}})||this}return W.prototype.runCoreEditingCommand=function(B,le,Ce){B.pushUndoStop(),B.executeCommands(this.id,y.a.tab(le.context.config,le.context.model,le.getAll().map(function(Me){return Me.modelState.selection}))),B.pushUndoStop()},W}($))),R.DeleteLeft=Object(J.g)(new(function(ie){w(W,ie);function W(){return ie.call(this,{id:"deleteLeft",precondition:f.a.writable,kbOpts:{weight:p,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,Ce){var Me=x.a.deleteLeft(le.getPrevEditOperationType(),le.context.config,le.context.model,le.getAll().map(function(Ue){return Ue.modelState.selection})),Te=Me[0],Fe=Me[1];Te&&B.pushUndoStop(),B.executeCommands(this.id,Fe),le.setPrevEditOperationType(2)},W}($))),R.DeleteRight=Object(J.g)(new(function(ie){w(W,ie);function W(){return ie.call(this,{id:"deleteRight",precondition:f.a.writable,kbOpts:{weight:p,kbExpr:f.a.textInputFocus,primary:20,mac:{primary:20,secondary:[256|34,256|20]}}})||this}return W.prototype.runCoreEditingCommand=function(B,le,Ce){var Me=x.a.deleteRight(le.getPrevEditOperationType(),le.context.config,le.context.model,le.getAll().map(function(Ue){return Ue.modelState.selection})),Te=Me[0],Fe=Me[1];Te&&B.pushUndoStop(),B.executeCommands(this.id,Fe),le.setPrevEditOperationType(3)},W}($)))})(m||(m={}));function E(R){R.register()}var L=function(R){w($,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(I.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 Ce=ie.get(I.a).getActiveCodeEditor();if(Ce)return Ce.focus(),this._runEditorHandler(ie,Ce,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),A=function(R){w($,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(I.a).getFocusedCodeEditor();if(!B)return;B.trigger("keyboard",this._handlerId,W)},$}(J.a);E(new L({editorHandler:d.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:f.a.textInputFocus,kbOpts:{weight:p,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 L({editorHandler:_.b.Undo,inputHandler:"undo",id:_.b.Undo,precondition:f.a.writable,kbOpts:{weight:p,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 A("default:"+_.b.Undo,_.b.Undo)),E(new L({editorHandler:_.b.Redo,inputHandler:"redo",id:_.b.Redo,precondition:f.a.writable,kbOpts:{weight:p,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 A("default:"+_.b.Redo,_.b.Redo));function k(R,$){E(new A("default:"+R,R)),E(new A(R,R,$))}k(_.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),k(_.b.ReplacePreviousChar),k(_.b.CompositionStart),k(_.b.CompositionEnd),k(_.b.Paste),k(_.b.Cut)},"1lwE":function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return e.e(192).then(e.bind(null,"cOMg"))}})},"23p7":function(Lt,j,e){"use strict";e.r(j);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(145).then(e.bind(null,"aA7r"))}})},"24hK":function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=e("JYp7"),re=function(){function I(U){this.element=U,this.next=I.Undefined,this.prev=I.Undefined}return I.Undefined=new I(void 0),I}(),J=function(){function I(){this._first=re.Undefined,this._last=re.Undefined,this._size=0}return Object.defineProperty(I.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),I.prototype.isEmpty=function(){return this._first===re.Undefined},I.prototype.clear=function(){this._first=re.Undefined,this._last=re.Undefined,this._size=0},I.prototype.unshift=function(U){return this._insert(U,!1)},I.prototype.push=function(U){return this._insert(U,!0)},I.prototype._insert=function(U,z){var O=this,H=new re(U);if(this._first===re.Undefined)this._first=H,this._last=H;else if(z){var x=this._last;this._last=H,H.prev=x,x.next=H}else{var u=this._first;this._first=H,H.next=u,u.prev=H}this._size+=1;var y=!1;return function(){y||(y=!0,O._remove(H))}},I.prototype.shift=function(){if(this._first===re.Undefined)return;var U=this._first.element;return this._remove(this._first),U},I.prototype.pop=function(){if(this._last===re.Undefined)return;var U=this._last.element;return this._remove(this._last),U},I.prototype._remove=function(U){if(U.prev!==re.Undefined&&U.next!==re.Undefined){var z=U.prev;z.next=U.next,U.next.prev=z}else U.prev===re.Undefined&&U.next===re.Undefined?(this._first=re.Undefined,this._last=re.Undefined):U.next===re.Undefined?(this._last=this._last.prev,this._last.next=re.Undefined):U.prev===re.Undefined&&(this._first=this._first.next,this._first.prev=re.Undefined);this._size-=1},I.prototype.iterator=function(){var U,z=this._first;return{next:function(){return z===re.Undefined?T.c:(U?U.value=z.element:U={done:!1,value:z.element},z=z.next,U)}}},I.prototype.toArray=function(){for(var U=[],z=this._first;z!==re.Undefined;z=z.next)U.push(z.element);return U},I}()},"2ESN":function(Lt,j,e){"use strict";e.r(j);var T=e("YHy6"),re=e("3/fG"),J=e("X+cX"),I=e("JQT/"),U=e("/cxE"),z=e("eLzo"),O=e("pmY6"),H=e("MNsG"),x=e("sswD"),u=e("tX9W"),y=e("twdY"),_=e("aBYw"),f=e("bY76"),v=e("aokT"),w=e("G2kB"),p=e("nnTU"),c=e("6OMU"),s=function(){var ee=function(q,ue){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,he){X.__proto__=he}||function(X,he){for(var je in he)he.hasOwnProperty(je)&&(X[je]=he[je])},ee(q,ue)};return function(ae,q){ee(ae,q);function ue(){this.constructor=ae}ae.prototype=q===null?Object.create(q):(ue.prototype=q.prototype,new ue)}}(),l=function(ee,ae,q,ue){function X(he){return he instanceof q?he:new q(function(je){je(he)})}return new(q||(q=Promise))(function(he,je){function Xe(we){try{ge(ue.next(we))}catch(Re){je(Re)}}function me(we){try{ge(ue.throw(we))}catch(Re){je(Re)}}function ge(we){we.done?he(we.value):X(we.value).then(Xe,me)}ge((ue=ue.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:[]},ue,X,he,je;return je={next:Xe(0),throw:Xe(1),return:Xe(2)},typeof Symbol=="function"&&(je[Symbol.iterator]=function(){return this}),je;function Xe(ge){return function(we){return me([ge,we])}}function me(ge){if(ue)throw new TypeError("Generator is already executing.");for(;q;)try{if(ue=1,X&&(he=ge[0]&2?X.return:ge[0]?X.throw||((he=X.return)&&he.call(X),0):X.next)&&!(he=he.call(X,ge[1])).done)return he;(X=0,he)&&(ge=[ge[0]&2,he.value]);switch(ge[0]){case 0:case 1:he=ge;break;case 4:return q.label++,{value:ge[1],done:!1};case 5:q.label++,X=ge[1],ge=[0];continue;case 7:ge=q.ops.pop(),q.trys.pop();continue;default:if(!(he=q.trys,he=he.length>0&&he[he.length-1])&&(ge[0]===6||ge[0]===2)){q=0;continue}if(ge[0]===3&&(!he||ge[1]>he[0]&&ge[1]<he[3])){q.label=ge[1];break}if(ge[0]===6&&q.label<he[1]){q.label=he[1],he=ge;break}if(he&&q.label<he[2]){q.label=he[2],q.ops.push(ge);break}he[2]&&q.ops.pop(),q.trys.pop();continue}ge=ae.call(ee,q)}catch(we){ge=[6,we],X=0}finally{ue=he=0}if(ge[0]&5)throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}},m=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(ue){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 ue=ee.call(this)||this,X=[],he=function(ve,Q){var C=ve.links.map(function(F){return new m(F,Q)});X=ae._union(X,C),Object(O.g)(Q)&&je._register(Q)},je=this,Xe=0,me=q;Xe<me.length;Xe++){var ge=me[Xe],we=ge[0],Re=ge[1];he(we,Re)}return ue.links=X,ue}return ae._union=function(q,ue){var X=[],he,je,Xe,me;for(he=0,Xe=0,je=q.length,me=ue.length;he<je&&Xe<me;){var ge=q[he],we=ue[Xe];if(v.a.areIntersectingOrTouching(ge.range,we.range)){he++;continue}var Re=v.a.compareRangesUsingStarts(ge.range,we.range);Re<0?(X.push(ge),he++):(X.push(we),Xe++)}for(;he<je;he++)X.push(q[he]);for(;Xe<me;Xe++)X.push(ue[Xe]);return X},ae}(O.a);function L(ee,ae){var q=[],ue=y.s.ordered(ee).reverse().map(function(X,he){return Promise.resolve(X.provideLinks(ee,ae)).then(function(je){je&&(q[he]=[je,X])},U.f)});return Promise.all(ue).then(function(){var X=new E(Object(c.d)(q));return ae.isCancellationRequested?(X.dispose(),new E([])):X})}p.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 ue,X,he,je;return d(this,function(Xe){switch(Xe.label){case 0:return ue=ae[0],ue instanceof f.a?(X=ee.get(w.a).getModel(ue),X?[4,L(X,I.a.None)]:[2,[]]):[2,[]];case 1:return he=Xe.sent(),he?(je=he.links.slice(0),he.dispose(),[2,je]):[2,[]]}})})});var A=e("sM1p"),k=e("W9cx"),R=e("MD5Z"),$=e("t9D7"),ie=function(){var ee=function(q,ue){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,he){X.__proto__=he}||function(X,he){for(var je in he)he.hasOwnProperty(je)&&(X[je]=he[je])},ee(q,ue)};return function(ae,q){ee(ae,q);function ue(){this.constructor=ae}ae.prototype=q===null?Object.create(q):(ue.prototype=q.prototype,new ue)}}(),W=function(){return W=Object.assign||function(ee){for(var ae,q=1,ue=arguments.length;q<ue;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,ue){var X=arguments.length,he=X<3?ae:ue===null?ue=Object.getOwnPropertyDescriptor(ae,q):ue,je;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(ee,ae,q,ue);else for(var Xe=ee.length-1;Xe>=0;Xe--)(je=ee[Xe])&&(he=(X<3?je(he):X>3?je(ae,q,he):je(ae,q))||he);return X>3&&he&&Object.defineProperty(ae,q,he),he},le=function(ee,ae){return function(q,ue){ae(q,ue,ee)}},Ce=function(ee,ae,q,ue){function X(he){return he instanceof q?he:new q(function(je){je(he)})}return new(q||(q=Promise))(function(he,je){function Xe(we){try{ge(ue.next(we))}catch(Re){je(Re)}}function me(we){try{ge(ue.throw(we))}catch(Re){je(Re)}}function ge(we){we.done?he(we.value):X(we.value).then(Xe,me)}ge((ue=ue.apply(ee,ae||[])).next())})},Me=function(ee,ae){var q={label:0,sent:function(){if(he[0]&1)throw he[1];return he[1]},trys:[],ops:[]},ue,X,he,je;return je={next:Xe(0),throw:Xe(1),return:Xe(2)},typeof Symbol=="function"&&(je[Symbol.iterator]=function(){return this}),je;function Xe(ge){return function(we){return me([ge,we])}}function me(ge){if(ue)throw new TypeError("Generator is already executing.");for(;q;)try{if(ue=1,X&&(he=ge[0]&2?X.return:ge[0]?X.throw||((he=X.return)&&he.call(X),0):X.next)&&!(he=he.call(X,ge[1])).done)return he;(X=0,he)&&(ge=[ge[0]&2,he.value]);switch(ge[0]){case 0:case 1:he=ge;break;case 4:return q.label++,{value:ge[1],done:!1};case 5:q.label++,X=ge[1],ge=[0];continue;case 7:ge=q.ops.pop(),q.trys.pop();continue;default:if(!(he=q.trys,he=he.length>0&&he[he.length-1])&&(ge[0]===6||ge[0]===2)){q=0;continue}if(ge[0]===3&&(!he||ge[1]>he[0]&&ge[1]<he[3])){q.label=ge[1];break}if(ge[0]===6&&q.label<he[1]){q.label=he[1],he=ge;break}if(he&&q.label<he[2]){q.label=he[2],q.ops.push(ge);break}he[2]&&q.ops.pop(),q.trys.pop();continue}ge=ae.call(ee,q)}catch(we){ge=[6,we],X=0}finally{ue=he=0}if(ge[0]&5)throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}};function Te(ee,ae){var q=ee.url&&/^command:/i.test(ee.url.toString()),ue=ee.tooltip?ee.tooltip:q?re.a("links.navigate.executeCmd","Execute command"):re.a("links.navigate.follow","Follow link"),X=ae?H.e?re.a("links.navigate.kb.meta.mac","cmd + click"):re.a("links.navigate.kb.meta","ctrl + click"):H.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("["+ue+"]("+ee.url.toString()+") ("+X+")");return he}else return new z.a().appendText(ue+" ("+X+")")}var Fe={general:u.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:u.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},Ue=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,ue){var X=W({},ue?Fe.active:Fe.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}(),Pe=function(){function ee(ae,q,ue){var X=this;this.listenersToRemove=new O.b,this.editor=ae,this.openerService=q,this.notificationService=ue;var he=new _.a(ae);this.listenersToRemove.add(he),this.listenersToRemove.add(he.onMouseMoveOrRelevantKeyDown(function(je){var Xe=je[0],me=je[1];X._onEditorMouseMove(Xe,me)})),this.listenersToRemove.add(he.onExecute(function(je){X.onEditorMouseUp(je)})),this.listenersToRemove.add(he.onCancel(function(je){X.cleanUpActiveLinkDecoration()})),this.enabled=ae.getOption(52),this.listenersToRemove.add(ae.onDidChangeConfiguration(function(je){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(je){return X.onChange()})),this.listenersToRemove.add(ae.onDidChangeModel(function(je){return X.onModelChanged()})),this.listenersToRemove.add(ae.onDidChangeModelLanguage(function(je){return X.onModelModeChanged()})),this.listenersToRemove.add(y.s.onDidChange(function(je){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 Ce(this,void 0,void 0,function(){var ae,q,ue;return Me(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 L(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 ue=X.sent(),Object(U.e)(ue),[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",ue=[],X=Object.keys(this.currentOccurrences),he=0,je=X.length;he<je;he++){var Xe=X[he],me=this.currentOccurrences[Xe];ue.push(me.decorationId)}var ge=[];if(ae)for(var we=0,Re=ae;we<Re.length;we++){var Ee=Re[we];ge.push(Ue.decoration(Ee,q))}var ve=this.editor.deltaDecorations(ue,ge);this.currentOccurrences={},this.activeLinkDecorationId=null;for(var he=0,je=ve.length;he<je;he++){var me=new Ue(ae[he],ve[he]);this.currentOccurrences[me.decorationId]=me}},ee.prototype._onEditorMouseMove=function(ae,q){var ue=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(je){he.activate(je,X),ue.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(ue){q.deactivate(ue,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,ue){var X=this;if(ue===void 0&&(ue=!1),!this.openerService)return;var he=ae.link;he.resolve(I.a.None).then(function(je){return X.openerService.open(je,{openToSide:q,fromUserGesture:ue})},function(je){var Xe=je instanceof Error?je.message:je;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(U.e)(je)})},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),ue=0,X=q;ue<X.length;ue++){var he=X[ue],je=this.currentOccurrences[he.id];if(je)return je}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,k.a),le(2,A.a)],ee),ee}(),ne=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,ue){var X=Pe.get(ue);if(!X)return;if(!ue.hasModel())return;for(var he=ue.getSelections(),je=0,Xe=he;je<Xe.length;je++){var me=Xe[je],ge=X.getLinkOccurrence(me.getEndPosition());ge&&X.openLinkOccurrence(ge,!1)}},ae}(x.b);Object(x.h)(Pe.ID,Pe),Object(x.f)(ne),Object($.e)(function(ee,ae){var q=ee.getColor(R.n);q&&ae.addRule(".monaco-editor .detected-link-active { color: "+q+" !important; }")})},"2MPD":function(Lt,j,e){},"2Tsy":function(Lt,j,e){},"2V9f":function(Lt,j,e){},"2gzu":function(Lt,j,e){"use strict";e.d(j,"b",function(){return s}),e.d(j,"a",function(){return l});var T=e("CHaL"),re=e.n(T),J=e("3/fG"),I=e("N0LK"),U=e("8HAY"),z=e("WqXY"),O=e("EffR"),H=e("uDWl"),x=e("X+cX"),u=e("pmY6"),y=e("GJhM"),_=e("MNsG"),f=function(){var A=function(R,$){return A=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])},A(R,$)};return function(k,R){A(k,R);function $(){this.constructor=k}k.prototype=R===null?Object.create(R):($.prototype=R.prototype,new $)}}(),v=function(){for(var A=0,k=0,R=arguments.length;k<R;k++)A+=arguments[k].length;for(var $=Array(A),ie=0,k=0;k<R;k++)for(var W=arguments[k],B=0,le=W.length;B<le;B++,ie++)$[ie]=W[B];return $},w=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,p=/(&amp;)?(&amp;)([^\s&])/g,c;(function(A){A[A.Right=0]="Right",A[A.Left=1]="Left"})(c||(c={}));var s=function(A){f(k,A);function k(R,$,ie){var W=A.call(this,ie||"submenu",R,"",!0)||this;return W.entries=$,W}return k}(U.a),l=function(A){f(k,A);function k(R,$,ie){ie===void 0&&(ie={});var W=this;Object(O.f)(R,"monaco-menu-container"),R.setAttribute("role","presentation");var B=document.createElement("div");Object(O.f)(B,"monaco-menu"),B.setAttribute("role","presentation"),W=A.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],_.e?[10]:[]),keyDown:!0}})||this,W.menuElement=B,W.actionsList.setAttribute("role","menu"),W.actionsList.tabIndex=0,W.menuDisposables=W._register(new u.b),Object(O.j)(B,O.d.KEY_DOWN,function(Me){var Te=new H.a(Me);Te.equals(2)&&Me.preventDefault()}),ie.enableMnemonics&&W.menuDisposables.add(Object(O.j)(B,O.d.KEY_DOWN,function(Me){var Te=Me.key.toLocaleLowerCase();if(W.mnemonics.has(Te)){O.c.stop(Me,!0);var Fe=W.mnemonics.get(Te);if(Fe.length===1&&(Fe[0]instanceof m&&Fe[0].container&&W.focusItemByElement(Fe[0].container),Fe[0].onClick(Me)),Fe.length>1){var Ue=Fe.shift();Ue&&Ue.container&&(W.focusItemByElement(Ue.container),Fe.push(Ue)),W.mnemonics.set(Te,Fe)}}})),_.d&&W._register(Object(O.j)(B,O.d.KEY_DOWN,function(Me){var Te=new H.a(Me);Te.equals(14)||Te.equals(11)?(W.focusedItem=W.viewItems.length-1,W.focusNext(),O.c.stop(Me,!0)):(Te.equals(13)||Te.equals(12))&&(W.focusedItem=0,W.focusPrevious(),O.c.stop(Me,!0))})),W._register(Object(O.j)(W.domNode,O.d.MOUSE_OUT,function(Me){var Te=Me.relatedTarget;Object(O.K)(Te,W.domNode)||(W.focusedItem=void 0,W.updateFocus(),Me.stopPropagation())})),W._register(Object(O.j)(W.actionsList,O.d.MOUSE_OVER,function(Me){var Te=Me.target;if(!Te||!Object(O.K)(Te,W.actionsList)||Te===W.actionsList)return;for(;Te.parentElement!==W.actionsList&&Te.parentElement!==null;)Te=Te.parentElement;if(Object(O.I)(Te,"action-item")){var Fe=W.focusedItem;W.setFocusedItem(Te),Fe!==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 Ce=W.scrollableElement.getDomNode();return Ce.style.position="",W._register(Object(O.j)(Ce,O.d.MOUSE_UP,function(Me){Me.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(Me){return!(Me instanceof E)}).forEach(function(Me,Te,Fe){Me.updatePositionInSet(Te+1,Fe.length)}),W}return k.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(Ce){(Ce instanceof d||Ce instanceof E)&&Ce.style(R)})},k.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(k.prototype,"onScroll",{get:function(){return this.scrollableElement.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),k.prototype.focusItemByElement=function(R){var $=this.focusedItem;this.setFocusedItem(R),$!==this.focusedItem&&this.updateFocus()},k.prototype.setFocusedItem=function(R){for(var $=0;$<this.actionsList.children.length;$++){var ie=this.actionsList.children[$];if(R===ie){this.focusedItem=$;break}}},k.prototype.updateFocus=function(R){A.prototype.updateFocus.call(this,R,!0),typeof this.focusedItem!="undefined"&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})},k.prototype.doGetActionViewItem=function(R,$,ie){if(R instanceof z.d)return new E($.context,R,{icon:!0});if(R instanceof s){var W=new m(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 Ce={enableMnemonics:$.enableMnemonics};if($.getKeyBinding){var Me=$.getKeyBinding(R);if(Me){var Te=Me.getLabel();Te&&(Ce.keybinding=Te)}}var W=new d($.context,R,Ce);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}},k}(z.a),d=function(A){f(k,A);function k(R,$,ie){ie===void 0&&(ie={});var W=this;if(ie.isMenu=!0,W=A.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=w.exec(B);le&&(W.mnemonic=(le[1]?le[1]:le[3]).toLocaleLowerCase())}}return W.runOnceToEnableMouseUp=new x.d(function(){if(!W.element)return;W._register(Object(O.j)(W.element,O.d.MOUSE_UP,function(Ce){if(Ce.defaultPrevented)return;O.c.stop(Ce,!0),W.onClick(Ce)}))},100),W._register(W.runOnceToEnableMouseUp),W}return k.prototype.render=function(R){if(A.prototype.render.call(this,R),!this.element)return;this.container=R,this.item=Object(O.q)(this.element,Object(O.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(O.q)(this.item,Object(O.a)("span.menu-item-check.codicon.codicon-check")),this.check.setAttribute("role","none"),this.label=Object(O.q)(this.item,Object(O.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(O.q)(this.item,Object(O.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},k.prototype.blur=function(){A.prototype.blur.call(this),this.applyStyle()},k.prototype.focus=function(){A.prototype.focus.call(this),this.item&&this.item.focus(),this.applyStyle()},k.prototype.updatePositionInSet=function(R,$){this.item&&(this.item.setAttribute("aria-posinset",""+R),this.item.setAttribute("aria-setsize",""+$))},k.prototype.updateLabel=function(){if(this.options.label){var R=this.getAction().label;if(R){var $=L(R);this.options.enableMnemonics||(R=$),this.label&&this.label.setAttribute("aria-label",$.replace(/&&/g,"&"));var ie=w.exec(R);if(ie){R=I.o(R),p.lastIndex=0;for(var W=p.exec(R);W&&W[1];)W=p.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())}},k.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)},k.prototype.updateClass=function(){this.cssClass&&this.item&&Object(O.Q)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(O.f)(this.label,"icon"),this.cssClass&&Object(O.g)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(O.P)(this.label,"icon")},k.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(O.P)(this.element,"disabled"),this.item&&(Object(O.P)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(O.f)(this.element,"disabled"),this.item&&(Object(O.f)(this.item,"disabled"),Object(O.S)(this.item)))},k.prototype.updateChecked=function(){if(!this.item)return;this.getAction().checked?(Object(O.f)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(O.P)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false"))},k.prototype.getMnemonic=function(){return this.mnemonic},k.prototype.applyStyle=function(){if(!this.menuStyle)return;var R=this.element&&Object(O.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)},k.prototype.style=function(R){this.menuStyle=R,this.applyStyle()},k}(z.c),m=function(A){f(k,A);function k(R,$,ie,W){var B=A.call(this,R,R,W)||this;return B.submenuActions=$,B.parentData=ie,B.submenuOptions=W,B.mysubmenu=null,B.submenuDisposables=B._register(new u.b),B.mouseOver=!1,B.expandDirection=W&&W.expandDirection!==void 0?W.expandDirection:c.Right,B.showScheduler=new x.d(function(){B.mouseOver&&(B.cleanupExistingSubmenu(!1),B.createSubmenu(!1))},250),B.hideScheduler=new x.d(function(){B.element&&!Object(O.K)(document.activeElement,B.element)&&B.parentData.submenu===B.mysubmenu&&(B.parentData.parent.focus(!1),B.cleanupExistingSubmenu(!0))},750),B}return k.prototype.render=function(R){var $=this;if(A.prototype.render.call(this,R),!this.element)return;this.item&&(Object(O.f)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(O.q)(this.item,Object(O.a)("span.submenu-indicator.codicon.codicon-chevron-right")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(O.j)(this.element,O.d.KEY_UP,function(ie){var W=new H.a(ie);(W.equals(17)||W.equals(3))&&(O.c.stop(ie,!0),$.createSubmenu(!0))})),this._register(Object(O.j)(this.element,O.d.KEY_DOWN,function(ie){var W=new H.a(ie);document.activeElement===$.item&&((W.equals(17)||W.equals(3))&&O.c.stop(ie,!0))})),this._register(Object(O.j)(this.element,O.d.MOUSE_OVER,function(ie){$.mouseOver||($.mouseOver=!0,$.showScheduler.schedule())})),this._register(Object(O.j)(this.element,O.d.MOUSE_LEAVE,function(ie){$.mouseOver=!1})),this._register(Object(O.j)(this.element,O.d.FOCUS_OUT,function(ie){$.element&&!Object(O.K)(document.activeElement,$.element)&&$.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(function(){$.parentData.parent.focus(!1),$.cleanupExistingSubmenu(!1)}))},k.prototype.onClick=function(R){O.c.stop(R,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)},k.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))},k.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(O.q)(this.element,Object(O.a)("div.monaco-submenu")),Object(O.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===c.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===c.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(O.j)(this.submenuContainer,O.d.KEY_UP,function(Ce){var Me=new H.a(Ce);Me.equals(15)&&(O.c.stop(Ce,!0),$.parentData.parent.focus(),$.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(O.j)(this.submenuContainer,O.d.KEY_DOWN,function(Ce){var Me=new H.a(Ce);Me.equals(15)&&O.c.stop(Ce,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(function(){$.parentData.parent.focus(),$.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(R),this.mysubmenu=this.parentData.submenu}},k.prototype.updateAriaExpanded=function(R){var $;this.item&&(($=this.item)===null||$===void 0||$.setAttribute("aria-expanded",R))},k.prototype.applyStyle=function(){if(A.prototype.applyStyle.call(this),!this.menuStyle)return;var R=this.element&&Object(O.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)},k.prototype.dispose=function(){A.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},k}(d),E=function(A){f(k,A);function k(){return A!==null&&A.apply(this,arguments)||this}return k.prototype.style=function(R){this.label&&(this.label.style.borderBottomColor=R.separatorColor?""+R.separatorColor:"")},k}(z.b);function L(A){var k=w,R=k.exec(A);if(!R)return A;var $=!R[1];return A.replace(k,$?"$2$3":"").trim()}},"3/fG":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});function T(J,I){var U;return I.length===0?U=J:U=J.replace(/\{(\d+)\}/g,function(z,O){var H=O[0];return typeof I[H]!="undefined"?I[H]:z}),U}function re(J,I){for(var U=[],z=2;z<arguments.length;z++)U[z-2]=arguments[z];return T(I,U)}},"3Rsk":function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=e("ic2d"),re=e("MI8n"),J={JSONContribution:"base.contributions.json"};function I(O){return O.length>0&&O.charAt(O.length-1)==="#"?O.substring(0,O.length-1):O}var U=function(){function O(){this._onDidChangeSchema=new re.a,this.schemasById={}}return O.prototype.registerSchema=function(H,x){this.schemasById[I(H)]=x,this._onDidChangeSchema.fire(H)},O.prototype.notifySchemaChanged=function(H){this._onDidChangeSchema.fire(H)},O}(),z=new U;T.a.add(J.JSONContribution,z)},"3qCu":function(Lt,j,e){"use strict";e.d(j,"a",function(){return Pe});var T=e("EffR"),re=e("Md8J"),J=e("/cxE"),I=e("eLzo"),U=e("nD70"),z;(function(ne){"use strict";var ee={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:C,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:C,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:C,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=we(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=we(ee.item,"gm").replace(/bull/g,ee.bullet).getRegex(),ee.list=we(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=we(ee.html,"i").replace("comment",ee._comment).replace("tag",ee._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ee.paragraph=we(ee.paragraph).replace("hr",ee.hr).replace("heading",ee.heading).replace("lheading",ee.lheading).replace("tag",ee._tag).getRegex(),ee.blockquote=we(ee.blockquote).replace("paragraph",ee.paragraph).getRegex(),ee.normal=F({},ee),ee.gfm=F({},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=we(ee.paragraph).replace("(?!","(?!"+ee.gfm.fences.source.replace("\\1","\\2")+"|"+ee.list.source.replace("\\1","\\3")+"|").getRegex(),ee.tables=F({},ee.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),ee.pedantic=F({},ee.normal,{html:we(`^ *(?: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(Se){this.tokens=[],this.tokens.links=Object.create(null),this.options=Se||De.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(Se,Ve){var Qe=new ae(Ve);return Qe.lex(Se)},ae.prototype.lex=function(Se){return Se=Se.replace(/\r\n|\r/g,`
`).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,`
`),this.token(Se,!0)},ae.prototype.token=function(Se,Ve){Se=Se.replace(/^ +$/gm,"");for(var Qe,it,pt,Rt,Mt,zt,uo,ao,so,Pt,ft,vt,At,at,tt,ut;Se;){if((pt=this.rules.newline.exec(Se))&&(Se=Se.substring(pt[0].length),pt[0].length>1&&this.tokens.push({type:"space"})),pt=this.rules.code.exec(Se)){Se=Se.substring(pt[0].length),pt=pt[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?pt:oe(pt,`
`)});continue}if(pt=this.rules.fences.exec(Se)){Se=Se.substring(pt[0].length),this.tokens.push({type:"code",lang:pt[2]?pt[2].trim():pt[2],text:pt[3]||""});continue}if(pt=this.rules.heading.exec(Se)){Se=Se.substring(pt[0].length),this.tokens.push({type:"heading",depth:pt[1].length,text:pt[2]});continue}if((pt=this.rules.nptable.exec(Se))&&(zt={type:"table",header:se(pt[1].replace(/^ *| *\| *$/g,"")),align:pt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pt[3]?pt[3].replace(/\n$/,"").split(`
`):[]},zt.header.length===zt.align.length)){for(Se=Se.substring(pt[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(pt=this.rules.hr.exec(Se)){Se=Se.substring(pt[0].length),this.tokens.push({type:"hr"});continue}if(pt=this.rules.blockquote.exec(Se)){Se=Se.substring(pt[0].length),this.tokens.push({type:"blockquote_start"}),pt=pt[0].replace(/^ *> ?/gm,""),this.token(pt,Ve),this.tokens.push({type:"blockquote_end"});continue}if(pt=this.rules.list.exec(Se)){for(Se=Se.substring(pt[0].length),Rt=pt[2],at=Rt.length>1,uo={type:"list_start",ordered:at,start:at?+Rt:"",loose:!1},this.tokens.push(uo),pt=pt[0].match(this.rules.item),ao=[],Qe=!1,At=pt.length,ft=0;ft<At;ft++)zt=pt[ft],Pt=zt.length,zt=zt.replace(/^ *([*+-]|\d+\.) */,""),~zt.indexOf(`
`)&&(Pt-=zt.length,zt=this.options.pedantic?zt.replace(/^ {1,4}/gm,""):zt.replace(new RegExp("^ {1,"+Pt+"}","gm"),"")),ft!==At-1&&(Mt=ee.bullet.exec(pt[ft+1])[0],(Rt.length>1?Mt.length===1:Mt.length>1||this.options.smartLists&&Mt!==Rt)&&(Se=pt.slice(ft+1).join(`
`)+Se,ft=At-1)),it=Qe||/\n\n(?!\s*$)/.test(zt),ft!==At-1&&(Qe=zt.charAt(zt.length-1)===`
`,it||(it=Qe)),it&&(uo.loose=!0),tt=/^\[[ xX]\] /.test(zt),ut=void 0,tt&&(ut=zt[1]!==" ",zt=zt.replace(/^\[[ xX]\] +/,"")),so={type:"list_item_start",task:tt,checked:ut,loose:it},ao.push(so),this.tokens.push(so),this.token(zt,!1),this.tokens.push({type:"list_item_end"});if(uo.loose)for(At=ao.length,ft=0;ft<At;ft++)ao[ft].loose=!0;this.tokens.push({type:"list_end"});continue}if(pt=this.rules.html.exec(Se)){Se=Se.substring(pt[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(pt[1]==="pre"||pt[1]==="script"||pt[1]==="style"),text:pt[0]});continue}if(Ve&&(pt=this.rules.def.exec(Se))){Se=Se.substring(pt[0].length),pt[3]&&(pt[3]=pt[3].substring(1,pt[3].length-1)),vt=pt[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[vt]||(this.tokens.links[vt]={href:pt[2],title:pt[3]});continue}if((pt=this.rules.table.exec(Se))&&(zt={type:"table",header:se(pt[1].replace(/^ *| *\| *$/g,"")),align:pt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pt[3]?pt[3].replace(/\n$/,"").split(`
`):[]},zt.header.length===zt.align.length)){for(Se=Se.substring(pt[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(pt=this.rules.lheading.exec(Se)){Se=Se.substring(pt[0].length),this.tokens.push({type:"heading",depth:pt[2]==="="?1:2,text:pt[1]});continue}if(Ve&&(pt=this.rules.paragraph.exec(Se))){Se=Se.substring(pt[0].length),this.tokens.push({type:"paragraph",text:pt[1].charAt(pt[1].length-1)===`
`?pt[1].slice(0,-1):pt[1]});continue}if(pt=this.rules.text.exec(Se)){Se=Se.substring(pt[0].length),this.tokens.push({type:"text",text:pt[0]});continue}if(Se)throw new Error("Infinite loop on byte: "+Se.charCodeAt(0))}return this.tokens};var q={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:C,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:C,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};q._punctuation=`!"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~`,q.em=we(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=we(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=we(q.tag).replace("comment",ee._comment).replace("attribute",q._attribute).getRegex(),q._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,q._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,q._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,q.link=we(q.link).replace("label",q._label).replace("href",q._href).replace("title",q._title).getRegex(),q.reflink=we(q.reflink).replace("label",q._label).getRegex(),q.normal=F({},q),q.pedantic=F({},q.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:we(/^!?\[(label)\]\((.*?)\)/).replace("label",q._label).getRegex(),reflink:we(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q._label).getRegex()}),q.gfm=F({},q.normal,{escape:we(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=we(q.gfm.url,"i").replace("email",q.gfm._extended_email).getRegex(),q.breaks=F({},q.gfm,{br:we(q.br).replace("{2,}","*").getRegex(),text:we(q.gfm.text).replace(/\{2,\}/g,"*").getRegex()});function ue(Se,Ve){if(this.options=Ve||De.defaults,this.links=Se,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)}ue.rules=q,ue.output=function(Se,Ve,Qe){var it=new ue(Ve,Qe);return it.output(Se)},ue.prototype.output=function(Se){for(var Ve="",Qe,it,pt,Rt,Mt,zt;Se;){if(Mt=this.rules.escape.exec(Se)){Se=Se.substring(Mt[0].length),Ve+=me(Mt[1]);continue}if(Mt=this.rules.tag.exec(Se)){!this.inLink&&/^<a /i.test(Mt[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(Mt[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Mt[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Mt[0])&&(this.inRawBlock=!1),Se=Se.substring(Mt[0].length),Ve+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Mt[0]):me(Mt[0]):Mt[0];continue}if(Mt=this.rules.link.exec(Se)){var uo=be(Mt[2],"()");if(uo>-1){var ao=Mt[0].length-(Mt[2].length-uo)-(Mt[3]||"").length;Mt[2]=Mt[2].substring(0,uo),Mt[0]=Mt[0].substring(0,ao).trim(),Mt[3]=""}Se=Se.substring(Mt[0].length),this.inLink=!0,pt=Mt[2],this.options.pedantic?(Qe=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(pt),Qe?(pt=Qe[1],Rt=Qe[3]):Rt=""):Rt=Mt[3]?Mt[3].slice(1,-1):"",pt=pt.trim().replace(/^<([\s\S]*)>$/,"$1"),Ve+=this.outputLink(Mt,{href:ue.escapes(pt),title:ue.escapes(Rt)}),this.inLink=!1;continue}if((Mt=this.rules.reflink.exec(Se))||(Mt=this.rules.nolink.exec(Se))){if(Se=Se.substring(Mt[0].length),Qe=(Mt[2]||Mt[1]).replace(/\s+/g," "),Qe=this.links[Qe.toLowerCase()],!Qe||!Qe.href){Ve+=Mt[0].charAt(0),Se=Mt[0].substring(1)+Se;continue}this.inLink=!0,Ve+=this.outputLink(Mt,Qe),this.inLink=!1;continue}if(Mt=this.rules.strong.exec(Se)){Se=Se.substring(Mt[0].length),Ve+=this.renderer.strong(this.output(Mt[4]||Mt[3]||Mt[2]||Mt[1]));continue}if(Mt=this.rules.em.exec(Se)){Se=Se.substring(Mt[0].length),Ve+=this.renderer.em(this.output(Mt[6]||Mt[5]||Mt[4]||Mt[3]||Mt[2]||Mt[1]));continue}if(Mt=this.rules.code.exec(Se)){Se=Se.substring(Mt[0].length),Ve+=this.renderer.codespan(me(Mt[2].trim(),!0));continue}if(Mt=this.rules.br.exec(Se)){Se=Se.substring(Mt[0].length),Ve+=this.renderer.br();continue}if(Mt=this.rules.del.exec(Se)){Se=Se.substring(Mt[0].length),Ve+=this.renderer.del(this.output(Mt[1]));continue}if(Mt=this.rules.autolink.exec(Se)){Se=Se.substring(Mt[0].length),Mt[2]==="@"?(it=me(this.mangle(Mt[1])),pt="mailto:"+it):(it=me(Mt[1]),pt=it),Ve+=this.renderer.link(pt,null,it);continue}if(!this.inLink&&(Mt=this.rules.url.exec(Se))){if(Mt[2]==="@")it=me(Mt[0]),pt="mailto:"+it;else{do zt=Mt[0],Mt[0]=this.rules._backpedal.exec(Mt[0])[0];while(zt!==Mt[0]);it=me(Mt[0]),Mt[1]==="www."?pt="http://"+it:pt=it}Se=Se.substring(Mt[0].length),Ve+=this.renderer.link(pt,null,it);continue}if(Mt=this.rules.text.exec(Se)){Se=Se.substring(Mt[0].length),this.inRawBlock?Ve+=this.renderer.text(Mt[0]):Ve+=this.renderer.text(me(this.smartypants(Mt[0])));continue}if(Se)throw new Error("Infinite loop on byte: "+Se.charCodeAt(0))}return Ve},ue.escapes=function(Se){return Se&&Se.replace(ue.rules._escapes,"$1")},ue.prototype.outputLink=function(Se,Ve){var Qe=Ve.href,it=Ve.title?me(Ve.title):null;return Se[0].charAt(0)!=="!"?this.renderer.link(Qe,it,this.output(Se[1])):this.renderer.image(Qe,it,me(Se[1]))},ue.prototype.smartypants=function(Se){return this.options.smartypants?Se.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"):Se},ue.prototype.mangle=function(Se){if(!this.options.mangle)return Se;for(var Ve="",Qe=Se.length,it=0,pt;it<Qe;it++)pt=Se.charCodeAt(it),Math.random()>.5&&(pt="x"+pt.toString(16)),Ve+="&#"+pt+";";return Ve};function X(Se){this.options=Se||De.defaults}X.prototype.code=function(Se,Ve,Qe){var it=(Ve||"").match(/\S*/)[0];if(this.options.highlight){var pt=this.options.highlight(Se,it);pt!=null&&pt!==Se&&(Qe=!0,Se=pt)}return it?'<pre><code class="'+this.options.langPrefix+me(it,!0)+'">'+(Qe?Se:me(Se,!0))+`</code></pre>
`:"<pre><code>"+(Qe?Se:me(Se,!0))+"</code></pre>"},X.prototype.blockquote=function(Se){return`<blockquote>
`+Se+`</blockquote>
`},X.prototype.html=function(Se){return Se},X.prototype.heading=function(Se,Ve,Qe,it){return this.options.headerIds?"<h"+Ve+' id="'+this.options.headerPrefix+it.slug(Qe)+'">'+Se+"</h"+Ve+`>
`:"<h"+Ve+">"+Se+"</h"+Ve+`>
`},X.prototype.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},X.prototype.list=function(Se,Ve,Qe){var it=Ve?"ol":"ul",pt=Ve&&Qe!==1?' start="'+Qe+'"':"";return"<"+it+pt+`>
`+Se+"</"+it+`>
`},X.prototype.listitem=function(Se){return"<li>"+Se+`</li>
`},X.prototype.checkbox=function(Se){return"<input "+(Se?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},X.prototype.paragraph=function(Se){return"<p>"+Se+`</p>
`},X.prototype.table=function(Se,Ve){return Ve&&(Ve="<tbody>"+Ve+"</tbody>"),`<table>
<thead>
`+Se+`</thead>
`+Ve+`</table>
`},X.prototype.tablerow=function(Se){return`<tr>
`+Se+`</tr>
`},X.prototype.tablecell=function(Se,Ve){var Qe=Ve.header?"th":"td",it=Ve.align?"<"+Qe+' align="'+Ve.align+'">':"<"+Qe+">";return it+Se+"</"+Qe+`>
`},X.prototype.strong=function(Se){return"<strong>"+Se+"</strong>"},X.prototype.em=function(Se){return"<em>"+Se+"</em>"},X.prototype.codespan=function(Se){return"<code>"+Se+"</code>"},X.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},X.prototype.del=function(Se){return"<del>"+Se+"</del>"},X.prototype.link=function(Se,Ve,Qe){if(Se=Re(this.options.sanitize,this.options.baseUrl,Se),Se===null)return Qe;var it='<a href="'+me(Se)+'"';return Ve&&(it+=' title="'+Ve+'"'),it+=">"+Qe+"</a>",it},X.prototype.image=function(Se,Ve,Qe){if(Se=Re(this.options.sanitize,this.options.baseUrl,Se),Se===null)return Qe;var it='<img src="'+Se+'" alt="'+Qe+'"';return Ve&&(it+=' title="'+Ve+'"'),it+=this.options.xhtml?"/>":">",it},X.prototype.text=function(Se){return Se};function he(){}he.prototype.strong=he.prototype.em=he.prototype.codespan=he.prototype.del=he.prototype.text=function(Se){return Se},he.prototype.link=he.prototype.image=function(Se,Ve,Qe){return""+Qe},he.prototype.br=function(){return""};function je(Se){this.tokens=[],this.token=null,this.options=Se||De.defaults,this.options.renderer=this.options.renderer||new X,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Xe}je.parse=function(Se,Ve){var Qe=new je(Ve);return Qe.parse(Se)},je.prototype.parse=function(Se){this.inline=new ue(Se.links,this.options),this.inlineText=new ue(Se.links,F({},this.options,{renderer:new he})),this.tokens=Se.reverse();for(var Ve="";this.next();)Ve+=this.tok();return Ve},je.prototype.next=function(){return this.token=this.tokens.pop()},je.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},je.prototype.parseText=function(){for(var Se=this.token.text;this.peek().type==="text";)Se+=`
`+this.next().text;return this.inline.output(Se)},je.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,ge(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 Se="",Ve="",Qe,it,pt,Rt;for(pt="",Qe=0;Qe<this.token.header.length;Qe++)pt+=this.renderer.tablecell(this.inline.output(this.token.header[Qe]),{header:!0,align:this.token.align[Qe]});for(Se+=this.renderer.tablerow(pt),Qe=0;Qe<this.token.cells.length;Qe++){for(it=this.token.cells[Qe],pt="",Rt=0;Rt<it.length;Rt++)pt+=this.renderer.tablecell(this.inline.output(it[Rt]),{header:!1,align:this.token.align[Rt]});Ve+=this.renderer.tablerow(pt)}return this.renderer.table(Se,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 Mt=this.token.ordered,zt=this.token.start;this.next().type!=="list_end";)Ve+=this.tok();return this.renderer.list(Ve,Mt,zt)}case"list_item_start":{Ve="";var uo=this.token.loose,ao=this.token.checked,so=this.token.task;for(this.token.task&&(Ve+=this.renderer.checkbox(ao));this.next().type!=="list_item_end";)Ve+=!uo&&this.token.type==="text"?this.parseText():this.tok();return this.renderer.listitem(Ve,so,ao)}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 Pt='Token with "'+this.token.type+'" type was not found.';if(this.options.silent)console.log(Pt);else throw new Error(Pt)}}};function Xe(){this.seen={}}Xe.prototype.slug=function(Se){var Ve=Se.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 me(Se,Ve){if(Ve){if(me.escapeTest.test(Se))return Se.replace(me.escapeReplace,function(Qe){return me.replacements[Qe]})}else if(me.escapeTestNoEncode.test(Se))return Se.replace(me.escapeReplaceNoEncode,function(Qe){return me.replacements[Qe]});return Se}me.escapeTest=/[&<>"']/,me.escapeReplace=/[&<>"']/g,me.replacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},me.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,me.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function ge(Se){return Se.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 we(Se,Ve){return Se=Se.source||Se,Ve=Ve||"",{replace:function(it,pt){return pt=pt.source||pt,pt=pt.replace(/(^|[^\[])\^/g,"$1"),Se=Se.replace(it,pt),this},getRegex:function(){return new RegExp(Se,Ve)}}}function Re(Se,Ve,Qe){if(Se){try{var it=decodeURIComponent(ge(Qe)).replace(/[^\w:]/g,"").toLowerCase()}catch(pt){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(pt){return null}return Qe}function Ee(Se,Ve){return ve[" "+Se]||(/^[^:]+:\/*[^/]*$/.test(Se)?ve[" "+Se]=Se+"/":ve[" "+Se]=oe(Se,"/",!0)),Se=ve[" "+Se],Ve.slice(0,2)==="//"?Se.replace(/:[\s\S]*/,":")+Ve:Ve.charAt(0)==="/"?Se.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+Ve:Se+Ve}var ve={},Q=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(){}C.exec=C;function F(Se){for(var Ve=1,Qe,it;Ve<arguments.length;Ve++){Qe=arguments[Ve];for(it in Qe)Object.prototype.hasOwnProperty.call(Qe,it)&&(Se[it]=Qe[it])}return Se}function se(Se,Ve){var Qe=Se.replace(/\|/g,function(Rt,Mt,zt){for(var uo=!1,ao=Mt;--ao>=0&&zt[ao]==="\\";)uo=!uo;return uo?"|":" |"}),it=Qe.split(/ \|/),pt=0;if(it.length>Ve)it.splice(Ve);else for(;it.length<Ve;)it.push("");for(;pt<it.length;pt++)it[pt]=it[pt].trim().replace(/\\\|/g,"|");return it}function oe(Se,Ve,Qe){if(Se.length===0)return"";for(var it=0;it<Se.length;){var pt=Se.charAt(Se.length-it-1);if(pt===Ve&&!Qe)it++;else if(pt!==Ve&&Qe)it++;else break}return Se.substr(0,Se.length-it)}function be(Se,Ve){if(Se.indexOf(Ve[1])===-1)return-1;for(var Qe=0,it=0;it<Se.length;it++)if(Se[it]==="\\")it++;else if(Se[it]===Ve[0])Qe++;else if(Se[it]===Ve[1]&&(Qe--,Qe<0))return it;return-1}function De(Se,Ve,Qe){if(typeof Se=="undefined"||Se===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Se!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Se)+", string expected");if(Qe||typeof Ve=="function"){Qe||(Qe=Ve,Ve=null),Ve=F({},De.defaults,Ve||{});var it=Ve.highlight,pt,Rt,Mt=0;try{pt=ae.lex(Se,Ve)}catch(uo){return Qe(uo)}Rt=pt.length;var zt=function(ao){if(ao)return Ve.highlight=it,Qe(ao);var so;try{so=je.parse(pt,Ve)}catch(Pt){ao=Pt}return Ve.highlight=it,ao?Qe(ao):Qe(null,so)};if(!it||it.length<3)return zt();if(delete Ve.highlight,!Rt)return zt();for(;Mt<pt.length;Mt++)(function(uo){return uo.type!=="code"?--Rt||zt():it(uo.text,uo.lang,function(ao,so){if(ao)return zt(ao);if(so==null||so===uo.text)return--Rt||zt();uo.text=so,uo.escaped=!0,--Rt||zt()})})(pt[Mt]);return}try{return Ve&&(Ve=F({},De.defaults,Ve)),je.parse(ae.lex(Se,Ve),Ve)}catch(uo){if(uo.message+=`
Please report this to https://github.com/markedjs/marked.`,(Ve||De.defaults).silent)return"<p>An error occurred:</p><pre>"+me(uo.message+"",!0)+"</pre>";throw uo}}De.options=De.setOptions=function(Se){return F(De.defaults,Se),De},De.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}},De.defaults=De.getDefaults(),De.Parser=je,De.parser=je.parse,De.Renderer=X,De.TextRenderer=he,De.Lexer=ae,De.lexer=ae.lex,De.InlineLexer=ue,De.inlineLexer=ue.output,De.Slugger=Xe,De.parse=De,z=De}).call(void 0);var O=z,H=z.Parser,x=z.parser,u=z.Renderer,y=z.TextRenderer,_=z.Lexer,f=z.lexer,v=z.InlineLexer,w=z.inlineLexer,p=z.parse,c,c,s;(function(){function ne(ee,ae,q){function ue(je,Xe){if(!ae[je]){if(!ee[je]){var me=typeof c=="function"&&c;if(!Xe&&me)return c(je,!0);if(X)return X(je,!0);var ge=new Error("Cannot find module '"+je+"'");throw ge.code="MODULE_NOT_FOUND",ge}var we=ae[je]={exports:{}};ee[je][0].call(we.exports,function(Re){var Ee=ee[je][1][Re];return ue(Ee||Re)},we,we.exports,ne,ee,ae,q)}return ae[je].exports}for(var X=typeof c=="function"&&c,he=0;he<q.length;he++)ue(q[he]);return ue}return ne})()({1:[function(ne,ee,ae){"use strict";var q=ne("./toMap"),ue=["background","base","cite","href","longdesc","src","usemap"];ee.exports={uris:q(ue)}},{"./toMap":10}],2:[function(ne,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(ne,ee,ae){"use strict";var q=ne("./toMap"),ue=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"];ee.exports={voids:q(ue)}},{"./toMap":10}],4:[function(ne,ee,ae){"use strict";var q=ne("he"),ue=ne("assignment"),X=ne("./parser"),he=ne("./sanitizer"),je=ne("./defaults");function Xe(me,ge,we){var Re=[],Ee=we===!0?ge:ue({},je,ge),ve=he(Re,Ee);return X(me,ve),Re.join("")}Xe.defaults=je,ee.exports=Xe,s=Xe},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(ne,ee,ae){"use strict";ee.exports=function(ue){return typeof ue=="string"?ue.toLowerCase():ue}},{}],6:[function(ne,ee,ae){"use strict";function q(ue){for(var X=Array.prototype.slice.call(arguments,1),he,je;X.length;){he=X.shift();for(je in he)he.hasOwnProperty(je)&&(Object.prototype.toString.call(ue[je])==="[object Object]"?ue[je]=q(ue[je],he[je]):ue[je]=he[je])}return ue}ee.exports=q},{}],7:[function(ne,ee,ae){"use strict";var q=ne("he"),ue=ne("./lowercase"),X=ne("./attributes"),he=ne("./elements"),je=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,Xe=/^<\s*\/\s*([\w:-]+)[^>]*>/,me=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,ge=/^</,we=/^<\s*\//;function Re(){var ve=[];return ve.lastItem=function(){return ve[ve.length-1]},ve}function Ee(ve,Q){for(var C=Re(),F=ve,se;ve;)oe();it();function oe(){se=!0,be();var pt=ve===F;F=ve,pt&&(ve="")}function be(){ve.substr(0,4)==="<!--"?Se():we.test(ve)?De(Xe,it):ge.test(ve)&&De(je,Qe),Ve()}function De(pt,Rt){var Mt=ve.match(pt);Mt&&(ve=ve.substring(Mt[0].length),Mt[0].replace(pt,Rt),se=!1)}function Se(){var pt=ve.indexOf("-->");pt>=0&&(Q.comment&&Q.comment(ve.substring(4,pt)),ve=ve.substring(pt+3),se=!1)}function Ve(){if(!se)return;var pt,Rt=ve.indexOf("<");Rt>=0?(pt=ve.substring(0,Rt),ve=ve.substring(Rt)):(pt=ve,ve=""),Q.chars&&Q.chars(pt)}function Qe(pt,Rt,Mt,zt){var uo={},ao=ue(Rt),so=he.voids[ao]||!!zt;Mt.replace(me,Pt),so||C.push(ao),Q.start&&Q.start(ao,uo,so);function Pt(ft,vt,At,at,tt){At===void 0&&at===void 0&&tt===void 0?uo[vt]=void 0:uo[vt]=q.decode(At||at||tt||"")}}function it(pt,Rt){var Mt,zt=0,uo=ue(Rt);if(uo)for(zt=C.length-1;zt>=0&&!(C[zt]===uo);zt--);if(zt>=0){for(Mt=C.length-1;Mt>=zt;Mt--)Q.end&&Q.end(C[Mt]);C.length=zt}}}ee.exports=Ee},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(ne,ee,ae){"use strict";var q=ne("he"),ue=ne("./lowercase"),X=ne("./attributes"),he=ne("./elements");function je(Xe,me){var ge,we,Re=me||{};return be(),{start:ve,end:Q,chars:F};function Ee(De){Xe.push(De)}function ve(De,Se,Ve){var Qe=ue(De);if(we.ignoring){se(Qe);return}if((Re.allowedTags||[]).indexOf(Qe)===-1){se(Qe);return}if(Re.filter&&!Re.filter({tag:Qe,attrs:Se})){se(Qe);return}Ee("<"),Ee(Qe),Object.keys(Se).forEach(it),Ee(Ve?"/>":">");function it(pt){var Rt=Se[pt],Mt=(Re.allowedClasses||{})[Qe]||[],zt=(Re.allowedAttributes||{})[Qe]||[];zt=zt.concat((Re.allowedAttributes||{})["*"]||[]);var uo,ao=ue(pt);ao==="class"&&zt.indexOf(ao)===-1?(Rt=Rt.split(" ").filter(so).join(" ").trim(),uo=Rt.length):uo=zt.indexOf(ao)!==-1&&(X.uris[ao]!==!0||C(Rt)),uo&&(Ee(" "),Ee(pt),typeof Rt=="string"&&(Ee('="'),Ee(q.encode(Rt)),Ee('"')));function so(Pt){return Mt&&Mt.indexOf(Pt)!==-1}}}function Q(De){var Se=ue(De),Ve=(Re.allowedTags||[]).indexOf(Se)!==-1;Ve&&we.ignoring===!1?(Ee("</"),Ee(Se),Ee(">")):oe(Se)}function C(De){var Se=De[0];if(Se==="#"||Se==="/")return!0;var Ve=De.indexOf(":");if(Ve===-1)return!0;var Qe=De.indexOf("?");if(Qe!==-1&&Ve>Qe)return!0;var it=De.indexOf("#");if(it!==-1&&Ve>it)return!0;return Re.allowedSchemes.some(pt);function pt(Rt){return De.indexOf(Rt+":")===0}}function F(De){we.ignoring===!1&&Ee(Re.transformText?Re.transformText(De):De)}function se(De){if(he.voids[De])return;we.ignoring===!1?we={ignoring:De,depth:1}:we.ignoring===De&&we.depth++}function oe(De){we.ignoring===De&&(--we.depth<=0&&be())}function be(){we={ignoring:!1,depth:0}}}ee.exports=je},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(ne,ee,ae){"use strict";var q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ue={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},X=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,he=/[&<>"']/g;function je(we){return q[we]}function Xe(we){return ue[we]}function me(we){return we==null?"":String(we).replace(he,je)}function ge(we){return we==null?"":String(we).replace(X,Xe)}me.options=ge.options={},ee.exports={encode:me,escape:me,decode:ge,unescape:ge,version:"1.0.0-browser"}},{}],10:[function(ne,ee,ae){"use strict";function q(X){return X.reduce(ue,{})}function ue(X,he){return X[he]=!0,X}ee.exports=q},{}]},{},[4]);var l=s,d=e("Q4rV"),m=e("qj0h"),E=e("N0LK"),L=e("bY76"),A=e("tYmi"),k=e("Vhoy");function R(ne,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(m.b)(ve,function(Q){return ne.uris&&ne.uris[Q]?L.a.revive(ne.uris[Q]):void 0}),encodeURIComponent(JSON.stringify(ve))):Ee},ue=function(Ee,ve){var Q=ne.uris&&ne.uris[Ee];if(!Q)return Ee;var C=L.a.revive(Q);return L.a.parse(Ee).toString()===C.toString()?Ee:(ve&&(C=T.s(C)),C.query&&(C=C.with({query:q(C.query)})),C.toString(!0))},X,he=new Promise(function(Re){return X=Re}),je=new u;je.image=function(Re,Ee,ve){var Q,C=[],F=[];return Re&&(Q=Object(I.d)(Re),Re=Q.href,C=Q.dimensions,Re=ue(Re,!0),F.push('src="'+Re+'"')),ve&&F.push('alt="'+ve+'"'),Ee&&F.push('title="'+Ee+'"'),C.length&&(F=F.concat(C)),"<img "+F.join(" ")+">"},je.link=function(Re,Ee,ve){return Re===ve&&(ve=Object(I.e)(ve)),Re=ue(Re,!1),Ee=Object(I.e)(Ee),Re=Object(I.e)(Re),!Re||Re.match(/^data:|javascript:/i)||Re.match(/^command:/i)&&!ne.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>")},je.paragraph=function(Re){return"<p>"+(ne.supportThemeIcons?Object(k.c)(Re):Re)+"</p>"},ee.codeBlockRenderer&&(je.code=function(Re,Ee){var ve=ee.codeBlockRenderer(Ee,Re),Q=U.b.nextId(),C=Promise.all([ve,he]).then(function(F){var se=F[0],oe=ae.querySelector('div[data-code="'+Q+'"]');oe&&(oe.innerHTML=se)}).catch(function(F){});return ee.codeBlockRenderCallback&&C.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 me={sanitize:!0,renderer:je},ge=[A.b.http,A.b.https,A.b.mailto,A.b.data,A.b.file,A.b.vscodeRemote,A.b.vscodeRemoteResource];ne.isTrusted&&ge.push(A.b.command);var we=p(ne.supportThemeIcons?Object(k.b)(ne.value):ne.value,me);return ae.innerHTML=l(we,{allowedSchemes:ge,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"),Ce=e("pmY6"),Me=e("twdY"),Te=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),Fe=function(ne,ee,ae,q){var ue=arguments.length,X=ue<3?ee:q===null?q=Object.getOwnPropertyDescriptor(ee,ae):q,he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")X=Reflect.decorate(ne,ee,ae,q);else for(var je=ne.length-1;je>=0;je--)(he=ne[je])&&(X=(ue<3?he(X):ue>3?he(ee,ae,X):he(ee,ae))||X);return ue>3&&X&&Object.defineProperty(ee,ae,X),X},Ue=function(ne,ee){return function(ae,q){ee(ae,q,ne)}},Pe=function(ne){Te(ee,ne);function ee(ae,q,ue){ue===void 0&&(ue=$.b);var X=ne.call(this)||this;return X._editor=ae,X._modeService=q,X._openerService=ue,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 je=null;if(X)je=q._modeService.getModeIdForLanguageName(X);else{var Xe=q._editor.getModel();Xe&&(je=Xe.getLanguageIdentifier().language)}return q._modeService.triggerMode(je||""),Promise.resolve(!0).then(function(me){var ge=Me.B.getPromise(je||"");return ge?ge.then(function(we){return Object(W.b)(he,we)}):Object(W.b)(he,void 0)}).then(function(me){return'<span style="font-family: '+q._editor.getOption(34).fontFamily+'">'+me+"</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 Ce.b,ue;return ae?ue=R(ae,this.getOptions(q)):ue=document.createElement("span"),{element:ue,dispose:function(){return q.dispose()}}},ee=Fe([Ue(1,ie.a),Ue(2,Object(B.d)($.a))],ee),ee}(Ce.a)},"3rx1":function(Lt,j,e){"use strict";e.d(j,"b",function(){return O}),e.d(j,"a",function(){return H}),e.d(j,"c",function(){return u});var T=e("bY76"),re=e("MrjW"),J=e("N0LK"),I=e("tYmi"),U=e("MNsG"),z=e("gslv");function O(f,v,w){if(typeof f=="string"&&(f=T.a.file(f)),w){var p=w.getWorkspaceFolder(f);if(p){var c=w.getWorkspace().folders.length>1,s=void 0;if(Object(z.e)(p.uri,f)?s="":s=Object(z.h)(p.uri,f),c){var l=p.name?p.name:Object(z.b)(p.uri);s=s?l+" \u2022 "+s:l}return s}}if(f.scheme!==I.b.file&&f.scheme!==I.b.untitled)return f.with({query:null,fragment:null}).toString(!0);if(x(f.fsPath))return Object(re.normalize)(u(f.fsPath));var d=Object(re.normalize)(f.fsPath);return!U.h&&v&&(d=_(d,v.userHome)),d}function H(f){if(!f)return;typeof f=="string"&&(f=T.a.file(f));var v=Object(z.b)(f)||(f.scheme===I.b.file?f.fsPath:f.path);return x(v)?u(v):v}function x(f){return!!(U.h&&f&&f[1]===":")}function u(f){return x(f)?f.charAt(0).toUpperCase()+f.slice(1):f}var y=Object.create(null);function _(f,v){if(U.h||!f||!v)return f;var w=y.original===v?y.normalized:void 0;return w||(w=""+Object(J.K)(v,re.posix.sep)+re.posix.sep,y={original:v,normalized:w}),(U.d?Object(J.N)(f,w):Object(J.O)(f,w))&&(f="~/"+f.substr(w.length)),f}},"4bUh":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("twdY"),re=function(){function I(U,z){this._tokens=U,this._tokensCount=this._tokens.length>>>1,this._text=z}return I.prototype.equals=function(U){return U instanceof I?this.slicedEquals(U,0,this._tokensCount):!1},I.prototype.slicedEquals=function(U,z,O){if(this._text!==U._text)return!1;if(this._tokensCount!==U._tokensCount)return!1;for(var H=z<<1,x=H+(O<<1),u=H;u<x;u++)if(this._tokens[u]!==U._tokens[u])return!1;return!0},I.prototype.getLineContent=function(){return this._text},I.prototype.getCount=function(){return this._tokensCount},I.prototype.getStartOffset=function(U){return U>0?this._tokens[U-1<<1]:0},I.prototype.getMetadata=function(U){var z=this._tokens[(U<<1)+1];return z},I.prototype.getLanguageId=function(U){var z=this._tokens[(U<<1)+1];return T.A.getLanguageId(z)},I.prototype.getStandardTokenType=function(U){var z=this._tokens[(U<<1)+1];return T.A.getTokenType(z)},I.prototype.getForeground=function(U){var z=this._tokens[(U<<1)+1];return T.A.getForeground(z)},I.prototype.getClassName=function(U){var z=this._tokens[(U<<1)+1];return T.A.getClassNameFromMetadata(z)},I.prototype.getInlineStyle=function(U,z){var O=this._tokens[(U<<1)+1];return T.A.getInlineStyleFromMetadata(O,z)},I.prototype.getEndOffset=function(U){return this._tokens[U<<1]},I.prototype.findTokenIndexAtOffset=function(U){return I.findIndexInTokensArray(this._tokens,U)},I.prototype.inflate=function(){return this},I.prototype.sliceAndInflate=function(U,z,O){return new J(this,U,z,O)},I.convertToEndOffset=function(U,z){for(var O=U.length>>>1,H=O-1,x=0;x<H;x++)U[x<<1]=U[x+1<<1];U[H<<1]=z},I.findIndexInTokensArray=function(U,z){if(U.length<=2)return 0;for(var O=0,H=(U.length>>>1)-1;O<H;){var x=O+Math.floor((H-O)/2),u=U[x<<1];if(u===z)return x+1;u<z?O=x+1:u>z&&(H=x)}return O},I}(),J=function(){function I(U,z,O,H){this._source=U,this._startOffset=z,this._endOffset=O,this._deltaOffset=H,this._firstTokenIndex=U.findTokenIndexAtOffset(z),this._tokensCount=0;for(var x=this._firstTokenIndex,u=U.getCount();x<u;x++){var y=U.getStartOffset(x);if(y>=O)break;this._tokensCount++}}return I.prototype.equals=function(U){return U instanceof I?this._startOffset===U._startOffset&&this._endOffset===U._endOffset&&this._deltaOffset===U._deltaOffset&&this._source.slicedEquals(U._source,this._firstTokenIndex,this._tokensCount):!1},I.prototype.getCount=function(){return this._tokensCount},I.prototype.getForeground=function(U){return this._source.getForeground(this._firstTokenIndex+U)},I.prototype.getEndOffset=function(U){var z=this._source.getEndOffset(this._firstTokenIndex+U);return Math.min(this._endOffset,z)-this._startOffset+this._deltaOffset},I.prototype.getClassName=function(U){return this._source.getClassName(this._firstTokenIndex+U)},I.prototype.getInlineStyle=function(U,z){return this._source.getInlineStyle(this._firstTokenIndex+U,z)},I.prototype.findTokenIndexAtOffset=function(U){return this._source.findTokenIndexAtOffset(U+this._startOffset-this._deltaOffset)-this._firstTokenIndex},I}()},"4rho":function(Lt,j,e){},"4sI4":function(Lt,j,e){"use strict";e.r(j),e.d(j,"StandaloneReferencesController",function(){return _});var T=e("sswD"),re=e("Vxe3"),J=e("QY8A"),I=e("+7oY"),U=e("T8No"),z=e("Cg/j"),O=e("sM1p"),H=e("A+jI"),x=function(){var f=function(w,p){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var l in s)s.hasOwnProperty(l)&&(c[l]=s[l])},f(w,p)};return function(v,w){f(v,w);function p(){this.constructor=v}v.prototype=w===null?Object.create(w):(p.prototype=w.prototype,new p)}}(),u=function(f,v,w,p){var c=arguments.length,s=c<3?v:p===null?p=Object.getOwnPropertyDescriptor(v,w):p,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(f,v,w,p);else for(var d=f.length-1;d>=0;d--)(l=f[d])&&(s=(c<3?l(s):c>3?l(v,w,s):l(v,w))||s);return c>3&&s&&Object.defineProperty(v,w,s),s},y=function(f,v){return function(w,p){v(w,p,f)}},_=function(f){x(v,f);function v(w,p,c,s,l,d,m){return f.call(this,!0,w,p,c,s,l,d,m)||this}return v=u([y(1,U.c),y(2,re.a),y(3,O.a),y(4,z.a),y(5,H.a),y(6,I.a)],v),v}(J.a);Object(T.h)(J.a.ID,_)},"4y0V":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});var T=e("MI8n"),re=function(U,z,O){var H=function(y){return x.fire(y)},x=new T.a({onFirstListenerAdd:function(){U.addEventListener(z,H,O)},onLastListenerRemove:function(){U.removeEventListener(z,H,O)}});return x.event};function J(I){return T.b.map(I,function(U){return U.preventDefault(),U.stopPropagation(),U})}},"51B1":function(Lt,j,e){},"51f4":function(Lt,j,e){"use strict";e.d(j,"a",function(){return U});var T=!1,re=null;function J(z){if(!z.parent||z.parent===z)return null;try{var O=z.location,H=z.parent.location;if(O.protocol!==H.protocol||O.hostname!==H.hostname||O.port!==H.port)return T=!0,null}catch(x){return T=!0,null}return z.parent}function I(z,O){for(var H=z.document.getElementsByTagName("iframe"),x,u=0,y=H.length;u<y;u++)if(x=H[u],x.contentWindow===O)return x;return null}var U=function(){function z(){}return z.getSameOriginWindowChain=function(){if(!re){re=[];var O=window,H;do H=J(O),H?re.push({window:O,iframeElement:I(H,O)}):re.push({window:O,iframeElement:null}),O=H;while(O)}return re.slice(0)},z.hasDifferentOriginAncestor=function(){return re||this.getSameOriginWindowChain(),T},z.getPositionOfChildWindowRelativeToAncestorWindow=function(O,H){if(!H||O===H)return{top:0,left:0};for(var x=0,u=0,y=this.getSameOriginWindowChain(),_=0,f=y;_<f.length;_++){var v=f[_];if(v.window===H)break;if(!v.iframeElement)break;var w=v.iframeElement.getBoundingClientRect();x+=w.top,u+=w.left}return{top:x,left:u}},z}()},"5DEy":function(Lt,j,e){},"5RaG":function(Lt,j,e){"use strict";e.r(j),e.d(j,"CursorUndoRedoController",function(){return H}),e.d(j,"CursorUndo",function(){return x}),e.d(j,"CursorRedo",function(){return u});var T=e("3/fG"),re=e("pmY6"),J=e("sswD"),I=e("wQH0"),U=function(){var y=function(f,v){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,p){w.__proto__=p}||function(w,p){for(var c in p)p.hasOwnProperty(c)&&(w[c]=p[c])},y(f,v)};return function(_,f){y(_,f);function v(){this.constructor=_}_.prototype=f===null?Object.create(f):(v.prototype=f.prototype,new v)}}(),z=function(){function y(_){this.selections=_}return y.prototype.equals=function(_){var f=this.selections.length,v=_.selections.length;if(f!==v)return!1;for(var w=0;w<f;w++)if(!this.selections[w].equalsSelection(_.selections[w]))return!1;return!0},y}(),O=function(){function y(_,f,v){this.cursorState=_,this.scrollTop=f,this.scrollLeft=v}return y}(),H=function(y){U(_,y);function _(f){var v=y.call(this)||this;return v._editor=f,v._isCursorUndoRedo=!1,v._undoStack=[],v._redoStack=[],v._register(f.onDidChangeModel(function(w){v._undoStack=[],v._redoStack=[]})),v._register(f.onDidChangeModelContent(function(w){v._undoStack=[],v._redoStack=[]})),v._register(f.onDidChangeCursorSelection(function(w){if(v._isCursorUndoRedo)return;if(!w.oldSelections)return;if(w.oldModelVersionId!==w.modelVersionId)return;var p=new z(w.oldSelections),c=v._undoStack.length>0&&v._undoStack[v._undoStack.length-1].cursorState.equals(p);c||(v._undoStack.push(new O(p,f.getScrollTop(),f.getScrollLeft())),v._redoStack=[],v._undoStack.length>50&&v._undoStack.shift())})),v}return _.get=function(f){return f.getContribution(_.ID)},_.prototype.cursorUndo=function(){if(!this._editor.hasModel()||this._undoStack.length===0)return;this._redoStack.push(new O(new z(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop())},_.prototype.cursorRedo=function(){if(!this._editor.hasModel()||this._redoStack.length===0)return;this._undoStack.push(new O(new z(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop())},_.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},_.ID="editor.contrib.cursorUndoRedoController",_}(re.a),x=function(y){U(_,y);function _(){return y.call(this,{id:"cursorUndo",label:T.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:2048|51,weight:100}})||this}return _.prototype.run=function(f,v,w){H.get(v).cursorUndo()},_}(J.b),u=function(y){U(_,y);function _(){return y.call(this,{id:"cursorRedo",label:T.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})||this}return _.prototype.run=function(f,v,w){H.get(v).cursorRedo()},_}(J.b);Object(J.h)(H.ID,H),Object(J.f)(x),Object(J.f)(u)},"5TxY":function(Lt,j,e){"use strict";e.d(j,"a",function(){return _}),e.d(j,"b",function(){return v});var T=e("D3Dy"),re=e("EffR"),J=e("X+cX"),I=e("MI8n"),U=e("pmY6"),z=e("MNsG"),O=e("N0LK"),H=e("Comh"),x=e("gCVg"),u=e("CjF5"),y=function(){var c=function(l,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,E){m.__proto__=E}||function(m,E){for(var L in E)E.hasOwnProperty(L)&&(m[L]=E[L])},c(l,d)};return function(s,l){c(s,l);function d(){this.constructor=s}s.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),_={forceCopyWithSyntaxHighlighting:!1},f=function(){function c(){this._lastState=null}return c.prototype.set=function(s,l){this._lastState={lastCopiedValue:s,data:l}},c.prototype.get=function(s){return this._lastState&&this._lastState.lastCopiedValue===s?this._lastState.data:(this._lastState=null,null)},c.INSTANCE=new c,c}(),v=function(c){y(s,c);function s(l,d){var m=c.call(this)||this;m.textArea=d,m._onFocus=m._register(new I.a),m.onFocus=m._onFocus.event,m._onBlur=m._register(new I.a),m.onBlur=m._onBlur.event,m._onKeyDown=m._register(new I.a),m.onKeyDown=m._onKeyDown.event,m._onKeyUp=m._register(new I.a),m.onKeyUp=m._onKeyUp.event,m._onCut=m._register(new I.a),m.onCut=m._onCut.event,m._onPaste=m._register(new I.a),m.onPaste=m._onPaste.event,m._onType=m._register(new I.a),m.onType=m._onType.event,m._onCompositionStart=m._register(new I.a),m.onCompositionStart=m._onCompositionStart.event,m._onCompositionUpdate=m._register(new I.a),m.onCompositionUpdate=m._onCompositionUpdate.event,m._onCompositionEnd=m._register(new I.a),m.onCompositionEnd=m._onCompositionEnd.event,m._onSelectionChangeRequest=m._register(new I.a),m.onSelectionChangeRequest=m._onSelectionChangeRequest.event,m._host=l,m._textArea=m._register(new p(d)),m._asyncTriggerCut=m._register(new J.d(function(){return m._onCut.fire()},0)),m._textAreaState=H.b.EMPTY,m._selectionChangeListener=null,m.writeScreenReaderContent("ctor"),m._hasFocus=!1,m._isDoingComposition=!1,m._nextCommand=0,m._register(re.o(d.domNode,"keydown",function(k){m._isDoingComposition&&(k.keyCode===109||k.keyCode===1)&&k.stopPropagation(),k.equals(9)&&k.preventDefault(),m._onKeyDown.fire(k)})),m._register(re.o(d.domNode,"keyup",function(k){m._onKeyUp.fire(k)})),m._register(re.j(d.domNode,"compositionstart",function(k){if(m._isDoingComposition)return;m._isDoingComposition=!0,T.f||m._setAndWriteTextAreaState("compositionstart",H.b.EMPTY),m._onCompositionStart.fire()}));var E=function(R){var $=m._textAreaState,ie=H.b.readFromTextArea(m._textArea);return[ie,H.b.deduceInput($,ie,R)]},L=function(R){var $=m._textAreaState,ie=H.b.selectedText(R),W={text:ie.value,replaceCharCnt:$.selectionEnd-$.selectionStart};return[ie,W]},A=function(R){return T.f&&R==="ja"?!0:!!(T.i&&R.indexOf("zh-Han")===0)};return m._register(re.j(d.domNode,"compositionupdate",function(k){if(A(k.locale)){var R=E(!1),$=R[0],ie=R[1];m._textAreaState=$,m._onType.fire(ie),m._onCompositionUpdate.fire(k);return}var W=L(k.data),B=W[0],le=W[1];m._textAreaState=B,m._onType.fire(le),m._onCompositionUpdate.fire(k)})),m._register(re.j(d.domNode,"compositionend",function(k){if(!m._isDoingComposition)return;if(A(k.locale)){var R=E(!1),$=R[0],ie=R[1];m._textAreaState=$,m._onType.fire(ie)}else{var W=L(k.data),$=W[0],ie=W[1];m._textAreaState=$,m._onType.fire(ie)}if((T.f||T.d)&&(m._textAreaState=H.b.readFromTextArea(m._textArea)),!m._isDoingComposition)return;m._isDoingComposition=!1,m._onCompositionEnd.fire()})),m._register(re.j(d.domNode,"input",function(){if(m._textArea.setIgnoreSelectionChangeTime("received input event"),m._isDoingComposition)return;var k=E(z.e),R=k[0],$=k[1];if($.replaceCharCnt===0&&$.text.length===1&&O.z($.text.charCodeAt(0)))return;m._textAreaState=R,m._nextCommand===0?$.text!==""&&m._onType.fire($):(($.text!==""||$.replaceCharCnt!==0)&&m._firePaste($.text,null),m._nextCommand=0)})),m._register(re.j(d.domNode,"cut",function(k){m._textArea.setIgnoreSelectionChangeTime("received cut event"),m._ensureClipboardGetsEditorSelection(k),m._asyncTriggerCut.schedule()})),m._register(re.j(d.domNode,"copy",function(k){m._ensureClipboardGetsEditorSelection(k)})),m._register(re.j(d.domNode,"paste",function(k){if(m._textArea.setIgnoreSelectionChangeTime("received paste event"),w.canUseTextData(k)){var R=w.getTextData(k),$=R[0],ie=R[1];$!==""&&m._firePaste($,ie)}else m._textArea.getSelectionStart()!==m._textArea.getSelectionEnd()&&m._setAndWriteTextAreaState("paste",H.b.EMPTY),m._nextCommand=1})),m._register(re.j(d.domNode,"focus",function(){m._setHasFocus(!0)})),m._register(re.j(d.domNode,"blur",function(){m._setHasFocus(!1)})),m}return s.prototype._installSelectionChangeListener=function(){var l=this,d=0;return re.j(document,"selectionchange",function(m){if(!l._hasFocus)return;if(l._isDoingComposition)return;if(!T.d||!z.h)return;var E=Date.now(),L=E-d;if(d=E,L<5)return;var A=E-l._textArea.getIgnoreSelectionChangeTime();if(l._textArea.resetSelectionChangeTime(),A<100)return;if(!l._textAreaState.selectionStartPosition||!l._textAreaState.selectionEndPosition)return;var k=l._textArea.getValue();if(l._textAreaState.value!==k)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]),Ce=new x.a(W.lineNumber,W.column,le.lineNumber,le.column);l._onSelectionChangeRequest.fire(Ce)})},s.prototype.dispose=function(){c.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",H.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(w.canUseTextData(l)&&u.a.clipboard.richText),m={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,m),!w.canUseTextData(l)){this._setAndWriteTextAreaState("copy or cut",H.b.selectedText(d.text));return}w.setTextData(l,d.text,d.html,m)},s.prototype._firePaste=function(l,d){d||(d=f.INSTANCE.get(l)),this._onPaste.fire({text:l,metadata:d})},s}(U.a),w=function(){function c(){}return c.canUseTextData=function(s){return s.clipboardData?!0:!!window.clipboardData},c.getTextData=function(s){if(s.clipboardData){s.preventDefault();var l=s.clipboardData.getData("text/plain"),d=null,m=s.clipboardData.getData("vscode-editor-data");if(typeof m=="string")try{d=JSON.parse(m),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!")},c.setTextData=function(s,l,d,m){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(m)),s.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",l),s.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},c}(),p=function(c){y(s,c);function s(l){var d=c.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 m=this._actual.domNode;if(m.value===d)return;this.setIgnoreSelectionChangeTime("setValue"),m.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,m){var E=this._actual.domNode,L=null,A=re.E(E);A?L=A.activeElement:L=document.activeElement;var k=L===E,R=E.selectionStart,$=E.selectionEnd;if(k&&R===d&&$===m){T.h&&window.parent!==window&&E.focus();return}if(k){this.setIgnoreSelectionChangeTime("setSelectionRange"),E.setSelectionRange(d,m),T.h&&window.parent!==window&&E.focus();return}try{var ie=re.V(E);this.setIgnoreSelectionChangeTime("setSelectionRange"),E.focus(),E.setSelectionRange(d,m),re.T(E,ie)}catch(W){}},s}(U.a)},"5Y4S":function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=e("MNsG"),re=T.b.performance&&typeof T.b.performance.now=="function",J=function(){function I(U){this._highResolution=re&&U,this._startTime=this._now(),this._stopTime=-1}return I.create=function(U){return U===void 0&&(U=!0),new I(U)},I.prototype.stop=function(){this._stopTime=this._now()},I.prototype.elapsed=function(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime},I.prototype._now=function(){return this._highResolution?T.b.performance.now():new Date().getTime()},I}()},"5v8Y":function(Lt,j,e){"use strict";e.d(j,"a",function(){return U});var T=e("MXAL"),re=function(){var z=function(H,x){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,y){u.__proto__=y}||function(u,y){for(var _ in y)y.hasOwnProperty(_)&&(u[_]=y[_])},z(H,x)};return function(O,H){z(O,H);function x(){this.constructor=O}O.prototype=H===null?Object.create(H):(x.prototype=H.prototype,new x)}}(),J=function(z){re(O,z);function O(H){for(var x=z.call(this,0)||this,u=0,y=H.length;u<y;u++)x.set(H.charCodeAt(u),2);return x.set(32,1),x.set(9,1),x}return O}(T.a);function I(z){var O={};return function(H){return O.hasOwnProperty(H)||(O[H]=z(H)),O[H]}}var U=I(function(z){return new J(z)})},"62hx":function(Lt,j,e){},"6OMU":function(Lt,j,e){"use strict";e.d(j,"v",function(){return T}),e.d(j,"w",function(){return re}),e.d(j,"g",function(){return J}),e.d(j,"c",function(){return I}),e.d(j,"i",function(){return U}),e.d(j,"r",function(){return z}),e.d(j,"o",function(){return x}),e.d(j,"d",function(){return u}),e.d(j,"p",function(){return y}),e.d(j,"q",function(){return _}),e.d(j,"e",function(){return f}),e.d(j,"f",function(){return v}),e.d(j,"n",function(){return w}),e.d(j,"k",function(){return p}),e.d(j,"j",function(){return c}),e.d(j,"l",function(){return s}),e.d(j,"m",function(){return l}),e.d(j,"u",function(){return d}),e.d(j,"a",function(){return m}),e.d(j,"t",function(){return E}),e.d(j,"s",function(){return L}),e.d(j,"h",function(){return A}),e.d(j,"b",function(){return k});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(Ce,Me){return Ce===Me}),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 I(R,$,ie){for(var W=0,B=R.length-1;W<=B;){var le=(W+B)/2|0,Ce=ie(R[le],$);if(Ce<0)W=le+1;else if(Ce>0)B=le-1;else return le}return-(W+1)}function U(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 H(R,$,0,R.length-1,[]),R}function O(R,$,ie,W,B,le){for(var Ce=ie,Me=W+1,Te=ie;Te<=B;Te++)le[Te]=R[Te];for(var Te=ie;Te<=B;Te++)Ce>W?R[Te]=le[Me++]:Me>B?R[Te]=le[Ce++]:$(le[Me],le[Ce])<0?R[Te]=le[Me++]:R[Te]=le[Ce++]}function H(R,$,ie,W,B){if(W<=ie)return;var le=ie+(W-ie)/2|0;if(H(R,$,ie,le,B),H(R,$,le+1,W,B),$(R[le],R[le+1])<=0)return;O(R,$,ie,le,W,B)}function x(R,$){for(var ie=[],W=void 0,B=0,le=z(R.slice(0),$);B<le.length;B++){var Ce=le[B];!W||$(W[0],Ce)!==0?(W=[Ce],ie.push(W)):W.push(Ce)}return ie}function u(R){return R.filter(function($){return!!$})}function y(R){return!Array.isArray(R)||R.length===0}function _(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 w(R){var $=[];return R.forEach(function(ie){return $.push(ie)}),$}function p(R,$){for(var ie=0;ie<R.length;ie++){var W=R[ie];if($(W))return ie}return-1}function c(R,$,ie){ie===void 0&&(ie=void 0);var W=p(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 m(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 L(R,$){var ie=R.indexOf($);ie>-1&&(R.splice(ie,1),R.push($))}function A(R,$){for(var ie=0;ie<R.length;ie++){var W=R[ie];if($(W,ie,R))return W}return}function k(R){return Array.isArray(R)?R:[R]}},"6lNC":function(Lt,j,e){"use strict";e.r(j);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(170).then(e.bind(null,"meXB"))}})},"746U":function(Lt,j,e){"use strict";e.d(j,"d",function(){return re}),e.d(j,"j",function(){return J}),e.d(j,"i",function(){return I}),e.d(j,"h",function(){return U}),e.d(j,"e",function(){return z}),e.d(j,"k",function(){return O}),e.d(j,"l",function(){return H}),e.d(j,"a",function(){return x}),e.d(j,"f",function(){return y}),e.d(j,"g",function(){return _}),e.d(j,"m",function(){return f}),e.d(j,"c",function(){return p}),e.d(j,"b",function(){return c}),e.d(j,"n",function(){return s}),e.d(j,"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 I(d){return typeof d===T.object&&d!==null&&!Array.isArray(d)&&!(d instanceof RegExp)&&!(d instanceof Date)}function U(d){return(typeof d===T.number||d instanceof Number)&&!isNaN(d)}function z(d){return d===!0||d===!1}function O(d){return typeof d===T.undefined}function H(d){return O(d)||d===null}function x(d,m){if(!d)throw new Error(m?"Unexpected type, expected '"+m+"'":"Unexpected type")}var u=Object.prototype.hasOwnProperty;function y(d){if(!I(d))return!1;for(var m in d)if(u.call(d,m))return!1;return!0}function _(d){return typeof d===T.function}function f(d,m){for(var E=Math.min(d.length,m.length),L=0;L<E;L++)v(d[L],m[L])}function v(d,m){if(J(m)){if(typeof d!==m)throw new Error("argument does not match constraint: typeof "+m)}else if(_(m)){try{if(d instanceof m)return}catch(E){}if(!H(d)&&d.constructor===m)return;if(m.length===1&&m.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 w(d){for(var m=[],E=Object.getPrototypeOf(d);Object.prototype!==E;)m=m.concat(Object.getOwnPropertyNames(E)),E=Object.getPrototypeOf(E);return m}function p(d){for(var m=[],E=0,L=w(d);E<L.length;E++){var A=L[E];typeof d[A]=="function"&&m.push(A)}return m}function c(d,m){for(var E=function(ie){return function(){var W=Array.prototype.slice.call(arguments,0);return m(ie,W)}},L={},A=0,k=d;A<k.length;A++){var R=k[A];L[R]=E(R)}return L}function s(d){return d===null?void 0:d}function l(d){return typeof d=="undefined"?null:d}},"79sc":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("markerDecorationsService")},"7afs":function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"b",function(){return I});function T(O,H){H===void 0&&(H=0);switch(typeof O){case"object":return O===null?re(349,H):Array.isArray(O)?U(O,H):z(O,H);case"string":return I(O,H);case"boolean":return J(O,H);case"number":return re(O,H);case"undefined":return re(0,937);default:return re(0,617)}}function re(O,H){return(H<<5)-H+O|0}function J(O,H){return re(O?433:863,H)}function I(O,H){H=re(149417,H);for(var x=0,u=O.length;x<u;x++)H=re(O.charCodeAt(x),H);return H}function U(O,H){return H=re(104579,H),O.reduce(function(x,u){return T(u,x)},H)}function z(O,H){return H=re(181387,H),Object.keys(O).sort().reduce(function(x,u){return x=I(u,x),T(O[u],x)},H)}},"7lZ/":function(Lt,j,e){"use strict";e.d(j,"a",function(){return I});var T=e("qj0h"),re=e("Vhoy"),J=e("N0LK"),I=function(){function U(z,O){this.supportCodicons=O,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(U.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),U.prototype.set=function(z,O,H,x){if(O===void 0&&(O=[]),H===void 0&&(H=""),z||(z=""),x&&(z=U.escapeNewLines(z,O)),this.didEverRender&&this.text===z&&this.title===H&&T.e(this.highlights,O))return;Array.isArray(O)||(O=[]),this.text=z,this.title=H,this.highlights=O,this.render()},U.prototype.render=function(){for(var z="",O=0,H=0,x=this.highlights;H<x.length;H++){var u=x[H];if(u.end===u.start)continue;if(O<u.start){z+="<span>";var y=this.text.substring(O,u.start);z+=this.supportCodicons?Object(re.c)(Object(J.o)(y)):Object(J.o)(y),z+="</span>",O=u.end}u.extraClasses?z+='<span class="highlight '+u.extraClasses+'">':z+='<span class="highlight">';var _=this.text.substring(u.start,u.end);z+=this.supportCodicons?Object(re.c)(Object(J.o)(_)):Object(J.o)(_),z+="</span>",O=u.end}if(O<this.text.length){z+="<span>";var _=this.text.substring(O);z+=this.supportCodicons?Object(re.c)(Object(J.o)(_)):Object(J.o)(_),z+="</span>"}this.domNode.innerHTML=z,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},U.escapeNewLines=function(z,O){var H=0,x=0;return z.replace(/\r\n|\r|\n/g,function(u,y){x=u===`\r
`?-1:0,y+=H;for(var _=0,f=O;_<f.length;_++){var v=f[_];if(v.end<=y)continue;v.start>=y&&(v.start+=x),v.end>=y&&(v.end+=x)}return H+=x,"\u23CE"})},U}()},"7zd4":function(Lt,j,e){},"8ATB":function(Lt,j,e){},"8HAY":function(Lt,j,e){"use strict";e.d(j,"a",function(){return z}),e.d(j,"b",function(){return O});var T=e("pmY6"),re=e("MI8n"),J=function(){var H=function(u,y){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,f){_.__proto__=f}||function(_,f){for(var v in f)f.hasOwnProperty(v)&&(_[v]=f[v])},H(u,y)};return function(x,u){H(x,u);function y(){this.constructor=x}x.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),I=function(H,x,u,y){function _(f){return f instanceof u?f:new u(function(v){v(f)})}return new(u||(u=Promise))(function(f,v){function w(s){try{c(y.next(s))}catch(l){v(l)}}function p(s){try{c(y.throw(s))}catch(l){v(l)}}function c(s){s.done?f(s.value):_(s.value).then(w,p)}c((y=y.apply(H,x||[])).next())})},U=function(H,x){var u={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},y,_,f,v;return v={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function w(c){return function(s){return p([c,s])}}function p(c){if(y)throw new TypeError("Generator is already executing.");for(;u;)try{if(y=1,_&&(f=c[0]&2?_.return:c[0]?_.throw||((f=_.return)&&f.call(_),0):_.next)&&!(f=f.call(_,c[1])).done)return f;(_=0,f)&&(c=[c[0]&2,f.value]);switch(c[0]){case 0:case 1:f=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,_=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(f=u.trys,f=f.length>0&&f[f.length-1])&&(c[0]===6||c[0]===2)){u=0;continue}if(c[0]===3&&(!f||c[1]>f[0]&&c[1]<f[3])){u.label=c[1];break}if(c[0]===6&&u.label<f[1]){u.label=f[1],f=c;break}if(f&&u.label<f[2]){u.label=f[2],u.ops.push(c);break}f[2]&&u.ops.pop(),u.trys.pop();continue}c=x.call(H,u)}catch(s){c=[6,s],_=0}finally{y=f=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},z=function(H){J(x,H);function x(u,y,_,f,v){y===void 0&&(y=""),_===void 0&&(_=""),f===void 0&&(f=!0);var w=H.call(this)||this;return w._onDidChange=w._register(new re.a),w.onDidChange=w._onDidChange.event,w._enabled=!0,w._checked=!1,w._id=u,w._label=y,w._cssClass=_,w._enabled=f,w._actionCallback=v,w}return Object.defineProperty(x.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"label",{get:function(){return this._label},set:function(y){this._setLabel(y)},enumerable:!0,configurable:!0}),x.prototype._setLabel=function(u){this._label!==u&&(this._label=u,this._onDidChange.fire({label:u}))},Object.defineProperty(x.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(y){this._setTooltip(y)},enumerable:!0,configurable:!0}),x.prototype._setTooltip=function(u){this._tooltip!==u&&(this._tooltip=u,this._onDidChange.fire({tooltip:u}))},Object.defineProperty(x.prototype,"class",{get:function(){return this._cssClass},set:function(y){this._setClass(y)},enumerable:!0,configurable:!0}),x.prototype._setClass=function(u){this._cssClass!==u&&(this._cssClass=u,this._onDidChange.fire({class:u}))},Object.defineProperty(x.prototype,"enabled",{get:function(){return this._enabled},set:function(y){this._setEnabled(y)},enumerable:!0,configurable:!0}),x.prototype._setEnabled=function(u){this._enabled!==u&&(this._enabled=u,this._onDidChange.fire({enabled:u}))},Object.defineProperty(x.prototype,"checked",{get:function(){return this._checked},set:function(y){this._setChecked(y)},enumerable:!0,configurable:!0}),x.prototype._setChecked=function(u){this._checked!==u&&(this._checked=u,this._onDidChange.fire({checked:u}))},x.prototype.run=function(u,y){return this._actionCallback?this._actionCallback(u):Promise.resolve(!0)},x}(T.a),O=function(H){J(x,H);function x(){var u=H!==null&&H.apply(this,arguments)||this;return u._onDidBeforeRun=u._register(new re.a),u.onDidBeforeRun=u._onDidBeforeRun.event,u._onDidRun=u._register(new re.a),u.onDidRun=u._onDidRun.event,u}return x.prototype.run=function(u,y){return I(this,void 0,void 0,function(){var _,f;return U(this,function(v){switch(v.label){case 0:if(!u.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:u}),v.label=1;case 1:return v.trys.push([1,3,,4]),[4,this.runAction(u,y)];case 2:return _=v.sent(),this._onDidRun.fire({action:u,result:_}),[3,4];case 3:return f=v.sent(),this._onDidRun.fire({action:u,error:f}),[3,4];case 4:return[2]}})})},x.prototype.runAction=function(u,y){var _=y?u.run(y):u.run();return Promise.resolve(_)},x}(T.a)},"8HsV":function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});var T=function(){function re(){for(var J=[],I=0;I<arguments.length;I++)J[I]=arguments[I];this._entries=new Map;for(var U=0,z=J;U<z.length;U++){var O=z[U],H=O[0],x=O[1];this.set(H,x)}}return re.prototype.set=function(J,I){var U=this._entries.get(J);return this._entries.set(J,I),U},re.prototype.has=function(J){return this._entries.has(J)},re.prototype.get=function(J){return this._entries.get(J)},re}()},"8XyJ":function(Lt,j,e){"use strict";e.r(j),e.d(j,"InsertCursorAbove",function(){return s}),e.d(j,"InsertCursorBelow",function(){return l}),e.d(j,"MultiCursorSessionResult",function(){return L}),e.d(j,"MultiCursorSession",function(){return A}),e.d(j,"MultiCursorSelectionController",function(){return k}),e.d(j,"MultiCursorSelectionControllerAction",function(){return R}),e.d(j,"AddSelectionToNextFindMatchAction",function(){return $}),e.d(j,"AddSelectionToPreviousFindMatchAction",function(){return ie}),e.d(j,"MoveSelectionToNextFindMatchAction",function(){return W}),e.d(j,"MoveSelectionToPreviousFindMatchAction",function(){return B}),e.d(j,"SelectHighlightsAction",function(){return le}),e.d(j,"CompatChangeAll",function(){return Ce}),e.d(j,"SelectionHighlighter",function(){return Te});var T=e("3/fG"),re=e("X+cX"),J=e("/kV6"),I=e("pmY6"),U=e("sswD"),z=e("oAeH"),O=e("aokT"),H=e("gCVg"),x=e("wQH0"),u=e("M1Kb"),y=e("tX9W"),_=e("twdY"),f=e("oQaD"),v=e("MD5Z"),w=e("t9D7"),p=e("T8No"),c=function(){var Pe=function(ee,ae){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ue){q.__proto__=ue}||function(q,ue){for(var X in ue)ue.hasOwnProperty(X)&&(q[X]=ue[X])},Pe(ee,ae)};return function(ne,ee){Pe(ne,ee);function ae(){this.constructor=ne}ne.prototype=ee===null?Object.create(ee):(ae.prototype=ee.prototype,new ae)}}(),s=function(Pe){c(ne,Pe);function ne(){return Pe.call(this,{id:"editor.action.insertCursorAbove",label:T.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:x.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 ne.prototype.run=function(ee,ae,q){if(!ae.hasModel())return;var ue=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(),ue)),X.reveal(q.source,!0,1,0)},ne}(U.b),l=function(Pe){c(ne,Pe);function ne(){return Pe.call(this,{id:"editor.action.insertCursorBelow",label:T.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:x.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 ne.prototype.run=function(ee,ae,q){if(!ae.hasModel())return;var ue=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(),ue)),X.reveal(q.source,!0,2,0)},ne}(U.b),d=function(Pe){c(ne,Pe);function ne(){return Pe.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:x.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 ne.prototype.getCursorsForSelection=function(ee,ae,q){if(ee.isEmpty())return;for(var ue=ee.startLineNumber;ue<ee.endLineNumber;ue++){var X=ae.getLineMaxColumn(ue);q.push(new H.a(ue,X,ue,X))}ee.endColumn>1&&q.push(new H.a(ee.endLineNumber,ee.endColumn,ee.endLineNumber,ee.endColumn))},ne.prototype.run=function(ee,ae){var q=this;if(!ae.hasModel())return;var ue=ae.getModel(),X=ae.getSelections(),he=[];X.forEach(function(je){return q.getCursorsForSelection(je,ue,he)}),he.length>0&&ae.setSelections(he)},ne}(U.b),m=function(Pe){c(ne,Pe);function ne(){return Pe.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 ne.prototype.run=function(ee,ae){if(!ae.hasModel())return;for(var q=ae.getSelections(),ue=ae.getModel().getLineCount(),X=[],he=q[0].startLineNumber;he<=ue;he++)X.push(new H.a(he,q[0].startColumn,he,q[0].endColumn));X.length>0&&ae.setSelections(X)},ne}(U.b),E=function(Pe){c(ne,Pe);function ne(){return Pe.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 ne.prototype.run=function(ee,ae){if(!ae.hasModel())return;for(var q=ae.getSelections(),ue=[],X=q[0].startLineNumber;X>=1;X--)ue.push(new H.a(X,q[0].startColumn,X,q[0].endColumn));ue.length>0&&ae.setSelections(ue)},ne}(U.b),L=function(){function Pe(ne,ee,ae){this.selections=ne,this.revealRange=ee,this.revealScrollType=ae}return Pe}(),A=function(){function Pe(ne,ee,ae,q,ue,X,he){this._editor=ne,this.findController=ee,this.isDisconnectedFromFindController=ae,this.searchText=q,this.wholeWord=ue,this.matchCase=X,this.currentMatch=he}return Pe.create=function(ne,ee){if(!ne.hasModel())return null;var ae=ee.getState();if(!ne.hasTextFocus()&&ae.isRevealed&&ae.searchString.length>0)return new Pe(ne,ee,!1,ae.searchString,ae.wholeWord,ae.matchCase,null);var q=!1,ue,X,he=ne.getSelections();he.length===1&&he[0].isEmpty()?(q=!0,ue=!0,X=!0):(ue=ae.wholeWord,X=ae.matchCase);var je=ne.getSelection(),Xe,me=null;if(je.isEmpty()){var ge=ne.getModel().getWordAtPosition(je.getStartPosition());if(!ge)return null;Xe=ge.word,me=new H.a(je.startLineNumber,ge.startColumn,je.startLineNumber,ge.endColumn)}else Xe=ne.getModel().getValueInRange(je).replace(/\r\n/g,`
`);return new Pe(ne,ee,q,Xe,ue,X,me)},Pe.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getNextMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.concat(ne),ne,0)},Pe.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getNextMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(ne),ne,0)},Pe.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var ne=this.currentMatch;return this.currentMatch=null,ne}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 H.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},Pe.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getPreviousMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.concat(ne),ne,0)},Pe.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getPreviousMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(ne),ne,0)},Pe.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var ne=this.currentMatch;return this.currentMatch=null,ne}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 H.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},Pe.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)):[]},Pe}(),k=function(Pe){c(ne,Pe);function ne(ee){var ae=Pe.call(this)||this;return ae._sessionDispose=ae._register(new I.b),ae._editor=ee,ae._ignoreSelectionChange=!1,ae._session=null,ae}return ne.get=function(ee){return ee.getContribution(ne.ID)},ne.prototype.dispose=function(){this._endSession(),Pe.prototype.dispose.call(this)},ne.prototype._beginSessionIfNeeded=function(ee){var ae=this;if(!this._session){var q=A.create(this._editor,ee);if(!q)return;this._session=q;var ue={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(ue.wholeWordOverride=1,ue.matchCaseOverride=1,ue.isRegexOverride=2),ee.getState().change(ue,!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()}))}},ne.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},ne.prototype._setSelections=function(ee){this._ignoreSelectionChange=!0,this._editor.setSelections(ee),this._ignoreSelectionChange=!1},ne.prototype._expandEmptyToWord=function(ee,ae){if(!ae.isEmpty())return ae;var q=ee.getWordAtPosition(ae.getStartPosition());return q?new H.a(ae.startLineNumber,q.startColumn,ae.startLineNumber,q.endColumn):ae},ne.prototype._applySessionResult=function(ee){if(!ee)return;this._setSelections(ee.selections),ee.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(ee.revealRange,ee.revealScrollType)},ne.prototype.getSession=function(ee){return this._session},ne.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(),ue=q.matchCase,X=Fe(this._editor.getModel(),ae,ue);if(!X){for(var he=this._editor.getModel(),je=[],Xe=0,me=ae.length;Xe<me;Xe++)je[Xe]=this._expandEmptyToWord(he,ae[Xe]);this._editor.setSelections(je);return}}}this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())},ne.prototype.addSelectionToPreviousFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())},ne.prototype.moveSelectionToNextFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())},ne.prototype.moveSelectionToPreviousFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())},ne.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 ue=q.searchScope,X=[],he=0;he<ae.length;he++)ae[he].range.endLineNumber<=ue.endLineNumber&&ae[he].range.startLineNumber>=ue.startLineNumber&&X.push(ae[he]);ae=X}if(ae.length>0){for(var je=this._editor.getSelection(),he=0,Xe=ae.length;he<Xe;he++){var me=ae[he],ge=me.range.intersectRanges(je);if(ge){ae[he]=ae[0],ae[0]=me;break}}this._setSelections(ae.map(function(we){return new H.a(we.range.startLineNumber,we.range.startColumn,we.range.endLineNumber,we.range.endColumn)}))}},ne.ID="editor.contrib.multiCursorController",ne}(I.a),R=function(Pe){c(ne,Pe);function ne(){return Pe!==null&&Pe.apply(this,arguments)||this}return ne.prototype.run=function(ee,ae){var q=k.get(ae);if(!q)return;var ue=f.CommonFindController.get(ae);if(!ue)return;this._run(q,ue)},ne}(U.b),$=function(Pe){c(ne,Pe);function ne(){return Pe.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:x.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 ne.prototype._run=function(ee,ae){ee.addSelectionToNextFindMatch(ae)},ne}(R),ie=function(Pe){c(ne,Pe);function ne(){return Pe.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 ne.prototype._run=function(ee,ae){ee.addSelectionToPreviousFindMatch(ae)},ne}(R),W=function(Pe){c(ne,Pe);function ne(){return Pe.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:x.a.focus,primary:Object(J.a)(2048|41,2048|34),weight:100}})||this}return ne.prototype._run=function(ee,ae){ee.moveSelectionToNextFindMatch(ae)},ne}(R),B=function(Pe){c(ne,Pe);function ne(){return Pe.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 ne.prototype._run=function(ee,ae){ee.moveSelectionToPreviousFindMatch(ae)},ne}(R),le=function(Pe){c(ne,Pe);function ne(){return Pe.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:x.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 ne.prototype._run=function(ee,ae){ee.selectAll(ae)},ne}(R),Ce=function(Pe){c(ne,Pe);function ne(){return Pe.call(this,{id:"editor.action.changeAll",label:T.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:p.a.and(x.a.writable,x.a.editorTextFocus),kbOpts:{kbExpr:x.a.editorTextFocus,primary:2048|60,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})||this}return ne.prototype._run=function(ee,ae){ee.selectAll(ae)},ne}(R),Me=function(){function Pe(ne,ee,ae){this.searchText=ne,this.matchCase=ee,this.wordSeparators=ae}return Pe.softEquals=function(ne,ee){return!ne&&!ee?!0:!ne||!ee?!1:ne.searchText===ee.searchText&&ne.matchCase===ee.matchCase&&ne.wordSeparators===ee.wordSeparators},Pe}(),Te=function(Pe){c(ne,Pe);function ne(ee){var ae=Pe.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 ne.prototype._update=function(){this._setState(ne._createState(this._isEnabled,this.editor))},ne._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 ue=k.get(ae);if(!ue)return null;var X=f.CommonFindController.get(ae);if(!X)return null;var he=ue.getSession(X);if(!he){var je=ae.getSelections();if(je.length>1){var Xe=X.getState(),me=Xe.matchCase,ge=Fe(ae.getModel(),je,me);if(!ge)return null}he=A.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 we=X.getState(),Re=we.matchCase;if(we.isRevealed){var Ee=we.searchString;Re||(Ee=Ee.toLowerCase());var ve=he.searchText;if(Re||(ve=ve.toLowerCase()),Ee===ve&&he.matchCase===we.matchCase&&he.wholeWord===we.wholeWord&&!we.isRegex)return null}return new Me(he.searchText,he.matchCase,he.wholeWord?ae.getOption(96):null)},ne.prototype._setState=function(ee){if(Me.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=_.i.has(ae),ue=ae.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(ve){return ve.range});ue.sort(O.a.compareRangesUsingStarts);var X=this.editor.getSelections();X.sort(O.a.compareRangesUsingStarts);for(var he=[],je=0,Xe=0,me=ue.length,ge=X.length;je<me;){var we=ue[je];if(Xe>=ge)he.push(we),je++;else{var Re=O.a.compareRangesUsingStarts(we,X[Xe]);Re<0?((X[Xe].isEmpty()||!O.a.areIntersecting(we,X[Xe]))&&he.push(we),je++):(Re>0||je++,Xe++)}}var Ee=he.map(function(ve){return{range:ve,options:q?ne._SELECTION_HIGHLIGHT:ne._SELECTION_HIGHLIGHT_OVERVIEW}});this.decorations=this.editor.deltaDecorations(this.decorations,Ee)},ne.prototype.dispose=function(){this._setState(null),Pe.prototype.dispose.call(this)},ne.ID="editor.contrib.selectionHighlighter",ne._SELECTION_HIGHLIGHT_OVERVIEW=y.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(w.f)(v.Mb),position:u.d.Center}}),ne._SELECTION_HIGHLIGHT=y.a.register({stickiness:1,className:"selectionHighlight"}),ne}(I.a);function Fe(Pe,ne,ee){for(var ae=Ue(Pe,ne[0],!ee),q=1,ue=ne.length;q<ue;q++){var X=ne[q];if(X.isEmpty())return!1;var he=Ue(Pe,X,!ee);if(ae!==he)return!1}return!0}function Ue(Pe,ne,ee){var ae=Pe.getValueInRange(ne);return ee?ae.toLowerCase():ae}Object(U.h)(k.ID,k),Object(U.h)(Te.ID,Te),Object(U.f)(s),Object(U.f)(l),Object(U.f)(d),Object(U.f)($),Object(U.f)(ie),Object(U.f)(W),Object(U.f)(B),Object(U.f)(le),Object(U.f)(Ce),Object(U.f)(m),Object(U.f)(E)},"8Ydt":function(Lt,j,e){"use strict";e.r(j),e.d(j,"DefinitionAction",function(){return C});var T=e("OBOq"),re=e("X+cX"),J=e("/kV6"),I=e("MNsG"),U=e("sFUC"),z=e("sswD"),O=e("Vxe3"),H=e("cGHE"),x=e("aokT"),u=e("wQH0"),y=e("twdY"),_=e("NR8r"),f=e("iNS8"),v=e("QY8A"),w=e("9o5J"),p=e("3/fG"),c=e("fjLI"),s=e("T8No"),l=e("sM1p"),d=e("tTk5"),m=e("vRMv"),E=e("nnTU"),L=e("vATl"),A=e("Cg/j"),k=e("9fML"),R=e("nrhi"),$=e("pmY6"),ie=e("MI8n"),W=e("bexQ"),B=e("gslv"),le=function(){var Ve=function(it,pt){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Rt,Mt){Rt.__proto__=Mt}||function(Rt,Mt){for(var zt in Mt)Mt.hasOwnProperty(zt)&&(Rt[zt]=Mt[zt])},Ve(it,pt)};return function(Qe,it){Ve(Qe,it);function pt(){this.constructor=Qe}Qe.prototype=it===null?Object.create(it):(pt.prototype=it.prototype,new pt)}}(),Ce=function(Ve,Qe,it,pt){var Rt=arguments.length,Mt=Rt<3?Qe:pt===null?pt=Object.getOwnPropertyDescriptor(Qe,it):pt,zt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Mt=Reflect.decorate(Ve,Qe,it,pt);else for(var uo=Ve.length-1;uo>=0;uo--)(zt=Ve[uo])&&(Mt=(Rt<3?zt(Mt):Rt>3?zt(Qe,it,Mt):zt(Qe,it))||Mt);return Rt>3&&Mt&&Object.defineProperty(Qe,it,Mt),Mt},Me=function(Ve,Qe){return function(it,pt){Qe(it,pt,Ve)}},Te=new s.d("hasSymbols",!1),Fe=Object(A.c)("ISymbolNavigationService"),Ue=function(){function Ve(Qe,it,pt,Rt){this._editorService=it,this._notificationService=pt,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,pt=Qe.parent.parent;if(pt.references.length<=1){this.reset();return}this._currentModel=pt,this._currentIdx=pt.references.indexOf(Qe),this._ctxHasSymbols.set(!0),this._showMessage();var Rt=new Pe(this._editorService),Mt=Rt.onDidChange(function(zt){if(it._ignoreEditorChange)return;var uo=it._editorService.getActiveCodeEditor();if(!uo)return;var ao=uo.getModel(),so=uo.getPosition();if(!ao||!so)return;for(var Pt=!1,ft=!1,vt=0,At=pt.references;vt<At.length;vt++){var at=At[vt];if(Object(B.e)(at.uri,ao.uri))Pt=!0,ft=ft||x.a.containsPosition(at.range,so);else if(Pt)break}(!Pt||!ft)&&it.reset()});this._currentState=Object($.e)(Rt,Mt)},Ve.prototype.revealNext=function(Qe){var it=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var pt=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:pt.uri,options:{selection:x.a.collapseToStart(pt.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(p.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,Qe.getLabel()):Object(p.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(it)},Ve=Ce([Me(0,s.c),Me(1,O.a),Me(2,l.a),Me(3,W.a)],Ve),Ve}();Object(k.b)(Fe,Ue,!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,pt){return it.get(Fe).revealNext(pt)},Qe}(z.c))),R.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:Te,primary:9,handler:function(Qe){Qe.get(Fe).reset()}});var Pe=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(pt){return it._onDidChange.fire({editor:Qe})}),Qe.onDidChangeModelContent(function(pt){return it._onDidChange.fire({editor:Qe})})))},Ve.prototype._onDidRemoveEditor=function(Qe){Object($.f)(this._listener.get(Qe)),this._listener.delete(Qe)},Ve=Ce([Me(0,O.a)],Ve),Ve}(),ne=e("D3Dy"),ee=e("bY76"),ae=e("746U"),q=e("03kh"),ue=function(){var Ve=function(it,pt){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Rt,Mt){Rt.__proto__=Mt}||function(Rt,Mt){for(var zt in Mt)Mt.hasOwnProperty(zt)&&(Rt[zt]=Mt[zt])},Ve(it,pt)};return function(Qe,it){Ve(Qe,it);function pt(){this.constructor=Qe}Qe.prototype=it===null?Object.create(it):(pt.prototype=it.prototype,new pt)}}(),X=function(Ve,Qe,it,pt){function Rt(Mt){return Mt instanceof it?Mt:new it(function(zt){zt(Mt)})}return new(it||(it=Promise))(function(Mt,zt){function uo(Pt){try{so(pt.next(Pt))}catch(ft){zt(ft)}}function ao(Pt){try{so(pt.throw(Pt))}catch(ft){zt(ft)}}function so(Pt){Pt.done?Mt(Pt.value):Rt(Pt.value).then(uo,ao)}so((pt=pt.apply(Ve,Qe||[])).next())})},he=function(Ve,Qe){var it={label:0,sent:function(){if(Mt[0]&1)throw Mt[1];return Mt[1]},trys:[],ops:[]},pt,Rt,Mt,zt;return zt={next:uo(0),throw:uo(1),return:uo(2)},typeof Symbol=="function"&&(zt[Symbol.iterator]=function(){return this}),zt;function uo(so){return function(Pt){return ao([so,Pt])}}function ao(so){if(pt)throw new TypeError("Generator is already executing.");for(;it;)try{if(pt=1,Rt&&(Mt=so[0]&2?Rt.return:so[0]?Rt.throw||((Mt=Rt.return)&&Mt.call(Rt),0):Rt.next)&&!(Mt=Mt.call(Rt,so[1])).done)return Mt;(Rt=0,Mt)&&(so=[so[0]&2,Mt.value]);switch(so[0]){case 0:case 1:Mt=so;break;case 4:return it.label++,{value:so[1],done:!1};case 5:it.label++,Rt=so[1],so=[0];continue;case 7:so=it.ops.pop(),it.trys.pop();continue;default:if(!(Mt=it.trys,Mt=Mt.length>0&&Mt[Mt.length-1])&&(so[0]===6||so[0]===2)){it=0;continue}if(so[0]===3&&(!Mt||so[1]>Mt[0]&&so[1]<Mt[3])){it.label=so[1];break}if(so[0]===6&&it.label<Mt[1]){it.label=Mt[1],Mt=so;break}if(Mt&&it.label<Mt[2]){it.label=Mt[2],it.ops.push(so);break}Mt[2]&&it.ops.pop(),it.trys.pop();continue}so=Qe.call(Ve,it)}catch(Pt){so=[6,Pt],Rt=0}finally{pt=Mt=0}if(so[0]&5)throw so[1];return{value:so[0]?so[1]:void 0,done:!0}}},je,Xe,me,ge,we,Re,Ee,ve;c.c.appendMenuItem(7,{submenu:8,title:p.a("peek.submenu","Peek"),group:"navigation",order:100});var Q=function(Ve){ue(Qe,Ve);function Qe(it,pt){var Rt=Ve.call(this,pt)||this;return Rt._configuration=it,Rt}return Qe.prototype.run=function(it,pt){var Rt=this;if(!pt.hasModel())return Promise.resolve(void 0);var Mt=it.get(l.a),zt=it.get(O.a),uo=it.get(d.a),ao=it.get(Fe),so=pt.getModel(),Pt=pt.getPosition(),ft=new L.b(pt,1|4),vt=Object(re.j)(this._getLocationModel(so,Pt,ft.token),ft.token).then(function(At){return X(Rt,void 0,void 0,function(){var at,tt,ut,Ct;return he(this,function(gt){if(!At||ft.token.isCancellationRequested)return[2];if(Object(T.a)(At.ariaMessage),At.referenceAt(so.uri,Pt)&&(tt=this._getAlternativeCommand(pt),tt!==this.id&&(at=pt.getAction(tt))),ut=At.references.length,ut===0)this._configuration.muteMessage||(Ct=so.getWordAtPosition(Pt),_.a.get(pt).showMessage(this._getNoResultFoundMessage(Ct),Pt));else if(ut===1&&at)at.run();else return[2,this._onResult(zt,ao,pt,At)];return[2]})})},function(At){Mt.error(At)}).finally(function(){ft.dispose()});return uo.showWhile(vt,250),vt},Qe.prototype._onResult=function(it,pt,Rt,Mt){return X(this,void 0,void 0,function(){var zt,uo,ao,so;return he(this,function(Pt){switch(Pt.label){case 0:return zt=this._getGoToPreference(Rt),!(Rt instanceof q.a)&&(this._configuration.openInPeek||zt==="peek"&&Mt.references.length>1)?(this._openInPeek(Rt,Mt),[3,3]):[3,1];case 1:return uo=Mt.firstReference(),ao=Mt.references.length>1&&zt==="gotoAndPeek",[4,this._openReference(Rt,it,uo,this._configuration.openToSide,!ao)];case 2:so=Pt.sent(),ao&&so?this._openInPeek(so,Mt):Mt.dispose(),zt==="goto"&&pt.put(uo),Pt.label=3;case 3:return[2]}})})},Qe.prototype._openReference=function(it,pt,Rt,Mt,zt){return X(this,void 0,void 0,function(){var uo,ao,so,Pt;return he(this,function(ft){switch(ft.label){case 0:return uo=void 0,Object(y.G)(Rt)&&(uo=Rt.targetSelectionRange),uo||(uo=Rt.range),[4,pt.openCodeEditor({resource:Rt.uri,options:{selection:x.a.collapseToStart(uo),revealInCenterIfOutsideViewport:!0}},it,Mt)];case 1:return ao=ft.sent(),ao?(zt&&(so=ao.getModel(),Pt=ao.deltaDecorations([],[{range:uo,options:{className:"symbolHighlight"}}]),setTimeout(function(){ao.getModel()===so&&ao.deltaDecorations(Pt,[])},350)),[2,ao]):[2,void 0]}})})},Qe.prototype._openInPeek=function(it,pt){var Rt=v.a.get(it);Rt&&it.hasModel()?Rt.toggleWidget(it.getSelection(),Object(re.f)(function(Mt){return Promise.resolve(pt)}),this._configuration.openInPeek):pt.dispose()},Qe}(z.b),C=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.b)(it,pt,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("def.title","Definitions")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("noResultWord","No definition found for '{0}'",it.word):p.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),F=I.g&&!ne.l?2048|70:70;Object(z.f)((je=function(Ve){ue(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:p.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:s.a.and(u.a.hasDefinitionProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:F,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:p.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return E.a.registerCommandAlias("editor.action.goToDeclaration",Qe.id),it}return Qe}(C),je.id="editor.action.revealDefinition",je)),Object(z.f)((Xe=function(Ve){ue(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:p.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:s.a.and(u.a.hasDefinitionProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:Object(J.a)(2048|41,F),weight:100}})||this;return E.a.registerCommandAlias("editor.action.openDeclarationToTheSide",Qe.id),it}return Qe}(C),Xe.id="editor.action.revealDefinitionAside",Xe)),Object(z.f)((me=function(Ve){ue(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.id,label:p.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:s.a.and(u.a.hasDefinitionProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.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}(C),me.id="editor.action.peekDefinition",me));var se=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.a)(it,pt,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("decl.title","Declarations")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("decl.noResultWord","No declaration found for '{0}'",it.word):p.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)((ge=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:p.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:s.a.and(u.a.hasDeclarationProvider,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:p.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("decl.noResultWord","No declaration found for '{0}'",it.word):p.a("decl.generic.noResults","No declaration found")},Qe}(se),ge.id="editor.action.revealDeclaration",ge)),Object(z.f)(function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:p.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:s.a.and(u.a.hasDeclarationProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return Qe}(se));var oe=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.e)(it,pt,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("typedef.title","Type Definitions")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",it.word):p.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)((we=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.ID,label:p.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:s.a.and(u.a.hasTypeDefinitionProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:p.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return Qe}(oe),we.ID="editor.action.goToTypeDefinition",we)),Object(z.f)((Re=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.ID,label:p.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:s.a.and(u.a.hasTypeDefinitionProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return Qe}(oe),Re.ID="editor.action.peekTypeDefinition",Re));var be=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.c)(it,pt,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("impl.title","Implementations")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("goToImplementation.noResultWord","No implementation found for '{0}'",it.word):p.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){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.ID,label:p.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:s.a.and(u.a.hasImplementationProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:p.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return Qe}(be),Ee.ID="editor.action.goToImplementation",Ee)),Object(z.f)((ve=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.ID,label:p.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:s.a.and(u.a.hasImplementationProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return Qe}(be),ve.ID="editor.action.peekImplementation",ve));var De=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getNoResultFoundMessage=function(it){return it?p.a("references.no","No references found for '{0}'",it.word):p.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){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:p.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:s.a.and(u.a.hasReferenceProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:p.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.d)(it,pt,!0,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("ref.title","References")]))]}})})},Qe}(De)),Object(z.f)(function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:p.a("references.action.label","Peek References"),alias:"Peek References",precondition:s.a.and(u.a.hasReferenceProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.d)(it,pt,!1,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("ref.title","References")]))]}})})},Qe}(De));var Se=function(Ve){ue(Qe,Ve);function Qe(it,pt,Rt){var Mt=Ve.call(this,it,{id:"editor.action.goToLocation",label:p.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:s.a.and(f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated())})||this;return Mt._references=pt,Mt._gotoMultipleBehaviour=Rt,Mt}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){return he(this,function(Mt){return[2,new w.c(this._references,p.a("generic.title","Locations"))]})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&p.a("generic.noResult","No results for '{0}'",it.word)||""},Qe.prototype._getGoToPreference=function(it){var pt;return(pt=this._gotoMultipleBehaviour)!==null&&pt!==void 0?pt: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:H.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,pt,Rt,Mt,zt){return X(void 0,void 0,void 0,function(){var uo,ao;return he(this,function(so){switch(so.label){case 0:return Object(ae.a)(ee.a.isUri(it)),Object(ae.a)(H.a.isIPosition(pt)),Object(ae.a)(Array.isArray(Rt)),Object(ae.a)(typeof Mt=="undefined"||typeof Mt=="string"),Object(ae.a)(typeof zt=="undefined"||typeof zt=="boolean"),uo=Qe.get(O.a),[4,uo.openCodeEditor({resource:it},uo.getFocusedCodeEditor())];case 1:return ao=so.sent(),Object(U.a)(ao)?(ao.setPosition(pt),ao.revealPositionInCenterIfOutsideViewport(pt,0),[2,ao.invokeWithinContext(function(Pt){var ft=new Se({muteMessage:!0,openInPeek:Boolean(zt),openToSide:!1},Rt,Mt);Pt.get(A.a).invokeFunction(ft.run.bind(ft),ao)})]):[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:H.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,pt,Rt,Mt){return X(void 0,void 0,void 0,function(){return he(this,function(zt){return Qe.get(E.b).executeCommand("editor.action.goToLocations",it,pt,Rt,Mt,!0),[2]})})}}),E.a.registerCommand({id:"editor.action.findReferences",handler:function(Qe,it,pt){Object(ae.a)(ee.a.isUri(it)),Object(ae.a)(H.a.isIPosition(pt));var Rt=Qe.get(O.a);return Rt.openCodeEditor({resource:it},Rt.getFocusedCodeEditor()).then(function(Mt){if(!Object(U.a)(Mt)||!Mt.hasModel())return;var zt=v.a.get(Mt);if(!zt)return;var uo=Object(re.f)(function(so){return Object(m.d)(Mt.getModel(),H.a.lift(pt),!1,so).then(function(Pt){return new w.c(Pt,p.a("ref.title","References"))})}),ao=new x.a(pt.lineNumber,pt.column,pt.lineNumber,pt.column);return Promise.resolve(zt.toggleWidget(ao,uo,!1))})}}),E.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},"8gvo":function(Lt,j,e){},"8z58":function(Lt,j,e){"use strict";e.r(j),e.d(j,"CancellationTokenSource",function(){return Wd}),e.d(j,"Emitter",function(){return Bd}),e.d(j,"KeyCode",function(){return Hd}),e.d(j,"KeyMod",function(){return Ud}),e.d(j,"Position",function(){return Vd}),e.d(j,"Range",function(){return zd}),e.d(j,"Selection",function(){return Kd}),e.d(j,"SelectionDirection",function(){return Gd}),e.d(j,"MarkerSeverity",function(){return Xd}),e.d(j,"MarkerTag",function(){return Yd}),e.d(j,"Uri",function(){return Zd}),e.d(j,"Token",function(){return Qd}),e.d(j,"editor",function(){return $d}),e.d(j,"languages",function(){return Jd});var T=e("/UlZ"),re=e("URDS"),J=e("JQT/"),I=e("MI8n"),U=e("/kV6"),z=e("bY76"),O=e("cGHE"),H=e("aokT"),x=e("gCVg"),u=e("Tcc1"),y;(function(a){a[a.Unknown=0]="Unknown",a[a.Disabled=1]="Disabled",a[a.Enabled=2]="Enabled"})(y||(y={}));var _;(function(a){a[a.KeepWhitespace=1]="KeepWhitespace",a[a.InsertAsSnippet=4]="InsertAsSnippet"})(_||(_={}));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 w;(function(a){a[a.Invoke=0]="Invoke",a[a.TriggerCharacter=1]="TriggerCharacter",a[a.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(w||(w={}));var p;(function(a){a[a.EXACT=0]="EXACT",a[a.ABOVE=1]="ABOVE",a[a.BELOW=2]="BELOW"})(p||(p={}));var c;(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"})(c||(c={}));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 m;(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"})(m||(m={}));var E;(function(a){a[a.TextDefined=0]="TextDefined",a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(E||(E={}));var L;(function(a){a[a.LF=0]="LF",a[a.CRLF=1]="CRLF"})(L||(L={}));var A;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(A||(A={}));var k;(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"})(k||(k={}));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 Ce;(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"})(Ce||(Ce={}));var Me;(function(a){a[a.None=0]="None",a[a.Text=1]="Text",a[a.Blocks=2]="Blocks"})(Me||(Me={}));var Te;(function(a){a[a.Smooth=0]="Smooth",a[a.Immediate=1]="Immediate"})(Te||(Te={}));var Fe;(function(a){a[a.Auto=1]="Auto",a[a.Hidden=2]="Hidden",a[a.Visible=3]="Visible"})(Fe||(Fe={}));var Ue;(function(a){a[a.LTR=0]="LTR",a[a.RTL=1]="RTL"})(Ue||(Ue={}));var Pe;(function(a){a[a.Invoke=1]="Invoke",a[a.TriggerCharacter=2]="TriggerCharacter",a[a.ContentChange=3]="ContentChange"})(Pe||(Pe={}));var ne;(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"})(ne||(ne={}));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 ue;(function(a){a[a.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",a[a.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",a[a.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",a[a.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ue||(ue={}));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,n){return Object(U.a)(r,n)},a.CtrlCmd=2048,a.Shift=1024,a.Alt=512,a.WinCtrl=256,a}();function je(){return{editor:void 0,languages:void 0,CancellationTokenSource:J.b,Emitter:I.a,KeyCode:k,KeyMod:he,Position:O.a,Range:H.a,Selection:x.a,SelectionDirection:Ue,MarkerSeverity:R,MarkerTag:$,Uri:z.a,Token:u.a}}var Xe=e("siPX"),me=e("Vxe3"),ge=e("EffR"),we=e("24hK"),Re=e("Q4rV"),Ee=e("tYmi"),ve=e("gslv"),Q=e("nnTU"),C=e("W9cx"),F;(function(a){a[a.API=0]="API",a[a.USER=1]="USER"})(F||(F={}));var se=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},oe=function(a,r){return function(n,h){r(n,h,a)}},be=function(a,r,n,h){function S(N){return N instanceof n?N:new n(function(ce){ce(N)})}return new(n||(n=Promise))(function(N,ce){function Be(_t){try{Ye(h.next(_t))}catch(Ot){ce(Ot)}}function Ge(_t){try{Ye(h.throw(_t))}catch(Ot){ce(Ot)}}function Ye(_t){_t.done?N(_t.value):S(_t.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},De=function(a,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},h,S,N,ce;return ce={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function Be(Ye){return function(_t){return Ge([Ye,_t])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,S&&(N=Ye[0]&2?S.return:Ye[0]?S.throw||((N=S.return)&&N.call(S),0):S.next)&&!(N=N.call(S,Ye[1])).done)return N;(S=0,N)&&(Ye=[Ye[0]&2,N.value]);switch(Ye[0]){case 0:case 1:N=Ye;break;case 4:return n.label++,{value:Ye[1],done:!1};case 5:n.label++,S=Ye[1],Ye=[0];continue;case 7:Ye=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]<N[3])){n.label=Ye[1];break}if(Ye[0]===6&&n.label<N[1]){n.label=N[1],N=Ye;break}if(N&&n.label<N[2]){n.label=N[2],n.ops.push(Ye);break}N[2]&&n.ops.pop(),n.trys.pop();continue}Ye=r.call(a,n)}catch(_t){Ye=[6,_t],S=0}finally{h=N=0}if(Ye[0]&5)throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}},Se=function(){for(var a=0,r=0,n=arguments.length;r<n;r++)a+=arguments[r].length;for(var h=Array(a),S=0,r=0;r<n;r++)for(var N=arguments[r],ce=0,Be=N.length;ce<Be;ce++,S++)h[S]=N[ce];return h},Ve=function(){function a(r){this._commandService=r}return a.prototype.open=function(r){return be(this,void 0,void 0,function(){var n,h;return De(this,function(S){switch(S.label){case 0:if(!Object(C.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");n=[];try{n=Object(Re.a)(decodeURIComponent(r.query))}catch(N){try{n=Object(Re.a)(r.query)}catch(ce){}}return Array.isArray(n)||(n=[n]),[4,(h=this._commandService).executeCommand.apply(h,Se([r.path],n))];case 1:return S.sent(),[2,!0]}})})},a=se([oe(0,Q.b)],a),a}(),Qe=function(){function a(r){this._editorService=r}return a.prototype.open=function(r,n){return be(this,void 0,void 0,function(){var h,S;return De(this,function(N){switch(N.label){case 0:return typeof r=="string"&&(r=z.a.parse(r)),h=void 0,S=/^L?(\d+)(?:,(\d+))?/.exec(r.fragment),S&&(h={startLineNumber:parseInt(S[1]),startColumn:S[2]?parseInt(S[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:(n==null?void 0:n.fromUserGesture)?F.USER:F.API}},this._editorService.getFocusedCodeEditor(),n==null?void 0:n.openToSide)];case 1:return N.sent(),[2,!0]}})})},a=se([oe(0,me.a)],a),a}(),it=function(){function a(r,n){var h=this;this._openers=new we.a,this._validators=new we.a,this._resolvers=new we.a,this._externalOpener={openExternal:function(N){return ge.ab(N),Promise.resolve(!0)}},this._openers.push({open:function(N,ce){return be(h,void 0,void 0,function(){return De(this,function(Be){switch(Be.label){case 0:return(ce==null?void 0:ce.openExternal)||Object(C.c)(N,Ee.b.mailto)||Object(C.c)(N,Ee.b.http)||Object(C.c)(N,Ee.b.https)?[4,this._doOpenExternal(N,ce)]:[3,2];case 1:return Be.sent(),[2,!0];case 2:return[2,!1]}})})}}),this._openers.push(new Ve(n)),this._openers.push(new Qe(r))}return a.prototype.open=function(r,n){return be(this,void 0,void 0,function(){var h,S,N,ce,Be,Ge,Ye;return De(this,function(_t){switch(_t.label){case 0:h=0,S=this._validators.toArray(),_t.label=1;case 1:return h<S.length?(N=S[h],[4,N.shouldOpen(r)]):[3,4];case 2:if(!_t.sent())return[2,!1];_t.label=3;case 3:return h++,[3,1];case 4:ce=0,Be=this._openers.toArray(),_t.label=5;case 5:return ce<Be.length?(Ge=Be[ce],[4,Ge.open(r,n)]):[3,8];case 6:if(Ye=_t.sent(),Ye)return[2,!0];_t.label=7;case 7:return ce++,[3,5];case 8:return[2,!1]}})})},a.prototype.resolveExternalUri=function(r,n){return be(this,void 0,void 0,function(){var h,S,N,ce;return De(this,function(Be){switch(Be.label){case 0:h=0,S=this._resolvers.toArray(),Be.label=1;case 1:return h<S.length?(N=S[h],[4,N.resolveExternalUri(r,n)]):[3,4];case 2:if(ce=Be.sent(),ce)return[2,ce];Be.label=3;case 3:return h++,[3,1];case 4:return[2,{resolved:r,dispose:function(){}}]}})})},a.prototype._doOpenExternal=function(r,n){return be(this,void 0,void 0,function(){var h,S;return De(this,function(N){switch(N.label){case 0:return h=typeof r=="string"?z.a.parse(r):r,[4,this.resolveExternalUri(h,n)];case 1:if(S=N.sent().resolved,typeof r=="string"&&h.toString()===S.toString())return[2,this._externalOpener.openExternal(r)];return[2,this._externalOpener.openExternal(encodeURI(S.toString(!0)))];return[2]}})})},a.prototype.dispose=function(){this._validators.clear()},a=se([oe(0,me.a),oe(1,Q.b)],a),a}(),pt=e("FWmy"),Rt=e("pmY6"),Mt=e("qj0h"),zt=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),uo={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},ao=function(a){zt(r,a);function r(n,h){h===void 0&&(h={});var S=a.call(this)||this;return S._onDidUpdate=S._register(new I.a),S._editor=n,S._options=Mt.g(h,uo,!1),S.disposed=!1,S.nextIdx=-1,S.ranges=[],S.ignoreSelectionChange=!1,S.revealFirst=Boolean(S._options.alwaysRevealFirst),S._register(S._editor.onDidDispose(function(){return S.dispose()})),S._register(S._editor.onDidUpdateDiff(function(){return S._onDiffUpdated()})),S._options.followsCaret&&S._register(S._editor.getModifiedEditor().onDidChangeCursorPosition(function(N){if(S.ignoreSelectionChange)return;S.nextIdx=-1})),S._options.alwaysRevealFirst&&S._register(S._editor.getModifiedEditor().onDidChangeModel(function(N){S.revealFirst=!0})),S._init(),S}return r.prototype._init=function(){var n=this._editor.getLineChanges();if(!n)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(n){var h=this;this.ranges=[],n&&n.forEach(function(S){!h._options.ignoreCharChanges&&S.charChanges?S.charChanges.forEach(function(N){h.ranges.push({rhs:!0,range:new H.a(N.modifiedStartLineNumber,N.modifiedStartColumn,N.modifiedEndLineNumber,N.modifiedEndColumn)})}):h.ranges.push({rhs:!0,range:new H.a(S.modifiedStartLineNumber,1,S.modifiedStartLineNumber,1)})}),this.ranges.sort(function(S,N){return S.range.getStartPosition().isBeforeOrEqual(N.range.getStartPosition())?-1:N.range.getStartPosition().isBeforeOrEqual(S.range.getStartPosition())?1:0}),this._onDidUpdate.fire(this)},r.prototype._initIdx=function(n){var h=!1,S=this._editor.getPosition();if(!S){this.nextIdx=0;return}for(var N=0,ce=this.ranges.length;N<ce&&!h;N++){var Be=this.ranges[N].range;S.isBeforeOrEqual(Be.getStartPosition())&&(this.nextIdx=N+(n?0:-1),h=!0)}h||(this.nextIdx=n?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)},r.prototype._move=function(n,h){if(pt.a(!this.disposed,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;this.nextIdx===-1?this._initIdx(n):n?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var S=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var N=S.range.getStartPosition();this._editor.setPosition(N),this._editor.revealPositionInCenter(N,h)}finally{this.ignoreSelectionChange=!1}},r.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},r.prototype.next=function(n){n===void 0&&(n=0),this._move(!0,n)},r.prototype.previous=function(n){n===void 0&&(n=0),this._move(!1,n)},r.prototype.dispose=function(){a.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},r}(Rt.a),so=e("+3Gp"),Pt=e("iuje"),ft=e("M1Kb"),vt=e("twdY"),At=e("i/Ef"),at=e("pAvP"),tt=e("t49l"),ut=e("X+cX"),Ct=e("/cxE"),gt=e("MNsG"),bt=e("746U"),Gt=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Nt="$initialize",Et=!1;function Je(a){if(!gt.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,n){var h=this,S=String(++this._lastSentReq);return new Promise(function(N,ce){h._pendingReplies[S]={resolve:N,reject:ce},h._send({vsWorker:h._workerId,req:S,method:r,args:n})})},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 n=this;if(r.seq){var h=r;if(!this._pendingReplies[h.seq]){console.warn("Got reply to unknown seq");return}var S=this._pendingReplies[h.seq];if(delete this._pendingReplies[h.seq],h.err){var N=h.err;h.err.$isError&&(N=new Error,N.name=h.err.name,N.message=h.err.message,N.stack=h.err.stack),S.reject(N);return}S.resolve(h.res);return}var ce=r,Be=ce.req,Ge=this._handler.handleMessage(ce.method,ce.args);Ge.then(function(Ye){n._send({vsWorker:n._workerId,seq:Be,res:Ye,err:void 0})},function(Ye){Ye.detail instanceof Error&&(Ye.detail=Object(Ct.g)(Ye.detail)),n._send({vsWorker:n._workerId,seq:Be,res:void 0,err:Object(Ct.g)(Ye)})})},a.prototype._send=function(r){var n=[];if(r.req)for(var h=r,S=0;S<h.args.length;S++)h.args[S]instanceof ArrayBuffer&&n.push(h.args[S]);else{var h=r;h.res instanceof ArrayBuffer&&n.push(h.res)}this._handler.sendMessage(r,n)},a}(),ze=function(a){Gt(r,a);function r(n,h,S){var N=a.call(this)||this,ce=null;N._worker=N._register(n.create("vs/base/common/worker/simpleWorker",function(_t){N._protocol.handleMessage(_t)},function(_t){ce&&ce(_t)})),N._protocol=new $e({sendMessage:function(Ot,Ft){N._worker.postMessage(Ot,Ft)},handleMessage:function(Ot,Ft){if(typeof S[Ot]!="function")return Promise.reject(new Error("Missing method "+Ot+" on main thread host."));try{return Promise.resolve(S[Ot].apply(S,Ft))}catch(jt){return Promise.reject(jt)}}}),N._protocol.setWorkerId(N._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=bt.c(S);N._onModuleLoaded=N._protocol.sendMessage(Nt,[N._worker.getId(),JSON.parse(JSON.stringify(Be)),h,Ge]);var Ye=function(Ot,Ft){return N._request(Ot,Ft)};return N._lazyProxy=new Promise(function(_t,Ot){ce=Ot,N._onModuleLoaded.then(function(Ft){_t(bt.b(Ft,Ye))},function(Ft){Ot(Ft),N._onError("Worker failed to load "+h,Ft)})}),N}return r.prototype.getProxyObject=function(){return this._lazyProxy},r.prototype._request=function(n,h){var S=this;return new Promise(function(N,ce){S._onModuleLoaded.then(function(){S._protocol.sendMessage(n,h).then(N,ce)},ce)})},r.prototype._onError=function(n,h){console.error(n),console.info(h)},r}(Rt.a),Ke=function(){function a(r,n){var h=this;this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new $e({sendMessage:function(N,ce){r(N,ce)},handleMessage:function(N,ce){return h._handleMessage(N,ce)}})}return a.prototype.onmessage=function(r){this._protocol.handleMessage(r)},a.prototype._handleMessage=function(r,n){if(r===Nt)return this.initialize(n[0],n[1],n[2],n[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,n))}catch(h){return Promise.reject(h)}},a.prototype.initialize=function(r,n,h,S){var N=this;this._protocol.setWorkerId(r);var ce=function(Ye,_t){return N._protocol.sendMessage(Ye,_t)},Be=bt.b(S,ce);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(Be),Promise.resolve(bt.c(this._requestHandler))):(n&&(typeof n.baseUrl!="undefined"&&delete n.baseUrl,typeof n.paths!="undefined"&&(typeof n.paths.vs!="undefined"&&delete n.paths.vs),n.catchError=!0,self.require.config(n)),new Promise(function(Ge,Ye){self.require([h],function(_t){if(N._requestHandler=_t.create(Be),!N._requestHandler){Ye(new Error("No RequestHandler!"));return}Ge(bt.c(N._requestHandler))},Ye)}))},a}();function fe(a){return new Ke(a,null)}function G(a,r){if(gt.b.MonacoEnvironment){if(typeof gt.b.MonacoEnvironment.getWorker=="function")return gt.b.MonacoEnvironment.getWorker(a,r);if(typeof gt.b.MonacoEnvironment.getWorkerUrl=="function")return new Worker(gt.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,n,h,S,N){this.id=n;var ce=G("workerMain.js",h);te(ce)?this.worker=ce:this.worker=Promise.resolve(ce),this.postMessage(r,[]),this.worker.then(function(Be){Be.onmessage=function(Ge){S(Ge.data)},Be.onmessageerror=N,typeof Be.addEventListener=="function"&&Be.addEventListener("error",N)})}return a.prototype.getId=function(){return this.id},a.prototype.postMessage=function(r,n){this.worker&&this.worker.then(function(h){return h.postMessage(r,n)})},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,n,h){var S=this,N=++a.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new Y(r,N,this._label||"anonymous"+N,n,function(ce){Je(ce),S._webWorkerFailedBeforeError=ce,h(ce)})},a.LAST_WORKER_ID=0,a}(),ke=e("cMvZ"),lt=e("6OMU"),Tt=e("Gw4z"),Jt=e("JYp7"),eo=e("N0LK"),po=3;function co(a,r,n,h){var S=new Tt.a(a,r,n);return S.ComputeDiff(h)}var Eo=function(){function a(r){for(var n=[],h=[],S=0,N=r.length;S<N;S++)n[S]=Go(r[S],1),h[S]=Bo(r[S],1);this.lines=r,this._startColumns=n,this._endColumns=h}return a.prototype.getElements=function(){for(var r=[],n=0,h=this.lines.length;n<h;n++)r[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return r},a.prototype.getStartLineNumber=function(r){return r+1},a.prototype.getEndLineNumber=function(r){return r+1},a.prototype.createCharSequence=function(r,n,h){for(var S=[],N=[],ce=[],Be=0,Ge=n;Ge<=h;Ge++)for(var Ye=this.lines[Ge],_t=r?this._startColumns[Ge]:1,Ot=r?this._endColumns[Ge]:Ye.length+1,Ft=_t;Ft<Ot;Ft++)S[Be]=Ye.charCodeAt(Ft-1),N[Be]=Ge+1,ce[Be]=Ft,Be++;return new Oo(S,N,ce)},a}(),Oo=function(){function a(r,n,h){this._charCodes=r,this._lineNumbers=n,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}(),Ao=function(){function a(r,n,h,S,N,ce,Be,Ge){this.originalStartLineNumber=r,this.originalStartColumn=n,this.originalEndLineNumber=h,this.originalEndColumn=S,this.modifiedStartLineNumber=N,this.modifiedStartColumn=ce,this.modifiedEndLineNumber=Be,this.modifiedEndColumn=Ge}return a.createFromDiffChange=function(r,n,h){var S,N,ce,Be,Ge,Ye,_t,Ot;return r.originalLength===0?(S=0,N=0,ce=0,Be=0):(S=n.getStartLineNumber(r.originalStart),N=n.getStartColumn(r.originalStart),ce=n.getEndLineNumber(r.originalStart+r.originalLength-1),Be=n.getEndColumn(r.originalStart+r.originalLength-1)),r.modifiedLength===0?(Ge=0,Ye=0,_t=0,Ot=0):(Ge=h.getStartLineNumber(r.modifiedStart),Ye=h.getStartColumn(r.modifiedStart),_t=h.getEndLineNumber(r.modifiedStart+r.modifiedLength-1),Ot=h.getEndColumn(r.modifiedStart+r.modifiedLength-1)),new a(S,N,ce,Be,Ge,Ye,_t,Ot)},a}();function Zo(a){if(a.length<=1)return a;for(var r=[a[0]],n=r[0],h=1,S=a.length;h<S;h++){var N=a[h],ce=N.originalStart-(n.originalStart+n.originalLength),Be=N.modifiedStart-(n.modifiedStart+n.modifiedLength),Ge=Math.min(ce,Be);Ge<po?(n.originalLength=N.originalStart+N.originalLength-n.originalStart,n.modifiedLength=N.modifiedStart+N.modifiedLength-n.modifiedStart):(r.push(N),n=N)}return r}var Co=function(){function a(r,n,h,S,N){this.originalStartLineNumber=r,this.originalEndLineNumber=n,this.modifiedStartLineNumber=h,this.modifiedEndLineNumber=S,this.charChanges=N}return a.createFromDiffResult=function(r,n,h,S,N,ce,Be){var Ge,Ye,_t,Ot,Ft=void 0;if(n.originalLength===0?(Ge=h.getStartLineNumber(n.originalStart)-1,Ye=0):(Ge=h.getStartLineNumber(n.originalStart),Ye=h.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(_t=S.getStartLineNumber(n.modifiedStart)-1,Ot=0):(_t=S.getStartLineNumber(n.modifiedStart),Ot=S.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),ce&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&N()){var jt=h.createCharSequence(r,n.originalStart,n.originalStart+n.originalLength-1),ro=S.createCharSequence(r,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),to=co(jt,ro,N,!0).changes;Be&&(to=Zo(to)),Ft=[];for(var Yt=0,Qt=to.length;Yt<Qt;Yt++)Ft.push(Ao.createFromDiffChange(to[Yt],jt,ro))}return new a(Ge,Ye,_t,Ot,Ft)},a}(),Wo=function(){function a(r,n,h){this.shouldComputeCharChanges=h.shouldComputeCharChanges,this.shouldPostProcessCharChanges=h.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=h.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=h.shouldMakePrettyDiff,this.originalLines=r,this.modifiedLines=n,this.original=new Eo(r),this.modified=new Eo(n),this.continueLineDiff=Mo(h.maxComputationTime),this.continueCharDiff=Mo(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=co(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=r.changes,h=r.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var S=[],N=0,ce=n.length;N<ce;N++)S.push(Co.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[N],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:h,changes:S}}for(var Be=[],Ge=0,Ye=0,N=-1,_t=n.length;N<_t;N++){for(var Ot=N+1<_t?n[N+1]:null,Ft=Ot?Ot.originalStart:this.originalLines.length,jt=Ot?Ot.modifiedStart:this.modifiedLines.length;Ge<Ft&&Ye<jt;){var ro=this.originalLines[Ge],to=this.modifiedLines[Ye];if(ro!==to){{for(var Yt=Go(ro,1),Qt=Go(to,1);Yt>1&&Qt>1;){var ho=ro.charCodeAt(Yt-2),So=to.charCodeAt(Qt-2);if(ho!==So)break;Yt--,Qt--}(Yt>1||Qt>1)&&this._pushTrimWhitespaceCharChange(Be,Ge+1,1,Yt,Ye+1,1,Qt)}{for(var To=Bo(ro,1),Io=Bo(to,1),ko=ro.length+1,Ko=to.length+1;To<ko&&Io<Ko;){var ho=ro.charCodeAt(To-1),So=ro.charCodeAt(Io-1);if(ho!==So)break;To++,Io++}(To<ko||Io<Ko)&&this._pushTrimWhitespaceCharChange(Be,Ge+1,To,ko,Ye+1,Io,Ko)}}Ge++,Ye++}Ot&&(Be.push(Co.createFromDiffResult(this.shouldIgnoreTrimWhitespace,Ot,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),Ge+=Ot.originalLength,Ye+=Ot.modifiedLength)}return{quitEarly:h,changes:Be}},a.prototype._pushTrimWhitespaceCharChange=function(r,n,h,S,N,ce,Be){if(this._mergeTrimWhitespaceCharChange(r,n,h,S,N,ce,Be))return;var Ge=void 0;this.shouldComputeCharChanges&&(Ge=[new Ao(n,h,n,S,N,ce,N,Be)]),r.push(new Co(n,n,N,N,Ge))},a.prototype._mergeTrimWhitespaceCharChange=function(r,n,h,S,N,ce,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===n&&Ye.modifiedEndLineNumber+1===N?(Ye.originalEndLineNumber=n,Ye.modifiedEndLineNumber=N,this.shouldComputeCharChanges&&Ye.charChanges&&Ye.charChanges.push(new Ao(n,h,n,S,N,ce,N,Be)),!0):!1},a}();function Go(a,r){var n=eo.q(a);return n===-1?r:n+1}function Bo(a,r){var n=eo.D(a);return n===-1?r:n+2}function Mo(a){if(a===0)return function(){return!0};var r=Date.now();return function(){return Date.now()-r<a}}var Qo=e("LeU+"),fn=function(){function a(r,n,h,S){this._uri=r,this._lines=n,this._eol=h,this._versionId=S,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 n=r.changes,h=0,S=n;h<S.length;h++){var N=S[h];this._acceptDeleteRange(N.range),this._acceptInsertText(new O.a(N.range.startLineNumber,N.range.startColumn),N.text)}this._versionId=r.versionId},a.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var r=this._eol.length,n=this._lines.length,h=new Uint32Array(n),S=0;S<n;S++)h[S]=this._lines[S].length+r;this._lineStarts=new Qo.a(h)}},a.prototype._setLineText=function(r,n){this._lines[r]=n,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,n){if(n.length===0)return;var h=n.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 S=new Uint32Array(h.length-1),N=1;N<h.length;N++)this._lines.splice(r.lineNumber+N-1,0,h[N]),S[N-1]=h[N].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(r.lineNumber,S)},a}(),Vo=e("0JNc"),mn=e("MXAL"),yn=function(){function a(r,n,h){for(var S=new Uint8Array(r*n),N=0,ce=r*n;N<ce;N++)S[N]=h;this._data=S,this.rows=r,this.cols=n}return a.prototype.get=function(r,n){return this._data[r*this.cols+n]},a.prototype.set=function(r,n,h){this._data[r*this.cols+n]=h},a}(),dn=function(){function a(r){for(var n=0,h=0,S=0,N=r.length;S<N;S++){var ce=r[S],Be=ce[0],Ge=ce[1],Ye=ce[2];Ge>n&&(n=Ge),Be>h&&(h=Be),Ye>h&&(h=Ye)}n++,h++;for(var _t=new yn(h,n,0),S=0,N=r.length;S<N;S++){var Ot=r[S],Be=Ot[0],Ge=Ot[1],Ye=Ot[2];_t.set(Be,Ge,Ye)}this._states=_t,this._maxCharCode=n}return a.prototype.nextState=function(r,n){return n<0||n>=this._maxCharCode?0:this._states.get(r,n)},a}(),rn=null;function pn(){return rn===null&&(rn=new dn([[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]])),rn}var zo=null;function Ho(){if(zo===null){zo=new mn.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++)zo.set(a.charCodeAt(r),1);for(var n=".,;",r=0;r<n.length;r++)zo.set(n.charCodeAt(r),2)}return zo}var St=function(){function a(){}return a._createLink=function(r,n,h,S,N){var ce=N-1;do{var Be=n.charCodeAt(ce),Ge=r.get(Be);if(Ge!==2)break;ce--}while(ce>S);if(S>0){var Ye=n.charCodeAt(S-1),_t=n.charCodeAt(ce);(Ye===40&&_t===41||Ye===91&&_t===93||Ye===123&&_t===125)&&ce--}return{range:{startLineNumber:h,startColumn:S+1,endLineNumber:h,endColumn:ce+2},url:n.substring(S,ce+1)}},a.computeLinks=function(r,n){n===void 0&&(n=pn());for(var h=Ho(),S=[],N=1,ce=r.getLineCount();N<=ce;N++){for(var Be=r.getLineContent(N),Ge=Be.length,Ye=0,_t=0,Ot=0,Ft=1,jt=!1,ro=!1,to=!1;Ye<Ge;){var Yt=!1,Qt=Be.charCodeAt(Ye);if(Ft===13){var ho=void 0;switch(Qt){case 40:jt=!0,ho=0;break;case 41:ho=jt?0:1;break;case 91:ro=!0,ho=0;break;case 93:ho=ro?0:1;break;case 123:to=!0,ho=0;break;case 125:ho=to?0:1;break;case 39:ho=Ot===34||Ot===96?0:1;break;case 34:ho=Ot===39||Ot===96?0:1;break;case 96:ho=Ot===39||Ot===34?0:1;break;case 42:ho=Ot===42?1:0;break;case 124:ho=Ot===124?1:0;break;default:ho=h.get(Qt)}ho===1&&(S.push(a._createLink(h,Be,N,_t,Ye)),Yt=!0)}else if(Ft===12){var ho=void 0;Qt===91?(ro=!0,ho=0):ho=h.get(Qt),ho===1?Yt=!0:Ft=13}else Ft=n.nextState(Ft,Qt),Ft===0&&(Yt=!0);Yt&&(Ft=1,jt=!1,ro=!1,to=!1,_t=Ye+1,Ot=Qt),Ye++}Ft===13&&S.push(a._createLink(h,Be,N,_t,Ge))}return S},a}();function ot(a){return!a||typeof a.getLineCount!="function"||typeof a.getLineContent!="function"?[]:St.computeLinks(a)}var nt=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,n,h,S,N){if(r&&n){var ce=this.doNavigateValueSet(n,N);if(ce)return{range:r,value:ce}}if(h&&S){var ce=this.doNavigateValueSet(S,N);if(ce)return{range:h,value:ce}}return null},a.prototype.doNavigateValueSet=function(r,n){var h=this.numberReplace(r,n);return h!==null?h:this.textReplace(r,n)},a.prototype.numberReplace=function(r,n){var h=Math.pow(10,r.length-(r.lastIndexOf(".")+1)),S=Number(r),N=parseFloat(r);return!isNaN(S)&&!isNaN(N)&&S===N?S===0&&!n?null:(S=Math.floor(S*h),S+=n?h:-h,String(S/h)):null},a.prototype.textReplace=function(r,n){return this.valueSetsReplace(this._defaultValueSet,r,n)},a.prototype.valueSetsReplace=function(r,n,h){for(var S=null,N=0,ce=r.length;S===null&&N<ce;N++)S=this.valueSetReplace(r[N],n,h);return S},a.prototype.valueSetReplace=function(r,n,h){var S=r.indexOf(n);return S>=0?(S+=h?1:-1,S<0?S=r.length-1:S%=r.length,r[S]):null},a.INSTANCE=new a,a}(),Dt=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),_e=function(a,r,n,h){function S(N){return N instanceof n?N:new n(function(ce){ce(N)})}return new(n||(n=Promise))(function(N,ce){function Be(_t){try{Ye(h.next(_t))}catch(Ot){ce(Ot)}}function Ge(_t){try{Ye(h.throw(_t))}catch(Ot){ce(Ot)}}function Ye(_t){_t.done?N(_t.value):S(_t.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},M=function(a,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},h,S,N,ce;return ce={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function Be(Ye){return function(_t){return Ge([Ye,_t])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,S&&(N=Ye[0]&2?S.return:Ye[0]?S.throw||((N=S.return)&&N.call(S),0):S.next)&&!(N=N.call(S,Ye[1])).done)return N;(S=0,N)&&(Ye=[Ye[0]&2,N.value]);switch(Ye[0]){case 0:case 1:N=Ye;break;case 4:return n.label++,{value:Ye[1],done:!1};case 5:n.label++,S=Ye[1],Ye=[0];continue;case 7:Ye=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]<N[3])){n.label=Ye[1];break}if(Ye[0]===6&&n.label<N[1]){n.label=N[1],N=Ye;break}if(N&&n.label<N[2]){n.label=N[2],n.ops.push(Ye);break}N[2]&&n.ops.pop(),n.trys.pop();continue}Ye=r.call(a,n)}catch(_t){Ye=[6,_t],S=0}finally{h=N=0}if(Ye[0]&5)throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}},P=function(a){Dt(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(n){return this._lines[n-1]},r.prototype.getWordAtPosition=function(n,h){var S=Object(Vo.d)(n.column,Object(Vo.c)(h),this._lines[n.lineNumber-1],0);return S?new H.a(n.lineNumber,S.startColumn,n.lineNumber,S.endColumn):null},r.prototype.createWordIterator=function(n){var h=this,S,N=0,ce,Be=0,Ge=[],Ye=function _t(){if(Be<Ge.length){var Ot=ce.substring(Ge[Be].start,Ge[Be].end);return Be+=1,S?S.value=Ot:S={done:!1,value:Ot},S}else return N>=h._lines.length?Jt.c:(ce=h._lines[N],Ge=h._wordenize(ce,n),Be=0,N+=1,_t())};return{next:Ye}},r.prototype.getLineWords=function(n,h){for(var S=this._lines[n-1],N=this._wordenize(S,h),ce=[],Be=0,Ge=N;Be<Ge.length;Be++){var Ye=Ge[Be];ce.push({word:S.substring(Ye.start,Ye.end),startColumn:Ye.start+1,endColumn:Ye.end+1})}return ce},r.prototype._wordenize=function(n,h){var S=[],N;for(h.lastIndex=0;(N=h.exec(n))&&!(N[0].length===0);)S.push({start:N.index,end:N.index+N[0].length});return S},r.prototype.getValueInRange=function(n){if(n=this._validateRange(n),n.startLineNumber===n.endLineNumber)return this._lines[n.startLineNumber-1].substring(n.startColumn-1,n.endColumn-1);var h=this._eol,S=n.startLineNumber-1,N=n.endLineNumber-1,ce=[];ce.push(this._lines[S].substring(n.startColumn-1));for(var Be=S+1;Be<N;Be++)ce.push(this._lines[Be]);return ce.push(this._lines[N].substring(0,n.endColumn-1)),ce.join(h)},r.prototype.offsetAt=function(n){return n=this._validatePosition(n),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(n.lineNumber-2)+(n.column-1)},r.prototype.positionAt=function(n){n=Math.floor(n),n=Math.max(0,n),this._ensureLineStarts();var h=this._lineStarts.getIndexOf(n),S=this._lines[h.index].length;return{lineNumber:1+h.index,column:1+Math.min(h.remainder,S)}},r.prototype._validateRange=function(n){var h=this._validatePosition({lineNumber:n.startLineNumber,column:n.startColumn}),S=this._validatePosition({lineNumber:n.endLineNumber,column:n.endColumn});return h.lineNumber!==n.startLineNumber||h.column!==n.startColumn||S.lineNumber!==n.endLineNumber||S.column!==n.endColumn?{startLineNumber:h.lineNumber,startColumn:h.column,endLineNumber:S.lineNumber,endColumn:S.column}:n},r.prototype._validatePosition=function(n){if(!O.a.isIPosition(n))throw new Error("bad position");var h=n.lineNumber,S=n.column,N=!1;if(h<1)h=1,S=1,N=!0;else if(h>this._lines.length)h=this._lines.length,S=this._lines[h-1].length+1,N=!0;else{var ce=this._lines[h-1].length+1;S<1?(S=1,N=!0):S>ce&&(S=ce,N=!0)}return N?{lineNumber:h,column:S}:n},r}(fn),Z=function(){function a(r,n){this._host=r,this._models=Object.create(null),this._foreignModuleFactory=n,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,n=[];return Object.keys(this._models).forEach(function(h){return n.push(r._models[h])}),n},a.prototype.acceptNewModel=function(r){this._models[r.url]=new P(z.a.parse(r.url),r.lines,r.EOL,r.versionId)},a.prototype.acceptModelChanged=function(r,n){if(!this._models[r])return;var h=this._models[r];h.onEvents(n)},a.prototype.acceptRemovedModel=function(r){if(!this._models[r])return;delete this._models[r]},a.prototype.computeDiff=function(r,n,h,S){return _e(this,void 0,void 0,function(){var N,ce,Be,Ge,Ye,_t,Ot;return M(this,function(Ft){return N=this._getModel(r),ce=this._getModel(n),!N||!ce?[2,null]:(Be=N.getLinesContent(),Ge=ce.getLinesContent(),Ye=new Wo(Be,Ge,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:h,shouldMakePrettyDiff:!0,maxComputationTime:S}),_t=Ye.computeDiff(),Ot=_t.changes.length>0?!1:this._modelsAreIdentical(N,ce),[2,{quitEarly:_t.quitEarly,identical:Ot,changes:_t.changes}])})})},a.prototype._modelsAreIdentical=function(r,n){var h=r.getLineCount(),S=n.getLineCount();if(h!==S)return!1;for(var N=1;N<=h;N++){var ce=r.getLineContent(N),Be=n.getLineContent(N);if(ce!==Be)return!1}return!0},a.prototype.computeMoreMinimalEdits=function(r,n){return _e(this,void 0,void 0,function(){var h,S,N,ce,Be,Ge,Ye,_t,Ot,Ft,jt,ro,to,Yt,Qt,ho,So,To;return M(this,function(Io){if(h=this._getModel(r),!h)return[2,n];for(S=[],N=void 0,n=Object(lt.r)(n,function(ko,Ko){if(ko.range&&Ko.range)return H.a.compareRangesUsingStarts(ko.range,Ko.range);var ln=ko.range?0:1,wn=Ko.range?0:1;return ln-wn}),ce=0,Be=n;ce<Be.length;ce++){if(Ge=Be[ce],Ye=Ge.range,_t=Ge.text,Ot=Ge.eol,typeof Ot=="number"&&(N=Ot),H.a.isEmpty(Ye)&&!_t)continue;if(Ft=h.getValueInRange(Ye),_t=_t.replace(/\r\n|\n|\r/g,h.eol),Ft===_t)continue;if(Math.max(_t.length,Ft.length)>a._diffLimit){S.push({range:Ye,text:_t});continue}for(jt=Object(Tt.b)(Ft,_t,!1),ro=h.offsetAt(H.a.lift(Ye).getStartPosition()),to=0,Yt=jt;to<Yt.length;to++)Qt=Yt[to],ho=h.positionAt(ro+Qt.originalStart),So=h.positionAt(ro+Qt.originalStart+Qt.originalLength),To={text:_t.substr(Qt.modifiedStart,Qt.modifiedLength),range:{startLineNumber:ho.lineNumber,startColumn:ho.column,endLineNumber:So.lineNumber,endColumn:So.column}},h.getValueInRange(To.range)!==To.text&&S.push(To)}return typeof N=="number"&&S.push({eol:N,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,S]})})},a.prototype.computeLinks=function(r){return _e(this,void 0,void 0,function(){var n;return M(this,function(h){return n=this._getModel(r),n?[2,ot(n)]:[2,null]})})},a.prototype.textualSuggest=function(r,n,h,S){return _e(this,void 0,void 0,function(){var N,ce,Be,Ge,Ye,_t,Ot,Ft;return M(this,function(jt){if(N=this._getModel(r),!N)return[2,null];for(ce=[],Be=new Set,Ge=new RegExp(h,S),Ye=N.getWordAtPosition(n,Ge),Ye&&Be.add(N.getValueInRange(Ye)),_t=N.createWordIterator(Ge),Ot=_t.next();!Ot.done&&Be.size<=a._suggestionsLimit;Ot=_t.next()){if(Ft=Ot.value,Be.has(Ft))continue;if(Be.add(Ft),!isNaN(Number(Ft)))continue;ce.push(Ft)}return[2,ce]})})},a.prototype.computeWordRanges=function(r,n,h,S){return _e(this,void 0,void 0,function(){var N,ce,Be,Ge,Ye,_t,Ot,Ft,jt;return M(this,function(ro){if(N=this._getModel(r),!N)return[2,Object.create(null)];for(ce=new RegExp(h,S),Be=Object.create(null),Ge=n.startLineNumber;Ge<n.endLineNumber;Ge++)for(Ye=N.getLineWords(Ge,ce),_t=0,Ot=Ye;_t<Ot.length;_t++){if(Ft=Ot[_t],!isNaN(Number(Ft.word)))continue;jt=Be[Ft.word],jt||(jt=[],Be[Ft.word]=jt),jt.push({startLineNumber:Ge,startColumn:Ft.startColumn,endLineNumber:Ge,endColumn:Ft.endColumn})}return[2,Be]})})},a.prototype.navigateValueSet=function(r,n,h,S,N){return _e(this,void 0,void 0,function(){var ce,Be,Ge,Ye,_t,Ot;return M(this,function(Ft){return ce=this._getModel(r),ce?(Be=new RegExp(S,N),n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1}),Ge=ce.getValueInRange(n),Ye=ce.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},Be),Ye?(_t=ce.getValueInRange(Ye),Ot=nt.INSTANCE.navigateValueSet(n,Ge,Ye,_t,h),[2,Ot]):[2,null]):[2,null]})})},a.prototype.loadForeignModule=function(r,n,h){var S=this,N=function(Ye,_t){return S._host.fhr(Ye,_t)},ce=bt.b(h,N),Be={host:ce,getMirrorModels:function(){return S._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Be,n),Promise.resolve(bt.c(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},a.prototype.fmr=function(r,n){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,n))}catch(h){return Promise.reject(h)}},a._diffLimit=1e5,a._suggestionsLimit=1e4,a}();function Ae(a){return new Z(a,null)}typeof importScripts=="function"&&(gt.b.monaco=je());var xe=e("G2kB"),Ne=e("e0rL"),dt=e("09fa"),ht=e("5Y4S"),xt=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Bt=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Ht=function(a,r){return function(n,h){r(n,h,a)}},Ut=function(a,r,n,h){function S(N){return N instanceof n?N:new n(function(ce){ce(N)})}return new(n||(n=Promise))(function(N,ce){function Be(_t){try{Ye(h.next(_t))}catch(Ot){ce(Ot)}}function Ge(_t){try{Ye(h.throw(_t))}catch(Ot){ce(Ot)}}function Ye(_t){_t.done?N(_t.value):S(_t.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},oo=function(a,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},h,S,N,ce;return ce={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function Be(Ye){return function(_t){return Ge([Ye,_t])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,S&&(N=Ye[0]&2?S.return:Ye[0]?S.throw||((N=S.return)&&N.call(S),0):S.next)&&!(N=N.call(S,Ye[1])).done)return N;(S=0,N)&&(Ye=[Ye[0]&2,N.value]);switch(Ye[0]){case 0:case 1:N=Ye;break;case 4:return n.label++,{value:Ye[1],done:!1};case 5:n.label++,S=Ye[1],Ye=[0];continue;case 7:Ye=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]<N[3])){n.label=Ye[1];break}if(Ye[0]===6&&n.label<N[1]){n.label=N[1],N=Ye;break}if(N&&n.label<N[2]){n.label=N[2],n.ops.push(Ye);break}N[2]&&n.ops.pop(),n.trys.pop();continue}Ye=r.call(a,n)}catch(_t){Ye=[6,_t],S=0}finally{h=N=0}if(Ye[0]&5)throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}},Zt=60*1e3,fo=5*60*1e3;function yt(a,r){var n=a.getModel(r);return n?!n.isTooLargeForSyncing():!1}var He=function(a){xt(r,a);function r(n,h,S){var N=a.call(this)||this;return N._modelService=n,N._workerManager=N._register(new rt(N._modelService)),N._logService=S,N._register(vt.s.register("*",{provideLinks:function(Be,Ge){return yt(N._modelService,Be.uri)?N._workerManager.withWorker().then(function(Ye){return Ye.computeLinks(Be.uri)}).then(function(Ye){return Ye&&{links:Ye}}):Promise.resolve({links:[]})}})),N._register(vt.d.register("*",new Oe(N._workerManager,h,N._modelService))),N}return r.prototype.dispose=function(){a.prototype.dispose.call(this)},r.prototype.canComputeDiff=function(n,h){return yt(this._modelService,n)&&yt(this._modelService,h)},r.prototype.computeDiff=function(n,h,S,N){return this._workerManager.withWorker().then(function(ce){return ce.computeDiff(n,h,S,N)})},r.prototype.computeMoreMinimalEdits=function(n,h){var S=this;if(Object(lt.q)(h)){if(!yt(this._modelService,n))return Promise.resolve(h);var N=ht.a.create(!0),ce=this._workerManager.withWorker().then(function(Be){return Be.computeMoreMinimalEdits(n,h)});return ce.finally(function(){return S._logService.trace("FORMAT#computeMoreMinimalEdits",n.toString(!0),N.elapsed())}),ce}else return Promise.resolve(void 0)},r.prototype.canNavigateValueSet=function(n){return yt(this._modelService,n)},r.prototype.navigateValueSet=function(n,h,S){return this._workerManager.withWorker().then(function(N){return N.navigateValueSet(n,h,S)})},r.prototype.canComputeWordRanges=function(n){return yt(this._modelService,n)},r.prototype.computeWordRanges=function(n,h){return this._workerManager.withWorker().then(function(S){return S.computeWordRanges(n,h)})},r=Bt([Ht(0,xe.a),Ht(1,Ne.a),Ht(2,dt.a)],r),r}(Rt.a),Oe=function(){function a(r,n,h){this._debugDisplayName="wordbasedCompletions",this._workerManager=r,this._configurationService=n,this._modelService=h}return a.prototype.provideCompletionItems=function(r,n){return Ut(this,void 0,void 0,function(){var h,S,N,ce,Be,Ge;return oo(this,function(Ye){switch(Ye.label){case 0:return h=this._configurationService.getValue(r.uri,n,"editor").wordBasedSuggestions,h?yt(this._modelService,r.uri)?(S=r.getWordAtPosition(n),N=S?new H.a(n.lineNumber,S.startColumn,n.lineNumber,S.endColumn):H.a.fromPositions(n),ce=N.setEndPosition(n.lineNumber,n.column),[4,this._workerManager.withWorker()]):[2,void 0]:[2,void 0];case 1:return Be=Ye.sent(),[4,Be.textualSuggest(r.uri,n)];case 2:return Ge=Ye.sent(),Ge?[2,{suggestions:Ge.map(function(_t){return{kind:18,label:_t,insertText:_t,range:{insert:ce,replace:N}}})}]:[2,void 0]}})})},a}(),rt=function(a){xt(r,a);function r(n){var h=a.call(this)||this;h._modelService=n,h._editorWorkerClient=null,h._lastWorkerUsedTime=new Date().getTime();var S=h._register(new ut.c);return S.cancelAndSet(function(){return h._checkStopIdleWorker()},Math.round(fo/2)),h._register(h._modelService.onModelRemoved(function(N){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 n=this._modelService.getModels();n.length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype._checkStopIdleWorker=function(){if(!this._editorWorkerClient)return;var n=new Date().getTime()-this._lastWorkerUsedTime;n>fo&&(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),It=function(a){xt(r,a);function r(n,h,S){var N=a.call(this)||this;if(N._syncedModels=Object.create(null),N._syncedModelsLastUsedTime=Object.create(null),N._proxy=n,N._modelService=h,!S){var ce=new ut.c;ce.cancelAndSet(function(){return N._checkStopModelSync()},Math.round(Zt/2)),N._register(ce)}return N}return r.prototype.dispose=function(){for(var n in this._syncedModels)Object(Rt.f)(this._syncedModels[n]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),a.prototype.dispose.call(this)},r.prototype.ensureSyncedResources=function(n){for(var h=0,S=n;h<S.length;h++){var N=S[h],ce=N.toString();this._syncedModels[ce]||this._beginModelSync(N),this._syncedModels[ce]&&(this._syncedModelsLastUsedTime[ce]=new Date().getTime())}},r.prototype._checkStopModelSync=function(){var n=new Date().getTime(),h=[];for(var S in this._syncedModelsLastUsedTime){var N=n-this._syncedModelsLastUsedTime[S];N>Zt&&h.push(S)}for(var ce=0,Be=h;ce<Be.length;ce++){var Ge=Be[ce];this._stopModelSync(Ge)}},r.prototype._beginModelSync=function(n){var h=this,S=this._modelService.getModel(n);if(!S)return;if(S.isTooLargeForSyncing())return;var N=n.toString();this._proxy.acceptNewModel({url:S.uri.toString(),lines:S.getLinesContent(),EOL:S.getEOL(),versionId:S.getVersionId()});var ce=new Rt.b;ce.add(S.onDidChangeContent(function(Be){h._proxy.acceptModelChanged(N.toString(),Be)})),ce.add(S.onWillDispose(function(){h._stopModelSync(N)})),ce.add(Object(Rt.h)(function(){h._proxy.acceptRemovedModel(N)})),this._syncedModels[N]=ce},r.prototype._stopModelSync=function(n){var h=this._syncedModels[n];delete this._syncedModels[n],delete this._syncedModelsLastUsedTime[n],Object(Rt.f)(h)},r}(Rt.a),pe=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}(),D=function(){function a(r){this._workerClient=r}return a.prototype.fhr=function(r,n){return this._workerClient.fhr(r,n)},a}(),ye=function(a){xt(r,a);function r(n,h,S){var N=a.call(this)||this;return N._modelService=n,N._keepIdleModels=h,N._workerFactory=new de(S),N._worker=null,N._modelManager=null,N}return r.prototype.fhr=function(n,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 D(this)))}catch(n){Je(n),this._worker=new pe(new Z(new D(this),null))}return this._worker},r.prototype._getProxy=function(){var n=this;return this._getOrCreateWorker().getProxyObject().then(void 0,function(h){return Je(h),n._worker=new pe(new Z(new D(n),null)),n._getOrCreateWorker().getProxyObject()})},r.prototype._getOrCreateModelManager=function(n){return this._modelManager||(this._modelManager=this._register(new It(n,this._modelService,this._keepIdleModels))),this._modelManager},r.prototype._withSyncedResources=function(n){var h=this;return this._getProxy().then(function(S){return h._getOrCreateModelManager(S).ensureSyncedResources(n),S})},r.prototype.computeDiff=function(n,h,S,N){return this._withSyncedResources([n,h]).then(function(ce){return ce.computeDiff(n.toString(),h.toString(),S,N)})},r.prototype.computeMoreMinimalEdits=function(n,h){return this._withSyncedResources([n]).then(function(S){return S.computeMoreMinimalEdits(n.toString(),h)})},r.prototype.computeLinks=function(n){return this._withSyncedResources([n]).then(function(h){return h.computeLinks(n.toString())})},r.prototype.textualSuggest=function(n,h){var S=this;return this._withSyncedResources([n]).then(function(N){var ce=S._modelService.getModel(n);if(!ce)return null;var Be=ke.a.getWordDefinition(ce.getLanguageIdentifier().id),Ge=Be.source,Ye=Object(eo.H)(Be);return N.textualSuggest(n.toString(),h,Ge,Ye)})},r.prototype.computeWordRanges=function(n,h){var S=this;return this._withSyncedResources([n]).then(function(N){var ce=S._modelService.getModel(n);if(!ce)return Promise.resolve(null);var Be=ke.a.getWordDefinition(ce.getLanguageIdentifier().id),Ge=Be.source,Ye=Object(eo.H)(Be);return N.computeWordRanges(n.toString(),h,Ge,Ye)})},r.prototype.navigateValueSet=function(n,h,S){var N=this;return this._withSyncedResources([n]).then(function(ce){var Be=N._modelService.getModel(n);if(!Be)return null;var Ge=ke.a.getWordDefinition(Be.getLanguageIdentifier().id),Ye=Ge.source,_t=Object(eo.H)(Ge);return ce.navigateValueSet(n.toString(),h,S,Ye,_t)})},r}(Rt.a),We=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}();function Ze(a,r){return new st(a,r)}var st=function(a){We(r,a);function r(n,h){var S=a.call(this,n,h.keepIdleModels||!1,h.label)||this;return S._foreignModuleId=h.moduleId,S._foreignModuleCreateData=h.createData||null,S._foreignModuleHost=h.host||null,S._foreignProxy=null,S}return r.prototype.fhr=function(n,h){if(!this._foreignModuleHost||typeof this._foreignModuleHost[n]!="function")return Promise.reject(new Error("Missing method "+n+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[n].apply(this._foreignModuleHost,h))}catch(S){return Promise.reject(S)}},r.prototype._getForeignProxy=function(){var n=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then(function(h){var S=n._foreignModuleHost?bt.c(n._foreignModuleHost):[];return h.loadForeignModule(n._foreignModuleId,n._foreignModuleCreateData,S).then(function(N){n._foreignModuleCreateData=null;for(var ce=function(jt,ro){return h.fmr(jt,ro)},Be=function(jt,ro){return function(){var to=Array.prototype.slice.call(arguments,0);return ro(jt,to)}},Ge={},Ye=0,_t=N;Ye<_t.length;Ye++){var Ot=_t[Ye];Ge[Ot]=Be(Ot,ce)}return Ge})})),this._foreignProxy},r.prototype.getProxy=function(){return this._getForeignProxy()},r.prototype.withSyncedResources=function(n){var h=this;return this._withSyncedResources(n).then(function(S){return h.getProxy()})},r}(ye),mt=e("4bUh"),Kt=e("baJR"),Xt=e("qNAo");function no(a){return Array.isArray(a)}function vo(a){return!no(a)}function lo(a){return typeof a=="string"}function Ro(a){return!lo(a)}function wo(a){return!a}function _o(a,r){return a.ignoreCase&&r?r.toLowerCase():r}function jo(a){return a.replace(/[&<>'"_]/g,"-")}function Uo(a,r){console.log(a.languageId+": "+r)}function Do(a,r){return new Error(a.languageId+": "+r)}function xo(a,r,n,h,S){var N=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,ce=null;return r.replace(N,function(Be,Ge,Ye,_t,Ot,Ft,jt,ro,to){return wo(Ye)?wo(_t)?!wo(Ot)&&Ot<h.length?_o(a,h[Ot]):!wo(jt)&&a&&typeof a[jt]=="string"?a[jt]:(ce===null&&(ce=S.split("."),ce.unshift(S)),!wo(Ft)&&Ft<ce.length?_o(a,ce[Ft]):""):_o(a,n):"$"})}function tn(a,r){for(var n=r;n&&n.length>0;){var h=a.tokenizer[n];if(h)return h;var S=n.lastIndexOf(".");S<0?n=null:n=n.substr(0,S)}return null}function gn(a,r){for(var n=r;n&&n.length>0;){var h=a.stateNames[n];if(h)return!0;var S=n.lastIndexOf(".");S<0?n=null:n=n.substr(0,S)}return!1}var En=5,on=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,n){return this._INSTANCE.create(r,n)},a.prototype.create=function(r,n){if(r!==null&&r.depth>=this._maxCacheDepth)return new On(r,n);var h=On.getStackElementId(r);h.length>0&&(h+="|"),h+=n;var S=this._entries[h];return S||(S=new On(r,n),this._entries[h]=S,S)},a._INSTANCE=new a(En),a}(),On=function(){function a(r,n){this.parent=r,this.state=n,this.depth=(this.parent?this.parent.depth:0)+1}return a.getStackElementId=function(r){for(var n="";r!==null;)n.length>0&&(n+="|"),n+=r.state,r=r.parent;return n},a._equals=function(r,n){for(;r!==null&&n!==null;){if(r===n)return!0;if(r.state!==n.state)return!1;r=r.parent,n=n.parent}return r===null&&n===null},a.prototype.equals=function(r){return a._equals(this,r)},a.prototype.push=function(r){return on.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 on.create(this.parent,r)},a}(),Hn=function(){function a(r,n){this.modeId=r,this.state=n}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}(),Rn=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,n){return this._INSTANCE.create(r,n)},a.prototype.create=function(r,n){if(n!==null)return new ai(r,n);if(r!==null&&r.depth>=this._maxCacheDepth)return new ai(r,n);var h=On.getStackElementId(r),S=this._entries[h];return S||(S=new ai(r,null),this._entries[h]=S,S)},a._INSTANCE=new a(En),a}(),ai=function(){function a(r,n){this.stack=r,this.embeddedModeData=n}return a.prototype.clone=function(){var r=this.embeddedModeData?this.embeddedModeData.clone():null;return r===this.embeddedModeData?this:Rn.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}(),bi=function(){function a(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return a.prototype.enterMode=function(r,n){this._language=n},a.prototype.emit=function(r,n){if(this._lastTokenType===n&&this._lastTokenLanguage===this._language)return;this._lastTokenType=n,this._lastTokenLanguage=this._language,this._tokens.push(new u.a(r,n,this._language))},a.prototype.nestedModeTokenize=function(r,n,h){var S=n.modeId,N=n.state,ce=vt.B.get(S);if(!ce)return this.enterMode(h,S),this.emit(h,""),N;var Be=ce.tokenize(r,N,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 u.b(this._tokens,r)},a}(),kn=function(){function a(r,n){this._modeService=r,this._theme=n,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return a.prototype.enterMode=function(r,n){this._currentLanguageId=this._modeService.getLanguageIdentifier(n).id},a.prototype.emit=function(r,n){var h=this._theme.match(this._currentLanguageId,n);if(this._lastTokenMetadata===h)return;this._lastTokenMetadata=h,this._tokens.push(r),this._tokens.push(h)},a._merge=function(r,n,h){var S=r!==null?r.length:0,N=n.length,ce=h!==null?h.length:0;if(S===0&&N===0&&ce===0)return new Uint32Array(0);if(S===0&&N===0)return h;if(N===0&&ce===0)return r;var Be=new Uint32Array(S+N+ce);r!==null&&Be.set(r);for(var Ge=0;Ge<N;Ge++)Be[S+Ge]=n[Ge];return h!==null&&Be.set(h,S+N),Be},a.prototype.nestedModeTokenize=function(r,n,h){var S=n.modeId,N=n.state,ce=vt.B.get(S);if(!ce)return this.enterMode(h,S),this.emit(h,""),N;var Be=ce.tokenize2(r,N,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 u.c(a._merge(this._prependTokens,this._tokens,null),r)},a}(),Qn=function(){function a(r,n,h,S){var N=this;this._modeService=r,this._standaloneThemeService=n,this._modeId=h,this._lexer=S,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var ce=!1;this._tokenizationRegistryListener=vt.B.onDidChange(function(Be){if(ce)return;for(var Ge=!1,Ye=0,_t=Be.changedLanguages.length;Ye<_t;Ye++){var Ot=Be.changedLanguages[Ye];if(N._embeddedModes[Ot]){Ge=!0;break}}Ge&&(ce=!0,vt.B.fire([N._modeId]),ce=!1)})}return a.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},a.prototype.getLoadStatus=function(){var r=[];for(var n in this._embeddedModes){var h=vt.B.get(n);if(h){if(h instanceof a){var S=h.getLoadStatus();S.loaded===!1&&r.push(S.promise)}continue}var N=vt.B.getPromise(n);N&&r.push(N)}return r.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(r).then(function(ce){return})}},a.prototype.getInitialState=function(){var r=on.create(null,this._lexer.start);return Rn.create(r,null)},a.prototype.tokenize=function(r,n,h){var S=new bi,N=this._tokenize(r,n,h,S);return S.finalize(N)},a.prototype.tokenize2=function(r,n,h){var S=new kn(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),N=this._tokenize(r,n,h,S);return S.finalize(N)},a.prototype._tokenize=function(r,n,h,S){return n.embeddedModeData?this._nestedTokenize(r,n,h,S):this._myTokenize(r,n,h,S)},a.prototype._findLeavingNestedModeOffset=function(r,n){var h=this._lexer.tokenizer[n.stack.state];if(!h&&(h=tn(this._lexer,n.stack.state),!h))throw Do(this._lexer,"tokenizer state is not defined: "+n.stack.state);for(var S=-1,N=!1,ce=0,Be=h;ce<Be.length;ce++){var Ge=Be[ce];if(!Ro(Ge.action)||Ge.action.nextEmbedded!=="@pop")continue;N=!0;var Ye=Ge.regex,_t=Ge.regex.source;_t.substr(0,4)==="^(?:"&&_t.substr(_t.length-1,1)===")"&&(Ye=new RegExp(_t.substr(4,_t.length-5),Ye.ignoreCase?"i":""));var Ot=r.search(Ye);if(Ot===-1||Ot!==0&&Ge.matchOnlyAtLineStart)continue;(S===-1||Ot<S)&&(S=Ot)}if(!N)throw Do(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+n.stack.state);return S},a.prototype._nestedTokenize=function(r,n,h,S){var N=this._findLeavingNestedModeOffset(r,n);if(N===-1){var ce=S.nestedModeTokenize(r,n.embeddedModeData,h);return Rn.create(n.stack,new Hn(n.embeddedModeData.modeId,ce))}var Be=r.substring(0,N);Be.length>0&&S.nestedModeTokenize(Be,n.embeddedModeData,h);var Ge=r.substring(N);return this._myTokenize(Ge,n,h+N,S)},a.prototype._safeRuleName=function(r){return r?r.name:"(unknown)"},a.prototype._myTokenize=function(r,n,h,S){S.enterMode(h,this._modeId);for(var N=r.length,ce=n.embeddedModeData,Be=n.stack,Ge=0,Ye=null,_t=!0;_t||Ge<N;){var Ot=Ge,Ft=Be.depth,jt=Ye?Ye.groups.length:0,ro=Be.state,to=null,Yt=null,Qt=null,ho=null,So=null;if(Ye){to=Ye.matches;var To=Ye.groups.shift();Yt=To.matched,Qt=To.action,ho=Ye.rule,Ye.groups.length===0&&(Ye=null)}else{if(!_t&&Ge>=N)break;_t=!1;var Io=this._lexer.tokenizer[ro];if(!Io&&(Io=tn(this._lexer,ro),!Io))throw Do(this._lexer,"tokenizer state is not defined: "+ro);for(var ko=r.substr(Ge),Ko=0,ln=Io;Ko<ln.length;Ko++){var wn=ln[Ko];if((Ge===0||!wn.matchOnlyAtLineStart)&&(to=ko.match(wn.regex),to)){Yt=to[0],Qt=wn.action;break}}}if(to||(to=[""],Yt=""),Qt||(Ge<N&&(to=[r.charAt(Ge)],Yt=to[0]),Qt=this._lexer.defaultToken),Yt===null)break;for(Ge+=Yt.length;vo(Qt)&&Ro(Qt)&&Qt.test;)Qt=Qt.test(Yt,to,ro,Ge===N);var qo=null;if(typeof Qt=="string"||Array.isArray(Qt))qo=Qt;else if(Qt.group)qo=Qt.group;else if(Qt.token!==null&&Qt.token!==void 0){if(Qt.tokenSubst?qo=xo(this._lexer,Qt.token,Yt,to,ro):qo=Qt.token,Qt.nextEmbedded)if(Qt.nextEmbedded==="@pop"){if(!ce)throw Do(this._lexer,"cannot pop embedded mode if not inside one");ce=null}else{if(ce)throw Do(this._lexer,"cannot enter embedded mode from within an embedded mode");So=xo(this._lexer,Qt.nextEmbedded,Yt,to,ro)}if(Qt.goBack&&(Ge=Math.max(0,Ge-Qt.goBack)),Qt.switchTo&&typeof Qt.switchTo=="string"){var Yo=xo(this._lexer,Qt.switchTo,Yt,to,ro);if(Yo[0]==="@"&&(Yo=Yo.substr(1)),tn(this._lexer,Yo))Be=Be.switchTo(Yo);else throw Do(this._lexer,"trying to switch to a state '"+Yo+"' that is undefined in rule: "+this._safeRuleName(ho))}else{if(Qt.transform&&typeof Qt.transform=="function")throw Do(this._lexer,"action.transform not supported");if(Qt.next)if(Qt.next==="@push"){if(Be.depth>=this._lexer.maxStack)throw Do(this._lexer,"maximum tokenizer stack size reached: ["+Be.state+","+Be.parent.state+",...]");Be=Be.push(ro)}else if(Qt.next==="@pop"){if(Be.depth<=1)throw Do(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(ho));Be=Be.pop()}else if(Qt.next==="@popall")Be=Be.popall();else{var Yo=xo(this._lexer,Qt.next,Yt,to,ro);if(Yo[0]==="@"&&(Yo=Yo.substr(1)),tn(this._lexer,Yo))Be=Be.push(Yo);else throw Do(this._lexer,"trying to set a next state '"+Yo+"' that is undefined in rule: "+this._safeRuleName(ho))}}Qt.log&&typeof Qt.log=="string"&&Uo(this._lexer,this._lexer.languageId+": "+xo(this._lexer,Qt.log,Yt,to,ro))}if(qo===null)throw Do(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(ho));if(Array.isArray(qo)){if(Ye&&Ye.groups.length>0)throw Do(this._lexer,"groups cannot be nested: "+this._safeRuleName(ho));if(to.length!==qo.length+1)throw Do(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(ho));for(var un=0,en=1;en<to.length;en++)un+=to[en].length;if(un!==Yt.length)throw Do(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(ho));Ye={rule:ho,matches:to,groups:[]};for(var en=0;en<qo.length;en++)Ye.groups[en]={action:qo[en],matched:to[en+1]};Ge-=Yt.length;continue}else{if(qo==="@rematch"&&(Ge-=Yt.length,Yt="",to=null,qo=""),Yt.length===0){if(N===0||Ft!==Be.depth||ro!==Be.state||(Ye?Ye.groups.length:0)!==jt)continue;throw Do(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(ho))}var Dn=null;if(lo(qo)&&qo.indexOf("@brackets")===0){var Cn=qo.substr("@brackets".length),Bn=Yr(this._lexer,Yt);if(!Bn)throw Do(this._lexer,"@brackets token returned but no bracket defined as: "+Yt);Dn=jo(Bn.token+Cn)}else{var Pn=qo===""?"":qo+this._lexer.tokenPostfix;Dn=jo(Pn)}S.emit(Ot+h,Dn)}if(So!==null){var Gn=this._modeService.getModeIdForLanguageName(So);Gn&&(So=Gn);var si=this._getNestedEmbeddedModeData(So);if(Ge<N){var ko=r.substr(Ge);return this._nestedTokenize(ko,Rn.create(Be,si),h+Ge,S)}else return Rn.create(Be,si)}}return Rn.create(Be,ce)},a.prototype._getNestedEmbeddedModeData=function(r){var n=this._locateMode(r);if(n){var h=vt.B.get(n);if(h)return new Hn(n,h.getInitialState())}return new Hn(n||At.b,At.c)},a.prototype._locateMode=function(r){if(!r||!this._modeService.isRegisteredMode(r))return null;if(r===this._modeId)return r;var n=this._modeService.getModeId(r);return n&&(this._modeService.triggerMode(n),this._embeddedModes[n]=!0),n},a}();function Yr(a,r){if(!r)return null;r=_o(a,r);for(var n=a.brackets,h=0,S=n;h<S.length;h++){var N=S[h];if(N.open===r)return{token:N.token,bracketType:1};if(N.close===r)return{token:N.token,bracketType:-1}}return null}function oa(a,r,n,h){return new Qn(a,r,n,h)}var zi=function(){function a(){}return a.colorizeElement=function(r,n,h,S){S=S||{};var N=S.theme||"vs",ce=S.mimeType||h.getAttribute("lang")||h.getAttribute("data-lang");if(!ce)return console.error("Mode not detected"),Promise.resolve();r.setTheme(N);var Be=h.firstChild?h.firstChild.nodeValue:"";h.className+=" "+N;var Ge=function(_t){h.innerHTML=_t};return this.colorize(n,Be||"",ce,S).then(Ge,function(Ye){return console.error(Ye)})},a.colorize=function(r,n,h,S){var N=4;S&&typeof S.tabSize=="number"&&(N=S.tabSize),eo.P(n)&&(n=n.substr(1));var ce=n.split(/\r\n|\r|\n/),Be=r.getModeId(h);if(!Be)return Promise.resolve(Zr(ce,N));r.triggerMode(Be);var Ge=vt.B.get(Be);if(Ge)return Ki(ce,N,Ge);var Ye=vt.B.getPromise(Be);return Ye?new Promise(function(_t,Ot){Ye.then(function(Ft){Ki(ce,N,Ft).then(_t,Ot)},Ot)}):new Promise(function(_t,Ot){var Ft=null,jt=null,ro=function(){Ft&&(Ft.dispose(),Ft=null),jt&&(jt.dispose(),jt=null);var Yt=vt.B.get(Be);if(Yt){Ki(ce,N,Yt).then(_t,Ot);return}_t(Zr(ce,N))};jt=new ut.e,jt.cancelAndSet(ro,500),Ft=vt.B.onDidChange(function(to){to.changedLanguages.indexOf(Be)>=0&&ro()})})},a.colorizeLine=function(r,n,h,S,N){N===void 0&&(N=4);var ce=Xt.d.isBasicASCII(r,n),Be=Xt.d.containsRTL(r,ce,h),Ge=Object(Kt.e)(new Kt.c(!1,!0,r,!1,ce,Be,0,S,[],N,0,0,0,-1,"none",!1,!1,null));return Ge.html},a.colorizeModelLine=function(r,n,h){h===void 0&&(h=4);var S=r.getLineContent(n);r.forceTokenization(n);var N=r.getLineTokens(n),ce=N.inflate();return this.colorizeLine(S,r.mightContainNonBasicASCII(),r.mightContainRTL(),ce,h)},a}();function Ki(a,r,n){return new Promise(function(h,S){var N=function ce(){var Be=Gi(a,r,n);if(n instanceof Qn){var Ge=n.getLoadStatus();if(Ge.loaded===!1){Ge.promise.then(ce,S);return}}h(Be)};N()})}function Zr(a,r){var n=[],h=(0<<11|1<<14|2<<23)>>>0,S=new Uint32Array(2);S[0]=0,S[1]=h;for(var N=0,ce=a.length;N<ce;N++){var Be=a[N];S[0]=Be.length;var Ge=new mt.a(S,Be),Ye=Xt.d.isBasicASCII(Be,!0),_t=Xt.d.containsRTL(Be,Ye,!0),Ot=Object(Kt.e)(new Kt.c(!1,!0,Be,!1,Ye,_t,0,Ge,[],r,0,0,0,-1,"none",!1,!1,null));n=n.concat(Ot.html),n.push("<br/>")}return n.join("")}function Gi(a,r,n){for(var h=[],S=n.getInitialState(),N=0,ce=a.length;N<ce;N++){var Be=a[N],Ge=n.tokenize2(Be,S,0);mt.a.convertToEndOffset(Ge.tokens,Be.length);var Ye=new mt.a(Ge.tokens,Be),_t=Xt.d.isBasicASCII(Be,!0),Ot=Xt.d.containsRTL(Be,_t,!0),Ft=Object(Kt.e)(new Kt.c(!1,!0,Be,!1,_t,Ot,0,Ye.inflate(),[],r,0,0,0,-1,"none",!1,!1,null));h=h.concat(Ft.html),h.push("<br/>"),S=Ge.endState}return h.join("")}var $o=e("uDWl"),li=e("S3by"),Tn=e("sFUC"),yr=e("iDAx"),Qr=e("0/Sa"),xn=e("+7oY"),$n=e("QDVR"),Xi=e("CRAX"),br=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Yi=function(){for(var a=0,r=0,n=arguments.length;r<n;r++)a+=arguments[r].length;for(var h=Array(a),S=0,r=0;r<n;r++)for(var N=arguments[r],ce=0,Be=N.length;ce<Be;ce++,S++)h[S]=N[ce];return h},di=function(){function a(r,n,h){r===void 0&&(r={}),n===void 0&&(n=[]),h===void 0&&(h=[]),this._contents=r,this._keys=n,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(xn.d)(this.contents,r):this.contents},a.prototype.getOverrideValue=function(r,n){var h=this.getContentsForOverrideIdentifer(n);return h?r?Object(xn.d)(h,r):h:void 0},a.prototype.override=function(r){var n=this.getContentsForOverrideIdentifer(r);if(!n||typeof n!="object"||!Object.keys(n).length)return this;for(var h={},S=0,N=lt.e(Yi(Object.keys(this.contents),Object.keys(n)));S<N.length;S++){var ce=N[S],Be=this.contents[ce],Ge=n[ce];Ge&&(typeof Be=="object"&&typeof Ge=="object"?(Be=Mt.c(Be),this.mergeContents(Be,Ge)):Be=Ge),h[ce]=Be}return new a(h,this.keys,this.overrides)},a.prototype.merge=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];for(var h=Mt.c(this.contents),S=Mt.c(this.overrides),N=Yi(this.keys),ce=0,Be=r;ce<Be.length;ce++){var Ge=Be[ce];this.mergeContents(h,Ge.contents);for(var Ye=function(ho){var So=S.filter(function(To){return lt.g(To.identifiers,ho.identifiers)})[0];So?_t.mergeContents(So.contents,ho.contents):S.push(Mt.c(ho))},_t=this,Ot=0,Ft=Ge.overrides;Ot<Ft.length;Ot++){var jt=Ft[Ot];Ye(jt)}for(var ro=0,to=Ge.keys;ro<to.length;ro++){var Yt=to[ro];N.indexOf(Yt)===-1&&N.push(Yt)}}return new a(h,N,S)},a.prototype.freeze=function(){return this.isFrozen=!0,this},a.prototype.mergeContents=function(r,n){for(var h=0,S=Object.keys(n);h<S.length;h++){var N=S[h];if(N in r&&(bt.i(r[N])&&bt.i(n[N]))){this.mergeContents(r[N],n[N]);continue}r[N]=Mt.c(n[N])}},a.prototype.checkAndFreeze=function(r){return this.isFrozen&&!Object.isFrozen(r)?Mt.d(r):r},a.prototype.getContentsForOverrideIdentifer=function(r){for(var n=0,h=this.overrides;n<h.length;n++){var S=h[n];if(S.identifiers.indexOf(r)!==-1)return S.contents}return null},a.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},a.prototype.setValue=function(r,n){this.addKey(r),Object(xn.b)(this.contents,r,n,function(h){throw new Error(h)})},a.prototype.removeValue=function(r){this.removeKey(r)&&Object(xn.h)(this.contents,r)},a.prototype.addKey=function(r){for(var n=this.keys.length,h=0;h<n;h++)r.indexOf(this.keys[h])===0&&(n=h);this.keys.splice(n,1,r)},a.prototype.removeKey=function(r){var n=this.keys.indexOf(r);return n!==-1?(this.keys.splice(n,1),!0):!1},a}(),Cr=function(a){br(r,a);function r(){for(var n=this,h=Object(xn.e)(),S=Object(xn.c)(),N=[],ce=0,Be=Object.keys(h);ce<Be.length;ce++){var Ge=Be[ce];Xi.b.test(Ge)&&N.push({identifiers:[Object(xn.g)(Ge).trim()],keys:Object.keys(h[Ge]),contents:Object(xn.i)(h[Ge],function(Ye){return console.error("Conflict in default settings file: "+Ye)})})}return n=a.call(this,h,S,N)||this,n}return r}(di),$r=function(){function a(r,n,h,S,N,ce,Be,Ge){h===void 0&&(h=new di),S===void 0&&(S=new di),N===void 0&&(N=new $n.b),ce===void 0&&(ce=new di),Be===void 0&&(Be=new $n.b),Ge===void 0&&(Ge=!0),this._defaultConfiguration=r,this._localUserConfiguration=n,this._remoteUserConfiguration=h,this._workspaceConfiguration=S,this._folderConfigurations=N,this._memoryConfiguration=ce,this._memoryConfigurationByResource=Be,this._freeze=Ge,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new $n.b,this._userConfiguration=null}return a.prototype.getValue=function(r,n,h){var S=this.getConsolidateConfigurationModel(n,h);return S.getValue(r)},a.prototype.updateValue=function(r,n,h){h===void 0&&(h={});var S;h.resource?(S=this._memoryConfigurationByResource.get(h.resource),S||(S=new di,this._memoryConfigurationByResource.set(h.resource,S))):S=this._memoryConfiguration,n===void 0?S.removeValue(r):S.setValue(r,n),h.resource||(this._workspaceConsolidatedConfiguration=null)},a.prototype.inspect=function(r,n,h){var S=this.getConsolidateConfigurationModel(n,h),N=this.getFolderConfigurationModelForResource(n.resource,h),ce=n.resource?this._memoryConfigurationByResource.get(n.resource)||this._memoryConfiguration:this._memoryConfiguration,Be=n.overrideIdentifier?this._defaultConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this._defaultConfiguration.freeze().getValue(r),Ge=n.overrideIdentifier?this.userConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this.userConfiguration.freeze().getValue(r),Ye=n.overrideIdentifier?this.localUserConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this.localUserConfiguration.freeze().getValue(r),_t=n.overrideIdentifier?this.remoteUserConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this.remoteUserConfiguration.freeze().getValue(r),Ot=h?n.overrideIdentifier?this._workspaceConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this._workspaceConfiguration.freeze().getValue(r):void 0,Ft=N?n.overrideIdentifier?N.freeze().override(n.overrideIdentifier).getValue(r):N.freeze().getValue(r):void 0,jt=n.overrideIdentifier?ce.override(n.overrideIdentifier).getValue(r):ce.getValue(r),ro=S.getValue(r),to=lt.e(lt.m(S.overrides.map(function(Yt){return Yt.identifiers}))).filter(function(Yt){return S.getOverrideValue(r,Yt)!==void 0});return{defaultValue:Be,userValue:Ge,userLocalValue:Ye,userRemoteValue:_t,workspaceValue:Ot,workspaceFolderValue:Ft,memoryValue:jt,value:ro,default:Be!==void 0?{value:this._defaultConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,user:Ge!==void 0?{value:this.userConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,userLocal:Ye!==void 0?{value:this.localUserConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,userRemote:_t!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,workspace:Ot!==void 0?{value:this._workspaceConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,workspaceFolder:Ft!==void 0?{value:N==null?void 0:N.freeze().getValue(r),override:n.overrideIdentifier?N==null?void 0:N.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,memory:jt!==void 0?{value:ce.getValue(r),override:n.overrideIdentifier?ce.getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,overrideIdentifiers:to.length?to: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,n){var h=this.getConsolidatedConfigurationModelForResource(r,n);return r.overrideIdentifier?h.override(r.overrideIdentifier):h},a.prototype.getConsolidatedConfigurationModelForResource=function(r,n){var h=r.resource,S=this.getWorkspaceConsolidatedConfiguration();if(n&&h){var N=n.getFolder(h);N&&(S=this.getFolderConsolidatedConfiguration(N.uri)||S);var ce=this._memoryConfigurationByResource.get(h);ce&&(S=S.merge(ce))}return S},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 n=this._foldersConsolidatedConfigurations.get(r);if(!n){var h=this.getWorkspaceConsolidatedConfiguration(),S=this._folderConfigurations.get(r);S?(n=h.merge(S),this._freeze&&(n=n.freeze()),this._foldersConsolidatedConfigurations.set(r,n)):n=h}return n},a.prototype.getFolderConfigurationModelForResource=function(r,n){if(n&&r){var h=n.getFolder(r);if(h)return this._folderConfigurations.get(h.uri)}return},a}(),_n=e("3/fG"),Zi=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Jr=function(a){Zi(r,a);function r(n,h,S,N){var ce=a.call(this)||this;return ce._contextKeyService=n,ce._commandService=h,ce._telemetryService=S,ce._notificationService=N,ce._onDidUpdateKeybindings=ce._register(new I.a),ce._currentChord=null,ce._currentChordChecker=new ut.c,ce._currentChordStatusMessage=null,ce}return Object.defineProperty(r.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:I.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(n){var h=this._getResolver().lookupPrimaryKeybinding(n);return h?h.resolvedKeybinding:void 0},r.prototype.softDispatch=function(n,h){var S=this.resolveKeyboardEvent(n);if(S.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var N=S.getDispatchParts()[0];if(N===null)return null;var ce=this._contextKeyService.getContext(h),Be=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(ce,Be,N)},r.prototype._enterChordMode=function(n,h){var S=this;this._currentChord={keypress:n,label:h},this._currentChordStatusMessage=this._notificationService.status(_n.a("first.chord","({0}) was pressed. Waiting for second key of chord...",h));var N=Date.now();this._currentChordChecker.cancelAndSet(function(){if(!S._documentHasFocus()){S._leaveChordMode();return}Date.now()-N>5e3&&S._leaveChordMode()},500)},r.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},r.prototype._dispatch=function(n,h){return this._doDispatch(this.resolveKeyboardEvent(n),h)},r.prototype._doDispatch=function(n,h){var S=this,N=!1;if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var ce=n.getDispatchParts()[0];if(ce===null)return N;var Be=this._contextKeyService.getContext(h),Ge=this._currentChord?this._currentChord.keypress:null,Ye=n.getLabel(),_t=this._getResolver().resolve(Be,Ge,ce);return _t&&_t.enterChord?(N=!0,this._enterChordMode(ce,Ye),N):(this._currentChord&&((!_t||!_t.commandId)&&(this._notificationService.status(_n.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,Ye),{hideAfter:10*1e3}),N=!0)),this._leaveChordMode(),_t&&_t.commandId&&(_t.bubble||(N=!0),typeof _t.commandArgs=="undefined"?this._commandService.executeCommand(_t.commandId).then(void 0,function(Ot){return S._notificationService.warn(Ot)}):this._commandService.executeCommand(_t.commandId,_t.commandArgs).then(void 0,function(Ot){return S._notificationService.warn(Ot)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:_t.commandId,from:"keybinding"})),N)},r.prototype.mightProducePrintableCharacter=function(n){return n.ctrlKey||n.metaKey?!1:n.keyCode>=31&&n.keyCode<=56||n.keyCode>=21&&n.keyCode<=30},r}(Rt.a),Sn=e("T8No"),Qi=function(){function a(r,n){this._defaultKeybindings=r,this._defaultBoundCommands=new Map;for(var h=0,S=r.length;h<S;h++){var N=r[h].command;N&&this._defaultBoundCommands.set(N,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=a.combine(r,n);for(var h=0,S=this._keybindings.length;h<S;h++){var ce=this._keybindings[h];if(ce.keypressParts.length===0)continue;this._addKeyPress(ce.keypressParts[0],ce)}}return a._isTargetedForRemoval=function(r,n,h,S,N){if(r.command!==S)return!1;if(n&&r.keypressParts[0]!==n)return!1;if(h&&r.keypressParts[1]!==h)return!1;if(N){if(!r.when)return!1;if(!N.equals(r.when))return!1}return!0},a.combine=function(r,n){r=r.slice(0);for(var h=[],S=0,N=n;S<N.length;S++){var ce=N[S];if(!ce.command||ce.command.length===0||ce.command.charAt(0)!=="-"){h.push(ce);continue}for(var Be=ce.command.substr(1),Ge=ce.keypressParts[0],Ye=ce.keypressParts[1],_t=ce.when,Ot=r.length-1;Ot>=0;Ot--)this._isTargetedForRemoval(r[Ot],Ge,Ye,Be,_t)&&r.splice(Ot,1)}return r.concat(h)},a.prototype._addKeyPress=function(r,n){var h=this._map.get(r);if(typeof h=="undefined"){this._map.set(r,[n]),this._addToLookupMap(n);return}for(var S=h.length-1;S>=0;S--){var N=h[S];if(N.command===n.command)continue;var ce=N.keypressParts.length>1,Be=n.keypressParts.length>1;if(ce&&Be&&N.keypressParts[1]!==n.keypressParts[1])continue;a.whenIsEntirelyIncluded(N.when,n.when)&&this._removeFromLookupMap(N)}h.push(n),this._addToLookupMap(n)},a.prototype._addToLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);typeof n=="undefined"?(n=[r],this._lookupMap.set(r.command,n)):n.push(r)},a.prototype._removeFromLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);if(typeof n=="undefined")return;for(var h=0,S=n.length;h<S;h++)if(n[h]===r){n.splice(h,1);return}},a.whenIsEntirelyIncluded=function(r,n){return n?r?this._implies(r,n):!1:!0},a._implies=function(r,n){for(var h=r.negate(),S=function(Ft){return Ft instanceof Sn.b?Ft.expr:[Ft]},N=S(h).concat(S(n)),ce=0;ce<N.length;ce++)for(var Be=N[ce],Ge=Be.negate(),Ye=ce+1;Ye<N.length;Ye++){var _t=N[Ye];if(Ge.equals(_t))return!0}return!1},a.prototype.getKeybindings=function(){return this._keybindings},a.prototype.lookupPrimaryKeybinding=function(r){var n=this._lookupMap.get(r);return typeof n=="undefined"||n.length===0?null:n[n.length-1]},a.prototype.resolve=function(r,n,h){var S=null;if(n!==null){var N=this._map.get(n);if(typeof N=="undefined")return null;S=[];for(var ce=0,Be=N.length;ce<Be;ce++){var Ge=N[ce];Ge.keypressParts[1]===h&&S.push(Ge)}}else{var N=this._map.get(h);if(typeof N=="undefined")return null;S=N}var Ye=this._findCommand(r,S);return Ye?n===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,n){for(var h=n.length-1;h>=0;h--){var S=n[h];if(!a.contextMatchesRules(r,S.when))continue;return S}return null},a.contextMatchesRules=function(r,n){return n?n.evaluate(r):!0},a}(),qr=e("nrhi"),$i=function(){function a(r,n,h,S,N){this.resolvedKeybinding=r,this.keypressParts=r?Er(r.getDispatchParts()):[],this.bubble=n?n.charCodeAt(0)===94:!1,this.command=this.bubble?n.substr(1):n,this.commandArgs=h,this.when=S,this.isDefault=N}return a}();function Er(a){for(var r=[],n=0,h=a.length;n<h;n++){var S=a[n];if(!S)return r;r.push(S)}return r}var wr=e("i04g"),es=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),na=function(a){es(r,a);function r(n,h){var S=a.call(this)||this;if(h.length===0)throw Object(Ct.b)("parts");return S._os=n,S._parts=h,S}return r.prototype.getLabel=function(){var n=this;return wr.b.toLabel(this._os,this._parts,function(h){return n._getLabel(h)})},r.prototype.getAriaLabel=function(){var n=this;return wr.a.toLabel(this._os,this._parts,function(h){return n._getAriaLabel(h)})},r.prototype.isChord=function(){return this._parts.length>1},r.prototype.getParts=function(){var n=this;return this._parts.map(function(h){return n._getPart(h)})},r.prototype._getPart=function(n){return new U.d(n.ctrlKey,n.shiftKey,n.altKey,n.metaKey,this._getLabel(n),this._getAriaLabel(n))},r.prototype.getDispatchParts=function(){var n=this;return this._parts.map(function(h){return n._getDispatchPart(h)})},r}(U.c),ts=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),_r=function(a){ts(r,a);function r(n,h){return a.call(this,h,n.parts)||this}return r.prototype._keyCodeToUILabel=function(n){if(this._os===2)switch(n){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return U.b.toString(n)},r.prototype._getLabel=function(n){return n.isDuplicateModifierCase()?"":this._keyCodeToUILabel(n.keyCode)},r.prototype._getAriaLabel=function(n){return n.isDuplicateModifierCase()?"":U.b.toString(n.keyCode)},r.prototype._getDispatchPart=function(n){return r.getDispatchStr(n)},r.getDispatchStr=function(n){if(n.isModifierKey())return null;var h="";return n.ctrlKey&&(h+="ctrl+"),n.shiftKey&&(h+="shift+"),n.altKey&&(h+="alt+"),n.metaKey&&(h+="meta+"),h+=U.b.toString(n.keyCode),h},r}(na),Un=e("sM1p"),Sr=e("EWX2"),Oi=e("A9l+"),os=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ns=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},is=function(a,r){return function(n,h){r(n,h,a)}},rs=function(){for(var a=0,r=0,n=arguments.length;r<n;r++)a+=arguments[r].length;for(var h=Array(a),S=0,r=0;r<n;r++)for(var N=arguments[r],ce=0,Be=N.length;ce<Be;ce++,S++)h[S]=N[ce];return h},ia=function(){function a(r){this.model=r,this._onDispose=new I.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,n){return Object(Tn.a)(a)?r(a):n(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 n=this,h=null;return this.editor&&(h=ss(this.editor,function(S){return n.findModel(S,r)},function(S){return n.findModel(S.getOriginalEditor(),r)||n.findModel(S.getModifiedEditor(),r)})),h?Promise.resolve(new Rt.c(new ia(h))):Promise.reject(new Error("Model not found"))},a.prototype.findModel=function(r,n){var h=this.modelService?this.modelService.getModel(n):r.getModel();return h&&h.uri.toString()!==n.toString()?null:h},a}(),ra=function(){function a(){}return a.prototype.show=function(){return a.NULL_PROGRESS_RUNNER},a.prototype.showWhile=function(r,n){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,n){return Rt.a.None},a.NO_OP=new Un.b,a}(),cs=function(){function a(r){this._onWillExecuteCommand=new I.a,this._onDidExecuteCommand=new I.a,this._instantiationService=r,this._dynamicCommands=Object.create(null)}return a.prototype.addCommand=function(r){var n=this,h=r.id;return this._dynamicCommands[h]=r,Object(Rt.h)(function(){delete n._dynamicCommands[h]})},a.prototype.executeCommand=function(r){for(var n=[],h=1;h<arguments.length;h++)n[h-1]=arguments[h];var S=Q.a.getCommand(r)||this._dynamicCommands[r];if(!S)return Promise.reject(new Error("command '"+r+"' not found"));try{this._onWillExecuteCommand.fire({commandId:r,args:n});var N=this._instantiationService.invokeFunction.apply(this._instantiationService,rs([S.handler],n));return this._onDidExecuteCommand.fire({commandId:r,args:n}),Promise.resolve(N)}catch(ce){return Promise.reject(ce)}},a}(),Lr=function(a){os(r,a);function r(n,h,S,N,ce){var Be=a.call(this,n,h,S,N)||this;return Be._cachedResolver=null,Be._dynamicKeybindings=[],Be._register(ge.j(ce,ge.d.KEY_DOWN,function(Ge){var Ye=new $o.a(Ge),_t=Be._dispatch(Ye,Ye.target);_t&&(Ye.preventDefault(),Ye.stopPropagation())})),Be}return r.prototype.addDynamicKeybinding=function(n,h,S,N){var ce=this,Be=Object(U.f)(h,gt.a),Ge=new Rt.b;Be&&(this._dynamicKeybindings.push({keybinding:Be,command:n,when:N,weight1:1e3,weight2:0}),Ge.add(Object(Rt.h)(function(){for(var _t=0;_t<ce._dynamicKeybindings.length;_t++){var Ot=ce._dynamicKeybindings[_t];if(Ot.command===n){ce._dynamicKeybindings.splice(_t,1),ce.updateResolver({source:1});return}}})));var Ye=this._commandService;if(Ye instanceof cs)Ge.add(Ye.addCommand({id:n,handler:S}));else throw new Error("Unknown command service!");return this.updateResolver({source:1}),Ge},r.prototype.updateResolver=function(n){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(n)},r.prototype._getResolver=function(){if(!this._cachedResolver){var n=this._toNormalizedKeybindingItems(qr.a.getDefaultKeybindings(),!0),h=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Qi(n,h)}return this._cachedResolver},r.prototype._documentHasFocus=function(){return document.hasFocus()},r.prototype._toNormalizedKeybindingItems=function(n,h){for(var S=[],N=0,ce=0,Be=n;ce<Be.length;ce++){var Ge=Be[ce],Ye=Ge.when||void 0,_t=Ge.keybinding;if(!_t)S[N++]=new $i(void 0,Ge.command,Ge.commandArgs,Ye,h);else for(var Ot=this.resolveKeybinding(_t),Ft=0,jt=Ot;Ft<jt.length;Ft++){var ro=jt[Ft];S[N++]=new $i(ro,Ge.command,Ge.commandArgs,Ye,h)}}return S},r.prototype.resolveKeybinding=function(n){return[new _r(n,gt.a)]},r.prototype.resolveKeyboardEvent=function(n){var h=new U.e(n.ctrlKey,n.shiftKey,n.altKey,n.metaKey,n.keyCode).toChord();return new _r(h,gt.a)},r}(Jr);function Mr(a){return a&&typeof a=="object"&&(!a.overrideIdentifier||typeof a.overrideIdentifier=="string")&&(!a.resource||a.resource instanceof z.a)}var Dr=function(){function a(){this._onDidChangeConfiguration=new I.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new $r(new Cr,new di)}return a.prototype.configuration=function(){return this._configuration},a.prototype.getValue=function(r,n){var h=typeof r=="string"?r:void 0,S=Mr(r)?r:Mr(n)?n:{};return this.configuration().getValue(h,S,void 0)},a.prototype.updateValue=function(r,n,h,S){return this.configuration().updateValue(r,n),Promise.resolve()},a.prototype.inspect=function(r,n){return n===void 0&&(n={}),this.configuration().inspect(r,n,void 0)},a}(),us=function(){function a(r){var n=this;this.configurationService=r,this._onDidChangeConfiguration=new I.a,this.configurationService.onDidChangeConfiguration(function(h){n._onDidChangeConfiguration.fire({affectedKeys:h.affectedKeys,affectsConfiguration:function(N,ce){return h.affectsConfiguration(ce)}})})}return a.prototype.getValue=function(r,n,h){var S=O.a.isIPosition(n)?n:null,N=S?typeof h=="string"?h:void 0:typeof n=="string"?n:void 0;return typeof N=="undefined"?this.configurationService.getValue():this.configurationService.getValue(N)},a}(),hs=function(){function a(r){this.configurationService=r}return a.prototype.getEOL=function(r,n){var h=this.configurationService.getValue("files.eol",{overrideIdentifier:n,resource:r});return h&&h!=="auto"?h:gt.d||gt.e?`
`:`\r
`},a=ns([is(0,xn.a)],a),a}(),fs=function(){function a(){}return a.prototype.publicLog=function(r,n){return Promise.resolve(void 0)},a.prototype.publicLog2=function(r,n){return this.publicLog(r,n)},a}(),ms=function(){function a(){var r=z.a.from({scheme:a.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new Sr.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 oi(a,r,n){if(!r)return;if(!(a instanceof Dr))return;Object.keys(r).forEach(function(h){Object(yr.d)(h)&&a.updateValue("editor."+h,r[h]),n&&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,n){var h=new Map;if(r.edits)for(var S=0,N=r.edits;S<N.length;S++){var ce=N[S];if(!vt.D.is(ce))return Promise.reject(new Error("bad edit - only text edits are supported"));var Be=this._modelService.getModel(ce.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(ce.edit)}var Ye=0,_t=0;return h.forEach(function(Ot,Ft){Ft.pushStackElement(),Ft.pushEditOperations([],Ot.map(function(jt){return Qr.a.replaceMove(H.a.lift(jt.range),jt.text)}),function(){return[]}),Ft.pushStackElement(),_t+=1,Ye+=Ot.length}),Promise.resolve({selection:void 0,ariaSummary:eo.r(Oi.f.bulkEditServiceSummary,Ye,_t)})},a}(),Or=function(){function a(){}return a.prototype.getUriLabel=function(r,n){return r.scheme==="file"?r.fsPath:r.path},a}(),Tr=function(){function a(r){this._container=r,this.onLayout=I.b.None}return Object.defineProperty(a.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),a}(),ps=e("D3Dy"),gs=e("OBOq"),xr=e("nB0o"),Ar=e("lKfe"),Ci=e("ZlPH"),vs=e("cMOf"),Ti=e("HdwC"),ys=e("vATl"),aa=e("DTDp"),bs=e("WqXY"),Cs=e("GJhM"),ci=e("8HAY"),ui=e("sswD"),Vn=e("kYye"),bn=e("MD5Z"),Mn=e("t9D7"),Ln=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),xi=3,Ei=function(){function a(r,n,h,S){this.originalLineStart=r,this.originalLineEnd=n,this.modifiedLineStart=h,this.modifiedLineEnd=S}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){Ln(r,a);function r(n){var h=a.call(this)||this;return h._width=0,h._diffEditor=n,h._isVisible=!1,h.shadow=Object(Ci.b)(document.createElement("div")),h.shadow.setClassName("diff-review-shadow"),h.actionBarContainer=Object(Ci.b)(document.createElement("div")),h.actionBarContainer.setClassName("diff-review-actions"),h._actionBar=h._register(new bs.a(h.actionBarContainer.domNode)),h._actionBar.push(new ci.a("diffreview.close",_n.a("label.close","Close"),"close-diff-review",!0,function(){return h.hide(),Promise.resolve(null)}),{label:!1,icon:!0}),h.domNode=Object(Ci.b)(document.createElement("div")),h.domNode.setClassName("diff-review monaco-editor-background"),h._content=Object(Ci.b)(document.createElement("div")),h._content.setClassName("diff-review-content"),h.scrollbar=h._register(new Cs.a(h._content.domNode,{})),h.domNode.domNode.appendChild(h.scrollbar.getDomNode()),h._register(n.onDidUpdateDiff(function(){if(!h._isVisible)return;h._diffs=h._compute(),h._render()})),h._register(n.getModifiedEditor().onDidChangeCursorPosition(function(){if(!h._isVisible)return;h._render()})),h._register(n.getOriginalEditor().onDidFocusEditorWidget(function(){h._isVisible&&h.hide()})),h._register(n.getModifiedEditor().onDidFocusEditorWidget(function(){h._isVisible&&h.hide()})),h._register(ge.o(h.domNode.domNode,"click",function(S){S.preventDefault();var N=ge.x(S.target,"diff-review-row");N&&h._goToRow(N)})),h._register(ge.o(h.domNode.domNode,"keydown",function(S){(S.equals(18)||S.equals(2048|18)||S.equals(512|18))&&(S.preventDefault(),h._goToRow(h._getNextRow())),(S.equals(16)||S.equals(2048|16)||S.equals(512|16))&&(S.preventDefault(),h._goToRow(h._getPrevRow())),(S.equals(9)||S.equals(2048|9)||S.equals(512|9)||S.equals(1024|9))&&(S.preventDefault(),h.hide()),(S.equals(10)||S.equals(3))&&(S.preventDefault(),h.accept())})),h._diffs=[],h._currentDiff=null,h}return r.prototype.prev=function(){var n=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var h=-1,S=0,N=this._diffs.length;S<N;S++)if(this._diffs[S]===this._currentDiff){h=S;break}n=this._diffs.length+h-1}else n=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;n=n%this._diffs.length,this._diffEditor.setPosition(new O.a(this._diffs[n].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())},r.prototype.next=function(){var n=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var h=-1,S=0,N=this._diffs.length;S<N;S++)if(this._diffs[S]===this._currentDiff){h=S;break}n=h+1}else n=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;n=n%this._diffs.length,this._diffEditor.setPosition(new O.a(this._diffs[n].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())},r.prototype.accept=function(){var n=-1,h=this._getCurrentFocusedRow();if(h){var S=parseInt(h.getAttribute("data-line"),10);isNaN(S)||(n=S)}this.hide(),n!==-1&&(this._diffEditor.setPosition(new O.a(n,1)),this._diffEditor.revealPosition(new O.a(n,1),1))},r.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},r.prototype._getPrevRow=function(){var n=this._getCurrentFocusedRow();return n?n.previousElementSibling?n.previousElementSibling:n:this._getFirstRow()},r.prototype._getNextRow=function(){var n=this._getCurrentFocusedRow();return n?n.nextElementSibling?n.nextElementSibling:n:this._getFirstRow()},r.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},r.prototype._getCurrentFocusedRow=function(){var n=document.activeElement;return n&&/diff-review-row/.test(n.className)?n:null},r.prototype._goToRow=function(n){var h=this._getCurrentFocusedRow();n.tabIndex=0,n.focus(),h&&h!==n&&(h.tabIndex=-1),this.scrollbar.scanDomNode()},r.prototype.isVisible=function(){return this._isVisible},r.prototype.layout=function(n,h,S){this._width=h,this.shadow.setTop(n-6),this.shadow.setWidth(h),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(n),this.domNode.setWidth(h),this.domNode.setHeight(S),this._content.setHeight(S),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 n=this._diffEditor.getLineChanges();if(!n||n.length===0)return[];var h=this._diffEditor.getOriginalEditor().getModel(),S=this._diffEditor.getModifiedEditor().getModel();return!h||!S?[]:r._mergeAdjacent(n,h.getLineCount(),S.getLineCount())},r._mergeAdjacent=function(n,h,S){if(!n||n.length===0)return[];for(var N=[],ce=0,Be=0,Ge=n.length;Be<Ge;Be++){var Ye=n[Be],_t=Ye.originalStartLineNumber,Ot=Ye.originalEndLineNumber,Ft=Ye.modifiedStartLineNumber,jt=Ye.modifiedEndLineNumber,ro=[],to=0;{var Yt=Ot===0?_t:_t-1,Qt=jt===0?Ft:Ft-1,ho=1,So=1;if(Be>0){var To=n[Be-1];To.originalEndLineNumber===0?ho=To.originalStartLineNumber+1:ho=To.originalEndLineNumber+1,To.modifiedEndLineNumber===0?So=To.modifiedStartLineNumber+1:So=To.modifiedEndLineNumber+1}var Io=Yt-xi+1,ko=Qt-xi+1;if(Io<ho){var Ko=ho-Io;Io=Io+Ko,ko=ko+Ko}if(ko<So){var Ko=So-ko;Io=Io+Ko,ko=ko+Ko}ro[to++]=new Ei(Io,Yt,ko,Qt)}Ot!==0&&(ro[to++]=new Ei(_t,Ot,0,0)),jt!==0&&(ro[to++]=new Ei(0,0,Ft,jt));{var ln=Ot===0?_t+1:Ot+1,wn=jt===0?Ft+1:jt+1,qo=h,Yo=S;if(Be+1<Ge){var un=n[Be+1];un.originalEndLineNumber===0?qo=un.originalStartLineNumber:qo=un.originalStartLineNumber-1,un.modifiedEndLineNumber===0?Yo=un.modifiedStartLineNumber:Yo=un.modifiedStartLineNumber-1}var en=ln+xi-1,Dn=wn+xi-1;if(en>qo){var Ko=qo-en;en=en+Ko,Dn=Dn+Ko}if(Dn>Yo){var Ko=Yo-Dn;en=en+Ko,Dn=Dn+Ko}ro[to++]=new Ei(ln,en,wn,Dn)}N[ce++]=new Ji(ro)}for(var Cn=N[0].entries,Bn=[],Pn=0,Be=1,Ge=N.length;Be<Ge;Be++){var Gn=N[Be].entries,si=Cn[Cn.length-1],Vi=Gn[0];if(si.getType()===0&&Vi.getType()===0&&Vi.originalLineStart<=si.originalLineEnd){Cn[Cn.length-1]=new Ei(si.originalLineStart,Vi.originalLineEnd,si.modifiedLineStart,Vi.modifiedLineEnd),Cn=Cn.concat(Gn.slice(1));continue}Bn[Pn++]=new Ji(Cn),Cn=Gn}return Bn[Pn++]=new Ji(Cn),Bn},r.prototype._findDiffIndex=function(n){for(var h=n.lineNumber,S=0,N=this._diffs.length;S<N;S++){var ce=this._diffs[S].entries,Be=ce[ce.length-1].modifiedLineEnd;if(h<=Be)return S}return 0},r.prototype._render=function(){var n=this._diffEditor.getOriginalEditor().getOptions(),h=this._diffEditor.getModifiedEditor().getOptions(),S=this._diffEditor.getOriginalEditor().getModel(),N=this._diffEditor.getModifiedEditor().getModel(),ce=S.getOptions(),Be=N.getOptions();if(!this._isVisible||!S||!N){ge.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,_t=document.createElement("div");_t.className="diff-review-table",_t.setAttribute("role","list"),Ti.a.applyFontInfoSlow(_t,h.get(34));for(var Ot=0,Ft=0,jt=0,ro=0,to=0,Yt=Ye.length;to<Yt;to++){var Qt=Ye[to],ho=Qt.originalLineStart,So=Qt.originalLineEnd,To=Qt.modifiedLineStart,Io=Qt.modifiedLineEnd;ho!==0&&(Ot===0||ho<Ot)&&(Ot=ho),So!==0&&(Ft===0||So>Ft)&&(Ft=So),To!==0&&(jt===0||To<jt)&&(jt=To),Io!==0&&(ro===0||Io>ro)&&(ro=Io)}var ko=document.createElement("div");ko.className="diff-review-row";var Ko=document.createElement("div");Ko.className="diff-review-cell diff-review-summary";var ln=Ft-Ot+1,wn=ro-jt+1;Ko.appendChild(document.createTextNode(Ge+1+"/"+this._diffs.length+": @@ -"+Ot+","+ln+" +"+jt+","+wn+" @@")),ko.setAttribute("data-line",String(jt));var qo=function(Cn){return Cn===0?_n.a("no_lines","no lines"):Cn===1?_n.a("one_line","1 line"):_n.a("more_lines","{0} lines",Cn)},Yo=qo(ln),un=qo(wn);ko.setAttribute("aria-label",_n.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,Ot,Yo,jt,un)),ko.appendChild(Ko),ko.setAttribute("role","listitem"),_t.appendChild(ko);for(var en=jt,to=0,Yt=Ye.length;to<Yt;to++){var Qt=Ye[to];r._renderSection(_t,Qt,en,this._width,n,S,ce,h,N,Be),Qt.modifiedLineStart!==0&&(en=Qt.modifiedLineEnd)}ge.t(this._content.domNode),this._content.domNode.appendChild(_t),this.scrollbar.scanDomNode()},r._renderSection=function(n,h,S,N,ce,Be,Ge,Ye,_t,Ot){var Ft=h.getType(),jt="diff-review-row",ro="",to="diff-review-spacer";switch(Ft){case 1:jt="diff-review-row line-insert",ro=" char-insert",to="diff-review-spacer insert-sign";break;case 2:jt="diff-review-row line-delete",ro=" char-delete",to="diff-review-spacer delete-sign";break}for(var Yt=h.originalLineStart,Qt=h.originalLineEnd,ho=h.modifiedLineStart,So=h.modifiedLineEnd,To=Math.max(So-ho,Qt-Yt),Io=ce.get(107),ko=Io.glyphMarginWidth+Io.lineNumbersWidth,Ko=Ye.get(107),ln=10+Ko.glyphMarginWidth+Ko.lineNumbersWidth,wn=0;wn<=To;wn++){var qo=Yt===0?0:Yt+wn,Yo=ho===0?0:ho+wn,un=document.createElement("div");un.style.minWidth=N+"px",un.className=jt,un.setAttribute("role","listitem"),Yo!==0&&(S=Yo),un.setAttribute("data-line",String(S));var en=document.createElement("div");en.className="diff-review-cell",un.appendChild(en);var Dn=document.createElement("span");Dn.style.width=ko+"px",Dn.style.minWidth=ko+"px",Dn.className="diff-review-line-number"+ro,qo!==0?Dn.appendChild(document.createTextNode(String(qo))):Dn.innerHTML="&#160;",en.appendChild(Dn);var Cn=document.createElement("span");Cn.style.width=ln+"px",Cn.style.minWidth=ln+"px",Cn.style.paddingRight="10px",Cn.className="diff-review-line-number"+ro,Yo!==0?Cn.appendChild(document.createTextNode(String(Yo))):Cn.innerHTML="&#160;",en.appendChild(Cn);var Bn=document.createElement("span");Bn.className=to,Bn.innerHTML="&#160;&#160;",en.appendChild(Bn);var Pn=void 0;Yo!==0?(en.insertAdjacentHTML("beforeend",this._renderLine(_t,Ye,Ot.tabSize,Yo)),Pn=_t.getLineContent(Yo)):(en.insertAdjacentHTML("beforeend",this._renderLine(Be,ce,Ge.tabSize,qo)),Pn=Be.getLineContent(qo)),Pn.length===0&&(Pn=_n.a("blankLine","blank"));var Gn="";switch(Ft){case 0:Gn=_n.a("equalLine","original {0}, modified {1}: {2}",qo,Yo,Pn);break;case 1:Gn=_n.a("insertLine","+ modified {0}: {1}",Yo,Pn);break;case 2:Gn=_n.a("deleteLine","- original {0}: {1}",qo,Pn);break}un.setAttribute("aria-label",Gn),n.appendChild(un)}},r._renderLine=function(n,h,S,N){var ce=n.getLineContent(N),Be=h.get(34),Ge=(0<<11|1<<14|2<<23)>>>0,Ye=new Uint32Array(2);Ye[0]=ce.length,Ye[1]=Ge;var _t=new mt.a(Ye,ce),Ot=Xt.d.isBasicASCII(ce,n.mightContainNonBasicASCII()),Ft=Xt.d.containsRTL(ce,Ot,n.mightContainRTL()),jt=Object(Kt.e)(new Kt.c(Be.isMonospace&&!h.get(23),Be.canUseHalfwidthRightwardsArrow,ce,!1,Ot,Ft,0,_t,[],S,0,Be.spaceWidth,Be.middotWidth,h.get(88),h.get(74),h.get(69),h.get(35)!==T.d.OFF,null));return jt.html},r}(Rt.a);Object(Mn.e)(function(a,r){var n=a.getColor(Vn.k);n&&r.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var h=a.getColor(bn.Vb);h&&r.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+h+" 0 -6px 6px -6px inset; }")});var er=function(a){Ln(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.next",label:_n.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:Sn.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return r.prototype.run=function(n,h){var S=Ir(n);S&&S.diffReviewNext()},r}(ui.b),Rr=function(a){Ln(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.prev",label:_n.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:Sn.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1024|65,weight:100}})||this}return r.prototype.run=function(n,h){var S=Ir(n);S&&S.diffReviewPrev()},r}(ui.b);function Ir(a){for(var r=a.get(me.a),n=r.listDiffEditors(),h=0,S=n.length;h<S;h++){var N=n[h];if(N.hasWidgetFocus())return N}return null}Object(ui.f)(er),Object(ui.f)(Rr);var Es=e("erNZ"),Jo=e("tX9W"),Ai=e("MvK1"),ws=e("dBaI"),In=e("Cg/j"),wi=e("8HsV"),Xn=e("Uzvx"),zn=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Ri=function(a,r,n,h){function S(N){return N instanceof n?N:new n(function(ce){ce(N)})}return new(n||(n=Promise))(function(N,ce){function Be(_t){try{Ye(h.next(_t))}catch(Ot){ce(Ot)}}function Ge(_t){try{Ye(h.throw(_t))}catch(Ot){ce(Ot)}}function Ye(_t){_t.done?N(_t.value):S(_t.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},tr=function(a,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},h,S,N,ce;return ce={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function Be(Ye){return function(_t){return Ge([Ye,_t])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,S&&(N=Ye[0]&2?S.return:Ye[0]?S.throw||((N=S.return)&&N.call(S),0):S.next)&&!(N=N.call(S,Ye[1])).done)return N;(S=0,N)&&(Ye=[Ye[0]&2,N.value]);switch(Ye[0]){case 0:case 1:N=Ye;break;case 4:return n.label++,{value:Ye[1],done:!1};case 5:n.label++,S=Ye[1],Ye=[0];continue;case 7:Ye=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]<N[3])){n.label=Ye[1];break}if(Ye[0]===6&&n.label<N[1]){n.label=N[1],N=Ye;break}if(N&&n.label<N[2]){n.label=N[2],n.ops.push(Ye);break}N[2]&&n.ops.pop(),n.trys.pop();continue}Ye=r.call(a,n)}catch(_t){Ye=[6,_t],S=0}finally{h=N=0}if(Ye[0]&5)throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}},_i=function(a){zn(r,a);function r(n,h,S,N,ce,Be){var Ge=a.call(this)||this;Ge._viewZoneId=n,Ge._marginDomNode=h,Ge.editor=S,Ge.diff=N,Ge._contextMenuService=ce,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=S.getOption(49),_t=S.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 Ot=[];Ot.push(new ci.a("diff.clipboard.copyDeletedContent",N.originalEndLineNumber>N.modifiedStartLineNumber?_n.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):_n.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(N.originalContent.join(_t)+_t)];case 1:return Yt.sent(),[2]}})})}));var Ft=0,jt=void 0;N.originalEndLineNumber>N.modifiedStartLineNumber&&(jt=new ci.a("diff.clipboard.copyDeletedLineContent",_n.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",N.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(N.originalContent[Ft])];case 1:return Yt.sent(),[2]}})})}),Ot.push(jt));var ro=S.getOption(68);ro||Ot.push(new ci.a("diff.inline.revertChange",_n.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 N.modifiedEndLineNumber===0?(Yt=S.getModel().getLineMaxColumn(N.modifiedStartLineNumber),S.executeEdits("diffEditor",[{range:new H.a(N.modifiedStartLineNumber,Yt,N.modifiedStartLineNumber,Yt),text:_t+N.originalContent.join(_t)}])):(Yt=S.getModel().getLineMaxColumn(N.modifiedEndLineNumber),S.executeEdits("diffEditor",[{range:new H.a(N.modifiedStartLineNumber,1,N.modifiedEndLineNumber,Yt),text:N.originalContent.join(_t)}])),[2]})})}));var to=function(Qt,ho){Ge._contextMenuService.showContextMenu({getAnchor:function(){return{x:Qt,y:ho}},getActions:function(){return jt&&(jt.label=_n.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",N.originalStartLineNumber+Ft)),Ot},autoSelectFirstItem:!0})};return Ge._register(ge.o(Ge._diffActions,"mousedown",function(Yt){var Qt=ge.C(Ge._diffActions),ho=Qt.top,So=Qt.height,To=Math.floor(Ye/3);Yt.preventDefault(),to(Yt.posx,ho+So+To)})),Ge._register(S.onMouseMove(function(Yt){if(Yt.target.type===8||Yt.target.type===5){var Qt=Yt.target.detail.viewZoneId;Qt===Ge._viewZoneId?(Ge.visibility=!0,Ft=Ge._updateLightBulbPosition(Ge._marginDomNode,Yt.event.browserEvent.y,Ye)):Ge.visibility=!1}else Ge.visibility=!1})),Ge._register(S.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(),Ft=Ge._updateLightBulbPosition(Ge._marginDomNode,Yt.event.browserEvent.y,Ye),to(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(n,h,S){var N=ge.C(n).top,ce=h-N,Be=Math.floor(ce/S),Ge=Be*S;return this._diffActions.style.top=Ge+"px",Be},r}(Rt.a),Ii=e("tTk5"),_s=e("o39E"),hi=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Ss=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Jn=function(a,r){return function(n,h){r(n,h,a)}},qn=function(){function a(r,n){this._contextMenuService=r,this._clipboardService=n,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return a.prototype.getForeignViewZones=function(r){var n=this;return r.filter(function(h){return!n._zonesMap[String(h.id)]})},a.prototype.clean=function(r){var n=this;this._zones.length>0&&r.changeViewZones(function(h){for(var S=0,N=n._zones.length;S<N;S++)h.removeZone(n._zones[S])}),this._zones=[],this._zonesMap={},this._decorations=r.deltaDecorations(this._decorations,[])},a.prototype.apply=function(r,n,h,S){var N=this,ce=S?ys.c.capture(r):null;r.changeViewZones(function(Be){for(var Ge=0,Ye=N._zones.length;Ge<Ye;Ge++)Be.removeZone(N._zones[Ge]);for(var Ge=0,_t=N.inlineDiffMargins.length;Ge<_t;Ge++)N.inlineDiffMargins[Ge].dispose();N._zones=[],N._zonesMap={},N.inlineDiffMargins=[];for(var Ge=0,Ot=h.zones.length;Ge<Ot;Ge++){var Ft=h.zones[Ge];Ft.suppressMouseDown=!0;var jt=Be.addZone(Ft);N._zones.push(jt),N._zonesMap[String(jt)]=!0,h.zones[Ge].diff&&Ft.marginDomNode&&N._clipboardService&&(Ft.suppressMouseDown=!1,N.inlineDiffMargins.push(new _i(jt,Ft.marginDomNode,r,h.zones[Ge].diff,N._contextMenuService,N._clipboardService)))}}),ce&&ce.restore(r),this._decorations=r.deltaDecorations(this._decorations,h.decorations),n&&n.setZones(h.overviewZones)},a}(),Ls=0,or=function(a){hi(r,a);function r(n,h,S,N,ce,Be,Ge,Ye,_t,Ot,Ft){var jt=a.call(this)||this;jt._editorProgressService=Ft,jt._onDidDispose=jt._register(new I.a),jt.onDidDispose=jt._onDidDispose.event,jt._onDidUpdateDiff=jt._register(new I.a),jt.onDidUpdateDiff=jt._onDidUpdateDiff.event,jt._lastOriginalWarning=null,jt._lastModifiedWarning=null,jt._editorWorkerService=N,jt._codeEditorService=Ge,jt._contextKeyService=jt._register(ce.createScoped(n)),jt._contextKeyService.createKey("isInDiffEditor",!0),jt._themeService=Ye,jt._notificationService=_t,jt.id=++Ls,jt._state=0,jt._updatingDiffProgress=null,jt._domElement=n,h=h||{},jt._renderSideBySide=!0,typeof h.renderSideBySide!="undefined"&&(jt._renderSideBySide=h.renderSideBySide),jt._maxComputationTime=5e3,typeof h.maxComputationTime!="undefined"&&(jt._maxComputationTime=h.maxComputationTime),jt._ignoreTrimWhitespace=!0,typeof h.ignoreTrimWhitespace!="undefined"&&(jt._ignoreTrimWhitespace=h.ignoreTrimWhitespace),jt._renderIndicators=!0,typeof h.renderIndicators!="undefined"&&(jt._renderIndicators=h.renderIndicators),jt._originalIsEditable=!1,typeof h.originalEditable!="undefined"&&(jt._originalIsEditable=Boolean(h.originalEditable)),jt._updateDecorationsRunner=jt._register(new ut.d(function(){return jt._updateDecorations()},0)),jt._containerDomElement=document.createElement("div"),jt._containerDomElement.className=r._getClassName(jt._themeService.getTheme(),jt._renderSideBySide),jt._containerDomElement.style.position="relative",jt._containerDomElement.style.height="100%",jt._domElement.appendChild(jt._containerDomElement),jt._overviewViewportDomElement=Object(Ci.b)(document.createElement("div")),jt._overviewViewportDomElement.setClassName("diffViewport"),jt._overviewViewportDomElement.setPosition("absolute"),jt._overviewDomElement=document.createElement("div"),jt._overviewDomElement.className="diffOverview",jt._overviewDomElement.style.position="absolute",jt._overviewDomElement.appendChild(jt._overviewViewportDomElement.domNode),jt._register(ge.o(jt._overviewDomElement,"mousedown",function(ln){jt.modifiedEditor.delegateVerticalScrollbarMouseDown(ln)})),jt._containerDomElement.appendChild(jt._overviewDomElement),jt._originalDomNode=document.createElement("div"),jt._originalDomNode.className="editor original",jt._originalDomNode.style.position="absolute",jt._originalDomNode.style.height="100%",jt._containerDomElement.appendChild(jt._originalDomNode),jt._modifiedDomNode=document.createElement("div"),jt._modifiedDomNode.className="editor modified",jt._modifiedDomNode.style.position="absolute",jt._modifiedDomNode.style.height="100%",jt._containerDomElement.appendChild(jt._modifiedDomNode),jt._beginUpdateDecorationsTimeout=-1,jt._currentlyChangingViewZones=!1,jt._diffComputationToken=0,jt._originalEditorState=new qn(Ot,S),jt._modifiedEditorState=new qn(Ot,S),jt._isVisible=!0,jt._isHandlingScrollEvent=!1,jt._elementSizeObserver=jt._register(new _s.a(jt._containerDomElement,void 0,function(){return jt._onDidContainerSizeChanged()})),h.automaticLayout&&jt._elementSizeObserver.startObserving(),jt._diffComputationResult=null;var ro=jt._contextKeyService.createScoped();ro.createKey("isInDiffLeftEditor",!0);var to=new wi.a;to.set(Sn.c,ro);var Yt=Be.createChild(to),Qt=jt._contextKeyService.createScoped();Qt.createKey("isInDiffRightEditor",!0);var ho=new wi.a;ho.set(Sn.c,Qt);var So=Be.createChild(ho);jt.originalEditor=jt._createLeftHandSideEditor(h,Yt),jt.modifiedEditor=jt._createRightHandSideEditor(h,So),jt._originalOverviewRuler=null,jt._modifiedOverviewRuler=null,jt._reviewPane=new qi(jt),jt._containerDomElement.appendChild(jt._reviewPane.domNode.domNode),jt._containerDomElement.appendChild(jt._reviewPane.shadow.domNode),jt._containerDomElement.appendChild(jt._reviewPane.actionBarContainer.domNode),jt._enableSplitViewResizing=!0,typeof h.enableSplitViewResizing!="undefined"&&(jt._enableSplitViewResizing=h.enableSplitViewResizing),jt._renderSideBySide?jt._setStrategy(new rr(jt._createDataSource(),jt._enableSplitViewResizing)):jt._setStrategy(new Ni(jt._createDataSource(),jt._enableSplitViewResizing)),jt._register(Ye.onThemeChange(function(ln){jt._strategy&&jt._strategy.applyColors(ln)&&jt._updateDecorationsRunner.schedule(),jt._containerDomElement.className=r._getClassName(jt._themeService.getTheme(),jt._renderSideBySide)}));for(var To=ui.d.getDiffEditorContributions(),Io=0,ko=To;Io<ko.length;Io++){var Ko=ko[Io];try{jt._register(Be.createInstance(Ko.ctor,jt))}catch(ln){Object(Ct.e)(ln)}}return jt._codeEditorService.addDiffEditor(jt),jt}return r.prototype._setState=function(n){if(this._state===n)return;this._state=n,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3))},r.prototype.hasWidgetFocus=function(){return ge.K(document.activeElement,this._domElement)},r.prototype.diffReviewNext=function(){this._reviewPane.next()},r.prototype.diffReviewPrev=function(){this._reviewPane.prev()},r._getClassName=function(n,h){var S="monaco-diff-editor monaco-editor-background ";return h&&(S+="side-by-side "),S+=Object(Mn.d)(n.type),S},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(n,h){var S=this,N=this._createInnerEditor(h,this._originalDomNode,this._adjustOptionsForLeftHandSide(n,this._originalIsEditable));return this._register(N.onDidScrollChange(function(ce){if(S._isHandlingScrollEvent)return;if(!ce.scrollTopChanged&&!ce.scrollLeftChanged&&!ce.scrollHeightChanged)return;S._isHandlingScrollEvent=!0,S.modifiedEditor.setScrollPosition({scrollLeft:ce.scrollLeft,scrollTop:ce.scrollTop}),S._isHandlingScrollEvent=!1,S._layoutOverviewViewport()})),this._register(N.onDidChangeViewZones(function(){S._onViewZonesChanged()})),this._register(N.onDidChangeModelContent(function(){S._isVisible&&S._beginUpdateDecorationsSoon()})),N},r.prototype._createRightHandSideEditor=function(n,h){var S=this,N=this._createInnerEditor(h,this._modifiedDomNode,this._adjustOptionsForRightHandSide(n));return this._register(N.onDidScrollChange(function(ce){if(S._isHandlingScrollEvent)return;if(!ce.scrollTopChanged&&!ce.scrollLeftChanged&&!ce.scrollHeightChanged)return;S._isHandlingScrollEvent=!0,S.originalEditor.setScrollPosition({scrollLeft:ce.scrollLeft,scrollTop:ce.scrollTop}),S._isHandlingScrollEvent=!1,S._layoutOverviewViewport()})),this._register(N.onDidChangeViewZones(function(){S._onViewZonesChanged()})),this._register(N.onDidChangeConfiguration(function(ce){ce.hasChanged(34)&&N.getModel()&&S._onViewZonesChanged()})),this._register(N.onDidChangeModelContent(function(){S._isVisible&&S._beginUpdateDecorationsSoon()})),this._register(N.onDidChangeModelOptions(function(ce){ce.tabSize&&S._updateDecorationsRunner.schedule()})),N},r.prototype._createInnerEditor=function(n,h,S){return n.createInstance(xr.a,h,S,{})},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 Pt.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(n){var h=!1;typeof n.renderSideBySide!="undefined"&&(this._renderSideBySide!==n.renderSideBySide&&(this._renderSideBySide=n.renderSideBySide,h=!0)),typeof n.maxComputationTime!="undefined"&&(this._maxComputationTime=n.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());var S=!1;typeof n.ignoreTrimWhitespace!="undefined"&&(this._ignoreTrimWhitespace!==n.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=n.ignoreTrimWhitespace,S=!0)),typeof n.renderIndicators!="undefined"&&(this._renderIndicators!==n.renderIndicators&&(this._renderIndicators=n.renderIndicators,S=!0)),S&&this._beginUpdateDecorations(),typeof n.originalEditable!="undefined"&&(this._originalIsEditable=Boolean(n.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(n)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(n,this._originalIsEditable)),typeof n.enableSplitViewResizing!="undefined"&&(this._enableSplitViewResizing=n.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),h&&(this._renderSideBySide?this._setStrategy(new rr(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new Ni(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(n){if(n&&(!n.original||!n.modified))throw new Error(n.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(n?n.original:null),this.modifiedEditor.setModel(n?n.modified:null),this._updateDecorationsRunner.cancel(),n&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),n&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()},r.prototype.getDomNode=function(){return this._domElement},r.prototype.getVisibleColumnFromPosition=function(n){return this.modifiedEditor.getVisibleColumnFromPosition(n)},r.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},r.prototype.setPosition=function(n){this.modifiedEditor.setPosition(n)},r.prototype.revealLine=function(n,h){h===void 0&&(h=0),this.modifiedEditor.revealLine(n,h)},r.prototype.revealLineInCenter=function(n,h){h===void 0&&(h=0),this.modifiedEditor.revealLineInCenter(n,h)},r.prototype.revealLineInCenterIfOutsideViewport=function(n,h){h===void 0&&(h=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(n,h)},r.prototype.revealPosition=function(n,h){h===void 0&&(h=0),this.modifiedEditor.revealPosition(n,h)},r.prototype.revealPositionInCenter=function(n,h){h===void 0&&(h=0),this.modifiedEditor.revealPositionInCenter(n,h)},r.prototype.revealPositionInCenterIfOutsideViewport=function(n,h){h===void 0&&(h=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(n,h)},r.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},r.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},r.prototype.setSelection=function(n){this.modifiedEditor.setSelection(n)},r.prototype.setSelections=function(n){this.modifiedEditor.setSelections(n)},r.prototype.revealLines=function(n,h,S){S===void 0&&(S=0),this.modifiedEditor.revealLines(n,h,S)},r.prototype.revealLinesInCenter=function(n,h,S){S===void 0&&(S=0),this.modifiedEditor.revealLinesInCenter(n,h,S)},r.prototype.revealLinesInCenterIfOutsideViewport=function(n,h,S){S===void 0&&(S=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(n,h,S)},r.prototype.revealRange=function(n,h,S,N){h===void 0&&(h=0),S===void 0&&(S=!1),N===void 0&&(N=!0),this.modifiedEditor.revealRange(n,h,S,N)},r.prototype.revealRangeInCenter=function(n,h){h===void 0&&(h=0),this.modifiedEditor.revealRangeInCenter(n,h)},r.prototype.revealRangeInCenterIfOutsideViewport=function(n,h){h===void 0&&(h=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(n,h)},r.prototype.revealRangeAtTop=function(n,h){h===void 0&&(h=0),this.modifiedEditor.revealRangeAtTop(n,h)},r.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},r.prototype.saveViewState=function(){var n=this.originalEditor.saveViewState(),h=this.modifiedEditor.saveViewState();return{original:n,modified:h}},r.prototype.restoreViewState=function(n){if(n.original&&n.modified){var h=n;this.originalEditor.restoreViewState(h.original),this.modifiedEditor.restoreViewState(h.modified)}},r.prototype.layout=function(n){this._elementSizeObserver.observe(n)},r.prototype.focus=function(){this.modifiedEditor.focus()},r.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},r.prototype.trigger=function(n,h,S){this.modifiedEditor.trigger(n,h,S)},r.prototype.changeDecorations=function(n){return this.modifiedEditor.changeDecorations(n)},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 n=this._elementSizeObserver.getHeight(),h=this._getReviewHeight(),S=r.ENTIRE_DIFF_OVERVIEW_WIDTH-2*r.ONE_OVERVIEW_WIDTH,N=this.modifiedEditor.getLayoutInfo();N&&(this._originalOverviewRuler.setLayout({top:0,width:r.ONE_OVERVIEW_WIDTH,right:S+r.ONE_OVERVIEW_WIDTH,height:n-h}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:r.ONE_OVERVIEW_WIDTH,height:n-h}))},r.prototype._onViewZonesChanged=function(){if(this._currentlyChangingViewZones)return;this._updateDecorationsRunner.schedule()},r.prototype._beginUpdateDecorationsSoon=function(){var n=this;this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(function(){return n._beginUpdateDecorations()},r.UPDATE_DIFF_DECORATIONS_DELAY)},r._equals=function(n,h){return!n&&!h?!0:!n||!h?!1:n.toString()===h.toString()},r.prototype._beginUpdateDecorations=function(){var n=this;this._beginUpdateDecorationsTimeout=-1;var h=this.originalEditor.getModel(),S=this.modifiedEditor.getModel();if(!h||!S)return;this._diffComputationToken++;var N=this._diffComputationToken;if(this._setState(1),!this._editorWorkerService.canComputeDiff(h.uri,S.uri)){(!r._equals(h.uri,this._lastOriginalWarning)||!r._equals(S.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=h.uri,this._lastModifiedWarning=S.uri,this._notificationService.warn(_n.a("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._editorWorkerService.computeDiff(h.uri,S.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(function(ce){N===n._diffComputationToken&&h===n.originalEditor.getModel()&&S===n.modifiedEditor.getModel()&&(n._setState(2),n._diffComputationResult=ce,n._updateDecorationsRunner.schedule(),n._onDidUpdateDiff.fire())},function(ce){N===n._diffComputationToken&&h===n.originalEditor.getModel()&&S===n.modifiedEditor.getModel()&&(n._setState(2),n._diffComputationResult=null,n._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 n=this._diffComputationResult?this._diffComputationResult.changes:[],h=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),S=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),N=this._strategy.getEditorsDiffDecorations(n,this._ignoreTrimWhitespace,this._renderIndicators,h,S,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,N.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,N.modified,!0)}finally{this._currentlyChangingViewZones=!1}},r.prototype._adjustOptionsForSubEditor=function(n){var h=Mt.c(n||{});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(n,h){var S=this._adjustOptionsForSubEditor(n);return S.readOnly=!h,S.extraEditorClassName="original-in-monaco-diff-editor",S},r.prototype._adjustOptionsForRightHandSide=function(n){var h=this._adjustOptionsForSubEditor(n);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 n=this._elementSizeObserver.getWidth(),h=this._elementSizeObserver.getHeight(),S=this._getReviewHeight(),N=this._strategy.layout();this._originalDomNode.style.width=N+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=n-N+"px",this._modifiedDomNode.style.left=N+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=h-S+"px",this._overviewDomElement.style.width=r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=n-r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(r.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:N,height:h-S}),this.modifiedEditor.layout({width:n-N-r.ENTIRE_DIFF_OVERVIEW_WIDTH,height:h-S}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(h-S,n,S),this._layoutOverviewViewport()},r.prototype._layoutOverviewViewport=function(){var n=this._computeOverviewViewport();n?(this._overviewViewportDomElement.setTop(n.top),this._overviewViewportDomElement.setHeight(n.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},r.prototype._computeOverviewViewport=function(){var n=this.modifiedEditor.getLayoutInfo();if(!n)return null;var h=this.modifiedEditor.getScrollTop(),S=this.modifiedEditor.getScrollHeight(),N=Math.max(0,n.height),ce=Math.max(0,N-2*0),Be=S>0?ce/S:0,Ge=Math.max(0,Math.floor(n.height*Be)),Ye=Math.floor(h*Be);return{height:Ge,top:Ye}},r.prototype._createDataSource=function(){var n=this;return{getWidth:function(){return n._elementSizeObserver.getWidth()},getHeight:function(){return n._elementSizeObserver.getHeight()-n._getReviewHeight()},getContainerDomNode:function(){return n._containerDomElement},relayoutEditors:function(){n._doLayout()},getOriginalEditor:function(){return n.originalEditor},getModifiedEditor:function(){return n.modifiedEditor}}},r.prototype._setStrategy=function(n){this._strategy&&this._strategy.dispose(),this._strategy=n,n.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},r.prototype._getLineChangeAtOrBeforeLineNumber=function(n,h){var S=this._diffComputationResult?this._diffComputationResult.changes:[];if(S.length===0||n<h(S[0]))return null;for(var N=0,ce=S.length-1;N<ce;){var Be=Math.floor((N+ce)/2),Ge=h(S[Be]),Ye=Be+1<=ce?h(S[Be+1]):1073741824;n<Ge?ce=Be-1:n>=Ye?N=Be+1:(N=Be,ce=Be)}return S[N]},r.prototype._getEquivalentLineForOriginalLineNumber=function(n){var h=this._getLineChangeAtOrBeforeLineNumber(n,function(Ye){return Ye.originalStartLineNumber});if(!h)return n;var S=h.originalStartLineNumber+(h.originalEndLineNumber>0?-1:0),N=h.modifiedStartLineNumber+(h.modifiedEndLineNumber>0?-1:0),ce=h.originalEndLineNumber>0?h.originalEndLineNumber-h.originalStartLineNumber+1:0,Be=h.modifiedEndLineNumber>0?h.modifiedEndLineNumber-h.modifiedStartLineNumber+1:0,Ge=n-S;return Ge<=ce?N+Math.min(Ge,Be):N+Be-ce+Ge},r.prototype._getEquivalentLineForModifiedLineNumber=function(n){var h=this._getLineChangeAtOrBeforeLineNumber(n,function(Ye){return Ye.modifiedStartLineNumber});if(!h)return n;var S=h.originalStartLineNumber+(h.originalEndLineNumber>0?-1:0),N=h.modifiedStartLineNumber+(h.modifiedEndLineNumber>0?-1:0),ce=h.originalEndLineNumber>0?h.originalEndLineNumber-h.originalStartLineNumber+1:0,Be=h.modifiedEndLineNumber>0?h.modifiedEndLineNumber-h.modifiedStartLineNumber+1:0,Ge=n-N;return Ge<=Be?S+Math.min(Ge,ce):S+ce-Be+Ge},r.prototype.getDiffLineInformationForOriginal=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(n)}:null},r.prototype.getDiffLineInformationForModified=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(n)}:null},r.ONE_OVERVIEW_WIDTH=15,r.ENTIRE_DIFF_OVERVIEW_WIDTH=30,r.UPDATE_DIFF_DECORATIONS_DELAY=200,r=Ss([Jn(3,at.a),Jn(4,Sn.c),Jn(5,In.a),Jn(6,me.a),Jn(7,Mn.c),Jn(8,Un.a),Jn(9,Xn.a),Jn(10,Ii.a)],r),r}(Rt.a),Nr=function(a){hi(r,a);function r(n){var h=a.call(this)||this;return h._dataSource=n,h._insertColor=null,h._removeColor=null,h}return r.prototype.applyColors=function(n){var h=(n.getColor(bn.j)||bn.g).transparent(2),S=(n.getColor(bn.l)||bn.h).transparent(2),N=!h.equals(this._insertColor)||!S.equals(this._removeColor);return this._insertColor=h,this._removeColor=S,N},r.prototype.getEditorsDiffDecorations=function(n,h,S,N,ce,Be,Ge){ce=ce.sort(function(Ft,jt){return Ft.afterLineNumber-jt.afterLineNumber}),N=N.sort(function(Ft,jt){return Ft.afterLineNumber-jt.afterLineNumber});var Ye=this._getViewZones(n,N,ce,Be,Ge,S),_t=this._getOriginalEditorDecorations(n,h,S,Be,Ge),Ot=this._getModifiedEditorDecorations(n,h,S,Be,Ge);return{original:{decorations:_t.decorations,overviewZones:_t.overviewZones,zones:Ye.original},modified:{decorations:Ot.decorations,overviewZones:Ot.overviewZones,zones:Ye.modified}}},r}(Rt.a),nr=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,n,h,S,N){this.lineChanges=r,this.originalForeignVZ=n,this.originalLineHeight=h,this.modifiedForeignVZ=S,this.modifiedLineHeight=N}return a.prototype.getViewZones=function(){for(var r={original:[],modified:[]},n=0,h=0,S=0,N=0,ce=0,Be=0,Ge=function(Yo,un){return Yo.afterLineNumber-un.afterLineNumber},Ye=function(Yo,un){if(un.domNode===null&&Yo.length>0){var en=Yo[Yo.length-1];if(en.afterLineNumber===un.afterLineNumber&&en.domNode===null){en.heightInLines+=un.heightInLines;return}}Yo.push(un)},_t=new nr(this.modifiedForeignVZ),Ot=new nr(this.originalForeignVZ),Ft=0,jt=this.lineChanges.length;Ft<=jt;Ft++){var ro=Ft<jt?this.lineChanges[Ft]:null;ro!==null?(S=ro.originalStartLineNumber+(ro.originalEndLineNumber>0?-1:0),N=ro.modifiedStartLineNumber+(ro.modifiedEndLineNumber>0?-1:0),h=ro.originalEndLineNumber>0?ro.originalEndLineNumber-ro.originalStartLineNumber+1:0,n=ro.modifiedEndLineNumber>0?ro.modifiedEndLineNumber-ro.modifiedStartLineNumber+1:0,ce=Math.max(ro.originalStartLineNumber,ro.originalEndLineNumber),Be=Math.max(ro.modifiedStartLineNumber,ro.modifiedEndLineNumber)):(S+=1e7+h,N+=1e7+n,ce=S,Be=N);for(var to=[],Yt=[];_t.current&&_t.current.afterLineNumber<=Be;){var Qt=void 0;_t.current.afterLineNumber<=N?Qt=S-N+_t.current.afterLineNumber:Qt=ce;var ho=null;ro&&ro.modifiedStartLineNumber<=_t.current.afterLineNumber&&_t.current.afterLineNumber<=ro.modifiedEndLineNumber&&(ho=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),to.push({afterLineNumber:Qt,heightInLines:_t.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:ho}),_t.advance()}for(;Ot.current&&Ot.current.afterLineNumber<=ce;){var Qt=void 0;Ot.current.afterLineNumber<=S?Qt=N-S+Ot.current.afterLineNumber:Qt=Be,Yt.push({afterLineNumber:Qt,heightInLines:Ot.current.height/this.originalLineHeight,domNode:null}),Ot.advance()}if(ro!==null&&fi(ro)){var So=this._produceOriginalFromDiff(ro,h,n);So&&to.push(So)}if(ro!==null&&ni(ro)){var So=this._produceModifiedFromDiff(ro,h,n);So&&Yt.push(So)}var To=0,Io=0;for(to=to.sort(Ge),Yt=Yt.sort(Ge);To<to.length&&Io<Yt.length;){var ko=to[To],Ko=Yt[Io],ln=ko.afterLineNumber-S,wn=Ko.afterLineNumber-N;ln<wn?(Ye(r.original,ko),To++):wn<ln?(Ye(r.modified,Ko),Io++):ko.shouldNotShrink?(Ye(r.original,ko),To++):Ko.shouldNotShrink?(Ye(r.modified,Ko),Io++):ko.heightInLines>=Ko.heightInLines?(ko.heightInLines-=Ko.heightInLines,Io++):(Ko.heightInLines-=ko.heightInLines,To++)}for(;To<to.length;)Ye(r.original,to[To]),To++;for(;Io<Yt.length;)Ye(r.modified,Yt[Io]),Io++}return{original:a._ensureDomNodes(r.original),modified:a._ensureDomNodes(r.modified)}},a._ensureDomNodes=function(r){return r.map(function(n){return n.domNode||(n.domNode=Os()),n})},a}();function Yn(a,r,n,h,S){return{range:new H.a(a,r,n,h),options:S}}var An={charDelete:Jo.a.register({className:"char-delete"}),charDeleteWholeLine:Jo.a.register({className:"char-delete",isWholeLine:!0}),charInsert:Jo.a.register({className:"char-insert"}),charInsertWholeLine:Jo.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:Jo.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:Jo.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign codicon codicon-add",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:Jo.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:Jo.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign codicon codicon-remove",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:Jo.a.register({marginClassName:"line-delete"})},rr=function(a){hi(r,a);function r(n,h){var S=a.call(this,n)||this;return S._disableSash=h===!1,S._sashRatio=null,S._sashPosition=null,S._startSashPosition=null,S._sash=S._register(new vs.a(S._dataSource.getContainerDomNode(),S)),S._disableSash&&(S._sash.state=0),S._sash.onDidStart(function(){return S.onSashDragStart()}),S._sash.onDidChange(function(N){return S.onSashDrag(N)}),S._sash.onDidEnd(function(){return S.onSashDragEnd()}),S._sash.onDidReset(function(){return S.onSashReset()}),S}return r.prototype.setEnableSplitViewResizing=function(n){var h=n===!1;this._disableSash!==h&&(this._disableSash=h,this._sash.state=this._disableSash?0:3)},r.prototype.layout=function(n){n===void 0&&(n=this._sashRatio);var h=this._dataSource.getWidth(),S=h-or.ENTIRE_DIFF_OVERVIEW_WIDTH,N=Math.floor((n||.5)*S),ce=Math.floor(.5*S);return N=this._disableSash?ce:N||ce,S>r.MINIMUM_EDITOR_WIDTH*2?(N<r.MINIMUM_EDITOR_WIDTH&&(N=r.MINIMUM_EDITOR_WIDTH),N>S-r.MINIMUM_EDITOR_WIDTH&&(N=S-r.MINIMUM_EDITOR_WIDTH)):N=ce,this._sashPosition!==N&&(this._sashPosition=N,this._sash.layout()),this._sashPosition},r.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},r.prototype.onSashDrag=function(n){var h=this._dataSource.getWidth(),S=h-or.ENTIRE_DIFF_OVERVIEW_WIDTH,N=this.layout((this._startSashPosition+(n.currentX-n.startX))/S);this._sashRatio=N/S,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(n){return 0},r.prototype.getVerticalSashLeft=function(n){return this._sashPosition},r.prototype.getVerticalSashHeight=function(n){return this._dataSource.getHeight()},r.prototype._getViewZones=function(n,h,S,N,ce){var Be=new Ms(n,h,N.getOption(49),S,ce.getOption(49));return Be.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,h,S,N,ce){for(var Be=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Ye=N.getModel(),_t=0,Ot=n.length;_t<Ot;_t++){var Ft=n[_t];if(ni(Ft)&&(Ge.decorations.push({range:new H.a(Ft.originalStartLineNumber,1,Ft.originalEndLineNumber,1073741824),options:S?An.lineDeleteWithSign:An.lineDelete}),(!fi(Ft)||!Ft.charChanges)&&Ge.decorations.push(Yn(Ft.originalStartLineNumber,1,Ft.originalEndLineNumber,1073741824,An.charDeleteWholeLine)),Ge.overviewZones.push(new Ai.a(Ft.originalStartLineNumber,Ft.originalEndLineNumber,Be)),Ft.charChanges))for(var jt=0,ro=Ft.charChanges.length;jt<ro;jt++){var to=Ft.charChanges[jt];if(ni(to))if(h)for(var Yt=to.originalStartLineNumber;Yt<=to.originalEndLineNumber;Yt++){var Qt=void 0,ho=void 0;Yt===to.originalStartLineNumber?Qt=to.originalStartColumn:Qt=Ye.getLineFirstNonWhitespaceColumn(Yt),Yt===to.originalEndLineNumber?ho=to.originalEndColumn:ho=Ye.getLineLastNonWhitespaceColumn(Yt),Ge.decorations.push(Yn(Yt,Qt,Yt,ho,An.charDelete))}else Ge.decorations.push(Yn(to.originalStartLineNumber,to.originalStartColumn,to.originalEndLineNumber,to.originalEndColumn,An.charDelete))}}return Ge},r.prototype._getModifiedEditorDecorations=function(n,h,S,N,ce){for(var Be=String(this._insertColor),Ge={decorations:[],overviewZones:[]},Ye=ce.getModel(),_t=0,Ot=n.length;_t<Ot;_t++){var Ft=n[_t];if(fi(Ft)&&(Ge.decorations.push({range:new H.a(Ft.modifiedStartLineNumber,1,Ft.modifiedEndLineNumber,1073741824),options:S?An.lineInsertWithSign:An.lineInsert}),(!ni(Ft)||!Ft.charChanges)&&Ge.decorations.push(Yn(Ft.modifiedStartLineNumber,1,Ft.modifiedEndLineNumber,1073741824,An.charInsertWholeLine)),Ge.overviewZones.push(new Ai.a(Ft.modifiedStartLineNumber,Ft.modifiedEndLineNumber,Be)),Ft.charChanges))for(var jt=0,ro=Ft.charChanges.length;jt<ro;jt++){var to=Ft.charChanges[jt];if(fi(to))if(h)for(var Yt=to.modifiedStartLineNumber;Yt<=to.modifiedEndLineNumber;Yt++){var Qt=void 0,ho=void 0;Yt===to.modifiedStartLineNumber?Qt=to.modifiedStartColumn:Qt=Ye.getLineFirstNonWhitespaceColumn(Yt),Yt===to.modifiedEndLineNumber?ho=to.modifiedEndColumn:ho=Ye.getLineLastNonWhitespaceColumn(Yt),Ge.decorations.push(Yn(Yt,Qt,Yt,ho,An.charInsert))}else Ge.decorations.push(Yn(to.modifiedStartLineNumber,to.modifiedStartColumn,to.modifiedEndLineNumber,to.modifiedEndColumn,An.charInsert))}}return Ge},r.MINIMUM_EDITOR_WIDTH=100,r}(Nr),Ms=function(a){hi(r,a);function r(n,h,S,N,ce){return a.call(this,n,h,S,N,ce)||this}return r.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},r.prototype._produceOriginalFromDiff=function(n,h,S){return S>h?{afterLineNumber:Math.max(n.originalStartLineNumber,n.originalEndLineNumber),heightInLines:S-h,domNode:null}:null},r.prototype._produceModifiedFromDiff=function(n,h,S){return h>S?{afterLineNumber:Math.max(n.modifiedStartLineNumber,n.modifiedEndLineNumber),heightInLines:h-S,domNode:null}:null},r}(ir),Ni=function(a){hi(r,a);function r(n,h){var S=a.call(this,n)||this;return S.decorationsLeft=n.getOriginalEditor().getLayoutInfo().decorationsLeft,S._register(n.getOriginalEditor().onDidLayoutChange(function(N){S.decorationsLeft!==N.decorationsLeft&&(S.decorationsLeft=N.decorationsLeft,n.relayoutEditors())})),S}return r.prototype.setEnableSplitViewResizing=function(n){},r.prototype._getViewZones=function(n,h,S,N,ce,Be){var Ge=new Ds(n,h,S,N,ce,Be);return Ge.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,h,S,N,ce){for(var Be=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Ye=0,_t=n.length;Ye<_t;Ye++){var Ot=n[Ye];ni(Ot)&&(Ge.decorations.push({range:new H.a(Ot.originalStartLineNumber,1,Ot.originalEndLineNumber,1073741824),options:An.lineDeleteMargin}),Ge.overviewZones.push(new Ai.a(Ot.originalStartLineNumber,Ot.originalEndLineNumber,Be)))}return Ge},r.prototype._getModifiedEditorDecorations=function(n,h,S,N,ce){for(var Be=String(this._insertColor),Ge={decorations:[],overviewZones:[]},Ye=ce.getModel(),_t=0,Ot=n.length;_t<Ot;_t++){var Ft=n[_t];if(fi(Ft))if(Ge.decorations.push({range:new H.a(Ft.modifiedStartLineNumber,1,Ft.modifiedEndLineNumber,1073741824),options:S?An.lineInsertWithSign:An.lineInsert}),Ge.overviewZones.push(new Ai.a(Ft.modifiedStartLineNumber,Ft.modifiedEndLineNumber,Be)),Ft.charChanges)for(var jt=0,ro=Ft.charChanges.length;jt<ro;jt++){var to=Ft.charChanges[jt];if(fi(to))if(h)for(var Yt=to.modifiedStartLineNumber;Yt<=to.modifiedEndLineNumber;Yt++){var Qt=void 0,ho=void 0;Yt===to.modifiedStartLineNumber?Qt=to.modifiedStartColumn:Qt=Ye.getLineFirstNonWhitespaceColumn(Yt),Yt===to.modifiedEndLineNumber?ho=to.modifiedEndColumn:ho=Ye.getLineLastNonWhitespaceColumn(Yt),Ge.decorations.push(Yn(Yt,Qt,Yt,ho,An.charInsert))}else Ge.decorations.push(Yn(to.modifiedStartLineNumber,to.modifiedStartColumn,to.modifiedEndLineNumber,to.modifiedEndColumn,An.charInsert))}else Ge.decorations.push(Yn(Ft.modifiedStartLineNumber,1,Ft.modifiedEndLineNumber,1073741824,An.charInsertWholeLine))}return Ge},r.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},r}(Nr),Ds=function(a){hi(r,a);function r(n,h,S,N,ce,Be){var Ge=a.call(this,n,h,N.getOption(49),S,ce.getOption(49))||this;return Ge.originalModel=N.getModel(),Ge.modifiedEditorOptions=ce.getOptions(),Ge.modifiedEditorTabSize=ce.getModel().getOptions().tabSize,Ge.renderIndicators=Be,Ge}return r.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var n=document.createElement("div");return n.className="inline-added-margin-view-zone",n},r.prototype._produceOriginalFromDiff=function(n,h,S){var N=document.createElement("div");return N.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(n.originalStartLineNumber,n.originalEndLineNumber),heightInLines:S,domNode:document.createElement("div"),marginDomNode:N}},r.prototype._produceModifiedFromDiff=function(n,h,S){var N=[];if(n.charChanges)for(var ce=0,Be=n.charChanges.length;ce<Be;ce++){var Ge=n.charChanges[ce];ni(Ge)&&N.push(new Xt.a(new H.a(Ge.originalStartLineNumber,Ge.originalStartColumn,Ge.originalEndLineNumber,Ge.originalEndColumn),"char-delete",0))}for(var Ye=Object(Es.a)(1e4),_t=[],Ot=this.modifiedEditorOptions.get(107),Ft=this.modifiedEditorOptions.get(34),jt=Ot.decorationsWidth,ro=this.modifiedEditorOptions.get(49),to=Ft.typicalHalfwidthCharacterWidth,Yt=0,Qt=[],ho=n.originalStartLineNumber;ho<=n.originalEndLineNumber;ho++)if(Yt=Math.max(Yt,this._renderOriginalLine(ho-n.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,ho,N,Ye)),Qt.push(this.originalModel.getLineContent(ho)),this.renderIndicators){var So=ho-n.originalStartLineNumber;_t=_t.concat(['<div class="delete-sign codicon codicon-remove" style="position:absolute;top:'+So*ro+"px;width:"+jt+"px;height:"+ro+'px;right:0;"></div>'])}Yt+=this.modifiedEditorOptions.get(79);var To=document.createElement("div");To.className="view-lines line-delete",To.innerHTML=Ye.build(),Ti.a.applyFontInfoSlow(To,Ft);var Io=document.createElement("div");return Io.className="inline-deleted-margin-view-zone",Io.innerHTML=_t.join(""),Ti.a.applyFontInfoSlow(Io,Ft),{shouldNotShrink:!0,afterLineNumber:n.modifiedEndLineNumber===0?n.modifiedStartLineNumber:n.modifiedStartLineNumber-1,heightInLines:h,minWidthInPx:Yt*to,domNode:To,marginDomNode:Io,diff:{originalStartLineNumber:n.originalStartLineNumber,originalEndLineNumber:n.originalEndLineNumber,modifiedStartLineNumber:n.modifiedStartLineNumber,modifiedEndLineNumber:n.modifiedEndLineNumber,originalContent:Qt}}},r.prototype._renderOriginalLine=function(n,h,S,N,ce,Be,Ge){var Ye=h.getLineTokens(ce),_t=Ye.getLineContent(),Ot=S.get(34),Ft=ws.a.filter(Be,ce,1,_t.length+1);Ge.appendASCIIString('<div class="view-line'),Be.length===0&&Ge.appendASCIIString(" char-delete"),Ge.appendASCIIString('" style="top:'),Ge.appendASCIIString(String(n*S.get(49))),Ge.appendASCIIString('px;width:1000000px;">');var jt=Xt.d.isBasicASCII(_t,h.mightContainNonBasicASCII()),ro=Xt.d.containsRTL(_t,jt,h.mightContainRTL()),to=Object(Kt.d)(new Kt.c(Ot.isMonospace&&!S.get(23),Ot.canUseHalfwidthRightwardsArrow,_t,!1,jt,ro,0,Ye,Ft,N,0,Ot.spaceWidth,Ot.middotWidth,S.get(88),S.get(74),S.get(69),S.get(35)!==T.d.OFF,null),Ge);Ge.appendASCIIString("</div>");var Yt=to.characterMapping.getAbsoluteOffsets();return Yt.length>0?Yt[Yt.length-1]:0},r}(ir);function fi(a){return a.modifiedEndLineNumber>0}function ni(a){return a.originalEndLineNumber>0}function Os(){var a=document.createElement("div");return a.className="diagonal-fill",a}Object(Mn.e)(function(a,r){var n=a.getColor(bn.j);n&&(r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var h=a.getColor(bn.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 S=a.getColor(bn.k);S&&r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+S+"; }");var N=a.getColor(bn.m);N&&r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+N+"; }");var ce=a.getColor(bn.Vb);ce&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+ce+"; }");var Be=a.getColor(bn.i);Be&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+Be+"; }")});var Ts=e("9Y+e"),Si=e("scqD"),Kn=e("fjLI"),ii=e("bexQ"),mi=e("R3nR"),xs=e("9XeP"),sr=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ar=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},an=function(a,r){return function(n,h){r(n,h,a)}},As=function(){for(var a=0,r=0,n=arguments.length;r<n;r++)a+=arguments[r].length;for(var h=Array(a),S=0,r=0;r<n;r++)for(var N=arguments[r],ce=0,Be=N.length;ce<Be;ce++,S++)h[S]=N[ce];return h},Rs=0,jr=!1;function Is(){if(jr)return;jr=!0,gs.b(document.body)}var ji=function(a){sr(r,a);function r(n,h,S,N,ce,Be,Ge,Ye,_t,Ot){var Ft=this;return h=h||{},h.ariaLabel=h.ariaLabel||Oi.g.editorViewAccessibleLabel,h.ariaLabel=h.ariaLabel+";"+(ps.i?Oi.g.accessibilityHelpMessageIE:Oi.g.accessibilityHelpMessage),Ft=a.call(this,n,h,{},S,N,ce,Be,Ye,_t,Ot)||this,Ge instanceof Lr?Ft._standaloneKeybindingService=Ge:Ft._standaloneKeybindingService=null,Is(),Ft}return r.prototype.addCommand=function(n,h,S){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var N="DYNAMIC_"+ ++Rs,ce=Sn.a.deserialize(S);return this._standaloneKeybindingService.addDynamicKeybinding(N,n,h,ce),N},r.prototype.createContextKey=function(n,h){return this._contextKeyService.createKey(n,h)},r.prototype.addAction=function(n){var h=this;if(typeof n.id!="string"||typeof n.label!="string"||typeof n.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 S=n.id,N=n.label,ce=Sn.a.and(Sn.a.equals("editorId",this.getId()),Sn.a.deserialize(n.precondition)),Be=n.keybindings,Ge=Sn.a.and(ce,Sn.a.deserialize(n.keybindingContext)),Ye=n.contextMenuGroupId||null,_t=n.contextMenuOrder||0,Ot=function(To){for(var Io=[],ko=1;ko<arguments.length;ko++)Io[ko-1]=arguments[ko];return Promise.resolve(n.run.apply(n,As([h],Io)))},Ft=new Rt.b,jt=this.getId()+":"+S;if(Ft.add(Q.a.registerCommand(jt,Ot)),Ye){var ro={command:{id:jt,title:N},when:ce,group:Ye,order:_t};Ft.add(Kn.c.appendMenuItem(7,ro))}if(Array.isArray(Be))for(var to=0,Yt=Be;to<Yt.length;to++){var Qt=Yt[to];Ft.add(this._standaloneKeybindingService.addDynamicKeybinding(jt,Qt,Ot,Ge))}var ho=new Ts.a(jt,N,N,ce,Ot,this._contextKeyService);return this._actions[S]=ho,Ft.add(Object(Rt.h)(function(){delete h._actions[S]})),Ft},r=ar([an(2,In.a),an(3,me.a),an(4,Q.b),an(5,Sn.c),an(6,ii.a),an(7,Mn.c),an(8,Un.a),an(9,mi.b)],r),r}(xr.a),lr=function(a){sr(r,a);function r(n,h,S,N,ce,Be,Ge,Ye,_t,Ot,Ft,jt,ro){var to=this;oi(jt,h,!1);var Yt=Ot.registerEditorContainer(n);h=h||{},typeof h.theme=="string"&&Ot.setTheme(h.theme);var Qt=h.model;delete h.model,to=a.call(this,n,h,N,ce,Be,Ge,Ye,Ot,Ft,ro)||this,to._contextViewService=_t,to._configurationService=jt,to._register(S),to._register(Yt);var ho;if(typeof Qt=="undefined"?(ho=self.monaco.editor.createModel(h.value||"",h.language||"text/plain"),to._ownsModel=!0):(ho=Qt,to._ownsModel=!1),to._attachModel(ho),ho){var So={oldModelUrl:null,newModelUrl:ho.uri};to._onDidChangeModel.fire(So)}return to}return r.prototype.dispose=function(){a.prototype.dispose.call(this)},r.prototype.updateOptions=function(n){oi(this._configurationService,n,!1),a.prototype.updateOptions.call(this,n)},r.prototype._attachModel=function(n){a.prototype._attachModel.call(this,n),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},r.prototype._postDetachModelCleanup=function(n){a.prototype._postDetachModelCleanup.call(this,n),n&&this._ownsModel&&(n.dispose(),this._ownsModel=!1)},r=ar([an(3,In.a),an(4,me.a),an(5,Q.b),an(6,Sn.c),an(7,ii.a),an(8,Xn.b),an(9,Si.a),an(10,Un.a),an(11,xn.a),an(12,mi.b)],r),r}(ji),Ns=function(a){sr(r,a);function r(n,h,S,N,ce,Be,Ge,Ye,_t,Ot,Ft,jt,ro,to,Yt){var Qt=this;oi(jt,h,!0);var ho=Ot.registerEditorContainer(n);return h=h||{},typeof h.theme=="string"&&(h.theme=Ot.setTheme(h.theme)),Qt=a.call(this,n,h,Yt,Ye,ce,N,_t,Ot,Ft,ro,to)||this,Qt._contextViewService=Ge,Qt._configurationService=jt,Qt._register(S),Qt._register(ho),Qt._contextViewService.setContainer(Qt._containerDomElement),Qt}return r.prototype.dispose=function(){a.prototype.dispose.call(this)},r.prototype.updateOptions=function(n){oi(this._configurationService,n,!0),a.prototype.updateOptions.call(this,n)},r.prototype._createInnerEditor=function(n,h,S){return n.createInstance(ji,h,S)},r.prototype.getOriginalEditor=function(){return a.prototype.getOriginalEditor.call(this)},r.prototype.getModifiedEditor=function(){return a.prototype.getModifiedEditor.call(this)},r.prototype.addCommand=function(n,h,S){return this.getModifiedEditor().addCommand(n,h,S)},r.prototype.createContextKey=function(n,h){return this.getModifiedEditor().createContextKey(n,h)},r.prototype.addAction=function(n){return this.getModifiedEditor().addAction(n)},r=ar([an(3,In.a),an(4,Sn.c),an(5,ii.a),an(6,Xn.b),an(7,at.a),an(8,me.a),an(9,Si.a),an(10,Un.a),an(11,xn.a),an(12,Xn.a),an(13,Ii.a),an(14,Object(In.d)(xs.a))],r),r}(or),js=e("x/UI"),Ps=e("WBhO"),Pi=function(){function a(r){this._languageIdentifier=r}return a.prototype.getId=function(){return this._languageIdentifier.language},a}(),dr=e("MrjW"),cr=e("l2gE"),ki="text/plain",Pr="application/unknown",Fi=[],kr=[],Fr=[];function pi(a,r){r===void 0&&(r=!1);var n=ur(a);Fi.push(n),n.userConfigured?Fr.push(n):kr.push(n),r&&!n.userConfigured&&Fi.forEach(function(h){if(h.mime===n.mime||h.userConfigured)return;n.extension&&h.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&h.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&h.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&h.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>")})}function ur(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 Li(a,r){var n;if(a)switch(a.scheme){case Ee.b.file:n=a.fsPath;break;case Ee.b.data:var h=ve.a.parseMetaData(a);n=h.get(ve.a.META_DATA_LABEL);break;default:n=a.path}if(!n)return[Pr];n=n.toLowerCase();var S=Object(dr.basename)(n),N=Wr(n,S,Fr);if(N)return[N,ki];var ce=Wr(n,S,kr);if(ce)return[ce,ki];if(r){var Be=ri(r);if(Be)return[Be,ki]}return[Pr]}function Wr(a,r,n){for(var h=null,S=null,N=null,ce=n.length-1;ce>=0;ce--){var Be=n[ce];if(r===Be.filenameLowercase){h=Be;break}if(Be.filepattern&&(!S||Be.filepattern.length>S.filepattern.length)){var Ge=Be.filepatternOnPath?a:r;Object(cr.a)(Be.filepatternLowercase,Ge)&&(S=Be)}Be.extension&&((!N||Be.extension.length>N.extension.length)&&(Object(eo.m)(r,Be.extensionLowercase)&&(N=Be)))}return h?h.mime:S?S.mime:N?N.mime:null}function ri(a){if(Object(eo.P)(a)&&(a=a.substr(1)),a.length>0)for(var r=Fi.length-1;r>=0;r--){var n=Fi[r];if(!n.firstline)continue;var h=a.match(n.firstline);if(h&&h.length>0)return n.mime}return null}var gi=e("MqQJ"),hr=e("ic2d"),ks=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ei=Object.prototype.hasOwnProperty,Fs=function(a){ks(r,a);function r(n,h){n===void 0&&(n=!0),h===void 0&&(h=!1);var S=a.call(this)||this;return S._onDidChange=S._register(new I.a),S.onDidChange=S._onDidChange.event,S._warnOnOverwrite=h,S._nextLanguageId2=1,S._languageIdToLanguage=[],S._languageToLanguageId=Object.create(null),S._languages={},S._mimeTypesMap={},S._nameMap={},S._lowercaseNameMap={},n&&(S._initializeFromRegistry(),S._register(gi.a.onDidChangeLanguages(function(N){return S._initializeFromRegistry()}))),S}return r.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var n=gi.a.getLanguages();this._registerLanguages(n)},r.prototype._registerLanguages=function(n){for(var h=this,S=0,N=n;S<N.length;S++){var ce=N[S];this._registerLanguage(ce)}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(gi.a.getLanguages().map(function(Be){return Be.id})),this._onDidChange.fire()},r.prototype._getLanguageId=function(n){if(this._languageToLanguageId[n])return this._languageToLanguageId[n];var h=this._nextLanguageId2++;return this._languageIdToLanguage[h]=n,this._languageToLanguageId[n]=h,h},r.prototype._registerLanguage=function(n){var h=n.id,S;if(ei.call(this._languages,h))S=this._languages[h];else{var N=this._getLanguageId(h);S={identifier:new vt.r(h,N),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[h]=S}this._mergeLanguage(S,n)},r.prototype._mergeLanguage=function(n,h){var S,N=h.id,ce=null;if(Array.isArray(h.mimetypes)&&h.mimetypes.length>0&&((S=n.mimetypes).push.apply(S,h.mimetypes),ce=h.mimetypes[0]),ce||(ce="text/x-"+N,n.mimetypes.push(ce)),Array.isArray(h.extensions))for(var Be=0,Ge=h.extensions;Be<Ge.length;Be++){var Ye=Ge[Be];pi({id:N,mime:ce,extension:Ye},this._warnOnOverwrite),n.extensions.push(Ye)}if(Array.isArray(h.filenames))for(var _t=0,Ot=h.filenames;_t<Ot.length;_t++){var Ft=Ot[_t];pi({id:N,mime:ce,filename:Ft},this._warnOnOverwrite),n.filenames.push(Ft)}if(Array.isArray(h.filenamePatterns))for(var jt=0,ro=h.filenamePatterns;jt<ro.length;jt++){var to=ro[jt];pi({id:N,mime:ce,filepattern:to},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);eo.I(Qt)||pi({id:N,mime:ce,firstline:Qt},this._warnOnOverwrite)}catch(ln){Object(Ct.e)(ln)}}n.aliases.push(N);var ho=null;if(typeof h.aliases!="undefined"&&Array.isArray(h.aliases)&&(h.aliases.length===0?ho=[null]:ho=h.aliases),ho!==null)for(var So=0,To=ho;So<To.length;So++){var Io=To[So];if(!Io||Io.length===0)continue;n.aliases.push(Io)}var ko=ho!==null&&ho.length>0;if(!(ko&&ho[0]===null)){var Ko=(ko?ho[0]:null)||N;(ko||!n.name)&&(n.name=Ko)}h.configuration&&n.configurationFiles.push(h.configuration)},r.prototype.isRegisteredMode=function(n){return ei.call(this._mimeTypesMap,n)?!0:ei.call(this._languages,n)},r.prototype.getModeIdForLanguageNameLowercase=function(n){return ei.call(this._lowercaseNameMap,n)?this._lowercaseNameMap[n].language:null},r.prototype.extractModeIds=function(n){var h=this;return n?n.split(",").map(function(S){return S.trim()}).map(function(S){return ei.call(h._mimeTypesMap,S)?h._mimeTypesMap[S].language:S}).filter(function(S){return ei.call(h._languages,S)}):[]},r.prototype.getLanguageIdentifier=function(n){if(n===At.b||n===0)return At.a;var h;if(typeof n=="string")h=n;else if(h=this._languageIdToLanguage[n],!h)return null;return ei.call(this._languages,h)?this._languages[h].identifier:null},r.prototype.getModeIdsFromFilepathOrFirstLine=function(n,h){if(!n&&!h)return[];var S=Li(n,h);return this.extractModeIds(S.join(","))},r}(Rt.a),Ws=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Br=function(a){Ws(r,a);function r(n,h){var S=a.call(this)||this;return S._onDidChange=S._register(new I.a),S.onDidChange=S._onDidChange.event,S._selector=h,S.languageIdentifier=S._selector(),S._register(n(function(){return S._evaluate()})),S}return r.prototype._evaluate=function(){var n=this._selector();if(n.id===this.languageIdentifier.id)return;this.languageIdentifier=n,this._onDidChange.fire(this.languageIdentifier)},r}(Rt.a),Bs=function(){function a(r){var n=this;r===void 0&&(r=!1),this._onDidCreateMode=new I.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new I.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Fs(!0,r),this._registry.onDidChange(function(){return n._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,n){var h=this._registry.getModeIdsFromFilepathOrFirstLine(r,n);return Object(lt.l)(h,null)},a.prototype.getModeId=function(r){var n=this._registry.extractModeIds(r);return Object(lt.l)(n,null)},a.prototype.getLanguageIdentifier=function(r){return this._registry.getLanguageIdentifier(r)},a.prototype.create=function(r){var n=this;return new Br(this.onLanguagesMaybeChanged,function(){var h=n.getModeId(r);return n._createModeAndGetLanguageIdentifier(h)})},a.prototype.createByFilepathOrFirstLine=function(r,n){var h=this;return new Br(this.onLanguagesMaybeChanged,function(){var S=h.getModeIdByFilepathOrFirstLine(r,n);return h._createModeAndGetLanguageIdentifier(S)})},a.prototype._createModeAndGetLanguageIdentifier=function(r){var n=this.getLanguageIdentifier(r||"plaintext")||At.a;return this._getOrCreateMode(n.language),n},a.prototype.triggerMode=function(r){var n=this.getModeId(r);this._getOrCreateMode(n||"plaintext")},a.prototype._getOrCreateMode=function(r){if(!this._instantiatedModes.hasOwnProperty(r)){var n=this.getLanguageIdentifier(r)||At.a;this._instantiatedModes[r]=new Pi(n),this._onDidCreateMode.fire(this._instantiatedModes[r])}return this._instantiatedModes[r]},a}(),Hr=e("QRHv"),vi=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Hs=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Wi=function(a,r){return function(n,h){r(n,h,a)}};function Bi(a){return a.toString()}var V=function(){function a(r,n,h){this._modelEventListeners=new Rt.b,this.model=r,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(r.onWillDispose(function(){return n(r)})),this._modelEventListeners.add(r.onDidChangeLanguage(function(S){return h(r,S)}))}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 n=this;this._disposeLanguageSelection(),this._languageSelection=r,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return n.model.setMode(r.languageIdentifier)}),this.model.setMode(r.languageIdentifier)},a}(),o=gt.d||gt.e?1:2,t=function(a){vi(r,a);function r(n,h,S,N){var ce=a.call(this)||this;return ce._onModelAdded=ce._register(new I.a),ce.onModelAdded=ce._onModelAdded.event,ce._onModelRemoved=ce._register(new I.a),ce.onModelRemoved=ce._onModelRemoved.event,ce._onModelModeChanged=ce._register(new I.a),ce.onModelModeChanged=ce._onModelModeChanged.event,ce._configurationService=n,ce._resourcePropertiesService=h,ce._models={},ce._modelCreationOptionsByLanguageAndResource=Object.create(null),ce._configurationServiceSubscription=ce._configurationService.onDidChangeConfiguration(function(Be){return ce._updateModelOptions()}),ce._updateModelOptions(),ce._register(new i(ce,S,n,N)),ce}return r._readModelOptions=function(n,h){var S=T.c.tabSize;if(n.editor&&typeof n.editor.tabSize!="undefined"){var N=parseInt(n.editor.tabSize,10);isNaN(N)||(S=N),S<1&&(S=1)}var ce=S;if(n.editor&&typeof n.editor.indentSize!="undefined"&&n.editor.indentSize!=="tabSize"){var Be=parseInt(n.editor.indentSize,10);isNaN(Be)||(ce=Be),ce<1&&(ce=1)}var Ge=T.c.insertSpaces;n.editor&&typeof n.editor.insertSpaces!="undefined"&&(Ge=n.editor.insertSpaces==="false"?!1:Boolean(n.editor.insertSpaces));var Ye=o,_t=n.eol;_t===`\r
`?Ye=2:_t===`
`&&(Ye=1);var Ot=T.c.trimAutoWhitespace;n.editor&&typeof n.editor.trimAutoWhitespace!="undefined"&&(Ot=n.editor.trimAutoWhitespace==="false"?!1:Boolean(n.editor.trimAutoWhitespace));var Ft=T.c.detectIndentation;n.editor&&typeof n.editor.detectIndentation!="undefined"&&(Ft=n.editor.detectIndentation==="false"?!1:Boolean(n.editor.detectIndentation));var jt=T.c.largeFileOptimizations;return n.editor&&typeof n.editor.largeFileOptimizations!="undefined"&&(jt=n.editor.largeFileOptimizations==="false"?!1:Boolean(n.editor.largeFileOptimizations)),{isForSimpleWidget:h,tabSize:S,indentSize:ce,insertSpaces:Ge,detectIndentation:Ft,defaultEOL:Ye,trimAutoWhitespace:Ot,largeFileOptimizations:jt}},r.prototype.getCreationOptions=function(n,h,S){var N=this._modelCreationOptionsByLanguageAndResource[n+h];if(!N){var ce=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:h}),Be=this._resourcePropertiesService.getEOL(h,n);N=r._readModelOptions({editor:ce,eol:Be},S),this._modelCreationOptionsByLanguageAndResource[n+h]=N}return N},r.prototype._updateModelOptions=function(){var n=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var h=Object.keys(this._models),S=0,N=h.length;S<N;S++){var ce=h[S],Be=this._models[ce],Ge=Be.model.getLanguageIdentifier().language,Ye=Be.model.uri,_t=n[Ge+Ye],Ot=this.getCreationOptions(Ge,Ye,Be.model.isForSimpleWidget);r._setModelOptionsForModel(Be.model,Ot,_t)}},r._setModelOptionsForModel=function(n,h,S){if(S&&S.defaultEOL!==h.defaultEOL&&n.getLineCount()===1&&n.setEOL(h.defaultEOL===1?0:1),S&&S.detectIndentation===h.detectIndentation&&S.insertSpaces===h.insertSpaces&&S.tabSize===h.tabSize&&S.indentSize===h.indentSize&&S.trimAutoWhitespace===h.trimAutoWhitespace)return;h.detectIndentation?(n.detectIndentation(h.insertSpaces,h.tabSize),n.updateOptions({trimAutoWhitespace:h.trimAutoWhitespace})):n.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(n,h,S,N){var ce=this,Be=this.getCreationOptions(h.language,S,N),Ge=new Jo.b(n,Be,h,S),Ye=Bi(Ge.uri);if(this._models[Ye])throw new Error("ModelService: Cannot add model because it already exists!");var _t=new V(Ge,function(Ot){return ce._onWillDispose(Ot)},function(Ot,Ft){return ce._onDidChangeLanguage(Ot,Ft)});return this._models[Ye]=_t,_t},r.prototype.createModel=function(n,h,S,N){N===void 0&&(N=!1);var ce;return h?(ce=this._createModelData(n,h.languageIdentifier,S,N),this.setMode(ce.model,h)):ce=this._createModelData(n,gi.b,S,N),this._onModelAdded.fire(ce.model),ce.model},r.prototype.setMode=function(n,h){if(!h)return;var S=this._models[Bi(n.uri)];if(!S)return;S.setLanguage(h)},r.prototype.getModels=function(){for(var n=[],h=Object.keys(this._models),S=0,N=h.length;S<N;S++){var ce=h[S];n.push(this._models[ce].model)}return n},r.prototype.getModel=function(n){var h=Bi(n),S=this._models[h];return S?S.model:null},r.prototype._onWillDispose=function(n){var h=Bi(n.uri),S=this._models[h];delete this._models[h],S.dispose(),delete this._modelCreationOptionsByLanguageAndResource[n.getLanguageIdentifier().language+n.uri],this._onModelRemoved.fire(n)},r.prototype._onDidChangeLanguage=function(n,h){var S=h.oldLanguage,N=n.getLanguageIdentifier().language,ce=this.getCreationOptions(S,n.uri,n.isForSimpleWidget),Be=this.getCreationOptions(N,n.uri,n.isForSimpleWidget);r._setModelOptionsForModel(n,Be,ce),this._onModelModeChanged.fire({model:n,oldModeId:S})},r=Hs([Wi(0,xn.a),Wi(1,Ne.b),Wi(2,Mn.c),Wi(3,dt.a)],r),r}(Rt.a),i=function(a){vi(r,a);function r(n,h,S,N){var ce=a.call(this)||this;ce._configurationService=S,ce._watchers=Object.create(null),ce._semanticStyling=ce._register(new g(h,N));var Be=function(Ot){var Ft=S.getValue(r.SETTING_ID,{overrideIdentifier:Ot.getLanguageIdentifier().language,resource:Ot.uri});return Ft&&Ft.enabled},Ge=function(Ot){ce._watchers[Ot.uri.toString()]=new qe(Ot,h,ce._semanticStyling)},Ye=function(Ot,Ft){Ft.dispose(),delete ce._watchers[Ot.uri.toString()]};return ce._register(n.onModelAdded(function(_t){Be(_t)&&Ge(_t)})),ce._register(n.onModelRemoved(function(_t){var Ot=ce._watchers[_t.uri.toString()];Ot&&Ye(_t,Ot)})),ce._configurationService.onDidChangeConfiguration(function(_t){if(_t.affectsConfiguration(r.SETTING_ID))for(var Ot=0,Ft=n.getModels();Ot<Ft.length;Ot++){var jt=Ft[Ot],ro=ce._watchers[jt.uri.toString()];Be(jt)?ro||Ge(jt):ro&&Ye(jt,ro)}}),ce}return r.SETTING_ID="editor.semanticHighlighting",r}(Rt.a),g=function(a){vi(r,a);function r(n,h){var S=a.call(this)||this;return S._themeService=n,S._logService=h,S._caches=new WeakMap,S._themeService&&S._register(S._themeService.onThemeChange(function(){S._caches=new WeakMap})),S}return r.prototype.get=function(n){return this._caches.has(n)||this._caches.set(n,new Ie(n.getLegend(),this._themeService,this._logService)),this._caches.get(n)},r}(Rt.a),b=function(){function a(r,n,h){this.tokenTypeIndex=r,this.tokenModifierSet=n,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,n){for(var h=0;h<n;h++)r[h]=null},a.prototype._hashFunc=function(r,n){return((r<<5)-r+n|0)%this._currentLength},a.prototype.get=function(r,n){for(var h=this._hashFunc(r,n),S=this._elements[h];S;){if(S.tokenTypeIndex===r&&S.tokenModifierSet===n)return S;S=S.next}return null},a.prototype.add=function(r,n,h){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){var S=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 N=0,ce=S;N<ce.length;N++)for(var Be=ce[N],Ge=Be;Ge;){var Ye=Ge.next;Ge.next=null,this._add(Ge),Ge=Ye}}this._add(new b(r,n,h))},a.prototype._add=function(r){var n=this._hashFunc(r.tokenTypeIndex,r.tokenModifierSet);r.next=this._elements[n],this._elements[n]=r},a._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],a}(),Ie=function(){function a(r,n,h){this._legend=r,this._themeService=n,this._logService=h,this._hashTable=new K}return a.prototype.getMetadata=function(r,n){var h=this._hashTable.get(r,n),S;if(h)S=h.metadata;else{for(var N=this._legend.tokenTypes[r],ce=[],Be=n,Ge=0;Be>0&&Ge<this._legend.tokenModifiers.length;Ge++)Be&1&&ce.push(this._legend.tokenModifiers[Ge]),Be=Be>>1;var Ye=this._themeService.getTheme().getTokenStyleMetadata(N,ce);if(typeof Ye=="undefined")S=2147483647;else{if(S=0,typeof Ye.italic!="undefined"){var _t=(Ye.italic?1:0)<<11;S|=_t|1}if(typeof Ye.bold!="undefined"){var Ot=(Ye.bold?2:0)<<11;S|=Ot|2}if(typeof Ye.underline!="undefined"){var Ft=(Ye.underline?4:0)<<11;S|=Ft|4}if(Ye.foreground){var jt=Ye.foreground<<14;S|=jt|8}S===0&&(S=2147483647)}this._hashTable.add(r,n,S)}if(this._logService.getLevel()===dt.b.Trace){var ro=this._legend.tokenTypes[r],to=n?" "+this._legend.tokenModifiers.filter(function(Yt,Qt){return n&1<<Qt}).join(" "):"";this._logService.trace("tokenStyleMetadata "+(h?"[CACHED] ":"")+ro+to+": foreground "+vt.A.getForeground(S)+", fontStyle "+vt.A.getFontStyle(S).toString(2))}return S},a}(),Le=function(){function a(r,n,h){this._provider=r,this.resultId=n,this.data=h}return a.prototype.dispose=function(){this._provider.releaseDocumentSemanticTokens(this.resultId)},a}(),qe=function(a){vi(r,a);function r(n,h,S){var N=a.call(this)||this;return N._isDisposed=!1,N._model=n,N._semanticStyling=S,N._fetchSemanticTokens=N._register(new ut.d(function(){return N._fetchSemanticTokensNow()},300)),N._currentResponse=null,N._currentRequestCancellationTokenSource=null,N._register(N._model.onDidChangeContent(function(ce){N._fetchSemanticTokens.isScheduled()||N._fetchSemanticTokens.schedule()})),N._register(vt.l.onDidChange(function(ce){return N._fetchSemanticTokens.schedule()})),h&&N._register(h.onThemeChange(function(ce){N._setSemanticTokens(null,null,null,[]),N._fetchSemanticTokens.schedule()})),N._fetchSemanticTokens.schedule(0),N}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 n=this;if(this._currentRequestCancellationTokenSource)return;var h=this._getSemanticColoringProvider();if(!h)return;this._currentRequestCancellationTokenSource=new J.b;var S=[],N=this._model.onDidChangeContent(function(Ye){S.push(Ye)}),ce=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){n._currentRequestCancellationTokenSource=null,N.dispose(),n._setSemanticTokens(h,Ye||null,ce,S)},function(Ye){(!Ye||typeof Ye.message!="string"||Ye.message.indexOf("busy")===-1)&&Ct.e(Ye),n._currentRequestCancellationTokenSource=null,N.dispose(),S.length>0&&(n._fetchSemanticTokens.isScheduled()||n._fetchSemanticTokens.schedule())})},r._isSemanticTokens=function(n){return n&&!!n.data},r._isSemanticTokensEdits=function(n){return n&&Array.isArray(n.edits)},r._copy=function(n,h,S,N,ce){for(var Be=0;Be<ce;Be++)S[N+Be]=n[h+Be]},r.prototype._setSemanticTokens=function(n,h,S,N){var ce=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed){n&&h&&n.releaseDocumentSemanticTokens(h.resultId);return}if(!n||!h||!S){this._model.setSemanticTokens(null);return}if(r._isSemanticTokensEdits(h)){if(!ce){this._model.setSemanticTokens(null);return}if(h.edits.length===0)h={resultId:h.resultId,data:ce.data};else{for(var Be=0,Ge=0,Ye=h.edits;Ge<Ye.length;Ge++){var _t=Ye[Ge];Be+=(_t.data?_t.data.length:0)-_t.deleteCount}for(var Ot=ce.data,Ft=new Uint32Array(Ot.length+Be),jt=Ot.length,ro=Ft.length,to=h.edits.length-1;to>=0;to--){var _t=h.edits[to],Yt=jt-(_t.start+_t.deleteCount);Yt>0&&(r._copy(Ot,jt-Yt,Ft,ro-Yt,Yt),ro-=Yt),_t.data&&(r._copy(_t.data,0,Ft,ro-_t.data.length,_t.data.length),ro-=_t.data.length),jt=_t.start}jt>0&&r._copy(Ot,0,Ft,0,jt),h={resultId:h.resultId,data:Ft}}}if(r._isSemanticTokens(h)){this._currentResponse=new Le(n,h.resultId,h.data);for(var Ot=h.data,Qt=h.data.length/5|0,ho=Math.max(Math.ceil(Qt/1024),400),So=[],To=0,Io=1,ko=0;To<Qt;){var Ko=To,ln=Math.min(Ko+ho,Qt);if(ln<Qt){for(var wn=ln;wn-1>Ko&&Ot[5*wn]===0;)wn--;if(wn-1===Ko){for(var qo=ln;qo+1<Qt&&Ot[5*qo]===0;)qo++;ln=qo}else ln=wn}for(var Ft=new Uint32Array((ln-Ko)*4),Yo=0,un=0;To<ln;){var en=5*To,Dn=Ot[en],Cn=Ot[en+1],Bn=Io+Dn,Pn=Dn===0?ko+Cn:Cn,Gn=Ot[en+2],si=Ot[en+3],Vi=Ot[en+4],Aa=S.getMetadata(si,Vi);Aa!==2147483647&&(un===0&&(un=Bn),Ft[Yo]=Bn-un,Ft[Yo+1]=Pn,Ft[Yo+2]=Pn+Gn,Ft[Yo+3]=Aa,Yo+=4),Io=Bn,ko=Pn,To++}Yo!==Ft.length&&(Ft=Ft.subarray(0,Yo));var qd=new Hr.a(un,new Hr.c(Ft));So.push(qd)}if(N.length>0){for(var qs=0,Ra=N;qs<Ra.length;qs++)for(var ec=Ra[qs],ea=0,Ia=So;ea<Ia.length;ea++)for(var tc=Ia[ea],ta=0,Na=ec.changes;ta<Na.length;ta++){var ja=Na[ta];tc.applyEdit(ja.range,ja.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(So);return}this._model.setSemanticTokens(null)},r.prototype._getSemanticColoringProvider=function(){var n=vt.l.ordered(this._model);return n.length>0?n[0]:null},r}(Rt.a),ct=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),wt=function(a){ct(r,a);function r(){var n=a.call(this)||this;return n._onCodeEditorAdd=n._register(new I.a),n.onCodeEditorAdd=n._onCodeEditorAdd.event,n._onCodeEditorRemove=n._register(new I.a),n.onCodeEditorRemove=n._onCodeEditorRemove.event,n._onDiffEditorAdd=n._register(new I.a),n._onDiffEditorRemove=n._register(new I.a),n._codeEditors=Object.create(null),n._diffEditors=Object.create(null),n}return r.prototype.addCodeEditor=function(n){this._codeEditors[n.getId()]=n,this._onCodeEditorAdd.fire(n)},r.prototype.removeCodeEditor=function(n){delete this._codeEditors[n.getId()]&&this._onCodeEditorRemove.fire(n)},r.prototype.listCodeEditors=function(){var n=this;return Object.keys(this._codeEditors).map(function(h){return n._codeEditors[h]})},r.prototype.addDiffEditor=function(n){this._diffEditors[n.getId()]=n,this._onDiffEditorAdd.fire(n)},r.prototype.removeDiffEditor=function(n){delete this._diffEditors[n.getId()]&&this._onDiffEditorRemove.fire(n)},r.prototype.listDiffEditors=function(){var n=this;return Object.keys(this._diffEditors).map(function(h){return n._diffEditors[h]})},r.prototype.getFocusedCodeEditor=function(){for(var n=null,h=this.listCodeEditors(),S=0,N=h;S<N.length;S++){var ce=N[S];if(ce.hasTextFocus())return ce;ce.hasWidgetFocus()&&(n=ce)}return n},r}(Rt.a),et=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Wt=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},kt=function(a,r){return function(n,h){r(n,h,a)}},Vt=function(){function a(r,n,h){this._parent=r,this._editorId=n,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(n,h){h===void 0&&(h=null);var S=a.call(this)||this;return S._decorationOptionProviders=new Map,S._editorStyleSheets=new Map,S._globalStyleSheet=h?new qt(h):null,S._themeService=n,S}return r.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new qt(ge.w())),this._globalStyleSheet},r.prototype._getOrCreateStyleSheet=function(n){if(!n)return this._getOrCreateGlobalStyleSheet();var h=n.getContainerDomNode();if(!ge.N(h))return this._getOrCreateGlobalStyleSheet();var S=n.getId();if(!this._editorStyleSheets.has(S)){var N=new Vt(this,S,ge.w(h));this._editorStyleSheets.set(S,N)}return this._editorStyleSheets.get(S)},r.prototype._removeEditorStyleSheets=function(n){this._editorStyleSheets.delete(n)},r.prototype.registerDecorationType=function(n,h,S,N){var ce=this._decorationOptionProviders.get(n);if(!ce){var Be=this._getOrCreateStyleSheet(N),Ge={styleSheet:Be.styleSheet,key:n,parentTypeKey:S,options:h||Object.create(null)};S?ce=new io(this._themeService,Be,Ge):ce=new yo(this._themeService,Be,Ge),this._decorationOptionProviders.set(n,ce)}ce.refCount++},r.prototype.removeDecorationType=function(n){var h=this._decorationOptionProviders.get(n);h&&(h.refCount--,h.refCount<=0&&(this._decorationOptionProviders.delete(n),h.dispose(),this.listCodeEditors().forEach(function(S){return S.removeDecorations(n)})))},r.prototype.resolveDecorationOptions=function(n,h){var S=this._decorationOptionProviders.get(n);if(!S)throw new Error("Unknown decoration type key: "+n);return S.getOptions(this,h)},r=Wt([kt(0,Mn.c)],r),r}(wt),io=function(){function a(r,n,h){this._styleSheet=n,this._styleSheet.ref(),this._parentTypeKey=h.parentTypeKey,this.refCount=0,this._beforeContentRules=new bo(3,h,r),this._afterContentRules=new bo(4,h,r)}return a.prototype.getOptions=function(r,n){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}(),yo=function(){function a(r,n,h){var S=this;this._disposables=new Rt.b,this._styleSheet=n,this._styleSheet.ref(),this.refCount=0;var N=function(Ft){var jt=new bo(Ft,h,r);return S._disposables.add(jt),jt.hasContent?jt.className:void 0},ce=function(Ft){var jt=new bo(Ft,h,r);return S._disposables.add(jt),jt.hasContent?{className:jt.className,hasLetterSpacing:jt.hasLetterSpacing}:null};this.className=N(0);var Be=ce(1);Be&&(this.inlineClassName=Be.className,this.inlineClassNameAffectsLetterSpacing=Be.hasLetterSpacing),this.beforeContentClassName=N(3),this.afterContentClassName=N(4),this.glyphMarginClassName=N(2);var Ge=h.options;this.isWholeLine=Boolean(Ge.isWholeLine),this.stickiness=Ge.rangeBehavior;var Ye=Ge.light&&Ge.light.overviewRulerColor||Ge.overviewRulerColor,_t=Ge.dark&&Ge.dark.overviewRulerColor||Ge.overviewRulerColor;(typeof Ye!="undefined"||typeof _t!="undefined")&&(this.overviewRuler={color:Ye||_t,darkColor:_t||Ye,position:Ge.overviewRulerLane||ft.d.Center})}return a.prototype.getOptions=function(r,n){return n?{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}(),mo={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};"},bo=function(){function a(r,n,h){var S=this;this._theme=h.getTheme(),this._ruleType=r,this._providerArgs=n,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var N=go.getClassName(this._providerArgs.key,r);this._providerArgs.parentTypeKey&&(N=N+" "+go.getClassName(this._providerArgs.parentTypeKey,r)),this._className=N,this._unThemedSelector=go.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,r),this._buildCSS(),this._usesThemeColors?this._themeListener=h.onThemeChange(function(ce){S._theme=h.getTheme(),S._removeCSS(),S._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,n,h,S;switch(this._ruleType){case 0:n=this.getCSSTextForModelDecorationClassName(r),h=this.getCSSTextForModelDecorationClassName(r.light),S=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:n=this.getCSSTextForModelDecorationInlineClassName(r),h=this.getCSSTextForModelDecorationInlineClassName(r.light),S=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:n=this.getCSSTextForModelDecorationGlyphMarginClassName(r),h=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),S=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:n=this.getCSSTextForModelDecorationContentClassName(r.before),h=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),S=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:n=this.getCSSTextForModelDecorationContentClassName(r.after),h=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),S=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var N=this._providerArgs.styleSheet.sheet,ce=!1;n.length>0&&(N.insertRule(this._unThemedSelector+" {"+n+"}",0),ce=!0),h.length>0&&(N.insertRule(".vs"+this._unThemedSelector+" {"+h+"}",0),ce=!0),S.length>0&&(N.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+S+"}",0),ce=!0),this._hasContent=ce},a.prototype._removeCSS=function(){ge.O(this._unThemedSelector,this._providerArgs.styleSheet)},a.prototype.getCSSTextForModelDecorationClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["backgroundColor"],n),this.collectCSSText(r,["outline","outlineColor","outlineStyle","outlineWidth"],n),this.collectBorderSettingsCSSText(r,n),n.join("")},a.prototype.getCSSTextForModelDecorationInlineClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],n),r.letterSpacing&&(this._hasLetterSpacing=!0),n.join("")},a.prototype.getCSSTextForModelDecorationContentClassName=function(r){if(!r)return"";var n=[];if(typeof r!="undefined"){if(this.collectBorderSettingsCSSText(r,n),typeof r.contentIconPath!="undefined"&&n.push(eo.r(mo.contentIconPath,ge.r(z.a.revive(r.contentIconPath)))),typeof r.contentText=="string"){var h=r.contentText.match(/^.*$/m)[0],S=h.replace(/['\\]/g,"\\$&");n.push(eo.r(mo.contentText,S))}this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],n),this.collectCSSText(r,["width","height"],n)&&n.push("display:inline-block;")}return n.join("")},a.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(r){if(!r)return"";var n=[];return typeof r.gutterIconPath!="undefined"&&(n.push(eo.r(mo.gutterIconPath,ge.r(z.a.revive(r.gutterIconPath)))),typeof r.gutterIconSize!="undefined"&&n.push(eo.r(mo.gutterIconSize,r.gutterIconSize))),n.join("")},a.prototype.collectBorderSettingsCSSText=function(r,n){return this.collectCSSText(r,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],n)?(n.push(eo.r("box-sizing: border-box;")),!0):!1},a.prototype.collectCSSText=function(r,n,h){for(var S=h.length,N=0,ce=n;N<ce.length;N++){var Be=ce[N],Ge=this.resolveValue(r[Be]);typeof Ge=="string"&&h.push(eo.r(mo[Be],Ge))}return h.length!==S},a.prototype.resolveValue=function(r){if(Object(Pt.c)(r)){this._usesThemeColors=!0;var n=this._theme.getColor(r.id);return n?n.toString():"transparent"}return r},a}(),go=function(){function a(){}return a.getClassName=function(r,n){return"ced-"+r+"-"+n},a.getSelector=function(r,n,h){var S=".monaco-editor ."+this.getClassName(r,h);return n&&(S=S+"."+this.getClassName(n,h)),h===3?S+="::before":h===4&&(S+="::after"),S},a}(),Lo=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),No=function(a){Lo(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.getActiveCodeEditor=function(){return null},r.prototype.openCodeEditor=function(n,h,S){return h?Promise.resolve(this.doOpenEditor(h,n)):Promise.resolve(null)},r.prototype.doOpenEditor=function(n,h){var S=this.findModel(n,h.resource);if(!S){if(h.resource){var N=h.resource.scheme;if(N===Ee.b.http||N===Ee.b.https)return Object(ge.ab)(h.resource.toString()),n}return null}var ce=h.options?h.options.selection:null;if(ce)if(typeof ce.endLineNumber=="number"&&typeof ce.endColumn=="number")n.setSelection(ce),n.revealRangeInCenter(ce,1);else{var Be={lineNumber:ce.startLineNumber,column:ce.startColumn};n.setPosition(Be),n.revealPositionInCenter(Be,1)}return n},r.prototype.findModel=function(n,h){var S=n.getModel();return S&&S.uri.toString()!==h.toString()?null:S},r}($t),Fo=e("zrhQ"),Xo=function(){function a(r,n,h,S,N){this.token=r,this.index=n,this.fontStyle=h,this.foreground=S,this.background=N}return a}();function Po(a){if(!a||!Array.isArray(a))return[];for(var r=[],n=0,h=0,S=a.length;h<S;h++){var N=a[h],ce=-1;if(typeof N.fontStyle=="string"){ce=0;for(var Be=N.fontStyle.split(" "),Ge=0,Ye=Be.length;Ge<Ye;Ge++){var _t=Be[Ge];switch(_t){case"italic":ce=ce|1;break;case"bold":ce=ce|2;break;case"underline":ce=ce|4;break}}}var Ot=null;typeof N.foreground=="string"&&(Ot=N.foreground);var Ft=null;typeof N.background=="string"&&(Ft=N.background),r[n++]=new Xo(N.token||"",h,ce,Ot,Ft)}return r}function nn(a,r){a.sort(function(Qt,ho){var So=Fn(Qt.token,ho.token);return So!==0?So:Qt.index-ho.index});for(var n=0,h="000000",S="ffffff";a.length>=1&&a[0].token==="";){var N=a.shift();N.fontStyle!==-1&&(n=N.fontStyle),N.foreground!==null&&(h=N.foreground),N.background!==null&&(S=N.background)}for(var ce=new cn,Be=0,Ge=r;Be<Ge.length;Be++){var Ye=Ge[Be];ce.getId(Ye)}for(var _t=ce.getId(h),Ot=ce.getId(S),Ft=new Hi(n,_t,Ot),jt=new fr(Ft),ro=0,to=a.length;ro<to;ro++){var Yt=a[ro];jt.insert(Yt.token,Yt.fontStyle,ce.getId(Yt.foreground),ce.getId(Yt.background))}return new Nn(ce,jt)}var vn=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,cn=function(){function a(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return a.prototype.getId=function(r){if(r===null)return 0;var n=r.match(vn);if(!n)throw new Error("Illegal value for token color: "+r);r=n[1].toUpperCase();var h=this._color2id.get(r);return h||(h=++this._lastColorId,this._color2id.set(r,h),this._id2color[h]=Fo.a.fromHex("#"+r),h)},a.prototype.getColorMap=function(){return this._id2color.slice(0)},a}(),Nn=function(){function a(r,n){this._colorMap=r,this._root=n,this._cache=new Map}return a.createFromRawTokenTheme=function(r,n){return this.createFromParsedTokenTheme(Po(r),n)},a.createFromParsedTokenTheme=function(r,n){return nn(r,n)},a.prototype.getColorMap=function(){return this._colorMap.getColorMap()},a.prototype._match=function(r){return this._root.match(r)},a.prototype.match=function(r,n){var h=this._cache.get(n);if(typeof h=="undefined"){var S=this._match(n),N=Wn(n);h=(S.metadata|N<<8)>>>0,this._cache.set(n,h)}return(h|r<<0)>>>0},a}(),hn=/\b(comment|string|regex|regexp)\b/;function Wn(a){var r=a.match(hn);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 Fn(a,r){return a<r?-1:a>r?1:0}var Hi=function(){function a(r,n,h){this._fontStyle=r,this._foreground=n,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,n,h){r!==-1&&(this._fontStyle=r),n!==0&&(this._foreground=n),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 n=r.indexOf("."),h,S;n===-1?(h=r,S=""):(h=r.substring(0,n),S=r.substring(n+1));var N=this._children.get(h);return typeof N!="undefined"?N.match(S):this._mainRule},a.prototype.insert=function(r,n,h,S){if(r===""){this._mainRule.acceptOverwrite(n,h,S);return}var N=r.indexOf("."),ce,Be;N===-1?(ce=r,Be=""):(ce=r.substring(0,N),Be=r.substring(N+1));var Ge=this._children.get(ce);typeof Ge=="undefined"&&(Ge=new a(this._mainRule.clone()),this._children.set(ce,Ge)),Ge.insert(Be,n,h,S)},a}();function Ur(a){for(var r=[],n=1,h=a.length;n<h;n++){var S=a[n];r[n]=".mtk"+n+" { color: "+S+"; }"}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 Zn,yi,Ui,Pa={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:(Zn={},Zn[bn.o]="#FFFFFE",Zn[bn.x]="#000000",Zn[bn.F]="#E5EBF1",Zn[Vn.h]="#D3D3D3",Zn[Vn.a]="#939393",Zn[bn.M]="#ADD6FF4D",Zn)},ka={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[bn.o]="#1E1E1E",yi[bn.x]="#D4D4D4",yi[bn.F]="#3A3D41",yi[Vn.h]="#404040",yi[Vn.a]="#707070",yi[bn.M]="#ADD6FF26",yi)},Fa={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:(Ui={},Ui[bn.o]="#000000",Ui[bn.x]="#FFFFFF",Ui[Vn.h]="#FFFFFF",Ui[Vn.a]="#FFFFFF",Ui)},Wa=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Mi="vs",Vr="vs-dark",mr="hc-black",Ba=hr.a.as(bn.a.ColorContribution),Ha=hr.a.as(Mn.a.ThemingContribution),la=function(){function a(r,n){this.themeData=n;var h=n.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 n in this.themeData.colors)r.set(n,Fo.a.fromHex(this.themeData.colors[n]));if(this.themeData.inherit){var h=Vs(this.themeData.base);for(var n in h.colors)r.has(n)||r.set(n,Fo.a.fromHex(h.colors[n]))}this.colors=r}return this.colors},a.prototype.getColor=function(r,n){var h=this.getColors().get(r);return h||(n!==!1?this.getDefault(r):void 0)},a.prototype.getDefault=function(r){var n=this.defaultColors[r];return n||(n=Ba.resolveDefaultColor(r,this),this.defaultColors[r]=n,n)},a.prototype.defines=function(r){return Object.prototype.hasOwnProperty.call(this.getColors(),r)},Object.defineProperty(a.prototype,"type",{get:function(){switch(this.base){case Mi:return"light";case mr:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var n=[],h=[];if(this.themeData.inherit){var S=Vs(this.themeData.base);n=S.rules,S.encodedTokensColors&&(h=S.encodedTokensColors)}n=n.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(h=this.themeData.encodedTokensColors),this._tokenTheme=Nn.createFromRawTokenTheme(n,h)}return this._tokenTheme},enumerable:!0,configurable:!0}),a.prototype.getTokenStyleMetadata=function(r,n){return},a}();function Us(a){return a===Mi||a===Vr||a===mr}function Vs(a){switch(a){case Mi:return Pa;case Vr:return ka;case mr:return Fa}}function zs(a){var r=Vs(a);return new la(a,r)}var Ua=function(a){Wa(r,a);function r(){var n=a.call(this)||this;return n._onThemeChange=n._register(new I.a),n.onThemeChange=n._onThemeChange.event,n._environment=Object.create(null),n._knownThemes=new Map,n._knownThemes.set(Mi,zs(Mi)),n._knownThemes.set(Vr,zs(Vr)),n._knownThemes.set(mr,zs(mr)),n._css="",n._globalStyleElement=null,n._styleElements=[],n.setTheme(Mi),n}return r.prototype.registerEditorContainer=function(n){return ge.N(n)?this._registerShadowDomContainer(n):this._registerRegularEditorContainer()},r.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=ge.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),Rt.a.None},r.prototype._registerShadowDomContainer=function(n){var h=this,S=ge.w(n);return S.className="monaco-colors",S.innerHTML=this._css,this._styleElements.push(S),{dispose:function(){for(var ce=0;ce<h._styleElements.length;ce++)if(h._styleElements[ce]===S){h._styleElements.splice(ce,1);return}}}},r.prototype.defineTheme=function(n,h){if(!/^[a-z0-9\-]+$/i.test(n))throw new Error("Illegal theme name!");if(!Us(h.base)&&!Us(n))throw new Error("Illegal theme base!");this._knownThemes.set(n,new la(n,h)),Us(n)&&this._knownThemes.forEach(function(S){S.base===n&&S.notifyBaseUpdated()}),this._theme&&this._theme.themeName===n&&this.setTheme(n)},r.prototype.getTheme=function(){return this._theme},r.prototype.setTheme=function(n){var h=this,S;if(this._knownThemes.has(n)?S=this._knownThemes.get(n):S=this._knownThemes.get(Mi),this._theme===S)return S.id;this._theme=S;var N=[],ce={},Be={addRule:function(Ot){ce[Ot]||(N.push(Ot),ce[Ot]=!0)}};Ha.getThemingParticipants().forEach(function(_t){return _t(S,Be,h._environment)});var Ge=S.tokenTheme,Ye=Ge.getColorMap();return Be.addRule(Ur(Ye)),this._css=N.join(`
`),this._styleElements.forEach(function(_t){return _t.innerHTML=h._css}),vt.B.setColorMap(Ye),this._onThemeChange.fire(S),S.id},r.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},r}(Rt.a),zr=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Va=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},za=function(a,r){return function(n,h){r(n,h,a)}},Kr="data-keybinding-context",Ks=function(){function a(r,n){this._id=r,this._parent=n,this._value=Object.create(null),this._value._contextId=r}return a.prototype.setValue=function(r,n){return this._value[r]!==n?(this._value[r]=n,!0):!1},a.prototype.removeValue=function(r){return r in this._value?(delete this._value[r],!0):!1},a.prototype.getValue=function(r){var n=this._value[r];return typeof n=="undefined"&&this._parent?this._parent.getValue(r):n},a}(),Gr=function(a){zr(r,a);function r(){return a.call(this,-1,null)||this}return r.prototype.setValue=function(n,h){return!1},r.prototype.removeValue=function(n){return!1},r.prototype.getValue=function(n){return},r.INSTANCE=new r,r}(Ks),Ka=function(a){zr(r,a);function r(n,h,S){var N=a.call(this,n,null)||this;return N._configurationService=h,N._values=new Map,N._listener=N._configurationService.onDidChangeConfiguration(function(ce){if(ce.source===6){var Be=Object($n.d)(N._values);N._values.clear(),S.fire(new ca(Be))}else{for(var Ge=[],Ye=0,_t=ce.affectedKeys;Ye<_t.length;Ye++){var Ot=_t[Ye],Ft="config."+Ot;N._values.has(Ft)&&(N._values.delete(Ft),Ge.push(Ft))}S.fire(new ca(Ge))}}),N}return r.prototype.dispose=function(){this._listener.dispose()},r.prototype.getValue=function(n){if(n.indexOf(r._keyPrefix)!==0)return a.prototype.getValue.call(this,n);if(this._values.has(n))return this._values.get(n);var h=n.substr(r._keyPrefix.length),S=this._configurationService.getValue(h),N=void 0;switch(typeof S){case"number":case"boolean":case"string":N=S;break}return this._values.set(n,N),N},r.prototype.setValue=function(n,h){return a.prototype.setValue.call(this,n,h)},r.prototype.removeValue=function(n){return a.prototype.removeValue.call(this,n)},r._keyPrefix="config.",r}(Ks),Ga=function(){function a(r,n,h){this._service=r,this._key=n,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}(),ca=function(){function a(r){this.keys=r}return a.prototype.affectsSome=function(r){for(var n=0,h=this.keys;n<h.length;n++){var S=h[n];if(r.has(S))return!0}return!1},a}(),Xa=function(){function a(r){this.events=r}return a.prototype.affectsSome=function(r){for(var n=0,h=this.events;n<h.length;n++){var S=h[n];if(S.affectsSome(r))return!0}return!1},a}(),ua=function(){function a(r){this._onDidChangeContext=new I.e({merge:function(h){return new Xa(h)}}),this._isDisposed=!1,this._myContextId=r}return a.prototype.createKey=function(r,n){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Ga(this,r,n)},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 n=this.getContextValuesContainer(this._myContextId),h=Qi.contextMatchesRules(n,r);return h},a.prototype.getContextKeyValue=function(r){return this._isDisposed?void 0:this.getContextValuesContainer(this._myContextId).getValue(r)},a.prototype.setContext=function(r,n){if(this._isDisposed)return;var h=this.getContextValuesContainer(this._myContextId);if(!h)return;h.setValue(r,n)&&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(n){var h=a.call(this,0)||this;h._contexts=new Map,h._toDispose=new Rt.b,h._lastContextId=0;var S=new Ka(h._myContextId,n,h._onDidChangeContext);return h._contexts.set(h._myContextId,S),h._toDispose.add(S),h}return r.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},r.prototype.getContextValuesContainer=function(n){return this._isDisposed?Gr.INSTANCE:this._contexts.get(n)||Gr.INSTANCE},r.prototype.createChildContext=function(n){if(n===void 0&&(n=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(n))),h},r.prototype.disposeContext=function(n){this._isDisposed||this._contexts.delete(n)},r=Va([za(0,xn.a)],r),r}(ua),Za=function(a){zr(r,a);function r(n,h){var S=a.call(this,n.createChildContext())||this;return S._parent=n,h&&(S._domNode=h,S._domNode.setAttribute(Kr,String(S._myContextId))),S}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 I.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),r.prototype.getContextValuesContainer=function(n){return this._isDisposed?Gr.INSTANCE:this._parent.getContextValuesContainer(n)},r.prototype.createChildContext=function(n){if(n===void 0&&(n=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(n)},r.prototype.disposeContext=function(n){if(this._isDisposed)return;this._parent.disposeContext(n)},r}(ua);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(Sn.e,function(a,r,n){a.get(Sn.c).createKey(String(r),n)});var oc=e("eizg"),$a=e("2gzu"),Ja=e("ptcw"),ha=e("4y0V"),qa=e("XSiN"),el=function(){function a(r,n,h,S,N){this.contextViewService=r,this.telemetryService=n,this.notificationService=h,this.keybindingService=S,this.themeService=N,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 n=this,h=r.getActions();if(!h.length)return;this.focusToReturn=document.activeElement;var S;this.contextViewService.showContextView({getAnchor:function(){return r.getAnchor()},canRelayout:!1,anchorAlignment:r.anchorAlignment,render:function(ce){var Be=r.getMenuClassName?r.getMenuClassName():"";Be&&(ce.className+=" "+Be),n.options.blockMouse&&(n.block=ce.appendChild(Object(ge.a)(".context-view-block")));var Ge=new Rt.b,Ye=r.actionRunner||new ci.b;return Ye.onDidBeforeRun(n.onActionRun,n,Ge),Ye.onDidRun(n.onDidActionRun,n,Ge),S=new $a.a(ce,h,{actionViewItemProvider:r.getActionViewItem,context:r.getActionsContext?r.getActionsContext():null,actionRunner:Ye,getKeyBinding:r.getKeyBinding?r.getKeyBinding:function(_t){return n.keybindingService.lookupKeybinding(_t.id)}}),Ge.add(Object(Ja.c)(S,n.themeService)),S.onDidCancel(function(){return n.contextViewService.hideContextView(!0)},null,Ge),S.onDidBlur(function(){return n.contextViewService.hideContextView(!0)},null,Ge),Object(ha.a)(window,ge.d.BLUR)(function(){n.contextViewService.hideContextView(!0)},null,Ge),Object(ha.a)(window,ge.d.MOUSE_DOWN)(function(_t){if(_t.defaultPrevented)return;var Ot=new qa.b(_t),Ft=Ot.target;if(Ot.rightButton)return;for(;Ft;){if(Ft===ce)return;Ft=Ft.parentElement}n.contextViewService.hideContextView(!0)},null,Ge),Object(Rt.e)(Ge,S)},focus:function(){S&&S.focus(!!r.autoSelectFirstItem)},onHide:function(ce){r.onHide&&r.onHide(!!ce),n.block&&(Object(ge.R)(n.block),n.block=null),n.focusToReturn&&n.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(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ol=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},pr=function(a,r){return function(n,h){r(n,h,a)}},nl=function(a){tl(r,a);function r(n,h,S,N,ce){var Be=a.call(this)||this;return Be._onDidContextMenu=Be._register(new I.a),Be.contextMenuHandler=new el(S,n,h,N,ce),Be}return r.prototype.configure=function(n){this.contextMenuHandler.configure(n)},r.prototype.showContextMenu=function(n){this.contextMenuHandler.showContextMenu(n),this._onDidContextMenu.fire()},r=ol([pr(0,Gs.a),pr(1,Un.a),pr(2,Xn.b),pr(3,ii.a),pr(4,Mn.c)],r),r}(Rt.a),nc=e("TT2d"),il=e("nuFA"),rl=e("CjF5"),sl=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}();function fa(a,r,n){var h=n.offset+n.size;return n.position===0?r<=a-h?h:r<=n.offset?n.offset-r:Math.max(a-r,0):r<=n.offset?n.offset-r:r<=a-h?h:0}var al=function(a){sl(r,a);function r(n){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=ge.a(".context-view"),ge.J(h.view),h.setContainer(n),h._register(Object(Rt.h)(function(){return h.setContainer(null)})),h}return r.prototype.setContainer=function(n){var h=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),n){this.container=n,this.container.appendChild(this.view);var S=new Rt.b;r.BUBBLE_UP_EVENTS.forEach(function(N){S.add(ge.o(h.container,N,function(ce){h.onDOMEvent(ce,!1)}))}),r.BUBBLE_DOWN_EVENTS.forEach(function(N){S.add(ge.o(h.container,N,function(ce){h.onDOMEvent(ce,!0)},!0))}),this.toDisposeOnSetContainer=S}},r.prototype.show=function(n){this.isVisible()&&this.hide(),ge.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",ge.X(this.view),this.toDisposeOnClean=n.render(this.view)||Rt.a.None,this.delegate=n,this.doLayout(),this.delegate.focus&&this.delegate.focus()},r.prototype.layout=function(){if(!this.isVisible())return;if(this.delegate.canRelayout===!1&&!(gt.c&&rl.a.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()},r.prototype.doLayout=function(){if(!this.isVisible())return;var n=this.delegate.getAnchor(),h;if(ge.L(n)){var S=ge.C(n);h={top:S.top,left:S.left,width:S.width,height:S.height}}else h={top:n.y,left:n.x,width:n.width||1,height:n.height||2};var N=ge.H(this.view),ce=ge.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},_t;Ge===0?_t={offset:h.left,size:0,position:0}:_t={offset:h.left+h.width,size:0,position:1};var Ot=fa(window.innerHeight,ce,Ye)+window.pageYOffset;il.a.intersects({start:Ot,end:Ot+ce},{start:Ye.offset,end:Ye.offset+Ye.size})&&(_t.size=h.width,Ge===1&&(_t.offset=h.left));var Ft=fa(window.innerWidth,N,_t);ge.Q(this.view,"top","bottom","left","right"),ge.f(this.view,Be===0?"bottom":"top"),ge.f(this.view,Ge===0?"left":"right");var jt=ge.C(this.container);this.view.style.top=Ot-jt.top+"px",this.view.style.left=Ft-jt.left+"px",this.view.style.width="initial"},r.prototype.hide=function(n){var h=this.delegate;this.delegate=null,(h==null?void 0:h.onHide)&&h.onHide(n),this.toDisposeOnClean.dispose(),ge.J(this.view)},r.prototype.isVisible=function(){return!!this.delegate},r.prototype.onDOMEvent=function(n,h){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(n,document.activeElement):h&&!ge.K(n.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),ma=Object(In.c)("layoutService"),ll=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),dl=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},cl=function(a,r){return function(n,h){r(n,h,a)}},ul=function(a){ll(r,a);function r(n){var h=a.call(this)||this;return h.layoutService=n,h.contextView=h._register(new al(n.container)),h.layout(),h._register(n.onLayout(function(){return h.layout()})),h}return r.prototype.setContainer=function(n){this.contextView.setContainer(n)},r.prototype.showContextView=function(n){this.contextView.show(n)},r.prototype.layout=function(){this.contextView.layout()},r.prototype.hideContextView=function(n){this.contextView.hide(n)},r=dl([cl(0,ma)],r),r}(Rt.a),hl=Object(In.c)("dialogService"),Xs=e("vl9R");function fl(a){return{data:a,incoming:Object.create(null),outgoing:Object.create(null)}}var ml=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(n){Object(bt.f)(n.value.outgoing)&&r.push(n.value)}),r},a.prototype.insertEdge=function(r,n){var h=this.lookupOrInsertNode(r),S=this.lookupOrInsertNode(n);h.outgoing[this._hashFn(n)]=S,S.incoming[this._hashFn(r)]=h},a.prototype.removeNode=function(r){var n=this._hashFn(r);delete this._nodes[n],Object(Xs.c)(this._nodes,function(h){delete h.value.outgoing[n],delete h.value.incoming[n]})},a.prototype.lookupOrInsertNode=function(r){var n=this._hashFn(r),h=this._nodes[n];return h||(h=fl(r),this._nodes[n]=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(n){r.push(n.key+", (incoming)["+Object.keys(n.value.incoming).join(", ")+"], (outgoing)["+Object.keys(n.value.outgoing).join(",")+"]")}),r.join(`
`)},a}(),gr=e("r0BQ"),pa=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Ys=function(){for(var a=0,r=0,n=arguments.length;r<n;r++)a+=arguments[r].length;for(var h=Array(a),S=0,r=0;r<n;r++)for(var N=arguments[r],ce=0,Be=N.length;ce<Be;ce++,S++)h[S]=N[ce];return h},ga=!1,pl=typeof Proxy=="function",va=function(a){pa(r,a);function r(n){var h=a.call(this,"cyclic dependency between services")||this;return h.message=n.toString(),h}return r}(Error),ya=function(){function a(r,n,h){r===void 0&&(r=new wi.a),n===void 0&&(n=!1),this._services=r,this._strict=n,this._parent=h,this._services.set(In.a,this)}return a.prototype.createChild=function(r){return new a(r,this._strict,this)},a.prototype.invokeFunction=function(r){for(var n=this,h=[],S=1;S<arguments.length;S++)h[S-1]=arguments[S];var N=Zs.traceInvocation(r),ce=!1;try{var Be={get:function(Ye,_t){if(ce)throw Object(Ct.c)("service accessor is only valid during the invocation of its target method");var Ot=n._getOrCreateServiceInstance(Ye,N);if(!Ot&&_t!==In.d)throw new Error("[invokeFunction] unknown service '"+Ye+"'");return Ot}};return r.apply(void 0,Ys([Be],h))}finally{ce=!0,N.stop()}},a.prototype.createInstance=function(r){for(var n=[],h=1;h<arguments.length;h++)n[h-1]=arguments[h];var S,N;return r instanceof gr.a?(S=Zs.traceCreation(r.ctor),N=this._createInstance(r.ctor,r.staticArguments.concat(n),S)):(S=Zs.traceCreation(r),N=this._createInstance(r,n,S)),S.stop(),N},a.prototype._createInstance=function(r,n,h){n===void 0&&(n=[]);for(var S=In.b.getServiceDependencies(r).sort(function(Ft,jt){return Ft.index-jt.index}),N=[],ce=0,Be=S;ce<Be.length;ce++){var Ge=Be[ce],Ye=this._getOrCreateServiceInstance(Ge.id,h);if(!Ye&&this._strict&&!Ge.optional)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+Ge.id+".");N.push(Ye)}var _t=S.length>0?S[0].index:n.length;if(n.length!==_t){console.warn("[createInstance] First service dependency of "+r.name+" at position "+(_t+1)+" conflicts with "+n.length+" static arguments");var Ot=_t-n.length;Ot>0?n=n.concat(new Array(Ot)):n=n.slice(0,_t)}return new(r.bind.apply(r,Ys([void 0],Ys(n,N))))},a.prototype._setServiceInstance=function(r,n){if(this._services.get(r)instanceof gr.a)this._services.set(r,n);else if(this._parent)this._parent._setServiceInstance(r,n);else throw new Error("illegalState - setting UNKNOWN service instance")},a.prototype._getServiceInstanceOrDescriptor=function(r){var n=this._services.get(r);return!n&&this._parent?this._parent._getServiceInstanceOrDescriptor(r):n},a.prototype._getOrCreateServiceInstance=function(r,n){var h=this._getServiceInstanceOrDescriptor(r);return h instanceof gr.a?this._createAndCacheServiceInstance(r,h,n.branch(r,!0)):(n.branch(r,!1),h)},a.prototype._createAndCacheServiceInstance=function(r,n,h){for(var S=new ml(function(ho){return ho.id.toString()}),N=0,ce=[{id:r,desc:n,_trace:h}];ce.length;){var Be=ce.pop();if(S.lookupOrInsertNode(Be),N++>150)throw new va(S);for(var Ge=0,Ye=In.b.getServiceDependencies(Be.desc.ctor);Ge<Ye.length;Ge++){var _t=Ye[Ge],Ot=this._getServiceInstanceOrDescriptor(_t.id);if(!Ot&&!_t.optional&&console.warn("[createInstance] "+r+" depends on "+_t.id+" which is NOT registered."),Ot instanceof gr.a){var Ft={id:_t.id,desc:Ot,_trace:Be._trace.branch(_t.id,!0)};S.insertEdge(Be,Ft),ce.push(Ft)}}}for(;;){var jt=S.roots();if(jt.length===0){if(!S.isEmpty())throw new va(S);break}for(var ro=0,to=jt;ro<to.length;ro++){var Yt=to[ro].data,Qt=this._createServiceInstanceWithOwner(Yt.id,Yt.desc.ctor,Yt.desc.staticArguments,Yt.desc.supportsDelayedInstantiation,Yt._trace);this._setServiceInstance(Yt.id,Qt),S.removeNode(Yt)}}return this._getServiceInstanceOrDescriptor(r)},a.prototype._createServiceInstanceWithOwner=function(r,n,h,S,N){if(h===void 0&&(h=[]),this._services.get(r)instanceof gr.a)return this._createServiceInstance(n,h,S,N);if(this._parent)return this._parent._createServiceInstanceWithOwner(r,n,h,S,N);throw new Error("illegalState - creating UNKNOWN service instance "+n.name)},a.prototype._createServiceInstance=function(r,n,h,S){var N=this;if(n===void 0&&(n=[]),!h||!pl)return this._createInstance(r,n,S);var ce=new ut.b(function(){return N._createInstance(r,n,S)});return new Proxy(Object.create(null),{get:function(Ge,Ye){if(Ye in Ge)return Ge[Ye];var _t=ce.getValue(),Ot=_t[Ye];return typeof Ot!="function"||(Ot=Ot.bind(_t),Ge[Ye]=Ot),Ot},set:function(Ge,Ye,_t){return ce.getValue()[Ye]=_t,!0}})},a}(),Zs=function(){function a(r,n){this.type=r,this.name=n,this._start=Date.now(),this._dep=[]}return a.traceInvocation=function(r){return ga?new a(1,r.name||r.toString().substring(0,42).replace(/\n/g,"")):a._None},a.traceCreation=function(r){return ga?new a(0,r.name):a._None},a.prototype.branch=function(r,n){var h=new a(2,r.toString());return this._dep.push([r,n,h]),h},a.prototype.stop=function(){var r=Date.now()-this._start;a._totals+=r;var n=!1;function h(N,ce){for(var Be=[],Ge=new Array(N+1).join(" "),Ye=0,_t=ce._dep;Ye<_t.length;Ye++){var Ot=_t[Ye],Ft=Ot[0],jt=Ot[1],ro=Ot[2];if(jt&&ro){n=!0,Be.push(Ge+"CREATES -> "+Ft);var to=h(N+1,ro);to&&Be.push(to)}else Be.push(Ge+"uses -> "+Ft)}return Be.join(`
`)}var S=[(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||n)&&console.log(S.join(`
`))},a._None=new(function(r){pa(n,r);function n(){return r.call(this,-1,null)||this}return n.prototype.stop=function(){},n.prototype.branch=function(){return this},n}(a)),a._totals=0,a}(),gl=e("R8sh"),ba=e("k9mg"),ti=e("tADe"),Di;(function(a){function r(S,N,ce){return S[N]?S[N][ce]:void 0}a.get=r;function n(S,N,ce,Be){S[N]||(S[N]=Object.create(null)),S[N][ce]=Be}a.set=n;function h(S,N,ce){return S[N]&&S[N][ce]?(delete S[N][ce],Object(bt.f)(S[N])&&delete S[N],!0):!1}a.remove=h})(Di||(Di={}));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 n=0,h=r;n<h.length;n++){var S=h[n],N=S.toString(),ce=this._data[N];ce&&this._substract(ce);var Be=this._resourceStats(S);this._add(Be),this._data[N]=Be}},a.prototype._resourceStats=function(r){var n={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 n;for(var h=0,S=this._service.read({resource:r});h<S.length;h++){var N=S[h].severity;N===ti.c.Error?n.errors+=1:N===ti.c.Warning?n.warnings+=1:N===ti.c.Info?n.infos+=1:n.unknowns+=1}return n},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 I.a,this._onMarkerChangedEvent=I.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,n){for(var h=0,S=n||[];h<S.length;h++){var N=S[h];this.changeOne(r,N,[])}},a.prototype.changeOne=function(r,n,h){if(Object(lt.p)(h)){var S=Di.remove(this._byResource,n.toString(),r),N=Di.remove(this._byOwner,r,n.toString());if(S!==N)throw new Error("invalid marker service state");S&&N&&this._onMarkerChanged.fire([n])}else{for(var ce=[],Be=0,Ge=h;Be<Ge.length;Be++){var Ye=Ge[Be],_t=a._toMarker(r,n,Ye);_t&&ce.push(_t)}Di.set(this._byResource,n.toString(),r,ce),Di.set(this._byOwner,r,n.toString(),ce),this._onMarkerChanged.fire([n])}},a._toMarker=function(r,n,h){var S=h.code,N=h.severity,ce=h.message,Be=h.source,Ge=h.startLineNumber,Ye=h.startColumn,_t=h.endLineNumber,Ot=h.endColumn,Ft=h.relatedInformation,jt=h.tags;return ce?(Ge=Ge>0?Ge:1,Ye=Ye>0?Ye:1,_t=_t>=Ge?_t:Ge,Ot=Ot>0?Ot:Ye,{resource:n,owner:r,code:S,severity:N,message:ce,source:Be,startLineNumber:Ge,startColumn:Ye,endLineNumber:_t,endColumn:Ot,relatedInformation:Ft,tags:jt}):void 0},a.prototype.read=function(r){r===void 0&&(r=Object.create(null));var n=r.owner,h=r.resource,S=r.severities,N=r.take;if((!N||N<0)&&(N=-1),n&&h){var ce=Di.get(this._byResource,h.toString(),n);if(ce){for(var Be=[],Ge=0,Ye=ce;Ge<Ye.length;Ge++){var _t=Ye[Ge];if(a._accept(_t,S)){var Ot=Be.push(_t);if(N>0&&Ot===N)break}}return Be}else return[]}else if(!n&&!h){var Be=[];for(var Ft in this._byResource)for(var jt in this._byResource[Ft])for(var ro=0,to=this._byResource[Ft][jt];ro<to.length;ro++){var ce=to[ro];if(a._accept(ce,S)){var Ot=Be.push(ce);if(N>0&&Ot===N)return Be}}return Be}else{var Yt=n?this._byOwner[n]:h?this._byResource[h.toString()]:void 0;if(!Yt)return[];var Be=[];for(var Qt in Yt)for(var ho=0,So=Yt[Qt];ho<So.length;ho++){var ce=So[ho];if(a._accept(ce,S)){var Ot=Be.push(ce);if(N>0&&Ot===N)return Be}}return Be}},a._accept=function(r,n){return n===void 0||(n&r.severity)===r.severity},a._debouncer=function(r,n){r||(a._dedupeMap=Object.create(null),r=[]);for(var h=0,S=n;h<S.length;h++){var N=S[h];a._dedupeMap[N.toString()]===void 0&&(a._dedupeMap[N.toString()]=!0,r.push(N))}return r},a}(),Ca=e("A+jI"),Ea=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Qs=function(a,r){return function(n,h){r(n,h,a)}},bl=function(){function a(r){this._commandService=r}return a.prototype.createMenu=function(r,n){return new Cl(r,this._commandService,n)},a=Ea([Qs(0,Q.b)],a),a}(),Cl=function(){function a(r,n,h){var S=this;this._id=r,this._commandService=n,this._contextKeyService=h,this._onDidChange=new I.a,this._dispoables=new Rt.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(I.b.debounce(I.b.filter(Kn.c.onDidChangeMenu,function(N){return N===S._id}),function(){},50)(this._build,this)),this._dispoables.add(I.b.debounce(this._contextKeyService.onDidChangeContext,function(N,ce){return N||ce.affectsSome(S._contextKeys)},50)(function(N){return N&&S._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=Kn.c.getMenuItems(this._id),n;r.sort(a._compareMenuItems);for(var h=0,S=r;h<S.length;h++){var N=S[h],ce=N.group||"";(!n||n[0]!==ce)&&(n=[ce,[]],this._menuGroups.push(n)),n[1].push(N),a._fillInKbExprKeys(N.when,this._contextKeys),Object(Kn.e)(N)&&N.command.precondition&&a._fillInKbExprKeys(N.command.precondition,this._contextKeys),Object(Kn.e)(N)&&N.command.toggled&&a._fillInKbExprKeys(N.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},a.prototype.getActions=function(r){for(var n=[],h=0,S=this._menuGroups;h<S.length;h++){for(var N=S[h],ce=N[0],Be=N[1],Ge=[],Ye=0,_t=Be;Ye<_t.length;Ye++){var Ot=_t[Ye];if(this._contextKeyService.contextMatchesRules(Ot.when)){var Ft=Object(Kn.e)(Ot)?new Kn.b(Ot.command,Ot.alt,r,this._contextKeyService,this._commandService):new Kn.d(Ot);Ge.push(Ft)}}Ge.length>0&&n.push([ce,Ge])}return n},a._fillInKbExprKeys=function(r,n){if(r)for(var h=0,S=r.keys();h<S.length;h++){var N=S[h];n.add(N)}},a._compareMenuItems=function(r,n){var h=r.group,S=n.group;if(h!==S){if(h){if(!S)return-1}else return 1;if(h==="navigation")return-1;if(S==="navigation")return 1;var N=h.localeCompare(S);if(N!==0)return N}var ce=r.order||0,Be=n.order||0;return ce<Be?-1:ce>Be?1:a._compareTitles(Object(Kn.e)(r)?r.command.title:r.title,Object(Kn.e)(n)?n.command.title:n.title)},a._compareTitles=function(r,n){var h=typeof r=="string"?r:r.value,S=typeof n=="string"?n:n.value;return h.localeCompare(S)},a=Ea([Qs(1,Q.b),Qs(2,Sn.c)],a),a}(),El=e("79sc"),wa=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),wl=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},_a=function(a,r){return function(n,h){r(n,h,a)}};function vr(a){return a.toString()}var _l=function(a){wa(r,a);function r(n){var h=a.call(this)||this;return h.model=n,h._markersData=new Map,h._register(Object(Rt.h)(function(){h.model.deltaDecorations(Object($n.d)(h._markersData),[]),h._markersData.clear()})),h}return r.prototype.update=function(n,h){var S=Object($n.d)(this._markersData);this._markersData.clear();for(var N=this.model.deltaDecorations(S,h),ce=0;ce<N.length;ce++)this._markersData.set(N[ce],n[ce])},r.prototype.getMarker=function(n){return this._markersData.get(n.id)},r}(Rt.a),Sl=function(a){wa(r,a);function r(n,h){var S=a.call(this)||this;return S._markerService=h,S._onDidChangeMarker=S._register(new I.a),S._markerDecorations=new Map,n.getModels().forEach(function(N){return S._onModelAdded(N)}),S._register(n.onModelAdded(S._onModelAdded,S)),S._register(n.onModelRemoved(S._onModelRemoved,S)),S._register(S._markerService.onMarkerChanged(S._handleMarkerChange,S)),S}return r.prototype.dispose=function(){a.prototype.dispose.call(this),this._markerDecorations.forEach(function(n){return n.dispose()}),this._markerDecorations.clear()},r.prototype.getMarker=function(n,h){var S=this._markerDecorations.get(vr(n.uri));return S?Object(bt.o)(S.getMarker(h)):null},r.prototype._handleMarkerChange=function(n){var h=this;n.forEach(function(S){var N=h._markerDecorations.get(vr(S));N&&h._updateDecorations(N)})},r.prototype._onModelAdded=function(n){var h=new _l(n);this._markerDecorations.set(vr(n.uri),h),this._updateDecorations(h)},r.prototype._onModelRemoved=function(n){var h=this,S=this._markerDecorations.get(vr(n.uri));S&&(S.dispose(),this._markerDecorations.delete(vr(n.uri))),(n.uri.scheme===Ee.b.inMemory||n.uri.scheme===Ee.b.internal||n.uri.scheme===Ee.b.vscode)&&(this._markerService&&this._markerService.read({resource:n.uri}).map(function(N){return N.owner}).forEach(function(N){return h._markerService.remove(N,[n.uri])}))},r.prototype._updateDecorations=function(n){var h=this,S=this._markerService.read({resource:n.model.uri,take:500}),N=S.map(function(ce){return{range:h._createDecorationRange(n.model,ce),options:h._createDecorationOption(ce)}});n.update(S,N),this._onDidChangeMarker.fire(n.model)},r.prototype._createDecorationRange=function(n,h){var S=H.a.lift(h);if(h.severity===ti.c.Hint&&!this._hasMarkerTag(h,1)&&!this._hasMarkerTag(h,2)&&(S=S.setEndPosition(S.startLineNumber,S.startColumn+2)),S=n.validateRange(S),S.isEmpty()){var N=n.getWordAtPosition(S.getStartPosition());if(N)S=new H.a(S.startLineNumber,N.startColumn,S.endLineNumber,N.endColumn);else{var ce=n.getLineLastNonWhitespaceColumn(S.startLineNumber)||n.getLineMaxColumn(S.startLineNumber);ce===1||(S.endColumn>=ce?S=new H.a(S.startLineNumber,ce-1,S.endLineNumber,ce):S=new H.a(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn+1))}}else if(h.endColumn===Number.MAX_VALUE&&h.startColumn===1&&S.startLineNumber===S.endLineNumber){var Be=n.getLineFirstNonWhitespaceColumn(h.startLineNumber);Be<S.endColumn&&(S=new H.a(S.startLineNumber,Be,S.endLineNumber,S.endColumn),h.startColumn=Be)}return S},r.prototype._createDecorationOption=function(n){var h,S=void 0,N,ce=void 0,Be;switch(n.severity){case ti.c.Hint:this._hasMarkerTag(n,2)?h=void 0:this._hasMarkerTag(n,1)?h="squiggly-unnecessary":h="squiggly-hint",N=0;break;case ti.c.Warning:h="squiggly-warning",S=Object(Mn.f)(Vn.r),N=20,Be={color:Object(Mn.f)(bn.Jb),position:ft.c.Inline};break;case ti.c.Info:h="squiggly-info",S=Object(Mn.f)(Vn.q),N=10;break;case ti.c.Error:default:h="squiggly-error",S=Object(Mn.f)(Vn.p),N=30,Be={color:Object(Mn.f)(bn.Gb),position:ft.c.Inline};break}return n.tags&&(n.tags.indexOf(1)!==-1&&(ce="squiggly-inline-unnecessary"),n.tags.indexOf(2)!==-1&&(ce="squiggly-inline-deprecated")),{stickiness:1,className:h,showIfCollapsed:!0,overviewRuler:{color:S,position:ft.d.Right},minimap:Be,zIndex:N,inlineClassName:ce}},r.prototype._hasMarkerTag=function(n,h){return n.tags?n.tags.indexOf(h)>=0:!1},r=wl([_a(0,xe.a),_a(1,ti.b)],r),r}(Rt.a),Ll=e("9fML"),Ml=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Dl=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Sa=function(a,r){return function(n,h){r(n,h,a)}},Ol=function(a){Ml(r,a);function r(n,h){var S=a.call(this)||this;S._contextKeyService=n,S._configurationService=h,S._accessibilitySupport=0,S._onDidChangeScreenReaderOptimized=new I.a,S._accessibilityModeEnabledContext=mi.a.bindTo(S._contextKeyService);var N=function(){return S._accessibilityModeEnabledContext.set(S.isScreenReaderOptimized())};return S._register(S._configurationService.onDidChangeConfiguration(function(ce){ce.affectsConfiguration("editor.accessibilitySupport")&&(N(),S._onDidChangeScreenReaderOptimized.fire())})),N(),S.onDidChangeScreenReaderOptimized(function(){return N()}),S}return Object.defineProperty(r.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),r.prototype.isScreenReaderOptimized=function(){var n=this._configurationService.getValue("editor.accessibilitySupport");return n==="on"||n==="auto"&&this._accessibilitySupport===2},r.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},r=Dl([Sa(0,Sn.c),Sa(1,xn.a)],r),r}(Rt.a),Tl=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),sn;(function(a){var r=new wi.a,n=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=n;var h=[];function S(Be,Ge){var Ye=new n(Be,Ge);return h.push(Ye),Ye}function N(Be){for(var Ge=new wi.a,Ye=0,_t=Object(Ll.a)();Ye<_t.length;Ye++){var Ot=_t[Ye],Ft=Ot[0],jt=Ot[1];Ge.set(Ft,jt)}for(var ro in Be)Be.hasOwnProperty(ro)&&Ge.set(Object(In.c)(ro),Be[ro]);h.forEach(function(Yt){return Ge.set(Yt.id,Yt.get(Be))});var to=new ya(Ge,!0);return Ge.set(In.a,to),[Ge,to]}a.init=N,a.instantiationService=S(In.a,function(){return new ya(r,!0)});var ce=new Dr;a.configurationService=S(xn.a,function(){return ce}),a.resourceConfigurationService=S(Ne.a,function(){return new us(ce)}),a.resourcePropertiesService=S(Ne.b,function(){return new hs(ce)}),a.contextService=S(Sr.a,function(){return new ms}),a.labelService=S(gl.a,function(){return new Or}),a.telemetryService=S(Gs.a,function(){return new fs}),a.dialogService=S(hl,function(){return new ls}),a.notificationService=S(Un.a,function(){return new ds}),a.markerService=S(ti.b,function(){return new yl}),a.modeService=S(Ps.a,function(Be){return new Bs}),a.standaloneThemeService=S(Si.a,function(){return new Ua}),a.logService=S(dt.a,function(){return new dt.c}),a.modelService=S(xe.a,function(Be){return new t(a.configurationService.get(Be),a.resourcePropertiesService.get(Be),a.standaloneThemeService.get(Be),a.logService.get(Be))}),a.markerDecorationsService=S(El.a,function(Be){return new Sl(a.modelService.get(Be),a.markerService.get(Be))}),a.codeEditorService=S(me.a,function(Be){return new No(a.standaloneThemeService.get(Be))}),a.editorProgressService=S(Ii.a,function(){return new ra}),a.storageService=S(Ca.a,function(){return new Ca.b}),a.editorWorkerService=S(at.a,function(Be){return new He(a.modelService.get(Be),a.resourceConfigurationService.get(Be),a.logService.get(Be))})})(sn||(sn={}));var xl=function(a){Tl(r,a);function r(n,h){var S=a.call(this)||this,N=sn.init(h),ce=N[0],Be=N[1];S._serviceCollection=ce,S._instantiationService=Be;var Ge=S.get(xn.a),Ye=S.get(Un.a),_t=S.get(Gs.a),Ot=S.get(Mn.c),Ft=function(So,To){var Io=null;return h&&(Io=h[So.toString()]),Io||(Io=To()),S._serviceCollection.set(So,Io),Io},jt=Ft(Sn.c,function(){return S._register(new Ya(Ge))});Ft(mi.b,function(){return new Ol(jt,Ge)}),Ft(ba.a,function(){return new ba.b(Ot)});var ro=Ft(Q.b,function(){return new cs(S._instantiationService)}),to=Ft(ii.a,function(){return S._register(new Lr(jt,ro,_t,Ye,n))}),Yt=Ft(ma,function(){return new Tr(n)}),Qt=Ft(Xn.b,function(){return S._register(new ul(Yt))});return Ft(Xn.a,function(){var ho=new nl(_t,Ye,Qt,to,Ot);return ho.configure({blockMouse:!1}),S._register(ho)}),Ft(Kn.a,function(){return new bl(ro)}),Ft(js.a,function(){return new sa(sn.modelService.get(xe.a))}),S}return r.prototype.get=function(n){var h=this._serviceCollection.get(n);if(!h)throw new Error("Missing service "+n);return h},r.prototype.set=function(n,h){this._serviceCollection.set(n,h)},r.prototype.has=function(n){return this._serviceCollection.has(n)},r}(Rt.a);function La(a,r,n){var h=new xl(a,r),S=null;h.has(tt.a)||(S=new as(sn.modelService.get()),h.set(tt.a,S)),h.has(C.a)||h.set(C.a,new it(h.get(me.a),h.get(Q.b)));var N=n(h);return S&&S.setEditor(N),N}function Al(a,r,n){return La(a,n||{},function(h){return new lr(a,r,h,h.get(In.a),h.get(me.a),h.get(Q.b),h.get(Sn.c),h.get(ii.a),h.get(Xn.b),h.get(Si.a),h.get(Un.a),h.get(xn.a),h.get(mi.b))})}function Rl(a){return sn.codeEditorService.get().onCodeEditorAdd(function(r){a(r)})}function Il(a,r,n){return La(a,n||{},function(h){return new Ns(a,r,h,h.get(In.a),h.get(Sn.c),h.get(ii.a),h.get(Xn.b),h.get(at.a),h.get(me.a),h.get(Si.a),h.get(Un.a),h.get(xn.a),h.get(Xn.a),h.get(Ii.a),null)})}function Nl(a,r){return new ao(a,r)}function Ma(a,r,n){return sn.modelService.get().createModel(a,r,n)}function jl(a,r,n){if(a=a||"",!r){var h=a.indexOf(`
`),S=a;return h!==-1&&(S=a.substring(0,h)),Ma(a,sn.modeService.get().createByFilepathOrFirstLine(n||null,S),n)}return Ma(a,sn.modeService.get().create(r),n)}function Pl(a,r){sn.modelService.get().setMode(a,sn.modeService.get().create(r))}function kl(a,r,n){a&&sn.markerService.get().changeOne(r,a.uri,n)}function Fl(a){return sn.markerService.get().read(a)}function Wl(a){return sn.modelService.get().getModel(a)}function Bl(){return sn.modelService.get().getModels()}function Hl(a){return sn.modelService.get().onModelAdded(a)}function Ul(a){return sn.modelService.get().onModelRemoved(a)}function Vl(a){return sn.modelService.get().onModelModeChanged(function(r){a({model:r.model,oldLanguage:r.oldModeId})})}function zl(a){return Ze(sn.modelService.get(),a)}function Kl(a,r){return zi.colorizeElement(sn.standaloneThemeService.get(),sn.modeService.get(),a,r)}function Gl(a,r,n){return zi.colorize(sn.modeService.get(),a,r,n)}function Xl(a,r,n){return n===void 0&&(n=4),zi.colorizeModelLine(a,r,n)}function Yl(a){var r=vt.B.get(a);return r||{getInitialState:function(){return At.c},tokenize:function(h,S,N){return Object(At.d)(a,h,S,N)}}}function Zl(a,r){var n=sn.modeService.get();n.triggerMode(r);for(var h=Yl(r),S=a.split(/\r\n|\r|\n/),N=[],ce=h.getInitialState(),Be=0,Ge=S.length;Be<Ge;Be++){var Ye=S[Be],_t=h.tokenize(Ye,ce,0);N[Be]=_t.tokens,ce=_t.endState}return N}function Ql(a,r){sn.standaloneThemeService.get().defineTheme(a,r)}function $l(a){sn.standaloneThemeService.get().setTheme(a)}function Jl(){Object(Ti.b)()}function ql(){return{create:Al,onDidCreateEditor:Rl,createDiffEditor:Il,createDiffNavigator:Nl,createModel:jl,setModelLanguage:Pl,setModelMarkers:kl,getModelMarkers:Fl,getModels:Bl,getModel:Wl,onDidCreateModel:Hl,onWillDisposeModel:Ul,onDidChangeModelLanguage:Vl,createWebWorker:zl,colorizeElement:Kl,colorize:Gl,colorizeModelLine:Xl,tokenize:Zl,defineTheme:Ql,setTheme:$l,remeasureFonts:Jl,AccessibilitySupport:y,ContentWidgetPositionPreference:p,CursorChangeReason:c,DefaultEndOfLine:s,EditorAutoIndentStrategy:d,EditorOption:m,EndOfLinePreference:E,EndOfLineSequence:L,MinimapPosition:ie,MouseTargetType:W,OverlayWidgetPositionPreference:B,OverviewRulerLane:le,RenderLineNumbersType:Ce,RenderMinimap:Me,ScrollbarVisibility:Fe,ScrollType:Te,TextEditorCursorBlinkingStyle:ae,TextEditorCursorStyle:q,TrackedRangeStickiness:ue,WrappingIndent:X,ConfigurationChangedEvent:T.a,BareFontInfo:so.a,FontInfo:so.b,TextModelResolvedOptions:ft.e,FindMatch:ft.b,EditorType:Pt.a,EditorOptions:T.e}}function ed(a,r){if(!r)return!1;if(!Array.isArray(r))return!1;for(var n=0,h=r;n<h.length;n++){var S=h[n];if(!a(S))return!1}return!0}function Da(a,r){return typeof a=="boolean"?a:r}function Oa(a,r){return typeof a=="string"?a:r}function td(a){for(var r={},n=0,h=a;n<h.length;n++){var S=h[n];r[S]=!0}return r}function Ta(a,r){r===void 0&&(r=!1),r&&(a=a.map(function(h){return h.toLowerCase()}));var n=td(a);return r?function(h){return n[h.toLowerCase()]!==void 0&&n.hasOwnProperty(h.toLowerCase())}:function(h){return n[h]!==void 0&&n.hasOwnProperty(h)}}function $s(a,r){for(var n=0;r.indexOf("@")>=0&&n<5;)n++,r=r.replace(/@(\w+)/g,function(h,S){var N="";if(typeof a[S]=="string")N=a[S];else if(a[S]&&a[S]instanceof RegExp)N=a[S].source;else throw a[S]===void 0?Do(a,"language definition does not contain attribute '"+S+"', used at: "+r):Do(a,"attribute reference '"+S+"' must be a string, used at: "+r);return wo(N)?"":"(?:"+N+")"});return new RegExp(r,a.ignoreCase?"i":"")}function od(a,r,n,h){if(h<0)return a;if(h<r.length)return r[h];if(h>=100){h=h-100;var S=n.split(".");if(S.unshift(n),h<S.length)return S[h]}return null}function nd(a,r,n,h){var S=-1,N=n,ce=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);ce&&(ce[3]&&(S=parseInt(ce[3]),ce[2]&&(S=S+100)),N=ce[4]);var Be="~",Ge=N;!N||N.length===0?(Be="!=",Ge=""):/^\w*$/.test(Ge)?Be="==":(ce=N.match(/^(@|!@|~|!~|==|!=)(.*)$/),ce&&(Be=ce[1],Ge=ce[2]));var Ye;if((Be==="~"||Be==="!~")&&/^(\w|\|)*$/.test(Ge)){var _t=Ta(Ge.split("|"),a.ignoreCase);Ye=function(Qt){return Be==="~"?_t(Qt):!_t(Qt)}}else if(Be==="@"||Be==="!@"){var Ot=a[Ge];if(!Ot)throw Do(a,"the @ match target '"+Ge+"' is not defined, in rule: "+r);if(!ed(function(Yt){return typeof Yt=="string"},Ot))throw Do(a,"the @ match target '"+Ge+"' must be an array of strings, in rule: "+r);var Ft=Ta(Ot,a.ignoreCase);Ye=function(Qt){return Be==="@"?Ft(Qt):!Ft(Qt)}}else if(Be==="~"||Be==="!~")if(Ge.indexOf("$")<0){var jt=$s(a,"^"+Ge+"$");Ye=function(Qt){return Be==="~"?jt.test(Qt):!jt.test(Qt)}}else Ye=function(Qt,ho,So,To){var Io=$s(a,"^"+xo(a,Ge,ho,So,To)+"$");return Io.test(Qt)};else if(Ge.indexOf("$")<0){var ro=_o(a,Ge);Ye=function(Qt){return Be==="=="?Qt===ro:Qt!==ro}}else{var to=_o(a,Ge);Ye=function(Qt,ho,So,To,Io){var ko=xo(a,to,ho,So,To);return Be==="=="?Qt===ko:Qt!==ko}}return S===-1?{name:n,value:h,test:function(Qt,ho,So,To){return Ye(Qt,Qt,ho,So,To)}}:{name:n,value:h,test:function(Qt,ho,So,To){var Io=od(Qt,ho,So,S);return Ye(Io||"",Qt,ho,So,To)}}}function Js(a,r,n){if(n){if(typeof n=="string")return n;if(n.token||n.token===""){if(typeof n.token!="string")throw Do(a,"a 'token' attribute must be of type string, in rule: "+r);var h={token:n.token};if(n.token.indexOf("$")>=0&&(h.tokenSubst=!0),typeof n.bracket=="string")if(n.bracket==="@open")h.bracket=1;else if(n.bracket==="@close")h.bracket=-1;else throw Do(a,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+r);if(n.next){if(typeof n.next!="string")throw Do(a,"the next state must be a string value in rule: "+r);var S=n.next;if(!/^(@pop|@push|@popall)$/.test(S)&&(S[0]==="@"&&(S=S.substr(1)),S.indexOf("$")<0&&!gn(a,xo(a,S,"",[],""))))throw Do(a,"the next state '"+n.next+"' is not defined in rule: "+r);h.next=S}return typeof n.goBack=="number"&&(h.goBack=n.goBack),typeof n.switchTo=="string"&&(h.switchTo=n.switchTo),typeof n.log=="string"&&(h.log=n.log),typeof n.nextEmbedded=="string"&&(h.nextEmbedded=n.nextEmbedded,a.usesEmbedded=!0),h}else if(Array.isArray(n)){for(var N=[],ce=0,Be=n.length;ce<Be;ce++)N[ce]=Js(a,r,n[ce]);return{group:N}}else if(n.cases){var Ge=[];for(var Ye in n.cases)if(n.cases.hasOwnProperty(Ye)){var _t=Js(a,r,n.cases[Ye]);Ye==="@default"||Ye==="@"||Ye===""?Ge.push({test:void 0,value:_t,name:Ye}):Ye==="@eos"?Ge.push({test:function(jt,ro,to,Yt){return Yt},value:_t,name:Ye}):Ge.push(nd(a,r,Ye,_t))}var Ot=a.defaultToken;return{test:function(jt,ro,to,Yt){for(var Qt=0,ho=Ge;Qt<ho.length;Qt++){var So=ho[Qt],To=!So.test||So.test(jt,ro,to,Yt);if(To)return So.value}return Ot}}}else throw Do(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,n){var h;if(typeof n=="string")h=n;else if(n instanceof RegExp)h=n.source;else throw Do(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,n){this.action=Js(r,this.name,n)},a}();function rd(a,r){if(!r||typeof r!="object")throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=a,n.noThrow=!1,n.maxStack=100,n.start=typeof r.start=="string"?r.start:null,n.ignoreCase=Da(r.ignoreCase,!1),n.tokenPostfix=Oa(r.tokenPostfix,"."+n.languageId),n.defaultToken=Oa(r.defaultToken,"source"),n.usesEmbedded=!1;var h=r;h.languageId=a,h.ignoreCase=n.ignoreCase,h.noThrow=n.noThrow,h.usesEmbedded=n.usesEmbedded,h.stateNames=r.tokenizer,h.defaultToken=n.defaultToken;function S(Ft,jt,ro){for(var to=0,Yt=ro;to<Yt.length;to++){var Qt=Yt[to],ho=Qt.include;if(ho){if(typeof ho!="string")throw Do(n,"an 'include' attribute must be a string at: "+Ft);if(ho[0]==="@"&&(ho=ho.substr(1)),!r.tokenizer[ho])throw Do(n,"include target '"+ho+"' is not defined at: "+Ft);S(Ft+"."+ho,jt,r.tokenizer[ho])}else{var So=new id(Ft);if(Array.isArray(Qt)&&Qt.length>=1&&Qt.length<=3)if(So.setRegex(h,Qt[0]),Qt.length>=3)if(typeof Qt[1]=="string")So.setAction(h,{token:Qt[1],next:Qt[2]});else if(typeof Qt[1]=="object"){var To=Qt[1];To.next=Qt[2],So.setAction(h,To)}else throw Do(n,"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: "+Ft);else So.setAction(h,Qt[1]);else{if(!Qt.regex)throw Do(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+Ft);Qt.name&&(typeof Qt.name=="string"&&(So.name=Qt.name)),Qt.matchOnlyAtStart&&(So.matchOnlyAtLineStart=Da(Qt.matchOnlyAtLineStart,!1)),So.setRegex(h,Qt.regex),So.setAction(h,Qt.action)}jt.push(So)}}}if(!r.tokenizer||typeof r.tokenizer!="object")throw Do(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(var N in r.tokenizer)if(r.tokenizer.hasOwnProperty(N)){n.start||(n.start=N);var ce=r.tokenizer[N];n.tokenizer[N]=new Array,S("tokenizer."+N,n.tokenizer[N],ce)}if(n.usesEmbedded=h.usesEmbedded,r.brackets){if(!Array.isArray(r.brackets))throw Do(n,"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 _t=Ye[Ge],Ot=_t;if(Ot&&Array.isArray(Ot)&&Ot.length===3&&(Ot={token:Ot[2],open:Ot[0],close:Ot[1]}),Ot.open===Ot.close)throw Do(n,"open and close brackets in a 'brackets' attribute must be different: "+Ot.open+`
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof Ot.open=="string"&&typeof Ot.token=="string"&&typeof Ot.close=="string")Be.push({token:Ot.token+n.tokenPostfix,open:_o(n,Ot.open),close:_o(n,Ot.close)});else throw Do(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return n.brackets=Be,n.noThrow=!0,n}function sd(a){gi.a.registerLanguage(a)}function ad(){var a=[];return a=a.concat(gi.a.getLanguages()),a}function ld(a){var r=sn.modeService.get().getLanguageIdentifier(a);return r?r.id:0}function dd(a,r){var n=sn.modeService.get().onDidCreateMode(function(h){h.getId()===a&&(n.dispose(),r())});return n}function cd(a,r){var n=sn.modeService.get().getLanguageIdentifier(a);if(!n)throw new Error("Cannot set configuration for unknown language "+a);return ke.a.register(n,r)}var ud=function(){function a(r){this._actual=r}return a.prototype.getInitialState=function(){return this._actual.getInitialState()},a.prototype.tokenize=function(r,n,h){throw new Error("Not supported!")},a.prototype.tokenize2=function(r,n){var h=this._actual.tokenizeEncoded(r,n);return new u.c(h.tokens,h.endState)},a}(),hd=function(){function a(r,n,h){this._standaloneThemeService=r,this._languageIdentifier=n,this._actual=h}return a.prototype.getInitialState=function(){return this._actual.getInitialState()},a.prototype._toClassicTokens=function(r,n,h){for(var S=[],N=0,ce=0,Be=r.length;ce<Be;ce++){var Ge=r[ce],Ye=Ge.startIndex;ce===0?Ye=0:Ye<N&&(Ye=N),S[ce]=new u.a(Ye+h,Ge.scopes,n),N=Ye}return S},a.prototype.tokenize=function(r,n,h){var S=this._actual.tokenize(r,n),N=this._toClassicTokens(S.tokens,this._languageIdentifier.language,h),ce;return S.endState.equals(n)?ce=n:ce=S.endState,new u.b(N,ce)},a.prototype._toBinaryTokens=function(r,n){for(var h=this._languageIdentifier.id,S=this._standaloneThemeService.getTheme().tokenTheme,N=[],ce=0,Be=0,Ge=0,Ye=r.length;Ge<Ye;Ge++){var _t=r[Ge],Ot=S.match(h,_t.scopes);if(ce>0&&N[ce-1]===Ot)continue;var Ft=_t.startIndex;Ge===0?Ft=0:Ft<Be&&(Ft=Be),N[ce++]=Ft+n,N[ce++]=Ot,Be=Ft}for(var jt=new Uint32Array(ce),Ge=0;Ge<ce;Ge++)jt[Ge]=N[Ge];return jt},a.prototype.tokenize2=function(r,n,h){var S=this._actual.tokenize(r,n),N=this._toBinaryTokens(S.tokens,h),ce;return S.endState.equals(n)?ce=n:ce=S.endState,new u.c(N,ce)},a}();function fd(a){return"tokenizeEncoded"in a}function xa(a){return a&&typeof a.then=="function"}function md(a,r){var n=sn.modeService.get().getLanguageIdentifier(a);if(!n)throw new Error("Cannot set tokens provider for unknown language "+a);var h=function(N){return fd(N)?new ud(N):new hd(sn.standaloneThemeService.get(),n,N)};return xa(r)?vt.B.registerPromise(a,r.then(function(S){return h(S)})):vt.B.register(a,h(r))}function pd(a,r){var n=function(S){return oa(sn.modeService.get(),sn.standaloneThemeService.get(),a,rd(a,S))};return xa(r)?vt.B.registerPromise(a,r.then(function(h){return n(h)})):vt.B.register(a,n(r))}function gd(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 bd(a,r){return vt.p.register(a,{provideHover:function(h,S,N){var ce=h.getWordAtPosition(S);return Promise.resolve(r.provideHover(h,S,N)).then(function(Be){return Be?(!Be.range&&ce&&(Be.range=new H.a(S.lineNumber,ce.startColumn,S.lineNumber,ce.endColumn)),Be.range||(Be.range=new H.a(S.lineNumber,S.column,S.lineNumber,S.column)),Be):void 0})}})}function Cd(a,r){return vt.m.register(a,r)}function Ed(a,r){return vt.i.register(a,r)}function wd(a,r){return vt.f.register(a,r)}function _d(a,r){return vt.q.register(a,r)}function Sd(a,r){return vt.C.register(a,r)}function Ld(a,r){return vt.b.register(a,r)}function Md(a,r){return vt.a.register(a,{provideCodeActions:function(h,S,N,ce){var Be=sn.markerService.get().read({resource:h.uri}).filter(function(Ge){return H.a.areIntersectingOrTouching(Ge,S)});return r.provideCodeActions(h,S,{markers:Be,only:N.only},ce)}})}function Dd(a,r){return vt.g.register(a,r)}function Od(a,r){return vt.j.register(a,r)}function Td(a,r){return vt.t.register(a,r)}function xd(a,r){return vt.s.register(a,r)}function Ad(a,r){return vt.d.register(a,r)}function Rd(a,r){return vt.c.register(a,r)}function Id(a,r){return vt.o.register(a,r)}function Nd(a,r){return vt.e.register(a,r)}function jd(a,r){return vt.w.register(a,r)}function Pd(a,r){return vt.l.register(a,r)}function kd(a,r){return vt.k.register(a,r)}function Fd(){return{register:sd,getLanguages:ad,onLanguage:dd,getEncodedLanguageId:ld,setLanguageConfiguration:cd,setTokensProvider:md,setMonarchTokensProvider:pd,registerReferenceProvider:gd,registerRenameProvider:vd,registerCompletionItemProvider:Ad,registerSignatureHelpProvider:yd,registerHoverProvider:bd,registerDocumentSymbolProvider:Cd,registerDocumentHighlightProvider:Ed,registerDefinitionProvider:wd,registerImplementationProvider:_d,registerTypeDefinitionProvider:Sd,registerCodeLensProvider:Ld,registerCodeActionProvider:Md,registerDocumentFormattingEditProvider:Dd,registerDocumentRangeFormattingEditProvider:Od,registerOnTypeFormattingEditProvider:Td,registerLinkProvider:xd,registerColorProvider:Rd,registerFoldingRangeProvider:Id,registerDeclarationProvider:Nd,registerSelectionRangeProvider:jd,registerDocumentSemanticTokensProvider:Pd,registerDocumentRangeSemanticTokensProvider:kd,DocumentHighlightKind:l,CompletionItemKind:f,CompletionItemTag:v,CompletionItemInsertTextRule:_,SymbolKind:ne,SymbolTag:ee,IndentAction:A,CompletionTriggerKind:w,SignatureHelpTriggerKind:Pe,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 jn=je();jn.editor=ql(),jn.languages=Fd();var Wd=jn.CancellationTokenSource,Bd=jn.Emitter,Hd=jn.KeyCode,Ud=jn.KeyMod,Vd=jn.Position,zd=jn.Range,Kd=jn.Selection,Gd=jn.SelectionDirection,Xd=jn.MarkerSeverity,Yd=jn.MarkerTag,Zd=jn.Uri,Qd=jn.Token,$d=jn.editor,Jd=jn.languages;Xr.monaco=jn,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(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return e.e(153).then(e.bind(null,"v7Iz"))}})},"9XAT":function(Lt,j,e){"use strict";e.r(j),e.d(j,"LanguageServiceDefaultsImpl",function(){return I});var T=e("M/lh"),re=e.n(T);"use strict";var J=monaco.Emitter,I=function(){function _(f,v,w){this._onDidChange=new J,this._languageId=f,this.setDiagnosticsOptions(v),this.setModeConfiguration(w)}return Object.defineProperty(_.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),_.prototype.setDiagnosticsOptions=function(f){this._diagnosticsOptions=f||Object.create(null),this._onDidChange.fire(this)},_.prototype.setModeConfiguration=function(f){this._modeConfiguration=f||Object.create(null),this._onDidChange.fire(this)},_}(),U={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},O=new I("css",U,z),H=new I("scss",U,z),x=new I("less",U,z);function u(){return{cssDefaults:O,lessDefaults:x,scssDefaults:H}}monaco.languages.css=u();function y(){return e.e(140).then(e.bind(null,"20/g"))}monaco.languages.onLanguage("less",function(){y().then(function(_){return _.setupMode(x)})}),monaco.languages.onLanguage("scss",function(){y().then(function(_){return _.setupMode(H)})}),monaco.languages.onLanguage("css",function(){y().then(function(_){return _.setupMode(O)})})},"9XeP":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("clipboardService")},"9Y+e":function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});var T=function(){function re(J,I,U,z,O,H){this.id=J,this.label=I,this.alias=U,this._precondition=z,this._run=O,this._contextKeyService=H}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(Lt,j,e){"use strict";e.d(j,"b",function(){return J}),e.d(j,"a",function(){return I});var T=e("r0BQ"),re=[];function J(U,z,O){re.push([U,new T.a(z,[],O)])}function I(){return re}},"9o5J":function(Lt,j,e){"use strict";e.d(j,"b",function(){return H}),e.d(j,"a",function(){return u}),e.d(j,"c",function(){return y});var T=e("3/fG"),re=e("MI8n"),J=e("gslv"),I=e("pmY6"),U=e("N0LK"),z=e("nD70"),O=e("aokT"),H=function(){function _(f,v,w,p){this.isProviderFirst=f,this.parent=v,this._range=w,this._rangeCallback=p,this.id=z.b.nextId()}return Object.defineProperty(_.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"range",{get:function(){return this._range},set:function(v){this._range=v,this._rangeCallback(this)},enumerable:!0,configurable:!0}),Object.defineProperty(_.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}),_}(),x=function(){function _(f){this._modelReference=f}return _.prototype.dispose=function(){this._modelReference.dispose()},_.prototype.preview=function(f,v){v===void 0&&(v=8);var w=this._modelReference.object.textEditorModel;if(!w)return;var p=f.startLineNumber,c=f.startColumn,s=f.endLineNumber,l=f.endColumn,d=w.getWordUntilPosition({lineNumber:p,column:c-v}),m=new O.a(p,d.startColumn,p,c),E=new O.a(s,l,s,1073741824),L=w.getValueInRange(m).replace(/^\s+/,""),A=w.getValueInRange(f),k=w.getValueInRange(E).replace(/\s+$/,"");return{value:L+A+k,highlight:{start:L.length,end:L.length+A.length}}},_}(),u=function(){function _(f,v){this.parent=f,this.uri=v,this.children=[]}return _.prototype.dispose=function(){Object(I.f)(this._preview),this._preview=void 0},Object.defineProperty(_.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),Object.defineProperty(_.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}),_.prototype.resolve=function(f){var v=this;return this._resolved?Promise.resolve(this):Promise.resolve(f.createModelReference(this.uri).then(function(w){var p=w.object;if(!p)throw w.dispose(),new Error;return v._preview=new x(w),v._resolved=!0,v},function(w){return v.children.length=0,v._resolved=!0,v._loadFailure=w,v}))},_}(),y=function(){function _(f,v){var w=this;this._disposables=new I.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new re.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=f,this._title=v;var p=f[0];f.sort(_._compareReferences);for(var c,s=0,l=f;s<l.length;s++){var d=l[s];if((!c||c.uri.toString()!==d.uri.toString())&&(c=new u(this,d.uri),this.groups.push(c)),c.children.length===0||!O.a.equalsRange(d.range,c.children[c.children.length-1].range)){var m=new H(p===d,c,d.targetSelectionRange||d.range,function(E){return w._onDidChangeReferenceRange.fire(E)});this.references.push(m),c.children.push(m)}}}return _.prototype.dispose=function(){Object(I.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0},_.prototype.clone=function(){return new _(this._links,this._title)},Object.defineProperty(_.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"isEmpty",{get:function(){return this.groups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(_.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}),_.prototype.nextOrPreviousReference=function(f,v){var w=f.parent,p=w.children.indexOf(f),c=w.children.length,s=w.parent.groups.length;return s===1||v&&p+1<c||!v&&p>0?(v?p=(p+1)%c:p=(p+c-1)%c,w.children[p]):(p=w.parent.groups.indexOf(w),v?(p=(p+1)%s,w.parent.groups[p].children[0]):(p=(p+s-1)%s,w.parent.groups[p].children[w.parent.groups[p].children.length-1]))},_.prototype.nearestReference=function(f,v){var w=this.references.map(function(p,c){return{idx:c,prefixLen:U.c(p.uri.toString(),f.toString()),offsetDist:Math.abs(p.range.startLineNumber-v.lineNumber)*100+Math.abs(p.range.startColumn-v.column)}}).sort(function(p,c){return p.prefixLen>c.prefixLen?-1:p.prefixLen<c.prefixLen?1:p.offsetDist<c.offsetDist?-1:p.offsetDist>c.offsetDist?1:0})[0];return w?this.references[w.idx]:void 0},_.prototype.referenceAt=function(f,v){for(var w=0,p=this.references;w<p.length;w++){var c=p[w];if(c.uri.toString()===f.toString()&&O.a.containsPosition(c.range,v))return c}return},_.prototype.firstReference=function(){for(var f=0,v=this.references;f<v.length;f++){var w=v[f];if(w.isProviderFirst)return w}return this.references[0]},_._compareReferences=function(f,v){return U.e(f.uri.toString(),v.uri.toString())||O.a.compareRangesUsingStarts(f.range,v.range)},_}()},"A+jI":function(Lt,j,e){"use strict";e.d(j,"a",function(){return z}),e.d(j,"c",function(){return O}),e.d(j,"b",function(){return H});var T=e("Cg/j"),re=e("MI8n"),J=e("pmY6"),I=e("746U"),U=function(){var x=function(y,_){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},x(y,_)};return function(u,y){x(u,y);function _(){this.constructor=u}u.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}}(),z=Object(T.c)("storageService"),O;(function(x){x[x.NONE=0]="NONE",x[x.SHUTDOWN=1]="SHUTDOWN"})(O||(O={}));var H=function(x){U(u,x);function u(){var y=x!==null&&x.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 u.prototype.getCache=function(y){return y===0?this.globalCache:this.workspaceCache},u.prototype.get=function(y,_,f){var v=this.getCache(_).get(y);return Object(I.l)(v)?f:v},u.prototype.getBoolean=function(y,_,f){var v=this.getCache(_).get(y);return Object(I.l)(v)?f:v==="true"},u.prototype.store=function(y,_,f){if(Object(I.l)(_))return this.remove(y,f);var v=String(_),w=this.getCache(f).get(y);return w===v||(this.getCache(f).set(y,v),this._onDidChangeStorage.fire({scope:f,key:y})),Promise.resolve()},u.prototype.remove=function(y,_){var f=this.getCache(_).delete(y);return f&&this._onDidChangeStorage.fire({scope:_,key:y}),Promise.resolve()},u}(J.a)},"A9l+":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"c",function(){return J}),e.d(j,"b",function(){return I}),e.d(j,"d",function(){return U}),e.d(j,"e",function(){return z}),e.d(j,"g",function(){return O}),e.d(j,"h",function(){return H}),e.d(j,"f",function(){return x});var T=e("3/fG"),re;(function(u){u.noSelection=T.a("noSelection","No selection"),u.singleSelectionRange=T.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),u.singleSelection=T.a("singleSelection","Line {0}, Column {1}"),u.multiSelectionRange=T.a("multiSelectionRange","{0} selections ({1} characters selected)"),u.multiSelection=T.a("multiSelection","{0} selections"),u.emergencyConfOn=T.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),u.openingDocs=T.a("openingDocs","Now opening the Editor Accessibility documentation page."),u.readonlyDiffEditor=T.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),u.editableDiffEditor=T.a("editableDiffEditor"," in a pane of a diff editor."),u.readonlyEditor=T.a("readonlyEditor"," in a read-only code editor"),u.editableEditor=T.a("editableEditor"," in a code editor"),u.changeConfigToOnMac=T.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),u.changeConfigToOnWinLinux=T.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),u.auto_on=T.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),u.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."),u.tabFocusModeOnMsg=T.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),u.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."),u.tabFocusModeOffMsg=T.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),u.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."),u.openDocMac=T.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),u.openDocWinLinux=T.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),u.outroMsg=T.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),u.showAccessibilityHelpAction=T.a("showAccessibilityHelpAction","Show Accessibility Help")})(re||(re={}));var J;(function(u){u.inspectTokensAction=T.a("inspectTokens","Developer: Inspect Tokens")})(J||(J={}));var I;(function(u){u.gotoLineLabelValidLineAndColumn=T.a("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),u.gotoLineLabelValidLine=T.a("gotoLineLabelValidLine","Go to line {0}"),u.gotoLineLabelEmptyWithLineLimit=T.a("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),u.gotoLineLabelEmptyWithLineAndColumnLimit=T.a("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),u.gotoLineAriaLabel=T.a("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),u.gotoLineActionInput=T.a("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),u.gotoLineActionLabel=T.a("gotoLineActionLabel","Go to Line...")})(I||(I={}));var U;(function(u){u.ariaLabelEntryWithKey=T.a("ariaLabelEntryWithKey","{0}, {1}, commands"),u.ariaLabelEntry=T.a("ariaLabelEntry","{0}, commands"),u.quickCommandActionInput=T.a("quickCommandActionInput","Type the name of an action you want to execute"),u.quickCommandActionLabel=T.a("quickCommandActionLabel","Command Palette")})(U||(U={}));var z;(function(u){u.entryAriaLabel=T.a("entryAriaLabel","{0}, symbols"),u.quickOutlineActionInput=T.a("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),u.quickOutlineActionLabel=T.a("quickOutlineActionLabel","Go to Symbol..."),u._symbols_=T.a("symbols","symbols ({0})"),u._modules_=T.a("modules","modules ({0})"),u._class_=T.a("class","classes ({0})"),u._interface_=T.a("interface","interfaces ({0})"),u._method_=T.a("method","methods ({0})"),u._function_=T.a("function","functions ({0})"),u._property_=T.a("property","properties ({0})"),u._variable_=T.a("variable","variables ({0})"),u._variable2_=T.a("variable2","variables ({0})"),u._constructor_=T.a("_constructor","constructors ({0})"),u._call_=T.a("call","calls ({0})")})(z||(z={}));var O;(function(u){u.editorViewAccessibleLabel=T.a("editorViewAccessibleLabel","Editor content"),u.accessibilityHelpMessageIE=T.a("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),u.accessibilityHelpMessage=T.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(O||(O={}));var H;(function(u){u.toggleHighContrast=T.a("toggleHighContrast","Toggle High Contrast Theme")})(H||(H={}));var x;(function(u){u.bulkEditServiceSummary=T.a("bulkEditServiceSummary","Made {0} edits in {1} files")})(x||(x={}))},AKMP:function(Lt,j,e){"use strict";e.d(j,"b",function(){return H}),e.d(j,"a",function(){return x});var T=e("EffR"),re=e("MNsG"),J=e("D3Dy"),I=e("51f4"),U=e("XSiN"),z=e("pmY6"),O=e("CjF5");function H(u,y){var _=new U.b(y);return _.preventDefault(),{leftButton:_.leftButton,buttons:_.buttons,posx:_.posx,posy:_.posy}}var x=function(){function u(){this._hooks=new z.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}return u.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},u.prototype.stopMonitoring=function(y){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var _=this._onStopCallback;this._onStopCallback=null,y&&_&&_()},u.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},u.prototype.startMonitoring=function(y,_,f,v,w){var p=this;if(this.isMonitoring())return;this._mouseMoveEventMerger=f,this._mouseMoveCallback=v,this._onStopCallback=w;var c=I.a.getSameOriginWindowChain(),s=re.c&&O.a.pointerEvents?"pointermove":"mousemove",l=re.c&&O.a.pointerEvents?"pointerup":"mouseup",d=c.map(function(R){return R.window.document}),m=T.E(y);m&&d.unshift(m);for(var E=0,L=d;E<L.length;E++){var A=L[E];this._hooks.add(T.m(A,s,function(R){if(!J.i&&R.buttons!==_){p.stopMonitoring(!0);return}p._mouseMoveCallback(R)},function(R,$){return p._mouseMoveEventMerger(R,$)})),this._hooks.add(T.j(A,l,function(R){return p.stopMonitoring(!0)}))}if(I.a.hasDifferentOriginAncestor()){var k=c[c.length-1];this._hooks.add(T.j(k.window.document,"mouseout",function(R){var $=new U.b(R);$.target.tagName.toLowerCase()==="html"&&p.stopMonitoring(!0)})),this._hooks.add(T.j(k.window.document,"mouseover",function(R){var $=new U.b(R);$.target.tagName.toLowerCase()==="html"&&p.stopMonitoring(!0)})),this._hooks.add(T.j(k.window.document.body,"mouseleave",function(R){p.stopMonitoring(!0)}))}},u}()},AbCa:function(Lt,j,e){},AhDq:function(Lt,j,e){"use strict";e.r(j),e.d(j,"GotoLineEntry",function(){return f}),e.d(j,"GotoLineAction",function(){return v});var T=e("C9rm"),re=e.n(T),J=e("N0LK"),I=e("Rpxm"),U=e("sFUC"),z=e("sswD"),O=e("cGHE"),H=e("aokT"),x=e("wQH0"),u=e("rzPn"),y=e("A9l+"),_=function(){var w=function(c,s){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var m in d)d.hasOwnProperty(m)&&(l[m]=d[m])},w(c,s)};return function(p,c){w(p,c);function s(){this.constructor=p}p.prototype=c===null?Object.create(c):(s.prototype=c.prototype,new s)}}(),f=function(w){_(p,w);function p(c,s,l){var d=w.call(this)||this;return d.editor=s,d.decorator=l,d.parseResult=d.parseInput(c),d}return p.prototype.parseInput=function(c){var s=c.split(",").map(function(A){return parseInt(A,10)}).filter(function(A){return!isNaN(A)}),l;s.length===0?l=new O.a(-1,-1):s.length===1?l=new O.a(s[0],1):l=new O.a(s[0],s[1]);var d;if(Object(U.a)(this.editor))d=this.editor.getModel();else{var m=this.editor.getModel();d=m?m.modified:null}var E=d?d.validatePosition(l).equals(l):!1,L;return E?l.column&&l.column>1?L=J.r(y.b.gotoLineLabelValidLineAndColumn,l.lineNumber,l.column):L=J.r(y.b.gotoLineLabelValidLine,l.lineNumber):l.lineNumber<1||l.lineNumber>(d?d.getLineCount():0)?L=J.r(y.b.gotoLineLabelEmptyWithLineLimit,d?d.getLineCount():0):L=J.r(y.b.gotoLineLabelEmptyWithLineAndColumnLimit,d?d.getLineMaxColumn(l.lineNumber):0),{position:l,isValid:E,label:L}},p.prototype.getLabel=function(){return this.parseResult.label},p.prototype.getAriaLabel=function(){var c=this.editor.getPosition(),s=c?c.lineNumber:0;return J.r(y.b.gotoLineAriaLabel,s,this.parseResult.label)},p.prototype.run=function(c,s){return c===1?this.runOpen():this.runPreview()},p.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var c=this.toSelection();return this.editor.setSelection(c),this.editor.revealRangeInCenter(c,0),this.editor.focus(),!0},p.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var c=this.toSelection();return this.editor.revealRangeInCenter(c,0),this.decorator.decorateLine(c,this.editor),!1},p.prototype.toSelection=function(){return new H.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},p}(I.a),v=function(w){_(p,w);function p(){return w.call(this,y.b.gotoLineActionInput,{id:"editor.action.gotoLine",label:y.b.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:x.a.focus,primary:2048|37,mac:{primary:256|37},weight:100}})||this}return p.prototype.run=function(c,s){var l=this;this._show(this.getController(s),{getModel:function(m){return new I.c([new f(m,s,l.getController(s))])},getAutoFocus:function(m){return{autoFocusFirstEntry:m.length>0}}})},p}(u.a);Object(z.f)(v)},ApJL:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return e.e(149).then(e.bind(null,"AoeA"))}})},BEdG:function(Lt,j,e){"use strict";e.r(j);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(200).then(e.bind(null,"aH2L"))}})},BFtn:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"b",function(){return J});function T(I,U){for(var z=I.getCount(),O=I.findTokenIndexAtOffset(U),H=I.getLanguageId(O),x=O;x+1<z&&I.getLanguageId(x+1)===H;)x++;for(var u=O;u>0&&I.getLanguageId(u-1)===H;)u--;return new re(I,H,u,x+1,I.getStartOffset(u),I.getEndOffset(x))}var re=function(){function I(U,z,O,H,x,u){this._actual=U,this.languageId=z,this._firstTokenIndex=O,this._lastTokenIndex=H,this.firstCharOffset=x,this._lastCharOffset=u}return I.prototype.getLineContent=function(){var U=this._actual.getLineContent();return U.substring(this.firstCharOffset,this._lastCharOffset)},I.prototype.getActualLineContentBefore=function(U){var z=this._actual.getLineContent();return z.substring(0,this.firstCharOffset+U)},I.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},I.prototype.findTokenIndexAtOffset=function(U){return this._actual.findTokenIndexAtOffset(U+this.firstCharOffset)-this._firstTokenIndex},I.prototype.getStandardTokenType=function(U){return this._actual.getStandardTokenType(U+this._firstTokenIndex)},I}();function J(I){return(I&7)!==0}},BUKB:function(Lt,j,e){"use strict";e.r(j);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(196).then(e.bind(null,"xT+r"))}})},BjKj:function(Lt,j,e){},"C/vA":function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});function T(re){var J=this,I=!1,U;return function(){return I||(I=!0,U=re.apply(J,arguments)),U}}},"C1Q+":function(Lt,j,e){"use strict";e.d(j,"f",function(){return Pt}),e.d(j,"e",function(){return at}),e.d(j,"b",function(){return tt}),e.d(j,"g",function(){return ut}),e.d(j,"h",function(){return Ct}),e.d(j,"d",function(){return gt}),e.d(j,"c",function(){return bt}),e.d(j,"a",function(){return Gt});var T=function(){function Nt(Et){this.executor=Et,this._didRun=!1}return Nt.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(Nt.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),Nt}(),re=e("pmY6"),J=e("N0LK"),I=e("sswD"),U=e("x/UI"),z=e("wQH0"),O=e("hJVp"),H=e("6OMU"),x=e("/cxE"),u=e("NR8r"),y=e("Cg/j"),_=e("EffR"),f=e("WqXY"),v=e("8HAY"),w=e("cGHE"),p=e("twdY"),c=e("nlbu"),s=e("Uzvx"),l=e("bexQ"),d=function(){var Nt=function(Je,$e){return Nt=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])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),m=function(){return m=Object.assign||function(Nt){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)&&(Nt[ze]=Et[ze])}return Nt},m.apply(this,arguments)},E=function(Nt,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(Nt,Et,Je,$e);else for(var G=Nt.length-1;G>=0;G--)(fe=Nt[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},L=function(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},A=function(Nt,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(ke){fe(ke)}}function te(de){try{Y($e.throw(de))}catch(ke){fe(ke)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(Nt,Et||[])).next())})},k=function(Nt,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(Nt,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 Nt=0,Et=0,Je=arguments.length;Et<Je;Et++)Nt+=arguments[Et].length;for(var $e=Array(Nt),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(Nt){d(Et,Nt);function Et(Je,$e){var ze=Nt.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(Nt){d(Et,Nt);function Et(Je,$e,ze,Ke){var fe=Nt.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 A(this,void 0,void 0,function(){var fe,G,te,Y,de=this;return k(this,function(ke){if(fe=Ke.includeDisabledActions?$e.allActions:$e.validActions,!fe.length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(x.a)();return this._visible=!0,this._showingActions.value=$e,G=this.getMenuActions(Je,fe),te=w.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(eo){return new $(eo,function(){return ze._delegate.onSelectCodeAction(eo)})},te=$e.map(G),Y=this._editor.getModel();if(Y&&te.length)for(var de=0,ke=p.a.all(Y);de<ke.length;de++){var lt=ke[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(_.C)(this._editor.getDomNode()),Ke=ze.left+$e.left,fe=ze.top+$e.top+$e.height;return{x:Ke,y:fe}},Et=E([L(2,s.a),L(3,l.a)],Et),Et}(re.a),W=function(){function Nt(Et){this._keybindingProvider=Et}return Nt.prototype.getResolver=function(){var Et=this,Je=new T(function(){return Et._keybindingProvider.getKeybindings().filter(function($e){return Nt.codeActionCommands.indexOf($e.command)>=0}).filter(function($e){return $e.resolvedKeybinding}).map(function($e){var ze=$e.commandArgs;return $e.command===O.d?ze={kind:c.b.SourceOrganizeImports.value}:$e.command===O.b&&(ze={kind:c.b.SourceFixAll.value}),m({resolvedKeybinding:$e.resolvedKeybinding},c.a.fromUser(ze,{kind:c.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}},Nt.prototype.bestKeybindingForCodeAction=function(Et,Je){if(!Et.kind)return;var $e=new c.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)},Nt.codeActionCommands=[O.e,O.a,O.f,O.d,O.b],Nt}(),B=e("AKMP"),le=e("MI8n"),Ce=e("MNXI"),Me=e("tX9W"),Te=e("3/fG"),Fe=e("t9D7"),Ue=e("MD5Z"),Pe=e("pg8w"),ne=function(){var Nt=function(Je,$e){return Nt=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])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),ee=function(Nt,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(Nt,Et,Je,$e);else for(var G=Nt.length-1;G>=0;G--)(fe=Nt[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(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},q;(function(Nt){Nt.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}();Nt.Showing=Et})(q||(q={}));var ue=function(Nt){ne(Et,Nt);function Et(Je,$e,ze,Ke){var fe=Nt.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()})),Pe.b.ignoreTarget(fe._domNode),fe._register(_.n(fe._domNode,function(G){if(fe.state.type!==1)return;fe._editor.focus(),G.preventDefault();var te=_.C(fe._domNode),Y=te.top,de=te.height,ke=fe._editor.getOption(49),lt=Math.floor(ke/3);fe.state.widgetPosition.position!==null&&fe.state.widgetPosition.position.lineNumber<fe.state.editorPosition.lineNumber&&(lt+=ke),fe._onClick.fire({x:G.posx,y:Y+de+lt,actions:fe.state.actions,trigger:fe.state.trigger})})),fe._register(_.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(){Nt.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,ke=fe.get(34),lt=Y.getLineContent(G),Tt=Me.b.computeIndentLevel(lt,de),Jt=ke.spaceWidth*Tt>22,eo=function(Eo){return Eo>2&&Ke._editor.getTopForLineNumber(Eo)===Ke._editor.getTopForLineNumber(Eo-1)},po=G;if(!Jt){if(G>1&&!eo(G-1))po-=1;else if(!eo(G+1))po+=1;else if(te*ke.spaceWidth<22)return this.hide()}this.state=new q.Showing(Je,$e,ze,{position:{lineNumber:po,column:1},preference:Et._posPref}),_.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(Fe.e)(function(Nt,Et){var Je=Nt.getColor(Ue.J);Je&&Et.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb {
color: `+Je+`;
}`);var $e=Nt.getColor(Ue.I);$e&&Et.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb-autofix {
color: `+$e+`;
}`)});var X=function(){var Nt=function(Je,$e){return Nt=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])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),he=function(Nt,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(Nt,Et,Je,$e);else for(var G=Nt.length-1;G>=0;G--)(fe=Nt[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},je=function(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},Xe=function(Nt,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(ke){fe(ke)}}function te(de){try{Y($e.throw(de))}catch(ke){fe(ke)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(Nt,Et||[])).next())})},me=function(Nt,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(Nt,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}}},ge=function(Nt){X(Et,Nt);function Et(Je,$e,ze,Ke,fe){var G=Nt.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 me(this,function(de){return this.delegate.applyCodeAction(Y,!0),[2]})})}}))}),G._lightBulbWidget=new T(function(){var te=G._register(fe.createInstance(ue,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 me(this,function(ke){switch(ke.label){case 0:if(Je.type!==1)return($e=this._lightBulbWidget.rawValue)===null||$e===void 0||$e.hide(),[2];ke.label=1;case 1:return ke.trys.push([1,3,,4]),[4,Je.actions];case 2:return fe=ke.sent(),[3,4];case 3:return G=ke.sent(),Object(x.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];ke.label=5;case 5:return ke.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(te,!1)];case 6:return ke.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 u.a.get(this._editor).showMessage(Y.disabled,Je.trigger.context.position),fe.dispose(),[2];ke.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)?(u.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,ke.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(H.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 me(this,function(fe){return this._codeActionWidget.getValue().show(Je,$e,ze,Ke),[2]})})},Et=he([je(4,y.a)],Et),Et}(re.a),we=e("nnTU"),Re=e("T8No"),Ee=e("tADe"),ve=e("sM1p"),Q=e("tTk5"),C=e("XXUj"),F=e("X+cX"),se=e("aokT"),oe=e("gslv"),be=function(){var Nt=function(Je,$e){return Nt=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])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),De=new Re.d("supportedCodeAction",""),Se=function(Nt){be(Et,Nt);function Et(Je,$e,ze,Ke){Ke===void 0&&(Ke=250);var fe=Nt.call(this)||this;return fe._editor=Je,fe._markerService=$e,fe._signalChange=ze,fe._delay=Ke,fe._autoTriggerTimer=fe._register(new F.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(oe.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(Nt){Nt.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}();Nt.Triggered=Et})(Ve||(Ve={}));var Qe=function(Nt){be(Et,Nt);function Et(Je,$e,ze,Ke){var fe=Nt.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=De.bindTo(ze),fe._register(fe._editor.onDidChangeModel(function(){return fe._update()})),fe._register(fe._editor.onDidChangeModelLanguage(function(){return fe._update()})),fe._register(p.a.onDidChange(function(){return fe._update()})),fe._update(),fe}return Et.prototype.dispose=function(){Nt.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&&p.a.has($e)&&!this._editor.getOption(68)){for(var ze=[],Ke=0,fe=p.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 Se(this._editor,this._markerService,function(te){if(!te){Je.setState(Ve.Empty);return}var Y=Object(F.f)(function(de){return Object(O.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 Nt=function(Je,$e){return Nt=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])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),pt=function(Nt,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(Nt,Et,Je,$e);else for(var G=Nt.length-1;G>=0;G--)(fe=Nt[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(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},Mt=function(Nt,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(ke){fe(ke)}}function te(de){try{Y($e.throw(de))}catch(ke){fe(ke)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(Nt,Et||[])).next())})},zt=function(Nt,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(Nt,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}}},uo=function(){for(var Nt=0,Et=0,Je=arguments.length;Et<Je;Et++)Nt+=arguments[Et].length;for(var $e=Array(Nt),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 ao(Nt){return Re.a.regex(De.keys()[0],new RegExp("(\\s|^)"+Object(J.p)(Nt.value)+"\\b"))}var so={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.")}}},Pt=function(Nt){it(Et,Nt);function Et(Je,$e,ze,Ke,fe){var G=Nt.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 ge(Je,at.Id,Gt.Id,{applyCodeAction:function(Y,de){return Mt(G,void 0,void 0,function(){return zt(this,function(ke){switch(ke.label){case 0:return ke.trys.push([0,,2,3]),[4,this._applyCodeAction(Y)];case 1:return ke.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;u.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=pt([Rt(1,Ee.b),Rt(2,Re.c),Rt(3,Q.a),Rt(4,y.a)],Et),Et}(re.a);function ft(Nt,Et,Je){return Mt(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=Nt.get(U.a),ze=Nt.get(we.b),Ke=Nt.get(C.a),fe=Nt.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,uo([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(Nt){return typeof Nt=="string"?Nt:Nt instanceof Error&&typeof Nt.message=="string"?Nt.message:void 0}function At(Nt,Et,Je,$e){if(Nt.hasModel()){var ze=Pt.get(Nt);ze&&ze.manualTriggerAtCurrentPosition(Et,Je,$e)}}var at=function(Nt){it(Et,Nt);function Et(){return Nt.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 At($e,Te.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},Et.Id="editor.action.quickFix",Et}(I.b),tt=function(Nt){it(Et,Nt);function Et(){return Nt.call(this,{id:O.a,precondition:Re.a.and(z.a.writable,z.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:so}]}})||this}return Et.prototype.runEditorCommand=function(Je,$e,ze){var Ke=c.a.fromUser(ze,{kind:c.b.Empty,apply:"ifSingle"});return At($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}(I.c),ut=function(Nt){it(Et,Nt);function Et(){return Nt.call(this,{id:O.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,ao(c.b.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:so}]}})||this}return Et.prototype.run=function(Je,$e,ze){var Ke=c.a.fromUser(ze,{kind:c.b.Refactor,apply:"never"});return At($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:c.b.Refactor.contains(Ke.kind)?Ke.kind:c.b.None,onlyIncludePreferredActions:Ke.preferred},Ke.apply)},Et}(I.b),Ct=function(Nt){it(Et,Nt);function Et(){return Nt.call(this,{id:O.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,ao(c.b.Source))},description:{description:"Source Action...",args:[{name:"args",schema:so}]}})||this}return Et.prototype.run=function(Je,$e,ze){var Ke=c.a.fromUser(ze,{kind:c.b.Source,apply:"never"});return At($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:c.b.Source.contains(Ke.kind)?Ke.kind:c.b.None,includeSourceActions:!0,onlyIncludePreferredActions:Ke.preferred},Ke.apply)},Et}(I.b),gt=function(Nt){it(Et,Nt);function Et(){return Nt.call(this,{id:O.d,label:Te.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:Re.a.and(z.a.writable,ao(c.b.SourceOrganizeImports)),kbOpts:{kbExpr:z.a.editorTextFocus,primary:1024|512|45,weight:100}})||this}return Et.prototype.run=function(Je,$e){return At($e,Te.a("editor.action.organize.noneMessage","No organize imports action available"),{include:c.b.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")},Et}(I.b),bt=function(Nt){it(Et,Nt);function Et(){return Nt.call(this,{id:O.b,label:Te.a("fixAll.label","Fix All"),alias:"Fix All",precondition:Re.a.and(z.a.writable,ao(c.b.SourceFixAll))})||this}return Et.prototype.run=function(Je,$e){return At($e,Te.a("fixAll.noneMessage","No fix all action available"),{include:c.b.SourceFixAll,includeSourceActions:!0},"ifSingle")},Et}(I.b),Gt=function(Nt){it(Et,Nt);function Et(){return Nt.call(this,{id:Et.Id,label:Te.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:Re.a.and(z.a.writable,ao(c.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 At($e,Te.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:c.b.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},Et.Id="editor.action.autoFix",Et}(I.b)},C6rC:function(Lt,j,e){},C9rm:function(Lt,j,e){},CClx:function(Lt,j,e){},CHaL:function(Lt,j,e){},CRAX:function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"b",function(){return s});var T=e("3/fG"),re=e("MI8n"),J=e("ic2d"),I=e("746U"),U=e("3Rsk"),z=e("QDVR"),O={Configuration:"base.contributions.configuration"},H={properties:{},patternProperties:{}},x={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},y={properties:{},patternProperties:{}},_={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},v="vscode://schemas/settings/resourceLanguage",w=J.a.as(U.a.JSONContribution),p=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={},w.registerSchema(v,this.resourceLanguageSettingsSchema)}return E.prototype.registerConfiguration=function(L,A){A===void 0&&(A=!0),this.registerConfigurations([L],A)},E.prototype.registerConfigurations=function(L,A){var k=this;A===void 0&&(A=!0);var R=[];L.forEach(function($){R.push.apply(R,k.validateAndRegisterProperties($,A)),k.configurationContributors.push($),k.registerJSONConfiguration($)}),w.registerSchema(v,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(R)},E.prototype.registerOverrideIdentifiers=function(L){for(var A=0,k=L;A<k.length;A++){var R=k[A];this.overrideIdentifiers.add(R)}this.updateOverridePropertyPatternKey()},E.prototype.validateAndRegisterProperties=function(L,A,k){A===void 0&&(A=!0),k===void 0&&(k=3),k=I.l(L.scope)?k:L.scope;var R=[],$=L.properties;if($)for(var ie in $){if(A&&m(ie)){delete $[ie];continue}var W=$[ie],B=W.default;if(I.k(B)&&(W.default=l(W.type)),s.test(ie)?W.scope=void 0:W.scope=I.l(W.scope)?k:W.scope,$[ie].hasOwnProperty("included")&&!$[ie].included){this.excludedConfigurationProperties[ie]=$[ie],delete $[ie];continue}else this.configurationProperties[ie]=$[ie];R.push(ie)}var le=L.allOf;if(le)for(var Ce=0,Me=le;Ce<Me.length;Ce++){var Te=Me[Ce];R.push.apply(R,this.validateAndRegisterProperties(Te,A,k))}return R},E.prototype.getConfigurationProperties=function(){return this.configurationProperties},E.prototype.registerJSONConfiguration=function(L){var A=this,k=function R($){var ie=$.properties;if(ie)for(var W in ie){H.properties[W]=ie[W];switch(ie[W].scope){case 1:x.properties[W]=ie[W];break;case 2:u.properties[W]=ie[W];break;case 6:y.properties[W]=ie[W];break;case 3:_.properties[W]=ie[W];break;case 4:f.properties[W]=ie[W];break;case 5:f.properties[W]=ie[W],A.resourceLanguageSettingsSchema.properties[W]=ie[W];break}}var B=$.allOf;B&&B.forEach(R)};k(L)},E.prototype.updateOverridePropertyPatternKey=function(){for(var L,A=0,k=Object(z.e)(this.overrideIdentifiers);A<k.length;A++){var R=k[A],$="["+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:(L=this.defaultOverridesConfigurationNode.properties[$])===null||L===void 0?void 0:L.default};H.properties[$]=ie,x.properties[$]=ie,u.properties[$]=ie,y.properties[$]=ie,_.properties[$]=ie,f.properties[$]=ie}this._onDidSchemaChange.fire()},E}(),c="\\[.*\\]$",s=new RegExp(c);function l(E){var L=Array.isArray(E)?E[0]:E;switch(L){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 p;J.a.add(O.Configuration,d);function m(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(Lt,j,e){"use strict";e.d(j,"b",function(){return T}),e.d(j,"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(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return e.e(144).then(e.bind(null,"6Xso"))}})},"Cg/j":function(Lt,j,e){"use strict";e.d(j,"b",function(){return T}),e.d(j,"a",function(){return re}),e.d(j,"c",function(){return I}),e.d(j,"d",function(){return U});var T;(function(z){z.serviceIds=new Map,z.DI_TARGET="$di$target",z.DI_DEPENDENCIES="$di$dependencies";function O(H){return H[z.DI_DEPENDENCIES]||[]}z.getServiceDependencies=O})(T||(T={}));var re=I("instantiationService");function J(z,O,H,x){O[T.DI_TARGET]===O?O[T.DI_DEPENDENCIES].push({id:z,index:H,optional:x}):(O[T.DI_DEPENDENCIES]=[{id:z,index:H,optional:x}],O[T.DI_TARGET]=O)}function I(z){if(T.serviceIds.has(z))return T.serviceIds.get(z);var O=function H(x,u,y){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");J(H,x,y,!1)};return O.toString=function(){return z},T.serviceIds.set(z,O),O}function U(z){return function(O,H,x){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");J(z,O,x,!0)}}},CjF5:function(Lt,j,e){"use strict";e.d(j,"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 I=navigator.userAgent.indexOf("Edge/"),U=parseInt(navigator.userAgent.substring(I+5,navigator.userAgent.indexOf(".",I)),10);if(!U||U>=12&&U<=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(Lt,j,e){},Comh:function(Lt,j,e){"use strict";e.d(j,"b",function(){return I}),e.d(j,"a",function(){return U});var T=e("N0LK"),re=e("cGHE"),J=e("aokT"),I=function(){function z(O,H,x,u,y){this.value=O,this.selectionStart=H,this.selectionEnd=x,this.selectionStartPosition=u,this.selectionEndPosition=y}return z.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},z.readFromTextArea=function(O){return new z(O.getValue(),O.getSelectionStart(),O.getSelectionEnd(),null,null)},z.prototype.collapseSelection=function(){return new z(this.value,this.value.length,this.value.length,null,null)},z.prototype.writeToTextArea=function(O,H,x){H.setValue(O,this.value),x&&H.setSelectionRange(O,this.selectionStart,this.selectionEnd)},z.prototype.deduceEditorPosition=function(O){if(O<=this.selectionStart){var H=this.value.substring(O,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,H,-1)}if(O>=this.selectionEnd){var H=this.value.substring(this.selectionEnd,O);return this._finishDeduceEditorPosition(this.selectionEndPosition,H,1)}var x=this.value.substring(this.selectionStart,O);if(x.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,x,1);var u=this.value.substring(O,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,u,-1)},z.prototype._finishDeduceEditorPosition=function(O,H,x){for(var u=0,y=-1;(y=H.indexOf(`
`,y+1))!==-1;)u++;return[O,x*H.length,u]},z.selectedText=function(O){return new z(O,0,O.length,null,null)},z.deduceInput=function(O,H,x){if(!O)return{text:"",replaceCharCnt:0};var u=O.value,y=O.selectionStart,_=O.selectionEnd,f=H.value,v=H.selectionStart,w=H.selectionEnd,p=u.substring(_),c=f.substring(w),s=T.d(p,c);f=f.substring(0,f.length-s),u=u.substring(0,u.length-s);var l=u.substring(0,y),d=f.substring(0,v),m=T.c(l,d);if(f=f.substring(m),u=u.substring(m),v-=m,y-=m,w-=m,_-=m,x&&v===w&&u.length>0){var E=null;if(v===f.length?T.N(f,u)&&(E=f.substring(u.length)):T.m(f,u)&&(E=f.substring(0,f.length-u.length)),E!==null&&E.length>0&&(/\uFE0F/.test(E)||T.g(E)))return{text:E,replaceCharCnt:0}}if(v===w){if(u===f&&y===0&&_===u.length&&v===f.length&&f.indexOf(`
`)===-1&&T.h(f))return{text:"",replaceCharCnt:0};var L=l.length-m;return{text:f,replaceCharCnt:L}}var A=_-y;return{text:f,replaceCharCnt:A}},z.EMPTY=new z("",0,0,null,null),z}(),U=function(){function z(){}return z._getPageOfLine=function(O,H){return Math.floor((O-1)/H)},z._getRangeForPage=function(O,H){var x=O*H,u=x+1,y=x+H;return new J.a(u,1,y+1,1)},z.fromEditorSelection=function(O,H,x,u,y){var _=z._getPageOfLine(x.startLineNumber,u),f=z._getRangeForPage(_,u),v=z._getPageOfLine(x.endLineNumber,u),w=z._getRangeForPage(v,u),p=f.intersectRanges(new J.a(1,1,x.startLineNumber,x.startColumn)),c=H.getValueInRange(p,1),s=H.getLineCount(),l=H.getLineMaxColumn(s),d=w.intersectRanges(new J.a(x.endLineNumber,x.endColumn,s,l)),m=H.getValueInRange(d,1),E;if(_===v||_+1===v)E=H.getValueInRange(x,1);else{var L=f.intersectRanges(x),A=w.intersectRanges(x);E=H.getValueInRange(L,1)+String.fromCharCode(8230)+H.getValueInRange(A,1)}if(y){var k=500;c.length>k&&(c=c.substring(c.length-k,c.length)),m.length>k&&(m=m.substring(0,k)),E.length>2*k&&(E=E.substring(0,k)+String.fromCharCode(8230)+E.substring(E.length-k,E.length))}return new I(c+E+m,c.length,c.length+E.length,new re.a(x.startLineNumber,x.startColumn),new re.a(x.endLineNumber,x.endColumn))},z}()},CxEt:function(Lt,j,e){"use strict";e.r(j);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(Lt,j,e){"use strict";e.d(j,"c",function(){return J}),e.d(j,"b",function(){return I}),e.d(j,"o",function(){return U}),e.d(j,"a",function(){return z}),e.d(j,"i",function(){return H}),e.d(j,"e",function(){return x}),e.d(j,"f",function(){return u}),e.d(j,"h",function(){return y}),e.d(j,"m",function(){return _}),e.d(j,"d",function(){return f}),e.d(j,"k",function(){return v}),e.d(j,"n",function(){return w}),e.d(j,"j",function(){return p}),e.d(j,"g",function(){return c}),e.d(j,"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"),m=window.devicePixelRatio||1,E=d.webkitBackingStorePixelRatio||d.mozBackingStorePixelRatio||d.msBackingStorePixelRatio||d.oBackingStorePixelRatio||d.backingStorePixelRatio||1;return m/E},l.INSTANCE=new l,l}();function J(){return re.INSTANCE.getZoomLevel()}function I(){return re.INSTANCE.getTimeSinceLastZoomLevelChanged()}function U(l){return re.INSTANCE.onDidChangeZoomLevel(l)}function z(){return re.INSTANCE.getPixelRatio()}var O=navigator.userAgent,H=O.indexOf("Trident")>=0,x=O.indexOf("Edge/")>=0,u=H||x,y=O.indexOf("Firefox")>=0,_=O.indexOf("AppleWebKit")>=0,f=O.indexOf("Chrome")>=0,v=!f&&O.indexOf("Safari")>=0,w=!f&&!v&&_,p=O.indexOf("iPad")>=0||v&&navigator.maxTouchPoints>0,c=x&&O.indexOf("WebView/")>=0,s=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},DTDp:function(Lt,j,e){},Dvnd:function(Lt,j,e){"use strict";e.r(j);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(162).then(e.bind(null,"y0OK"))}})},"E+ie":function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return e.e(152).then(e.bind(null,"p+q7"))}})},E4kL:function(Lt,j,e){"use strict";e.r(j);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(201).then(e.bind(null,"EaLm"))}})},EIAu:function(Lt,j,e){"use strict";e.d(j,"b",function(){return U}),e.d(j,"a",function(){return p});var T=e("N0LK"),re=e("aokT"),J=function(){function c(s,l,d,m,E,L){this.languageIdentifier=s,this.index=l,this.open=d,this.close=m,this.forwardRegex=E,this.reversedRegex=L,this._openSet=c._toSet(this.open),this._closeSet=c._toSet(this.close)}return c.prototype.isOpen=function(s){return this._openSet.has(s)},c.prototype.isClose=function(s){return this._closeSet.has(s)},c._toSet=function(s){for(var l=new Set,d=0,m=s;d<m.length;d++){var E=m[d];l.add(E)}return l},c}();function I(c){var s=c.length;c=c.map(function(Me){return[Me[0].toLowerCase(),Me[1].toLowerCase()]});for(var l=[],d=0;d<s;d++)l[d]=d;for(var m=function(Te,Fe){var Ue=Te[0],Pe=Te[1],ne=Fe[0],ee=Fe[1];return Ue===ne||Ue===ee||Pe===ne||Pe===ee},E=function(Te,Fe){for(var Ue=Math.min(Te,Fe),Pe=Math.max(Te,Fe),ne=0;ne<s;ne++)l[ne]===Pe&&(l[ne]=Ue)},d=0;d<s;d++)for(var L=c[d],A=d+1;A<s;A++){var k=c[A];m(L,k)&&E(l[d],l[A])}for(var R=[],$=0;$<s;$++){for(var ie=[],W=[],d=0;d<s;d++)if(l[d]===$){var B=c[d],le=B[0],Ce=B[1];ie.push(le),W.push(Ce)}ie.length>0&&R.push({open:ie,close:W})}return R}var U=function(){function c(s,l){var d=I(l);this.brackets=d.map(function(B,le){return new J(s,le,B.open,B.close,x(B.open,B.close,d,le),u(B.open,B.close,d,le))}),this.forwardRegex=y(this.brackets),this.reversedRegex=_(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var m=0,E=this.brackets;m<E.length;m++){for(var L=E[m],A=0,k=L.open;A<k.length;A++){var R=k[A];this.textIsBracket[R]=L,this.textIsOpenBracket[R]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,R.length)}for(var $=0,ie=L.close;$<ie.length;$++){var W=ie[$];this.textIsBracket[W]=L,this.textIsOpenBracket[W]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,W.length)}}}return c}();function z(c,s,l,d){for(var m=0,E=s.length;m<E;m++){if(m===l)continue;for(var L=s[m],A=0,k=L.open;A<k.length;A++){var R=k[A];R.indexOf(c)>=0&&d.push(R)}for(var $=0,ie=L.close;$<ie.length;$++){var W=ie[$];W.indexOf(c)>=0&&d.push(W)}}}function O(c,s){return c.length-s.length}function H(c){if(c.length<=1)return c;for(var s=[],l=new Set,d=0,m=c;d<m.length;d++){var E=m[d];if(l.has(E))continue;s.push(E),l.add(E)}return s}function x(c,s,l,d){var m=[];m=m.concat(c),m=m.concat(s);for(var E=0,L=m.length;E<L;E++)z(m[E],l,d,m);return m=H(m),m.sort(O),m.reverse(),v(m)}function u(c,s,l,d){var m=[];m=m.concat(c),m=m.concat(s);for(var E=0,L=m.length;E<L;E++)z(m[E],l,d,m);return m=H(m),m.sort(O),m.reverse(),v(m.map(w))}function y(c){for(var s=[],l=0,d=c;l<d.length;l++){for(var m=d[l],E=0,L=m.open;E<L.length;E++){var A=L[E];s.push(A)}for(var k=0,R=m.close;k<R.length;k++){var $=R[k];s.push($)}}return s=H(s),v(s)}function _(c){for(var s=[],l=0,d=c;l<d.length;l++){for(var m=d[l],E=0,L=m.open;E<L.length;E++){var A=L[E];s.push(A)}for(var k=0,R=m.close;k<R.length;k++){var $=R[k];s.push($)}}return s=H(s),v(s.map(w))}function f(c){var s=/^[\w ]+$/.test(c);return c=T.p(c),s?"\\b"+c+"\\b":c}function v(c){var s="("+c.map(f).join(")|(")+")";return T.l(s,!0)}var w=function(){function c(d){for(var m="",E=d.length-1;E>=0;E--)m+=d.charAt(E);return m}var s=null,l=null;return function(m){return s!==m&&(s=m,l=c(s)),l}}(),p=function(){function c(){}return c._findPrevBracketInText=function(s,l,d,m){var E=d.match(s);if(!E)return null;var L=d.length-(E.index||0),A=E[0].length,k=m+L;return new re.a(l,k-A+1,l,k+1)},c.findPrevBracketInRange=function(s,l,d,m,E){var L=w(d),A=L.substring(d.length-E,d.length-m);return this._findPrevBracketInText(s,l,A,m)},c.findNextBracketInText=function(s,l,d,m){var E=d.match(s);if(!E)return null;var L=E.index||0,A=E[0].length;if(A===0)return null;var k=m+L;return new re.a(l,k+1,l,k+1+A)},c.findNextBracketInRange=function(s,l,d,m,E){var L=d.substring(m,E);return this.findNextBracketInText(s,l,L,m)},c}()},EOst:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return e.e(198).then(e.bind(null,"87dK"))}})},"EPS+":function(Lt,j,e){},EWX2:function(Lt,j,e){"use strict";e.d(j,"a",function(){return U}),e.d(j,"b",function(){return x});var T=e("bY76"),re=e("gslv"),J=e("Cg/j"),I=e("QDVR"),U=Object(J.c)("contextService"),z;(function(u){function y(_){return _&&typeof _=="object"&&typeof _.id=="string"&&Array.isArray(_.folders)}u.isIWorkspace=y})(z||(z={}));var O;(function(u){function y(_){return _&&typeof _=="object"&&T.a.isUri(_.uri)&&typeof _.name=="string"&&typeof _.toResource=="function"}u.isIWorkspaceFolder=y})(O||(O={}));var H=function(){function u(y,_,f){_===void 0&&(_=[]),f===void 0&&(f=null),this._id=y,this._configuration=f,this._foldersMap=I.c.forPaths(),this.folders=_}return Object.defineProperty(u.prototype,"folders",{get:function(){return this._folders},set:function(_){this._folders=_,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"configuration",{get:function(){return this._configuration},set:function(_){this._configuration=_},enumerable:!0,configurable:!0}),u.prototype.getFolder=function(y){return y&&this._foldersMap.findSubstr(y.with({scheme:y.scheme,authority:y.authority,path:y.path}).toString())||null},u.prototype.updateFoldersMap=function(){this._foldersMap=I.c.forPaths();for(var y=0,_=this.folders;y<_.length;y++){var f=_[y];this._foldersMap.set(f.uri.toString(),f)}},u.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}},u}(),x=function(){function u(y,_){this.raw=_,this.uri=y.uri,this.index=y.index,this.name=y.name}return u.prototype.toResource=function(y){return re.f(this.uri,y)},u.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},u}()},EffR:function(Lt,j,e){"use strict";e.d(j,"t",function(){return p}),e.d(j,"R",function(){return c}),e.d(j,"M",function(){return s}),e.d(j,"I",function(){return E}),e.d(j,"f",function(){return L}),e.d(j,"g",function(){return A}),e.d(j,"P",function(){return k}),e.d(j,"Q",function(){return R}),e.d(j,"Y",function(){return $}),e.d(j,"j",function(){return W}),e.d(j,"o",function(){return Ce}),e.d(j,"n",function(){return Me}),e.d(j,"h",function(){return Te}),e.d(j,"i",function(){return Fe}),e.d(j,"k",function(){return Ue}),e.d(j,"l",function(){return Pe}),e.d(j,"U",function(){return ae}),e.d(j,"W",function(){return q}),e.d(j,"m",function(){return Xe}),e.d(j,"z",function(){return me}),e.d(j,"y",function(){return ge}),e.d(j,"b",function(){return Re}),e.d(j,"F",function(){return Ee}),e.d(j,"C",function(){return ve}),e.d(j,"e",function(){return Q}),e.d(j,"H",function(){return C}),e.d(j,"B",function(){return F}),e.d(j,"A",function(){return se}),e.d(j,"G",function(){return oe}),e.d(j,"K",function(){return be}),e.d(j,"x",function(){return De}),e.d(j,"N",function(){return Ve}),e.d(j,"E",function(){return Qe}),e.d(j,"w",function(){return it}),e.d(j,"v",function(){return zt}),e.d(j,"O",function(){return uo}),e.d(j,"L",function(){return ao}),e.d(j,"d",function(){return so}),e.d(j,"c",function(){return Pt}),e.d(j,"V",function(){return ft}),e.d(j,"T",function(){return vt}),e.d(j,"Z",function(){return at}),e.d(j,"q",function(){return tt}),e.d(j,"a",function(){return bt}),e.d(j,"X",function(){return Gt}),e.d(j,"J",function(){return Nt}),e.d(j,"S",function(){return Je}),e.d(j,"D",function(){return $e}),e.d(j,"u",function(){return ze}),e.d(j,"ab",function(){return Ke}),e.d(j,"p",function(){return fe}),e.d(j,"s",function(){return G}),e.d(j,"r",function(){return te});var T=e("D3Dy"),re=e("4y0V"),J=e("uDWl"),I=e("XSiN"),U=e("X+cX"),z=e("/cxE"),O=e("MI8n"),H=e("pmY6"),x=e("MNsG"),u=e("6OMU"),y=e("tYmi"),_=e("CjF5"),f=function(){var Y=function(ke,lt){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tt,Jt){Tt.__proto__=Jt}||function(Tt,Jt){for(var eo in Jt)Jt.hasOwnProperty(eo)&&(Tt[eo]=Jt[eo])},Y(ke,lt)};return function(de,ke){Y(de,ke);function lt(){this.constructor=de}de.prototype=ke===null?Object.create(ke):(lt.prototype=ke.prototype,new lt)}}(),v=function(){return v=Object.assign||function(Y){for(var de,ke=1,lt=arguments.length;ke<lt;ke++){de=arguments[ke];for(var Tt in de)Object.prototype.hasOwnProperty.call(de,Tt)&&(Y[Tt]=de[Tt])}return Y},v.apply(this,arguments)},w=function(){for(var Y=0,de=0,ke=arguments.length;de<ke;de++)Y+=arguments[de].length;for(var lt=Array(Y),Tt=0,de=0;de<ke;de++)for(var Jt=arguments[de],eo=0,po=Jt.length;eo<po;eo++,Tt++)lt[Tt]=Jt[eo];return lt};function p(Y){for(;Y.firstChild;)Y.removeChild(Y.firstChild)}function c(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,ke){var lt=de.className;if(!lt){this._lastStart=-1;return}ke=ke.trim();var Tt=lt.length,Jt=ke.length;if(Jt===0){this._lastStart=-1;return}if(Tt<Jt){this._lastStart=-1;return}if(lt===ke){this._lastStart=0,this._lastEnd=Tt;return}for(var eo=-1,po;(eo=lt.indexOf(ke,eo+1))>=0;){if(po=eo+Jt,(eo===0||lt.charCodeAt(eo-1)===32)&&lt.charCodeAt(po)===32){this._lastStart=eo,this._lastEnd=po+1;return}if(eo>0&&lt.charCodeAt(eo-1)===32&&po===Tt){this._lastStart=eo-1,this._lastEnd=po;return}if(eo===0&&po===Tt){this._lastStart=0,this._lastEnd=po;return}}this._lastStart=-1},Y.prototype.hasClass=function(de,ke){return this._findClassName(de,ke),this._lastStart!==-1},Y.prototype.addClasses=function(de){for(var ke=this,lt=[],Tt=1;Tt<arguments.length;Tt++)lt[Tt-1]=arguments[Tt];lt.forEach(function(Jt){return Jt.split(" ").forEach(function(eo){return ke.addClass(de,eo)})})},Y.prototype.addClass=function(de,ke){de.className?(this._findClassName(de,ke),this._lastStart===-1&&(de.className=de.className+" "+ke)):de.className=ke},Y.prototype.removeClass=function(de,ke){if(this._findClassName(de,ke),this._lastStart===-1)return;de.className=de.className.substring(0,this._lastStart)+de.className.substring(this._lastEnd)},Y.prototype.removeClasses=function(de){for(var ke=this,lt=[],Tt=1;Tt<arguments.length;Tt++)lt[Tt-1]=arguments[Tt];lt.forEach(function(Jt){return Jt.split(" ").forEach(function(eo){return ke.removeClass(de,eo)})})},Y.prototype.toggleClass=function(de,ke,lt){this._findClassName(de,ke),this._lastStart!==-1&&(lt===void 0||!lt)&&this.removeClass(de,ke),this._lastStart===-1&&(lt===void 0||lt)&&this.addClass(de,ke)},Y}()),d=new(function(){function Y(){}return Y.prototype.hasClass=function(de,ke){return Boolean(ke)&&de.classList&&de.classList.contains(ke)},Y.prototype.addClasses=function(de){for(var ke=this,lt=[],Tt=1;Tt<arguments.length;Tt++)lt[Tt-1]=arguments[Tt];lt.forEach(function(Jt){return Jt.split(" ").forEach(function(eo){return ke.addClass(de,eo)})})},Y.prototype.addClass=function(de,ke){ke&&de.classList&&de.classList.add(ke)},Y.prototype.removeClass=function(de,ke){ke&&de.classList&&de.classList.remove(ke)},Y.prototype.removeClasses=function(de){for(var ke=this,lt=[],Tt=1;Tt<arguments.length;Tt++)lt[Tt-1]=arguments[Tt];lt.forEach(function(Jt){return Jt.split(" ").forEach(function(eo){return ke.removeClass(de,eo)})})},Y.prototype.toggleClass=function(de,ke,lt){de.classList&&de.classList.toggle(ke,lt)},Y}()),m=T.i?l:d,E=m.hasClass.bind(m),L=m.addClass.bind(m),A=m.addClasses.bind(m),k=m.removeClass.bind(m),R=m.removeClasses.bind(m),$=m.toggleClass.bind(m),ie=function(){function Y(de,ke,lt,Tt){this._node=de,this._type=ke,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,ke,lt){return new ie(Y,de,ke,lt)}function B(Y){return function(de){return Y(new I.b(de))}}function le(Y){return function(de){return Y(new J.a(de))}}var Ce=function(de,ke,lt,Tt){var Jt=lt;return ke==="click"||ke==="mousedown"?Jt=B(lt):(ke==="keydown"||ke==="keypress"||ke==="keyup")&&(Jt=le(lt)),W(de,ke,Jt,Tt)},Me=function(de,ke,lt){var Tt=B(ke);return Te(de,Tt,lt)};function Te(Y,de,ke){return W(Y,x.c&&_.a.pointerEvents?so.POINTER_DOWN:so.MOUSE_DOWN,de,ke)}function Fe(Y,de,ke){return W(Y,x.c&&_.a.pointerEvents?so.POINTER_UP:so.MOUSE_UP,de,ke)}function Ue(Y,de){return W(Y,"mouseout",function(ke){for(var lt=ke.relatedTarget;lt&&lt!==Y;)lt=lt.parentNode;if(lt===Y)return;de(ke)})}function Pe(Y,de){return W(Y,"pointerout",function(ke){for(var lt=ke.relatedTarget;lt&&lt!==Y;)lt=lt.parentNode;if(lt===Y)return;de(ke)})}var ne=null;function ee(Y){if(!ne){var de=function(lt){return setTimeout(function(){return lt(new Date().getTime())},0)};ne=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||de}return ne.call(self,Y)}var ae,q,ue=function(){function Y(de,ke){ke===void 0&&(ke=0),this._runner=de,this.priority=ke,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,ke){return ke.priority-de.priority},Y}();(function(){var Y=[],de=null,ke=!1,lt=!1,Tt=function(){for(ke=!1,de=Y,Y=[],lt=!0;de.length>0;){de.sort(ue.sort);var eo=de.shift();eo.execute()}lt=!1};q=function(eo,po){po===void 0&&(po=0);var co=new ue(eo,po);return Y.push(co),ke||(ke=!0,ee(Tt)),co},ae=function(eo,po){if(lt){var co=new ue(eo,po);return de.push(co),co}else return q(eo,po)}})();var X=16,he=function(de,ke){return ke},je=function(Y){f(de,Y);function de(ke,lt,Tt,Jt,eo){Jt===void 0&&(Jt=he),eo===void 0&&(eo=X);var po=Y.call(this)||this,co=null,Eo=0,Oo=po._register(new U.e),Ao=function(){Eo=new Date().getTime(),Tt(co),co=null};return po._register(W(ke,lt,function(Zo){co=Jt(co,Zo);var Co=new Date().getTime()-Eo;Co>=eo?(Oo.cancel(),Ao()):Oo.setIfNotSet(Ao,eo-Co)})),po}return de}(H.a);function Xe(Y,de,ke,lt,Tt){return new je(Y,de,ke,lt,Tt)}function me(Y){return document.defaultView.getComputedStyle(Y,null)}function ge(Y){if(Y!==document.body)return new Re(Y.clientWidth,Y.clientHeight);if(x.c&&window.visualViewport){var de=window.visualViewport.width,ke=window.visualViewport.height-(T.l?20+4:0);return new Re(de,ke)}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 we=function(){function Y(){}return Y.convertToPixels=function(de,ke){return parseFloat(ke)||0},Y.getDimension=function(de,ke,lt){var Tt=me(de),Jt="0";return Tt&&(Tt.getPropertyValue?Jt=Tt.getPropertyValue(ke):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,ke){this.width=de,this.height=ke}return Y}();function Ee(Y){for(var de=Y.offsetParent,ke=Y.offsetTop,lt=Y.offsetLeft;(Y=Y.parentNode)!==null&&Y!==document.body&&Y!==document.documentElement;){ke-=Y.scrollTop;var Tt=Se(Y)?null:me(Y);Tt&&(lt-=Tt.direction!=="rtl"?Y.scrollLeft:-Y.scrollLeft),Y===de&&(lt+=we.getBorderLeftWidth(Y),ke+=we.getBorderTopWidth(Y),ke+=Y.offsetTop,lt+=Y.offsetLeft,de=Y.offsetParent)}return{left:lt,top:ke}}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 C(Y){var de=we.getMarginLeft(Y)+we.getMarginRight(Y);return Y.offsetWidth+de}function F(Y){var de=we.getBorderLeftWidth(Y)+we.getBorderRightWidth(Y),ke=we.getPaddingLeft(Y)+we.getPaddingRight(Y);return Y.offsetWidth-de-ke}function se(Y){var de=we.getBorderTopWidth(Y)+we.getBorderBottomWidth(Y),ke=we.getPaddingTop(Y)+we.getPaddingBottom(Y);return Y.offsetHeight-de-ke}function oe(Y){var de=we.getMarginTop(Y)+we.getMarginBottom(Y);return Y.offsetHeight+de}function be(Y,de){for(;Y;){if(Y===de)return!0;Y=Y.parentNode}return!1}function De(Y,de,ke){for(;Y&&Y.nodeType===Y.ELEMENT_NODE;){if(E(Y,de))return Y;if(ke){if(typeof ke=="string"){if(E(Y,ke))return null}else if(Y===ke)return null}Y=Y.parentNode}return null}function Se(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 Se(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 pt=null;function Rt(){return pt||(pt=it()),pt}function Mt(Y){return Y&&Y.sheet&&Y.sheet.rules?Y.sheet.rules:Y&&Y.sheet&&Y.sheet.cssRules?Y.sheet.cssRules:[]}function zt(Y,de,ke){if(ke===void 0&&(ke=Rt()),!ke||!de)return;ke.sheet.insertRule(Y+"{"+de+"}",0)}function uo(Y,de){if(de===void 0&&(de=Rt()),!de)return;for(var ke=Mt(de),lt=[],Tt=0;Tt<ke.length;Tt++){var Jt=ke[Tt];Jt.selectorText.indexOf(Y)!==-1&&lt.push(Tt)}for(var Tt=lt.length-1;Tt>=0;Tt--)de.sheet.deleteRule(lt[Tt])}function ao(Y){return typeof HTMLElement=="object"?Y instanceof HTMLElement:Y&&typeof Y=="object"&&Y.nodeType===1&&typeof Y.nodeName=="string"}var so={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"},Pt={stop:function(de,ke){de.preventDefault?de.preventDefault():de.returnValue=!1,ke&&(de.stopPropagation?de.stopPropagation():de.cancelBubble=!0)}};function ft(Y){for(var de=[],ke=0;Y&&Y.nodeType===Y.ELEMENT_NODE;ke++)de[ke]=Y.scrollTop,Y=Y.parentNode;return de}function vt(Y,de){for(var ke=0;Y&&Y.nodeType===Y.ELEMENT_NODE;ke++)Y.scrollTop!==de[ke]&&(Y.scrollTop=de[ke]),Y=Y.parentNode}var At=function(Y){f(de,Y);function de(ke){var lt=Y.call(this)||this;lt._onDidFocus=lt._register(new O.a),lt.onDidFocus=lt._onDidFocus.event,lt._onDidBlur=lt._register(new O.a),lt.onDidBlur=lt._onDidBlur.event;var Tt=be(document.activeElement,ke),Jt=!1,eo=function(){Jt=!1,Tt||(Tt=!0,lt._onDidFocus.fire())},po=function(){Tt&&(Jt=!0,window.setTimeout(function(){Jt&&(Jt=!1,Tt=!1,lt._onDidBlur.fire())},0))};return lt._refreshStateHandler=function(){var co=be(document.activeElement,ke);co!==Tt&&(Tt?po():eo())},lt._register(Object(re.a)(ke,so.FOCUS,!0)(eo)),lt._register(Object(re.a)(ke,so.BLUR,!0)(po)),lt}return de}(H.a);function at(Y){return new At(Y)}function tt(Y){for(var de=[],ke=1;ke<arguments.length;ke++)de[ke-1]=arguments[ke];return de.forEach(function(lt){return Y.appendChild(lt)}),de[de.length-1]}var ut=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/,Ct;(function(Y){Y.HTML="http://www.w3.org/1999/xhtml",Y.SVG="http://www.w3.org/2000/svg"})(Ct||(Ct={}));function gt(Y,de,ke){for(var lt=[],Tt=3;Tt<arguments.length;Tt++)lt[Tt-3]=arguments[Tt];var Jt=ut.exec(de);if(!Jt)throw new Error("Bad use of emmet");ke=v({},ke||{});var eo=Jt[1]||"div",po;return Y!==Ct.HTML?po=document.createElementNS(Y,eo):po=document.createElement(eo),Jt[3]&&(po.id=Jt[3]),Jt[4]&&(po.className=Jt[4].replace(/\./g," ").trim()),Object.keys(ke).forEach(function(co){var Eo=ke[co];if(typeof Eo=="undefined")return;/^on\w+$/.test(co)?po[co]=Eo:co==="selected"?Eo&&po.setAttribute(co,"true"):po.setAttribute(co,Eo)}),Object(u.d)(lt).forEach(function(co){co instanceof Node?po.appendChild(co):po.appendChild(document.createTextNode(co))}),po}function bt(Y,de){for(var ke=[],lt=2;lt<arguments.length;lt++)ke[lt-2]=arguments[lt];return gt.apply(void 0,w([Ct.HTML,Y,de],ke))}bt.SVG=function(Y,de){for(var ke=[],lt=2;lt<arguments.length;lt++)ke[lt-2]=arguments[lt];return gt.apply(void 0,w([Ct.SVG,Y,de],ke))};function Gt(){for(var Y=[],de=0;de<arguments.length;de++)Y[de]=arguments[de];for(var ke=0,lt=Y;ke<lt.length;ke++){var Tt=lt[ke];Tt.style.display="",Tt.removeAttribute("aria-hidden")}}function Nt(){for(var Y=[],de=0;de<arguments.length;de++)Y[de]=arguments[de];for(var ke=0,lt=Y;ke<lt.length;ke++){var Tt=lt[ke];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(x.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(),ke=q(lt)},ke=q(de);return Object(H.h)(function(){return ke.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(Lt,j,e){},FWmy:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});function T(re,J){if(!re)throw new Error(J?"Assertion failed ("+J+")":"Assertion Failed")}},FvUK:function(Lt,j,e){"use strict";e.r(j);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(163).then(e.bind(null,"OfHX"))}})},G2kB:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});var T=e("Cg/j"),re=Object(T.c)("modelService");function J(I){return!I.isTooLargeForSyncing()&&!I.isForSimpleWidget}},G300:function(Lt,j,e){"use strict";e.d(j,"a",function(){return O});var T=e("EffR"),re=e("uDWl"),J=e("XSiN"),I=e("pmY6"),U=e("pg8w"),z=function(){var H=function(u,y){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,f){_.__proto__=f}||function(_,f){for(var v in f)f.hasOwnProperty(v)&&(_[v]=f[v])},H(u,y)};return function(x,u){H(x,u);function y(){this.constructor=x}x.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),O=function(H){z(x,H);function x(){return H!==null&&H.apply(this,arguments)||this}return x.prototype.onclick=function(u,y){this._register(T.j(u,T.d.CLICK,function(_){return y(new J.b(_))}))},x.prototype.onmousedown=function(u,y){this._register(T.j(u,T.d.MOUSE_DOWN,function(_){return y(new J.b(_))}))},x.prototype.onmouseover=function(u,y){this._register(T.j(u,T.d.MOUSE_OVER,function(_){return y(new J.b(_))}))},x.prototype.onnonbubblingmouseout=function(u,y){this._register(T.k(u,function(_){return y(new J.b(_))}))},x.prototype.onkeydown=function(u,y){this._register(T.j(u,T.d.KEY_DOWN,function(_){return y(new re.a(_))}))},x.prototype.onkeyup=function(u,y){this._register(T.j(u,T.d.KEY_UP,function(_){return y(new re.a(_))}))},x.prototype.oninput=function(u,y){this._register(T.j(u,T.d.INPUT,y))},x.prototype.onblur=function(u,y){this._register(T.j(u,T.d.BLUR,y))},x.prototype.onfocus=function(u,y){this._register(T.j(u,T.d.FOCUS,y))},x.prototype.ignoreGesture=function(u){U.b.ignoreTarget(u)},x}(I.a)},GJhM:function(Lt,j,e){"use strict";e.d(j,"b",function(){return Te}),e.d(j,"c",function(){return Fe}),e.d(j,"a",function(){return Ue});var T=e("eq1K"),re=e("D3Dy"),J=e("EffR"),I=e("ZlPH"),U=e("XSiN"),z=e("AKMP"),O=e("G300"),H=e("X+cX"),x=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),u=11,y=function(ne){x(ee,ne);function ee(ae){var q=ne.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=u+"px",q.domNode.style.height=u+"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(ue){return q._arrowMouseDown(ue)}),q.onmousedown(q.domNode,function(ue){return q._arrowMouseDown(ue)}),q._mousedownRepeatTimer=q._register(new H.c),q._mousedownScheduleRepeatTimer=q._register(new H.e),q}return ee.prototype._arrowMouseDown=function(ae){var q=this,ue=function(){q._mousedownRepeatTimer.cancelAndSet(function(){return q._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(ue,200),this._mouseMoveMonitor.startMonitoring(ae.target,ae.buttons,z.b,function(X){},function(){q._mousedownRepeatTimer.cancel(),q._mousedownScheduleRepeatTimer.cancel()}),ae.preventDefault()},ee}(O.a),_=e("pmY6"),f=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),v=function(ne){f(ee,ne);function ee(ae,q,ue){var X=ne.call(this)||this;return X._visibility=ae,X._visibleClassName=q,X._invisibleClassName=ue,X._domNode=null,X._isVisible=!1,X._isNeeded=!1,X._shouldBeVisible=!1,X._revealTimer=X._register(new H.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}(_.a),w=e("MNsG"),p=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),c=140,s=function(ne){p(ee,ne);function ee(ae){var q=ne.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(I.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(ue){return q._domNodeMouseDown(ue)}),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,ue,X){var he=this;this.slider=Object(I.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(ae),this.slider.setLeft(q),typeof ue=="number"&&this.slider.setWidth(ue),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(je){je.leftButton&&(je.preventDefault(),he._sliderMouseDown(je,function(){}))}),this.onclick(this.slider.domNode,function(je){je.leftButton&&je.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,ue=q+this._scrollbarState.getSliderPosition(),X=q+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),he=this._sliderMousePosition(ae);ue<=he&&he<=X?ae.leftButton&&(ae.preventDefault(),this._sliderMouseDown(ae,function(){})):this._onMouseDown(ae)},ee.prototype._onMouseDown=function(ae){var q,ue;if(ae.target===this.domNode.domNode&&typeof ae.browserEvent.offsetX=="number"&&typeof ae.browserEvent.offsetY=="number")q=ae.browserEvent.offsetX,ue=ae.browserEvent.offsetY;else{var X=J.C(this.domNode.domNode);q=ae.posx-X.left,ue=ae.posy-X.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(q,ue))),ae.leftButton&&(ae.preventDefault(),this._sliderMouseDown(ae,function(){}))},ee.prototype._sliderMouseDown=function(ae,q){var ue=this,X=this._sliderMousePosition(ae),he=this._sliderOrthogonalMousePosition(ae),je=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(ae.target,ae.buttons,z.b,function(Xe){var me=ue._sliderOrthogonalMousePosition(Xe),ge=Math.abs(me-he);if(w.h&&ge>c){ue._setDesiredScrollPositionNow(je.getScrollPosition());return}var we=ue._sliderMousePosition(Xe),Re=we-X;ue._setDesiredScrollPositionNow(je.getDesiredScrollPositionFromDelta(Re))},function(){ue.slider.toggleClassName("active",!1),ue._host.onDragEnd(),q()}),this._host.onDragStart()},ee.prototype._setDesiredScrollPositionNow=function(ae){var q={};this.writeScrollPosition(q,ae),this._scrollable.setScrollPositionNow(q)},ee}(O.a),l=20,d=function(){function ne(ee,ae,q,ue,X,he){this._scrollbarSize=Math.round(ae),this._oppositeScrollbarSize=Math.round(q),this._arrowSize=Math.round(ee),this._visibleSize=ue,this._scrollSize=X,this._scrollPosition=he,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return ne.prototype.clone=function(){return new ne(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},ne.prototype.setVisibleSize=function(ee){var ae=Math.round(ee);return this._visibleSize!==ae?(this._visibleSize=ae,this._refreshComputedValues(),!0):!1},ne.prototype.setScrollSize=function(ee){var ae=Math.round(ee);return this._scrollSize!==ae?(this._scrollSize=ae,this._refreshComputedValues(),!0):!1},ne.prototype.setScrollPosition=function(ee){var ae=Math.round(ee);return this._scrollPosition!==ae?(this._scrollPosition=ae,this._refreshComputedValues(),!0):!1},ne._computeValues=function(ee,ae,q,ue,X){var he=Math.max(0,q-ee),je=Math.max(0,he-2*ae),Xe=ue>0&&ue>q;if(!Xe)return{computedAvailableSize:Math.round(he),computedIsNeeded:Xe,computedSliderSize:Math.round(je),computedSliderRatio:0,computedSliderPosition:0};var me=Math.round(Math.max(l,Math.floor(q*je/ue))),ge=(je-me)/(ue-q),we=X*ge;return{computedAvailableSize:Math.round(he),computedIsNeeded:Xe,computedSliderSize:Math.round(me),computedSliderRatio:ge,computedSliderPosition:Math.round(we)}},ne.prototype._refreshComputedValues=function(){var ee=ne._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},ne.prototype.getArrowSize=function(){return this._arrowSize},ne.prototype.getScrollPosition=function(){return this._scrollPosition},ne.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},ne.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},ne.prototype.isNeeded=function(){return this._computedIsNeeded},ne.prototype.getSliderSize=function(){return this._computedSliderSize},ne.prototype.getSliderPosition=function(){return this._computedSliderPosition},ne.prototype.getDesiredScrollPositionFromOffset=function(ee){if(!this._computedIsNeeded)return 0;var ae=ee-this._arrowSize-this._computedSliderSize/2;return Math.round(ae/this._computedSliderRatio)},ne.prototype.getDesiredScrollPositionFromDelta=function(ee){if(!this._computedIsNeeded)return 0;var ae=this._computedSliderPosition+ee;return Math.round(ae/this._computedSliderRatio)},ne}(),m=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),E=function(ne){m(ee,ne);function ee(ae,q,ue){var X=this,he=ae.getScrollDimensions(),je=ae.getCurrentScrollPosition();if(X=ne.call(this,{lazyRender:q.lazyRender,host:ue,scrollbarState:new d(q.horizontalHasArrows?q.arrowSize:0,q.horizontal===2?0:q.horizontalScrollbarSize,q.vertical===2?0:q.verticalScrollbarSize,he.width,he.scrollWidth,je.scrollLeft),visibility:q.horizontal,extraScrollbarClassName:"horizontal",scrollable:ae})||this,q.horizontalHasArrows){var Xe=(q.arrowSize-u)/2,me=(q.horizontalScrollbarSize-u)/2;X._createArrow({className:"left-arrow",top:me,left:Xe,bottom:void 0,right:void 0,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return X._host.onMouseWheel(new U.c(null,1,0))}}),X._createArrow({className:"right-arrow",top:me,left:void 0,bottom:void 0,right:Xe,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return X._host.onMouseWheel(new U.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),L=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),A=function(ne){L(ee,ne);function ee(ae,q,ue){var X=this,he=ae.getScrollDimensions(),je=ae.getCurrentScrollPosition();if(X=ne.call(this,{lazyRender:q.lazyRender,host:ue,scrollbarState:new d(q.verticalHasArrows?q.arrowSize:0,q.vertical===2?0:q.verticalScrollbarSize,0,he.height,he.scrollHeight,je.scrollTop),visibility:q.vertical,extraScrollbarClassName:"vertical",scrollable:ae})||this,q.verticalHasArrows){var Xe=(q.arrowSize-u)/2,me=(q.verticalScrollbarSize-u)/2;X._createArrow({className:"up-arrow",top:Xe,left:me,bottom:void 0,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return X._host.onMouseWheel(new U.c(null,0,1))}}),X._createArrow({className:"down-arrow",top:void 0,left:me,bottom:Xe,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return X._host.onMouseWheel(new U.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),k=e("MI8n"),R=e("QuOb"),$=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(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 ne(ee,ae,q){this.timestamp=ee,this.deltaX=ae,this.deltaY=q,this.score=0}return ne}(),Ce=function(){function ne(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return ne.prototype.isPhysicalMouseWheel=function(){if(this._front===-1&&this._rear===-1)return!1;var ee=1,ae=0,q=1,ue=this._rear;do{var X=ue===this._front?ee:Math.pow(2,-q);if(ee-=X,ae+=this._memory[ue].score*X,ue===this._front)break;ue=(this._capacity+ue-1)%this._capacity,q++}while(!0);return ae<=.5},ne.prototype.accept=function(ee,ae,q){var ue=new le(ee,ae,q);ue.score=this._computeScore(ue),this._front===-1&&this._rear===-1?(this._memory[0]=ue,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]=ue)},ne.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)},ne.INSTANCE=new ne,ne}(),Me=function(ne){$(ee,ne);function ee(ae,q,ue){var X=ne.call(this)||this;X._onScroll=X._register(new k.a),X.onScroll=X._onScroll.event,ae.style.overflow="hidden",X._options=Pe(q),X._scrollable=ue,X._register(X._scrollable.onScroll(function(je){X._onDidScroll(je),X._onScroll.fire(je)}));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 A(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(I.b)(document.createElement("div")),X._leftShadowDomNode.setClassName("shadow"),X._domNode.appendChild(X._leftShadowDomNode.domNode),X._topShadowDomNode=Object(I.b)(document.createElement("div")),X._topShadowDomNode.setClassName("shadow"),X._domNode.appendChild(X._topShadowDomNode.domNode),X._topLeftShadowDomNode=Object(I.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(je){return X._onMouseOver(je)}),X.onnonbubblingmouseout(X._listenOnDomNode,function(je){return X._onMouseOut(je)}),X._hideTimeout=X._register(new H.e),X._isDragging=!1,X._mouseIsOver=!1,X._shouldRender=!0,X._revealOnScroll=!0,X}return ee.prototype.dispose=function(){this._mouseWheelToDispose=Object(_.f)(this._mouseWheelToDispose),ne.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,w.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},ee.prototype.updateOptions=function(ae){var q=Pe(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,ue=this._mouseWheelToDispose.length>0;if(ue===ae)return;if(this._mouseWheelToDispose=Object(_.f)(this._mouseWheelToDispose),ae){var X=function(je){q._onMouseWheel(new U.c(je))};this._mouseWheelToDispose.push(J.j(this._listenOnDomNode,re.f?"mousewheel":"wheel",X,{passive:!1}))}},ee.prototype._onMouseWheel=function(ae){var q,ue=Ce.INSTANCE;if(B&&ue.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 je=!w.e&&ae.browserEvent&&ae.browserEvent.shiftKey;(this._options.scrollYToX||je)&&!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(),me={};if(X){var ge=Xe.scrollTop-W*X;this._verticalScrollbar.writeScrollPosition(me,ge)}if(he){var we=Xe.scrollLeft-W*he;this._horizontalScrollbar.writeScrollPosition(me,we)}if(me=this._scrollable.validateScrollPosition(me),Xe.scrollLeft!==me.scrollLeft||Xe.scrollTop!==me.scrollTop){var Re=B&&this._options.mouseWheelSmoothScroll&&ue.isPhysicalMouseWheel();Re?this._scrollable.setScrollPositionSmooth(me):this._scrollable.setScrollPositionNow(me),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,ue=ae.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(ue?" left":"")),this._topShadowDomNode.setClassName("shadow"+(q?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(q?" top":"")+(ue?" 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}(O.a),Te=function(ne){$(ee,ne);function ee(ae,q){var ue=this;q=q||{},q.mouseWheelSmoothScroll=!1;var X=new R.a(0,function(he){return J.W(he)});return ue=ne.call(this,ae,q,X)||this,ue._register(X),ue}return ee.prototype.setScrollPosition=function(ae){this._scrollable.setScrollPositionNow(ae)},ee.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},ee}(Me),Fe=function(ne){$(ee,ne);function ee(ae,q,ue){return ne.call(this,ae,q,ue)||this}return ee}(Me),Ue=function(ne){$(ee,ne);function ee(ae,q){var ue=ne.call(this,ae,q)||this;return ue._element=ae,ue.onScroll(function(X){X.scrollTopChanged&&(ue._element.scrollTop=X.scrollTop),X.scrollLeftChanged&&(ue._element.scrollLeft=X.scrollLeft)}),ue.scanDomNode(),ue}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 Pe(ne){var ee={lazyRender:typeof ne.lazyRender!="undefined"?ne.lazyRender:!1,className:typeof ne.className!="undefined"?ne.className:"",useShadows:typeof ne.useShadows!="undefined"?ne.useShadows:!0,handleMouseWheel:typeof ne.handleMouseWheel!="undefined"?ne.handleMouseWheel:!0,flipAxes:typeof ne.flipAxes!="undefined"?ne.flipAxes:!1,alwaysConsumeMouseWheel:typeof ne.alwaysConsumeMouseWheel!="undefined"?ne.alwaysConsumeMouseWheel:!1,scrollYToX:typeof ne.scrollYToX!="undefined"?ne.scrollYToX:!1,mouseWheelScrollSensitivity:typeof ne.mouseWheelScrollSensitivity!="undefined"?ne.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof ne.fastScrollSensitivity!="undefined"?ne.fastScrollSensitivity:5,mouseWheelSmoothScroll:typeof ne.mouseWheelSmoothScroll!="undefined"?ne.mouseWheelSmoothScroll:!0,arrowSize:typeof ne.arrowSize!="undefined"?ne.arrowSize:11,listenOnDomNode:typeof ne.listenOnDomNode!="undefined"?ne.listenOnDomNode:null,horizontal:typeof ne.horizontal!="undefined"?ne.horizontal:1,horizontalScrollbarSize:typeof ne.horizontalScrollbarSize!="undefined"?ne.horizontalScrollbarSize:10,horizontalSliderSize:typeof ne.horizontalSliderSize!="undefined"?ne.horizontalSliderSize:0,horizontalHasArrows:typeof ne.horizontalHasArrows!="undefined"?ne.horizontalHasArrows:!1,vertical:typeof ne.vertical!="undefined"?ne.vertical:1,verticalScrollbarSize:typeof ne.verticalScrollbarSize!="undefined"?ne.verticalScrollbarSize:10,verticalHasArrows:typeof ne.verticalHasArrows!="undefined"?ne.verticalHasArrows:!1,verticalSliderSize:typeof ne.verticalSliderSize!="undefined"?ne.verticalSliderSize:0};return ee.horizontalSliderSize=typeof ne.horizontalSliderSize!="undefined"?ne.horizontalSliderSize:ee.horizontalScrollbarSize,ee.verticalSliderSize=typeof ne.verticalSliderSize!="undefined"?ne.verticalSliderSize:ee.verticalScrollbarSize,w.e&&(ee.className+=" mac"),ee}},"GR/f":function(Lt,j,e){"use strict";e.d(j,"a",function(){return f}),e.d(j,"b",function(){return v});var T=e("/cxE"),re=e("N0LK"),J=e("LCkn"),I=e("zN7H"),U=e("aokT"),z=e("gCVg"),O=function(){function w(p,c,s){this._range=p,this._charBeforeSelection=c,this._charAfterSelection=s}return w.prototype.getEditOperations=function(p,c){c.addTrackedEditOperation(new U.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),c.addTrackedEditOperation(new U.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},w.prototype.computeCursorState=function(p,c){var s=c.getInverseEditOperations(),l=s[0].range,d=s[1].range;return new z.a(l.endLineNumber,l.endColumn,d.endLineNumber,d.endColumn-this._charAfterSelection.length)},w}(),H=e("Ll0s"),x=e("5v8Y"),u=e("KDc4"),y=e("cMvZ"),_=function(){var w=function(c,s){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var m in d)d.hasOwnProperty(m)&&(l[m]=d[m])},w(c,s)};return function(p,c){w(p,c);function s(){this.constructor=p}p.prototype=c===null?Object.create(c):(s.prototype=c.prototype,new s)}}(),f=function(){function w(){}return w.indent=function(p,c,s){if(c===null||s===null)return[];for(var l=[],d=0,m=s.length;d<m;d++)l[d]=new I.a(s[d],{isUnshift:!1,tabSize:p.tabSize,indentSize:p.indentSize,insertSpaces:p.insertSpaces,useTabStops:p.useTabStops,autoIndent:p.autoIndent});return l},w.outdent=function(p,c,s){for(var l=[],d=0,m=s.length;d<m;d++)l[d]=new I.a(s[d],{isUnshift:!0,tabSize:p.tabSize,indentSize:p.indentSize,insertSpaces:p.insertSpaces,useTabStops:p.useTabStops,autoIndent:p.autoIndent});return l},w.shiftIndent=function(p,c,s){return s=s||1,I.a.shiftIndent(c,c.length+s,p.tabSize,p.indentSize,p.insertSpaces)},w.unshiftIndent=function(p,c,s){return s=s||1,I.a.unshiftIndent(c,c.length+s,p.tabSize,p.indentSize,p.insertSpaces)},w._distributedPaste=function(p,c,s,l){for(var d=[],m=0,E=s.length;m<E;m++)d[m]=new J.a(s[m],l[m]);return new H.e(0,d,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},w._simplePaste=function(p,c,s,l,d){for(var m=[],E=0,L=s.length;E<L;E++){var A=s[E],k=A.getPosition();if(d&&!A.isEmpty()&&(d=!1),d&&l.indexOf(`
`)!==l.length-1&&(d=!1),d){var R=new U.a(k.lineNumber,1,k.lineNumber,1);m[E]=new J.b(R,l,A,!0)}else m[E]=new J.a(A,l)}return new H.e(0,m,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},w._distributePasteToCursors=function(p,c,s,l,d){if(l)return null;if(c.length===1)return null;if(d&&d.length===c.length)return d;if(p.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 m=s.split(/\r\n|\r|\n/);if(m.length===c.length)return m}return null},w.paste=function(p,c,s,l,d,m){var E=this._distributePasteToCursors(p,s,l,d,m);return E?(s=s.sort(U.a.compareRangesUsingStarts),this._distributedPaste(p,c,s,E)):this._simplePaste(p,c,s,l,d)},w._goodIndentForLine=function(p,c,s){var l=null,d="",m=y.a.getInheritIndentForLine(p.autoIndent,c,s,!1);if(m)l=m.action,d=m.indentation;else if(s>1){var E=void 0;for(E=s-1;E>=1;E--){var L=c.getLineContent(E),A=re.D(L);if(A>=0)break}if(E<1)return null;var k=c.getLineMaxColumn(E),R=y.a.getEnterAction(p.autoIndent,c,new U.a(E,k,E,k));R&&(d=R.indentation+R.appendText)}return l&&(l===u.a.Indent&&(d=w.shiftIndent(p,d)),l===u.a.Outdent&&(d=w.unshiftIndent(p,d)),d=p.normalizeIndentation(d)),d||null},w._replaceJumpToNextIndent=function(p,c,s,l){var d="",m=s.getStartPosition();if(p.insertSpaces)for(var E=H.a.visibleColumnFromColumn2(p,c,m),L=p.indentSize,A=L-E%L,k=0;k<A;k++)d+=" ";else d=" ";return new J.a(s,d,l)},w.tab=function(p,c,s){for(var l=[],d=0,m=s.length;d<m;d++){var E=s[d];if(E.isEmpty()){var L=c.getLineContent(E.startLineNumber);if(/^\s*$/.test(L)&&c.isCheapToTokenize(E.startLineNumber)){var A=this._goodIndentForLine(p,c,E.startLineNumber);A=A||" ";var k=p.normalizeIndentation(A);if(!re.N(L,k)){l[d]=new J.a(new U.a(E.startLineNumber,1,E.startLineNumber,L.length+1),k,!0);continue}}l[d]=this._replaceJumpToNextIndent(p,c,E,!0)}else{if(E.startLineNumber===E.endLineNumber){var R=c.getLineMaxColumn(E.startLineNumber);if(E.startColumn!==1||E.endColumn!==R){l[d]=this._replaceJumpToNextIndent(p,c,E,!1);continue}}l[d]=new I.a(E,{isUnshift:!1,tabSize:p.tabSize,indentSize:p.indentSize,insertSpaces:p.insertSpaces,useTabStops:p.useTabStops,autoIndent:p.autoIndent})}}return l},w.replacePreviousChar=function(p,c,s,l,d,m){for(var E=[],L=0,A=l.length;L<A;L++){var k=l[L];if(!k.isEmpty()){E[L]=null;continue}var R=k.getPosition(),$=Math.max(1,R.column-m),ie=new U.a(R.lineNumber,$,R.lineNumber,R.column);E[L]=new J.a(ie,d)}return new H.e(1,E,{shouldPushStackElementBefore:p!==1,shouldPushStackElementAfter:!1})},w._typeCommand=function(p,c,s){return s?new J.e(p,c,!0):new J.a(p,c,!0)},w._enter=function(p,c,s,l){if(p.autoIndent===0)return w._typeCommand(l,`
`,s);if(!c.isCheapToTokenize(l.getStartPosition().lineNumber)||p.autoIndent===1){var d=c.getLineContent(l.startLineNumber),m=re.t(d).substring(0,l.startColumn-1);return w._typeCommand(l,`
`+p.normalizeIndentation(m),s)}var E=y.a.getEnterAction(p.autoIndent,c,l);if(E){if(E.indentAction===u.a.None)return w._typeCommand(l,`
`+p.normalizeIndentation(E.indentation+E.appendText),s);if(E.indentAction===u.a.Indent)return w._typeCommand(l,`
`+p.normalizeIndentation(E.indentation+E.appendText),s);if(E.indentAction===u.a.IndentOutdent){var L=p.normalizeIndentation(E.indentation),A=p.normalizeIndentation(E.indentation+E.appendText),k=`
`+A+`
`+L;return s?new J.e(l,k,!0):new J.d(l,k,-1,A.length-L.length,!0)}else if(E.indentAction===u.a.Outdent){var R=w.unshiftIndent(p,E.indentation);return w._typeCommand(l,`
`+p.normalizeIndentation(R+E.appendText),s)}}var $=c.getLineContent(l.startLineNumber),ie=re.t($).substring(0,l.startColumn-1);if(p.autoIndent>=4){var W=y.a.getIndentForEnter(p.autoIndent,c,l,{unshiftIndent:function(Pe){return w.unshiftIndent(p,Pe)},shiftIndent:function(Pe){return w.shiftIndent(p,Pe)},normalizeIndentation:function(Pe){return p.normalizeIndentation(Pe)}});if(W){var B=H.a.visibleColumnFromColumn2(p,c,l.getEndPosition()),le=l.endColumn,Ce=`
`;ie!==p.normalizeIndentation(W.beforeEnter)&&(Ce=p.normalizeIndentation(W.beforeEnter)+$.substring(ie.length,l.startColumn-1)+`
`,l=new U.a(l.startLineNumber,1,l.endLineNumber,l.endColumn));var Me=c.getLineContent(l.endLineNumber),Te=re.q(Me);if(Te>=0?l=l.setEndPosition(l.endLineNumber,Math.max(l.endColumn,Te+1)):l=l.setEndPosition(l.endLineNumber,c.getLineMaxColumn(l.endLineNumber)),s)return new J.e(l,Ce+p.normalizeIndentation(W.afterEnter),!0);var Fe=0;return le<=Te+1&&(p.insertSpaces||(B=Math.ceil(B/p.indentSize)),Fe=Math.min(B+1-p.normalizeIndentation(W.afterEnter).length-1,0)),new J.d(l,Ce+p.normalizeIndentation(W.afterEnter),0,Fe,!0)}}return w._typeCommand(l,`
`+p.normalizeIndentation(ie),s)},w._isAutoIndentType=function(p,c,s){if(p.autoIndent<4)return!1;for(var l=0,d=s.length;l<d;l++)if(!c.isCheapToTokenize(s[l].getEndPosition().lineNumber))return!1;return!0},w._runAutoIndentType=function(p,c,s,l){var d=y.a.getIndentationAtPosition(c,s.startLineNumber,s.startColumn),m=y.a.getIndentActionForType(p.autoIndent,c,s,l,{shiftIndent:function(A){return w.shiftIndent(p,A)},unshiftIndent:function(A){return w.unshiftIndent(p,A)}});if(m===null)return null;if(m!==p.normalizeIndentation(d)){var E=c.getLineFirstNonWhitespaceColumn(s.startLineNumber);return E===0?w._typeCommand(new U.a(s.startLineNumber,0,s.endLineNumber,s.endColumn),p.normalizeIndentation(m)+l,!1):w._typeCommand(new U.a(s.startLineNumber,0,s.endLineNumber,s.endColumn),p.normalizeIndentation(m)+c.getLineContent(s.startLineNumber).substring(E-1,s.startColumn-1)+l,!1)}return null},w._isAutoClosingOvertype=function(p,c,s,l,d){if(p.autoClosingOvertype==="never")return!1;if(!p.autoClosingPairsClose2.has(d))return!1;for(var m=0,E=s.length;m<E;m++){var L=s[m];if(!L.isEmpty())return!1;var A=L.getPosition(),k=c.getLineContent(A.lineNumber),R=k.charAt(A.column-1);if(R!==d)return!1;var $=Object(H.g)(d),ie=A.column>2?k.charCodeAt(A.column-2):0;if(ie===92&&$)return!1;if(p.autoClosingOvertype==="auto"){for(var W=!1,B=0,le=l.length;B<le;B++){var Ce=l[B];if(A.lineNumber===Ce.startLineNumber&&A.column===Ce.startColumn){W=!0;break}}if(!W)return!1}}return!0},w._runAutoClosingOvertype=function(p,c,s,l,d){for(var m=[],E=0,L=l.length;E<L;E++){var A=l[E],k=A.getPosition(),R=new U.a(k.lineNumber,k.column,k.lineNumber,k.column+1);m[E]=new J.a(R,d)}return new H.e(1,m,{shouldPushStackElementBefore:p!==1,shouldPushStackElementAfter:!1})},w._autoClosingPairIsSymmetric=function(p){var c=p.open,s=p.close;return c.indexOf(s)>=0||s.indexOf(c)>=0},w._isBeforeClosingBrace=function(p,c,s){var l=p.autoClosingPairsClose2.get(s);if(!l)return!1;for(var d=w._autoClosingPairIsSymmetric(c),m=0,E=l;m<E.length;m++){var L=E[m],A=w._autoClosingPairIsSymmetric(L);if(!d&&A)continue;return!0}return!1},w._findAutoClosingPairOpen=function(p,c,s,l){var d=p.autoClosingPairsOpen2.get(l);if(!d)return null;for(var m=null,E=0,L=d;E<L.length;E++){var A=L[E];if(m===null||A.open.length>m.open.length){for(var k=!0,R=0,$=s;R<$.length;R++){var ie=$[R],W=c.getValueInRange(new U.a(ie.lineNumber,ie.column-A.open.length+1,ie.lineNumber,ie.column));if(W+l!==A.open){k=!1;break}}k&&(m=A)}}return m},w._isAutoClosingOpenCharType=function(p,c,s,l,d){var m=Object(H.g)(l),E=m?p.autoClosingQuotes:p.autoClosingBrackets;if(E==="never")return null;var L=this._findAutoClosingPairOpen(p,c,s.map(function(Fe){return Fe.getPosition()}),l);if(!L)return null;for(var A=m?p.shouldAutoCloseBefore.quote:p.shouldAutoCloseBefore.bracket,k=0,R=s.length;k<R;k++){var $=s[k];if(!$.isEmpty())return null;var ie=$.getPosition(),W=c.getLineContent(ie.lineNumber);if(W.length>ie.column-1){var B=W.charAt(ie.column-1),le=w._isBeforeClosingBrace(p,L,B);if(!le&&!A(B))return null}if(!c.isCheapToTokenize(ie.lineNumber))return null;if(L.open.length===1&&m&&E!=="always"){var Ce=Object(x.a)(p.wordSeparators);if(d&&ie.column>1&&Ce.get(W.charCodeAt(ie.column-2))===0)return null;if(!d&&ie.column>2&&Ce.get(W.charCodeAt(ie.column-3))===0)return null}c.forceTokenization(ie.lineNumber);var Me=c.getLineTokens(ie.lineNumber),Te=!1;try{Te=y.a.shouldAutoClosePair(L,Me,d?ie.column:ie.column-1)}catch(Fe){Object(T.e)(Fe)}if(!Te)return null}return L},w._runAutoClosingOpenCharType=function(p,c,s,l,d,m,E){for(var L=[],A=0,k=l.length;A<k;A++){var R=l[A];L[A]=new v(R,d,m,E.close)}return new H.e(1,L,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},w._shouldSurroundChar=function(p,c){return Object(H.g)(c)?p.autoSurround==="quotes"||p.autoSurround==="languageDefined":p.autoSurround==="brackets"||p.autoSurround==="languageDefined"},w._isSurroundSelectionType=function(p,c,s,l){if(!w._shouldSurroundChar(p,l)||!p.surroundingPairs.hasOwnProperty(l))return!1;for(var d=Object(H.g)(l),m=0,E=s.length;m<E;m++){var L=s[m];if(L.isEmpty())return!1;for(var A=!0,k=L.startLineNumber;k<=L.endLineNumber;k++){var R=c.getLineContent(k),$=k===L.startLineNumber?L.startColumn-1:0,ie=k===L.endLineNumber?L.endColumn-1:R.length,W=R.substring($,ie);if(/[^ \t]/.test(W)){A=!1;break}}if(A)return!1;if(d&&L.startLineNumber===L.endLineNumber&&L.startColumn+1===L.endColumn){var B=c.getValueInRange(L);if(Object(H.g)(B))return!1}}return!0},w._runSurroundSelectionType=function(p,c,s,l,d){for(var m=[],E=0,L=l.length;E<L;E++){var A=l[E],k=c.surroundingPairs[d];m[E]=new O(A,d,k)}return new H.e(0,m,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},w._isTypeInterceptorElectricChar=function(p,c,s){return!!(s.length===1&&c.isCheapToTokenize(s[0].getEndPosition().lineNumber))},w._typeInterceptorElectricChar=function(p,c,s,l,d){if(!c.electricChars.hasOwnProperty(d)||!l.isEmpty())return null;var m=l.getPosition();s.forceTokenization(m.lineNumber);var E=s.getLineTokens(m.lineNumber),L;try{L=y.a.onElectricCharacter(d,E,m.column)}catch(Fe){return Object(T.e)(Fe),null}if(!L)return null;if(L.matchOpenBracket){var A=(E.getLineContent()+d).lastIndexOf(L.matchOpenBracket)+1,k=s.findMatchingBracketUp(L.matchOpenBracket,{lineNumber:m.lineNumber,column:A});if(k){if(k.startLineNumber===m.lineNumber)return null;var R=s.getLineContent(k.startLineNumber),$=re.t(R),ie=c.normalizeIndentation($),W=s.getLineContent(m.lineNumber),B=s.getLineFirstNonWhitespaceColumn(m.lineNumber)||m.column,le=W.substring(B-1,m.column-1),Ce=ie+le+d,Me=new U.a(m.lineNumber,1,m.lineNumber,m.column),Te=new J.a(Me,Ce);return new H.e(1,[Te],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},w.compositionEndWithInterceptors=function(p,c,s,l,d,m){if(!l||z.a.selectionsArrEqual(l,d))return null;for(var E=null,L=0,A=d;L<A.length;L++){var k=A[L];if(!k.isEmpty())return null;var R=k.getPosition(),$=s.getValueInRange(new U.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(c,s,d,m,E)){var ie=d.map(function(B){return new J.a(new U.a(B.positionLineNumber,B.positionColumn,B.positionLineNumber,B.positionColumn+1),"",!1)});return new H.e(1,ie,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var W=this._isAutoClosingOpenCharType(c,s,d,E,!1);return W?this._runAutoClosingOpenCharType(p,c,s,d,E,!1,W):null},w.typeWithInterceptors=function(p,c,s,l,d,m){if(m===`
`){for(var E=[],L=0,A=l.length;L<A;L++)E[L]=w._enter(c,s,!1,l[L]);return new H.e(1,E,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(c,s,l)){for(var k=[],R=!1,L=0,A=l.length;L<A;L++)if(k[L]=this._runAutoIndentType(c,s,l[L],m),!k[L]){R=!0;break}if(!R)return new H.e(1,k,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(c,s,l,d,m))return this._runAutoClosingOvertype(p,c,s,l,m);var $=this._isAutoClosingOpenCharType(c,s,l,m,!0);if($)return this._runAutoClosingOpenCharType(p,c,s,l,m,!0,$);if(this._isSurroundSelectionType(c,s,l,m))return this._runSurroundSelectionType(p,c,s,l,m);if(this._isTypeInterceptorElectricChar(c,s,l)){var ie=this._typeInterceptorElectricChar(p,c,s,l[0],m);if(ie)return ie}for(var W=[],L=0,A=l.length;L<A;L++)W[L]=new J.a(l[L],m);var B=p!==1;return m===" "&&(B=!0),new H.e(1,W,{shouldPushStackElementBefore:B,shouldPushStackElementAfter:!1})},w.typeWithoutInterceptors=function(p,c,s,l,d){for(var m=[],E=0,L=l.length;E<L;E++)m[E]=new J.a(l[E],d);return new H.e(1,m,{shouldPushStackElementBefore:p!==1,shouldPushStackElementAfter:!1})},w.lineInsertBefore=function(p,c,s){if(c===null||s===null)return[];for(var l=[],d=0,m=s.length;d<m;d++){var E=s[d].positionLineNumber;if(E===1)l[d]=new J.e(new U.a(1,1,1,1),`
`);else{E--;var L=c.getLineMaxColumn(E);l[d]=this._enter(p,c,!1,new U.a(E,L,E,L))}}return l},w.lineInsertAfter=function(p,c,s){if(c===null||s===null)return[];for(var l=[],d=0,m=s.length;d<m;d++){var E=s[d].positionLineNumber,L=c.getLineMaxColumn(E);l[d]=this._enter(p,c,!1,new U.a(E,L,E,L))}return l},w.lineBreakInsert=function(p,c,s){for(var l=[],d=0,m=s.length;d<m;d++)l[d]=this._enter(p,c,!0,s[d]);return l},w}(),v=function(w){_(p,w);function p(c,s,l,d){var m=w.call(this,c,(l?s:"")+d,0,-d.length)||this;return m._openCharacter=s,m._closeCharacter=d,m.closeCharacterRange=null,m.enclosingRange=null,m}return p.prototype.computeCursorState=function(c,s){var l=s.getInverseEditOperations(),d=l[0].range;return this.closeCharacterRange=new U.a(d.startLineNumber,d.endColumn-this._closeCharacter.length,d.endLineNumber,d.endColumn),this.enclosingRange=new U.a(d.startLineNumber,d.endColumn-this._openCharacter.length-this._closeCharacter.length,d.endLineNumber,d.endColumn),w.prototype.computeCursorState.call(this,c,s)},p}(J.d)},GZrW:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return e.e(191).then(e.bind(null,"Csoz"))}})},Gb1F:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return e.e(187).then(e.bind(null,"ynbn"))}})},GvMn:function(Lt,j,e){"use strict";e.r(j);var T=e("3/fG"),re=e("aokT"),J=e("gCVg"),I=e("wQH0"),U=e("sswD"),z=e("pAvP"),O=function(){function d(m,E,L){this._editRange=m,this._originalSelection=E,this._text=L}return d.prototype.getEditOperations=function(m,E){E.addTrackedEditOperation(this._editRange,this._text)},d.prototype.computeCursorState=function(m,E){var L=E.getInverseEditOperations(),A=L[0].range;return this._originalSelection.isEmpty()?new J.a(A.endLineNumber,Math.min(this._originalSelection.positionColumn,A.endColumn),A.endLineNumber,Math.min(this._originalSelection.positionColumn,A.endColumn)):new J.a(A.endLineNumber,A.endColumn-this._text.length,A.endLineNumber,A.endColumn)},d}(),H=e("vATl"),x=e("t9D7"),u=e("kYye"),y=e("tX9W"),_=e("X+cX"),f=e("/cxE"),v=function(){var d=function(E,L){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,k){A.__proto__=k}||function(A,k){for(var R in k)k.hasOwnProperty(R)&&(A[R]=k[R])},d(E,L)};return function(m,E){d(m,E);function L(){this.constructor=m}m.prototype=E===null?Object.create(E):(L.prototype=E.prototype,new L)}}(),w=function(d,m,E,L){var A=arguments.length,k=A<3?m:L===null?L=Object.getOwnPropertyDescriptor(m,E):L,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(d,m,E,L);else for(var $=d.length-1;$>=0;$--)(R=d[$])&&(k=(A<3?R(k):A>3?R(m,E,k):R(m,E))||k);return A>3&&k&&Object.defineProperty(m,E,k),k},p=function(d,m){return function(E,L){m(E,L,d)}},c=function(){function d(m,E){this.decorationIds=[],this.editor=m,this.editorWorkerService=E}return d.get=function(m){return m.getContribution(d.ID)},d.prototype.dispose=function(){},d.prototype.run=function(m,E){var L=this;this.currentRequest&&this.currentRequest.cancel();var A=this.editor.getSelection(),k=this.editor.getModel();if(!k||!A)return;var R=A;if(R.startLineNumber!==R.endLineNumber)return;var $=new H.a(this.editor,1|4),ie=k.uri;return this.editorWorkerService.canNavigateValueSet(ie)?(this.currentRequest=Object(_.f)(function(W){return L.editorWorkerService.navigateValueSet(ie,R,E)}),this.currentRequest.then(function(W){if(!W||!W.range||!W.value)return;if(!$.validate(L.editor))return;var B=re.a.lift(W.range),le=W.range,Ce=W.value.length-(R.endColumn-R.startColumn);le={startLineNumber:le.startLineNumber,startColumn:le.startColumn,endLineNumber:le.endLineNumber,endColumn:le.startColumn+W.value.length},Ce>1&&(R=new J.a(R.startLineNumber,R.startColumn,R.endLineNumber,R.endColumn+Ce-1));var Me=new O(B,R,W.value);L.editor.pushUndoStop(),L.editor.executeCommand(m,Me),L.editor.pushUndoStop(),L.decorationIds=L.editor.deltaDecorations(L.decorationIds,[{range:le,options:d.DECORATION}]),L.decorationRemover&&L.decorationRemover.cancel(),L.decorationRemover=Object(_.l)(350),L.decorationRemover.then(function(){return L.decorationIds=L.editor.deltaDecorations(L.decorationIds,[])}).catch(f.e)}).catch(f.e)):Promise.resolve(void 0)},d.ID="editor.contrib.inPlaceReplaceController",d.DECORATION=y.a.register({className:"valueSetReplacement"}),d=w([p(1,z.a)],d),d}(),s=function(d){v(m,d);function m(){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:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|82,weight:100}})||this}return m.prototype.run=function(E,L){var A=c.get(L);return A?A.run(this.id,!0):Promise.resolve(void 0)},m}(U.b),l=function(d){v(m,d);function m(){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:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|84,weight:100}})||this}return m.prototype.run=function(E,L){var A=c.get(L);return A?A.run(this.id,!1):Promise.resolve(void 0)},m}(U.b);Object(U.h)(c.ID,c),Object(U.f)(s),Object(U.f)(l),Object(x.e)(function(d,m){var E=d.getColor(u.d);E&&m.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+E+"; }")})},Gw4z:function(Lt,j,e){"use strict";e.d(j,"b",function(){return I}),e.d(j,"a",function(){return H});var T=function(){function x(u,y,_,f){this.originalStart=u,this.originalLength=y,this.modifiedStart=_,this.modifiedLength=f}return x.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},x.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},x}(),re=e("7afs"),J=function(){function x(u){this.source=u}return x.prototype.getElements=function(){for(var u=this.source,y=new Int32Array(u.length),_=0,f=u.length;_<f;_++)y[_]=u.charCodeAt(_);return y},x}();function I(x,u,y){return new H(new J(x),new J(u)).ComputeDiff(y).changes}var U=function(){function x(){}return x.Assert=function(u,y){if(!u)throw new Error(y)},x}(),z=function(){function x(){}return x.Copy=function(u,y,_,f,v){for(var w=0;w<v;w++)_[f+w]=u[y+w]},x.Copy2=function(u,y,_,f,v){for(var w=0;w<v;w++)_[f+w]=u[y+w]},x}(),O=function(){function x(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return x.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},x.prototype.AddOriginalElement=function(u,y){this.m_originalStart=Math.min(this.m_originalStart,u),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),this.m_originalCount++},x.prototype.AddModifiedElement=function(u,y){this.m_originalStart=Math.min(this.m_originalStart,u),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),this.m_modifiedCount++},x.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},x.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},x}(),H=function(){function x(u,y,_){_===void 0&&(_=null),this.ContinueProcessingPredicate=_;var f=x._getElements(u),v=f[0],w=f[1],p=f[2],c=x._getElements(y),s=c[0],l=c[1],d=c[2];this._hasStrings=p&&d,this._originalStringElements=v,this._originalElementsOrHash=w,this._modifiedStringElements=s,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}return x._isStringArray=function(u){return u.length>0&&typeof u[0]=="string"},x._getElements=function(u){var y=u.getElements();if(x._isStringArray(y)){for(var _=new Int32Array(y.length),f=0,v=y.length;f<v;f++)_[f]=Object(re.b)(y[f],0);return[y,_,!0]}return y instanceof Int32Array?[[],y,!1]:[[],new Int32Array(y),!1]},x.prototype.ElementsAreEqual=function(u,y){return this._originalElementsOrHash[u]!==this._modifiedElementsOrHash[y]?!1:this._hasStrings?this._originalStringElements[u]===this._modifiedStringElements[y]:!0},x.prototype.OriginalElementsAreEqual=function(u,y){return this._originalElementsOrHash[u]!==this._originalElementsOrHash[y]?!1:this._hasStrings?this._originalStringElements[u]===this._originalStringElements[y]:!0},x.prototype.ModifiedElementsAreEqual=function(u,y){return this._modifiedElementsOrHash[u]!==this._modifiedElementsOrHash[y]?!1:this._hasStrings?this._modifiedStringElements[u]===this._modifiedStringElements[y]:!0},x.prototype.ComputeDiff=function(u){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,u)},x.prototype._ComputeDiff=function(u,y,_,f,v){var w=[!1],p=this.ComputeDiffRecursive(u,y,_,f,w);return v&&(p=this.PrettifyChanges(p)),{quitEarly:w[0],changes:p}},x.prototype.ComputeDiffRecursive=function(u,y,_,f,v){for(v[0]=!1;u<=y&&_<=f&&this.ElementsAreEqual(u,_);)u++,_++;for(;y>=u&&f>=_&&this.ElementsAreEqual(y,f);)y--,f--;if(u>y||_>f){var w=void 0;return _<=f?(U.Assert(u===y+1,"originalStart should only be one more than originalEnd"),w=[new T(u,0,_,f-_+1)]):u<=y?(U.Assert(_===f+1,"modifiedStart should only be one more than modifiedEnd"),w=[new T(u,y-u+1,_,0)]):(U.Assert(u===y+1,"originalStart should only be one more than originalEnd"),U.Assert(_===f+1,"modifiedStart should only be one more than modifiedEnd"),w=[]),w}var p=[0],c=[0],s=this.ComputeRecursionPoint(u,y,_,f,p,c,v),l=p[0],d=c[0];if(s!==null)return s;if(!v[0]){var m=this.ComputeDiffRecursive(u,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(m,E)}return[new T(u,y-u+1,_,f-_+1)]},x.prototype.WALKTRACE=function(u,y,_,f,v,w,p,c,s,l,d,m,E,L,A,k,R,$){var ie=null,W=null,B=new O,le=y,Ce=_,Me=E[0]-k[0]-f,Te=-1073741824,Fe=this.m_forwardHistory.length-1;do{var Ue=Me+u;Ue===le||Ue<Ce&&s[Ue-1]<s[Ue+1]?(d=s[Ue+1],L=d-Me-f,d<Te&&B.MarkNextChange(),Te=d,B.AddModifiedElement(d+1,L),Me=Ue+1-u):(d=s[Ue-1]+1,L=d-Me-f,d<Te&&B.MarkNextChange(),Te=d-1,B.AddOriginalElement(d,L+1),Me=Ue-1-u),Fe>=0&&(s=this.m_forwardHistory[Fe],u=s[0],le=1,Ce=s.length-1)}while(--Fe>=-1);if(ie=B.getReverseChanges(),$[0]){var Pe=E[0]+1,ne=k[0]+1;if(ie!==null&&ie.length>0){var ee=ie[ie.length-1];Pe=Math.max(Pe,ee.getOriginalEnd()),ne=Math.max(ne,ee.getModifiedEnd())}W=[new T(Pe,m-Pe+1,ne,A-ne+1)]}else{B=new O,le=w,Ce=p,Me=E[0]-k[0]-c,Te=1073741824,Fe=R?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var Ue=Me+v;Ue===le||Ue<Ce&&l[Ue-1]>=l[Ue+1]?(d=l[Ue+1]-1,L=d-Me-c,d>Te&&B.MarkNextChange(),Te=d+1,B.AddOriginalElement(d+1,L+1),Me=Ue+1-v):(d=l[Ue-1],L=d-Me-c,d>Te&&B.MarkNextChange(),Te=d,B.AddModifiedElement(d+1,L+1),Me=Ue-1-v),Fe>=0&&(l=this.m_reverseHistory[Fe],v=l[0],le=1,Ce=l.length-1)}while(--Fe>=-1);W=B.getChanges()}return this.ConcatenateChanges(ie,W)},x.prototype.ComputeRecursionPoint=function(u,y,_,f,v,w,p){var c=0,s=0,l=0,d=0,m=0,E=0;u--,_--,v[0]=0,w[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var L=y-u+(f-_),A=L+1,k=new Int32Array(A),R=new Int32Array(A),$=f-_,ie=y-u,W=u-_,B=y-f,le=ie-$,Ce=le%2===0;k[$]=u,R[ie]=y,p[0]=!1;for(var Me=1;Me<=L/2+1;Me++){var Te=0,Fe=0;l=this.ClipDiagonalBound($-Me,Me,$,A),d=this.ClipDiagonalBound($+Me,Me,$,A);for(var Ue=l;Ue<=d;Ue+=2){Ue===l||Ue<d&&k[Ue-1]<k[Ue+1]?c=k[Ue+1]:c=k[Ue-1]+1,s=c-(Ue-$)-W;for(var Pe=c;c<y&&s<f&&this.ElementsAreEqual(c+1,s+1);)c++,s++;if(k[Ue]=c,c+s>Te+Fe&&(Te=c,Fe=s),!Ce&&Math.abs(Ue-ie)<=Me-1&&c>=R[Ue])return v[0]=c,w[0]=s,Pe<=R[Ue]&&1447>0&&Me<=1447+1?this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,w,Ce,p):null}var ne=(Te-u+(Fe-_)-Me)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Te,ne))return p[0]=!0,v[0]=Te,w[0]=Fe,ne>0&&1447>0&&Me<=1447+1?this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,w,Ce,p):(u++,_++,[new T(u,y-u+1,_,f-_+1)]);m=this.ClipDiagonalBound(ie-Me,Me,ie,A),E=this.ClipDiagonalBound(ie+Me,Me,ie,A);for(var Ue=m;Ue<=E;Ue+=2){Ue===m||Ue<E&&R[Ue-1]>=R[Ue+1]?c=R[Ue+1]-1:c=R[Ue-1],s=c-(Ue-ie)-B;for(var Pe=c;c>u&&s>_&&this.ElementsAreEqual(c,s);)c--,s--;if(R[Ue]=c,Ce&&Math.abs(Ue-$)<=Me&&c<=k[Ue])return v[0]=c,w[0]=s,Pe>=k[Ue]&&1447>0&&Me<=1447+1?this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,w,Ce,p):null}if(Me<=1447){var ee=new Int32Array(d-l+2);ee[0]=$-l+1,z.Copy2(k,l,ee,1,d-l+1),this.m_forwardHistory.push(ee),ee=new Int32Array(E-m+2),ee[0]=ie-m+1,z.Copy2(R,m,ee,1,E-m+1),this.m_reverseHistory.push(ee)}}return this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,w,Ce,p)},x.prototype.PrettifyChanges=function(u){for(var y=0;y<u.length;y++){for(var _=u[y],f=y<u.length-1?u[y+1].originalStart:this._originalElementsOrHash.length,v=y<u.length-1?u[y+1].modifiedStart:this._modifiedElementsOrHash.length,w=_.originalLength>0,p=_.modifiedLength>0;_.originalStart+_.originalLength<f&&_.modifiedStart+_.modifiedLength<v&&(!w||this.OriginalElementsAreEqual(_.originalStart,_.originalStart+_.originalLength))&&(!p||this.ModifiedElementsAreEqual(_.modifiedStart,_.modifiedStart+_.modifiedLength));)_.originalStart++,_.modifiedStart++;var c=[null];if(y<u.length-1&&this.ChangesOverlap(u[y],u[y+1],c)){u[y]=c[0],u.splice(y+1,1),y--;continue}}for(var y=u.length-1;y>=0;y--){var _=u[y],f=0,v=0;if(y>0){var s=u[y-1];s.originalLength>0&&(f=s.originalStart+s.originalLength),s.modifiedLength>0&&(v=s.modifiedStart+s.modifiedLength)}for(var w=_.originalLength>0,p=_.modifiedLength>0,l=0,d=this._boundaryScore(_.originalStart,_.originalLength,_.modifiedStart,_.modifiedLength),m=1;;m++){var E=_.originalStart-m,L=_.modifiedStart-m;if(E<f||L<v)break;if(w&&!this.OriginalElementsAreEqual(E,E+_.originalLength))break;if(p&&!this.ModifiedElementsAreEqual(L,L+_.modifiedLength))break;var A=this._boundaryScore(E,_.originalLength,L,_.modifiedLength);A>d&&(d=A,l=m)}_.originalStart-=l,_.modifiedStart-=l}return u},x.prototype._OriginalIsBoundary=function(u){return u<=0||u>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[u])},x.prototype._OriginalRegionIsBoundary=function(u,y){if(this._OriginalIsBoundary(u)||this._OriginalIsBoundary(u-1))return!0;if(y>0){var _=u+y;if(this._OriginalIsBoundary(_-1)||this._OriginalIsBoundary(_))return!0}return!1},x.prototype._ModifiedIsBoundary=function(u){return u<=0||u>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[u])},x.prototype._ModifiedRegionIsBoundary=function(u,y){if(this._ModifiedIsBoundary(u)||this._ModifiedIsBoundary(u-1))return!0;if(y>0){var _=u+y;if(this._ModifiedIsBoundary(_-1)||this._ModifiedIsBoundary(_))return!0}return!1},x.prototype._boundaryScore=function(u,y,_,f){var v=this._OriginalRegionIsBoundary(u,y)?1:0,w=this._ModifiedRegionIsBoundary(_,f)?1:0;return v+w},x.prototype.ConcatenateChanges=function(u,y){var _=[];if(u.length===0||y.length===0)return y.length>0?y:u;if(this.ChangesOverlap(u[u.length-1],y[0],_)){var f=new Array(u.length+y.length-1);return z.Copy(u,0,f,0,u.length-1),f[u.length-1]=_[0],z.Copy(y,1,f,u.length,y.length-1),f}else{var f=new Array(u.length+y.length);return z.Copy(u,0,f,0,u.length),z.Copy(y,0,f,u.length,y.length),f}},x.prototype.ChangesOverlap=function(u,y,_){if(U.Assert(u.originalStart<=y.originalStart,"Left change is not less than or equal to right change"),U.Assert(u.modifiedStart<=y.modifiedStart,"Left change is not less than or equal to right change"),u.originalStart+u.originalLength>=y.originalStart||u.modifiedStart+u.modifiedLength>=y.modifiedStart){var f=u.originalStart,v=u.originalLength,w=u.modifiedStart,p=u.modifiedLength;return u.originalStart+u.originalLength>=y.originalStart&&(v=y.originalStart+y.originalLength-u.originalStart),u.modifiedStart+u.modifiedLength>=y.modifiedStart&&(p=y.modifiedStart+y.modifiedLength-u.modifiedStart),_[0]=new T(f,v,w,p),!0}else return _[0]=null,!1},x.prototype.ClipDiagonalBound=function(u,y,_,f){if(u>=0&&u<f)return u;var v=_,w=f-_-1,p=y%2===0;if(u<0){var c=v%2===0;return p===c?0:1}else{var s=w%2===0;return p===s?f-1:f-2}},x}()},H4T2:function(Lt,j,e){"use strict";e.r(j),e.d(j,"GotoDefinitionAtPositionEditorContribution",function(){return L});var T=e("62hx"),re=e.n(T),J=e("3/fG"),I=e("X+cX"),U=e("/cxE"),z=e("eLzo"),O=e("WBhO"),H=e("aokT"),x=e("twdY"),u=e("sswD"),y=e("vRMv"),_=e("pmY6"),f=e("t49l"),v=e("t9D7"),w=e("MD5Z"),p=e("vATl"),c=e("8Ydt"),s=e("aBYw"),l=e("cGHE"),d=e("746U"),m=function(A,k,R,$){var ie=arguments.length,W=ie<3?k:$===null?$=Object.getOwnPropertyDescriptor(k,R):$,B;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")W=Reflect.decorate(A,k,R,$);else for(var le=A.length-1;le>=0;le--)(B=A[le])&&(W=(ie<3?B(W):ie>3?B(k,R,W):B(k,R))||W);return ie>3&&W&&Object.defineProperty(k,R,W),W},E=function(A,k){return function(R,$){k(R,$,A)}},L=function(){function A(k,R,$){var ie=this;this.textModelResolverService=R,this.modeService=$,this.toUnhook=new _.b,this.toUnhookForKeyboard=new _.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=k;var W=new s.a(k);this.toUnhook.add(W),this.toUnhook.add(W.onMouseMoveOrRelevantKeyDown(function(B){var le=B[0],Ce=B[1];ie.startFindDefinitionFromMouse(le,Object(d.n)(Ce))})),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(U.e)(le)})})),this.toUnhook.add(W.onCancel(function(){ie.removeLinkDecorations(),ie.currentWordAtPosition=null}))}return A.get=function(k){return k.getContribution(A.ID)},A.prototype.startFindDefinitionFromCursor=function(k){var R=this;return this.startFindDefinition(k).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())}))})},A.prototype.startFindDefinitionFromMouse=function(k,R){if(k.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(k,R)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}var $=k.target.position;this.startFindDefinition($)},A.prototype.startFindDefinition=function(k){var R=this,$;this.toUnhookForKeyboard.clear();var ie=k?($=this.editor.getModel())===null||$===void 0?void 0:$.getWordAtPosition(k):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 p.a(this.editor,4|1|2|8);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(I.f)(function(B){return R.findDefinition(k,B)}),this.previousPromise.then(function(B){if(!B||!B.length||!W.validate(R.editor)){R.removeLinkDecorations();return}if(B.length>1)R.addDecoration(new H.a(k.lineNumber,ie.startColumn,k.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(Ce){if(!Ce.object||!Ce.object.textEditorModel){Ce.dispose();return}var Me=Ce.object.textEditorModel,Te=le.range.startLineNumber;if(Te<1||Te>Me.getLineCount()){Ce.dispose();return}var Fe=R.getPreviewValue(Me,Te,le),Ue;le.originSelectionRange?Ue=H.a.lift(le.originSelectionRange):Ue=new H.a(k.lineNumber,ie.startColumn,k.lineNumber,ie.endColumn);var Pe=R.modeService.getModeIdByFilepathOrFirstLine(Me.uri);R.addDecoration(Ue,new z.a().appendCodeblock(Pe||"",Fe)),Ce.dispose()})}}).then(void 0,U.e)},A.prototype.getPreviewValue=function(k,R,$){var ie=$.targetSelectionRange?$.range:this.getPreviewRangeBasedOnBrackets(k,R),W=ie.endLineNumber-ie.startLineNumber;W>=A.MAX_SOURCE_PREVIEW_LINES&&(ie=this.getPreviewRangeBasedOnIndentation(k,R));var B=this.stripIndentationFromPreviewRange(k,R,ie);return B},A.prototype.stripIndentationFromPreviewRange=function(k,R,$){for(var ie=k.getLineFirstNonWhitespaceColumn(R),W=ie,B=R+1;B<$.endLineNumber;B++){var le=k.getLineFirstNonWhitespaceColumn(B);W=Math.min(W,le)}var Ce=k.getValueInRange($).replace(new RegExp("^\\s{"+(W-1)+"}","gm"),"").trim();return Ce},A.prototype.getPreviewRangeBasedOnIndentation=function(k,R){for(var $=k.getLineFirstNonWhitespaceColumn(R),ie=Math.min(k.getLineCount(),R+A.MAX_SOURCE_PREVIEW_LINES),W=R+1;W<ie;W++){var B=k.getLineFirstNonWhitespaceColumn(W);if($===B)break}return new H.a(R,1,W+1,1)},A.prototype.getPreviewRangeBasedOnBrackets=function(k,R){for(var $=Math.min(k.getLineCount(),R+A.MAX_SOURCE_PREVIEW_LINES),ie=[],W=!0,B=k.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 H.a(R,1,B.range.endLineNumber+1,1)}var Ce=k.getLineMaxColumn(R),Me=B.range.endLineNumber,Te=B.range.endColumn;if(Ce===B.range.endColumn&&(Me++,Te=1),Me>$)return new H.a(R,1,$+1,1);B=k.findNextBracket(new l.a(Me,Te))}return new H.a(R,1,$+1,1)},A.prototype.addDecoration=function(k,R){var $={range:k,options:{inlineClassName:"goto-definition-link",hoverMessage:R}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[$])},A.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},A.prototype.isEnabled=function(k,R){return this.editor.hasModel()&&k.isNoneOrSingleMouseDown&&k.target.type===6&&(k.hasTriggerModifier||(R?R.keyCodeIsTriggerKey:!1))&&x.f.has(this.editor.getModel())},A.prototype.findDefinition=function(k,R){var $=this.editor.getModel();return $?Object(y.b)($,k,R):Promise.resolve(null)},A.prototype.gotoDefinition=function(k,R){var $=this;this.editor.setPosition(k);var ie=new c.DefinitionAction({openToSide:R,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(W){return ie.run(W,$.editor)})},A.prototype.dispose=function(){this.toUnhook.dispose()},A.ID="editor.contrib.gotodefinitionatposition",A.MAX_SOURCE_PREVIEW_LINES=8,A=m([E(1,f.a),E(2,O.a)],A),A}();Object(u.h)(L.ID,L),Object(v.e)(function(A,k){var R=A.getColor(w.n);R&&k.addRule(".monaco-editor .goto-definition-link { color: "+R+" !important; }")})},H6Gb:function(Lt,j,e){"use strict";e.r(j);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(174).then(e.bind(null,"lXEz"))}})},HdwC:function(Lt,j,e){"use strict";e.d(j,"b",function(){return v}),e.d(j,"a",function(){return p});var T=e("D3Dy"),re=e("MI8n"),J=e("pmY6"),I=e("MNsG"),U=function(){function c(s,l){this.chr=s,this.type=l,this.width=0}return c.prototype.fulfill=function(s){this.width=s},c}(),z=function(){function c(s,l){this._bareFontInfo=s,this._requests=l,this._container=null,this._testElements=null}return c.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},c.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 m=document.createElement("div");m.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),m.style.fontWeight=this._bareFontInfo.fontWeight,m.style.fontSize=this._bareFontInfo.fontSize+"px",m.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,m.style.lineHeight=this._bareFontInfo.lineHeight+"px",m.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",m.style.fontStyle="italic",s.appendChild(m);for(var E=[],L=0,A=this._requests;L<A.length;L++){var k=A[L],R=void 0;k.type===0&&(R=l),k.type===2&&(R=d),k.type===1&&(R=m),R.appendChild(document.createElement("br"));var $=document.createElement("span");c._render($,k),R.appendChild($),E.push($)}this._container=s,this._testElements=E},c._render=function(s,l){if(l.chr===" "){for(var d="&#160;",m=0;m<8;m++)d+=d;s.innerHTML=d}else{for(var E=l.chr,m=0;m<8;m++)E+=E;s.textContent=E}},c.prototype._readFromDomElements=function(){for(var s=0,l=this._requests.length;s<l;s++){var d=this._requests[s],m=this._testElements[s];d.fulfill(m.offsetWidth/256)}},c}();function O(c,s){var l=new z(c,s);l.read()}var H=e("o39E"),x=e("iDAx"),u=e("/UlZ"),y=e("+3Gp"),_=function(){var c=function(l,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,E){m.__proto__=E}||function(m,E){for(var L in E)E.hasOwnProperty(L)&&(m[L]=E[L])},c(l,d)};return function(s,l){c(s,l);function d(){this.constructor=s}s.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),f=function(){function c(){this._keys=Object.create(null),this._values=Object.create(null)}return c.prototype.has=function(s){var l=s.getId();return!!this._values[l]},c.prototype.get=function(s){var l=s.getId();return this._values[l]},c.prototype.put=function(s,l){var d=s.getId();this._keys[d]=s,this._values[d]=l},c.prototype.remove=function(s){var l=s.getId();delete this._keys[l],delete this._values[l]},c.prototype.getValues=function(){var s=this;return Object.keys(this._keys).map(function(l){return s._values[l]})},c}();function v(){w.INSTANCE.clearCache()}var w=function(c){_(s,c);function s(){var l=c.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),c.prototype.dispose.call(this)},s.prototype.clearCache=function(){this._cache=new f,this._onDidChange.fire()},s.prototype._writeToCache=function(l,d){var m=this;this._cache.put(l,d),!d.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=setTimeout(function(){m._evictUntrustedReadingsTimeout=-1,m._evictUntrustedReadings()},5e3))},s.prototype._evictUntrustedReadings=function(){for(var l=this._cache.getValues(),d=!1,m=0,E=l.length;m<E;m++){var L=l[m];L.isTrusted||(d=!0,this._cache.remove(L))}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,m,E){var L=new U(l,d);return m.push(L),E&&E.push(L),L},s._actualReadConfiguration=function(l){var d=[],m=[],E=this.createRequest("n",0,d,m),L=this.createRequest("\uFF4D",0,d,null),A=this.createRequest(" ",0,d,m),k=this.createRequest("0",0,d,m),R=this.createRequest("1",0,d,m),$=this.createRequest("2",0,d,m),ie=this.createRequest("3",0,d,m),W=this.createRequest("4",0,d,m),B=this.createRequest("5",0,d,m),le=this.createRequest("6",0,d,m),Ce=this.createRequest("7",0,d,m),Me=this.createRequest("8",0,d,m),Te=this.createRequest("9",0,d,m),Fe=this.createRequest("\u2192",0,d,m),Ue=this.createRequest("\uFFEB",0,d,null),Pe=this.createRequest("\xB7",0,d,m);this.createRequest("|",0,d,m),this.createRequest("/",0,d,m),this.createRequest("-",0,d,m),this.createRequest("_",0,d,m),this.createRequest("i",0,d,m),this.createRequest("l",0,d,m),this.createRequest("m",0,d,m),this.createRequest("|",1,d,m),this.createRequest("_",1,d,m),this.createRequest("i",1,d,m),this.createRequest("l",1,d,m),this.createRequest("m",1,d,m),this.createRequest("n",1,d,m),this.createRequest("|",2,d,m),this.createRequest("_",2,d,m),this.createRequest("i",2,d,m),this.createRequest("l",2,d,m),this.createRequest("m",2,d,m),this.createRequest("n",2,d,m),O(l,d);for(var ne=Math.max(k.width,R.width,$.width,ie.width,W.width,B.width,le.width,Ce.width,Me.width,Te.width),ee=l.fontFeatureSettings===u.d.OFF,ae=m[0].width,q=1,ue=m.length;ee&&q<ue;q++){var X=ae-m[q].width;if(X<-.001||X>.001){ee=!1;break}}var he=!0;ee&&Ue.width!==ae&&(he=!1),Ue.width>Fe.width&&(he=!1);var je=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:L.width,canUseHalfwidthRightwardsArrow:he,spaceWidth:A.width,middotWidth:Pe.width,maxDigitWidth:ne},je)},s.INSTANCE=new s,s}(J.a),p=function(c){_(s,c);function s(l,d,m,E){m===void 0&&(m=null);var L=c.call(this,l,d)||this;return L.accessibilityService=E,L._elementSizeObserver=L._register(new H.a(m,d.dimension,function(){return L._onReferenceDomElementSizeChanged()})),L._register(w.INSTANCE.onDidChange(function(){return L._onCSSBasedConfigurationChanged()})),L._validatedOptions.get(9)&&L._elementSizeObserver.startObserving(),L._register(T.o(function(A){return L._recomputeOptions()})),L._register(L.accessibilityService.onDidChangeScreenReaderOptimized(function(){return L._recomputeOptions()})),L._recomputeOptions(),L}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(){c.prototype.dispose.call(this)},s.prototype._getExtraEditorClassName=function(){var l="";return!T.k&&!T.n&&(l+="no-user-select "),I.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 w.INSTANCE.readConfiguration(l)},s}(x.a)},HyZH:function(Lt,j,e){},"I/Lx":function(Lt,j,e){"use strict";e.r(j);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(155).then(e.bind(null,"yswY"))}})},"J+ZK":function(Lt,j,e){},"JQT/":function(Lt,j,e){"use strict";e.d(j,"a",function(){return J}),e.d(j,"b",function(){return U});var T=e("MI8n"),re=Object.freeze(function(z,O){var H=setTimeout(z.bind(O),0);return{dispose:function(){clearTimeout(H)}}}),J;(function(z){function O(H){return H===z.None||H===z.Cancelled||H instanceof I?!0:!H||typeof H!="object"?!1:typeof H.isCancellationRequested=="boolean"&&typeof H.onCancellationRequested=="function"}z.isCancellationToken=O,z.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:T.b.None}),z.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:re})})(J||(J={}));var I=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}(),U=function(){function z(O){this._token=void 0,this._parentListener=void 0,this._parentListener=O&&O.onCancellationRequested(this.cancel,this)}return Object.defineProperty(z.prototype,"token",{get:function(){return this._token||(this._token=new I),this._token},enumerable:!0,configurable:!0}),z.prototype.cancel=function(){this._token?this._token instanceof I&&this._token.cancel():this._token=J.Cancelled},z.prototype.dispose=function(O){O===void 0&&(O=!1),O&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof I&&this._token.dispose():this._token=J.None},z}()},JYp7:function(Lt,j,e){"use strict";e.d(j,"c",function(){return re}),e.d(j,"d",function(){return J}),e.d(j,"f",function(){return U}),e.d(j,"a",function(){return z}),e.d(j,"b",function(){return O}),e.d(j,"e",function(){return H});var T=function(){var x=function(y,_){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},x(y,_)};return function(u,y){x(u,y);function _(){this.constructor=u}u.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}}(),re={done:!0,value:void 0},J;(function(x){var u={next:function(){return re}};function y(){return u}x.empty=y;function _(E){var L=!1;return{next:function(){return L?re:(L=!0,{done:!1,value:E})}}}x.single=_;function f(E,L,A){return L===void 0&&(L=0),A===void 0&&(A=E.length),{next:function(){return L>=A?re:{done:!1,value:E[L++]}}}}x.fromArray=f;function v(E){return{next:function(){var A=E.next();return A.done?re:{done:!1,value:A.value}}}}x.fromNativeIterator=v;function w(E){return E?Array.isArray(E)?x.fromArray(E):E:x.empty()}x.from=w;function p(E,L){return{next:function(){var k=E.next();return k.done?re:{done:!1,value:L(k.value)}}}}x.map=p;function c(E,L){return{next:function(){for(;;){var k=E.next();if(k.done)return re;if(L(k.value))return{done:!1,value:k.value}}}}}x.filter=c;function s(E,L){for(var A=E.next();!A.done;A=E.next())L(A.value)}x.forEach=s;function l(E,L){L===void 0&&(L=Number.POSITIVE_INFINITY);var A=[];if(L===0)return A;for(var k=0,R=E.next();!R.done&&!(A.push(R.value),++k>=L);R=E.next());return A}x.collect=l;function d(){for(var E=[],L=0;L<arguments.length;L++)E[L]=arguments[L];var A=0;return{next:function(){if(A>=E.length)return re;var R=E[A],$=R.next();return $.done?(A++,this.next()):$}}}x.concat=d;function m(E){return new I(E)}x.chain=m})(J||(J={}));var I=function(){function x(u){this.it=u}return x.prototype.next=function(){return this.it.next()},x}();function U(x){return Array.isArray(x)?J.fromArray(x):x||J.empty()}var z=function(){function x(u,y,_,f){y===void 0&&(y=0),_===void 0&&(_=u.length),f===void 0&&(f=y-1),this.items=u,this.start=y,this.end=_,this.index=f}return x.prototype.first=function(){return this.index=this.start,this.current()},x.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},x.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},x}(),O=function(x){T(u,x);function u(y,_,f,v){return _===void 0&&(_=0),f===void 0&&(f=y.length),v===void 0&&(v=_-1),x.call(this,y,_,f,v)||this}return u.prototype.current=function(){return x.prototype.current.call(this)},u.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},u.prototype.first=function(){return this.index=this.start,this.current()},u.prototype.last=function(){return this.index=this.end-1,this.current()},u.prototype.parent=function(){return null},u}(z),H=function(){function x(u,y){this.iterator=u,this.fn=y}return x.prototype.next=function(){return this.fn(this.iterator.next())},x}()},JlLP:function(Lt,j,e){"use strict";e.r(j);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(176).then(e.bind(null,"W1QP"))}})},KDc4:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"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(I){if(this.open=I.open,this.close=I.close,this._standardTokenMask=0,Array.isArray(I.notIn))for(var U=0,z=I.notIn.length;U<z;U++){var O=I.notIn[U];switch(O){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}return J.prototype.isOK=function(I){return(this._standardTokenMask&I)===0},J}()},KTWA:function(Lt,j,e){"use strict";e.r(j);var T=e("3/fG"),re=e("sswD"),J=e("wQH0"),I=e("aokT"),U=function(){function u(y,_){this._selection=y,this._isMovingLeft=_,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}return u.prototype.getEditOperations=function(y,_){var f=this._selection;if(this._selectionId=_.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,w=y.getLineContent(v),p,c,s;this._isMovingLeft?(p=w.substring(0,f.startColumn-2),c=w.substring(f.startColumn-1,f.endColumn-1),s=w.substring(f.startColumn-2,f.startColumn-1)+w.substring(f.endColumn-1)):(p=w.substring(0,f.startColumn-1)+w.substring(f.endColumn-1,f.endColumn),c=w.substring(f.startColumn-1,f.endColumn-1),s=w.substring(f.endColumn));var l=p+c+s;_.addEditOperation(new I.a(v,1,v,y.getLineMaxColumn(v)),null),_.addEditOperation(new I.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},u.prototype.computeCursorState=function(y,_){var f=_.getTrackedSelection(this._selectionId);return this._moved&&(f=f.setStartPosition(f.startLineNumber,this._cutStartIndex),f=f.setEndPosition(f.startLineNumber,this._cutEndIndex)),f},u}(),z=function(){var u=function(_,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var p in w)w.hasOwnProperty(p)&&(v[p]=w[p])},u(_,f)};return function(y,_){u(y,_);function f(){this.constructor=y}y.prototype=_===null?Object.create(_):(f.prototype=_.prototype,new f)}}(),O=function(u){z(y,u);function y(_,f){var v=u.call(this,f)||this;return v.left=_,v}return y.prototype.run=function(_,f){if(!f.hasModel())return;for(var v=[],w=f.getSelections(),p=0,c=w;p<c.length;p++){var s=c[p];v.push(new U(s,this.left))}f.pushUndoStop(),f.executeCommands(this.id,v),f.pushUndoStop()},y}(re.b),H=function(u){z(y,u);function y(){return u.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}(O),x=function(u){z(y,u);function y(){return u.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}(O);Object(re.f)(H),Object(re.f)(x)},KaET:function(Lt,j,e){},KgQ1:function(Lt,j,e){},Krc3:function(Lt,j,e){},LCkn:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"c",function(){return J}),e.d(j,"e",function(){return I}),e.d(j,"d",function(){return U}),e.d(j,"b",function(){return z});var T=e("gCVg"),re=function(){function O(H,x,u){u===void 0&&(u=!1),this._range=H,this._text=x,this.insertsAutoWhitespace=u}return O.prototype.getEditOperations=function(H,x){x.addTrackedEditOperation(this._range,this._text)},O.prototype.computeCursorState=function(H,x){var u=x.getInverseEditOperations(),y=u[0].range;return new T.a(y.endLineNumber,y.endColumn,y.endLineNumber,y.endColumn)},O}(),J=function(){function O(H,x){this._range=H,this._text=x}return O.prototype.getEditOperations=function(H,x){x.addTrackedEditOperation(this._range,this._text)},O.prototype.computeCursorState=function(H,x){var u=x.getInverseEditOperations(),y=u[0].range;return new T.a(y.startLineNumber,y.startColumn,y.endLineNumber,y.endColumn)},O}(),I=function(){function O(H,x,u){u===void 0&&(u=!1),this._range=H,this._text=x,this.insertsAutoWhitespace=u}return O.prototype.getEditOperations=function(H,x){x.addTrackedEditOperation(this._range,this._text)},O.prototype.computeCursorState=function(H,x){var u=x.getInverseEditOperations(),y=u[0].range;return new T.a(y.startLineNumber,y.startColumn,y.startLineNumber,y.startColumn)},O}(),U=function(){function O(H,x,u,y,_){_===void 0&&(_=!1),this._range=H,this._text=x,this._columnDeltaOffset=y,this._lineNumberDeltaOffset=u,this.insertsAutoWhitespace=_}return O.prototype.getEditOperations=function(H,x){x.addTrackedEditOperation(this._range,this._text)},O.prototype.computeCursorState=function(H,x){var u=x.getInverseEditOperations(),y=u[0].range;return new T.a(y.endLineNumber+this._lineNumberDeltaOffset,y.endColumn+this._columnDeltaOffset,y.endLineNumber+this._lineNumberDeltaOffset,y.endColumn+this._columnDeltaOffset)},O}(),z=function(){function O(H,x,u,y){y===void 0&&(y=!1),this._range=H,this._text=x,this._initialSelection=u,this._forceMoveMarkers=y,this._selectionId=null}return O.prototype.getEditOperations=function(H,x){x.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=x.trackSelection(this._initialSelection)},O.prototype.computeCursorState=function(H,x){return x.getTrackedSelection(this._selectionId)},O}()},LRks:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return e.e(195).then(e.bind(null,"05+/"))}})},LUcL:function(Lt,j,e){"use strict";e.r(j),e.d(j,"DeleteWordPartLeft",function(){return H}),e.d(j,"DeleteWordPartRight",function(){return x}),e.d(j,"WordPartLeftCommand",function(){return u}),e.d(j,"CursorWordPartLeft",function(){return y}),e.d(j,"CursorWordPartLeftSelect",function(){return _}),e.d(j,"WordPartRightCommand",function(){return f}),e.d(j,"CursorWordPartRight",function(){return v}),e.d(j,"CursorWordPartRightSelect",function(){return w});var T=e("sswD"),re=e("1I1M"),J=e("aokT"),I=e("wQH0"),U=e("s7Km"),z=e("nnTU"),O=function(){var p=function(s,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var E in m)m.hasOwnProperty(E)&&(d[E]=m[E])},p(s,l)};return function(c,s){p(c,s);function l(){this.constructor=c}c.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),H=function(p){O(c,p);function c(){return p.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:I.a.writable,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|1},weight:100}})||this}return c.prototype._delete=function(s,l,d,m,E){var L=re.b.deleteWordPartLeft(s,l,d,m);return L||new J.a(1,1,1,1)},c}(U.DeleteWordCommand),x=function(p){O(c,p);function c(){return p.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:I.a.writable,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|20},weight:100}})||this}return c.prototype._delete=function(s,l,d,m,E){var L=re.b.deleteWordPartRight(s,l,d,m);if(L)return L;var A=l.getLineCount(),k=l.getLineMaxColumn(A);return new J.a(A,k,A,k)},c}(U.DeleteWordCommand),u=function(p){O(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return c.prototype._move=function(s,l,d,m){return re.b.moveWordPartLeft(s,l,d)},c}(U.MoveWordCommand),y=function(p){O(c,p);function c(){return p.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|15},weight:100}})||this}return c}(u);z.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var _=function(p){O(c,p);function c(){return p.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|1024|15},weight:100}})||this}return c}(u);z.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var f=function(p){O(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return c.prototype._move=function(s,l,d,m){return re.b.moveWordPartRight(s,l,d)},c}(U.MoveWordCommand),v=function(p){O(c,p);function c(){return p.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|17},weight:100}})||this}return c}(f),w=function(p){O(c,p);function c(){return p.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:0,mac:{primary:256|512|1024|17},weight:100}})||this}return c}(f);Object(T.g)(new H),Object(T.g)(new x),Object(T.g)(new y),Object(T.g)(new _),Object(T.g)(new v),Object(T.g)(new w)},"LeU+":function(Lt,j,e){"use strict";e.d(j,"b",function(){return re}),e.d(j,"a",function(){return J});var T=e("CZ1j"),re=function(){function I(U,z){this.index=U,this.remainder=z}return I}(),J=function(){function I(U){this.values=U,this.prefixSum=new Uint32Array(U.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return I.prototype.insertValues=function(U,z){U=Object(T.a)(U);var O=this.values,H=this.prefixSum,x=z.length;return x===0?!1:(this.values=new Uint32Array(O.length+x),this.values.set(O.subarray(0,U),0),this.values.set(O.subarray(U),U+x),this.values.set(z,U),U-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=U-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(H.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},I.prototype.changeValue=function(U,z){return U=Object(T.a)(U),z=Object(T.a)(z),this.values[U]===z?!1:(this.values[U]=z,U-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=U-1),!0)},I.prototype.removeValues=function(U,z){U=Object(T.a)(U),z=Object(T.a)(z);var O=this.values,H=this.prefixSum;if(U>=O.length)return!1;var x=O.length-U;return z>=x&&(z=x),z===0?!1:(this.values=new Uint32Array(O.length-z),this.values.set(O.subarray(0,U),0),this.values.set(O.subarray(U+z),U),this.prefixSum=new Uint32Array(this.values.length),U-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=U-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(H.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},I.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},I.prototype.getAccumulatedValue=function(U){return U<0?0:(U=Object(T.a)(U),this._getAccumulatedValue(U))},I.prototype._getAccumulatedValue=function(U){if(U<=this.prefixSumValidIndex[0])return this.prefixSum[U];var z=this.prefixSumValidIndex[0]+1;z===0&&(this.prefixSum[0]=this.values[0],z++),U>=this.values.length&&(U=this.values.length-1);for(var O=z;O<=U;O++)this.prefixSum[O]=this.prefixSum[O-1]+this.values[O];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],U),this.prefixSum[U]},I.prototype.getIndexOf=function(U){U=Math.floor(U),this.getTotalValue();for(var z=0,O=this.values.length-1,H=0,x=0,u=0;z<=O;)if(H=z+(O-z)/2|0,x=this.prefixSum[H],u=x-this.values[H],U<u)O=H-1;else if(U>=x)z=H+1;else break;return new re(H,U-u)},I}()},LexI:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return e.e(156).then(e.bind(null,"lHAa"))}})},Ll0s:function(Lt,j,e){"use strict";e.d(j,"b",function(){return _}),e.d(j,"f",function(){return f}),e.d(j,"c",function(){return v}),e.d(j,"d",function(){return c}),e.d(j,"e",function(){return s}),e.d(j,"a",function(){return l}),e.d(j,"g",function(){return d});var T=e("/cxE"),re=e("N0LK"),J=e("cGHE"),I=e("aokT"),U=e("gCVg"),z=e("tX9W"),O=e("cMvZ"),H=function(){return!0},x=function(){return!1},u=function(E){return E===" "||E===" "};function y(m,E,L){m.has(E)?m.get(E).push(L):m.set(E,[L])}var _=function(){function m(E,L,A){this._languageIdentifier=E;var k=A.options,R=k.get(107);this.readOnly=k.get(68),this.tabSize=L.tabSize,this.indentSize=L.indentSize,this.insertSpaces=L.insertSpaces,this.lineHeight=k.get(49),this.pageSize=Math.max(1,Math.floor(R.height/this.lineHeight)-2),this.useTabStops=k.get(95),this.wordSeparators=k.get(96),this.emptySelectionClipboard=k.get(25),this.copyWithSyntaxHighlighting=k.get(15),this.multiCursorMergeOverlapping=k.get(58),this.multiCursorPaste=k.get(60),this.autoClosingBrackets=k.get(5),this.autoClosingQuotes=k.get(7),this.autoClosingOvertype=k.get(6),this.autoSurround=k.get(10),this.autoIndent=k.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:m._getShouldAutoClose(E,this.autoClosingQuotes),bracket:m._getShouldAutoClose(E,this.autoClosingBrackets)};var $=m._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=m._getSurroundingPairs(E);if(le)for(var Ce=0,Me=le;Ce<Me.length;Ce++){var B=Me[Ce];this.surroundingPairs[B.open]=B.close}}return m.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(m.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var L=m._getElectricCharacters(this._languageIdentifier);if(L)for(var A=0,k=L;A<k.length;A++){var R=k[A];this._electricChars[R]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),m.prototype.normalizeIndentation=function(E){return z.b.normalizeIndentation(E,this.indentSize,this.insertSpaces)},m._getElectricCharacters=function(E){try{return O.a.getElectricCharacters(E.id)}catch(L){return Object(T.e)(L),null}},m._getAutoClosingPairs=function(E){try{return O.a.getAutoClosingPairs(E.id)}catch(L){return Object(T.e)(L),null}},m._getShouldAutoClose=function(E,L){switch(L){case"beforeWhitespace":return u;case"languageDefined":return m._getLanguageDefinedShouldAutoClose(E);case"always":return H;case"never":return x}},m._getLanguageDefinedShouldAutoClose=function(E){try{var L=O.a.getAutoCloseBeforeSet(E.id);return function(A){return L.indexOf(A)!==-1}}catch(A){return Object(T.e)(A),x}},m._getSurroundingPairs=function(E){try{return O.a.getSurroundingPairs(E.id)}catch(L){return Object(T.e)(L),null}},m}(),f=function(){function m(E,L,A,k){this.selectionStart=E,this.selectionStartLeftoverVisibleColumns=L,this.position=A,this.leftoverVisibleColumns=k,this.selection=m._computeSelection(this.selectionStart,this.position)}return m.prototype.equals=function(E){return this.selectionStartLeftoverVisibleColumns===E.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===E.leftoverVisibleColumns&&this.position.equals(E.position)&&this.selectionStart.equalsRange(E.selectionStart)},m.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},m.prototype.move=function(E,L,A,k){return E?new m(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new J.a(L,A),k):new m(new I.a(L,A,L,A),k,new J.a(L,A),k)},m._computeSelection=function(E,L){var A,k,R,$;return E.isEmpty()?(A=E.startLineNumber,k=E.startColumn,R=L.lineNumber,$=L.column):L.isBeforeOrEqual(E.getStartPosition())?(A=E.endLineNumber,k=E.endColumn,R=L.lineNumber,$=L.column):(A=E.startLineNumber,k=E.startColumn,R=L.lineNumber,$=L.column),new U.a(A,k,R,$)},m}(),v=function(){function m(E,L,A){this.model=L,this.viewModel=A,this.config=new _(this.model.getLanguageIdentifier(),this.model.getOptions(),E)}return m.prototype.validateViewPosition=function(E,L){return this.viewModel.coordinatesConverter.validateViewPosition(E,L)},m.prototype.validateViewRange=function(E,L){return this.viewModel.coordinatesConverter.validateViewRange(E,L)},m.prototype.convertViewRangeToModelRange=function(E){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(E)},m.prototype.convertViewPositionToModelPosition=function(E,L){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new J.a(E,L))},m.prototype.convertModelPositionToViewPosition=function(E){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(E)},m.prototype.convertModelRangeToViewRange=function(E){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(E)},m.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},m.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},m.prototype.getCompletelyVisibleModelRange=function(){var E=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(E)},m.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(E){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(E)},m.prototype.getVerticalOffsetForViewLine=function(E){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(E)},m}(),w=function(){function m(E){this.modelState=E,this.viewState=null}return m}(),p=function(){function m(E){this.modelState=null,this.viewState=E}return m}(),c=function(){function m(E,L){this.modelState=E,this.viewState=L}return m.fromModelState=function(E){return new w(E)},m.fromViewState=function(E){return new p(E)},m.fromModelSelection=function(E){var L=E.selectionStartLineNumber,A=E.selectionStartColumn,k=E.positionLineNumber,R=E.positionColumn,$=new f(new I.a(L,A,L,A),0,new J.a(k,R),0);return m.fromModelState($)},m.fromModelSelections=function(E){for(var L=[],A=0,k=E.length;A<k;A++)L[A]=this.fromModelSelection(E[A]);return L},m.prototype.equals=function(E){return this.viewState.equals(E.viewState)&&this.modelState.equals(E.modelState)},m}(),s=function(){function m(E,L,A){this.type=E,this.commands=L,this.shouldPushStackElementBefore=A.shouldPushStackElementBefore,this.shouldPushStackElementAfter=A.shouldPushStackElementAfter}return m}(),l=function(){function m(){}return m.visibleColumnFromColumn=function(E,L,A){for(var k=E.length,R=L-1<k?L-1:k,$=0,ie=0;ie<R;){var W=re.u(E,R,ie);if(ie+=W>=65536?2:1,W===9)$=m.nextRenderTabStop($,A);else{for(var B=re.s(W);ie<R;){var le=re.u(E,R,ie),Ce=re.s(le);if(re.b(B,Ce))break;ie+=le>=65536?2:1,B=Ce}re.y(W)||re.w(W)?$=$+2:$=$+1}}return $},m.visibleColumnFromColumn2=function(E,L,A){return this.visibleColumnFromColumn(L.getLineContent(A.lineNumber),A.column,E.tabSize)},m.columnFromVisibleColumn=function(E,L,A){if(L<=0)return 1;for(var k=E.length,R=0,$=1,ie=0;ie<k;){var W=re.u(E,k,ie);ie+=W>=65536?2:1;var B=void 0;if(W===9)B=m.nextRenderTabStop(R,A);else{for(var le=re.s(W);ie<k;){var Ce=re.u(E,k,ie),Me=re.s(Ce);if(re.b(le,Me))break;ie+=Ce>=65536?2:1,le=Me}re.y(W)||re.w(W)?B=R+2:B=R+1}var Te=ie+1;if(B>=L){var Fe=L-R,Ue=B-L;return Ue<Fe?Te:$}R=B,$=Te}return k+1},m.columnFromVisibleColumn2=function(E,L,A,k){var R=this.columnFromVisibleColumn(L.getLineContent(A),k,E.tabSize),$=L.getLineMinColumn(A);if(R<$)return $;var ie=L.getLineMaxColumn(A);return R>ie?ie:R},m.nextRenderTabStop=function(E,L){return E+L-E%L},m.nextIndentTabStop=function(E,L){return E+L-E%L},m.prevRenderTabStop=function(E,L){return E-1-(E-1)%L},m.prevIndentTabStop=function(E,L){return E-1-(E-1)%L},m}();function d(m){return m==="'"||m==='"'||m==="`"}},"M/lh":function(Lt,j,e){self.MonacoEnvironment=function(T){function re(J){return J.replace(/\/$/,"")}return{getWorkerUrl:function(I,U){var z=e.p,O=(z?re(z)+"/":"")+T[U];if(/^(http:)|(https:)|(file:)/.test(O)){var H=String(window.location),x=H.substr(0,H.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(O.substring(0,x.length)!==x){var u="/*"+U+'*/importScripts("'+O+'");';return"data:text/javascript;charset=utf-8,"+encodeURIComponent(u)}}return O}}}({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"),Lt.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(Lt,j,e){"use strict";e.d(j,"d",function(){return T}),e.d(j,"c",function(){return re}),e.d(j,"e",function(){return J}),e.d(j,"b",function(){return I}),e.d(j,"a",function(){return U});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(O){this.tabSize=Math.max(1,O.tabSize|0),this.indentSize=O.tabSize|0,this.insertSpaces=Boolean(O.insertSpaces),this.defaultEOL=O.defaultEOL|0,this.trimAutoWhitespace=Boolean(O.trimAutoWhitespace)}return z.prototype.equals=function(O){return this.tabSize===O.tabSize&&this.indentSize===O.indentSize&&this.insertSpaces===O.insertSpaces&&this.defaultEOL===O.defaultEOL&&this.trimAutoWhitespace===O.trimAutoWhitespace},z.prototype.createChangeEvent=function(O){return{tabSize:this.tabSize!==O.tabSize,indentSize:this.indentSize!==O.indentSize,insertSpaces:this.insertSpaces!==O.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==O.trimAutoWhitespace}},z}(),I=function(){function z(O,H){this.range=O,this.matches=H}return z}(),U=function(){function z(O,H,x){this.reverseEdits=O,this.changes=H,this.trimAutoWhitespaceLineNumbers=x}return z}()},MD5Z:function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"Tb",function(){return u}),e.d(j,"W",function(){return y}),e.d(j,"U",function(){return _}),e.d(j,"V",function(){return f}),e.d(j,"e",function(){return v}),e.d(j,"b",function(){return w}),e.d(j,"ec",function(){return p}),e.d(j,"dc",function(){return c}),e.d(j,"hc",function(){return s}),e.d(j,"Z",function(){return l}),e.d(j,"bb",function(){return d}),e.d(j,"ab",function(){return m}),e.d(j,"Y",function(){return E}),e.d(j,"X",function(){return L}),e.d(j,"fb",function(){return A}),e.d(j,"hb",function(){return k}),e.d(j,"gb",function(){return R}),e.d(j,"ib",function(){return $}),e.d(j,"kb",function(){return ie}),e.d(j,"jb",function(){return W}),e.d(j,"cb",function(){return B}),e.d(j,"eb",function(){return le}),e.d(j,"db",function(){return Ce}),e.d(j,"Ob",function(){return Fe}),e.d(j,"Nb",function(){return Ue}),e.d(j,"c",function(){return Pe}),e.d(j,"d",function(){return ne}),e.d(j,"Vb",function(){return ee}),e.d(j,"Xb",function(){return ae}),e.d(j,"Yb",function(){return q}),e.d(j,"Wb",function(){return ue}),e.d(j,"Sb",function(){return X}),e.d(j,"q",function(){return he}),e.d(j,"p",function(){return je}),e.d(j,"P",function(){return Xe}),e.d(j,"O",function(){return me}),e.d(j,"H",function(){return ge}),e.d(j,"G",function(){return we}),e.d(j,"z",function(){return Re}),e.d(j,"y",function(){return Ee}),e.d(j,"o",function(){return ve}),e.d(j,"x",function(){return Q}),e.d(j,"Q",function(){return C}),e.d(j,"S",function(){return F}),e.d(j,"R",function(){return se}),e.d(j,"T",function(){return oe}),e.d(j,"K",function(){return be}),e.d(j,"L",function(){return De}),e.d(j,"F",function(){return Se}),e.d(j,"M",function(){return Ve}),e.d(j,"N",function(){return Qe}),e.d(j,"r",function(){return it}),e.d(j,"t",function(){return pt}),e.d(j,"v",function(){return Rt}),e.d(j,"s",function(){return Mt}),e.d(j,"u",function(){return zt}),e.d(j,"w",function(){return uo}),e.d(j,"D",function(){return ao}),e.d(j,"A",function(){return so}),e.d(j,"C",function(){return Pt}),e.d(j,"B",function(){return ft}),e.d(j,"E",function(){return vt}),e.d(j,"n",function(){return At}),e.d(j,"J",function(){return at}),e.d(j,"I",function(){return tt}),e.d(j,"g",function(){return ut}),e.d(j,"h",function(){return Ct}),e.d(j,"j",function(){return gt}),e.d(j,"l",function(){return bt}),e.d(j,"k",function(){return Gt}),e.d(j,"m",function(){return Nt}),e.d(j,"i",function(){return Et}),e.d(j,"rb",function(){return Je}),e.d(j,"sb",function(){return $e}),e.d(j,"lb",function(){return ze}),e.d(j,"mb",function(){return Ke}),e.d(j,"xb",function(){return fe}),e.d(j,"yb",function(){return G}),e.d(j,"wb",function(){return te}),e.d(j,"ub",function(){return Y}),e.d(j,"vb",function(){return de}),e.d(j,"nb",function(){return ke}),e.d(j,"tb",function(){return lt}),e.d(j,"ob",function(){return Tt}),e.d(j,"qb",function(){return Jt}),e.d(j,"pb",function(){return eo}),e.d(j,"gc",function(){return po}),e.d(j,"Ab",function(){return co}),e.d(j,"Bb",function(){return Eo}),e.d(j,"zb",function(){return Oo}),e.d(j,"Eb",function(){return Ao}),e.d(j,"Cb",function(){return Zo}),e.d(j,"Db",function(){return Co}),e.d(j,"Fb",function(){return Wo}),e.d(j,"bc",function(){return Go}),e.d(j,"cc",function(){return Bo}),e.d(j,"Zb",function(){return Mo}),e.d(j,"ac",function(){return Qo}),e.d(j,"Lb",function(){return fn}),e.d(j,"Mb",function(){return Vo}),e.d(j,"Hb",function(){return mn}),e.d(j,"Ib",function(){return yn}),e.d(j,"Gb",function(){return dn}),e.d(j,"Jb",function(){return rn}),e.d(j,"Pb",function(){return pn}),e.d(j,"Rb",function(){return zo}),e.d(j,"Qb",function(){return Ho}),e.d(j,"f",function(){return St}),e.d(j,"fc",function(){return nt}),e.d(j,"Kb",function(){return Dt}),e.d(j,"Ub",function(){return M});var T=e("ic2d"),re=e("zrhQ"),J=e("MI8n"),I=e("3/fG"),U=e("3Rsk"),z=e("X+cX"),O={ColorContribution:"base.contributions.colors"},H=function(){function xe(){this._onDidChangeSchema=new J.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return xe.prototype.registerColor=function(Ne,dt,ht,xt,Bt){xt===void 0&&(xt=!1);var Ht={id:Ne,description:ht,defaults:dt,needsTransparency:xt,deprecationMessage:Bt};this.colorsById[Ne]=Ht;var Ut={type:"string",description:ht,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return Bt&&(Ut.deprecationMessage=Bt),this.colorSchema.properties[Ne]=Ut,this.colorReferenceSchema.enum.push(Ne),this.colorReferenceSchema.enumDescriptions.push(ht),this._onDidChangeSchema.fire(),Ne},xe.prototype.resolveDefaultColor=function(Ne,dt){var ht=this.colorsById[Ne];if(ht&&ht.defaults){var xt=ht.defaults[dt.type];return M(xt,dt)}return},xe.prototype.getColorSchema=function(){return this.colorSchema},xe.prototype.toString=function(){var Ne=this,dt=function(xt,Bt){var Ht=xt.indexOf(".")===-1?0:1,Ut=Bt.indexOf(".")===-1?0:1;return Ht!==Ut?Ht-Ut:xt.localeCompare(Bt)};return Object.keys(this.colorsById).sort(dt).map(function(ht){return"- `"+ht+"`: "+Ne.colorsById[ht].description}).join(`
`)},xe}(),x=new H;T.a.add(O.ColorContribution,x);function u(xe,Ne,dt,ht,xt){return x.registerColor(xe,Ne,dt,ht,xt)}var y=u("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},I.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),_=u("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},I.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),f=u("focusBorder",{dark:re.a.fromHex("#0E639C").transparent(.8),light:re.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},I.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),v=u("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},I.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),w=u("contrastActiveBorder",{light:null,dark:null,hc:f},I.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),p=u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},I.a("textLinkForeground","Foreground color for links in text.")),c=u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:re.a.black},I.a("textCodeBlockBackground","Background color for code blocks in text.")),s=u("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},I.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),l=u("input.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},I.a("inputBoxBackground","Input box background.")),d=u("input.foreground",{dark:y,light:y,hc:y},I.a("inputBoxForeground","Input box foreground.")),m=u("input.border",{dark:null,light:null,hc:v},I.a("inputBoxBorder","Input box border.")),E=u("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:v},I.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),L=u("inputOption.activeBackground",{dark:nt(f,.5),light:nt(f,.3),hc:null},I.a("inputOption.activeBackground","Background color of activated options in input fields.")),A=u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:re.a.black},I.a("inputValidationInfoBackground","Input validation background color for information severity.")),k=u("inputValidation.infoForeground",{dark:null,light:null,hc:null},I.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),R=u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:v},I.a("inputValidationInfoBorder","Input validation border color for information severity.")),$=u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:re.a.black},I.a("inputValidationWarningBackground","Input validation background color for warning severity.")),ie=u("inputValidation.warningForeground",{dark:null,light:null,hc:null},I.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),W=u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:v},I.a("inputValidationWarningBorder","Input validation border color for warning severity.")),B=u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:re.a.black},I.a("inputValidationErrorBackground","Input validation background color for error severity.")),le=u("inputValidation.errorForeground",{dark:null,light:null,hc:null},I.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),Ce=u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:v},I.a("inputValidationErrorBorder","Input validation border color for error severity.")),Me=u("dropdown.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},I.a("dropdownBackground","Dropdown background.")),Te=u("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:re.a.white},I.a("dropdownForeground","Dropdown foreground.")),Fe=u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:re.a.white},I.a("pickerGroupForeground","Quick picker color for grouping labels.")),Ue=u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:re.a.white},I.a("pickerGroupBorder","Quick picker color for grouping borders.")),Pe=u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:re.a.black},I.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),ne=u("badge.foreground",{dark:re.a.white,light:"#333",hc:re.a.white},I.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),ee=u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},I.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ae=u("scrollbarSlider.background",{dark:re.a.fromHex("#797979").transparent(.4),light:re.a.fromHex("#646464").transparent(.4),hc:nt(v,.6)},I.a("scrollbarSliderBackground","Scrollbar slider background color.")),q=u("scrollbarSlider.hoverBackground",{dark:re.a.fromHex("#646464").transparent(.7),light:re.a.fromHex("#646464").transparent(.7),hc:nt(v,.8)},I.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),ue=u("scrollbarSlider.activeBackground",{dark:re.a.fromHex("#BFBFBF").transparent(.4),light:re.a.fromHex("#000000").transparent(.6),hc:v},I.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),X=u("progressBar.background",{dark:re.a.fromHex("#0E70C0"),light:re.a.fromHex("#0E70C0"),hc:v},I.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),he=u("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},I.a("editorError.foreground","Foreground color of error squigglies in the editor.")),je=u("editorError.border",{dark:null,light:null,hc:re.a.fromHex("#E47777").transparent(.8)},I.a("errorBorder","Border color of error boxes in the editor.")),Xe=u("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},I.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),me=u("editorWarning.border",{dark:null,light:null,hc:re.a.fromHex("#FFCC00").transparent(.8)},I.a("warningBorder","Border color of warning boxes in the editor.")),ge=u("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},I.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),we=u("editorInfo.border",{dark:null,light:null,hc:re.a.fromHex("#75BEFF").transparent(.8)},I.a("infoBorder","Border color of info boxes in the editor.")),Re=u("editorHint.foreground",{dark:re.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},I.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Ee=u("editorHint.border",{dark:null,light:null,hc:re.a.fromHex("#eeeeee").transparent(.8)},I.a("hintBorder","Border color of hint boxes in the editor.")),ve=u("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:re.a.black},I.a("editorBackground","Editor background color.")),Q=u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:re.a.white},I.a("editorForeground","Editor default foreground color.")),C=u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},I.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),F=u("editorWidget.foreground",{dark:y,light:y,hc:y},I.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),se=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:v},I.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.")),oe=u("editorWidget.resizeBorder",{light:null,dark:null,hc:null},I.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.")),be=u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},I.a("editorSelectionBackground","Color of the editor selection.")),De=u("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},I.a("editorSelectionForeground","Color of the selected text for high contrast.")),Se=u("editor.inactiveSelectionBackground",{light:nt(be,.5),dark:nt(be,.5),hc:nt(be,.5)},I.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=u("editor.selectionHighlightBackground",{light:_e(be,ve,.3,.6),dark:_e(be,ve,.3,.6),hc:null},I.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=u("editor.selectionHighlightBorder",{light:null,dark:null,hc:w},I.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),it=u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},I.a("editorFindMatch","Color of the current search match.")),pt=u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},I.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Rt=u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},I.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Mt=u("editor.findMatchBorder",{light:null,dark:null,hc:w},I.a("editorFindMatchBorder","Border color of the current search match.")),zt=u("editor.findMatchHighlightBorder",{light:null,dark:null,hc:w},I.a("findMatchHighlightBorder","Border color of the other search matches.")),uo=u("editor.findRangeHighlightBorder",{dark:null,light:null,hc:nt(w,.4)},I.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ao=u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},I.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),so=u("editorHoverWidget.background",{light:C,dark:C,hc:C},I.a("hoverBackground","Background color of the editor hover.")),Pt=u("editorHoverWidget.foreground",{light:F,dark:F,hc:F},I.a("hoverForeground","Foreground color of the editor hover.")),ft=u("editorHoverWidget.border",{light:se,dark:se,hc:se},I.a("hoverBorder","Border color of the editor hover.")),vt=u("editorHoverWidget.statusBarBackground",{dark:ot(so,.2),light:St(so,.05),hc:C},I.a("statusBarBackground","Background color of the editor hover status bar.")),At=u("editorLink.activeForeground",{dark:"#4E94CE",light:re.a.blue,hc:re.a.cyan},I.a("activeLinkForeground","Color of active links.")),at=u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},I.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),tt=u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},I.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),ut=new re.a(new re.c(155,185,85,.2)),Ct=new re.a(new re.c(255,0,0,.2)),gt=u("diffEditor.insertedTextBackground",{dark:ut,light:ut,hc:null},I.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),bt=u("diffEditor.removedTextBackground",{dark:Ct,light:Ct,hc:null},I.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Gt=u("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},I.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Nt=u("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},I.a("diffEditorRemovedOutline","Outline color for text that got removed.")),Et=u("diffEditor.border",{dark:null,light:null,hc:v},I.a("diffEditorBorder","Border color between the two text editors.")),Je=u("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},I.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=u("list.focusForeground",{dark:null,light:null,hc:null},I.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=u("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},I.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=u("list.activeSelectionForeground",{dark:re.a.white,light:re.a.white,hc:null},I.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=u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},I.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=u("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},I.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=u("list.inactiveFocusBackground",{dark:null,light:null,hc:null},I.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=u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},I.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),de=u("list.hoverForeground",{dark:null,light:null,hc:null},I.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),ke=u("list.dropBackground",{dark:Je,light:Je,hc:null},I.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),lt=u("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:f},I.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Tt=u("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:re.a.black},I.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Jt=u("listFilterWidget.outline",{dark:re.a.transparent,light:re.a.transparent,hc:"#f38518"},I.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),eo=u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:v},I.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),po=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},I.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),co=u("menu.border",{dark:null,light:null,hc:v},I.a("menuBorder","Border color of menus.")),Eo=u("menu.foreground",{dark:Te,light:y,hc:Te},I.a("menuForeground","Foreground color of menu items.")),Oo=u("menu.background",{dark:Me,light:Me,hc:Me},I.a("menuBackground","Background color of menu items.")),Ao=u("menu.selectionForeground",{dark:Ke,light:Ke,hc:Ke},I.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Zo=u("menu.selectionBackground",{dark:ze,light:ze,hc:ze},I.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Co=u("menu.selectionBorder",{dark:null,light:null,hc:w},I.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Wo=u("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:v},I.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Go=u("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))},I.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Bo=u("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},I.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Mo=u("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},I.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Qo=u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new re.a(new re.c(10,50,100,.5)),hc:"#525252"},I.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),fn=u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},I.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Vo=u("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},I.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),mn=u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},I.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),yn=u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},I.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),dn=u("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))},I.a("minimapError","Minimap marker color for errors.")),rn=u("minimap.warningHighlight",{dark:Xe,light:Xe,hc:me},I.a("overviewRuleWarning","Minimap marker color for warnings.")),pn=u("problemsErrorIcon.foreground",{dark:he,light:he,hc:he},I.a("problemsErrorIconForeground","The color used for the problems error icon.")),zo=u("problemsWarningIcon.foreground",{dark:Xe,light:Xe,hc:Xe},I.a("problemsWarningIconForeground","The color used for the problems warning icon.")),Ho=u("problemsInfoIcon.foreground",{dark:ge,light:ge,hc:ge},I.a("problemsInfoIconForeground","The color used for the problems info icon."));function St(xe,Ne){return function(dt){var ht=M(xe,dt);return ht?ht.darken(Ne):void 0}}function ot(xe,Ne){return function(dt){var ht=M(xe,dt);return ht?ht.lighten(Ne):void 0}}function nt(xe,Ne){return function(dt){var ht=M(xe,dt);return ht?ht.transparent(Ne):void 0}}function Dt(){for(var xe=[],Ne=0;Ne<arguments.length;Ne++)xe[Ne]=arguments[Ne];return function(dt){for(var ht=0,xt=xe;ht<xt.length;ht++){var Bt=xt[ht],Ht=M(Bt,dt);if(Ht)return Ht}return}}function _e(xe,Ne,dt,ht){return function(xt){var Bt=M(xe,xt);if(Bt){var Ht=M(Ne,xt);return Ht?Bt.isDarkerThan(Ht)?re.a.getLighterColor(Bt,Ht,dt).transparent(ht):re.a.getDarkerColor(Bt,Ht,dt).transparent(ht):Bt.transparent(dt*ht)}return}}function M(xe,Ne){return xe===null?void 0:typeof xe=="string"?xe[0]==="#"?re.a.fromHex(xe):Ne.getColor(xe):xe instanceof re.a?xe:typeof xe=="function"?xe(Ne):void 0}var P="vscode://schemas/workbench-colors",Z=T.a.as(U.a.JSONContribution);Z.registerSchema(P,x.getColorSchema());var Ae=new z.d(function(){return Z.notifySchemaChanged(P)},200);x.onDidChangeSchema(function(){Ae.isScheduled()||Ae.schedule()})},MI8n:function(Lt,j,e){"use strict";e.d(j,"b",function(){return z}),e.d(j,"a",function(){return x}),e.d(j,"e",function(){return u}),e.d(j,"d",function(){return y}),e.d(j,"c",function(){return _}),e.d(j,"f",function(){return f});var T=e("/cxE"),re=e("C/vA"),J=e("pmY6"),I=e("24hK"),U=function(){var v=function(p,c){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(p,c)};return function(w,p){v(w,p);function c(){this.constructor=w}w.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}(),z;(function(v){v.None=function(){return J.a.None};function w(Me){return function(Te,Fe,Ue){Fe===void 0&&(Fe=null);var Pe=!1,ne;return ne=Me(function(ee){return Pe?void 0:(ne?ne.dispose():Pe=!0,Te.call(Fe,ee))},null,Ue),Pe&&ne.dispose(),ne}}v.once=w;function p(Me,Te){return E(function(Fe,Ue,Pe){return Ue===void 0&&(Ue=null),Me(function(ne){return Fe.call(Ue,Te(ne))},null,Pe)})}v.map=p;function c(Me,Te){return E(function(Fe,Ue,Pe){return Ue===void 0&&(Ue=null),Me(function(ne){Te(ne),Fe.call(Ue,ne)},null,Pe)})}v.forEach=c;function s(Me,Te){return E(function(Fe,Ue,Pe){return Ue===void 0&&(Ue=null),Me(function(ne){return Te(ne)&&Fe.call(Ue,ne)},null,Pe)})}v.filter=s;function l(Me){return Me}v.signal=l;function d(){for(var Me=[],Te=0;Te<arguments.length;Te++)Me[Te]=arguments[Te];return function(Fe,Ue,Pe){return Ue===void 0&&(Ue=null),J.e.apply(void 0,Me.map(function(ne){return ne(function(ee){return Fe.call(Ue,ee)},null,Pe)}))}}v.any=d;function m(Me,Te,Fe){var Ue=Fe;return p(Me,function(Pe){return Ue=Te(Ue,Pe),Ue})}v.reduce=m;function E(Me){var Te,Fe=new x({onFirstListenerAdd:function(){Te=Me(Fe.fire,Fe)},onLastListenerRemove:function(){Te.dispose()}});return Fe.event}v.snapshot=E;function L(Me,Te,Fe,Ue,Pe){Fe===void 0&&(Fe=100),Ue===void 0&&(Ue=!1);var ne,ee=void 0,ae=void 0,q=0,ue=new x({leakWarningThreshold:Pe,onFirstListenerAdd:function(){ne=Me(function(he){q++,ee=Te(ee,he),Ue&&!ae&&(ue.fire(ee),ee=void 0),clearTimeout(ae),ae=setTimeout(function(){var je=ee;ee=void 0,ae=void 0,(!Ue||q>1)&&ue.fire(je),q=0},Fe)})},onLastListenerRemove:function(){ne.dispose()}});return ue.event}v.debounce=L;function A(Me){var Te=new Date().getTime();return p(w(Me),function(Fe){return new Date().getTime()-Te})}v.stopwatch=A;function k(Me){var Te=!0,Fe;return s(Me,function(Ue){var Pe=Te||Ue!==Fe;return Te=!1,Fe=Ue,Pe})}v.latch=k;function R(Me,Te,Fe){Te===void 0&&(Te=!1),Fe===void 0&&(Fe=[]);var Ue=Fe.slice(),Pe=Me(function(ae){Ue?Ue.push(ae):ee.fire(ae)}),ne=function(){Ue&&Ue.forEach(function(q){return ee.fire(q)}),Ue=null},ee=new x({onFirstListenerAdd:function(){Pe||(Pe=Me(function(q){return ee.fire(q)}))},onFirstListenerDidAdd:function(){Ue&&(Te?setTimeout(ne):ne())},onLastListenerRemove:function(){Pe&&Pe.dispose(),Pe=null}});return ee.event}v.buffer=R;var $=function(){function Me(Te){this.event=Te}return Me.prototype.map=function(Te){return new Me(p(this.event,Te))},Me.prototype.forEach=function(Te){return new Me(c(this.event,Te))},Me.prototype.filter=function(Te){return new Me(s(this.event,Te))},Me.prototype.reduce=function(Te,Fe){return new Me(m(this.event,Te,Fe))},Me.prototype.latch=function(){return new Me(k(this.event))},Me.prototype.debounce=function(Te,Fe,Ue,Pe){return Fe===void 0&&(Fe=100),Ue===void 0&&(Ue=!1),new Me(L(this.event,Te,Fe,Ue,Pe))},Me.prototype.on=function(Te,Fe,Ue){return this.event(Te,Fe,Ue)},Me.prototype.once=function(Te,Fe,Ue){return w(this.event)(Te,Fe,Ue)},Me}();function ie(Me){return new $(Me)}v.chain=ie;function W(Me,Te,Fe){Fe===void 0&&(Fe=function(q){return q});var Ue=function(){for(var q=[],ue=0;ue<arguments.length;ue++)q[ue]=arguments[ue];return ee.fire(Fe.apply(void 0,q))},Pe=function(){return Me.on(Te,Ue)},ne=function(){return Me.removeListener(Te,Ue)},ee=new x({onFirstListenerAdd:Pe,onLastListenerRemove:ne});return ee.event}v.fromNodeEventEmitter=W;function B(Me,Te,Fe){Fe===void 0&&(Fe=function(q){return q});var Ue=function(){for(var q=[],ue=0;ue<arguments.length;ue++)q[ue]=arguments[ue];return ee.fire(Fe.apply(void 0,q))},Pe=function(){return Me.addEventListener(Te,Ue)},ne=function(){return Me.removeEventListener(Te,Ue)},ee=new x({onFirstListenerAdd:Pe,onLastListenerRemove:ne});return ee.event}v.fromDOMEventEmitter=B;function le(Me){var Te=new x,Fe=!1;return Me.then(void 0,function(){return null}).then(function(){Fe?Te.fire(void 0):setTimeout(function(){return Te.fire(void 0)},0)}),Fe=!0,Te.event}v.fromPromise=le;function Ce(Me){return new Promise(function(Te){return w(Me)(Te)})}v.toPromise=Ce})(z||(z={}));var O=-1,H=function(){function v(w,p){p===void 0&&(p=Math.random().toString(18).slice(2,5)),this.customThreshold=w,this.name=p,this._warnCountdown=0}return v.prototype.dispose=function(){this._stacks&&this._stacks.clear()},v.prototype.check=function(w){var p=this,c=O;if(typeof this.customThreshold=="number"&&(c=this.customThreshold),c<=0||w<c)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=c*.5;var d,m=0;this._stacks.forEach(function(E,L){(!d||m<E)&&(d=L,m=E)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+w+" listeners already. MOST frequent listener ("+m+"):"),console.warn(d)}return function(){var E=p._stacks.get(s)||0;p._stacks.set(s,E-1)}},v}(),x=function(){function v(w){this._disposed=!1,this._options=w,this._leakageMon=O>0?new H(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(v.prototype,"event",{get:function(){var p=this;return this._event||(this._event=function(c,s,l){p._listeners||(p._listeners=new I.a);var d=p._listeners.isEmpty();d&&p._options&&p._options.onFirstListenerAdd&&p._options.onFirstListenerAdd(p);var m=p._listeners.push(s?[c,s]:c);d&&p._options&&p._options.onFirstListenerDidAdd&&p._options.onFirstListenerDidAdd(p),p._options&&p._options.onListenerDidAdd&&p._options.onListenerDidAdd(p,c,s);var E;p._leakageMon&&(E=p._leakageMon.check(p._listeners.size));var L;return L={dispose:function(){if(E&&E(),L.dispose=v._noop,!p._disposed&&(m(),p._options&&p._options.onLastListenerRemove)){var k=p._listeners&&!p._listeners.isEmpty();k||p._options.onLastListenerRemove(p)}}},l instanceof J.b?l.add(L):Array.isArray(l)&&l.push(L),L}),this._event},enumerable:!0,configurable:!0}),v.prototype.fire=function(w){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new I.a);for(var p=this._listeners.iterator(),c=p.next();!c.done;c=p.next())this._deliveryQueue.push([c.value,w]);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(m){Object(T.e)(m)}}}},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}(),u=function(v){U(w,v);function w(p){var c=v.call(this,p)||this;return c._isPaused=0,c._eventQueue=new I.a,c._mergeFn=p&&p.merge,c}return w.prototype.pause=function(){this._isPaused++},w.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var p=this._eventQueue.toArray();this._eventQueue.clear(),v.prototype.fire.call(this,this._mergeFn(p))}else for(;!this._isPaused&&this._eventQueue.size!==0;)v.prototype.fire.call(this,this._eventQueue.shift())},w.prototype.fire=function(p){this._listeners&&(this._isPaused!==0?this._eventQueue.push(p):v.prototype.fire.call(this,p))},w}(x),y=function(){function v(){var w=this;this.hasListeners=!1,this.events=[],this.emitter=new x({onFirstListenerAdd:function(){return w.onFirstListenerAdd()},onLastListenerRemove:function(){return w.onLastListenerRemove()}})}return Object.defineProperty(v.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),v.prototype.add=function(w){var p=this,c={event:w,listener:null};this.events.push(c),this.hasListeners&&this.hook(c);var s=function(){p.hasListeners&&p.unhook(c);var d=p.events.indexOf(c);p.events.splice(d,1)};return Object(J.h)(Object(re.a)(s))},v.prototype.onFirstListenerAdd=function(){var w=this;this.hasListeners=!0,this.events.forEach(function(p){return w.hook(p)})},v.prototype.onLastListenerRemove=function(){var w=this;this.hasListeners=!1,this.events.forEach(function(p){return w.unhook(p)})},v.prototype.hook=function(w){var p=this;w.listener=w.event(function(c){return p.emitter.fire(c)})},v.prototype.unhook=function(w){w.listener&&w.listener.dispose(),w.listener=null},v.prototype.dispose=function(){this.emitter.dispose()},v}(),_=function(){function v(){this.buffers=[]}return v.prototype.wrapEvent=function(w){var p=this;return function(c,s,l){return w(function(d){var m=p.buffers[p.buffers.length-1];m?m.push(function(){return c.call(s,d)}):c.call(s,d)},void 0,l)}},v.prototype.bufferEvents=function(w){var p=[];this.buffers.push(p);var c=w();return this.buffers.pop(),p.forEach(function(s){return s()}),c},v}(),f=function(){function v(){var w=this;this.listening=!1,this.inputEvent=z.None,this.inputEventListener=J.a.None,this.emitter=new x({onFirstListenerDidAdd:function(){w.listening=!0,w.inputEventListener=w.inputEvent(w.emitter.fire,w.emitter)},onLastListenerRemove:function(){w.listening=!1,w.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(v.prototype,"input",{set:function(p){this.inputEvent=p,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=p(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),v.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},v}()},MNXI:function(Lt,j,e){},MNsG:function(Lt,j,e){"use strict";(function(T,re){e.d(j,"h",function(){return l}),e.d(j,"e",function(){return d}),e.d(j,"d",function(){return m}),e.d(j,"f",function(){return E}),e.d(j,"g",function(){return L}),e.d(j,"c",function(){return A}),e.d(j,"b",function(){return R}),e.d(j,"i",function(){return $}),e.d(j,"a",function(){return ie});var J="en",I=!1,U=!1,z=!1,O=!1,H=!1,x=!1,u=void 0,y=J,_=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,I=f.indexOf("Windows")>=0,U=f.indexOf("Macintosh")>=0,x=f.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,z=f.indexOf("Linux")>=0,H=!0,u=navigator.language,y=u;else if(typeof T=="object"){I=T.platform==="win32",U=T.platform==="darwin",z=T.platform==="linux",u=J,y=J;var w=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(w)try{var p=JSON.parse(w),c=p.availableLanguages["*"];u=p.locale,y=c||J,_=p._translationsConfigFile}catch(W){}O=!0}var s=0;U?s=1:I?s=3:z&&(s=2);var l=I,d=U,m=z,E=O,L=H,A=x,k=typeof self=="object"?self:typeof re=="object"?re:{},R=k,$=function(){if(R.setImmediate)return R.setImmediate.bind(R);if(typeof R.postMessage=="function"&&!R.importScripts){var B=[];R.addEventListener("message",function(Me){if(Me.data&&Me.data.vscodeSetImmediateId)for(var Te=0,Fe=B.length;Te<Fe;Te++){var Ue=B[Te];if(Ue.id===Me.data.vscodeSetImmediateId){B.splice(Te,1),Ue.callback();return}}});var le=0;return function(Me){var Te=++le;B.push({id:Te,callback:Me}),R.postMessage({vscodeSetImmediateId:Te},"*")}}if(typeof T!="undefined"&&typeof T.nextTick=="function")return T.nextTick.bind(T);var Ce=Promise.resolve();return function(Me){return Ce.then(Me)}}(),ie=U?2:I?1:3}).call(this,e("Q2Ig"),e("yLpj"))},MXAL:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});var T=e("CZ1j"),re=function(){function I(U){var z=Object(T.b)(U);this._defaultValue=z,this._asciiMap=I._createAsciiMap(z),this._map=new Map}return I._createAsciiMap=function(U){for(var z=new Uint8Array(256),O=0;O<256;O++)z[O]=U;return z},I.prototype.set=function(U,z){var O=Object(T.b)(z);U>=0&&U<256?this._asciiMap[U]=O:this._map.set(U,O)},I.prototype.get=function(U){return U>=0&&U<256?this._asciiMap[U]:this._map.get(U)||this._defaultValue},I}(),J=function(){function I(){this._actual=new re(0)}return I.prototype.add=function(U){this._actual.set(U,1)},I.prototype.has=function(U){return this._actual.get(U)===1},I}()},Md8J:function(Lt,j,e){"use strict";e.d(j,"c",function(){return re}),e.d(j,"b",function(){return J}),e.d(j,"a",function(){return I});var T=e("EffR");function re(u,y){y===void 0&&(y={});var _=I(y);return _.textContent=u,_}function J(u,y){y===void 0&&(y={});var _=I(y);return z(_,O(u),y.actionHandler),_}function I(u){var y=u.inline?"span":"div",_=document.createElement(y);return u.className&&(_.className=u.className),_}var U=function(){function u(y){this.source=y,this.index=0}return u.prototype.eos=function(){return this.index>=this.source.length},u.prototype.next=function(){var y=this.peek();return this.advance(),y},u.prototype.peek=function(){return this.source[this.index]},u.prototype.advance=function(){this.index++},u}();function z(u,y,_){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&&_){var v=document.createElement("a");v.href="#",_.disposeables.add(T.o(v,"click",function(w){_.callback(String(y.index),w)})),f=v}else y.type===7?f=document.createElement("br"):y.type===1&&(f=u);f&&u!==f&&u.appendChild(f),f&&Array.isArray(y.children)&&y.children.forEach(function(w){z(f,w,_)})}function O(u){for(var y={type:1,children:[]},_=0,f=y,v=[],w=new U(u);!w.eos();){var p=w.next(),c=p==="\\"&&x(w.peek())!==0;if(c&&(p=w.next()),!c&&H(p)&&p===w.peek()){w.advance(),f.type===2&&(f=v.pop());var s=x(p);if(f.type===s||f.type===5&&s===6)f=v.pop();else{var l={type:s,children:[]};s===5&&(l.index=_,_++),f.children.push(l),v.push(f),f=l}}else if(p===`
`)f.type===2&&(f=v.pop()),f.children.push({type:7});else if(f.type!==2){var d={type:2,content:p};f.children.push(d),v.push(f),f=d}else f.content+=p}return f.type===2&&(f=v.pop()),v.length,y}function H(u){return x(u)!==0}function x(u){switch(u){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},MqQJ:function(Lt,j,e){"use strict";e.d(j,"a",function(){return H}),e.d(j,"c",function(){return x}),e.d(j,"b",function(){return u});var T=e("3/fG"),re=e("MI8n"),J=e("twdY"),I=e("cMvZ"),U=e("ic2d"),z={ModesRegistry:"editor.modesRegistry"},O=function(){function y(){this._onDidChangeLanguages=new re.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return y.prototype.registerLanguage=function(_){this._languages.push(_),this._onDidChangeLanguages.fire(void 0)},y.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},y}(),H=new O;U.a.add(z.ModesRegistry,H);var x="plaintext",u=new J.r(x,1);H.registerLanguage({id:x,extensions:[".txt",".gitignore"],aliases:[T.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),I.a.register(u,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},MrjW:function(Lt,j,e){"use strict";e.r(j),e.d(j,"win32",function(){return l}),e.d(j,"posix",function(){return d}),e.d(j,"normalize",function(){return m}),e.d(j,"join",function(){return E}),e.d(j,"relative",function(){return L}),e.d(j,"dirname",function(){return A}),e.d(j,"basename",function(){return k}),e.d(j,"extname",function(){return R}),e.d(j,"sep",function(){return $});var T=e("wxcJ"),re=function(){var ie=function(B,le){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ce,Me){Ce.__proto__=Me}||function(Ce,Me){for(var Te in Me)Me.hasOwnProperty(Te)&&(Ce[Te]=Me[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,I=97,U=90,z=122,O=46,H=47,x=92,u=58,y=63,_=function(ie){re(W,ie);function W(B,le,Ce){var Me=this,Te;typeof le=="string"&&le.indexOf("not ")===0?(Te="must not be",le=le.replace(/^not /,"")):Te="must be";var Fe=B.indexOf(".")!==-1?"property":"argument",Ue='The "'+B+'" '+Fe+" "+Te+" of type "+le;return Ue+=". Received type "+typeof Ce,Me=ie.call(this,Ue)||this,Me.code="ERR_INVALID_ARG_TYPE",Me}return W}(Error);function f(ie,W){if(typeof ie!="string")throw new _(W,"string",ie)}function v(ie){return ie===H||ie===x}function w(ie){return ie===H}function p(ie){return ie>=J&&ie<=U||ie>=I&&ie<=z}function c(ie,W,B,le){for(var Ce="",Me=0,Te=-1,Fe=0,Ue,Pe=0;Pe<=ie.length;++Pe){if(Pe<ie.length)Ue=ie.charCodeAt(Pe);else{if(le(Ue))break;Ue=H}if(le(Ue)){if(!(Te===Pe-1||Fe===1))if(Te!==Pe-1&&Fe===2){if(Ce.length<2||Me!==2||Ce.charCodeAt(Ce.length-1)!==O||Ce.charCodeAt(Ce.length-2)!==O){if(Ce.length>2){var ne=Ce.lastIndexOf(B);ne===-1?(Ce="",Me=0):(Ce=Ce.slice(0,ne),Me=Ce.length-1-Ce.lastIndexOf(B)),Te=Pe,Fe=0;continue}else if(Ce.length===2||Ce.length===1){Ce="",Me=0,Te=Pe,Fe=0;continue}}W&&(Ce.length>0?Ce+=B+"..":Ce="..",Me=2)}else Ce.length>0?Ce+=B+ie.slice(Te+1,Pe):Ce=ie.slice(Te+1,Pe),Me=Pe-Te-1;Te=Pe,Fe=0}else Ue===O&&Fe!==-1?++Fe:Fe=-1}return Ce}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="",Ce="",Me=!1,Te=W.length-1;Te>=-1;Te--){var Fe=void 0;if(Te>=0?Fe=W[Te]:le?(Fe=T.b["="+le]||T.a(),(Fe===void 0||Fe.slice(0,3).toLowerCase()!==le.toLowerCase()+"\\")&&(Fe=le+"\\")):Fe=T.a(),f(Fe,"path"),Fe.length===0)continue;var Ue=Fe.length,Pe=0,ne="",ee=!1,ae=Fe.charCodeAt(0);if(Ue>1)if(v(ae))if(ee=!0,v(Fe.charCodeAt(1))){for(var q=2,ue=q;q<Ue&&!v(Fe.charCodeAt(q));++q);if(q<Ue&&q!==ue){var X=Fe.slice(ue,q);for(ue=q;q<Ue&&v(Fe.charCodeAt(q));++q);if(q<Ue&&q!==ue){for(ue=q;q<Ue&&!v(Fe.charCodeAt(q));++q);q===Ue?(ne="\\\\"+X+"\\"+Fe.slice(ue),Pe=q):q!==ue&&(ne="\\\\"+X+"\\"+Fe.slice(ue,q),Pe=q)}}}else Pe=1;else p(ae)&&(Fe.charCodeAt(1)===u&&(ne=Fe.slice(0,2),Pe=2,Ue>2&&(v(Fe.charCodeAt(2))&&(ee=!0,Pe=3))));else v(ae)&&(Pe=1,ee=!0);if(ne.length>0&&le.length>0&&ne.toLowerCase()!==le.toLowerCase())continue;if(le.length===0&&ne.length>0&&(le=ne),Me||(Ce=Fe.slice(Pe)+"\\"+Ce,Me=ee),le.length>0&&Me)break}return Ce=c(Ce,!Me,"\\",v),le+(Me?"\\":"")+Ce||"."},normalize:function(W){f(W,"path");var B=W.length;if(B===0)return".";var le=0,Ce,Me=!1,Te=W.charCodeAt(0);if(B>1)if(v(Te))if(Me=!0,v(W.charCodeAt(1))){for(var Fe=2,Ue=Fe;Fe<B&&!v(W.charCodeAt(Fe));++Fe);if(Fe<B&&Fe!==Ue){var Pe=W.slice(Ue,Fe);for(Ue=Fe;Fe<B&&v(W.charCodeAt(Fe));++Fe);if(Fe<B&&Fe!==Ue){for(Ue=Fe;Fe<B&&!v(W.charCodeAt(Fe));++Fe);if(Fe===B)return"\\\\"+Pe+"\\"+W.slice(Ue)+"\\";Fe!==Ue&&(Ce="\\\\"+Pe+"\\"+W.slice(Ue,Fe),le=Fe)}}}else le=1;else p(Te)&&(W.charCodeAt(1)===u&&(Ce=W.slice(0,2),le=2,B>2&&(v(W.charCodeAt(2))&&(Me=!0,le=3))));else if(v(Te))return"\\";var ne;return le<B?ne=c(W.slice(le),!Me,"\\",v):ne="",ne.length===0&&!Me&&(ne="."),ne.length>0&&v(W.charCodeAt(B-1))&&(ne+="\\"),Ce===void 0?Me?ne.length>0?"\\"+ne:"\\":ne.length>0?ne:"":Me?ne.length>0?Ce+"\\"+ne:Ce+"\\":ne.length>0?Ce+ne:Ce},isAbsolute:function(W){f(W,"path");var B=W.length;if(B===0)return!1;var le=W.charCodeAt(0);return v(le)?!0:!!(p(le)&&(B>2&&W.charCodeAt(1)===u&&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,Ce,Me=0;Me<W.length;++Me){var Te=W[Me];f(Te,"path"),Te.length>0&&(le===void 0?le=Ce=Te:le+="\\"+Te)}if(le===void 0)return".";var Fe=!0,Ue=0;if(typeof Ce=="string"&&v(Ce.charCodeAt(0))){++Ue;var Pe=Ce.length;Pe>1&&(v(Ce.charCodeAt(1))&&(++Ue,Pe>2&&(v(Ce.charCodeAt(2))?++Ue:Fe=!1)))}if(Fe){for(;Ue<le.length&&v(le.charCodeAt(Ue));++Ue);Ue>=2&&(le="\\"+le.slice(Ue))}return l.normalize(le)},relative:function(W,B){if(f(W,"from"),f(B,"to"),W===B)return"";var le=l.resolve(W),Ce=l.resolve(B);if(le===Ce)return"";if(W=le.toLowerCase(),B=Ce.toLowerCase(),W===B)return"";for(var Me=0;Me<W.length&&!(W.charCodeAt(Me)!==x);++Me);for(var Te=W.length;Te-1>Me&&!(W.charCodeAt(Te-1)!==x);--Te);for(var Fe=Te-Me,Ue=0;Ue<B.length&&!(B.charCodeAt(Ue)!==x);++Ue);for(var Pe=B.length;Pe-1>Ue&&!(B.charCodeAt(Pe-1)!==x);--Pe);for(var ne=Pe-Ue,ee=Fe<ne?Fe:ne,ae=-1,q=0;q<=ee;++q){if(q===ee){if(ne>ee){if(B.charCodeAt(Ue+q)===x)return Ce.slice(Ue+q+1);if(q===2)return Ce.slice(Ue+q)}Fe>ee&&(W.charCodeAt(Me+q)===x?ae=q:q===2&&(ae=3));break}var ue=W.charCodeAt(Me+q),X=B.charCodeAt(Ue+q);if(ue!==X)break;ue===x&&(ae=q)}if(q!==ee&&ae===-1)return Ce;var he="";for(ae===-1&&(ae=0),q=Me+ae+1;q<=Te;++q)(q===Te||W.charCodeAt(q)===x)&&(he.length===0?he+="..":he+="\\..");return he.length>0?he+Ce.slice(Ue+ae,Pe):(Ue+=ae,Ce.charCodeAt(Ue)===x&&++Ue,Ce.slice(Ue,Pe))},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)===x){if(B.charCodeAt(1)===x){var le=B.charCodeAt(2);if(le!==y&&le!==O)return"\\\\?\\UNC\\"+B.slice(2)}}else if(p(B.charCodeAt(0))&&(B.charCodeAt(1)===u&&B.charCodeAt(2)===x))return"\\\\?\\"+B}return W},dirname:function(W){f(W,"path");var B=W.length;if(B===0)return".";var le=-1,Ce=-1,Me=!0,Te=0,Fe=W.charCodeAt(0);if(B>1)if(v(Fe)){if(le=Te=1,v(W.charCodeAt(1))){for(var Ue=2,Pe=Ue;Ue<B&&!v(W.charCodeAt(Ue));++Ue);if(Ue<B&&Ue!==Pe){for(Pe=Ue;Ue<B&&v(W.charCodeAt(Ue));++Ue);if(Ue<B&&Ue!==Pe){for(Pe=Ue;Ue<B&&!v(W.charCodeAt(Ue));++Ue);if(Ue===B)return W;Ue!==Pe&&(le=Te=Ue+1)}}}}else p(Fe)&&(W.charCodeAt(1)===u&&(le=Te=2,B>2&&(v(W.charCodeAt(2))&&(le=Te=3))));else if(v(Fe))return W;for(var ne=B-1;ne>=Te;--ne)if(v(W.charCodeAt(ne))){if(!Me){Ce=ne;break}}else Me=!1;if(Ce===-1){if(le===-1)return".";Ce=le}return W.slice(0,Ce)},basename:function(W,B){B!==void 0&&f(B,"ext"),f(W,"path");var le=0,Ce=-1,Me=!0,Te;if(W.length>=2){var Fe=W.charCodeAt(0);p(Fe)&&(W.charCodeAt(1)===u&&(le=2))}if(B!==void 0&&B.length>0&&B.length<=W.length){if(B.length===W.length&&B===W)return"";var Ue=B.length-1,Pe=-1;for(Te=W.length-1;Te>=le;--Te){var ne=W.charCodeAt(Te);if(v(ne)){if(!Me){le=Te+1;break}}else Pe===-1&&(Me=!1,Pe=Te+1),Ue>=0&&(ne===B.charCodeAt(Ue)?--Ue===-1&&(Ce=Te):(Ue=-1,Ce=Pe))}return le===Ce?Ce=Pe:Ce===-1&&(Ce=W.length),W.slice(le,Ce)}else{for(Te=W.length-1;Te>=le;--Te)if(v(W.charCodeAt(Te))){if(!Me){le=Te+1;break}}else Ce===-1&&(Me=!1,Ce=Te+1);return Ce===-1?"":W.slice(le,Ce)}},extname:function(W){f(W,"path");var B=0,le=-1,Ce=0,Me=-1,Te=!0,Fe=0;W.length>=2&&W.charCodeAt(1)===u&&p(W.charCodeAt(0))&&(B=Ce=2);for(var Ue=W.length-1;Ue>=B;--Ue){var Pe=W.charCodeAt(Ue);if(v(Pe)){if(!Te){Ce=Ue+1;break}continue}Me===-1&&(Te=!1,Me=Ue+1),Pe===O?le===-1?le=Ue:Fe!==1&&(Fe=1):le!==-1&&(Fe=-1)}return le===-1||Me===-1||Fe===0||Fe===1&&le===Me-1&&le===Ce+1?"":W.slice(le,Me)},format:function(W){if(W===null||typeof W!="object")throw new _("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,Ce=0,Me=W.charCodeAt(0);if(le>1){if(v(Me)){if(Ce=1,v(W.charCodeAt(1))){for(var Te=2,Fe=Te;Te<le&&!v(W.charCodeAt(Te));++Te);if(Te<le&&Te!==Fe){for(Fe=Te;Te<le&&v(W.charCodeAt(Te));++Te);if(Te<le&&Te!==Fe){for(Fe=Te;Te<le&&!v(W.charCodeAt(Te));++Te);Te===le?Ce=Te:Te!==Fe&&(Ce=Te+1)}}}}else if(p(Me)&&W.charCodeAt(1)===u)if(Ce=2,le>2){if(v(W.charCodeAt(2))){if(le===3)return B.root=B.dir=W,B;Ce=3}}else return B.root=B.dir=W,B}else if(v(Me))return B.root=B.dir=W,B;Ce>0&&(B.root=W.slice(0,Ce));for(var Ue=-1,Pe=Ce,ne=-1,ee=!0,ae=W.length-1,q=0;ae>=Ce;--ae){if(Me=W.charCodeAt(ae),v(Me)){if(!ee){Pe=ae+1;break}continue}ne===-1&&(ee=!1,ne=ae+1),Me===O?Ue===-1?Ue=ae:q!==1&&(q=1):Ue!==-1&&(q=-1)}return Ue===-1||ne===-1||q===0||q===1&&Ue===ne-1&&Ue===Pe+1?ne!==-1&&(B.base=B.name=W.slice(Pe,ne)):(B.name=W.slice(Pe,Ue),B.base=W.slice(Pe,ne),B.ext=W.slice(Ue,ne)),Pe>0&&Pe!==Ce?B.dir=W.slice(0,Pe-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="",Ce=!1,Me=W.length-1;Me>=-1&&!Ce;Me--){var Te=void 0;if(Me>=0?Te=W[Me]:Te=T.a(),f(Te,"path"),Te.length===0)continue;le=Te+"/"+le,Ce=Te.charCodeAt(0)===H}return le=c(le,!Ce,"/",w),Ce?le.length>0?"/"+le:"/":le.length>0?le:"."},normalize:function(W){if(f(W,"path"),W.length===0)return".";var B=W.charCodeAt(0)===H,le=W.charCodeAt(W.length-1)===H;return W=c(W,!B,"/",w),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)===H},join:function(){for(var W=[],B=0;B<arguments.length;B++)W[B]=arguments[B];if(W.length===0)return".";for(var le,Ce=0;Ce<W.length;++Ce){var Me=arguments[Ce];f(Me,"path"),Me.length>0&&(le===void 0?le=Me:le+="/"+Me)}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)!==H);++le);for(var Ce=W.length,Me=Ce-le,Te=1;Te<B.length&&!(B.charCodeAt(Te)!==H);++Te);for(var Fe=B.length,Ue=Fe-Te,Pe=Me<Ue?Me:Ue,ne=-1,ee=0;ee<=Pe;++ee){if(ee===Pe){if(Ue>Pe){if(B.charCodeAt(Te+ee)===H)return B.slice(Te+ee+1);if(ee===0)return B.slice(Te+ee)}else Me>Pe&&(W.charCodeAt(le+ee)===H?ne=ee:ee===0&&(ne=0));break}var ae=W.charCodeAt(le+ee),q=B.charCodeAt(Te+ee);if(ae!==q)break;ae===H&&(ne=ee)}var ue="";for(ee=le+ne+1;ee<=Ce;++ee)(ee===Ce||W.charCodeAt(ee)===H)&&(ue.length===0?ue+="..":ue+="/..");return ue.length>0?ue+B.slice(Te+ne):(Te+=ne,B.charCodeAt(Te)===H&&++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)===H,le=-1,Ce=!0,Me=W.length-1;Me>=1;--Me)if(W.charCodeAt(Me)===H){if(!Ce){le=Me;break}}else Ce=!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,Ce=-1,Me=!0,Te;if(B!==void 0&&B.length>0&&B.length<=W.length){if(B.length===W.length&&B===W)return"";var Fe=B.length-1,Ue=-1;for(Te=W.length-1;Te>=0;--Te){var Pe=W.charCodeAt(Te);if(Pe===H){if(!Me){le=Te+1;break}}else Ue===-1&&(Me=!1,Ue=Te+1),Fe>=0&&(Pe===B.charCodeAt(Fe)?--Fe===-1&&(Ce=Te):(Fe=-1,Ce=Ue))}return le===Ce?Ce=Ue:Ce===-1&&(Ce=W.length),W.slice(le,Ce)}else{for(Te=W.length-1;Te>=0;--Te)if(W.charCodeAt(Te)===H){if(!Me){le=Te+1;break}}else Ce===-1&&(Me=!1,Ce=Te+1);return Ce===-1?"":W.slice(le,Ce)}},extname:function(W){f(W,"path");for(var B=-1,le=0,Ce=-1,Me=!0,Te=0,Fe=W.length-1;Fe>=0;--Fe){var Ue=W.charCodeAt(Fe);if(Ue===H){if(!Me){le=Fe+1;break}continue}Ce===-1&&(Me=!1,Ce=Fe+1),Ue===O?B===-1?B=Fe:Te!==1&&(Te=1):B!==-1&&(Te=-1)}return B===-1||Ce===-1||Te===0||Te===1&&B===Ce-1&&B===le+1?"":W.slice(B,Ce)},format:function(W){if(W===null||typeof W!="object")throw new _("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)===H,Ce;le?(B.root="/",Ce=1):Ce=0;for(var Me=-1,Te=0,Fe=-1,Ue=!0,Pe=W.length-1,ne=0;Pe>=Ce;--Pe){var ee=W.charCodeAt(Pe);if(ee===H){if(!Ue){Te=Pe+1;break}continue}Fe===-1&&(Ue=!1,Fe=Pe+1),ee===O?Me===-1?Me=Pe:ne!==1&&(ne=1):Me!==-1&&(ne=-1)}return Me===-1||Fe===-1||ne===0||ne===1&&Me===Fe-1&&Me===Te+1?Fe!==-1&&(Te===0&&le?B.base=B.name=W.slice(1,Fe):B.base=B.name=W.slice(Te,Fe)):(Te===0&&le?(B.name=W.slice(1,Me),B.base=W.slice(1,Fe)):(B.name=W.slice(Te,Me),B.base=W.slice(Te,Fe)),B.ext=W.slice(Me,Fe)),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 m=T.c==="win32"?l.normalize:d.normalize,E=T.c==="win32"?l.join:d.join,L=T.c==="win32"?l.relative:d.relative,A=T.c==="win32"?l.dirname:d.dirname,k=T.c==="win32"?l.basename:d.basename,R=T.c==="win32"?l.extname:d.extname,$=T.c==="win32"?l.sep:d.sep},Msxo:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return e.e(180).then(e.bind(null,"Qx4d"))}})},MvK1:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});var T=function(){function I(U,z,O){this.from=U|0,this.to=z|0,this.colorId=O|0}return I.compare=function(U,z){return U.colorId===z.colorId?U.from===z.from?U.to-z.to:U.from-z.from:U.colorId-z.colorId},I}(),re=function(){function I(U,z,O){this.startLineNumber=U,this.endLineNumber=z,this.color=O,this._colorZone=null}return I.compare=function(U,z){return U.color===z.color?U.startLineNumber===z.startLineNumber?U.endLineNumber-z.endLineNumber:U.startLineNumber-z.startLineNumber:U.color<z.color?-1:1},I.prototype.setColorZone=function(U){this._colorZone=U},I.prototype.getColorZones=function(){return this._colorZone},I}(),J=function(){function I(U){this._getVerticalOffsetForLine=U,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 I.prototype.getId2Color=function(){return this._id2Color},I.prototype.setZones=function(U){this._zones=U,this._zones.sort(re.compare)},I.prototype.setLineHeight=function(U){return this._lineHeight===U?!1:(this._lineHeight=U,this._colorZonesInvalid=!0,!0)},I.prototype.setPixelRatio=function(U){this._pixelRatio=U,this._colorZonesInvalid=!0},I.prototype.getDOMWidth=function(){return this._domWidth},I.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},I.prototype.setDOMWidth=function(U){return this._domWidth===U?!1:(this._domWidth=U,this._colorZonesInvalid=!0,!0)},I.prototype.getDOMHeight=function(){return this._domHeight},I.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},I.prototype.setDOMHeight=function(U){return this._domHeight===U?!1:(this._domHeight=U,this._colorZonesInvalid=!0,!0)},I.prototype.getOuterHeight=function(){return this._outerHeight},I.prototype.setOuterHeight=function(U){return this._outerHeight===U?!1:(this._outerHeight=U,this._colorZonesInvalid=!0,!0)},I.prototype.resolveColorZones=function(){for(var U=this._colorZonesInvalid,z=Math.floor(this._lineHeight),O=Math.floor(this.getCanvasHeight()),H=Math.floor(this._outerHeight),x=O/H,u=Math.floor(4*this._pixelRatio/2),y=[],_=0,f=this._zones.length;_<f;_++){var v=this._zones[_];if(!U){var w=v.getColorZones();if(w){y.push(w);continue}}var p=Math.floor(x*this._getVerticalOffsetForLine(v.startLineNumber)),c=Math.floor(x*(this._getVerticalOffsetForLine(v.endLineNumber)+z)),s=Math.floor((p+c)/2),l=c-s;l<u&&(l=u),s-l<0&&(s=l),s+l>O&&(s=O-l);var d=v.color,m=this._color2Id[d];m||(m=++this._lastAssignedId,this._color2Id[d]=m,this._id2Color[m]=d);var E=new T(s-l,s+l,m);v.setColorZone(E),y.push(E)}return this._colorZonesInvalid=!1,y.sort(T.compare),y},I}()},Mzro:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return e.e(190).then(e.bind(null,"l/4i"))}})},N0LK:function(Lt,j,e){"use strict";e.d(j,"x",function(){return T}),e.d(j,"F",function(){return re}),e.d(j,"r",function(){return I}),e.d(j,"o",function(){return U}),e.d(j,"p",function(){return z}),e.d(j,"Q",function(){return O}),e.d(j,"K",function(){return x}),e.d(j,"k",function(){return u}),e.d(j,"N",function(){return y}),e.d(j,"m",function(){return _}),e.d(j,"l",function(){return f}),e.d(j,"I",function(){return v}),e.d(j,"H",function(){return w}),e.d(j,"q",function(){return p}),e.d(j,"t",function(){return c}),e.d(j,"D",function(){return s}),e.d(j,"e",function(){return l}),e.d(j,"f",function(){return d}),e.d(j,"B",function(){return m}),e.d(j,"C",function(){return E}),e.d(j,"n",function(){return A}),e.d(j,"O",function(){return R}),e.d(j,"c",function(){return $}),e.d(j,"d",function(){return ie}),e.d(j,"z",function(){return W}),e.d(j,"A",function(){return B}),e.d(j,"u",function(){return le}),e.d(j,"E",function(){return Me}),e.d(j,"G",function(){return Te}),e.d(j,"i",function(){return Ue}),e.d(j,"g",function(){return ne}),e.d(j,"v",function(){return ae}),e.d(j,"h",function(){return q}),e.d(j,"y",function(){return ue}),e.d(j,"w",function(){return X}),e.d(j,"a",function(){return he}),e.d(j,"P",function(){return je}),e.d(j,"L",function(){return Xe}),e.d(j,"J",function(){return me}),e.d(j,"j",function(){return ge}),e.d(j,"M",function(){return we}),e.d(j,"s",function(){return Re}),e.d(j,"b",function(){return Ee});function T(C){return!C||typeof C!="string"?!0:C.trim().length===0}function re(C,F,se){se===void 0&&(se="0");for(var oe=""+C,be=[oe],De=oe.length;De<F;De++)be.push(se);return be.reverse().join("")}var J=/{(\d+)}/g;function I(C){for(var F=[],se=1;se<arguments.length;se++)F[se-1]=arguments[se];return F.length===0?C:C.replace(J,function(oe,be){var De=parseInt(be,10);return isNaN(De)||De<0||De>=F.length?oe:F[De]})}function U(C){return C.replace(/[<>&]/g,function(F){switch(F){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return F}})}function z(C){return C.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function O(C,F){F===void 0&&(F=" ");var se=H(C,F);return x(se,F)}function H(C,F){if(!C||!F)return C;var se=F.length;if(se===0||C.length===0)return C;for(var oe=0;C.indexOf(F,oe)===oe;)oe=oe+se;return C.substring(oe)}function x(C,F){if(!C||!F)return C;var se=F.length,oe=C.length;if(se===0||oe===0)return C;for(var be=oe,De=-1;!(De=C.lastIndexOf(F,be-1),De===-1||De+se!==be);){if(De===0)return"";be=De}return C.substring(0,be)}function u(C){return C.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function y(C,F){if(C.length<F.length)return!1;if(C===F)return!0;for(var se=0;se<F.length;se++)if(C[se]!==F[se])return!1;return!0}function _(C,F){var se=C.length-F.length;return se>0?C.indexOf(F,se)===se:se===0?C===F:!1}function f(C,F,se){if(se===void 0&&(se={}),!C)throw new Error("Cannot create regex from empty string");F||(C=z(C)),se.wholeWord&&(/\B/.test(C.charAt(0))||(C="\\b"+C),/\B/.test(C.charAt(C.length-1))||(C=C+"\\b"));var oe="";return se.global&&(oe+="g"),se.matchCase||(oe+="i"),se.multiline&&(oe+="m"),se.unicode&&(oe+="u"),new RegExp(C,oe)}function v(C){if(C.source==="^"||C.source==="^$"||C.source==="$"||C.source==="^\\s*$")return!1;var F=C.exec("");return!!(F&&C.lastIndex===0)}function w(C){return(C.global?"g":"")+(C.ignoreCase?"i":"")+(C.multiline?"m":"")+(C.unicode?"u":"")}function p(C){for(var F=0,se=C.length;F<se;F++){var oe=C.charCodeAt(F);if(oe!==32&&oe!==9)return F}return-1}function c(C,F,se){F===void 0&&(F=0),se===void 0&&(se=C.length);for(var oe=F;oe<se;oe++){var be=C.charCodeAt(oe);if(be!==32&&be!==9)return C.substring(F,oe)}return C.substring(F,se)}function s(C,F){F===void 0&&(F=C.length-1);for(var se=F;se>=0;se--){var oe=C.charCodeAt(se);if(oe!==32&&oe!==9)return se}return-1}function l(C,F){return C<F?-1:C>F?1:0}function d(C,F){for(var se=Math.min(C.length,F.length),oe=0;oe<se;oe++){var be=C.charCodeAt(oe),De=F.charCodeAt(oe);if(be===De)continue;E(be)&&(be+=32),E(De)&&(De+=32);var Se=be-De;if(Se===0)continue;return m(be)&&m(De)?Se:l(C.toLowerCase(),F.toLowerCase())}return C.length<F.length?-1:C.length>F.length?1:0}function m(C){return C>=97&&C<=122}function E(C){return C>=65&&C<=90}function L(C){return m(C)||E(C)}function A(C,F){return C.length===F.length&&k(C,F)}function k(C,F,se){se===void 0&&(se=C.length);for(var oe=0;oe<se;oe++){var be=C.charCodeAt(oe),De=F.charCodeAt(oe);if(be===De)continue;if(L(be)&&L(De)){var Se=Math.abs(be-De);if(Se!==0&&Se!==32)return!1}else if(String.fromCharCode(be).toLowerCase()!==String.fromCharCode(De).toLowerCase())return!1}return!0}function R(C,F){var se=F.length;return F.length>C.length?!1:k(C,F,se)}function $(C,F){var se,oe=Math.min(C.length,F.length);for(se=0;se<oe;se++)if(C.charCodeAt(se)!==F.charCodeAt(se))return se;return oe}function ie(C,F){var se,oe=Math.min(C.length,F.length),be=C.length-1,De=F.length-1;for(se=0;se<oe;se++)if(C.charCodeAt(be-se)!==F.charCodeAt(De-se))return se;return oe}function W(C){return 55296<=C&&C<=56319}function B(C){return 56320<=C&&C<=57343}function le(C,F,se){var oe=C.charCodeAt(se);if(W(oe)&&se+1<F){var be=C.charCodeAt(se+1);if(B(be))return(oe-55296<<10)+(be-56320)+65536}return oe}function Ce(C,F){var se=C.charCodeAt(F-1);if(B(se)&&F>1){var oe=C.charCodeAt(F-2);if(W(oe))return(oe-55296<<10)+(se-56320)+65536}return se}function Me(C,F){var se=ve.getInstance(),oe=F,be=C.length,De=le(C,be,F);F+=De>=65536?2:1;for(var Se=se.getGraphemeBreakType(De);F<be;){var Ve=le(C,be,F),Qe=se.getGraphemeBreakType(Ve);if(Ee(Se,Qe))break;F+=Ve>=65536?2:1,Se=Qe}return F-oe}function Te(C,F){var se=ve.getInstance(),oe=F,be=Ce(C,F);F-=be>=65536?2:1;for(var De=se.getGraphemeBreakType(be);F>0;){var Se=Ce(C,F),Ve=se.getGraphemeBreakType(Se);if(Ee(Ve,De))break;F-=Se>=65536?2:1,De=Ve}return oe-F}var Fe=/(?:[\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 Ue(C){return Fe.test(C)}var Pe=/(?:[\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 ne(C){return Pe.test(C)}var ee=/^[\t\n\r\x20-\x7E]*$/;function ae(C){return ee.test(C)}function q(C){for(var F=0,se=C.length;F<se;F++)if(ue(C.charCodeAt(F)))return!0;return!1}function ue(C){return C=+C,C>=11904&&C<=55215||C>=63744&&C<=64255||C>=65281&&C<=65374}function X(C){return C>=127462&&C<=127487||C>=9728&&C<=10175||C>=127744&&C<=128591||C>=128640&&C<=128764||C>=128992&&C<=129003||C>=129280&&C<=129535||C>=129648&&C<=129651||C>=129656&&C<=129666||C>=129680&&C<=129685}var he=String.fromCharCode(65279);function je(C){return!!(C&&C.length>0&&C.charCodeAt(0)===65279)}function Xe(C){return btoa(encodeURIComponent(C))}function me(C,F){for(var se="",oe=0;oe<F;oe++)se+=C;return se}function ge(C,F){return F===void 0&&(F=!1),C?(F&&(C=C.replace(/\\./g,"")),C.toLowerCase()!==C):!1}function we(C){var F=90-65+1;return C=C%(2*F),C<F?String.fromCharCode(97+C):String.fromCharCode(65+C-F)}function Re(C){var F=ve.getInstance();return F.getGraphemeBreakType(C)}function Ee(C,F){return C===0?F!==5&&F!==7:C===2&&F===3?!1:C===4||C===2||C===3||(F===4||F===2||F===3)?!0:C===8&&(F===8||F===9||F===11||F===12)||((C===11||C===9)&&(F===9||F===10)||((C===12||C===10)&&F===10||(F===5||F===13||(F===7||(C===1||C===13&&F===14)))))?!1:!(C===6&&F===6)}var ve=function(){function C(){this._data=Q()}return C.getInstance=function(){return C._INSTANCE||(C._INSTANCE=new C),C._INSTANCE},C.prototype.getGraphemeBreakType=function(F){if(F<32)return F===10?3:F===13?2:4;if(F<127)return 0;for(var se=this._data,oe=se.length/3,be=1;be<=oe;)if(F<se[3*be])be=2*be;else if(F>se[3*be+1])be=2*be+1;else return se[3*be+2];return 0},C._INSTANCE=null,C}();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(Lt,j,e){"use strict";e.d(j,"a",function(){return w});var T=e("synD"),re=e.n(T),J=e("3/fG"),I=e("X+cX"),U=e("pmY6"),z=e("OBOq"),O=e("aokT"),H=e("sswD"),x=e("T8No"),u=e("t9D7"),y=e("MD5Z"),_=function(){var s=function(d,m){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var A in L)L.hasOwnProperty(A)&&(E[A]=L[A])},s(d,m)};return function(l,d){s(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),f=function(s,l,d,m){var E=arguments.length,L=E<3?l:m===null?m=Object.getOwnPropertyDescriptor(l,d):m,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,l,d,m);else for(var k=s.length-1;k>=0;k--)(A=s[k])&&(L=(E<3?A(L):E>3?A(l,d,L):A(l,d))||L);return E>3&&L&&Object.defineProperty(l,d,L),L},v=function(s,l){return function(d,m){l(d,m,s)}},w=function(s){_(l,s);function l(d,m){var E=s.call(this)||this;return E.closeTimeout=3e3,E._messageWidget=E._register(new U.d),E._messageListeners=E._register(new U.b),E._editor=d,E._visible=l.MESSAGE_VISIBLE.bindTo(m),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,m){var E=this;Object(z.a)(d),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new c(this._editor,m,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 I.e(function(){return E.closeMessage()},this.closeTimeout));var L;this._messageListeners.add(this._editor.onMouseMove(function(A){if(!A.target.position)return;L?L.containsPosition(A.target.position)||E.closeMessage():L=new O.a(m.lineNumber-3,1,A.target.position.lineNumber+3,1)}))},l.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(c.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 x.d("messageVisible",!1),l=f([v(1,x.c)],l),l}(U.a),p=H.c.bindToContribution(w.get);Object(H.g)(new p({id:"leaveEditorMessage",precondition:w.MESSAGE_VISIBLE,handler:function(l){return l.closeMessage()},kbOpts:{weight:100+30,primary:9}}));var c=function(){function s(l,d,m){var E=d.lineNumber,L=d.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=l,this._editor.revealLinesInCenterIfOutsideViewport(E,E,0),this._position={lineNumber:E,column:L-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var A=document.createElement("div");A.classList.add("message"),A.textContent=m,this._domNode.appendChild(A);var k=document.createElement("div");k.classList.add("anchor"),this._domNode.appendChild(k),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return s.fadeOut=function(l){var d,m=function E(){l.dispose(),clearTimeout(d),l.getDomNode().removeEventListener("animationend",E)};return d=setTimeout(m,110),l.getDomNode().addEventListener("animationend",m),l.getDomNode().classList.add("fadeOut"),{dispose:m}},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(H.h)(w.ID,w),Object(u.e)(function(s,l){var d=s.getColor(y.gb);if(d){var m=s.type===u.b?2:1;l.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+d+"; }"),l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+m+"px solid "+d+"; }")}var E=s.getColor(y.fb);E&&l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+E+"; }");var L=s.getColor(y.hb);L&&l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+L+"; }")})},OBOq:function(Lt,j,e){"use strict";e.d(j,"b",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"c",function(){return y});var T=e("UCkY"),re=e.n(T),J=e("3/fG"),I=e("MNsG"),U=e("EffR"),z,O,H;function x(w){z=document.createElement("div"),z.className="monaco-aria-container",O=document.createElement("div"),O.className="monaco-alert",O.setAttribute("role","alert"),O.setAttribute("aria-atomic","true"),z.appendChild(O),H=document.createElement("div"),H.className="monaco-status",H.setAttribute("role","status"),H.setAttribute("aria-atomic","true"),z.appendChild(H),w.appendChild(z)}function u(w,p){v(O,w,p)}function y(w,p){I.e?u(w,p):v(H,w,p)}var _=0,f=void 0;function v(w,p,c){if(!z)return;if(!c){f===p?_++:(f=p,_=0);switch(_){case 0:break;case 1:p=J.a("repeated","{0} (occurred again)",p);break;default:p=J.a("repeatedNtimes","{0} (occurred {1} times)",p,_);break}}U.t(w),w.textContent=p,w.style.visibility="hidden",w.style.visibility="visible"}},OKK6:function(Lt,j,e){},OOlL:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return e.e(146).then(e.bind(null,"NlLO"))}})},OhnE:function(Lt,j,e){},PTeM:function(Lt,j,e){"use strict";e.d(j,"c",function(){return J}),e.d(j,"a",function(){return I}),e.d(j,"b",function(){return U});var T=e("N0LK"),re=e("MrjW");function J(z){return z.replace(/[\\/]/g,re.posix.sep)}function I(z,O,H,x){if(x===void 0&&(x=re.sep),z===O)return!0;if(!z||!O)return!1;if(O.length>z.length)return!1;if(H){var u=Object(T.O)(z,O);if(!u)return!1;if(O.length===z.length)return!0;var y=O.length;return O.charAt(O.length-1)===x&&y--,z.charAt(y)===x}return O.charAt(O.length-1)!==x&&(O+=x),z.indexOf(O)===0}function U(z){return z>=65&&z<=90||z>=97&&z<=122}},Q4rV:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("bY76");function re(I){var U=JSON.parse(I);return U=J(U),U}function J(I,U){if(U===void 0&&(U=0),!I||U>200)return I;if(typeof I=="object"){switch(I.$mid){case 1:return T.a.revive(I);case 2:return new RegExp(I.source,I.flags)}for(var z in I)Object.hasOwnProperty.call(I,z)&&(I[z]=J(I[z],U+1))}return I}},Q631:function(Lt,j,e){"use strict";e.r(j),e.d(j,"rename",function(){return q}),e.d(j,"RenameAction",function(){return X});var T=e("3/fG"),re=e("/cxE"),J=e("T8No"),I=e("tTk5"),U=e("sswD"),z=e("wQH0"),O=e("BjKj"),H=e("pmY6"),x=e("cGHE"),u=e("aokT"),y=e("MD5Z"),_=e("t9D7"),f=e("bexQ"),v=e("EffR"),w=function(je,Xe,me,ge){var we=arguments.length,Re=we<3?Xe:ge===null?ge=Object.getOwnPropertyDescriptor(Xe,me):ge,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Re=Reflect.decorate(je,Xe,me,ge);else for(var ve=je.length-1;ve>=0;ve--)(Ee=je[ve])&&(Re=(we<3?Ee(Re):we>3?Ee(Xe,me,Re):Ee(Xe,me))||Re);return we>3&&Re&&Object.defineProperty(Xe,me,Re),Re},p=function(je,Xe){return function(me,ge){Xe(me,ge,je)}},c=new J.d("renameInputVisible",!1),s=function(){function je(Xe,me,ge,we,Re){var Ee=this;this._editor=Xe,this._acceptKeybindings=me,this._themeService=ge,this._keybindingService=we,this._disposables=new H.b,this.allowEditorOverflow=!0,this._visibleContextKey=c.bindTo(Re),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(function(ve){ve.hasChanged(34)&&Ee._updateFont()})),this._disposables.add(ge.onThemeChange(this._updateStyles,this))}return je.prototype.dispose=function(){this._disposables.dispose(),this._editor.removeContentWidget(this)},je.prototype.getId=function(){return"__renameInputWidget"},je.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 me=function(){var we,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",(we=Xe._keybindingService.lookupKeybinding(ve))===null||we===void 0?void 0:we.getLabel(),(Re=Xe._keybindingService.lookupKeybinding(Q))===null||Re===void 0?void 0:Re.getLabel())};me(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(me)),this._updateFont(),this._updateStyles(this._themeService.getTheme())}return this._domNode},je.prototype._updateStyles=function(Xe){var me,ge,we,Re;if(!this._input||!this._domNode)return;var Ee=Xe.getColor(y.hc);this._domNode.style.backgroundColor=String((me=Xe.getColor(y.Q))!==null&&me!==void 0?me:""),this._domNode.style.boxShadow=Ee?" 0 2px 8px "+Ee:"",this._domNode.style.color=String((ge=Xe.getColor(y.bb))!==null&&ge!==void 0?ge:""),this._input.style.backgroundColor=String((we=Xe.getColor(y.Z))!==null&&we!==void 0?we:"");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"},je.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"},je.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null},je.prototype.acceptInput=function(Xe){this._currentAcceptInput&&this._currentAcceptInput(Xe)},je.prototype.cancelInput=function(Xe){this._currentCancelInput&&this._currentCancelInput(Xe)},je.prototype.getInput=function(Xe,me,ge,we,Re){var Ee=this;Object(v.Y)(this._domNode,"preview",Re),this._position=new x.a(Xe.startLineNumber,Xe.startColumn),this._input.value=me,this._input.setAttribute("selectionStart",ge.toString()),this._input.setAttribute("selectionEnd",we.toString()),this._input.size=Math.max((Xe.endColumn-Xe.startColumn)*1.1,20);var ve=new H.b;return new Promise(function(Q){Ee._currentCancelInput=function(F){return Ee._currentAcceptInput=void 0,Ee._currentCancelInput=void 0,Q(F),!0},Ee._currentAcceptInput=function(F){if(Ee._input.value.trim().length===0||Ee._input.value===me){Ee.cancelInput(!0);return}Ee._currentAcceptInput=void 0,Ee._currentCancelInput=void 0,Q({newName:Ee._input.value,wantsPreview:Re&&F})};var C=function(){var se=Ee._editor.getPosition();(!se||!u.a.containsPosition(Xe,se))&&Ee.cancelInput(!0)};ve.add(Ee._editor.onDidChangeCursorSelection(C)),ve.add(Ee._editor.onDidBlurEditorWidget(function(){return Ee.cancelInput(!1)})),Ee._show()}).finally(function(){ve.dispose(),Ee._hide()})},je.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)},je.prototype._hide=function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)},je=w([p(2,_.c),p(3,f.a),p(4,J.c)],je),je}(),l=e("twdY"),d=e("OBOq"),m=e("NR8r"),E=e("vATl"),L=e("sM1p"),A=e("x/UI"),k=e("bY76"),R=e("Vxe3"),$=e("JQT/"),ie=e("X+cX"),W=e("746U"),B=e("09fa"),le=e("Cg/j"),Ce=e("ic2d"),Me=e("CRAX"),Te=e("e0rL"),Fe=function(){var je=function(me,ge){return je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,Re){we.__proto__=Re}||function(we,Re){for(var Ee in Re)Re.hasOwnProperty(Ee)&&(we[Ee]=Re[Ee])},je(me,ge)};return function(Xe,me){je(Xe,me);function ge(){this.constructor=Xe}Xe.prototype=me===null?Object.create(me):(ge.prototype=me.prototype,new ge)}}(),Ue=function(je,Xe,me,ge){var we=arguments.length,Re=we<3?Xe:ge===null?ge=Object.getOwnPropertyDescriptor(Xe,me):ge,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Re=Reflect.decorate(je,Xe,me,ge);else for(var ve=je.length-1;ve>=0;ve--)(Ee=je[ve])&&(Re=(we<3?Ee(Re):we>3?Ee(Xe,me,Re):Ee(Xe,me))||Re);return we>3&&Re&&Object.defineProperty(Xe,me,Re),Re},Pe=function(je,Xe){return function(me,ge){Xe(me,ge,je)}},ne=function(je,Xe,me,ge){function we(Re){return Re instanceof me?Re:new me(function(Ee){Ee(Re)})}return new(me||(me=Promise))(function(Re,Ee){function ve(F){try{C(ge.next(F))}catch(se){Ee(se)}}function Q(F){try{C(ge.throw(F))}catch(se){Ee(se)}}function C(F){F.done?Re(F.value):we(F.value).then(ve,Q)}C((ge=ge.apply(je,Xe||[])).next())})},ee=function(je,Xe){var me={label:0,sent:function(){if(Re[0]&1)throw Re[1];return Re[1]},trys:[],ops:[]},ge,we,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(C){return function(F){return Q([C,F])}}function Q(C){if(ge)throw new TypeError("Generator is already executing.");for(;me;)try{if(ge=1,we&&(Re=C[0]&2?we.return:C[0]?we.throw||((Re=we.return)&&Re.call(we),0):we.next)&&!(Re=Re.call(we,C[1])).done)return Re;(we=0,Re)&&(C=[C[0]&2,Re.value]);switch(C[0]){case 0:case 1:Re=C;break;case 4:return me.label++,{value:C[1],done:!1};case 5:me.label++,we=C[1],C=[0];continue;case 7:C=me.ops.pop(),me.trys.pop();continue;default:if(!(Re=me.trys,Re=Re.length>0&&Re[Re.length-1])&&(C[0]===6||C[0]===2)){me=0;continue}if(C[0]===3&&(!Re||C[1]>Re[0]&&C[1]<Re[3])){me.label=C[1];break}if(C[0]===6&&me.label<Re[1]){me.label=Re[1],Re=C;break}if(Re&&me.label<Re[2]){me.label=Re[2],me.ops.push(C);break}Re[2]&&me.ops.pop(),me.trys.pop();continue}C=Xe.call(je,me)}catch(F){C=[6,F],we=0}finally{ge=Re=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},ae=function(){function je(Xe,me){this.model=Xe,this.position=me,this._providers=l.v.ordered(Xe)}return je.prototype.hasProvider=function(){return this._providers.length>0},je.prototype.resolveRenameLocation=function(Xe){return ne(this,void 0,void 0,function(){var me,ge,we,Re;return ee(this,function(Ee){switch(Ee.label){case 0:return me=this._providers[0],me?me.resolveRenameLocation?(we=W.n,[4,me.resolveRenameLocation(this.model,this.position,Xe)]):[3,2]:[2,void 0];case 1:ge=we.apply(void 0,[Ee.sent()]),Ee.label=2;case 2:return!ge&&(Re=this.model.getWordAtPosition(this.position),Re)?[2,{range:new u.a(this.position.lineNumber,Re.startColumn,this.position.lineNumber,Re.endColumn),text:Re.word}]:[2,ge]}})})},je.prototype.provideRenameEdits=function(Xe,me,ge,we){return ne(this,void 0,void 0,function(){var Re,Ee;return ee(this,function(ve){switch(ve.label){case 0:return Re=this._providers[me],Re?[4,Re.provideRenameEdits(this.model,this.position,Xe,we)]:[2,{edits:[],rejectReason:ge.join(`
`)}];case 1:if(Ee=ve.sent(),Ee){if(Ee.rejectReason)return[2,this.provideRenameEdits(Xe,me+1,ge.concat(Ee.rejectReason),we)]}else return[2,this.provideRenameEdits(Xe,me+1,ge.concat(T.a("no result","No result.")),we)];return[2,Ee]}})})},je}();function q(je,Xe,me){return ne(this,void 0,void 0,function(){return ee(this,function(ge){return[2,new ae(je,Xe).provideRenameEdits(me,0,[],$.a.None)]})})}var ue=function(){function je(Xe,me,ge,we,Re,Ee,ve){var Q=this;this.editor=Xe,this._instaService=me,this._notificationService=ge,this._bulkEditService=we,this._progressService=Re,this._logService=Ee,this._configService=ve,this._dispoableStore=new H.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 je.get=function(Xe){return Xe.getContribution(je.ID)},je.prototype.dispose=function(){this._dispoableStore.dispose(),this._cts.dispose(!0)},je.prototype.run=function(){return ne(this,void 0,void 0,function(){var Xe,me,ge,we,Re,Ee,ve,Q,C,F,se,oe=this;return ee(this,function(be){switch(be.label){case 0:if(this._cts.dispose(!0),!this.editor.hasModel())return[2,void 0];if(Xe=this.editor.getPosition(),me=new ae(this.editor.getModel(),Xe),!me.hasProvider())return[2,void 0];this._cts=new E.b(this.editor,4|1),be.label=1;case 1:return be.trys.push([1,3,,4]),we=me.resolveRenameLocation(this._cts.token),this._progressService.showWhile(we,250),[4,we];case 2:return ge=be.sent(),[3,4];case 3:return Re=be.sent(),m.a.get(this.editor).showMessage(Re||T.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),Xe),[2,void 0];case 4:return ge?ge.rejectReason?(m.a.get(this.editor).showMessage(ge.rejectReason,Xe),[2,void 0]):this._cts.token.isCancellationRequested?[2,void 0]:(Ee=this.editor.getSelection(),ve=0,Q=ge.text.length,!u.a.isEmpty(Ee)&&!u.a.spansMultipleLines(Ee)&&u.a.containsRange(ge.range,Ee)&&(ve=Math.max(0,Ee.startColumn-ge.range.startColumn),Q=Math.min(ge.range.endColumn,Ee.endColumn)-ge.range.startColumn),C=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),[4,this._renameInputField.getValue().getInput(ge.range,ge.text,ve,Q,C)]):[2,void 0];case 5:return F=be.sent(),typeof F=="boolean"?(F&&this.editor.focus(),[2,void 0]):(this.editor.focus(),se=Object(ie.j)(me.provideRenameEdits(F.newName,0,[],this._cts.token),this._cts.token).then(function(De){return ne(oe,void 0,void 0,function(){var Se=this;return ee(this,function(Ve){return!De||!this.editor.hasModel()?[2]:De.rejectReason?(this._notificationService.info(De.rejectReason),[2]):(this._bulkEditService.apply(De,{editor:this.editor,showPreview:F.wantsPreview,label:T.a("label","Renaming '{0}'",ge==null?void 0:ge.text)}).then(function(Qe){Qe.ariaSummary&&Object(d.a)(T.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",ge.text,F.newName,Qe.ariaSummary))}).catch(function(Qe){Se._notificationService.error(T.a("rename.failedApply","Rename failed to apply edits")),Se._logService.error(Qe)}),[2])})})},function(De){oe._notificationService.error(T.a("rename.failed","Rename failed to compute edits")),oe._logService.error(De)}),this._progressService.showWhile(se,250),[2,se])}})})},je.prototype.acceptRenameInput=function(Xe){this._renameInputField.getValue().acceptInput(Xe)},je.prototype.cancelRenameInput=function(){this._renameInputField.getValue().cancelInput(!0)},je.ID="editor.contrib.renameController",je=Ue([Pe(1,le.a),Pe(2,L.a),Pe(3,A.a),Pe(4,I.a),Pe(5,B.a),Pe(6,Te.a)],je),je}(),X=function(je){Fe(Xe,je);function Xe(){return je.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(me,ge){var we=this,Re=me.get(R.a),Ee=Array.isArray(ge)&&ge||[void 0,void 0],ve=Ee[0],Q=Ee[1];return k.a.isUri(ve)&&x.a.isIPosition(Q)?Re.openCodeEditor({resource:ve},Re.getActiveCodeEditor()).then(function(C){if(!C)return;C.setPosition(Q),C.invokeWithinContext(function(F){return we.reportTelemetry(F,C),we.run(F,C)})},re.e):je.prototype.runCommand.call(this,me,ge)},Xe.prototype.run=function(me,ge){var we=ue.get(ge);return we?we.run():Promise.resolve()},Xe}(U.b);Object(U.h)(ue.ID,ue),Object(U.f)(X);var he=U.c.bindToContribution(ue.get);Object(U.g)(new he({id:"acceptRenameInput",precondition:c,handler:function(Xe){return Xe.acceptRenameInput(!1)},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:3}})),Object(U.g)(new he({id:"acceptRenameInputWithPreview",precondition:J.a.and(c,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(U.g)(new he({id:"cancelRenameInput",precondition:c,handler:function(Xe){return Xe.cancelRenameInput()},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:9,secondary:[1024|9]}})),Object(U.e)("_executeDocumentRenameProvider",function(je,Xe,me){var ge=me.newName;if(typeof ge!="string")throw Object(re.b)("newName");return q(je,Xe,ge)}),Ce.a.as(Me.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(Lt,j,e){"use strict";e.d(j,"e",function(){return re}),e.d(j,"d",function(){return J}),e.d(j,"c",function(){return O}),e.d(j,"b",function(){return H}),e.d(j,"a",function(){return u});var T=function(){var y=function(f,v){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,p){w.__proto__=p}||function(w,p){for(var c in p)p.hasOwnProperty(c)&&(w[c]=p[c])},y(f,v)};return function(_,f){y(_,f);function v(){this.constructor=_}_.prototype=f===null?Object.create(f):(v.prototype=f.prototype,new v)}}();function re(y){var _=[];return y.forEach(function(f){return _.push(f)}),_}function J(y){var _=[];return y.forEach(function(f,v){return _.push(v)}),_}var I=function(){function y(){this._value="",this._pos=0}return y.prototype.reset=function(_){return this._value=_,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(_){var f=_.charCodeAt(0),v=this._value.charCodeAt(this._pos);return f-v},y.prototype.value=function(){return this._value[this._pos]},y}(),U=function(){function y(_){_===void 0&&(_=!0),this._splitOnBackslash=_}return y.prototype.reset=function(_){return this._value=_.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 _=!0;this._to<this._value.length;this._to++){var f=this._value.charCodeAt(this._to);if(f===47||this._splitOnBackslash&&f===92)if(_)this._from++;else break;else _=!1}return this},y.prototype.cmp=function(_){for(var f=0,v=_.length,w=this._from;f<v&&w<this._to;){var p=_.charCodeAt(f)-this._value.charCodeAt(w);if(p!==0)return p;f+=1,w+=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}(),O=function(){function y(_){this._iter=_}return y.forPaths=function(){return new y(new U)},y.forStrings=function(){return new y(new I)},y.prototype.clear=function(){this._root=void 0},y.prototype.set=function(_,f){var v=this._iter.reset(_),w;for(this._root||(this._root=new z,this._root.segment=v.value()),w=this._root;;){var p=v.cmp(w.segment);if(p>0)w.left||(w.left=new z,w.left.segment=v.value()),w=w.left;else if(p<0)w.right||(w.right=new z,w.right.segment=v.value()),w=w.right;else if(v.hasNext())v.next(),w.mid||(w.mid=new z,w.mid.segment=v.value()),w=w.mid;else break}var c=w.value;return w.value=f,w.key=_,c},y.prototype.get=function(_){for(var f=this._iter.reset(_),v=this._root;v;){var w=f.cmp(v.segment);if(w>0)v=v.left;else if(w<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(_){for(var f=this._iter.reset(_),v=this._root,w=void 0;v;){var p=f.cmp(v.segment);if(p>0)v=v.left;else if(p<0)v=v.right;else if(f.hasNext())f.next(),w=v.value||w,v=v.mid;else break}return v&&v.value||w},y.prototype.forEach=function(_){this._forEach(this._root,_)},y.prototype._forEach=function(_,f){_&&(this._forEach(_.left,f),_.value&&f(_.value,_.key),this._forEach(_.mid,f),this._forEach(_.right,f))},y}(),H=function(){function y(){this.map=new Map,this.ignoreCase=!1}return y.prototype.set=function(_,f){this.map.set(this.toKey(_),f)},y.prototype.get=function(_){return this.map.get(this.toKey(_))},y.prototype.toKey=function(_){var f=_.toString();return this.ignoreCase&&(f=f.toLowerCase()),f},y}(),x=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(_,f){f===void 0&&(f=0);var v=this._map.get(_);return v?(f!==0&&this.touch(v,f),v.value):void 0},y.prototype.set=function(_,f,v){v===void 0&&(v=0);var w=this._map.get(_);if(w)w.value=f,v!==0&&this.touch(w,v);else{w={key:_,value:f,next:void 0,previous:void 0};switch(v){case 0:this.addItemLast(w);break;case 1:this.addItemFirst(w);break;case 2:this.addItemLast(w);break;default:this.addItemLast(w);break}this._map.set(_,w),this._size++}},y.prototype.delete=function(_){return!!this.remove(_)},y.prototype.remove=function(_){var f=this._map.get(_);return f?(this._map.delete(_),this.removeItem(f),this._size--,f.value):void 0},y.prototype.forEach=function(_,f){for(var v=this._head;v;)f?_.bind(f)(v.value,v.key,this):_(v.value,v.key,this),v=v.next},y.prototype.trimOld=function(_){if(_>=this.size)return;if(_===0){this.clear();return}for(var f=this._head,v=this.size;f&&v>_;)this._map.delete(f.key),f=f.next,v--;this._head=f,this._size=v,f&&(f.previous=void 0)},y.prototype.addItemFirst=function(_){if(!this._head&&!this._tail)this._tail=_;else if(this._head)_.next=this._head,this._head.previous=_;else throw new Error("Invalid list");this._head=_},y.prototype.addItemLast=function(_){if(!this._head&&!this._tail)this._head=_;else if(this._tail)_.previous=this._tail,this._tail.next=_;else throw new Error("Invalid list");this._tail=_},y.prototype.removeItem=function(_){if(_===this._head&&_===this._tail)this._head=void 0,this._tail=void 0;else if(_===this._head){if(!_.next)throw new Error("Invalid list");_.next.previous=void 0,this._head=_.next}else if(_===this._tail){if(!_.previous)throw new Error("Invalid list");_.previous.next=void 0,this._tail=_.previous}else{var f=_.next,v=_.previous;if(!f||!v)throw new Error("Invalid list");f.previous=v,v.next=f}_.next=void 0,_.previous=void 0},y.prototype.touch=function(_,f){if(!this._head||!this._tail)throw new Error("Invalid list");if(f!==1&&f!==2)return;if(f===1){if(_===this._head)return;var v=_.next,w=_.previous;_===this._tail?(w.next=void 0,this._tail=w):(v.previous=w,w.next=v),_.previous=void 0,_.next=this._head,this._head.previous=_,this._head=_}else if(f===2){if(_===this._tail)return;var v=_.next,w=_.previous;_===this._head?(v.previous=void 0,this._head=v):(v.previous=w,w.next=v),_.next=void 0,_.previous=this._tail,this._tail.next=_,this._tail=_}},y.prototype.toJSON=function(){var _=[];return this.forEach(function(f,v){_.push([v,f])}),_},y}(),u=function(y){T(_,y);function _(f,v){v===void 0&&(v=1);var w=y.call(this)||this;return w._limit=f,w._ratio=Math.min(Math.max(0,v),1),w}return _.prototype.get=function(f){return y.prototype.get.call(this,f,2)},_.prototype.peek=function(f){return y.prototype.get.call(this,f,0)},_.prototype.set=function(f,v){y.prototype.set.call(this,f,v,2),this.checkTrim()},_.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},_}(x)},QFiB:function(Lt,j,e){"use strict";e.r(j);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(165).then(e.bind(null,"PhST"))}})},QRHv:function(Lt,j,e){"use strict";e.d(j,"f",function(){return U}),e.d(j,"b",function(){return H}),e.d(j,"c",function(){return x}),e.d(j,"a",function(){return y}),e.d(j,"e",function(){return v}),e.d(j,"d",function(){return w});var T=e("6OMU"),re=e("4bUh"),J=e("cGHE"),I=e("twdY");function U(p){for(var c=0,s=0,l=0,d=0,m=p.length;d<m;d++){var E=p.charCodeAt(d);E===13?(c===0&&(s=d),c++,d+1<m&&p.charCodeAt(d+1)===10&&d++,l=d+1):E===10&&(c===0&&(s=d),c++,l=d+1)}return c===0&&(s=p.length),[c,s,p.length-l]}function z(p){return(p<<0|0<<8|0<<11|1<<14|2<<23)>>>0}var O=new Uint32Array(0).buffer,H=function(){function p(){this.tokens=[]}return p.prototype.add=function(c,s){if(this.tokens.length>0){var l=this.tokens[this.tokens.length-1],d=l.startLineNumber+l.tokens.length-1;if(d+1===c){l.tokens.push(s);return}}this.tokens.push(new _(c,[s]))},p}(),x=function(){function p(c){this._tokens=c,this._tokenCount=c.length/4}return p.prototype.getMaxDeltaLine=function(){var c=this.getTokenCount();return c===0?-1:this.getDeltaLine(c-1)},p.prototype.getTokenCount=function(){return this._tokenCount},p.prototype.getDeltaLine=function(c){return this._tokens[4*c]},p.prototype.getStartCharacter=function(c){return this._tokens[4*c+1]},p.prototype.getEndCharacter=function(c){return this._tokens[4*c+2]},p.prototype.getMetadata=function(c){return this._tokens[4*c+3]},p.prototype.clear=function(){this._tokenCount=0},p.prototype.acceptDeleteRange=function(c,s,l,d,m){for(var E=this._tokens,L=this._tokenCount,A=d-s,k=0,R=!1,$=0;$<L;$++){var ie=4*$,W=E[ie],B=E[ie+1],le=E[ie+2],Ce=E[ie+3];if(W<s||W===s&&le<=l){k++;continue}else if(W===s&&B<l)W===d&&le>m?le-=m-l:le=l;else if(W===s&&B===l)if(W===d&&le>m)le-=m-l;else{R=!0;continue}else if(W<d||W===d&&B<m)if(W===d&&le>m)W===s?(B=l,le=B+(le-m)):(B=0,le=B+(le-m));else{R=!0;continue}else if(W>d){if(A===0&&!R){k=L;break}W-=A}else if(W===d&&B>=m)c&&W===0&&(B+=c,le+=c),W-=A,B-=m-l,le-=m-l;else throw new Error("Not possible!");var Me=4*k;E[Me]=W,E[Me+1]=B,E[Me+2]=le,E[Me+3]=Ce,k++}this._tokenCount=k},p.prototype.acceptInsertText=function(c,s,l,d,m,E){for(var L=l===0&&d===1&&(E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122),A=this._tokens,k=this._tokenCount,R=0;R<k;R++){var $=4*R,ie=A[$],W=A[$+1],B=A[$+2];if(ie<c||ie===c&&B<s)continue;if(ie===c&&B===s)if(L)B+=1;else continue;else if(ie===c&&W<s&&s<B)l===0?B+=d:B=s;else{if(ie===c&&W===s&&L)continue;if(ie===c)if(ie+=l,l===0)W+=d,B+=d;else{var le=B-W;W=m+(W-s),B=W+le}else ie+=l}A[$]=ie,A[$+1]=W,A[$+2]=B}},p}(),u=function(){function p(c,s,l){this._actual=c,this._startTokenIndex=s,this._endTokenIndex=l}return p.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},p.prototype.getStartCharacter=function(c){return this._actual.getStartCharacter(this._startTokenIndex+c)},p.prototype.getEndCharacter=function(c){return this._actual.getEndCharacter(this._startTokenIndex+c)},p.prototype.getMetadata=function(c){return this._actual.getMetadata(this._startTokenIndex+c)},p}(),y=function(){function p(c,s){this.startLineNumber=c,this.tokens=s,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}return p.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},p.prototype.getLineTokens=function(c){if(this.startLineNumber<=c&&c<=this.endLineNumber){var s=p._findTokensWithLine(this.tokens,c-this.startLineNumber);if(s){var l=s[0],d=s[1];return new u(this.tokens,l,d)}}return null},p._findTokensWithLine=function(c,s){for(var l=0,d=c.getTokenCount()-1;l<d;){var m=l+Math.floor((d-l)/2),E=c.getDeltaLine(m);if(E<s)l=m+1;else if(E>s)d=m-1;else{for(var L=m;L>l&&c.getDeltaLine(L-1)===s;)L--;for(var A=m;A<d&&c.getDeltaLine(A+1)===s;)A++;return[L,A]}}return c.getDeltaLine(l)===s?[l,l]:null},p.prototype.applyEdit=function(c,s){var l=U(s),d=l[0],m=l[1],E=l[2];this.acceptEdit(c,d,m,E,s.length>0?s.charCodeAt(0):0)},p.prototype.acceptEdit=function(c,s,l,d,m){this._acceptDeleteRange(c),this._acceptInsertText(new J.a(c.startLineNumber,c.startColumn),s,l,d,m),this._updateEndLineNumber()},p.prototype._acceptDeleteRange=function(c){if(c.startLineNumber===c.endLineNumber&&c.startColumn===c.endColumn)return;var s=c.startLineNumber-this.startLineNumber,l=c.endLineNumber-this.startLineNumber;if(l<0){var d=l-s;this.startLineNumber-=d;return}var m=this.tokens.getMaxDeltaLine();if(s>=m+1)return;if(s<0&&l>=m+1){this.startLineNumber=0,this.tokens.clear();return}if(s<0){var E=-s;this.startLineNumber-=E,this.tokens.acceptDeleteRange(c.startColumn-1,0,0,l,c.endColumn-1)}else this.tokens.acceptDeleteRange(0,s,c.startColumn-1,l,c.endColumn-1)},p.prototype._acceptInsertText=function(c,s,l,d,m){if(s===0&&l===0)return;var E=c.lineNumber-this.startLineNumber;if(E<0){this.startLineNumber+=s;return}var L=this.tokens.getMaxDeltaLine();if(E>=L+1)return;this.tokens.acceptInsertText(E,c.column-1,s,l,d,m)},p}(),_=function(){function p(c,s){this.startLineNumber=c,this.tokens=s}return p}();function f(p){return p instanceof Uint32Array?p:new Uint32Array(p)}var v=function(){function p(){this._pieces=[]}return p.prototype.flush=function(){this._pieces=[]},p.prototype.set=function(c){this._pieces=c||[]},p.prototype.addSemanticTokens=function(c,s){var l=this._pieces;if(l.length===0)return s;var d=p._findFirstPieceWithLine(l,c),m=this._pieces[d].getLineTokens(c);if(!m)return s;for(var E=s.getCount(),L=m.getCount(),A=0,k=[],R=0,$=0;$<L;$++){for(var ie=m.getStartCharacter($),W=m.getEndCharacter($),B=m.getMetadata($),le=((B&1?2048:0)|(B&2?4096:0)|(B&4?8192:0)|(B&8?8372224:0)|(B&16?4286578688:0))>>>0,Ce=~le>>>0;A<E&&s.getEndOffset(A)<=ie;)k[R++]=s.getEndOffset(A),k[R++]=s.getMetadata(A),A++;for(A<E&&s.getStartOffset(A)<ie&&(k[R++]=ie,k[R++]=s.getMetadata(A));A<E&&s.getEndOffset(A)<W;)k[R++]=s.getEndOffset(A),k[R++]=s.getMetadata(A)&Ce|B&le,A++;if(A<E&&s.getEndOffset(A)===W)k[R++]=s.getEndOffset(A),k[R++]=s.getMetadata(A)&Ce|B&le,A++;else{var Me=Math.min(Math.max(0,A-1),E-1);k[R++]=W,k[R++]=s.getMetadata(Me)&Ce|B&le}}for(;A<E;)k[R++]=s.getEndOffset(A),k[R++]=s.getMetadata(A),A++;return new re.a(new Uint32Array(k),s.getLineContent())},p._findFirstPieceWithLine=function(c,s){for(var l=0,d=c.length-1;l<d;){var m=l+Math.floor((d-l)/2);if(c[m].endLineNumber<s)l=m+1;else if(c[m].startLineNumber>s)d=m-1;else{for(;m>l&&c[m-1].startLineNumber<=s&&s<=c[m-1].endLineNumber;)m--;return m}}return l},p.prototype.acceptEdit=function(c,s,l,d,m){for(var E=0,L=this._pieces;E<L.length;E++){var A=L[E];A.acceptEdit(c,s,l,d,m)}},p}(),w=function(){function p(){this._lineTokens=[],this._len=0}return p.prototype.flush=function(){this._lineTokens=[],this._len=0},p.prototype.getTokens=function(c,s,l){var d=null;if(s<this._len&&(d=this._lineTokens[s]),d!==null&&d!==O)return new re.a(f(d),l);var m=new Uint32Array(2);return m[0]=l.length,m[1]=z(c),new re.a(m,l)},p._massageTokens=function(c,s,l){var d=l?f(l):null;if(s===0){var m=!1;if(d&&d.length>1&&(m=I.A.getLanguageId(d[1])!==c),!m)return O}if(!d||d.length===0){var E=new Uint32Array(2);return E[0]=s,E[1]=z(c),E.buffer}return d[d.length-2]=s,d.byteOffset===0&&d.byteLength===d.buffer.byteLength?d.buffer:d},p.prototype._ensureLine=function(c){for(;c>=this._len;)this._lineTokens[this._len]=null,this._len++},p.prototype._deleteLines=function(c,s){if(s===0)return;c+s>this._len&&(s=this._len-c),this._lineTokens.splice(c,s),this._len-=s},p.prototype._insertLines=function(c,s){if(s===0)return;for(var l=[],d=0;d<s;d++)l[d]=null;this._lineTokens=T.a(this._lineTokens,c,l),this._len+=s},p.prototype.setTokens=function(c,s,l,d){var m=p._massageTokens(c,l,d);this._ensureLine(s),this._lineTokens[s]=m},p.prototype.acceptEdit=function(c,s,l){this._acceptDeleteRange(c),this._acceptInsertText(new J.a(c.startLineNumber,c.startColumn),s,l)},p.prototype._acceptDeleteRange=function(c){var s=c.startLineNumber-1;if(s>=this._len)return;if(c.startLineNumber===c.endLineNumber){if(c.startColumn===c.endColumn)return;this._lineTokens[s]=p._delete(this._lineTokens[s],c.startColumn-1,c.endColumn-1);return}this._lineTokens[s]=p._deleteEnding(this._lineTokens[s],c.startColumn-1);var l=c.endLineNumber-1,d=null;l<this._len&&(d=p._deleteBeginning(this._lineTokens[l],c.endColumn-1)),this._lineTokens[s]=p._append(this._lineTokens[s],d),this._deleteLines(c.startLineNumber,c.endLineNumber-c.startLineNumber)},p.prototype._acceptInsertText=function(c,s,l){if(s===0&&l===0)return;var d=c.lineNumber-1;if(d>=this._len)return;if(s===0){this._lineTokens[d]=p._insert(this._lineTokens[d],c.column-1,l);return}this._lineTokens[d]=p._deleteEnding(this._lineTokens[d],c.column-1),this._lineTokens[d]=p._insert(this._lineTokens[d],c.column-1,l),this._insertLines(c.lineNumber,s)},p._deleteBeginning=function(c,s){return c===null||c===O?c:p._delete(c,0,s)},p._deleteEnding=function(c,s){if(c===null||c===O)return c;var l=f(c),d=l[l.length-2];return p._delete(c,s,d)},p._delete=function(c,s,l){if(c===null||c===O||s===l)return c;var d=f(c),m=d.length>>>1;if(s===0&&d[d.length-2]===l)return O;var E=re.a.findIndexInTokensArray(d,s),L=E>0?d[E-1<<1]:0,A=d[E<<1];if(l<A){for(var k=l-s,R=E;R<m;R++)d[R<<1]-=k;return c}var $,ie;L!==s?(d[E<<1]=s,$=E+1<<1,ie=s):($=E<<1,ie=L);for(var W=l-s,B=E+1;B<m;B++){var le=d[B<<1]-W;le>ie&&(d[$++]=le,d[$++]=d[(B<<1)+1],ie=le)}if($===d.length)return c;var Ce=new Uint32Array($);return Ce.set(d.subarray(0,$),0),Ce.buffer},p._append=function(c,s){if(s===O)return c;if(c===O)return s;if(c===null)return c;if(s===null)return null;var l=f(c),d=f(s),m=d.length>>>1,E=new Uint32Array(l.length+d.length);E.set(l,0);for(var L=l.length,A=l[l.length-2],k=0;k<m;k++)E[L++]=d[k<<1]+A,E[L++]=d[(k<<1)+1];return E.buffer},p._insert=function(c,s,l){if(c===null||c===O)return c;var d=f(c),m=d.length>>>1,E=re.a.findIndexInTokensArray(d,s);if(E>0){var L=d[E-1<<1];L===s&&E--}for(var A=E;A<m;A++)d[A<<1]+=l;return c},p}()},QVNv:function(Lt,j,e){"use strict";e.d(j,"b",function(){return v}),e.d(j,"a",function(){return p}),e.d(j,"c",function(){return s}),e.d(j,"e",function(){return l}),e.d(j,"d",function(){return A}),e.d(j,"f",function(){return R});var T=e("X+cX"),re=e("qj0h"),J=e("/cxE"),I=e("sswD"),U=e("twdY"),z=e("cGHE"),O=e("T8No"),H=e("JQT/"),x=e("aokT"),u=e("fpMC"),y=e("pmY6"),_=function($,ie,W,B){function le(Ce){return Ce instanceof W?Ce:new W(function(Me){Me(Ce)})}return new(W||(W=Promise))(function(Ce,Me){function Te(Pe){try{Ue(B.next(Pe))}catch(ne){Me(ne)}}function Fe(Pe){try{Ue(B.throw(Pe))}catch(ne){Me(ne)}}function Ue(Pe){Pe.done?Ce(Pe.value):le(Pe.value).then(Te,Fe)}Ue((B=B.apply($,ie||[])).next())})},f=function($,ie){var W={label:0,sent:function(){if(Ce[0]&1)throw Ce[1];return Ce[1]},trys:[],ops:[]},B,le,Ce,Me;return Me={next:Te(0),throw:Te(1),return:Te(2)},typeof Symbol=="function"&&(Me[Symbol.iterator]=function(){return this}),Me;function Te(Ue){return function(Pe){return Fe([Ue,Pe])}}function Fe(Ue){if(B)throw new TypeError("Generator is already executing.");for(;W;)try{if(B=1,le&&(Ce=Ue[0]&2?le.return:Ue[0]?le.throw||((Ce=le.return)&&Ce.call(le),0):le.next)&&!(Ce=Ce.call(le,Ue[1])).done)return Ce;(le=0,Ce)&&(Ue=[Ue[0]&2,Ce.value]);switch(Ue[0]){case 0:case 1:Ce=Ue;break;case 4:return W.label++,{value:Ue[1],done:!1};case 5:W.label++,le=Ue[1],Ue=[0];continue;case 7:Ue=W.ops.pop(),W.trys.pop();continue;default:if(!(Ce=W.trys,Ce=Ce.length>0&&Ce[Ce.length-1])&&(Ue[0]===6||Ue[0]===2)){W=0;continue}if(Ue[0]===3&&(!Ce||Ue[1]>Ce[0]&&Ue[1]<Ce[3])){W.label=Ue[1];break}if(Ue[0]===6&&W.label<Ce[1]){W.label=Ce[1],Ce=Ue;break}if(Ce&&W.label<Ce[2]){W.label=Ce[2],W.ops.push(Ue);break}Ce[2]&&W.ops.pop(),W.trys.pop();continue}Ue=ie.call($,W)}catch(Pe){Ue=[6,Pe],le=0}finally{B=Ce=0}if(Ue[0]&5)throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}},v={Visible:new O.d("suggestWidgetVisible",!1),MultipleSuggestions:new O.d("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new O.d("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new O.d("acceptSuggestionOnEnter",!0)},w=function(){function $(ie,W,B,le,Ce){var Me=this;this.position=ie,this.completion=W,this.container=B,this.provider=le,this.isResolved=!1,this.score=u.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(),x.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 Fe;this.resolve=function(Ue){return Fe||(Fe=Promise.resolve(Te.call(le,Ce,ie,W,Ue)).then(function(Pe){Object(re.a)(W,Pe),Me.isResolved=!0},function(Pe){Object(J.d)(Pe)&&(Fe=void 0)}),Ue.onCancellationRequested(function(){Me.isResolved||(Fe=void 0)})),Fe}}}return $}(),p=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 $,$}(),c;function s(){return c}function l($,ie,W,B,le){W===void 0&&(W=p.default),B===void 0&&(B={triggerKind:0}),le===void 0&&(le=H.a.None);var Ce=$.getWordAtPosition(ie),Me=Ce?new x.a(ie.lineNumber,Ce.startColumn,ie.lineNumber,Ce.endColumn):x.a.fromPositions(ie),Te=Me.setEndPosition(ie.lineNumber,ie.column);ie=ie.clone();var Fe=U.d.orderedGroups($);!W.kindFilter.has(25)&&c&&Fe.unshift([c]);var Ue=[],Pe=new y.b,ne=!1,ee=Fe.map(function(q){return function(){return Promise.all(q.map(function(ue){return W.providerFilter.size>0&&!W.providerFilter.has(ue)?void 0:Promise.resolve(ue.provideCompletionItems($,ie,B,le)).then(function(X){var he=Ue.length;if(X){for(var je=0,Xe=X.suggestions||[];je<Xe.length;je++){var me=Xe[je];W.kindFilter.has(me.kind)||(me.range||(me.range={insert:Te,replace:Me}),me.sortText||(me.sortText=typeof me.label=="string"?me.label:me.label.name),Ue.push(new w(ie,me,X,ue,$)))}Object(y.g)(X)&&Pe.add(X)}he!==Ue.length&&ue!==c&&(ne=!0)},J.f)}))}}),ae=Object(T.h)(ee,function(){return ne||le.isCancellationRequested}).then(function(){return le.isCancellationRequested?(Pe.dispose(),Promise.reject(Object(J.a)())):Ue.sort(A(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 m($,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 L=new Map;L.set(0,m),L.set(2,E),L.set(1,d);function A($){return L.get($)}Object(I.e)("_executeCompletionItemProvider",function($,ie,W){return _(void 0,void 0,void 0,function(){var B,le,Ce,Me,Te,Fe,Ue,Pe;return f(this,function(ne){switch(ne.label){case 0:return B={incomplete:!1,suggestions:[]},le=new y.b,Ce=[],Me=W.maxItemsToResolve||0,[4,l($,ie)];case 1:for(Te=ne.sent(),Fe=0,Ue=Te;Fe<Ue.length;Fe++)Pe=Ue[Fe],Ce.length<Me&&Ce.push(Pe.resolve(H.a.None)),B.incomplete=B.incomplete||Pe.container.incomplete,B.suggestions.push(Pe.completion),Object(y.g)(Pe.container)&&le.add(Pe.container);ne.label=2;case 2:return ne.trys.push([2,,4,5]),[4,Promise.all(Ce)];case 3:return ne.sent(),[2,B];case 4:return setTimeout(function(){return le.dispose()},100),[7];case 5:return[2]}})})});var k=new(function(){function $(){this.onlyOnceSuggestions=[]}return $.prototype.provideCompletionItems=function(){var ie=this.onlyOnceSuggestions.slice(0),W={suggestions:ie};return this.onlyOnceSuggestions.length=0,W},$}());U.d.register("*",k);function R($,ie){setTimeout(function(){var W;(W=k.onlyOnceSuggestions).push.apply(W,ie),$.getContribution("editor.contrib.suggestController").triggerSuggest(new Set().add(k))},0)}},QY8A:function(Lt,j,e){"use strict";e.d(j,"a",function(){return Nt});var T=e("3/fG"),re=e("/cxE"),J=e("pmY6"),I=e("Vxe3"),U=e("Cg/j"),z=e("T8No"),O=e("+7oY"),H=e("A+jI"),x=e("9o5J"),u=e("KaET"),y=e("EffR"),_=e("zrhQ"),f=e("MI8n"),v=e("tYmi"),w=e("gslv"),p=e("03kh"),c=e("aokT"),s=e("tX9W"),l=e("t49l"),d=e("xONI"),m=e("VPJY"),E=e("N0LK"),L=e("qj0h"),A={badgeBackground:_.a.fromHex("#4D4D4D"),badgeForeground:_.a.fromHex("#FFFFFF")},k=function(){function Je($e,ze){this.count=0,this.options=ze||Object.create(null),Object(L.g)(this.options,A,!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"),Ce=e("7lZ/"),Me=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},Fe=function(Je,$e){return function(ze,Ke){$e(ze,Ke,Je)}},Ue=function(){function Je($e){this._resolverService=$e}return Je.prototype.hasChildren=function($e){return $e instanceof x.c?!0:$e instanceof x.a&&!$e.failure},Je.prototype.getChildren=function($e){if($e instanceof x.c)return $e.groups;if($e instanceof x.a)return $e.resolve(this._resolverService).then(function(ze){return ze.children});throw new Error("bad tree")},Je=Te([Fe(0,l.a)],Je),Je}(),Pe=function(){function Je(){}return Je.prototype.getHeight=function(){return 23},Je.prototype.getTemplateId=function($e){return $e instanceof x.a?q.id:X.id},Je}(),ne=function(){function Je($e){this._keybindingService=$e}return Je.prototype.getKeyboardNavigationLabel=function($e){if($e instanceof x.b){var ze=$e.parent.preview,Ke=ze&&ze.preview($e.range);if(Ke)return Ke.value}return Object(w.b)($e.uri)},Je=Te([Fe(0,B.a)],Je),Je}(),ee=function(){function Je(){}return Je.prototype.getId=function($e){return $e instanceof x.b?$e.id:$e.uri},Je}(),ae=function(Je){Me($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 k(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(w.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([Fe(1,R.a),Fe(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([Fe(0,U.a)],Je),Je}(),ue=function(){function Je($e){this.label=new Ce.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(w.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 ue($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}(),je=e("k9mg"),Xe=e("MD5Z"),me=e("iNS8"),ge=e("51B1"),we=e("746U"),Re=e("Sdnv"),Ee=e("6OMU"),ve=e("cMOf"),Q=e("4y0V"),C=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)}}(),F=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:_.a.transparent},oe=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}(),be=function(Je){C($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}(oe),De=function(Je){C($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}(oe),Se;(function(Je){Je[Je.Idle=0]="Idle",Je[Je.Busy=1]="Busy"})(Se||(Se={}));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){C($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=Se.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=we.k(Ke.orientation)?0:Ke.orientation,fe.inverseAltBehavior=!!Ke.inverseAltBehavior,fe.proportionalLayout=we.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=we.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 ke=0;ke<this.viewItems.length;ke++){var lt=this.viewItems[ke];lt.size=Object(Re.a)(Math.round(this.proportions[ke]*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 ke=de[Y];ke.enabled=!1}var lt=Object(Ee.k)(this.sashItems,function(eo){return eo.sash===fe}),Tt=Object(J.e)(Object(Q.a)(document.body,"keydown")(function(eo){return Jt(Ke.sashDragState.current,eo.altKey)}),Object(Q.a)(document.body,"keyup")(function(){return Jt(Ke.sashDragState.current,!1)})),Jt=function(po,co){var Eo=Ke.viewItems.map(function(Ho){return Ho.size}),Oo=Number.NEGATIVE_INFINITY,Ao=Number.POSITIVE_INFINITY;if(Ke.inverseAltBehavior&&(co=!co),co){var Zo=lt===Ke.sashItems.length-1;if(Zo){var Co=Ke.viewItems[lt];Oo=(Co.minimumSize-Co.size)/2,Ao=(Co.maximumSize-Co.size)/2}else{var Co=Ke.viewItems[lt+1];Oo=(Co.size-Co.maximumSize)/2,Ao=(Co.size-Co.minimumSize)/2}}var Wo,Go;if(!co){var Bo=Object(Ee.u)(lt,-1),Mo=Object(Ee.u)(lt+1,Ke.viewItems.length),Qo=Bo.reduce(function(Ho,St){return Ho+(Ke.viewItems[St].minimumSize-Eo[St])},0),fn=Bo.reduce(function(Ho,St){return Ho+(Ke.viewItems[St].viewMaximumSize-Eo[St])},0),Vo=Mo.length===0?Number.POSITIVE_INFINITY:Mo.reduce(function(Ho,St){return Ho+(Eo[St]-Ke.viewItems[St].minimumSize)},0),mn=Mo.length===0?Number.NEGATIVE_INFINITY:Mo.reduce(function(Ho,St){return Ho+(Eo[St]-Ke.viewItems[St].viewMaximumSize)},0),yn=Math.max(Qo,mn),dn=Math.min(Vo,fn),rn=Ke.findFirstSnapIndex(Bo),pn=Ke.findFirstSnapIndex(Mo);if(typeof rn=="number"){var Co=Ke.viewItems[rn],zo=Math.floor(Co.viewMinimumSize/2);Wo={index:rn,limitDelta:Co.visible?yn-zo:yn+zo,size:Co.size}}if(typeof pn=="number"){var Co=Ke.viewItems[pn],zo=Math.floor(Co.viewMinimumSize/2);Go={index:pn,limitDelta:Co.visible?dn+zo:dn-zo,size:Co.size}}}Ke.sashDragState={start:po,current:po,index:lt,sizes:Eo,minDelta:Oo,maxDelta:Ao,alt:co,snapBefore:Wo,snapAfter:Go,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,ke=fe.minDelta,lt=fe.maxDelta,Tt=fe.snapBefore,Jt=fe.snapAfter;this.sashDragState.current=Ke;var eo=Ke-te,po=this.resize(G,eo,Y,void 0,void 0,ke,lt,Tt,Jt);if(de){var co=G===this.sashItems.length-1,Eo=this.viewItems.map(function(Go){return Go.size}),Oo=co?G:G+1,Ao=this.viewItems[Oo],Zo=Ao.size-Ao.maximumSize,Co=Ao.size-Ao.minimumSize,Wo=co?G-1:G+1;this.resize(Wo,-po,Eo,void 0,void 0,Zo,Co)}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!==Se.Idle)throw new Error("Cant modify splitview");if(this.state=Se.Busy,ze<0||ze>=this.viewItems.length)return;var G=Object(Ee.u)(this.viewItems.length).filter(function(ke){return ke!==ze}),te=F(G.filter(function(ke){return fe.viewItems[ke].priority===1}),[ze]),Y=G.filter(function(ke){return fe.viewItems[ke].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=Se.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),ke=0,lt=Ke;ke<lt.length;ke++){var Y=lt[ke];Y.size=Object(Re.a)(de,Y.minimumSize,Y.maximumSize)}var Tt=Object(Ee.u)(this.viewItems.length),Jt=Tt.filter(function(po){return ze.viewItems[po].priority===1}),eo=Tt.filter(function(po){return ze.viewItems[po].priority===2});this.relayout(Jt,eo)},$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!==Se.Idle)throw new Error("Cant modify splitview");this.state=Se.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(Vo){return te.onViewChange(Jt,Vo)}),ke=Object(J.h)(function(){return te.viewContainer.removeChild(Y)}),lt=Object(J.e)(de,ke),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 be(Y,ze,Tt,lt):new De(Y,ze,Tt,lt);if(this.viewItems.splice(fe,0,Jt),this.viewItems.length>1){var eo=this.orientation===0?1:0,po=this.orientation===0?{getHorizontalSashTop:function(mn){return te.getSashPosition(mn)}}:{getVerticalSashLeft:function(mn){return te.getSashPosition(mn)}},co=new ve.a(this.sashContainer,po,{orientation:eo,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),Eo=this.orientation===0?function(Vo){return{sash:co,start:Vo.startY,current:Vo.currentY,alt:Vo.altKey}}:function(Vo){return{sash:co,start:Vo.startX,current:Vo.currentX,alt:Vo.altKey}},Oo=f.b.map(co.onDidStart,Eo),Ao=Oo(this.onSashStart,this),Zo=f.b.map(co.onDidChange,Eo),Co=Zo(this.onSashChange,this),Wo=f.b.map(co.onDidEnd,function(){return Object(Ee.k)(te.sashItems,function(Vo){return Vo.sash===co})}),Go=Wo(this.onSashEnd,this),Bo=co.onDidReset(function(){var Vo=Object(Ee.k)(te.sashItems,function(pn){return pn.sash===co}),mn=Object(Ee.u)(Vo,-1),yn=Object(Ee.u)(Vo+1,te.viewItems.length),dn=te.findFirstSnapIndex(mn),rn=te.findFirstSnapIndex(yn);if(typeof dn=="number"&&!te.viewItems[dn].visible)return;if(typeof rn=="number"&&!te.viewItems[rn].visible)return;te._onDidSashReset.fire(Vo)}),Mo=Object(J.e)(Ao,Co,Go,Bo,co),Qo={sash:co,disposable:Mo};this.sashItems.splice(fe-1,0,Qo)}Y.appendChild(ze.element);var fn;typeof Ke!="number"&&Ke.type==="split"&&(fn=[Ke.index]),G||this.relayout([fe],fn),this.state=Se.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,ke,lt){var Tt=this;if(fe===void 0&&(fe=this.viewItems.map(function(_e){return _e.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),eo=Object(Ee.u)(ze+1,this.viewItems.length);if(te)for(var po=0,co=te;po<co.length;po++){var Eo=co[po];Object(Ee.t)(Jt,Eo),Object(Ee.t)(eo,Eo)}if(G)for(var Oo=0,Ao=G;Oo<Ao.length;Oo++){var Zo=Ao[Oo];Object(Ee.s)(Jt,Zo),Object(Ee.s)(eo,Zo)}var Co=Jt.map(function(_e){return Tt.viewItems[_e]}),Wo=Jt.map(function(_e){return fe[_e]}),Go=eo.map(function(_e){return Tt.viewItems[_e]}),Bo=eo.map(function(_e){return fe[_e]}),Mo=Jt.reduce(function(_e,M){return _e+(Tt.viewItems[M].minimumSize-fe[M])},0),Qo=Jt.reduce(function(_e,M){return _e+(Tt.viewItems[M].maximumSize-fe[M])},0),fn=eo.length===0?Number.POSITIVE_INFINITY:eo.reduce(function(_e,M){return _e+(fe[M]-Tt.viewItems[M].minimumSize)},0),Vo=eo.length===0?Number.NEGATIVE_INFINITY:eo.reduce(function(_e,M){return _e+(fe[M]-Tt.viewItems[M].maximumSize)},0),mn=Math.max(Mo,Vo,Y),yn=Math.min(fn,Qo,de),dn=!1;if(ke){var rn=this.viewItems[ke.index],pn=Ke>=ke.limitDelta;dn=pn!==rn.visible,rn.setVisible(pn,ke.size)}if(!dn&&lt){var rn=this.viewItems[lt.index],pn=Ke<lt.limitDelta;dn=pn!==rn.visible,rn.setVisible(pn,lt.size)}if(dn)return this.resize(ze,Ke,fe,G,te,Y,de);Ke=Object(Re.a)(Ke,mn,yn);for(var zo=0,Ho=Ke;zo<Co.length;zo++){var St=Co[zo],ot=Object(Re.a)(Wo[zo]+Ho,St.minimumSize,St.maximumSize),nt=ot-Wo[zo];Ho-=nt,St.size=ot}for(var zo=0,Dt=Ke;zo<Go.length;zo++){var St=Go[zo],ot=Object(Re.a)(Bo[zo]-Dt,St.minimumSize,St.maximumSize),nt=ot-Bo[zo];Dt+=nt,St.size=ot}return Ke},$e.prototype.distributeEmptySpace=function(ze){for(var Ke=this,fe=this.viewItems.reduce(function(Ao,Zo){return Ao+Zo.size},0),G=this.size-fe,te=Object(Ee.u)(this.viewItems.length-1,-1),Y=te.filter(function(Ao){return Ke.viewItems[Ao].priority===1}),de=te.filter(function(Ao){return Ke.viewItems[Ao].priority===2}),ke=0,lt=de;ke<lt.length;ke++){var Tt=lt[ke];Object(Ee.t)(te,Tt)}for(var Jt=0,eo=Y;Jt<eo.length;Jt++){var Tt=eo[Jt];Object(Ee.s)(te,Tt)}typeof ze=="number"&&Object(Ee.s)(te,ze);for(var po=0;G!==0&&po<te.length;po++){var co=this.viewItems[te[po]],Eo=Object(Re.a)(co.size+G,co.minimumSize,co.maximumSize),Oo=Eo-co.size;G-=Oo,co.size=Eo}},$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(Co){return ze=Co.size-Co.minimumSize>0||ze});ze=!1;var fe=this.viewItems.map(function(Co){return ze=Co.maximumSize-Co.size>0||ze}),G=F(this.viewItems).reverse();ze=!1;var te=G.map(function(Co){return ze=Co.size-Co.minimumSize>0||ze}).reverse();ze=!1;for(var Y=G.map(function(Co){return ze=Co.maximumSize-Co.size>0||ze}).reverse(),de=0,ke=0;ke<this.sashItems.length;ke++){var lt=this.sashItems[ke].sash,Tt=this.viewItems[ke];de+=Tt.size;var Jt=!(Ke[ke]&&Y[ke+1]),eo=!(fe[ke]&&te[ke+1]);if(Jt&&eo){var po=Object(Ee.u)(ke,-1),co=Object(Ee.u)(ke+1,this.viewItems.length),Eo=this.findFirstSnapIndex(po),Oo=this.findFirstSnapIndex(co),Ao=typeof Eo=="number"&&!this.viewItems[Eo].visible,Zo=typeof Oo=="number"&&!this.viewItems[Oo].visible;Ao&&te[ke]&&(de>0||this.startSnappingEnabled)?lt.state=1:Zo&&Ke[ke]&&(de<this.contentSize||this.endSnappingEnabled)?lt.state=2:lt.state=0}else Jt&&!eo?lt.state=1:!Jt&&eo?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)}}(),pt=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)}},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{ke(Ke.next(lt))}catch(Tt){te(Tt)}}function de(lt){try{ke(Ke.throw(lt))}catch(Tt){te(Tt)}}function ke(lt){lt.done?G(lt.value):fe(lt.value).then(Y,de)}ke((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(ke){return function(lt){return de([ke,lt])}}function de(ke){if(Ke)throw new TypeError("Generator is already executing.");for(;ze;)try{if(Ke=1,fe&&(G=ke[0]&2?fe.return:ke[0]?fe.throw||((G=fe.return)&&G.call(fe),0):fe.next)&&!(G=G.call(fe,ke[1])).done)return G;(fe=0,G)&&(ke=[ke[0]&2,G.value]);switch(ke[0]){case 0:case 1:G=ke;break;case 4:return ze.label++,{value:ke[1],done:!1};case 5:ze.label++,fe=ke[1],ke=[0];continue;case 7:ke=ze.ops.pop(),ze.trys.pop();continue;default:if(!(G=ze.trys,G=G.length>0&&G[G.length-1])&&(ke[0]===6||ke[0]===2)){ze=0;continue}if(ke[0]===3&&(!G||ke[1]>G[0]&&ke[1]<G[3])){ze.label=ke[1];break}if(ke[0]===6&&ze.label<G[1]){ze.label=G[1],G=ke;break}if(G&&ze.label<G[2]){ze.label=G[2],ze.ops.push(ke);break}G[2]&&ze.ops.pop(),ze.trys.pop();continue}ke=$e.call(Je,ze)}catch(lt){ke=[6,lt],fe=0}finally{Ke=G=0}if(ke[0]&5)throw ke[1];return{value:ke[0]?ke[1]:void 0,done:!0}}},uo=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(w.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(ke){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 ke=!1;if(c.a.equalsRange(de,te.range))return;if(c.a.spansMultipleLines(de))ke=!0;else{var lt=te.range.endColumn-te.range.startColumn,Tt=de.endColumn-de.startColumn;lt!==Tt&&(ke=!0)}ke?($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}(),ao=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}(),so=function(Je){it($e,Je);function $e(ze,Ke,fe,G,te,Y,de,ke){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=ke,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(me.e)||_.a.transparent;this.style({arrowColor:Ke,frameColor:Ke,headerBackgroundColor:ze.getColor(me.p)||_.a.transparent,primaryHeadingColor:ze.getColor(me.q),secondaryHeadingColor:ze.getColor(me.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(p.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(ne),identityProvider:new ee,overrideStyles:{listBackground:me.j}};this._tree=this._instantiationService.createInstance(je.c,"ReferencesWidget",this._treeContainer,new Pe,[this._instantiationService.createInstance(q),this._instantiationService.createInstance(X)],this._instantiationService.createInstance(Ue),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,ke){de instanceof x.b&&(ke==="show"&&Ke._revealReference(de,!1),Ke._onDidSelectReference.fire({element:de,kind:ke,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 uo(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 x.b?ze:ze instanceof x.a&&ze.children.length>0?ze.children[0]:void 0},$e.prototype._revealReference=function(ze,Ke){return Mt(this,void 0,void 0,function(){var fe,G,te,Y,de;return zt(this,function(ke){switch(ke.label){case 0:return this._revealedReference===ze?[2]:(this._revealedReference=ze,ze.uri.scheme!==v.b.inMemory?this.setTitle(Object(w.c)(ze.uri),this._uriLabel.getUriLabel(Object(w.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:ke.sent(),this._tree.reveal(ze),ke.label=3;case 3:return[4,fe];case 4:return G=ke.sent(),this._model?(Object(J.f)(this._previewModelReference),te=G.object,te?(Y=this._preview.getModel()===te.textEditorModel?0:1,de=c.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=pt([Rt(3,$.c),Rt(4,l.a),Rt(5,U.a),Rt(6,me.a),Rt(7,R.a)],$e),$e}(me.c);Object($.e)(function(Je,$e){var ze=Je.getColor(me.m);ze&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+ze+"; }");var Ke=Je.getColor(me.h);Ke&&$e.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+Ke+"; }");var fe=Je.getColor(me.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(me.j);te&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+te+"; }");var Y=Je.getColor(me.l);Y&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+Y+"; }");var de=Je.getColor(me.k);de&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+de+"; }");var ke=Je.getColor(me.n);ke&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+ke+"; }");var lt=Je.getColor(me.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(me.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(me.g);Jt&&$e.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+(" background-color: "+Jt+";")+"}")});var Pt=e("cGHE"),ft=e("sM1p"),vt=e("X+cX"),At=e("nrhi"),at=e("/kV6"),tt=e("nnTU"),ut=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},Ct=function(Je,$e){return function(ze,Ke){$e(ze,Ke,Je)}},gt=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{ke(Ke.next(lt))}catch(Tt){te(Tt)}}function de(lt){try{ke(Ke.throw(lt))}catch(Tt){te(Tt)}}function ke(lt){lt.done?G(lt.value):fe(lt.value).then(Y,de)}ke((Ke=Ke.apply(Je,$e||[])).next())})},bt=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(ke){return function(lt){return de([ke,lt])}}function de(ke){if(Ke)throw new TypeError("Generator is already executing.");for(;ze;)try{if(Ke=1,fe&&(G=ke[0]&2?fe.return:ke[0]?fe.throw||((G=fe.return)&&G.call(fe),0):fe.next)&&!(G=G.call(fe,ke[1])).done)return G;(fe=0,G)&&(ke=[ke[0]&2,G.value]);switch(ke[0]){case 0:case 1:G=ke;break;case 4:return ze.label++,{value:ke[1],done:!1};case 5:ze.label++,fe=ke[1],ke=[0];continue;case 7:ke=ze.ops.pop(),ze.trys.pop();continue;default:if(!(G=ze.trys,G=G.length>0&&G[G.length-1])&&(ke[0]===6||ke[0]===2)){ze=0;continue}if(ke[0]===3&&(!G||ke[1]>G[0]&&ke[1]<G[3])){ze.label=ke[1];break}if(ke[0]===6&&ze.label<G[1]){ze.label=G[1],G=ke;break}if(G&&ze.label<G[2]){ze.label=G[2],ze.ops.push(ke);break}G[2]&&ze.ops.pop(),ze.trys.pop();continue}ke=$e.call(Je,ze)}catch(lt){ke=[6,lt],fe=0}finally{Ke=G=0}if(ke[0]&5)throw ke[1];return{value:ke[0]?ke[1]:void 0,done:!0}}},Gt=new z.d("referenceSearchVisible",!1),Nt=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=ao.fromJSON(this._storageService.get(te,0,"{}"));this._widget=this._instantiationService.createInstance(so,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(ke){var lt=ke.element,Tt=ke.kind;if(!lt)return;switch(Tt){case"open":(ke.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(ke){return de!==fe._requestIdPool||!fe._widget?void 0:(fe._model&&fe._model.dispose(),fe._model=ke,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 Pt.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(ke){fe._notificationService.error(ke)})},Je.prototype.changeFocusBetweenPreviewAndReferences=function(){if(!this._widget)return;this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor()},Je.prototype.goToNextOrPreviousReference=function($e){return gt(this,void 0,void 0,function(){var ze,Ke,fe,G,te;return bt(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=c.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=ut([Ct(2,z.c),Ct(3,I.a),Ct(4,ft.a),Ct(5,U.a),Ct(6,H.a),Ct(7,O.a)],Je),Je}();function Et(Je,$e){var ze=Object(me.d)(Je);if(!ze)return;var Ke=Nt.get(ze);Ke&&$e(Ke)}At.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(at.a)(2048|41,60),when:z.a.or(Gt,me.b.inPeekEditor),handler:function($e){Et($e,function(ze){ze.changeFocusBetweenPreviewAndReferences()})}}),At.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:z.a.or(Gt,me.b.inPeekEditor),handler:function($e){Et($e,function(ze){ze.goToNextOrPreviousReference(!0)})}}),At.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1024|62,secondary:[1024|70],when:z.a.or(Gt,me.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()})}),At.a.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1024|9],when:z.a.and(me.b.inPeekEditor,z.a.not("config.editor.stablePeek"))}),At.a.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1024|9],when:z.a.and(Gt,z.a.not("config.editor.stablePeek"))}),At.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2048|3,mac:{primary:256|3},when:z.a.and(Gt,je.d),handler:function($e){var ze,Ke=$e.get(je.a),fe=(ze=Ke.lastFocusedList)===null||ze===void 0?void 0:ze.getFocus();Array.isArray(fe)&&fe[0]instanceof x.b&&Et($e,function(G){return G.openReference(fe[0],!0)})}}),tt.a.registerCommand("openReference",function(Je){var $e,ze=Je.get(je.a),Ke=($e=ze.lastFocusedList)===null||$e===void 0?void 0:$e.getFocus();Array.isArray(Ke)&&Ke[0]instanceof x.b&&Et(Je,function(fe){return fe.openReference(Ke[0],!1)})})},QaAZ:function(Lt,j,e){},QiAa:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return e.e(182).then(e.bind(null,"j6Xs"))}})},QuOb:function(Lt,j,e){"use strict";e.d(j,"a",function(){return U});var T=e("MI8n"),re=e("pmY6"),J=function(){var _=function(v,w){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var s in c)c.hasOwnProperty(s)&&(p[s]=c[s])},_(v,w)};return function(f,v){_(f,v);function w(){this.constructor=f}f.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}}(),I=function(){function _(f,v,w,p,c,s){f=f|0,v=v|0,w=w|0,p=p|0,c=c|0,s=s|0,f<0&&(f=0),w+f>v&&(w=v-f),w<0&&(w=0),p<0&&(p=0),s+p>c&&(s=c-p),s<0&&(s=0),this.width=f,this.scrollWidth=v,this.scrollLeft=w,this.height=p,this.scrollHeight=c,this.scrollTop=s}return _.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},_.prototype.withScrollDimensions=function(f){return new _(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)},_.prototype.withScrollPosition=function(f){return new _(this.width,this.scrollWidth,typeof f.scrollLeft!="undefined"?f.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof f.scrollTop!="undefined"?f.scrollTop:this.scrollTop)},_.prototype.createScrollEvent=function(f){var v=this.width!==f.width,w=this.scrollWidth!==f.scrollWidth,p=this.scrollLeft!==f.scrollLeft,c=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:w,scrollLeftChanged:p,heightChanged:c,scrollHeightChanged:s,scrollTopChanged:l}},_}(),U=function(_){J(f,_);function f(v,w){var p=_.call(this)||this;return p._onScroll=p._register(new T.a),p.onScroll=p._onScroll.event,p._smoothScrollDuration=v,p._scheduleAtNextAnimationFrame=w,p._state=new I(0,0,0,0,0,0),p._smoothScrolling=null,p}return f.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),_.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 w=this._state.withScrollDimensions(v);this._setState(w),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 w=this._state.withScrollPosition(v);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(w)},f.prototype.setScrollPositionSmooth=function(v){var w=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 p=this._state.withScrollPosition(v);if(this._smoothScrolling.to.scrollLeft===p.scrollLeft&&this._smoothScrolling.to.scrollTop===p.scrollTop)return;var c=this._smoothScrolling.combine(this._state,p,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=c}else{var p=this._state.withScrollPosition(v);this._smoothScrolling=x.start(this._state,p,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!w._smoothScrolling)return;w._smoothScrolling.animationFrameDisposable=null,w._performSmoothScrolling()})},f.prototype._performSmoothScrolling=function(){var v=this;if(!this._smoothScrolling)return;var w=this._smoothScrolling.tick(),p=this._state.withScrollPosition(w);if(this._setState(p),w.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 w=this._state;if(w.equals(v))return;this._state=v,this._onScroll.fire(this._state.createScrollEvent(w))},f}(re.a),z=function(){function _(f,v,w){this.scrollLeft=f,this.scrollTop=v,this.isDone=w}return _}();function O(_,f){var v=f-_;return function(w){return _+v*y(w)}}function H(_,f,v){return function(w){return w<v?_(w/v):f((w-v)/(1-v))}}var x=function(){function _(f,v,w,p){this.from=f,this.to=v,this.duration=p,this._startTime=w,this.animationFrameDisposable=null,this._initAnimations()}return _.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)},_.prototype._initAnimation=function(f,v,w){var p=Math.abs(f-v);if(p>2.5*w){var c=void 0,s=void 0;return f<v?(c=f+.75*w,s=v-.75*w):(c=f-.75*w,s=v+.75*w),H(O(f,c),O(s,v),.33)}return O(f,v)},_.prototype.dispose=function(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},_.prototype.acceptScrollDimensions=function(f){this.to=f.withScrollPosition(this.to),this._initAnimations()},_.prototype.tick=function(){return this._tick(Date.now())},_.prototype._tick=function(f){var v=(f-this._startTime)/this.duration;if(v<1){var w=this.scrollLeft(v),p=this.scrollTop(v);return new z(w,p,!1)}return new z(this.to.scrollLeft,this.to.scrollTop,!0)},_.prototype.combine=function(f,v,w){return _.start(f,v,w)},_.start=function(f,v,w){w=w+10;var p=Date.now()-10;return new _(f,v,p,w)},_}();function u(_){return Math.pow(_,3)}function y(_){return 1-u(1-_)}},QvA3:function(Lt,j,e){},R3nR:function(Lt,j,e){"use strict";e.d(j,"b",function(){return J}),e.d(j,"a",function(){return I});var T=e("Cg/j"),re=e("T8No"),J=Object(T.c)("accessibilityService"),I=new re.d("accessibilityModeEnabled",!1)},R8sh:function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=e("Cg/j"),re="label",J=Object(T.c)(re)},RMfO:function(Lt,j,e){},Rpxm:function(Lt,j,e){"use strict";e.d(j,"a",function(){return p}),e.d(j,"b",function(){return c}),e.d(j,"c",function(){return E});var T=e("3/fG"),re=e("746U"),J=e("xONI"),I=e("WqXY"),U=e("7lZ/"),z=e("EffR"),O=e("q/I2"),H=e("qj0h"),x=e("i04g"),u=z.a,y=function(){function L(A,k,R){this.os=k,this.options=R,this.domNode=z.q(A,u(".monaco-keybinding")),this.didEverRender=!1,A.appendChild(this.domNode)}return L.prototype.set=function(A,k){if(this.didEverRender&&this.keybinding===A&&L.areSame(this.matches,k))return;this.keybinding=A,this.matches=k,this.render()},L.prototype.render=function(){if(z.t(this.domNode),this.keybinding){var A=this.keybinding.getParts(),k=A[0],R=A[1];k&&this.renderPart(this.domNode,k,this.matches?this.matches.firstPart:null),R&&(z.q(this.domNode,u("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},L.prototype.renderPart=function(A,k,R){var $=x.b.modifierLabels[this.os];k.ctrlKey&&this.renderKey(A,$.ctrlKey,Boolean(R==null?void 0:R.ctrlKey),$.separator),k.shiftKey&&this.renderKey(A,$.shiftKey,Boolean(R==null?void 0:R.shiftKey),$.separator),k.altKey&&this.renderKey(A,$.altKey,Boolean(R==null?void 0:R.altKey),$.separator),k.metaKey&&this.renderKey(A,$.metaKey,Boolean(R==null?void 0:R.metaKey),$.separator);var ie=k.keyLabel;ie&&this.renderKey(A,ie,Boolean(R==null?void 0:R.keyCode),"")},L.prototype.renderKey=function(A,k,R,$){z.q(A,u("span.monaco-keybinding-key"+(R?".highlight":""),void 0,k)),$&&z.q(A,u("span.monaco-keybinding-key-separator",void 0,$))},L.prototype.renderUnbound=function(A){z.q(A,u("span.monaco-keybinding-key",void 0,Object(T.a)("unbound","Unbound")))},L.areSame=function(A,k){return A===k||!A&&!k?!0:!!A&&!!k&&Object(H.e)(A.firstPart,k.firstPart)&&Object(H.e)(A.chordPart,k.chordPart)},L}(),_=e("MNsG"),f=e("6OMU"),v=function(){var L=function(k,R){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ie){$.__proto__=ie}||function($,ie){for(var W in ie)ie.hasOwnProperty(W)&&($[W]=ie[W])},L(k,R)};return function(A,k){L(A,k);function R(){this.constructor=A}A.prototype=k===null?Object.create(k):(R.prototype=k.prototype,new R)}}(),w=0,p=function(){function L(A){A===void 0&&(A=[]),this.id=(w++).toString(),this.labelHighlights=A,this.descriptionHighlights=[]}return L.prototype.getId=function(){return this.id},L.prototype.getLabel=function(){return},L.prototype.getLabelOptions=function(){return},L.prototype.getAriaLabel=function(){return Object(f.d)([this.getLabel(),this.getDescription(),this.getDetail()]).join(", ")},L.prototype.getDetail=function(){return},L.prototype.getIcon=function(){return},L.prototype.getDescription=function(){return},L.prototype.getTooltip=function(){return},L.prototype.getDescriptionTooltip=function(){return},L.prototype.getKeybinding=function(){return},L.prototype.isHidden=function(){return!!this.hidden},L.prototype.setHighlights=function(A,k,R){this.labelHighlights=A,this.descriptionHighlights=k,this.detailHighlights=R},L.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},L.prototype.run=function(A,k){return!1},L}(),c=function(L){v(A,L);function A(k,R,$){var ie=L.call(this)||this;return ie.entry=k,ie.groupLabel=R,ie.withBorder=$,ie}return A.prototype.getGroupLabel=function(){return this.groupLabel},A.prototype.setGroupLabel=function(k){this.groupLabel=k},A.prototype.showBorder=function(){return!!this.withBorder},A.prototype.setShowBorder=function(k){this.withBorder=k},A.prototype.getLabel=function(){return this.entry?this.entry.getLabel():L.prototype.getLabel.call(this)},A.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():L.prototype.getLabelOptions.call(this)},A.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():L.prototype.getAriaLabel.call(this)},A.prototype.getDetail=function(){return this.entry?this.entry.getDetail():L.prototype.getDetail.call(this)},A.prototype.getIcon=function(){return this.entry?this.entry.getIcon():L.prototype.getIcon.call(this)},A.prototype.getDescription=function(){return this.entry?this.entry.getDescription():L.prototype.getDescription.call(this)},A.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():L.prototype.getHighlights.call(this)},A.prototype.isHidden=function(){return this.entry?this.entry.isHidden():L.prototype.isHidden.call(this)},A.prototype.setHighlights=function(k,R,$){this.entry?this.entry.setHighlights(k,R,$):L.prototype.setHighlights.call(this,k,R,$)},A.prototype.run=function(k,R){return this.entry?this.entry.run(k,R):L.prototype.run.call(this,k,R)},A}(p),s=function(){function L(){}return L.prototype.hasActions=function(A,k){return!1},L.prototype.getActions=function(A,k){return null},L}(),l="quickOpenEntry",d="quickOpenEntryGroup",m=function(){function L(A,k){A===void 0&&(A=new s),this.actionProvider=A,this.actionRunner=k}return L.prototype.getHeight=function(A){return A.getDetail()?44:22},L.prototype.getTemplateId=function(A){return A instanceof c?d:l},L.prototype.renderTemplate=function(A,k,R){var $=document.createElement("div");z.f($,"sub-content"),k.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 Ce=new J.a(ie,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0}),Me=document.createElement("span");ie.appendChild(Me),z.f(Me,"quick-open-entry-keybinding");var Te=new y(Me,_.a),Fe=document.createElement("div");W.appendChild(Fe),z.f(Fe,"quick-open-entry-meta");var Ue=new U.a(Fe,!0),Pe;A===d&&(Pe=document.createElement("div"),z.f(Pe,"results-group"),k.appendChild(Pe)),z.f(k,"actions");var ne=document.createElement("div");z.f(ne,"primary-action-bar"),k.appendChild(ne);var ee=new I.a(ne,{actionRunner:this.actionRunner});return{container:k,entry:B,icon:le,label:Ce,detail:Ue,keybinding:Te,group:Pe,actionBar:ee}},L.prototype.renderElement=function(A,k,R,$){this.actionProvider.hasActions(null,A)?z.f(R.container,"has-actions"):z.P(R.container,"has-actions"),R.actionBar.context=A;var ie=this.actionProvider.getActions(null,A);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(),A instanceof c&&A.getGroupLabel()?z.f(R.container,"has-group-label"):z.P(R.container,"has-group-label"),A instanceof c){var W=A,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(A instanceof p){var Ce=A.getHighlights(),Me=Ce[0],Te=Ce[1],Fe=Ce[2],Ue=A.getIcon()?"quick-open-entry-icon "+A.getIcon():"";R.icon.className=Ue;var Pe=A.getLabelOptions()||Object.create(null);Pe.matches=Me||[],Pe.title=A.getTooltip(),Pe.descriptionTitle=A.getDescriptionTooltip()||A.getDescription(),Pe.descriptionMatches=Te||[],R.label.setLabel(A.getLabel()||"",A.getDescription(),Pe),R.detail.set(A.getDetail(),Fe),R.keybinding.set(A.getKeybinding())}},L.prototype.disposeTemplate=function(A,k){k.actionBar.dispose(),k.actionBar=null,k.container=null,k.entry=null,k.keybinding=null,k.detail=null,k.group=null,k.icon=null,k.label.dispose(),k.label=null},L}(),E=function(){function L(A,k){A===void 0&&(A=[]),k===void 0&&(k=new s),this._entries=A,this._dataSource=this,this._renderer=new m(k),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(L.prototype,"entries",{get:function(){return this._entries},set:function(k){this._entries=k},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),L.prototype.getId=function(A){return A.getId()},L.prototype.getLabel=function(A){return re.o(A.getLabel())},L.prototype.getAriaLabel=function(A){var k=A.getAriaLabel();return k?T.a("quickOpenAriaLabelEntry","{0}, picker",A.getAriaLabel()):T.a("quickOpenAriaLabel","picker")},L.prototype.isVisible=function(A){return!A.isHidden()},L.prototype.run=function(A,k,R){return A.run(k,R)},L}()},S3by:function(Lt,j,e){"use strict";var T=e("3/fG"),re=e("N0LK"),J;(function(I){I[I.Ignore=0]="Ignore",I[I.Info=1]="Info",I[I.Warning=2]="Warning",I[I.Error=3]="Error"})(J||(J={})),function(I){var U="error",z="warning",O="warn",H="info",x=Object.create(null);x[I.Error]=T.a("sev.error","Error"),x[I.Warning]=T.a("sev.warning","Warning"),x[I.Info]=T.a("sev.info","Info");function u(y){return y?re.n(U,y)?I.Error:re.n(z,y)||re.n(O,y)?I.Warning:re.n(H,y)?I.Info:I.Ignore:I.Ignore}I.fromValue=u}(J||(J={})),j.a=J},SBYE:function(Lt,j,e){"use strict";e.r(j);var T=e("QaAZ"),re=e.n(T),J=e("D3Dy"),I=e("EffR"),U=e("ZlPH"),z=e("Md8J"),O=e("OBOq"),H=e("G300"),x=e("pmY6"),u=e("MNsG"),y=e("N0LK"),_=e("bY76"),f=e("sswD"),v=e("wQH0"),w=e("k7pc"),p=e("T8No"),c=e("Cg/j"),s=e("bexQ"),l=e("W9cx"),d=e("MD5Z"),m=e("t9D7"),E=e("A9l+"),L=function(){var Ce=function(Te,Fe){return Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,Pe){Ue.__proto__=Pe}||function(Ue,Pe){for(var ne in Pe)Pe.hasOwnProperty(ne)&&(Ue[ne]=Pe[ne])},Ce(Te,Fe)};return function(Me,Te){Ce(Me,Te);function Fe(){this.constructor=Me}Me.prototype=Te===null?Object.create(Te):(Fe.prototype=Te.prototype,new Fe)}}(),A=function(Ce,Me,Te,Fe){var Ue=arguments.length,Pe=Ue<3?Me:Fe===null?Fe=Object.getOwnPropertyDescriptor(Me,Te):Fe,ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Pe=Reflect.decorate(Ce,Me,Te,Fe);else for(var ee=Ce.length-1;ee>=0;ee--)(ne=Ce[ee])&&(Pe=(Ue<3?ne(Pe):Ue>3?ne(Me,Te,Pe):ne(Me,Te))||Pe);return Ue>3&&Pe&&Object.defineProperty(Me,Te,Pe),Pe},k=function(Ce,Me){return function(Te,Fe){Me(Te,Fe,Ce)}},R=new p.d("accessibilityHelpWidgetVisible",!1),$=function(Ce){L(Me,Ce);function Me(Te,Fe){var Ue=Ce.call(this)||this;return Ue._editor=Te,Ue._widget=Ue._register(Fe.createInstance(W,Ue._editor)),Ue}return Me.get=function(Te){return Te.getContribution(Me.ID)},Me.prototype.show=function(){this._widget.show()},Me.prototype.hide=function(){this._widget.hide()},Me.ID="editor.contrib.accessibilityHelpController",Me=A([k(1,c.a)],Me),Me}(x.a);function ie(Ce,Me){return!Ce||Ce.length===0?E.a.noSelection:Ce.length===1?Me?y.r(E.a.singleSelectionRange,Ce[0].positionLineNumber,Ce[0].positionColumn,Me):y.r(E.a.singleSelection,Ce[0].positionLineNumber,Ce[0].positionColumn):Me?y.r(E.a.multiSelectionRange,Ce.length,Me):Ce.length>0?y.r(E.a.multiSelection,Ce.length):""}var W=function(Ce){L(Me,Ce);function Me(Te,Fe,Ue,Pe){var ne=Ce.call(this)||this;return ne._contextKeyService=Fe,ne._keybindingService=Ue,ne._openerService=Pe,ne._editor=Te,ne._isVisibleKey=R.bindTo(ne._contextKeyService),ne._domNode=Object(U.b)(document.createElement("div")),ne._domNode.setClassName("accessibilityHelpWidget"),ne._domNode.setDisplay("none"),ne._domNode.setAttribute("role","dialog"),ne._domNode.setAttribute("aria-hidden","true"),ne._contentDomNode=Object(U.b)(document.createElement("div")),ne._contentDomNode.setAttribute("role","document"),ne._domNode.appendChild(ne._contentDomNode),ne._isVisible=!1,ne._register(ne._editor.onDidLayoutChange(function(){ne._isVisible&&ne._layout()})),ne._register(I.o(ne._contentDomNode.domNode,"keydown",function(ee){if(!ne._isVisible)return;if(ee.equals(2048|35)&&(Object(O.a)(E.a.emergencyConfOn),ne._editor.updateOptions({accessibilitySupport:"on"}),I.t(ne._contentDomNode.domNode),ne._buildContent(),ne._contentDomNode.domNode.focus(),ee.preventDefault(),ee.stopPropagation()),ee.equals(2048|38)){Object(O.a)(E.a.openingDocs);var ae=ne._editor.getRawOptions().accessibilityHelpUrl;typeof ae=="undefined"&&(ae="https://go.microsoft.com/fwlink/?linkid=852450"),ne._openerService.open(_.a.parse(ae)),ee.preventDefault(),ee.stopPropagation()}})),ne.onblur(ne._contentDomNode.domNode,function(){ne.hide()}),ne._editor.addOverlayWidget(ne),ne}return Me.prototype.dispose=function(){this._editor.removeOverlayWidget(this),Ce.prototype.dispose.call(this)},Me.prototype.getId=function(){return Me.ID},Me.prototype.getDomNode=function(){return this._domNode.domNode},Me.prototype.getPosition=function(){return{preference:null}},Me.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()},Me.prototype._descriptionForCommand=function(Te,Fe,Ue){var Pe=this._keybindingService.lookupKeybinding(Te);return Pe?y.r(Fe,Pe.getAriaLabel()):y.r(Ue,Te)},Me.prototype._buildContent=function(){var Te=this._editor.getOptions(),Fe=this._editor.getSelections(),Ue=0;if(Fe){var Pe=this._editor.getModel();Pe&&Fe.forEach(function(q){Ue+=Pe.getValueLengthInRange(q)})}var ne=ie(Fe,Ue);Te.get(45)?Te.get(68)?ne+=E.a.readonlyDiffEditor:ne+=E.a.editableDiffEditor:Te.get(68)?ne+=E.a.readonlyEditor:ne+=E.a.editableEditor;var ee=u.e?E.a.changeConfigToOnMac:E.a.changeConfigToOnWinLinux;switch(Te.get(2)){case 0:ne+=`
- `+ee;break;case 2:ne+=`
- `+E.a.auto_on;break;case 1:ne+=`
- `+E.a.auto_off,ne+=" "+ee;break}Te.get(106)?ne+=`
- `+this._descriptionForCommand(w.ToggleTabFocusModeAction.ID,E.a.tabFocusModeOnMsg,E.a.tabFocusModeOnMsgNoKb):ne+=`
- `+this._descriptionForCommand(w.ToggleTabFocusModeAction.ID,E.a.tabFocusModeOffMsg,E.a.tabFocusModeOffMsgNoKb);var ae=u.e?E.a.openDocMac:E.a.openDocWinLinux;ne+=`
- `+ae,ne+=`
`+E.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(z.b)(ne)),this._contentDomNode.domNode.setAttribute("aria-label",ne)},Me.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,I.t(this._contentDomNode.domNode),this._editor.focus()},Me.prototype._layout=function(){var Te=this._editor.getLayoutInfo(),Fe=Math.max(5,Math.min(Me.WIDTH,Te.width-40)),Ue=Math.max(5,Math.min(Me.HEIGHT,Te.height-40));this._domNode.setWidth(Fe),this._domNode.setHeight(Ue);var Pe=Math.round((Te.height-Ue)/2);this._domNode.setTop(Pe);var ne=Math.round((Te.width-Fe)/2);this._domNode.setLeft(ne)},Me.ID="editor.contrib.accessibilityHelpWidget",Me.WIDTH=500,Me.HEIGHT=300,Me=A([k(1,p.c),k(2,s.a),k(3,l.a)],Me),Me}(H.a),B=function(Ce){L(Me,Ce);function Me(){return Ce.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 Me.prototype.run=function(Te,Fe){var Ue=$.get(Fe);Ue&&Ue.show()},Me}(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(Me){return Me.hide()},kbOpts:{weight:100+100,kbExpr:v.a.focus,primary:9,secondary:[1024|9]}})),Object(m.e)(function(Ce,Me){var Te=Ce.getColor(d.Q);Te&&Me.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+Te+"; }");var Fe=Ce.getColor(d.S);Fe&&Me.addRule(".monaco-editor .accessibilityHelpWidget { color: "+Fe+"; }");var Ue=Ce.getColor(d.hc);Ue&&Me.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+Ue+"; }");var Pe=Ce.getColor(d.e);Pe&&Me.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+Pe+"; }")})},Sdnv:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});function T(re,J,I){return Math.min(Math.max(re,J),I)}},SvYn:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return e.e(154).then(e.bind(null,"Dsrv"))}})},T8No:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I}),e.d(j,"b",function(){return f}),e.d(j,"d",function(){return v}),e.d(j,"c",function(){return w}),e.d(j,"e",function(){return p});var T=e("N0LK"),re=e("Cg/j"),J=function(){var c=function(l,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,E){m.__proto__=E}||function(m,E){for(var L in E)E.hasOwnProperty(L)&&(m[L]=E[L])},c(l,d)};return function(s,l){c(s,l);function d(){this.constructor=s}s.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),I=function(){function c(){}return c.has=function(s){return z.create(s)},c.equals=function(s,l){return O.create(s,l)},c.regex=function(s,l){return u.create(s,l)},c.not=function(s){return x.create(s)},c.and=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return _.create(s)},c.or=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return f.create(s)},c.deserialize=function(s,l){return l===void 0&&(l=!1),s?this._deserializeOrExpression(s,l):void 0},c._deserializeOrExpression=function(s,l){var d=this,m=s.split("||");return f.create(m.map(function(E){return d._deserializeAndExpression(E,l)}))},c._deserializeAndExpression=function(s,l){var d=this,m=s.split("&&");return _.create(m.map(function(E){return d._deserializeOne(E,l)}))},c._deserializeOne=function(s,l){if(s=s.trim(),s.indexOf("!=")>=0){var d=s.split("!=");return H.create(d[0].trim(),this._deserializeValue(d[1],l))}if(s.indexOf("==")>=0){var d=s.split("==");return O.create(d[0].trim(),this._deserializeValue(d[1],l))}if(s.indexOf("=~")>=0){var d=s.split("=~");return u.create(d[0].trim(),this._deserializeRegexValue(d[1],l))}return/^\!\s*/.test(s)?x.create(s.substr(1).trim()):z.create(s)},c._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},c._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("/"),m=s.lastIndexOf("/");if(d===m||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,m),L=s[m+1]==="i"?"i":"";try{return new RegExp(E,L)}catch(A){if(l)throw new Error("bad regexp-value '"+s+"', parse error: "+A);return console.warn("bad regexp-value '"+s+"', parse error: "+A),null}},c}();function U(c,s){var l=c.getType(),d=s.getType();if(l!==d)return l-d;switch(l){case 1:return c.cmp(s);case 2:return c.cmp(s);case 3:return c.cmp(s);case 4:return c.cmp(s);case 6:return c.cmp(s);case 7:return c.cmp(s);case 5:return c.cmp(s);default:throw new Error("Unknown ContextKeyExpr!")}}var z=function(){function c(s){this.key=s}return c.create=function(s){return new c(s)},c.prototype.getType=function(){return 1},c.prototype.cmp=function(s){return this.key<s.key?-1:this.key>s.key?1:0},c.prototype.equals=function(s){return s instanceof c?this.key===s.key:!1},c.prototype.evaluate=function(s){return!!s.getValue(this.key)},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return x.create(this.key)},c}(),O=function(){function c(s,l){this.key=s,this.value=l}return c.create=function(s,l){return typeof l=="boolean"?l?z.create(s):x.create(s):new c(s,l)},c.prototype.getType=function(){return 3},c.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},c.prototype.equals=function(s){return s instanceof c?this.key===s.key&&this.value===s.value:!1},c.prototype.evaluate=function(s){return s.getValue(this.key)==this.value},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return H.create(this.key,this.value)},c}(),H=function(){function c(s,l){this.key=s,this.value=l}return c.create=function(s,l){return typeof l=="boolean"?l?x.create(s):z.create(s):new c(s,l)},c.prototype.getType=function(){return 4},c.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},c.prototype.equals=function(s){return s instanceof c?this.key===s.key&&this.value===s.value:!1},c.prototype.evaluate=function(s){return s.getValue(this.key)!=this.value},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return O.create(this.key,this.value)},c}(),x=function(){function c(s){this.key=s}return c.create=function(s){return new c(s)},c.prototype.getType=function(){return 2},c.prototype.cmp=function(s){return this.key<s.key?-1:this.key>s.key?1:0},c.prototype.equals=function(s){return s instanceof c?this.key===s.key:!1},c.prototype.evaluate=function(s){return!s.getValue(this.key)},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return z.create(this.key)},c}(),u=function(){function c(s,l){this.key=s,this.regexp=l}return c.create=function(s,l){return new c(s,l)},c.prototype.getType=function(){return 6},c.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},c.prototype.equals=function(s){if(s instanceof c){var l=this.regexp?this.regexp.source:"",d=s.regexp?s.regexp.source:"";return this.key===s.key&&l===d}return!1},c.prototype.evaluate=function(s){var l=s.getValue(this.key);return this.regexp?this.regexp.test(l):!1},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return y.create(this)},c}(),y=function(){function c(s){this._actual=s}return c.create=function(s){return new c(s)},c.prototype.getType=function(){return 7},c.prototype.cmp=function(s){return this._actual.cmp(s._actual)},c.prototype.equals=function(s){return s instanceof c?this._actual.equals(s._actual):!1},c.prototype.evaluate=function(s){return!this._actual.evaluate(s)},c.prototype.keys=function(){return this._actual.keys()},c.prototype.negate=function(){return this._actual},c}(),_=function(){function c(s){this.expr=s}return c.create=function(s){var l=c._normalizeArr(s);return l.length===0?void 0:l.length===1?l[0]:new c(l)},c.prototype.getType=function(){return 5},c.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 m=U(this.expr[l],s.expr[l]);if(m!==0)return m}return 0},c.prototype.equals=function(s){if(s instanceof c){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},c.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},c._normalizeArr=function(s){var l=[];if(s){for(var d=0,m=s.length;d<m;d++){var E=s[d];if(!E)continue;if(E instanceof c){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(U)}return l},c.prototype.keys=function(){for(var s=[],l=0,d=this.expr;l<d.length;l++){var m=d[l];s.push.apply(s,m.keys())}return s},c.prototype.negate=function(){for(var s=[],l=0,d=this.expr;l<d.length;l++){var m=d[l];s.push(m.negate())}return f.create(s)},c}(),f=function(){function c(s){this.expr=s}return c.create=function(s){var l=c._normalizeArr(s);return l.length===0?void 0:l.length===1?l[0]:new c(l)},c.prototype.getType=function(){return 8},c.prototype.equals=function(s){if(s instanceof c){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},c.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},c._normalizeArr=function(s){var l=[];if(s){for(var d=0,m=s.length;d<m;d++){var E=s[d];if(!E)continue;if(E instanceof c){l=l.concat(E.expr);continue}l.push(E)}l.sort(U)}return l},c.prototype.keys=function(){for(var s=[],l=0,d=this.expr;l<d.length;l++){var m=d[l];s.push.apply(s,m.keys())}return s},c.prototype.negate=function(){for(var s=[],l=0,d=this.expr;l<d.length;l++){var m=d[l];s.push(m.negate())}for(var E=function(Me){return Me instanceof c?Me.expr:[Me]};s.length>1;){for(var L=s.shift(),A=s.shift(),k=[],R=0,$=E(L);R<$.length;R++)for(var ie=$[R],W=0,B=E(A);W<B.length;W++){var le=B[W];k.push(I.and(ie,le))}s.unshift(I.or.apply(I,k))}return s[0]},c}(),v=function(c){J(s,c);function s(l,d){var m=c.call(this,l)||this;return m._defaultValue=d,m}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 I.not(this.key)},s}(z),w=Object(re.c)("contextKeyService"),p="setContext"},TQUy:function(Lt,j,e){"use strict";e.d(j,"b",function(){return U}),e.d(j,"a",function(){return z});var T=e("N0LK"),re=e("4bUh"),J=e("i/Ef"),I={getInitialState:function(){return J.c},tokenize2:function(x,u,y){return Object(J.e)(0,x,u,y)}};function U(H,x){return x===void 0&&(x=I),O(H,x||I)}function z(H,x,u,y,_,f,v){for(var w="<div>",p=y,c=0,s=0,l=x.getCount();s<l;s++){var d=x.getEndOffset(s);if(d<=y)continue;for(var m="";p<d&&p<_;p++){var E=H.charCodeAt(p);switch(E){case 9:var L=f-(p+c)%f;for(c+=L-1;L>0;)m+=v?"&#160;":" ",L--;break;case 60:m+="&lt;";break;case 62:m+="&gt;";break;case 38:m+="&amp;";break;case 0:m+="&#00;";break;case 65279:case 8232:m+="\uFFFD";break;case 13:m+="&#8203";break;case 32:m+=v?"&#160;":" ";break;default:m+=String.fromCharCode(E)}}if(w+='<span style="'+x.getInlineStyle(s,u)+'">'+m+"</span>",d>_||p>=_)break}return w+="</div>",w}function O(H,x){for(var u='<div class="monaco-tokenized-source">',y=H.split(/\r\n|\r|\n/),_=x.getInitialState(),f=0,v=y.length;f<v;f++){var w=y[f];f>0&&(u+="<br/>");var p=x.tokenize2(w,_,0);re.a.convertToEndOffset(p.tokens,w.length);for(var c=new re.a(p.tokens,w),s=c.inflate(),l=0,d=0,m=s.getCount();d<m;d++){var E=s.getClassName(d),L=s.getEndOffset(d);u+='<span class="'+E+'">'+T.o(w.substring(l,L))+"</span>",l=L}_=p.endState}return u+="</div>",u}},TT2d:function(Lt,j,e){},Tcc1:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"b",function(){return re}),e.d(j,"c",function(){return J});var T=function(){function I(U,z,O){this.offset=U|0,this.type=z,this.language=O}return I.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},I}(),re=function(){function I(U,z){this.tokens=U,this.endState=z}return I}(),J=function(){function I(U,z){this.tokens=U,this.endState=z}return I}()},UCkY:function(Lt,j,e){},URDS:function(Lt,j,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 w=this.constructor;return this.then(function(p){return w.resolve(v()).then(function(){return p})},function(p){return w.resolve(v()).then(function(){return w.reject(p)})})}var J=setTimeout;function I(){}function U(v,w){return function(){v.apply(w,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=[],_(v,this)}function O(v,w){for(;v._state===3;)v=v._value;if(v._state===0){v._deferreds.push(w);return}v._handled=!0,z._immediateFn(function(){var p=v._state===1?w.onFulfilled:w.onRejected;if(p===null){(v._state===1?H:x)(w.promise,v._value);return}var c;try{c=p(v._value)}catch(s){x(w.promise,s);return}H(w.promise,c)})}function H(v,w){try{if(w===v)throw new TypeError("A promise cannot be resolved with itself.");if(w&&(typeof w=="object"||typeof w=="function")){var p=w.then;if(w instanceof z){v._state=3,v._value=w,u(v);return}else if(typeof p=="function"){_(U(p,w),v);return}}v._state=1,v._value=w,u(v)}catch(c){x(v,c)}}function x(v,w){v._state=2,v._value=w,u(v)}function u(v){v._state===2&&v._deferreds.length===0&&z._immediateFn(function(){v._handled||z._unhandledRejectionFn(v._value)});for(var w=0,p=v._deferreds.length;w<p;w++)O(v,v._deferreds[w]);v._deferreds=null}function y(v,w,p){this.onFulfilled=typeof v=="function"?v:null,this.onRejected=typeof w=="function"?w:null,this.promise=p}function _(v,w){var p=!1;try{v(function(c){if(p)return;p=!0,H(w,c)},function(c){if(p)return;p=!0,x(w,c)})}catch(c){if(p)return;p=!0,x(w,c)}}z.prototype.catch=function(v){return this.then(null,v)},z.prototype.then=function(v,w){var p=new this.constructor(I);return O(this,new y(v,w,p)),p},z.prototype.finally=re,z.all=function(v){return new z(function(w,p){if(!v||typeof v.length=="undefined")throw new TypeError("Promise.all accepts an array");var c=Array.prototype.slice.call(v);if(c.length===0)return w([]);var s=c.length;function l(m,E){try{if(E&&(typeof E=="object"||typeof E=="function")){var L=E.then;if(typeof L=="function"){L.call(E,function(A){l(m,A)},p);return}}c[m]=E,--s===0&&w(c)}catch(A){p(A)}}for(var d=0;d<c.length;d++)l(d,c[d])})},z.resolve=function(v){return v&&typeof v=="object"&&v.constructor===z?v:new z(function(w){w(v)})},z.reject=function(v){return new z(function(w,p){p(v)})},z.race=function(v){return new z(function(w,p){for(var c=0,s=v.length;c<s;c++)v[c].then(w,p)})},z._immediateFn=typeof setImmediate=="function"&&function(v){setImmediate(v)}||function(v){J(v,0)},z._unhandledRejectionFn=function(w){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",w)};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(Lt,j,e){},Uzvx:function(Lt,j,e){"use strict";e.d(j,"b",function(){return re}),e.d(j,"a",function(){return J});var T=e("Cg/j"),re=Object(T.c)("contextViewService"),J=Object(T.c)("contextMenuService")},VPJY:function(Lt,j,e){},Vhoy:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return I}),e.d(j,"c",function(){return z});var T=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function re(O){return O.replace(T,function(H,x){return x?H:"\\"+H})}var J=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function I(O){return O.replace(J,function(H){return"\\"+H})}var U=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function z(O){return O.replace(U,function(H,x,u,y,_){return x?"$("+u+")":'<span class="codicon codicon-'+y+(_?" codicon-animation-"+_:"")+'"></span>'})}},Vtyv:function(Lt,j,e){},VvMK:function(Lt,j,e){},Vxe3:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("codeEditorService")},W9cx:function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"b",function(){return H}),e.d(j,"c",function(){return x});var T=e("bY76"),re=e("Cg/j"),J=e("pmY6"),I=e("N0LK"),U=function(u,y,_,f){function v(w){return w instanceof _?w:new _(function(p){p(w)})}return new(_||(_=Promise))(function(w,p){function c(d){try{l(f.next(d))}catch(m){p(m)}}function s(d){try{l(f.throw(d))}catch(m){p(m)}}function l(d){d.done?w(d.value):v(d.value).then(c,s)}l((f=f.apply(u,y||[])).next())})},z=function(u,y){var _={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},f,v,w,p;return p={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function c(l){return function(d){return s([l,d])}}function s(l){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{if(f=1,v&&(w=l[0]&2?v.return:l[0]?v.throw||((w=v.return)&&w.call(v),0):v.next)&&!(w=w.call(v,l[1])).done)return w;(v=0,w)&&(l=[l[0]&2,w.value]);switch(l[0]){case 0:case 1:w=l;break;case 4:return _.label++,{value:l[1],done:!1};case 5:_.label++,v=l[1],l=[0];continue;case 7:l=_.ops.pop(),_.trys.pop();continue;default:if(!(w=_.trys,w=w.length>0&&w[w.length-1])&&(l[0]===6||l[0]===2)){_=0;continue}if(l[0]===3&&(!w||l[1]>w[0]&&l[1]<w[3])){_.label=l[1];break}if(l[0]===6&&_.label<w[1]){_.label=w[1],w=l;break}if(w&&_.label<w[2]){_.label=w[2],_.ops.push(l);break}w[2]&&_.ops.pop(),_.trys.pop();continue}l=y.call(u,_)}catch(d){l=[6,d],v=0}finally{f=w=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},O=Object(re.c)("openerService"),H=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 U(this,void 0,void 0,function(){return z(this,function(y){return[2,!1]})})},resolveExternalUri:function(y){return U(this,void 0,void 0,function(){return z(this,function(_){return[2,{resolved:y,dispose:function(){}}]})})}});function x(u,y){return T.a.isUri(u)?Object(I.n)(u.scheme,y):Object(I.O)(u,y+":")}},WBhO:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("modeService")},WQDh:function(Lt,j,e){"use strict";e.r(j),e.d(j,"SymbolEntry",function(){return Ue}),e.d(j,"QuickOutlineAction",function(){return Pe});var T=e("QvA3"),re=e("k76M"),J=e("jqj9"),I=e("JQT/"),U=e("fpMC"),z=e("N0LK"),O=e("Rpxm"),H=e("sswD"),x=e("aokT"),u=e("wQH0"),y=e("twdY"),_=e("bY76"),f=e("G2kB"),v=e("t49l"),w=e("6OMU"),p=e("vl9R"),c=e("/cxE"),s=e("QDVR"),l=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),d=function(){function ne(){}return ne.prototype.remove=function(){this.parent&&delete this.parent.children[this.id]},ne.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 ue=q,X=0;ae.children[ue]!==void 0;X++)ue=q+"_"+X;return ue},ne.empty=function(ee){for(var ae in ee.children)return!1;return!0},ne}(),m=function(ne){l(ee,ne);function ee(ae,q,ue){var X=ne.call(this)||this;return X.id=ae,X.parent=q,X.symbol=ue,X.children=Object.create(null),X}return ee}(d),E=function(ne){l(ee,ne);function ee(ae,q,ue,X){var he=ne.call(this)||this;return he.id=ae,he.parent=q,he.provider=ue,he.providerIndex=X,he.children=Object.create(null),he}return ee}(d),L=function(){function ne(){this._n=1,this._val=0}return ne.prototype.update=function(ee){return this._val=this._val+(ee-this._val)/this._n,this._n+=1,this},ne}(),A=function(ne){l(ee,ne);function ee(ae){var q=ne.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 ue=this,X=this._keys.for(ae,!0),he=ee._requests.get(X);if(!he){var je=new I.b;he={promiseCnt:0,source:je,promise:ee._create(ae,je.token),model:void 0},ee._requests.set(X,he);var Xe=Date.now();he.promise.then(function(){var me=ue._keys.for(ae,!1),ge=ue._requestDurations.get(me);ge||(ge=new L,ue._requestDurations.set(me,ge)),ge.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(me,ge){he.promise.then(function(we){he.model=we,me(we)},function(we){ee._requests.delete(X),ge(we)})}))},ee._create=function(ae,q){var ue=new I.b(q),X=new ee(ae),he=y.m.ordered(ae),je=he.map(function(me,ge){var we=d.findId("provider_"+ge,X),Re=new E(we,X,me,ge);return Promise.resolve(me.provideDocumentSymbols(X.textModel,ue.token)).then(function(Ee){for(var ve=0,Q=Ee||[];ve<Q.length;ve++){var C=Q[ve];ee._makeOutlineElement(C,Re)}return Re},function(Ee){return Object(c.f)(Ee),Re}).then(function(Ee){d.empty(Ee)?Ee.remove():X._groups[we]=Ee})}),Xe=y.m.onDidChange(function(){var me=y.m.ordered(ae);Object(w.g)(me,he)||ue.cancel()});return Promise.all(je).then(function(){return ue.token.isCancellationRequested&&!q.isCancellationRequested?ee._create(ae,q):X._compact()}).finally(function(){Xe.dispose()})},ee._makeOutlineElement=function(ae,q){var ue=d.findId(ae,q),X=new m(ue,q,ae);if(ae.children)for(var he=0,je=ae.children;he<je.length;he++){var Xe=je[he];ee._makeOutlineElement(Xe,X)}q.children[X.id]=X},ee.prototype._compact=function(){var ae=0;for(var q in this._groups){var ue=this._groups[q];Object(p.b)(ue.children)===void 0?delete this._groups[q]:ae+=1}if(ae!==1)this.children=this._groups;else{var ue=Object(p.b)(this._groups);for(var q in ue.children){var X=ue.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,ue){return q.id+"/"+(ue?q.getVersionId():"")+"/"+this._hash(y.m.all(q))},ae.prototype._hash=function(q){for(var ue="",X=0,he=q;X<he.length;X++){var je=he[X],Xe=this._data.get(je);typeof Xe=="undefined"&&(Xe=this._counter++,this._data.set(je,Xe)),ue+=Xe}return ue},ae}()),ee}(d),k=e("nnTU"),R=e("746U"),$=function(ne,ee,ae,q){function ue(X){return X instanceof ae?X:new ae(function(he){he(X)})}return new(ae||(ae=Promise))(function(X,he){function je(ge){try{me(q.next(ge))}catch(we){he(we)}}function Xe(ge){try{me(q.throw(ge))}catch(we){he(we)}}function me(ge){ge.done?X(ge.value):ue(ge.value).then(je,Xe)}me((q=q.apply(ne,ee||[])).next())})},ie=function(ne,ee){var ae={label:0,sent:function(){if(X[0]&1)throw X[1];return X[1]},trys:[],ops:[]},q,ue,X,he;return he={next:je(0),throw:je(1),return:je(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function je(me){return function(ge){return Xe([me,ge])}}function Xe(me){if(q)throw new TypeError("Generator is already executing.");for(;ae;)try{if(q=1,ue&&(X=me[0]&2?ue.return:me[0]?ue.throw||((X=ue.return)&&X.call(ue),0):ue.next)&&!(X=X.call(ue,me[1])).done)return X;(ue=0,X)&&(me=[me[0]&2,X.value]);switch(me[0]){case 0:case 1:X=me;break;case 4:return ae.label++,{value:me[1],done:!1};case 5:ae.label++,ue=me[1],me=[0];continue;case 7:me=ae.ops.pop(),ae.trys.pop();continue;default:if(!(X=ae.trys,X=X.length>0&&X[X.length-1])&&(me[0]===6||me[0]===2)){ae=0;continue}if(me[0]===3&&(!X||me[1]>X[0]&&me[1]<X[3])){ae.label=me[1];break}if(me[0]===6&&ae.label<X[1]){ae.label=X[1],X=me;break}if(X&&ae.label<X[2]){ae.label=X[2],ae.ops.push(me);break}X[2]&&ae.ops.pop(),ae.trys.pop();continue}me=ee.call(ne,ae)}catch(ge){me=[6,ge],ue=0}finally{q=X=0}if(me[0]&5)throw me[1];return{value:me[0]?me[1]:void 0,done:!0}}};function W(ne,ee,ae){return $(this,void 0,void 0,function(){var q,ue,X,he,je,Xe;return ie(this,function(me){switch(me.label){case 0:return[4,A.create(ne,ae)];case 1:for(q=me.sent(),ue=[],X=0,he=Object(p.d)(q.children);X<he.length;X++)je=he[X],je instanceof m?ue.push(je.symbol):ue.push.apply(ue,Object(p.d)(je.children).map(function(ge){return ge.symbol}));return Xe=[],ae.isCancellationRequested?[2,Xe]:(ee?le(Xe,ue,""):Xe=ue,[2,Xe.sort(B)])}})})}function B(ne,ee){return x.a.compareRangesUsingStarts(ne.range,ee.range)}function le(ne,ee,ae){for(var q=0,ue=ee;q<ue.length;q++){var X=ue[q];ne.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(ne,X.children,X.name)}}k.a.registerCommand("_executeDocumentSymbolProvider",function(ne){for(var ee=[],ae=1;ae<arguments.length;ae++)ee[ae-1]=arguments[ae];return $(this,void 0,void 0,function(){var q,ue,X;return ie(this,function(he){switch(he.label){case 0:return q=ee[0],Object(R.a)(_.a.isUri(q)),ue=ne.get(f.a).getModel(q),ue?[2,W(ue,!1,I.a.None)]:[4,ne.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,I.a.None)];case 3:return[2,he.sent()];case 4:return X.dispose(),[7];case 5:return[2]}})})});var Ce=e("rzPn"),Me=e("A9l+"),Te=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),Fe=":",Ue=function(ne){Te(ee,ne);function ee(ae,q,ue,X,he,je,Xe){var me=ne.call(this)||this;return me.name=ae,me.type=q,me.description=ue,me.range=X,me.setHighlights(he),me.editor=je,me.decorator=Xe,me}return ee.prototype.getLabel=function(){return this.name},ee.prototype.getAriaLabel=function(){return z.r(Me.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 x.a(this.range.startLineNumber,this.range.startColumn||1,this.range.startLineNumber,this.range.startColumn||1)},ee}(O.b),Pe=function(ne){Te(ee,ne);function ee(){return ne.call(this,Me.e.quickOutlineActionInput,{id:"editor.action.quickOutline",label:Me.e.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:u.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:u.a.focus,primary:2048|1024|45,weight:100},contextMenuOpts:{group:"navigation",order:3}})||this}return ee.prototype.run=function(ae,q){var ue=this;if(!q.hasModel())return;var X=q.getModel();return y.m.has(X)?W(X,!0,I.a.None).then(function(he){if(he.length===0)return;ue._run(q,he)}):void 0},ee.prototype._run=function(ae,q){var ue=this;this._show(this.getController(ae),{getModel:function(he){return new O.c(ue.toQuickOpenEntries(ae,q,he))},getAutoFocus:function(he){return he.indexOf(Fe)===0&&(he=he.substr(Fe.length)),{autoFocusPrefixMatch:he,autoFocusFirstEntry:!!he}}})},ee.prototype.symbolEntry=function(ae,q,ue,X,he,je,Xe){return new Ue(ae,q,ue,x.a.lift(X),he,je,Xe)},ee.prototype.toQuickOpenEntries=function(ae,q,ue){var X=this.getController(ae),he=[],je=ue;ue.indexOf(Fe)===0&&(je=je.substr(Fe.length));for(var Xe=0,me=q;Xe<me.length;Xe++){var ge=me[Xe],we=z.Q(ge.name),Re=Object(U.f)(je,we);if(Re){var Ee=void 0;ge.containerName&&(Ee=ge.containerName),he.push(this.symbolEntry(we,y.z.toCssClassName(ge.kind),Ee,ge.range,Re,ae,X))}}if(ue&&(ue.indexOf(Fe)===0?he=he.sort(this.sortScoped.bind(this,ue.toLowerCase())):he=he.sort(this.sortNormal.bind(this,ue.toLowerCase()))),he.length>0&&ue.indexOf(Fe)===0){for(var ve=null,Q=null,C=0,F=0;F<he.length;F++){var se=he[F];ve!==se.getType()?(Q&&Q.setGroupLabel(this.typeToLabel(ve||"",C)),ve=se.getType(),Q=se,C=1,se.setShowBorder(F>0)):C++}Q&&Q.setGroupLabel(this.typeToLabel(ve||"",C))}else he.length>0&&he[0].setGroupLabel(z.r(Me.e._symbols_,he.length));return he},ee.prototype.typeToLabel=function(ae,q){switch(ae){case"module":return z.r(Me.e._modules_,q);case"class":return z.r(Me.e._class_,q);case"interface":return z.r(Me.e._interface_,q);case"method":return z.r(Me.e._method_,q);case"function":return z.r(Me.e._function_,q);case"property":return z.r(Me.e._property_,q);case"variable":return z.r(Me.e._variable_,q);case"var":return z.r(Me.e._variable2_,q);case"constructor":return z.r(Me.e._constructor_,q);case"call":return z.r(Me.e._call_,q)}return ae},ee.prototype.sortNormal=function(ae,q,ue){var X=q.getLabel().toLowerCase(),he=ue.getLabel().toLowerCase(),je=X.localeCompare(he);if(je!==0)return je;var Xe=q.getRange(),me=ue.getRange();return Xe.startLineNumber-me.startLineNumber},ee.prototype.sortScoped=function(ae,q,ue){ae=ae.substr(Fe.length);var X=q.getType(),he=ue.getType(),je=X.localeCompare(he);if(je!==0)return je;if(ae){var Xe=q.getLabel().toLowerCase(),me=ue.getLabel().toLowerCase(),ge=Xe.localeCompare(me);if(ge!==0)return ge}var we=q.getRange(),Re=ue.getRange();return we.startLineNumber-Re.startLineNumber},ee}(Ce.a);Object(H.f)(Pe)},WqXY:function(Lt,j,e){"use strict";e.d(j,"c",function(){return w}),e.d(j,"d",function(){return p}),e.d(j,"b",function(){return c}),e.d(j,"a",function(){return l});var T=e("yEoX"),re=e.n(T),J=e("MNsG"),I=e("3/fG"),U=e("pmY6"),z=e("8HAY"),O=e("EffR"),H=e("746U"),x=e("pg8w"),u=e("uDWl"),y=e("MI8n"),_=e("ZQ78"),f=e("D3Dy"),v=function(){var d=function(E,L){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,k){A.__proto__=k}||function(A,k){for(var R in k)k.hasOwnProperty(R)&&(A[R]=k[R])},d(E,L)};return function(m,E){d(m,E);function L(){this.constructor=m}m.prototype=E===null?Object.create(E):(L.prototype=E.prototype,new L)}}(),w=function(d){v(m,d);function m(E,L,A){var k=d.call(this)||this;return k.options=A,k._context=E||k,k._action=L,L instanceof z.a&&k._register(L.onDidChange(function(R){if(!k.element)return;k.handleActionChangeEvent(R)})),k}return m.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(m.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new z.b)),this._actionRunner},set:function(L){this._actionRunner=L},enumerable:!0,configurable:!0}),m.prototype.getAction=function(){return this._action},m.prototype.isEnabled=function(){return this._action.enabled},m.prototype.setActionContext=function(E){this._context=E},m.prototype.render=function(E){var L=this,A=this.element=E;this._register(x.b.addTarget(E));var k=this.options&&this.options.draggable;k&&(E.draggable=!0,f.h&&this._register(O.j(E,O.d.DRAG_START,function(R){var $;return($=R.dataTransfer)===null||$===void 0?void 0:$.setData(_.a.TEXT,L._action.label)}))),this._register(O.j(A,x.a.Tap,function(R){return L.onClick(R)})),this._register(O.j(A,O.d.MOUSE_DOWN,function(R){k||O.c.stop(R,!0),L._action.enabled&&R.button===0&&O.f(A,"active")})),this._register(O.j(A,O.d.CLICK,function(R){O.c.stop(R,!0),L.options&&L.options.isMenu?L.onClick(R):J.i(function(){return L.onClick(R)})})),this._register(O.j(A,O.d.DBLCLICK,function(R){O.c.stop(R,!0)})),[O.d.MOUSE_UP,O.d.MOUSE_OUT].forEach(function(R){L._register(O.j(A,R,function($){O.c.stop($),O.P(A,"active")}))})},m.prototype.onClick=function(E){O.c.stop(E,!0);var L;H.l(this._context)?L=E:(L=this._context,H.i(L)&&(L.event=E)),this.actionRunner.run(this._action,L)},m.prototype.focus=function(){this.element&&(this.element.focus(),O.f(this.element,"focused"))},m.prototype.blur=function(){this.element&&(this.element.blur(),O.P(this.element,"focused"))},m.prototype.updateEnabled=function(){},m.prototype.updateLabel=function(){},m.prototype.updateTooltip=function(){},m.prototype.updateClass=function(){},m.prototype.updateChecked=function(){},m.prototype.dispose=function(){this.element&&(O.R(this.element),this.element=void 0),d.prototype.dispose.call(this)},m}(U.a),p=function(d){v(m,d);function m(E){var L=d.call(this,m.ID,E,E?"separator text":"separator")||this;return L.checked=!1,L.enabled=!1,L}return m.ID="vs.actions.separator",m}(z.a),c=function(d){v(m,d);function m(E,L,A){A===void 0&&(A={});var k=d.call(this,E,L,A)||this;return k.options=A,k.options.icon=A.icon!==void 0?A.icon:!1,k.options.label=A.label!==void 0?A.label:!0,k.cssClass="",k}return m.prototype.render=function(E){d.prototype.render.call(this,E),this.element&&(this.label=O.q(this.element,O.a("a.action-label"))),this.label&&(this._action.id===p.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&&(O.q(this.element,O.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},m.prototype.focus=function(){d.prototype.focus.call(this),this.label&&this.label.focus()},m.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},m.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=I.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",E,this.options.keybinding))),E&&this.label&&(this.label.title=E)},m.prototype.updateClass=function(){this.cssClass&&this.label&&O.Q(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(O.f(this.label,"codicon"),this.cssClass&&O.g(this.label,this.cssClass)),this.updateEnabled()):this.label&&O.P(this.label,"codicon")},m.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),O.P(this.label,"disabled"),this.label.tabIndex=0),this.element&&O.P(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),O.f(this.label,"disabled"),O.S(this.label)),this.element&&O.f(this.element,"disabled"))},m.prototype.updateChecked=function(){this.label&&(this.getAction().checked?O.f(this.label,"checked"):O.P(this.label,"checked"))},m}(w),s={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},l=function(d){v(m,d);function m(E,L){L===void 0&&(L=s);var A=d.call(this)||this;A._onDidBlur=A._register(new y.a),A.onDidBlur=A._onDidBlur.event,A._onDidCancel=A._register(new y.a),A.onDidCancel=A._onDidCancel.event,A._onDidRun=A._register(new y.a),A.onDidRun=A._onDidRun.event,A._onDidBeforeRun=A._register(new y.a),A.onDidBeforeRun=A._onDidBeforeRun.event,A.options=L,A._context=L.context,A.options.triggerKeys||(A.options.triggerKeys=s.triggerKeys),A.options.actionRunner?A._actionRunner=A.options.actionRunner:(A._actionRunner=new z.b,A._register(A._actionRunner)),A._register(A._actionRunner.onDidRun(function($){return A._onDidRun.fire($)})),A._register(A._actionRunner.onDidBeforeRun(function($){return A._onDidBeforeRun.fire($)})),A.viewItems=[],A.focusedItem=void 0,A.domNode=document.createElement("div"),A.domNode.className="monaco-action-bar",L.animated!==!1&&O.f(A.domNode,"animated");var k,R;switch(A.options.orientation){case 0:k=15,R=17;break;case 1:k=17,R=15,A.domNode.className+=" reverse";break;case 2:k=16,R=18,A.domNode.className+=" vertical";break;case 3:k=18,R=16,A.domNode.className+=" vertical reverse";break}return A._register(O.j(A.domNode,O.d.KEY_DOWN,function($){var ie=new u.a($),W=!0;ie.equals(k)?A.focusPrevious():ie.equals(R)?A.focusNext():ie.equals(9)?A.cancel():A.isTriggerKeyEvent(ie)?A.options.triggerKeys&&A.options.triggerKeys.keyDown&&A.doTrigger(ie):W=!1,W&&(ie.preventDefault(),ie.stopPropagation())})),A._register(O.j(A.domNode,O.d.KEY_UP,function($){var ie=new u.a($);A.isTriggerKeyEvent(ie)?(A.options.triggerKeys&&!A.options.triggerKeys.keyDown&&A.doTrigger(ie),ie.preventDefault(),ie.stopPropagation()):(ie.equals(2)||ie.equals(1024|2))&&A.updateFocusedItem()})),A.focusTracker=A._register(O.Z(A.domNode)),A._register(A.focusTracker.onDidBlur(function(){(document.activeElement===A.domNode||!O.K(document.activeElement,A.domNode))&&(A._onDidBlur.fire(),A.focusedItem=void 0)})),A._register(A.focusTracker.onDidFocus(function(){return A.updateFocusedItem()})),A.actionsList=document.createElement("ul"),A.actionsList.className="actions-container",A.actionsList.setAttribute("role","toolbar"),A.options.ariaLabel&&A.actionsList.setAttribute("aria-label",A.options.ariaLabel),A.domNode.appendChild(A.actionsList),E.appendChild(A.domNode),A}return m.prototype.isTriggerKeyEvent=function(E){var L=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(A){L=L||E.equals(A)}),L},m.prototype.updateFocusedItem=function(){for(var E=0;E<this.actionsList.children.length;E++){var L=this.actionsList.children[E];if(O.K(document.activeElement,L)){this.focusedItem=E;break}}},Object.defineProperty(m.prototype,"context",{get:function(){return this._context},set:function(L){this._context=L,this.viewItems.forEach(function(A){return A.setActionContext(L)})},enumerable:!0,configurable:!0}),m.prototype.getContainer=function(){return this.domNode},m.prototype.push=function(E,L){var A=this;L===void 0&&(L={});var k=Array.isArray(E)?E:[E],R=H.h(L.index)?L.index:null;k.forEach(function($){var ie=document.createElement("li");ie.className="action-item",ie.setAttribute("role","presentation"),A._register(O.j(ie,O.d.CONTEXT_MENU,function(B){B.preventDefault(),B.stopPropagation()}));var W;A.options.actionViewItemProvider&&(W=A.options.actionViewItemProvider($)),W||(W=new c(A.context,$,L)),W.actionRunner=A._actionRunner,W.setActionContext(A.context),W.render(ie),R===null||R<0||R>=A.actionsList.children.length?(A.actionsList.appendChild(ie),A.viewItems.push(W)):(A.actionsList.insertBefore(ie,A.actionsList.children[R]),A.viewItems.splice(R,0,W),R++)})},m.prototype.clear=function(){this.viewItems=Object(U.f)(this.viewItems),O.t(this.actionsList)},m.prototype.isEmpty=function(){return this.viewItems.length===0},m.prototype.focus=function(E){var L=!1,A=void 0;E===void 0?L=!0:typeof E=="number"?A=E:typeof E=="boolean"&&(L=E),L&&typeof this.focusedItem=="undefined"?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(A!==void 0&&(this.focusedItem=A),this.updateFocus())},m.prototype.focusNext=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=this.viewItems.length-1);var E=this.focusedItem,L;do this.focusedItem=(this.focusedItem+1)%this.viewItems.length,L=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!L.isEnabled());this.focusedItem===E&&!L.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},m.prototype.focusPrevious=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=0);var E=this.focusedItem,L;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),L=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!L.isEnabled());this.focusedItem===E&&!L.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},m.prototype.updateFocus=function(E,L){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:L});for(var A=0;A<this.viewItems.length;A++){var k=this.viewItems[A],R=k;A===this.focusedItem?H.g(R.isEnabled)&&(R.isEnabled()&&H.g(R.focus)?R.focus(E):this.actionsList.focus({preventScroll:L})):H.g(R.blur)&&R.blur()}},m.prototype.doTrigger=function(E){if(typeof this.focusedItem=="undefined")return;var L=this.viewItems[this.focusedItem];if(L instanceof w){var A=L._context===null||L._context===void 0?E:L._context;this.run(L._action,A)}},m.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},m.prototype.run=function(E,L){return this._actionRunner.run(E,L)},m.prototype.dispose=function(){Object(U.f)(this.viewItems),this.viewItems=[],O.R(this.getContainer()),d.prototype.dispose.call(this)},m}(U.a)},WwIK:function(Lt,j,e){"use strict";e.r(j),e.d(j,"TriggerParameterHintsAction",function(){return he});var T=e("3/fG"),re=e("pmY6"),J=e("Cg/j"),I=e("wQH0"),U=e("T8No"),z=e("sswD"),O=e("EffR"),H=e("4y0V"),x=e("OBOq"),u=e("GJhM"),y=e("MI8n"),_=e("yrU1"),f=e("WBhO"),v=e("3qCu"),w=e("X+cX"),p=e("/cxE"),c=e("twdY"),s=e("JQT/"),l=function(me,ge,we,Re){function Ee(ve){return ve instanceof we?ve:new we(function(Q){Q(ve)})}return new(we||(we=Promise))(function(ve,Q){function C(oe){try{se(Re.next(oe))}catch(be){Q(be)}}function F(oe){try{se(Re.throw(oe))}catch(be){Q(be)}}function se(oe){oe.done?ve(oe.value):Ee(oe.value).then(C,F)}se((Re=Re.apply(me,ge||[])).next())})},d=function(me,ge){var we={label:0,sent:function(){if(ve[0]&1)throw ve[1];return ve[1]},trys:[],ops:[]},Re,Ee,ve,Q;return Q={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function C(se){return function(oe){return F([se,oe])}}function F(se){if(Re)throw new TypeError("Generator is already executing.");for(;we;)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 we.label++,{value:se[1],done:!1};case 5:we.label++,Ee=se[1],se=[0];continue;case 7:se=we.ops.pop(),we.trys.pop();continue;default:if(!(ve=we.trys,ve=ve.length>0&&ve[ve.length-1])&&(se[0]===6||se[0]===2)){we=0;continue}if(se[0]===3&&(!ve||se[1]>ve[0]&&se[1]<ve[3])){we.label=se[1];break}if(se[0]===6&&we.label<ve[1]){we.label=ve[1],ve=se;break}if(ve&&we.label<ve[2]){we.label=ve[2],we.ops.push(se);break}ve[2]&&we.ops.pop(),we.trys.pop();continue}se=ge.call(me,we)}catch(oe){se=[6,oe],Ee=0}finally{Re=ve=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}},m={Visible:new U.d("parameterHintsVisible",!1),MultipleSignatures:new U.d("parameterHintsMultipleSignatures",!1)};function E(me,ge,we,Re){var Ee=c.x.ordered(me);return Object(w.h)(Ee.map(function(ve){return function(){return Promise.resolve(ve.provideSignatureHelp(me,ge,Re,we)).catch(function(Q){return Object(p.f)(Q)})}}))}Object(z.e)("_executeSignatureHelpProvider",function(me,ge,we){return l(void 0,void 0,void 0,function(){var Re;return d(this,function(Ee){switch(Ee.label){case 0:return[4,E(me,ge,{triggerKind:c.y.Invoke,isRetrigger:!1,triggerCharacter:we.triggerCharacter},s.a.None)];case 1:return Re=Ee.sent(),Re?(setTimeout(function(){return Re.dispose()},0),[2,Re.value]):[2,void 0]}})})});var L=e("W9cx"),A=e("MD5Z"),k=e("t9D7"),R=e("MXAL"),$=function(){var me=function(we,Re){return me=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])},me(we,Re)};return function(ge,we){me(ge,we);function Re(){this.constructor=ge}ge.prototype=we===null?Object.create(we):(Re.prototype=we.prototype,new Re)}}(),ie=function(){return ie=Object.assign||function(me){for(var ge,we=1,Re=arguments.length;we<Re;we++){ge=arguments[we];for(var Ee in ge)Object.prototype.hasOwnProperty.call(ge,Ee)&&(me[Ee]=ge[Ee])}return me},ie.apply(this,arguments)},W=function(me,ge,we,Re){function Ee(ve){return ve instanceof we?ve:new we(function(Q){Q(ve)})}return new(we||(we=Promise))(function(ve,Q){function C(oe){try{se(Re.next(oe))}catch(be){Q(be)}}function F(oe){try{se(Re.throw(oe))}catch(be){Q(be)}}function se(oe){oe.done?ve(oe.value):Ee(oe.value).then(C,F)}se((Re=Re.apply(me,ge||[])).next())})},B=function(me,ge){var we={label:0,sent:function(){if(ve[0]&1)throw ve[1];return ve[1]},trys:[],ops:[]},Re,Ee,ve,Q;return Q={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function C(se){return function(oe){return F([se,oe])}}function F(se){if(Re)throw new TypeError("Generator is already executing.");for(;we;)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 we.label++,{value:se[1],done:!1};case 5:we.label++,Ee=se[1],se=[0];continue;case 7:se=we.ops.pop(),we.trys.pop();continue;default:if(!(ve=we.trys,ve=ve.length>0&&ve[ve.length-1])&&(se[0]===6||se[0]===2)){we=0;continue}if(se[0]===3&&(!ve||se[1]>ve[0]&&se[1]<ve[3])){we.label=se[1];break}if(se[0]===6&&we.label<ve[1]){we.label=ve[1],ve=se;break}if(ve&&we.label<ve[2]){we.label=ve[2],we.ops.push(se);break}ve[2]&&we.ops.pop(),we.trys.pop();continue}se=ge.call(me,we)}catch(oe){se=[6,oe],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(me){me.Default={type:0};var ge=function(){function Re(Ee){this.request=Ee,this.type=2}return Re}();me.Pending=ge;var we=function(){function Re(Ee){this.hints=Ee,this.type=1}return Re}();me.Active=we})(le||(le={}));var Ce=function(me){$(ge,me);function ge(we,Re){Re===void 0&&(Re=ge.DEFAULT_DELAY);var Ee=me.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=we,Ee.throttledDelayer=new w.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(c.x.onDidChange(Ee.onModelChanged,Ee)),Ee._register(Ee.editor.onDidType(function(ve){return Ee.onDidType(ve)})),Ee.onEditorConfigurationChange(),Ee.onModelChanged(),Ee}return Object.defineProperty(ge.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}),ge.prototype.cancel=function(we){we===void 0&&(we=!1),this.state=le.Default,this.throttledDelayer.cancel(),we||this._onChangedHints.fire(void 0)},ge.prototype.trigger=function(we,Re){var Ee=this,ve=this.editor.getModel();if(!ve||!c.x.has(ve))return;var Q=++this.triggerId;this._pendingTriggers.push(we),this.throttledDelayer.trigger(function(){return Ee.doTrigger(Q)},Re).catch(p.e)},ge.prototype.next=function(){if(this.state.type!==1)return;var we=this.state.hints.signatures.length,Re=this.state.hints.activeSignature,Ee=Re%we===we-1,ve=this.editor.getOption(64).cycle;if((we<2||Ee)&&!ve){this.cancel();return}this.updateActiveSignature(Ee&&ve?0:Re+1)},ge.prototype.previous=function(){if(this.state.type!==1)return;var we=this.state.hints.signatures.length,Re=this.state.hints.activeSignature,Ee=Re===0,ve=this.editor.getOption(64).cycle;if((we<2||Ee)&&!ve){this.cancel();return}this.updateActiveSignature(Ee&&ve?we-1:Re-1)},ge.prototype.updateActiveSignature=function(we){if(this.state.type!==1)return;this.state=new le.Active(ie(ie({},this.state.hints),{activeSignature:we})),this._onChangedHints.fire(this.state.hints)},ge.prototype.doTrigger=function(we){return W(this,void 0,void 0,function(){var Re,Ee,ve,Q,C,F,se,oe;return B(this,function(be){switch(be.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(Me),this._pendingTriggers=[],Q={triggerKind:ve.triggerKind,triggerCharacter:ve.triggerCharacter,isRetrigger:Re,activeSignatureHelp:Ee},!this.editor.hasModel())return[2,!1];C=this.editor.getModel(),F=this.editor.getPosition(),this.state=new le.Pending(Object(w.f)(function(De){return E(C,F,Q,De)})),be.label=1;case 1:return be.trys.push([1,3,,4]),[4,this.state.request];case 2:if(se=be.sent(),we!==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 oe=be.sent(),we===this.triggerId&&(this.state=le.Default),Object(p.e)(oe),[2,!1];case 4:return[2]}})})},Object.defineProperty(ge.prototype,"isTriggered",{get:function(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()},enumerable:!0,configurable:!0}),ge.prototype.onModelChanged=function(){this.cancel(),this.triggerChars=new R.b,this.retriggerChars=new R.b;var we=this.editor.getModel();if(!we)return;for(var Re=0,Ee=c.x.ordered(we);Re<Ee.length;Re++){for(var ve=Ee[Re],Q=0,C=ve.signatureHelpTriggerCharacters||[];Q<C.length;Q++){var F=C[Q];this.triggerChars.add(F.charCodeAt(0)),this.retriggerChars.add(F.charCodeAt(0))}for(var se=0,oe=ve.signatureHelpRetriggerCharacters||[];se<oe.length;se++){var F=oe[se];this.retriggerChars.add(F.charCodeAt(0))}}},ge.prototype.onDidType=function(we){if(!this.triggerOnType)return;var Re=we.length-1,Ee=we.charCodeAt(Re);(this.triggerChars.has(Ee)||this.isTriggered&&this.retriggerChars.has(Ee))&&this.trigger({triggerKind:c.y.TriggerCharacter,triggerCharacter:we.charAt(Re)})},ge.prototype.onCursorChange=function(we){we.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:c.y.ContentChange})},ge.prototype.onModelContentChange=function(){this.isTriggered&&this.trigger({triggerKind:c.y.ContentChange})},ge.prototype.onEditorConfigurationChange=function(){this.triggerOnType=this.editor.getOption(64).enabled,this.triggerOnType||this.cancel()},ge.prototype.dispose=function(){this.cancel(!0),me.prototype.dispose.call(this)},ge.DEFAULT_DELAY=120,ge}(re.a);function Me(me,ge){switch(ge.triggerKind){case c.y.Invoke:return ge;case c.y.ContentChange:return me;case c.y.TriggerCharacter:default:return ge}}var Te=e("N0LK"),Fe=function(){var me=function(we,Re){return me=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])},me(we,Re)};return function(ge,we){me(ge,we);function Re(){this.constructor=ge}ge.prototype=we===null?Object.create(we):(Re.prototype=we.prototype,new Re)}}(),Ue=function(me,ge,we,Re){var Ee=arguments.length,ve=Ee<3?ge:Re===null?Re=Object.getOwnPropertyDescriptor(ge,we):Re,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(me,ge,we,Re);else for(var C=me.length-1;C>=0;C--)(Q=me[C])&&(ve=(Ee<3?Q(ve):Ee>3?Q(ge,we,ve):Q(ge,we))||ve);return Ee>3&&ve&&Object.defineProperty(ge,we,ve),ve},Pe=function(me,ge){return function(we,Re){ge(we,Re,me)}},ne=O.a,ee=function(me){Fe(ge,me);function ge(we,Re,Ee,ve){var Q=me.call(this)||this;return Q.editor=we,Q.renderDisposeables=Q._register(new re.b),Q.visible=!1,Q.announcedLabel=null,Q.allowEditorOverflow=!0,Q.markdownRenderer=Q._register(new v.a(we,ve,Ee)),Q.model=Q._register(new Ce(we)),Q.keyVisible=m.Visible.bindTo(Re),Q.keyMultipleSignatures=m.MultipleSignatures.bindTo(Re),Q._register(Q.model.onChangedHints(function(C){C?(Q.show(),Q.render(C)):Q.hide()})),Q}return ge.prototype.createParamaterHintDOMNodes=function(){var we=this,Re=ne(".editor-widget.parameter-hints-widget"),Ee=O.q(Re,ne(".wrapper"));Ee.tabIndex=-1;var ve=O.q(Ee,ne(".controls")),Q=O.q(ve,ne(".button.codicon.codicon-chevron-up")),C=O.q(ve,ne(".overloads")),F=O.q(ve,ne(".button.codicon.codicon-chevron-down")),se=Object(H.b)(Object(H.a)(Q,"click"));this._register(se(this.previous,this));var oe=Object(H.b)(Object(H.a)(F,"click"));this._register(oe(this.next,this));var be=ne(".body"),De=new u.a(be,{});this._register(De),Ee.appendChild(De.getDomNode());var Se=O.q(be,ne(".signature")),Ve=O.q(be,ne(".docs"));Re.style.userSelect="text",this.domNodes={element:Re,signature:Se,overloads:C,docs:Ve,scrollbar:De},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(function(it){we.visible&&we.editor.layoutContentWidget(we)}));var Qe=function(){if(!we.domNodes)return;var pt=we.editor.getOption(34);we.domNodes.element.style.fontSize=pt.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 we.updateMaxHeight()})),this.updateMaxHeight()},ge.prototype.show=function(){var we=this;if(this.visible)return;this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(function(){we.domNodes&&O.f(we.domNodes.element,"visible")},100),this.editor.layoutContentWidget(this)},ge.prototype.hide=function(){if(!this.visible)return;this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&O.P(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this)},ge.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null},ge.prototype.render=function(we){if(!this.domNodes)return;var Re=we.signatures.length>1;O.Y(this.domNodes.element,"multiple",Re),this.keyMultipleSignatures.set(Re),this.domNodes.signature.innerHTML="",this.domNodes.docs.innerHTML="";var Ee=we.signatures[we.activeSignature];if(!Ee)return;var ve=O.q(this.domNodes.signature,ne(".code")),Q=Ee.parameters.length>0,C=this.editor.getOption(34);if(ve.style.fontSize=C.fontSize+"px",ve.style.fontFamily=C.fontFamily,Q)this.renderParameters(ve,Ee,we.activeParameter);else{var F=O.q(ve,ne("span"));F.textContent=Ee.label}this.renderDisposeables.clear();var se=Ee.parameters[we.activeParameter];if(se&&se.documentation){var oe=ne("span.documentation");if(typeof se.documentation=="string")oe.textContent=se.documentation;else{var be=this.markdownRenderer.render(se.documentation);O.f(be.element,"markdown-docs"),this.renderDisposeables.add(be),oe.appendChild(be.element)}O.q(this.domNodes.docs,ne("p",{},oe))}if(!(Ee.documentation===void 0))if(typeof Ee.documentation=="string")O.q(this.domNodes.docs,ne("p",{},Ee.documentation));else{var be=this.markdownRenderer.render(Ee.documentation);O.f(be.element,"markdown-docs"),this.renderDisposeables.add(be),O.q(this.domNodes.docs,be.element)}var De=this.hasDocs(Ee,se);if(O.Y(this.domNodes.signature,"has-docs",De),O.Y(this.domNodes.docs,"empty",!De),this.domNodes.overloads.textContent=Object(Te.F)(we.activeSignature+1,we.signatures.length.toString().length)+"/"+we.signatures.length,se){var Se=this.getParameterLabel(Ee,we.activeParameter);this.announcedLabel!==Se&&(x.a(T.a("hint","{0}, hint",Se)),this.announcedLabel=Se)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()},ge.prototype.hasDocs=function(we,Re){return Re&&typeof Re.documentation=="string"&&Re.documentation.length>0||(Re&&typeof Re.documentation=="object"&&Re.documentation.value.length>0||typeof we.documentation=="string"&&we.documentation.length>0)?!0:typeof we.documentation=="object"&&we.documentation.value.length>0},ge.prototype.renderParameters=function(we,Re,Ee){var ve=this.getParameterLabelOffsets(Re,Ee),Q=ve[0],C=ve[1],F=document.createElement("span");F.textContent=Re.label.substring(0,Q);var se=document.createElement("span");se.textContent=Re.label.substring(Q,C),se.className="parameter active";var oe=document.createElement("span");oe.textContent=Re.label.substring(C),O.q(we,F,se,oe)},ge.prototype.getParameterLabel=function(we,Re){var Ee=we.parameters[Re];return typeof Ee.label=="string"?Ee.label:we.label.substring(Ee.label[0],Ee.label[1])},ge.prototype.getParameterLabelOffsets=function(we,Re){var Ee=we.parameters[Re];if(Ee){if(Array.isArray(Ee.label))return Ee.label;var ve=we.label.lastIndexOf(Ee.label);return ve>=0?[ve,ve+Ee.label.length]:[0,0]}else return[0,0]},ge.prototype.next=function(){this.editor.focus(),this.model.next()},ge.prototype.previous=function(){this.editor.focus(),this.model.previous()},ge.prototype.cancel=function(){this.model.cancel()},ge.prototype.getDomNode=function(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element},ge.prototype.getId=function(){return ge.ID},ge.prototype.trigger=function(we){this.model.trigger(we,0)},ge.prototype.updateMaxHeight=function(){if(!this.domNodes)return;var we=Math.max(this.editor.getLayoutInfo().height/4,250),Re=we+"px";this.domNodes.element.style.maxHeight=Re;var Ee=this.domNodes.element.getElementsByClassName("wrapper");Ee.length&&(Ee[0].style.maxHeight=Re)},ge.ID="editor.widget.parameterHintsWidget",ge=Ue([Pe(1,U.c),Pe(2,L.a),Pe(3,f.a)],ge),ge}(re.a);Object(k.e)(function(me,ge){var we=me.getColor(A.B);if(we){var Re=me.type===k.b?2:1;ge.addRule(".monaco-editor .parameter-hints-widget { border: "+Re+"px solid "+we+"; }"),ge.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+we.transparent(.5)+"; }"),ge.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+we.transparent(.5)+"; }")}var Ee=me.getColor(A.A);Ee&&ge.addRule(".monaco-editor .parameter-hints-widget { background-color: "+Ee+"; }");var ve=me.getColor(A.ec);ve&&ge.addRule(".monaco-editor .parameter-hints-widget a { color: "+ve+"; }");var Q=me.getColor(A.C);Q&&ge.addRule(".monaco-editor .parameter-hints-widget { color: "+Q+"; }");var C=me.getColor(A.dc);C&&ge.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+C+"; }")});var ae=function(){var me=function(we,Re){return me=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])},me(we,Re)};return function(ge,we){me(ge,we);function Re(){this.constructor=ge}ge.prototype=we===null?Object.create(we):(Re.prototype=we.prototype,new Re)}}(),q=function(me,ge,we,Re){var Ee=arguments.length,ve=Ee<3?ge:Re===null?Re=Object.getOwnPropertyDescriptor(ge,we):Re,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(me,ge,we,Re);else for(var C=me.length-1;C>=0;C--)(Q=me[C])&&(ve=(Ee<3?Q(ve):Ee>3?Q(ge,we,ve):Q(ge,we))||ve);return Ee>3&&ve&&Object.defineProperty(ge,we,ve),ve},ue=function(me,ge){return function(we,Re){ge(we,Re,me)}},X=function(me){ae(ge,me);function ge(we,Re){var Ee=me.call(this)||this;return Ee.editor=we,Ee.widget=Ee._register(Re.createInstance(ee,Ee.editor)),Ee}return ge.get=function(we){return we.getContribution(ge.ID)},ge.prototype.cancel=function(){this.widget.cancel()},ge.prototype.previous=function(){this.widget.previous()},ge.prototype.next=function(){this.widget.next()},ge.prototype.trigger=function(we){this.widget.trigger(we)},ge.ID="editor.controller.parameterHints",ge=q([ue(1,J.a)],ge),ge}(re.a),he=function(me){ae(ge,me);function ge(){return me.call(this,{id:"editor.action.triggerParameterHints",label:T.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:I.a.hasSignatureHelpProvider,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|10,weight:100}})||this}return ge.prototype.run=function(we,Re){var Ee=X.get(Re);Ee&&Ee.trigger({triggerKind:c.y.Invoke})},ge}(z.b);Object(z.h)(X.ID,X),Object(z.f)(he);var je=100+75,Xe=z.c.bindToContribution(X.get);Object(z.g)(new Xe({id:"closeParameterHints",precondition:m.Visible,handler:function(ge){return ge.cancel()},kbOpts:{weight:je,kbExpr:I.a.focus,primary:9,secondary:[1024|9]}})),Object(z.g)(new Xe({id:"showPrevParameterHint",precondition:U.a.and(m.Visible,m.MultipleSignatures),handler:function(ge){return ge.previous()},kbOpts:{weight:je,kbExpr:I.a.focus,primary:16,secondary:[512|16],mac:{primary:16,secondary:[512|16,256|46]}}})),Object(z.g)(new Xe({id:"showNextParameterHint",precondition:U.a.and(m.Visible,m.MultipleSignatures),handler:function(ge){return ge.next()},kbOpts:{weight:je,kbExpr:I.a.focus,primary:18,secondary:[512|18],mac:{primary:18,secondary:[512|18,256|44]}}}))},"X+cX":function(Lt,j,e){"use strict";e.d(j,"i",function(){return I}),e.d(j,"f",function(){return U}),e.d(j,"j",function(){return z}),e.d(j,"a",function(){return O}),e.d(j,"l",function(){return H}),e.d(j,"g",function(){return x}),e.d(j,"h",function(){return u}),e.d(j,"e",function(){return y}),e.d(j,"c",function(){return _}),e.d(j,"d",function(){return f}),e.d(j,"k",function(){return v}),e.d(j,"b",function(){return w});var T=e("JQT/"),re=e("/cxE"),J=e("pmY6");function I(p){return p&&typeof p.then=="function"}function U(p){var c=new T.b,s=p(c.token),l=new Promise(function(d,m){c.token.onCancellationRequested(function(){m(re.a())}),Promise.resolve(s).then(function(E){c.dispose(),d(E)},function(E){c.dispose(),m(E)})});return new(function(){function d(){}return d.prototype.cancel=function(){c.cancel()},d.prototype.then=function(m,E){return l.then(m,E)},d.prototype.catch=function(m){return this.then(void 0,m)},d.prototype.finally=function(m){return l.finally(m)},d}())}function z(p,c,s){return Promise.race([p,new Promise(function(l){return c.onCancellationRequested(function(){return l(s)})})])}var O=function(){function p(c){this.defaultDelay=c,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return p.prototype.trigger=function(c,s){var l=this;return s===void 0&&(s=this.defaultDelay),this.task=c,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(d,m){l.doResolve=d,l.doReject=m}).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},p.prototype.isTriggered=function(){return this.timeout!==null},p.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(re.a()),this.completionPromise=null)},p.prototype.cancelTimeout=function(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)},p.prototype.dispose=function(){this.cancelTimeout()},p}();function H(p,c){return c?new Promise(function(s,l){var d=setTimeout(s,p);c.onCancellationRequested(function(){clearTimeout(d),l(re.a())})}):U(function(s){return H(p,s)})}function x(p,c){c===void 0&&(c=0);var s=setTimeout(p,c);return Object(J.h)(function(){return clearTimeout(s)})}function u(p,c,s){c===void 0&&(c=function(L){return!!L}),s===void 0&&(s=null);var l=0,d=p.length,m=function E(){if(l>=d)return Promise.resolve(s);var L=p[l++],A=Promise.resolve(L());return A.then(function(k){return c(k)?Promise.resolve(k):E()})};return m()}var y=function(){function p(c,s){this._token=-1,typeof c=="function"&&typeof s=="number"&&this.setIfNotSet(c,s)}return p.prototype.dispose=function(){this.cancel()},p.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},p.prototype.cancelAndSet=function(c,s){var l=this;this.cancel(),this._token=setTimeout(function(){l._token=-1,c()},s)},p.prototype.setIfNotSet=function(c,s){var l=this;if(this._token!==-1)return;this._token=setTimeout(function(){l._token=-1,c()},s)},p}(),_=function(){function p(){this._token=-1}return p.prototype.dispose=function(){this.cancel()},p.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},p.prototype.cancelAndSet=function(c,s){this.cancel(),this._token=setInterval(function(){c()},s)},p}(),f=function(){function p(c,s){this.timeoutToken=-1,this.runner=c,this.timeout=s,this.timeoutHandler=this.onTimeout.bind(this)}return p.prototype.dispose=function(){this.cancel(),this.runner=null},p.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},p.prototype.schedule=function(c){c===void 0&&(c=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,c)},p.prototype.isScheduled=function(){return this.timeoutToken!==-1},p.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},p.prototype.doRun=function(){this.runner&&this.runner()},p}(),v;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var p=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});v=function(s){var l=setTimeout(function(){return s(p)}),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),m=!1;return{dispose:function(){if(m)return;m=!0,cancelIdleCallback(d)}}}})();var w=function(){function p(c){var s=this;this._didRun=!1,this._executor=function(){try{s._value=c()}catch(l){s._error=l}finally{s._didRun=!0}},this._handle=v(function(){return s._executor()})}return p.prototype.dispose=function(){this._handle.dispose()},p.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},p}()},XNtB:function(Lt,j,e){},XQgg:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return e.e(186).then(e.bind(null,"/0xJ"))}})},XSiN:function(Lt,j,e){"use strict";e.d(j,"b",function(){return U}),e.d(j,"a",function(){return z}),e.d(j,"c",function(){return O});var T=e("D3Dy"),re=e("51f4"),J=e("MNsG"),I=function(){var H=function(u,y){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,f){_.__proto__=f}||function(_,f){for(var v in f)f.hasOwnProperty(v)&&(_[v]=f[v])},H(u,y)};return function(x,u){H(x,u);function y(){this.constructor=x}x.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),U=function(){function H(x){this.timestamp=Date.now(),this.browserEvent=x,this.leftButton=x.button===0,this.middleButton=x.button===1,this.rightButton=x.button===2,this.buttons=x.buttons,this.target=x.target,this.detail=x.detail||1,x.type==="dblclick"&&(this.detail=2),this.ctrlKey=x.ctrlKey,this.shiftKey=x.shiftKey,this.altKey=x.altKey,this.metaKey=x.metaKey,typeof x.pageX=="number"?(this.posx=x.pageX,this.posy=x.pageY):(this.posx=x.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=x.clientY+document.body.scrollTop+document.documentElement.scrollTop);var u=re.a.getPositionOfChildWindowRelativeToAncestorWindow(self,x.view);this.posx-=u.left,this.posy-=u.top}return H.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},H.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},H}(),z=function(H){I(x,H);function x(u){var y=H.call(this,u)||this;return y.dataTransfer=u.dataTransfer,y}return x}(U),O=function(){function H(x,u,y){if(u===void 0&&(u=0),y===void 0&&(y=0),this.browserEvent=x||null,this.target=x?x.target||x.targetNode||x.srcElement:null,this.deltaY=y,this.deltaX=u,x){var _=x,f=x;if(typeof _.wheelDeltaY!="undefined")this.deltaY=_.wheelDeltaY/120;else if(typeof f.VERTICAL_AXIS!="undefined"&&f.axis===f.VERTICAL_AXIS)this.deltaY=-f.detail/3;else if(x.type==="wheel"){var v=x;v.deltaMode===v.DOM_DELTA_LINE?this.deltaY=-x.deltaY:this.deltaY=-x.deltaY/40}if(typeof _.wheelDeltaX!="undefined")T.k&&J.h?this.deltaX=-(_.wheelDeltaX/120):this.deltaX=_.wheelDeltaX/120;else if(typeof f.HORIZONTAL_AXIS!="undefined"&&f.axis===f.HORIZONTAL_AXIS)this.deltaX=-x.detail/3;else if(x.type==="wheel"){var v=x;v.deltaMode===v.DOM_DELTA_LINE?this.deltaX=-x.deltaX:this.deltaX=-x.deltaX/40}this.deltaY===0&&this.deltaX===0&&x.wheelDelta&&(this.deltaY=x.wheelDelta/120)}}return H.prototype.preventDefault=function(){this.browserEvent&&(this.browserEvent.preventDefault&&this.browserEvent.preventDefault())},H.prototype.stopPropagation=function(){this.browserEvent&&(this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation())},H}()},XXBq:function(Lt,j,e){},XXUj:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("telemetryService")},XtJs:function(Lt,j,e){"use strict";e.r(j),e.d(j,"getOccurrencesAtPosition",function(){return R});var T=e("3/fG"),re=e("6OMU"),J=e("X+cX"),I=e("JQT/"),U=e("/cxE"),z=e("pmY6"),O=e("sswD"),H=e("aokT"),x=e("wQH0"),u=e("M1Kb"),y=e("tX9W"),_=e("twdY"),f=e("T8No"),v=e("MD5Z"),w=e("t9D7"),p=function(){var Pe=function(ee,ae){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ue){q.__proto__=ue}||function(q,ue){for(var X in ue)ue.hasOwnProperty(X)&&(q[X]=ue[X])},Pe(ee,ae)};return function(ne,ee){Pe(ne,ee);function ae(){this.constructor=ne}ne.prototype=ee===null?Object.create(ee):(ae.prototype=ee.prototype,new ae)}}(),c=function(Pe,ne,ee,ae){var q=arguments.length,ue=q<3?ne:ae===null?ae=Object.getOwnPropertyDescriptor(ne,ee):ae,X;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Pe,ne,ee,ae);else for(var he=Pe.length-1;he>=0;he--)(X=Pe[he])&&(ue=(q<3?X(ue):q>3?X(ne,ee,ue):X(ne,ee))||ue);return q>3&&ue&&Object.defineProperty(ne,ee,ue),ue},s=function(Pe,ne){return function(ee,ae){ne(ee,ae,Pe)}},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),m=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.")),L=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),A=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),k=new f.d("hasWordHighlights",!1);function R(Pe,ne,ee){var ae=_.i.ordered(Pe);return Object(J.h)(ae.map(function(q){return function(){return Promise.resolve(q.provideDocumentHighlights(Pe,ne,ee)).then(void 0,U.f)}}),re.q)}var $=function(){function Pe(ne,ee,ae){var q=this;this._wordRange=this._getCurrentWordRange(ne,ee),this.result=Object(J.f)(function(ue){return q._compute(ne,ee,ae,ue)})}return Pe.prototype._getCurrentWordRange=function(ne,ee){var ae=ne.getWordAtPosition(ee.getPosition());return ae?new H.a(ee.startLineNumber,ae.startColumn,ee.startLineNumber,ae.endColumn):null},Pe.prototype.isValid=function(ne,ee,ae){for(var q=ee.startLineNumber,ue=ee.startColumn,X=ee.endColumn,he=this._getCurrentWordRange(ne,ee),je=Boolean(this._wordRange&&this._wordRange.equalsRange(he)),Xe=0,me=ae.length;!je&&Xe<me;Xe++){var ge=ne.getDecorationRange(ae[Xe]);ge&&ge.startLineNumber===q&&(ge.startColumn<=ue&&ge.endColumn>=X&&(je=!0))}return je},Pe.prototype.cancel=function(){this.result.cancel()},Pe}(),ie=function(Pe){p(ne,Pe);function ne(){return Pe!==null&&Pe.apply(this,arguments)||this}return ne.prototype._compute=function(ee,ae,q,ue){return R(ee,ae.getPosition(),ue).then(function(X){return X||[]})},ne}($),W=function(Pe){p(ne,Pe);function ne(ee,ae,q){var ue=Pe.call(this,ee,ae,q)||this;return ue._selectionIsEmpty=ae.isEmpty(),ue}return ne.prototype._compute=function(ee,ae,q,ue){return Object(J.l)(250,ue).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(je){return{range:je.range,kind:_.h.Text}})})},ne.prototype.isValid=function(ee,ae,q){var ue=ae.isEmpty();return this._selectionIsEmpty!==ue?!1:Pe.prototype.isValid.call(this,ee,ae,q)},ne}($);function B(Pe,ne,ee){return _.i.has(Pe)?new ie(Pe,ne,ee):new W(Pe,ne,ee)}Object(O.k)("_executeDocumentHighlights",function(Pe,ne){return R(Pe,ne,I.a.None)});var le=function(){function Pe(ne,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=ne,this._hasWordHighlights=k.bindTo(ee),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(61),this.model=this.editor.getModel(),this.toUnhook.add(ne.onDidChangeCursorPosition(function(q){if(ae._ignorePositionChangeEvent)return;if(!ae.occurrencesHighlight)return;ae._onPositionChanged(q)})),this.toUnhook.add(ne.onDidChangeModelContent(function(q){ae._stopAll()})),this.toUnhook.add(ne.onDidChangeConfiguration(function(q){var ue=ae.editor.getOption(61);ae.occurrencesHighlight!==ue&&(ae.occurrencesHighlight=ue,ae._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return Pe.prototype.hasDecorations=function(){return this._decorationIds.length>0},Pe.prototype.restore=function(){if(!this.occurrencesHighlight)return;this._run()},Pe.prototype._getSortedHighlights=function(){var ne=this;return re.d(this._decorationIds.map(function(ee){return ne.model.getDecorationRange(ee)}).sort(H.a.compareRangesUsingStarts))},Pe.prototype.moveNext=function(){var ne=this,ee=this._getSortedHighlights(),ae=re.k(ee,function(X){return X.containsPosition(ne.editor.getPosition())}),q=(ae+1)%ee.length,ue=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ue.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ue)}finally{this._ignorePositionChangeEvent=!1}},Pe.prototype.moveBack=function(){var ne=this,ee=this._getSortedHighlights(),ae=re.k(ee,function(X){return X.containsPosition(ne.editor.getPosition())}),q=(ae-1+ee.length)%ee.length,ue=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ue.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ue)}finally{this._ignorePositionChangeEvent=!1}},Pe.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},Pe.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)},Pe.prototype._onPositionChanged=function(ne){if(!this.occurrencesHighlight){this._stopAll();return}if(ne.reason!==3){this._stopAll();return}this._run()},Pe.prototype._run=function(){var ne=this,ee=this.editor.getSelection();if(ee.startLineNumber!==ee.endLineNumber){this._stopAll();return}var ae=ee.startLineNumber,q=ee.startColumn,ue=ee.endColumn,X=this.model.getWordAtPosition({lineNumber:ae,column:q});if(!X||X.startColumn>q||X.endColumn<ue){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 je=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=B(this.model,this.editor.getSelection(),this.editor.getOption(96)),this.workerRequest.result.then(function(Xe){je===ne.workerRequestTokenId&&(ne.workerRequestCompleted=!0,ne.workerRequestValue=Xe||[],ne._beginRenderDecorations())},U.e)}},Pe.prototype._beginRenderDecorations=function(){var ne=this,ee=new Date().getTime(),ae=this.lastCursorPositionChangeTime+250;ee>=ae?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(function(){ne.renderDecorations()},ae-ee)},Pe.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var ne=[],ee=0,ae=this.workerRequestValue.length;ee<ae;ee++){var q=this.workerRequestValue[ee];ne.push({range:q.range,options:Pe._getDecorationOptions(q.kind)})}this._decorationIds=this.editor.deltaDecorations(this._decorationIds,ne),this._hasWordHighlights.set(this.hasDecorations())},Pe._getDecorationOptions=function(ne){return ne===_.h.Write?this._WRITE_OPTIONS:ne===_.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS},Pe.prototype.dispose=function(){this._stopAll(),this.toUnhook.dispose()},Pe._WRITE_OPTIONS=y.a.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(w.f)(A),position:u.d.Center}}),Pe._TEXT_OPTIONS=y.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(w.f)(v.Mb),position:u.d.Center}}),Pe._REGULAR_OPTIONS=y.a.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(w.f)(L),position:u.d.Center}}),Pe}(),Ce=function(Pe){p(ne,Pe);function ne(ee,ae){var q=Pe.call(this)||this;q.wordHighligher=null;var ue=function(){ee.hasModel()&&(q.wordHighligher=new le(ee,ae))};return q._register(ee.onDidChangeModel(function(X){q.wordHighligher&&(q.wordHighligher.dispose(),q.wordHighligher=null),ue()})),ue(),q}return ne.get=function(ee){return ee.getContribution(ne.ID)},ne.prototype.saveViewState=function(){return!!(this.wordHighligher&&this.wordHighligher.hasDecorations())},ne.prototype.moveNext=function(){this.wordHighligher&&this.wordHighligher.moveNext()},ne.prototype.moveBack=function(){this.wordHighligher&&this.wordHighligher.moveBack()},ne.prototype.restoreViewState=function(ee){this.wordHighligher&&ee&&this.wordHighligher.restore()},ne.prototype.dispose=function(){this.wordHighligher&&(this.wordHighligher.dispose(),this.wordHighligher=null),Pe.prototype.dispose.call(this)},ne.ID="editor.contrib.wordHighlighter",ne=c([s(1,f.c)],ne),ne}(z.a),Me=function(Pe){p(ne,Pe);function ne(ee,ae){var q=Pe.call(this,ae)||this;return q._isNext=ee,q}return ne.prototype.run=function(ee,ae){var q=Ce.get(ae);if(!q)return;this._isNext?q.moveNext():q.moveBack()},ne}(O.b),Te=function(Pe){p(ne,Pe);function ne(){return Pe.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:k,kbOpts:{kbExpr:x.a.editorTextFocus,primary:65,weight:100}})||this}return ne}(Me),Fe=function(Pe){p(ne,Pe);function ne(){return Pe.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:k,kbOpts:{kbExpr:x.a.editorTextFocus,primary:1024|65,weight:100}})||this}return ne}(Me),Ue=function(Pe){p(ne,Pe);function ne(){return Pe.call(this,{id:"editor.action.wordHighlight.trigger",label:T.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:k.toNegated(),kbOpts:{kbExpr:x.a.editorTextFocus,primary:0,weight:100}})||this}return ne.prototype.run=function(ee,ae,q){var ue=Ce.get(ae);if(!ue)return;ue.restoreViewState(!0)},ne}(O.b);Object(O.h)(Ce.ID,Ce),Object(O.f)(Te),Object(O.f)(Fe),Object(O.f)(Ue),Object(w.e)(function(Pe,ne){var ee=Pe.getColor(v.M);ee&&(ne.addRule(".monaco-editor .focused .selectionHighlight { background-color: "+ee+"; }"),ne.addRule(".monaco-editor .selectionHighlight { background-color: "+ee.transparent(.5)+"; }"));var ae=Pe.getColor(l);ae&&ne.addRule(".monaco-editor .wordHighlight { background-color: "+ae+"; }");var q=Pe.getColor(d);q&&ne.addRule(".monaco-editor .wordHighlightStrong { background-color: "+q+"; }");var ue=Pe.getColor(v.N);ue&&ne.addRule(".monaco-editor .selectionHighlight { border: 1px "+(Pe.type==="hc"?"dotted":"solid")+" "+ue+"; box-sizing: border-box; }");var X=Pe.getColor(m);X&&ne.addRule(".monaco-editor .wordHighlight { border: 1px "+(Pe.type==="hc"?"dashed":"solid")+" "+X+"; box-sizing: border-box; }");var he=Pe.getColor(E);he&&ne.addRule(".monaco-editor .wordHighlightStrong { border: 1px "+(Pe.type==="hc"?"dashed":"solid")+" "+he+"; box-sizing: border-box; }")})},YHy6:function(Lt,j,e){},Yr1X:function(Lt,j,e){"use strict";e.d(j,"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(I){if(I=Math.min(Math.max(-5,I),20),this._zoomLevel===I)return;this._zoomLevel=I,this._onDidChangeZoomLevel.fire(this._zoomLevel)},J}())},Z7SF:function(Lt,j,e){"use strict";e.d(j,"a",function(){return z});var T=e("cGHE"),re=e("aokT"),J=e("24hK"),I=function(O,H,x,u){function y(_){return _ instanceof x?_:new x(function(f){f(_)})}return new(x||(x=Promise))(function(_,f){function v(c){try{p(u.next(c))}catch(s){f(s)}}function w(c){try{p(u.throw(c))}catch(s){f(s)}}function p(c){c.done?_(c.value):y(c.value).then(v,w)}p((u=u.apply(O,H||[])).next())})},U=function(O,H){var x={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},u,y,_,f;return f={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function v(p){return function(c){return w([p,c])}}function w(p){if(u)throw new TypeError("Generator is already executing.");for(;x;)try{if(u=1,y&&(_=p[0]&2?y.return:p[0]?y.throw||((_=y.return)&&_.call(y),0):y.next)&&!(_=_.call(y,p[1])).done)return _;(y=0,_)&&(p=[p[0]&2,_.value]);switch(p[0]){case 0:case 1:_=p;break;case 4:return x.label++,{value:p[1],done:!1};case 5:x.label++,y=p[1],p=[0];continue;case 7:p=x.ops.pop(),x.trys.pop();continue;default:if(!(_=x.trys,_=_.length>0&&_[_.length-1])&&(p[0]===6||p[0]===2)){x=0;continue}if(p[0]===3&&(!_||p[1]>_[0]&&p[1]<_[3])){x.label=p[1];break}if(p[0]===6&&x.label<_[1]){x.label=_[1],_=p;break}if(_&&x.label<_[2]){x.label=_[2],x.ops.push(p);break}_[2]&&x.ops.pop(),x.trys.pop();continue}p=H.call(O,x)}catch(c){p=[6,c],y=0}finally{u=_=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},z=function(){function O(){}return O.prototype.provideSelectionRanges=function(H,x){return I(this,void 0,void 0,function(){var u,y,_,f,v;return U(this,function(w){switch(w.label){case 0:u=[],y=function(c){var s,l;return U(this,function(d){switch(d.label){case 0:return s=[],u.push(s),l=new Map,[4,new Promise(function(m){return O._bracketsRightYield(m,0,H,c,l)})];case 1:return d.sent(),[4,new Promise(function(m){return O._bracketsLeftYield(m,0,H,c,l,s)})];case 2:return d.sent(),[2]}})},_=0,f=x,w.label=1;case 1:return _<f.length?(v=f[_],[5,y(v)]):[3,4];case 2:w.sent(),w.label=3;case 3:return _++,[3,1];case 4:return[2,u]}})})},O._bracketsRightYield=function(H,x,u,y,_){for(var f=new Map,v=Date.now();;){if(x>=O._maxRounds){H();break}if(!y){H();break}var w=u.findNextBracket(y);if(!w){H();break}var p=Date.now()-v;if(p>O._maxDuration){setTimeout(function(){return O._bracketsRightYield(H,x+1,u,y,_)});break}var c=w.close[0];if(w.isOpen){var s=f.has(c)?f.get(c):0;f.set(c,s+1)}else{var s=f.has(c)?f.get(c):0;if(s-=1,f.set(c,Math.max(0,s)),s<0){var l=_.get(c);l||(l=new J.a,_.set(c,l)),l.push(w.range)}}y=w.range.getEndPosition()}},O._bracketsLeftYield=function(H,x,u,y,_,f){for(var v=new Map,w=Date.now();;){if(x>=O._maxRounds&&_.size===0){H();break}if(!y){H();break}var p=u.findPrevBracket(y);if(!p){H();break}var c=Date.now()-w;if(c>O._maxDuration){setTimeout(function(){return O._bracketsLeftYield(H,x+1,u,y,_,f)});break}var s=p.close[0];if(p.isOpen){var l=v.has(s)?v.get(s):0;if(l-=1,v.set(s,Math.max(0,l)),l<0){var d=_.get(s);if(d){var m=d.shift();d.size===0&&_.delete(s);var E=re.a.fromPositions(p.range.getEndPosition(),m.getStartPosition()),L=re.a.fromPositions(p.range.getStartPosition(),m.getEndPosition());f.push({range:E}),f.push({range:L}),O._addBracketLeading(u,L,f)}}}else{var l=v.has(s)?v.get(s):0;v.set(s,l+1)}y=p.range.getStartPosition()}},O._addBracketLeading=function(H,x,u){if(x.startLineNumber===x.endLineNumber)return;var y=x.startLineNumber,_=H.getLineFirstNonWhitespaceColumn(y);_!==0&&_!==x.startColumn&&(u.push({range:re.a.fromPositions(new T.a(y,_),x.getEndPosition())}),u.push({range:re.a.fromPositions(new T.a(y,1),x.getEndPosition())}));var f=y-1;if(f>0){var v=H.getLineFirstNonWhitespaceColumn(f);v===x.startColumn&&v!==H.getLineLastNonWhitespaceColumn(f)&&(u.push({range:re.a.fromPositions(new T.a(f,v),x.getEndPosition())}),u.push({range:re.a.fromPositions(new T.a(f,1),x.getEndPosition())}))}},O._maxDuration=30,O._maxRounds=2,O}()},ZCR3:function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=0;function re(){var I="$memoize"+T++,U=void 0,z=function(H,x,u){var y=null,_=null;if(typeof u.value=="function"?(y="value",_=u.value,_.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof u.get=="function"&&(y="get",_=u.get),!_)throw new Error("not supported");var f=I+":"+x;u[y]=function(){for(var v=[],w=0;w<arguments.length;w++)v[w]=arguments[w];return U=this,this.hasOwnProperty(f)||Object.defineProperty(this,f,{configurable:!0,enumerable:!1,writable:!0,value:_.apply(this,v)}),this[f]}};return z.clear=function(){if(typeof U=="undefined")return;Object.getOwnPropertyNames(U).forEach(function(O){O.indexOf(I)===0&&delete U[O]})},z}function J(I,U,z){return re()(I,U,z)}},ZIMw:function(Lt,j,e){"use strict";e.d(j,"b",function(){return H}),e.d(j,"a",function(){return x});var T=e("JQT/"),re=e("/cxE"),J=e("bY76"),I=e("sswD"),U=e("aokT"),z=e("twdY"),O=e("G2kB");function H(u,y){var _=[],f=z.c.ordered(u).reverse(),v=f.map(function(w){return Promise.resolve(w.provideDocumentColors(u,y)).then(function(p){if(Array.isArray(p))for(var c=0,s=p;c<s.length;c++){var l=s[c];_.push({colorInfo:l,provider:w})}})});return Promise.all(v).then(function(){return _})}function x(u,y,_,f){return Promise.resolve(_.provideColorPresentations(u,y,f))}Object(I.j)("_executeDocumentColorProvider",function(u,y){var _=y.resource;if(!(_ instanceof J.a))throw Object(re.b)();var f=u.get(O.a).getModel(_);if(!f)throw Object(re.b)();var v=[],w=z.c.ordered(f).reverse(),p=w.map(function(c){return Promise.resolve(c.provideDocumentColors(f,T.a.None)).then(function(s){if(Array.isArray(s))for(var l=0,d=s;l<d.length;l++){var m=d[l];v.push({range:m.range,color:[m.color.red,m.color.green,m.color.blue,m.color.alpha]})}})});return Promise.all(p).then(function(){return v})}),Object(I.j)("_executeColorPresentationProvider",function(u,y){var _=y.resource,f=y.color,v=y.range;if(!(_ instanceof J.a)||!Array.isArray(f)||f.length!==4||!U.a.isIRange(v))throw Object(re.b)();var w=f[0],p=f[1],c=f[2],s=f[3],l=u.get(O.a).getModel(_);if(!l)throw Object(re.b)();var d={range:v,color:{red:w,green:p,blue:c,alpha:s}},m=[],E=z.c.ordered(l).reverse(),L=E.map(function(A){return Promise.resolve(A.provideColorPresentations(l,d,T.a.None)).then(function(k){Array.isArray(k)&&m.push.apply(m,k)})});return Promise.all(L).then(function(){return m})})},ZQ78:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"b",function(){return re}),e.d(j,"c",function(){return J});var T={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},re=function(){function I(U){this.data=U}return I.prototype.update=function(){},I.prototype.getData=function(){return this.data},I}(),J={CurrentDragAndDropData:void 0}},"ZkA/":function(Lt,j,e){"use strict";e.r(j);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(166).then(e.bind(null,"DTUS"))}})},ZlPH:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});var T=e("EffR"),re=function(){function I(U){this.domNode=U,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 I.prototype.setMaxWidth=function(U){if(this._maxWidth===U)return;this._maxWidth=U,this.domNode.style.maxWidth=this._maxWidth+"px"},I.prototype.setWidth=function(U){if(this._width===U)return;this._width=U,this.domNode.style.width=this._width+"px"},I.prototype.setHeight=function(U){if(this._height===U)return;this._height=U,this.domNode.style.height=this._height+"px"},I.prototype.setTop=function(U){if(this._top===U)return;this._top=U,this.domNode.style.top=this._top+"px"},I.prototype.unsetTop=function(){if(this._top===-1)return;this._top=-1,this.domNode.style.top=""},I.prototype.setLeft=function(U){if(this._left===U)return;this._left=U,this.domNode.style.left=this._left+"px"},I.prototype.setBottom=function(U){if(this._bottom===U)return;this._bottom=U,this.domNode.style.bottom=this._bottom+"px"},I.prototype.setRight=function(U){if(this._right===U)return;this._right=U,this.domNode.style.right=this._right+"px"},I.prototype.setFontFamily=function(U){if(this._fontFamily===U)return;this._fontFamily=U,this.domNode.style.fontFamily=this._fontFamily},I.prototype.setFontWeight=function(U){if(this._fontWeight===U)return;this._fontWeight=U,this.domNode.style.fontWeight=this._fontWeight},I.prototype.setFontSize=function(U){if(this._fontSize===U)return;this._fontSize=U,this.domNode.style.fontSize=this._fontSize+"px"},I.prototype.setFontFeatureSettings=function(U){if(this._fontFeatureSettings===U)return;this._fontFeatureSettings=U,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings},I.prototype.setLineHeight=function(U){if(this._lineHeight===U)return;this._lineHeight=U,this.domNode.style.lineHeight=this._lineHeight+"px"},I.prototype.setLetterSpacing=function(U){if(this._letterSpacing===U)return;this._letterSpacing=U,this.domNode.style.letterSpacing=this._letterSpacing+"px"},I.prototype.setClassName=function(U){if(this._className===U)return;this._className=U,this.domNode.className=this._className},I.prototype.toggleClassName=function(U,z){T.Y(this.domNode,U,z),this._className=this.domNode.className},I.prototype.setDisplay=function(U){if(this._display===U)return;this._display=U,this.domNode.style.display=this._display},I.prototype.setPosition=function(U){if(this._position===U)return;this._position=U,this.domNode.style.position=this._position},I.prototype.setVisibility=function(U){if(this._visibility===U)return;this._visibility=U,this.domNode.style.visibility=this._visibility},I.prototype.setBackgroundColor=function(U){if(this._backgroundColor===U)return;this._backgroundColor=U,this.domNode.style.backgroundColor=this._backgroundColor},I.prototype.setLayerHinting=function(U){if(this._layerHint===U)return;this._layerHint=U,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":""},I.prototype.setContain=function(U){if(this._contain===U)return;this._contain=U,this.domNode.style.contain=this._contain},I.prototype.setAttribute=function(U,z){this.domNode.setAttribute(U,z)},I.prototype.removeAttribute=function(U){this.domNode.removeAttribute(U)},I.prototype.appendChild=function(U){this.domNode.appendChild(U.domNode)},I.prototype.removeChild=function(U){this.domNode.removeChild(U.domNode)},I}();function J(I){return new re(I)}},ZvGG:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return e.e(164).then(e.bind(null,"yUwd"))}})},aBYw:function(Lt,j,e){"use strict";e.d(j,"a",function(){return y});var T=e("D3Dy"),re=e("pmY6"),J=e("MI8n"),I=e("MNsG"),U=function(){var _=function(v,w){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var s in c)c.hasOwnProperty(s)&&(p[s]=c[s])},_(v,w)};return function(f,v){_(f,v);function w(){this.constructor=f}f.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}}();function z(_,f){return!!_[f]}var O=function(){function _(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 _}(),H=function(){function _(f,v){this.keyCodeIsTriggerKey=f.keyCode===v.triggerKey,this.keyCodeIsSideBySideKey=f.keyCode===v.triggerSideBySideKey,this.hasTriggerModifier=z(f,v.triggerModifier)}return _}(),x=function(){function _(f,v,w,p){this.triggerKey=f,this.triggerModifier=v,this.triggerSideBySideKey=w,this.triggerSideBySideModifier=p}return _.prototype.equals=function(f){return this.triggerKey===f.triggerKey&&this.triggerModifier===f.triggerModifier&&this.triggerSideBySideKey===f.triggerSideBySideKey&&this.triggerSideBySideModifier===f.triggerSideBySideModifier},_}();function u(_){return _==="altKey"?I.e?new x(57,"metaKey",6,"altKey"):new x(5,"ctrlKey",6,"altKey"):I.e?new x(6,"altKey",57,"metaKey"):new x(6,"altKey",5,"ctrlKey")}var y=function(_){U(f,_);function f(v){var w=_.call(this)||this;return w._onMouseMoveOrRelevantKeyDown=w._register(new J.a),w.onMouseMoveOrRelevantKeyDown=w._onMouseMoveOrRelevantKeyDown.event,w._onExecute=w._register(new J.a),w.onExecute=w._onExecute.event,w._onCancel=w._register(new J.a),w.onCancel=w._onCancel.event,w._editor=v,w._opts=u(w._editor.getOption(59)),w.lastMouseMoveEvent=null,w.hasTriggerKeyOnMouseDown=!1,w._register(w._editor.onDidChangeConfiguration(function(p){if(p.hasChanged(59)){var c=u(w._editor.getOption(59));if(w._opts.equals(c))return;w._opts=c,w.lastMouseMoveEvent=null,w.hasTriggerKeyOnMouseDown=!1,w._onCancel.fire()}})),w._register(w._editor.onMouseMove(function(p){return w.onEditorMouseMove(new O(p,w._opts))})),w._register(w._editor.onMouseDown(function(p){return w.onEditorMouseDown(new O(p,w._opts))})),w._register(w._editor.onMouseUp(function(p){return w.onEditorMouseUp(new O(p,w._opts))})),w._register(w._editor.onKeyDown(function(p){return w.onEditorKeyDown(new H(p,w._opts))})),w._register(w._editor.onKeyUp(function(p){return w.onEditorKeyUp(new H(p,w._opts))})),w._register(w._editor.onMouseDrag(function(){return w.resetHandler()})),w._register(w._editor.onDidChangeCursorSelection(function(p){return w.onDidChangeCursorSelection(p)})),w._register(w._editor.onDidChangeModel(function(p){return w.resetHandler()})),w._register(w._editor.onDidChangeModelContent(function(){return w.resetHandler()})),w._register(w._editor.onDidScrollChange(function(p){(p.scrollTopChanged||p.scrollLeftChanged)&&w.resetHandler()})),w}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(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return e.e(181).then(e.bind(null,"Fzfo"))}})},aokT:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("cGHE"),re=function(){function J(I,U,z,O){I>z||I===z&&U>O?(this.startLineNumber=z,this.startColumn=O,this.endLineNumber=I,this.endColumn=U):(this.startLineNumber=I,this.startColumn=U,this.endLineNumber=z,this.endColumn=O)}return J.prototype.isEmpty=function(){return J.isEmpty(this)},J.isEmpty=function(I){return I.startLineNumber===I.endLineNumber&&I.startColumn===I.endColumn},J.prototype.containsPosition=function(I){return J.containsPosition(this,I)},J.containsPosition=function(I,U){return U.lineNumber<I.startLineNumber||U.lineNumber>I.endLineNumber||U.lineNumber===I.startLineNumber&&U.column<I.startColumn?!1:!(U.lineNumber===I.endLineNumber&&U.column>I.endColumn)},J.prototype.containsRange=function(I){return J.containsRange(this,I)},J.containsRange=function(I,U){return U.startLineNumber<I.startLineNumber||U.endLineNumber<I.startLineNumber||(U.startLineNumber>I.endLineNumber||U.endLineNumber>I.endLineNumber||U.startLineNumber===I.startLineNumber&&U.startColumn<I.startColumn)?!1:!(U.endLineNumber===I.endLineNumber&&U.endColumn>I.endColumn)},J.prototype.strictContainsRange=function(I){return J.strictContainsRange(this,I)},J.strictContainsRange=function(I,U){return U.startLineNumber<I.startLineNumber||U.endLineNumber<I.startLineNumber||(U.startLineNumber>I.endLineNumber||U.endLineNumber>I.endLineNumber||U.startLineNumber===I.startLineNumber&&U.startColumn<=I.startColumn)?!1:!(U.endLineNumber===I.endLineNumber&&U.endColumn>=I.endColumn)},J.prototype.plusRange=function(I){return J.plusRange(this,I)},J.plusRange=function(I,U){var z,O,H,x;return U.startLineNumber<I.startLineNumber?(z=U.startLineNumber,O=U.startColumn):U.startLineNumber===I.startLineNumber?(z=U.startLineNumber,O=Math.min(U.startColumn,I.startColumn)):(z=I.startLineNumber,O=I.startColumn),U.endLineNumber>I.endLineNumber?(H=U.endLineNumber,x=U.endColumn):U.endLineNumber===I.endLineNumber?(H=U.endLineNumber,x=Math.max(U.endColumn,I.endColumn)):(H=I.endLineNumber,x=I.endColumn),new J(z,O,H,x)},J.prototype.intersectRanges=function(I){return J.intersectRanges(this,I)},J.intersectRanges=function(I,U){var z=I.startLineNumber,O=I.startColumn,H=I.endLineNumber,x=I.endColumn,u=U.startLineNumber,y=U.startColumn,_=U.endLineNumber,f=U.endColumn;return z<u?(z=u,O=y):z===u&&(O=Math.max(O,y)),H>_?(H=_,x=f):H===_&&(x=Math.min(x,f)),z>H||z===H&&O>x?null:new J(z,O,H,x)},J.prototype.equalsRange=function(I){return J.equalsRange(this,I)},J.equalsRange=function(I,U){return!!I&&!!U&&I.startLineNumber===U.startLineNumber&&I.startColumn===U.startColumn&&I.endLineNumber===U.endLineNumber&&I.endColumn===U.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(I,U){return new J(this.startLineNumber,this.startColumn,I,U)},J.prototype.setStartPosition=function(I,U){return new J(I,U,this.endLineNumber,this.endColumn)},J.prototype.collapseToStart=function(){return J.collapseToStart(this)},J.collapseToStart=function(I){return new J(I.startLineNumber,I.startColumn,I.startLineNumber,I.startColumn)},J.fromPositions=function(I,U){return U===void 0&&(U=I),new J(I.lineNumber,I.column,U.lineNumber,U.column)},J.lift=function(I){return I?new J(I.startLineNumber,I.startColumn,I.endLineNumber,I.endColumn):null},J.isIRange=function(I){return I&&typeof I.startLineNumber=="number"&&typeof I.startColumn=="number"&&typeof I.endLineNumber=="number"&&typeof I.endColumn=="number"},J.areIntersectingOrTouching=function(I,U){return I.endLineNumber<U.startLineNumber||I.endLineNumber===U.startLineNumber&&I.endColumn<U.startColumn?!1:!(U.endLineNumber<I.startLineNumber||U.endLineNumber===I.startLineNumber&&U.endColumn<I.startColumn)},J.areIntersecting=function(I,U){return I.endLineNumber<U.startLineNumber||I.endLineNumber===U.startLineNumber&&I.endColumn<=U.startColumn?!1:!(U.endLineNumber<I.startLineNumber||U.endLineNumber===I.startLineNumber&&U.endColumn<=I.startColumn)},J.compareRangesUsingStarts=function(I,U){if(I&&U){var z=I.startLineNumber|0,O=U.startLineNumber|0;if(z===O){var H=I.startColumn|0,x=U.startColumn|0;if(H===x){var u=I.endLineNumber|0,y=U.endLineNumber|0;if(u===y){var _=I.endColumn|0,f=U.endColumn|0;return _-f}return u-y}return H-x}return z-O}var v=I?1:0,w=U?1:0;return v-w},J.compareRangesUsingEnds=function(I,U){return I.endLineNumber===U.endLineNumber?I.endColumn===U.endColumn?I.startLineNumber===U.startLineNumber?I.startColumn-U.startColumn:I.startLineNumber-U.startLineNumber:I.endColumn-U.endColumn:I.endLineNumber-U.endLineNumber},J.spansMultipleLines=function(I){return I.endLineNumber>I.startLineNumber},J}()},bY76:function(Lt,j,e){"use strict";e.d(j,"a",function(){return f});var T=e("MNsG"),re=function(){var A=function(R,$){return A=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])},A(R,$)};return function(k,R){A(k,R);function $(){this.constructor=k}k.prototype=R===null?Object.create(R):($.prototype=R.prototype,new $)}}(),J,I=/^\w[\w\d+.-]*$/,U=/^\//,z=/^\/\//;function O(A,k){if(!A.scheme&&k)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+A.authority+'", path: "'+A.path+'", query: "'+A.query+'", fragment: "'+A.fragment+'"}');if(A.scheme&&!I.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!U.test(A.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(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function H(A,k){return!A&&!k?"file":A}function x(A,k){switch(A){case"https":case"http":case"file":k?k[0]!==y&&(k=y+k):k=y;break}return k}var u="",y="/",_=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,f=function(){function A(k,R,$,ie,W,B){B===void 0&&(B=!1),typeof k=="object"?(this.scheme=k.scheme||u,this.authority=k.authority||u,this.path=k.path||u,this.query=k.query||u,this.fragment=k.fragment||u):(this.scheme=H(k,B),this.authority=R||u,this.path=x(this.scheme,$||u),this.query=ie||u,this.fragment=W||u,O(this,B))}return A.isUri=function(k){return k instanceof A?!0:k?typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="function"&&typeof k.with=="function"&&typeof k.toString=="function":!1},Object.defineProperty(A.prototype,"fsPath",{get:function(){return l(this)},enumerable:!0,configurable:!0}),A.prototype.with=function(k){if(!k)return this;var R=k.scheme,$=k.authority,ie=k.path,W=k.query,B=k.fragment;return R===void 0?R=this.scheme:R===null&&(R=u),$===void 0?$=this.authority:$===null&&($=u),ie===void 0?ie=this.path:ie===null&&(ie=u),W===void 0?W=this.query:W===null&&(W=u),B===void 0?B=this.fragment:B===null&&(B=u),R===this.scheme&&$===this.authority&&ie===this.path&&W===this.query&&B===this.fragment?this:new w(R,$,ie,W,B)},A.parse=function(k,R){R===void 0&&(R=!1);var $=_.exec(k);return $?new w($[2]||u,L($[4]||u),L($[5]||u),L($[7]||u),L($[9]||u),R):new w(u,u,u,u,u)},A.file=function(k){var R=u;if(T.h&&(k=k.replace(/\\/g,y)),k[0]===y&&k[1]===y){var $=k.indexOf(y,2);$===-1?(R=k.substring(2),k=y):(R=k.substring(2,$),k=k.substring($)||y)}return new w("file",R,k,u,u)},A.from=function(k){return new w(k.scheme,k.authority,k.path,k.query,k.fragment)},A.prototype.toString=function(k){return k===void 0&&(k=!1),d(this,k)},A.prototype.toJSON=function(){return this},A.revive=function(k){if(k){if(k instanceof A)return k;var R=new w(k);return R._formatted=k.external,R._fsPath=k._sep===v?k.fsPath:null,R}else return k},A}(),v=T.h?1:void 0,w=function(A){re(k,A);function k(){var R=A!==null&&A.apply(this,arguments)||this;return R._formatted=null,R._fsPath=null,R}return Object.defineProperty(k.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=l(this)),this._fsPath},enumerable:!0,configurable:!0}),k.prototype.toString=function(R){return R===void 0&&(R=!1),R?d(this,!0):(this._formatted||(this._formatted=d(this,!1)),this._formatted)},k.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},k}(f),p=(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 c(A,k){for(var R=void 0,$=-1,ie=0;ie<A.length;ie++){var W=A.charCodeAt(ie);if(W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===45||W===46||W===95||W===126||k&&W===47)$!==-1&&(R+=encodeURIComponent(A.substring($,ie)),$=-1),R!==void 0&&(R+=A.charAt(ie));else{R===void 0&&(R=A.substr(0,ie));var B=p[W];B!==void 0?($!==-1&&(R+=encodeURIComponent(A.substring($,ie)),$=-1),R+=B):$===-1&&($=ie)}}return $!==-1&&(R+=encodeURIComponent(A.substring($))),R!==void 0?R:A}function s(A){for(var k=void 0,R=0;R<A.length;R++){var $=A.charCodeAt(R);$===35||$===63?(k===void 0&&(k=A.substr(0,R)),k+=p[$]):k!==void 0&&(k+=A[R])}return k!==void 0?k:A}function l(A){var k;return A.authority&&A.path.length>1&&A.scheme==="file"?k="//"+A.authority+A.path:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?k=A.path[1].toLowerCase()+A.path.substr(2):k=A.path,T.h&&(k=k.replace(/\//g,"\\")),k}function d(A,k){var R=k?s:c,$="",ie=A.scheme,W=A.authority,B=A.path,le=A.query,Ce=A.fragment;if(ie&&($+=ie,$+=":"),(W||ie==="file")&&($+=y,$+=y),W){var Me=W.indexOf("@");if(Me!==-1){var Te=W.substr(0,Me);W=W.substr(Me+1),Me=Te.indexOf(":"),Me===-1?$+=R(Te,!1):($+=R(Te.substr(0,Me),!1),$+=":",$+=R(Te.substr(Me+1),!1)),$+="@"}W=W.toLowerCase(),Me=W.indexOf(":"),Me===-1?$+=R(W,!1):($+=R(W.substr(0,Me),!1),$+=W.substr(Me))}if(B){if(B.length>=3&&B.charCodeAt(0)===47&&B.charCodeAt(2)===58){var Fe=B.charCodeAt(1);Fe>=65&&Fe<=90&&(B="/"+String.fromCharCode(Fe+32)+":"+B.substr(3))}else if(B.length>=2&&B.charCodeAt(1)===58){var Fe=B.charCodeAt(0);Fe>=65&&Fe<=90&&(B=String.fromCharCode(Fe+32)+":"+B.substr(2))}$+=R(B,!0)}return le&&($+="?",$+=R(le,!1)),Ce&&($+="#",$+=k?Ce:c(Ce,!1)),$}function m(A){try{return decodeURIComponent(A)}catch(k){return A.length>3?A.substr(0,3)+m(A.substr(3)):A}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(A){return A.match(E)?A.replace(E,function(k){return m(k)}):A}},ba9Q:function(Lt,j,e){"use strict";e.r(j);var T=e("3/fG"),re=e("sswD"),J=e("LCkn"),I=e("aokT"),U=e("wQH0"),z=e("+Fos"),O=function(){var x=function(y,_){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},x(y,_)};return function(u,y){x(u,y);function _(){this.constructor=u}u.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}}(),H=function(x){O(u,x);function u(){return x.call(this,{id:"editor.action.transposeLetters",label:T.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:U.a.writable,kbOpts:{kbExpr:U.a.textInputFocus,primary:0,mac:{primary:256|50},weight:100}})||this}return u.prototype.run=function(y,_){if(!_.hasModel())return;for(var f=_.getModel(),v=[],w=_.getSelections(),p=0,c=w;p<c.length;p++){var s=c[p];if(!s.isEmpty())continue;var l=s.startLineNumber,d=s.startColumn,m=f.getLineMaxColumn(l);if(l===1&&(d===1||d===2&&m===2))continue;var E=d===m?s.getPosition():z.a.rightPosition(f,s.getPosition().lineNumber,s.getPosition().column),L=z.a.leftPosition(f,E.lineNumber,E.column),A=z.a.leftPosition(f,L.lineNumber,L.column),k=f.getValueInRange(I.a.fromPositions(A,L)),R=f.getValueInRange(I.a.fromPositions(L,E)),$=I.a.fromPositions(A,E);v.push(new J.a($,R+k))}v.length>0&&(_.pushUndoStop(),_.executeCommands(this.id,v),_.pushUndoStop())},u}(re.b);Object(re.f)(H)},baJR:function(Lt,j,e){"use strict";e.d(j,"b",function(){return U}),e.d(j,"c",function(){return z}),e.d(j,"a",function(){return O}),e.d(j,"d",function(){return x}),e.d(j,"e",function(){return y});var T=e("N0LK"),re=e("erNZ"),J=e("dBaI"),I=function(){function l(d,m){this.endIndex=d,this.type=m}return l}(),U=function(){function l(d,m){this.startOffset=d,this.endOffset=m}return l.prototype.equals=function(d){return this.startOffset===d.startOffset&&this.endOffset===d.endOffset},l}(),z=function(){function l(d,m,E,L,A,k,R,$,ie,W,B,le,Ce,Me,Te,Fe,Ue,Pe){this.useMonospaceOptimizations=d,this.canUseHalfwidthRightwardsArrow=m,this.lineContent=E,this.continuesWithWrappedLine=L,this.isBasicASCII=A,this.containsRTL=k,this.fauxIndentLength=R,this.lineTokens=$,this.lineDecorations=ie,this.tabSize=W,this.startVisibleColumn=B,this.spaceWidth=le,this.middotWidth=Ce,this.stopRenderingLineAfter=Me,this.renderWhitespace=Te==="all"?3:Te==="boundary"?1:Te==="selection"?2:0,this.renderControlCharacters=Fe,this.fontLigatures=Ue,this.selectionsOnLine=Pe&&Pe.sort(function(ne,ee){return ne.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 m=0;m<this.selectionsOnLine.length;m++)if(!this.selectionsOnLine[m].equals(d[m]))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}(),O=function(){function l(d,m){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,m,E,L){var A=(m<<16|E<<0)>>>0;this._data[d]=A,this._absoluteOffsets[d]=L+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,m,E){if(this.length===0)return 0;for(var L=(d<<16|E<<0)>>>0,A=0,k=this.length-1;A+1<k;){var R=A+k>>>1,$=this._data[R];if($===L)return R;$>L?k=R:A=R}if(A===k)return A;var ie=this._data[A],W=this._data[k];if(ie===L)return A;if(W===L)return k;var B=l.getPartIndex(ie),le=l.getCharIndex(ie),Ce=l.getPartIndex(W),Me;B!==Ce?Me=m:Me=l.getCharIndex(W);var Te=E-le,Fe=Me-E;return Te<=Fe?A:k},l}(),H=function(){function l(d,m,E){this.characterMapping=d,this.containsRTL=m,this.containsForeignElements=E}return l}();function x(l,d){if(l.lineContent.length===0){var m=0,E="<span><span>\xA0</span></span>";if(l.lineDecorations.length>0){for(var L=[],A=[],k=0,R=l.lineDecorations.length;k<R;k++){var $=l.lineDecorations[k];$.type===1&&(L.push(l.lineDecorations[k].className),m|=1),$.type===2&&(A.push(l.lineDecorations[k].className),m|=2)}if(m!==0){var ie=L.length>0?'<span class="'+L.join(" ")+'"></span>':"",W=A.length>0?'<span class="'+A.join(" ")+'"></span>':"";E="<span>"+ie+W+"</span>"}}return d.appendASCIIString(E),new H(new O(0,0),!1,m)}return s(f(l),d)}var u=function(){function l(d,m,E,L){this.characterMapping=d,this.html=m,this.containsRTL=E,this.containsForeignElements=L}return l}();function y(l){var d=Object(re.a)(1e4),m=x(l,d);return new u(m.characterMapping,d.build(),m.containsRTL,m.containsForeignElements)}var _=function(){function l(d,m,E,L,A,k,R,$,ie,W,B,le,Ce,Me,Te){this.fontIsMonospace=d,this.canUseHalfwidthRightwardsArrow=m,this.lineContent=E,this.len=L,this.isOverflowing=A,this.parts=k,this.containsForeignElements=R,this.fauxIndentLength=$,this.tabSize=ie,this.startVisibleColumn=W,this.containsRTL=B,this.spaceWidth=le,this.middotWidth=Ce,this.renderWhitespace=Me,this.renderControlCharacters=Te}return l}();function f(l){var d=l.useMonospaceOptimizations,m=l.lineContent,E,L;l.stopRenderingLineAfter!==-1&&l.stopRenderingLineAfter<m.length?(E=!0,L=l.stopRenderingLineAfter):(E=!1,L=m.length);var A=v(l.lineTokens,l.fauxIndentLength,L);(l.renderWhitespace===3||l.renderWhitespace===1||l.renderWhitespace===2&&!!l.selectionsOnLine)&&(A=p(m,L,l.continuesWithWrappedLine,A,l.fauxIndentLength,l.tabSize,l.startVisibleColumn,d,l.selectionsOnLine,l.renderWhitespace===1));var k=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?k|=1:ie.type===2&&(k|=2)}A=c(m,L,A,l.lineDecorations)}return l.containsRTL||(A=w(m,A,!l.isBasicASCII||l.fontLigatures)),new _(d,l.canUseHalfwidthRightwardsArrow,m,L,E,A,k,l.fauxIndentLength,l.tabSize,l.startVisibleColumn,l.containsRTL,l.spaceWidth,l.middotWidth,l.renderWhitespace,l.renderControlCharacters)}function v(l,d,m){var E=[],L=0;d>0&&(E[L++]=new I(d,""));for(var A=0,k=l.getCount();A<k;A++){var R=l.getEndOffset(A);if(R<=d)continue;var $=l.getClassName(A);if(R>=m){E[L++]=new I(m,$);break}E[L++]=new I(R,$)}return E}function w(l,d,m){var E=0,L=[],A=0;if(m)for(var k=0,R=d.length;k<R;k++){var $=d[k],ie=$.endIndex;if(E+50<ie){for(var W=$.type,B=-1,le=E,Ce=E;Ce<ie;Ce++)l.charCodeAt(Ce)===32&&(B=Ce),B!==-1&&Ce-le>=50&&(L[A++]=new I(B+1,W),le=B+1,B=-1);le!==ie&&(L[A++]=new I(ie,W))}else L[A++]=$;E=ie}else for(var k=0,R=d.length;k<R;k++){var $=d[k],ie=$.endIndex,Me=ie-E;if(Me>50){for(var W=$.type,Te=Math.ceil(Me/50),Ce=1;Ce<Te;Ce++){var Fe=E+Ce*50;L[A++]=new I(Fe,W)}L[A++]=new I(ie,W)}else L[A++]=$;E=ie}return L}function p(l,d,m,E,L,A,k,R,$,ie){var W=[],B=0,le=0,Ce=E[le].type,Me=E[le].endIndex,Te=E.length,Fe=T.q(l),Ue;Fe===-1?(Fe=d,Ue=d):Ue=T.D(l);for(var Pe=!1,ne=0,ee=$&&$[ne],ae=k%A,q=L;q<d;q++){var ue=l.charCodeAt(q);ee&&q>=ee.endOffset&&(ne++,ee=$&&$[ne]);var X=void 0;if(q<Fe||q>Ue)X=!0;else if(ue===9)X=!0;else if(ue===32)if(ie)if(Pe)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),Pe?(!X||!R&&ae>=A)&&(W[B++]=new I(q,"vs-whitespace"),ae=ae%A):(q===Me||X&&q>L)&&(W[B++]=new I(q,Ce),ae=ae%A),ue===9?ae=A:T.y(ue)?ae+=2:ae++,Pe=X,q===Me&&(le++,le<Te&&(Ce=E[le].type,Me=E[le].endIndex))}var je=!1;if(Pe)if(m&&ie){var Xe=d>0?l.charCodeAt(d-1):0,me=d>1?l.charCodeAt(d-2):0,ge=Xe===32&&me!==32&&me!==9;ge||(je=!0)}else je=!0;return W[B++]=new I(d,je?"vs-whitespace":Ce),W}function c(l,d,m,E){E.sort(J.a.compare);for(var L=J.b.normalize(l,E),A=L.length,k=0,R=[],$=0,ie=0,W=0,B=m.length;W<B;W++){for(var le=m[W],Ce=le.endIndex,Me=le.type;k<A&&L[k].startOffset<Ce;){var Te=L[k];if(Te.startOffset>ie&&(ie=Te.startOffset,R[$++]=new I(ie,Me)),Te.endOffset+1<=Ce)ie=Te.endOffset+1,R[$++]=new I(ie,Me+" "+Te.className),k++;else{ie=Ce,R[$++]=new I(ie,Me+" "+Te.className);break}}Ce>ie&&(ie=Ce,R[$++]=new I(ie,Me))}var Fe=m[m.length-1].endIndex;if(k<A&&L[k].startOffset===Fe){for(var Ue=[];k<A&&L[k].startOffset===Fe;)Ue.push(L[k].className),k++;R[$++]=new I(ie,Ue.join(" "))}return R}function s(l,d){var m=l.fontIsMonospace,E=l.canUseHalfwidthRightwardsArrow,L=l.containsForeignElements,A=l.lineContent,k=l.len,R=l.isOverflowing,$=l.parts,ie=l.fauxIndentLength,W=l.tabSize,B=l.startVisibleColumn,le=l.containsRTL,Ce=l.spaceWidth,Me=l.middotWidth,Te=l.renderWhitespace,Fe=l.renderControlCharacters,Ue=Me>Ce?11825:183,Pe=new O(k+1,$.length),ne=0,ee=B,ae=0,q=0,ue=0;d.appendASCIIString("<span>");for(var X=0,he=$.length;X<he;X++){ue+=q;var je=$[X],Xe=je.endIndex,me=je.type,ge=Te!==0&&me.indexOf("vs-whitespace")>=0;if(ae=0,d.appendASCIIString('<span class="'),d.appendASCIIString(me),d.appendASCII(34),ge){for(var we=0,Re=ne,Ee=ee;Re<Xe;Re++){var ve=A.charCodeAt(Re),Q=(ve===9?W-Ee%W:1)|0;we+=Q,Re>=ie&&(Ee+=Q)}if(!m){var C=me==="vs-whitespace";(C||!L)&&(d.appendASCIIString(' style="display:inline-block;width:'),d.appendASCIIString(String(Ce*we)),d.appendASCIIString('px"'))}for(d.appendASCII(62);ne<Xe;ne++){Pe.setPartData(ne,X,ae,ue);var ve=A.charCodeAt(ne),Q=void 0;if(ve===9){Q=W-ee%W|0,!E||Q>1?d.write1(8594):d.write1(65515);for(var F=2;F<=Q;F++)d.write1(160)}else Q=1,d.write1(Ue);ae+=Q,ne>=ie&&(ee+=Q)}q=we}else{var we=0;for(le&&d.appendASCIIString(' dir="ltr"'),d.appendASCII(62);ne<Xe;ne++){Pe.setPartData(ne,X,ae,ue);var ve=A.charCodeAt(ne),se=1,Q=1;switch(ve){case 9:se=W-ee%W,Q=se;for(var F=1;F<=se;F++)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++,Fe&&ve<32?d.write1(9216+ve):d.write1(ve)}ae+=se,we+=se,ne>=ie&&(ee+=Q)}q=we}d.appendASCIIString("</span>")}return Pe.setPartData(k,$.length-1,ae,ue),R&&d.appendASCIIString("<span>&hellip;</span>"),d.appendASCIIString("</span>"),new H(Pe,le,L)}},bexQ:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("keybindingService")},bfR1:function(Lt,j,e){"use strict";e.r(j);var T=e("3/fG"),re=e("sswD"),J=e("Yr1X"),I=function(){var H=function(u,y){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,f){_.__proto__=f}||function(_,f){for(var v in f)f.hasOwnProperty(v)&&(_[v]=f[v])},H(u,y)};return function(x,u){H(x,u);function y(){this.constructor=x}x.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),U=function(H){I(x,H);function x(){return H.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 x.prototype.run=function(u,y){J.a.setZoomLevel(J.a.getZoomLevel()+1)},x}(re.b),z=function(H){I(x,H);function x(){return H.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 x.prototype.run=function(u,y){J.a.setZoomLevel(J.a.getZoomLevel()-1)},x}(re.b),O=function(H){I(x,H);function x(){return H.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 x.prototype.run=function(u,y){J.a.setZoomLevel(0)},x}(re.b);Object(re.f)(U),Object(re.f)(z),Object(re.f)(O)},bk7F:function(Lt,j,e){"use strict";e.r(j),e.d(j,"BracketMatchingController",function(){return E});var T=e("8ATB"),re=e.n(T),J=e("3/fG"),I=e("X+cX"),U=e("pmY6"),z=e("sswD"),O=e("cGHE"),H=e("aokT"),x=e("gCVg"),u=e("wQH0"),y=e("M1Kb"),_=e("tX9W"),f=e("kYye"),v=e("MD5Z"),w=e("t9D7"),p=e("fjLI"),c=function(){var L=function(k,R){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ie){$.__proto__=ie}||function($,ie){for(var W in ie)ie.hasOwnProperty(W)&&($[W]=ie[W])},L(k,R)};return function(A,k){L(A,k);function R(){this.constructor=A}A.prototype=k===null?Object.create(k):(R.prototype=k.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(L){c(A,L);function A(){return L.call(this,{id:"editor.action.jumpToBracket",label:J.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:u.a.editorTextFocus,primary:2048|1024|88,weight:100}})||this}return A.prototype.run=function(k,R){var $=E.get(R);if(!$)return;$.jumpToBracket()},A}(z.b),d=function(L){c(A,L);function A(){return L.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 A.prototype.run=function(k,R,$){var ie=E.get(R);if(!ie)return;var W=!0;$&&$.selectBrackets===!1&&(W=!1),ie.selectToBracket(W)},A}(z.b),m=function(){function L(A,k,R){this.position=A,this.brackets=k,this.options=R}return L}(),E=function(L){c(A,L);function A(k){var R=L.call(this)||this;return R._editor=k,R._lastBracketsData=[],R._lastVersionId=0,R._decorations=[],R._updateBracketsSoon=R._register(new I.d(function(){return R._updateBrackets()},50)),R._matchBrackets=R._editor.getOption(53),R._updateBracketsSoon.schedule(),R._register(k.onDidChangeCursorPosition(function($){if(R._matchBrackets==="never")return;R._updateBracketsSoon.schedule()})),R._register(k.onDidChangeModelContent(function($){R._updateBracketsSoon.schedule()})),R._register(k.onDidChangeModel(function($){R._lastBracketsData=[],R._decorations=[],R._updateBracketsSoon.schedule()})),R._register(k.onDidChangeModelLanguageConfiguration(function($){R._lastBracketsData=[],R._updateBracketsSoon.schedule()})),R._register(k.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 A.get=function(k){return k.getContribution(A.ID)},A.prototype.jumpToBracket=function(){if(!this._editor.hasModel())return;var k=this._editor.getModel(),R=this._editor.getSelections().map(function($){var ie=$.getStartPosition(),W=k.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=k.findEnclosingBrackets(ie);if(le)B=le[0].getStartPosition();else{var Ce=k.findNextBracket(ie);Ce&&Ce.range&&(B=Ce.range.getStartPosition())}}return B?new x.a(B.lineNumber,B.column,B.lineNumber,B.column):new x.a(ie.lineNumber,ie.column,ie.lineNumber,ie.column)});this._editor.setSelections(R),this._editor.revealRange(R[0])},A.prototype.selectToBracket=function(k){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 Ce=null,Me=null;if(B){B.sort(H.a.compareRangesUsingStarts);var Te=B[0],Fe=B[1];Ce=k?Te.getStartPosition():Te.getEndPosition(),Me=k?Fe.getEndPosition():Fe.getStartPosition()}Ce&&Me&&$.push(new x.a(Ce.lineNumber,Ce.column,Me.lineNumber,Me.column))}),$.length>0&&(this._editor.setSelections($),this._editor.revealRange($[0]))},A.prototype._updateBrackets=function(){if(this._matchBrackets==="never")return;this._recomputeBrackets();for(var k=[],R=0,$=0,ie=this._lastBracketsData;$<ie.length;$++){var W=ie[$],B=W.brackets;B&&(k[R++]={range:B[0],options:W.options},k[R++]={range:B[1],options:W.options})}this._decorations=this._editor.deltaDecorations(this._decorations,k)},A.prototype._recomputeBrackets=function(){if(!this._editor.hasModel()){this._lastBracketsData=[],this._lastVersionId=0;return}var k=this._editor.getSelections();if(k.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,Ce=k.length;le<Ce;le++){var Me=k[le];Me.isEmpty()&&(W[B++]=Me.getStartPosition())}W.length>1&&W.sort(O.a.compare);for(var Te=[],Fe=0,Ue=0,Pe=ie.length,le=0,Ce=W.length;le<Ce;le++){for(var ne=W[le];Ue<Pe&&ie[Ue].position.isBefore(ne);)Ue++;if(Ue<Pe&&ie[Ue].position.equals(ne))Te[Fe++]=ie[Ue];else{var ee=R.matchBracket(ne),ae=A._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!ee&&this._matchBrackets==="always"&&(ee=R.findEnclosingBrackets(ne,20),ae=A._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),Te[Fe++]=new m(ne,ee,ae)}}this._lastBracketsData=Te,this._lastVersionId=$},A.ID="editor.contrib.bracketMatchingController",A._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=_.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(w.f)(s),position:y.d.Center}}),A._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=_.a.register({stickiness:1,className:"bracket-match"}),A}(U.a);Object(z.h)(E.ID,E),Object(z.f)(d),Object(z.f)(l),Object(w.e)(function(L,A){var k=L.getColor(f.c);k&&A.addRule(".monaco-editor .bracket-match { background-color: "+k+"; }");var R=L.getColor(f.d);R&&A.addRule(".monaco-editor .bracket-match { border: 1px solid "+R+"; }")}),p.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(Lt,j,e){"use strict";e.r(j),e.d(j,"LanguageServiceDefaultsImpl",function(){return I});var T=e("M/lh"),re=e.n(T);"use strict";var J=monaco.Emitter,I=function(){function s(l,d,m){this._onDidChange=new J,this._languageId=l,this.setOptions(d),this.setModeConfiguration(m)}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}(),U={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:U,suggest:{html5:!0,angular1:!0,ionic:!0}},O={format:U,suggest:{html5:!0}},H={format:U,suggest:{html5:!0,razor:!0}};function x(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===u,documentFormattingEdits:s===u,documentRangeFormattingEdits:s===u}}var u="html",y="handlebars",_="razor",f=new I(u,z,x(u)),v=new I(y,O,x(y)),w=new I(_,H,x(_));function p(){return{htmlDefaults:f,razorDefaults:w,handlebarDefaults:v}}monaco.languages.html=p();function c(){return e.e(141).then(e.bind(null,"+lu7"))}monaco.languages.onLanguage(u,function(){c().then(function(s){return s.setupMode(f)})}),monaco.languages.onLanguage(y,function(){c().then(function(s){return s.setupMode(v)})}),monaco.languages.onLanguage(_,function(){c().then(function(s){return s.setupMode(w)})})},c9ML:function(Lt,j,e){"use strict";e.r(j);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(189).then(e.bind(null,"QJnQ"))}})},cGHE:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});var T=function(){function re(J,I){this.lineNumber=J,this.column=I}return re.prototype.with=function(J,I){return J===void 0&&(J=this.lineNumber),I===void 0&&(I=this.column),J===this.lineNumber&&I===this.column?this:new re(J,I)},re.prototype.delta=function(J,I){return J===void 0&&(J=0),I===void 0&&(I=0),this.with(this.lineNumber+J,this.column+I)},re.prototype.equals=function(J){return re.equals(this,J)},re.equals=function(J,I){return!J&&!I?!0:!!J&&!!I&&J.lineNumber===I.lineNumber&&J.column===I.column},re.prototype.isBefore=function(J){return re.isBefore(this,J)},re.isBefore=function(J,I){return J.lineNumber<I.lineNumber?!0:I.lineNumber<J.lineNumber?!1:J.column<I.column},re.prototype.isBeforeOrEqual=function(J){return re.isBeforeOrEqual(this,J)},re.isBeforeOrEqual=function(J,I){return J.lineNumber<I.lineNumber?!0:I.lineNumber<J.lineNumber?!1:J.column<=I.column},re.compare=function(J,I){var U=J.lineNumber|0,z=I.lineNumber|0;if(U===z){var O=J.column|0,H=I.column|0;return O-H}return U-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(Lt,j,e){"use strict";e.r(j);var T=e("6OMU"),re=e("JQT/"),J=e("/kV6"),I=e("pmY6"),U=e("sswD"),z=e("Vxe3"),O=e("MXAL"),H=e("aokT"),x=e("wQH0"),u=e("twdY"),y=e("pAvP"),_=e("OBOq"),f=e("/cxE"),v=e("bY76"),w=e("vATl"),p=e("sFUC"),c=e("cGHE"),s=e("gCVg"),l=e("G2kB"),d=e("0/Sa"),m=function(){function Re(){}return Re._handleEolEdits=function(Ee,ve){for(var Q=void 0,C=[],F=0,se=ve;F<se.length;F++){var oe=se[F];typeof oe.eol=="number"&&(Q=oe.eol),oe.range&&typeof oe.text=="string"&&C.push(oe)}return typeof Q=="number"&&(Ee.hasModel()&&Ee.getModel().pushEOL(Q)),C},Re._isFullModelReplaceEdit=function(Ee,ve){if(!Ee.hasModel())return!1;var Q=Ee.getModel(),C=Q.validateRange(ve.range),F=Q.getFullModelRange();return F.equalsRange(C)},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(C){return d.a.replace(H.a.lift(C.range),C.text)})):Ee.executeEdits("formatEditsCommand",Q.map(function(C){return d.a.replaceMove(H.a.lift(C.range),C.text)})),Ee.pushUndoStop()},Re}(),E=e("3/fG"),L=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}(),A=e("Cg/j"),k=e("24hK"),R=e("nnTU"),$=e("746U"),ie=function(Re,Ee,ve,Q){function C(F){return F instanceof ve?F:new ve(function(se){se(F)})}return new(ve||(ve=Promise))(function(F,se){function oe(Se){try{De(Q.next(Se))}catch(Ve){se(Ve)}}function be(Se){try{De(Q.throw(Se))}catch(Ve){se(Ve)}}function De(Se){Se.done?F(Se.value):C(Se.value).then(oe,be)}De((Q=Q.apply(Re,Ee||[])).next())})},W=function(Re,Ee){var ve={label:0,sent:function(){if(F[0]&1)throw F[1];return F[1]},trys:[],ops:[]},Q,C,F,se;return se={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function oe(De){return function(Se){return be([De,Se])}}function be(De){if(Q)throw new TypeError("Generator is already executing.");for(;ve;)try{if(Q=1,C&&(F=De[0]&2?C.return:De[0]?C.throw||((F=C.return)&&F.call(C),0):C.next)&&!(F=F.call(C,De[1])).done)return F;(C=0,F)&&(De=[De[0]&2,F.value]);switch(De[0]){case 0:case 1:F=De;break;case 4:return ve.label++,{value:De[1],done:!1};case 5:ve.label++,C=De[1],De=[0];continue;case 7:De=ve.ops.pop(),ve.trys.pop();continue;default:if(!(F=ve.trys,F=F.length>0&&F[F.length-1])&&(De[0]===6||De[0]===2)){ve=0;continue}if(De[0]===3&&(!F||De[1]>F[0]&&De[1]<F[3])){ve.label=De[1];break}if(De[0]===6&&ve.label<F[1]){ve.label=F[1],F=De;break}if(F&&ve.label<F[2]){ve.label=F[2],ve.ops.push(De);break}F[2]&&ve.ops.pop(),ve.trys.pop();continue}De=Ee.call(Re,ve)}catch(Se){De=[6,Se],C=0}finally{Q=F=0}if(De[0]&5)throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}};function B(Re){if(Re=Re.filter(function(F){return F.range}),!Re.length)return;for(var Ee=Re[0].range,ve=1;ve<Re.length;ve++)Ee=H.a.plusRange(Ee,Re[ve].range);var Q=Ee.startLineNumber,C=Ee.endLineNumber;Q===C?Re.length===1?Object(_.a)(E.a("hint11","Made 1 formatting edit on line {0}",Q)):Object(_.a)(E.a("hintn1","Made {0} formatting edits on line {1}",Re.length,Q)):Re.length===1?Object(_.a)(E.a("hint1n","Made 1 formatting edit between lines {0} and {1}",Q,C)):Object(_.a)(E.a("hintnn","Made {0} formatting edits between lines {1} and {2}",Re.length,Q,C))}function le(Re){for(var Ee=[],ve=new Set,Q=u.g.ordered(Re),C=0,F=Q;C<F.length;C++){var se=F[C];Ee.push(se),se.extensionId&&ve.add(L.toKey(se.extensionId))}for(var oe=u.j.ordered(Re),be=function(Qe){if(Qe.extensionId){if(ve.has(L.toKey(Qe.extensionId)))return"continue";ve.add(L.toKey(Qe.extensionId))}Ee.push({displayName:Qe.displayName,extensionId:Qe.extensionId,provideDocumentFormattingEdits:function(pt,Rt,Mt){return Qe.provideDocumentRangeFormattingEdits(pt,pt.getFullModelRange(),Rt,Mt)}})},De=0,Se=oe;De<Se.length;De++){var se=Se[De];be(se)}return Ee}var Ce=function(){function Re(){}return Re.select=function(Ee,ve,Q){return ie(this,void 0,void 0,function(){var C;return W(this,function(F){switch(F.label){case 0:return Ee.length===0?[2,void 0]:(C=Re._selectors.iterator().next().value,C?[4,C(Ee,ve,Q)]:[3,2]);case 1:return[2,F.sent()];case 2:return[2,Ee[0]]}})})},Re._selectors=new k.a,Re}();function Me(Re,Ee,ve,Q,C){return ie(this,void 0,void 0,function(){var F,se,oe,be;return W(this,function(De){switch(De.label){case 0:return F=Re.get(A.a),se=Object(p.a)(Ee)?Ee.getModel():Ee,oe=u.j.ordered(se),[4,Ce.select(oe,se,Q)];case 1:return be=De.sent(),be?[4,F.invokeFunction(Te,be,Ee,ve,C)]:[3,3];case 2:De.sent(),De.label=3;case 3:return[2]}})})}function Te(Re,Ee,ve,Q,C){return ie(this,void 0,void 0,function(){var F,se,oe,be,De,Se,Ve;return W(this,function(Qe){switch(Qe.label){case 0:F=Re.get(y.a),Object(p.a)(ve)?(se=ve.getModel(),oe=new w.b(ve,1|4,C)):(se=ve,oe=new w.d(ve,C)),Qe.label=1;case 1:return Qe.trys.push([1,,4,5]),[4,Ee.provideDocumentRangeFormattingEdits(se,Q,se.getFormattingOptions(),oe.token)];case 2:return De=Qe.sent(),[4,F.computeMoreMinimalEdits(se.uri,De)];case 3:return be=Qe.sent(),oe.token.isCancellationRequested?[2,!0]:[3,5];case 4:return oe.dispose(),[7];case 5:return!be||be.length===0?[2,!1]:(Object(p.a)(ve)?(m.execute(ve,be),B(be),ve.pushUndoStop(),ve.revealPositionInCenterIfOutsideViewport(ve.getPosition(),1)):(Se=be[0].range,Ve=new s.a(Se.startLineNumber,Se.startColumn,Se.endLineNumber,Se.endColumn),se.pushEditOperations([Ve],be.map(function(it){return{text:it.text,range:H.a.lift(it.range),forceMoveMarkers:!0}}),function(it){for(var pt=0,Rt=it;pt<Rt.length;pt++){var Mt=Rt[pt].range;if(H.a.areIntersectingOrTouching(Mt,Ve))return[new s.a(Mt.startLineNumber,Mt.startColumn,Mt.endLineNumber,Mt.endColumn)]}return null})),[2,!0])}})})}function Fe(Re,Ee,ve,Q){return ie(this,void 0,void 0,function(){var C,F,se,oe;return W(this,function(be){switch(be.label){case 0:return C=Re.get(A.a),F=Object(p.a)(Ee)?Ee.getModel():Ee,se=le(F),[4,Ce.select(se,F,ve)];case 1:return oe=be.sent(),oe?[4,C.invokeFunction(Ue,oe,Ee,ve,Q)]:[3,3];case 2:be.sent(),be.label=3;case 3:return[2]}})})}function Ue(Re,Ee,ve,Q,C){return ie(this,void 0,void 0,function(){var F,se,oe,be,De,Se,Ve;return W(this,function(Qe){switch(Qe.label){case 0:F=Re.get(y.a),Object(p.a)(ve)?(se=ve.getModel(),oe=new w.b(ve,1|4,C)):(se=ve,oe=new w.d(ve,C)),Qe.label=1;case 1:return Qe.trys.push([1,,4,5]),[4,Ee.provideDocumentFormattingEdits(se,se.getFormattingOptions(),oe.token)];case 2:return De=Qe.sent(),[4,F.computeMoreMinimalEdits(se.uri,De)];case 3:return be=Qe.sent(),oe.token.isCancellationRequested?[2,!0]:[3,5];case 4:return oe.dispose(),[7];case 5:return!be||be.length===0?[2,!1]:(Object(p.a)(ve)?(m.execute(ve,be),Q!==2&&(B(be),ve.pushUndoStop(),ve.revealPositionInCenterIfOutsideViewport(ve.getPosition(),1))):(Se=be[0].range,Ve=new s.a(Se.startLineNumber,Se.startColumn,Se.endLineNumber,Se.endColumn),se.pushEditOperations([Ve],be.map(function(it){return{text:it.text,range:H.a.lift(it.range),forceMoveMarkers:!0}}),function(it){for(var pt=0,Rt=it;pt<Rt.length;pt++){var Mt=Rt[pt].range;if(H.a.areIntersectingOrTouching(Mt,Ve))return[new s.a(Mt.startLineNumber,Mt.startColumn,Mt.endLineNumber,Mt.endColumn)]}return null})),[2,!0])}})})}function Pe(Re,Ee,ve,Q,C){return ie(this,void 0,void 0,function(){var F,se,oe,be,De;return W(this,function(Se){switch(Se.label){case 0:F=u.j.ordered(Ee),se=0,oe=F,Se.label=1;case 1:return se<oe.length?(be=oe[se],[4,Promise.resolve(be.provideDocumentRangeFormattingEdits(Ee,ve,Q,C)).catch(f.f)]):[3,5];case 2:return De=Se.sent(),Object(T.q)(De)?[4,Re.computeMoreMinimalEdits(Ee.uri,De)]:[3,4];case 3:return[2,Se.sent()];case 4:return se++,[3,1];case 5:return[2,void 0]}})})}function ne(Re,Ee,ve,Q){return ie(this,void 0,void 0,function(){var C,F,se,oe,be;return W(this,function(De){switch(De.label){case 0:C=le(Ee),F=0,se=C,De.label=1;case 1:return F<se.length?(oe=se[F],[4,Promise.resolve(oe.provideDocumentFormattingEdits(Ee,ve,Q)).catch(f.f)]):[3,5];case 2:return be=De.sent(),Object(T.q)(be)?[4,Re.computeMoreMinimalEdits(Ee.uri,be)]:[3,4];case 3:return[2,De.sent()];case 4:return F++,[3,1];case 5:return[2,void 0]}})})}function ee(Re,Ee,ve,Q,C){var F=u.t.ordered(Ee);return F.length===0||F[0].autoFormatTriggerCharacters.indexOf(Q)<0?Promise.resolve(void 0):Promise.resolve(F[0].provideOnTypeFormattingEdits(Ee,ve,Q,C,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],C=Ee[1],F=Ee[2];Object($.a)(v.a.isUri(Q)),Object($.a)(H.a.isIRange(C));var se=Re.get(l.a).getModel(Q);if(!se)throw Object(f.b)("resource");return Pe(Re.get(y.a),se,H.a.lift(C),F,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],C=Ee[1];Object($.a)(v.a.isUri(Q));var F=Re.get(l.a).getModel(Q);if(!F)throw Object(f.b)("resource");return ne(Re.get(y.a),F,C,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],C=Ee[1],F=Ee[2],se=Ee[3];Object($.a)(v.a.isUri(Q)),Object($.a)(c.a.isIPosition(C)),Object($.a)(typeof F=="string");var oe=Re.get(l.a).getModel(Q);if(!oe)throw Object(f.b)("resource");return ee(Re.get(y.a),oe,c.a.lift(C),F,se)});var ae=e("T8No"),q=function(){var Re=function(ve,Q){return Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,F){C.__proto__=F}||function(C,F){for(var se in F)F.hasOwnProperty(se)&&(C[se]=F[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)}}(),ue=function(Re,Ee,ve,Q){var C=arguments.length,F=C<3?Ee:Q===null?Q=Object.getOwnPropertyDescriptor(Ee,ve):Q,se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(Re,Ee,ve,Q);else for(var oe=Re.length-1;oe>=0;oe--)(se=Re[oe])&&(F=(C<3?se(F):C>3?se(Ee,ve,F):se(Ee,ve))||F);return C>3&&F&&Object.defineProperty(Ee,ve,F),F},X=function(Re,Ee){return function(ve,Q){Ee(ve,Q,Re)}},he=function(Re,Ee,ve,Q){function C(F){return F instanceof ve?F:new ve(function(se){se(F)})}return new(ve||(ve=Promise))(function(F,se){function oe(Se){try{De(Q.next(Se))}catch(Ve){se(Ve)}}function be(Se){try{De(Q.throw(Se))}catch(Ve){se(Ve)}}function De(Se){Se.done?F(Se.value):C(Se.value).then(oe,be)}De((Q=Q.apply(Re,Ee||[])).next())})},je=function(Re,Ee){var ve={label:0,sent:function(){if(F[0]&1)throw F[1];return F[1]},trys:[],ops:[]},Q,C,F,se;return se={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function oe(De){return function(Se){return be([De,Se])}}function be(De){if(Q)throw new TypeError("Generator is already executing.");for(;ve;)try{if(Q=1,C&&(F=De[0]&2?C.return:De[0]?C.throw||((F=C.return)&&F.call(C),0):C.next)&&!(F=F.call(C,De[1])).done)return F;(C=0,F)&&(De=[De[0]&2,F.value]);switch(De[0]){case 0:case 1:F=De;break;case 4:return ve.label++,{value:De[1],done:!1};case 5:ve.label++,C=De[1],De=[0];continue;case 7:De=ve.ops.pop(),ve.trys.pop();continue;default:if(!(F=ve.trys,F=F.length>0&&F[F.length-1])&&(De[0]===6||De[0]===2)){ve=0;continue}if(De[0]===3&&(!F||De[1]>F[0]&&De[1]<F[3])){ve.label=De[1];break}if(De[0]===6&&ve.label<F[1]){ve.label=F[1],F=De;break}if(F&&ve.label<F[2]){ve.label=F[2],ve.ops.push(De);break}F[2]&&ve.ops.pop(),ve.trys.pop();continue}De=Ee.call(Re,ve)}catch(Se){De=[6,Se],C=0}finally{Q=F=0}if(De[0]&5)throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}},Xe=function(){function Re(Ee,ve){var Q=this;this._workerService=ve,this._callOnDispose=new I.b,this._callOnModel=new I.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(u.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=u.t.ordered(ve)[0];if(!Q||!Q.autoFormatTriggerCharacters)return;for(var C=new O.b,F=0,se=Q.autoFormatTriggerCharacters;F<se.length;F++){var oe=se[F];C.add(oe.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType(function(be){var De=be.charCodeAt(be.length-1);C.has(De)&&Ee._trigger(String.fromCharCode(De))}))},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(),C=this._editor.getPosition(),F=!1,se=this._editor.onDidChangeModelContent(function(oe){if(oe.isFlush){F=!0,se.dispose();return}for(var be=0,De=oe.changes.length;be<De;be++){var Se=oe.changes[be];if(Se.range.endLineNumber<=C.lineNumber){F=!0,se.dispose();return}}});ee(this._workerService,Q,C,Ee,Q.getFormattingOptions()).then(function(oe){if(se.dispose(),F)return;Object(T.q)(oe)&&(m.execute(ve._editor,oe),B(oe))},function(oe){throw se.dispose(),oe})},Re.ID="editor.contrib.autoFormat",Re=ue([X(1,y.a)],Re),Re}(),me=function(){function Re(Ee,ve){var Q=this;this.editor=Ee,this._instantiationService=ve,this._callOnDispose=new I.b,this._callOnModel=new I.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(u.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(!u.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(Me,this.editor,Ee,2,re.a.None).catch(f.e)},Re.ID="editor.contrib.formatOnPaste",Re=ue([X(1,A.a)],Re),Re}(),ge=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(x.a.writable,x.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:ae.a.and(x.a.editorTextFocus,x.a.hasDocumentFormattingProvider),primary:1024|512|36,linux:{primary:2048|1024|39},weight:100},contextMenuOpts:{when:x.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 C;return je(this,function(F){switch(F.label){case 0:return Q.hasModel()?(C=ve.get(A.a),[4,C.invokeFunction(Fe,Q,1,re.a.None)]):[3,2];case 1:F.sent(),F.label=2;case 2:return[2]}})})},Ee}(U.b),we=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(x.a.writable,x.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:ae.a.and(x.a.editorTextFocus,x.a.hasDocumentSelectionFormattingProvider),primary:Object(J.a)(2048|41,2048|36),weight:100},contextMenuOpts:{when:ae.a.and(x.a.hasDocumentSelectionFormattingProvider,x.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 C,F,se;return je(this,function(oe){switch(oe.label){case 0:return Q.hasModel()?(C=ve.get(A.a),F=Q.getModel(),se=Q.getSelection(),se.isEmpty()&&(se=new H.a(se.startLineNumber,1,se.startLineNumber,F.getLineMaxColumn(se.startLineNumber))),[4,C.invokeFunction(Me,Q,se,1,re.a.None)]):[2];case 1:return oe.sent(),[2]}})})},Ee}(U.b);Object(U.h)(Xe.ID,Xe),Object(U.h)(me.ID,me),Object(U.f)(ge),Object(U.f)(we),R.a.registerCommand("editor.action.format",function(Re){return he(void 0,void 0,void 0,function(){var Ee,ve;return je(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(Lt,j,e){"use strict";e.d(j,"a",function(){return w});var T=e("undH"),re=e.n(T),J=e("pmY6"),I=e("D3Dy"),U=e("MNsG"),z=e("746U"),O=e("pg8w"),H=e("XSiN"),x=e("MI8n"),u=e("EffR"),y=e("4y0V"),_=function(){var p=function(s,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var E in m)m.hasOwnProperty(E)&&(d[E]=m[E])},p(s,l)};return function(c,s){p(c,s);function l(){this.constructor=c}c.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),f=function(){for(var p=0,c=0,s=arguments.length;c<s;c++)p+=arguments[c].length;for(var l=Array(p),d=0,c=0;c<s;c++)for(var m=arguments[c],E=0,L=m.length;E<L;E++,d++)l[d]=m[E];return l},v=!1,w=function(p){_(c,p);function c(s,l,d){d===void 0&&(d={});var m=p.call(this)||this;return m._state=3,m._onDidEnablementChange=m._register(new x.a),m.onDidEnablementChange=m._onDidEnablementChange.event,m._onDidStart=m._register(new x.a),m.onDidStart=m._onDidStart.event,m._onDidChange=m._register(new x.a),m.onDidChange=m._onDidChange.event,m._onDidReset=m._register(new x.a),m.onDidReset=m._onDidReset.event,m._onDidEnd=m._register(new x.a),m.onDidEnd=m._onDidEnd.event,m.linkedSash=void 0,m.orthogonalStartSashDisposables=m._register(new J.b),m.orthogonalEndSashDisposables=m._register(new J.b),m.el=Object(u.q)(s,Object(u.a)(".monaco-sash")),U.e&&Object(u.f)(m.el,"mac"),m._register(Object(y.a)(m.el,"mousedown")(m.onMouseDown,m)),m._register(Object(y.a)(m.el,"dblclick")(m.onMouseDoubleClick,m)),m._register(O.b.addTarget(m.el)),m._register(Object(y.a)(m.el,O.a.Start)(m.onTouchStart,m)),I.j&&Object(u.f)(m.el,"touch"),m.setOrientation(d.orientation||0),m.hidden=!1,m.layoutProvider=l,m.orthogonalStartSash=d.orthogonalStartSash,m.orthogonalEndSash=d.orthogonalEndSash,Object(u.Y)(m.el,"debug",v),m}return Object.defineProperty(c.prototype,"state",{get:function(){return this._state},set:function(l){if(this._state===l)return;Object(u.Y)(this.el,"disabled",l===0),Object(u.Y)(this.el,"minimum",l===1),Object(u.Y)(this.el,"maximum",l===2),this._state=l,this._onDidEnablementChange.fire(l)},enumerable:!0,configurable:!0}),Object.defineProperty(c.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(c.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}),c.prototype.setOrientation=function(s){this.orientation=s,this.orientation===1?(Object(u.f)(this.el,"horizontal"),Object(u.P)(this.el,"vertical")):(Object(u.P)(this.el,"horizontal"),Object(u.f)(this.el,"vertical")),this.layoutProvider&&this.layout()},c.prototype.onMouseDown=function(s){var l=this;u.c.stop(s,!1);var d=!1;if(!s.__orthogonalSashEvent){var m=this.getOrthogonalSash(s);m&&(d=!0,s.__orthogonalSashEvent=!0,m.onMouseDown(s))}if(this.linkedSash&&!s.__linkedSashEvent&&(s.__linkedSashEvent=!0,this.linkedSash.onMouseDown(s)),!this.state)return;for(var E=f(Object(u.D)("iframe"),Object(u.D)("webview")),L=0,A=E;L<A.length;L++){var k=A[L];k.style.pointerEvents="none"}var R=new H.b(s),$=R.posx,ie=R.posy,W=R.altKey,B={startX:$,currentX:$,startY:ie,currentY:ie,altKey:W};Object(u.f)(this.el,"active"),this._onDidStart.fire(B);var le=Object(u.w)(this.el),Ce=function(){var Pe="";d?Pe="all-scroll":l.orientation===1?l.state===1?Pe="s-resize":l.state===2?Pe="n-resize":Pe=U.e?"row-resize":"ns-resize":l.state===1?Pe="e-resize":l.state===2?Pe="w-resize":Pe=U.e?"col-resize":"ew-resize",le.innerHTML="* { cursor: "+Pe+" !important; }"},Me=new J.b;Ce(),d||this.onDidEnablementChange(Ce,null,Me);var Te=function(Pe){u.c.stop(Pe,!1);var ne=new H.b(Pe),ee={startX:$,currentX:ne.posx,startY:ie,currentY:ne.posy,altKey:W};l._onDidChange.fire(ee)},Fe=function(Pe){u.c.stop(Pe,!1),l.el.removeChild(le),Object(u.P)(l.el,"active"),l._onDidEnd.fire(),Me.dispose();for(var ne=0,ee=E;ne<ee.length;ne++){var ae=ee[ne];ae.style.pointerEvents="auto"}};Object(y.a)(window,"mousemove")(Te,null,Me),Object(y.a)(window,"mouseup")(Fe,null,Me)},c.prototype.onMouseDoubleClick=function(s){var l=this.getOrthogonalSash(s);l&&l._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},c.prototype.onTouchStart=function(s){var l=this;u.c.stop(s);var d=[],m=s.pageX,E=s.pageY,L=s.altKey;this._onDidStart.fire({startX:m,currentX:m,startY:E,currentY:E,altKey:L}),d.push(Object(u.j)(this.el,O.a.Change,function(A){z.h(A.pageX)&&z.h(A.pageY)&&l._onDidChange.fire({startX:m,currentX:A.pageX,startY:E,currentY:A.pageY,altKey:L})})),d.push(Object(u.j)(this.el,O.a.End,function(A){l._onDidEnd.fire(),Object(J.f)(d)}))},c.prototype.layout=function(){var s=I.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")}},c.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},c.prototype.onOrthogonalStartSashEnablementChange=function(s){Object(u.Y)(this.el,"orthogonal-start",s!==0)},c.prototype.onOrthogonalEndSashEnablementChange=function(s){Object(u.Y)(this.el,"orthogonal-end",s!==0)},c.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},c.prototype.dispose=function(){p.prototype.dispose.call(this),this.el.remove()},c}(J.a)},cMvZ:function(Lt,j,e){"use strict";e.d(j,"a",function(){return p});var T=e("MI8n"),re=e("pmY6"),J=e("N0LK"),I=e("0JNc"),U=e("KDc4"),z=e("BFtn"),O=function(){function c(s){if(s.autoClosingPairs?this._autoClosingPairs=s.autoClosingPairs.map(function(d){return new U.b(d)}):s.brackets?this._autoClosingPairs=s.brackets.map(function(d){return new U.b({open:d[0],close:d[1]})}):this._autoClosingPairs=[],s.__electricCharacterSupport&&s.__electricCharacterSupport.docComment){var l=s.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new U.b({open:l.open,close:l.close||""}))}this._autoCloseBefore=typeof s.autoCloseBefore=="string"?s.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=s.surroundingPairs||this._autoClosingPairs}return c.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},c.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},c.shouldAutoClosePair=function(s,l,d){if(l.getTokenCount()===0)return!0;var m=l.findTokenIndexAtOffset(d-2),E=l.getStandardTokenType(m);return s.isOK(E)},c.prototype.getSurroundingPairs=function(){return this._surroundingPairs},c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])>
`,c}(),H=e("EIAu"),x=function(){function c(s){this._richEditBrackets=s}return c.prototype.getElectricCharacters=function(){var s=[];if(this._richEditBrackets)for(var l=0,d=this._richEditBrackets.brackets;l<d.length;l++)for(var m=d[l],E=0,L=m.close;E<L.length;E++){var A=L[E],k=A.charAt(A.length-1);s.push(k)}return s=s.filter(function(R,$,ie){return ie.indexOf(R)===$}),s},c.prototype.onElectricCharacter=function(s,l,d){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;var m=l.findTokenIndexAtOffset(d-1);if(Object(z.b)(l.getStandardTokenType(m)))return null;var E=this._richEditBrackets.reversedRegex,L=l.getLineContent().substring(0,d-1)+s,A=H.a.findPrevBracketInRange(E,1,L,0,L.length);if(!A)return null;var k=L.substring(A.startColumn-1,A.endColumn-1).toLowerCase(),R=this._richEditBrackets.textIsOpenBracket[k];if(R)return null;var $=l.getActualLineContentBefore(A.startColumn-1);return/^\s*$/.test($)?{matchOpenBracket:k}:null},c}(),u=function(){function c(s){this._indentationRules=s}return c.prototype.shouldIncrease=function(s){return!!(this._indentationRules&&(this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(s)))},c.prototype.shouldDecrease=function(s){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(s))},c.prototype.shouldIndentNextLine=function(s){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(s))},c.prototype.shouldIgnore=function(s){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(s))},c.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},c}(),y=e("/cxE"),_=function(){function c(s){var l=this;s=s||{},s.brackets=s.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],s.brackets.forEach(function(d){var m=c._createOpenBracketRegExp(d[0]),E=c._createCloseBracketRegExp(d[1]);m&&E&&l._brackets.push({open:d[0],openRegExp:m,close:d[1],closeRegExp:E})}),this._regExpRules=s.onEnterRules||[]}return c.prototype.onEnter=function(s,l,d,m){if(s>=3)for(var E=0,L=this._regExpRules.length;E<L;E++){var A=this._regExpRules[E],k=[{reg:A.beforeText,text:d},{reg:A.afterText,text:m},{reg:A.oneLineAboveText,text:l}].every(function($){return $.reg?$.reg.test($.text):!0});if(k)return A.action}if(s>=2&&(d.length>0&&m.length>0))for(var E=0,L=this._brackets.length;E<L;E++){var R=this._brackets[E];if(R.openRegExp.test(d)&&R.closeRegExp.test(m))return{indentAction:U.a.IndentOutdent}}if(s>=2&&d.length>0)for(var E=0,L=this._brackets.length;E<L;E++){var R=this._brackets[E];if(R.openRegExp.test(d))return{indentAction:U.a.Indent}}return null},c._createOpenBracketRegExp=function(s){var l=J.p(s);return/\B/.test(l.charAt(0))||(l="\\b"+l),l+="\\s*$",c._safeRegExp(l)},c._createCloseBracketRegExp=function(s){var l=J.p(s);return/\B/.test(l.charAt(l.length-1))||(l=l+"\\b"),l="^\\s*"+l,c._safeRegExp(l)},c._safeRegExp=function(s){try{return new RegExp(s)}catch(l){return Object(y.e)(l),null}},c}(),f=function(){function c(s,l,d){this._languageIdentifier=s,this._brackets=null,this._electricCharacter=null;var m=null;l&&(m=l._conf),this._conf=c._mergeConf(m,d),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new _(this._conf):null,this.comments=c._handleComments(this._conf),this.characterPair=new O(this._conf),this.wordDefinition=this._conf.wordPattern||I.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new u(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}return Object.defineProperty(c.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new H.b(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new x(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),c.prototype.onEnter=function(s,l,d,m){return this._onEnterSupport?this._onEnterSupport.onEnter(s,l,d,m):null},c._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}},c._handleComments=function(s){var l=s.comments;if(!l)return null;var d={};if(l.lineComment&&(d.lineCommentToken=l.lineComment),l.blockComment){var m=l.blockComment,E=m[0],L=m[1];d.blockCommentStartToken=E,d.blockCommentEndToken=L}return d},c}(),v=function(){function c(s){this.languageIdentifier=s}return c}(),w=function(){function c(){this._entries=new Map,this._onDidChange=new T.a,this.onDidChange=this._onDidChange.event}return c.prototype.register=function(s,l){var d=this,m=this._getRichEditSupport(s.id),E=new f(s,m,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,m),d._onDidChange.fire(new v(s)))})},c.prototype._getRichEditSupport=function(s){return this._entries.get(s)},c.prototype._getElectricCharacterSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.electricCharacter||null},c.prototype.getElectricCharacters=function(s){var l=this._getElectricCharacterSupport(s);return l?l.getElectricCharacters():[]},c.prototype.onElectricCharacter=function(s,l,d){var m=Object(z.a)(l,d-1),E=this._getElectricCharacterSupport(m.languageId);return E?E.onElectricCharacter(s,m,d-m.firstCharOffset):null},c.prototype.getComments=function(s){var l=this._getRichEditSupport(s);return l&&l.comments||null},c.prototype._getCharacterPairSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.characterPair||null},c.prototype.getAutoClosingPairs=function(s){var l=this._getCharacterPairSupport(s);return l?l.getAutoClosingPairs():[]},c.prototype.getAutoCloseBeforeSet=function(s){var l=this._getCharacterPairSupport(s);return l?l.getAutoCloseBeforeSet():O.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},c.prototype.getSurroundingPairs=function(s){var l=this._getCharacterPairSupport(s);return l?l.getSurroundingPairs():[]},c.prototype.shouldAutoClosePair=function(s,l,d){var m=Object(z.a)(l,d-1);return O.shouldAutoClosePair(s,m,d-m.firstCharOffset)},c.prototype.getWordDefinition=function(s){var l=this._getRichEditSupport(s);return l?Object(I.c)(l.wordDefinition||null):Object(I.c)(null)},c.prototype.getFoldingRules=function(s){var l=this._getRichEditSupport(s);return l?l.foldingRules:{}},c.prototype.getIndentRulesSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.indentRulesSupport||null},c.prototype.getPrecedingValidLine=function(s,l,d){var m=s.getLanguageIdAtPosition(l,0);if(l>1){var E=void 0,L=-1;for(E=l-1;E>=1;E--){if(s.getLanguageIdAtPosition(E,0)!==m)return L;var A=s.getLineContent(E);if(d.shouldIgnore(A)||/^\s+$/.test(A)||A===""){L=E;continue}return E}}return-1},c.prototype.getInheritIndentForLine=function(s,l,d,m){if(m===void 0&&(m=!0),s<4)return null;var E=this.getIndentRulesSupport(l.getLanguageIdentifier().id);if(!E)return null;if(d<=1)return{indentation:"",action:null};var L=this.getPrecedingValidLine(l,d,E);if(L<0)return null;if(L<1)return{indentation:"",action:null};var A=l.getLineContent(L);if(E.shouldIncrease(A)||E.shouldIndentNextLine(A))return{indentation:J.t(A),action:U.a.Indent,line:L};if(E.shouldDecrease(A))return{indentation:J.t(A),action:null,line:L};if(L===1)return{indentation:J.t(l.getLineContent(L)),action:null,line:L};var k=L-1,R=E.getIndentMetadata(l.getLineContent(k));if(!(R&(1|2))&&R&4){for(var $=0,ie=k-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(m)return{indentation:J.t(l.getLineContent(L)),action:null,line:L};for(var ie=L;ie>0;ie--){var W=l.getLineContent(ie);if(E.shouldIncrease(W))return{indentation:J.t(W),action:U.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}},c.prototype.getGoodIndentForLine=function(s,l,d,m,E){if(s<4)return null;var L=this._getRichEditSupport(d);if(!L)return null;var A=this.getIndentRulesSupport(d);if(!A)return null;var k=this.getInheritIndentForLine(s,l,m),R=l.getLineContent(m);if(k){var $=k.line;if($!==void 0){var ie=L.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===U.a.Indent||ie.indentAction===U.a.IndentOutdent?W=E.shiftIndent(W):ie.indentAction===U.a.Outdent&&(W=E.unshiftIndent(W)),A.shouldDecrease(R)&&(W=E.unshiftIndent(W)),ie.appendText&&(W+=ie.appendText),J.t(W)}}return A.shouldDecrease(R)?k.action===U.a.Indent?k.indentation:E.unshiftIndent(k.indentation):k.action===U.a.Indent?E.shiftIndent(k.indentation):k.indentation}return null},c.prototype.getIndentForEnter=function(s,l,d,m){if(s<4)return null;l.forceTokenization(d.startLineNumber);var E=l.getLineTokens(d.startLineNumber),L=Object(z.a)(E,d.startColumn-1),A=L.getLineContent(),k=!1,R;L.firstCharOffset>0&&E.getLanguageId(0)!==L.languageId?(k=!0,R=A.substr(0,d.startColumn-1-L.firstCharOffset)):R=E.getLineContent().substring(0,d.startColumn-1);var $;if(d.isEmpty())$=A.substr(d.startColumn-1-L.firstCharOffset);else{var ie=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);$=ie.getLineContent().substr(d.endColumn-1-L.firstCharOffset)}var W=this.getIndentRulesSupport(L.languageId);if(!W)return null;var B=R,le=J.t(R),Ce={getLineTokens:function(ne){return l.getLineTokens(ne)},getLanguageIdentifier:function(){return l.getLanguageIdentifier()},getLanguageIdAtPosition:function(ne,ee){return l.getLanguageIdAtPosition(ne,ee)},getLineContent:function(ne){return ne===d.startLineNumber?B:l.getLineContent(ne)}},Me=J.t(E.getLineContent()),Te=this.getInheritIndentForLine(s,Ce,d.startLineNumber+1);if(!Te){var Fe=k?Me:le;return{beforeEnter:Fe,afterEnter:Fe}}var Ue=k?Me:Te.indentation;return Te.action===U.a.Indent&&(Ue=m.shiftIndent(Ue)),W.shouldDecrease($)&&(Ue=m.unshiftIndent(Ue)),{beforeEnter:k?Me:le,afterEnter:Ue}},c.prototype.getIndentActionForType=function(s,l,d,m,E){if(s<4)return null;var L=this.getScopedLineTokens(l,d.startLineNumber,d.startColumn),A=this.getIndentRulesSupport(L.languageId);if(!A)return null;var k=L.getLineContent(),R=k.substr(0,d.startColumn-1-L.firstCharOffset),$;if(d.isEmpty())$=k.substr(d.startColumn-1-L.firstCharOffset);else{var ie=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);$=ie.getLineContent().substr(d.endColumn-1-L.firstCharOffset)}if(!A.shouldDecrease(R+$)&&A.shouldDecrease(R+m+$)){var W=this.getInheritIndentForLine(s,l,d.startLineNumber,!1);if(!W)return null;var B=W.indentation;return W.action!==U.a.Indent&&(B=E.unshiftIndent(B)),B}return null},c.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},c.prototype.getEnterAction=function(s,l,d){var m=this.getScopedLineTokens(l,d.startLineNumber,d.startColumn),E=this._getRichEditSupport(m.languageId);if(!E)return null;var L=m.getLineContent(),A=L.substr(0,d.startColumn-1-m.firstCharOffset),k;if(d.isEmpty())k=L.substr(d.startColumn-1-m.firstCharOffset);else{var R=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);k=R.getLineContent().substr(d.endColumn-1-m.firstCharOffset)}var $="";if(d.startLineNumber>1&&m.firstCharOffset===0){var ie=this.getScopedLineTokens(l,d.startLineNumber-1);ie.languageId===m.languageId&&($=ie.getLineContent())}var W=E.onEnter(s,$,A,k);if(!W)return null;var B=W.indentAction,le=W.appendText,Ce=W.removeText||0;le||(B===U.a.Indent||B===U.a.IndentOutdent?le=" ":le="");var Me=this.getIndentationAtPosition(l,d.startLineNumber,d.startColumn);return Ce&&(Me=Me.substring(0,Me.length-Ce)),{indentAction:B,appendText:le,removeText:Ce,indentation:Me}},c.prototype.getIndentationAtPosition=function(s,l,d){var m=s.getLineContent(l),E=J.t(m);return E.length>d-1&&(E=E.substring(0,d-1)),E},c.prototype.getScopedLineTokens=function(s,l,d){s.forceTokenization(l);var m=s.getLineTokens(l),E=typeof d=="undefined"?s.getLineMaxColumn(l)-1:d-1;return Object(z.a)(m,E)},c.prototype.getBracketsSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.brackets||null},c}(),p=new w},"ci+S":function(Lt,j,e){},cl4r:function(Lt,j,e){},cldp:function(Lt,j,e){"use strict";e.r(j);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(139).then(e.bind(null,"7Xl7"))}})},cqdO:function(Lt,j,e){"use strict";e.d(j,"a",function(){return Me}),e.d(j,"f",function(){return Ue}),e.d(j,"e",function(){return Pe}),e.d(j,"d",function(){return q}),e.d(j,"b",function(){return ue}),e.d(j,"c",function(){return ve});var T=e("4rho"),re=e("3/fG"),J=e("pmY6"),I=e("746U"),U=e("6OMU"),z=e("ZCR3"),O=e("EffR"),H=e("MNsG"),x=e("pg8w"),u=e("uDWl"),y=e("MI8n"),_=e("4y0V"),f=function(){var Q=function(F,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,be){oe.__proto__=be}||function(oe,be){for(var De in be)be.hasOwnProperty(De)&&(oe[De]=be[De])},Q(F,se)};return function(C,F){Q(C,F);function se(){this.constructor=C}C.prototype=F===null?Object.create(F):(se.prototype=F.prototype,new se)}}(),v;(function(Q){Q.TREE="tree",Q.FORM="form"})(v||(v={}));var w=function(Q){f(C,Q);function C(F,se){return Q.call(this,"ListError ["+F+"] "+se)||this}return C}(Error),p=e("feEw"),c=e("zrhQ"),s=e("qj0h"),l=function(){function Q(C){this.spliceables=C}return Q.prototype.splice=function(C,F,se){this.spliceables.forEach(function(oe){return oe.splice(C,F,se)})},Q}(),d=e("Sdnv"),m=e("fpMC"),E=function(){var Q=function(F,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,be){oe.__proto__=be}||function(oe,be){for(var De in be)be.hasOwnProperty(De)&&(oe[De]=be[De])},Q(F,se)};return function(C,F){Q(C,F);function se(){this.constructor=C}C.prototype=F===null?Object.create(F):(se.prototype=F.prototype,new se)}}(),L=function(){return L=Object.assign||function(Q){for(var C,F=1,se=arguments.length;F<se;F++){C=arguments[F];for(var oe in C)Object.prototype.hasOwnProperty.call(C,oe)&&(Q[oe]=C[oe])}return Q},L.apply(this,arguments)},A=function(Q,C,F,se){var oe=arguments.length,be=oe<3?C:se===null?se=Object.getOwnPropertyDescriptor(C,F):se,De;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(Q,C,F,se);else for(var Se=Q.length-1;Se>=0;Se--)(De=Q[Se])&&(be=(oe<3?De(be):oe>3?De(C,F,be):De(C,F))||be);return oe>3&&be&&Object.defineProperty(C,F,be),be},k=function(){for(var Q=0,C=0,F=arguments.length;C<F;C++)Q+=arguments[C].length;for(var se=Array(Q),oe=0,C=0;C<F;C++)for(var be=arguments[C],De=0,Se=be.length;De<Se;De++,oe++)se[oe]=be[De];return se},R=function(){function Q(C){this.trait=C,this.renderedElements=[]}return Object.defineProperty(Q.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),Q.prototype.renderTemplate=function(C){return C},Q.prototype.renderElement=function(C,F,se){var oe=Object(U.k)(this.renderedElements,function(De){return De.templateData===se});if(oe>=0){var be=this.renderedElements[oe];this.trait.unrender(se),be.index=F}else{var be={index:F,templateData:se};this.renderedElements.push(be)}this.trait.renderIndex(F,se)},Q.prototype.splice=function(C,F,se){for(var oe=[],be=0,De=this.renderedElements;be<De.length;be++){var Se=De[be];Se.index<C?oe.push(Se):Se.index>=C+F&&oe.push({index:Se.index+se-F,templateData:Se.templateData})}this.renderedElements=oe},Q.prototype.renderIndexes=function(C){for(var F=0,se=this.renderedElements;F<se.length;F++){var oe=se[F],be=oe.index,De=oe.templateData;C.indexOf(be)>-1&&this.trait.renderIndex(be,De)}},Q.prototype.disposeTemplate=function(C){var F=Object(U.k)(this.renderedElements,function(se){return se.templateData===C});if(F<0)return;this.renderedElements.splice(F,1)},Q}(),$=function(){function Q(C){this._trait=C,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(C,F,se){var oe=se.length-F,be=C+F,De=k(this.sortedIndexes.filter(function(Se){return Se<C}),se.map(function(Se,Ve){return Se?Ve+C:-1}).filter(function(Se){return Se!==-1}),this.sortedIndexes.filter(function(Se){return Se>=be}).map(function(Se){return Se+oe}));this.renderer.splice(C,F,se.length),this._set(De,De)},Q.prototype.renderIndex=function(C,F){O.Y(F,this._trait,this.contains(C))},Q.prototype.unrender=function(C){O.P(C,this._trait)},Q.prototype.set=function(C,F){return this._set(C,k(C).sort(ge),F)},Q.prototype._set=function(C,F,se){var oe=this.indexes,be=this.sortedIndexes;this.indexes=C,this.sortedIndexes=F;var De=Xe(be,C);return this.renderer.renderIndexes(De),this._onChange.fire({indexes:C,browserEvent:se}),oe},Q.prototype.get=function(){return this.indexes},Q.prototype.contains=function(C){return Object(U.c)(this.sortedIndexes,C,ge)>=0},Q.prototype.dispose=function(){Object(J.f)(this._onChange)},A([z.a],Q.prototype,"renderer",null),Q}(),ie=function(Q){E(C,Q);function C(){return Q.call(this,"focused")||this}return C.prototype.renderIndex=function(F,se){Q.prototype.renderIndex.call(this,F,se),this.contains(F)?se.setAttribute("aria-selected","true"):se.removeAttribute("aria-selected")},C}($),W=function(){function Q(C,F,se){this.trait=C,this.view=F,this.identityProvider=se}return Q.prototype.splice=function(C,F,se){var oe=this;if(!this.identityProvider)return this.trait.splice(C,F,se.map(function(){return!1}));var be=this.trait.get().map(function(Se){return oe.identityProvider.getId(oe.view.element(Se)).toString()}),De=se.map(function(Se){return be.indexOf(oe.identityProvider.getId(Se).toString())>-1});this.trait.splice(C,F,De)},Q}();function B(Q){return Q.tagName==="INPUT"||Q.tagName==="TEXTAREA"}var le=function(){function Q(C,F,se){this.list=C,this.view=F,this.disposables=new J.b;var oe=se.multipleSelectionSupport!==!1;this.openController=se.openController||ae;var be=y.b.chain(Object(_.a)(F.domNode,"keydown")).filter(function(De){return!B(De.target)}).map(function(De){return new u.a(De)});be.filter(function(De){return De.keyCode===3}).on(this.onEnter,this,this.disposables),be.filter(function(De){return De.keyCode===16}).on(this.onUpArrow,this,this.disposables),be.filter(function(De){return De.keyCode===18}).on(this.onDownArrow,this,this.disposables),be.filter(function(De){return De.keyCode===11}).on(this.onPageUpArrow,this,this.disposables),be.filter(function(De){return De.keyCode===12}).on(this.onPageDownArrow,this,this.disposables),be.filter(function(De){return De.keyCode===9}).on(this.onEscape,this,this.disposables),oe&&be.filter(function(De){return(H.e?De.metaKey:De.ctrlKey)&&De.keyCode===31}).on(this.onCtrlA,this,this.disposables)}return Q.prototype.onEnter=function(C){C.preventDefault(),C.stopPropagation(),this.list.setSelection(this.list.getFocus(),C.browserEvent),this.openController.shouldOpen(C.browserEvent)&&this.list.open(this.list.getFocus(),C.browserEvent)},Q.prototype.onUpArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusPrevious(1,!1,C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onDownArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusNext(1,!1,C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onPageUpArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusPreviousPage(C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onPageDownArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusNextPage(C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onCtrlA=function(C){C.preventDefault(),C.stopPropagation(),this.list.setSelection(Object(U.u)(this.list.length),C.browserEvent),this.view.domNode.focus()},Q.prototype.onEscape=function(C){C.preventDefault(),C.stopPropagation(),this.list.setSelection([],C.browserEvent),this.view.domNode.focus()},Q.prototype.dispose=function(){this.disposables.dispose()},Q}(),Ce;(function(Q){Q[Q.Idle=0]="Idle",Q[Q.Typing=1]="Typing"})(Ce||(Ce={}));var Me=new(function(){function Q(){}return Q.prototype.mightProducePrintableCharacter=function(C){return C.ctrlKey||C.metaKey||C.altKey?!1:C.keyCode>=31&&C.keyCode<=56||C.keyCode>=21&&C.keyCode<=30||C.keyCode>=93&&C.keyCode<=102||C.keyCode>=80&&C.keyCode<=90},Q}()),Te=function(){function Q(C,F,se,oe){this.list=C,this.view=F,this.keyboardNavigationLabelProvider=se,this.delegate=oe,this.enabled=!1,this.state=Ce.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new J.b,this.disposables=new J.b,this.updateOptions(C.options)}return Q.prototype.updateOptions=function(C){var F=typeof C.enableKeyboardNavigation=="undefined"?!0:!!C.enableKeyboardNavigation;F?this.enable():this.disable(),typeof C.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=C.automaticKeyboardNavigation)},Q.prototype.enable=function(){var C=this;if(this.enabled)return;var F=y.b.chain(Object(_.a)(this.view.domNode,"keydown")).filter(function(be){return!B(be.target)}).filter(function(){return C.automaticKeyboardNavigation||C.triggered}).map(function(be){return new u.a(be)}).filter(function(be){return C.delegate.mightProducePrintableCharacter(be)}).forEach(function(be){be.stopPropagation(),be.preventDefault()}).map(function(be){return be.browserEvent.key}).event,se=y.b.debounce(F,function(){return null},800),oe=y.b.reduce(y.b.any(F,se),function(be,De){return De===null?null:(be||"")+De});oe(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(C){if(!C){this.state=Ce.Idle,this.triggered=!1;return}var F=this.list.getFocus(),se=F.length>0?F[0]:0,oe=this.state===Ce.Idle?1:0;this.state=Ce.Typing;for(var be=0;be<this.list.length;be++){var De=(se+be+oe)%this.list.length,Se=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(De)),Ve=Se&&Se.toString();if(typeof Ve=="undefined"||Object(m.g)(C,Ve)){this.list.setFocus([De]),this.list.reveal(De);return}}},Q.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},Q}(),Fe=function(){function Q(C,F){this.list=C,this.view=F,this.disposables=new J.b;var se=y.b.chain(Object(_.a)(F.domNode,"keydown")).filter(function(oe){return!B(oe.target)}).map(function(oe){return new u.a(oe)});se.filter(function(oe){return oe.keyCode===2&&!oe.ctrlKey&&!oe.metaKey&&!oe.shiftKey&&!oe.altKey}).on(this.onTab,this,this.disposables)}return Q.prototype.onTab=function(C){if(C.target!==this.view.domNode)return;var F=this.list.getFocus();if(F.length===0)return;var se=this.view.domElement(F[0]);if(!se)return;var oe=se.querySelector("[tabIndex]");if(!oe||!(oe instanceof HTMLElement)||oe.tabIndex===-1)return;var be=window.getComputedStyle(oe);if(be.visibility==="hidden"||be.display==="none")return;C.preventDefault(),C.stopPropagation(),oe.focus()},Q.prototype.dispose=function(){this.disposables.dispose()},Q}();function Ue(Q){return H.e?Q.browserEvent.metaKey:Q.browserEvent.ctrlKey}function Pe(Q){return Q.browserEvent.shiftKey}function ne(Q){return Q instanceof MouseEvent&&Q.button===2}var ee={isSelectionSingleChangeEvent:Ue,isSelectionRangeChangeEvent:Pe},ae={shouldOpen:function(C){return C instanceof MouseEvent?!ne(C):!0}},q=function(){function Q(C){this.list=C,this.disposables=new J.b,this.multipleSelectionSupport=!(C.options.multipleSelectionSupport===!1),this.multipleSelectionSupport&&(this.multipleSelectionController=C.options.multipleSelectionController||ee),this.openController=C.options.openController||ae,this.mouseSupport=typeof C.options.mouseSupport=="undefined"||!!C.options.mouseSupport,this.mouseSupport&&(C.onMouseDown(this.onMouseDown,this,this.disposables),C.onContextMenu(this.onContextMenu,this,this.disposables),C.onMouseDblClick(this.onDoubleClick,this,this.disposables),C.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(x.b.addTarget(C.getHTMLElement()))),C.onMouseClick(this.onPointer,this,this.disposables),C.onMouseMiddleClick(this.onPointer,this,this.disposables),C.onTap(this.onPointer,this,this.disposables)}return Q.prototype.isSelectionSingleChangeEvent=function(C){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(C):H.e?C.browserEvent.metaKey:C.browserEvent.ctrlKey},Q.prototype.isSelectionRangeChangeEvent=function(C){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(C):C.browserEvent.shiftKey},Q.prototype.isSelectionChangeEvent=function(C){return this.isSelectionSingleChangeEvent(C)||this.isSelectionRangeChangeEvent(C)},Q.prototype.onMouseDown=function(C){document.activeElement!==C.browserEvent.target&&this.list.domFocus()},Q.prototype.onContextMenu=function(C){var F=typeof C.index=="undefined"?[]:[C.index];this.list.setFocus(F,C.browserEvent)},Q.prototype.onPointer=function(C){if(!this.mouseSupport)return;if(B(C.browserEvent.target))return;var F=this.list.getFocus()[0],se=this.list.getSelection();F=F===void 0?se[0]:F;var oe=C.index;if(typeof oe=="undefined"){this.list.setFocus([],C.browserEvent),this.list.setSelection([],C.browserEvent);return}if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(C))return this.changeSelection(C,F);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(C))return this.changeSelection(C,F);this.list.setFocus([oe],C.browserEvent),ne(C.browserEvent)||(this.list.setSelection([oe],C.browserEvent),this.openController.shouldOpen(C.browserEvent)&&this.list.open([oe],C.browserEvent))},Q.prototype.onDoubleClick=function(C){if(B(C.browserEvent.target))return;if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(C))return;var F=this.list.getFocus();this.list.setSelection(F,C.browserEvent),this.list.pin(F)},Q.prototype.changeSelection=function(C,F){var se=C.index;if(this.isSelectionRangeChangeEvent(C)&&F!==void 0){var oe=Math.min(F,se),be=Math.max(F,se),De=Object(U.u)(oe,be+1),Se=this.list.getSelection(),Ve=je(Xe(Se,[F]),F);if(Ve.length===0)return;var Qe=Xe(De,me(Se,Ve));this.list.setSelection(Qe,C.browserEvent)}else if(this.isSelectionSingleChangeEvent(C)){var Se=this.list.getSelection(),Qe=Se.filter(function(Rt){return Rt!==se});this.list.setFocus([se]),Se.length===Qe.length?this.list.setSelection(k(Qe,[se]),C.browserEvent):this.list.setSelection(Qe,C.browserEvent)}},Q.prototype.dispose=function(){this.disposables.dispose()},Q}(),ue=function(){function Q(C,F){this.styleElement=C,this.selectorSuffix=F}return Q.prototype.style=function(C){var F=this.selectorSuffix&&"."+this.selectorSuffix,se=[];C.listBackground&&(C.listBackground.isOpaque()?se.push(".monaco-list"+F+" .monaco-list-rows { background: "+C.listBackground+"; }"):H.e||console.warn("List with id '"+this.selectorSuffix+"' was styled with a non-opaque background color. This will break sub-pixel antialiasing.")),C.listFocusBackground&&(se.push(".monaco-list"+F+":focus .monaco-list-row.focused { background-color: "+C.listFocusBackground+"; }"),se.push(".monaco-list"+F+":focus .monaco-list-row.focused:hover { background-color: "+C.listFocusBackground+"; }")),C.listFocusForeground&&se.push(".monaco-list"+F+":focus .monaco-list-row.focused { color: "+C.listFocusForeground+"; }"),C.listActiveSelectionBackground&&(se.push(".monaco-list"+F+":focus .monaco-list-row.selected { background-color: "+C.listActiveSelectionBackground+"; }"),se.push(".monaco-list"+F+":focus .monaco-list-row.selected:hover { background-color: "+C.listActiveSelectionBackground+"; }")),C.listActiveSelectionForeground&&se.push(".monaco-list"+F+":focus .monaco-list-row.selected { color: "+C.listActiveSelectionForeground+"; }"),C.listFocusAndSelectionBackground&&se.push(`
.monaco-drag-image,
.monaco-list`+F+":focus .monaco-list-row.selected.focused { background-color: "+C.listFocusAndSelectionBackground+`; }
`),C.listFocusAndSelectionForeground&&se.push(`
.monaco-drag-image,
.monaco-list`+F+":focus .monaco-list-row.selected.focused { color: "+C.listFocusAndSelectionForeground+`; }
`),C.listInactiveFocusBackground&&(se.push(".monaco-list"+F+" .monaco-list-row.focused { background-color: "+C.listInactiveFocusBackground+"; }"),se.push(".monaco-list"+F+" .monaco-list-row.focused:hover { background-color: "+C.listInactiveFocusBackground+"; }")),C.listInactiveSelectionBackground&&(se.push(".monaco-list"+F+" .monaco-list-row.selected { background-color: "+C.listInactiveSelectionBackground+"; }"),se.push(".monaco-list"+F+" .monaco-list-row.selected:hover { background-color: "+C.listInactiveSelectionBackground+"; }")),C.listInactiveSelectionForeground&&se.push(".monaco-list"+F+" .monaco-list-row.selected { color: "+C.listInactiveSelectionForeground+"; }"),C.listHoverBackground&&se.push(".monaco-list"+F+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+C.listHoverBackground+"; }"),C.listHoverForeground&&se.push(".monaco-list"+F+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+C.listHoverForeground+"; }"),C.listSelectionOutline&&se.push(".monaco-list"+F+" .monaco-list-row.selected { outline: 1px dotted "+C.listSelectionOutline+"; outline-offset: -1px; }"),C.listFocusOutline&&se.push(`
.monaco-drag-image,
.monaco-list`+F+":focus .monaco-list-row.focused { outline: 1px solid "+C.listFocusOutline+`; outline-offset: -1px; }
`),C.listInactiveFocusOutline&&se.push(".monaco-list"+F+" .monaco-list-row.focused { outline: 1px dotted "+C.listInactiveFocusOutline+"; outline-offset: -1px; }"),C.listHoverOutline&&se.push(".monaco-list"+F+" .monaco-list-row:hover { outline: 1px dashed "+C.listHoverOutline+"; outline-offset: -1px; }"),C.listDropBackground&&se.push(`
.monaco-list`+F+`.drop-target,
.monaco-list`+F+` .monaco-list-rows.drop-target,
.monaco-list`+F+" .monaco-list-row.drop-target { background-color: "+C.listDropBackground+` !important; color: inherit !important; }
`),C.listFilterWidgetBackground&&se.push(".monaco-list-type-filter { background-color: "+C.listFilterWidgetBackground+" }"),C.listFilterWidgetOutline&&se.push(".monaco-list-type-filter { border: 1px solid "+C.listFilterWidgetOutline+"; }"),C.listFilterWidgetNoMatchesOutline&&se.push(".monaco-list-type-filter.no-matches { border: 1px solid "+C.listFilterWidgetNoMatchesOutline+"; }"),C.listMatchesShadow&&se.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+C.listMatchesShadow+"; }");var oe=se.join(`
`);oe!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=oe)},Q}(),X={listFocusBackground:c.a.fromHex("#7FB0D0"),listActiveSelectionBackground:c.a.fromHex("#0E639C"),listActiveSelectionForeground:c.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:c.a.fromHex("#094771"),listFocusAndSelectionForeground:c.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:c.a.fromHex("#3F3F46"),listHoverBackground:c.a.fromHex("#2A2D2E"),listDropBackground:c.a.fromHex("#383B3D"),treeIndentGuidesStroke:c.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 je(Q,C){var F=Q.indexOf(C);if(F===-1)return[];for(var se=[],oe=F-1;oe>=0&&Q[oe]===C-(F-oe);)se.push(Q[oe--]);for(se.reverse(),oe=F;oe<Q.length&&Q[oe]===C+(oe-F);)se.push(Q[oe++]);return se}function Xe(Q,C){for(var F=[],se=0,oe=0;se<Q.length||oe<C.length;)if(se>=Q.length)F.push(C[oe++]);else if(oe>=C.length)F.push(Q[se++]);else if(Q[se]===C[oe]){F.push(Q[se]),se++,oe++;continue}else Q[se]<C[oe]?F.push(Q[se++]):F.push(C[oe++]);return F}function me(Q,C){for(var F=[],se=0,oe=0;se<Q.length||oe<C.length;)if(se>=Q.length)F.push(C[oe++]);else if(oe>=C.length)F.push(Q[se++]);else if(Q[se]===C[oe]){se++,oe++;continue}else Q[se]<C[oe]?F.push(Q[se++]):oe++;return F}var ge=function(C,F){return C-F},we=function(){function Q(C,F){this._templateId=C,this.renderers=F}return Object.defineProperty(Q.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),Q.prototype.renderTemplate=function(C){return this.renderers.map(function(F){return F.renderTemplate(C)})},Q.prototype.renderElement=function(C,F,se,oe){for(var be=0,De=0,Se=this.renderers;De<Se.length;De++){var Ve=Se[De];Ve.renderElement(C,F,se[be++],oe)}},Q.prototype.disposeElement=function(C,F,se,oe){for(var be=0,De=0,Se=this.renderers;De<Se.length;De++){var Ve=Se[De];Ve.disposeElement&&Ve.disposeElement(C,F,se[be],oe),be+=1}},Q.prototype.disposeTemplate=function(C){for(var F=0,se=0,oe=this.renderers;se<oe.length;se++){var be=oe[se];be.disposeTemplate(C[F++])}},Q}(),Re=function(){function Q(C){this.accessibilityProvider=C,this.templateId="a18n"}return Q.prototype.renderTemplate=function(C){return C},Q.prototype.renderElement=function(C,F,se){var oe=this.accessibilityProvider.getAriaLabel(C);oe?se.setAttribute("aria-label",oe):se.removeAttribute("aria-label");var be=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(C);typeof be=="number"?se.setAttribute("aria-level",""+be):se.removeAttribute("aria-level")},Q.prototype.disposeTemplate=function(C){},Q}(),Ee=function(){function Q(C,F){this.list=C,this.dnd=F}return Q.prototype.getDragElements=function(C){var F=this.list.getSelectedElements(),se=F.indexOf(C)>-1?F:[C];return se},Q.prototype.getDragURI=function(C){return this.dnd.getDragURI(C)},Q.prototype.getDragLabel=function(C,F){return this.dnd.getDragLabel?this.dnd.getDragLabel(C,F):void 0},Q.prototype.onDragStart=function(C,F){this.dnd.onDragStart&&this.dnd.onDragStart(C,F)},Q.prototype.onDragOver=function(C,F,se,oe){return this.dnd.onDragOver(C,F,se,oe)},Q.prototype.onDragEnd=function(C){this.dnd.onDragEnd&&this.dnd.onDragEnd(C)},Q.prototype.drop=function(C,F,se,oe){this.dnd.drop(C,F,se,oe)},Q}(),ve=function(){function Q(C,F,se,oe,be){be===void 0&&(be=he),this.user=C,this._options=be,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)(be,X,!1);var De=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=be.accessibilityProvider,this.accessibilityProvider&&(De.push(new Re(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),oe=oe.map(function(pt){return new we(pt.templateId,k(De,[pt]))});var Se=L(L({},be),{dnd:be.dnd&&new Ee(this,be.dnd)});if(this.view=new p.b(F,se,oe,Se),typeof be.ariaRole!="string"?this.view.domNode.setAttribute("role",v.TREE):this.view.domNode.setAttribute("role",be.ariaRole),be.styleController)this.styleController=be.styleController(this.view.domId);else{var Ve=O.w(this.view.domNode);this.styleController=new ue(Ve,this.view.domId)}if(this.spliceable=new l([new W(this.focus,this.view,be.identityProvider),new W(this.selection,this.view,be.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(_.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=y.b.map(Object(_.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new Fe(this,this.view)),typeof be.keyboardSupport!="boolean"||be.keyboardSupport){var Qe=new le(this,this.view,be);this.disposables.add(Qe)}if(be.keyboardNavigationLabelProvider){var it=be.keyboardNavigationDelegate||Me;this.typeLabelController=new Te(this,this.view,be.keyboardNavigationLabelProvider,it),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(be)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),be.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(re.a)("aria list","{0}. Use the navigation keys to navigate.",be.ariaLabel))}return Object.defineProperty(Q.prototype,"onFocusChange",{get:function(){var F=this;return y.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(se){return F.toListEvent(se)})},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onSelectionChange",{get:function(){var F=this;return y.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(se){return F.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 F=this,se=y.b.chain(Object(_.a)(this.view.domNode,"keydown")).map(function(De){return new u.a(De)}).filter(function(De){return F.didJustPressContextMenuKey=De.keyCode===58||De.shiftKey&&De.keyCode===68}).filter(function(De){return De.preventDefault(),De.stopPropagation(),!1}).event,oe=y.b.chain(Object(_.a)(this.view.domNode,"keyup")).filter(function(){var De=F.didJustPressContextMenuKey;return F.didJustPressContextMenuKey=!1,De}).filter(function(){return F.getFocus().length>0&&!!F.view.domElement(F.getFocus()[0])}).map(function(De){var Se=F.getFocus()[0],Ve=F.view.element(Se),Qe=F.view.domElement(Se);return{index:Se,element:Ve,anchor:Qe,browserEvent:De}}).event,be=y.b.chain(this.view.onContextMenu).filter(function(){return!F.didJustPressContextMenuKey}).map(function(De){var Se=De.element,Ve=De.index,Qe=De.browserEvent;return{element:Se,index:Ve,anchor:{x:Qe.clientX+1,y:Qe.clientY},browserEvent:Qe}}).event;return y.b.any(se,oe,be)},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onKeyDown",{get:function(){return Object(_.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),Q.prototype.createMouseController=function(C){return new q(this)},Q.prototype.updateOptions=function(C){C===void 0&&(C={}),this._options=L(L({},this._options),C),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(C,F,se){var oe=this;if(se===void 0&&(se=[]),C<0||C>this.view.length)throw new w(this.user,"Invalid start index: "+C);if(F<0)throw new w(this.user,"Invalid delete count: "+F);if(F===0&&se.length===0)return;this.eventBufferer.bufferEvents(function(){return oe.spliceable.splice(C,F,se)})},Q.prototype.rerender=function(){this.view.rerender()},Q.prototype.element=function(C){return this.view.element(C)},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(F){this.view.setScrollTop(F)},enumerable:!0,configurable:!0}),Q.prototype.domFocus=function(){this.view.domNode.focus()},Q.prototype.layout=function(C,F){this.view.layout(C,F)},Q.prototype.setSelection=function(C,F){for(var se=0,oe=C;se<oe.length;se++){var be=oe[se];if(be<0||be>=this.length)throw new w(this.user,"Invalid index "+be)}this.selection.set(C,F)},Q.prototype.getSelection=function(){return this.selection.get()},Q.prototype.getSelectedElements=function(){var C=this;return this.getSelection().map(function(F){return C.view.element(F)})},Q.prototype.setFocus=function(C,F){for(var se=0,oe=C;se<oe.length;se++){var be=oe[se];if(be<0||be>=this.length)throw new w(this.user,"Invalid index "+be)}this.focus.set(C,F)},Q.prototype.focusNext=function(C,F,se,oe){if(C===void 0&&(C=1),F===void 0&&(F=!1),this.length===0)return;var be=this.focus.get(),De=this.findNextIndex(be.length>0?be[0]+C:0,F,oe);De>-1&&this.setFocus([De],se)},Q.prototype.focusPrevious=function(C,F,se,oe){if(C===void 0&&(C=1),F===void 0&&(F=!1),this.length===0)return;var be=this.focus.get(),De=this.findPreviousIndex(be.length>0?be[0]-C:0,F,oe);De>-1&&this.setFocus([De],se)},Q.prototype.focusNextPage=function(C,F){var se=this,oe=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);oe=oe===0?0:oe-1;var be=this.view.element(oe),De=this.getFocusedElements()[0];if(De!==be){var Se=this.findPreviousIndex(oe,!1,F);Se>-1&&De!==this.view.element(Se)?this.setFocus([Se],C):this.setFocus([oe],C)}else{var Ve=this.view.getScrollTop();this.view.setScrollTop(Ve+this.view.renderHeight-this.view.elementHeight(oe)),this.view.getScrollTop()!==Ve&&setTimeout(function(){return se.focusNextPage(C,F)},0)}},Q.prototype.focusPreviousPage=function(C,F){var se=this,oe,be=this.view.getScrollTop();be===0?oe=this.view.indexAt(be):oe=this.view.indexAfter(be-1);var De=this.view.element(oe),Se=this.getFocusedElements()[0];if(Se!==De){var Ve=this.findNextIndex(oe,!1,F);Ve>-1&&Se!==this.view.element(Ve)?this.setFocus([Ve],C):this.setFocus([oe],C)}else{var Qe=be;this.view.setScrollTop(be-this.view.renderHeight),this.view.getScrollTop()!==Qe&&setTimeout(function(){return se.focusPreviousPage(C,F)},0)}},Q.prototype.focusLast=function(C,F){if(this.length===0)return;var se=this.findPreviousIndex(this.length-1,!1,F);se>-1&&this.setFocus([se],C)},Q.prototype.focusFirst=function(C,F){if(this.length===0)return;var se=this.findNextIndex(0,!1,F);se>-1&&this.setFocus([se],C)},Q.prototype.findNextIndex=function(C,F,se){F===void 0&&(F=!1);for(var oe=0;oe<this.length;oe++){if(C>=this.length&&!F)return-1;if(C=C%this.length,!se||se(this.element(C)))return C;C++}return-1},Q.prototype.findPreviousIndex=function(C,F,se){F===void 0&&(F=!1);for(var oe=0;oe<this.length;oe++){if(C<0&&!F)return-1;if(C=(this.length+C%this.length)%this.length,!se||se(this.element(C)))return C;C--}return-1},Q.prototype.getFocus=function(){return this.focus.get()},Q.prototype.getFocusedElements=function(){var C=this;return this.getFocus().map(function(F){return C.view.element(F)})},Q.prototype.reveal=function(C,F){if(C<0||C>=this.length)throw new w(this.user,"Invalid index "+C);var se=this.view.getScrollTop(),oe=this.view.elementTop(C),be=this.view.elementHeight(C);if(Object(I.h)(F)){var De=be-this.view.renderHeight;this.view.setScrollTop(De*Object(d.a)(F,0,1)+oe)}else{var Se=oe+be,Ve=se+this.view.renderHeight;oe<se&&Se>=Ve||(oe<se?this.view.setScrollTop(oe):Se>=Ve&&this.view.setScrollTop(Se-this.view.renderHeight))}},Q.prototype.getRelativeTop=function(C){if(C<0||C>=this.length)throw new w(this.user,"Invalid index "+C);var F=this.view.getScrollTop(),se=this.view.elementTop(C),oe=this.view.elementHeight(C);if(se<F||se+oe>F+this.view.renderHeight)return null;var be=oe-this.view.renderHeight;return Math.abs((F-se)/be)},Q.prototype.getHTMLElement=function(){return this.view.domNode},Q.prototype.open=function(C,F){for(var se=this,oe=0,be=C;oe<be.length;oe++){var De=be[oe];if(De<0||De>=this.length)throw new w(this.user,"Invalid index "+De)}this._onDidOpen.fire({indexes:C,elements:C.map(function(Se){return se.view.element(Se)}),browserEvent:F})},Q.prototype.pin=function(C,F){for(var se=this,oe=0,be=C;oe<be.length;oe++){var De=be[oe];if(De<0||De>=this.length)throw new w(this.user,"Invalid index "+De)}this._onDidPin.fire({indexes:C,elements:C.map(function(Se){return se.view.element(Se)}),browserEvent:F})},Q.prototype.style=function(C){this.styleController.style(C)},Q.prototype.toListEvent=function(C){var F=this,se=C.indexes,oe=C.browserEvent;return{indexes:se,elements:se.map(function(be){return F.view.element(be)}),browserEvent:oe}},Q.prototype._onFocusChange=function(){var C=this.focus.get();O.Y(this.view.domNode,"element-focused",C.length>0),this.onDidChangeActiveDescendant()},Q.prototype.onDidChangeActiveDescendant=function(){var C,F=this.focus.get();if(F.length>0){var se=void 0;((C=this.accessibilityProvider)===null||C===void 0?void 0:C.getActiveDescendantId)&&(se=this.accessibilityProvider.getActiveDescendantId(this.view.element(F[0]))),this.view.domNode.setAttribute("aria-activedescendant",se||this.view.getElementDomId(F[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},Q.prototype._onSelectionChange=function(){var C=this.selection.get();O.Y(this.view.domNode,"selection-none",C.length===0),O.Y(this.view.domNode,"selection-single",C.length===1),O.Y(this.view.domNode,"selection-multiple",C.length>1)},Q.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},A([z.a],Q.prototype,"onFocusChange",null),A([z.a],Q.prototype,"onSelectionChange",null),A([z.a],Q.prototype,"onContextMenu",null),Q}()},d6R0:function(Lt,j,e){"use strict";e.r(j),e.d(j,"CodeLensContribution",function(){return ue});var T=e("X+cX"),re=e("/cxE"),J=e("pmY6"),I=e("vATl"),U=e("sswD"),z=e("twdY"),O=e("6OMU"),H=e("JQT/"),x=e("bY76"),u=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,je){this._disposables.add(he);for(var Xe=0,me=he.lenses;Xe<me.length;Xe++){var ge=me[Xe];this.lenses.push({symbol:ge,provider:je})}},X}();function _(X,he){var je=z.b.ordered(X),Xe=new Map,me=new y,ge=je.map(function(we,Re){return Xe.set(we,Re),Promise.resolve(we.provideCodeLenses(X,he)).then(function(Ee){return Ee&&me.add(Ee,we)}).catch(re.f)});return Promise.all(ge).then(function(){return me.lenses=Object(O.r)(me.lenses,function(we,Re){return we.symbol.range.startLineNumber<Re.symbol.range.startLineNumber?-1:we.symbol.range.startLineNumber>Re.symbol.range.startLineNumber?1:Xe.get(we.provider)<Xe.get(Re.provider)?-1:Xe.get(we.provider)>Xe.get(Re.provider)?1:we.symbol.range.startColumn<Re.symbol.range.startColumn?-1:we.symbol.range.startColumn>Re.symbol.range.startColumn?1:0}),me})}Object(U.j)("_executeCodeLensProvider",function(X,he){var je=he.resource,Xe=he.itemResolveCount;if(!(je instanceof x.a))throw Object(re.b)();var me=X.get(u.a).getModel(je);if(!me)throw Object(re.b)();var ge=[],we=new J.b;return _(me,H.a.None).then(function(Re){we.add(Re);for(var Ee=[],ve=function(oe){typeof Xe=="undefined"||Boolean(oe.symbol.command)?ge.push(oe.symbol):Xe-- >0&&oe.provider.resolveCodeLens&&Ee.push(Promise.resolve(oe.provider.resolveCodeLens(me,oe.symbol,H.a.None)).then(function(be){return ge.push(be||oe.symbol)}))},Q=0,C=Re.lenses;Q<C.length;Q++){var F=C[Q];ve(F)}return Promise.all(Ee)}).then(function(){return ge}).finally(function(){setTimeout(function(){return we.dispose()},100)})});var f=e("RMfO"),v=e("EffR"),w=e("Vhoy"),p=e("N0LK"),c=e("aokT"),s=e("tX9W"),l=e("kYye"),d=e("MD5Z"),m=e("t9D7"),E=function(){function X(he,je){this.afterLineNumber=he,this._onHeight=je,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}(),L=function(){function X(he,je,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 "+je}return X.prototype.withCommands=function(he,je){this._commands.clear();for(var Xe="",me=!1,ge=0;ge<he.length;ge++){var we=he[ge];if(!we)continue;if(me=!0,we.command){var Re=Object(w.c)(Object(p.o)(we.command.title));we.command.id?(Xe+="<a id="+ge+">"+Re+"</a>",this._commands.set(String(ge),we.command)):Xe+="<span>"+Re+"</span>",ge+1<he.length&&(Xe+="<span>&#160;|&#160;</span>")}}me?(Xe||(Xe="&#160;"),this._domNode.innerHTML=Xe,this._isEmpty&&je&&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 je=this._editor.getModel().getLineFirstNonWhitespaceColumn(he);this._widgetPosition={position:{lineNumber:he,column:je},preference:[1]}},X.prototype.getPosition=function(){return this._widgetPosition||null},X._idPool=0,X}(),A=function(){function X(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}return X.prototype.addDecoration=function(he,je){this._addDecorations.push(he),this._addDecorationsCallbacks.push(je)},X.prototype.removeDecoration=function(he){this._removeDecorations.push(he)},X.prototype.commit=function(he){for(var je=he.deltaDecorations(this._removeDecorations,this._addDecorations),Xe=0,me=je.length;Xe<me;Xe++)this._addDecorationsCallbacks[Xe](je[Xe])},X}(),k=function(){function X(he,je,Xe,me,ge,we){var Re=this;this._isDisposed=!1,this._editor=je,this._className=Xe,this._data=he,this._decorationIds=[];var Ee,ve=[];this._data.forEach(function(Q,C){Q.symbol.command&&ve.push(Q.symbol),me.addDecoration({range:Q.symbol.range,options:s.a.EMPTY},function(F){return Re._decorationIds[C]=F}),Ee?Ee=c.a.plusRange(Ee,Q.symbol.range):Ee=c.a.lift(Q.symbol.range)}),this._viewZone=new E(Ee.startLineNumber-1,we),this._viewZoneId=ge.addZone(this._viewZone),ve.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(ve,!1))}return X.prototype._createContentWidgetIfNecessary=function(){this._contentWidget||(this._contentWidget=new L(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))},X.prototype.dispose=function(he,je){this._decorationIds.forEach(he.removeDecoration,he),this._decorationIds=[],je&&je.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(je,Xe){var me=he._editor.getModel().getDecorationRange(je),ge=he._data[Xe].symbol;return!!(me&&c.a.isEmpty(ge.range)===me.isEmpty())})},X.prototype.updateCodeLensSymbols=function(he,je){var Xe=this;this._decorationIds.forEach(je.removeDecoration,je),this._decorationIds=[],this._data=he,this._data.forEach(function(me,ge){je.addDecoration({range:me.symbol.range,options:s.a.EMPTY},function(we){return Xe._decorationIds[ge]=we})})},X.prototype.computeIfNecessary=function(he){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(var je=0;je<this._decorationIds.length;je++){var Xe=he.getDecorationRange(this._decorationIds[je]);Xe&&(this._data[je].symbol.range=Xe)}return this._data},X.prototype.updateCommands=function(he){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(he,!0);for(var je=0;je<this._data.length;je++){var Xe=he[je];if(Xe){var me=this._data[je].symbol;me.command=Xe.command||me.command}}},X.prototype.getCommand=function(he){var je;return(je=this._contentWidget)===null||je===void 0?void 0:je.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 je=this._editor.getModel().getDecorationRange(this._decorationIds[0]);je&&(this._viewZone.afterLineNumber=je.startLineNumber-1,he.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(je.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}},X}();Object(m.e)(function(X,he){var je=X.getColor(l.e);je&&(he.addRule(".monaco-editor .codelens-decoration { color: "+je+"; }"),he.addRule(".monaco-editor .codelens-decoration .codicon { color: "+je+"; }"));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"),Ce=e("C/vA"),Me=function(X,he,je,Xe){var me=arguments.length,ge=me<3?he:Xe===null?Xe=Object.getOwnPropertyDescriptor(he,je):Xe,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ge=Reflect.decorate(X,he,je,Xe);else for(var Re=X.length-1;Re>=0;Re--)(we=X[Re])&&(ge=(me<3?we(ge):me>3?we(he,je,ge):we(he,je))||ge);return me>3&&ge&&Object.defineProperty(he,je,ge),ge},Te=function(X,he){return function(je,Xe){he(je,Xe,X)}},Fe=Object(ie.c)("ICodeLensCache"),Ue=function(){function X(he,je){this.lineCount=he,this.data=je}return X}(),Pe=function(){function X(he){var je=this;this._fakeProvider=new(function(){function we(){}return we.prototype.provideCodeLenses=function(){throw new Error("not supported")},we}()),this._cache=new B.a(20,.75);var Xe="codelens/cache";Object(T.k)(function(){return he.remove(Xe,1)});var me="codelens/cache2",ge=he.get(me,1,"{}");this._deserialize(ge),Object(Ce.a)(he.onWillSaveState)(function(we){we.reason===le.c.SHUTDOWN&&he.store(me,je._serialize(),1)})}return X.prototype.put=function(he,je){var Xe=je.lenses.map(function(we){var Re;return{range:we.symbol.range,command:we.symbol.command&&{id:"",title:(Re=we.symbol.command)===null||Re===void 0?void 0:Re.title}}}),me=new y;me.add({lenses:Xe,dispose:function(){}},this._fakeProvider);var ge=new Ue(he.getLineCount(),me);this._cache.set(he.uri.toString(),ge)},X.prototype.get=function(he){var je=this._cache.get(he.uri.toString());return je&&je.lineCount===he.getLineCount()?je.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(je,Xe){for(var me=new Set,ge=0,we=je.data.lenses;ge<we.length;ge++){var Re=we[ge];me.add(Re.symbol.range.startLineNumber)}he[Xe]={lineCount:je.lineCount,lines:Object(B.e)(me)}}),JSON.stringify(he)},X.prototype._deserialize=function(he){try{var je=JSON.parse(he);for(var Xe in je){for(var me=je[Xe],ge=[],we=0,Re=me.lines;we<Re.length;we++){var Ee=Re[we];ge.push({range:new c.a(Ee,1,Ee,11)})}var ve=new y;ve.add({lenses:ge,dispose:function(){}},this._fakeProvider),this._cache.set(Xe,new Ue(me.lineCount,ve))}}catch(Q){}},X=Me([Te(0,le.a)],X),X}();Object(W.b)(Fe,Pe);var ne=e("7afs"),ee=function(X,he,je,Xe){var me=arguments.length,ge=me<3?he:Xe===null?Xe=Object.getOwnPropertyDescriptor(he,je):Xe,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ge=Reflect.decorate(X,he,je,Xe);else for(var Re=X.length-1;Re>=0;Re--)(we=X[Re])&&(ge=(me<3?we(ge):me>3?we(he,je,ge):we(he,je))||ge);return me>3&&ge&&Object.defineProperty(he,je,ge),ge},ae=function(X,he){return function(je,Xe){he(je,Xe,X)}},q=function(){for(var X=0,he=0,je=arguments.length;he<je;he++)X+=arguments[he].length;for(var Xe=Array(X),me=0,he=0;he<je;he++)for(var ge=arguments[he],we=0,Re=ge.length;we<Re;we++,me++)Xe[me]=ge[we];return Xe},ue=function(){function X(he,je,Xe,me){var ge=this;this._editor=he,this._commandService=je,this._notificationService=Xe,this._codeLensCache=me,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 ge._onModelChange()})),this._globalToDispose.add(this._editor.onDidChangeModelLanguage(function(){return ge._onModelChange()})),this._globalToDispose.add(this._editor.onDidChangeConfiguration(function(){var we=ge._isEnabled;ge._isEnabled=ge._editor.getOption(11),we!==ge._isEnabled&&ge._onModelChange()})),this._globalToDispose.add(z.b.onDidChange(this._onModelChange,this)),this._globalToDispose.add(this._editor.onDidChangeConfiguration(function(we){we.hasChanged(34)&&ge._updateLensStyle()})),this._onModelChange(),this._styleClassName=Object(ne.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(),je=he.get(34),Xe=he.get(49),me=Math.round(Xe*1.1),ge=Math.round(je.fontSize*.9),we=`
.monaco-editor .codelens-decoration.`+this._styleClassName+" { height: "+me+"px; line-height: "+Xe+"px; font-size: "+ge+"px; padding-right: "+Math.round(je.fontSize*.45)+`px;}
.monaco-editor .codelens-decoration.`+this._styleClassName+" > a > .codicon { line-height: "+Xe+"px; font-size: "+ge+`px; }
`;this._styleElement.innerHTML=we},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 je=this._editor.getModel();if(!je)return;if(!this._isEnabled)return;var Xe=this._codeLensCache.get(je);if(Xe&&this._renderCodeLensSymbols(Xe),!z.b.has(je)){Xe&&this._localToDispose.add(Object(T.g)(function(){var Q=he._codeLensCache.get(je);Xe===Q&&(he._codeLensCache.delete(je),he._onModelChange())},30*1e3));return}for(var me=0,ge=z.b.all(je);me<ge.length;me++){var we=ge[me];if(typeof we.onDidChange=="function"){var Re=we.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(C){return _(je,C)}),he._currentFindCodeLensSymbolsPromise.then(function(C){Q===he._modelChangeCounter&&(he._currentCodeLensModel&&he._oldCodeLensModels.add(he._currentCodeLensModel),he._currentCodeLensModel=C,he._codeLensCache.put(je,C),he._renderCodeLensSymbols(C),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(C){var F=[],se=-1;he._lenses.forEach(function(be){!be.isValid()||se===be.getLineNumber()?F.push(be):(be.update(C),se=be.getLineNumber())});var oe=new A;F.forEach(function(be){be.dispose(oe,C),he._lenses.splice(he._lenses.indexOf(be),1)}),oe.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=I.c.capture(he._editor);he._editor.changeDecorations(function(C){he._editor.changeViewZones(function(F){he._disposeAllLenses(C,F)})}),Q.restore(he._editor)}else he._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseUp(function(Q){var C;if(Q.target.type!==9)return;var F=Q.target.element;if((F==null?void 0:F.tagName)==="SPAN"&&(F=F.parentElement),(F==null?void 0:F.tagName)==="A")for(var se=0,oe=he._lenses;se<oe.length;se++){var be=oe[se],De=be.getCommand(F);if(De){(C=he._commandService).executeCommand.apply(C,q([De.id],De.arguments||[])).catch(function(Se){return he._notificationService.error(Se)});break}}})),ve.schedule()},X.prototype._disposeAllLenses=function(he,je){for(var Xe=new A,me=0,ge=this._lenses;me<ge.length;me++){var we=ge[me];we.dispose(Xe,je)}he&&Xe.commit(he),this._lenses=[]},X.prototype._renderCodeLensSymbols=function(he){var je=this;if(!this._editor.hasModel())return;for(var Xe=this._editor.getModel().getLineCount(),me=[],ge,we=0,Re=he.lenses;we<Re.length;we++){var Ee=Re[we],ve=Ee.symbol.range.startLineNumber;if(ve<1||ve>Xe)continue;ge&&ge[ge.length-1].symbol.range.startLineNumber===ve?ge.push(Ee):(ge=[Ee],me.push(ge))}var Q=I.c.capture(this._editor);this._editor.changeDecorations(function(C){je._editor.changeViewZones(function(F){for(var se=new A,oe=0,be=0;be<me.length&&oe<je._lenses.length;){var De=me[be][0].symbol.range.startLineNumber,Se=je._lenses[oe].getLineNumber();Se<De?(je._lenses[oe].dispose(se,F),je._lenses.splice(oe,1)):Se===De?(je._lenses[oe].updateCodeLensSymbols(me[be],se),be++,oe++):(je._lenses.splice(oe,0,new k(me[be],je._editor,je._styleClassName,se,F,function(){return je._detectVisibleLenses&&je._detectVisibleLenses.schedule()})),oe++,be++)}for(;oe<je._lenses.length;)je._lenses[oe].dispose(se,F),je._lenses.splice(oe,1);for(;be<me.length;)je._lenses.push(new k(me[be],je._editor,je._styleClassName,se,F,function(){return je._detectVisibleLenses&&je._detectVisibleLenses.schedule()})),be++;se.commit(C)})}),Q.restore(this._editor)},X.prototype._onViewportChanged=function(){var he=this;this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);var je=this._editor.getModel();if(!je)return;var Xe=[],me=[];if(this._lenses.forEach(function(we){var Re=we.computeIfNecessary(je);Re&&(Xe.push(Re),me.push(we))}),Xe.length===0)return;var ge=Object(T.f)(function(we){var Re=Xe.map(function(Ee,ve){var Q=new Array(Ee.length),C=Ee.map(function(F,se){return!F.symbol.command&&typeof F.provider.resolveCodeLens=="function"?Promise.resolve(F.provider.resolveCodeLens(je,F.symbol,we)).then(function(oe){Q[se]=oe},re.f):(Q[se]=F.symbol,Promise.resolve(void 0))});return Promise.all(C).then(function(){!we.isCancellationRequested&&!me[ve].isDisposed()&&me[ve].updateCommands(Q)})});return Promise.all(Re)});this._currentResolveCodeLensSymbolsPromise=ge,this._currentResolveCodeLensSymbolsPromise.then(function(){he._currentCodeLensModel&&he._codeLensCache.put(je,he._currentCodeLensModel),he._oldCodeLensModels.clear(),ge===he._currentResolveCodeLensSymbolsPromise&&(he._currentResolveCodeLensSymbolsPromise=void 0)},function(we){Object(re.e)(we),ge===he._currentResolveCodeLensSymbolsPromise&&(he._currentResolveCodeLensSymbolsPromise=void 0)})},X.ID="css.editor.codeLens",X=ee([ae(1,R.b),ae(2,$.a),ae(3,Fe)],X),X}();Object(U.h)(ue.ID,ue)},dBaI:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return U});var T=e("N0LK"),re=function(){function z(O,H,x,u){this.startColumn=O,this.endColumn=H,this.className=x,this.type=u}return z._equals=function(O,H){return O.startColumn===H.startColumn&&O.endColumn===H.endColumn&&O.className===H.className&&O.type===H.type},z.equalsArr=function(O,H){var x=O.length,u=H.length;if(x!==u)return!1;for(var y=0;y<x;y++)if(!z._equals(O[y],H[y]))return!1;return!0},z.filter=function(O,H,x,u){if(O.length===0)return[];for(var y=[],_=0,f=0,v=O.length;f<v;f++){var w=O[f],p=w.range;if(p.endLineNumber<H||p.startLineNumber>H)continue;if(p.isEmpty()&&(w.type===0||w.type===3))continue;var c=p.startLineNumber===H?p.startColumn:x,s=p.endLineNumber===H?p.endColumn:u;y[_++]=new z(c,s,w.inlineClassName,w.type)}return y},z.compare=function(O,H){return O.startColumn===H.startColumn?O.endColumn===H.endColumn?O.className<H.className?-1:O.className>H.className?1:0:O.endColumn-H.endColumn:O.startColumn-H.startColumn},z}(),J=function(){function z(O,H,x){this.startOffset=O,this.endOffset=H,this.className=x}return z}(),I=function(){function z(){this.stopOffsets=[],this.classNames=[],this.count=0}return z.prototype.consumeLowerThan=function(O,H,x){for(;this.count>0&&this.stopOffsets[0]<O;){for(var u=0;u+1<this.count&&this.stopOffsets[u]===this.stopOffsets[u+1];)u++;x.push(new J(H,this.stopOffsets[u],this.classNames.join(" "))),H=this.stopOffsets[u]+1,this.stopOffsets.splice(0,u+1),this.classNames.splice(0,u+1),this.count-=u+1}return this.count>0&&H<O&&(x.push(new J(H,O-1,this.classNames.join(" "))),H=O),H},z.prototype.insert=function(O,H){if(this.count===0||this.stopOffsets[this.count-1]<=O)this.stopOffsets.push(O),this.classNames.push(H);else for(var x=0;x<this.count;x++)if(this.stopOffsets[x]>=O){this.stopOffsets.splice(x,0,O),this.classNames.splice(x,0,H);break}this.count++;return},z}(),U=function(){function z(){}return z.normalize=function(O,H){if(H.length===0)return[];for(var x=[],u=new I,y=0,_=0,f=H.length;_<f;_++){var v=H[_],w=v.startColumn,p=v.endColumn,c=v.className;if(w>1){var s=O.charCodeAt(w-2);T.z(s)&&w--}if(p>1){var s=O.charCodeAt(p-2);T.z(s)&&p--}var l=w-1,d=p-2;y=u.consumeLowerThan(l,y,x),u.count===0&&(y=l),u.insert(d,c)}return u.consumeLowerThan(1073741824,y,x),x},z}()},dFcq:function(Lt,j,e){},"dH+W":function(Lt,j,e){"use strict";e.r(j),e.d(j,"DuplicateSelectionAction",function(){return W}),e.d(j,"AbstractSortLinesAction",function(){return Me}),e.d(j,"SortLinesAscendingAction",function(){return Te}),e.d(j,"SortLinesDescendingAction",function(){return Fe}),e.d(j,"TrimTrailingWhitespaceAction",function(){return Ue}),e.d(j,"DeleteLinesAction",function(){return Pe}),e.d(j,"IndentLinesAction",function(){return ne}),e.d(j,"InsertLineBeforeAction",function(){return ae}),e.d(j,"InsertLineAfterAction",function(){return q}),e.d(j,"AbstractDeleteAllToBoundaryAction",function(){return ue}),e.d(j,"DeleteAllLeftAction",function(){return X}),e.d(j,"DeleteAllRightAction",function(){return he}),e.d(j,"JoinLinesAction",function(){return je}),e.d(j,"TransposeAction",function(){return Xe}),e.d(j,"AbstractCaseAction",function(){return me}),e.d(j,"UpperCaseAction",function(){return ge}),e.d(j,"LowerCaseAction",function(){return we}),e.d(j,"TitleCaseAction",function(){return Re});var T=e("3/fG"),re=e("/kV6"),J=e("1YUG"),I=e("sswD"),U=e("LCkn"),z=e("N0LK"),O=e("0/Sa"),H=e("aokT"),x=function(){function Ee(ve,Q){this._selection=ve,this._cursors=Q,this._selectionId=null}return Ee.prototype.getEditOperations=function(ve,Q){for(var C=u(ve,this._cursors),F=0,se=C.length;F<se;F++){var oe=C[F];Q.addEditOperation(oe.range,oe.text)}this._selectionId=Q.trackSelection(this._selection)},Ee.prototype.computeCursorState=function(ve,Q){return Q.getTrackedSelection(this._selectionId)},Ee}();function u(Ee,ve){ve.sort(function(Rt,Mt){return Rt.lineNumber===Mt.lineNumber?Rt.column-Mt.column:Rt.lineNumber-Mt.lineNumber});for(var Q=ve.length-2;Q>=0;Q--)ve[Q].lineNumber===ve[Q+1].lineNumber&&ve.splice(Q,1);for(var C=[],F=0,se=0,oe=ve.length,be=1,De=Ee.getLineCount();be<=De;be++){var Se=Ee.getLineContent(be),Ve=Se.length+1,Qe=0;if(se<oe&&ve[se].lineNumber===be&&(Qe=ve[se].column,se++,Qe===Ve))continue;if(Se.length===0)continue;var it=z.D(Se),pt=0;if(it===-1)pt=1;else if(it!==Se.length-1)pt=it+2;else continue;pt=Math.max(Qe,pt),C[F++]=O.a.delete(new H.a(be,pt,be,Ve))}return C}var y=e("GR/f"),_=e("cGHE"),f=e("gCVg"),v=e("wQH0"),w=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 C=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,C.startLineNumber<C.endLineNumber&&C.endColumn===1&&(this._endLineNumberDelta=1,C=C.setEndPosition(C.endLineNumber-1,ve.getLineMaxColumn(C.endLineNumber-1)));for(var F=[],se=C.startLineNumber;se<=C.endLineNumber;se++)F.push(ve.getLineContent(se));var oe=F.join(`
`);oe===""&&(this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++)),this._isCopyingDown?Q.addEditOperation(new H.a(C.startLineNumber,1,C.startLineNumber,1),oe+`
`):Q.addEditOperation(new H.a(C.endLineNumber,ve.getLineMaxColumn(C.endLineNumber),C.endLineNumber,ve.getLineMaxColumn(C.endLineNumber)),`
`+oe),this._selectionId=Q.trackSelection(C),this._selectionDirection=this._selection.getDirection()},Ee.prototype.computeCursorState=function(ve,Q){var C=Q.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){var F=C.startLineNumber,se=C.startColumn,oe=C.endLineNumber,be=C.endColumn;this._startLineNumberDelta!==0&&(F=F+this._startLineNumberDelta,se=1),this._endLineNumberDelta!==0&&(oe=oe+this._endLineNumberDelta,be=1),C=f.a.createWithDirection(F,se,oe,be,this._selectionDirection)}return C},Ee}(),p=e("zN7H"),c=e("KDc4"),s=e("cMvZ");function l(Ee,ve){for(var Q=0,C=0;C<Ee.length;C++)Ee.charAt(C)===" "?Q+=ve:Q++;return Q}function d(Ee,ve,Q){Ee=Ee<0?0:Ee;var C="";if(!Q){var F=Math.floor(Ee/ve);Ee=Ee%ve;for(var se=0;se<F;se++)C+=" "}for(var se=0;se<Ee;se++)C+=" ";return C}var m=function(){function Ee(ve,Q,C){this._selection=ve,this._isMovingDown=Q,this._autoIndent=C,this._selectionId=null,this._moveEndLineSelectionShrink=!1}return Ee.prototype.getEditOperations=function(ve,Q){var C=ve.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===C){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 F=this._selection;F.startLineNumber<F.endLineNumber&&F.endColumn===1&&(this._moveEndPositionDown=!0,F=F.setEndPosition(F.endLineNumber-1,ve.getLineMaxColumn(F.endLineNumber-1)));var se=ve.getOptions(),oe=se.tabSize,be=se.indentSize,De=se.insertSpaces,Se=this.buildIndentConverter(oe,be,De),Ve={getLineTokens:function(gt){return ve.getLineTokens(gt)},getLanguageIdentifier:function(){return ve.getLanguageIdentifier()},getLanguageIdAtPosition:function(gt,bt){return ve.getLanguageIdAtPosition(gt,bt)},getLineContent:null};if(F.startLineNumber===F.endLineNumber&&ve.getLineMaxColumn(F.startLineNumber)===1){var Qe=F.startLineNumber,it=this._isMovingDown?Qe+1:Qe-1;ve.getLineMaxColumn(it)===1?Q.addEditOperation(new H.a(1,1,1,1),null):(Q.addEditOperation(new H.a(Qe,1,Qe,1),ve.getLineContent(it)),Q.addEditOperation(new H.a(it,1,it,ve.getLineMaxColumn(it)),null)),F=new f.a(it,1,it,1)}else{var pt,Rt=void 0;if(this._isMovingDown){pt=F.endLineNumber+1,Rt=ve.getLineContent(pt),Q.addEditOperation(new H.a(pt-1,ve.getLineMaxColumn(pt-1),pt,ve.getLineMaxColumn(pt)),null);var Mt=Rt;if(this.shouldAutoIndent(ve,F)){var zt=this.matchEnterRule(ve,Se,oe,pt,F.startLineNumber-1);if(zt!==null){var uo=z.t(ve.getLineContent(pt)),ao=zt+l(uo,oe),so=d(ao,oe,De);Mt=so+this.trimLeft(Rt)}else{Ve.getLineContent=function(Ct){return Ct===F.startLineNumber?ve.getLineContent(pt):ve.getLineContent(Ct)};var Pt=s.a.getGoodIndentForLine(this._autoIndent,Ve,ve.getLanguageIdAtPosition(pt,1),F.startLineNumber,Se);if(Pt!==null){var uo=z.t(ve.getLineContent(pt)),ao=l(Pt,oe),ft=l(uo,oe);if(ao!==ft){var so=d(ao,oe,De);Mt=so+this.trimLeft(Rt)}}}Q.addEditOperation(new H.a(F.startLineNumber,1,F.startLineNumber,1),Mt+`
`);var vt=this.matchEnterRule(ve,Se,oe,F.startLineNumber,F.startLineNumber,Mt);if(vt!==null)vt!==0&&this.getIndentEditsOfMovingBlock(ve,Q,F,oe,De,vt);else{Ve.getLineContent=function(Ct){return Ct===F.startLineNumber?Mt:Ct>=F.startLineNumber+1&&Ct<=F.endLineNumber+1?ve.getLineContent(Ct-1):ve.getLineContent(Ct)};var At=s.a.getGoodIndentForLine(this._autoIndent,Ve,ve.getLanguageIdAtPosition(pt,1),F.startLineNumber+1,Se);if(At!==null){var uo=z.t(ve.getLineContent(F.startLineNumber)),ao=l(At,oe),ft=l(uo,oe);if(ao!==ft){var at=ao-ft;this.getIndentEditsOfMovingBlock(ve,Q,F,oe,De,at)}}}}else Q.addEditOperation(new H.a(F.startLineNumber,1,F.startLineNumber,1),Mt+`
`)}else if(pt=F.startLineNumber-1,Rt=ve.getLineContent(pt),Q.addEditOperation(new H.a(pt,1,pt+1,1),null),Q.addEditOperation(new H.a(F.endLineNumber,ve.getLineMaxColumn(F.endLineNumber),F.endLineNumber,ve.getLineMaxColumn(F.endLineNumber)),`
`+Rt),this.shouldAutoIndent(ve,F)){Ve.getLineContent=function(gt){return gt===pt?ve.getLineContent(F.startLineNumber):ve.getLineContent(gt)};var vt=this.matchEnterRule(ve,Se,oe,F.startLineNumber,F.startLineNumber-2);if(vt!==null)vt!==0&&this.getIndentEditsOfMovingBlock(ve,Q,F,oe,De,vt);else{var tt=s.a.getGoodIndentForLine(this._autoIndent,Ve,ve.getLanguageIdAtPosition(F.startLineNumber,1),pt,Se);if(tt!==null){var ut=z.t(ve.getLineContent(F.startLineNumber)),ao=l(tt,oe),ft=l(ut,oe);if(ao!==ft){var at=ao-ft;this.getIndentEditsOfMovingBlock(ve,Q,F,oe,De,at)}}}}}this._selectionId=Q.trackSelection(F)},Ee.prototype.buildIndentConverter=function(ve,Q,C){return{shiftIndent:function(se){return p.a.shiftIndent(se,se.length+1,ve,Q,C)},unshiftIndent:function(se){return p.a.unshiftIndent(se,se.length+1,ve,Q,C)}}},Ee.prototype.matchEnterRule=function(ve,Q,C,F,se,oe){for(var be=se;be>=1;){var De=void 0;be===se&&oe!==void 0?De=oe:De=ve.getLineContent(be);var Se=z.D(De);if(Se>=0)break;be--}if(be<1||F>ve.getLineCount())return null;var Ve=ve.getLineMaxColumn(be),Qe=s.a.getEnterAction(this._autoIndent,ve,new H.a(be,Ve,be,Ve));if(Qe){var it=Qe.indentation;Qe.indentAction===c.a.None||Qe.indentAction===c.a.Indent?it=Qe.indentation+Qe.appendText:Qe.indentAction===c.a.IndentOutdent?it=Qe.indentation:Qe.indentAction===c.a.Outdent&&(it=Q.unshiftIndent(Qe.indentation)+Qe.appendText);var pt=ve.getLineContent(F);if(this.trimLeft(pt).indexOf(this.trimLeft(it))>=0){var Rt=z.t(ve.getLineContent(F)),Mt=z.t(it),zt=s.a.getIndentMetadata(ve,F);zt!==null&&zt&2&&(Mt=Q.unshiftIndent(Mt));var uo=l(Mt,C),ao=l(Rt,C);return uo-ao}}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 C=ve.getLanguageIdAtPosition(Q.startLineNumber,1),F=ve.getLanguageIdAtPosition(Q.endLineNumber,1);return C!==F?!1:!(s.a.getIndentRulesSupport(C)===null)},Ee.prototype.getIndentEditsOfMovingBlock=function(ve,Q,C,F,se,oe){for(var be=C.startLineNumber;be<=C.endLineNumber;be++){var De=ve.getLineContent(be),Se=z.t(De),Ve=l(Se,F),Qe=Ve+oe,it=d(Qe,F,se);it!==Se&&(Q.addEditOperation(new H.a(be,1,be,Se.length+1),it),be===C.endLineNumber&&C.endColumn<=Se.length+1&&it===""&&(this._moveEndLineSelectionShrink=!0))}},Ee.prototype.computeCursorState=function(ve,Q){var C=Q.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(C=C.setEndPosition(C.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&C.startLineNumber<C.endLineNumber&&(C=C.setEndPosition(C.endLineNumber,2)),C},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 C=A(ve,this.selection,this.descending);C&&Q.addEditOperation(C.range,C.text),this.selectionId=Q.trackSelection(this.selection)},Ee.prototype.computeCursorState=function(ve,Q){return Q.getTrackedSelection(this.selectionId)},Ee.canRun=function(ve,Q,C){if(ve===null)return!1;var F=L(ve,Q,C);if(!F)return!1;for(var se=0,oe=F.before.length;se<oe;se++)if(F.before[se]!==F.after[se])return!0;return!1},Ee._COLLATOR=null,Ee}();function L(Ee,ve,Q){var C=ve.startLineNumber,F=ve.endLineNumber;if(ve.endColumn===1&&F--,C>=F)return null;for(var se=[],oe=C;oe<=F;oe++)se.push(Ee.getLineContent(oe));var be=se.slice(0);return be.sort(E.getCollator().compare),Q===!0&&(be=be.reverse()),{startLineNumber:C,endLineNumber:F,before:se,after:be}}function A(Ee,ve,Q){var C=L(Ee,ve,Q);return C?O.a.replace(new H.a(C.startLineNumber,1,C.endLineNumber,Ee.getLineMaxColumn(C.endLineNumber)),C.after.join(`
`)):null}var k=function(){var Ee=function(Q,C){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,se){F.__proto__=se}||function(F,se){for(var oe in se)se.hasOwnProperty(oe)&&(F[oe]=se[oe])},Ee(Q,C)};return function(ve,Q){Ee(ve,Q);function C(){this.constructor=ve}ve.prototype=Q===null?Object.create(Q):(C.prototype=Q.prototype,new C)}}(),R=function(Ee){k(ve,Ee);function ve(Q,C){var F=Ee.call(this,C)||this;return F.down=Q,F}return ve.prototype.run=function(Q,C){for(var F=[],se=C.getSelections()||[],oe=0,be=se;oe<be.length;oe++){var De=be[oe];F.push(new w(De,this.down))}C.pushUndoStop(),C.executeCommands(this.id,F),C.pushUndoStop()},ve}(I.b),$=function(Ee){k(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){k(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){k(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,C,F){if(!C.hasModel())return;for(var se=[],oe=C.getSelections(),be=C.getModel(),De=0,Se=oe;De<Se.length;De++){var Ve=Se[De];if(Ve.isEmpty())se.push(new w(Ve,!0));else{var Qe=new f.a(Ve.endLineNumber,Ve.endColumn,Ve.endLineNumber,Ve.endColumn);se.push(new U.c(Qe,be.getValueInRange(Ve)))}}C.pushUndoStop(),C.executeCommands(this.id,se),C.pushUndoStop()},ve}(I.b),B=function(Ee){k(ve,Ee);function ve(Q,C){var F=Ee.call(this,C)||this;return F.down=Q,F}return ve.prototype.run=function(Q,C){for(var F=[],se=C.getSelections()||[],oe=C.getOption(8),be=0,De=se;be<De.length;be++){var Se=De[be];F.push(new m(Se,this.down,oe))}C.pushUndoStop(),C.executeCommands(this.id,F),C.pushUndoStop()},ve}(I.b),le=function(Ee){k(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),Ce=function(Ee){k(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),Me=function(Ee){k(ve,Ee);function ve(Q,C){var F=Ee.call(this,C)||this;return F.descending=Q,F}return ve.prototype.run=function(Q,C){for(var F=C.getSelections()||[],se=0,oe=F;se<oe.length;se++){var be=oe[se];if(!E.canRun(C.getModel(),be,this.descending))return}for(var De=[],Se=0,Ve=F.length;Se<Ve;Se++)De[Se]=new E(F[Se],this.descending);C.pushUndoStop(),C.executeCommands(this.id,De),C.pushUndoStop()},ve}(I.b),Te=function(Ee){k(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}(Me),Fe=function(Ee){k(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}(Me),Ue=function(Ee){k(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,C,F){var se=[];F.reason==="auto-save"&&(se=(C.getSelections()||[]).map(function(De){return new _.a(De.positionLineNumber,De.positionColumn)}));var oe=C.getSelection();if(oe===null)return;var be=new x(oe,se);C.pushUndoStop(),C.executeCommands(this.id,[be]),C.pushUndoStop()},ve.ID="editor.action.trimTrailingWhitespace",ve}(I.b),Pe=function(Ee){k(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,C){if(!C.hasModel())return;var F=this._getLinesToRemove(C),se=C.getModel();if(se.getLineCount()===1&&se.getLineMaxColumn(1)===1)return;for(var oe=0,be=[],De=[],Se=0,Ve=F.length;Se<Ve;Se++){var Qe=F[Se],it=Qe.startLineNumber,pt=Qe.endLineNumber,Rt=1,Mt=se.getLineMaxColumn(pt);pt<se.getLineCount()?(pt+=1,Mt=1):it>1&&(it-=1,Rt=se.getLineMaxColumn(it)),be.push(O.a.replace(new f.a(it,Rt,pt,Mt),"")),De.push(new f.a(it-oe,Qe.positionColumn,it-oe,Qe.positionColumn)),oe+=Qe.endLineNumber-Qe.startLineNumber+1}C.pushUndoStop(),C.executeEdits(this.id,be,De),C.pushUndoStop()},ve.prototype._getLinesToRemove=function(Q){var C=Q.getSelections().map(function(be){var De=be.endLineNumber;return be.startLineNumber<be.endLineNumber&&be.endColumn===1&&(De-=1),{startLineNumber:be.startLineNumber,selectionStartColumn:be.selectionStartColumn,endLineNumber:De,positionColumn:be.positionColumn}});C.sort(function(be,De){return be.startLineNumber===De.startLineNumber?be.endLineNumber-De.endLineNumber:be.startLineNumber-De.startLineNumber});for(var F=[],se=C[0],oe=1;oe<C.length;oe++)se.endLineNumber+1>=C[oe].startLineNumber?se.endLineNumber=C[oe].endLineNumber:(F.push(se),se=C[oe]);return F.push(se),F},ve}(I.b),ne=function(Ee){k(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,C){var F=C._getCursors();if(!F)return;C.pushUndoStop(),C.executeCommands(this.id,y.a.indent(F.context.config,C.getModel(),C.getSelections())),C.pushUndoStop()},ve}(I.b),ee=function(Ee){k(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,C){J.CoreEditingCommands.Outdent.runEditorCommand(Q,C,null)},ve}(I.b),ae=function(Ee){k(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,C){var F=C._getCursors();if(!F)return;C.pushUndoStop(),C.executeCommands(this.id,y.a.lineInsertBefore(F.context.config,C.getModel(),C.getSelections()))},ve}(I.b),q=function(Ee){k(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,C){var F=C._getCursors();if(!F)return;C.pushUndoStop(),C.executeCommands(this.id,y.a.lineInsertAfter(F.context.config,C.getModel(),C.getSelections()))},ve}(I.b),ue=function(Ee){k(ve,Ee);function ve(){return Ee!==null&&Ee.apply(this,arguments)||this}return ve.prototype.run=function(Q,C){if(!C.hasModel())return;for(var F=C.getSelection(),se=this._getRangesToDelete(C),oe=[],be=0,De=se.length-1;be<De;be++){var Se=se[be],Ve=se[be+1];H.a.intersectRanges(Se,Ve)===null?oe.push(Se):se[be+1]=H.a.plusRange(Se,Ve)}oe.push(se[se.length-1]);var Qe=this._getEndCursorState(F,oe),it=oe.map(function(pt){return O.a.replace(pt,"")});C.pushUndoStop(),C.executeEdits(this.id,it,Qe),C.pushUndoStop()},ve}(I.b),X=function(Ee){k(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,C){var F=null,se=[],oe=0;return C.forEach(function(be){var De;if(be.endColumn===1&&oe>0){var Se=be.startLineNumber-oe;De=new f.a(Se,be.startColumn,Se,be.startColumn)}else De=new f.a(be.startLineNumber,be.startColumn,be.startLineNumber,be.startColumn);oe+=be.endLineNumber-be.startLineNumber,be.intersectRanges(Q)?F=De:se.push(De)}),F&&se.unshift(F),se},ve.prototype._getRangesToDelete=function(Q){var C=Q.getSelections();if(C===null)return[];var F=C,se=Q.getModel();return se===null?[]:(F.sort(H.a.compareRangesUsingStarts),F=F.map(function(oe){if(oe.isEmpty())if(oe.startColumn===1){var be=Math.max(1,oe.startLineNumber-1),De=oe.startLineNumber===1?1:se.getLineContent(be).length+1;return new H.a(be,De,oe.startLineNumber,1)}else return new H.a(oe.startLineNumber,1,oe.startLineNumber,oe.startColumn);else return new H.a(oe.startLineNumber,1,oe.endLineNumber,oe.endColumn)}),F)},ve}(ue),he=function(Ee){k(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,C){for(var F=null,se=[],oe=0,be=C.length,De=0;oe<be;oe++){var Se=C[oe],Ve=new f.a(Se.startLineNumber-De,Se.startColumn,Se.startLineNumber-De,Se.startColumn);Se.intersectRanges(Q)?F=Ve:se.push(Ve)}return F&&se.unshift(F),se},ve.prototype._getRangesToDelete=function(Q){var C=Q.getModel();if(C===null)return[];var F=Q.getSelections();if(F===null)return[];var se=F.map(function(oe){if(oe.isEmpty()){var be=C.getLineMaxColumn(oe.startLineNumber);return oe.startColumn===be?new H.a(oe.startLineNumber,oe.startColumn,oe.startLineNumber+1,1):new H.a(oe.startLineNumber,oe.startColumn,oe.startLineNumber,be)}return oe});return se.sort(H.a.compareRangesUsingStarts),se},ve}(ue),je=function(Ee){k(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,C){var F=C.getSelections();if(F===null)return;var se=C.getSelection();if(se===null)return;F.sort(H.a.compareRangesUsingStarts);var oe=[],be=F.reduce(function(Nt,Et){return Nt.isEmpty()?Nt.endLineNumber===Et.startLineNumber?(se.equalsSelection(Nt)&&(se=Et),Et):Et.startLineNumber>Nt.endLineNumber+1?(oe.push(Nt),Et):new f.a(Nt.startLineNumber,Nt.startColumn,Et.endLineNumber,Et.endColumn):Et.startLineNumber>Nt.endLineNumber?(oe.push(Nt),Et):new f.a(Nt.startLineNumber,Nt.startColumn,Et.endLineNumber,Et.endColumn)});oe.push(be);var De=C.getModel();if(De===null)return;for(var Se=[],Ve=[],Qe=se,it=0,pt=0,Rt=oe.length;pt<Rt;pt++){var Mt=oe[pt],zt=Mt.startLineNumber,uo=1,ao=0,so=void 0,Pt=void 0,ft=De.getLineContent(Mt.endLineNumber).length-Mt.endColumn;if(Mt.isEmpty()||Mt.startLineNumber===Mt.endLineNumber){var vt=Mt.getStartPosition();vt.lineNumber<De.getLineCount()?(so=zt+1,Pt=De.getLineMaxColumn(so)):(so=vt.lineNumber,Pt=De.getLineMaxColumn(vt.lineNumber))}else so=Mt.endLineNumber,Pt=De.getLineMaxColumn(so);for(var At=De.getLineContent(zt),at=zt+1;at<=so;at++){var tt=De.getLineContent(at),ut=De.getLineFirstNonWhitespaceColumn(at);if(ut>=1){var Ct=!0;At===""&&(Ct=!1),Ct&&(At.charAt(At.length-1)===" "||At.charAt(At.length-1)===" ")&&(Ct=!1,At=At.replace(/[\s\uFEFF\xA0]+$/g," "));var gt=tt.substr(ut-1);At+=(Ct?" ":"")+gt,Ct?ao=gt.length+1:ao=gt.length}else ao=0}var bt=new H.a(zt,uo,so,Pt);if(!bt.isEmpty()){var Gt=void 0;Mt.isEmpty()?(Se.push(O.a.replace(bt,At)),Gt=new f.a(bt.startLineNumber-it,At.length-ao+1,zt-it,At.length-ao+1)):Mt.startLineNumber===Mt.endLineNumber?(Se.push(O.a.replace(bt,At)),Gt=new f.a(Mt.startLineNumber-it,Mt.startColumn,Mt.endLineNumber-it,Mt.endColumn)):(Se.push(O.a.replace(bt,At)),Gt=new f.a(Mt.startLineNumber-it,Mt.startColumn,Mt.startLineNumber-it,At.length-ft)),H.a.intersectRanges(bt,se)!==null?Qe=Gt:Ve.push(Gt)}it+=bt.endLineNumber-bt.startLineNumber}Ve.unshift(Qe),C.pushUndoStop(),C.executeEdits(this.id,Se,Ve),C.pushUndoStop()},ve}(I.b),Xe=function(Ee){k(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,C){var F=C.getSelections();if(F===null)return;var se=C.getModel();if(se===null)return;for(var oe=[],be=0,De=F.length;be<De;be++){var Se=F[be];if(!Se.isEmpty())continue;var Ve=Se.getStartPosition(),Qe=se.getLineMaxColumn(Ve.lineNumber);if(Ve.column>=Qe){if(Ve.lineNumber===se.getLineCount())continue;var it=new H.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber+1,1),pt=se.getValueInRange(it).split("").reverse().join("");oe.push(new U.a(new f.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber+1,1),pt))}else{var it=new H.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber,Ve.column+1),pt=se.getValueInRange(it).split("").reverse().join("");oe.push(new U.b(it,pt,new f.a(Ve.lineNumber,Ve.column+1,Ve.lineNumber,Ve.column+1)))}}C.pushUndoStop(),C.executeCommands(this.id,oe),C.pushUndoStop()},ve}(I.b),me=function(Ee){k(ve,Ee);function ve(){return Ee!==null&&Ee.apply(this,arguments)||this}return ve.prototype.run=function(Q,C){var F=C.getSelections();if(F===null)return;var se=C.getModel();if(se===null)return;for(var oe=C.getOption(96),be=[],De=0,Se=F.length;De<Se;De++){var Ve=F[De];if(Ve.isEmpty()){var Qe=Ve.getStartPosition(),it=se.getWordAtPosition(Qe);if(!it)continue;var pt=new H.a(Qe.lineNumber,it.startColumn,Qe.lineNumber,it.endColumn),Rt=se.getValueInRange(pt);be.push(new U.b(pt,this._modifyText(Rt,oe),new f.a(Qe.lineNumber,Qe.column,Qe.lineNumber,Qe.column)))}else{var Rt=se.getValueInRange(Ve);be.push(new U.b(Ve,this._modifyText(Rt,oe),Ve))}}C.pushUndoStop(),C.executeCommands(this.id,be),C.pushUndoStop()},ve}(I.b),ge=function(Ee){k(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,C){return Q.toLocaleUpperCase()},ve}(me),we=function(Ee){k(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,C){return Q.toLocaleLowerCase()},ve}(me),Re=function(Ee){k(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,C){for(var F=`\r
`+C,se=F.split(""),oe="",be=!0,De=0;De<Q.length;De++){var Se=Q[De];se.indexOf(Se)>=0?(be=!0,oe+=Se):be?(be=!1,oe+=Se.toLocaleUpperCase()):oe+=Se.toLocaleLowerCase()}return oe},ve}(me);Object(I.f)($),Object(I.f)(ie),Object(I.f)(W),Object(I.f)(le),Object(I.f)(Ce),Object(I.f)(Te),Object(I.f)(Fe),Object(I.f)(Ue),Object(I.f)(Pe),Object(I.f)(ne),Object(I.f)(ee),Object(I.f)(ae),Object(I.f)(q),Object(I.f)(X),Object(I.f)(he),Object(I.f)(je),Object(I.f)(Xe),Object(I.f)(ge),Object(I.f)(we),Object(I.f)(Re)},dgXF:function(Lt,j,e){"use strict";e.r(j),e.d(j,"FoldingController",function(){return F}),e.d(j,"foldBackgroundBackground",function(){return so});var T=e("CjOT"),re=e("3/fG"),J=e("746U"),I=e("N0LK"),U=e("X+cX"),z=e("/kV6"),O=e("pmY6"),H=e("sswD"),x=e("MI8n"),u=65535,y=16777215,_=4278190080,f=function(){function Pt(ft,vt,At){if(ft.length!==vt.length||ft.length>u)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=At,this._parentsComputed=!1}return Pt.prototype.ensureParentIndices=function(){var ft=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var vt=[],At=function(Gt,Nt){var Et=vt[vt.length-1];return ft.getStartLineNumber(Et)<=Gt&&ft.getEndLineNumber(Et)>=Nt},at=0,tt=this._startIndexes.length;at<tt;at++){var ut=this._startIndexes[at],Ct=this._endIndexes[at];if(ut>y||Ct>y)throw new Error("startLineNumber or endLineNumber must not exceed "+y);for(;vt.length>0&&!At(ut,Ct);)vt.pop();var gt=vt.length>0?vt[vt.length-1]:-1;vt.push(at),this._startIndexes[at]=ut+((gt&255)<<24),this._endIndexes[at]=Ct+((gt&65280)<<16)}}},Object.defineProperty(Pt.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),Pt.prototype.getStartLineNumber=function(ft){return this._startIndexes[ft]&y},Pt.prototype.getEndLineNumber=function(ft){return this._endIndexes[ft]&y},Pt.prototype.getType=function(ft){return this._types?this._types[ft]:void 0},Pt.prototype.hasTypes=function(){return!!this._types},Pt.prototype.isCollapsed=function(ft){var vt=ft/32|0,At=ft%32;return(this._collapseStates[vt]&1<<At)!==0},Pt.prototype.setCollapsed=function(ft,vt){var At=ft/32|0,at=ft%32,tt=this._collapseStates[At];vt?this._collapseStates[At]=tt|1<<at:this._collapseStates[At]=tt&~(1<<at)},Pt.prototype.toRegion=function(ft){return new v(this,ft)},Pt.prototype.getParentIndex=function(ft){this.ensureParentIndices();var vt=((this._startIndexes[ft]&_)>>>24)+((this._endIndexes[ft]&_)>>>16);return vt===u?-1:vt},Pt.prototype.contains=function(ft,vt){return this.getStartLineNumber(ft)<=vt&&this.getEndLineNumber(ft)>=vt},Pt.prototype.findIndex=function(ft){var vt=0,At=this._startIndexes.length;if(At===0)return-1;for(;vt<At;){var at=Math.floor((vt+At)/2);ft<this.getStartLineNumber(at)?At=at:vt=at+1}return vt-1},Pt.prototype.findRange=function(ft){var vt=this.findIndex(ft);if(vt>=0){var At=this.getEndLineNumber(vt);if(At>=ft)return vt;for(vt=this.getParentIndex(vt);vt!==-1;){if(this.contains(vt,ft))return vt;vt=this.getParentIndex(vt)}}return-1},Pt.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(", ")},Pt}(),v=function(){function Pt(ft,vt){this.ranges=ft,this.index=vt}return Object.defineProperty(Pt.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),Pt.prototype.containedBy=function(ft){return ft.startLineNumber<=this.startLineNumber&&ft.endLineNumber>=this.endLineNumber},Pt.prototype.containsLine=function(ft){return this.startLineNumber<=ft&&ft<=this.endLineNumber},Pt}(),w=function(){function Pt(ft,vt){this._updateEventEmitter=new x.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(Pt.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),Pt.prototype.toggleCollapseState=function(ft){var vt=this;if(!ft.length)return;var At={};this._decorationProvider.changeDecorations(function(at){for(var tt=0,ut=ft;tt<ut.length;tt++){var Ct=ut[tt],gt=Ct.regionIndex,bt=vt._editorDecorationIds[gt];if(bt&&!At[bt]){At[bt]=!0;var Gt=!vt._regions.isCollapsed(gt);vt._regions.setCollapsed(gt,Gt),at.changeDecorationOptions(bt,vt._decorationProvider.getDecorationOption(Gt))}}}),this._updateEventEmitter.fire({model:this,collapseStateChanged:ft})},Pt.prototype.update=function(ft,vt){var At=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},ut=function(ze,Ke){var fe=ft.getStartLineNumber(ze);Ke&&tt(fe,ft.getEndLineNumber(ze))&&(Ke=!1),ft.setCollapsed(ze,Ke);var G=At._textModel.getLineMaxColumn(fe),te={startLineNumber:fe,startColumn:G,endLineNumber:fe,endColumn:G};at.push({range:te,options:At._decorationProvider.getDecorationOption(Ke)})},Ct=0,gt=function(){for(;Ct<At._regions.length;){var ze=At._regions.isCollapsed(Ct);if(Ct++,ze)return Ct-1}return-1},bt=0,Gt=gt();Gt!==-1&&bt<ft.length;){var Nt=this._textModel.getDecorationRange(this._editorDecorationIds[Gt]);if(Nt){var Et=Nt.startLineNumber;if(this._textModel.getLineMaxColumn(Et)===Nt.startColumn)for(;bt<ft.length;){var Je=ft.getStartLineNumber(bt);if(Et>=Je)ut(bt,Et===Je),bt++;else break}}Gt=gt()}for(;bt<ft.length;)ut(bt,!1),bt++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,at),this._regions=ft,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},Pt.prototype.getMemento=function(){for(var ft=[],vt=0;vt<this._regions.length;vt++)if(this._regions.isCollapsed(vt)){var At=this._textModel.getDecorationRange(this._editorDecorationIds[vt]);if(At){var at=At.startLineNumber,tt=At.endLineNumber+this._regions.getEndLineNumber(vt)-this._regions.getStartLineNumber(vt);ft.push({startLineNumber:at,endLineNumber:tt})}}return ft.length>0?ft:void 0},Pt.prototype.applyMemento=function(ft){if(!Array.isArray(ft))return;for(var vt=[],At=0,at=ft;At<at.length;At++){var tt=at[At],ut=this.getRegionAtLine(tt.startLineNumber);ut&&!ut.isCollapsed&&vt.push(ut)}this.toggleCollapseState(vt)},Pt.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},Pt.prototype.getAllRegionsAtLine=function(ft,vt){var At=[];if(this._regions)for(var at=this._regions.findRange(ft),tt=1;at>=0;){var ut=this._regions.toRegion(at);(!vt||vt(ut,tt))&&At.push(ut),tt++,at=ut.parentIndex}return At},Pt.prototype.getRegionAtLine=function(ft){if(this._regions){var vt=this._regions.findRange(ft);if(vt>=0)return this._regions.toRegion(vt)}return null},Pt.prototype.getRegionsInside=function(ft,vt){var At=[],at=ft?ft.regionIndex+1:0,tt=ft?ft.endLineNumber:Number.MAX_VALUE;if(vt&&vt.length===2)for(var ut=[],Ct=at,gt=this._regions.length;Ct<gt;Ct++){var bt=this._regions.toRegion(Ct);if(this._regions.getStartLineNumber(Ct)<tt){for(;ut.length>0&&!bt.containedBy(ut[ut.length-1]);)ut.pop();ut.push(bt),vt(bt,ut.length)&&At.push(bt)}else break}else for(var Ct=at,gt=this._regions.length;Ct<gt;Ct++){var bt=this._regions.toRegion(Ct);if(this._regions.getStartLineNumber(Ct)<tt)(!vt||vt(bt))&&At.push(bt);else break}return At},Pt}();function p(Pt,ft,vt){for(var At=[],at=function(bt){var Gt=Pt.getRegionAtLine(bt);if(Gt){var Nt=!Gt.isCollapsed;if(At.push(Gt),ft>1){var Et=Pt.getRegionsInside(Gt,function(Je,$e){return Je.isCollapsed!==Nt&&$e<ft});At.push.apply(At,Et)}}},tt=0,ut=vt;tt<ut.length;tt++){var Ct=ut[tt];at(Ct)}Pt.toggleCollapseState(At)}function c(Pt,ft,vt,At){vt===void 0&&(vt=Number.MAX_VALUE);var at=[];if(At&&At.length>0)for(var tt=0,ut=At;tt<ut.length;tt++){var Ct=ut[tt],gt=Pt.getRegionAtLine(Ct);if(gt&&(gt.isCollapsed!==ft&&at.push(gt),vt>1)){var bt=Pt.getRegionsInside(gt,function(Gt,Nt){return Gt.isCollapsed!==ft&&Nt<vt});at.push.apply(at,bt)}}else{var bt=Pt.getRegionsInside(null,function(Nt,Et){return Nt.isCollapsed!==ft&&Et<vt});at.push.apply(at,bt)}Pt.toggleCollapseState(at)}function s(Pt,ft,vt,At){for(var at=[],tt=0,ut=At;tt<ut.length;tt++){var Ct=ut[tt],gt=Pt.getAllRegionsAtLine(Ct,function(bt,Gt){return bt.isCollapsed!==ft&&Gt<=vt});at.push.apply(at,gt)}Pt.toggleCollapseState(at)}function l(Pt,ft,vt){for(var At=[],at=0,tt=vt;at<tt.length;at++){var ut=tt[at],Ct=Pt.getAllRegionsAtLine(ut,function(gt){return gt.isCollapsed!==ft});Ct.length>0&&At.push(Ct[0])}Pt.toggleCollapseState(At)}function d(Pt,ft,vt,At){var at=function(Ct,gt){return gt===ft&&Ct.isCollapsed!==vt&&!At.some(function(bt){return Ct.containsLine(bt)})},tt=Pt.getRegionsInside(null,at);Pt.toggleCollapseState(tt)}function m(Pt,ft,vt){for(var At=Pt.textModel,at=Pt.regions,tt=[],ut=at.length-1;ut>=0;ut--)if(vt!==at.isCollapsed(ut)){var Ct=at.getStartLineNumber(ut);ft.test(At.getLineContent(Ct))&&tt.push(at.toRegion(ut))}Pt.toggleCollapseState(tt)}function E(Pt,ft,vt){for(var At=Pt.regions,at=[],tt=At.length-1;tt>=0;tt--)vt!==At.isCollapsed(tt)&&ft===At.getType(tt)&&at.push(At.toRegion(tt));Pt.toggleCollapseState(at)}var L=e("tX9W"),A=function(){function Pt(ft){this.editor=ft,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}return Pt.prototype.getDecorationOption=function(ft){return ft?this.showFoldingHighlights?Pt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:Pt.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?Pt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:Pt.EXPANDED_VISUAL_DECORATION},Pt.prototype.deltaDecorations=function(ft,vt){return this.editor.deltaDecorations(ft,vt)},Pt.prototype.changeDecorations=function(ft){return this.editor.changeDecorations(ft)},Pt.COLLAPSED_VISUAL_DECORATION=L.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),Pt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=L.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),Pt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=L.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),Pt.EXPANDED_VISUAL_DECORATION=L.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),Pt}(),k=e("wQH0"),R=e("aokT"),$=e("6OMU"),ie=function(){function Pt(ft){var vt=this;this._updateEventEmitter=new x.a,this._foldingModel=ft,this._foldingModelListener=ft.onDidChange(function(At){return vt.updateHiddenRanges()}),this._hiddenRanges=[],ft.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(Pt.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),Pt.prototype.updateHiddenRanges=function(){for(var ft=!1,vt=[],At=0,at=0,tt=Number.MAX_VALUE,ut=-1,Ct=this._foldingModel.regions;At<Ct.length;At++){if(!Ct.isCollapsed(At))continue;var gt=Ct.getStartLineNumber(At)+1,bt=Ct.getEndLineNumber(At);if(tt<=gt&&bt<=ut)continue;!ft&&at<this._hiddenRanges.length&&this._hiddenRanges[at].startLineNumber===gt&&this._hiddenRanges[at].endLineNumber===bt?(vt.push(this._hiddenRanges[at]),at++):(ft=!0,vt.push(new R.a(gt,1,bt,1))),tt=gt,ut=bt}(ft||at<this._hiddenRanges.length)&&this.applyHiddenRanges(vt)},Pt.prototype.applyMemento=function(ft){if(!Array.isArray(ft)||ft.length===0)return!1;for(var vt=[],At=0,at=ft;At<at.length;At++){var tt=at[At];if(!tt.startLineNumber||!tt.endLineNumber)return!1;vt.push(new R.a(tt.startLineNumber+1,1,tt.endLineNumber,1))}return this.applyHiddenRanges(vt),!0},Pt.prototype.getMemento=function(){return this._hiddenRanges.map(function(ft){return{startLineNumber:ft.startLineNumber-1,endLineNumber:ft.endLineNumber}})},Pt.prototype.applyHiddenRanges=function(ft){this._hiddenRanges=ft,this._updateEventEmitter.fire(ft)},Pt.prototype.hasRanges=function(){return this._hiddenRanges.length>0},Pt.prototype.isHidden=function(ft){return B(this._hiddenRanges,ft)!==null},Pt.prototype.adjustSelections=function(ft){for(var vt=this,At=!1,at=this._foldingModel.textModel,tt=null,ut=function(Je){return(!tt||!W(Je,tt))&&(tt=B(vt._hiddenRanges,Je)),tt?tt.startLineNumber-1:null},Ct=0,gt=ft.length;Ct<gt;Ct++){var bt=ft[Ct],Gt=ut(bt.startLineNumber);Gt&&(bt=bt.setStartPosition(Gt,at.getLineMaxColumn(Gt)),At=!0);var Nt=ut(bt.endLineNumber);Nt&&(bt=bt.setEndPosition(Nt,at.getLineMaxColumn(Nt)),At=!0),ft[Ct]=bt}return At},Pt.prototype.dispose=function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},Pt}();function W(Pt,ft){return Pt>=ft.startLineNumber&&Pt<=ft.endLineNumber}function B(Pt,ft){var vt=Object($.i)(Pt,function(At){return ft<At.startLineNumber})-1;return vt>=0&&Pt[vt].endLineNumber>=ft?Pt[vt]:null}var le=e("cMvZ"),Ce=5e3,Me="indent",Te=function(){function Pt(ft){this.editorModel=ft,this.id=Me}return Pt.prototype.dispose=function(){},Pt.prototype.compute=function(ft){var vt=le.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),At=vt&&!!vt.offSide,at=vt&&vt.markers;return Promise.resolve(Ue(this.editorModel,At,at))},Pt}(),Fe=function(){function Pt(ft){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=ft}return Pt.prototype.insertFirst=function(ft,vt,At){if(ft>y||vt>y)return;var at=this._length;this._startIndexes[at]=ft,this._endIndexes[at]=vt,this._length++,At<1e3&&(this._indentOccurrences[At]=(this._indentOccurrences[At]||0)+1)},Pt.prototype.toIndentRanges=function(ft){if(this._length<=this._foldingRangesLimit){for(var vt=new Uint32Array(this._length),At=new Uint32Array(this._length),at=this._length-1,tt=0;at>=0;at--,tt++)vt[tt]=this._startIndexes[at],At[tt]=this._endIndexes[at];return new f(vt,At)}else{for(var ut=0,Ct=this._indentOccurrences.length,at=0;at<this._indentOccurrences.length;at++){var gt=this._indentOccurrences[at];if(gt){if(gt+ut>this._foldingRangesLimit){Ct=at;break}ut+=gt}}for(var bt=ft.getOptions().tabSize,vt=new Uint32Array(this._foldingRangesLimit),At=new Uint32Array(this._foldingRangesLimit),at=this._length-1,tt=0;at>=0;at--){var Gt=this._startIndexes[at],Nt=ft.getLineContent(Gt),Et=L.b.computeIndentLevel(Nt,bt);(Et<Ct||Et===Ct&&ut++<this._foldingRangesLimit)&&(vt[tt]=Gt,At[tt]=this._endIndexes[at],tt++)}return new f(vt,At)}},Pt}();function Ue(Pt,ft,vt,At){At===void 0&&(At=Ce);var at=Pt.getOptions().tabSize,tt=new Fe(At),ut=void 0;vt&&(ut=new RegExp("("+vt.start.source+")|(?:"+vt.end.source+")"));var Ct=[],gt=Pt.getLineCount()+1;Ct.push({indent:-1,endAbove:gt,line:gt});for(var bt=Pt.getLineCount();bt>0;bt--){var Gt=Pt.getLineContent(bt),Nt=L.b.computeIndentLevel(Gt,at),Et=Ct[Ct.length-1];if(Nt===-1){ft&&(Et.endAbove=bt);continue}var Je=void 0;if(ut&&(Je=Gt.match(ut)))if(Je[1]){for(var $e=Ct.length-1;$e>0&&Ct[$e].indent!==-2;)$e--;if($e>0){Ct.length=$e+1,Et=Ct[$e],tt.insertFirst(bt,Et.line,Nt),Et.line=bt,Et.indent=Nt,Et.endAbove=bt;continue}}else{Ct.push({indent:-2,endAbove:bt,line:bt});continue}if(Et.indent>Nt){do Ct.pop(),Et=Ct[Ct.length-1];while(Et.indent>Nt);var ze=Et.endAbove-1;ze-bt>=1&&tt.insertFirst(bt,ze,Nt)}Et.indent===Nt?Et.endAbove=bt:Ct.push({indent:Nt,endAbove:bt,line:bt})}return tt.toIndentRanges(Pt)}var Pe=e("twdY"),ne=e("/cxE"),ee=5e3,ae={},q="syntax",ue=function(){function Pt(ft,vt,At){At===void 0&&(At=ee),this.editorModel=ft,this.providers=vt,this.limit=At,this.id=q}return Pt.prototype.compute=function(ft){var vt=this;return X(this.providers,this.editorModel,ft).then(function(At){if(At){var at=je(At,vt.limit);return at}return null})},Pt.prototype.dispose=function(){},Pt}();function X(Pt,ft,vt){var At=null,at=Pt.map(function(tt,ut){return Promise.resolve(tt.provideFoldingRanges(ft,ae,vt)).then(function(Ct){if(vt.isCancellationRequested)return;if(Array.isArray(Ct)){Array.isArray(At)||(At=[]);for(var gt=ft.getLineCount(),bt=0,Gt=Ct;bt<Gt.length;bt++){var Nt=Gt[bt];Nt.start>0&&Nt.end>Nt.start&&Nt.end<=gt&&At.push({start:Nt.start,end:Nt.end,rank:ut,kind:Nt.kind})}}},ne.f)});return Promise.all(at).then(function(tt){return At})}var he=function(){function Pt(ft){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=ft}return Pt.prototype.add=function(ft,vt,At,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]=At,this._length++,at<30&&(this._nestingLevelCounts[at]=(this._nestingLevelCounts[at]||0)+1)},Pt.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var ft=new Uint32Array(this._length),vt=new Uint32Array(this._length),At=0;At<this._length;At++)ft[At]=this._startIndexes[At],vt[At]=this._endIndexes[At];return new f(ft,vt,this._types)}else{for(var at=0,tt=this._nestingLevelCounts.length,At=0;At<this._nestingLevelCounts.length;At++){var ut=this._nestingLevelCounts[At];if(ut){if(ut+at>this._foldingRangesLimit){tt=At;break}at+=ut}}for(var ft=new Uint32Array(this._foldingRangesLimit),vt=new Uint32Array(this._foldingRangesLimit),Ct=[],At=0,gt=0;At<this._length;At++){var bt=this._nestingLevels[At];(bt<tt||bt===tt&&at++<this._foldingRangesLimit)&&(ft[gt]=this._startIndexes[At],vt[gt]=this._endIndexes[At],Ct[gt]=this._types[At],gt++)}return new f(ft,vt,Ct)}},Pt}();function je(Pt,ft){for(var vt=Pt.sort(function(bt,Gt){var Nt=bt.start-Gt.start;return Nt===0&&(Nt=bt.rank-Gt.rank),Nt}),At=new he(ft),at=void 0,tt=[],ut=0,Ct=vt;ut<Ct.length;ut++){var gt=Ct[ut];if(!at)at=gt,At.add(gt.start,gt.end,gt.kind&&gt.kind.value,tt.length);else if(gt.start>at.start)if(gt.end<=at.end)tt.push(at),at=gt,At.add(gt.start,gt.end,gt.kind&&gt.kind.value,tt.length);else{if(gt.start>at.end){do at=tt.pop();while(at&&gt.start>at.end);at&&tt.push(at),at=gt}At.add(gt.start,gt.end,gt.kind&&gt.kind.value,tt.length)}}return At.toIndentRanges()}var Xe="init",me=function(){function Pt(ft,vt,At,at){if(this.editorModel=ft,this.id=Xe,vt.length){var tt=function(Ct){return{range:{startLineNumber:Ct.startLineNumber,startColumn:0,endLineNumber:Ct.endLineNumber,endColumn:ft.getLineLength(Ct.endLineNumber)},options:{stickiness:1}}};this.decorationIds=ft.deltaDecorations([],vt.map(tt)),this.timeout=setTimeout(At,at)}}return Pt.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)},Pt.prototype.compute=function(ft){var vt=[];if(this.decorationIds)for(var At=0,at=this.decorationIds;At<at.length;At++){var tt=at[At],ut=this.editorModel.getDecorationRange(tt);ut&&vt.push({start:ut.startLineNumber,end:ut.endLineNumber,rank:1})}return Promise.resolve(je(vt,Number.MAX_VALUE))},Pt}(),ge=e("T8No"),we=e("t9D7"),Re=e("MD5Z"),Ee=function(){var Pt=function(vt,At){return Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,tt){at.__proto__=tt}||function(at,tt){for(var ut in tt)tt.hasOwnProperty(ut)&&(at[ut]=tt[ut])},Pt(vt,At)};return function(ft,vt){Pt(ft,vt);function At(){this.constructor=ft}ft.prototype=vt===null?Object.create(vt):(At.prototype=vt.prototype,new At)}}(),ve=function(Pt,ft,vt,At){var at=arguments.length,tt=at<3?ft:At===null?At=Object.getOwnPropertyDescriptor(ft,vt):At,ut;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(Pt,ft,vt,At);else for(var Ct=Pt.length-1;Ct>=0;Ct--)(ut=Pt[Ct])&&(tt=(at<3?ut(tt):at>3?ut(ft,vt,tt):ut(ft,vt))||tt);return at>3&&tt&&Object.defineProperty(ft,vt,tt),tt},Q=function(Pt,ft){return function(vt,At){ft(vt,At,Pt)}},C=new ge.d("foldingEnabled",!1),F=function(Pt){Ee(ft,Pt);function ft(vt,At){var at=Pt.call(this)||this;at.contextKeyService=At,at.localToDispose=at._register(new O.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 A(vt),at.foldingDecorationProvider.autoHideFoldingControls=tt.get(84)==="mouseover",at.foldingDecorationProvider.showFoldingHighlights=tt.get(32),at.foldingEnabled=C.bindTo(at.contextKeyService),at.foldingEnabled.set(at._isEnabled),at._register(at.editor.onDidChangeModel(function(){return at.onModelChanged()})),at._register(at.editor.onDidChangeConfiguration(function(ut){if(ut.hasChanged(30)){var Ct=at.editor.getOptions();at._isEnabled=Ct.get(30),at.foldingEnabled.set(at._isEnabled),at.onModelChanged()}if(ut.hasChanged(84)||ut.hasChanged(32)){var gt=at.editor.getOptions();at.foldingDecorationProvider.autoHideFoldingControls=gt.get(84)==="mouseover",at.foldingDecorationProvider.showFoldingHighlights=gt.get(32),at.onModelContentChanged()}if(ut.hasChanged(31)){var bt=at.editor.getOptions();at._useFoldingProviders=bt.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 At=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),at=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:At,lineCount:vt.getLineCount(),provider:at}}return},ft.prototype.restoreViewState=function(vt){var At=this.editor.getModel();if(!At||!this._isEnabled||At.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!vt||!vt.collapsedRegions||vt.lineCount!==At.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(ut){ut&&ut.applyMemento(at)}).then(void 0,ne.e)}},ft.prototype.onModelChanged=function(){var vt=this;this.localToDispose.clear();var At=this.editor.getModel();if(!this._isEnabled||!At||At.isTooLargeForTokenization())return;this.foldingModel=new w(At,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 U.a(200),this.cursorChangedScheduler=new U.d(function(){return vt.revealCursor()},200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(Pe.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 At=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new Te(vt),this._useFoldingProviders&&this.foldingModel){var at=Pe.o.ordered(this.foldingModel.textModel);if(at.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var tt=this.rangeProvider=new me(vt,this.foldingStateMemento.collapsedRegions,function(){At.foldingStateMemento=null,At.onFoldingStrategyChanged()},3e4);return tt}else at.length>0&&(this.rangeProvider=new ue(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 At=vt.foldingModel;if(!At)return null;var at=vt.foldingRegionPromise=Object(U.f)(function(tt){return vt.getRangeProvider(At.textModel).compute(tt)});return at.then(function(tt){if(tt&&at===vt.foldingRegionPromise){var ut=vt.editor.getSelections(),Ct=ut?ut.map(function(gt){return gt.startLineNumber}):[];At.update(tt,Ct)}return At})}).then(void 0,function(At){return Object(ne.e)(At),null}))},ft.prototype.onHiddenRangesChanges=function(vt){if(this.hiddenRangeModel&&vt.length){var At=this.editor.getSelections();At&&(this.hiddenRangeModel.adjustSelections(At)&&this.editor.setSelections(At))}this.editor.setHiddenAreas(vt)},ft.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},ft.prototype.revealCursor=function(){var vt=this,At=this.getFoldingModel();if(!At)return;At.then(function(at){if(at){var tt=vt.editor.getSelections();if(tt&&tt.length>0){for(var ut=[],Ct=function(Et){var Je=Et.selectionStartLineNumber;vt.hiddenRangeModel&&vt.hiddenRangeModel.isHidden(Je)&&ut.push.apply(ut,at.getAllRegionsAtLine(Je,function($e){return $e.isCollapsed&&Je>$e.startLineNumber}))},gt=0,bt=tt;gt<bt.length;gt++){var Gt=bt[gt];Ct(Gt)}ut.length&&(at.toggleCollapseState(ut),vt.reveal(tt[0].getPosition()))}}}).then(void 0,ne.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 At=vt.target.range,at=!1;switch(vt.target.type){case 4:var tt=vt.target.detail,ut=vt.target.element.offsetLeft,Ct=tt.offsetX-ut;if(Ct<5)return;at=!0;break;case 6:{if(this.hiddenRangeModel.hasRanges()){var gt=this.editor.getModel();if(gt&&At.startColumn===gt.getLineMaxColumn(At.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:At.startLineNumber,iconClicked:at}},ft.prototype.onEditorMouseUp=function(vt){var At=this,at=this.getFoldingModel();if(!at||!this.mouseDownInfo||!vt.target)return;var tt=this.mouseDownInfo.lineNumber,ut=this.mouseDownInfo.iconClicked,Ct=vt.target.range;if(!Ct||Ct.startLineNumber!==tt)return;if(ut){if(vt.target.type!==4)return}else{var gt=this.editor.getModel();if(!gt||Ct.startColumn!==gt.getLineMaxColumn(tt))return}at.then(function(bt){if(bt){var Gt=bt.getRegionAtLine(tt);if(Gt&&Gt.startLineNumber===tt){var Nt=Gt.isCollapsed;if(ut||Nt){var Et=[],Je=vt.event.middleButton||vt.event.shiftKey;if(Je)for(var $e=0,ze=bt.getRegionsInside(Gt);$e<ze.length;$e++){var Ke=ze[$e];Ke.isCollapsed===Nt&&Et.push(Ke)}(Nt||!Je||Et.length===0)&&Et.push(Gt),bt.toggleCollapseState(Et),At.reveal({lineNumber:tt,column:1})}}}}).then(void 0,ne.e)},ft.prototype.reveal=function(vt){this.editor.revealPositionInCenterIfOutsideViewport(vt,0)},ft.ID="editor.contrib.folding",ft=ve([Q(1,ge.c)],ft),ft}(O.a),se=function(Pt){Ee(ft,Pt);function ft(){return Pt!==null&&Pt.apply(this,arguments)||this}return ft.prototype.runEditorCommand=function(vt,At,at){var tt=this,ut=F.get(At);if(!ut)return;var Ct=ut.getFoldingModel();if(Ct)return this.reportTelemetry(vt,At),Ct.then(function(gt){if(gt){tt.invoke(ut,gt,At,at);var bt=At.getSelection();bt&&ut.reveal(bt.getStartPosition())}})},ft.prototype.getSelectedLines=function(vt){var At=vt.getSelections();return At?At.map(function(at){return at.startLineNumber}):[]},ft.prototype.getLineNumbers=function(vt,At){return vt&&vt.selectionLines?vt.selectionLines.map(function(at){return at+1}):this.getSelectedLines(At)},ft.prototype.run=function(vt,At){},ft}(H.b);function oe(Pt){if(!J.k(Pt)){if(!J.i(Pt))return!1;var ft=Pt;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 be=function(Pt){Ee(ft,Pt);function ft(){return Pt.call(this,{id:"editor.unfold",label:re.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:C,kbOpts:{kbExpr:k.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:oe,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,At,at,tt){var ut=tt&&tt.levels||1,Ct=this.getLineNumbers(tt,at);tt&&tt.direction==="up"?s(At,!1,ut,Ct):c(At,!1,ut,Ct)},ft}(se),De=function(Pt){Ee(ft,Pt);function ft(){return Pt.call(this,{id:"editor.unfoldRecursively",label:re.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:C,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|89),weight:100}})||this}return ft.prototype.invoke=function(vt,At,at,tt){c(At,!1,Number.MAX_VALUE,this.getSelectedLines(at))},ft}(se),Se=function(Pt){Ee(ft,Pt);function ft(){return Pt.call(this,{id:"editor.fold",label:re.a("foldAction.label","Fold"),alias:"Fold",precondition:C,kbOpts:{kbExpr:k.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:oe,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,At,at,tt){var ut=this.getLineNumbers(tt,at),Ct=tt&&tt.levels,gt=tt&&tt.direction;typeof Ct!="number"&&typeof gt!="string"?l(At,!0,ut):gt==="up"?s(At,!0,Ct||1,ut):c(At,!0,Ct||1,ut)},ft}(se),Ve=function(Pt){Ee(ft,Pt);function ft(){return Pt.call(this,{id:"editor.toggleFold",label:re.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:C,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|42),weight:100}})||this}return ft.prototype.invoke=function(vt,At,at){var tt=this.getSelectedLines(at);p(At,1,tt)},ft}(se),Qe=function(Pt){Ee(ft,Pt);function ft(){return Pt.call(this,{id:"editor.foldRecursively",label:re.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:C,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|87),weight:100}})||this}return ft.prototype.invoke=function(vt,At,at){var tt=this.getSelectedLines(at);c(At,!0,Number.MAX_VALUE,tt)},ft}(se),it=function(Pt){Ee(ft,Pt);function ft(){return Pt.call(this,{id:"editor.foldAllBlockComments",label:re.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:C,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|85),weight:100}})||this}return ft.prototype.invoke=function(vt,At,at){if(At.regions.hasTypes())E(At,Pe.n.Comment.value,!0);else{var tt=at.getModel();if(!tt)return;var ut=le.a.getComments(tt.getLanguageIdentifier().id);if(ut&&ut.blockCommentStartToken){var Ct=new RegExp("^\\s*"+Object(I.p)(ut.blockCommentStartToken));m(At,Ct,!0)}}},ft}(se),pt=function(Pt){Ee(ft,Pt);function ft(){return Pt.call(this,{id:"editor.foldAllMarkerRegions",label:re.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:C,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|29),weight:100}})||this}return ft.prototype.invoke=function(vt,At,at){if(At.regions.hasTypes())E(At,Pe.n.Region.value,!0);else{var tt=at.getModel();if(!tt)return;var ut=le.a.getFoldingRules(tt.getLanguageIdentifier().id);if(ut&&ut.markers&&ut.markers.start){var Ct=new RegExp(ut.markers.start);m(At,Ct,!0)}}},ft}(se),Rt=function(Pt){Ee(ft,Pt);function ft(){return Pt.call(this,{id:"editor.unfoldAllMarkerRegions",label:re.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:C,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|30),weight:100}})||this}return ft.prototype.invoke=function(vt,At,at){if(At.regions.hasTypes())E(At,Pe.n.Region.value,!1);else{var tt=at.getModel();if(!tt)return;var ut=le.a.getFoldingRules(tt.getLanguageIdentifier().id);if(ut&&ut.markers&&ut.markers.start){var Ct=new RegExp(ut.markers.start);m(At,Ct,!1)}}},ft}(se),Mt=function(Pt){Ee(ft,Pt);function ft(){return Pt.call(this,{id:"editor.foldAll",label:re.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:C,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|21),weight:100}})||this}return ft.prototype.invoke=function(vt,At,at){c(At,!0)},ft}(se),zt=function(Pt){Ee(ft,Pt);function ft(){return Pt.call(this,{id:"editor.unfoldAll",label:re.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:C,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|40),weight:100}})||this}return ft.prototype.invoke=function(vt,At,at){c(At,!1)},ft}(se),uo=function(Pt){Ee(ft,Pt);function ft(){return Pt!==null&&Pt.apply(this,arguments)||this}return ft.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(ft.ID_PREFIX.length))},ft.prototype.invoke=function(vt,At,at){d(At,this.getFoldingLevel(),!0,this.getSelectedLines(at))},ft.ID_PREFIX="editor.foldLevel",ft.ID=function(vt){return ft.ID_PREFIX+vt},ft}(se);Object(H.h)(F.ID,F),Object(H.f)(be),Object(H.f)(De),Object(H.f)(Se),Object(H.f)(Qe),Object(H.f)(Mt),Object(H.f)(zt),Object(H.f)(it),Object(H.f)(pt),Object(H.f)(Rt),Object(H.f)(Ve);for(var ao=1;ao<=7;ao++)Object(H.i)(new uo({id:uo.ID(ao),label:re.a("foldLevelAction.label","Fold Level {0}",ao),alias:"Fold Level "+ao,precondition:C,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|21+ao),weight:100}}));var so=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(we.e)(function(Pt,ft){var vt=Pt.getColor(so);vt&&ft.addRule(".monaco-editor .folded-background { background-color: "+vt+"; }")})},e0rL:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});var T=e("Cg/j"),re=Object(T.c)("textResourceConfigurationService"),J=Object(T.c)("textResourcePropertiesService")},e1ni:function(Lt,j,e){},eC1c:function(Lt,j,e){},eLzo:function(Lt,j,e){"use strict";e.d(j,"a",function(){return J}),e.d(j,"b",function(){return I}),e.d(j,"c",function(){return z}),e.d(j,"e",function(){return H}),e.d(j,"d",function(){return x});var T=e("6OMU"),re=e("Vhoy"),J=function(){function u(y,_){y===void 0&&(y=""),_===void 0&&(_=!1);var f,v;this._value=y,typeof _=="boolean"?(this._isTrusted=_,this._supportThemeIcons=!1):(this._isTrusted=(f=_.isTrusted)!==null&&f!==void 0?f:!1,this._supportThemeIcons=(v=_.supportThemeIcons)!==null&&v!==void 0?v:!1)}return Object.defineProperty(u.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"supportThemeIcons",{get:function(){return this._supportThemeIcons},enumerable:!0,configurable:!0}),u.prototype.appendText=function(y){return this._value+=(this._supportThemeIcons?Object(re.a)(y):y).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace(`
`,`
`),this},u.prototype.appendMarkdown=function(y){return this._value+=y,this},u.prototype.appendCodeblock=function(y,_){return this._value+="\n```",this._value+=y,this._value+=`
`,this._value+=_,this._value+="\n```\n",this},u}();function I(u){return U(u)?!u.value:Array.isArray(u)?u.every(I):!0}function U(u){return u instanceof J?!0:u&&typeof u=="object"?typeof u.value=="string"&&(typeof u.isTrusted=="boolean"||u.isTrusted===void 0)&&(typeof u.supportThemeIcons=="boolean"||u.supportThemeIcons===void 0):!1}function z(u,y){return!u&&!y?!0:!u||!y?!1:Array.isArray(u)&&Array.isArray(y)?Object(T.g)(u,y,O):U(u)&&U(y)?O(u,y):!1}function O(u,y){return u===y?!0:!u||!y?!1:u.value===y.value&&u.isTrusted===y.isTrusted&&u.supportThemeIcons===y.supportThemeIcons}function H(u){return u&&u.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function x(u){var y=[],_=u.split("|").map(function(d){return d.trim()});u=_[0];var f=_[1];if(f){var v=/height=(\d+)/.exec(f),w=/width=(\d+)/.exec(f),p=v?v[1]:"",c=w?w[1]:"",s=isFinite(parseInt(c)),l=isFinite(parseInt(p));s&&y.push('width="'+c+'"'),l&&y.push('height="'+p+'"')}return{href:u,dimensions:y}}},eizg:function(Lt,j,e){},ep4t:function(Lt,j,e){"use strict";e.r(j),e.d(j,"SuggestController",function(){return rn}),e.d(j,"TriggerSuggestAction",function(){return pn});var T=e("OBOq"),re=e("6OMU"),J=e("/cxE"),I=e("/kV6"),U=e("pmY6"),z=e("sswD"),O=e("0/Sa"),H=e("aokT"),x=e("wQH0"),u=e("tXSY"),y=e("uACm"),_=e("QDVR"),f=e("A+jI"),v=e("twdY"),w=e("X+cX"),p=e("Cg/j"),c=e("+7oY"),s=e("9fML"),l=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,M){_e.__proto__=M}||function(_e,M){for(var P in M)M.hasOwnProperty(P)&&(_e[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),d=function(St,ot,nt,Dt){var _e=arguments.length,M=_e<3?ot:Dt===null?Dt=Object.getOwnPropertyDescriptor(ot,nt):Dt,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,ot,nt,Dt);else for(var Z=St.length-1;Z>=0;Z--)(P=St[Z])&&(M=(_e<3?P(M):_e>3?P(ot,nt,M):P(ot,nt))||M);return _e>3&&M&&Object.defineProperty(ot,nt,M),M},m=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},E=function(){function St(){}return St.prototype.select=function(ot,nt,Dt){if(Dt.length===0)return 0;for(var _e=Dt[0].score[0],M=1;M<Dt.length;M++){var P=Dt[M],Z=P.score,Ae=P.completion;if(Z[0]!==_e)break;if(Ae.preselect)return M}return 0},St}(),L=function(St){l(ot,St);function ot(){return St!==null&&St.apply(this,arguments)||this}return ot.prototype.memorize=function(nt,Dt,_e){},ot.prototype.toJSON=function(){return},ot.prototype.fromJSON=function(){},ot}(E),A=function(St){l(ot,St);function ot(){var nt=St!==null&&St.apply(this,arguments)||this;return nt._cache=new _.a(300,.66),nt._seq=0,nt}return ot.prototype.memorize=function(nt,Dt,_e){var M=_e.completion.label,P=nt.getLanguageIdentifier().language+"/"+M;this._cache.set(P,{touch:this._seq++,type:_e.completion.kind,insertText:_e.completion.insertText})},ot.prototype.select=function(nt,Dt,_e){if(_e.length===0)return 0;var M=nt.getLineContent(Dt.lineNumber).substr(Dt.column-10,Dt.column-1);if(/\s$/.test(M))return St.prototype.select.call(this,nt,Dt,_e);for(var P=_e[0].score[0],Z=-1,Ae=-1,xe=-1,Ne=0;Ne<_e.length&&!(_e[Ne].score[0]!==P);Ne++){var dt=nt.getLanguageIdentifier().language+"/"+_e[Ne].completion.label,ht=this._cache.peek(dt);if(ht&&ht.touch>xe&&ht.type===_e[Ne].completion.kind&&ht.insertText===_e[Ne].completion.insertText&&(xe=ht.touch,Ae=Ne),_e[Ne].completion.preselect&&Z===-1)return Z=Ne}return Ae!==-1?Ae:Z!==-1?Z:0},ot.prototype.toJSON=function(){var nt=[];return this._cache.forEach(function(Dt,_e){nt.push([_e,Dt])}),nt},ot.prototype.fromJSON=function(nt){this._cache.clear();for(var Dt=0,_e=0,M=nt;_e<M.length;_e++){var P=M[_e],Z=P[0],Ae=P[1];Ae.touch=Dt,Ae.type=typeof Ae.type=="number"?Ae.type:Object(v.E)(Ae.type),this._cache.set(Z,Ae)}this._seq=this._cache.size},ot}(E),k=function(St){l(ot,St);function ot(){var nt=St!==null&&St.apply(this,arguments)||this;return nt._trie=_.c.forStrings(),nt._seq=0,nt}return ot.prototype.memorize=function(nt,Dt,_e){var M=nt.getWordUntilPosition(Dt).word,P=nt.getLanguageIdentifier().language+"/"+M;this._trie.set(P,{type:_e.completion.kind,insertText:_e.completion.insertText,touch:this._seq++})},ot.prototype.select=function(nt,Dt,_e){var M=nt.getWordUntilPosition(Dt).word;if(!M)return St.prototype.select.call(this,nt,Dt,_e);var P=nt.getLanguageIdentifier().language+"/"+M,Z=this._trie.get(P);if(Z||(Z=this._trie.findSubstr(P)),Z)for(var Ae=0;Ae<_e.length;Ae++){var xe=_e[Ae].completion,Ne=xe.kind,dt=xe.insertText;if(Ne===Z.type&&dt===Z.insertText)return Ae}return St.prototype.select.call(this,nt,Dt,_e)},ot.prototype.toJSON=function(){var nt=[];return this._trie.forEach(function(Dt,_e){return nt.push([_e,Dt])}),nt.sort(function(Dt,_e){return-(Dt[1].touch-_e[1].touch)}).forEach(function(Dt,_e){return Dt[1].touch=_e}),nt.slice(0,200)},ot.prototype.fromJSON=function(nt){if(this._trie.clear(),nt.length>0){this._seq=nt[0][1].touch+1;for(var Dt=0,_e=nt;Dt<_e.length;Dt++){var M=_e[Dt],P=M[0],Z=M[1];Z.type=typeof Z.type=="number"?Z.type:Object(v.E)(Z.type),this._trie.set(P,Z)}}},ot}(E),R=function(St){l(ot,St);function ot(nt,Dt){var _e=St.call(this)||this;_e._storageService=nt,_e._configService=Dt,_e._storagePrefix="suggest/memories";var M=function(){var Z=_e._configService.getValue("editor.suggestSelection"),Ae=_e._configService.getValue("editor.suggest.shareSuggestSelections");_e._update(Z,Ae,!1)};return _e._persistSoon=_e._register(new w.d(function(){return _e._saveState()},500)),_e._register(nt.onWillSaveState(function(P){P.reason===f.c.SHUTDOWN&&_e._saveState()})),_e._register(_e._configService.onDidChangeConfiguration(function(P){(P.affectsConfiguration("editor.suggestSelection")||P.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&M()})),_e._register(_e._storageService.onDidChangeStorage(function(P){P.scope===0&&P.key.indexOf(_e._storagePrefix)===0&&(document.hasFocus()||_e._update(_e._mode,_e._shareMem,!0))})),M(),_e}return ot.prototype._update=function(nt,Dt,_e){if(!_e&&this._mode===nt&&this._shareMem===Dt)return;this._shareMem=Dt,this._mode=nt,this._strategy=nt==="recentlyUsedByPrefix"?new k:nt==="recentlyUsed"?new A:new L;try{var M=Dt?0:1,P=this._storageService.get(this._storagePrefix+"/"+this._mode,M);P&&this._strategy.fromJSON(JSON.parse(P))}catch(Z){}},ot.prototype.memorize=function(nt,Dt,_e){this._strategy.memorize(nt,Dt,_e),this._persistSoon.schedule()},ot.prototype.select=function(nt,Dt,_e){return this._strategy.select(nt,Dt,_e)},ot.prototype._saveState=function(){var nt=JSON.stringify(this._strategy),Dt=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,nt,Dt)},ot=d([m(0,f.a),m(1,c.a)],ot),ot}(U.a),$=Object(p.c)("ISuggestMemories");Object(s.b)($,R,!0);var ie=e("3/fG"),W=e("nnTU"),B=e("T8No"),le=e("nrhi"),Ce=e("QVNv"),Me=function(St,ot,nt,Dt){var _e=arguments.length,M=_e<3?ot:Dt===null?Dt=Object.getOwnPropertyDescriptor(ot,nt):Dt,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,ot,nt,Dt);else for(var Z=St.length-1;Z>=0;Z--)(P=St[Z])&&(M=(_e<3?P(M):_e>3?P(ot,nt,M):P(ot,nt))||M);return _e>3&&M&&Object.defineProperty(ot,nt,M),M},Te=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},Fe=function(){function St(ot,nt){this._editor=ot,this._index=0,this._ckOtherSuggestions=St.OtherSuggestions.bindTo(nt)}return St.prototype.dispose=function(){this.reset()},St.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(U.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},St.prototype.set=function(ot,nt){var Dt=this,_e=ot.model,M=ot.index;if(_e.items.length===0){this.reset();return}var P=St._moveIndex(!0,_e,M);if(P===M){this.reset();return}this._acceptNext=nt,this._model=_e,this._index=M,this._listener=this._editor.onDidChangeCursorPosition(function(){Dt._ignore||Dt.reset()}),this._ckOtherSuggestions.set(!0)},St._moveIndex=function(ot,nt,Dt){for(var _e=Dt;!(_e=(_e+nt.items.length+(ot?1:-1))%nt.items.length,_e===Dt);)if(!nt.items[_e].completion.additionalTextEdits)break;return _e},St.prototype.next=function(){this._move(!0)},St.prototype.prev=function(){this._move(!1)},St.prototype._move=function(ot){if(!this._model)return;try{this._ignore=!0,this._index=St._moveIndex(ot,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},St.OtherSuggestions=new B.d("hasOtherSuggestions",!1),St=Me([Te(1,B.c)],St),St}(),Ue=e("MI8n"),Pe=e("gCVg"),ne=e("fpMC"),ee=e("N0LK"),ae=function(){function St(ot,nt){this.leadingLineContent=ot,this.characterCountDelta=nt}return St}(),q=function(){function St(ot,nt,Dt,_e,M,P){this._snippetCompareFn=St._compareCompletionItems,this._items=ot,this._column=nt,this._wordDistance=_e,this._options=M,this._refilterKind=1,this._lineContext=Dt,P==="top"?this._snippetCompareFn=St._compareCompletionItemsSnippetsUp:P==="bottom"&&(this._snippetCompareFn=St._compareCompletionItemsSnippetsDown)}return Object.defineProperty(St.prototype,"lineContext",{get:function(){return this._lineContext},set:function(nt){(this._lineContext.leadingLineContent!==nt.leadingLineContent||this._lineContext.characterCountDelta!==nt.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta<nt.characterCountDelta&&this._filteredItems?2:1,this._lineContext=nt)},enumerable:!0,configurable:!0}),Object.defineProperty(St.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(St.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),St.prototype.adopt=function(ot){for(var nt=new Array,Dt=0;Dt<this._items.length;)ot.has(this._items[Dt].provider)?Dt++:(nt.push(this._items[Dt]),this._items[Dt]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,nt},Object.defineProperty(St.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),St.prototype._ensureCachedState=function(){this._refilterKind!==0&&this._createCachedState()},St.prototype._createCachedState=function(){this._isIncomplete=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};for(var ot=this._lineContext,nt=ot.leadingLineContent,Dt=ot.characterCountDelta,_e="",M="",P=this._refilterKind===1?this._items:this._filteredItems,Z=[],Ae=!this._options.filterGraceful||P.length>2e3?ne.d:ne.e,xe=0;xe<P.length;xe++){var Ne=P[xe];Ne.container.incomplete&&this._isIncomplete.add(Ne.provider);var dt=Ne.position.column-Ne.editStart.column,ht=dt+Dt-(Ne.position.column-this._column);if(_e.length!==ht&&(_e=ht===0?"":nt.slice(-ht),M=_e.toLowerCase()),Ne.word=_e,ht===0)Ne.score=ne.a.Default;else{for(var xt=0;xt<dt;){var Bt=_e.charCodeAt(xt);if(Bt===32||Bt===9)xt+=1;else break}var Ht=typeof Ne.completion.label=="string"?Ne.completion.label:Ne.completion.label.name;if(xt>=ht)Ne.score=ne.a.Default;else if(typeof Ne.completion.filterText=="string"){var Ut=Ae(_e,M,xt,Ne.completion.filterText,Ne.filterTextLow,0,!1);if(!Ut)continue;Object(ee.f)(Ne.completion.filterText,Ht)===0?Ne.score=Ut:(Ne.score=Object(ne.b)(_e,M,xt,Ht,Ne.labelLow,0),Ne.score[0]=Ut[0])}else{var Ut=Ae(_e,M,xt,Ht,Ne.labelLow,0,!1);if(!Ut)continue;Ne.score=Ut}}Ne.idx=xe,Ne.distance=this._wordDistance.distance(Ne.position,Ne.completion),Z.push(Ne),this._stats.suggestionCount++;switch(Ne.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=Z.sort(this._snippetCompareFn),this._refilterKind=0},St._compareCompletionItems=function(ot,nt){return ot.score[0]>nt.score[0]?-1:ot.score[0]<nt.score[0]?1:ot.distance<nt.distance?-1:ot.distance>nt.distance?1:ot.idx<nt.idx?-1:ot.idx>nt.idx?1:0},St._compareCompletionItemsSnippetsDown=function(ot,nt){if(ot.completion.kind!==nt.completion.kind){if(ot.completion.kind===25)return 1;if(nt.completion.kind===25)return-1}return St._compareCompletionItems(ot,nt)},St._compareCompletionItemsSnippetsUp=function(ot,nt){if(ot.completion.kind!==nt.completion.kind){if(ot.completion.kind===25)return-1;if(nt.completion.kind===25)return 1}return St._compareCompletionItems(ot,nt)},St}(),ue=e("JQT/"),X=e("Z7SF"),he=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,M){_e.__proto__=M}||function(_e,M){for(var P in M)M.hasOwnProperty(P)&&(_e[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),je=function(St,ot,nt,Dt){function _e(M){return M instanceof nt?M:new nt(function(P){P(M)})}return new(nt||(nt=Promise))(function(M,P){function Z(Ne){try{xe(Dt.next(Ne))}catch(dt){P(dt)}}function Ae(Ne){try{xe(Dt.throw(Ne))}catch(dt){P(dt)}}function xe(Ne){Ne.done?M(Ne.value):_e(Ne.value).then(Z,Ae)}xe((Dt=Dt.apply(St,ot||[])).next())})},Xe=function(St,ot){var nt={label:0,sent:function(){if(M[0]&1)throw M[1];return M[1]},trys:[],ops:[]},Dt,_e,M,P;return P={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function Z(xe){return function(Ne){return Ae([xe,Ne])}}function Ae(xe){if(Dt)throw new TypeError("Generator is already executing.");for(;nt;)try{if(Dt=1,_e&&(M=xe[0]&2?_e.return:xe[0]?_e.throw||((M=_e.return)&&M.call(_e),0):_e.next)&&!(M=M.call(_e,xe[1])).done)return M;(_e=0,M)&&(xe=[xe[0]&2,M.value]);switch(xe[0]){case 0:case 1:M=xe;break;case 4:return nt.label++,{value:xe[1],done:!1};case 5:nt.label++,_e=xe[1],xe=[0];continue;case 7:xe=nt.ops.pop(),nt.trys.pop();continue;default:if(!(M=nt.trys,M=M.length>0&&M[M.length-1])&&(xe[0]===6||xe[0]===2)){nt=0;continue}if(xe[0]===3&&(!M||xe[1]>M[0]&&xe[1]<M[3])){nt.label=xe[1];break}if(xe[0]===6&&nt.label<M[1]){nt.label=M[1],M=xe;break}if(M&&nt.label<M[2]){nt.label=M[2],nt.ops.push(xe);break}M[2]&&nt.ops.pop(),nt.trys.pop();continue}xe=ot.call(St,nt)}catch(Ne){xe=[6,Ne],_e=0}finally{Dt=M=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},me=function(){function St(){}return St.create=function(ot,nt){return je(this,void 0,void 0,function(){var Dt,_e,M,P;return Xe(this,function(Z){switch(Z.label){case 0:return nt.getOption(89).localityBonus?nt.hasModel()?(Dt=nt.getModel(),_e=nt.getPosition(),ot.canComputeWordRanges(Dt.uri)?[4,new X.a().provideSelectionRanges(Dt,[_e])]:[2,St.None]):[2,St.None]:[2,St.None];case 1:return M=Z.sent(),!M||M.length===0||M[0].length===0?[2,St.None]:[4,ot.computeWordRanges(Dt.uri,M[0][0].range)];case 2:return P=Z.sent(),[2,new(function(Ae){he(xe,Ae);function xe(){return Ae!==null&&Ae.apply(this,arguments)||this}return xe.prototype.distance=function(Ne,dt){if(!P||!_e.equals(nt.getPosition()))return 0;if(dt.kind===17)return 2<<20;var ht=typeof dt.label=="string"?dt.label:dt.label.name,xt=P[ht];if(Object(re.p)(xt))return 2<<20;for(var Bt=Object(re.c)(xt,H.a.fromPositions(Ne),H.a.compareRangesUsingStarts),Ht=Bt>=0?xt[Bt]:xt[Math.max(0,~Bt-1)],Ut=M.length,oo=0,Zt=M[0];oo<Zt.length;oo++){var fo=Zt[oo];if(!H.a.containsRange(fo.range,Ht))break;Ut-=1}return Ut},xe}(St))]}})})},St.None=new(function(ot){he(nt,ot);function nt(){return ot!==null&&ot.apply(this,arguments)||this}return nt.prototype.distance=function(){return 0},nt}(St)),St}(),ge=function(){function St(ot,nt,Dt,_e){this.leadingLineContent=ot.getLineContent(nt.lineNumber).substr(0,nt.column-1),this.leadingWord=ot.getWordUntilPosition(nt),this.lineNumber=nt.lineNumber,this.column=nt.column,this.auto=Dt,this.shy=_e}return St.shouldAutoTrigger=function(ot){if(!ot.hasModel())return!1;var nt=ot.getModel(),Dt=ot.getPosition();nt.tokenizeIfCheap(Dt.lineNumber);var _e=nt.getWordAtPosition(Dt);return _e?_e.endColumn!==Dt.column?!1:!!isNaN(Number(_e.word)):!1},St}(),we=function(){function St(ot,nt){var Dt=this;this._editor=ot,this._editorWorker=nt,this._toDispose=new U.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new U.b,this._triggerQuickSuggest=new w.e,this._state=0,this._completionDisposables=new U.b,this._onDidCancel=new Ue.a,this._onDidTrigger=new Ue.a,this._onDidSuggest=new Ue.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new Pe.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(function(){Dt._updateTriggerCharacters(),Dt.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(function(){Dt._updateTriggerCharacters(),Dt.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(function(){Dt._updateTriggerCharacters(),Dt._updateQuickSuggest()})),this._toDispose.add(v.d.onDidChange(function(){Dt._updateTriggerCharacters(),Dt._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(function(M){Dt._onCursorChange(M)}));var _e=!1;this._toDispose.add(this._editor.onDidCompositionStart(function(){_e=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(function(){_e=!1,Dt._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(function(){_e||Dt._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}return St.prototype.dispose=function(){Object(U.f)(this._triggerCharacterListener),Object(U.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},St.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getOption(67),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&this._quickSuggestDelay!==0||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},St.prototype._updateTriggerCharacters=function(){var ot=this;if(this._triggerCharacterListener.clear(),this._editor.getOption(68)||!this._editor.hasModel()||!this._editor.getOption(92))return;for(var nt=new Map,Dt=0,_e=v.d.all(this._editor.getModel());Dt<_e.length;Dt++)for(var M=_e[Dt],P=0,Z=M.triggerCharacters||[];P<Z.length;P++){var Ae=Z[P],xe=nt.get(Ae);xe||(xe=new Set,xe.add(Object(Ce.c)()),nt.set(Ae,xe)),xe.add(M)}var Ne=function(ht){if(!ht){var xt=ot._editor.getPosition(),Bt=ot._editor.getModel();ht=Bt.getLineContent(xt.lineNumber).substr(0,xt.column-1)}var Ht="";Object(ee.A)(ht.charCodeAt(ht.length-1))?Object(ee.z)(ht.charCodeAt(ht.length-2))&&(Ht=ht.substr(ht.length-2)):Ht=ht.charAt(ht.length-1);var Ut=nt.get(Ht);if(Ut){var oo=ot._completionModel?ot._completionModel.adopt(Ut):void 0;ot.trigger({auto:!0,shy:!1,triggerCharacter:Ht},Boolean(ot._completionModel),Ut,oo)}};this._triggerCharacterListener.add(this._editor.onDidType(Ne)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(Ne))},Object.defineProperty(St.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),St.prototype.cancel=function(ot){ot===void 0&&(ot=!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:ot}))},St.prototype.clear=function(){this._completionDisposables.clear()},St.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))},St.prototype._onCursorChange=function(ot){var nt=this;if(!this._editor.hasModel())return;var Dt=this._editor.getModel(),_e=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!ot.selection.isEmpty()||ot.reason!==0||ot.source!=="keyboard"&&ot.source!=="deleteLeft"){this.cancel();return}if(!v.d.has(Dt))return;if(this._state===0){if(this._editor.getOption(66)===!1)return;if(!_e.containsRange(this._currentSelection)&&!_e.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(89).snippetsPreventQuickSuggestions&&u.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(function(){if(nt._state!==0)return;if(!ge.shouldAutoTrigger(nt._editor))return;if(!nt._editor.hasModel())return;var M=nt._editor.getModel(),P=nt._editor.getPosition(),Z=nt._editor.getOption(66);if(Z===!1)return;if(!(Z===!0)){M.tokenizeIfCheap(P.lineNumber);var Ae=M.getLineTokens(P.lineNumber),xe=Ae.getStandardTokenType(Ae.findTokenIndexAtOffset(Math.max(P.column-1-1,0))),Ne=Z.other&&xe===0||Z.comments&&xe===1||Z.strings&&xe===2;if(!Ne)return}nt.trigger({auto:!0,shy:!1})},this._quickSuggestDelay)}},St.prototype._refilterCompletionItems=function(){var ot=this;Promise.resolve().then(function(){if(ot._state===0)return;if(!ot._editor.hasModel())return;var nt=ot._editor.getModel(),Dt=ot._editor.getPosition(),_e=new ge(nt,Dt,ot._state===2,!1);ot._onNewContext(_e)})},St.prototype.trigger=function(ot,nt,Dt,_e){var M=this;if(nt===void 0&&(nt=!1),!this._editor.hasModel())return;var P=this._editor.getModel(),Z=ot.auto,Ae=new ge(P,this._editor.getPosition(),Z,ot.shy);this.cancel(nt),this._state=Z?2:1,this._onDidTrigger.fire({auto:Z,shy:ot.shy,position:this._editor.getPosition()}),this._context=Ae;var xe;ot.triggerCharacter?xe={triggerKind:1,triggerCharacter:ot.triggerCharacter}:Dt&&Dt.size>0?xe={triggerKind:2}:xe={triggerKind:0},this._requestToken=new ue.b;var Ne=this._editor.getOption(86),dt=1;switch(Ne){case"top":dt=0;break;case"bottom":dt=2;break}var ht=St._createItemKindFilter(this._editor),xt=me.create(this._editorWorker,this._editor),Bt=Object(Ce.e)(P,this._editor.getPosition(),new Ce.a(dt,ht,Dt),xe,this._requestToken.token);Promise.all([Bt,xt]).then(function(Ht){var Ut=Ht[0],oo=Ht[1];if(Object(U.f)(M._requestToken),M._state===0)return;if(!M._editor.hasModel())return;var Zt=M._editor.getModel();if(Object(re.q)(_e)){var fo=Object(Ce.d)(dt);Ut=Ut.concat(_e).sort(fo)}var yt=new ge(Zt,M._editor.getPosition(),Z,ot.shy);M._completionModel=new q(Ut,M._context.column,{leadingLineContent:yt.leadingLineContent,characterCountDelta:yt.column-M._context.column},oo,M._editor.getOption(89),M._editor.getOption(86));for(var He=0,Oe=Ut;He<Oe.length;He++){var rt=Oe[He];Object(U.g)(rt.container)&&M._completionDisposables.add(rt.container)}M._onNewContext(yt)}).catch(J.e)},St._createItemKindFilter=function(ot){var nt=new Set,Dt=ot.getOption(86);Dt==="none"&&nt.add(25);var _e=ot.getOption(89);return _e.showMethods||nt.add(0),_e.showFunctions||nt.add(1),_e.showConstructors||nt.add(2),_e.showFields||nt.add(3),_e.showVariables||nt.add(4),_e.showClasses||nt.add(5),_e.showStructs||nt.add(6),_e.showInterfaces||nt.add(7),_e.showModules||nt.add(8),_e.showProperties||nt.add(9),_e.showEvents||nt.add(10),_e.showOperators||nt.add(11),_e.showUnits||nt.add(12),_e.showValues||nt.add(13),_e.showConstants||nt.add(14),_e.showEnums||nt.add(15),_e.showEnumMembers||nt.add(16),_e.showKeywords||nt.add(17),_e.showWords||nt.add(18),_e.showColors||nt.add(19),_e.showFiles||nt.add(20),_e.showReferences||nt.add(21),_e.showColors||nt.add(22),_e.showFolders||nt.add(23),_e.showTypeParameters||nt.add(24),_e.showSnippets||nt.add(25),nt},St.prototype._onNewContext=function(ot){if(!this._context)return;if(ot.lineNumber!==this._context.lineNumber){this.cancel();return}if(ot.leadingWord.startColumn<this._context.leadingWord.startColumn){this.cancel();return}if(ot.column<this._context.column){ot.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();return}if(!this._completionModel)return;if(ot.column>this._context.column&&this._completionModel.incomplete.size>0&&ot.leadingWord.word.length!==0){var nt=this._completionModel.incomplete,Dt=this._completionModel.adopt(nt);this.trigger({auto:this._state===2,shy:!1},!0,nt,Dt)}else{var _e=this._completionModel.lineContext,M=!1;if(this._completionModel.lineContext={leadingLineContent:ot.leadingLineContent,characterCountDelta:ot.column-this._context.column},this._completionModel.items.length===0){if(ge.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<ot.leadingWord.startColumn){this.trigger({auto:this._context.auto,shy:!1},!0);return}if(this._context.auto){this.cancel();return}else if(this._completionModel.lineContext=_e,M=this._completionModel.items.length>0,M&&ot.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:M})}},St}(),Re=e("CClx"),Ee=e("nn6Y"),ve=e("k76M"),Q=e("jqj9"),C=e("EffR"),F=e("cqdO"),se=e("GJhM"),oe=e("bexQ"),be=e("XXUj"),De=e("ptcw"),Se=e("t9D7"),Ve=e("MD5Z"),Qe=e("3qCu"),it=e("WBhO"),pt=e("W9cx"),Rt=e("xONI"),Mt=e("tYmi"),zt=e("gslv"),uo=e("MqQJ"),ao;(function(St){St[St.FILE=0]="FILE",St[St.FOLDER=1]="FOLDER",St[St.ROOT_FOLDER=2]="ROOT_FOLDER"})(ao||(ao={}));function so(St,ot,nt,Dt){var _e=Dt===ao.ROOT_FOLDER?["rootfolder-icon"]:Dt===ao.FOLDER?["folder-icon"]:["file-icon"];if(nt){var M;if(nt.scheme===Mt.b.data){var P=zt.a.parseMetaData(nt);M=P.get(zt.a.META_DATA_LABEL)}else M=ft(Object(zt.c)(nt).toLowerCase());if(Dt===ao.FOLDER)_e.push(M+"-name-folder-icon");else{if(M){_e.push(M+"-name-file-icon");for(var Z=M.split("."),Ae=1;Ae<Z.length;Ae++)_e.push(Z.slice(Ae).join(".")+"-ext-file-icon");_e.push("ext-file-icon")}var xe=Pt(St,ot,nt);xe&&_e.push(ft(xe)+"-lang-file-icon")}}return _e}function Pt(St,ot,nt){if(!nt)return null;var Dt=null;if(nt.scheme===Mt.b.data){var _e=zt.a.parseMetaData(nt),M=_e.get(zt.a.META_DATA_MIME);M&&(Dt=ot.getModeId(M))}else{var P=St.getModel(nt);P&&(Dt=P.getModeId())}return Dt&&Dt!==uo.c?Dt:ot.getModeIdByFilepathOrFirstLine(nt)}function ft(St){return St.replace(/\s/g,"\\$&")}var vt=e("G2kB"),At=e("bY76"),at=e("eLzo"),tt=e("cGHE"),ut=function(){return ut=Object.assign||function(St){for(var ot,nt=1,Dt=arguments.length;nt<Dt;nt++){ot=arguments[nt];for(var _e in ot)Object.prototype.hasOwnProperty.call(ot,_e)&&(St[_e]=ot[_e])}return St},ut.apply(this,arguments)},Ct=function(St,ot,nt,Dt){var _e=arguments.length,M=_e<3?ot:Dt===null?Dt=Object.getOwnPropertyDescriptor(ot,nt):Dt,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,ot,nt,Dt);else for(var Z=St.length-1;Z>=0;Z--)(P=St[Z])&&(M=(_e<3?P(M):_e>3?P(ot,nt,M):P(ot,nt))||M);return _e>3&&M&&Object.defineProperty(ot,nt,M),M},gt=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},bt=function(St,ot,nt,Dt){function _e(M){return M instanceof nt?M:new nt(function(P){P(M)})}return new(nt||(nt=Promise))(function(M,P){function Z(Ne){try{xe(Dt.next(Ne))}catch(dt){P(dt)}}function Ae(Ne){try{xe(Dt.throw(Ne))}catch(dt){P(dt)}}function xe(Ne){Ne.done?M(Ne.value):_e(Ne.value).then(Z,Ae)}xe((Dt=Dt.apply(St,ot||[])).next())})},Gt=function(St,ot){var nt={label:0,sent:function(){if(M[0]&1)throw M[1];return M[1]},trys:[],ops:[]},Dt,_e,M,P;return P={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function Z(xe){return function(Ne){return Ae([xe,Ne])}}function Ae(xe){if(Dt)throw new TypeError("Generator is already executing.");for(;nt;)try{if(Dt=1,_e&&(M=xe[0]&2?_e.return:xe[0]?_e.throw||((M=_e.return)&&M.call(_e),0):_e.next)&&!(M=M.call(_e,xe[1])).done)return M;(_e=0,M)&&(xe=[xe[0]&2,M.value]);switch(xe[0]){case 0:case 1:M=xe;break;case 4:return nt.label++,{value:xe[1],done:!1};case 5:nt.label++,_e=xe[1],xe=[0];continue;case 7:xe=nt.ops.pop(),nt.trys.pop();continue;default:if(!(M=nt.trys,M=M.length>0&&M[M.length-1])&&(xe[0]===6||xe[0]===2)){nt=0;continue}if(xe[0]===3&&(!M||xe[1]>M[0]&&xe[1]<M[3])){nt.label=xe[1];break}if(xe[0]===6&&nt.label<M[1]){nt.label=M[1],M=xe;break}if(M&&nt.label<M[2]){nt.label=M[2],nt.ops.push(xe);break}M[2]&&nt.ops.pop(),nt.trys.pop();continue}xe=ot.call(St,nt)}catch(Ne){xe=[6,Ne],_e=0}finally{Dt=M=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},Nt=!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(St,ot){var nt=typeof St.completion.label=="string"?St.completion.label:St.completion.label.name;return nt.match(fe)?(ot[0]=nt,!0):typeof St.completion.documentation=="string"&&St.completion.documentation.match(fe)?(ot[0]=St.completion.documentation,!0):!1}function te(St){if(!St)return!1;var ot=St.completion;return ot.documentation?!0:ot.detail&&ot.detail!==ot.label}function Y(St){return"suggest-aria-id:"+St}var de=function(){function St(ot,nt,Dt,_e,M,P){this.widget=ot,this.editor=nt,this.triggerKeybindingLabel=Dt,this._modelService=_e,this._modeService=M,this._themeService=P}return Object.defineProperty(St.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),St.prototype.renderTemplate=function(ot){var nt=this,Dt=Object.create(null);Dt.disposables=new U.b,Dt.root=ot,Object(C.f)(Dt.root,"show-file-icons"),Dt.icon=Object(C.q)(ot,Object(C.a)(".icon")),Dt.colorspan=Object(C.q)(Dt.icon,Object(C.a)("span.colorspan"));var _e=Object(C.q)(ot,Object(C.a)(".contents")),M=Object(C.q)(_e,Object(C.a)(".main"));Dt.left=Object(C.q)(M,Object(C.a)("span.left")),Dt.right=Object(C.q)(M,Object(C.a)("span.right")),Dt.iconContainer=Object(C.q)(Dt.left,Object(C.a)(".icon-label.codicon")),Dt.iconLabel=new Rt.a(Dt.left,{supportHighlights:!0,supportCodicons:!0}),Dt.disposables.add(Dt.iconLabel),Dt.signatureLabel=Object(C.q)(Dt.left,Object(C.a)("span.signature-label")),Dt.qualifierLabel=Object(C.q)(Dt.left,Object(C.a)("span.qualifier-label")),Dt.detailsLabel=Object(C.q)(Dt.right,Object(C.a)("span.details-label")),Dt.readMore=Object(C.q)(Dt.right,Object(C.a)("span.readMore.codicon.codicon-info")),Dt.readMore.title=ie.a("readMore","Read More...{0}",this.triggerKeybindingLabel);var P=function(){var Ae=nt.editor.getOptions(),xe=Ae.get(34),Ne=xe.fontFamily,dt=xe.fontFeatureSettings,ht=Ae.get(90)||xe.fontSize,xt=Ae.get(91)||xe.lineHeight,Bt=xe.fontWeight,Ht=ht+"px",Ut=xt+"px";Dt.root.style.fontSize=Ht,Dt.root.style.fontWeight=Bt,M.style.fontFamily=Ne,M.style.fontFeatureSettings=dt,M.style.lineHeight=Ut,Dt.icon.style.height=Ut,Dt.icon.style.width=Ut,Dt.readMore.style.height=Ut,Dt.readMore.style.width=Ut};return P(),Dt.disposables.add(Ue.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Z){return Z.hasChanged(34)||Z.hasChanged(90)||Z.hasChanged(91)}).on(P,null)),Dt},St.prototype.renderElement=function(ot,nt,Dt){var _e=this,M=Dt,P=ot.completion,Z=typeof P.label=="string"?P.label:P.label.name;M.root.id=Y(nt),M.icon.className="icon "+Object(v.F)(P.kind),M.colorspan.style.backgroundColor="";var Ae={labelEscapeNewLines:!0,matches:Object(ne.c)(ot.score)},xe=[];if(P.kind===19&&G(ot,xe))M.icon.className="icon customcolor",M.iconContainer.className="icon hide",M.colorspan.style.backgroundColor=xe[0];else if(P.kind===20&&this._themeService.getIconTheme().hasFileIcons){M.icon.className="icon hide",M.iconContainer.className="icon hide";var Ne=so(this._modelService,this._modeService,At.a.from({scheme:"fake",path:Z}),ao.FILE),dt=so(this._modelService,this._modeService,At.a.from({scheme:"fake",path:P.detail}),ao.FILE);Ae.extraClasses=Ne.length>dt.length?Ne:dt}else P.kind===23&&this._themeService.getIconTheme().hasFolderIcons?(M.icon.className="icon hide",M.iconContainer.className="icon hide",Ae.extraClasses=Object(re.m)([so(this._modelService,this._modeService,At.a.from({scheme:"fake",path:Z}),ao.FOLDER),so(this._modelService,this._modeService,At.a.from({scheme:"fake",path:P.detail}),ao.FOLDER)])):(M.icon.className="icon hide",M.iconContainer.className="",Object(C.g)(M.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(v.F)(P.kind)));P.tags&&P.tags.indexOf(1)>=0&&(Ae.extraClasses=(Ae.extraClasses||[]).concat(["deprecated"]),Ae.matches=[]),M.iconLabel.setLabel(Z,void 0,Ae),typeof P.label=="string"?(M.signatureLabel.textContent="",M.qualifierLabel.textContent="",M.detailsLabel.textContent=(P.detail||"").replace(/\n.*$/m,""),Object(C.P)(M.right,"always-show-details")):(M.signatureLabel.textContent=(P.label.signature||"").replace(/\n.*$/m,""),M.qualifierLabel.textContent=(P.label.qualifier||"").replace(/\n.*$/m,""),M.detailsLabel.textContent=(P.label.type||"").replace(/\n.*$/m,""),Object(C.f)(M.right,"always-show-details")),te(ot)?(Object(C.f)(M.right,"can-expand-details"),Object(C.X)(M.readMore),M.readMore.onmousedown=function(ht){ht.stopPropagation(),ht.preventDefault()},M.readMore.onclick=function(ht){ht.stopPropagation(),ht.preventDefault(),_e.widget.toggleDetails()}):(Object(C.P)(M.right,"can-expand-details"),Object(C.J)(M.readMore),M.readMore.onmousedown=null,M.readMore.onclick=null)},St.prototype.disposeTemplate=function(ot){ot.disposables.dispose()},St=Ct([gt(3,vt.a),gt(4,it.a),gt(5,Se.c)],St),St}(),ke=function(){function St(ot,nt,Dt,_e,M){var P=this;this.widget=nt,this.editor=Dt,this.markdownRenderer=_e,this.kbToggleDetails=M,this.borderWidth=1,this.disposables=new U.b,this.el=Object(C.q)(ot,Object(C.a)(".details")),this.disposables.add(Object(U.h)(function(){return ot.removeChild(P.el)})),this.body=Object(C.a)(".body"),this.scrollbar=new se.a(this.body,{}),Object(C.q)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(C.q)(this.body,Object(C.a)(".header")),this.close=Object(C.q)(this.header,Object(C.a)("span.codicon.codicon-close")),this.close.title=ie.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(C.q)(this.header,Object(C.a)("p.type")),this.docs=Object(C.q)(this.body,Object(C.a)("p.docs")),this.configureFont(),Ue.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Z){return Z.hasChanged(34)}).on(this.configureFont,this,this.disposables),_e.onDidRenderCodeBlock(function(){return P.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(St.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),St.prototype.renderLoading=function(){this.type.textContent=ie.a("loading","Loading..."),this.docs.textContent=""},St.prototype.renderItem=function(ot,nt){var Dt=this;this.renderDisposeable=Object(U.f)(this.renderDisposeable);var _e=ot.completion,M=_e.documentation,P=_e.detail;if(nt){var Z="";Z+="score: "+ot.score[0]+(ot.word?", compared '"+(ot.completion.filterText&&ot.completion.filterText+" (filterText)"||ot.completion.label)+"' with '"+ot.word+"'":" (no prefix)")+`
`,Z+="distance: "+ot.distance+`, see localityBonus-setting
`,Z+="index: "+ot.idx+", based on "+(ot.completion.sortText&&'sortText: "'+ot.completion.sortText+'"'||"label")+`
`,M=new at.a().appendCodeblock("empty",Z),P="Provider: "+ot.provider._debugDisplayName}if(!nt&&!te(ot)){this.type.textContent="",this.docs.textContent="",Object(C.f)(this.el,"no-docs");return}if(Object(C.P)(this.el,"no-docs"),typeof M=="string")Object(C.P)(this.docs,"markdown-docs"),this.docs.textContent=M;else{Object(C.f)(this.docs,"markdown-docs"),this.docs.innerHTML="";var Ae=this.markdownRenderer.render(M);this.renderDisposeable=Ae,this.docs.appendChild(Ae.element)}P?(this.type.innerText=P,Object(C.X)(this.type)):(this.type.innerText="",Object(C.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(xe){xe.preventDefault(),xe.stopPropagation()},this.close.onclick=function(xe){xe.preventDefault(),xe.stopPropagation(),Dt.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},St.prototype.scrollDown=function(ot){ot===void 0&&(ot=8),this.body.scrollTop+=ot},St.prototype.scrollUp=function(ot){ot===void 0&&(ot=8),this.body.scrollTop-=ot},St.prototype.scrollTop=function(){this.body.scrollTop=0},St.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},St.prototype.pageDown=function(){this.scrollDown(80)},St.prototype.pageUp=function(){this.scrollUp(80)},St.prototype.setBorderWidth=function(ot){this.borderWidth=ot},St.prototype.configureFont=function(){var ot=this.editor.getOptions(),nt=ot.get(34),Dt=nt.fontFamily,_e=ot.get(90)||nt.fontSize,M=ot.get(91)||nt.lineHeight,P=nt.fontWeight,Z=_e+"px",Ae=M+"px";this.el.style.fontSize=Z,this.el.style.fontWeight=P,this.el.style.fontFeatureSettings=nt.fontFeatureSettings,this.type.style.fontFamily=Dt,this.close.style.height=Ae,this.close.style.width=Ae},St.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(U.f)(this.renderDisposeable)},St}(),lt=function(){function St(ot,nt,Dt,_e,M,P,Z,Ae,xe){var Ne=this,dt,ht;this.editor=ot,this.telemetryService=nt,this.keybindingService=Dt,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=U.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new w.e,this.toDispose=new U.b,this.onDidSelectEmitter=new Ue.a,this.onDidFocusEmitter=new Ue.a,this.onDidHideEmitter=new Ue.a,this.onDidShowEmitter=new Ue.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 Ue.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var xt=this.toDispose.add(new Qe.a(ot,Z,Ae)),Bt=(ht=(dt=Dt.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=P,this.element=Object(C.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(C.j)(this.element,"click",function(Zt){Zt.target===Ne.element&&Ne.hideWidget()})),this.messageElement=Object(C.q)(this.element,Object(C.a)(".message")),this.listElement=Object(C.q)(this.element,Object(C.a)(".tree"));var Ht=function(){return Object(C.Y)(Ne.element,"with-status-bar",!Ne.editor.getOption(89).hideStatusBar)};Ht(),this.statusBarElement=Object(C.q)(this.element,Object(C.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(C.q)(this.statusBarElement,Object(C.a)("span")),this.statusBarRightSpan=Object(C.q)(this.statusBarElement,Object(C.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=xe.createInstance(ke,this.element,this,this.editor,xt,Bt);var Ut=function(){return Object(C.Y)(Ne.element,"no-icons",!Ne.editor.getOption(89).showIcons)};Ut();var oo=xe.createInstance(de,this,this.editor,Bt);this.list=new F.c("SuggestWidget",this.listElement,this,[oo],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(fo){var yt=typeof fo.completion.label=="string"?fo.completion.label:fo.completion.label.name;if(fo.isResolved&&Ne.expandDocsSettingFromStorage()){var He=fo.completion,Oe=He.documentation,rt=He.detail,It=ee.r("{0}{1}",rt||"",Oe?typeof Oe=="string"?Oe:Oe.value:"");return ie.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",yt,It)}else return yt}}}),this.toDispose.add(Object(De.b)(this.list,M,{listInactiveFocusBackground:ze,listInactiveFocusOutline:Ve.b})),this.toDispose.add(M.onThemeChange(function(Zt){return Ne.onThemeChange(Zt)})),this.toDispose.add(ot.onDidLayoutChange(function(){return Ne.onEditorLayoutChange()})),this.toDispose.add(this.list.onMouseDown(function(Zt){return Ne.onListMouseDownOrTap(Zt)})),this.toDispose.add(this.list.onTap(function(Zt){return Ne.onListMouseDownOrTap(Zt)})),this.toDispose.add(this.list.onSelectionChange(function(Zt){return Ne.onListSelection(Zt)})),this.toDispose.add(this.list.onFocusChange(function(Zt){return Ne.onListFocus(Zt)})),this.toDispose.add(this.editor.onDidChangeCursorSelection(function(){return Ne.onCursorSelectionChanged()})),this.toDispose.add(this.editor.onDidChangeConfiguration(function(Zt){Zt.hasChanged(89)&&(Ht(),Ut())})),this.suggestWidgetVisible=Ce.b.Visible.bindTo(_e),this.suggestWidgetMultipleSuggestions=Ce.b.MultipleSuggestions.bindTo(_e),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(M.getTheme()),this.toDispose.add(Object(C.o)(this.details.element,"keydown",function(Zt){Ne._onDetailsKeydown.fire(Zt)})),this.toDispose.add(this.editor.onMouseDown(function(Zt){return Ne.onEditorMouseDown(Zt)}))}return St.prototype.onEditorMouseDown=function(ot){this.details.element.contains(ot.target.element)?this.details.element.focus():this.element.contains(ot.target.element)&&this.editor.focus()},St.prototype.onCursorSelectionChanged=function(){if(this.state===0)return;this.editor.layoutContentWidget(this)},St.prototype.onEditorLayoutChange=function(){(this.state===3||this.state===5)&&this.expandDocsSettingFromStorage()&&this.expandSideOrBelow()},St.prototype.onListMouseDownOrTap=function(ot){if(typeof ot.element=="undefined"||typeof ot.index=="undefined")return;ot.browserEvent.preventDefault(),ot.browserEvent.stopPropagation(),this.select(ot.element,ot.index)},St.prototype.onListSelection=function(ot){if(!ot.elements.length)return;this.select(ot.elements[0],ot.indexes[0])},St.prototype.select=function(ot,nt){var Dt=this.completionModel;if(!Dt)return;this.onDidSelectEmitter.fire({item:ot,index:nt,model:Dt}),this.editor.focus()},St.prototype.onThemeChange=function(ot){var nt=ot.getColor(Et);nt&&(this.listElement.style.backgroundColor=nt.toString(),this.statusBarElement.style.backgroundColor=nt.toString(),this.details.element.style.backgroundColor=nt.toString(),this.messageElement.style.backgroundColor=nt.toString());var Dt=ot.getColor(Je);Dt&&(this.listElement.style.borderColor=Dt.toString(),this.statusBarElement.style.borderColor=Dt.toString(),this.details.element.style.borderColor=Dt.toString(),this.messageElement.style.borderColor=Dt.toString(),this.detailsBorderColor=Dt.toString());var _e=ot.getColor(Ve.V);_e&&(this.detailsFocusBorderColor=_e.toString()),this.details.setBorderWidth(ot.type==="hc"?2:1)},St.prototype.onListFocus=function(ot){var nt=this,Dt,_e;if(this.ignoreFocusEvents)return;if(!ot.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 M=ot.elements[0],P=ot.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,M!==this.focusedItem){var Z=this.editor.getOption(89).insertMode==="insert",Ae=(Dt=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))===null||Dt===void 0?void 0:Dt.getLabel(),xe=(_e=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))===null||_e===void 0?void 0:_e.getLabel();tt.a.equals(M.editInsertEnd,M.editReplaceEnd)?this.setStatusBarLeftText(ie.a("accept","{0} to accept",Ae)):Z?this.setStatusBarLeftText(ie.a("insert","{0} to insert, {1} to replace",Ae,xe)):this.setStatusBarLeftText(ie.a("replace","{0} to replace, {1} to insert",Ae,xe)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=M,this.list.reveal(P),this.currentSuggestionDetails=Object(w.f)(function(Ne){return bt(nt,void 0,void 0,function(){var dt,ht,xt=this;return Gt(this,function(Bt){switch(Bt.label){case 0:return dt=Object(w.g)(function(){return xt.showDetails(!0)},250),Ne.onCancellationRequested(function(){return dt.dispose()}),[4,M.resolve(Ne)];case 1:return ht=Bt.sent(),dt.dispose(),[2,ht]}})})}),this.currentSuggestionDetails.then(function(){if(P>=nt.list.length||M!==nt.list.element(P))return;nt.ignoreFocusEvents=!0,nt.list.splice(P,1,[M]),nt.list.setFocus([P]),nt.ignoreFocusEvents=!1,nt.expandDocsSettingFromStorage()?nt.showDetails(!1):Object(C.P)(nt.element,"docs-side"),te(nt.focusedItem)?nt.expandDocsSettingFromStorage()?nt.setStatusBarRightText(nt.msgDetailsLess):nt.setStatusBarRightText(nt.msgDetailMore):nt.statusBarRightSpan.innerText="",nt.editor.setAriaOptions({activeDescendant:Y(P)})}).catch(J.e)}this.onDidFocusEmitter.fire({item:M,index:P,model:this.completionModel})},St.prototype.setState=function(ot){if(!this.element)return;var nt=this.state!==ot;this.state=ot,Object(C.Y)(this.element,"frozen",ot===4);switch(ot){case 0:Object(C.J)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,nt&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=St.LOADING_MESSAGE,Object(C.J)(this.listElement,this.details.element,this.statusBarElement),Object(C.X)(this.messageElement),Object(C.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=St.NO_SUGGESTIONS_MESSAGE,Object(C.J)(this.listElement,this.details.element,this.statusBarElement),Object(C.X)(this.messageElement),Object(C.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(C.J)(this.messageElement),Object(C.X)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(C.J)(this.messageElement),Object(C.X)(this.listElement),this.show();break;case 5:Object(C.J)(this.messageElement),Object(C.X)(this.details.element,this.listElement,this.statusBarElement),this.show();break}},St.prototype.showTriggered=function(ot,nt){var Dt=this;if(this.state!==0)return;this.isAuto=!!ot,this.isAuto||(this.loadingTimeout=Object(w.g)(function(){return Dt.setState(1)},nt))},St.prototype.showSuggestions=function(ot,nt,Dt,_e){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==ot&&(this.completionModel=ot),Dt&&this.state!==2&&this.state!==0){this.setState(4);return}var M=this.completionModel.items.length,P=M===0;if(this.suggestWidgetMultipleSuggestions.set(M>1),P)_e?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){var Z=this.completionModel.stats;Z.wasAutomaticallyTriggered=!!_e,this.telemetryService.publicLog("suggestWidget",ut({},Z))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),Dt?this.setState(4):this.setState(3),this.list.reveal(nt,0),this.list.setFocus([nt]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}},St.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}},St.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},St.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}},St.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}},St.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},St.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}},St.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},St.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")},St.prototype.toggleDetails=function(){if(!te(this.list.getFocusedElements()[0]))return;if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(C.J)(this.details.element),Object(C.P)(this.element,"docs-side"),Object(C.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")}},St.prototype.showDetails=function(ot){ot||this.expandSideOrBelow(),Object(C.X)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",ot?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()},St.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},St.prototype.show=function(){var ot=this,nt=this.updateListHeight();nt!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=nt),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(C.f)(ot.element,"visible"),ot.onDidShowEmitter.fire(ot)},100)},St.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(C.P)(this.element,"visible")},St.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},St.prototype.getPosition=function(){if(this.state===0)return null;var ot=[2,1];return this.preferDocPositionTop&&(ot=[1]),{position:this.editor.getPosition(),preference:ot}},St.prototype.getDomNode=function(){return this.element},St.prototype.getId=function(){return St.ID},St.prototype.isFrozen=function(){return this.state===4},St.prototype.updateListHeight=function(){var ot=0;if(this.state===2||this.state===1)ot=this.unfocusedHeight;else{var nt=this.list.contentHeight/this.unfocusedHeight,Dt=this.editor.getOption(89).maxVisibleSuggestions;ot=Math.min(nt,Dt)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=ot+"px",this.statusBarElement.style.top=ot+"px",this.list.layout(ot),ot},St.prototype.adjustDocsPosition=function(){if(!this.editor.hasModel())return;var ot=this.editor.getOption(49),nt=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),Dt=Object(C.C)(this.editor.getDomNode()),_e=Dt.left+nt.left,M=Dt.top+nt.top+nt.height,P=Object(C.C)(this.element),Z=P.left,Ae=P.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<Ae&&!this.preferDocPositionTop){this.preferDocPositionTop=!0,this.adjustDocsPosition();return}this.docsPositionPreviousWidgetY=Ae,Z<_e-this.listWidth?Object(C.f)(this.element,"list-right"):Object(C.P)(this.element,"list-right"),Object(C.I)(this.element,"docs-side")&&M-ot>Ae&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},St.prototype.expandSideOrBelow=function(){if(!te(this.focusedItem)&&this.firstFocusInCurrentList){Object(C.P)(this.element,"docs-side"),Object(C.P)(this.element,"docs-below");return}var ot=this.element.style.maxWidth.match(/(\d+)px/);!ot||Number(ot[1])<this.maxWidgetWidth?(Object(C.f)(this.element,"docs-below"),Object(C.P)(this.element,"docs-side")):te(this.focusedItem)&&(Object(C.f)(this.element,"docs-side"),Object(C.P)(this.element,"docs-below"))},Object.defineProperty(St.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getOption(89).maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(St.prototype,"unfocusedHeight",{get:function(){var nt=this.editor.getOptions();return nt.get(91)||nt.get(34).lineHeight},enumerable:!0,configurable:!0}),St.prototype.getHeight=function(ot){return this.unfocusedHeight},St.prototype.getTemplateId=function(ot){return"suggestion"},St.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,Nt)},St.prototype.updateExpandDocsSetting=function(ot){this.storageService.store("expandSuggestionDocs",ot,0)},St.prototype.setStatusBarLeftText=function(ot){this.statusBarLeftSpan.innerText=ot},St.prototype.setStatusBarRightText=function(ot){this.statusBarRightSpan.innerText=ot},St.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},St.ID="editor.widget.suggestWidget",St.LOADING_MESSAGE=ie.a("suggestWidget.loading","Loading..."),St.NO_SUGGESTIONS_MESSAGE=ie.a("suggestWidget.noSuggestions","No suggestions."),St=Ct([gt(1,be.a),gt(2,oe.a),gt(3,B.c),gt(4,Se.c),gt(5,f.a),gt(6,it.a),gt(7,pt.a),gt(8,p.a)],St),St}();Object(Se.e)(function(St,ot){var nt=St.getColor(Ke);nt&&ot.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+nt+"; }");var Dt=St.getColor($e);Dt&&ot.addRule(".monaco-editor .suggest-widget { color: "+Dt+"; }");var _e=St.getColor(Ve.ec);_e&&ot.addRule(".monaco-editor .suggest-widget a { color: "+_e+"; }");var M=St.getColor(Ve.dc);M&&ot.addRule(".monaco-editor .suggest-widget code { background-color: "+M+"; }")});var Tt=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,M){_e.__proto__=M}||function(_e,M){for(var P in M)M.hasOwnProperty(P)&&(_e[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),Jt=function(St,ot,nt,Dt){var _e=arguments.length,M=_e<3?ot:Dt===null?Dt=Object.getOwnPropertyDescriptor(ot,nt):Dt,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,ot,nt,Dt);else for(var Z=St.length-1;Z>=0;Z--)(P=St[Z])&&(M=(_e<3?P(M):_e>3?P(ot,nt,M):P(ot,nt))||M);return _e>3&&M&&Object.defineProperty(ot,nt,M),M},eo=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},po=function(St){Tt(ot,St);function ot(nt,Dt){var _e=St.call(this)||this;return _e._editor=nt,_e._enabled=!1,_e._ckAtEnd=ot.AtEnd.bindTo(Dt),_e._register(_e._editor.onDidChangeConfiguration(function(M){return M.hasChanged(94)&&_e._update()})),_e._update(),_e}return ot.prototype.dispose=function(){St.prototype.dispose.call(this),Object(U.f)(this._selectionListener),this._ckAtEnd.reset()},ot.prototype._update=function(){var nt=this,Dt=this._editor.getOption(94)==="on";if(this._enabled===Dt)return;if(this._enabled=Dt,this._enabled){var _e=function(){if(!nt._editor.hasModel()){nt._ckAtEnd.set(!1);return}var P=nt._editor.getModel(),Z=nt._editor.getSelection(),Ae=P.getWordAtPosition(Z.getStartPosition());if(!Ae){nt._ckAtEnd.set(!1);return}nt._ckAtEnd.set(Ae.endColumn===Z.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(_e),_e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},ot.AtEnd=new B.d("atEndOfWord",!1),ot=Jt([eo(1,B.c)],ot),ot}(U.a),co=e("pAvP"),Eo=e("746U"),Oo=e("MXAL"),Ao=function(){function St(ot,nt,Dt){var _e=this;this._disposables=new U.b,this._disposables.add(nt.onDidShow(function(){return _e._onItem(nt.getFocusedItem())})),this._disposables.add(nt.onDidFocus(this._onItem,this)),this._disposables.add(nt.onDidHide(this.reset,this)),this._disposables.add(ot.onWillType(function(M){if(_e._active&&!nt.isFrozen()){var P=M.charCodeAt(M.length-1);_e._active.acceptCharacters.has(P)&&ot.getOption(0)&&Dt(_e._active.item)}}))}return St.prototype._onItem=function(ot){if(!ot||!Object(re.q)(ot.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===ot.item)return;for(var nt=new Oo.b,Dt=0,_e=ot.item.completion.commitCharacters;Dt<_e.length;Dt++){var M=_e[Dt];M.length>0&&nt.add(M.charCodeAt(0))}this._active={acceptCharacters:nt,item:ot}},St.prototype.reset=function(){this._active=void 0},St.prototype.dispose=function(){this._disposables.dispose()},St}(),Zo=e("MNsG"),Co=e("4y0V"),Wo=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,M){_e.__proto__=M}||function(_e,M){for(var P in M)M.hasOwnProperty(P)&&(_e[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),Go=function(){function St(ot){var nt=this;this._controller=ot,this._disposables=new U.b,this._decorations=[],this._disposables.add(ot.model.onDidSuggest(function(Dt){if(!Dt.shy){var _e=nt._controller.widget.getValue(),M=_e.getFocusedItem();M&&nt._highlight(M.item),nt._widgetListener||(nt._widgetListener=_e.onDidFocus(function(P){return nt._highlight(P.item)}))}})),this._disposables.add(ot.model.onDidCancel(function(){nt._reset()}))}return St.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(U.f)(this._widgetListener),Object(U.f)(this._shiftKeyListener)},St.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},St.prototype._highlight=function(ot){var nt=this,Dt;this._currentItem=ot;var _e=this._controller.editor.getOption(89),M=[];if(_e.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=Bo.event(function(){return nt._highlight(nt._currentItem)}));var P=this._controller.getOverwriteInfo(ot,Bo.isPressed),Z=this._controller.editor.getPosition();if(_e.insertMode==="insert"&&P.overwriteAfter>0)M=[{range:new H.a(Z.lineNumber,Z.column,Z.lineNumber,Z.column+P.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if(_e.insertMode==="replace"&&P.overwriteAfter===0){var Ae=(Dt=this._controller.editor.getModel())===null||Dt===void 0?void 0:Dt.getWordAtPosition(Z);Ae&&Ae.endColumn>Z.column&&(M=[{range:new H.a(Z.lineNumber,Z.column,Z.lineNumber,Ae.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,M)},St}(),Bo=new(function(St){Wo(ot,St);function ot(){var nt=St.call(this)||this;return nt._subscriptions=new U.b,nt._isPressed=!1,nt._subscriptions.add(Object(Co.a)(document.body,"keydown")(function(Dt){return nt.isPressed=Dt.shiftKey})),nt._subscriptions.add(Object(Co.a)(document.body,"keyup")(function(){return nt.isPressed=!1})),nt._subscriptions.add(Object(Co.a)(document.body,"mouseleave")(function(){return nt.isPressed=!1})),nt._subscriptions.add(Object(Co.a)(document.body,"blur")(function(){return nt.isPressed=!1})),nt}return Object.defineProperty(ot.prototype,"isPressed",{get:function(){return this._isPressed},set:function(Dt){this._isPressed!==Dt&&(this._isPressed=Dt,this.fire(Dt))},enumerable:!0,configurable:!0}),ot.prototype.dispose=function(){this._subscriptions.dispose(),St.prototype.dispose.call(this)},ot}(Ue.a)),Mo=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,M){_e.__proto__=M}||function(_e,M){for(var P in M)M.hasOwnProperty(P)&&(_e[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),Qo=function(){return Qo=Object.assign||function(St){for(var ot,nt=1,Dt=arguments.length;nt<Dt;nt++){ot=arguments[nt];for(var _e in ot)Object.prototype.hasOwnProperty.call(ot,_e)&&(St[_e]=ot[_e])}return St},Qo.apply(this,arguments)},fn=function(St,ot,nt,Dt){var _e=arguments.length,M=_e<3?ot:Dt===null?Dt=Object.getOwnPropertyDescriptor(ot,nt):Dt,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,ot,nt,Dt);else for(var Z=St.length-1;Z>=0;Z--)(P=St[Z])&&(M=(_e<3?P(M):_e>3?P(ot,nt,M):P(ot,nt))||M);return _e>3&&M&&Object.defineProperty(ot,nt,M),M},Vo=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},mn=function(){for(var St=0,ot=0,nt=arguments.length;ot<nt;ot++)St+=arguments[ot].length;for(var Dt=Array(St),_e=0,ot=0;ot<nt;ot++)for(var M=arguments[ot],P=0,Z=M.length;P<Z;P++,_e++)Dt[_e]=M[P];return Dt},yn=!1,dn=function(){function St(ot,nt){this._model=ot,this._position=nt;var Dt=ot.getLineMaxColumn(nt.lineNumber);if(Dt!==nt.column){var _e=ot.getOffsetAt(nt),M=ot.getPositionAt(_e+1);this._marker=ot.deltaDecorations([],[{range:H.a.fromPositions(nt,M),options:{stickiness:1}}])}}return St.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},St.prototype.delta=function(ot){if(this._model.isDisposed()||this._position.lineNumber!==ot.lineNumber)return 0;if(this._marker){var nt=this._model.getDecorationRange(this._marker[0]),Dt=this._model.getOffsetAt(nt.getStartPosition());return Dt-this._model.getOffsetAt(ot)}else return this._model.getLineMaxColumn(ot.lineNumber)-ot.column},St}(),rn=function(){function St(ot,nt,Dt,_e,M,P){var Z=this;this._memoryService=Dt,this._commandService=_e,this._contextKeyService=M,this._instantiationService=P,this._lineSuffix=new U.d,this._toDispose=new U.b,this.editor=ot,this.model=new we(this.editor,nt),this.widget=this._toDispose.add(new w.b(function(){var Ne=Z._instantiationService.createInstance(lt,Z.editor);Z._toDispose.add(Ne),Z._toDispose.add(Ne.onDidSelect(function(xt){return Z._insertSuggestion(xt,0)},Z));var dt=new Ao(Z.editor,Ne,function(xt){return Z._insertSuggestion(xt,2)});Z._toDispose.add(dt),Z._toDispose.add(Z.model.onDidSuggest(function(xt){xt.completionModel.items.length===0&&dt.reset()}));var ht=Ce.b.MakesTextEdit.bindTo(Z._contextKeyService);return Z._toDispose.add(Ne.onDidFocus(function(xt){var Bt=xt.item,Ht=Z.editor.getPosition(),Ut=Bt.editStart.column,oo=Ht.column,Zt=!0;if(Z.editor.getOption(1)==="smart"&&Z.model.state===2&&!Bt.completion.command&&!Bt.completion.additionalTextEdits&&!(Bt.completion.insertTextRules&4)&&oo-Ut===Bt.completion.insertText.length){var fo=Z.editor.getModel().getValueInRange({startLineNumber:Ht.lineNumber,startColumn:Ut,endLineNumber:Ht.lineNumber,endColumn:oo});Zt=fo!==Bt.completion.insertText}ht.set(Zt)})),Z._toDispose.add(Object(U.h)(function(){return ht.reset()})),Z._toDispose.add(Ne.onDetailsKeyDown(function(xt){if(xt.toKeybinding().equals(new I.e(!0,!1,!1,!1,33))||Zo.e&&xt.toKeybinding().equals(new I.e(!1,!1,!1,!0,33))){xt.stopPropagation();return}xt.toKeybinding().isModifierKey()||Z.editor.focus()})),Ne})),this._alternatives=this._toDispose.add(new w.b(function(){return Z._toDispose.add(new Fe(Z.editor,Z._contextKeyService))})),this._toDispose.add(P.createInstance(po,ot)),this._toDispose.add(this.model.onDidTrigger(function(Ne){Z.widget.getValue().showTriggered(Ne.auto,Ne.shy?250:50),Z._lineSuffix.value=new dn(Z.editor.getModel(),Ne.position)})),this._toDispose.add(this.model.onDidSuggest(function(Ne){if(!Ne.shy){var dt=Z._memoryService.select(Z.editor.getModel(),Z.editor.getPosition(),Ne.completionModel.items);Z.widget.getValue().showSuggestions(Ne.completionModel,dt,Ne.isFrozen,Ne.auto)}})),this._toDispose.add(this.model.onDidCancel(function(Ne){Ne.retrigger||Z.widget.getValue().hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(function(){yn||(Z.model.cancel(),Z.model.clear())}));var Ae=Ce.b.AcceptSuggestionsOnEnter.bindTo(M),xe=function(){var dt=Z.editor.getOption(1);Ae.set(dt==="on"||dt==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(function(){return xe()})),xe(),this._toDispose.add(new Go(this))}return St.get=function(ot){return ot.getContribution(St.ID)},St.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()},St.prototype._insertSuggestion=function(ot,nt){var Dt,_e=this;if(!ot||!ot.item){this._alternatives.getValue().reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;var M=this.editor.getModel(),P=M.getAlternativeVersionId(),Z=ot.item,Ae=Z.completion;nt&1||this.editor.pushUndoStop();var xe=this.getOverwriteInfo(Z,Boolean(nt&8));this._memoryService.memorize(M,this.editor.getPosition(),Z),Array.isArray(Ae.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",Ae.additionalTextEdits.map(function(dt){return O.a.replace(H.a.lift(dt.range),dt.text)}));var Ne=Ae.insertText;Ae.insertTextRules&4||(Ne=y.c.escape(Ne)),u.SnippetController2.get(this.editor).insert(Ne,{overwriteBefore:xe.overwriteBefore,overwriteAfter:xe.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(Ae.insertTextRules&1)}),nt&2||this.editor.pushUndoStop(),Ae.command?Ae.command.id===pn.id?this.model.trigger({auto:!0,shy:!1},!0):((Dt=this._commandService).executeCommand.apply(Dt,mn([Ae.command.id],Ae.command.arguments?mn(Ae.command.arguments):[])).catch(J.e).finally(function(){return _e.model.clear()}),this.model.cancel()):(this.model.cancel(),this.model.clear()),nt&4&&this._alternatives.getValue().set(ot,function(dt){for(;M.canUndo();){P!==M.getAlternativeVersionId()&&M.undo(),_e._insertSuggestion(dt,1|2|(nt&8?8:0));break}}),this._alertCompletionItem(ot.item)},St.prototype.getOverwriteInfo=function(ot,nt){Object(Eo.a)(this.editor.hasModel());var Dt=this.editor.getOption(89).insertMode==="replace";nt&&(Dt=!Dt);var _e=ot.position.column-ot.editStart.column,M=(Dt?ot.editReplaceEnd.column:ot.editInsertEnd.column)-ot.position.column,P=this.editor.getPosition().column-ot.position.column,Z=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:_e+P,overwriteAfter:M+Z}},St.prototype._alertCompletionItem=function(ot){var nt=ot.completion,Dt=typeof nt.label=="string"?nt.label:nt.label.name;if(Object(re.q)(nt.additionalTextEdits)){var _e=ie.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",Dt,nt.additionalTextEdits.length);Object(T.a)(_e)}},St.prototype.triggerSuggest=function(ot){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,ot),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())},St.prototype.triggerSuggestAndAcceptBest=function(ot){var nt=this;if(!this.editor.hasModel())return;var Dt=this.editor.getPosition(),_e=function(){Dt.equals(nt.editor.getPosition())&&nt._commandService.executeCommand(ot.fallback)},M=function(Z){if(Z.completion.insertTextRules&4||Z.completion.additionalTextEdits)return!0;var Ae=nt.editor.getPosition(),xe=Z.editStart.column,Ne=Ae.column;if(Ne-xe!==Z.completion.insertText.length)return!0;var dt=nt.editor.getModel().getValueInRange({startLineNumber:Ae.lineNumber,startColumn:xe,endLineNumber:Ae.lineNumber,endColumn:Ne});return dt!==Z.completion.insertText};Ue.b.once(this.model.onDidTrigger)(function(P){var Z=[];Ue.b.any(nt.model.onDidTrigger,nt.model.onDidCancel)(function(){Object(U.f)(Z),_e()},void 0,Z),nt.model.onDidSuggest(function(Ae){var xe=Ae.completionModel;if(Object(U.f)(Z),xe.items.length===0){_e();return}var Ne=nt._memoryService.select(nt.editor.getModel(),nt.editor.getPosition(),xe.items),dt=xe.items[Ne];if(!M(dt)){_e();return}nt.editor.pushUndoStop(),nt._insertSuggestion({index:Ne,item:dt,model:xe},4|1|2)},void 0,Z)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(Dt.lineNumber,0),this.editor.focus()},St.prototype.acceptSelectedSuggestion=function(ot,nt){var Dt=this.widget.getValue().getFocusedItem(),_e=0;ot&&(_e|=4),nt&&(_e|=8),this._insertSuggestion(Dt,_e)},St.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},St.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},St.prototype.cancelSuggestWidget=function(){this.model.cancel(),this.model.clear(),this.widget.getValue().hideWidget()},St.prototype.selectNextSuggestion=function(){this.widget.getValue().selectNext()},St.prototype.selectNextPageSuggestion=function(){this.widget.getValue().selectNextPage()},St.prototype.selectLastSuggestion=function(){this.widget.getValue().selectLast()},St.prototype.selectPrevSuggestion=function(){this.widget.getValue().selectPrevious()},St.prototype.selectPrevPageSuggestion=function(){this.widget.getValue().selectPreviousPage()},St.prototype.selectFirstSuggestion=function(){this.widget.getValue().selectFirst()},St.prototype.toggleSuggestionDetails=function(){this.widget.getValue().toggleDetails()},St.prototype.toggleExplainMode=function(){this.widget.getValue().toggleExplainMode()},St.prototype.toggleSuggestionFocus=function(){this.widget.getValue().toggleDetailsFocus()},St.ID="editor.contrib.suggestController",St=fn([Vo(1,co.a),Vo(2,$),Vo(3,W.b),Vo(4,B.c),Vo(5,p.a)],St),St}(),pn=function(St){Mo(ot,St);function ot(){return St.call(this,{id:ot.id,label:ie.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:B.a.and(x.a.writable,x.a.hasCompletionItemProvider),kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|10,mac:{primary:256|10,secondary:[512|9]},weight:100}})||this}return ot.prototype.run=function(nt,Dt){var _e=rn.get(Dt);if(!_e)return;_e.triggerSuggest()},ot.id="editor.action.triggerSuggest",ot}(z.b);Object(z.h)(rn.ID,rn),Object(z.f)(pn);var zo=100+90,Ho=z.c.bindToContribution(rn.get);Object(z.g)(new Ho({id:"acceptSelectedSuggestion",precondition:Ce.b.Visible,handler:function(ot){ot.acceptSelectedSuggestion(!0,!1)}})),le.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:B.a.and(Ce.b.Visible,x.a.textInputFocus),primary:2,weight:zo}),le.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:B.a.and(Ce.b.Visible,x.a.textInputFocus,Ce.b.AcceptSuggestionsOnEnter,Ce.b.MakesTextEdit),primary:3,weight:zo}),Object(z.g)(new Ho({id:"acceptAlternativeSelectedSuggestion",precondition:B.a.and(Ce.b.Visible,x.a.textInputFocus),kbOpts:{weight:zo,kbExpr:x.a.textInputFocus,primary:1024|3,secondary:[1024|2]},handler:function(ot){ot.acceptSelectedSuggestion(!1,!0)}})),W.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(z.g)(new Ho({id:"hideSuggestWidget",precondition:Ce.b.Visible,handler:function(ot){return ot.cancelSuggestWidget()},kbOpts:{weight:zo,kbExpr:x.a.textInputFocus,primary:9,secondary:[1024|9]}})),Object(z.g)(new Ho({id:"selectNextSuggestion",precondition:B.a.and(Ce.b.Visible,Ce.b.MultipleSuggestions),handler:function(ot){return ot.selectNextSuggestion()},kbOpts:{weight:zo,kbExpr:x.a.textInputFocus,primary:18,secondary:[2048|18],mac:{primary:18,secondary:[2048|18,256|44]}}})),Object(z.g)(new Ho({id:"selectNextPageSuggestion",precondition:B.a.and(Ce.b.Visible,Ce.b.MultipleSuggestions),handler:function(ot){return ot.selectNextPageSuggestion()},kbOpts:{weight:zo,kbExpr:x.a.textInputFocus,primary:12,secondary:[2048|12]}})),Object(z.g)(new Ho({id:"selectLastSuggestion",precondition:B.a.and(Ce.b.Visible,Ce.b.MultipleSuggestions),handler:function(ot){return ot.selectLastSuggestion()}})),Object(z.g)(new Ho({id:"selectPrevSuggestion",precondition:B.a.and(Ce.b.Visible,Ce.b.MultipleSuggestions),handler:function(ot){return ot.selectPrevSuggestion()},kbOpts:{weight:zo,kbExpr:x.a.textInputFocus,primary:16,secondary:[2048|16],mac:{primary:16,secondary:[2048|16,256|46]}}})),Object(z.g)(new Ho({id:"selectPrevPageSuggestion",precondition:B.a.and(Ce.b.Visible,Ce.b.MultipleSuggestions),handler:function(ot){return ot.selectPrevPageSuggestion()},kbOpts:{weight:zo,kbExpr:x.a.textInputFocus,primary:11,secondary:[2048|11]}})),Object(z.g)(new Ho({id:"selectFirstSuggestion",precondition:B.a.and(Ce.b.Visible,Ce.b.MultipleSuggestions),handler:function(ot){return ot.selectFirstSuggestion()}})),Object(z.g)(new Ho({id:"toggleSuggestionDetails",precondition:Ce.b.Visible,handler:function(ot){return ot.toggleSuggestionDetails()},kbOpts:{weight:zo,kbExpr:x.a.textInputFocus,primary:2048|10,mac:{primary:256|10}}})),Object(z.g)(new Ho({id:"toggleExplainMode",precondition:Ce.b.Visible,handler:function(ot){return ot.toggleExplainMode()},kbOpts:{weight:100,primary:2048|85}})),Object(z.g)(new Ho({id:"toggleSuggestionFocus",precondition:Ce.b.Visible,handler:function(ot){return ot.toggleSuggestionFocus()},kbOpts:{weight:zo,kbExpr:x.a.textInputFocus,primary:2048|512|10,mac:{primary:256|512|10}}})),Object(z.g)(new Ho({id:"insertBestCompletion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),po.AtEnd,Ce.b.Visible.toNegated(),Fe.OtherSuggestions.toNegated(),u.SnippetController2.InSnippetMode.toNegated()),handler:function(ot,nt){ot.triggerSuggestAndAcceptBest(Object(Eo.i)(nt)?Qo({fallback:"tab"},nt):{fallback:"tab"})},kbOpts:{weight:zo,primary:2}})),Object(z.g)(new Ho({id:"insertNextSuggestion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),Fe.OtherSuggestions,Ce.b.Visible.toNegated(),u.SnippetController2.InSnippetMode.toNegated()),handler:function(ot){return ot.acceptNextSuggestion()},kbOpts:{weight:zo,kbExpr:x.a.textInputFocus,primary:2}})),Object(z.g)(new Ho({id:"insertPrevSuggestion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),Fe.OtherSuggestions,Ce.b.Visible.toNegated(),u.SnippetController2.InSnippetMode.toNegated()),handler:function(ot){return ot.acceptPrevSuggestion()},kbOpts:{weight:zo,kbExpr:x.a.textInputFocus,primary:1024|2}}))},epnl:function(Lt,j,e){},eq1K:function(Lt,j,e){},erNZ:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("N0LK"),re;typeof TextDecoder!="undefined"?re=function(z){return new J(z)}:re=function(z){return new I};var J=function(){function U(z){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=z|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return U.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},U.prototype.build=function(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},U.prototype._buildBuffer=function(){if(this._bufferLength===0)return"";var z=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(z)},U.prototype._flushBuffer=function(){var z=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[z]:this._completedStrings[this._completedStrings.length]=z},U.prototype.write1=function(z){var O=this._capacity-this._bufferLength;O<=1&&((O===0||T.z(z))&&this._flushBuffer()),this._buffer[this._bufferLength++]=z},U.prototype.appendASCII=function(z){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=z},U.prototype.appendASCIIString=function(z){var O=z.length;if(this._bufferLength+O>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=z;return}for(var H=0;H<O;H++)this._buffer[this._bufferLength++]=z.charCodeAt(H)},U}(),I=function(){function U(){this._pieces=[],this._piecesLen=0}return U.prototype.reset=function(){this._pieces=[],this._piecesLen=0},U.prototype.build=function(){return this._pieces.join("")},U.prototype.write1=function(z){this._pieces[this._piecesLen++]=String.fromCharCode(z)},U.prototype.appendASCII=function(z){this._pieces[this._piecesLen++]=String.fromCharCode(z)},U.prototype.appendASCIIString=function(z){this._pieces[this._piecesLen++]=z},U}()},fD5p:function(Lt,j,e){"use strict";e.r(j),e.d(j,"ContextMenuController",function(){return c});var T=e("3/fG"),re=e("EffR"),J=e("WqXY"),I=e("pmY6"),U=e("sswD"),z=e("wQH0"),O=e("fjLI"),H=e("T8No"),x=e("Uzvx"),u=e("bexQ"),y=e("2gzu"),_=function(){var l=function(m,E){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,A){L.__proto__=A}||function(L,A){for(var k in A)A.hasOwnProperty(k)&&(L[k]=A[k])},l(m,E)};return function(d,m){l(d,m);function E(){this.constructor=d}d.prototype=m===null?Object.create(m):(E.prototype=m.prototype,new E)}}(),f=function(l){_(d,l);function d(m,E){var L=l.call(this,m,E,"contextsubmenu")||this;return L.entries=E,L}return d}(y.b),v=function(){var l=function(m,E){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,A){L.__proto__=A}||function(L,A){for(var k in A)A.hasOwnProperty(k)&&(L[k]=A[k])},l(m,E)};return function(d,m){l(d,m);function E(){this.constructor=d}d.prototype=m===null?Object.create(m):(E.prototype=m.prototype,new E)}}(),w=function(l,d,m,E){var L=arguments.length,A=L<3?d:E===null?E=Object.getOwnPropertyDescriptor(d,m):E,k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(l,d,m,E);else for(var R=l.length-1;R>=0;R--)(k=l[R])&&(A=(L<3?k(A):L>3?k(d,m,A):k(d,m))||A);return L>3&&A&&Object.defineProperty(d,m,A),A},p=function(l,d){return function(m,E){d(m,E,l)}},c=function(){function l(d,m,E,L,A,k){var R=this;this._contextMenuService=m,this._contextViewService=E,this._contextKeyService=L,this._keybindingService=A,this._menuService=k,this._toDispose=new I.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 m=!1,E=0,L=this._editor.getSelections();E<L.length;E++){var A=L[E];if(A.containsPosition(d.target.position)){m=!0;break}}m||this._editor.setPosition(d.target.position)}var k=null;d.target.type!==1&&(k={x:d.event.posx-1,width:2,y:d.event.posy-1,height:2}),this.showContextMenu(k)},l.prototype.showContextMenu=function(d){if(!this._editor.getOption(14))return;if(!this._editor.hasModel())return;if(!this._contextMenuService){this._editor.focus();return}var m=this._getMenuActions(this._editor.getModel(),7);m.length>0&&this._doShowContextMenu(m,d)},l.prototype._getMenuActions=function(d,m){var E=[],L=this._menuService.createMenu(m,this._contextKeyService),A=L.getActions({arg:d.uri});L.dispose();for(var k=0,R=A;k<R.length;k++){for(var $=R[k],ie=$[1],W=0,B=0,le=ie;B<le.length;B++){var Ce=le[B];if(Ce instanceof O.d){var Me=this._getMenuActions(d,Ce.item.submenu);Me.length>0&&(E.push(new f(Ce.label,Me)),W++)}else E.push(Ce),W++}W&&E.push(new J.d)}return E.length&&E.pop(),E},l.prototype._doShowContextMenu=function(d,m){var E=this;if(m===void 0&&(m=null),!this._editor.hasModel())return;var L=this._editor.getOption(44);if(this._editor.updateOptions({hover:{enabled:!1}}),!m){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var A=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),k=re.C(this._editor.getDomNode()),R=k.left+A.left,$=k.top+A.top+A.height;m={x:R,y:$}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return m},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})}})},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=w([p(1,x.a),p(2,x.b),p(3,H.c),p(4,u.a),p(5,O.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(m,E){var L=c.get(E);L.showContextMenu()},d}(U.b);Object(U.h)(c.ID,c),Object(U.f)(s)},feEw:function(Lt,j,e){"use strict";e.d(j,"a",function(){return A}),e.d(j,"b",function(){return ie});var T=e("qj0h"),re=e("pmY6"),J=e("pg8w"),I=e("EffR"),U=e("MI8n"),z=e("4y0V"),O=e("GJhM"),H=e("nuFA");function x(W,B){for(var le=[],Ce=0,Me=B;Ce<Me.length;Ce++){var Te=Me[Ce];if(W.start>=Te.range.end)continue;if(W.end<Te.range.start)break;var Fe=H.a.intersect(W,Te.range);if(H.a.isEmpty(Fe))continue;le.push({range:Fe,size:Te.size})}return le}function u(W,B){var le=W.start,Ce=W.end;return{start:le+B,end:Ce+B}}function y(W){for(var B=[],le=null,Ce=0,Me=W;Ce<Me.length;Ce++){var Te=Me[Ce],Fe=Te.range.start,Ue=Te.range.end,Pe=Te.size;if(le&&Pe===le.size){le.range.end=Ue;continue}le={range:{start:Fe,end:Ue},size:Pe},B.push(le)}return B}function _(){for(var W=[],B=0;B<arguments.length;B++)W[B]=arguments[B];return y(W.reduce(function(le,Ce){return le.concat(Ce)},[]))}var f=function(){function W(){this.groups=[],this._size=0}return W.prototype.splice=function(B,le,Ce){Ce===void 0&&(Ce=[]);var Me=Ce.length-le,Te=x({start:0,end:B},this.groups),Fe=x({start:B+le,end:Number.POSITIVE_INFINITY},this.groups).map(function(Pe){return{range:u(Pe.range,Me),size:Pe.size}}),Ue=Ce.map(function(Pe,ne){return{range:{start:B+ne,end:B+ne+1},size:Pe.size}});this.groups=_(Te,Ue,Fe),this._size=this.groups.reduce(function(Pe,ne){return Pe+ne.size*(ne.range.end-ne.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,Ce=0,Me=0,Te=this.groups;Me<Te.length;Me++){var Fe=Te[Me],Ue=Fe.range.end-Fe.range.start,Pe=Ce+Ue*Fe.size;if(B<Pe)return le+Math.floor((B-Ce)/Fe.size);le+=Ue,Ce=Pe}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,Ce=0,Me=0,Te=this.groups;Me<Te.length;Me++){var Fe=Te[Me],Ue=Fe.range.end-Fe.range.start,Pe=Ce+Ue;if(B<Pe)return le+(B-Ce)*Fe.size;le+=Ue*Fe.size,Ce=Pe}return-1},W}();function v(W){try{W.parentElement&&W.parentElement.removeChild(W)}catch(B){}}var w=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 Ce=Object(I.a)(".monaco-list-row"),Me=this.getRenderer(B),Te=Me.renderTemplate(Ce);le={domNode:Ce,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,Ce=B.templateId;le&&(Object(I.P)(le,"scrolling"),v(le));var Me=this.getTemplateCache(Ce);Me.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,Ce){for(var Me=0,Te=le;Me<Te.length;Me++){var Fe=Te[Me],Ue=B.getRenderer(Ce);Ue.disposeTemplate(Fe.templateData),Fe.domNode=null,Fe.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}(),p=e("ZCR3"),c=e("6OMU"),s=e("ZQ78"),l=e("X+cX"),d=e("D3Dy"),m=function(W,B,le,Ce){var Me=arguments.length,Te=Me<3?B:Ce===null?Ce=Object.getOwnPropertyDescriptor(B,le):Ce,Fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Te=Reflect.decorate(W,B,le,Ce);else for(var Ue=W.length-1;Ue>=0;Ue--)(Fe=W[Ue])&&(Te=(Me<3?Fe(Te):Me>3?Fe(B,le,Te):Fe(B,le))||Te);return Me>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 Ce=Array(W),Me=0,B=0;B<le;B++)for(var Te=arguments[B],Fe=0,Ue=Te.length;Fe<Ue;Fe++,Me++)Ce[Me]=Te[Fe];return Ce},L={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},A=function(){function W(B){this.elements=B}return W.prototype.update=function(){},W.prototype.getData=function(){return this.elements},W}(),k=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 Ce=0;Ce<B.files.length;Ce++){var Me=B.files.item(Ce);Me&&(Me.size||Me.type)&&this.files.push(Me)}}},W.prototype.getData=function(){return{types:this.types,files:this.files}},W}();function $(W,B){return Array.isArray(W)&&Array.isArray(B)?Object(c.g)(W,B):W===B}var ie=function(){function W(B,le,Ce,Me){var Te=this;if(Me===void 0&&(Me=L),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 U.a,Me.horizontalScrolling&&Me.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new f;for(var Fe=0,Ue=Ce;Fe<Ue.length;Fe++){var Pe=Ue[Fe];this.renderers.set(Pe.templateId,Pe)}this.cache=this.disposables.add(new w(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",I.f(this.domNode,this.domId),this.domNode.tabIndex=0,I.Y(this.domNode,"mouse-support",typeof Me.mouseSupport=="boolean"?Me.mouseSupport:!0),this.horizontalScrolling=Object(T.f)(Me,function(ne){return ne.horizontalScrolling},L.horizontalScrolling),I.Y(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight=typeof Me.additionalScrollHeight=="undefined"?0:Me.additionalScrollHeight,this.ariaProvider=Me.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 O.b(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(T.f)(Me,function(ne){return ne.verticalScrollMode},L.verticalScrollMode),useShadows:Object(T.f)(Me,function(ne){return ne.useShadows},L.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(ne){return ne.target.scrollTop=0},null,this.disposables),U.b.map(Object(z.a)(this.domNode,"dragover"),function(ne){return Te.toDragEvent(ne)})(this.onDragOver,this,this.disposables),U.b.map(Object(z.a)(this.domNode,"drop"),function(ne){return Te.toDragEvent(ne)})(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)(Me,function(ne){return ne.setRowLineHeight},L.setRowLineHeight),this.supportDynamicHeights=Object(T.f)(Me,function(ne){return ne.supportDynamicHeights},L.supportDynamicHeights),this.dnd=Object(T.f)(Me,function(ne){return ne.dnd},L.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,Ce){if(Ce===void 0&&(Ce=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(B,le,Ce)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},W.prototype._splice=function(B,le,Ce){var Me,Te=this;Ce===void 0&&(Ce=[]);for(var Fe=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Ue={start:B,end:B+le},Pe=H.a.intersect(Fe,Ue),ne=Pe.start;ne<Pe.end;ne++)this.removeItemFromDOM(ne);var ee={start:B+le,end:this.items.length},ae=H.a.intersect(ee,Fe),q=H.a.relativeComplement(ee,Fe),ue=Ce.map(function(be){return{id:String(Te.itemId++),element:be,templateId:Te.virtualDelegate.getTemplateId(be),size:Te.virtualDelegate.getHeight(be),width:void 0,hasDynamicHeight:!!Te.virtualDelegate.hasDynamicHeight&&Te.virtualDelegate.hasDynamicHeight(be),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,ue),this.items=ue,X=[]):(this.rangeMap.splice(B,le,ue),X=(Me=this.items).splice.apply(Me,E([B,le],ue)));for(var he=Ce.length-le,je=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Xe=u(ae,he),me=H.a.intersect(je,Xe),ne=me.start;ne<me.end;ne++)this.updateItemInDOM(this.items[ne],ne);for(var ge=H.a.relativeComplement(Xe,je),we=0,Re=ge;we<Re.length;we++)for(var Ee=Re[we],ne=Ee.start;ne<Ee.end;ne++)this.removeItemFromDOM(ne);for(var ve=q.map(function(be){return u(be,he)}),Q={start:B,end:B+Ce.length},C=E([Q],ve).map(function(be){return H.a.intersect(je,be)}),F=this.getNextToLastElement(C),se=0,oe=C;se<oe.length;se++)for(var Ee=oe[se],ne=Ee.start;ne<Ee.end;ne++)this.insertItemInDOM(ne,F);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),X.map(function(be){return be.element})},W.prototype.eventuallyUpdateScrollDimensions=function(){var B=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=I.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,Ce=this.items;le<Ce.length;le++){var Me=Ce[le];typeof Me.width!="undefined"&&(B=Math.max(B,Me.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 Ce=le[B];Ce.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 Ce={height:typeof B=="number"?B:I.A(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,Ce.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(Ce),typeof le!="undefined"&&(this.renderWidth=le,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof le=="number"?le:I.B(this.domNode)}))},W.prototype.render=function(B,le,Ce,Me){for(var Te=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Fe=this.getRenderRange(B,le),Ue=H.a.relativeComplement(Fe,Te),Pe=H.a.relativeComplement(Te,Fe),ne=this.getNextToLastElement(Ue),ee=0,ae=Ue;ee<ae.length;ee++)for(var q=ae[ee],ue=q.start;ue<q.end;ue++)this.insertItemInDOM(ue,ne);for(var X=0,he=Pe;X<he.length;X++)for(var q=he[X],ue=q.start;ue<q.end;ue++)this.removeItemFromDOM(ue);this.rowsContainer.style.left="-"+Ce+"px",this.rowsContainer.style.top="-"+B+"px",this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(Me,this.renderWidth)+"px"),this.lastRenderTop=B,this.lastRenderHeight=le},W.prototype.insertItemInDOM=function(B,le){var Ce=this,Me=this.items[B];if(!Me.row){Me.row=this.cache.alloc(Me.templateId);var Te=this.ariaProvider.getRole?this.ariaProvider.getRole(Me.element):"treeitem";Me.row.domNode.setAttribute("role",Te);var Fe=this.ariaProvider.isChecked?this.ariaProvider.isChecked(Me.element):void 0;typeof Fe!="undefined"&&Me.row.domNode.setAttribute("aria-checked",String(Fe))}Me.row.domNode.parentElement||(le?this.rowsContainer.insertBefore(Me.row.domNode,le):this.rowsContainer.appendChild(Me.row.domNode)),this.updateItemInDOM(Me,B);var Ue=this.renderers.get(Me.templateId);if(!Ue)throw new Error("No renderer found for template id "+Me.templateId);Ue&&Ue.renderElement(Me.element,B,Me.row.templateData,Me.size);var Pe=this.dnd.getDragURI(Me.element);if(Me.dragStartDisposable.dispose(),Me.row.domNode.draggable=!!Pe,Pe){var ne=Object(z.a)(Me.row.domNode,"dragstart");Me.dragStartDisposable=ne(function(ee){return Ce.onDragStart(Me.element,Pe,ee)})}this.horizontalScrolling&&(this.measureItemWidth(Me),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=I.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)),I.Y(B.row.domNode,"drop-target",B.dropTarget)},W.prototype.removeItemFromDOM=function(B){var le=this.items[B];le.dragStartDisposable.dispose();var Ce=this.renderers.get(le.templateId);Ce&&Ce.disposeElement&&Ce.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 U.b.map(Object(z.a)(this.domNode,"click"),function(Ce){return le.toMouseEvent(Ce)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onMouseDblClick",{get:function(){var le=this;return U.b.map(Object(z.a)(this.domNode,"dblclick"),function(Ce){return le.toMouseEvent(Ce)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onMouseMiddleClick",{get:function(){var le=this;return U.b.filter(U.b.map(Object(z.a)(this.domNode,"auxclick"),function(Ce){return le.toMouseEvent(Ce)}),function(Ce){return Ce.browserEvent.button===1})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onMouseDown",{get:function(){var le=this;return U.b.map(Object(z.a)(this.domNode,"mousedown"),function(Ce){return le.toMouseEvent(Ce)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onContextMenu",{get:function(){var le=this;return U.b.map(Object(z.a)(this.domNode,"contextmenu"),function(Ce){return le.toMouseEvent(Ce)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onTouchStart",{get:function(){var le=this;return U.b.map(Object(z.a)(this.domNode,"touchstart"),function(Ce){return le.toTouchEvent(Ce)})},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"onTap",{get:function(){var le=this;return U.b.map(Object(z.a)(this.rowsContainer,J.a.Tap),function(Ce){return le.toGestureEvent(Ce)})},enumerable:!0,configurable:!0}),W.prototype.toMouseEvent=function(B){var le=this.getItemIndexFromEventTarget(B.target||null),Ce=typeof le=="undefined"?void 0:this.items[le],Me=Ce&&Ce.element;return{browserEvent:B,index:le,element:Me}},W.prototype.toTouchEvent=function(B){var le=this.getItemIndexFromEventTarget(B.target||null),Ce=typeof le=="undefined"?void 0:this.items[le],Me=Ce&&Ce.element;return{browserEvent:B,index:le,element:Me}},W.prototype.toGestureEvent=function(B){var le=this.getItemIndexFromEventTarget(B.initialTarget||null),Ce=typeof le=="undefined"?void 0:this.items[le],Me=Ce&&Ce.element;return{browserEvent:B,index:le,element:Me}},W.prototype.toDragEvent=function(B){var le=this.getItemIndexFromEventTarget(B.target||null),Ce=typeof le=="undefined"?void 0:this.items[le],Me=Ce&&Ce.element;return{browserEvent:B,index:le,element:Me}},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,Ce){if(!Ce.dataTransfer)return;var Me=this.dnd.getDragElements(B);if(Ce.dataTransfer.effectAllowed="copyMove",Ce.dataTransfer.setData(s.a.RESOURCES,JSON.stringify([le])),Ce.dataTransfer.setDragImage){var Te=void 0;this.dnd.getDragLabel&&(Te=this.dnd.getDragLabel(Me,Ce)),typeof Te=="undefined"&&(Te=String(Me.length));var Fe=I.a(".monaco-drag-image");Fe.textContent=Te,document.body.appendChild(Fe),Ce.dataTransfer.setDragImage(Fe,-10,-10),setTimeout(function(){return document.body.removeChild(Fe)},0)}this.currentDragData=new A(Me),s.c.CurrentDragAndDropData=new k(Me),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,Ce)},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 Ce=this.dnd.onDragOver(this.currentDragData,B.element,B.index,B.browserEvent);if(this.canDrop=typeof Ce=="boolean"?Ce:Ce.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;B.browserEvent.dataTransfer.dropEffect=typeof Ce!="boolean"&&Ce.effect===0?"copy":"move";var Me;if(typeof Ce!="boolean"&&Ce.feedback?Me=Ce.feedback:typeof B.index=="undefined"?Me=[-1]:Me=[B.index],Me=Object(c.e)(Me).filter(function(ne){return ne>=-1&&ne<le.length}).sort(function(ne,ee){return ne-ee}),Me=Me[0]===-1?[-1]:Me,$(this.currentDragFeedback,Me))return!0;if(this.currentDragFeedback=Me,this.currentDragFeedbackDisposable.dispose(),Me[0]===-1)I.f(this.domNode,"drop-target"),I.f(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(re.h)(function(){I.P(le.domNode,"drop-target"),I.P(le.rowsContainer,"drop-target")});else{for(var Te=0,Fe=Me;Te<Fe.length;Te++){var Ue=Fe[Te],Pe=this.items[Ue];Pe.dropTarget=!0,Pe.row&&Pe.row.domNode&&I.f(Pe.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(re.h)(function(){for(var ne=0,ee=Me;ne<ee.length;ne++){var ae=ee[ne],q=le.items[ae];q.dropTarget=!1,q.row&&q.row.domNode&&I.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 Ce=I.F(this.domNode).top;this.dragOverAnimationDisposable=I.p(this.animateDragAndDropScrollTop.bind(this,Ce))}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,Ce=this.renderHeight-35;le<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(le-35))):le>Ce&&(this.scrollTop+=Math.min(14,Math.floor(.3*(le-Ce))))},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 Ce=le.getAttribute("data-index");if(Ce){var Me=Number(Ce);if(!isNaN(Me))return Me}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 Ce=this.getRenderRange(B,le),Me,Te;B===this.elementTop(Ce.start)?(Me=Ce.start,Te=0):Ce.end-Ce.start>1&&(Me=Ce.start+1,Te=this.elementTop(Me)-B);for(var Fe=0;;){for(var Ue=this.getRenderRange(B,le),Pe=!1,ne=Ue.start;ne<Ue.end;ne++){var ee=this.probeDynamicHeight(ne);ee!==0&&this.rangeMap.splice(ne,1,[this.items[ne]]),Fe+=ee,Pe=Pe||ee!==0}if(!Pe){Fe!==0&&this.eventuallyUpdateScrollDimensions();for(var ae=H.a.relativeComplement(Ce,Ue),q=0,ue=ae;q<ue.length;q++)for(var X=ue[q],ne=X.start;ne<X.end;ne++)this.items[ne].row&&this.removeItemFromDOM(ne);for(var he=H.a.relativeComplement(Ue,Ce),je=0,Xe=he;je<Xe.length;je++)for(var X=Xe[je],ne=X.start;ne<X.end;ne++){var me=ne+1,ge=me<this.items.length?this.items[me].row:null,we=ge?ge.domNode:null;this.insertItemInDOM(ne,we)}for(var ne=Ue.start;ne<Ue.end;ne++)this.items[ne].row&&this.updateItemInDOM(this.items[ne],ne);typeof Me=="number"&&(this.scrollTop=this.elementTop(Me)-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 Ce=le.size,Me=this.cache.alloc(le.templateId);Me.domNode.style.height="",this.rowsContainer.appendChild(Me.domNode);var Te=this.renderers.get(le.templateId);return Te&&(Te.renderElement(le.element,B,Me.templateData,void 0),Te.disposeElement&&Te.disposeElement(le.element,B,Me.templateData,void 0)),le.size=Me.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(le.element,le.size),le.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(Me.domNode),this.cache.release(Me),le.size-Ce},W.prototype.getNextToLastElement=function(B){var le=B[B.length-1];if(!le)return null;var Ce=this.items[le.end];return Ce&&Ce.row?Ce.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 Ce=le[B];if(Ce.row){var Me=this.renderers.get(Ce.row.templateId);Me&&Me.disposeTemplate(Ce.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(re.f)(this.disposables)},W.InstanceCount=0,m([p.a],W.prototype,"onMouseClick",null),m([p.a],W.prototype,"onMouseDblClick",null),m([p.a],W.prototype,"onMouseMiddleClick",null),m([p.a],W.prototype,"onMouseDown",null),m([p.a],W.prototype,"onContextMenu",null),m([p.a],W.prototype,"onTouchStart",null),m([p.a],W.prototype,"onTap",null),W}()},fjLI:function(Lt,j,e){"use strict";e.d(j,"e",function(){return u}),e.d(j,"a",function(){return y}),e.d(j,"c",function(){return _}),e.d(j,"d",function(){return v}),e.d(j,"b",function(){return w});var T=e("8HAY"),re=e("Cg/j"),J=e("T8No"),I=e("nnTU"),U=e("MI8n"),z=function(){var p=function(s,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var E in m)m.hasOwnProperty(E)&&(d[E]=m[E])},p(s,l)};return function(c,s){p(c,s);function l(){this.constructor=c}c.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),O=function(p,c,s,l){var d=arguments.length,m=d<3?c:l===null?l=Object.getOwnPropertyDescriptor(c,s):l,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(p,c,s,l);else for(var L=p.length-1;L>=0;L--)(E=p[L])&&(m=(d<3?E(m):d>3?E(c,s,m):E(c,s))||m);return d>3&&m&&Object.defineProperty(c,s,m),m},H=function(p,c){return function(s,l){c(s,l,p)}},x=function(){for(var p=0,c=0,s=arguments.length;c<s;c++)p+=arguments[c].length;for(var l=Array(p),d=0,c=0;c<s;c++)for(var m=arguments[c],E=0,L=m.length;E<L;E++,d++)l[d]=m[E];return l};function u(p){return p.command!==void 0}var y=Object(re.c)("menuService"),_=new(function(){function p(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new U.a,this.onDidChangeMenu=this._onDidChangeMenu.event}return p.prototype.addCommand=function(c){var s=this;return this._commands.set(c.id,c),this._onDidChangeMenu.fire(0),{dispose:function(){s._commands.delete(c.id)&&s._onDidChangeMenu.fire(0)}}},p.prototype.getCommand=function(c){return this._commands.get(c)},p.prototype.getCommands=function(){var c=new Map;return this._commands.forEach(function(s,l){return c.set(l,s)}),c},p.prototype.appendMenuItem=function(c,s){var l=this,d=this._menuItems.get(c);return d?d.push(s):(d=[s],this._menuItems.set(c,d)),this._onDidChangeMenu.fire(c),{dispose:function(){var E=d.indexOf(s);E>=0&&(d.splice(E,1),l._onDidChangeMenu.fire(c))}}},p.prototype.getMenuItems=function(c){var s=(this._menuItems.get(c)||[]).slice(0);return c===0&&this._appendImplicitItems(s),s},p.prototype._appendImplicitItems=function(c){for(var s=new Set,l=c.filter(function(k){return u(k)}),d=0,m=l;d<m.length;d++){var E=m[d],L=E.command,A=E.alt;s.add(L.id),A&&s.add(A.id)}this._commands.forEach(function(k,R){s.has(R)||c.push({command:k})})},p}()),f=function(p){z(c,p);function c(s,l,d){var m=p.call(this,s,l)||this;return m._commandService=d,m}return c.prototype.run=function(){for(var s,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return(s=this._commandService).executeCommand.apply(s,x([this.id],l))},c=O([H(2,I.b)],c),c}(T.a),v=function(p){z(c,p);function c(s){var l=this;return typeof s.title=="string"?l=p.call(this,"",s.title,"submenu")||this:l=p.call(this,"",s.title.value,"submenu")||this,l.item=s,l}return c}(T.a),w=function(p){z(c,p);function c(s,l,d,m,E){var L=this;return typeof s.title=="string"?L=p.call(this,s.id,s.title,E)||this:L=p.call(this,s.id,s.title.value,E)||this,L._cssClass=void 0,L._enabled=!s.precondition||m.contextMatchesRules(s.precondition),L._checked=Boolean(s.toggled&&m.contextMatchesRules(s.toggled)),L._options=d||{},L.item=s,L.alt=l?new c(l,void 0,L._options,m,E):void 0,L}return c.prototype.dispose=function(){this.alt&&this.alt.dispose(),p.prototype.dispose.call(this)},c.prototype.run=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var d=[];return this._options.arg&&(d=x(d,[this._options.arg])),this._options.shouldForwardArgs&&(d=x(d,s)),p.prototype.run.apply(this,d)},c=O([H(3,J.c),H(4,I.b)],c),c}(f)},fpMC:function(Lt,j,e){"use strict";e.d(j,"g",function(){return I}),e.d(j,"f",function(){return R}),e.d(j,"b",function(){return $}),e.d(j,"c",function(){return ie}),e.d(j,"a",function(){return q}),e.d(j,"d",function(){return ue}),e.d(j,"e",function(){return Re});var T=e("QDVR"),re=e("N0LK");function J(){for(var Q=[],C=0;C<arguments.length;C++)Q[C]=arguments[C];return function(F,se){for(var oe=0,be=Q.length;oe<be;oe++){var De=Q[oe](F,se);if(De)return De}return null}}var I=U.bind(void 0,!0);function U(Q,C,F){if(!F||F.length<C.length)return null;var se;return Q?se=re.O(F,C):se=F.indexOf(C)===0,se?C.length>0?[{start:0,end:C.length}]:[]:null}function z(Q,C){var F=C.toLowerCase().indexOf(Q.toLowerCase());return F===-1?null:[{start:F,end:F+Q.length}]}function O(Q,C){return H(Q.toLowerCase(),C.toLowerCase(),0,0)}function H(Q,C,F,se){if(F===Q.length)return[];if(se===C.length)return null;if(Q[F]===C[se]){var oe=null;return(oe=H(Q,C,F+1,se+1))?w({start:se,end:se+1},oe):null}return H(Q,C,F,se+1)}function x(Q){return 97<=Q&&Q<=122}function u(Q){return 65<=Q&&Q<=90}function y(Q){return 48<=Q&&Q<=57}function _(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 x(Q)||u(Q)||y(Q)}function w(Q,C){return C.length===0?C=[Q]:Q.end===C[0].start?C[0].start=Q.start:C.unshift(Q),C}function p(Q,C){for(var F=C;F<Q.length;F++){var se=Q.charCodeAt(F);if(u(se)||y(se)||F>0&&!v(Q.charCodeAt(F-1)))return F}return Q.length}function c(Q,C,F,se){if(F===Q.length)return[];if(se===C.length)return null;if(Q[F]!==C[se].toLowerCase())return null;var oe=null,be=se+1;for(oe=c(Q,C,F+1,se+1);!oe&&(be=p(C,be))<C.length;)oe=c(Q,C,F+1,be),be++;return oe===null?null:w({start:se,end:se+1},oe)}function s(Q){for(var C=0,F=0,se=0,oe=0,be=0,De=0;De<Q.length;De++)be=Q.charCodeAt(De),u(be)&&C++,x(be)&&F++,v(be)&&se++,y(be)&&oe++;var Se=C/Q.length,Ve=F/Q.length,Qe=se/Q.length,it=oe/Q.length;return{upperPercent:Se,lowerPercent:Ve,alphaPercent:Qe,numericPercent:it}}function l(Q){var C=Q.upperPercent,F=Q.lowerPercent;return F===0&&C>.6}function d(Q){var C=Q.upperPercent,F=Q.lowerPercent,se=Q.alphaPercent,oe=Q.numericPercent;return F>.2&&C<.8&&se>.6&&oe<.2}function m(Q){for(var C=0,F=0,se=0,oe=0,be=0;be<Q.length;be++)se=Q.charCodeAt(be),u(se)&&C++,x(se)&&F++,_(se)&&oe++;return(C===0||F===0)&&oe===0?Q.length<=30:C<=5}function E(Q,C){if(!C)return null;if(C=C.trim(),C.length===0)return null;if(!m(Q))return null;if(C.length>60)return null;var F=s(C);if(!d(F)){if(!l(F))return null;C=C.toLowerCase()}var se=null,oe=0;for(Q=Q.toLowerCase();oe<C.length&&(se=c(Q,C,0,oe))===null;)oe=p(C,oe+1);return se}var L=J(I,E,z),A=J(I,E,O),k=new T.a(1e4);function R(Q,C,F){if(F===void 0&&(F=!1),typeof Q!="string"||typeof C!="string")return null;var se=k.get(Q);se||(se=new RegExp(re.k(Q),"i"),k.set(Q,se));var oe=se.exec(C);return oe?[{start:oe.index,end:oe.index+oe[0].length}]:F?A(Q,C):L(Q,C)}function $(Q,C,F,se,oe,be){var De=ue(Q,C,0,se,oe,0,!0);if(De)return De;for(var Se=0,Ve=0,Qe=be,it=0;it<C.length&&it<W;++it){var pt=oe.indexOf(C.charAt(it),Qe);if(pt>=0)Ve+=1,Se+=Math.pow(2,pt),Qe=pt+1;else if(Se!==0)break}return[Ve,Se,be]}function ie(Q){if(typeof Q=="undefined")return[];for(var C=Q[1].toString(2),F=Q[2],se=[],oe=F;oe<W;oe++)if(C[C.length-(oe+1)]==="1"){var be=se[se.length-1];be&&be.end===oe?be.end=oe+1:se.push({start:oe,end:oe+1})}return se}var W=128;function B(){for(var Q=[],C=[0],F=1;F<=W;F++)C.push(-F);for(var F=0;F<=W;F++){var se=C.slice(0);se[0]=-F,Q.push(se)}return Q}var le=B(),Ce=B(),Me=B(),Te=!1;function Fe(Q,C,F,se,oe){function be(Ve,Qe,it){for(it===void 0&&(it=" ");Ve.length<Qe;)Ve=it+Ve;return Ve}for(var De=" | |"+se.split("").map(function(Ve){return be(Ve,3)}).join("|")+`
`,Se=0;Se<=F;Se++)Se===0?De+=" |":De+=C[Se-1]+"|",De+=Q[Se].slice(0,oe+1).map(function(Ve){return be(Ve.toString(),3)}).join("|")+`
`;return De}function Ue(Q,C,F,se){Q=Q.substr(C),F=F.substr(se),console.log(Fe(le,Q,Q.length,F,F.length)),console.log(Fe(Me,Q,Q.length,F,F.length)),console.log(Fe(Ce,Q,Q.length,F,F.length))}function Pe(Q,C){if(C<0||C>=Q.length)return!1;var F=Q.charCodeAt(C);switch(F){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 ne(Q,C){if(C<0||C>=Q.length)return!1;var F=Q.charCodeAt(C);switch(F){case 32:case 9:return!0;default:return!1}}function ee(Q,C,F){return C[Q]!==F[Q]}function ae(Q,C,F,se,oe,be){for(;C<F&&oe<be;)Q[C]===se[oe]&&(C+=1),oe+=1;return C===F}var q;(function(Q){Q.Default=Object.freeze([-100,0,0]);function C(F){return!F||F[0]===-100&&F[1]===0&&F[2]===0}Q.isDefault=C})(q||(q={}));function ue(Q,C,F,se,oe,be,De){var Se=Q.length>W?W:Q.length,Ve=se.length>W?W:se.length;if(F>=Se||be>=Ve||Se-F>Ve-be)return;if(!ae(C,F,Se,oe,be,Ve))return;var Qe=1,it=1,pt=F,Rt=be;for(Qe=1,pt=F;pt<Se;Qe++,pt++)for(it=1,Rt=be;Rt<Ve;it++,Rt++){var Mt=X(Q,C,pt,F,se,oe,Rt);Ce[Qe][it]=Mt;var zt=le[Qe-1][it-1]+(Mt>1?1:Mt),uo=le[Qe-1][it]+-1,ao=le[Qe][it-1]+-1;ao>=uo?ao>zt?(le[Qe][it]=ao,Me[Qe][it]=4):ao===zt?(le[Qe][it]=ao,Me[Qe][it]=4|2):(le[Qe][it]=zt,Me[Qe][it]=2):uo>zt?(le[Qe][it]=uo,Me[Qe][it]=1):uo===zt?(le[Qe][it]=uo,Me[Qe][it]=1|2):(le[Qe][it]=zt,Me[Qe][it]=2)}return Te&&Ue(Q,F,se,be),he=0,Xe=-100,me=be,ge=De,we(Qe-1,it-1,Se===Ve?1:0,0,!1),he===0?void 0:[Xe,je,be]}function X(Q,C,F,se,oe,be,De){return C[F]!==be[De]?-1:De===F-se||ee(De,oe,be)&&(De===0||!ee(De-1,oe,be))?Q[F]===oe[De]?7:5:Pe(be,De)&&(De===0||!Pe(be,De-1))||(Pe(be,De-1)||ne(be,De-1))?5:1}var he=0,je=0,Xe=0,me=0,ge=!1;function we(Q,C,F,se,oe){if(he>=10||F<-25)return;for(var be=0;Q>0&&C>0;){var De=Ce[Q][C],Se=Me[Q][C];if(Se===4)C-=1,oe?F-=5:se!==0&&(F-=1),oe=!1,be=0;else if(Se&2)if(Se&4&&we(Q,C-1,se!==0?F-1:F,se,oe),F+=De,Q-=1,C-=1,oe=!0,se+=Math.pow(2,C+me),De===1){if(be+=1,Q===0&&!ge)return}else F+=1+be*(De-1),be=0;else return}F-=C>=3?9:C*3,he+=1,F>Xe&&(Xe=F,je=se)}function Re(Q,C,F,se,oe,be,De){return Ee(Q,C,F,se,oe,be,!0,De)}function Ee(Q,C,F,se,oe,be,De,Se){var Ve=ue(Q,C,F,se,oe,be,Se);if(Ve&&!De)return Ve;if(Q.length>=3)for(var Qe=Math.min(7,Q.length-1),it=F+1;it<Qe;it++){var pt=ve(Q,it);if(pt){var Rt=ue(pt,pt.toLowerCase(),F,se,oe,be,Se);Rt&&(Rt[0]-=3,(!Ve||Rt[0]>Ve[0])&&(Ve=Rt))}}return Ve}function ve(Q,C){if(C+1>=Q.length)return;var F=Q[C],se=Q[C+1];return F===se?void 0:Q.slice(0,C)+se+F+Q.slice(C+2)}},gCVg:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I});var T=e("cGHE"),re=e("aokT"),J=function(){var U=function(O,H){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,u){x.__proto__=u}||function(x,u){for(var y in u)u.hasOwnProperty(y)&&(x[y]=u[y])},U(O,H)};return function(z,O){U(z,O);function H(){this.constructor=z}z.prototype=O===null?Object.create(O):(H.prototype=O.prototype,new H)}}(),I=function(U){J(z,U);function z(O,H,x,u){var y=U.call(this,O,H,x,u)||this;return y.selectionStartLineNumber=O,y.selectionStartColumn=H,y.positionLineNumber=x,y.positionColumn=u,y}return z.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},z.prototype.equalsSelection=function(O){return z.selectionsEqual(this,O)},z.selectionsEqual=function(O,H){return O.selectionStartLineNumber===H.selectionStartLineNumber&&O.selectionStartColumn===H.selectionStartColumn&&O.positionLineNumber===H.positionLineNumber&&O.positionColumn===H.positionColumn},z.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},z.prototype.setEndPosition=function(O,H){return this.getDirection()===0?new z(this.startLineNumber,this.startColumn,O,H):new z(O,H,this.startLineNumber,this.startColumn)},z.prototype.getPosition=function(){return new T.a(this.positionLineNumber,this.positionColumn)},z.prototype.setStartPosition=function(O,H){return this.getDirection()===0?new z(O,H,this.endLineNumber,this.endColumn):new z(this.endLineNumber,this.endColumn,O,H)},z.fromPositions=function(O,H){return H===void 0&&(H=O),new z(O.lineNumber,O.column,H.lineNumber,H.column)},z.liftSelection=function(O){return new z(O.selectionStartLineNumber,O.selectionStartColumn,O.positionLineNumber,O.positionColumn)},z.selectionsArrEqual=function(O,H){if(O&&!H||!O&&H)return!1;if(!O&&!H)return!0;if(O.length!==H.length)return!1;for(var x=0,u=O.length;x<u;x++)if(!this.selectionsEqual(O[x],H[x]))return!1;return!0},z.isISelection=function(O){return O&&typeof O.selectionStartLineNumber=="number"&&typeof O.selectionStartColumn=="number"&&typeof O.positionLineNumber=="number"&&typeof O.positionColumn=="number"},z.createWithDirection=function(O,H,x,u,y){return y===0?new z(O,H,x,u):new z(x,u,O,H)},z}(re.a)},gJAb:function(Lt,j,e){"use strict";e.r(j);var T=e("EzsQ"),re=e.n(T),J=e("zrhQ"),I=e("pmY6"),U=e("N0LK"),z=e("sswD"),O=e("twdY"),H=e("i/Ef"),x=e("WBhO"),u=e("scqD"),y=e("MD5Z"),_=e("t9D7"),f=e("A9l+"),v=function(){var E=function(A,k){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,$){R.__proto__=$}||function(R,$){for(var ie in $)$.hasOwnProperty(ie)&&(R[ie]=$[ie])},E(A,k)};return function(L,A){E(L,A);function k(){this.constructor=L}L.prototype=A===null?Object.create(A):(k.prototype=A.prototype,new k)}}(),w=function(E,L,A,k){var R=arguments.length,$=R<3?L:k===null?k=Object.getOwnPropertyDescriptor(L,A):k,ie;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$=Reflect.decorate(E,L,A,k);else for(var W=E.length-1;W>=0;W--)(ie=E[W])&&($=(R<3?ie($):R>3?ie(L,A,$):ie(L,A))||$);return R>3&&$&&Object.defineProperty(L,A,$),$},p=function(E,L){return function(A,k){L(A,k,E)}},c=function(E){v(L,E);function L(A,k,R){var $=E.call(this)||this;return $._editor=A,$._modeService=R,$._widget=null,$._register($._editor.onDidChangeModel(function(ie){return $.stop()})),$._register($._editor.onDidChangeModelLanguage(function(ie){return $.stop()})),$._register(O.B.onDidChange(function(ie){return $.stop()})),$}return L.get=function(A){return A.getContribution(L.ID)},L.prototype.dispose=function(){this.stop(),E.prototype.dispose.call(this)},L.prototype.launch=function(){if(this._widget)return;if(!this._editor.hasModel())return;this._widget=new m(this._editor,this._modeService)},L.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},L.ID="editor.contrib.inspectTokens",L=w([p(1,u.a),p(2,x.a)],L),L}(I.a),s=function(E){v(L,E);function L(){return E.call(this,{id:"editor.action.inspectTokens",label:f.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})||this}return L.prototype.run=function(A,k){var R=c.get(k);R&&R.launch()},L}(z.b);function l(E){for(var L="",A=0,k=E.length;A<k;A++){var R=E.charCodeAt(A);switch(R){case 9:L+="&rarr;";break;case 32:L+="&middot;";break;case 60:L+="&lt;";break;case 62:L+="&gt;";break;case 38:L+="&amp;";break;default:L+=String.fromCharCode(R)}}return L}function d(E){var L=O.B.get(E.language);return L||{getInitialState:function(){return H.c},tokenize:function(k,R,$){return Object(H.d)(E.language,k,R,$)},tokenize2:function(k,R,$){return Object(H.e)(E.id,k,R,$)}}}var m=function(E){v(L,E);function L(A,k){var R=E.call(this)||this;return R.allowEditorOverflow=!0,R._editor=A,R._modeService=k,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 L.prototype.dispose=function(){this._editor.removeContentWidget(this),E.prototype.dispose.call(this)},L.prototype.getId=function(){return L._ID},L.prototype._compute=function(A){for(var k=this._getTokensAtLine(A.lineNumber),R=0,$=k.tokens1.length-1;$>=0;$--){var ie=k.tokens1[$];if(A.column-1>=ie.offset){R=$;break}}for(var W=0,$=k.tokens2.length>>>1;$>=0;$--)if(A.column-1>=k.tokens2[$<<1]){W=$;break}var B="",le=this._model.getLineContent(A.lineNumber),Ce="";if(R<k.tokens1.length){var Me=k.tokens1[R].offset,Te=R+1<k.tokens1.length?k.tokens1[R+1].offset:le.length;Ce=le.substring(Me,Te)}B+='<h2 class="tm-token">'+l(Ce)+'<span class="tm-token-length">('+Ce.length+" "+(Ce.length===1?"char":"chars")+")</span></h2>",B+='<hr class="tokens-inspect-separator" style="clear:both"/>';var Fe=this._decodeMetadata(k.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(U.o)(Fe.languageIdentifier.language)+"</td>",B+='<tr><td class="tm-metadata-key">token type</td><td class="tm-metadata-value">'+this._tokenTypeToString(Fe.tokenType)+"</td>",B+='<tr><td class="tm-metadata-key">font style</td><td class="tm-metadata-value">'+this._fontStyleToString(Fe.fontStyle)+"</td>",B+='<tr><td class="tm-metadata-key">foreground</td><td class="tm-metadata-value">'+J.a.Format.CSS.formatHex(Fe.foreground)+"</td>",B+='<tr><td class="tm-metadata-key">background</td><td class="tm-metadata-value">'+J.a.Format.CSS.formatHex(Fe.background)+"</td>",B+="</tbody></table>",B+='<hr class="tokens-inspect-separator"/>',R<k.tokens1.length&&(B+='<span class="tm-token-type">'+Object(U.o)(k.tokens1[R].type)+"</span>"),this._domNode.innerHTML=B,this._editor.layoutContentWidget(this)},L.prototype._decodeMetadata=function(A){var k=O.B.getColorMap(),R=O.A.getLanguageId(A),$=O.A.getTokenType(A),ie=O.A.getFontStyle(A),W=O.A.getForeground(A),B=O.A.getBackground(A);return{languageIdentifier:this._modeService.getLanguageIdentifier(R),tokenType:$,fontStyle:ie,foreground:k[W],background:k[B]}},L.prototype._tokenTypeToString=function(A){switch(A){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},L.prototype._fontStyleToString=function(A){var k="";return A&1&&(k+="italic "),A&2&&(k+="bold "),A&4&&(k+="underline "),k.length===0&&(k="---"),k},L.prototype._getTokensAtLine=function(A){var k=this._getStateBeforeLine(A),R=this._tokenizationSupport.tokenize(this._model.getLineContent(A),k,0),$=this._tokenizationSupport.tokenize2(this._model.getLineContent(A),k,0);return{startState:k,tokens1:R.tokens,tokens2:$.tokens,endState:R.endState}},L.prototype._getStateBeforeLine=function(A){for(var k=this._tokenizationSupport.getInitialState(),R=1;R<A;R++){var $=this._tokenizationSupport.tokenize(this._model.getLineContent(R),k,0);k=$.endState}return k},L.prototype.getDomNode=function(){return this._domNode},L.prototype.getPosition=function(){return{position:this._editor.getPosition(),preference:[2,1]}},L._ID="editor.contrib.inspectTokensWidget",L}(I.a);Object(z.h)(c.ID,c),Object(z.f)(s),Object(_.e)(function(E,L){var A=E.getColor(y.B);if(A){var k=E.type===_.b?2:1;L.addRule(".monaco-editor .tokens-inspect-widget { border: "+k+"px solid "+A+"; }"),L.addRule(".monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: "+A+"; }")}var R=E.getColor(y.A);R&&L.addRule(".monaco-editor .tokens-inspect-widget { background-color: "+R+"; }");var $=E.getColor(y.C);$&&L.addRule(".monaco-editor .tokens-inspect-widget { color: "+$+"; }")})},gqHg:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return e.e(23).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(23).then(e.bind(null,"fhwZ"))}})},gslv:function(Lt,j,e){"use strict";e.d(j,"c",function(){return x}),e.d(j,"e",function(){return y}),e.d(j,"b",function(){return _}),e.d(j,"d",function(){return f}),e.d(j,"f",function(){return v}),e.d(j,"g",function(){return w}),e.d(j,"h",function(){return c}),e.d(j,"a",function(){return s});var T=e("PTeM"),re=e("MrjW"),J=e("bY76"),I=e("N0LK"),U=e("tYmi"),z=e("MNsG"),O=function(){for(var l=0,d=0,m=arguments.length;d<m;d++)l+=arguments[d].length;for(var E=Array(l),L=0,d=0;d<m;d++)for(var A=arguments[d],k=0,R=A.length;k<R;k++,L++)E[L]=A[k];return E};function H(l){return l&&l.scheme===U.b.file?!z.d:!0}function x(l){return _(l)||l.authority}function u(l,d){return l===d||Object(I.n)(l,d)}function y(l,d,m){if(m===void 0&&(m=H(l)),l===d)return!0;if(!l||!d)return!1;if(l.scheme!==d.scheme||!u(l.authority,d.authority))return!1;var E=l.path||"/",L=d.path||"/";return E===L||m&&Object(I.n)(E||"/",L||"/")}function _(l){return re.posix.basename(l.path)}function f(l){if(l.path.length===0)return l;if(l.scheme===U.b.file)return J.a.file(re.dirname(p(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,m=[],E=1;E<arguments.length;E++)m[E-1]=arguments[E];var L;return l.scheme===U.b.file?L=J.a.file(re.join.apply(re,O([p(l)],m))).path:L=(d=re.posix).join.apply(d,O([l.path||"/"],m)),l.with({path:L})}function w(l){if(!l.path.length)return l;var d;return l.scheme===U.b.file?d=J.a.file(re.normalize(p(l))).path:d=re.posix.normalize(l.path),l.with({path:d})}function p(l){var d,m=l.path;return l.authority&&m.length>1&&l.scheme===U.b.file?d="//"+l.authority+m:z.h&&m.charCodeAt(0)===47&&T.b(m.charCodeAt(1))&&m.charCodeAt(2)===58?d=m.substr(1):d=m,z.h&&(d=d.replace(/\//g,"\\")),d}function c(l,d,m){if(m===void 0&&(m=H(l)),l.scheme!==d.scheme||!u(l.authority,d.authority))return;if(l.scheme===U.b.file){var E=re.relative(l.path,d.path);return z.h?T.c(E):E}var L=l.path||"/",A=d.path||"/";if(m){for(var k=0,R=Math.min(L.length,A.length);k<R&&!(L.charCodeAt(k)!==A.charCodeAt(k)&&L.charAt(k).toLowerCase()!==A.charAt(k).toLowerCase());k++);L=A.substr(0,k)+L.substr(k)}return re.posix.relative(L,A)}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(m){var E=new Map,L=m.path.substring(m.path.indexOf(";")+1,m.path.lastIndexOf(";"));L.split(";").forEach(function(k){var R=k.split(":"),$=R[0],ie=R[1];$&&ie&&E.set($,ie)});var A=m.path.substring(0,m.path.indexOf(";"));return A&&E.set(l.META_DATA_MIME,A),E}l.parseMetaData=d})(s||(s={}))},hFdI:function(Lt,j,e){"use strict";e.r(j);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(159).then(e.bind(null,"tpLM"))}})},hHjc:function(Lt,j,e){},hJVp:function(Lt,j,e){"use strict";e.d(j,"a",function(){return c}),e.d(j,"e",function(){return s}),e.d(j,"f",function(){return l}),e.d(j,"d",function(){return d}),e.d(j,"b",function(){return m}),e.d(j,"c",function(){return L});var T=e("6OMU"),re=e("JQT/"),J=e("/cxE"),I=e("pmY6"),U=e("bY76"),z=e("vATl"),O=e("sswD"),H=e("aokT"),x=e("gCVg"),u=e("twdY"),y=e("G2kB"),_=e("nlbu"),f=function(){var k=function($,ie){return k=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])},k($,ie)};return function(R,$){k(R,$);function ie(){this.constructor=R}R.prototype=$===null?Object.create($):(ie.prototype=$.prototype,new ie)}}(),v=function(k,R,$,ie){function W(B){return B instanceof $?B:new $(function(le){le(B)})}return new($||($=Promise))(function(B,le){function Ce(Fe){try{Te(ie.next(Fe))}catch(Ue){le(Ue)}}function Me(Fe){try{Te(ie.throw(Fe))}catch(Ue){le(Ue)}}function Te(Fe){Fe.done?B(Fe.value):W(Fe.value).then(Ce,Me)}Te((ie=ie.apply(k,R||[])).next())})},w=function(k,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:Ce(0),throw:Ce(1),return:Ce(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Ce(Te){return function(Fe){return Me([Te,Fe])}}function Me(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(k,$)}catch(Fe){Te=[6,Fe],W=0}finally{ie=B=0}if(Te[0]&5)throw Te[1];return{value:Te[0]?Te[1]:void 0,done:!0}}},p=function(){for(var k=0,R=0,$=arguments.length;R<$;R++)k+=arguments[R].length;for(var ie=Array(k),W=0,R=0;R<$;R++)for(var B=arguments[R],le=0,Ce=B.length;le<Ce;le++,W++)ie[W]=B[le];return ie},c="editor.action.codeAction",s="editor.action.refactor",l="editor.action.sourceAction",d="editor.action.organizeImports",m="editor.action.fixAll",E=function(k){f(R,k);function R($,ie){var W=k.call(this)||this;return W._register(ie),W.allActions=Object(T.r)(p($),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&&_.b.QuickFix.contains(new _.b(ie.kind))&&!!ie.isPreferred})},enumerable:!0,configurable:!0}),R}(I.a);function L(k,R,$,ie){var W=this,B,le=$.filter||{},Ce={only:(B=le.include)===null||B===void 0?void 0:B.value,trigger:$.type},Me=new z.d(k,ie),Te=A(k,le),Fe=new I.b,Ue=Te.map(function(ne){return v(W,void 0,void 0,function(){var ee,ae;return w(this,function(q){switch(q.label){case 0:return q.trys.push([0,2,,3]),[4,ne.provideCodeActions(k,R,Ce,Me.token)];case 1:return ee=q.sent(),Me.token.isCancellationRequested||!ee?[2,[]]:(Fe.add(ee),[2,ee.actions.filter(function(ue){return ue&&Object(_.c)(le,ue)})]);case 2:if(ae=q.sent(),Object(J.d)(ae))throw ae;return Object(J.f)(ae),[2,[]];case 3:return[2]}})})}),Pe=u.a.onDidChange(function(){var ne=u.a.all(k);Object(T.g)(ne,Te)||Me.cancel()});return Promise.all(Ue).then(T.m).then(function(ne){return new E(ne,Fe)}).finally(function(){Pe.dispose(),Me.dispose()})}function A(k,R){return u.a.all(k).filter(function($){return $.providedCodeActionKinds?$.providedCodeActionKinds.some(function(ie){return Object(_.d)(R,new _.b(ie))}):!0})}Object(O.j)("_executeCodeActionProvider",function(k,R){return v(this,void 0,void 0,function(){var $,ie,W,B,le,Ce;return w(this,function(Me){switch(Me.label){case 0:if($=R.resource,ie=R.rangeOrSelection,W=R.kind,!($ instanceof U.a))throw Object(J.b)();if(B=k.get(y.a).getModel($),!B)throw Object(J.b)();if(le=x.a.isISelection(ie)?x.a.liftSelection(ie):H.a.isIRange(ie)?B.validateRange(ie):void 0,!le)throw Object(J.b)();return[4,L(B,le,{type:2,filter:{includeSourceActions:!0,include:W&&W.value?new _.b(W.value):void 0}},re.a.None)];case 1:return Ce=Me.sent(),setTimeout(function(){return Ce.dispose()},100),[2,Ce.validActions]}})})})},"i/Ef":function(Lt,j,e){"use strict";e.d(j,"c",function(){return I}),e.d(j,"b",function(){return U}),e.d(j,"a",function(){return z}),e.d(j,"d",function(){return O}),e.d(j,"e",function(){return H});var T=e("Tcc1"),re=e("twdY"),J=function(){function x(){}return x.prototype.clone=function(){return this},x.prototype.equals=function(u){return this===u},x}(),I=new J,U="vs.editor.nullMode",z=new re.r(U,0);function O(x,u,y,_){return new T.b([new T.a(_,"",x)],y)}function H(x,u,y,_){var f=new Uint32Array(2);return f[0]=_,f[1]=(x<<0|0<<8|0<<11|1<<14|2<<23)>>>0,new T.c(f,y===null?I:y)}},"i/Rh":function(Lt,j,e){},i04g:function(Lt,j,e){"use strict";e.d(j,"b",function(){return J}),e.d(j,"a",function(){return I});var T=e("3/fG"),re=function(){function z(O,H,x){x===void 0&&(x=H),this.modifierLabels=[null],this.modifierLabels[2]=O,this.modifierLabels[1]=H,this.modifierLabels[3]=x}return z.prototype.toLabel=function(O,H,x){if(H.length===0)return null;for(var u=[],y=0,_=H.length;y<_;y++){var f=H[y],v=x(f);if(v===null)return null;u[y]=U(f,v,this.modifierLabels[O])}return u.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:"+"}),I=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 U(z,O,H){if(O===null)return"";var x=[];return z.ctrlKey&&x.push(H.ctrlKey),z.shiftKey&&x.push(H.shiftKey),z.altKey&&x.push(H.altKey),z.metaKey&&x.push(H.metaKey),x.push(O),x.join(H.separator)}},iDAx:function(Lt,j,e){"use strict";e.d(j,"b",function(){return v}),e.d(j,"a",function(){return m}),e.d(j,"d",function(){return Me}),e.d(j,"c",function(){return Te});var T=e("3/fG"),re=e("MI8n"),J=e("pmY6"),I=e("qj0h"),U=e("6OMU"),z=e("/UlZ"),O=e("Yr1X"),H=e("+3Gp"),x=e("CRAX"),u=e("ic2d"),y=e("vl9R"),_=function(){var Fe=function(Pe,ne){return Fe=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])},Fe(Pe,ne)};return function(Ue,Pe){Fe(Ue,Pe);function ne(){this.constructor=Ue}Ue.prototype=Pe===null?Object.create(Pe):(ne.prototype=Pe.prototype,new ne)}}(),f=function(){return f=Object.assign||function(Fe){for(var Ue,Pe=1,ne=arguments.length;Pe<ne;Pe++){Ue=arguments[Pe];for(var ee in Ue)Object.prototype.hasOwnProperty.call(Ue,ee)&&(Fe[ee]=Ue[ee])}return Fe},f.apply(this,arguments)},v=new(function(){function Fe(){this._tabFocus=!1,this._onDidChangeTabFocus=new re.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return Fe.prototype.getTabFocusMode=function(){return this._tabFocus},Fe.prototype.setTabFocusMode=function(Ue){if(this._tabFocus===Ue)return;this._tabFocus=Ue,this._onDidChangeTabFocus.fire(this._tabFocus)},Fe}()),w=Object.hasOwnProperty,p=function(){function Fe(){this._values=[]}return Fe.prototype._read=function(Ue){return this._values[Ue]},Fe.prototype.get=function(Ue){return this._values[Ue]},Fe.prototype._write=function(Ue,Pe){this._values[Ue]=Pe},Fe}(),c=function(){function Fe(){this._values=[]}return Fe.prototype._read=function(Ue){return this._values[Ue]},Fe.prototype._write=function(Ue,Pe){this._values[Ue]=Pe},Fe}(),s=function(){function Fe(){}return Fe.readOptions=function(Ue){for(var Pe=Ue,ne=new c,ee=0,ae=z.i;ee<ae.length;ee++){var q=ae[ee],ue=q.name==="_never_"?void 0:Pe[q.name];ne._write(q.id,ue)}return ne},Fe.validateOptions=function(Ue){for(var Pe=new z.h,ne=0,ee=z.i;ne<ee.length;ne++){var ae=ee[ne];Pe._write(ae.id,ae.validate(Ue._read(ae.id)))}return Pe},Fe.computeOptions=function(Ue,Pe){for(var ne=new p,ee=0,ae=z.i;ee<ae.length;ee++){var q=ae[ee];ne._write(q.id,q.compute(Pe,ne,Ue._read(q.id)))}return ne},Fe._deepEquals=function(Ue,Pe){if(typeof Ue!="object"||typeof Pe!="object")return Ue===Pe;if(Array.isArray(Ue)||Array.isArray(Pe))return Array.isArray(Ue)&&Array.isArray(Pe)?U.g(Ue,Pe):!1;for(var ne in Ue)if(!Fe._deepEquals(Ue[ne],Pe[ne]))return!1;return!0},Fe.checkEquals=function(Ue,Pe){for(var ne=[],ee=!1,ae=0,q=z.i;ae<q.length;ae++){var ue=q[ae],X=!Fe._deepEquals(Ue._read(ue.id),Pe._read(ue.id));ne[ue.id]=X,X&&(ee=!0)}return ee?new z.a(ne):null},Fe}();function l(Fe){var Ue=Fe.wordWrap;Ue===!0?Fe.wordWrap="on":Ue===!1&&(Fe.wordWrap="off");var Pe=Fe.lineNumbers;Pe===!0?Fe.lineNumbers="on":Pe===!1&&(Fe.lineNumbers="off");var ne=Fe.autoClosingBrackets;ne===!1&&(Fe.autoClosingBrackets="never",Fe.autoClosingQuotes="never",Fe.autoSurround="never");var ee=Fe.cursorBlinking;ee==="visible"&&(Fe.cursorBlinking="solid");var ae=Fe.renderWhitespace;ae===!0?Fe.renderWhitespace="boundary":ae===!1&&(Fe.renderWhitespace="none");var q=Fe.renderLineHighlight;q===!0?Fe.renderLineHighlight="line":q===!1&&(Fe.renderLineHighlight="none");var ue=Fe.acceptSuggestionOnEnter;ue===!0?Fe.acceptSuggestionOnEnter="on":ue===!1&&(Fe.acceptSuggestionOnEnter="off");var X=Fe.tabCompletion;X===!1?Fe.tabCompletion="off":X===!0&&(Fe.tabCompletion="onlySnippets");var he=Fe.suggest;if(he&&typeof he.filteredTypes=="object"&&he.filteredTypes){var je={};je.method="showMethods",je.function="showFunctions",je.constructor="showConstructors",je.field="showFields",je.variable="showVariables",je.class="showClasses",je.struct="showStructs",je.interface="showInterfaces",je.module="showModules",je.property="showProperties",je.event="showEvents",je.operator="showOperators",je.unit="showUnits",je.value="showValues",je.constant="showConstants",je.enum="showEnums",je.enumMember="showEnumMembers",je.keyword="showKeywords",je.text="showWords",je.color="showColors",je.file="showFiles",je.reference="showReferences",je.folder="showFolders",je.typeParameter="showTypeParameters",je.snippet="showSnippets",Object(y.c)(je,function(Re){var Ee=he.filteredTypes[Re.key];Ee===!1&&(he[Re.value]=Ee)})}var Xe=Fe.hover;Xe===!0?Fe.hover={enabled:!0}:Xe===!1&&(Fe.hover={enabled:!1});var me=Fe.parameterHints;me===!0?Fe.parameterHints={enabled:!0}:me===!1&&(Fe.parameterHints={enabled:!1});var ge=Fe.autoIndent;ge===!0?Fe.autoIndent="full":ge===!1&&(Fe.autoIndent="advanced");var we=Fe.matchBrackets;we===!0?Fe.matchBrackets="always":we===!1&&(Fe.matchBrackets="never")}function d(Fe){var Ue=I.c(Fe);return l(Ue),Ue}var m=function(Fe){_(Ue,Fe);function Ue(Pe,ne){var ee=Fe.call(this)||this;return ee._onDidChange=ee._register(new re.a),ee.onDidChange=ee._onDidChange.event,ee.isSimpleWidget=Pe,ee._isDominatedByLongLines=!1,ee._lineNumbersDigitCount=1,ee._rawOptions=d(ne),ee._readOptions=s.readOptions(ee._rawOptions),ee._validatedOptions=s.validateOptions(ee._readOptions),ee._register(O.a.onDidChangeZoomLevel(function(ae){return ee._recomputeOptions()})),ee._register(v.onDidChangeTabFocus(function(ae){return ee._recomputeOptions()})),ee}return Ue.prototype.observeReferenceElement=function(Pe){},Ue.prototype.dispose=function(){Fe.prototype.dispose.call(this)},Ue.prototype._recomputeOptions=function(){var Pe=this.options,ne=this._computeInternalOptions();if(!Pe)this.options=ne;else{var ee=s.checkEquals(Pe,ne);if(ee===null)return;this.options=ne,this._onDidChange.fire(ee)}},Ue.prototype.getRawOptions=function(){return this._rawOptions},Ue.prototype._computeInternalOptions=function(){var Pe=this._getEnvConfiguration(),ne=H.a.createFromValidatedSettings(this._validatedOptions,Pe.zoomLevel,this.isSimpleWidget),ee={outerWidth:Pe.outerWidth,outerHeight:Pe.outerHeight,fontInfo:this.readConfiguration(ne),extraEditorClassName:Pe.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:Pe.emptySelectionClipboard,pixelRatio:Pe.pixelRatio,tabFocusMode:v.getTabFocusMode(),accessibilitySupport:Pe.accessibilitySupport};return s.computeOptions(this._validatedOptions,ee)},Ue._subsetEquals=function(Pe,ne){for(var ee in ne)if(w.call(ne,ee)){var ae=ne[ee],q=Pe[ee];if(q===ae)continue;if(Array.isArray(q)&&Array.isArray(ae)){if(!U.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},Ue.prototype.updateOptions=function(Pe){if(typeof Pe=="undefined")return;var ne=d(Pe);if(Ue._subsetEquals(this._rawOptions,ne))return;this._rawOptions=I.g(this._rawOptions,ne||{}),this._readOptions=s.readOptions(this._rawOptions),this._validatedOptions=s.validateOptions(this._readOptions),this._recomputeOptions()},Ue.prototype.setIsDominatedByLongLines=function(Pe){this._isDominatedByLongLines=Pe,this._recomputeOptions()},Ue.prototype.setMaxLineNumber=function(Pe){var ne=Ue._digitCount(Pe);if(this._lineNumbersDigitCount===ne)return;this._lineNumbersDigitCount=ne,this._recomputeOptions()},Ue._digitCount=function(Pe){for(var ne=0;Pe;)Pe=Math.floor(Pe/10),ne++;return ne||1},Ue}(J.a),E=Object.freeze({id:"editor",order:5,type:"object",title:T.a("editorConfigurationTitle","Editor"),scope:5}),L=u.a.as(x.a.Configuration),A=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 k(Fe){return typeof Fe.type!="undefined"||typeof Fe.anyOf!="undefined"}for(var R=0,$=z.i;R<$.length;R++){var ie=$[R],W=ie.schema;if(typeof W!="undefined")if(k(W))A.properties["editor."+ie.name]=W;else for(var B in W)w.call(W,B)&&(A.properties[B]=W[B])}var le=null;function Ce(){return le===null&&(le=Object.create(null),Object.keys(A.properties).forEach(function(Fe){le[Fe]=!0})),le}function Me(Fe){var Ue=Ce();return Ue["editor."+Fe]||!1}function Te(Fe){var Ue=Ce();return Ue["diffEditor."+Fe]||!1}L.registerConfiguration(A)},iJk1:function(Lt,j,e){},iLY9:function(Lt,j,e){"use strict";e.r(j);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(179).then(e.bind(null,"8ahN"))}})},iNS8:function(Lt,j,e){"use strict";e.d(j,"a",function(){return Me}),e.d(j,"b",function(){return Te}),e.d(j,"d",function(){return Ue}),e.d(j,"c",function(){return ne}),e.d(j,"p",function(){return ee}),e.d(j,"q",function(){return ae}),e.d(j,"r",function(){return q}),e.d(j,"e",function(){return ue}),e.d(j,"j",function(){return X}),e.d(j,"l",function(){return he}),e.d(j,"k",function(){return je}),e.d(j,"n",function(){return Xe}),e.d(j,"o",function(){return me}),e.d(j,"f",function(){return ge}),e.d(j,"g",function(){return we}),e.d(j,"m",function(){return Re}),e.d(j,"h",function(){return Ee}),e.d(j,"i",function(){return ve});var T=e("e1ni"),re=e("EffR"),J=e("WqXY"),I=e("8HAY"),U=e("zrhQ"),z=e("MI8n"),O=e("qj0h"),H=e("N0LK"),x=e("Vxe3"),u=e("03kh"),y=e("uWgD"),_=e("cMOf"),f=e("nD70"),v=e("pmY6"),w=e("aokT"),p=e("tX9W"),c=new U.a(new U.c(0,122,204)),s={showArrow:!0,showFrame:!0,className:"",frameColor:c,arrowColor:c,keepEditorSelection:!1},l="vs.editor.contrib.zoneWidget",d=function(){function Q(C,F,se,oe,be,De){this.id="",this.domNode=C,this.afterLineNumber=F,this.afterColumn=se,this.heightInLines=oe,this._onDomNodeTop=be,this._onComputedHeight=De}return Q.prototype.onDomNodeTop=function(C){this._onDomNodeTop(C)},Q.prototype.onComputedHeight=function(C){this._onComputedHeight(C)},Q}(),m=function(){function Q(C,F){this._id=C,this._domNode=F}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(C){this._editor=C,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(F){this._color!==F&&(this._color=F,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"height",{set:function(F){this._height!==F&&(this._height=F,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(C){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:w.a.fromPositions(C),options:{className:this._ruleName,stickiness:1}}])},Q.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},Q._IdGenerator=new f.a(".arrow-decoration-"),Q}(),L=function(){function Q(C,F){var se=this;F===void 0&&(F={}),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=C,this.options=O.c(F),O.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(oe){var be=se._getWidth(oe);se.domNode.style.width=be+"px",se.domNode.style.left=se._getLeft(oe)+"px",se._onWidth(be)}))}return Q.prototype.dispose=function(){var C=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(F){C._viewZone&&F.removeZone(C._viewZone.id),C._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(C){C.frameColor&&(this.options.frameColor=C.frameColor),C.arrowColor&&(this.options.arrowColor=C.arrowColor),this._applyStyles()},Q.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var C=this.options.frameColor.toString();this.container.style.borderTopColor=C,this.container.style.borderBottomColor=C}if(this._arrow&&this.options.arrowColor){var F=this.options.arrowColor.toString();this._arrow.color=F}},Q.prototype._getWidth=function(C){return C.width-C.minimapWidth-C.verticalScrollbarWidth},Q.prototype._getLeft=function(C){return C.minimapWidth>0&&C.minimapLeft===0?C.minimapWidth:0},Q.prototype._onViewZoneTop=function(C){this.domNode.style.top=C+"px"},Q.prototype._onViewZoneHeight=function(C){if(this.domNode.style.height=C+"px",this.container){var F=C-this._decoratingElementsHeight();this.container.style.height=F+"px";var se=this.editor.getLayoutInfo();this._doLayout(F,this._getWidth(se))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(Q.prototype,"position",{get:function(){var F=this._positionMarkerId[0];if(!F)return;var se=this.editor.getModel();if(!se)return;var oe=se.getDecorationRange(F);return oe?oe.getStartPosition():void 0},enumerable:!0,configurable:!0}),Q.prototype.show=function(C,F){var se=w.a.isIRange(C)?w.a.lift(C):w.a.fromPositions(C);this._isShowing=!0,this._showImpl(se,F),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:se,options:p.a.EMPTY}])},Q.prototype.hide=function(){var C=this;this._viewZone&&(this.editor.changeViewZones(function(F){C._viewZone&&F.removeZone(C._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 C=this.editor.getOption(49),F=0;if(this.options.showArrow){var se=Math.round(C/3);F+=2*se}if(this.options.showFrame){var oe=Math.round(C/9);F+=2*oe}return F},Q.prototype._showImpl=function(C,F){var se=this,oe=C.getStartPosition(),be=this.editor.getLayoutInfo(),De=this._getWidth(be);this.domNode.style.width=De+"px",this.domNode.style.left=this._getLeft(be)+"px";var Se=document.createElement("div");Se.style.overflow="hidden";var Ve=this.editor.getOption(49),Qe=this.editor.getLayoutInfo().height/Ve*.8;F>=Qe&&(F=Qe);var it=0,pt=0;if(this._arrow&&this.options.showArrow&&(it=Math.round(Ve/3),this._arrow.height=it,this._arrow.show(oe)),this.options.showFrame&&(pt=Math.round(Ve/9)),this.editor.changeViewZones(function(ao){se._viewZone&&ao.removeZone(se._viewZone.id),se._overlayWidget&&(se.editor.removeOverlayWidget(se._overlayWidget),se._overlayWidget=null),se.domNode.style.top="-1000px",se._viewZone=new d(Se,oe.lineNumber,oe.column,F,function(so){return se._onViewZoneTop(so)},function(so){return se._onViewZoneHeight(so)}),se._viewZone.id=ao.addZone(se._viewZone),se._overlayWidget=new m(l+se._viewZone.id,se.domNode),se.editor.addOverlayWidget(se._overlayWidget)}),this.container&&this.options.showFrame){var Rt=this.options.frameWidth?this.options.frameWidth:pt;this.container.style.borderTopWidth=Rt+"px",this.container.style.borderBottomWidth=Rt+"px"}var Mt=F*Ve-this._decoratingElementsHeight();this.container&&(this.container.style.top=it+"px",this.container.style.height=Mt+"px",this.container.style.overflow="hidden"),this._doLayout(Mt,De),this.options.keepEditorSelection||this.editor.setSelection(C);var zt=this.editor.getModel();if(zt){var uo=C.endLineNumber+1;uo<=zt.getLineCount()?this.revealLine(uo,!1):this.revealLine(zt.getLineCount(),!0)}},Q.prototype.revealLine=function(C,F){F?this.editor.revealLineInCenter(C,0):this.editor.revealLine(C,0)},Q.prototype.setCssClass=function(C,F){if(!this.container)return;F&&this.container.classList.remove(F),re.f(this.container,C)},Q.prototype._onWidth=function(C){},Q.prototype._doLayout=function(C,F){},Q.prototype._relayout=function(C){var F=this;this._viewZone&&this._viewZone.heightInLines!==C&&this.editor.changeViewZones(function(se){F._viewZone&&(F._viewZone.heightInLines=C,se.layoutZone(F._viewZone.id))})},Q.prototype._initSash=function(){var C=this;if(this._resizeSash)return;this._resizeSash=this._disposables.add(new _.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0);var F;this._disposables.add(this._resizeSash.onDidStart(function(se){C._viewZone&&(F={startY:se.startY,heightInLines:C._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){F=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(se){if(F){var oe=(se.currentY-F.startY)/C.editor.getOption(49),be=oe<0?Math.ceil(oe):Math.floor(oe),De=F.heightInLines+be;De>5&&De<35&&C._relayout(De)}}))},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 C=this.editor.getLayoutInfo();return C.width-C.minimapWidth},Q}(),A=e("3/fG"),k=e("T8No"),R=e("Cg/j"),$=e("9fML"),ie=e("sswD"),W=e("MD5Z"),B=function(){var Q=function(F,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,be){oe.__proto__=be}||function(oe,be){for(var De in be)be.hasOwnProperty(De)&&(oe[De]=be[De])},Q(F,se)};return function(C,F){Q(C,F);function se(){this.constructor=C}C.prototype=F===null?Object.create(F):(se.prototype=F.prototype,new se)}}(),le=function(Q,C,F,se){var oe=arguments.length,be=oe<3?C:se===null?se=Object.getOwnPropertyDescriptor(C,F):se,De;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(Q,C,F,se);else for(var Se=Q.length-1;Se>=0;Se--)(De=Q[Se])&&(be=(oe<3?De(be):oe>3?De(C,F,be):De(C,F))||be);return oe>3&&be&&Object.defineProperty(C,F,be),be},Ce=function(Q,C){return function(F,se){C(F,se,Q)}},Me=Object(R.c)("IPeekViewService");Object($.b)(Me,function(){function Q(){this._widgets=new Map}return Q.prototype.addExclusiveWidget=function(C,F){var se=this,oe=this._widgets.get(C);oe&&(oe.listener.dispose(),oe.widget.dispose());var be=function(){var Se=se._widgets.get(C);Se&&Se.widget===F&&(Se.listener.dispose(),se._widgets.delete(C))};this._widgets.set(C,{widget:F,listener:F.onDidClose(be)})},Q}());var Te;(function(Q){Q.inPeekEditor=new k.d("inReferenceSearchEditor",!0),Q.notInPeekEditor=Q.inPeekEditor.toNegated()})(Te||(Te={}));var Fe=function(){function Q(C,F){C instanceof u.a&&Te.inPeekEditor.bindTo(F)}return Q.prototype.dispose=function(){},Q.ID="editor.contrib.referenceController",Q=le([Ce(1,k.c)],Q),Q}();Object(ie.h)(Fe.ID,Fe);function Ue(Q){var C=Q.get(x.a).getFocusedCodeEditor();return C instanceof u.a?C.getParentEditor():C}var Pe={headerBackgroundColor:U.a.white,primaryHeadingColor:U.a.fromHex("#333333"),secondaryHeadingColor:U.a.fromHex("#6c6c6cb3")},ne=function(Q){B(C,Q);function C(F,se){se===void 0&&(se={});var oe=Q.call(this,F,se)||this;return oe._onDidClose=new z.a,oe.onDidClose=oe._onDidClose.event,O.g(oe.options,Pe,!1),oe}return C.prototype.dispose=function(){Q.prototype.dispose.call(this),this._onDidClose.fire(this)},C.prototype.style=function(F){var se=this.options;F.headerBackgroundColor&&(se.headerBackgroundColor=F.headerBackgroundColor),F.primaryHeadingColor&&(se.primaryHeadingColor=F.primaryHeadingColor),F.secondaryHeadingColor&&(se.secondaryHeadingColor=F.secondaryHeadingColor),Q.prototype.style.call(this,F)},C.prototype._applyStyles=function(){Q.prototype._applyStyles.call(this);var F=this.options;this._headElement&&F.headerBackgroundColor&&(this._headElement.style.backgroundColor=F.headerBackgroundColor.toString()),this._primaryHeading&&F.primaryHeadingColor&&(this._primaryHeading.style.color=F.primaryHeadingColor.toString()),this._secondaryHeading&&F.secondaryHeadingColor&&(this._secondaryHeading.style.color=F.secondaryHeadingColor.toString()),this._bodyElement&&F.frameColor&&(this._bodyElement.style.borderColor=F.frameColor.toString())},C.prototype._fillContainer=function(F){this.setCssClass("peekview-widget"),this._headElement=re.a(".head"),this._bodyElement=re.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),F.appendChild(this._headElement),F.appendChild(this._bodyElement)},C.prototype._fillHead=function(F){var se=this,oe=re.a(".peekview-title");re.q(this._headElement,oe),re.o(oe,"click",function(Se){return se._onTitleClick(Se)}),this._fillTitleIcon(oe),this._primaryHeading=re.a("span.filename"),this._secondaryHeading=re.a("span.dirname"),this._metaHeading=re.a("span.meta"),re.q(oe,this._primaryHeading,this._secondaryHeading,this._metaHeading);var be=re.a(".peekview-actions");re.q(this._headElement,be);var De=this._getActionBarOptions();this._actionbarWidget=new J.a(be,De),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new I.a("peekview.close",A.a("label.close","Close"),"codicon-close",!0,function(){return se.dispose(),Promise.resolve()}),{label:!1,icon:!0})},C.prototype._fillTitleIcon=function(F){},C.prototype._getActionBarOptions=function(){return{}},C.prototype._onTitleClick=function(F){},C.prototype.setTitle=function(F,se){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=H.o(F),this._primaryHeading.setAttribute("aria-label",F),se?this._secondaryHeading.innerHTML=H.o(se):re.t(this._secondaryHeading))},C.prototype.setMetaTitle=function(F){this._metaHeading&&(F?(this._metaHeading.innerHTML=H.o(F),re.X(this._metaHeading)):re.J(this._metaHeading))},C.prototype._doLayout=function(F,se){if(!this._isShowing&&F<0){this.dispose();return}var oe=Math.ceil(this.editor.getOption(49)*1.2),be=Math.round(F-(oe+2));this._doLayoutHead(oe,se),this._doLayoutBody(be,se)},C.prototype._doLayoutHead=function(F,se){this._headElement&&(this._headElement.style.height=F+"px",this._headElement.style.lineHeight=this._headElement.style.height)},C.prototype._doLayoutBody=function(F,se){this._bodyElement&&(this._bodyElement.style.height=F+"px")},C}(L),ee=Object(W.Tb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},A.a("peekViewTitleBackground","Background color of the peek view title area.")),ae=Object(W.Tb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},A.a("peekViewTitleForeground","Color of the peek view title.")),q=Object(W.Tb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},A.a("peekViewTitleInfoForeground","Color of the peek view title info.")),ue=Object(W.Tb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:W.e},A.a("peekViewBorder","Color of the peek view borders and arrow.")),X=Object(W.Tb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:U.a.black},A.a("peekViewResultsBackground","Background color of the peek view result list.")),he=Object(W.Tb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:U.a.white},A.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),je=Object(W.Tb)("peekViewResult.fileForeground",{dark:U.a.white,light:"#1E1E1E",hc:U.a.white},A.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},A.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),me=Object(W.Tb)("peekViewResult.selectionForeground",{dark:U.a.white,light:"#6C6C6C",hc:U.a.white},A.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),ge=Object(W.Tb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:U.a.black},A.a("peekViewEditorBackground","Background color of the peek view editor.")),we=Object(W.Tb)("peekViewEditorGutter.background",{dark:ge,light:ge,hc:ge},A.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Re=Object(W.Tb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},A.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ee=Object(W.Tb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},A.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),ve=Object(W.Tb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:W.b},A.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},ic2d:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I});var T=e("746U"),re=e("FWmy"),J=function(){function U(){this.data=new Map}return U.prototype.add=function(z,O){re.a(T.j(z)),re.a(T.i(O)),re.a(!this.data.has(z),"There is already an extension with this id"),this.data.set(z,O)},U.prototype.as=function(z){return this.data.get(z)||null},U}(),I=new J},"ij/i":function(Lt,j,e){"use strict";e.r(j);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(185).then(e.bind(null,"3MdH"))}})},iuje:function(Lt,j,e){"use strict";e.d(j,"c",function(){return T}),e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});function T(I){return I&&typeof I.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(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return e.e(177).then(e.bind(null,"ppMK"))}})},"jAJ/":function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"d",function(){return u}),e.d(j,"c",function(){return _}),e.d(j,"e",function(){return w}),e.d(j,"b",function(){return p});var T=e("N0LK"),re=e("5v8Y"),J=e("cGHE"),I=e("aokT"),U=e("M1Kb"),z=999,O=function(){function c(s,l,d,m){this.searchString=s,this.isRegex=l,this.matchCase=d,this.wordSeparators=m}return c.prototype.parseSearchRequest=function(){if(this.searchString==="")return null;var s;this.isRegex?s=H(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(m){return null}if(!l)return null;var d=!this.isRegex&&!s;return d&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(d=this.matchCase),new x(l,this.wordSeparators?Object(re.a)(this.wordSeparators):null,d?this.searchString:null)},c}();function H(c){if(!c||c.length===0)return!1;for(var s=0,l=c.length;s<l;s++){var d=c.charCodeAt(s);if(d===92){if(s++,s>=l)break;var m=c.charCodeAt(s);if(m===110||m===114||m===87||m===119)return!0}}return!1}var x=function(){function c(s,l,d){this.regex=s,this.wordSeparators=l,this.simpleSearch=d}return c}();function u(c,s,l){if(!l)return new U.b(c,null);for(var d=[],m=0,E=s.length;m<E;m++)d[m]=s[m];return new U.b(c,d)}var y=function(){function c(s){for(var l=[],d=0,m=0,E=s.length;m<E;m++)s.charCodeAt(m)===10&&(l[d++]=m);this._lineFeedsOffsets=l}return c.prototype.findLineFeedCountBeforeOffset=function(s){var l=this._lineFeedsOffsets,d=0,m=l.length-1;if(m===-1)return 0;if(s<=l[0])return 0;for(;d<m;){var E=d+((m-d)/2>>0);l[E]>=s?m=E-1:l[E+1]>=s?(d=E,m=E):d=E+1}return d+1},c}(),_=function(){function c(){}return c.findMatches=function(s,l,d,m,E){var L=l.parseSearchRequest();return L?L.regex.multiline?this._doFindMatchesMultiline(s,d,new p(L.wordSeparators,L.regex),m,E):this._doFindMatchesLineByLine(s,d,L,m,E):[]},c._getMultilineMatchRange=function(s,l,d,m,E,L){var A,k=0;m?(k=m.findLineFeedCountBeforeOffset(E),A=l+E+k):A=l+E;var R;if(m){var $=m.findLineFeedCountBeforeOffset(E+L.length),ie=$-k;R=A+L.length+ie}else R=A+L.length;var W=s.getPositionAt(A),B=s.getPositionAt(R);return new I.a(W.lineNumber,W.column,B.lineNumber,B.column)},c._doFindMatchesMultiline=function(s,l,d,m,E){var L=s.getOffsetAt(l.getStartPosition()),A=s.getValueInRange(l,1),k=s.getEOL()===`\r
`?new y(A):null,R=[],$=0,ie;for(d.reset(0);ie=d.next(A);)if(R[$++]=u(this._getMultilineMatchRange(s,L,A,k,ie.index,ie[0]),ie,m),$>=E)return R;return R},c._doFindMatchesLineByLine=function(s,l,d,m,E){var L=[],A=0;if(l.startLineNumber===l.endLineNumber){var k=s.getLineContent(l.startLineNumber).substring(l.startColumn-1,l.endColumn-1);return A=this._findMatchesInLine(d,k,l.startLineNumber,l.startColumn-1,A,L,m,E),L}var R=s.getLineContent(l.startLineNumber).substring(l.startColumn-1);A=this._findMatchesInLine(d,R,l.startLineNumber,l.startColumn-1,A,L,m,E);for(var $=l.startLineNumber+1;$<l.endLineNumber&&A<E;$++)A=this._findMatchesInLine(d,s.getLineContent($),$,0,A,L,m,E);if(A<E){var ie=s.getLineContent(l.endLineNumber).substring(0,l.endColumn-1);A=this._findMatchesInLine(d,ie,l.endLineNumber,0,A,L,m,E)}return L},c._findMatchesInLine=function(s,l,d,m,E,L,A,k){var R=s.wordSeparators;if(!A&&s.simpleSearch){for(var $=s.simpleSearch,ie=$.length,W=l.length,B=-ie;(B=l.indexOf($,B+ie))!==-1;)if((!R||w(R,l,W,B,ie))&&(L[E++]=new U.b(new I.a(d,B+1+m,d,B+1+ie+m),null),E>=k))return E;return E}var le=new p(s.wordSeparators,s.regex),Ce;le.reset(0);do if(Ce=le.next(l),Ce&&(L[E++]=u(new I.a(d,Ce.index+1+m,d,Ce.index+1+Ce[0].length+m),Ce,A),E>=k))return E;while(Ce);return E},c.findNextMatch=function(s,l,d,m){var E=l.parseSearchRequest();if(!E)return null;var L=new p(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindNextMatchMultiline(s,d,L,m):this._doFindNextMatchLineByLine(s,d,L,m)},c._doFindNextMatchMultiline=function(s,l,d,m){var E=new J.a(l.lineNumber,1),L=s.getOffsetAt(E),A=s.getLineCount(),k=s.getValueInRange(new I.a(E.lineNumber,E.column,A,s.getLineMaxColumn(A)),1),R=s.getEOL()===`\r
`?new y(k):null;d.reset(l.column-1);var $=d.next(k);return $?u(this._getMultilineMatchRange(s,L,k,R,$.index,$[0]),$,m):l.lineNumber!==1||l.column!==1?this._doFindNextMatchMultiline(s,new J.a(1,1),d,m):null},c._doFindNextMatchLineByLine=function(s,l,d,m){var E=s.getLineCount(),L=l.lineNumber,A=s.getLineContent(L),k=this._findFirstMatchInLine(d,A,L,l.column,m);if(k)return k;for(var R=1;R<=E;R++){var $=(L+R-1)%E,ie=s.getLineContent($+1),W=this._findFirstMatchInLine(d,ie,$+1,1,m);if(W)return W}return null},c._findFirstMatchInLine=function(s,l,d,m,E){s.reset(m-1);var L=s.next(l);return L?u(new I.a(d,L.index+1,d,L.index+1+L[0].length),L,E):null},c.findPreviousMatch=function(s,l,d,m){var E=l.parseSearchRequest();if(!E)return null;var L=new p(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindPreviousMatchMultiline(s,d,L,m):this._doFindPreviousMatchLineByLine(s,d,L,m)},c._doFindPreviousMatchMultiline=function(s,l,d,m){var E=this._doFindMatchesMultiline(s,new I.a(1,1,l.lineNumber,l.column),d,m,10*z);if(E.length>0)return E[E.length-1];var L=s.getLineCount();return l.lineNumber!==L||l.column!==s.getLineMaxColumn(L)?this._doFindPreviousMatchMultiline(s,new J.a(L,s.getLineMaxColumn(L)),d,m):null},c._doFindPreviousMatchLineByLine=function(s,l,d,m){var E=s.getLineCount(),L=l.lineNumber,A=s.getLineContent(L).substring(0,l.column-1),k=this._findLastMatchInLine(d,A,L,m);if(k)return k;for(var R=1;R<=E;R++){var $=(E+L-R-1)%E,ie=s.getLineContent($+1),W=this._findLastMatchInLine(d,ie,$+1,m);if(W)return W}return null},c._findLastMatchInLine=function(s,l,d,m){var E=null,L;for(s.reset(0);L=s.next(l);)E=u(new I.a(d,L.index+1,d,L.index+1+L[0].length),L,m);return E},c}();function f(c,s,l,d,m){if(d===0)return!0;var E=s.charCodeAt(d-1);if(c.get(E)!==0)return!0;if(E===13||E===10)return!0;if(m>0){var L=s.charCodeAt(d);if(c.get(L)!==0)return!0}return!1}function v(c,s,l,d,m){if(d+m===l)return!0;var E=s.charCodeAt(d+m);if(c.get(E)!==0)return!0;if(E===13||E===10)return!0;if(m>0){var L=s.charCodeAt(d+m-1);if(c.get(L)!==0)return!0}return!1}function w(c,s,l,d,m){return f(c,s,l,d,m)&&v(c,s,l,d,m)}var p=function(){function c(s,l){this._wordSeparators=s,this._searchRegex=l,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return c.prototype.reset=function(s){this._searchRegex.lastIndex=s,this._prevMatchStartIndex=-1,this._prevMatchLength=0},c.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 m=d.index,E=d[0].length;if(m===this._prevMatchStartIndex&&E===this._prevMatchLength){if(E===0){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=m,this._prevMatchLength=E,!this._wordSeparators||w(this._wordSeparators,s,l,m,E))return d}while(d);return null},c}()},jVwG:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return e.e(169).then(e.bind(null,"fYNN"))}})},jqj9:function(Lt,j,e){"use strict";var T=e("yI7H"),re=e.n(T),J=e("ujyM"),I=e.n(J),U=e("3/fG"),z=e("t9D7"),O=e("MD5Z"),H=Object(O.Tb)("symbolIcon.arrayForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=Object(O.Tb)("symbolIcon.booleanForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=Object(O.Tb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(U.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=Object(O.Tb)("symbolIcon.colorForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=Object(O.Tb)("symbolIcon.constantForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=Object(O.Tb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(U.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=Object(O.Tb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(U.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=Object(O.Tb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(U.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=Object(O.Tb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(U.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=Object(O.Tb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(U.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),s=Object(O.Tb)("symbolIcon.fileForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=Object(O.Tb)("symbolIcon.folderForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=Object(O.Tb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(U.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=Object(O.Tb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(U.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=Object(O.Tb)("symbolIcon.keyForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=Object(O.Tb)("symbolIcon.keywordForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=Object(O.Tb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(U.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=Object(O.Tb)("symbolIcon.moduleForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=Object(O.Tb)("symbolIcon.namespaceForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$=Object(O.Tb)("symbolIcon.nullForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ie=Object(O.Tb)("symbolIcon.numberForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),W=Object(O.Tb)("symbolIcon.objectForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=Object(O.Tb)("symbolIcon.operatorForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),le=Object(O.Tb)("symbolIcon.packageForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ce=Object(O.Tb)("symbolIcon.propertyForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Me=Object(O.Tb)("symbolIcon.referenceForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Te=Object(O.Tb)("symbolIcon.snippetForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Fe=Object(O.Tb)("symbolIcon.stringForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ue=Object(O.Tb)("symbolIcon.structForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pe=Object(O.Tb)("symbolIcon.textForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ne=Object(O.Tb)("symbolIcon.typeParameterForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ee=Object(O.Tb)("symbolIcon.unitForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ae=Object(O.Tb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(U.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(z.e)(function(q,ue){var X=q.getColor(H);X&&ue.addRule(".codicon-symbol-array { color: "+X+" !important; }");var he=q.getColor(x);he&&ue.addRule(".codicon-symbol-boolean { color: "+he+" !important; }");var je=q.getColor(u);je&&ue.addRule(".codicon-symbol-class { color: "+je+" !important; }");var Xe=q.getColor(A);Xe&&ue.addRule(".codicon-symbol-method { color: "+Xe+" !important; }");var me=q.getColor(y);me&&ue.addRule(".codicon-symbol-color { color: "+me+" !important; }");var ge=q.getColor(_);ge&&ue.addRule(".codicon-symbol-constant { color: "+ge+" !important; }");var we=q.getColor(f);we&&ue.addRule(".codicon-symbol-constructor { color: "+we+" !important; }");var Re=q.getColor(v);Re&&ue.addRule(`
.codicon-symbol-value,.codicon-symbol-enum { color: `+Re+" !important; }");var Ee=q.getColor(w);Ee&&ue.addRule(".codicon-symbol-enum-member { color: "+Ee+" !important; }");var ve=q.getColor(p);ve&&ue.addRule(".codicon-symbol-event { color: "+ve+" !important; }");var Q=q.getColor(c);Q&&ue.addRule(".codicon-symbol-field { color: "+Q+" !important; }");var C=q.getColor(s);C&&ue.addRule(".codicon-symbol-file { color: "+C+" !important; }");var F=q.getColor(l);F&&ue.addRule(".codicon-symbol-folder { color: "+F+" !important; }");var se=q.getColor(d);se&&ue.addRule(".codicon-symbol-function { color: "+se+" !important; }");var oe=q.getColor(m);oe&&ue.addRule(".codicon-symbol-interface { color: "+oe+" !important; }");var be=q.getColor(E);be&&ue.addRule(".codicon-symbol-key { color: "+be+" !important; }");var De=q.getColor(L);De&&ue.addRule(".codicon-symbol-keyword { color: "+De+" !important; }");var Se=q.getColor(k);Se&&ue.addRule(".codicon-symbol-module { color: "+Se+" !important; }");var Ve=q.getColor(R);Ve&&ue.addRule(".codicon-symbol-namespace { color: "+Ve+" !important; }");var Qe=q.getColor($);Qe&&ue.addRule(".codicon-symbol-null { color: "+Qe+" !important; }");var it=q.getColor(ie);it&&ue.addRule(".codicon-symbol-number { color: "+it+" !important; }");var pt=q.getColor(W);pt&&ue.addRule(".codicon-symbol-object { color: "+pt+" !important; }");var Rt=q.getColor(B);Rt&&ue.addRule(".codicon-symbol-operator { color: "+Rt+" !important; }");var Mt=q.getColor(le);Mt&&ue.addRule(".codicon-symbol-package { color: "+Mt+" !important; }");var zt=q.getColor(Ce);zt&&ue.addRule(".codicon-symbol-property { color: "+zt+" !important; }");var uo=q.getColor(Me);uo&&ue.addRule(".codicon-symbol-reference { color: "+uo+" !important; }");var ao=q.getColor(Te);ao&&ue.addRule(".codicon-symbol-snippet { color: "+ao+" !important; }");var so=q.getColor(Fe);so&&ue.addRule(".codicon-symbol-string { color: "+so+" !important; }");var Pt=q.getColor(Ue);Pt&&ue.addRule(".codicon-symbol-struct { color: "+Pt+" !important; }");var ft=q.getColor(Pe);ft&&ue.addRule(".codicon-symbol-text { color: "+ft+" !important; }");var vt=q.getColor(ne);vt&&ue.addRule(".codicon-symbol-type-parameter { color: "+vt+" !important; }");var At=q.getColor(ee);At&&ue.addRule(".codicon-symbol-unit { color: "+At+" !important; }");var at=q.getColor(ae);at&&ue.addRule(".codicon-symbol-variable { color: "+at+" !important; }")})},jrbv:function(Lt,j,e){"use strict";e.r(j);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(150).then(e.bind(null,"2ZXa"))}})},k76M:function(Lt,j,e){"use strict";var T=e("XNtB"),re=e.n(T),J=e("epnl"),I=e.n(J)},k7mE:function(Lt,j,e){"use strict";e.r(j);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(161).then(e.bind(null,"BjZ/"))}})},k7pc:function(Lt,j,e){"use strict";e.r(j),e.d(j,"ToggleTabFocusModeAction",function(){return z});var T=e("3/fG"),re=e("OBOq"),J=e("sswD"),I=e("iDAx"),U=function(){var O=function(x,u){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,_){y.__proto__=_}||function(y,_){for(var f in _)_.hasOwnProperty(f)&&(y[f]=_[f])},O(x,u)};return function(H,x){O(H,x);function u(){this.constructor=H}H.prototype=x===null?Object.create(x):(u.prototype=x.prototype,new u)}}(),z=function(O){U(H,O);function H(){return O.call(this,{id:H.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 H.prototype.run=function(x,u){var y=I.b.getTabFocusMode(),_=!y;I.b.setTabFocusMode(_),_?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"))},H.ID="editor.action.toggleTabFocusMode",H}(J.b);Object(J.f)(z)},k9mg:function(Lt,j,e){"use strict";e.d(j,"a",function(){return fn}),e.d(j,"b",function(){return Vo}),e.d(j,"d",function(){return dn}),e.d(j,"c",function(){return yt});var T=e("EffR"),re=e("cqdO"),J=e("pmY6"),I=e("3/fG"),U=e("+7oY"),z=e("CRAX"),O=e("T8No"),H=e("Cg/j"),x=e("bexQ"),u=e("ic2d"),y=e("ptcw"),_=e("t9D7"),f="inputFocus",v=e("2V9f"),w=e("MI8n"),p=e("uDWl"),c=e("ZQ78"),s=e("6OMU"),l=e("feEw"),d=e("4y0V"),m=e("fpMC"),E=function(){var pe=function(ye,We){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var mt in st)st.hasOwnProperty(mt)&&(Ze[mt]=st[mt])},pe(ye,We)};return function(D,ye){pe(D,ye);function We(){this.constructor=D}D.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),L=function(pe){E(D,pe);function D(ye,We){return pe.call(this,"TreeError ["+ye+"] "+We)||this}return D}(Error),A=function(){function pe(D){this.fn=D,this._map=new WeakMap}return pe.prototype.map=function(D){var ye=this._map.get(D);return ye||(ye=this.fn(D),this._map.set(D,ye)),ye},pe}(),k=e("JYp7"),R=function(){for(var pe=0,D=0,ye=arguments.length;D<ye;D++)pe+=arguments[D].length;for(var We=Array(pe),Ze=0,D=0;D<ye;D++)for(var st=arguments[D],mt=0,Kt=st.length;mt<Kt;mt++,Ze++)We[Ze]=st[mt];return We};function $(pe){return typeof pe=="object"&&"visibility"in pe&&"data"in pe}function ie(pe){switch(pe){case!0:return 1;case!1:return 0;default:return pe}}function W(pe){return typeof pe.collapsible=="boolean"}var B=function(){function pe(D,ye,We,Ze){Ze===void 0&&(Ze={}),this.user=D,this.list=ye,this.rootRef=[],this.eventBufferer=new w.c,this._onDidChangeCollapseState=new w.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new w.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new w.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 pe.prototype.splice=function(D,ye,We,Ze,st){var mt,Kt=this;if(D.length===0)throw new L(this.user,"Invalid tree location");for(var Xt=this.getParentNodeWithListIndex(D),no=Xt.parentNode,vo=Xt.listIndex,lo=Xt.revealed,Ro=Xt.visible,wo=[],_o=k.d.map(k.d.from(We),function(kn){return Kt.createTreeNode(kn,no,no.visible?1:0,lo,wo,Ze)}),jo=D[D.length-1],Uo=0,Do=jo;Do>=0&&Do<no.children.length;Do--){var xo=no.children[Do];if(xo.visible){Uo=xo.visibleChildIndex;break}}var tn=[],gn=0,En=0;k.d.forEach(_o,function(kn){tn.push(kn),En+=kn.renderNodeCount,kn.visible&&(kn.visibleChildIndex=Uo+gn++)});for(var on=(mt=no.children).splice.apply(mt,R([jo,ye],tn)),On=0,Hn=0,Rn=on;Hn<Rn.length;Hn++){var xo=Rn[Hn];xo.visible&&On++}if(On!==0)for(var Do=jo+tn.length;Do<no.children.length;Do++){var xo=no.children[Do];xo.visible&&(xo.visibleChildIndex-=On)}if(no.visibleChildrenCount+=gn-On,lo&&Ro){var ai=on.reduce(function(kn,Qn){return kn+(Qn.visible?Qn.renderNodeCount:0)},0);this._updateAncestorsRenderNodeCount(no,En-ai),this.list.splice(vo,ai,wo)}if(on.length>0&&st){var bi=function kn(Qn){st(Qn),Qn.children.forEach(kn)};on.forEach(bi)}this._onDidSplice.fire({insertedNodes:tn,deletedNodes:on})},pe.prototype.rerender=function(D){if(D.length===0)throw new L(this.user,"Invalid tree location");var ye=this.getTreeNodeWithListIndex(D),We=ye.node,Ze=ye.listIndex,st=ye.revealed;st&&this.list.splice(Ze,1,[We])},pe.prototype.has=function(D){return this.hasTreeNode(D)},pe.prototype.getListIndex=function(D){var ye=this.getTreeNodeWithListIndex(D),We=ye.listIndex,Ze=ye.visible,st=ye.revealed;return Ze&&st?We:-1},pe.prototype.getListRenderCount=function(D){return this.getTreeNode(D).renderNodeCount},pe.prototype.isCollapsible=function(D){return this.getTreeNode(D).collapsible},pe.prototype.setCollapsible=function(D,ye){var We=this,Ze=this.getTreeNode(D);typeof ye=="undefined"&&(ye=!Ze.collapsible);var st={collapsible:ye};return this.eventBufferer.bufferEvents(function(){return We._setCollapseState(D,st)})},pe.prototype.isCollapsed=function(D){return this.getTreeNode(D).collapsed},pe.prototype.setCollapsed=function(D,ye,We){var Ze=this,st=this.getTreeNode(D);typeof ye=="undefined"&&(ye=!st.collapsed);var mt={collapsed:ye,recursive:We||!1};return this.eventBufferer.bufferEvents(function(){return Ze._setCollapseState(D,mt)})},pe.prototype._setCollapseState=function(D,ye){var We=this.getTreeNodeWithListIndex(D),Ze=We.node,st=We.listIndex,mt=We.revealed,Kt=this._setListNodeCollapseState(Ze,st,mt,ye);if(Ze!==this.root&&this.autoExpandSingleChildren&&Kt&&!W(ye)&&Ze.collapsible&&!Ze.collapsed&&!ye.recursive){for(var Xt=-1,no=0;no<Ze.children.length;no++){var vo=Ze.children[no];if(vo.visible)if(Xt>-1){Xt=-1;break}else Xt=no}Xt>-1&&this._setCollapseState(R(D,[Xt]),ye)}return Kt},pe.prototype._setListNodeCollapseState=function(D,ye,We,Ze){var st=this._setNodeCollapseState(D,Ze,!1);if(!We||!D.visible||!st)return st;var mt=D.renderNodeCount,Kt=this.updateNodeAfterCollapseChange(D),Xt=mt-(ye===-1?0:1);return this.list.splice(ye+1,Xt,Kt.slice(1)),st},pe.prototype._setNodeCollapseState=function(D,ye,We){var Ze;if(D===this.root?Ze=!1:(W(ye)?(Ze=D.collapsible!==ye.collapsible,D.collapsible=ye.collapsible):D.collapsible?(Ze=D.collapsed!==ye.collapsed,D.collapsed=ye.collapsed):Ze=!1,Ze&&this._onDidChangeCollapseState.fire({node:D,deep:We})),!W(ye)&&ye.recursive)for(var st=0,mt=D.children;st<mt.length;st++){var Kt=mt[st];Ze=this._setNodeCollapseState(Kt,ye,!0)||Ze}return Ze},pe.prototype.expandTo=function(D){var ye=this;this.eventBufferer.bufferEvents(function(){for(var We=ye.getTreeNode(D);We.parent;)We=We.parent,D=D.slice(0,D.length-1),We.collapsed&&ye._setCollapseState(D,{collapsed:!1,recursive:!1})})},pe.prototype.refilter=function(){var D=this.root.renderNodeCount,ye=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,D,ye)},pe.prototype.createTreeNode=function(D,ye,We,Ze,st,mt){var Kt=this,Xt={parent:ye,element:D.element,children:[],depth:ye.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof D.collapsible=="boolean"?D.collapsible:typeof D.collapsed!="undefined",collapsed:typeof D.collapsed=="undefined"?this.collapseByDefault:D.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},no=this._filterNode(Xt,We);Ze&&st.push(Xt);var vo=k.d.from(D.children),lo=Ze&&no!==0&&!Xt.collapsed,Ro=k.d.map(vo,function(jo){return Kt.createTreeNode(jo,Xt,no,lo,st,mt)}),wo=0,_o=1;return k.d.forEach(Ro,function(jo){Xt.children.push(jo),_o+=jo.renderNodeCount,jo.visible&&(jo.visibleChildIndex=wo++)}),Xt.collapsible=Xt.collapsible||Xt.children.length>0,Xt.visibleChildrenCount=wo,Xt.visible=no===2?wo>0:no===1,Xt.visible?Xt.collapsed||(Xt.renderNodeCount=_o):(Xt.renderNodeCount=0,Ze&&st.pop()),mt&&mt(Xt),Xt},pe.prototype.updateNodeAfterCollapseChange=function(D){var ye=D.renderNodeCount,We=[];return this._updateNodeAfterCollapseChange(D,We),this._updateAncestorsRenderNodeCount(D.parent,We.length-ye),We},pe.prototype._updateNodeAfterCollapseChange=function(D,ye){if(D.visible===!1)return 0;if(ye.push(D),D.renderNodeCount=1,!D.collapsed)for(var We=0,Ze=D.children;We<Ze.length;We++){var st=Ze[We];D.renderNodeCount+=this._updateNodeAfterCollapseChange(st,ye)}return this._onDidChangeRenderNodeCount.fire(D),D.renderNodeCount},pe.prototype.updateNodeAfterFilterChange=function(D){var ye=D.renderNodeCount,We=[];return this._updateNodeAfterFilterChange(D,D.visible?1:0,We),this._updateAncestorsRenderNodeCount(D.parent,We.length-ye),We},pe.prototype._updateNodeAfterFilterChange=function(D,ye,We,Ze){Ze===void 0&&(Ze=!0);var st;if(D!==this.root){if(st=this._filterNode(D,ye),st===0)return D.visible=!1,D.renderNodeCount=0,!1;Ze&&We.push(D)}var mt=We.length;D.renderNodeCount=D===this.root?0:1;var Kt=!1;if(!D.collapsed||st!==0){for(var Xt=0,no=0,vo=D.children;no<vo.length;no++){var lo=vo[no];Kt=this._updateNodeAfterFilterChange(lo,st,We,Ze&&!D.collapsed)||Kt,lo.visible&&(lo.visibleChildIndex=Xt++)}D.visibleChildrenCount=Xt}else D.visibleChildrenCount=0;return D!==this.root&&(D.visible=st===2?Kt:st===1),D.visible?D.collapsed||(D.renderNodeCount+=We.length-mt):(D.renderNodeCount=0,Ze&&We.pop()),this._onDidChangeRenderNodeCount.fire(D),D.visible},pe.prototype._updateAncestorsRenderNodeCount=function(D,ye){if(ye===0)return;for(;D;)D.renderNodeCount+=ye,this._onDidChangeRenderNodeCount.fire(D),D=D.parent},pe.prototype._filterNode=function(D,ye){var We=this.filter?this.filter.filter(D.element,ye):1;return typeof We=="boolean"?(D.filterData=void 0,We?1:0):$(We)?(D.filterData=We.data,ie(We.visibility)):(D.filterData=void 0,ie(We))},pe.prototype.hasTreeNode=function(D,ye){if(ye===void 0&&(ye=this.root),!D||D.length===0)return!0;var We=D[0],Ze=D.slice(1);return We<0||We>ye.children.length?!1:this.hasTreeNode(Ze,ye.children[We])},pe.prototype.getTreeNode=function(D,ye){if(ye===void 0&&(ye=this.root),!D||D.length===0)return ye;var We=D[0],Ze=D.slice(1);if(We<0||We>ye.children.length)throw new L(this.user,"Invalid tree location");return this.getTreeNode(Ze,ye.children[We])},pe.prototype.getTreeNodeWithListIndex=function(D){if(D.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var ye=this.getParentNodeWithListIndex(D),We=ye.parentNode,Ze=ye.listIndex,st=ye.revealed,mt=ye.visible,Kt=D[D.length-1];if(Kt<0||Kt>We.children.length)throw new L(this.user,"Invalid tree location");var Xt=We.children[Kt];return{node:Xt,listIndex:Ze,revealed:st,visible:mt&&Xt.visible}},pe.prototype.getParentNodeWithListIndex=function(D,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 mt=D[0],Kt=D.slice(1);if(mt<0||mt>ye.children.length)throw new L(this.user,"Invalid tree location");for(var Xt=0;Xt<mt;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[mt],We+1,Ze,st)},pe.prototype.getNode=function(D){return D===void 0&&(D=[]),this.getTreeNode(D)},pe.prototype.getNodeLocation=function(D){for(var ye=[],We=D;We.parent;)ye.push(We.parent.children.indexOf(We)),We=We.parent;return ye.reverse()},pe.prototype.getParentNodeLocation=function(D){return D.length===0?void 0:D.length===1?[]:Object(s.w)(D)[0]},pe}(),le=e("X+cX"),Ce=e("MNsG"),Me=e("QDVR"),Te=e("Sdnv"),Fe=e("vl9R"),Ue=function(){var pe=function(ye,We){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var mt in st)st.hasOwnProperty(mt)&&(Ze[mt]=st[mt])},pe(ye,We)};return function(D,ye){pe(D,ye);function We(){this.constructor=D}D.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),Pe=function(){return Pe=Object.assign||function(pe){for(var D,ye=1,We=arguments.length;ye<We;ye++){D=arguments[ye];for(var Ze in D)Object.prototype.hasOwnProperty.call(D,Ze)&&(pe[Ze]=D[Ze])}return pe},Pe.apply(this,arguments)},ne=function(){for(var pe=0,D=0,ye=arguments.length;D<ye;D++)pe+=arguments[D].length;for(var We=Array(pe),Ze=0,D=0;D<ye;D++)for(var st=arguments[D],mt=0,Kt=st.length;mt<Kt;mt++,Ze++)We[Ze]=st[mt];return We},ee=function(pe){Ue(D,pe);function D(ye){var We=pe.call(this,ye.elements.map(function(Ze){return Ze.element}))||this;return We.data=ye,We}return D}(l.a);function ae(pe){return pe instanceof l.a?new ee(pe):pe}var q=function(){function pe(D,ye){this.modelProvider=D,this.dnd=ye,this.autoExpandDisposable=J.a.None}return pe.prototype.getDragURI=function(D){return this.dnd.getDragURI(D.element)},pe.prototype.getDragLabel=function(D,ye){return this.dnd.getDragLabel?this.dnd.getDragLabel(D.map(function(We){return We.element}),ye):void 0},pe.prototype.onDragStart=function(D,ye){this.dnd.onDragStart&&this.dnd.onDragStart(ae(D),ye)},pe.prototype.onDragOver=function(D,ye,We,Ze,st){var mt=this;st===void 0&&(st=!0);var Kt=this.dnd.onDragOver(ae(D),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 gn=mt.modelProvider(),En=gn.getNodeLocation(ye);gn.isCollapsed(En)&&gn.setCollapsed(En,!1),mt.autoExpandNode=void 0},500)),typeof Kt=="boolean"||!Kt.accept||typeof Kt.bubble=="undefined"||Kt.feedback){if(!st){var no=typeof Kt=="boolean"?Kt:Kt.accept,vo=typeof Kt=="boolean"?void 0:Kt.effect;return{accept:no,effect:vo,feedback:[We]}}return Kt}if(Kt.bubble===1){var lo=this.modelProvider(),Ro=lo.getNodeLocation(ye),wo=lo.getParentNodeLocation(Ro),_o=lo.getNode(wo),jo=wo&&lo.getListIndex(wo);return this.onDragOver(D,_o,jo,Ze,!1)}var Uo=this.modelProvider(),Do=Uo.getNodeLocation(ye),xo=Uo.getListIndex(Do),tn=Uo.getListRenderCount(Do);return Pe(Pe({},Kt),{feedback:Object(s.u)(xo,xo+tn)})},pe.prototype.drop=function(D,ye,We,Ze){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(ae(D),ye&&ye.element,We,Ze)},pe.prototype.onDragEnd=function(D){this.dnd.onDragEnd&&this.dnd.onDragEnd(D)},pe}();function ue(pe,D){return D&&Pe(Pe({},D),{identityProvider:D.identityProvider&&{getId:function(We){return D.identityProvider.getId(We.element)}},dnd:D.dnd&&new q(pe,D.dnd),multipleSelectionController:D.multipleSelectionController&&{isSelectionSingleChangeEvent:function(We){return D.multipleSelectionController.isSelectionSingleChangeEvent(Pe(Pe({},We),{element:We.element}))},isSelectionRangeChangeEvent:function(We){return D.multipleSelectionController.isSelectionRangeChangeEvent(Pe(Pe({},We),{element:We.element}))}},accessibilityProvider:D.accessibilityProvider&&Pe(Pe({},D.accessibilityProvider),{getAriaLabel:function(We){return D.accessibilityProvider.getAriaLabel(We.element)},getAriaLevel:function(We){return We.depth},getActiveDescendantId:D.accessibilityProvider.getActiveDescendantId&&function(ye){return D.accessibilityProvider.getActiveDescendantId(ye.element)}}),keyboardNavigationLabelProvider:D.keyboardNavigationLabelProvider&&Pe(Pe({},D.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(We){return D.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(We.element)}}),enableKeyboardNavigation:D.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(We){var Ze=pe(),st=Ze.getNodeLocation(We),mt=Ze.getParentNodeLocation(st),Kt=Ze.getNode(mt);return Kt.visibleChildrenCount},getPosInSet:function(We){return We.visibleChildIndex+1},isChecked:D.ariaProvider&&D.ariaProvider.isChecked?function(ye){return D.ariaProvider.isChecked(ye.element)}:void 0,getRole:D.ariaProvider&&D.ariaProvider.getRole?function(ye){return D.ariaProvider.getRole(ye.element)}:void 0}})}var X=function(){function pe(D){this.delegate=D}return pe.prototype.getHeight=function(D){return this.delegate.getHeight(D.element)},pe.prototype.getTemplateId=function(D){return this.delegate.getTemplateId(D.element)},pe.prototype.hasDynamicHeight=function(D){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(D.element)},pe.prototype.setDynamicHeight=function(D,ye){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(D.element,ye)},pe}(),he;(function(pe){pe.None="none",pe.OnHover="onHover",pe.Always="always"})(he||(he={}));var je=function(){function pe(D,ye){var We=this;ye===void 0&&(ye=[]),this._elements=ye,this.onDidChange=w.b.forEach(D,function(Ze){return We._elements=Ze})}return Object.defineProperty(pe.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),pe}(),Xe=function(){function pe(D,ye,We,Ze,st){st===void 0&&(st={}),this.renderer=D,this.modelProvider=ye,this.activeNodes=Ze,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=pe.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new Fe.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=J.a.None,this.disposables=new J.b,this.templateId=D.templateId,this.updateOptions(st),w.b.map(We,function(mt){return mt.node})(this.onDidChangeNodeTwistieState,this,this.disposables),D.onDidChangeTwistieState&&D.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}return pe.prototype.updateOptions=function(D){if(D===void 0&&(D={}),typeof D.indent!="undefined"&&(this.indent=Object(Te.a)(D.indent,0,40)),typeof D.renderIndentGuides!="undefined"){var ye=D.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 D.hideTwistiesOfChildlessElements!="undefined"&&(this.hideTwistiesOfChildlessElements=D.hideTwistiesOfChildlessElements)},pe.prototype.renderTemplate=function(D){var ye=Object(T.q)(D,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")),mt=this.renderer.renderTemplate(st);return{container:D,indent:We,twistie:Ze,indentGuidesDisposable:J.a.None,templateData:mt}},pe.prototype.renderElement=function(D,ye,We,Ze){typeof Ze=="number"&&(this.renderedNodes.set(D,{templateData:We,height:Ze}),this.renderedElements.set(D.element,D));var st=pe.DefaultIndent+(D.depth-1)*this.indent;We.twistie.style.paddingLeft=st+"px",We.indent.style.width=st+this.indent-16+"px",this.renderTwistie(D,We),typeof Ze=="number"&&this.renderIndentGuides(D,We),this.renderer.renderElement(D,ye,We.templateData,Ze)},pe.prototype.disposeElement=function(D,ye,We,Ze){We.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(D,ye,We.templateData,Ze),typeof Ze=="number"&&(this.renderedNodes.delete(D),this.renderedElements.delete(D.element))},pe.prototype.disposeTemplate=function(D){this.renderer.disposeTemplate(D.templateData)},pe.prototype.onDidChangeTwistieState=function(D){var ye=this.renderedElements.get(D);if(!ye)return;this.onDidChangeNodeTwistieState(ye)},pe.prototype.onDidChangeNodeTwistieState=function(D){var ye=this.renderedNodes.get(D);if(!ye)return;this.renderTwistie(D,ye.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(D,ye.templateData)},pe.prototype.renderTwistie=function(D,ye){this.renderer.renderTwistie&&this.renderer.renderTwistie(D.element,ye.twistie),D.collapsible&&(!this.hideTwistiesOfChildlessElements||D.visibleChildrenCount>0)?(Object(T.g)(ye.twistie,"codicon","codicon-chevron-down","collapsible"),Object(T.Y)(ye.twistie,"collapsed",D.collapsed)):Object(T.Q)(ye.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),D.collapsible?ye.container.setAttribute("aria-expanded",String(!D.collapsed)):ye.container.removeAttribute("aria-expanded")},pe.prototype.renderIndentGuides=function(D,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(),mt=D,Kt=function(){var lo=st.getNodeLocation(mt),Ro=st.getParentNodeLocation(lo);if(!Ro)return"break";var wo=st.getNode(Ro),_o=Object(T.a)(".indent-guide",{style:"width: "+Xt.indent+"px"});Xt.activeIndentNodes.has(wo)&&Object(T.f)(_o,"active"),ye.indent.childElementCount===0?ye.indent.appendChild(_o):ye.indent.insertBefore(_o,ye.indent.firstElementChild),Xt.renderedIndentGuides.add(wo,_o),Ze.add(Object(J.h)(function(){return We.renderedIndentGuides.delete(wo,_o)})),mt=wo},Xt=this;;){var no=Kt();if(no==="break")break}ye.indentGuidesDisposable=Ze},pe.prototype._onDidChangeActiveNodes=function(D){var ye=this;if(!this.shouldRenderIndentGuides)return;var We=new Set,Ze=this.modelProvider();D.forEach(function(st){var mt=Ze.getNodeLocation(st);try{var Kt=Ze.getParentNodeLocation(mt);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(mt){return Object(T.P)(mt,"active")})}),We.forEach(function(st){ye.activeIndentNodes.has(st)||ye.renderedIndentGuides.forEach(st,function(mt){return Object(T.f)(mt,"active")})}),this.activeIndentNodes=We},pe.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(J.f)(this.disposables)},pe.DefaultIndent=8,pe}(),me=function(){function pe(D,ye,We){this.tree=D,this.keyboardNavigationLabelProvider=ye,this._filter=We,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new J.b,D.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(pe.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"pattern",{set:function(ye){this._pattern=ye,this._lowercasePattern=ye.toLowerCase()},enumerable:!0,configurable:!0}),pe.prototype.filter=function(D,ye){if(this._filter){var We=this._filter.filter(D,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:m.a.Default,visibility:!0};var st=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(D),mt=st&&st.toString();if(typeof mt=="undefined")return{data:m.a.Default,visibility:!0};var Kt=Object(m.d)(this._pattern,this._lowercasePattern,0,mt,mt.toLowerCase(),0,!0);return Kt?(this._matchCount++,{data:Kt,visibility:!0}):this.tree.options.filterOnType?2:{data:m.a.Default,visibility:!0}},pe.prototype.reset=function(){this._totalCount=0,this._matchCount=0},pe.prototype.dispose=function(){Object(J.f)(this.disposables)},pe}(),ge=function(){function pe(D,ye,We,Ze,st){this.tree=D,this.view=We,this.filter=Ze,this.keyboardNavigationDelegate=st,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new w.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new w.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 mt=Object(T.q)(this.domNode,Object(T.a)(".controls"));this._filterOnType=!!D.options.filterOnType,this.filterOnTypeDomNode=Object(T.q)(mt,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)(mt,Object(T.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(I.a)("clear","Clear"),this.keyboardNavigationEventFilter=D.options.keyboardNavigationEventFilter,ye.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(D.options)}return Object.defineProperty(pe.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),pe.prototype.updateOptions=function(D){D.simpleKeyboardNavigation?this.disable():this.enable(),typeof D.filterOnType!="undefined"&&(this._filterOnType=!!D.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),typeof D.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=D.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},pe.prototype.enable=function(){var D=this;if(this._enabled)return;var ye=w.b.chain(Object(d.a)(this.view.getHTMLElement(),"keydown")).filter(function(Ze){return!we(Ze.target)||Ze.target===D.filterOnTypeDomNode}).filter(function(Ze){return Ze.key!=="Dead"&&!/^Media/.test(Ze.key)}).map(function(Ze){return new p.a(Ze)}).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter(function(){return D.automaticKeyboardNavigation||D.triggered}).filter(function(Ze){return D.keyboardNavigationDelegate.mightProducePrintableCharacter(Ze)||(D.pattern.length>0||D.triggered)&&(Ze.keyCode===9||Ze.keyCode===1)&&!Ze.altKey&&!Ze.ctrlKey&&!Ze.metaKey||Ze.keyCode===1&&(Ce.e?Ze.altKey&&!Ze.metaKey:Ze.ctrlKey)&&!Ze.shiftKey}).forEach(function(Ze){Ze.stopPropagation(),Ze.preventDefault()}).event,We=Object(d.a)(this.clearDomNode,"click");w.b.chain(w.b.any(ye,We)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1},pe.prototype.disable=function(){if(!this._enabled)return;this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1},pe.prototype.onEventOrInput=function(D){typeof D=="string"?this.onInput(D):D instanceof MouseEvent||D.keyCode===9||D.keyCode===1&&(Ce.e?D.altKey:D.ctrlKey)?this.onInput(""):D.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+D.browserEvent.key)},pe.prototype.onInput=function(D){var ye=this.view.getHTMLElement();D&&!this.domNode.parentElement?ye.append(this.domNode):!D&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=D,this._onDidChangePattern.fire(D),this.filter.pattern=D,this.tree.refilter(),D&&this.tree.focusNext(0,!0,void 0,function(st){return!m.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(),D||(this.triggered=!1)},pe.prototype.onDragStart=function(){var D=this,ye=this.view.getHTMLElement(),We=Object(T.C)(ye).left,Ze=ye.clientWidth,st=Ze/2,mt=this.domNode.clientWidth,Kt=new J.b,Xt=this.positionClassName,no=function(){switch(Xt){case"nw":D.domNode.style.top="4px",D.domNode.style.left="4px";break;case"ne":D.domNode.style.top="4px",D.domNode.style.left=Ze-mt-6+"px";break}},vo=function(wo){wo.preventDefault();var _o=wo.screenX-We;wo.dataTransfer&&(wo.dataTransfer.dropEffect="none"),_o<st?Xt="nw":Xt="ne",no()},lo=function(){D.positionClassName=Xt,D.domNode.className="monaco-list-type-filter "+D.positionClassName,D.domNode.style.top="",D.domNode.style.left="",Object(J.f)(Kt)};no(),Object(T.P)(this.domNode,Xt),Object(T.f)(this.domNode,"dragging"),Kt.add(Object(J.h)(function(){return Object(T.P)(D.domNode,"dragging")})),Object(d.a)(document,"dragover")(vo,null,Kt),Object(d.a)(this.domNode,"dragend")(lo,null,Kt),c.c.CurrentDragAndDropData=new c.b("vscode-ui"),Kt.add(Object(J.h)(function(){return c.c.CurrentDragAndDropData=void 0}))},pe.prototype.onDidSpliceModel=function(){if(!this._enabled||this.pattern.length===0)return;this.tree.refilter(),this.render()},pe.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},pe.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(I.a)("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(I.a)("enable filter on type","Enable Filter on Type")},pe.prototype.render=function(){var D=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&D?(this.messageDomNode.textContent=Object(I.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(T.Y)(this.domNode,"no-matches",D),this.domNode.title=Object(I.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)},pe.prototype.shouldAllowFocus=function(D){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!m.a.isDefault(D.filterData)},pe.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)},pe}();function we(pe){return pe.tagName==="INPUT"||pe.tagName==="TEXTAREA"}function Re(pe){return{elements:pe.elements.map(function(D){return D.element}),browserEvent:pe.browserEvent}}function Ee(pe,D){D(pe),pe.children.forEach(function(ye){return Ee(ye,D)})}var ve=function(){function pe(D){this.identityProvider=D,this.nodes=[],this._onDidChange=new w.a,this.onDidChange=this._onDidChange.event}return Object.defineProperty(pe.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),pe.prototype.set=function(D,ye){if(Object(s.g)(this.nodes,D))return;this._set(D,!1,ye)},pe.prototype._set=function(D,ye,We){if(this.nodes=ne(D),this.elements=void 0,this._nodeSet=void 0,!ye){var Ze=this;this._onDidChange.fire({get elements(){return Ze.get()},browserEvent:We})}},pe.prototype.get=function(){return this.elements||(this.elements=this.nodes.map(function(D){return D.element})),ne(this.elements)},pe.prototype.getNodes=function(){return this.nodes},pe.prototype.has=function(D){return this.nodeSet.has(D)},pe.prototype.onDidModelSplice=function(D){var ye=this,We=D.insertedNodes,Ze=D.deletedNodes;if(!this.identityProvider){var st=this.createNodeSet(),mt=function(tn){return st.delete(tn)};Ze.forEach(function(xo){return Ee(xo,mt)}),this.set(Object(Me.e)(st));return}var Kt=new Set,Xt=function(tn){return Kt.add(ye.identityProvider.getId(tn.element).toString())};Ze.forEach(function(xo){return Ee(xo,Xt)});var no=new Map,vo=function(tn){return no.set(ye.identityProvider.getId(tn.element).toString(),tn)};We.forEach(function(xo){return Ee(xo,vo)});for(var lo=[],Ro=0,wo=this.nodes;Ro<wo.length;Ro++){var _o=wo[Ro],jo=this.identityProvider.getId(_o.element).toString(),Uo=Kt.has(jo);if(!Uo)lo.push(_o);else{var Do=no.get(jo);Do&&lo.push(Do)}}this._set(lo,!0)},pe.prototype.createNodeSet=function(){for(var D=new Set,ye=0,We=this.nodes;ye<We.length;ye++){var Ze=We[ye];D.add(Ze)}return D},pe}(),Q=function(pe){Ue(D,pe);function D(ye,We){var Ze=pe.call(this,ye)||this;return Ze.tree=We,Ze}return D.prototype.onPointer=function(ye){if(we(ye.browserEvent.target))return;var We=ye.element;if(!We)return pe.prototype.onPointer.call(this,ye);if(this.isSelectionRangeChangeEvent(ye)||this.isSelectionSingleChangeEvent(ye))return pe.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 pe.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 pe.prototype.onPointer.call(this,ye);if(We.collapsible){var mt=this.tree.model,Kt=mt.getNodeLocation(We),Xt=ye.browserEvent.altKey;if(mt.setCollapsed(Kt,void 0,Xt),st&&Ze)return}pe.prototype.onPointer.call(this,ye)},D.prototype.onDoubleClick=function(ye){var We=Object(T.I)(ye.browserEvent.target,"monaco-tl-twistie");if(We)return;pe.prototype.onDoubleClick.call(this,ye)},D}(re.d),C=function(pe){Ue(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt){var no=pe.call(this,ye,We,Ze,st,Xt)||this;return no.focusTrait=mt,no.selectionTrait=Kt,no}return D.prototype.createMouseController=function(ye){return new Q(this,ye.tree)},D.prototype.splice=function(ye,We,Ze){var st=this;if(Ze===void 0&&(Ze=[]),pe.prototype.splice.call(this,ye,We,Ze),Ze.length===0)return;var mt=[],Kt=[];Ze.forEach(function(Xt,no){st.focusTrait.has(Xt)&&mt.push(ye+no),st.selectionTrait.has(Xt)&&Kt.push(ye+no)}),mt.length>0&&pe.prototype.setFocus.call(this,Object(s.f)(ne(pe.prototype.getFocus.call(this),mt))),Kt.length>0&&pe.prototype.setSelection.call(this,Object(s.f)(ne(pe.prototype.getSelection.call(this),Kt)))},D.prototype.setFocus=function(ye,We,Ze){var st=this;Ze===void 0&&(Ze=!1),pe.prototype.setFocus.call(this,ye,We),Ze||this.focusTrait.set(ye.map(function(mt){return st.element(mt)}),We)},D.prototype.setSelection=function(ye,We,Ze){var st=this;Ze===void 0&&(Ze=!1),pe.prototype.setSelection.call(this,ye,We),Ze||this.selectionTrait.set(ye.map(function(mt){return st.element(mt)}),We)},D}(re.c),F=function(){function pe(D,ye,We,Ze,st){var mt=this;st===void 0&&(st={}),this._options=st,this.eventBufferer=new w.c,this.disposables=new J.b,this._onWillRefilter=new w.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new w.a;var Kt=new X(We),Xt=new w.f,no=new w.f,vo=new je(no.event);this.renderers=Ze.map(function(xo){return new Xe(xo,function(){return mt.model},Xt.event,vo,st)});for(var lo=0,Ro=this.renderers;lo<Ro.length;lo++){var wo=Ro[lo];this.disposables.add(wo)}var _o;st.keyboardNavigationLabelProvider&&(_o=new me(this,st.keyboardNavigationLabelProvider,st.filter),st=Pe(Pe({},st),{filter:_o}),this.disposables.add(_o)),this.focus=new ve(st.identityProvider),this.selection=new ve(st.identityProvider),this.view=new C(D,ye,Kt,this.renderers,this.focus,this.selection,Pe(Pe({},ue(function(){return mt.model},st)),{tree:this})),this.model=this.createModel(D,this.view,st),Xt.input=this.model.onDidChangeCollapseState;var jo=w.b.forEach(this.model.onDidSplice,function(xo){mt.eventBufferer.bufferEvents(function(){mt.focus.onDidModelSplice(xo),mt.selection.onDidModelSplice(xo)})});if(jo(function(){return null},null,this.disposables),no.input=w.b.chain(w.b.any(jo,this.focus.onDidChange,this.selection.onDidChange)).debounce(function(){return null},0).map(function(){for(var xo=new Set,tn=0,gn=mt.focus.getNodes();tn<gn.length;tn++){var En=gn[tn];xo.add(En)}for(var on=0,On=mt.selection.getNodes();on<On.length;on++){var En=On[on];xo.add(En)}return Object(s.n)(xo)}).event,st.keyboardSupport!==!1){var Uo=w.b.chain(this.view.onKeyDown).filter(function(xo){return!we(xo.target)}).map(function(xo){return new p.a(xo)});Uo.filter(function(xo){return xo.keyCode===15}).on(this.onLeftArrow,this,this.disposables),Uo.filter(function(xo){return xo.keyCode===17}).on(this.onRightArrow,this,this.disposables),Uo.filter(function(xo){return xo.keyCode===10}).on(this.onSpace,this,this.disposables)}if(st.keyboardNavigationLabelProvider){var Do=st.keyboardNavigationDelegate||re.a;this.typeFilterController=new ge(this,this.model,this.view,_o,Do),this.focusNavigationFilter=function(xo){return mt.typeFilterController.shouldAllowFocus(xo)},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(pe.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidOpen",{get:function(){return w.b.map(this.view.onDidOpen,Re)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"openOnSingleClick",{get:function(){return typeof this._options.openOnSingleClick=="undefined"?!0:this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"expandOnlyOnTwistieClick",{get:function(){return typeof this._options.expandOnlyOnTwistieClick=="undefined"?!1:this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),pe.prototype.updateOptions=function(D){D===void 0&&(D={}),this._options=Pe(Pe({},this._options),D);for(var ye=0,We=this.renderers;ye<We.length;ye++){var Ze=We[ye];Ze.updateOptions(D)}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(pe.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),pe.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(pe.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(ye){this.view.scrollTop=ye},enumerable:!0,configurable:!0}),pe.prototype.domFocus=function(){this.view.domFocus()},pe.prototype.layout=function(D,ye){this.view.layout(D,ye)},pe.prototype.style=function(D){var ye="."+this.view.domId,We=[];D.treeIndentGuidesStroke&&(We.push(".monaco-list"+ye+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+ye+".always .monaco-tl-indent > .indent-guide { border-color: "+D.treeIndentGuidesStroke.transparent(.4)+"; }"),We.push(".monaco-list"+ye+" .monaco-tl-indent > .indent-guide.active { border-color: "+D.treeIndentGuidesStroke+"; }"));var Ze=We.join(`
`);Ze!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=Ze),this.view.style(D)},pe.prototype.collapse=function(D,ye){return ye===void 0&&(ye=!1),this.model.setCollapsed(D,!0,ye)},pe.prototype.expand=function(D,ye){return ye===void 0&&(ye=!1),this.model.setCollapsed(D,!1,ye)},pe.prototype.isCollapsible=function(D){return this.model.isCollapsible(D)},pe.prototype.setCollapsible=function(D,ye){return this.model.setCollapsible(D,ye)},pe.prototype.isCollapsed=function(D){return this.model.isCollapsed(D)},pe.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},pe.prototype.setSelection=function(D,ye){var We=this,Ze=D.map(function(mt){return We.model.getNode(mt)});this.selection.set(Ze,ye);var st=D.map(function(mt){return We.model.getListIndex(mt)}).filter(function(mt){return mt>-1});this.view.setSelection(st,ye,!0)},pe.prototype.getSelection=function(){return this.selection.get()},pe.prototype.setFocus=function(D,ye){var We=this,Ze=D.map(function(mt){return We.model.getNode(mt)});this.focus.set(Ze,ye);var st=D.map(function(mt){return We.model.getListIndex(mt)}).filter(function(mt){return mt>-1});this.view.setFocus(st,ye,!0)},pe.prototype.focusNext=function(D,ye,We,Ze){D===void 0&&(D=1),ye===void 0&&(ye=!1),Ze===void 0&&(Ze=this.focusNavigationFilter),this.view.focusNext(D,ye,We,Ze)},pe.prototype.getFocus=function(){return this.focus.get()},pe.prototype.reveal=function(D,ye){this.model.expandTo(D);var We=this.model.getListIndex(D);if(We===-1)return;this.view.reveal(We,ye)},pe.prototype.getRelativeTop=function(D){var ye=this.model.getListIndex(D);return ye===-1?null:this.view.getRelativeTop(ye)},pe.prototype.onLeftArrow=function(D){D.preventDefault(),D.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 mt=this.model.getParentNodeLocation(Ze);if(!mt)return;var Kt=this.model.getListIndex(mt);this.view.reveal(Kt),this.view.setFocus([Kt])}},pe.prototype.onRightArrow=function(D){D.preventDefault(),D.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 mt=this.view.getFocus()[0],Kt=mt+1;this.view.reveal(Kt),this.view.setFocus([Kt])}},pe.prototype.onSpace=function(D){D.preventDefault(),D.stopPropagation();var ye=this.view.getFocusedElements();if(ye.length===0)return;var We=ye[0],Ze=this.model.getNodeLocation(We),st=D.browserEvent.altKey;this.model.setCollapsed(Ze,void 0,st)},pe.prototype.dispose=function(){Object(J.f)(this.disposables),this.view.dispose()},pe}(),se=function(){return se=Object.assign||function(pe){for(var D,ye=1,We=arguments.length;ye<We;ye++){D=arguments[ye];for(var Ze in D)Object.prototype.hasOwnProperty.call(D,Ze)&&(pe[Ze]=D[Ze])}return pe},se.apply(this,arguments)},oe=function(){for(var pe=0,D=0,ye=arguments.length;D<ye;D++)pe+=arguments[D].length;for(var We=Array(pe),Ze=0,D=0;D<ye;D++)for(var st=arguments[D],mt=0,Kt=st.length;mt<Kt;mt++,Ze++)We[Ze]=st[mt];return We},be=function(){function pe(D,ye,We){We===void 0&&(We={}),this.user=D,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new B(D,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,mt){return We.sorter.compare(st.element,mt.element)}}),this.identityProvider=We.identityProvider}return pe.prototype.setChildren=function(D,ye,We,Ze){var st=this.getElementLocation(D);this._setChildren(st,this.preserveCollapseState(ye),We,Ze)},pe.prototype._setChildren=function(D,ye,We,Ze){var st=this,mt=new Set,Kt=new Set,Xt=function(lo){if(mt.add(lo.element),st.nodes.set(lo.element,lo),st.identityProvider){var Ro=st.identityProvider.getId(lo.element).toString();Kt.add(Ro),st.nodesByIdentity.set(Ro,lo)}We&&We(lo)},no=function(lo){if(mt.has(lo.element)||st.nodes.delete(lo.element),st.identityProvider){var Ro=st.identityProvider.getId(lo.element).toString();Kt.has(Ro)||st.nodesByIdentity.delete(Ro)}Ze&&Ze(lo)};this.model.splice(oe(D,[0]),Number.MAX_VALUE,ye,Xt,no)},pe.prototype.preserveCollapseState=function(D){var ye=this,We=D?Object(k.f)(D):k.d.empty();return this.sorter&&(We=k.d.fromArray(Object(s.r)(k.d.collect(We),this.sorter.compare.bind(this.sorter)))),k.d.map(We,function(Ze){var st=ye.nodes.get(Ze.element);if(!st&&ye.identityProvider){var mt=ye.identityProvider.getId(Ze.element).toString();st=ye.nodesByIdentity.get(mt)}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)})})},pe.prototype.rerender=function(D){var ye=this.getElementLocation(D);this.model.rerender(ye)},pe.prototype.has=function(D){return this.nodes.has(D)},pe.prototype.getListIndex=function(D){var ye=this.getElementLocation(D);return this.model.getListIndex(ye)},pe.prototype.getListRenderCount=function(D){var ye=this.getElementLocation(D);return this.model.getListRenderCount(ye)},pe.prototype.isCollapsible=function(D){var ye=this.getElementLocation(D);return this.model.isCollapsible(ye)},pe.prototype.setCollapsible=function(D,ye){var We=this.getElementLocation(D);return this.model.setCollapsible(We,ye)},pe.prototype.isCollapsed=function(D){var ye=this.getElementLocation(D);return this.model.isCollapsed(ye)},pe.prototype.setCollapsed=function(D,ye,We){var Ze=this.getElementLocation(D);return this.model.setCollapsed(Ze,ye,We)},pe.prototype.expandTo=function(D){var ye=this.getElementLocation(D);this.model.expandTo(ye)},pe.prototype.refilter=function(){this.model.refilter()},pe.prototype.getNode=function(D){if(D===void 0&&(D=null),D===null)return this.model.getNode(this.model.rootRef);var ye=this.nodes.get(D);if(!ye)throw new L(this.user,"Tree element not found: "+D);return ye},pe.prototype.getNodeLocation=function(D){return D.element},pe.prototype.getParentNodeLocation=function(D){if(D===null)throw new L(this.user,"Invalid getParentNodeLocation call");var ye=this.nodes.get(D);if(!ye)throw new L(this.user,"Tree element not found: "+D);var We=this.model.getNodeLocation(ye),Ze=this.model.getParentNodeLocation(We),st=this.model.getNode(Ze);return st.element},pe.prototype.getElementLocation=function(D){if(D===null)return[];var ye=this.nodes.get(D);if(!ye)throw new L(this.user,"Tree element not found: "+D);return this.model.getNodeLocation(ye)},pe}(),De=function(){return De=Object.assign||function(pe){for(var D,ye=1,We=arguments.length;ye<We;ye++){D=arguments[ye];for(var Ze in D)Object.prototype.hasOwnProperty.call(D,Ze)&&(pe[Ze]=D[Ze])}return pe},De.apply(this,arguments)};function Se(pe){var D=[pe.element],ye=pe.incompressible||!1;return{element:{elements:D,incompressible:ye},children:k.d.map(k.d.from(pe.children),Se),collapsible:pe.collapsible,collapsed:pe.collapsed}}function Ve(pe){for(var D=[pe.element],ye=pe.incompressible||!1,We,Ze;!(We=k.d.from(pe.children),Ze=k.d.collect(We,2),Ze.length!==1);){if(pe=Ze[0],pe.incompressible)break;D.push(pe.element)}return{element:{elements:D,incompressible:ye},children:k.d.map(k.d.concat(k.d.fromArray(Ze),We),Ve),collapsible:pe.collapsible,collapsed:pe.collapsed}}function Qe(pe,D){D===void 0&&(D=0);var ye;return D<pe.element.elements.length-1?ye=k.d.single(Qe(pe,D+1)):ye=k.d.map(k.d.from(pe.children),function(We){return Qe(We,0)}),D===0&&pe.element.incompressible?{element:pe.element.elements[D],children:ye,incompressible:!0,collapsible:pe.collapsible,collapsed:pe.collapsed}:{element:pe.element.elements[D],children:ye,collapsible:pe.collapsible,collapsed:pe.collapsed}}function it(pe){return Qe(pe,0)}function pt(pe,D,ye){return pe.element===D?De(De({},pe),{children:ye}):De(De({},pe),{children:k.d.map(k.d.from(pe.children),function(We){return pt(We,D,ye)})})}var Rt=function(){function pe(D,ye,We){We===void 0&&(We={}),this.user=D,this.nodes=new Map,this.model=new be(D,ye,We),this.enabled=typeof We.compressionEnabled=="undefined"?!0:We.compressionEnabled}return Object.defineProperty(pe.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),pe.prototype.setChildren=function(D,ye){if(D===null){var We=k.d.map(k.d.from(ye),this.enabled?Ve:Se);this._setChildren(null,We);return}var Ze=this.nodes.get(D);if(!Ze)throw new Error("Unknown compressed tree node");var st=this.model.getNode(Ze),mt=this.model.getParentNodeLocation(Ze),Kt=this.model.getNode(mt),Xt=it(st),no=pt(Xt,D,k.d.from(ye)),vo=(this.enabled?Ve:Se)(no),lo=Kt.children.map(function(Ro){return Ro===st?vo:Ro});this._setChildren(Kt.element,lo)},pe.prototype.setCompressionEnabled=function(D){if(D===this.enabled)return;this.enabled=D;var ye=this.model.getNode(),We=k.d.from(ye.children),Ze=k.d.map(We,it),st=k.d.map(Ze,D?Ve:Se);this._setChildren(null,st)},pe.prototype._setChildren=function(D,ye){var We=this,Ze=new Set,st=function(Xt){for(var no=0,vo=Xt.element.elements;no<vo.length;no++){var lo=vo[no];Ze.add(lo),We.nodes.set(lo,Xt.element)}},mt=function(Xt){for(var no=0,vo=Xt.element.elements;no<vo.length;no++){var lo=vo[no];Ze.has(lo)||We.nodes.delete(lo)}};this.model.setChildren(D,ye,st,mt)},pe.prototype.has=function(D){return this.nodes.has(D)},pe.prototype.getListIndex=function(D){var ye=this.getCompressedNode(D);return this.model.getListIndex(ye)},pe.prototype.getListRenderCount=function(D){var ye=this.getCompressedNode(D);return this.model.getListRenderCount(ye)},pe.prototype.getNode=function(D){if(typeof D=="undefined")return this.model.getNode();var ye=this.getCompressedNode(D);return this.model.getNode(ye)},pe.prototype.getNodeLocation=function(D){var ye=this.model.getNodeLocation(D);return ye===null?null:ye.elements[ye.elements.length-1]},pe.prototype.getParentNodeLocation=function(D){var ye=this.getCompressedNode(D),We=this.model.getParentNodeLocation(ye);return We===null?null:We.elements[We.elements.length-1]},pe.prototype.isCollapsible=function(D){var ye=this.getCompressedNode(D);return this.model.isCollapsible(ye)},pe.prototype.setCollapsible=function(D,ye){var We=this.getCompressedNode(D);return this.model.setCollapsible(We,ye)},pe.prototype.isCollapsed=function(D){var ye=this.getCompressedNode(D);return this.model.isCollapsed(ye)},pe.prototype.setCollapsed=function(D,ye,We){var Ze=this.getCompressedNode(D);return this.model.setCollapsed(Ze,ye,We)},pe.prototype.expandTo=function(D){var ye=this.getCompressedNode(D);this.model.expandTo(ye)},pe.prototype.rerender=function(D){var ye=this.getCompressedNode(D);this.model.rerender(ye)},pe.prototype.refilter=function(){this.model.refilter()},pe.prototype.getCompressedNode=function(D){if(D===null)return null;var ye=this.nodes.get(D);if(!ye)throw new L(this.user,"Tree element not found: "+D);return ye},pe}(),Mt=function(D){return D[D.length-1]},zt=function(){function pe(D,ye){this.unwrapper=D,this.node=ye}return Object.defineProperty(pe.prototype,"element",{get:function(){return this.node.element===null?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"children",{get:function(){var ye=this;return this.node.children.map(function(We){return new pe(ye.unwrapper,We)})},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),pe}();function uo(pe,D){return{splice:function(We,Ze,st){D.splice(We,Ze,st.map(function(mt){return pe.map(mt)}))}}}function ao(pe,D){return De(De({},D),{sorter:D.sorter&&{compare:function(We,Ze){return D.sorter.compare(We.elements[0],Ze.elements[0])}},identityProvider:D.identityProvider&&{getId:function(We){return D.identityProvider.getId(pe(We))}},filter:D.filter&&{filter:function(We,Ze){return D.filter.filter(pe(We),Ze)}}})}var so=function(){function pe(D,ye,We){var Ze=this;We===void 0&&(We={}),this.elementMapper=We.elementMapper||Mt;var st=function(Kt){return Ze.elementMapper(Kt.elements)};this.nodeMapper=new A(function(mt){return new zt(st,mt)}),this.model=new Rt(D,uo(this.nodeMapper,ye),ao(st,We))}return Object.defineProperty(pe.prototype,"onDidSplice",{get:function(){var ye=this;return w.b.map(this.model.onDidSplice,function(We){var Ze=We.insertedNodes,st=We.deletedNodes;return{insertedNodes:Ze.map(function(mt){return ye.nodeMapper.map(mt)}),deletedNodes:st.map(function(mt){return ye.nodeMapper.map(mt)})}})},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidChangeCollapseState",{get:function(){var ye=this;return w.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}),pe.prototype.setChildren=function(D,ye){this.model.setChildren(D,ye)},pe.prototype.setCompressionEnabled=function(D){this.model.setCompressionEnabled(D)},pe.prototype.has=function(D){return this.model.has(D)},pe.prototype.getListIndex=function(D){return this.model.getListIndex(D)},pe.prototype.getListRenderCount=function(D){return this.model.getListRenderCount(D)},pe.prototype.getNode=function(D){return this.nodeMapper.map(this.model.getNode(D))},pe.prototype.getNodeLocation=function(D){return D.element},pe.prototype.getParentNodeLocation=function(D){return this.model.getParentNodeLocation(D)},pe.prototype.isCollapsible=function(D){return this.model.isCollapsible(D)},pe.prototype.setCollapsible=function(D,ye){return this.model.setCollapsible(D,ye)},pe.prototype.isCollapsed=function(D){return this.model.isCollapsed(D)},pe.prototype.setCollapsed=function(D,ye,We){return this.model.setCollapsed(D,ye,We)},pe.prototype.expandTo=function(D){return this.model.expandTo(D)},pe.prototype.rerender=function(D){return this.model.rerender(D)},pe.prototype.refilter=function(){return this.model.refilter()},pe.prototype.getCompressedTreeNode=function(D){return D===void 0&&(D=null),this.model.getNode(D)},pe}(),Pt=e("ZCR3"),ft=function(){var pe=function(ye,We){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var mt in st)st.hasOwnProperty(mt)&&(Ze[mt]=st[mt])},pe(ye,We)};return function(D,ye){pe(D,ye);function We(){this.constructor=D}D.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),vt=function(){return vt=Object.assign||function(pe){for(var D,ye=1,We=arguments.length;ye<We;ye++){D=arguments[ye];for(var Ze in D)Object.prototype.hasOwnProperty.call(D,Ze)&&(pe[Ze]=D[Ze])}return pe},vt.apply(this,arguments)},At=function(pe,D,ye,We){var Ze=arguments.length,st=Ze<3?D:We===null?We=Object.getOwnPropertyDescriptor(D,ye):We,mt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")st=Reflect.decorate(pe,D,ye,We);else for(var Kt=pe.length-1;Kt>=0;Kt--)(mt=pe[Kt])&&(st=(Ze<3?mt(st):Ze>3?mt(D,ye,st):mt(D,ye))||st);return Ze>3&&st&&Object.defineProperty(D,ye,st),st},at=function(pe){ft(D,pe);function D(ye,We,Ze,st,mt){return mt===void 0&&(mt={}),pe.call(this,ye,We,Ze,st,mt)||this}return Object.defineProperty(D.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),D.prototype.setChildren=function(ye,We){this.model.setChildren(ye,We)},D.prototype.rerender=function(ye){if(ye===void 0){this.view.rerender();return}this.model.rerender(ye)},D.prototype.hasElement=function(ye){return this.model.has(ye)},D.prototype.createModel=function(ye,We,Ze){return new be(ye,We,Ze)},D}(F),tt=function(){function pe(D,ye){this._compressedTreeNodeProvider=D,this.renderer=ye,this.templateId=ye.templateId,ye.onDidChangeTwistieState&&(this.onDidChangeTwistieState=ye.onDidChangeTwistieState)}return Object.defineProperty(pe.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),pe.prototype.renderTemplate=function(D){var ye=this.renderer.renderTemplate(D);return{compressedTreeNode:void 0,data:ye}},pe.prototype.renderElement=function(D,ye,We,Ze){var st=this.compressedTreeNodeProvider.getCompressedTreeNode(D.element);st.element.elements.length===1?(We.compressedTreeNode=void 0,this.renderer.renderElement(D,ye,We.data,Ze)):(We.compressedTreeNode=st,this.renderer.renderCompressedElements(st,ye,We.data,Ze))},pe.prototype.disposeElement=function(D,ye,We,Ze){We.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(We.compressedTreeNode,ye,We.data,Ze):this.renderer.disposeElement&&this.renderer.disposeElement(D,ye,We.data,Ze)},pe.prototype.disposeTemplate=function(D){this.renderer.disposeTemplate(D.data)},pe.prototype.renderTwistie=function(D,ye){this.renderer.renderTwistie&&this.renderer.renderTwistie(D,ye)},At([Pt.a],pe.prototype,"compressedTreeNodeProvider",null),pe}();function ut(pe,D){return D&&vt(vt({},D),{keyboardNavigationLabelProvider:D.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(We){var Ze;try{Ze=pe().getCompressedTreeNode(We)}catch(st){return D.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(We)}return Ze.element.elements.length===1?D.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(We):D.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(Ze.element.elements)}}})}var Ct=function(pe){ft(D,pe);function D(ye,We,Ze,st,mt){mt===void 0&&(mt={});var Kt=this,Xt=function(){return Kt},no=st.map(function(vo){return new tt(Xt,vo)});return Kt=pe.call(this,ye,We,Ze,no,ut(Xt,mt))||this,Kt}return D.prototype.setChildren=function(ye,We){this.model.setChildren(ye,We)},D.prototype.createModel=function(ye,We,Ze){return new so(ye,We,Ze)},D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),pe.prototype.updateOptions.call(this,ye),typeof ye.compressionEnabled!="undefined"&&this.model.setCompressionEnabled(ye.compressionEnabled)},D.prototype.getCompressedTreeNode=function(ye){return ye===void 0&&(ye=null),this.model.getCompressedTreeNode(ye)},D}(at),gt=e("/cxE"),bt=function(){var pe=function(ye,We){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var mt in st)st.hasOwnProperty(mt)&&(Ze[mt]=st[mt])},pe(ye,We)};return function(D,ye){pe(D,ye);function We(){this.constructor=D}D.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),Gt=function(){return Gt=Object.assign||function(pe){for(var D,ye=1,We=arguments.length;ye<We;ye++){D=arguments[ye];for(var Ze in D)Object.prototype.hasOwnProperty.call(D,Ze)&&(pe[Ze]=D[Ze])}return pe},Gt.apply(this,arguments)},Nt=function(pe,D,ye,We){function Ze(st){return st instanceof ye?st:new ye(function(mt){mt(st)})}return new(ye||(ye=Promise))(function(st,mt){function Kt(vo){try{no(We.next(vo))}catch(lo){mt(lo)}}function Xt(vo){try{no(We.throw(vo))}catch(lo){mt(lo)}}function no(vo){vo.done?st(vo.value):Ze(vo.value).then(Kt,Xt)}no((We=We.apply(pe,D||[])).next())})},Et=function(pe,D){var ye={label:0,sent:function(){if(st[0]&1)throw st[1];return st[1]},trys:[],ops:[]},We,Ze,st,mt;return mt={next:Kt(0),throw:Kt(1),return:Kt(2)},typeof Symbol=="function"&&(mt[Symbol.iterator]=function(){return this}),mt;function Kt(no){return function(vo){return Xt([no,vo])}}function Xt(no){if(We)throw new TypeError("Generator is already executing.");for(;ye;)try{if(We=1,Ze&&(st=no[0]&2?Ze.return:no[0]?Ze.throw||((st=Ze.return)&&st.call(Ze),0):Ze.next)&&!(st=st.call(Ze,no[1])).done)return st;(Ze=0,st)&&(no=[no[0]&2,st.value]);switch(no[0]){case 0:case 1:st=no;break;case 4:return ye.label++,{value:no[1],done:!1};case 5:ye.label++,Ze=no[1],no=[0];continue;case 7:no=ye.ops.pop(),ye.trys.pop();continue;default:if(!(st=ye.trys,st=st.length>0&&st[st.length-1])&&(no[0]===6||no[0]===2)){ye=0;continue}if(no[0]===3&&(!st||no[1]>st[0]&&no[1]<st[3])){ye.label=no[1];break}if(no[0]===6&&ye.label<st[1]){ye.label=st[1],st=no;break}if(st&&ye.label<st[2]){ye.label=st[2],ye.ops.push(no);break}st[2]&&ye.ops.pop(),ye.trys.pop();continue}no=D.call(pe,ye)}catch(vo){no=[6,vo],Ze=0}finally{We=st=0}if(no[0]&5)throw no[1];return{value:no[0]?no[1]:void 0,done:!0}}},Je=function(){for(var pe=0,D=0,ye=arguments.length;D<ye;D++)pe+=arguments[D].length;for(var We=Array(pe),Ze=0,D=0;D<ye;D++)for(var st=arguments[D],mt=0,Kt=st.length;mt<Kt;mt++,Ze++)We[Ze]=st[mt];return We};function $e(pe){return Gt(Gt({},pe),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function ze(pe,D){return D.parent?D.parent===pe?!0:ze(pe,D.parent):!1}function Ke(pe,D){return pe===D||ze(pe,D)||ze(D,pe)}var fe=function(){function pe(D){this.node=D}return Object.defineProperty(pe.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"children",{get:function(){return this.node.children.map(function(ye){return new pe(ye)})},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),pe}(),G=function(){function pe(D,ye,We){this.renderer=D,this.nodeMapper=ye,this.onDidChangeTwistieState=We,this.renderedNodes=new Map,this.templateId=D.templateId}return pe.prototype.renderTemplate=function(D){var ye=this.renderer.renderTemplate(D);return{templateData:ye}},pe.prototype.renderElement=function(D,ye,We,Ze){this.renderer.renderElement(this.nodeMapper.map(D),ye,We.templateData,Ze)},pe.prototype.renderTwistie=function(D,ye){return Object(T.Y)(ye,"codicon-loading",D.slow),!1},pe.prototype.disposeElement=function(D,ye,We,Ze){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(D),ye,We.templateData,Ze)},pe.prototype.disposeTemplate=function(D){this.renderer.disposeTemplate(D.templateData)},pe.prototype.dispose=function(){this.renderedNodes.clear()},pe}();function te(pe){return{browserEvent:pe.browserEvent,elements:pe.elements.map(function(D){return D.element})}}var Y=function(pe){bt(D,pe);function D(ye){var We=pe.call(this,ye.elements.map(function(Ze){return Ze.element}))||this;return We.data=ye,We}return D}(l.a);function de(pe){return pe instanceof l.a?new Y(pe):pe}var ke=function(){function pe(D){this.dnd=D}return pe.prototype.getDragURI=function(D){return this.dnd.getDragURI(D.element)},pe.prototype.getDragLabel=function(D,ye){return this.dnd.getDragLabel?this.dnd.getDragLabel(D.map(function(We){return We.element}),ye):void 0},pe.prototype.onDragStart=function(D,ye){this.dnd.onDragStart&&this.dnd.onDragStart(de(D),ye)},pe.prototype.onDragOver=function(D,ye,We,Ze,st){return st===void 0&&(st=!0),this.dnd.onDragOver(de(D),ye&&ye.element,We,Ze)},pe.prototype.drop=function(D,ye,We,Ze){this.dnd.drop(de(D),ye&&ye.element,We,Ze)},pe.prototype.onDragEnd=function(D){this.dnd.onDragEnd&&this.dnd.onDragEnd(D)},pe}();function lt(pe){return pe&&Gt(Gt({},pe),{collapseByDefault:!0,identityProvider:pe.identityProvider&&{getId:function(ye){return pe.identityProvider.getId(ye.element)}},dnd:pe.dnd&&new ke(pe.dnd),multipleSelectionController:pe.multipleSelectionController&&{isSelectionSingleChangeEvent:function(ye){return pe.multipleSelectionController.isSelectionSingleChangeEvent(Gt(Gt({},ye),{element:ye.element}))},isSelectionRangeChangeEvent:function(ye){return pe.multipleSelectionController.isSelectionRangeChangeEvent(Gt(Gt({},ye),{element:ye.element}))}},accessibilityProvider:pe.accessibilityProvider&&Gt(Gt({},pe.accessibilityProvider),{getAriaLabel:function(ye){return pe.accessibilityProvider.getAriaLabel(ye.element)},getAriaLevel:pe.accessibilityProvider.getAriaLevel&&function(D){return pe.accessibilityProvider.getAriaLevel(D.element)},getActiveDescendantId:pe.accessibilityProvider.getActiveDescendantId&&function(D){return pe.accessibilityProvider.getActiveDescendantId(D.element)}}),filter:pe.filter&&{filter:function(ye,We){return pe.filter.filter(ye.element,We)}},keyboardNavigationLabelProvider:pe.keyboardNavigationLabelProvider&&Gt(Gt({},pe.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(ye){return pe.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ye.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof pe.expandOnlyOnTwistieClick=="undefined"?void 0:typeof pe.expandOnlyOnTwistieClick!="function"?pe.expandOnlyOnTwistieClick:function(D){return pe.expandOnlyOnTwistieClick(D.element)},ariaProvider:pe.ariaProvider&&{getPosInSet:function(ye,We){return pe.ariaProvider.getPosInSet(ye.element,We)},getSetSize:function(ye,We,Ze){return pe.ariaProvider.getSetSize(ye.element,We,Ze)},getRole:pe.ariaProvider.getRole?function(D){return pe.ariaProvider.getRole(D.element)}:void 0,isChecked:pe.ariaProvider.isChecked?function(D){var ye;return((ye=pe.ariaProvider)===null||ye===void 0?void 0:ye.isChecked)(D.element)}:void 0},additionalScrollHeight:pe.additionalScrollHeight})}function Tt(pe,D){D(pe),pe.children.forEach(function(ye){return Tt(ye,D)})}var Jt=function(){function pe(D,ye,We,Ze,st,mt){mt===void 0&&(mt={}),this.user=D,this.dataSource=st,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new w.a,this._onDidChangeNodeSlowState=new w.a,this.nodeMapper=new A(function(Kt){return new fe(Kt)}),this.disposables=new J.b,this.identityProvider=mt.identityProvider,this.autoExpandSingleChildren=typeof mt.autoExpandSingleChildren=="undefined"?!1:mt.autoExpandSingleChildren,this.sorter=mt.sorter,this.collapseByDefault=mt.collapseByDefault,this.tree=this.createTree(D,ye,We,Ze,mt),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(pe.prototype,"onDidChangeFocus",{get:function(){return w.b.map(this.tree.onDidChangeFocus,te)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidChangeSelection",{get:function(){return w.b.map(this.tree.onDidChangeSelection,te)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidOpen",{get:function(){return w.b.map(this.tree.onDidOpen,te)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),pe.prototype.createTree=function(D,ye,We,Ze,st){var mt=this,Kt=new X(We),Xt=Ze.map(function(vo){return new G(vo,mt.nodeMapper,mt._onDidChangeNodeSlowState.event)}),no=lt(st)||{};return new at(D,ye,Kt,Xt,no)},pe.prototype.updateOptions=function(D){D===void 0&&(D={}),this.tree.updateOptions(D)},pe.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(pe.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(ye){this.tree.scrollTop=ye},enumerable:!0,configurable:!0}),pe.prototype.domFocus=function(){this.tree.domFocus()},pe.prototype.layout=function(D,ye){this.tree.layout(D,ye)},pe.prototype.style=function(D){this.tree.style(D)},pe.prototype.getInput=function(){return this.root.element},pe.prototype.setInput=function(D,ye){return Nt(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=D,We=ye&&{viewState:ye,focus:[],selection:[]},[4,this._updateChildren(D,!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]}})})},pe.prototype._updateChildren=function(D,ye,We,Ze){return D===void 0&&(D=this.root.element),ye===void 0&&(ye=!0),We===void 0&&(We=!1),Nt(this,void 0,void 0,function(){var st;return Et(this,function(mt){switch(mt.label){case 0:if(typeof this.root.element=="undefined")throw new L(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return mt.sent(),[4,w.b.toPromise(this._onDidRender.event)];case 2:mt.sent(),mt.label=3;case 3:return st=this.getDataNode(D),[4,this.refreshAndRenderNode(st,ye,Ze)];case 4:if(mt.sent(),We)try{this.tree.rerender(st)}catch(Kt){}return[2]}})})},pe.prototype.rerender=function(D){if(D===void 0||D===this.root.element){this.tree.rerender();return}var ye=this.getDataNode(D);this.tree.rerender(ye)},pe.prototype.collapse=function(D,ye){ye===void 0&&(ye=!1);var We=this.getDataNode(D);return this.tree.collapse(We===this.root?null:We,ye)},pe.prototype.expand=function(D,ye){return ye===void 0&&(ye=!1),Nt(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 L(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return st.sent(),[4,w.b.toPromise(this._onDidRender.event)];case 2:st.sent(),st.label=3;case 3:return We=this.getDataNode(D),this.tree.hasElement(We)&&!this.tree.isCollapsible(We)?[2,!1]:We.refreshPromise?[4,this.root.refreshPromise]:[3,6];case 4:return st.sent(),[4,w.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,w.b.toPromise(this._onDidRender.event)];case 8:st.sent(),st.label=9;case 9:return[2,Ze]}})})},pe.prototype.setSelection=function(D,ye){var We=this,Ze=D.map(function(st){return We.getDataNode(st)});this.tree.setSelection(Ze,ye)},pe.prototype.getSelection=function(){var D=this.tree.getSelection();return D.map(function(ye){return ye.element})},pe.prototype.setFocus=function(D,ye){var We=this,Ze=D.map(function(st){return We.getDataNode(st)});this.tree.setFocus(Ze,ye)},pe.prototype.getFocus=function(){var D=this.tree.getFocus();return D.map(function(ye){return ye.element})},pe.prototype.reveal=function(D,ye){this.tree.reveal(this.getDataNode(D),ye)},pe.prototype.getDataNode=function(D){var ye=this.nodes.get(D===this.root.element?null:D);if(!ye)throw new L(this.user,"Data tree node not found: "+D);return ye},pe.prototype.refreshAndRenderNode=function(D,ye,We){return Nt(this,void 0,void 0,function(){return Et(this,function(Ze){switch(Ze.label){case 0:return[4,this.refreshNode(D,ye,We)];case 1:return Ze.sent(),this.render(D,We),[2]}})})},pe.prototype.refreshNode=function(D,ye,We){return Nt(this,void 0,void 0,function(){var Ze,st=this;return Et(this,function(mt){return this.subTreeRefreshPromises.forEach(function(Kt,Xt){!Ze&&Ke(Xt,D)&&(Ze=Kt.then(function(){return st.refreshNode(D,ye,We)}))}),Ze?[2,Ze]:[2,this.doRefreshSubTree(D,ye,We)]})})},pe.prototype.doRefreshSubTree=function(D,ye,We){return Nt(this,void 0,void 0,function(){var Ze,st,mt=this;return Et(this,function(Kt){switch(Kt.label){case 0:D.refreshPromise=new Promise(function(Xt){return Ze=Xt}),this.subTreeRefreshPromises.set(D,D.refreshPromise),D.refreshPromise.finally(function(){D.refreshPromise=void 0,mt.subTreeRefreshPromises.delete(D)}),Kt.label=1;case 1:return Kt.trys.push([1,,4,5]),[4,this.doRefreshNode(D,ye,We)];case 2:return st=Kt.sent(),D.stale=!1,[4,Promise.all(st.map(function(Xt){return mt.doRefreshSubTree(Xt,ye,We)}))];case 3:return Kt.sent(),[3,5];case 4:return Ze(),[7];case 5:return[2]}})})},pe.prototype.doRefreshNode=function(D,ye,We){return Nt(this,void 0,void 0,function(){var Ze,st,mt,Kt,Xt=this;return Et(this,function(no){switch(no.label){case 0:D.hasChildren=!!this.dataSource.hasChildren(D.element),D.hasChildren?(st=Object(le.l)(800),st.then(function(){D.slow=!0,Xt._onDidChangeNodeSlowState.fire(D)},function(vo){return null}),Ze=this.doGetChildren(D).finally(function(){return st.cancel()})):Ze=Promise.resolve([]),no.label=1;case 1:return no.trys.push([1,3,4,5]),[4,Ze];case 2:return mt=no.sent(),[2,this.setChildren(D,mt,ye,We)];case 3:if(Kt=no.sent(),D!==this.root&&this.tree.collapse(D===this.root?null:D),Object(gt.d)(Kt))return[2,[]];throw Kt;case 4:return D.slow&&(D.slow=!1,this._onDidChangeNodeSlowState.fire(D)),[7];case 5:return[2]}})})},pe.prototype.doGetChildren=function(D){var ye=this,We=this.refreshPromises.get(D);return We||(We=Object(le.f)(function(){return Nt(ye,void 0,void 0,function(){var Ze;return Et(this,function(st){switch(st.label){case 0:return[4,this.dataSource.getChildren(D.element)];case 1:return Ze=st.sent(),[2,this.processChildren(Ze)]}})})}),this.refreshPromises.set(D,We),We.finally(function(){return ye.refreshPromises.delete(D)}))},pe.prototype._onDidChangeCollapseState=function(D){var ye=D.node,We=D.deep;!ye.collapsed&&ye.element.stale&&(We?this.collapse(ye.element.element):this.refreshAndRenderNode(ye.element,!1).catch(gt.e))},pe.prototype.setChildren=function(D,ye,We,Ze){var st,mt=this;if(D.children.length===0&&ye.length===0)return[];for(var Kt=new Map,Xt=new Map,no=0,vo=D.children;no<vo.length;no++){var lo=vo[no];if(Kt.set(lo.element,lo),this.identityProvider){var Ro=this.tree.isCollapsed(lo);Xt.set(lo.id,{node:lo,collapsed:Ro})}}for(var wo=[],_o=ye.map(function(gn){var En=!!mt.dataSource.hasChildren(gn);if(!mt.identityProvider){var on=$e({element:gn,parent:D,hasChildren:En});return En&&mt.collapseByDefault&&!mt.collapseByDefault(gn)&&(on.collapsedByDefault=!1,wo.push(on)),on}var On=mt.identityProvider.getId(gn).toString(),Hn=Xt.get(On);if(Hn){var on=Hn.node;return Kt.delete(on.element),mt.nodes.delete(on.element),mt.nodes.set(gn,on),on.element=gn,on.hasChildren=En,We?Hn.collapsed?(on.children.forEach(function(bi){return Tt(bi,function(kn){return mt.nodes.delete(kn.element)})}),on.children.splice(0,on.children.length),on.stale=!0):wo.push(on):En&&mt.collapseByDefault&&!mt.collapseByDefault(gn)&&(on.collapsedByDefault=!1,wo.push(on)),on}var Rn=$e({element:gn,parent:D,id:On,hasChildren:En});return Ze&&Ze.viewState.focus&&Ze.viewState.focus.indexOf(On)>-1&&Ze.focus.push(Rn),Ze&&Ze.viewState.selection&&Ze.viewState.selection.indexOf(On)>-1&&Ze.selection.push(Rn),Ze&&Ze.viewState.expanded&&Ze.viewState.expanded.indexOf(On)>-1?wo.push(Rn):En&&mt.collapseByDefault&&!mt.collapseByDefault(gn)&&(Rn.collapsedByDefault=!1,wo.push(Rn)),Rn}),jo=0,Uo=Object(Me.e)(Kt);jo<Uo.length;jo++){var Do=Uo[jo];Tt(Do,function(gn){return mt.nodes.delete(gn.element)})}for(var xo=0,tn=_o;xo<tn.length;xo++){var lo=tn[xo];this.nodes.set(lo.element,lo)}return(st=D.children).splice.apply(st,Je([0,D.children.length],_o)),D!==this.root&&this.autoExpandSingleChildren&&_o.length===1&&wo.length===0&&(_o[0].collapsedByDefault=!1,wo.push(_o[0])),wo},pe.prototype.render=function(D,ye){var We=this,Ze=D.children.map(function(st){return We.asTreeElement(st,ye)});this.tree.setChildren(D===this.root?null:D,Ze),D!==this.root&&this.tree.setCollapsible(D,D.hasChildren),this._onDidRender.fire()},pe.prototype.asTreeElement=function(D,ye){var We=this;if(D.stale)return{element:D,collapsible:D.hasChildren,collapsed:!0};var Ze;return ye&&ye.viewState.expanded&&D.id&&ye.viewState.expanded.indexOf(D.id)>-1?Ze=!1:Ze=D.collapsedByDefault,D.collapsedByDefault=void 0,{element:D,children:D.hasChildren?k.d.map(k.d.fromArray(D.children),function(st){return We.asTreeElement(st,ye)}):[],collapsible:D.hasChildren,collapsed:Ze}},pe.prototype.processChildren=function(D){return this.sorter&&D.sort(this.sorter.compare.bind(this.sorter)),D},pe.prototype.dispose=function(){this.disposables.dispose()},pe}(),eo=function(){function pe(D){this.node=D}return Object.defineProperty(pe.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(pe.prototype,"children",{get:function(){return this.node.children.map(function(ye){return new pe(ye)})},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),pe}(),po=function(){function pe(D,ye,We,Ze){this.renderer=D,this.nodeMapper=ye,this.compressibleNodeMapperProvider=We,this.onDidChangeTwistieState=Ze,this.renderedNodes=new Map,this.disposables=[],this.templateId=D.templateId}return pe.prototype.renderTemplate=function(D){var ye=this.renderer.renderTemplate(D);return{templateData:ye}},pe.prototype.renderElement=function(D,ye,We,Ze){this.renderer.renderElement(this.nodeMapper.map(D),ye,We.templateData,Ze)},pe.prototype.renderCompressedElements=function(D,ye,We,Ze){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(D),ye,We.templateData,Ze)},pe.prototype.renderTwistie=function(D,ye){return Object(T.Y)(ye,"codicon-loading",D.slow),!1},pe.prototype.disposeElement=function(D,ye,We,Ze){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(D),ye,We.templateData,Ze)},pe.prototype.disposeCompressedElements=function(D,ye,We,Ze){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(D),ye,We.templateData,Ze)},pe.prototype.disposeTemplate=function(D){this.renderer.disposeTemplate(D.templateData)},pe.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(J.f)(this.disposables)},pe}();function co(pe){var D=pe&&lt(pe);return D&&Gt(Gt({},D),{keyboardNavigationLabelProvider:D.keyboardNavigationLabelProvider&&Gt(Gt({},D.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(We){return pe.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(We.map(function(Ze){return Ze.element}))}})})}var Eo=function(pe){bt(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt){Xt===void 0&&(Xt={});var no=pe.call(this,ye,We,Ze,mt,Kt,Xt)||this;return no.compressionDelegate=st,no.compressibleNodeMapper=new A(function(vo){return new eo(vo)}),no.filter=Xt.filter,no}return D.prototype.createTree=function(ye,We,Ze,st,mt){var Kt=this,Xt=new X(Ze),no=st.map(function(lo){return new po(lo,Kt.nodeMapper,function(){return Kt.compressibleNodeMapper},Kt._onDidChangeNodeSlowState.event)}),vo=co(mt)||{};return new Ct(ye,We,Xt,no,vo)},D.prototype.asTreeElement=function(ye,We){return Gt({incompressible:this.compressionDelegate.isIncompressible(ye.element)},pe.prototype.asTreeElement.call(this,ye,We))},D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),this.tree.updateOptions(ye)},D.prototype.render=function(ye,We){var Ze=this;if(!this.identityProvider)return pe.prototype.render.call(this,ye,We);var st=function(jo){return Ze.identityProvider.getId(jo).toString()},mt=function(jo){for(var Uo=new Set,Do=0,xo=jo;Do<xo.length;Do++){var tn=xo[Do],gn=Ze.tree.getCompressedTreeNode(tn===Ze.root?null:tn);if(!gn.element)continue;for(var En=0,on=gn.element.elements;En<on.length;En++){var On=on[En];Uo.add(st(On.element))}}return Uo},Kt=mt(this.tree.getSelection()),Xt=mt(this.tree.getFocus());pe.prototype.render.call(this,ye,We);var no=this.getSelection(),vo=!1,lo=this.getFocus(),Ro=!1,wo=function _o(jo){var Uo=jo.element;if(Uo)for(var Do=0;Do<Uo.elements.length;Do++){var xo=st(Uo.elements[Do].element),tn=Uo.elements[Uo.elements.length-1].element;Kt.has(xo)&&no.indexOf(tn)===-1&&(no.push(tn),vo=!0),Xt.has(xo)&&lo.indexOf(tn)===-1&&(lo.push(tn),Ro=!0)}jo.children.forEach(_o)};wo(this.tree.getCompressedTreeNode(ye===this.root?null:ye)),vo&&this.setSelection(no),Ro&&this.setFocus(lo)},D.prototype.processChildren=function(ye){var We=this;return this.filter&&(ye=ye.filter(function(Ze){var st=We.filter.filter(Ze,1),mt=Oo(st);if(mt===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return mt===1})),pe.prototype.processChildren.call(this,ye)},D}(Jt);function Oo(pe){return typeof pe=="boolean"?pe?1:0:$(pe)?ie(pe.visibility):ie(pe)}var Ao=function(){var pe=function(ye,We){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var mt in st)st.hasOwnProperty(mt)&&(Ze[mt]=st[mt])},pe(ye,We)};return function(D,ye){pe(D,ye);function We(){this.constructor=D}D.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),Zo=function(pe){Ao(D,pe);function D(ye,We,Ze,st,mt,Kt){Kt===void 0&&(Kt={});var Xt=pe.call(this,ye,We,Ze,st,Kt)||this;return Xt.user=ye,Xt.dataSource=mt,Xt.identityProvider=Kt.identityProvider,Xt}return D.prototype.createModel=function(ye,We,Ze){return new be(ye,We,Ze)},D}(F),Co=e("R3nR"),Wo=function(){var pe=function(ye,We){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var mt in st)st.hasOwnProperty(mt)&&(Ze[mt]=st[mt])},pe(ye,We)};return function(D,ye){pe(D,ye);function We(){this.constructor=D}D.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),Go=function(){return Go=Object.assign||function(pe){for(var D,ye=1,We=arguments.length;ye<We;ye++){D=arguments[ye];for(var Ze in D)Object.prototype.hasOwnProperty.call(D,Ze)&&(pe[Ze]=D[Ze])}return pe},Go.apply(this,arguments)},Bo=function(pe,D,ye,We){var Ze=arguments.length,st=Ze<3?D:We===null?We=Object.getOwnPropertyDescriptor(D,ye):We,mt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")st=Reflect.decorate(pe,D,ye,We);else for(var Kt=pe.length-1;Kt>=0;Kt--)(mt=pe[Kt])&&(st=(Ze<3?mt(st):Ze>3?mt(D,ye,st):mt(D,ye))||st);return Ze>3&&st&&Object.defineProperty(D,ye,st),st},Mo=function(pe,D){return function(ye,We){D(ye,We,pe)}},Qo,fn=Object(H.c)("listService"),Vo=function(){function pe(D){this._themeService=D,this.disposables=new J.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}return Object.defineProperty(pe.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),pe.prototype.register=function(D,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(mt){return mt.widget===D}))throw new Error("Cannot register the same widget multiple times");var st={widget:D,extraContextKeys:ye};return this.lists.push(st),D.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=D),Object(J.e)(D.onDidFocus(function(){return We._lastFocusedWidget=D}),Object(J.h)(function(){return We.lists.splice(We.lists.indexOf(st),1)}),D.onDidDispose(function(){We.lists=We.lists.filter(function(mt){return mt!==st}),We._lastFocusedWidget===D&&(We._lastFocusedWidget=void 0)}))},pe.prototype.dispose=function(){this.disposables.dispose()},pe=Bo([Mo(0,_.c)],pe),pe}(),mn=new O.d("listFocus",!0),yn=new O.d("listSupportsMultiselect",!0),dn=O.a.and(mn,O.a.not(f)),rn=new O.d("listHasSelectionOrFocus",!1),pn=new O.d("listDoubleSelection",!1),zo=new O.d("listMultiSelection",!1),Ho=new O.d("listSupportsKeyboardNavigation",!0),St="listAutomaticKeyboardNavigation",ot=new O.d(St,!0),nt=!1;function Dt(pe,D){var ye=pe.createScoped(D.getHTMLElement());return mn.bindTo(ye),ye}var _e="workbench.list.multiSelectModifier",M="workbench.list.openMode",P="workbench.list.horizontalScrolling",Z="workbench.list.keyboardNavigation",Ae="workbench.list.automaticKeyboardNavigation",xe="workbench.tree.indent",Ne="workbench.tree.renderIndentGuides";function dt(pe){return Object(U.f)(pe,P,"workbench.tree.horizontalScrolling")}function ht(pe){return pe.getValue(_e)==="alt"}function xt(pe){return pe.getValue(M)!=="doubleClick"}var Bt=function(pe){Wo(D,pe);function D(ye){var We=pe.call(this)||this;return We.configurationService=ye,We.useAltAsMultipleSelectionModifier=ht(ye),We.registerListeners(),We}return D.prototype.registerListeners=function(){var ye=this;this._register(this.configurationService.onDidChangeConfiguration(function(We){We.affectsConfiguration(_e)&&(ye.useAltAsMultipleSelectionModifier=ht(ye.configurationService))}))},D.prototype.isSelectionSingleChangeEvent=function(ye){return this.useAltAsMultipleSelectionModifier?ye.browserEvent.altKey:Object(re.f)(ye)},D.prototype.isSelectionRangeChangeEvent=function(ye){return Object(re.e)(ye)},D}(J.a),Ht=function(pe){Wo(D,pe);function D(ye,We){var Ze=pe.call(this)||this;return Ze.configurationService=ye,Ze.existingOpenController=We,Ze.openOnSingleClick=xt(ye),Ze.registerListeners(),Ze}return D.prototype.registerListeners=function(){var ye=this;this._register(this.configurationService.onDidChangeConfiguration(function(We){We.affectsConfiguration(M)&&(ye.openOnSingleClick=xt(ye.configurationService))}))},D.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},D}(J.a);function Ut(pe,D,ye){var We=new J.b,Ze=Go({},pe);if(pe.multipleSelectionSupport!==!1&&!pe.multipleSelectionController){var st=new Bt(D);Ze.multipleSelectionController=st,We.add(st)}var mt=new Ht(D,pe.openController);return Ze.openController=mt,We.add(mt),Ze.keyboardNavigationDelegate={mightProducePrintableCharacter:function(Xt){return ye.mightProducePrintableCharacter(Xt)}},[Ze,We]}function oo(pe,D){var ye=!1;return function(We){if(ye)return ye=!1,!1;var Ze=D.softDispatch(We,pe);return Ze&&Ze.enterChord?(ye=!0,!1):(ye=!1,!0)}}var Zt=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro){var wo=this,_o=Oe(We,mt,Kt,vo,lo,Ro),jo=_o.options,Uo=_o.getAutomaticKeyboardNavigation,Do=_o.disposable;return wo=pe.call(this,ye,We,Ze,st,jo)||this,wo.disposables.add(Do),wo.internals=new rt(wo,jo,Uo,mt.overrideStyles,Kt,Xt,no,vo,Ro),wo.disposables.add(wo.internals),wo}return D=Bo([Mo(5,O.c),Mo(6,fn),Mo(7,_.c),Mo(8,U.a),Mo(9,x.a),Mo(10,Co.b)],D),D}(at),fo=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro,wo){var _o=this,jo=Oe(We,Kt,Xt,lo,Ro,wo),Uo=jo.options,Do=jo.getAutomaticKeyboardNavigation,xo=jo.disposable;return _o=pe.call(this,ye,We,Ze,st,mt,Uo)||this,_o.disposables.add(xo),_o.internals=new rt(_o,Uo,Do,Kt.overrideStyles,Xt,no,vo,lo,wo),_o.disposables.add(_o.internals),_o}return D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),pe.prototype.updateOptions.call(this,ye),ye.overrideStyles&&this.internals.updateStyleOverrides(ye.overrideStyles)},D=Bo([Mo(6,O.c),Mo(7,fn),Mo(8,_.c),Mo(9,U.a),Mo(10,x.a),Mo(11,Co.b)],D),D}(Zo),yt=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro,wo){var _o=this,jo=Oe(We,Kt,Xt,lo,Ro,wo),Uo=jo.options,Do=jo.getAutomaticKeyboardNavigation,xo=jo.disposable;return _o=pe.call(this,ye,We,Ze,st,mt,Uo)||this,_o.disposables.add(xo),_o.internals=new rt(_o,Uo,Do,Kt.overrideStyles,Xt,no,vo,lo,wo),_o.disposables.add(_o.internals),_o}return D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),pe.prototype.updateOptions.call(this,ye),ye.overrideStyles&&this.internals.updateStyleOverrides(ye.overrideStyles)},D=Bo([Mo(6,O.c),Mo(7,fn),Mo(8,_.c),Mo(9,U.a),Mo(10,x.a),Mo(11,Co.b)],D),D}(Jt),He=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro,wo,_o){var jo=this,Uo=Oe(We,Xt,no,Ro,wo,_o),Do=Uo.options,xo=Uo.getAutomaticKeyboardNavigation,tn=Uo.disposable;return jo=pe.call(this,ye,We,Ze,st,mt,Kt,Do)||this,jo.disposables.add(tn),jo.internals=new rt(jo,Do,xo,Xt.overrideStyles,no,vo,lo,Ro,_o),jo.disposables.add(jo.internals),jo}return D=Bo([Mo(7,O.c),Mo(8,fn),Mo(9,_.c),Mo(10,U.a),Mo(11,x.a),Mo(12,Co.b)],D),D}(Eo);function Oe(pe,D,ye,We,Ze,st){Ho.bindTo(ye),nt||(ot.bindTo(ye),nt=!0);var mt=function(){var Uo=ye.getContextKeyValue(St);return Uo&&(Uo=We.getValue(Ae)),Uo},Kt=st.isScreenReaderOptimized(),Xt=Kt?"simple":We.getValue(Z),no=typeof D.horizontalScrolling!="undefined"?D.horizontalScrolling:dt(We),vo=xt(We),lo=Ut(D,We,Ze),Ro=lo[0],wo=lo[1],_o=D.additionalScrollHeight;return{getAutomaticKeyboardNavigation:mt,disposable:wo,options:Go(Go({keyboardSupport:!1},Ro),{indent:We.getValue(xe),renderIndentGuides:We.getValue(Ne),automaticKeyboardNavigation:mt(),simpleKeyboardNavigation:Xt==="simple",filterOnType:Xt==="filter",horizontalScrolling:no,openOnSingleClick:vo,keyboardNavigationEventFilter:oo(pe,Ze),additionalScrollHeight:_o,hideTwistiesOfChildlessElements:D.hideTwistiesOfChildlessElements})}}var rt=function(){function pe(D,ye,We,Ze,st,mt,Kt,Xt,no){var vo=this;this.tree=D,this.themeService=Kt,this.disposables=[],this.contextKeyService=Dt(st,D);var lo=yn.bindTo(this.contextKeyService);lo.set(!(ye.multipleSelectionSupport===!1)),this.hasSelectionOrFocus=rn.bindTo(this.contextKeyService),this.hasDoubleSelection=pn.bindTo(this.contextKeyService),this.hasMultiSelection=zo.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=ht(Xt);var Ro=new Set;Ro.add(St);var wo=function(){var jo=no.isScreenReaderOptimized(),Uo=jo?"simple":Xt.getValue(Z);D.updateOptions({simpleKeyboardNavigation:Uo==="simple",filterOnType:Uo==="filter"})};this.updateStyleOverrides(Ze),this.disposables.push(this.contextKeyService,mt.register(D),D.onDidChangeSelection(function(){var _o=D.getSelection(),jo=D.getFocus();vo.hasSelectionOrFocus.set(_o.length>0||jo.length>0),vo.hasMultiSelection.set(_o.length>1),vo.hasDoubleSelection.set(_o.length===2)}),D.onDidChangeFocus(function(){var _o=D.getSelection(),jo=D.getFocus();vo.hasSelectionOrFocus.set(_o.length>0||jo.length>0)}),Xt.onDidChangeConfiguration(function(_o){if(_o.affectsConfiguration(M)&&D.updateOptions({openOnSingleClick:xt(Xt)}),_o.affectsConfiguration(_e)&&(vo._useAltAsMultipleSelectionModifier=ht(Xt)),_o.affectsConfiguration(xe)){var jo=Xt.getValue(xe);D.updateOptions({indent:jo})}if(_o.affectsConfiguration(Ne)){var Uo=Xt.getValue(Ne);D.updateOptions({renderIndentGuides:Uo})}_o.affectsConfiguration(Z)&&wo(),_o.affectsConfiguration(Ae)&&D.updateOptions({automaticKeyboardNavigation:We()})}),this.contextKeyService.onDidChangeContext(function(_o){_o.affectsSome(Ro)&&D.updateOptions({automaticKeyboardNavigation:We()})}),no.onDidChangeScreenReaderOptimized(function(){return wo()}))}return pe.prototype.updateStyleOverrides=function(D){Object(J.f)(this.styler),this.styler=D?Object(y.b)(this.tree,this.themeService,D):J.a.None},pe.prototype.dispose=function(){this.disposables=Object(J.f)(this.disposables),this.styler=Object(J.f)(this.styler)},pe=Bo([Mo(4,O.c),Mo(5,fn),Mo(6,_.c),Mo(7,U.a),Mo(8,Co.b)],pe),pe}(),It=u.a.as(z.a.Configuration);It.registerConfiguration({id:"workbench",order:7,title:Object(I.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:(Qo={},Qo[_e]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(I.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(I.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(I.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.")},Qo[M]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(I.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. ")},Qo[P]={type:"boolean",default:!1,description:Object(I.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},Qo["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(I.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(I.a)("deprecated","This setting is deprecated, please use '{0}' instead.",P)},Qo[xe]={type:"number",default:8,minimum:0,maximum:40,description:Object(I.a)("tree indent setting","Controls tree indentation in pixels.")},Qo[Ne]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(I.a)("render tree indent guides","Controls whether the tree should render indent guides.")},Qo[Z]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(I.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(I.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(I.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(I.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},Qo[Ae]={type:"boolean",default:!0,markdownDescription:Object(I.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.")},Qo)})},kYye:function(Lt,j,e){"use strict";e.d(j,"i",function(){return U}),e.d(j,"j",function(){return z}),e.d(j,"g",function(){return y}),e.d(j,"f",function(){return _}),e.d(j,"h",function(){return v}),e.d(j,"a",function(){return w}),e.d(j,"k",function(){return p}),e.d(j,"b",function(){return s}),e.d(j,"m",function(){return l}),e.d(j,"e",function(){return d}),e.d(j,"c",function(){return m}),e.d(j,"d",function(){return E}),e.d(j,"l",function(){return L}),e.d(j,"n",function(){return k}),e.d(j,"o",function(){return R}),e.d(j,"p",function(){return $}),e.d(j,"r",function(){return ie}),e.d(j,"q",function(){return W});var T=e("3/fG"),re=e("zrhQ"),J=e("MD5Z"),I=e("t9D7"),U=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.")),O=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),H=Object(J.Tb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:J.b},T.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),x=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),u=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.")),_=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.")),w=Object(J.Tb)("editorIndentGuide.activeBackground",{dark:f,light:f,hc:f},T.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),p=Object(J.Tb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:re.a.white},T.a("editorLineNumbers","Color of editor line numbers.")),c=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:c,light:c,hc:c},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")),m=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")),L=Object(J.Tb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},T.a("editorOverviewRulerBorder","Color of the overview ruler border.")),A=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.")),k=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(I.e)(function(B,le){var Ce=B.getColor(J.o);Ce&&le.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+Ce+"; }");var Me=B.getColor(J.x);Me&&le.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+Me+"; }");var Te=B.getColor(A);Te&&le.addRule(".monaco-editor .margin { background-color: "+Te+"; }");var Fe=B.getColor(O);Fe&&le.addRule(".monaco-editor .rangeHighlight { background-color: "+Fe+"; }");var Ue=B.getColor(H);Ue&&le.addRule(".monaco-editor .rangeHighlight { border: 1px "+(B.type==="hc"?"dotted":"solid")+" "+Ue+"; }");var Pe=B.getColor(x);Pe&&le.addRule(".monaco-editor .symbolHighlight { background-color: "+Pe+"; }");var ne=B.getColor(u);ne&&le.addRule(".monaco-editor .symbolHighlight { border: 1px "+(B.type==="hc"?"dotted":"solid")+" "+ne+"; }");var ee=B.getColor(f);ee&&le.addRule(".vs-whitespace { color: "+ee+" !important; }")})},kdPm:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return e.e(148).then(e.bind(null,"3VBA"))}})},kqbb:function(Lt,j,e){"use strict";e.r(j),e.d(j,"ColorDetector",function(){return c});var T=e("X+cX"),re=e("zrhQ"),J=e("/cxE"),I=e("7afs"),U=e("pmY6"),z=e("sswD"),O=e("Vxe3"),H=e("aokT"),x=e("tX9W"),u=e("twdY"),y=e("ZIMw"),_=e("+7oY"),f=function(){var s=function(d,m){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var A in L)L.hasOwnProperty(A)&&(E[A]=L[A])},s(d,m)};return function(l,d){s(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),v=function(s,l,d,m){var E=arguments.length,L=E<3?l:m===null?m=Object.getOwnPropertyDescriptor(l,d):m,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,l,d,m);else for(var k=s.length-1;k>=0;k--)(A=s[k])&&(L=(E<3?A(L):E>3?A(l,d,L):A(l,d))||L);return E>3&&L&&Object.defineProperty(l,d,L),L},w=function(s,l){return function(d,m){l(d,m,s)}},p=500,c=function(s){f(l,s);function l(d,m,E){var L=s.call(this)||this;return L._editor=d,L._codeEditorService=m,L._configurationService=E,L._localToDispose=L._register(new U.b),L._decorationsIds=[],L._colorDatas=new Map,L._colorDecoratorIds=[],L._decorationsTypes=new Set,L._register(d.onDidChangeModel(function(A){L._isEnabled=L.isEnabled(),L.onModelChanged()})),L._register(d.onDidChangeModelLanguage(function(A){return L.onModelChanged()})),L._register(u.c.onDidChange(function(A){return L.onModelChanged()})),L._register(d.onDidChangeConfiguration(function(A){var k=L._isEnabled;L._isEnabled=L.isEnabled(),k!==L._isEnabled&&(L._isEnabled?L.onModelChanged():L.removeAllDecorations())})),L._timeoutTimer=null,L._computePromise=null,L._isEnabled=L.isEnabled(),L.onModelChanged(),L}return l.prototype.isEnabled=function(){var d=this._editor.getModel();if(!d)return!1;var m=d.getLanguageIdentifier(),E=this._configurationService.getValue(m.language);if(E){var L=E.colorDecorators;if(L&&L.enable!==void 0&&!L.enable)return L.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 m=this._editor.getModel();if(!m||!u.c.has(m))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(m){var E=d._editor.getModel();return E?Object(y.b)(E,m):Promise.resolve([])}),this._computePromise.then(function(m){d.updateDecorations(m),d.updateColorDecorators(m),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 m=this,E=d.map(function(L){return{range:{startLineNumber:L.colorInfo.range.startLineNumber,startColumn:L.colorInfo.range.startColumn,endLineNumber:L.colorInfo.range.endLineNumber,endColumn:L.colorInfo.range.endColumn},options:x.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,E),this._colorDatas=new Map,this._decorationsIds.forEach(function(L,A){return m._colorDatas.set(L,d[A])})},l.prototype.updateColorDecorators=function(d){for(var m=this,E=[],L={},A=0;A<d.length&&E.length<p;A++){var k=d[A].colorInfo.color,R=k.red,$=k.green,ie=k.blue,W=k.alpha,B=new re.c(Math.round(R*255),Math.round($*255),Math.round(ie*255),W),le=Object(I.a)(B).toString(16),Ce="rgba("+B.r+", "+B.g+", "+B.b+", "+B.a+")",Me="colorBox-"+le;!this._decorationsTypes.has(Me)&&!L[Me]&&this._codeEditorService.registerDecorationType(Me,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:Ce},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),L[Me]=!0,E.push({range:{startLineNumber:d[A].colorInfo.range.startLineNumber,startColumn:d[A].colorInfo.range.startColumn,endLineNumber:d[A].colorInfo.range.endLineNumber,endColumn:d[A].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(Me,!0)})}this._decorationsTypes.forEach(function(Te){L[Te]||m._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(m){d._codeEditorService.removeDecorationType(m)})},l.prototype.getColorData=function(d){var m=this,E=this._editor.getModel();if(!E)return null;var L=E.getDecorationsInRange(H.a.fromPositions(d,d)).filter(function(A){return m._colorDatas.has(A.id)});return L.length===0?null:this._colorDatas.get(L[0].id)},l.ID="editor.contrib.colorDetector",l.RECOMPUTE_TIME=1e3,l=v([w(1,O.a),w(2,_.a)],l),l}(U.a);Object(z.h)(c.ID,c)},"kw+w":function(Lt,j,e){},l2gE:function(Lt,j,e){"use strict";e.d(j,"a",function(){return le});var T=e("6OMU"),re=e("N0LK"),J=e("PTeM"),I=e("MrjW"),U=e("QDVR"),z=e("X+cX"),O="**",H="/",x="[/\\\\]",u="[^/\\\\]",y=/\//g;function _(Pe){switch(Pe){case 0:return"";case 1:return u+"*?";default:return"(?:"+x+"|"+u+"+"+x+"|"+x+u+"+)*?"}}function f(Pe,ne){if(!Pe)return[];for(var ee=[],ae=!1,q=!1,ue="",X=0,he=Pe;X<he.length;X++){var je=he[X];switch(je){case ne:if(!ae&&!q){ee.push(ue),ue="";continue}break;case"{":ae=!0;break;case"}":ae=!1;break;case"[":q=!0;break;case"]":q=!1;break}ue+=je}return ue&&ee.push(ue),ee}function v(Pe){if(!Pe)return"";var ne="",ee=f(Pe,H);if(ee.every(function(q){return q===O}))ne=".*";else{var ae=!1;ee.forEach(function(q,ue){if(q===O){ae||(ne+=_(2),ae=!0);return}for(var X=!1,he="",je=!1,Xe="",me=0,ge=q;me<ge.length;me++){var we=ge[me];if(we!=="}"&&X){he+=we;continue}if(je&&(we!=="]"||!Xe)){var Re=void 0;we==="-"?Re=we:(we==="^"||we==="!")&&!Xe?Re="^":we===H?Re="":Re=re.p(we),Xe+=Re;continue}switch(we){case"{":X=!0;continue;case"[":je=!0;continue;case"}":var Ee=f(he,","),ve="(?:"+Ee.map(function(Q){return v(Q)}).join("|")+")";ne+=ve,X=!1,he="";break;case"]":ne+="["+Xe+"]",je=!1,Xe="";break;case"?":ne+=u;continue;case"*":ne+=_(1);continue;default:ne+=re.p(we)}}ue<ee.length-1&&(ee[ue+1]!==O||ue+2<ee.length)&&(ne+=x),ae=!1})}return ne}var w=/^\*\*\/\*\.[\w\.-]+$/,p=/^\*\*\/([\w\.-]+)\/?$/,c=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,s=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,l=/^\*\*((\/[\w\.-]+)+)\/?$/,d=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,m=new U.a(1e4),E=function(){return!1},L=function(){return null};function A(Pe,ne){if(!Pe)return L;var ee;typeof Pe!="string"?ee=Pe.pattern:ee=Pe,ee=ee.trim();var ae=ee+"_"+!!ne.trimForExclusions,q=m.get(ae);if(q)return k(q,Pe);var ue;if(w.test(ee)){var X=ee.substr(4);q=function(je,Xe){return typeof je=="string"&&re.m(je,X)?ee:null}}else(ue=p.exec(R(ee,ne)))?q=$(ue[1],ee):(ne.trimForExclusions?s:c).test(ee)?q=ie(ee,ne):(ue=l.exec(R(ee,ne)))?q=W(ue[1].substr(1),ee,!0):(ue=d.exec(R(ee,ne)))?q=W(ue[1],ee,!1):q=B(ee);return m.set(ae,q),k(q,Pe)}function k(Pe,ne){return typeof ne=="string"?Pe:function(ee,ae){return J.a(ee,ne.base)?Pe(I.relative(ne.base,ee),ae):null}}function R(Pe,ne){return ne.trimForExclusions&&re.m(Pe,"/**")?Pe.substr(0,Pe.length-2):Pe}function $(Pe,ne){var ee="/"+Pe,ae="\\"+Pe,q=function(he,je){return typeof he!="string"?null:je?je===Pe?ne:null:he===Pe||re.m(he,ee)||re.m(he,ae)?ne:null},ue=[Pe];return q.basenames=ue,q.patterns=[ne],q.allBasenames=ue,q}function ie(Pe,ne){var ee=Ue(Pe.slice(1,-1).split(",").map(function(he){return A(he,ne)}).filter(function(he){return he!==L}),Pe),ae=ee.length;if(!ae)return L;if(ae===1)return ee[0];var q=function(je,Xe){for(var me=0,ge=ee.length;me<ge;me++)if(ee[me](je,Xe))return Pe;return null},ue=T.j(ee,function(he){return!!he.allBasenames});ue&&(q.allBasenames=ue.allBasenames);var X=ee.reduce(function(he,je){return je.allPaths?he.concat(je.allPaths):he},[]);return X.length&&(q.allPaths=X),q}function W(Pe,ne,ee){var ae=I.sep!==I.posix.sep?Pe.replace(y,I.sep):Pe,q=I.sep+ae,ue=ee?function(X,he){return typeof X=="string"&&(X===ae||re.m(X,q))?ne:null}:function(X,he){return typeof X=="string"&&X===ae?ne:null};return ue.allPaths=[(ee?"*/":"./")+Pe],ue}function B(Pe){try{var ne=new RegExp("^"+v(Pe)+"$");return function(ee,ae){return ne.lastIndex=0,typeof ee=="string"&&ne.test(ee)?Pe:null}}catch(ee){return L}}function le(Pe,ne,ee){return!Pe||typeof ne!="string"?!1:Ce(Pe)(ne,void 0,ee)}function Ce(Pe,ne){if(ne===void 0&&(ne={}),!Pe)return E;if(typeof Pe=="string"||Me(Pe)){var ee=A(Pe,ne);if(ee===L)return E;var ae=function(ue,X){return!!ee(ue,X)};return ee.allBasenames&&(ae.allBasenames=ee.allBasenames),ee.allPaths&&(ae.allPaths=ee.allPaths),ae}return Te(Pe,ne)}function Me(Pe){var ne=Pe;return ne&&typeof ne.base=="string"&&typeof ne.pattern=="string"}function Te(Pe,ne){var ee=Ue(Object.getOwnPropertyNames(Pe).map(function(me){return Fe(me,Pe[me],ne)}).filter(function(me){return me!==L})),ae=ee.length;if(!ae)return L;if(!ee.some(function(me){return!!me.requiresSiblings})){if(ae===1)return ee[0];var q=function(ge,we){for(var Re=0,Ee=ee.length;Re<Ee;Re++){var ve=ee[Re](ge,we);if(ve)return ve}return null},ue=T.j(ee,function(me){return!!me.allBasenames});ue&&(q.allBasenames=ue.allBasenames);var X=ee.reduce(function(me,ge){return ge.allPaths?me.concat(ge.allPaths):me},[]);return X.length&&(q.allPaths=X),q}var he=function(ge,we,Re){for(var Ee=void 0,ve=0,Q=ee.length;ve<Q;ve++){var C=ee[ve];C.requiresSiblings&&Re&&(we||(we=I.basename(ge)),Ee||(Ee=we.substr(0,we.length-I.extname(ge).length)));var F=C(ge,we,Ee,Re);if(F)return F}return null},je=T.j(ee,function(me){return!!me.allBasenames});je&&(he.allBasenames=je.allBasenames);var Xe=ee.reduce(function(me,ge){return ge.allPaths?me.concat(ge.allPaths):me},[]);return Xe.length&&(he.allPaths=Xe),he}function Fe(Pe,ne,ee){if(ne===!1)return L;var ae=A(Pe,ee);if(ae===L)return L;if(typeof ne=="boolean")return ae;if(ne){var q=ne.when;if(typeof q=="string"){var ue=function(he,je,Xe,me){if(!me||!ae(he,je))return null;var ge=q.replace("$(basename)",Xe),we=me(ge);return Object(z.i)(we)?we.then(function(Re){return Re?Pe:null}):we?Pe:null};return ue.requiresSiblings=!0,ue}}return ae}function Ue(Pe,ne){var ee=Pe.filter(function(Xe){return!!Xe.basenames});if(ee.length<2)return Pe;var ae=ee.reduce(function(Xe,me){var ge=me.basenames;return ge?Xe.concat(ge):Xe},[]),q;if(ne){q=[];for(var ue=0,X=ae.length;ue<X;ue++)q.push(ne)}else q=ee.reduce(function(Xe,me){var ge=me.patterns;return ge?Xe.concat(ge):Xe},[]);var he=function(me,ge){if(typeof me!="string")return null;if(!ge){var we=void 0;for(we=me.length;we>0;we--){var Re=me.charCodeAt(we-1);if(Re===47||Re===92)break}ge=me.substr(we)}var Ee=ae.indexOf(ge);return Ee!==-1?q[Ee]:null};he.basenames=ae,he.patterns=q,he.allBasenames=ae;var je=Pe.filter(function(Xe){return!Xe.basenames});return je.push(he),je}},lKfe:function(Lt,j,e){},"lY/7":function(Lt,j,e){"use strict";e.r(j),e.d(j,"MarkerController",function(){return he}),e.d(j,"NextMarkerAction",function(){return Xe});var T=e("3/fG"),re=e("MI8n"),J=e("pmY6"),I=e("T8No"),U=e("tADe"),z=e("aokT"),O=e("sswD"),H=e("t9D7"),x=e("wQH0"),u=e("/oaI"),y=e("EffR"),_=e("MD5Z"),f=e("zrhQ"),v=e("GJhM"),w=e("3rx1"),p=e("6OMU"),c=e("iNS8"),s=e("gslv"),l=e("S3by"),d;(function(ve){function Q(C){switch(C){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(H.e)(function(ve,Q){var C=ve.getColor(_.Pb);C&&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: `+C+`;
}
`);var F=ve.getColor(_.Rb);C&&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: `+F+`;
}
`);var se=ve.getColor(_.Qb);C&&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 m=function(){var ve=function(C,F){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,oe){se.__proto__=oe}||function(se,oe){for(var be in oe)oe.hasOwnProperty(be)&&(se[be]=oe[be])},ve(C,F)};return function(Q,C){ve(Q,C);function F(){this.constructor=Q}Q.prototype=C===null?Object.create(C):(F.prototype=C.prototype,new F)}}(),E=function(){function ve(Q,C,F,se){var oe=this;this._openerService=se,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new J.b,this._editor=C;var be=document.createElement("div");be.className="descriptioncontainer",be.setAttribute("aria-live","assertive"),be.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),y.f(this._messageBlock,"message"),be.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),be.appendChild(this._relatedBlock),this._disposables.add(y.o(this._relatedBlock,"click",function(De){De.preventDefault();var Se=oe._relatedDiagnostics.get(De.target);Se&&F(Se)})),this._scrollable=new v.b(be,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),Q.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(function(De){be.style.left="-"+De.scrollLeft+"px",be.style.top="-"+De.scrollTop+"px"})),this._disposables.add(this._scrollable)}return ve.prototype.dispose=function(){Object(J.f)(this._disposables)},ve.prototype.update=function(Q){var C=this,F=Q.source,se=Q.message,oe=Q.relatedInformation,be=Q.code,De=((F==null?void 0:F.length)||0)+"()".length;be&&(typeof be=="string"?De+=be.length:De+=be.value.length);var Se=se.split(/\r\n|\r|\n/g);this._lines=Se.length,this._longestLineLength=0;for(var Ve=0,Qe=Se;Ve<Qe.length;Ve++){var it=Qe[Ve];this._longestLineLength=Math.max(it.length+De,this._longestLineLength)}y.t(this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var pt=this._messageBlock,Rt=0,Mt=Se;Rt<Mt.length;Rt++){var it=Mt[Rt];pt=document.createElement("div"),pt.innerText=it,it===""&&(pt.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(pt)}if(F||be){var zt=document.createElement("span");if(y.f(zt,"details"),pt.appendChild(zt),F){var uo=document.createElement("span");uo.innerText=F,y.f(uo,"source"),zt.appendChild(uo)}if(be)if(typeof be=="string"){var ao=document.createElement("span");ao.innerText="("+be+")",y.f(ao,"code"),zt.appendChild(ao)}else{this._codeLink=y.a("a.code-link"),this._codeLink.setAttribute("href",""+be.link.toString()),this._codeLink.onclick=function(Gt){C._openerService.open(be.link),Gt.preventDefault(),Gt.stopPropagation()};var ao=y.q(this._codeLink,y.a("span"));ao.innerText=be.value,zt.appendChild(this._codeLink)}}if(y.t(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(p.q)(oe)){var so=this._relatedBlock.appendChild(document.createElement("div"));so.style.paddingTop=Math.floor(this._editor.getOption(49)*.66)+"px",this._lines+=1;for(var Pt=0,ft=oe;Pt<ft.length;Pt++){var vt=ft[Pt],At=document.createElement("div"),at=document.createElement("a");y.f(at,"filename"),at.innerHTML=Object(w.a)(vt.resource)+"("+vt.startLineNumber+", "+vt.startColumn+"): ",at.title=Object(w.b)(vt.resource,void 0),this._relatedDiagnostics.set(at,vt);var tt=document.createElement("span");tt.innerText=vt.message,At.appendChild(at),At.appendChild(tt),this._lines+=1,so.appendChild(At)}}var ut=this._editor.getOption(34),Ct=Math.ceil(ut.typicalFullwidthCharacterWidth*this._longestLineLength*.75),gt=ut.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:Ct,scrollHeight:gt})},ve.prototype.layout=function(Q,C){this._scrollable.getDomNode().style.height=Q+"px",this._scrollable.getDomNode().style.width=C+"px",this._scrollable.setScrollDimensions({width:C,height:Q})},ve.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},ve}(),L=function(ve){m(Q,ve);function Q(C,F,se,oe){var be=ve.call(this,C,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return be.actions=F,be._themeService=se,be._openerService=oe,be._callOnDispose=new J.b,be._onDidSelectRelatedInformation=new re.a,be.onDidSelectRelatedInformation=be._onDidSelectRelatedInformation.event,be._severity=U.c.Warning,be._backgroundColor=f.a.white,be._applyTheme(se.getTheme()),be._callOnDispose.add(se.onThemeChange(be._applyTheme.bind(be))),be.create(),be}return Q.prototype._applyTheme=function(C){this._backgroundColor=C.getColor(B);var F=$;this._severity===U.c.Warning?F=ie:this._severity===U.c.Info&&(F=W);var se=C.getColor(F);this.style({arrowColor:se,frameColor:se,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:C.getColor(c.q),secondaryHeadingColor:C.getColor(c.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(C){ve.prototype._fillHead.call(this,C),this._actionbarWidget.push(this.actions,{label:!1,icon:!0,index:0})},Q.prototype._fillTitleIcon=function(C){this._icon=y.q(C,y.a(""))},Q.prototype._getActionBarOptions=function(){return{orientation:0}},Q.prototype._fillBody=function(C){var F=this;this._parentContainer=C,y.f(C,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),C.appendChild(this._container),this._message=new E(this._container,this.editor,function(se){return F._onDidSelectRelatedInformation.fire(se)},this._openerService),this._disposables.add(this._message)},Q.prototype.show=function(C,F){throw new Error("call showAtMarker")},Q.prototype.showAtMarker=function(C,F,se){this._container.classList.remove("stale"),this._message.update(C),this._severity=C.severity,this._applyTheme(this._themeService.getTheme());var oe=z.a.lift(C),be=this.editor.getPosition(),De=be&&oe.containsPosition(be)?be:oe.getStartPosition();ve.prototype.show.call(this,De,this.computeRequiredHeight());var Se=this.editor.getModel();if(Se){var Ve=se>1?T.a("problems","{0} of {1} problems",F,se):T.a("change","{0} of {1} problem",F,se);this.setTitle(Object(s.b)(Se.uri),Ve)}this._icon.className="codicon "+d.className(U.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(De,0),this.editor.focus()},Q.prototype.updateMarker=function(C){this._container.classList.remove("stale"),this._message.update(C)},Q.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},Q.prototype._doLayoutBody=function(C,F){ve.prototype._doLayoutBody.call(this,C,F),this._heightInPixel=C,this._message.layout(C,F),this._container.style.height=C+"px"},Q.prototype._onWidth=function(C){this._message.layout(this._heightInPixel,C)},Q.prototype._relayout=function(){ve.prototype._relayout.call(this,this.computeRequiredHeight())},Q.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},Q}(c.c),A=Object(_.Kb)(_.q,_.p),k=Object(_.Kb)(_.P,_.O),R=Object(_.Kb)(_.H,_.G),$=Object(_.Tb)("editorMarkerNavigationError.background",{dark:A,light:A,hc:A},T.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),ie=Object(_.Tb)("editorMarkerNavigationWarning.background",{dark:k,light:k,hc:k},T.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),W=Object(_.Tb)("editorMarkerNavigationInfo.background",{dark:R,light:R,hc:R},T.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),B=Object(_.Tb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:f.a.white,hc:"#0C141F"},T.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(H.e)(function(ve,Q){var C=ve.getColor(_.ec);C&&(Q.addRule(".monaco-editor .marker-widget a { color: "+C+"; }"),Q.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+C+"; }"))});var le=e("N0LK"),Ce=e("Vxe3"),Me=e("/cxE"),Te=e("fjLI"),Fe=e("8HAY"),Ue=e("bexQ"),Pe=e("W9cx"),ne=function(){var ve=function(C,F){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,oe){se.__proto__=oe}||function(se,oe){for(var be in oe)oe.hasOwnProperty(be)&&(se[be]=oe[be])},ve(C,F)};return function(Q,C){ve(Q,C);function F(){this.constructor=Q}Q.prototype=C===null?Object.create(C):(F.prototype=C.prototype,new F)}}(),ee=function(ve,Q,C,F){var se=arguments.length,oe=se<3?Q:F===null?F=Object.getOwnPropertyDescriptor(Q,C):F,be;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ve,Q,C,F);else for(var De=ve.length-1;De>=0;De--)(be=ve[De])&&(oe=(se<3?be(oe):se>3?be(Q,C,oe):be(Q,C))||oe);return se>3&&oe&&Object.defineProperty(Q,C,oe),oe},ae=function(ve,Q){return function(C,F){Q(C,F,ve)}},q=function(ve,Q,C,F){function se(oe){return oe instanceof C?oe:new C(function(be){be(oe)})}return new(C||(C=Promise))(function(oe,be){function De(Qe){try{Ve(F.next(Qe))}catch(it){be(it)}}function Se(Qe){try{Ve(F.throw(Qe))}catch(it){be(it)}}function Ve(Qe){Qe.done?oe(Qe.value):se(Qe.value).then(De,Se)}Ve((F=F.apply(ve,Q||[])).next())})},ue=function(ve,Q){var C={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},F,se,oe,be;return be={next:De(0),throw:De(1),return:De(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function De(Ve){return function(Qe){return Se([Ve,Qe])}}function Se(Ve){if(F)throw new TypeError("Generator is already executing.");for(;C;)try{if(F=1,se&&(oe=Ve[0]&2?se.return:Ve[0]?se.throw||((oe=se.return)&&oe.call(se),0):se.next)&&!(oe=oe.call(se,Ve[1])).done)return oe;(se=0,oe)&&(Ve=[Ve[0]&2,oe.value]);switch(Ve[0]){case 0:case 1:oe=Ve;break;case 4:return C.label++,{value:Ve[1],done:!1};case 5:C.label++,se=Ve[1],Ve=[0];continue;case 7:Ve=C.ops.pop(),C.trys.pop();continue;default:if(!(oe=C.trys,oe=oe.length>0&&oe[oe.length-1])&&(Ve[0]===6||Ve[0]===2)){C=0;continue}if(Ve[0]===3&&(!oe||Ve[1]>oe[0]&&Ve[1]<oe[3])){C.label=Ve[1];break}if(Ve[0]===6&&C.label<oe[1]){C.label=oe[1],oe=Ve;break}if(oe&&C.label<oe[2]){C.label=oe[2],C.ops.push(Ve);break}oe[2]&&C.ops.pop(),C.trys.pop();continue}Ve=Q.call(ve,C)}catch(Qe){Ve=[6,Qe],se=0}finally{F=oe=0}if(Ve[0]&5)throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}},X=function(){function ve(Q,C){var F=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(C),this._toUnbind.add(this._editor.onDidDispose(function(){return F.dispose()})),this._toUnbind.add(this._editor.onDidChangeCursorPosition(function(){if(F._ignoreSelectionChange)return;if(F.currentMarker&&F._editor.getPosition()&&z.a.containsPosition(F.currentMarker,F._editor.getPosition()))return;F._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 C=this._nextIdx>=0?this._markers[this._nextIdx]:void 0;this._markers=Q||[],this._markers.sort(je.compareMarker),C?this._nextIdx=Math.max(-1,Object(p.c)(this._markers,C,je.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 C=!1,F=this._editor.getPosition(),se=0;se<this._markers.length;se++){var oe=z.a.lift(this._markers[se]);if(oe.isEmpty()&&this._editor.getModel()){var be=this._editor.getModel().getWordAtPosition(oe.getStartPosition());be&&(oe=new z.a(oe.startLineNumber,be.startColumn,oe.startLineNumber,be.endColumn))}if(F&&(oe.containsPosition(F)||F.isBeforeOrEqual(oe.getStartPosition()))){this._nextIdx=se,C=!0;break}}C||(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(C){var F=this._nextIdx;this._nextIdx=-1,C&&(this._nextIdx=this.indexOf(C)),this._nextIdx!==F&&this._onCurrentMarkerChanged.fire(C)},enumerable:!0,configurable:!0}),ve.prototype.move=function(Q,C){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!C;var F=this._nextIdx,se=!1;if(this._nextIdx===-1?this._initIdx(Q):Q?C||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:se=!0:Q||(C||this._nextIdx>0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:se=!0),F!==this._nextIdx){var oe=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(oe)}return se},ve.prototype.canNavigate=function(){return this._markers.length>0},ve.prototype.findMarkerAtPosition=function(Q){return Object(p.h)(this._markers,function(C){return z.a.containsPosition(C,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,C,F,se,oe,be,De){this._markerService=C,this._contextKeyService=F,this._themeService=se,this._editorService=oe,this._keybindingService=be,this._openerService=De,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 C=this._getMarkers();this._model=new X(this._editor,C),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var F=this._keybindingService.lookupKeybinding(me.ID),se=this._keybindingService.lookupKeybinding(Xe.ID),oe=[new Fe.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 ue(this,function(Ve){return this._model&&this._model.move(!0,!0),[2]})})}),new Fe.a(me.ID,me.LABEL+(F?" ("+F.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),function(){return q(Q,void 0,void 0,function(){return ue(this,function(Ve){return this._model&&this._model.move(!1,!0),[2]})})})];this._widget=new L(this._editor,oe,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 be=0,De=oe;be<De.length;be++){var Se=De[be];this._disposeOnClose.add(Se)}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,Me.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 C=this.getOrCreateModel();C.currentMarker=Q},ve.prototype._onMarkerChanged=function(Q){var C=this._editor.getModel();if(!C)return;if(!this._model)return;if(!Q.some(function(F){return Object(s.e)(C.uri,F)}))return;this._model.setMarkers(this._getMarkers())},ve.prototype._getMarkers=function(){var Q=this._editor.getModel();return Q?this._markerService.read({resource:Q.uri,severities:U.c.Error|U.c.Warning|U.c.Info}):[]},ve.ID="editor.contrib.markerController",ve=ee([ae(1,U.b),ae(2,I.c),ae(3,H.c),ae(4,Ce.a),ae(5,Ue.a),ae(6,Pe.a)],ve),ve}(),je=function(ve){ne(Q,ve);function Q(C,F,se){var oe=ve.call(this,se)||this;return oe._isNext=C,oe._multiFile=F,oe}return Q.prototype.run=function(C,F){var se=this,oe=C.get(U.b),be=C.get(Ce.a),De=he.get(F);if(!De)return Promise.resolve(void 0);var Se=De.getOrCreateModel(),Ve=Se.move(this._isNext,!this._multiFile);if(!Ve||!this._multiFile)return Promise.resolve(void 0);var Qe=oe.read({severities:U.c.Error|U.c.Warning|U.c.Info}).sort(Q.compareMarker);if(Qe.length===0)return Promise.resolve(void 0);var it=F.getModel();if(!it)return Promise.resolve(void 0);var pt=Se.currentMarker||{resource:it.uri,severity:U.c.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},Rt=Object(p.c)(Qe,pt,Q.compareMarker);Rt<0?(Rt=~Rt,Rt%=Qe.length):this._isNext?Rt=(Rt+1)%Qe.length:Rt=(Rt+Qe.length-1)%Qe.length;var Mt=Qe[Rt];return Object(s.e)(Mt.resource,it.uri)?(Se.move(this._isNext,!0),Promise.resolve(void 0)):(De.closeMarkersNavigation(),be.openCodeEditor({resource:Mt.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:Mt}},F).then(function(zt){return zt?zt.getAction(se.id).run():void 0}))},Q.compareMarker=function(C,F){var se=Object(le.e)(C.resource.toString(),F.resource.toString());return se===0&&(se=U.c.compare(C.severity,F.severity)),se===0&&(se=z.a.compareRangesUsingStarts(C,F)),se},Q}(O.b),Xe=function(ve){ne(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:x.a.writable,kbOpts:{kbExpr:x.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}(je),me=function(ve){ne(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:x.a.writable,kbOpts:{kbExpr:x.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}(je),ge=function(ve){ne(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:x.a.writable,kbOpts:{kbExpr:x.a.focus,primary:66,weight:100}})||this}return Q}(je),we=function(ve){ne(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:x.a.writable,kbOpts:{kbExpr:x.a.focus,primary:1024|66,weight:100}})||this}return Q}(je);Object(O.h)(he.ID,he),Object(O.f)(Xe),Object(O.f)(me),Object(O.f)(ge),Object(O.f)(we);var Re=new I.d("markersNavigationVisible",!1),Ee=O.c.bindToContribution(he.get);Object(O.g)(new Ee({id:"closeMarkersNavigation",precondition:Re,handler:function(Q){return Q.closeMarkersNavigation()},kbOpts:{weight:100+50,kbExpr:x.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(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return e.e(147).then(e.bind(null,"7s2V"))}})},lrmC:function(Lt,j,e){},n01l:function(Lt,j,e){"use strict";e.r(j);var T=e("3/fG"),re=e("/kV6"),J=e("sswD"),I=e("wQH0"),U=e("0/Sa"),z=e("cGHE"),O=e("aokT"),H=e("gCVg"),x=e("cMvZ"),u=function(){function l(d,m){this._selection=d,this._insertSpace=m,this._usedEndToken=null}return l._haystackHasNeedleAtOffset=function(d,m,E){if(E<0)return!1;var L=m.length,A=d.length;if(E+L>A)return!1;for(var k=0;k<L;k++){var R=d.charCodeAt(E+k),$=m.charCodeAt(k);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,m,E,L,A,k){var R=d.startLineNumber,$=d.startColumn,ie=d.endLineNumber,W=d.endColumn,B=A.getLineContent(R),le=A.getLineContent(ie),Ce=B.lastIndexOf(m,$-1+m.length),Me=le.indexOf(E,W-1-E.length);if(Ce!==-1&&Me!==-1)if(R===ie){var Te=B.substring(Ce+m.length,Me);Te.indexOf(E)>=0&&(Ce=-1,Me=-1)}else{var Fe=B.substring(Ce+m.length),Ue=le.substring(0,Me);(Fe.indexOf(E)>=0||Ue.indexOf(E)>=0)&&(Ce=-1,Me=-1)}var Pe;Ce!==-1&&Me!==-1?(L&&Ce+m.length<B.length&&B.charCodeAt(Ce+m.length)===32&&(m=m+" "),L&&Me>0&&le.charCodeAt(Me-1)===32&&(E=" "+E,Me-=1),Pe=l._createRemoveBlockCommentOperations(new O.a(R,Ce+m.length+1,ie,Me+1),m,E)):(Pe=l._createAddBlockCommentOperations(d,m,E,this._insertSpace),this._usedEndToken=Pe.length===1?E:null);for(var ne=0,ee=Pe;ne<ee.length;ne++){var ae=ee[ne];k.addTrackedEditOperation(ae.range,ae.text)}},l._createRemoveBlockCommentOperations=function(d,m,E){var L=[];return O.a.isEmpty(d)?L.push(U.a.delete(new O.a(d.startLineNumber,d.startColumn-m.length,d.endLineNumber,d.endColumn+E.length))):(L.push(U.a.delete(new O.a(d.startLineNumber,d.startColumn-m.length,d.startLineNumber,d.startColumn))),L.push(U.a.delete(new O.a(d.endLineNumber,d.endColumn,d.endLineNumber,d.endColumn+E.length)))),L},l._createAddBlockCommentOperations=function(d,m,E,L){var A=[];return O.a.isEmpty(d)?A.push(U.a.replace(new O.a(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),m+" "+E)):(A.push(U.a.insert(new z.a(d.startLineNumber,d.startColumn),m+(L?" ":""))),A.push(U.a.insert(new z.a(d.endLineNumber,d.endColumn),(L?" ":"")+E))),A},l.prototype.getEditOperations=function(d,m){var E=this._selection.startLineNumber,L=this._selection.startColumn;d.tokenizeIfCheap(E);var A=d.getLanguageIdAtPosition(E,L),k=x.a.getComments(A);if(!k||!k.blockCommentStartToken||!k.blockCommentEndToken)return;this._createOperationsForBlockComment(this._selection,k.blockCommentStartToken,k.blockCommentEndToken,this._insertSpace,d,m)},l.prototype.computeCursorState=function(d,m){var E=m.getInverseEditOperations();if(E.length===2){var L=E[0],A=E[1];return new H.a(L.range.endLineNumber,L.range.endColumn,A.range.startLineNumber,A.range.startColumn)}else{var k=E[0].range,R=this._usedEndToken?-this._usedEndToken.length-1:0;return new H.a(k.endLineNumber,k.endColumn+R,k.endLineNumber,k.endColumn+R)}},l}(),y=e("N0LK"),_=function(){function l(d,m,E,L){this._selection=d,this._tabSize=m,this._type=E,this._insertSpace=L,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1}return l._gatherPreflightCommentStrings=function(d,m,E){d.tokenizeIfCheap(m);var L=d.getLanguageIdAtPosition(m,1),A=x.a.getComments(L),k=A?A.lineCommentToken:null;if(!k)return null;for(var R=[],$=0,ie=E-m+1;$<ie;$++)R[$]={ignore:!1,commentStr:k,commentStrOffset:0,commentStrLength:k.length};return R},l._analyzeLines=function(d,m,E,L,A){var k=!0,R;d===0?R=!0:d===1?R=!1:R=!0;for(var $=0,ie=L.length;$<ie;$++){var W=L[$],B=A+$,le=E.getLineContent(B),Ce=y.q(le);if(Ce===-1){d===0||d===1,W.ignore=!0,W.commentStrOffset=le.length;continue}if(k=!1,W.ignore=!1,W.commentStrOffset=Ce,R&&!u._haystackHasNeedleAtOffset(le,W.commentStr,Ce)&&(d===0?R=!1:d===1||(W.ignore=!0)),R&&m){var Me=Ce+W.commentStrLength;Me<le.length&&le.charCodeAt(Me)===32&&(W.commentStrLength+=1)}}if(d===0&&k){R=!1;for(var $=0,ie=L.length;$<ie;$++)L[$].ignore=!1}return{supported:!0,shouldRemoveComments:R,lines:L}},l._gatherPreflightData=function(d,m,E,L,A){var k=l._gatherPreflightCommentStrings(E,L,A);return k===null?{supported:!1}:l._analyzeLines(d,m,E,k,L)},l.prototype._executeLineComments=function(d,m,E,L){var A;E.shouldRemoveComments?A=l._createRemoveLineCommentsOperations(E.lines,L.startLineNumber):(l._normalizeInsertionPoint(d,E.lines,L.startLineNumber,this._tabSize),A=this._createAddLineCommentsOperations(E.lines,L.startLineNumber));for(var k=new z.a(L.positionLineNumber,L.positionColumn),R=0,$=A.length;R<$;R++)if(m.addEditOperation(A[R].range,A[R].text),A[R].range.isEmpty()&&A[R].range.getStartPosition().equals(k)){var ie=d.getLineContent(k.lineNumber);ie.length+1===k.column&&(this._deltaColumn=(A[R].text||"").length)}this._selectionId=m.trackSelection(L)},l.prototype._attemptRemoveBlockComment=function(d,m,E,L){var A=m.startLineNumber,k=m.endLineNumber,R=L.length+Math.max(d.getLineFirstNonWhitespaceColumn(m.startLineNumber),m.startColumn),$=d.getLineContent(A).lastIndexOf(E,R-1),ie=d.getLineContent(k).indexOf(L,m.endColumn-1-E.length);return $!==-1&&ie===-1&&(ie=d.getLineContent(A).indexOf(L,$+E.length),k=A),$===-1&&ie!==-1&&($=d.getLineContent(k).lastIndexOf(E,ie),A=k),m.isEmpty()&&($===-1||ie===-1)&&($=d.getLineContent(A).indexOf(E),$!==-1&&(ie=d.getLineContent(A).indexOf(L,$+E.length))),$!==-1&&d.getLineContent(A).charCodeAt($+E.length)===32&&(E+=" "),ie!==-1&&d.getLineContent(k).charCodeAt(ie-1)===32&&(L=" "+L,ie-=1),$!==-1&&ie!==-1?u._createRemoveBlockCommentOperations(new O.a(A,$+E.length+1,k,ie+1),E,L):null},l.prototype._executeBlockComment=function(d,m,E){d.tokenizeIfCheap(E.startLineNumber);var L=d.getLanguageIdAtPosition(E.startLineNumber,1),A=x.a.getComments(L);if(!A||!A.blockCommentStartToken||!A.blockCommentEndToken)return;var k=A.blockCommentStartToken,R=A.blockCommentEndToken,$=this._attemptRemoveBlockComment(d,E,k,R);if(!$){if(E.isEmpty()){var ie=d.getLineContent(E.startLineNumber),W=y.q(ie);W===-1&&(W=ie.length),$=u._createAddBlockCommentOperations(new O.a(E.startLineNumber,W+1,E.startLineNumber,ie.length+1),k,R,this._insertSpace)}else $=u._createAddBlockCommentOperations(new O.a(E.startLineNumber,d.getLineFirstNonWhitespaceColumn(E.startLineNumber),E.endLineNumber,d.getLineMaxColumn(E.endLineNumber)),k,R,this._insertSpace);$.length===1&&(this._deltaColumn=k.length+1)}this._selectionId=m.trackSelection(E);for(var B=0,le=$;B<le.length;B++){var Ce=le[B];m.addEditOperation(Ce.range,Ce.text)}},l.prototype.getEditOperations=function(d,m){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=l._gatherPreflightData(this._type,this._insertSpace,d,E.startLineNumber,E.endLineNumber);return L.supported?this._executeLineComments(d,m,L,E):this._executeBlockComment(d,m,E)},l.prototype.computeCursorState=function(d,m){var E=m.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(E=E.setEndPosition(E.endLineNumber+1,1)),new H.a(E.selectionStartLineNumber,E.selectionStartColumn+this._deltaColumn,E.positionLineNumber,E.positionColumn+this._deltaColumn)},l._createRemoveLineCommentsOperations=function(d,m){for(var E=[],L=0,A=d.length;L<A;L++){var k=d[L];if(k.ignore)continue;E.push(U.a.delete(new O.a(m+L,k.commentStrOffset+1,m+L,k.commentStrOffset+k.commentStrLength+1)))}return E},l.prototype._createAddLineCommentsOperations=function(d,m){for(var E=[],L=this._insertSpace?" ":"",A=0,k=d.length;A<k;A++){var R=d[A];if(R.ignore)continue;E.push(U.a.insert(new z.a(m+A,R.commentStrOffset+1),R.commentStr+L))}return E},l.nextVisibleColumn=function(d,m,E,L){return E?d+(m-d%m):d+L},l._normalizeInsertionPoint=function(d,m,E,L){for(var A=1073741824,k,R,$=0,ie=m.length;$<ie;$++){if(m[$].ignore)continue;for(var W=d.getLineContent(E+$),B=0,le=0,Ce=m[$].commentStrOffset;B<A&&le<Ce;le++)B=l.nextVisibleColumn(B,L,W.charCodeAt(le)===9,1);B<A&&(A=B)}A=Math.floor(A/L)*L;for(var $=0,ie=m.length;$<ie;$++){if(m[$].ignore)continue;var W=d.getLineContent(E+$),B=0;for(k=0,R=m[$].commentStrOffset;B<A&&k<R;k++)B=l.nextVisibleColumn(B,L,W.charCodeAt(k)===9,1);B>A?m[$].commentStrOffset=k-1:m[$].commentStrOffset=k}},l}(),f=function(){var l=function(m,E){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,A){L.__proto__=A}||function(L,A){for(var k in A)A.hasOwnProperty(k)&&(L[k]=A[k])},l(m,E)};return function(d,m){l(d,m);function E(){this.constructor=d}d.prototype=m===null?Object.create(m):(E.prototype=m.prototype,new E)}}(),v=function(l){f(d,l);function d(m,E){var L=l.call(this,E)||this;return L._type=m,L}return d.prototype.run=function(m,E){if(!E.hasModel())return;for(var L=E.getModel(),A=[],k=E.getSelections(),R=L.getOptions(),$=E.getOption(13),ie=0,W=k;ie<W.length;ie++){var B=W[ie];A.push(new _(B,R.tabSize,this._type,$.insertSpace))}E.pushUndoStop(),E.executeCommands(this.id,A),E.pushUndoStop()},d}(J.b),w=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:I.a.writable,kbOpts:{kbExpr:I.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),p=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:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:Object(re.a)(2048|41,2048|33),weight:100}})||this}return d}(v),c=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:I.a.writable,kbOpts:{kbExpr:I.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:I.a.writable,kbOpts:{kbExpr:I.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(m,E){if(!E.hasModel())return;for(var L=E.getOption(13),A=[],k=E.getSelections(),R=0,$=k;R<$.length;R++){var ie=$[R];A.push(new u(ie,L.insertSpace))}E.pushUndoStop(),E.executeCommands(this.id,A),E.pushUndoStop()},d}(J.b);Object(J.f)(w),Object(J.f)(p),Object(J.f)(c),Object(J.f)(s)},n18v:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return e.e(197).then(e.bind(null,"nNVF"))}})},nB0o:function(Lt,j,e){"use strict";e.d(j,"a",function(){return ks});var T=e("lrmC"),re=e("3/fG"),J=e("EffR"),I=e("/cxE"),U=e("MI8n"),z=e("pmY6"),O=e("tYmi"),H=e("HdwC"),x=e("sswD"),u=e("Vxe3"),y=e("ZlPH"),_=e("MNsG"),f=e("pg8w"),v=e("D3Dy"),w=e("XSiN"),p=e("X+cX"),c=e("AKMP"),s=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),l=function(){function V(o,t){this.x=o,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(o,t){this.clientX=o,this.clientY=t}return V.prototype.toPageCoordinates=function(){return new l(this.clientX+J.e.scrollX,this.clientY+J.e.scrollY)},V}(),m=function(){function V(o,t,i,g){this.x=o,this.y=t,this.width=i,this.height=g}return V}();function E(V){var o=J.C(V);return new m(o.left,o.top,o.width,o.height)}var L=function(V){s(o,V);function o(t,i){var g=V.call(this,t)||this;return g.pos=new l(g.posx,g.posy),g.editorPos=E(i),g}return o}(w.b),A=function(){function V(o){this._editorViewDomNode=o}return V.prototype._create=function(o){return new L(o,this._editorViewDomNode)},V.prototype.onContextMenu=function(o,t){var i=this;return J.j(o,"contextmenu",function(g){t(i._create(g))})},V.prototype.onMouseUp=function(o,t){var i=this;return J.j(o,"mouseup",function(g){t(i._create(g))})},V.prototype.onMouseDown=function(o,t){var i=this;return J.j(o,"mousedown",function(g){t(i._create(g))})},V.prototype.onMouseLeave=function(o,t){var i=this;return J.k(o,function(g){t(i._create(g))})},V.prototype.onMouseMoveThrottled=function(o,t,i,g){var b=this,K=function(Le,qe){return i(Le,b._create(qe))};return J.m(o,"mousemove",t,K,g)},V}(),k=function(){function V(o){this._editorViewDomNode=o}return V.prototype._create=function(o){return new L(o,this._editorViewDomNode)},V.prototype.onPointerUp=function(o,t){var i=this;return J.j(o,"pointerup",function(g){t(i._create(g))})},V.prototype.onPointerDown=function(o,t){var i=this;return J.j(o,"pointerdown",function(g){t(i._create(g))})},V.prototype.onPointerLeave=function(o,t){var i=this;return J.l(o,function(g){t(i._create(g))})},V.prototype.onPointerMoveThrottled=function(o,t,i,g){var b=this,K=function(Le,qe){return i(Le,b._create(qe))};return J.m(o,"pointermove",t,K,g)},V}(),R=function(V){s(o,V);function o(t){var i=V.call(this)||this;return i._editorViewDomNode=t,i._globalMouseMoveMonitor=i._register(new c.a),i._keydownListener=null,i}return o.prototype.startMonitoring=function(t,i,g,b,K){var Ie=this;this._keydownListener=J.o(document,"keydown",function(qe){var ct=qe.toKeybinding();if(ct.isModifierKey())return;Ie._globalMouseMoveMonitor.stopMonitoring(!0)},!0);var Le=function(ct,wt){return g(ct,new L(wt,Ie._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(t,i,Le,b,function(){Ie._keydownListener.dispose(),K()})},o}(z.a),$=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ie=function(V){$(o,V);function o(){var t=V.call(this)||this;return t._shouldRender=!0,t}return o.prototype.shouldRender=function(){return this._shouldRender},o.prototype.forceShouldRender=function(){this._shouldRender=!0},o.prototype.setShouldRender=function(){this._shouldRender=!0},o.prototype.onDidRender=function(){this._shouldRender=!1},o.prototype.onConfigurationChanged=function(t){return!1},o.prototype.onContentSizeChanged=function(t){return!1},o.prototype.onCursorStateChanged=function(t){return!1},o.prototype.onDecorationsChanged=function(t){return!1},o.prototype.onFlushed=function(t){return!1},o.prototype.onFocusChanged=function(t){return!1},o.prototype.onLanguageConfigurationChanged=function(t){return!1},o.prototype.onLineMappingChanged=function(t){return!1},o.prototype.onLinesChanged=function(t){return!1},o.prototype.onLinesDeleted=function(t){return!1},o.prototype.onLinesInserted=function(t){return!1},o.prototype.onRevealRangeRequest=function(t){return!1},o.prototype.onScrollChanged=function(t){return!1},o.prototype.onThemeChanged=function(t){return!1},o.prototype.onTokensChanged=function(t){return!1},o.prototype.onTokensColorsChanged=function(t){return!1},o.prototype.onZonesChanged=function(t){return!1},o.prototype.handleEvents=function(t){for(var i=!1,g=0,b=t.length;g<b;g++){var K=t[g];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)},o}(z.a),W=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),B=function(V){W(o,V);function o(t){var i=V.call(this)||this;return i._context=t,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},o}(ie),le=function(){function V(){}return V.write=function(o,t){o instanceof y.a,o.setAttribute("data-mprt",String(t))},V.read=function(o){var t=o.getAttribute("data-mprt");return t===null?0:parseInt(t,10)},V.collect=function(o,t){for(var i=[],g=0;o&&o!==document.body&&!(o===t);)o.nodeType===o.ELEMENT_NODE&&(i[g++]=this.read(o)),o=o.parentElement;for(var b=new Uint8Array(g),K=0;K<g;K++)b[K]=i[g-K-1];return b},V}(),Ce=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Me=function(){function V(o,t){this._viewLayout=o,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(o){return o-this.scrollTop},V.prototype.getVerticalOffsetForLineNumber=function(o){return this._viewLayout.getVerticalOffsetForLineNumber(o)},V.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},V}(),Te=function(V){Ce(o,V);function o(t,i,g){var b=V.call(this,t,i)||this;return b._viewLines=g,b}return o.prototype.linesVisibleRangesForRange=function(t,i){return this._viewLines.linesVisibleRangesForRange(t,i)},o.prototype.visibleRangeForPosition=function(t){return this._viewLines.visibleRangeForPosition(t)},o}(Me),Fe=function(){function V(o,t,i){this.outsideRenderedLine=o,this.lineNumber=t,this.ranges=i}return V}(),Ue=function(){function V(o,t){this.left=Math.round(o),this.width=Math.round(t)}return V.prototype.toString=function(){return"["+this.left+","+this.width+"]"},V}(),Pe=function(){function V(o,t){this.outsideRenderedLine=o,this.left=Math.round(t)}return V}(),ne=function(){function V(o,t){this.outsideRenderedLine=o,this.ranges=t}return V}(),ee=function(){function V(o,t){this.left=o,this.width=t}return V.prototype.toString=function(){return"["+this.left+","+this.width+"]"},V.compare=function(o,t){return o.left-t.left},V}(),ae=function(){function V(){}return V._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},V._detachRange=function(o,t){o.selectNodeContents(t)},V._readClientRects=function(o,t,i,g,b){var K=this._createRange();try{return K.setStart(o,t),K.setEnd(i,g),K.getClientRects()}catch(Ie){return null}finally{this._detachRange(K,b)}},V._mergeAdjacentRanges=function(o){if(o.length===1)return[new Ue(o[0].left,o[0].width)];o.sort(ee.compare);for(var t=[],i=0,g=o[0].left,b=o[0].width,K=1,Ie=o.length;K<Ie;K++){var Le=o[K],qe=Le.left,ct=Le.width;g+b+.9>=qe?b=Math.max(b,qe+ct-g):(t[i++]=new Ue(g,b),g=qe,b=ct)}return t[i++]=new Ue(g,b),t},V._createHorizontalRangesFromClientRects=function(o,t){if(!o||o.length===0)return null;for(var i=[],g=0,b=o.length;g<b;g++){var K=o[g];i[g]=new ee(Math.max(0,K.left-t),K.width)}return this._mergeAdjacentRanges(i)},V.readHorizontalRanges=function(o,t,i,g,b,K,Ie){var Le=0,qe=o.children.length-1;if(Le>qe)return null;t=Math.min(qe,Math.max(Le,t)),g=Math.min(qe,Math.max(Le,g)),t!==g&&(g>0&&b===0&&(g--,b=1073741824));var ct=o.children[t].firstChild,wt=o.children[g].firstChild;if((!ct||!wt)&&(!ct&&i===0&&t>0&&(ct=o.children[t-1].firstChild,i=1073741824),!wt&&b===0&&g>0&&(wt=o.children[g-1].firstChild,b=1073741824)),!ct||!wt)return null;i=Math.min(ct.textContent.length,Math.max(0,i)),b=Math.min(wt.textContent.length,Math.max(0,b));var et=this._readClientRects(ct,i,wt,b,Ie);return this._createHorizontalRangesFromClientRects(et,K)},V}(),q=e("dBaI"),ue=e("baJR"),X=e("t9D7"),he=e("/UlZ"),je=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Xe=function(){return _.f?!0:!(_.d||v.h||v.k)}(),me=v.f,ge=function(){function V(o,t){this._domNode=o,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}(),we=function(){function V(o,t){this.themeType=t;var i=o.options,g=i.get(34);this.renderWhitespace=i.get(74),this.renderControlCharacters=i.get(69),this.spaceWidth=g.spaceWidth,this.middotWidth=g.middotWidth,this.useMonospaceOptimizations=g.isMonospace&&!i.get(23),this.canUseHalfwidthRightwardsArrow=g.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(49),this.stopRenderingLineAfter=i.get(88),this.fontLigatures=i.get(35)}return V.prototype.equals=function(o){return this.themeType===o.themeType&&this.renderWhitespace===o.renderWhitespace&&this.renderControlCharacters===o.renderControlCharacters&&this.spaceWidth===o.spaceWidth&&this.middotWidth===o.middotWidth&&this.useMonospaceOptimizations===o.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===o.canUseHalfwidthRightwardsArrow&&this.lineHeight===o.lineHeight&&this.stopRenderingLineAfter===o.stopRenderingLineAfter&&this.fontLigatures===o.fontLigatures},V}(),Re=function(){function V(o){this._options=o,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(o){if(this._renderedViewLine)this._renderedViewLine.domNode=Object(y.b)(o);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(o){this._isMaybeInvalid=!0,this._options=o},V.prototype.onSelectionChanged=function(){return me||this._options.themeType===X.b||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1},V.prototype.renderLine=function(o,t,i,g){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var b=i.getViewLineRenderingData(o),K=this._options,Ie=q.a.filter(b.inlineDecorations,o,b.minColumn,b.maxColumn),Le=null;if(me||K.themeType===X.b||this._options.renderWhitespace==="selection")for(var qe=i.selections,ct=0,wt=qe;ct<wt.length;ct++){var et=wt[ct];if(et.endLineNumber<o||et.startLineNumber>o)continue;var Wt=et.startLineNumber===o?et.startColumn:b.minColumn,kt=et.endLineNumber===o?et.endColumn:b.maxColumn;Wt<kt&&(this._options.renderWhitespace!=="selection"?Ie.push(new q.a(Wt,kt,"inline-selected-text",0)):(Le||(Le=[]),Le.push(new ue.b(Wt-1,kt-1))))}var Vt=new ue.c(K.useMonospaceOptimizations,K.canUseHalfwidthRightwardsArrow,b.content,b.continuesWithWrappedLine,b.isBasicASCII,b.containsRTL,b.minColumn-1,b.tokens,Ie,b.tabSize,b.startVisibleColumn,K.spaceWidth,K.middotWidth,K.stopRenderingLineAfter,K.renderWhitespace,K.renderControlCharacters,K.fontLigatures!==he.d.OFF,Le);if(this._renderedViewLine&&this._renderedViewLine.input.equals(Vt))return!1;g.appendASCIIString('<div style="top:'),g.appendASCIIString(String(t)),g.appendASCIIString("px;height:"),g.appendASCIIString(String(this._options.lineHeight)),g.appendASCIIString('px;" class="'),g.appendASCIIString(V.CLASS_NAME),g.appendASCIIString('">');var qt=Object(ue.d)(Vt,g);g.appendASCIIString("</div>");var $t=null;return Xe&&b.isBasicASCII&&K.useMonospaceOptimizations&&qt.containsForeignElements===0&&(b.content.length<300&&Vt.lineTokens.getCount()<100&&($t=new Ee(this._renderedViewLine?this._renderedViewLine.domNode:null,Vt,qt.characterMapping))),$t||($t=C(this._renderedViewLine?this._renderedViewLine.domNode:null,Vt,qt.characterMapping,qt.containsRTL,qt.containsForeignElements)),this._renderedViewLine=$t,!0},V.prototype.layoutLine=function(o,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(o,t,i){if(!this._renderedViewLine)return null;o=o|0,t=t|0,o=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,o)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var g=this._renderedViewLine.input.stopRenderingLineAfter|0,b=!1;g!==-1&&o>g+1&&t>g+1&&(b=!0),g!==-1&&o>g+1&&(o=g+1),g!==-1&&t>g+1&&(t=g+1);var K=this._renderedViewLine.getVisibleRangesForRange(o,t,i);return K&&K.length>0?new ne(b,K):null},V.prototype.getColumnOfNodeOffset=function(o,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(o,t,i):1},V.CLASS_NAME="view-line",V}(),Ee=function(){function V(o,t,i){this.domNode=o,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(o,t,i){var g=this._getCharPosition(o),b=this._getCharPosition(t);return[new Ue(g,b-g)]},V.prototype._getCharPosition=function(o){var t=this._characterMapping.getAbsoluteOffsets();return t.length===0?0:Math.round(this._charWidth*t[o-1])},V.prototype.getColumnOfNodeOffset=function(o,t,i){for(var g=t.textContent.length,b=-1;t;)t=t.previousSibling,b++;var K=this._characterMapping.partDataToCharOffset(b,g,i);return K+1},V}(),ve=function(){function V(o,t,i,g,b){if(this.domNode=o,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=b,this._cachedWidth=-1,this._pixelOffsetCache=null,!g||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var K=0,Ie=this._characterMapping.length;K<=Ie;K++)this._pixelOffsetCache[K]=-1}}return V.prototype._getReadingTarget=function(o){return o.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(o,t,i){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){var g=this._readPixelOffset(this.domNode,o,i);if(g===-1)return null;var b=this._readPixelOffset(this.domNode,t,i);return b===-1?null:[new Ue(g,b-g)]}return this._readVisibleRangesForRange(this.domNode,o,t,i)},V.prototype._readVisibleRangesForRange=function(o,t,i,g){if(t===i){var b=this._readPixelOffset(o,t,g);return b===-1?null:[new Ue(b,0)]}else return this._readRawVisibleRangesForRange(o,t,i,g)},V.prototype._readPixelOffset=function(o,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 g=this._getReadingTarget(o);return g.firstChild?g.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){var b=this._pixelOffsetCache[t];if(b!==-1)return b;var K=this._actualReadPixelOffset(o,t,i);return this._pixelOffsetCache[t]=K,K}return this._actualReadPixelOffset(o,t,i)},V.prototype._actualReadPixelOffset=function(o,t,i){if(this._characterMapping.length===0){var g=ae.readHorizontalRanges(this._getReadingTarget(o),0,0,0,0,i.clientRectDeltaLeft,i.endNode);return!g||g.length===0?-1:g[0].left}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var b=this._characterMapping.charOffsetToPartData(t-1),K=ue.a.getPartIndex(b),Ie=ue.a.getCharIndex(b),Le=ae.readHorizontalRanges(this._getReadingTarget(o),K,Ie,K,Ie,i.clientRectDeltaLeft,i.endNode);return!Le||Le.length===0?-1:Le[0].left},V.prototype._readRawVisibleRangesForRange=function(o,t,i,g){if(t===1&&i===this._characterMapping.length)return[new Ue(0,this.getWidth())];var b=this._characterMapping.charOffsetToPartData(t-1),K=ue.a.getPartIndex(b),Ie=ue.a.getCharIndex(b),Le=this._characterMapping.charOffsetToPartData(i-1),qe=ue.a.getPartIndex(Le),ct=ue.a.getCharIndex(Le);return ae.readHorizontalRanges(this._getReadingTarget(o),K,Ie,qe,ct,g.clientRectDeltaLeft,g.endNode)},V.prototype.getColumnOfNodeOffset=function(o,t,i){for(var g=t.textContent.length,b=-1;t;)t=t.previousSibling,b++;var K=this._characterMapping.partDataToCharOffset(b,g,i);return K+1},V}(),Q=function(V){je(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.prototype._readVisibleRangesForRange=function(t,i,g,b){var K=V.prototype._readVisibleRangesForRange.call(this,t,i,g,b);if(!K||K.length===0||i===g||i===1&&g===this._characterMapping.length)return K;if(!this.input.containsRTL){var Ie=this._readPixelOffset(t,g,b);if(Ie!==-1){var Le=K[K.length-1];Le.left<Ie&&(Le.width=Ie-Le.left)}}return K},o}(ve),C=function(){return v.m?F:se}();function F(V,o,t,i,g){return new Q(V,o,t,i,g)}function se(V,o,t,i,g){return new ve(V,o,t,i,g)}var oe=e("cGHE"),be=e("aokT"),De=e("Ll0s"),Se=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ve=function(){function V(o,t){this.lastViewCursorsRenderData=o,this.lastTextareaPosition=t}return V}(),Qe=function(){function V(o,t,i,g,b,K){i===void 0&&(i=0),g===void 0&&(g=null),b===void 0&&(b=null),K===void 0&&(K=null),this.element=o,this.type=t,this.mouseColumn=i,this.position=g,!b&&g&&(b=new be.a(g.lineNumber,g.column,g.lineNumber,g.column)),this.range=b,this.detail=K}return V._typeToString=function(o){return o===1?"TEXTAREA":o===2?"GUTTER_GLYPH_MARGIN":o===3?"GUTTER_LINE_NUMBERS":o===4?"GUTTER_LINE_DECORATIONS":o===5?"GUTTER_VIEW_ZONE":o===6?"CONTENT_TEXT":o===7?"CONTENT_EMPTY":o===8?"CONTENT_VIEW_ZONE":o===9?"CONTENT_WIDGET":o===10?"OVERVIEW_RULER":o===11?"SCROLLBAR":o===12?"OVERLAY_WIDGET":"UNKNOWN"},V.toString=function(o){return this._typeToString(o.type)+": "+o.position+" - "+o.range+" - "+o.detail},V.prototype.toString=function(){return V.toString(this)},V}(),it=function(){function V(){}return V.isTextArea=function(o){return o.length===2&&o[0]===3&&o[1]===6},V.isChildOfViewLines=function(o){return o.length>=4&&o[0]===3&&o[3]===7},V.isStrictChildOfViewLines=function(o){return o.length>4&&o[0]===3&&o[3]===7},V.isChildOfScrollableElement=function(o){return o.length>=2&&o[0]===3&&o[1]===5},V.isChildOfMinimap=function(o){return o.length>=2&&o[0]===3&&o[1]===8},V.isChildOfContentWidgets=function(o){return o.length>=4&&o[0]===3&&o[3]===1},V.isChildOfOverflowingContentWidgets=function(o){return o.length>=1&&o[0]===2},V.isChildOfOverlayWidgets=function(o){return o.length>=2&&o[0]===3&&o[1]===4},V}(),pt=function(){function V(o,t,i){this.model=o.model;var g=o.configuration.options;this.layoutInfo=g.get(107),this.viewDomNode=t.viewDomNode,this.lineHeight=g.get(49),this.typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=o,this._viewHelper=t}return V.prototype.getZoneAtCoord=function(o){return V.getZoneAtCoord(this._context,o)},V.getZoneAtCoord=function(o,t){var i=o.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){var g=i.verticalOffset+i.height/2,b=o.model.getLineCount(),K=null,Ie=void 0,Le=null;return i.afterLineNumber!==b&&(Le=new oe.a(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(K=new oe.a(i.afterLineNumber,o.model.getLineMaxColumn(i.afterLineNumber))),Le===null?Ie=K:K===null?Ie=Le:t<g?Ie=K:Ie=Le,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:K,positionAfter:Le,position:Ie}}return null},V.prototype.getFullLineRangeAtCoord=function(o){if(this._context.viewLayout.isAfterLines(o)){var t=this._context.model.getLineCount(),i=this._context.model.getLineMaxColumn(t);return{range:new be.a(t,i,t,i),isAfterLines:!0}}var g=this._context.viewLayout.getLineNumberAtVerticalOffset(o),b=this._context.model.getLineMaxColumn(g);return{range:new be.a(g,1,g,b),isAfterLines:!1}},V.prototype.getLineNumberAtVerticalOffset=function(o){return this._context.viewLayout.getLineNumberAtVerticalOffset(o)},V.prototype.isAfterLines=function(o){return this._context.viewLayout.isAfterLines(o)},V.prototype.getVerticalOffsetForLineNumber=function(o){return this._context.viewLayout.getVerticalOffsetForLineNumber(o)},V.prototype.findAttribute=function(o,t){return V._findAttribute(o,t,this._viewHelper.viewDomNode)},V._findAttribute=function(o,t,i){for(;o&&o!==document.body;){if(o.hasAttribute&&o.hasAttribute(t))return o.getAttribute(t);if(o===i)return null;o=o.parentNode}return null},V.prototype.getLineWidth=function(o){return this._viewHelper.getLineWidth(o)},V.prototype.visibleRangeForPosition=function(o,t){return this._viewHelper.visibleRangeForPosition(o,t)},V.prototype.getPositionFromDOMInfo=function(o,t){return this._viewHelper.getPositionFromDOMInfo(o,t)},V.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},V.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},V}(),Rt=function(){function V(o,t,i){this.editorPos=t,this.pos=i,this.mouseVerticalOffset=Math.max(0,o.getCurrentScrollTop()+i.y-t.y),this.mouseContentHorizontalOffset=o.getCurrentScrollLeft()+i.x-t.x-o.layoutInfo.contentLeft,this.isInMarginArea=i.x-t.x<o.layoutInfo.contentLeft&&i.x-t.x>=o.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,ao._getMouseColumn(this.mouseContentHorizontalOffset,o.typicalHalfwidthCharacterWidth))}return V}(),Mt=function(V){Se(o,V);function o(t,i,g,b){var K=V.call(this,t,i,g)||this;return K._ctx=t,b?(K.target=b,K.targetPath=le.collect(b,t.viewDomNode)):(K.target=null,K.targetPath=new Uint8Array(0)),K}return o.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)},o.prototype.fulfill=function(t,i,g,b){i===void 0&&(i=null),g===void 0&&(g=null),b===void 0&&(b=null);var K=this.mouseColumn;return i&&i.column<this._ctx.model.getLineMaxColumn(i.lineNumber)&&(K=De.a.visibleColumnFromColumn(this._ctx.model.getLineContent(i.lineNumber),i.column,this._ctx.model.getOptions().tabSize)+1),new Qe(this.target,t,K,i,g,b)},o.prototype.withTarget=function(t){return new o(this._ctx,this.editorPos,this.pos,t)},o}(Rt),zt={isAfterLines:!0};function uo(V){return{isAfterLines:!1,horizontalDistanceToText:V}}var ao=function(){function V(o,t){this._context=o,this._viewHelper=t}return V.prototype.mouseTargetIsWidget=function(o){var t=o.target,i=le.collect(t,this._viewHelper.viewDomNode);return it.isChildOfContentWidgets(i)||it.isChildOfOverflowingContentWidgets(i)?!0:!!it.isChildOfOverlayWidgets(i)},V.prototype.createMouseTarget=function(o,t,i,g){var b=new pt(this._context,this._viewHelper,o),K=new Mt(b,t,i,g);try{var Ie=V._createMouseTarget(b,K,!1);return Ie}catch(Le){return K.fulfill(0)}},V._createMouseTarget=function(o,t,i){if(t.target===null){if(i)return t.fulfill(0);var g=V._doHitTest(o,t);return g.position?V.createMouseTargetFromHitTestPosition(o,t,g.position.lineNumber,g.position.column):this._createMouseTarget(o,t.withTarget(g.hitTarget),!0)}var b=t,K=null;return K=K||V._hitTestContentWidget(o,b),K=K||V._hitTestOverlayWidget(o,b),K=K||V._hitTestMinimap(o,b),K=K||V._hitTestScrollbarSlider(o,b),K=K||V._hitTestViewZone(o,b),K=K||V._hitTestMargin(o,b),K=K||V._hitTestViewCursor(o,b),K=K||V._hitTestTextArea(o,b),K=K||V._hitTestViewLines(o,b,i),K=K||V._hitTestScrollbar(o,b),K||t.fulfill(0)},V._hitTestContentWidget=function(o,t){if(it.isChildOfContentWidgets(t.targetPath)||it.isChildOfOverflowingContentWidgets(t.targetPath)){var i=o.findAttribute(t.target,"widgetId");return i?t.fulfill(9,null,null,i):t.fulfill(0)}return null},V._hitTestOverlayWidget=function(o,t){if(it.isChildOfOverlayWidgets(t.targetPath)){var i=o.findAttribute(t.target,"widgetId");return i?t.fulfill(12,null,null,i):t.fulfill(0)}return null},V._hitTestViewCursor=function(o,t){if(t.target)for(var i=o.lastRenderData.lastViewCursorsRenderData,g=0,b=i;g<b.length;g++){var K=b[g];if(t.target===K.domNode)return t.fulfill(6,K.position)}if(t.isInContentArea)for(var i=o.lastRenderData.lastViewCursorsRenderData,Ie=t.mouseContentHorizontalOffset,Le=t.mouseVerticalOffset,qe=0,ct=i;qe<ct.length;qe++){var K=ct[qe];if(Ie<K.contentLeft)continue;if(Ie>K.contentLeft+K.width)continue;var wt=o.getVerticalOffsetForLineNumber(K.position.lineNumber);if(wt<=Le&&Le<=wt+K.height)return t.fulfill(6,K.position)}return null},V._hitTestViewZone=function(o,t){var i=o.getZoneAtCoord(t.mouseVerticalOffset);if(i){var g=t.isInContentArea?8:5;return t.fulfill(g,i.position,null,i)}return null},V._hitTestTextArea=function(o,t){return it.isTextArea(t.targetPath)?o.lastRenderData.lastTextareaPosition?t.fulfill(6,o.lastRenderData.lastTextareaPosition):t.fulfill(1,o.lastRenderData.lastTextareaPosition):null},V._hitTestMargin=function(o,t){if(t.isInMarginArea){var i=o.getFullLineRangeAtCoord(t.mouseVerticalOffset),g=i.range.getStartPosition(),b=Math.abs(t.pos.x-t.editorPos.x),K={isAfterLines:i.isAfterLines,glyphMarginLeft:o.layoutInfo.glyphMarginLeft,glyphMarginWidth:o.layoutInfo.glyphMarginWidth,lineNumbersWidth:o.layoutInfo.lineNumbersWidth,offsetX:b};return b-=o.layoutInfo.glyphMarginLeft,b<=o.layoutInfo.glyphMarginWidth?t.fulfill(2,g,i.range,K):(b-=o.layoutInfo.glyphMarginWidth,b<=o.layoutInfo.lineNumbersWidth?t.fulfill(3,g,i.range,K):(b-=o.layoutInfo.lineNumbersWidth,t.fulfill(4,g,i.range,K)))}return null},V._hitTestViewLines=function(o,t,i){if(!it.isChildOfViewLines(t.targetPath))return null;if(o.isAfterLines(t.mouseVerticalOffset)){var g=o.model.getLineCount(),b=o.model.getLineMaxColumn(g);return t.fulfill(7,new oe.a(g,b),void 0,zt)}if(i){if(it.isStrictChildOfViewLines(t.targetPath)){var K=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(o.model.getLineLength(K)===0){var Ie=o.getLineWidth(K),Le=uo(t.mouseContentHorizontalOffset-Ie);return t.fulfill(7,new oe.a(K,1),void 0,Le)}var qe=o.getLineWidth(K);if(t.mouseContentHorizontalOffset>=qe){var Le=uo(t.mouseContentHorizontalOffset-qe),ct=new oe.a(K,o.model.getLineMaxColumn(K));return t.fulfill(7,ct,void 0,Le)}}return t.fulfill(0)}var wt=V._doHitTest(o,t);return wt.position?V.createMouseTargetFromHitTestPosition(o,t,wt.position.lineNumber,wt.position.column):this._createMouseTarget(o,t.withTarget(wt.hitTarget),!0)},V._hitTestMinimap=function(o,t){if(it.isChildOfMinimap(t.targetPath)){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),g=o.model.getLineMaxColumn(i);return t.fulfill(11,new oe.a(i,g))}return null},V._hitTestScrollbarSlider=function(o,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 g=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),b=o.model.getLineMaxColumn(g);return t.fulfill(11,new oe.a(g,b))}}return null},V._hitTestScrollbar=function(o,t){if(it.isChildOfScrollableElement(t.targetPath)){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),g=o.model.getLineMaxColumn(i);return t.fulfill(11,new oe.a(i,g))}return null},V.prototype.getMouseColumn=function(o,t){var i=this._context.configuration.options,g=i.get(107),b=this._context.viewLayout.getCurrentScrollLeft()+t.x-o.x-g.contentLeft;return V._getMouseColumn(b,i.get(34).typicalHalfwidthCharacterWidth)},V._getMouseColumn=function(o,t){if(o<0)return 1;var i=Math.round(o/t);return i+1},V.createMouseTargetFromHitTestPosition=function(o,t,i,g){var b=new oe.a(i,g),K=o.getLineWidth(i);if(t.mouseContentHorizontalOffset>K){if(v.e&&b.column===1){var Ie=uo(t.mouseContentHorizontalOffset-K);return t.fulfill(7,new oe.a(i,o.model.getLineMaxColumn(i)),void 0,Ie)}var Le=uo(t.mouseContentHorizontalOffset-K);return t.fulfill(7,b,void 0,Le)}var qe=o.visibleRangeForPosition(i,g);if(!qe)return t.fulfill(0,b);var ct=qe.left;if(t.mouseContentHorizontalOffset===ct)return t.fulfill(6,b);var wt=[];if(wt.push({offset:qe.left,column:g}),g>1){var et=o.visibleRangeForPosition(i,g-1);et&&wt.push({offset:et.left,column:g-1})}var Wt=o.model.getLineMaxColumn(i);if(g<Wt){var kt=o.visibleRangeForPosition(i,g+1);kt&&wt.push({offset:kt.left,column:g+1})}wt.sort(function(yo,mo){return yo.offset-mo.offset});for(var Vt=1;Vt<wt.length;Vt++){var qt=wt[Vt-1],$t=wt[Vt];if(qt.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=$t.offset){var io=new be.a(i,qt.column,i,$t.column);return t.fulfill(6,b,io)}}return t.fulfill(6,b)},V._doHitTestWithCaretRangeFromPoint=function(o,t){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),g=o.getVerticalOffsetForLineNumber(i),b=g+Math.floor(o.lineHeight/2),K=t.pos.y+(b-t.mouseVerticalOffset);K<=t.editorPos.y&&(K=t.editorPos.y+1),K>=t.editorPos.y+o.layoutInfo.height&&(K=t.editorPos.y+o.layoutInfo.height-1);var Ie=new l(t.pos.x,K),Le=this._actualDoHitTestWithCaretRangeFromPoint(o,Ie.toClientCoordinates());return Le.position?Le:this._actualDoHitTestWithCaretRangeFromPoint(o,t.pos.toClientCoordinates())},V._actualDoHitTestWithCaretRangeFromPoint=function(o,t){var i=J.E(o.viewDomNode),g;if(i?typeof i.caretRangeFromPoint=="undefined"?g=so(i,t.clientX,t.clientY):g=i.caretRangeFromPoint(t.clientX,t.clientY):g=document.caretRangeFromPoint(t.clientX,t.clientY),!g||!g.startContainer)return{position:null,hitTarget:null};var b=g.startContainer,K=null;if(b.nodeType===b.TEXT_NODE){var Ie=b.parentNode,Le=Ie?Ie.parentNode:null,qe=Le?Le.parentNode:null,ct=qe&&qe.nodeType===qe.ELEMENT_NODE?qe.className:null;if(ct===Re.CLASS_NAME){var wt=o.getPositionFromDOMInfo(Ie,g.startOffset);return{position:wt,hitTarget:null}}else K=b.parentNode}else if(b.nodeType===b.ELEMENT_NODE){var Ie=b.parentNode,Le=Ie?Ie.parentNode:null,et=Le&&Le.nodeType===Le.ELEMENT_NODE?Le.className:null;if(et===Re.CLASS_NAME){var wt=o.getPositionFromDOMInfo(b,b.textContent.length);return{position:wt,hitTarget:null}}else K=b}return{position:null,hitTarget:K}},V._doHitTestWithCaretPositionFromPoint=function(o,t){var i=document.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){var g=i.offsetNode.parentNode,b=g?g.parentNode:null,K=b?b.parentNode:null,Ie=K&&K.nodeType===K.ELEMENT_NODE?K.className:null;if(Ie===Re.CLASS_NAME){var Le=o.getPositionFromDOMInfo(i.offsetNode.parentNode,i.offset);return{position:Le,hitTarget:null}}else return{position:null,hitTarget:i.offsetNode.parentNode}}return{position:null,hitTarget:i.offsetNode}},V._doHitTestWithMoveToPoint=function(o,t){var i=null,g=null,b=document.body.createTextRange();try{b.moveToPoint(t.clientX,t.clientY)}catch(wt){return{position:null,hitTarget:null}}b.collapse(!0);var K=b?b.parentElement():null,Ie=K?K.parentNode:null,Le=Ie?Ie.parentNode:null,qe=Le&&Le.nodeType===Le.ELEMENT_NODE?Le.className:"";if(qe===Re.CLASS_NAME){var ct=b.duplicate();ct.moveToElementText(K),ct.setEndPoint("EndToStart",b),i=o.getPositionFromDOMInfo(K,ct.text.length),ct.moveToElementText(o.viewDomNode)}else g=K;return b.moveToElementText(o.viewDomNode),{position:i,hitTarget:g}},V._doHitTest=function(o,t){return typeof document.caretRangeFromPoint=="function"?this._doHitTestWithCaretRangeFromPoint(o,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(o,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(o,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},V}();function so(V,o,t){var i=document.createRange(),g=V.elementFromPoint(o,t);if(g!==null){for(;g&&g.firstChild&&g.firstChild.nodeType!==g.firstChild.TEXT_NODE;)g=g.lastChild;var b=g.getBoundingClientRect(),K=window.getComputedStyle(g,null).getPropertyValue("font"),Ie=g.innerText,Le=b.left,qe=0,ct=void 0;if(o>b.left+b.width)qe=Ie.length;else for(var wt=Pt.getInstance(),et=0;et<Ie.length+1;et++){if(ct=wt.getCharWidth(Ie.charAt(et),K)/2,Le+=ct,o<Le){qe=et;break}Le+=ct}i.setStart(g.firstChild,qe),i.setEnd(g.firstChild,qe)}return i}var Pt=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(o,t){var i=o+t;if(this._cache[i])return this._cache[i];var g=this._canvas.getContext("2d");g.font=t;var b=g.measureText(o),K=b.width;return this._cache[i]=K,K},V._INSTANCE=null,V}(),ft=e("Yr1X"),vt=e("gCVg"),At=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function at(V){return function(o,t){var i=!1;return V&&(i=V.mouseTargetIsWidget(t)),i||t.preventDefault(),t}}var tt=function(V){At(o,V);function o(t,i,g){var b=V.call(this)||this;b._isFocused=!1,b._context=t,b.viewController=i,b.viewHelper=g,b.mouseTargetFactory=new ao(b._context,g),b._mouseDownOperation=b._register(new ut(b._context,b.viewController,b.viewHelper,function(Le,qe){return b._createMouseTarget(Le,qe)},function(Le){return b._getMouseColumn(Le)})),b._asyncFocus=b._register(new p.d(function(){return b.viewHelper.focusTextArea()},0)),b.lastMouseLeaveTime=-1;var K=new A(b.viewHelper.viewDomNode);b._register(K.onContextMenu(b.viewHelper.viewDomNode,function(Le){return b._onContextMenu(Le,!0)})),b._register(K.onMouseMoveThrottled(b.viewHelper.viewDomNode,function(Le){return b._onMouseMove(Le)},at(b.mouseTargetFactory),o.MOUSE_MOVE_MINIMUM_TIME)),b._register(K.onMouseUp(b.viewHelper.viewDomNode,function(Le){return b._onMouseUp(Le)})),b._register(K.onMouseLeave(b.viewHelper.viewDomNode,function(Le){return b._onMouseLeave(Le)})),b._register(K.onMouseDown(b.viewHelper.viewDomNode,function(Le){return b._onMouseDown(Le)}));var Ie=function(qe){if(b.viewController.emitMouseWheel(qe),!b._context.configuration.options.get(57))return;var ct=new w.c(qe);if(ct.browserEvent.ctrlKey||ct.browserEvent.metaKey){var wt=ft.a.getZoomLevel(),et=ct.deltaY>0?1:-1;ft.a.setZoomLevel(wt+et),ct.preventDefault(),ct.stopPropagation()}};return b._register(J.j(b.viewHelper.viewDomNode,v.f?"mousewheel":"wheel",Ie,{capture:!0,passive:!1})),b._context.addEventHandler(b),b}return o.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},o.prototype.onCursorStateChanged=function(t){return this._mouseDownOperation.onCursorStateChanged(t),!1},o.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!1},o.prototype.onScrollChanged=function(t){return this._mouseDownOperation.onScrollChanged(),!1},o.prototype.getTargetAtClientPoint=function(t,i){var g=new d(t,i),b=g.toPageCoordinates(),K=E(this.viewHelper.viewDomNode);return b.y<K.y||b.y>K.y+K.height||b.x<K.x||b.x>K.x+K.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),K,b,null)},o.prototype._createMouseTarget=function(t,i){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),t.editorPos,t.pos,i?t.target:null)},o.prototype._getMouseColumn=function(t){return this.mouseTargetFactory.getMouseColumn(t.editorPos,t.pos)},o.prototype._onContextMenu=function(t,i){this.viewController.emitContextMenu({event:t,target:this._createMouseTarget(t,i)})},o.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)})},o.prototype._onMouseLeave=function(t){this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:t,target:null})},o.prototype._onMouseUp=function(t){this.viewController.emitMouseUp({event:t,target:this._createMouseTarget(t,!0)})},o.prototype._onMouseDown=function(t){var i=this,g=this._createMouseTarget(t,!0),b=g.type===6||g.type===7,K=g.type===2||g.type===3||g.type===4,Ie=g.type===3,Le=this._context.configuration.options.get(83),qe=g.type===8||g.type===5,ct=g.type===9,wt=t.leftButton||t.middleButton;_.e&&t.leftButton&&t.ctrlKey&&(wt=!1);var et=function(){v.i&&!i._isFocused?i._asyncFocus.schedule():(t.preventDefault(),i.viewHelper.focusTextArea())};if(wt&&(b||Ie&&Le))et(),this._mouseDownOperation.start(g.type,t);else if(K)t.preventDefault();else if(qe){var Wt=g.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(Wt.viewZoneId)&&(et(),this._mouseDownOperation.start(g.type,t),t.preventDefault())}else ct&&this.viewHelper.shouldSuppressMouseDownOnWidget(g.detail)&&(et(),t.preventDefault());this.viewController.emitMouseDown({event:t,target:g})},o.MOUSE_MOVE_MINIMUM_TIME=100,o}(ie),ut=function(V){At(o,V);function o(t,i,g,b,K){var Ie=V.call(this)||this;return Ie._context=t,Ie._viewController=i,Ie._viewHelper=g,Ie._createMouseTarget=b,Ie._getMouseColumn=K,Ie._mouseMoveMonitor=Ie._register(new R(Ie._viewHelper.viewDomNode)),Ie._onScrollTimeout=Ie._register(new p.e),Ie._mouseState=new Ct,Ie._currentSelection=new vt.a(1,1,1,1),Ie._isActive=!1,Ie._lastMouseEvent=null,Ie}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.isActive=function(){return this._isActive},o.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)},o.prototype.start=function(t,i){var g=this;this._lastMouseEvent=i,this._mouseState.setStartedOnLineNumbers(t===3),this._mouseState.setStartButtons(i),this._mouseState.setModifiers(i);var b=this._findMousePosition(i,!0);if(!b||!b.position)return;this._mouseState.trySetCount(i.detail,b.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()&&b.type===6&&b.position&&this._currentSelection.containsPosition(b.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,at(null),function(Ie){return g._onMouseDownThenMove(Ie)},function(){var Ie=g._findMousePosition(g._lastMouseEvent,!0);g._viewController.emitMouseDrop({event:g._lastMouseEvent,target:Ie?g._createMouseTarget(g._lastMouseEvent,!0):null}),g._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(b,i.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,at(null),function(Ie){return g._onMouseDownThenMove(Ie)},function(){return g._stop()}))},o.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},o.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)},o.prototype.onCursorStateChanged=function(t){this._currentSelection=t.selections[0]},o.prototype._getPositionOutsideEditor=function(t){var i=t.editorPos,g=this._context.model,b=this._context.viewLayout,K=this._getMouseColumn(t);if(t.posy<i.y){var Ie=Math.max(b.getCurrentScrollTop()-(i.y-t.posy),0),Le=pt.getZoneAtCoord(this._context,Ie);if(Le){var qe=this._helpPositionJumpOverViewZone(Le);if(qe)return new Qe(null,13,K,qe)}var ct=b.getLineNumberAtVerticalOffset(Ie);return new Qe(null,13,K,new oe.a(ct,1))}if(t.posy>i.y+i.height){var Ie=b.getCurrentScrollTop()+(t.posy-i.y),Le=pt.getZoneAtCoord(this._context,Ie);if(Le){var qe=this._helpPositionJumpOverViewZone(Le);if(qe)return new Qe(null,13,K,qe)}var wt=b.getLineNumberAtVerticalOffset(Ie);return new Qe(null,13,K,new oe.a(wt,g.getLineMaxColumn(wt)))}var et=b.getLineNumberAtVerticalOffset(b.getCurrentScrollTop()+(t.posy-i.y));return t.posx<i.x?new Qe(null,13,K,new oe.a(et,1)):t.posx>i.x+i.width?new Qe(null,13,K,new oe.a(et,g.getLineMaxColumn(et))):null},o.prototype._findMousePosition=function(t,i){var g=this._getPositionOutsideEditor(t);if(g)return g;var b=this._createMouseTarget(t,i),K=b.position;if(!K)return null;if(b.type===8||b.type===5){var Ie=this._helpPositionJumpOverViewZone(b.detail);if(Ie)return new Qe(b.element,b.type,b.mouseColumn,Ie,null,b.detail)}return b},o.prototype._helpPositionJumpOverViewZone=function(t){var i=new oe.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),g=t.positionBefore,b=t.positionAfter;return g&&b?g.isBefore(i)?g:b:null},o.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})},o}(z.a),Ct=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(o){this._altKey=o.altKey,this._ctrlKey=o.ctrlKey,this._metaKey=o.metaKey,this._shiftKey=o.shiftKey},V.prototype.setStartButtons=function(o){this._leftButton=o.leftButton,this._middleButton=o.middleButton},V.prototype.setStartedOnLineNumbers=function(o){this._startedOnLineNumbers=o},V.prototype.trySetCount=function(o,t){var i=new Date().getTime();i-this._lastSetMouseDownCountTime>V.CLEAR_MOUSE_DOWN_COUNT_TIME&&(o=1),this._lastSetMouseDownCountTime=i,o>this._lastMouseDownCount+1&&(o=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(o,this._lastMouseDownPositionEqualCount)},V.CLEAR_MOUSE_DOWN_COUNT_TIME=400,V}(),gt=e("CjF5"),bt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Gt(V,o){var t={translationY:o.translationY,translationX:o.translationX};return V&&(t.translationY+=V.translationY,t.translationX+=V.translationX),t}var Nt=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;return b.viewHelper.linesContentDomNode.style.msTouchAction="none",b.viewHelper.linesContentDomNode.style.msContentZooming="none",b._installGestureHandlerTimeout=window.setTimeout(function(){if(b._installGestureHandlerTimeout=-1,window.MSGesture){var K=new MSGesture,Ie=new MSGesture;K.target=b.viewHelper.linesContentDomNode,Ie.target=b.viewHelper.linesContentDomNode,b.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(Le){var qe=Le.pointerType;if(qe===(Le.MSPOINTER_TYPE_MOUSE||"mouse")){b._lastPointerType="mouse";return}else qe===(Le.MSPOINTER_TYPE_TOUCH||"touch")?(b._lastPointerType="touch",K.addPointer(Le.pointerId)):(b._lastPointerType="pen",Ie.addPointer(Le.pointerId))}),b._register(J.m(b.viewHelper.linesContentDomNode,"MSGestureChange",function(Le){return b._onGestureChange(Le)},Gt)),b._register(J.j(b.viewHelper.linesContentDomNode,"MSGestureTap",function(Le){return b._onCaptureGestureTap(Le)},!0))}},100),b._lastPointerType="mouse",b}return o.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&V.prototype._onMouseDown.call(this,t)},o.prototype._onCaptureGestureTap=function(t){var i=this,g=new L(t,this.viewHelper.viewDomNode),b=this._createMouseTarget(g,!1);b.position&&this.viewController.moveTo(b.position),g.browserEvent.fromElement?(g.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},o.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),V.prototype.dispose.call(this)},o}(tt),Et=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;return b.viewHelper.linesContentDomNode.style.touchAction="none",b._installGestureHandlerTimeout=window.setTimeout(function(){if(b._installGestureHandlerTimeout=-1,window.MSGesture){var K=new MSGesture,Ie=new MSGesture;K.target=b.viewHelper.linesContentDomNode,Ie.target=b.viewHelper.linesContentDomNode,b.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(Le){var qe=Le.pointerType;if(qe==="mouse"){b._lastPointerType="mouse";return}else qe==="touch"?(b._lastPointerType="touch",K.addPointer(Le.pointerId)):(b._lastPointerType="pen",Ie.addPointer(Le.pointerId))}),b._register(J.m(b.viewHelper.linesContentDomNode,"MSGestureChange",function(Le){return b._onGestureChange(Le)},Gt)),b._register(J.j(b.viewHelper.linesContentDomNode,"MSGestureTap",function(Le){return b._onCaptureGestureTap(Le)},!0))}},100),b._lastPointerType="mouse",b}return o.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&V.prototype._onMouseDown.call(this,t)},o.prototype._onCaptureGestureTap=function(t){var i=this,g=new L(t,this.viewHelper.viewDomNode),b=this._createMouseTarget(g,!1);b.position&&this.viewController.moveTo(b.position),g.browserEvent.fromElement?(g.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},o.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),V.prototype.dispose.call(this)},o}(tt),Je=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;b._register(f.b.addTarget(b.viewHelper.linesContentDomNode)),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Tap,function(Ie){return b.onTap(Ie)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Change,function(Ie){return b.onChange(Ie)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Contextmenu,function(Ie){return b._onContextMenu(new L(Ie,b.viewHelper.viewDomNode),!1)})),b._lastPointerType="mouse",b._register(J.j(b.viewHelper.linesContentDomNode,"pointerdown",function(Ie){var Le=Ie.pointerType;if(Le==="mouse"){b._lastPointerType="mouse";return}else Le==="touch"?b._lastPointerType="touch":b._lastPointerType="pen"}));var K=new k(b.viewHelper.viewDomNode);return b._register(K.onPointerMoveThrottled(b.viewHelper.viewDomNode,function(Ie){return b._onMouseMove(Ie)},at(b.mouseTargetFactory),tt.MOUSE_MOVE_MINIMUM_TIME)),b._register(K.onPointerUp(b.viewHelper.viewDomNode,function(Ie){return b._onMouseUp(Ie)})),b._register(K.onPointerLeave(b.viewHelper.viewDomNode,function(Ie){return b._onMouseLeave(Ie)})),b._register(K.onPointerDown(b.viewHelper.viewDomNode,function(Ie){return b._onMouseDown(Ie)})),b}return o.prototype.onTap=function(t){if(!t.initialTarget||!this.viewHelper.linesContentDomNode.contains(t.initialTarget))return;t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new L(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})},o.prototype.onChange=function(t){this._lastPointerType==="touch"&&this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype._onMouseDown=function(t){if(t.target&&this.viewHelper.linesContentDomNode.contains(t.target)&&this._lastPointerType==="touch")return;V.prototype._onMouseDown.call(this,t)},o}(tt),$e=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;return b._register(f.b.addTarget(b.viewHelper.linesContentDomNode)),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Tap,function(K){return b.onTap(K)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Change,function(K){return b.onChange(K)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Contextmenu,function(K){return b._onContextMenu(new L(K,b.viewHelper.viewDomNode),!1)})),b}return o.prototype.onTap=function(t){t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new L(t,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.moveTo(i.position)},o.prototype.onChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o}(tt),ze=function(V){bt(o,V);function o(t,i,g){var b=V.call(this)||this;return window.navigator.msPointerEnabled?b.handler=b._register(new Nt(t,i,g)):_.c&&gt.a.pointerEvents?b.handler=b._register(new Je(t,i,g)):window.TouchEvent?b.handler=b._register(new $e(t,i,g)):window.navigator.pointerEnabled||window.PointerEvent?b.handler=b._register(new Et(t,i,g)):b.handler=b._register(new tt(t,i,g)),b}return o.prototype.getTargetAtClientPoint=function(t,i){return this.handler.getTargetAtClientPoint(t,i)},o}(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(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ke=function(V){de(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o}(ie),lt=e("kYye"),Tt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Jt=function(V){Tt(o,V);function o(t){var i=V.call(this)||this;return i._context=t,i._readConfig(),i._lastCursorModelPosition=new oe.a(1,1),i._renderResult=null,i._context.addEventHandler(i),i}return o.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 g=t.get(107);this._lineNumbersLeft=g.lineNumbersLeft,this._lineNumbersWidth=g.lineNumbersWidth},o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){return this._readConfig(),!0},o.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},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getLineRenderLineNumber=function(t){var i=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new oe.a(t,1));if(i.column!==1)return"";var g=i.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(g);if(this._renderLineNumbers===2){var b=Math.abs(this._lastCursorModelPosition.lineNumber-g);return b===0?'<span class="relative-current-line-number">'+g+"</span>":String(b)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===g||g%10===0?String(g):"":String(g)},o.prototype.prepareRender=function(t){if(this._renderLineNumbers===0){this._renderResult=null;return}for(var i=_.d?this._lineHeight%2===0?" lh-even":" lh-odd":"",g=t.visibleRange.startLineNumber,b=t.visibleRange.endLineNumber,K='<div class="'+o.CLASS_NAME+i+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',Ie=this._context.model.getLineCount(),Le=[],qe=g;qe<=b;qe++){var ct=qe-g;if(!this._renderFinalNewline&&(qe===Ie&&this._context.model.getLineLength(qe)===0)){Le[ct]="";continue}var wt=this._getLineRenderLineNumber(qe);wt?Le[ct]=K+wt+"</div>":Le[ct]=""}this._renderResult=Le},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o.CLASS_NAME="line-numbers",o}(ke);Object(X.e)(function(V,o){var t=V.getColor(lt.k);t&&o.addRule(".monaco-editor .line-numbers { color: "+t+"; }");var i=V.getColor(lt.b);i&&o.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var eo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),po=function(V){eo(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._canUseLayerHinting=!g.get(22),i._contentLeft=b.contentLeft,i._glyphMarginLeft=b.glyphMarginLeft,i._glyphMarginWidth=b.glyphMarginWidth,i._domNode=Object(y.b)(document.createElement("div")),i._domNode.setClassName(o.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(o.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._canUseLayerHinting=!i.get(22),this._contentLeft=g.contentLeft,this._glyphMarginLeft=g.glyphMarginLeft,this._glyphMarginWidth=g.glyphMarginWidth,!0},o.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var i=t.scrollTop-t.bigNumbersDelta;this._domNode.setTop(-i);var g=Math.min(t.scrollHeight,1e6);this._domNode.setHeight(g),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(g)},o.CLASS_NAME="glyph-margin",o.OUTER_CLASS_NAME="margin",o}(B),co=e("5v8Y"),Eo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Oo=function(){function V(o){this.type=1,this._source=o}return V.prototype.hasChanged=function(o){return this._source.hasChanged(o)},V}(),Ao=function(){function V(o){this.type=2,this.contentWidth=o.contentWidth,this.contentHeight=o.contentHeight,this.contentWidthChanged=o.contentWidthChanged,this.contentHeightChanged=o.contentHeightChanged}return V}(),Zo=function(){function V(o,t){this.type=3,this.selections=o,this.modelSelections=t}return V}(),Co=function(){function V(){this.type=4}return V}(),Wo=function(){function V(){this.type=5}return V}(),Go=function(){function V(o){this.type=6,this.isFocused=o}return V}(),Bo=function(){function V(){this.type=7}return V}(),Mo=function(){function V(){this.type=8}return V}(),Qo=function(){function V(o,t){this.type=9,this.fromLineNumber=o,this.toLineNumber=t}return V}(),fn=function(){function V(o,t){this.type=10,this.fromLineNumber=o,this.toLineNumber=t}return V}(),Vo=function(){function V(o,t){this.type=11,this.fromLineNumber=o,this.toLineNumber=t}return V}(),mn=function(){function V(o,t,i,g,b){this.type=12,this.source=o,this.range=t,this.verticalType=i,this.revealHorizontal=g,this.scrollType=b}return V}(),yn=function(){function V(o){this.type=13,this.scrollWidth=o.scrollWidth,this.scrollLeft=o.scrollLeft,this.scrollHeight=o.scrollHeight,this.scrollTop=o.scrollTop,this.scrollWidthChanged=o.scrollWidthChanged,this.scrollLeftChanged=o.scrollLeftChanged,this.scrollHeightChanged=o.scrollHeightChanged,this.scrollTopChanged=o.scrollTopChanged}return V}(),dn=function(){function V(){this.type=14}return V}(),rn=function(){function V(o){this.type=15,this.ranges=o}return V}(),pn=function(){function V(){this.type=16}return V}(),zo=function(){function V(){this.type=17}return V}(),Ho=function(V){Eo(o,V);function o(){var t=V.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return o.prototype.dispose=function(){this._listeners=[],V.prototype.dispose.call(this)},o.prototype._beginEmit=function(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new St),this._collector},o.prototype._endEmit=function(){if(this._collectorCnt--,this._collectorCnt===0){var t=this._collector.finalize();this._collector=null,t.length>0&&this._emit(t)}},o.prototype._emit=function(t){for(var i=this._listeners.slice(0),g=0,b=i.length;g<b;g++)ot(i[g],t)},o.prototype.addEventListener=function(t){var i=this;return this._listeners.push(t),Object(z.h)(function(){for(var g=i._listeners,b=0,K=g.length;b<K;b++)if(g[b]===t){g.splice(b,1);break}})},o}(z.a),St=function(){function V(){this._eventsLen=0,this._events=[],this._eventsLen=0}return V.prototype.emit=function(o){this._events[this._eventsLen++]=o},V.prototype.finalize=function(){var o=this._events;return this._events=[],o},V}();function ot(V,o){try{V(o)}catch(t){I.e(t)}}var nt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Dt=function(){function V(o,t,i){this.top=o,this.left=t,this.width=i}return V.prototype.setWidth=function(o){return new V(this.top,this.left,o)},V}(),_e=v.f||v.h,M=function(V){nt(o,V);function o(t,i,g){var b=V.call(this,t)||this;b._primaryCursorPosition=new oe.a(1,1),b._primaryCursorVisibleRange=null,b._viewController=i,b._viewHelper=g,b._scrollLeft=0,b._scrollTop=0;var K=b._context.configuration.options,Ie=K.get(107);b._setAccessibilityOptions(K),b._contentLeft=Ie.contentLeft,b._contentWidth=Ie.contentWidth,b._contentHeight=Ie.height,b._fontInfo=K.get(34),b._lineHeight=K.get(49),b._emptySelectionClipboard=K.get(25),b._copyWithSyntaxHighlighting=K.get(15),b._visibleTextArea=null,b._selections=[new vt.a(1,1,1,1)],b._modelSelections=[new vt.a(1,1,1,1)],b._lastRenderPosition=null,b.textArea=Object(y.b)(document.createElement("textarea")),le.write(b.textArea,6),b.textArea.setClassName("inputarea"),b.textArea.setAttribute("wrap","off"),b.textArea.setAttribute("autocorrect","off"),b.textArea.setAttribute("autocapitalize","off"),b.textArea.setAttribute("autocomplete","off"),b.textArea.setAttribute("spellcheck","false"),b.textArea.setAttribute("aria-label",b._getAriaLabel(K)),b.textArea.setAttribute("role","textbox"),b.textArea.setAttribute("aria-multiline","true"),b.textArea.setAttribute("aria-haspopup","false"),b.textArea.setAttribute("aria-autocomplete","both"),_.g&&K.get(68)&&b.textArea.setAttribute("readonly","true"),b.textAreaCover=Object(y.b)(document.createElement("div")),b.textAreaCover.setPosition("absolute");var Le={getLineCount:function(){return b._context.model.getLineCount()},getLineMaxColumn:function(wt){return b._context.model.getLineMaxColumn(wt)},getValueInRange:function(wt,et){return b._context.model.getValueInRange(wt,et)}},qe={getDataToCopy:function(wt){var et=b._context.model.getPlainTextToCopy(b._modelSelections,b._emptySelectionClipboard,_.h),Wt=b._context.model.getEOL(),kt=b._emptySelectionClipboard&&b._modelSelections.length===1&&b._modelSelections[0].isEmpty(),Vt=Array.isArray(et)?et:null,qt=Array.isArray(et)?et.join(Wt):et,$t=void 0,io=null;if(wt&&(G.a.forceCopyWithSyntaxHighlighting||b._copyWithSyntaxHighlighting&&qt.length<65536)){var yo=b._context.model.getRichTextToCopy(b._modelSelections,b._emptySelectionClipboard);yo&&($t=yo.html,io=yo.mode)}return{isFromEmptySelection:kt,multicursorText:Vt,text:qt,html:$t,mode:io}},getScreenReaderContent:function(wt){if(v.j)return te.b.EMPTY;if(b._accessibilitySupport===1){if(_.e){var et=b._selections[0];if(et.isEmpty()){var Wt=et.getStartPosition(),kt=b._getWordBeforePosition(Wt);if(kt.length===0&&(kt=b._getCharacterBeforePosition(Wt)),kt.length>0)return new te.b(kt,kt.length,kt.length,Wt,Wt)}}return te.b.EMPTY}return te.a.fromEditorSelection(wt,Le,b._selections[0],b._accessibilityPageSize,b._accessibilitySupport===0)},deduceModelPosition:function(wt,et,Wt){return b._context.model.deduceModelPositionRelativeToViewPosition(wt,et,Wt)}};return b._textAreaInput=b._register(new G.b(qe,b.textArea)),b._register(b._textAreaInput.onKeyDown(function(ct){b._viewController.emitKeyDown(ct)})),b._register(b._textAreaInput.onKeyUp(function(ct){b._viewController.emitKeyUp(ct)})),b._register(b._textAreaInput.onPaste(function(ct){var wt=!1,et=null,Wt=null;ct.metadata&&(wt=b._emptySelectionClipboard&&!!ct.metadata.isFromEmptySelection,et=typeof ct.metadata.multicursorText!="undefined"?ct.metadata.multicursorText:null,Wt=ct.metadata.mode),b._viewController.paste("keyboard",ct.text,wt,et,Wt)})),b._register(b._textAreaInput.onCut(function(){b._viewController.cut("keyboard")})),b._register(b._textAreaInput.onType(function(ct){ct.replaceCharCnt?b._viewController.replacePreviousChar("keyboard",ct.text,ct.replaceCharCnt):b._viewController.type("keyboard",ct.text)})),b._register(b._textAreaInput.onSelectionChangeRequest(function(ct){b._viewController.setSelection("keyboard",ct)})),b._register(b._textAreaInput.onCompositionStart(function(){var ct=b._selections[0].startLineNumber,wt=b._selections[0].startColumn;b._context.privateViewEventBus.emit(new mn("keyboard",new be.a(ct,wt,ct,wt),0,!0,1));var et=b._viewHelper.visibleRangeForPositionRelativeToEditor(ct,wt);et&&(b._visibleTextArea=new Dt(b._context.viewLayout.getVerticalOffsetForLineNumber(ct),et.left,_e?0:1),b._render()),b.textArea.setClassName("inputarea ime-input"),b._viewController.compositionStart("keyboard")})),b._register(b._textAreaInput.onCompositionUpdate(function(ct){v.f?b._visibleTextArea=b._visibleTextArea.setWidth(0):b._visibleTextArea=b._visibleTextArea.setWidth(P(ct.data,b._fontInfo)),b._render()})),b._register(b._textAreaInput.onCompositionEnd(function(){b._visibleTextArea=null,b._render(),b.textArea.setClassName("inputarea"),b._viewController.compositionEnd("keyboard")})),b._register(b._textAreaInput.onFocus(function(){b._context.privateViewEventBus.emit(new Go(!0))})),b._register(b._textAreaInput.onBlur(function(){b._context.privateViewEventBus.emit(new Go(!1))})),b}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype._getWordBeforePosition=function(t){for(var i=this._context.model.getLineContent(t.lineNumber),g=Object(co.a)(this._context.configuration.options.get(96)),b=t.column,K=0;b>1;){var Ie=i.charCodeAt(b-2),Le=g.get(Ie);if(Le!==0||K>50)return i.substring(b-1,t.column-1);K++,b--}return i.substring(0,t.column-1)},o.prototype._getCharacterBeforePosition=function(t){if(t.column>1){var i=this._context.model.getLineContent(t.lineNumber),g=i.charAt(t.column-2);if(!fe.z(g.charCodeAt(0)))return g}return""},o.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)},o.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},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._setAccessibilityOptions(i),this._contentLeft=g.contentLeft,this._contentWidth=g.contentWidth,this._contentHeight=g.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)),_.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},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),this._modelSelections=t.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return this._scrollLeft=t.scrollLeft,this._scrollTop=t.scrollTop,!0},o.prototype.onZonesChanged=function(t){return!0},o.prototype.isFocused=function(){return this._textAreaInput.isFocused()},o.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},o.prototype.getLastRenderData=function(){return this._lastRenderPosition},o.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"))},o.prototype.prepareRender=function(t){this._primaryCursorPosition=new oe.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=t.visibleRangeForPosition(this._primaryCursorPosition)},o.prototype.render=function(t){this._textAreaInput.writeScreenReaderContent("render"),this._render()},o.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(_.e){this._renderInsideEditor(this._primaryCursorPosition,i,t,_e?0:1,this._lineHeight);return}this._renderInsideEditor(this._primaryCursorPosition,i,t,_e?0:1,_e?0:1)},o.prototype._renderInsideEditor=function(t,i,g,b,K){this._lastRenderPosition=t;var Ie=this.textArea,Le=this.textAreaCover;H.a.applyFontInfo(Ie,this._fontInfo),Ie.setTop(i),Ie.setLeft(g),Ie.setWidth(b),Ie.setHeight(K),Le.setTop(0),Le.setLeft(0),Le.setWidth(0),Le.setHeight(0)},o.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var t=this.textArea,i=this.textAreaCover;if(H.a.applyFontInfo(t,this._fontInfo),t.setTop(0),t.setLeft(0),i.setTop(0),i.setLeft(0),_e){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 g=this._context.configuration.options;g.get(40)?i.setClassName("monaco-editor-background textAreaCover "+po.OUTER_CLASS_NAME):g.get(50).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+Jt.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")},o}(B);function P(V,o){var t=document.createElement("canvas"),i=t.getContext("2d");i.font=Z(o);var g=i.measureText(V);return v.h?g.width+2:g.width}function Z(V){return Ae("normal",V.fontWeight,V.fontSize,V.lineHeight,V.fontFamily)}function Ae(V,o,t,i,g){return V+" normal "+o+" "+t+"px / "+i+"px "+g}var xe=e("1YUG"),Ne=function(){function V(o,t,i,g){this.configuration=o,this.viewModel=t,this.outgoingEvents=i,this.commandDelegate=g}return V.prototype._execMouseCommand=function(o,t){t.source="mouse",this.commandDelegate.executeEditorCommand(o,t)},V.prototype.paste=function(o,t,i,g,b){this.commandDelegate.paste(o,t,i,g,b)},V.prototype.type=function(o,t){this.commandDelegate.type(o,t)},V.prototype.replacePreviousChar=function(o,t,i){this.commandDelegate.replacePreviousChar(o,t,i)},V.prototype.compositionStart=function(o){this.commandDelegate.compositionStart(o)},V.prototype.compositionEnd=function(o){this.commandDelegate.compositionEnd(o)},V.prototype.cut=function(o){this.commandDelegate.cut(o)},V.prototype.setSelection=function(o,t){this.commandDelegate.executeEditorCommand(xe.CoreNavigationCommands.SetSelection,{source:o,selection:t})},V.prototype._validateViewColumn=function(o){var t=this.viewModel.getLineMinColumn(o.lineNumber);return o.column<t?new oe.a(o.lineNumber,t):o},V.prototype._hasMulticursorModifier=function(o){switch(this.configuration.options.get(59)){case"altKey":return o.altKey;case"ctrlKey":return o.ctrlKey;case"metaKey":return o.metaKey}return!1},V.prototype._hasNonMulticursorModifier=function(o){switch(this.configuration.options.get(59)){case"altKey":return o.ctrlKey||o.metaKey;case"ctrlKey":return o.altKey||o.metaKey;case"metaKey":return o.ctrlKey||o.altKey}return!1},V.prototype.dispatchMouse=function(o){var t=_.d&&this.configuration.options.get(81);o.middleButton&&!t?this._columnSelect(o.position,o.mouseColumn,o.inSelectionMode):o.startedOnLineNumbers?this._hasMulticursorModifier(o)?o.inSelectionMode?this._lastCursorLineSelect(o.position):this._createCursor(o.position,!0):o.inSelectionMode?this._lineSelectDrag(o.position):this._lineSelect(o.position):o.mouseDownCount>=4?this._selectAll():o.mouseDownCount===3?this._hasMulticursorModifier(o)?o.inSelectionMode?this._lastCursorLineSelectDrag(o.position):this._lastCursorLineSelect(o.position):o.inSelectionMode?this._lineSelectDrag(o.position):this._lineSelect(o.position):o.mouseDownCount===2?this._hasMulticursorModifier(o)?this._lastCursorWordSelect(o.position):o.inSelectionMode?this._wordSelectDrag(o.position):this._wordSelect(o.position):this._hasMulticursorModifier(o)?this._hasNonMulticursorModifier(o)||(o.shiftKey?this._columnSelect(o.position,o.mouseColumn,!0):o.inSelectionMode?this._lastCursorMoveToSelect(o.position):this._createCursor(o.position,!1)):o.inSelectionMode?o.altKey?this._columnSelect(o.position,o.mouseColumn,!0):this._moveToSelect(o.position):this.moveTo(o.position)},V.prototype._usualArgs=function(o){return o=this._validateViewColumn(o),{position:this._convertViewToModelPosition(o),viewPosition:o}},V.prototype.moveTo=function(o){this._execMouseCommand(xe.CoreNavigationCommands.MoveTo,this._usualArgs(o))},V.prototype._moveToSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.MoveToSelect,this._usualArgs(o))},V.prototype._columnSelect=function(o,t,i){o=this._validateViewColumn(o),this._execMouseCommand(xe.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(o),viewPosition:o,mouseColumn:t,doColumnSelect:i})},V.prototype._createCursor=function(o,t){o=this._validateViewColumn(o),this._execMouseCommand(xe.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(o),viewPosition:o,wholeLine:t})},V.prototype._lastCursorMoveToSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(o))},V.prototype._wordSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.WordSelect,this._usualArgs(o))},V.prototype._wordSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.WordSelectDrag,this._usualArgs(o))},V.prototype._lastCursorWordSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(o))},V.prototype._lineSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LineSelect,this._usualArgs(o))},V.prototype._lineSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LineSelectDrag,this._usualArgs(o))},V.prototype._lastCursorLineSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(o))},V.prototype._lastCursorLineSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(o))},V.prototype._selectAll=function(){this._execMouseCommand(xe.CoreNavigationCommands.SelectAll,{})},V.prototype._convertViewToModelPosition=function(o){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(o)},V.prototype.emitKeyDown=function(o){this.outgoingEvents.emitKeyDown(o)},V.prototype.emitKeyUp=function(o){this.outgoingEvents.emitKeyUp(o)},V.prototype.emitContextMenu=function(o){this.outgoingEvents.emitContextMenu(o)},V.prototype.emitMouseMove=function(o){this.outgoingEvents.emitMouseMove(o)},V.prototype.emitMouseLeave=function(o){this.outgoingEvents.emitMouseLeave(o)},V.prototype.emitMouseUp=function(o){this.outgoingEvents.emitMouseUp(o)},V.prototype.emitMouseDown=function(o){this.outgoingEvents.emitMouseDown(o)},V.prototype.emitMouseDrag=function(o){this.outgoingEvents.emitMouseDrag(o)},V.prototype.emitMouseDrop=function(o){this.outgoingEvents.emitMouseDrop(o)},V.prototype.emitMouseWheel=function(o){this.outgoingEvents.emitMouseWheel(o)},V}(),dt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ht=function(V){dt(o,V);function o(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 o.prototype.emitContentSizeChange=function(t){this.onDidContentSizeChange&&this.onDidContentSizeChange(t)},o.prototype.emitScrollChanged=function(t){this.onDidScroll&&this.onDidScroll(t)},o.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},o.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},o.prototype.emitKeyDown=function(t){this.onKeyDown&&this.onKeyDown(t)},o.prototype.emitKeyUp=function(t){this.onKeyUp&&this.onKeyUp(t)},o.prototype.emitContextMenu=function(t){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseMove=function(t){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseLeave=function(t){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseUp=function(t){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDown=function(t){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDrag=function(t){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDrop=function(t){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseWheel=function(t){this.onMouseWheel&&this.onMouseWheel(t)},o.prototype._convertViewToModelMouseEvent=function(t){return t.target?{event:t.event,target:this._convertViewToModelMouseTarget(t.target)}:t},o.prototype._convertViewToModelMouseTarget=function(t){return o.convertViewToModelMouseTarget(t,this._viewModel.coordinatesConverter)},o.convertViewToModelMouseTarget=function(t,i){return new xt(t.element,t.type,t.mouseColumn,t.position?i.convertViewPositionToModelPosition(t.position):null,t.range?i.convertViewRangeToModelRange(t.range):null,t.detail)},o}(z.a),xt=function(){function V(o,t,i,g,b,K){this.element=o,this.type=t,this.mouseColumn=i,this.position=g,this.range=b,this.detail=K}return V.prototype.toString=function(){return Qe.toString(this)},V}(),Bt=e("erNZ"),Ht=function(){function V(o){this._createLine=o,this._set(1,[])}return V.prototype.flush=function(){this._set(1,[])},V.prototype._set=function(o,t){this._lines=t,this._rendLineNumberStart=o},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(o){var t=o-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},V.prototype.onLinesDeleted=function(o,t){if(this.getCount()===0)return null;var i=this.getStartLineNumber(),g=this.getEndLineNumber();if(t<i){var b=t-o+1;return this._rendLineNumberStart-=b,null}if(o>g)return null;for(var K=0,Ie=0,Le=i;Le<=g;Le++){var qe=Le-this._rendLineNumberStart;o<=Le&&Le<=t&&(Ie===0?(K=qe,Ie=1):Ie++)}if(o<i){var ct=0;t<i?ct=t-o+1:ct=i-o,this._rendLineNumberStart-=ct}var wt=this._lines.splice(K,Ie);return wt},V.prototype.onLinesChanged=function(o,t){if(this.getCount()===0)return!1;for(var i=this.getStartLineNumber(),g=this.getEndLineNumber(),b=!1,K=o;K<=t;K++)K>=i&&K<=g&&(this._lines[K-this._rendLineNumberStart].onContentChanged(),b=!0);return b},V.prototype.onLinesInserted=function(o,t){if(this.getCount()===0)return null;var i=t-o+1,g=this.getStartLineNumber(),b=this.getEndLineNumber();if(o<=g)return this._rendLineNumberStart+=i,null;if(o>b)return null;if(i+o>b){var K=this._lines.splice(o-this._rendLineNumberStart,b-o+1);return K}for(var Ie=[],Le=0;Le<i;Le++)Ie[Le]=this._createLine();var qe=o-this._rendLineNumberStart,ct=this._lines.slice(0,qe),wt=this._lines.slice(qe,this._lines.length-i),et=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=ct.concat(Ie).concat(wt),et},V.prototype.onTokensChanged=function(o){if(this.getCount()===0)return!1;for(var t=this.getStartLineNumber(),i=this.getEndLineNumber(),g=!1,b=0,K=o.length;b<K;b++){var Ie=o[b];if(Ie.toLineNumber<t||Ie.fromLineNumber>i)continue;for(var Le=Math.max(t,Ie.fromLineNumber),qe=Math.min(i,Ie.toLineNumber),ct=Le;ct<=qe;ct++){var wt=ct-this._rendLineNumberStart;this._lines[wt].onTokensChanged(),g=!0}}return g},V}(),Ut=function(){function V(o){var t=this;this._host=o,this.domNode=this._createDomNode(),this._linesCollection=new Ht(function(){return t._host.createVisibleLine()})}return V.prototype._createDomNode=function(){var o=Object(y.b)(document.createElement("div"));return o.setClassName("view-layer"),o.setPosition("absolute"),o.domNode.setAttribute("role","presentation"),o.domNode.setAttribute("aria-hidden","true"),o},V.prototype.onConfigurationChanged=function(o){return!!o.hasChanged(107)},V.prototype.onFlushed=function(o){return this._linesCollection.flush(),!0},V.prototype.onLinesChanged=function(o){return this._linesCollection.onLinesChanged(o.fromLineNumber,o.toLineNumber)},V.prototype.onLinesDeleted=function(o){var t=this._linesCollection.onLinesDeleted(o.fromLineNumber,o.toLineNumber);if(t)for(var i=0,g=t.length;i<g;i++){var b=t[i].getDomNode();b&&this.domNode.domNode.removeChild(b)}return!0},V.prototype.onLinesInserted=function(o){var t=this._linesCollection.onLinesInserted(o.fromLineNumber,o.toLineNumber);if(t)for(var i=0,g=t.length;i<g;i++){var b=t[i].getDomNode();b&&this.domNode.domNode.removeChild(b)}return!0},V.prototype.onScrollChanged=function(o){return o.scrollTopChanged},V.prototype.onTokensChanged=function(o){return this._linesCollection.onTokensChanged(o.ranges)},V.prototype.onZonesChanged=function(o){return!0},V.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},V.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},V.prototype.getVisibleLine=function(o){return this._linesCollection.getLine(o)},V.prototype.renderLines=function(o){var t=this._linesCollection._get(),i=new oo(this.domNode.domNode,this._host,o),g={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},b=i.render(g,o.startLineNumber,o.endLineNumber,o.relativeVerticalOffset);this._linesCollection._set(b.rendLineNumberStart,b.lines)},V}(),oo=function(){function V(o,t,i){this.domNode=o,this.host=t,this.viewportData=i}return V.prototype.render=function(o,t,i,g){var b={rendLineNumberStart:o.rendLineNumberStart,lines:o.lines.slice(0),linesLength:o.linesLength};if(b.rendLineNumberStart+b.linesLength-1<t||i<b.rendLineNumberStart){b.rendLineNumberStart=t,b.linesLength=i-t+1,b.lines=[];for(var K=t;K<=i;K++)b.lines[K-t]=this.host.createVisibleLine();return this._finishRendering(b,!0,g),b}if(this._renderUntouchedLines(b,Math.max(t-b.rendLineNumberStart,0),Math.min(i-b.rendLineNumberStart,b.linesLength-1),g,t),b.rendLineNumberStart>t){var Ie=t,Le=Math.min(i,b.rendLineNumberStart-1);Ie<=Le&&(this._insertLinesBefore(b,Ie,Le,g,t),b.linesLength+=Le-Ie+1)}else if(b.rendLineNumberStart<t){var qe=Math.min(b.linesLength,t-b.rendLineNumberStart);qe>0&&(this._removeLinesBefore(b,qe),b.linesLength-=qe)}if(b.rendLineNumberStart=t,b.rendLineNumberStart+b.linesLength-1<i){var Ie=b.rendLineNumberStart+b.linesLength,Le=i;Ie<=Le&&(this._insertLinesAfter(b,Ie,Le,g,t),b.linesLength+=Le-Ie+1)}else if(b.rendLineNumberStart+b.linesLength-1>i){var Ie=Math.max(0,i-b.rendLineNumberStart+1),Le=b.linesLength-1,qe=Le-Ie+1;qe>0&&(this._removeLinesAfter(b,qe),b.linesLength-=qe)}return this._finishRendering(b,!1,g),b},V.prototype._renderUntouchedLines=function(o,t,i,g,b){for(var K=o.rendLineNumberStart,Ie=o.lines,Le=t;Le<=i;Le++){var qe=K+Le;Ie[Le].layoutLine(qe,g[qe-b])}},V.prototype._insertLinesBefore=function(o,t,i,g,b){for(var K=[],Ie=0,Le=t;Le<=i;Le++)K[Ie++]=this.host.createVisibleLine();o.lines=K.concat(o.lines)},V.prototype._removeLinesBefore=function(o,t){for(var i=0;i<t;i++){var g=o.lines[i].getDomNode();g&&this.domNode.removeChild(g)}o.lines.splice(0,t)},V.prototype._insertLinesAfter=function(o,t,i,g,b){for(var K=[],Ie=0,Le=t;Le<=i;Le++)K[Ie++]=this.host.createVisibleLine();o.lines=o.lines.concat(K)},V.prototype._removeLinesAfter=function(o,t){for(var i=o.linesLength-t,g=0;g<t;g++){var b=o.lines[i+g].getDomNode();b&&this.domNode.removeChild(b)}o.lines.splice(i,t)},V.prototype._finishRenderingNewLines=function(o,t,i,g){var b=this.domNode.lastChild;t||!b?this.domNode.innerHTML=i:b.insertAdjacentHTML("afterend",i);for(var K=this.domNode.lastChild,Ie=o.linesLength-1;Ie>=0;Ie--){var Le=o.lines[Ie];g[Ie]&&(Le.setDomNode(K),K=K.previousSibling)}},V.prototype._finishRenderingInvalidLines=function(o,t,i){var g=document.createElement("div");g.innerHTML=t;for(var b=0;b<o.linesLength;b++){var K=o.lines[b];if(i[b]){var Ie=g.firstChild,Le=K.getDomNode();Le.parentNode.replaceChild(Ie,Le),K.setDomNode(Ie)}}},V.prototype._finishRendering=function(o,t,i){var g=V._sb,b=o.linesLength,K=o.lines,Ie=o.rendLineNumberStart,Le=[];{g.reset();for(var qe=!1,ct=0;ct<b;ct++){var wt=K[ct];Le[ct]=!1;var et=wt.getDomNode();if(et)continue;var Wt=wt.renderLine(ct+Ie,i[ct],this.viewportData,g);if(!Wt)continue;Le[ct]=!0,qe=!0}qe&&this._finishRenderingNewLines(o,t,g.build(),Le)}{g.reset();for(var kt=!1,Vt=[],ct=0;ct<b;ct++){var wt=K[ct];if(Vt[ct]=!1,Le[ct])continue;var Wt=wt.renderLine(ct+Ie,i[ct],this.viewportData,g);if(!Wt)continue;Vt[ct]=!0,kt=!0}kt&&this._finishRenderingInvalidLines(o,g.build(),Vt)}},V._sb=Object(Bt.a)(1e5),V}(),Zt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),fo=function(V){Zt(o,V);function o(t){var i=V.call(this,t)||this;return i._visibleLines=new Ut(i),i.domNode=i._visibleLines.domNode,i._dynamicOverlays=[],i._isFocused=!1,i.domNode.setClassName("view-overlays"),i}return o.prototype.shouldRender=function(){if(V.prototype.shouldRender.call(this))return!0;for(var t=0,i=this._dynamicOverlays.length;t<i;t++){var g=this._dynamicOverlays[t];if(g.shouldRender())return!0}return!1},o.prototype.dispose=function(){V.prototype.dispose.call(this);for(var t=0,i=this._dynamicOverlays.length;t<i;t++){var g=this._dynamicOverlays[t];g.dispose()}this._dynamicOverlays=[]},o.prototype.getDomNode=function(){return this.domNode},o.prototype.createVisibleLine=function(){return new yt(this._context.configuration,this._dynamicOverlays)},o.prototype.addDynamicOverlay=function(t){this._dynamicOverlays.push(t)},o.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t);for(var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),b=i;b<=g;b++){var K=this._visibleLines.getVisibleLine(b);K.onConfigurationChanged(t)}return!0},o.prototype.onFlushed=function(t){return this._visibleLines.onFlushed(t)},o.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!0},o.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},o.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},o.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},o.prototype.onScrollChanged=function(t){return this._visibleLines.onScrollChanged(t)||!0},o.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},o.prototype.onZonesChanged=function(t){return this._visibleLines.onZonesChanged(t)},o.prototype.prepareRender=function(t){for(var i=this._dynamicOverlays.filter(function(Ie){return Ie.shouldRender()}),g=0,b=i.length;g<b;g++){var K=i[g];K.prepareRender(t),K.onDidRender()}},o.prototype.render=function(t){this._viewOverlaysRender(t),this.domNode.toggleClassName("focused",this._isFocused)},o.prototype._viewOverlaysRender=function(t){this._visibleLines.renderLines(t.viewportData)},o}(B),yt=function(){function V(o,t){this._configuration=o,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(o){this._domNode=Object(y.b)(o)},V.prototype.onContentChanged=function(){},V.prototype.onTokensChanged=function(){},V.prototype.onConfigurationChanged=function(o){this._lineHeight=this._configuration.options.get(49)},V.prototype.renderLine=function(o,t,i,g){for(var b="",K=0,Ie=this._dynamicOverlays.length;K<Ie;K++){var Le=this._dynamicOverlays[K];b+=Le.render(i.startLineNumber,o)}return this._renderedContent===b?!1:(this._renderedContent=b,g.appendASCIIString('<div style="position:absolute;top:'),g.appendASCIIString(String(t)),g.appendASCIIString("px;width:100%;height:"),g.appendASCIIString(String(this._lineHeight)),g.appendASCIIString('px;">'),g.appendASCIIString(b),g.appendASCIIString("</div>"),!0)},V.prototype.layoutLine=function(o,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},V}(),He=function(V){Zt(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._contentWidth=b.contentWidth,i.domNode.setHeight(0),i}return o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._contentWidth=g.contentWidth,V.prototype.onConfigurationChanged.call(this,t)||!0},o.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},o.prototype._viewOverlaysRender=function(t){V.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},o}(fo),Oe=function(V){Zt(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._contentLeft=b.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),H.a.applyFontInfo(i.domNode,g.get(34)),i}return o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;H.a.applyFontInfo(this.domNode,i.get(34));var g=i.get(107);return this._contentLeft=g.contentLeft,V.prototype.onConfigurationChanged.call(this,t)||!0},o.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},o.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)},o}(fo),rt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),It=function(){function V(o,t){this.top=o,this.left=t}return V}(),pe=function(V){rt(o,V);function o(t,i){var g=V.call(this,t)||this;return g._viewDomNode=i,g._widgets={},g.domNode=Object(y.b)(document.createElement("div")),le.write(g.domNode,1),g.domNode.setClassName("contentWidgets"),g.domNode.setPosition("absolute"),g.domNode.setTop(0),g.overflowingContentWidgetsDomNode=Object(y.b)(document.createElement("div")),le.write(g.overflowingContentWidgetsDomNode,2),g.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),g}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._widgets={}},o.prototype.onConfigurationChanged=function(t){for(var i=Object.keys(this._widgets),g=0,b=i;g<b.length;g++){var K=b[g];this._widgets[K].onConfigurationChanged(t)}return!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLineMappingChanged=function(t){for(var i=Object.keys(this._widgets),g=0,b=i;g<b.length;g++){var K=b[g];this._widgets[K].onLineMappingChanged(t)}return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return!0},o.prototype.onZonesChanged=function(t){return!0},o.prototype.addWidget=function(t){var i=new D(this._context,this._viewDomNode,t);this._widgets[i.id]=i,i.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(i.domNode):this.domNode.appendChild(i.domNode),this.setShouldRender()},o.prototype.setWidgetPosition=function(t,i,g){var b=this._widgets[t.getId()];b.setPosition(i,g),this.setShouldRender()},o.prototype.removeWidget=function(t){var i=t.getId();if(this._widgets.hasOwnProperty(i)){var g=this._widgets[i];delete this._widgets[i];var b=g.domNode.domNode;b.parentNode.removeChild(b),b.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},o.prototype.shouldSuppressMouseDownOnWidget=function(t){return this._widgets.hasOwnProperty(t)?this._widgets[t].suppressMouseDown:!1},o.prototype.onBeforeRender=function(t){for(var i=Object.keys(this._widgets),g=0,b=i;g<b.length;g++){var K=b[g];this._widgets[K].onBeforeRender(t)}},o.prototype.prepareRender=function(t){for(var i=Object.keys(this._widgets),g=0,b=i;g<b.length;g++){var K=b[g];this._widgets[K].prepareRender(t)}},o.prototype.render=function(t){for(var i=Object.keys(this._widgets),g=0,b=i;g<b.length;g++){var K=b[g];this._widgets[K].render(t)}},o}(B),D=function(){function V(o,t,i){this._context=o,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 g=this._context.configuration.options,b=g.get(107);this._fixedOverflowWidgets=g.get(29),this._contentWidth=b.contentWidth,this._contentLeft=b.contentLeft,this._lineHeight=g.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(o){var t=this._context.configuration.options;if(this._lineHeight=t.get(49),o.hasChanged(107)){var i=t.get(107);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}},V.prototype.onLineMappingChanged=function(o){this._setPosition(this._range)},V.prototype._setPosition=function(o){if(this._range=o,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(o,t){this._setPosition(o),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},V.prototype._layoutBoxInViewport=function(o,t,i,g,b){var K=o.top,Ie=K,Le=t.top+this._lineHeight,qe=b.viewportHeight-Le,ct=K-g,wt=Ie>=g,et=Le,Wt=qe>=g,kt=o.left,Vt=t.left;return kt+i>b.scrollLeft+b.viewportWidth&&(kt=b.scrollLeft+b.viewportWidth-i),Vt+i>b.scrollLeft+b.viewportWidth&&(Vt=b.scrollLeft+b.viewportWidth-i),kt<b.scrollLeft&&(kt=b.scrollLeft),Vt<b.scrollLeft&&(Vt=b.scrollLeft),{fitsAbove:wt,aboveTop:ct,aboveLeft:kt,fitsBelow:Wt,belowTop:et,belowLeft:Vt}},V.prototype._layoutHorizontalSegmentInPage=function(o,t,i,g){var b=Math.max(0,t.left-g),K=Math.min(t.left+t.width+g,o.width),Ie=t.left+i-J.e.scrollX;if(Ie+g>K){var Le=Ie-(K-g);Ie-=Le,i-=Le}if(Ie<b){var Le=Ie-b;Ie-=Le,i-=Le}return[i,Ie]},V.prototype._layoutBoxInPage=function(o,t,i,g,b){var K=o.top-g,Ie=t.top+this._lineHeight,Le=J.C(this._viewDomNode.domNode),qe=Le.top+K-J.e.scrollY,ct=Le.top+Ie-J.e.scrollY,wt=J.y(document.body),et=this._layoutHorizontalSegmentInPage(wt,Le,o.left-b.scrollLeft+this._contentLeft,i),Wt=et[0],kt=et[1],Vt=this._layoutHorizontalSegmentInPage(wt,Le,t.left-b.scrollLeft+this._contentLeft,i),qt=Vt[0],$t=Vt[1],io=22,yo=22,mo=qe>=io,bo=ct+g<=wt.height-yo;return this._fixedOverflowWidgets?{fitsAbove:mo,aboveTop:Math.max(qe,io),aboveLeft:kt,fitsBelow:bo,belowTop:ct,belowLeft:$t}:{fitsAbove:mo,aboveTop:Math.max(K,io),aboveLeft:Wt,fitsBelow:bo,belowTop:Ie,belowLeft:qt}},V.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(o){return new It(o.top,o.left+this._contentLeft)},V.prototype._getTopAndBottomLeft=function(o){if(!this._viewRange)return[null,null];var t=o.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];for(var i=t[0],g=t[0],b=0,K=t;b<K.length;b++){var Ie=K[b];Ie.lineNumber<i.lineNumber&&(i=Ie),Ie.lineNumber>g.lineNumber&&(g=Ie)}for(var Le=1073741824,qe=0,ct=i.ranges;qe<ct.length;qe++){var wt=ct[qe];wt.left<Le&&(Le=wt.left)}for(var et=1073741824,Wt=0,kt=g.ranges;Wt<kt.length;Wt++){var wt=kt[Wt];wt.left<et&&(et=wt.left)}var Vt=o.getVerticalOffsetForLineNumber(i.lineNumber)-o.scrollTop,qt=new It(Vt,Le),$t=o.getVerticalOffsetForLineNumber(g.lineNumber)-o.scrollTop,io=new It($t,et);return[qt,io]},V.prototype._prepareRenderWidget=function(o){var t=this._getTopAndBottomLeft(o),i=t[0],g=t[1];if(!i||!g)return null;if(this._cachedDomNodeClientWidth===-1||this._cachedDomNodeClientHeight===-1){var b=this.domNode.domNode;this._cachedDomNodeClientWidth=b.clientWidth,this._cachedDomNodeClientHeight=b.clientHeight}var K;if(this.allowEditorOverflow?K=this._layoutBoxInPage(i,g,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,o):K=this._layoutBoxInViewport(i,g,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,o),this._preference)for(var Ie=1;Ie<=2;Ie++)for(var Le=0,qe=this._preference;Le<qe.length;Le++){var ct=qe[Le];if(ct===1){if(!K)return null;if(Ie===2||K.fitsAbove)return new It(K.aboveTop,K.aboveLeft)}else if(ct===2){if(!K)return null;if(Ie===2||K.fitsBelow)return new It(K.belowTop,K.belowLeft)}else return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i}return null},V.prototype.onBeforeRender=function(o){if(!this._viewRange||!this._preference)return;if(this._viewRange.endLineNumber<o.startLineNumber||this._viewRange.startLineNumber>o.endLineNumber)return;this.domNode.setMaxWidth(this._maxWidth)},V.prototype.prepareRender=function(o){this._renderData=this._prepareRenderWidget(o)},V.prototype.render=function(o){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+o.scrollTop-o.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(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),st=!0,mt=function(V){Ze(o,V);function o(t){var i=V.call(this)||this;i._context=t;var g=i._context.configuration.options,b=g.get(107);return i._lineHeight=g.get(49),i._renderLineHighlight=g.get(72),i._contentLeft=b.contentLeft,i._contentWidth=b.contentWidth,i._selectionIsEmpty=!0,i._cursorLineNumbers=[],i._selections=[],i._renderData=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},o.prototype._readFromSelections=function(){var t=!1,i=st?this._selections.slice(0,1):this._selections,g=i.map(function(K){return K.positionLineNumber});g.sort(function(K,Ie){return K-Ie}),We.g(this._cursorLineNumbers,g)||(this._cursorLineNumbers=g,t=!0);var b=i.every(function(K){return K.isEmpty()});return this._selectionIsEmpty!==b&&(this._selectionIsEmpty=b,t=!0),t},o.prototype.onThemeChanged=function(t){return this._readFromSelections()},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._lineHeight=i.get(49),this._renderLineHighlight=i.get(72),this._contentLeft=g.contentLeft,this._contentWidth=g.contentWidth,!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._readFromSelections()},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollWidthChanged||t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.prepareRender=function(t){if(!this._shouldRenderThis()){this._renderData=null;return}for(var i=this._renderOne(t),g=t.visibleRange.startLineNumber,b=t.visibleRange.endLineNumber,K=this._cursorLineNumbers.length,Ie=0,Le=[],qe=g;qe<=b;qe++){for(var ct=qe-g;Ie<K&&this._cursorLineNumbers[Ie]<qe;)Ie++;Ie<K&&this._cursorLineNumbers[Ie]===qe?Le[ct]=i:Le[ct]=""}this._renderData=Le},o.prototype.render=function(t,i){if(!this._renderData)return"";var g=i-t;return g>=this._renderData.length?"":this._renderData[g]},o}(ke),Kt=function(V){Ze(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.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>'},o.prototype._shouldRenderThis=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},o.prototype._shouldRenderOther=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},o}(mt),Xt=function(V){Ze(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.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>'},o.prototype._shouldRenderThis=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},o.prototype._shouldRenderOther=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},o}(mt);Object(X.e)(function(V,o){st=!1;var t=V.getColor(lt.i);if(t&&(o.addRule(".monaco-editor .view-overlays .current-line { background-color: "+t+"; }"),o.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,o.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),V.type==="hc"&&(o.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});var no=e("Vtyv"),vo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),lo=function(V){vo(o,V);function o(t){var i=V.call(this)||this;i._context=t;var g=i._context.configuration.options;return i._lineHeight=g.get(49),i._typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.prepareRender=function(t){for(var i=t.getDecorationsInViewport(),g=[],b=0,K=0,Ie=i.length;K<Ie;K++){var Le=i[K];Le.options.className&&(g[b++]=Le)}g=g.sort(function(kt,Vt){if(kt.options.zIndex<Vt.options.zIndex)return-1;if(kt.options.zIndex>Vt.options.zIndex)return 1;var qt=kt.options.className,$t=Vt.options.className;return qt<$t?-1:qt>$t?1:be.a.compareRangesUsingStarts(kt.range,Vt.range)});for(var qe=t.visibleRange.startLineNumber,ct=t.visibleRange.endLineNumber,wt=[],et=qe;et<=ct;et++){var Wt=et-qe;wt[Wt]=""}this._renderWholeLineDecorations(t,g,wt),this._renderNormalDecorations(t,g,wt),this._renderResult=wt},o.prototype._renderWholeLineDecorations=function(t,i,g){for(var b=String(this._lineHeight),K=t.visibleRange.startLineNumber,Ie=t.visibleRange.endLineNumber,Le=0,qe=i.length;Le<qe;Le++){var ct=i[Le];if(!ct.options.isWholeLine)continue;for(var wt='<div class="cdr '+ct.options.className+'" style="left:0;width:100%;height:'+b+'px;"></div>',et=Math.max(ct.range.startLineNumber,K),Wt=Math.min(ct.range.endLineNumber,Ie),kt=et;kt<=Wt;kt++){var Vt=kt-K;g[Vt]+=wt}}},o.prototype._renderNormalDecorations=function(t,i,g){for(var b=String(this._lineHeight),K=t.visibleRange.startLineNumber,Ie=null,Le=!1,qe=null,ct=0,wt=i.length;ct<wt;ct++){var et=i[ct];if(et.options.isWholeLine)continue;var Wt=et.options.className,kt=Boolean(et.options.showIfCollapsed),Vt=et.range;if(kt&&Vt.endColumn===1&&Vt.endLineNumber!==Vt.startLineNumber&&(Vt=new be.a(Vt.startLineNumber,Vt.startColumn,Vt.endLineNumber-1,this._context.model.getLineMaxColumn(Vt.endLineNumber-1))),Ie===Wt&&Le===kt&&be.a.areIntersectingOrTouching(qe,Vt)){qe=be.a.plusRange(qe,Vt);continue}Ie!==null&&this._renderNormalDecoration(t,qe,Ie,Le,b,K,g),Ie=Wt,Le=kt,qe=Vt}Ie!==null&&this._renderNormalDecoration(t,qe,Ie,Le,b,K,g)},o.prototype._renderNormalDecoration=function(t,i,g,b,K,Ie,Le){var qe=t.linesVisibleRangesForRange(i,g==="findMatch");if(!qe)return;for(var ct=0,wt=qe.length;ct<wt;ct++){var et=qe[ct];if(et.outsideRenderedLine)continue;var Wt=et.lineNumber-Ie;if(b&&et.ranges.length===1){var kt=et.ranges[0];kt.width===0&&(et.ranges[0]=new Ue(kt.left,this._typicalHalfwidthCharacterWidth))}for(var Vt=0,qt=et.ranges.length;Vt<qt;Vt++){var $t=et.ranges[Vt],io='<div class="cdr '+g+'" style="left:'+String($t.left)+"px;width:"+String($t.width)+"px;height:"+K+'px;"></div>';Le[Wt]+=io}}},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o}(ke),Ro=e("GJhM"),wo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),_o=function(V){wo(o,V);function o(t,i,g,b){var K=V.call(this,t)||this,Ie=K._context.configuration.options,Le=Ie.get(78),qe=Ie.get(56),ct=Ie.get(27),wt={listenOnDomNode:g.domNode,className:"editor-scrollable "+Object(X.d)(t.theme.type),useShadows:!1,lazyRender:!0,vertical:Le.vertical,horizontal:Le.horizontal,verticalHasArrows:Le.verticalHasArrows,horizontalHasArrows:Le.horizontalHasArrows,verticalScrollbarSize:Le.verticalScrollbarSize,verticalSliderSize:Le.verticalSliderSize,horizontalScrollbarSize:Le.horizontalScrollbarSize,horizontalSliderSize:Le.horizontalSliderSize,handleMouseWheel:Le.handleMouseWheel,alwaysConsumeMouseWheel:Le.alwaysConsumeMouseWheel,arrowSize:Le.arrowSize,mouseWheelScrollSensitivity:qe,fastScrollSensitivity:ct};K.scrollbar=K._register(new Ro.c(i.domNode,wt,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(kt,Vt,qt){var $t={};if(Vt){var io=kt.scrollTop;io&&($t.scrollTop=K._context.viewLayout.getCurrentScrollTop()+io,kt.scrollTop=0)}if(qt){var yo=kt.scrollLeft;yo&&($t.scrollLeft=K._context.viewLayout.getCurrentScrollLeft()+yo,kt.scrollLeft=0)}K._context.viewLayout.setScrollPositionNow($t)};return K._register(J.j(g.domNode,"scroll",function(Wt){return et(g.domNode,!0,!0)})),K._register(J.j(i.domNode,"scroll",function(Wt){return et(i.domNode,!0,!1)})),K._register(J.j(b.domNode,"scroll",function(Wt){return et(b.domNode,!0,!1)})),K._register(J.j(K.scrollbarDomNode.domNode,"scroll",function(Wt){return et(K.scrollbarDomNode.domNode,!0,!1)})),K}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype._setLayout=function(){var t=this._context.configuration.options,i=t.get(107);this.scrollbarDomNode.setLeft(i.contentLeft);var g=t.get(54),b=g.side;b==="right"?this.scrollbarDomNode.setWidth(i.contentWidth+i.minimapWidth):this.scrollbarDomNode.setWidth(i.contentWidth),this.scrollbarDomNode.setHeight(i.height)},o.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},o.prototype.getDomNode=function(){return this.scrollbarDomNode},o.prototype.delegateVerticalScrollbarMouseDown=function(t){this.scrollbar.delegateVerticalScrollbarMouseDown(t)},o.prototype.onConfigurationChanged=function(t){if(t.hasChanged(78)||t.hasChanged(56)||t.hasChanged(27)){var i=this._context.configuration.options,g=i.get(78),b=i.get(56),K=i.get(27),Ie={handleMouseWheel:g.handleMouseWheel,mouseWheelScrollSensitivity:b,fastScrollSensitivity:K};this.scrollbar.updateOptions(Ie)}return t.hasChanged(107)&&this._setLayout(),!0},o.prototype.onScrollChanged=function(t){return!0},o.prototype.onThemeChanged=function(t){return this.scrollbar.updateClassName("editor-scrollable "+Object(X.d)(this._context.theme.type)),!0},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this.scrollbar.renderNow()},o}(B),jo=e("hHjc"),Uo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Do=function(){function V(o,t,i){this.startLineNumber=+o,this.endLineNumber=+t,this.className=String(i)}return V}(),xo=function(V){Uo(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.prototype._render=function(t,i,g){for(var b=[],K=t;K<=i;K++){var Ie=K-t;b[Ie]=[]}if(g.length===0)return b;g.sort(function($t,io){return $t.className===io.className?$t.startLineNumber===io.startLineNumber?$t.endLineNumber-io.endLineNumber:$t.startLineNumber-io.startLineNumber:$t.className<io.className?-1:1});for(var Le=null,qe=0,ct=0,wt=g.length;ct<wt;ct++){var et=g[ct],Wt=et.className,kt=Math.max(et.startLineNumber,t)-t,Vt=Math.min(et.endLineNumber,i)-t;Le===Wt?(kt=Math.max(qe+1,kt),qe=Math.max(qe,Vt)):(Le=Wt,qe=Vt);for(var qt=kt;qt<=qe;qt++)b[qt].push(Le)}return b},o}(ke),tn=function(V){Uo(o,V);function o(t){var i=V.call(this)||this;i._context=t;var g=i._context.configuration.options,b=g.get(107);return i._lineHeight=g.get(49),i._glyphMargin=g.get(40),i._glyphMarginLeft=b.glyphMarginLeft,i._glyphMarginWidth=b.glyphMarginWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._lineHeight=i.get(49),this._glyphMargin=i.get(40),this._glyphMarginLeft=g.glyphMarginLeft,this._glyphMarginWidth=g.glyphMarginWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),g=[],b=0,K=0,Ie=i.length;K<Ie;K++){var Le=i[K],qe=Le.options.glyphMarginClassName;qe&&(g[b++]=new Do(Le.range.startLineNumber,Le.range.endLineNumber,qe))}return g},o.prototype.prepareRender=function(t){if(!this._glyphMargin){this._renderResult=null;return}for(var i=t.visibleRange.startLineNumber,g=t.visibleRange.endLineNumber,b=this._render(i,g,this._getDecorations(t)),K=this._lineHeight.toString(),Ie=this._glyphMarginLeft.toString(),Le=this._glyphMarginWidth.toString(),qe='" style="left:'+Ie+"px;width:"+Le+"px;height:"+K+'px;"></div>',ct=[],wt=i;wt<=g;wt++){var et=wt-i,Wt=b[et];Wt.length===0?ct[et]="":ct[et]='<div class="cgmr codicon '+Wt.join(" ")+qe}this._renderResult=ct},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o}(xo),gn=e("C6rC"),En=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),on=function(V){En(o,V);function o(t){var i=V.call(this)||this;i._context=t,i._primaryLineNumber=0;var g=i._context.configuration.options,b=g.get(108),K=g.get(34);return i._lineHeight=g.get(49),i._spaceWidth=K.spaceWidth,i._enabled=g.get(70),i._activeIndentEnabled=g.get(43),i._maxIndentLeft=b.wrappingColumn===-1?-1:b.wrappingColumn*K.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(108),b=i.get(34);return this._lineHeight=i.get(49),this._spaceWidth=b.spaceWidth,this._enabled=i.get(70),this._activeIndentEnabled=i.get(43),this._maxIndentLeft=g.wrappingColumn===-1?-1:g.wrappingColumn*b.typicalHalfwidthCharacterWidth,!0},o.prototype.onCursorStateChanged=function(t){var i=t.selections[0],g=i.isEmpty()?i.positionLineNumber:0;return this._primaryLineNumber!==g?(this._primaryLineNumber=g,!0):!1},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.onLanguageConfigurationChanged=function(t){return!0},o.prototype.prepareRender=function(t){if(!this._enabled){this._renderResult=null;return}var i=t.visibleRange.startLineNumber,g=t.visibleRange.endLineNumber,b=this._context.model.getOptions().indentSize,K=b*this._spaceWidth,Ie=t.scrollWidth,Le=this._lineHeight,qe=this._context.model.getLinesIndentGuides(i,g),ct=0,wt=0,et=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var Wt=this._context.model.getActiveIndentGuide(this._primaryLineNumber,i,g);ct=Wt.startLineNumber,wt=Wt.endLineNumber,et=Wt.indent}for(var kt=[],Vt=i;Vt<=g;Vt++){var qt=ct<=Vt&&Vt<=wt,$t=Vt-i,io=qe[$t],yo="";if(io>=1)for(var mo=t.visibleRangeForPosition(new oe.a(Vt,1)),bo=mo?mo.left:0,go=1;go<=io;go++){var Lo=qt&&go===et?"cigra":"cigr";if(yo+='<div class="'+Lo+'" style="left:'+bo+"px;height:"+Le+"px;width:"+K+'px"></div>',bo+=K,bo>Ie||this._maxIndentLeft>0&&bo>this._maxIndentLeft)break}kt[$t]=yo}this._renderResult=kt},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o}(ke);Object(X.e)(function(V,o){var t=V.getColor(lt.h);t&&o.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+t+" inset; }");var i=V.getColor(lt.a)||t;i&&o.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")});var On=e("OKK6"),Hn=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Rn=function(){function V(){this._currentVisibleRange=new be.a(1,1,1,1)}return V.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},V.prototype.setCurrentVisibleRange=function(o){this._currentVisibleRange=o},V}(),ai=function(){function V(o,t,i,g,b,K){this.lineNumber=o,this.startColumn=t,this.endColumn=i,this.startScrollTop=g,this.stopScrollTop=b,this.scrollType=K}return V}(),bi=function(V){Hn(o,V);function o(t,i){var g=V.call(this,t)||this;g._linesContent=i,g._textRangeRestingSpot=document.createElement("div"),g._visibleLines=new Ut(g),g.domNode=g._visibleLines.domNode;var b=g._context.configuration,K=g._context.configuration.options,Ie=K.get(34),Le=K.get(108);return g._lineHeight=K.get(49),g._typicalHalfwidthCharacterWidth=Ie.typicalHalfwidthCharacterWidth,g._isViewportWrapping=Le.isViewportWrapping,g._revealHorizontalRightPadding=K.get(75),g._cursorSurroundingLines=K.get(19),g._cursorSurroundingLinesStyle=K.get(20),g._canUseLayerHinting=!K.get(22),g._viewLineOptions=new we(b,g._context.theme.type),le.write(g.domNode,7),g.domNode.setClassName("view-lines"),H.a.applyFontInfo(g.domNode,Ie),g._maxLineWidth=0,g._asyncUpdateLineWidths=new p.d(function(){g._updateLineWidthsSlow()},200),g._lastRenderedData=new Rn,g._horizontalRevealRequest=null,g}return o.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),V.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this.domNode},o.prototype.createVisibleLine=function(){return new Re(this._viewLineOptions)},o.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t),t.hasChanged(108)&&(this._maxLineWidth=0);var i=this._context.configuration.options,g=i.get(34),b=i.get(108);return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=g.typicalHalfwidthCharacterWidth,this._isViewportWrapping=b.isViewportWrapping,this._revealHorizontalRightPadding=i.get(75),this._cursorSurroundingLines=i.get(19),this._cursorSurroundingLinesStyle=i.get(20),this._canUseLayerHinting=!i.get(22),H.a.applyFontInfo(this.domNode,g),this._onOptionsMaybeChanged(),t.hasChanged(107)&&(this._maxLineWidth=0),!0},o.prototype._onOptionsMaybeChanged=function(){var t=this._context.configuration,i=new we(t,this._context.theme.type);if(!this._viewLineOptions.equals(i)){this._viewLineOptions=i;for(var g=this._visibleLines.getStartLineNumber(),b=this._visibleLines.getEndLineNumber(),K=g;K<=b;K++){var Ie=this._visibleLines.getVisibleLine(K);Ie.onOptionsChanged(this._viewLineOptions)}return!0}return!1},o.prototype.onCursorStateChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),b=!1,K=i;K<=g;K++)b=this._visibleLines.getVisibleLine(K).onSelectionChanged()||b;return b},o.prototype.onDecorationsChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),b=i;b<=g;b++)this._visibleLines.getVisibleLine(b).onDecorationsChanged();return!0},o.prototype.onFlushed=function(t){var i=this._visibleLines.onFlushed(t);return this._maxLineWidth=0,i},o.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},o.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},o.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},o.prototype.onRevealRangeRequest=function(t){var i=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),t.source,t.range,t.verticalType),g=this._context.viewLayout.validateScrollPosition({scrollTop:i});t.revealHorizontal?t.range.startLineNumber!==t.range.endLineNumber?g={scrollTop:g.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new ai(t.range.startLineNumber,t.range.startColumn,t.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),g.scrollTop,t.scrollType):this._horizontalRevealRequest=null;var b=Math.abs(this._context.viewLayout.getCurrentScrollTop()-g.scrollTop);return t.scrollType===0&&b>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(g):this._context.viewLayout.setScrollPositionNow(g),!0},o.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),g=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(t.scrollTop<i||t.scrollTop>g)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(t.scrollWidth),this._visibleLines.onScrollChanged(t)||!0},o.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},o.prototype.onZonesChanged=function(t){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(t)},o.prototype.onThemeChanged=function(t){return this._onOptionsMaybeChanged()},o.prototype.getPositionFromDOMInfo=function(t,i){var g=this._getViewLineDomNode(t);if(g===null)return null;var b=this._getLineNumberFor(g);if(b===-1)return null;if(b<1||b>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(b)===1)return new oe.a(b,1);var K=this._visibleLines.getStartLineNumber(),Ie=this._visibleLines.getEndLineNumber();if(b<K||b>Ie)return null;var Le=this._visibleLines.getVisibleLine(b).getColumnOfNodeOffset(b,t,i),qe=this._context.model.getLineMinColumn(b);return Le<qe&&(Le=qe),new oe.a(b,Le)},o.prototype._getViewLineDomNode=function(t){for(;t&&t.nodeType===1;){if(t.className===Re.CLASS_NAME)return t;t=t.parentElement}return null},o.prototype._getLineNumberFor=function(t){for(var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),b=i;b<=g;b++){var K=this._visibleLines.getVisibleLine(b);if(t===K.getDomNode())return b}return-1},o.prototype.getLineWidth=function(t){var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber();return t<i||t>g?-1:this._visibleLines.getVisibleLine(t).getWidth()},o.prototype.linesVisibleRangesForRange=function(t,i){if(this.shouldRender())return null;var g=t.endLineNumber,b=be.a.intersectRanges(t,this._lastRenderedData.getCurrentVisibleRange());if(!b)return null;var K=[],Ie=0,Le=new ge(this.domNode.domNode,this._textRangeRestingSpot),qe=0;i&&(qe=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new oe.a(b.startLineNumber,1)).lineNumber);for(var ct=this._visibleLines.getStartLineNumber(),wt=this._visibleLines.getEndLineNumber(),et=b.startLineNumber;et<=b.endLineNumber;et++){if(et<ct||et>wt)continue;var Wt=et===b.startLineNumber?b.startColumn:1,kt=et===b.endLineNumber?b.endColumn:this._context.model.getLineMaxColumn(et),Vt=this._visibleLines.getVisibleLine(et).getVisibleRangesForRange(Wt,kt,Le);if(!Vt)continue;if(i&&et<g){var qt=qe;qe=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new oe.a(et+1,1)).lineNumber,qt!==qe&&(Vt.ranges[Vt.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}K[Ie++]=new Fe(Vt.outsideRenderedLine,et,Vt.ranges)}return Ie===0?null:K},o.prototype._visibleRangesForLineRange=function(t,i,g){return this.shouldRender()||(t<this._visibleLines.getStartLineNumber()||t>this._visibleLines.getEndLineNumber())?null:this._visibleLines.getVisibleLine(t).getVisibleRangesForRange(i,g,new ge(this.domNode.domNode,this._textRangeRestingSpot))},o.prototype.visibleRangeForPosition=function(t){var i=this._visibleRangesForLineRange(t.lineNumber,t.column,t.column);return i?new Pe(i.outsideRenderedLine,i.ranges[0].left):null},o.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},o.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},o.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},o.prototype._updateLineWidths=function(t){for(var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),b=1,K=!0,Ie=i;Ie<=g;Ie++){var Le=this._visibleLines.getVisibleLine(Ie);if(t&&!Le.getWidthIsFast()){K=!1;continue}b=Math.max(b,Le.getWidth())}return K&&i===1&&g===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(b),K},o.prototype.prepareRender=function(){throw new Error("Not supported")},o.prototype.render=function(){throw new Error("Not supported")},o.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,g=this._horizontalRevealRequest.startColumn,b=this._horizontalRevealRequest.endColumn,K=this._horizontalRevealRequest.scrollType;if(t.startLineNumber<=i&&i<=t.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var Ie=this._computeScrollLeftToRevealRange(i,g,b),Le=this._isViewportWrapping;Le||this._ensureMaxLineWidth(Ie.maxHorizontalOffset),K===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:Ie.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:Ie.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())},o.prototype._ensureMaxLineWidth=function(t){var i=Math.ceil(t);this._maxLineWidth<i&&(this._maxLineWidth=i,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},o.prototype._computeScrollTopToRevealRange=function(t,i,g,b){var K=t.top,Ie=t.height,Le=K+Ie,qe,ct;qe=this._context.viewLayout.getVerticalOffsetForLineNumber(g.startLineNumber),ct=this._context.viewLayout.getVerticalOffsetForLineNumber(g.endLineNumber)+this._lineHeight;var wt=i==="mouse"&&this._cursorSurroundingLinesStyle==="default";if(!wt){var et=Math.min(Ie/this._lineHeight/2,this._cursorSurroundingLines);qe-=et*this._lineHeight,ct+=Math.max(0,et-1)*this._lineHeight}(b===0||b===4)&&(ct+=this._lineHeight);var Wt;if(ct-qe>Ie)Wt=qe;else if(b===1||b===2)if(b===2&&K<=qe&&ct<=Le)Wt=K;else{var kt=(qe+ct)/2;Wt=Math.max(0,kt-Ie/2)}else Wt=this._computeMinimumScrolling(K,Le,qe,ct,b===3,b===4);return Wt},o.prototype._computeScrollLeftToRevealRange=function(t,i,g){var b=0,K=this._context.viewLayout.getCurrentViewport(),Ie=K.left,Le=Ie+K.width,qe=this._visibleRangesForLineRange(t,i,g),ct=1073741824,wt=0;if(!qe)return{scrollLeft:Ie,maxHorizontalOffset:b};for(var et=0,Wt=qe.ranges;et<Wt.length;et++){var kt=Wt[et];kt.left<ct&&(ct=kt.left),kt.left+kt.width>wt&&(wt=kt.left+kt.width)}b=wt,ct=Math.max(0,ct-o.HORIZONTAL_EXTRA_PX),wt+=this._revealHorizontalRightPadding;var Vt=this._computeMinimumScrolling(Ie,Le,ct,wt);return{scrollLeft:Vt,maxHorizontalOffset:b}},o.prototype._computeMinimumScrolling=function(t,i,g,b,K,Ie){t=t|0,i=i|0,g=g|0,b=b|0,K=!!K,Ie=!!Ie;var Le=i-t,qe=b-g;if(qe<Le){if(K)return g;if(Ie)return Math.max(0,b-Le);if(g<t)return g;if(b>i)return Math.max(0,b-Le)}else return g;return t},o.HORIZONTAL_EXTRA_PX=30,o}(B),kn=e("J+ZK"),Qn=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Yr=function(V){Qn(o,V);function o(t){var i=V.call(this)||this;i._context=t;var g=i._context.configuration.options,b=g.get(107);return i._decorationsLeft=b.decorationsLeft,i._decorationsWidth=b.decorationsWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._decorationsLeft=g.decorationsLeft,this._decorationsWidth=g.decorationsWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),g=[],b=0,K=0,Ie=i.length;K<Ie;K++){var Le=i[K],qe=Le.options.linesDecorationsClassName;qe&&(g[b++]=new Do(Le.range.startLineNumber,Le.range.endLineNumber,qe))}return g},o.prototype.prepareRender=function(t){for(var i=t.visibleRange.startLineNumber,g=t.visibleRange.endLineNumber,b=this._render(i,g,this._getDecorations(t)),K=this._decorationsLeft.toString(),Ie=this._decorationsWidth.toString(),Le='" style="left:'+K+"px;width:"+Ie+'px;"></div>',qe=[],ct=i;ct<=g;ct++){for(var wt=ct-i,et=b[wt],Wt="",kt=0,Vt=et.length;kt<Vt;kt++)Wt+='<div class="cldr '+et[kt]+Le;qe[wt]=Wt}this._renderResult=qe},o.prototype.render=function(t,i){return this._renderResult?this._renderResult[i-t]:""},o}(xo),oa=e("XXBq"),zi=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ki=function(V){zi(o,V);function o(t){var i=V.call(this)||this;return i._context=t,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){return!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),g=[],b=0,K=0,Ie=i.length;K<Ie;K++){var Le=i[K],qe=Le.options.marginClassName;qe&&(g[b++]=new Do(Le.range.startLineNumber,Le.range.endLineNumber,qe))}return g},o.prototype.prepareRender=function(t){for(var i=t.visibleRange.startLineNumber,g=t.visibleRange.endLineNumber,b=this._render(i,g,this._getDecorations(t)),K=[],Ie=i;Ie<=g;Ie++){for(var Le=Ie-i,qe=b[Le],ct="",wt=0,et=qe.length;wt<et;wt++)ct+='<div class="cmdr '+qe[wt]+'" style=""></div>';K[Le]=ct}this._renderResult=K},o.prototype.render=function(t,i){return this._renderResult?this._renderResult[i-t]:""},o}(xo),Zr=e("8gvo"),Gi=function(){function V(o,t,i,g){this.r=V._clamp(o),this.g=V._clamp(t),this.b=V._clamp(i),this.a=V._clamp(g)}return V._clamp=function(o){return o<0?0:o>255?255:o|0},V.Empty=new V(0,0,0,0),V}(),$o=e("twdY"),li=function(){function V(){var o=this;this._onDidChange=new U.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),$o.B.onDidChange(function(t){t.changedColorMap&&o._updateColorMap()})}return V.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new V),this._INSTANCE},V.prototype._updateColorMap=function(){var o=$o.B.getColorMap();if(!o){this._colors=[Gi.Empty],this._backgroundIsLight=!0;return}this._colors=[Gi.Empty];for(var t=1;t<o.length;t++){var i=o[t].rgba;this._colors[t]=new Gi(i.r,i.g,i.b,Math.round(i.a*255))}var g=o[2].getRelativeLuminance();this._backgroundIsLight=g>=.5,this._onDidChange.fire(void 0)},V.prototype.getColor=function(o){return(o<1||o>=this._colors.length)&&(o=2),this._colors[o]},V.prototype.backgroundIsLight=function(){return this._backgroundIsLight},V._INSTANCE=null,V}(),Tn=e("MD5Z"),yr=function(){for(var V=[],o=32;o<=126;o++)V.push(o);return V.push(65533),V}(),Qr=function(o,t){return o-=32,o<0||o>96?t<=2?(o+96)%96:96-1:o},xn=function(){function V(o,t){this.scale=t,this.charDataNormal=V.soften(o,12/15),this.charDataLight=V.soften(o,50/60)}return V.soften=function(o,t){for(var i=new Uint8ClampedArray(o.length),g=0,b=o.length;g<b;g++)i[g]=o[g]*t;return i},V.prototype.renderChar=function(o,t,i,g,b,K,Ie,Le){var qe=1*this.scale,ct=2*this.scale;if(t+qe>o.width||i+ct>o.height){console.warn("bad render request outside image data");return}for(var wt=Le?this.charDataLight:this.charDataNormal,et=Qr(g,Ie),Wt=o.width*4,kt=K.r,Vt=K.g,qt=K.b,$t=b.r-kt,io=b.g-Vt,yo=b.b-qt,mo=o.data,bo=et*qe*ct,go=i*Wt+t*4,Lo=0;Lo<ct;Lo++){for(var No=go,Fo=0;Fo<qe;Fo++){var Xo=wt[bo++]/255;mo[No++]=kt+$t*Xo,mo[No++]=Vt+io*Xo,mo[No++]=qt+yo*Xo,No++}go+=Wt}},V.prototype.blockRenderChar=function(o,t,i,g,b,K){var Ie=1*this.scale,Le=2*this.scale;if(t+Ie>o.width||i+Le>o.height){console.warn("bad render request outside image data");return}for(var qe=o.width*4,ct=.5,wt=b.r,et=b.g,Wt=b.b,kt=g.r-wt,Vt=g.g-et,qt=g.b-Wt,$t=wt+kt*ct,io=et+Vt*ct,yo=Wt+qt*ct,mo=o.data,bo=i*qe+t*4,go=0;go<Le;go++){for(var Lo=bo,No=0;No<Ie;No++)mo[Lo++]=$t,mo[Lo++]=io,mo[Lo++]=yo,Lo++;bo+=qe}},V}(),$n=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},br=function(o){for(var t=new Uint8ClampedArray(o.length/2),i=0;i<o.length;i+=2)t[i>>1]=Xi[o[i]]<<4|Xi[o[i+1]]&15;return t},Yi={1:Object($n.a)(function(){return br("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")}),2:Object($n.a)(function(){return br("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")})},di=function(){function V(){}return V.create=function(o,t){if(this.lastCreated&&o===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;var i;return Yi[o]?i=new xn(Yi[o](),o):i=V.createFromSampleData(V.createSampleData(t).data,o),this.lastFontFamily=t,this.lastCreated=i,i},V.createSampleData=function(o){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 "+o,i.textBaseline="middle";for(var g=0,b=0,K=yr;b<K.length;b++){var Ie=K[b];i.fillText(String.fromCharCode(Ie),g,16/2),g+=10}return i.getImageData(0,0,96*10,16)},V.createFromSampleData=function(o,t){var i=16*10*4*96;if(o.length!==i)throw new Error("Unexpected source in MinimapCharRenderer");var g=V._downsample(o,t);return new xn(g,t)},V._downsampleChar=function(o,t,i,g,b){for(var K=1*b,Ie=2*b,Le=g,qe=0,ct=0;ct<Ie;ct++)for(var wt=ct/Ie*16,et=(ct+1)/Ie*16,Wt=0;Wt<K;Wt++){for(var kt=Wt/K*10,Vt=(Wt+1)/K*10,qt=0,$t=0,io=wt;io<et;io++)for(var yo=t+Math.floor(io)*3840,mo=1-(io-Math.floor(io)),bo=kt;bo<Vt;bo++){var go=1-(bo-Math.floor(bo)),Lo=yo+Math.floor(bo)*4,No=go*mo;$t+=No,qt+=o[Lo]*o[Lo+3]/255*No}var Fo=qt/$t;qe=Math.max(qe,Fo),i[Le++]=Fo}return qe},V._downsample=function(o,t){for(var i=2*t*1*t,g=i*96,b=new Uint8ClampedArray(g),K=0,Ie=0,Le=0,qe=0;qe<96;qe++)Le=Math.max(Le,this._downsampleChar(o,Ie,b,K,t)),K+=i,Ie+=10*4;if(Le>0)for(var ct=255/Le,wt=0;wt<g;wt++)b[wt]*=ct;return b},V}(),Cr=e("M1Kb"),$r=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function _n(V,o){return V===1?2*o:(2+1)*o}function Zi(V,o){return V===1,1*o}var Jr=140,Sn=2,Qi=function(){function V(o){var t=this,i=o.options,g=i.get(105),b=i.get(107),K=i.get(34);this.renderMinimap=b.renderMinimap|0,this.scrollBeyondLastLine=i.get(80);var Ie=i.get(54);this.showSlider=Ie.showSlider,this.fontScale=Math.round(Ie.scale*g),this.charRenderer=Object($n.a)(function(){return di.create(t.fontScale,K.fontFamily)}),this.pixelRatio=g,this.typicalHalfwidthCharacterWidth=K.typicalHalfwidthCharacterWidth,this.lineHeight=i.get(49),this.minimapLeft=b.minimapLeft,this.minimapWidth=b.minimapWidth,this.minimapHeight=b.height,this.canvasInnerWidth=Math.floor(g*this.minimapWidth),this.canvasInnerHeight=Math.floor(g*this.minimapHeight),this.canvasOuterWidth=this.canvasInnerWidth/g,this.canvasOuterHeight=this.canvasInnerHeight/g}return V.prototype.equals=function(o){return this.renderMinimap===o.renderMinimap&&this.scrollBeyondLastLine===o.scrollBeyondLastLine&&this.showSlider===o.showSlider&&this.pixelRatio===o.pixelRatio&&this.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&this.lineHeight===o.lineHeight&&this.fontScale===o.fontScale&&this.minimapLeft===o.minimapLeft&&this.minimapWidth===o.minimapWidth&&this.minimapHeight===o.minimapHeight&&this.canvasInnerWidth===o.canvasInnerWidth&&this.canvasInnerHeight===o.canvasInnerHeight&&this.canvasOuterWidth===o.canvasOuterWidth&&this.canvasOuterHeight===o.canvasOuterHeight},V}(),qr=function(){function V(o,t,i,g,b,K,Ie){this.scrollTop=o,this.scrollHeight=t,this._computedSliderRatio=i,this.sliderTop=g,this.sliderHeight=b,this.startLineNumber=K,this.endLineNumber=Ie}return V.prototype.getDesiredScrollTopFromDelta=function(o){var t=this.sliderTop+o;return Math.round(t/this._computedSliderRatio)},V.prototype.getDesiredScrollTopFromTouchLocation=function(o){return Math.round((o-this.sliderHeight/2)/this._computedSliderRatio)},V.create=function(o,t,i,g,b,K,Ie,Le,qe){var ct=o.pixelRatio,wt=_n(o.renderMinimap,o.fontScale),et=Math.floor(o.canvasInnerHeight/wt),Wt=o.lineHeight,kt;if(b&&i!==K){var Vt=i-t+1;kt=Math.floor(Vt*wt/ct)}else{var qt=g/Wt;kt=Math.floor(qt*wt/ct)}var $t;o.scrollBeyondLastLine?$t=(K-1)*wt/ct:$t=Math.max(0,K*wt/ct-kt),$t=Math.min(o.minimapHeight-kt,$t);var io=$t/(Le-g),yo=Ie*io,mo=0;if(o.scrollBeyondLastLine){var qt=g/Wt;mo=qt}if(et>=K+mo){var bo=1,go=K;return new V(Ie,Le,io,yo,kt,bo,go)}else{var bo=Math.max(1,Math.floor(t-yo*ct/wt));qe&&qe.scrollHeight===Le&&(qe.scrollTop>Ie&&(bo=Math.min(bo,qe.startLineNumber)),qe.scrollTop<Ie&&(bo=Math.max(bo,qe.startLineNumber)));var go=Math.min(K,bo+et-1);return new V(Ie,Le,io,yo,kt,bo,go)}},V}(),$i=function(){function V(o){this.dy=o}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(o,t,i){this.renderedLayout=o,this._imageData=t,this._renderedLines=new Ht(function(){return $i.INVALID}),this._renderedLines._set(o.startLineNumber,i)}return V.prototype.linesEquals=function(o){if(!this.scrollEquals(o))return!1;for(var t=this._renderedLines._get(),i=t.lines,g=0,b=i.length;g<b;g++)if(i[g].dy===-1)return!1;return!0},V.prototype.scrollEquals=function(o){return this.renderedLayout.startLineNumber===o.startLineNumber&&this.renderedLayout.endLineNumber===o.endLineNumber},V.prototype._get=function(){var o=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:o.rendLineNumberStart,lines:o.lines}},V.prototype.onLinesChanged=function(o){return this._renderedLines.onLinesChanged(o.fromLineNumber,o.toLineNumber)},V.prototype.onLinesDeleted=function(o){this._renderedLines.onLinesDeleted(o.fromLineNumber,o.toLineNumber)},V.prototype.onLinesInserted=function(o){this._renderedLines.onLinesInserted(o.fromLineNumber,o.toLineNumber)},V.prototype.onTokensChanged=function(o){return this._renderedLines.onTokensChanged(o.ranges)},V}(),wr=function(){function V(o,t,i,g){this._backgroundFillData=V._createBackgroundFillData(t,i,g),this._buffers=[o.createImageData(t,i),o.createImageData(t,i)],this._lastUsedBuffer=0}return V.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var o=this._buffers[this._lastUsedBuffer];return o.data.set(this._backgroundFillData),o},V._createBackgroundFillData=function(o,t,i){for(var g=i.r,b=i.g,K=i.b,Ie=new Uint8ClampedArray(o*t*4),Le=0,qe=0;qe<t;qe++)for(var ct=0;ct<o;ct++)Ie[Le]=g,Ie[Le+1]=b,Ie[Le+2]=K,Ie[Le+3]=255,Le+=4;return Ie},V}(),es=function(V){$r(o,V);function o(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(Tn.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(g){g.preventDefault();var b=i._options.renderMinimap;if(b===0)return;if(!i._lastRenderData)return;var K=_n(b,i._options.fontScale),Ie=i._options.pixelRatio*g.browserEvent.offsetY,Le=Math.floor(Ie/K),qe=Le+i._lastRenderData.renderedLayout.startLineNumber;qe=Math.min(qe,i._context.model.getLineCount()),i._context.privateViewEventBus.emit(new mn("mouse",new be.a(qe,1,qe,1),1,!1,0))}),i._sliderMouseMoveMonitor=new c.a,i._sliderMouseDownListener=J.o(i._slider.domNode,"mousedown",function(g){if(g.preventDefault(),g.stopPropagation(),g.leftButton&&i._lastRenderData){var b=g.posy,K=g.posx,Ie=i._lastRenderData.renderedLayout;i._slider.toggleClassName("active",!0),i._sliderMouseMoveMonitor.startMonitoring(g.target,g.buttons,c.b,function(Le){var qe=Math.abs(Le.posx-K);if(_.h&&qe>Jr){i._context.viewLayout.setScrollPositionNow({scrollTop:Ie.scrollTop});return}var ct=Le.posy-b;i._context.viewLayout.setScrollPositionNow({scrollTop:Ie.getDesiredScrollTopFromDelta(ct)})},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(g){g.preventDefault(),g.stopPropagation(),i._lastRenderData&&(i._slider.toggleClassName("active",!0),i._gestureInProgress=!0,i.scrollDueToTouchEvent(g))}),i._sliderTouchMoveListener=J.o(i._domNode.domNode,f.a.Change,function(g){g.preventDefault(),g.stopPropagation(),i._lastRenderData&&i._gestureInProgress&&i.scrollDueToTouchEvent(g)}),i._sliderTouchEndListener=J.o(i._domNode.domNode,f.a.End,function(g){g.preventDefault(),g.stopPropagation(),i._gestureInProgress=!1,i._slider.toggleClassName("active",!1)}),i}return o.prototype.scrollDueToTouchEvent=function(t){var i=this._domNode.domNode.getBoundingClientRect().top,g=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(t.pageY-i);this._context.viewLayout.setScrollPositionNow({scrollTop:g})},o.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)},o.prototype._getMinimapDomNodeClassName=function(){return this._options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"},o.prototype.getDomNode=function(){return this._domNode},o.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)},o.prototype._getBuffer=function(){return this._buffers||this._options.canvasInnerWidth>0&&this._options.canvasInnerHeight>0&&(this._buffers=new wr(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},o.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)},o.prototype.onConfigurationChanged=function(t){return this._onOptionsMaybeChanged()},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._renderDecorations=!0,!0},o.prototype.onFlushed=function(t){return this._lastRenderData=null,!0},o.prototype.onLinesChanged=function(t){return this._lastRenderData?this._lastRenderData.onLinesChanged(t):!1},o.prototype.onLinesDeleted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(t),!0},o.prototype.onLinesInserted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(t),!0},o.prototype.onScrollChanged=function(t){return this._renderDecorations=!0,!0},o.prototype.onTokensChanged=function(t){return this._lastRenderData?this._lastRenderData.onTokensChanged(t):!1},o.prototype.onTokensColorsChanged=function(t){return this._lastRenderData=null,this._buffers=null,!0},o.prototype.onZonesChanged=function(t){return this._lastRenderData=null,!0},o.prototype.onDecorationsChanged=function(t){return this._renderDecorations=!0,!0},o.prototype.onThemeChanged=function(t){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(Tn.Ib),this._renderDecorations=!0,!0},o.prototype.prepareRender=function(t){},o.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 g=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(g.sliderTop),this._slider.setHeight(g.sliderHeight);var b=t.scrollLeft/this._options.typicalHalfwidthCharacterWidth,K=Math.min(this._options.minimapWidth,Math.round(b*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(g.sliderHeight),this.renderDecorations(g),this._lastRenderData=this.renderLines(g)},o.prototype.renderDecorations=function(t){if(this._renderDecorations){this._renderDecorations=!1;var i=this._context.model.getDecorationsInViewport(new be.a(t.startLineNumber,1,t.endLineNumber,this._context.model.getLineMaxColumn(t.endLineNumber))),g=this._options,b=g.renderMinimap,K=g.canvasInnerWidth,Ie=g.canvasInnerHeight,Le=_n(b,this._options.fontScale),qe=Zi(b,this._options.fontScale),ct=this._context.model.getOptions().tabSize,wt=this._decorationsCanvas.domNode.getContext("2d");wt.clearRect(0,0,K,Ie);for(var et=new Map,Wt=0;Wt<this._selections.length;Wt++)for(var kt=this._selections[Wt],Vt=kt.startLineNumber;Vt<=kt.endLineNumber;Vt++)this.renderDecorationOnLine(wt,et,kt,this._selectionColor,t,Vt,Le,Le,ct,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 Cr.c.Inline:this.renderDecorationOnLine(wt,et,qt.range,$t,t,Vt,Le,Le,ct,qe);continue;case Cr.c.Gutter:var io=(Vt-t.startLineNumber)*Le,yo=2;this.renderDecoration(wt,$t,yo,io,Sn,Le);continue}}}},o.prototype.renderDecorationOnLine=function(t,i,g,b,K,Ie,Le,qe,ct,wt){var et=(Ie-K.startLineNumber)*qe;if(et+Le<0||et>this._options.canvasInnerHeight)return;var Wt=i.get(Ie),kt=!Wt;if(!Wt){var Vt=this._context.model.getLineContent(Ie);Wt=[he.f];for(var qt=1;qt<Vt.length+1;qt++){var $t=Vt.charCodeAt(qt-1),io=$t===9?ct*wt:fe.y($t)?2*wt:wt;Wt[qt]=Wt[qt-1]+io}i.set(Ie,Wt)}var yo=g.startColumn,mo=g.endColumn,bo=g.startLineNumber,go=g.endLineNumber,Lo=bo===Ie?Wt[yo-1]:he.f,No=go>Ie?Wt.length-1:mo-1;if(No>0){var Fo=Wt[No]-Lo||2;this.renderDecoration(t,b,Lo,et,Fo,Le)}kt&&this.renderLineHighlight(t,b,et,Le)},o.prototype.renderLineHighlight=function(t,i,g,b){t.fillStyle=i&&i.transparent(.5).toString()||"",t.fillRect(he.f,g,t.canvas.width,b)},o.prototype.renderDecoration=function(t,i,g,b,K,Ie){t.fillStyle=i&&i.toString()||"",t.fillRect(g,b,K,Ie)},o.prototype.renderLines=function(t){var i=this._options.renderMinimap,g=this._options.charRenderer(),b=t.startLineNumber,K=t.endLineNumber,Ie=_n(i,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(t)){var Le=this._lastRenderData._get();return new Er(t,Le.imageData,Le.lines)}var qe=this._getBuffer();if(!qe)return null;for(var ct=o._renderUntouchedLines(qe,b,K,Ie,this._lastRenderData),wt=ct[0],et=ct[1],Wt=ct[2],kt=this._context.model.getMinimapLinesRenderingData(b,K,Wt),Vt=kt.tabSize,qt=this._tokensColorTracker.getColor(2),$t=this._tokensColorTracker.backgroundIsLight(),io=0,yo=[],mo=0,bo=K-b+1;mo<bo;mo++)Wt[mo]&&o._renderLine(qe,qt,$t,i,this._tokensColorTracker,g,io,Vt,kt.data[mo],this._options.fontScale),yo[mo]=new $i(io),io+=Ie;var go=wt===-1?0:wt,Lo=et===-1?qe.height:et,No=Lo-go,Fo=this._canvas.domNode.getContext("2d");return Fo.putImageData(qe,0,0,0,go,qe.width,No),new Er(t,qe,yo)},o._renderUntouchedLines=function(t,i,g,b,K){var Ie=[];if(!K){for(var Le=0,qe=g-i+1;Le<qe;Le++)Ie[Le]=!0;return[-1,-1,Ie]}for(var ct=K._get(),wt=ct.imageData.data,et=ct.rendLineNumberStart,Wt=ct.lines,kt=Wt.length,Vt=t.width,qt=t.data,$t=(g-i+1)*b*Vt*4,io=-1,yo=-1,mo=-1,bo=-1,go=-1,Lo=-1,No=0,Fo=i;Fo<=g;Fo++){var Xo=Fo-i,Po=Fo-et,nn=Po>=0&&Po<kt?Wt[Po].dy:-1;if(nn===-1){Ie[Xo]=!0,No+=b;continue}var vn=nn*Vt*4,cn=(nn+b)*Vt*4,Nn=No*Vt*4,hn=(No+b)*Vt*4;bo===vn&&Lo===Nn?(bo=cn,Lo=hn):(mo!==-1&&(qt.set(wt.subarray(mo,bo),go),io===-1&&mo===0&&mo===go&&(io=bo),yo===-1&&bo===$t&&mo===go&&(yo=mo)),mo=vn,bo=cn,go=Nn,Lo=hn),Ie[Xo]=!1,No+=b}mo!==-1&&(qt.set(wt.subarray(mo,bo),go),io===-1&&mo===0&&mo===go&&(io=bo),yo===-1&&bo===$t&&mo===go&&(yo=mo));var Wn=io===-1?-1:io/(Vt*4),Fn=yo===-1?-1:yo/(Vt*4);return[Wn,Fn,Ie]},o._renderLine=function(t,i,g,b,K,Ie,Le,qe,ct,wt){for(var et=ct.content,Wt=ct.tokens,kt=Zi(b,wt),Vt=t.width-kt,qt=he.f,$t=0,io=0,yo=0,mo=Wt.getCount();yo<mo;yo++)for(var bo=Wt.getEndOffset(yo),go=Wt.getForeground(yo),Lo=K.getColor(go);$t<bo;$t++){if(qt>Vt)return;var No=et.charCodeAt($t);if(No===9){var Fo=qe-($t+io)%qe;io+=Fo-1,qt+=Fo*kt}else if(No===32)qt+=kt;else for(var Xo=fe.y(No)?2:1,Po=0;Po<Xo;Po++)if(b===2?Ie.blockRenderChar(t,qt,Le,Lo,i,g):Ie.renderChar(t,qt,Le,No,Lo,i,wt,g),qt+=kt,qt>Vt)return}},o}(B);Object(X.e)(function(V,o){var t=V.getColor(Tn.Xb);if(t){var i=t.transparent(.5);o.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var g=V.getColor(Tn.Yb);if(g){var b=g.transparent(.5);o.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+b+"; }")}var K=V.getColor(Tn.Wb);if(K){var Ie=K.transparent(.5);o.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+Ie+"; }")}var Le=V.getColor(Tn.Vb);Le&&o.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+Le+" -6px 0 6px -6px inset; }")});var na=e("cl4r"),ts=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),_r=function(V){ts(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._widgets={},i._verticalScrollbarWidth=b.verticalScrollbarWidth,i._minimapWidth=b.minimapWidth,i._horizontalScrollbarHeight=b.horizontalScrollbarHeight,i._editorHeight=b.height,i._editorWidth=b.width,i._domNode=Object(y.b)(document.createElement("div")),le.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._widgets={}},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._verticalScrollbarWidth=g.verticalScrollbarWidth,this._minimapWidth=g.minimapWidth,this._horizontalScrollbarHeight=g.horizontalScrollbarHeight,this._editorHeight=g.height,this._editorWidth=g.width,!0},o.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()},o.prototype.setWidgetPosition=function(t,i){var g=this._widgets[t.getId()];return g.preference===i?!1:(g.preference=i,this.setShouldRender(),!0)},o.prototype.removeWidget=function(t){var i=t.getId();if(this._widgets.hasOwnProperty(i)){var g=this._widgets[i],b=g.domNode.domNode;delete this._widgets[i],b.parentNode.removeChild(b),this.setShouldRender()}},o.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 g=i.domNode.clientHeight;i.setTop(this._editorHeight-g-2*this._horizontalScrollbarHeight),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else t.preference===2&&(i.setTop(0),i.domNode.style.right="50%")},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setWidth(this._editorWidth);for(var i=Object.keys(this._widgets),g=0,b=i.length;g<b;g++){var K=i[g];this._renderWidget(this._widgets[K])}},o}(B),Un=e("zrhQ"),Sr=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Oi=function(){function V(o,t){var i=o.options;this.lineHeight=i.get(49),this.pixelRatio=i.get(105),this.overviewRulerLanes=i.get(63),this.renderBorder=i.get(62);var g=t.getColor(lt.l);this.borderColor=g?g.toString():null,this.hideCursor=i.get(42);var b=t.getColor(lt.g);this.cursorColor=b?b.transparent(.7).toString():null,this.themeType=t.type;var K=i.get(54),Ie=K.enabled,Le=K.side,qe=Ie?$o.B.getDefaultBackground():null;qe===null||Le==="left"?this.backgroundColor=null:this.backgroundColor=Un.a.Format.CSS.formatHex(qe);var ct=i.get(107),wt=ct.overviewRuler;this.top=wt.top,this.right=wt.right,this.domWidth=wt.width,this.domHeight=wt.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],kt=et[1];this.x=Wt,this.w=kt}return V.prototype._initLanes=function(o,t,i){var g=t-o;if(i>=3){var b=Math.floor(g/3),K=Math.floor(g/3),Ie=g-b-K,Le=o,qe=Le+b,ct=Le+b+Ie;return[[0,Le,qe,Le,ct,Le,qe,Le],[0,b,Ie,b+Ie,K,b+Ie+K,Ie+K,b+Ie+K]]}else if(i===2){var b=Math.floor(g/2),K=g-b,Le=o,ct=Le+b;return[[0,Le,Le,Le,ct,Le,Le,Le],[0,b,b,b,K,b+K,b+K,b+K]]}else{var wt=o,et=g;return[[0,wt,wt,wt,wt,wt,wt,wt],[0,et,et,et,et,et,et,et]]}},V.prototype.equals=function(o){return this.lineHeight===o.lineHeight&&this.pixelRatio===o.pixelRatio&&this.overviewRulerLanes===o.overviewRulerLanes&&this.renderBorder===o.renderBorder&&this.borderColor===o.borderColor&&this.hideCursor===o.hideCursor&&this.cursorColor===o.cursorColor&&this.themeType===o.themeType&&this.backgroundColor===o.backgroundColor&&this.top===o.top&&this.right===o.right&&this.domWidth===o.domWidth&&this.domHeight===o.domHeight&&this.canvasWidth===o.canvasWidth&&this.canvasHeight===o.canvasHeight},V}(),os=function(V){Sr(o,V);function o(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=$o.B.onDidChange(function(g){g.changedColorMap&&i._updateSettings(!0)}),i._cursorPositions=[],i}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},o.prototype._updateSettings=function(t){var i=new Oi(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)},o.prototype.onConfigurationChanged=function(t){return this._updateSettings(!1)},o.prototype.onCursorStateChanged=function(t){this._cursorPositions=[];for(var i=0,g=t.selections.length;i<g;i++)this._cursorPositions[i]=t.selections[i].getPosition();return this._cursorPositions.sort(oe.a.compare),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.onThemeChanged=function(t){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},o.prototype.getDomNode=function(){return this._domNode.domNode},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._render()},o.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,g=this._settings.lineHeight,b=this._context.viewLayout,K=this._context.viewLayout.getScrollHeight(),Ie=i/K,Le=this._context.model.getAllOverviewRulerDecorations(this._context.theme),qe=6*this._settings.pixelRatio|0,ct=qe/2|0,wt=this._domNode.domNode.getContext("2d");this._settings.backgroundColor===null?wt.clearRect(0,0,t,i):(wt.fillStyle=this._settings.backgroundColor,wt.fillRect(0,0,t,i));var et=this._settings.x,Wt=this._settings.w,kt=Object.keys(Le);kt.sort();for(var Vt=0,qt=kt.length;Vt<qt;Vt++){var $t=kt[Vt],io=Le[$t];wt.fillStyle=$t;for(var yo=0,mo=0,bo=0,go=0,Lo=io.length;go<Lo;go++){var No=io[3*go],Fo=io[3*go+1],Xo=io[3*go+2],Po=b.getVerticalOffsetForLineNumber(Fo)*Ie|0,nn=(b.getVerticalOffsetForLineNumber(Xo)+g)*Ie|0,vn=nn-Po;if(vn<qe){var cn=(Po+nn)/2|0;cn<ct?cn=ct:cn+ct>i&&(cn=i-ct),Po=cn-ct,nn=cn+ct}Po>bo+1||No!==yo?(go!==0&&wt.fillRect(et[yo],mo,Wt[yo],bo-mo),yo=No,mo=Po,bo=nn):nn>bo&&(bo=nn)}wt.fillRect(et[yo],mo,Wt[yo],bo-mo)}if(!this._settings.hideCursor&&this._settings.cursorColor){var Nn=2*this._settings.pixelRatio|0,hn=Nn/2|0,Wn=this._settings.x[7],Fn=this._settings.w[7];wt.fillStyle=this._settings.cursorColor;for(var mo=-100,bo=-100,go=0,Lo=this._cursorPositions.length;go<Lo;go++){var Hi=this._cursorPositions[go],cn=b.getVerticalOffsetForLineNumber(Hi.lineNumber)*Ie|0;cn<hn?cn=hn:cn+hn>i&&(cn=i-hn);var Po=cn-hn,nn=Po+Nn;Po>bo+1?(go!==0&&wt.fillRect(Wn,mo,Fn,bo-mo),mo=Po,bo=nn):nn>bo&&(bo=nn)}wt.fillRect(Wn,mo,Fn,bo-mo)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(wt.beginPath(),wt.lineWidth=1,wt.strokeStyle=this._settings.borderColor,wt.moveTo(0,0),wt.lineTo(0,i),wt.stroke(),wt.moveTo(0,0),wt.lineTo(t,0),wt.stroke())},o}(B),ns=e("MvK1"),is=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),rs=function(V){is(o,V);function o(t,i){var g=V.call(this)||this;g._context=t;var b=g._context.configuration.options;return g._domNode=Object(y.b)(document.createElement("canvas")),g._domNode.setClassName(i),g._domNode.setPosition("absolute"),g._domNode.setLayerHinting(!0),g._domNode.setContain("strict"),g._zoneManager=new ns.b(function(K){return g._context.viewLayout.getVerticalOffsetForLineNumber(K)}),g._zoneManager.setDOMWidth(0),g._zoneManager.setDOMHeight(0),g._zoneManager.setOuterHeight(g._context.viewLayout.getScrollHeight()),g._zoneManager.setLineHeight(b.get(49)),g._zoneManager.setPixelRatio(b.get(105)),g._context.addEventHandler(g),g}return o.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},o.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},o.prototype.onFlushed=function(t){return this._render(),!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged&&(this._zoneManager.setOuterHeight(t.scrollHeight),this._render()),!0},o.prototype.onZonesChanged=function(t){return this._render(),!0},o.prototype.getDomNode=function(){return this._domNode.domNode},o.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())},o.prototype.setZones=function(t){this._zoneManager.setZones(t),this._render()},o.prototype._render=function(){if(this._zoneManager.getOuterHeight()===0)return!1;var t=this._zoneManager.getCanvasWidth(),i=this._zoneManager.getCanvasHeight(),g=this._zoneManager.resolveColorZones(),b=this._zoneManager.getId2Color(),K=this._domNode.domNode.getContext("2d");return K.clearRect(0,0,t,i),g.length>0&&this._renderOneLane(K,g,b,t),!0},o.prototype._renderOneLane=function(t,i,g,b){for(var K=0,Ie=0,Le=0,qe=0,ct=i;qe<ct.length;qe++){var wt=ct[qe],et=wt.colorId,Wt=wt.from,kt=wt.to;et!==K?(t.fillRect(0,Ie,b,Le-Ie),K=et,t.fillStyle=g[K],Ie=Wt,Le=kt):Le>=Wt?Le=Math.max(Le,kt):(t.fillRect(0,Ie,b,Le-Ie),Ie=Wt,Le=kt)}t.fillRect(0,Ie,b,Le-Ie)},o}(ie),ia=e("7zd4"),ss=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),as=function(V){ss(o,V);function o(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 g=i._context.configuration.options;return i._rulers=g.get(77),i._typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,i}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._rulers=i.get(77),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},o.prototype.prepareRender=function(t){},o.prototype._ensureRulersCount=function(){var t=this._renderedRulers.length,i=this._rulers.length;if(t===i)return;if(t<i){for(var g=this._context.model.getOptions().tabSize,b=g,K=i-t;K>0;){var Ie=Object(y.b)(document.createElement("div"));Ie.setClassName("view-ruler"),Ie.setWidth(b),this.domNode.appendChild(Ie),this._renderedRulers.push(Ie),K--}return}for(var Le=t-i;Le>0;){var Ie=this._renderedRulers.pop();this.domNode.removeChild(Ie),Le--}},o.prototype.render=function(t){this._ensureRulersCount();for(var i=0,g=this._rulers.length;i<g;i++){var b=this._renderedRulers[i];b.setHeight(Math.min(t.scrollHeight,1e6)),b.setLeft(this._rulers[i]*this._typicalHalfwidthCharacterWidth)}},o}(B);Object(X.e)(function(V,o){var t=V.getColor(lt.m);t&&o.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(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ds=function(V){ls(o,V);function o(t){var i=V.call(this,t)||this;i._scrollTop=0,i._width=0,i._updateWidth(),i._shouldShow=!1;var g=i._context.configuration.options,b=g.get(78);return i._useShadows=b.useShadows,i._domNode=Object(y.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype._updateShouldShow=function(){var t=this._useShadows&&this._scrollTop>0;return this._shouldShow!==t?(this._shouldShow=t,!0):!1},o.prototype.getDomNode=function(){return this._domNode},o.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},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(78);return this._useShadows=g.useShadows,this._updateWidth(),this._updateShouldShow(),!0},o.prototype.onScrollChanged=function(t){return this._scrollTop=t.scrollTop,this._updateShouldShow()},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},o}(B);Object(X.e)(function(V,o){var t=V.getColor(Tn.Vb);t&&o.addRule(".monaco-editor .scroll-decoration { box-shadow: "+t+" 0 6px 6px -6px inset; }")});var cs=e("eC1c"),Lr=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Mr=function(){function V(o){this.left=o.left,this.width=o.width,this.startStyle=null,this.endStyle=null}return V}(),Dr=function(){function V(o,t){this.lineNumber=o,this.ranges=t}return V}();function us(V){return new Mr(V)}function hs(V){return new Dr(V.lineNumber,V.ranges.map(us))}var fs=v.f,ms=function(V){Lr(o,V);function o(t){var i=V.call(this)||this;i._previousFrameVisibleRangesWithStyle=[],i._context=t;var g=i._context.configuration.options;return i._lineHeight=g.get(49),i._roundedSelection=g.get(76),i._typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,i._selections=[],i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.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},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._visibleRangesHaveGaps=function(t){for(var i=0,g=t.length;i<g;i++){var b=t[i];if(b.ranges.length>1)return!0}return!1},o.prototype._enrichVisibleRangesWithStyle=function(t,i,g){var b=this._typicalHalfwidthCharacterWidth/4,K=null,Ie=null;if(g&&g.length>0&&i.length>0){var Le=i[0].lineNumber;if(Le===t.startLineNumber)for(var qe=0;!K&&qe<g.length;qe++)g[qe].lineNumber===Le&&(K=g[qe].ranges[0]);var ct=i[i.length-1].lineNumber;if(ct===t.endLineNumber)for(var qe=g.length-1;!Ie&&qe>=0;qe--)g[qe].lineNumber===ct&&(Ie=g[qe].ranges[0]);K&&!K.startStyle&&(K=null),Ie&&!Ie.startStyle&&(Ie=null)}for(var qe=0,wt=i.length;qe<wt;qe++){var et=i[qe].ranges[0],Wt=et.left,kt=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,io=i[qe-1].ranges[0].left+i[qe-1].ranges[0].width;oi(Wt-$t)<b?Vt.top=2:Wt>$t&&(Vt.top=1),oi(kt-io)<b?qt.top=2:$t<kt&&kt<io&&(qt.top=1)}else K&&(Vt.top=K.startStyle.top,qt.top=K.endStyle.top);if(qe+1<wt){var yo=i[qe+1].ranges[0].left,mo=i[qe+1].ranges[0].left+i[qe+1].ranges[0].width;oi(Wt-yo)<b?Vt.bottom=2:yo<Wt&&Wt<mo&&(Vt.bottom=1),oi(kt-mo)<b?qt.bottom=2:kt<mo&&(qt.bottom=1)}else Ie&&(Vt.bottom=Ie.startStyle.bottom,qt.bottom=Ie.endStyle.bottom);et.startStyle=Vt,et.endStyle=qt}},o.prototype._getVisibleRangesWithStyle=function(t,i,g){var b=i.linesVisibleRangesForRange(t,!0)||[],K=b.map(hs),Ie=this._visibleRangesHaveGaps(K);return!fs&&!Ie&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(i.visibleRange,K,g),K},o.prototype._createSelectionPiece=function(t,i,g,b,K){return'<div class="cslr '+g+'" style="top:'+t.toString()+"px;left:"+b.toString()+"px;width:"+K.toString()+"px;height:"+i+'px;"></div>'},o.prototype._actualRenderOneSelection=function(t,i,g,b){if(b.length===0)return;for(var K=!!b[0].ranges[0].startStyle,Ie=this._lineHeight.toString(),Le=(this._lineHeight-1).toString(),qe=b[0].lineNumber,ct=b[b.length-1].lineNumber,wt=0,et=b.length;wt<et;wt++){for(var Wt=b[wt],kt=Wt.lineNumber,Vt=kt-i,qt=g&&(kt===ct||kt===qe)?Le:Ie,$t=g&&kt===qe?1:0,io="",yo="",mo=0,bo=Wt.ranges.length;mo<bo;mo++){var go=Wt.ranges[mo];if(K){var Lo=go.startStyle,No=go.endStyle;if(Lo.top===1||Lo.bottom===1){io+=this._createSelectionPiece($t,qt,o.SELECTION_CLASS_NAME,go.left-o.ROUNDED_PIECE_WIDTH,o.ROUNDED_PIECE_WIDTH);var Fo=o.EDITOR_BACKGROUND_CLASS_NAME;Lo.top===1&&(Fo+=" "+o.SELECTION_TOP_RIGHT),Lo.bottom===1&&(Fo+=" "+o.SELECTION_BOTTOM_RIGHT),io+=this._createSelectionPiece($t,qt,Fo,go.left-o.ROUNDED_PIECE_WIDTH,o.ROUNDED_PIECE_WIDTH)}if(No.top===1||No.bottom===1){io+=this._createSelectionPiece($t,qt,o.SELECTION_CLASS_NAME,go.left+go.width,o.ROUNDED_PIECE_WIDTH);var Xo=o.EDITOR_BACKGROUND_CLASS_NAME;No.top===1&&(Xo+=" "+o.SELECTION_TOP_LEFT),No.bottom===1&&(Xo+=" "+o.SELECTION_BOTTOM_LEFT),io+=this._createSelectionPiece($t,qt,Xo,go.left+go.width,o.ROUNDED_PIECE_WIDTH)}}var Po=o.SELECTION_CLASS_NAME;if(K){var Lo=go.startStyle,No=go.endStyle;Lo.top===0&&(Po+=" "+o.SELECTION_TOP_LEFT),Lo.bottom===0&&(Po+=" "+o.SELECTION_BOTTOM_LEFT),No.top===0&&(Po+=" "+o.SELECTION_TOP_RIGHT),No.bottom===0&&(Po+=" "+o.SELECTION_BOTTOM_RIGHT)}yo+=this._createSelectionPiece($t,qt,Po,go.left,go.width)}t[Vt][0]+=io,t[Vt][1]+=yo}},o.prototype.prepareRender=function(t){for(var i=[],g=t.visibleRange.startLineNumber,b=t.visibleRange.endLineNumber,K=g;K<=b;K++){var Ie=K-g;i[Ie]=["",""]}for(var Le=[],qe=0,ct=this._selections.length;qe<ct;qe++){var wt=this._selections[qe];if(wt.isEmpty()){Le[qe]=null;continue}var et=this._getVisibleRangesWithStyle(wt,t,this._previousFrameVisibleRangesWithStyle[qe]);Le[qe]=et,this._actualRenderOneSelection(i,g,this._selections.length>1,et)}this._previousFrameVisibleRangesWithStyle=Le,this._renderResult=i.map(function(Wt){var kt=Wt[0],Vt=Wt[1];return kt+Vt})},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o.SELECTION_CLASS_NAME="selected-text",o.SELECTION_TOP_LEFT="top-left-radius",o.SELECTION_BOTTOM_LEFT="bottom-left-radius",o.SELECTION_TOP_RIGHT="top-right-radius",o.SELECTION_BOTTOM_RIGHT="bottom-right-radius",o.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",o.ROUNDED_PIECE_WIDTH=10,o}(ke);Object(X.e)(function(V,o){var t=V.getColor(Tn.K);t&&o.addRule(".monaco-editor .focused .selected-text { background-color: "+t+"; }");var i=V.getColor(Tn.F);i&&o.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var g=V.getColor(Tn.L);g&&o.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+g+"; }")});function oi(V){return V<0?-V:V}var sa=e("2Tsy"),Or=function(){function V(o,t,i,g,b,K){this.top=o,this.left=t,this.width=i,this.height=g,this.textContent=b,this.textContentClassName=K}return V}(),Tr=function(){function V(o){this._context=o;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),H.a.applyFontInfo(this._domNode,i),this._domNode.setDisplay("none"),this._position=new oe.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(o){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),H.a.applyFontInfo(this._domNode,i),!0},V.prototype.onCursorPositionChanged=function(o){return this._position=o,!0},V.prototype._prepareRender=function(o){var t="";if(this._cursorStyle===he.g.Line||this._cursorStyle===he.g.LineThin){var i=o.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;var g;if(this._cursorStyle===he.g.Line){if(g=J.u(this._lineCursorWidth>0?this._lineCursorWidth:2),g>2){var b=this._context.model.getLineContent(this._position.lineNumber),K=fe.E(b,this._position.column-1);t=b.substr(this._position.column-1,K)}}else g=J.u(1);var Ie=i.left;g>=2&&Ie>=1&&(Ie-=1);var Le=o.getVerticalOffsetForLineNumber(this._position.lineNumber)-o.bigNumbersDelta;return new Or(Le,Ie,g,this._lineHeight,t,"")}var qe=this._context.model.getLineContent(this._position.lineNumber),ct=fe.E(qe,this._position.column-1),wt=o.linesVisibleRangesForRange(new be.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+ct),!1);if(!wt||wt.length===0)return null;var et=wt[0];if(et.outsideRenderedLine||et.ranges.length===0)return null;var Wt=et.ranges[0],kt=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,ct);var $t=qt.tokens.findTokenIndexAtOffset(this._position.column-1);Vt=qt.tokens.getClassName($t)}var io=o.getVerticalOffsetForLineNumber(this._position.lineNumber)-o.bigNumbersDelta,yo=this._lineHeight;return(this._cursorStyle===he.g.Underline||this._cursorStyle===he.g.UnderlineThin)&&(io+=this._lineHeight-2,yo=2),new Or(io,Wt.left,kt,yo,t,Vt)},V.prototype.prepareRender=function(o){this._renderData=this._prepareRender(o)},V.prototype.render=function(o){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}(),ps=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),gs=function(V){ps(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options;return i._readOnly=g.get(68),i._cursorBlinking=g.get(16),i._cursorStyle=g.get(18),i._cursorSmoothCaretAnimation=g.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 p.e,i._cursorFlatBlinkInterval=new p.c,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},o.prototype.getDomNode=function(){return this._domNode},o.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 g=0,b=this._secondaryCursors.length;g<b;g++)this._secondaryCursors[g].onConfigurationChanged(t);return!0},o.prototype._onCursorPositionChanged=function(t,i){if(this._primaryCursor.onCursorPositionChanged(t),this._updateBlinking(),this._secondaryCursors.length<i.length)for(var g=i.length-this._secondaryCursors.length,b=0;b<g;b++){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 Ie=this._secondaryCursors.length-i.length,b=0;b<Ie;b++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1);for(var b=0;b<i.length;b++)this._secondaryCursors[b].onCursorPositionChanged(i[b])},o.prototype.onCursorStateChanged=function(t){for(var i=[],g=0,b=t.selections.length;g<b;g++)i[g]=t.selections[g].getPosition();this._onCursorPositionChanged(i[0],i.slice(1));var K=t.selections[0].isEmpty();return this._selectionIsEmpty!==K&&(this._selectionIsEmpty=K,this._updateDomClassName()),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onFocusChanged=function(t){return this._editorHasFocus=t.isFocused,this._updateBlinking(),!1},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return!0},o.prototype.onTokensChanged=function(t){var i=function(Le){for(var qe=0,ct=t.ranges.length;qe<ct;qe++)if(t.ranges[qe].fromLineNumber<=Le.lineNumber&&Le.lineNumber<=t.ranges[qe].toLineNumber)return!0;return!1};if(i(this._primaryCursor.getPosition()))return!0;for(var g=0,b=this._secondaryCursors;g<b.length;g++){var K=b[g];if(i(K.getPosition()))return!0}return!1},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},o.prototype._updateBlinking=function(){var t=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var i=this._getCursorBlinking(),g=i===0,b=i===5;g?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!g&&!b&&(i===1?this._cursorFlatBlinkInterval.cancelAndSet(function(){t._isVisible?t._hide():t._show()},o.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(function(){t._blinkingEnabled=!0,t._updateDomClassName()},o.BLINK_INTERVAL))},o.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},o.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},o.prototype._show=function(){this._primaryCursor.show();for(var t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].show();this._isVisible=!0},o.prototype._hide=function(){this._primaryCursor.hide();for(var t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].hide();this._isVisible=!1},o.prototype.prepareRender=function(t){this._primaryCursor.prepareRender(t);for(var i=0,g=this._secondaryCursors.length;i<g;i++)this._secondaryCursors[i].prepareRender(t)},o.prototype.render=function(t){var i=[],g=0,b=this._primaryCursor.render(t);b&&(i[g++]=b);for(var K=0,Ie=this._secondaryCursors.length;K<Ie;K++){var Le=this._secondaryCursors[K].render(t);Le&&(i[g++]=Le)}this._renderData=i},o.prototype.getLastRenderData=function(){return this._renderData},o.BLINK_INTERVAL=500,o}(B);Object(X.e)(function(V,o){var t=V.getColor(lt.g);if(t){var i=V.getColor(lt.f);i||(i=t.opposite()),o.addRule(".monaco-editor .cursor { background-color: "+t+"; border-color: "+t+"; color: "+i+"; }"),V.type==="hc"&&o.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }")}});var xr=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ar=function(){throw new Error("Invalid change accessor")},Ci=function(V){xr(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._lineHeight=g.get(49),i._contentWidth=b.contentWidth,i._contentLeft=b.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 o.prototype.dispose=function(){V.prototype.dispose.call(this),this._zones={}},o.prototype._recomputeWhitespacesProps=function(){for(var t=this,i=this._context.viewLayout.getWhitespaces(),g=new Map,b=0,K=i;b<K.length;b++){var Ie=K[b];g.set(Ie.id,Ie)}return this._context.viewLayout.changeWhitespace(function(Le){for(var qe=!1,ct=Object.keys(t._zones),wt=0,et=ct.length;wt<et;wt++){var Wt=ct[wt],kt=t._zones[Wt],Vt=t._computeWhitespaceProps(kt.delegate),qt=g.get(Wt);qt&&(qt.afterLineNumber!==Vt.afterViewLineNumber||qt.height!==Vt.heightInPx)&&(Le.changeOneWhitespace(Wt,Vt.afterViewLineNumber,Vt.heightInPx),t._safeCallOnComputedHeight(kt.delegate,Vt.heightInPx),qe=!0)}return qe})},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._lineHeight=i.get(49),this._contentWidth=g.contentWidth,this._contentLeft=g.contentLeft,t.hasChanged(49)&&this._recomputeWhitespacesProps(),!0},o.prototype.onLineMappingChanged=function(t){var i=this._recomputeWhitespacesProps();return i&&this._context.viewLayout.onHeightMaybeChanged(),i},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype._getZoneOrdinal=function(t){return typeof t.afterColumn!="undefined"?t.afterColumn:1e4},o.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 g=this._context.model.validateModelPosition({lineNumber:t.afterLineNumber,column:1}).lineNumber;i=new oe.a(g,this._context.model.getModelLineMaxColumn(g))}var b;i.column===this._context.model.getModelLineMaxColumn(i.lineNumber)?b=this._context.model.validateModelPosition({lineNumber:i.lineNumber+1,column:1}):b=this._context.model.validateModelPosition({lineNumber:i.lineNumber,column:i.column+1});var K=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(i),Ie=this._context.model.coordinatesConverter.modelPositionIsVisible(b);return{afterViewLineNumber:K.lineNumber,heightInPx:Ie?this._heightInPixels(t):0,minWidthInPx:this._minWidthInPixels(t)}},o.prototype.changeViewZones=function(t){var i=this;return this._context.viewLayout.changeWhitespace(function(g){var b=!1,K={addZone:function(Le){return b=!0,i._addZone(g,Le)},removeZone:function(Le){if(!Le)return;b=i._removeZone(g,Le)||b},layoutZone:function(Le){if(!Le)return;b=i._layoutZone(g,Le)||b}};return vs(t,K),K.addZone=Ar,K.removeZone=Ar,K.layoutZone=Ar,b})},o.prototype._addZone=function(t,i){var g=this._computeWhitespaceProps(i),b=t.insertWhitespace(g.afterViewLineNumber,this._getZoneOrdinal(i),g.heightInPx,g.minWidthInPx),K={whitespaceId:b,delegate:i,isVisible:!1,domNode:Object(y.b)(i.domNode),marginDomNode:i.marginDomNode?Object(y.b)(i.marginDomNode):null};return this._safeCallOnComputedHeight(K.delegate,g.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},o.prototype._removeZone=function(t,i){if(this._zones.hasOwnProperty(i)){var g=this._zones[i];return delete this._zones[i],t.removeWhitespace(g.whitespaceId),g.domNode.removeAttribute("monaco-visible-view-zone"),g.domNode.removeAttribute("monaco-view-zone"),g.domNode.domNode.parentNode.removeChild(g.domNode.domNode),g.marginDomNode&&(g.marginDomNode.removeAttribute("monaco-visible-view-zone"),g.marginDomNode.removeAttribute("monaco-view-zone"),g.marginDomNode.domNode.parentNode.removeChild(g.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},o.prototype._layoutZone=function(t,i){if(this._zones.hasOwnProperty(i)){var g=this._zones[i],b=this._computeWhitespaceProps(g.delegate);return t.changeOneWhitespace(g.whitespaceId,b.afterViewLineNumber,b.heightInPx),this._safeCallOnComputedHeight(g.delegate,b.heightInPx),this.setShouldRender(),!0}return!1},o.prototype.shouldSuppressMouseDownOnViewZone=function(t){if(this._zones.hasOwnProperty(t)){var i=this._zones[t];return Boolean(i.delegate.suppressMouseDown)}return!1},o.prototype._heightInPixels=function(t){return typeof t.heightInPx=="number"?t.heightInPx:typeof t.heightInLines=="number"?this._lineHeight*t.heightInLines:this._lineHeight},o.prototype._minWidthInPixels=function(t){return typeof t.minWidthInPx=="number"?t.minWidthInPx:0},o.prototype._safeCallOnComputedHeight=function(t,i){if(typeof t.onComputedHeight=="function")try{t.onComputedHeight(i)}catch(g){Object(I.e)(g)}},o.prototype._safeCallOnDomNodeTop=function(t,i){if(typeof t.onDomNodeTop=="function")try{t.onDomNodeTop(i)}catch(g){Object(I.e)(g)}},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){for(var i=t.viewportData.whitespaceViewportData,g={},b=!1,K=0,Ie=i.length;K<Ie;K++)g[i[K].id]=i[K],b=!0;for(var Le=Object.keys(this._zones),K=0,Ie=Le.length;K<Ie;K++){var qe=Le[K],ct=this._zones[qe],wt=0,et=0,Wt="none";g.hasOwnProperty(qe)?(wt=g[qe].verticalOffset-t.bigNumbersDelta,et=g[qe].height,Wt="block",ct.isVisible||(ct.domNode.setAttribute("monaco-visible-view-zone","true"),ct.isVisible=!0),this._safeCallOnDomNodeTop(ct.delegate,t.getScrolledTopFromAbsoluteTop(g[qe].verticalOffset))):(ct.isVisible&&(ct.domNode.removeAttribute("monaco-visible-view-zone"),ct.isVisible=!1),this._safeCallOnDomNodeTop(ct.delegate,t.getScrolledTopFromAbsoluteTop(-1e6))),ct.domNode.setTop(wt),ct.domNode.setHeight(et),ct.domNode.setDisplay(Wt),ct.marginDomNode&&(ct.marginDomNode.setTop(wt),ct.marginDomNode.setHeight(et),ct.marginDomNode.setDisplay(Wt))}b&&(this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},o}(B);function vs(V,o){try{return V(o)}catch(t){Object(I.e)(t)}}var Ti=function(){function V(o,t,i,g){this.configuration=o,this.theme=t,this.model=i,this.viewLayout=i.viewLayout,this.privateViewEventBus=g}return V.prototype.addEventHandler=function(o){this.privateViewEventBus.addEventHandler(o)},V.prototype.removeEventHandler=function(o){this.privateViewEventBus.removeEventHandler(o)},V}(),ys=function(){function V(o){this._eventHandlerGateKeeper=o,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return V.prototype.addEventHandler=function(o){for(var t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===o&&console.warn("Detected duplicate listener in ViewEventDispatcher",o);this._eventHandlers.push(o)},V.prototype.removeEventHandler=function(o){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===o){this._eventHandlers.splice(t,1);break}},V.prototype.emit=function(o){this._eventQueue?this._eventQueue.push(o):this._eventQueue=[o],this._isConsumingQueue||this.consumeQueue()},V.prototype.emitMany=function(o){this._eventQueue?this._eventQueue=this._eventQueue.concat(o):this._eventQueue=o,this._isConsumingQueue||this.consumeQueue()},V.prototype.consumeQueue=function(){var o=this;this._eventHandlerGateKeeper(function(){try{o._isConsumingQueue=!0,o._doConsumeQueue()}finally{o._isConsumingQueue=!1}})},V.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var o=this._eventQueue;this._eventQueue=null;for(var t=this._eventHandlers.slice(0),i=0,g=t.length;i<g;i++)t[i].handleEvents(o)}},V}(),aa=function(){function V(o,t,i,g){this.selections=o,this.startLineNumber=t.startLineNumber|0,this.endLineNumber=t.endLineNumber|0,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=t.bigNumbersDelta|0,this.whitespaceViewportData=i,this._model=g,this.visibleRange=new be.a(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}return V.prototype.getViewLineRenderingData=function(o){return this._model.getViewLineRenderingData(this.visibleRange,o)},V.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},V}(),bs=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Cs=function(V){bs(o,V);function o(t,i,g,b,K,Ie){var Le=V.call(this)||this;Le._cursor=K,Le._renderAnimationFrame=null,Le.outgoingEvents=Ie;var qe=new Ne(i,b,Le.outgoingEvents,t);Le.eventDispatcher=new ys(function(io){return Le._renderOnce(io)}),Le.eventDispatcher.addEventHandler(Le),Le._context=new Ti(i,g.getTheme(),b,Le.eventDispatcher),Le._register(g.onThemeChange(function(io){Le._context.theme=io,Le.eventDispatcher.emit(new dn),Le.render(!0,!1)})),Le.viewParts=[],Le._textAreaHandler=new M(Le._context,qe,Le.createTextAreaHandlerHelper()),Le.viewParts.push(Le._textAreaHandler),Le.linesContent=Object(y.b)(document.createElement("div")),Le.linesContent.setClassName("lines-content monaco-editor-background"),Le.linesContent.setPosition("absolute"),Le.domNode=Object(y.b)(document.createElement("div")),Le.domNode.setClassName(Le.getEditorClassName()),Le.overflowGuardContainer=Object(y.b)(document.createElement("div")),le.write(Le.overflowGuardContainer,3),Le.overflowGuardContainer.setClassName("overflow-guard"),Le._scrollbar=new _o(Le._context,Le.linesContent,Le.domNode,Le.overflowGuardContainer),Le.viewParts.push(Le._scrollbar),Le.viewLines=new bi(Le._context,Le.linesContent),Le.viewZones=new Ci(Le._context),Le.viewParts.push(Le.viewZones);var ct=new os(Le._context);Le.viewParts.push(ct);var wt=new ds(Le._context);Le.viewParts.push(wt);var et=new He(Le._context);Le.viewParts.push(et),et.addDynamicOverlay(new Kt(Le._context)),et.addDynamicOverlay(new ms(Le._context)),et.addDynamicOverlay(new on(Le._context)),et.addDynamicOverlay(new lo(Le._context));var Wt=new Oe(Le._context);Le.viewParts.push(Wt),Wt.addDynamicOverlay(new Xt(Le._context)),Wt.addDynamicOverlay(new tn(Le._context)),Wt.addDynamicOverlay(new Ki(Le._context)),Wt.addDynamicOverlay(new Yr(Le._context)),Wt.addDynamicOverlay(new Jt(Le._context));var kt=new po(Le._context);kt.getDomNode().appendChild(Le.viewZones.marginDomNode),kt.getDomNode().appendChild(Wt.getDomNode()),Le.viewParts.push(kt),Le.contentWidgets=new pe(Le._context,Le.domNode),Le.viewParts.push(Le.contentWidgets),Le.viewCursors=new gs(Le._context),Le.viewParts.push(Le.viewCursors),Le.overlayWidgets=new _r(Le._context),Le.viewParts.push(Le.overlayWidgets);var Vt=new as(Le._context);Le.viewParts.push(Vt);var qt=new es(Le._context);if(Le.viewParts.push(qt),ct){var $t=Le._scrollbar.getOverviewRulerLayoutInfo();$t.parent.insertBefore(ct.getDomNode(),$t.insertBefore)}return Le.linesContent.appendChild(et.getDomNode()),Le.linesContent.appendChild(Vt.domNode),Le.linesContent.appendChild(Le.viewZones.domNode),Le.linesContent.appendChild(Le.viewLines.getDomNode()),Le.linesContent.appendChild(Le.contentWidgets.domNode),Le.linesContent.appendChild(Le.viewCursors.getDomNode()),Le.overflowGuardContainer.appendChild(kt.getDomNode()),Le.overflowGuardContainer.appendChild(Le._scrollbar.getDomNode()),Le.overflowGuardContainer.appendChild(wt.getDomNode()),Le.overflowGuardContainer.appendChild(Le._textAreaHandler.textArea),Le.overflowGuardContainer.appendChild(Le._textAreaHandler.textAreaCover),Le.overflowGuardContainer.appendChild(Le.overlayWidgets.getDomNode()),Le.overflowGuardContainer.appendChild(qt.getDomNode()),Le.domNode.appendChild(Le.overflowGuardContainer),Le.domNode.appendChild(Le.contentWidgets.overflowingContentWidgetsDomNode),Le._applyLayout(),Le.pointerHandler=Le._register(new ze(Le._context,qe,Le.createPointerHandlerHelper())),Le._register(b.addEventListener(function(io){Le.eventDispatcher.emitMany(io)})),Le._register(Le._cursor.addEventListener(function(io){Le.eventDispatcher.emitMany(io)})),Le}return o.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},o.prototype.createPointerHandlerHelper=function(){var t=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){t.focus()},getLastRenderData:function(){var g=t.viewCursors.getLastRenderData()||[],b=t._textAreaHandler.getLastRenderData();return new Ve(g,b)},shouldSuppressMouseDownOnViewZone:function(g){return t.viewZones.shouldSuppressMouseDownOnViewZone(g)},shouldSuppressMouseDownOnWidget:function(g){return t.contentWidgets.shouldSuppressMouseDownOnWidget(g)},getPositionFromDOMInfo:function(g,b){return t._flushAccumulatedAndRenderNow(),t.viewLines.getPositionFromDOMInfo(g,b)},visibleRangeForPosition:function(g,b){return t._flushAccumulatedAndRenderNow(),t.viewLines.visibleRangeForPosition(new oe.a(g,b))},getLineWidth:function(g){return t._flushAccumulatedAndRenderNow(),t.viewLines.getLineWidth(g)}}},o.prototype.createTextAreaHandlerHelper=function(){var t=this;return{visibleRangeForPositionRelativeToEditor:function(g,b){return t._flushAccumulatedAndRenderNow(),t.viewLines.visibleRangeForPosition(new oe.a(g,b))}}},o.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)},o.prototype.getEditorClassName=function(){var t=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(104)+" "+Object(X.d)(this._context.theme.type)+t},o.prototype.onConfigurationChanged=function(t){return this.domNode.setClassName(this.getEditorClassName()),this._applyLayout(),!1},o.prototype.onContentSizeChanged=function(t){return this.outgoingEvents.emitContentSizeChange(t),!1},o.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},o.prototype.onScrollChanged=function(t){return this.outgoingEvents.emitScrollChanged(t),!1},o.prototype.onThemeChanged=function(t){return this.domNode.setClassName(this.getEditorClassName()),!1},o.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)},o.prototype._renderOnce=function(t){var i=ci(t);return this._scheduleRender(),i},o.prototype._scheduleRender=function(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=J.U(this._onRenderScheduled.bind(this),100))},o.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},o.prototype._renderNow=function(){var t=this;ci(function(){return t._actualRender()})},o.prototype._getViewPartsToRender=function(){for(var t=[],i=0,g=0,b=this.viewParts.length;g<b;g++){var K=this.viewParts[g];K.shouldRender()&&(t[i++]=K)}return t},o.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 g=new aa(this._cursor.getViewSelections(),i,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(g),this.viewLines.shouldRender()&&(this.viewLines.renderText(g),this.viewLines.onDidRender(),t=this._getViewPartsToRender());for(var b=new Te(this._context.viewLayout,g,this.viewLines),K=0,Ie=t.length;K<Ie;K++){var Le=t[K];Le.prepareRender(b)}for(var K=0,Ie=t.length;K<Ie;K++){var Le=t[K];Le.render(b),Le.onDidRender()}},o.prototype.delegateVerticalScrollbarMouseDown=function(t){this._scrollbar.delegateVerticalScrollbarMouseDown(t)},o.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})},o.prototype.getOffsetForColumn=function(t,i){var g=this._context.model.validateModelPosition({lineNumber:t,column:i}),b=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(g);this._flushAccumulatedAndRenderNow();var K=this.viewLines.visibleRangeForPosition(new oe.a(b.lineNumber,b.column));return K?K.left:-1},o.prototype.getTargetAtClientPoint=function(t,i){var g=this.pointerHandler.getTargetAtClientPoint(t,i);return g?ht.convertViewToModelMouseTarget(g,this._context.model.coordinatesConverter):null},o.prototype.createOverviewRuler=function(t){return new rs(this._context,t)},o.prototype.change=function(t){var i=this;return this._renderOnce(function(){var g=i.viewZones.changeViewZones(t);return g&&(i._context.viewLayout.onHeightMaybeChanged(),i._context.privateViewEventBus.emit(new zo)),g})},o.prototype.render=function(t,i){if(i){this.viewLines.forceShouldRender();for(var g=0,b=this.viewParts.length;g<b;g++){var K=this.viewParts[g];K.forceShouldRender()}}t?this._flushAccumulatedAndRenderNow():this._scheduleRender()},o.prototype.focus=function(){this._textAreaHandler.focusTextArea()},o.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},o.prototype.setAriaOptions=function(t){this._textAreaHandler.setAriaOptions(t)},o.prototype.addContentWidget=function(t){this.contentWidgets.addWidget(t.widget),this.layoutContentWidget(t),this._scheduleRender()},o.prototype.layoutContentWidget=function(t){var i=t.position&&t.position.range||null;if(i===null){var g=t.position?t.position.position:null;g!==null&&(i=new be.a(g.lineNumber,g.column,g.lineNumber,g.column))}var b=t.position?t.position.preference:null;this.contentWidgets.setWidgetPosition(t.widget,i,b),this._scheduleRender()},o.prototype.removeContentWidget=function(t){this.contentWidgets.removeWidget(t.widget),this._scheduleRender()},o.prototype.addOverlayWidget=function(t){this.overlayWidgets.addWidget(t.widget),this.layoutOverlayWidget(t),this._scheduleRender()},o.prototype.layoutOverlayWidget=function(t){var i=t.position?t.position.preference:null,g=this.overlayWidgets.setWidgetPosition(t.widget,i);g&&this._scheduleRender()},o.prototype.removeOverlayWidget=function(t){this.overlayWidgets.removeWidget(t.widget),this._scheduleRender()},o}(ie);function ci(V){try{return V()}catch(o){Object(I.e)(o)}}var ui=function(){function V(o){this._selTrackedRange=null,this._trackSelection=!0,this._setState(o,new De.f(new be.a(1,1,1,1),0,new oe.a(1,1),0),new De.f(new be.a(1,1,1,1),0,new oe.a(1,1),0))}return V.prototype.dispose=function(o){this._removeTrackedRange(o)},V.prototype.startTrackingSelection=function(o){this._trackSelection=!0,this._updateTrackedRange(o)},V.prototype.stopTrackingSelection=function(o){this._trackSelection=!1,this._removeTrackedRange(o)},V.prototype._updateTrackedRange=function(o){if(!this._trackSelection)return;this._selTrackedRange=o.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0)},V.prototype._removeTrackedRange=function(o){this._selTrackedRange=o.model._setTrackedRange(this._selTrackedRange,null,0)},V.prototype.asCursorState=function(){return new De.d(this.modelState,this.viewState)},V.prototype.readSelectionFromMarkers=function(o){var t=o.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(o){this._setState(o,this.modelState,this.viewState)},V.prototype.setState=function(o,t,i){this._setState(o,t,i)},V.prototype._setState=function(o,t,i){if(t){var g=o.model.validateRange(t.selectionStart),K=t.selectionStart.equalsRange(g)?t.selectionStartLeftoverVisibleColumns:0,b=o.model.validatePosition(t.position),Ie=t.position.equals(b)?t.leftoverVisibleColumns:0;t=new De.f(g,K,b,Ie)}else{if(!i)return;var g=o.model.validateRange(o.convertViewRangeToModelRange(i.selectionStart)),b=o.model.validatePosition(o.convertViewPositionToModelPosition(i.position.lineNumber,i.position.column));t=new De.f(g,i.selectionStartLeftoverVisibleColumns,b,i.leftoverVisibleColumns)}if(i){var ct=o.validateViewRange(i.selectionStart,t.selectionStart),wt=o.validateViewPosition(i.position,t.position);i=new De.f(ct,t.selectionStartLeftoverVisibleColumns,wt,t.leftoverVisibleColumns)}else{var Le=o.convertModelPositionToViewPosition(new oe.a(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),qe=o.convertModelPositionToViewPosition(new oe.a(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),ct=new be.a(Le.lineNumber,Le.column,qe.lineNumber,qe.column),wt=o.convertModelPositionToViewPosition(t.position);i=new De.f(ct,t.selectionStartLeftoverVisibleColumns,wt,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(o)},V}(),Vn=function(){function V(o){this.context=o,this.primaryCursor=new ui(o),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 o=0,t=this.secondaryCursors.length;o<t;o++)this.secondaryCursors[o].startTrackingSelection(this.context)},V.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var o=0,t=this.secondaryCursors.length;o<t;o++)this.secondaryCursors[o].stopTrackingSelection(this.context)},V.prototype.updateContext=function(o){this.context=o},V.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var o=0,t=this.secondaryCursors.length;o<t;o++)this.secondaryCursors[o].ensureValidState(this.context)},V.prototype.readSelectionFromMarkers=function(){var o=[];o[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return o},V.prototype.getAll=function(){var o=[];o[0]=this.primaryCursor.asCursorState();for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].asCursorState();return o},V.prototype.getViewPositions=function(){var o=[];o[0]=this.primaryCursor.viewState.position;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].viewState.position;return o},V.prototype.getSelections=function(){var o=[];o[0]=this.primaryCursor.modelState.selection;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].modelState.selection;return o},V.prototype.getViewSelections=function(){var o=[];o[0]=this.primaryCursor.viewState.selection;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].viewState.selection;return o},V.prototype.setSelections=function(o){this.setStates(De.d.fromModelSelections(o))},V.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},V.prototype.setStates=function(o){if(o===null)return;this.primaryCursor.setState(this.context,o[0].modelState,o[0].viewState),this._setSecondaryStates(o.slice(1))},V.prototype._setSecondaryStates=function(o){var t=this.secondaryCursors.length,i=o.length;if(t<i)for(var g=i-t,b=0;b<g;b++)this._addSecondaryCursor();else if(t>i)for(var K=t-i,b=0;b<K;b++)this._removeSecondaryCursor(this.secondaryCursors.length-1);for(var b=0;b<i;b++)this.secondaryCursors[b].setState(this.context,o[b].modelState,o[b].viewState)},V.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},V.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new ui(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(o){this.lastAddedCursorIndex>=o+1&&this.lastAddedCursorIndex--,this.secondaryCursors[o].dispose(this.context),this.secondaryCursors.splice(o,1)},V.prototype._getAll=function(){var o=[];o[0]=this.primaryCursor;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t];return o},V.prototype.normalize=function(){if(this.secondaryCursors.length===0)return;for(var o=this._getAll(),t=[],i=0,g=o.length;i<g;i++)t.push({index:i,selection:o[i].modelState.selection});t.sort(function(Xo,Po){return Xo.selection.startLineNumber===Po.selection.startLineNumber?Xo.selection.startColumn-Po.selection.startColumn:Xo.selection.startLineNumber-Po.selection.startLineNumber});for(var b=0;b<t.length-1;b++){var K=t[b],Ie=t[b+1],Le=K.selection,qe=Ie.selection;if(!this.context.config.multiCursorMergeOverlapping)continue;var ct=void 0;if(qe.isEmpty()||Le.isEmpty()?ct=qe.getStartPosition().isBeforeOrEqual(Le.getEndPosition()):ct=qe.getStartPosition().isBefore(Le.getEndPosition()),ct){var wt=K.index<Ie.index?b:b+1,et=K.index<Ie.index?b+1:b,Wt=t[et].index,kt=t[wt].index,Vt=t[et].selection,qt=t[wt].selection;if(!Vt.equalsSelection(qt)){var $t=Vt.plusRange(qt),io=Vt.selectionStartLineNumber===Vt.startLineNumber&&Vt.selectionStartColumn===Vt.startColumn,yo=qt.selectionStartLineNumber===qt.startLineNumber&&qt.selectionStartColumn===qt.startColumn,mo=void 0;Wt===this.lastAddedCursorIndex?(mo=io,this.lastAddedCursorIndex=kt):mo=yo;var bo=void 0;mo?bo=new vt.a($t.startLineNumber,$t.startColumn,$t.endLineNumber,$t.endColumn):bo=new vt.a($t.endLineNumber,$t.endColumn,$t.startLineNumber,$t.startColumn),t[wt].selection=bo;var go=De.d.fromModelSelection(bo);o[kt].setState(this.context,go.modelState,go.viewState)}for(var Lo=0,No=t;Lo<No.length;Lo++){var Fo=No[Lo];Fo.index>Wt&&Fo.index--}o.splice(Wt,1),t.splice(et,1),this._removeSecondaryCursor(Wt-1),b--}}},V}(),bn=e("snIX"),Mn=e("GR/f"),Ln=e("iuje"),xi=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Ei(V){for(var o=0,t=V.length;o<t;o++)if(V[o].type===8)return!0;return!1}var Ji=function(){function V(o,t,i,g,b,K){this.selections=o,this.modelVersionId=t,this.oldSelections=i,this.oldModelVersionId=g,this.source=b,this.reason=K}return V}(),qi=function(){function V(o,t){this.modelVersionId=o.getVersionId(),this.cursorState=t.getAll()}return V.prototype.equals=function(o){if(!o)return!1;if(this.modelVersionId!==o.modelVersionId)return!1;if(this.cursorState.length!==o.cursorState.length)return!1;for(var t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(o.cursorState[t]))return!1;return!0},V}(),er=function(){function V(o,t,i){this._model=o,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}return V.getAllAutoClosedCharacters=function(o){for(var t=[],i=0,g=o;i<g.length;i++){var b=g[i];t=t.concat(b.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 o=[],t=0;t<this._autoClosedCharactersDecorations.length;t++){var i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&o.push(i)}return o},V.prototype.isValid=function(o){for(var t=[],i=0;i<this._autoClosedEnclosingDecorations.length;i++){var g=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(g&&(t.push(g),g.startLineNumber!==g.endLineNumber))return!1}t.sort(be.a.compareRangesUsingStarts),o.sort(be.a.compareRangesUsingStarts);for(var i=0;i<o.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(o[i]))return!1}return!0},V}(),Rr=function(V){xi(o,V);function o(t,i,g){var b=V.call(this)||this;b._onDidReachMaxCursorCount=b._register(new U.a),b.onDidReachMaxCursorCount=b._onDidReachMaxCursorCount.event,b._onDidAttemptReadOnlyEdit=b._register(new U.a),b.onDidAttemptReadOnlyEdit=b._onDidAttemptReadOnlyEdit.event,b._onDidChange=b._register(new U.a),b.onDidChange=b._onDidChange.event,b._configuration=t,b._model=i,b._knownModelVersionId=b._model.getVersionId(),b._viewModel=g,b.context=new De.c(b._configuration,b._model,b._viewModel),b._cursors=new Vn(b.context),b._isHandling=!1,b._isDoingComposition=!1,b._selectionsWhenCompositionStarted=null,b._columnSelectData=null,b._autoClosedActions=[],b._prevEditOperationType=0,b._register(b._model.onDidChangeRawContent(function(Ie){if(b._knownModelVersionId=Ie.versionId,b._isHandling)return;var Le=Ie.containsEvent(1);b._onModelContentChanged(Le)})),b._register(g.addEventListener(function(Ie){if(!Ei(Ie))return;if(b._knownModelVersionId!==b._model.getVersionId())return;b.setStates("viewModel",0,b.getAll())}));var K=function(){b.context=new De.c(b._configuration,b._model,b._viewModel),b._cursors.updateContext(b.context)};return b._register(b._model.onDidChangeLanguage(function(Ie){K()})),b._register(b._model.onDidChangeLanguageConfiguration(function(){K()})),b._register(b._model.onDidChangeOptions(function(){K()})),b._register(b._configuration.onDidChange(function(Ie){De.b.shouldRecreate(Ie)&&K()})),b}return o.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(z.f)(this._autoClosedActions),V.prototype.dispose.call(this)},o.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var t=this._cursors.getSelections(),i=0;i<this._autoClosedActions.length;i++){var g=this._autoClosedActions[i];g.isValid(t)||(g.dispose(),this._autoClosedActions.splice(i,1),i--)}},o.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},o.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},o.prototype.getAll=function(){return this._cursors.getAll()},o.prototype.setStates=function(t,i,g){g!==null&&g.length>o.MAX_CURSOR_COUNT&&(g=g.slice(0,o.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var b=new qi(this._model,this);this._cursors.setStates(g),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,b)},o.prototype.setColumnSelectData=function(t){this._columnSelectData=t},o.prototype.reveal=function(t,i,g,b){this._revealRange(t,g,0,i,b)},o.prototype.revealRange=function(t,i,g,b,K){this.emitCursorRevealRange(t,g,b,i,K)},o.prototype.scrollTo=function(t){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:t})},o.prototype.saveState=function(){for(var t=[],i=this._cursors.getSelections(),g=0,b=i.length;g<b;g++){var K=i[g];t.push({inSelectionMode:!K.isEmpty(),selectionStart:{lineNumber:K.selectionStartLineNumber,column:K.selectionStartColumn},position:{lineNumber:K.positionLineNumber,column:K.positionColumn}})}return t},o.prototype.restoreState=function(t){for(var i=[],g=0,b=t.length;g<b;g++){var K=t[g],Ie=1,Le=1;K.position&&K.position.lineNumber&&(Ie=K.position.lineNumber),K.position&&K.position.column&&(Le=K.position.column);var qe=Ie,ct=Le;K.selectionStart&&K.selectionStart.lineNumber&&(qe=K.selectionStart.lineNumber),K.selectionStart&&K.selectionStart.column&&(ct=K.selectionStart.column),i.push({selectionStartLineNumber:qe,selectionStartColumn:ct,positionLineNumber:Ie,positionColumn:Le})}this.setStates("restoreState",0,De.d.fromModelSelections(i)),this.reveal("restoreState",!0,0,1)},o.prototype._onModelContentChanged=function(t){if(this._prevEditOperationType=0,t)this._cursors.dispose(),this._cursors=new Vn(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var i=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,De.d.fromModelSelections(i))}},o.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},o.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var t=this._cursors.getPrimaryCursor(),i=t.viewState.selectionStart.getStartPosition(),g=i.lineNumber,b=De.a.visibleColumnFromColumn2(this.context.config,this.context.viewModel,i);return{isReal:!1,fromViewLineNumber:g,fromViewVisualColumn:b,toViewLineNumber:g,toViewVisualColumn:b}},o.prototype.getSelections=function(){return this._cursors.getSelections()},o.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},o.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},o.prototype.setSelections=function(t,i){this.setStates(t,0,De.d.fromModelSelections(i))},o.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},o.prototype.setPrevEditOperationType=function(t){this._prevEditOperationType=t},o.prototype._pushAutoClosedAction=function(t,i){for(var g=[],b=[],K=0,Ie=t.length;K<Ie;K++)g.push({range:t[K],options:{inlineClassName:"auto-closed-character",stickiness:1}}),b.push({range:i[K],options:{stickiness:1}});var Le=this._model.deltaDecorations([],g),qe=this._model.deltaDecorations([],b);this._autoClosedActions.push(new er(this._model,Le,qe))},o.prototype._executeEditOperation=function(t){if(!t)return;t.shouldPushStackElementBefore&&this._model.pushStackElement();var i=Ir.executeCommands(this._model,this._cursors.getSelections(),t.commands);if(i){this._interpretCommandResult(i);for(var g=[],b=[],K=0;K<t.commands.length;K++){var Ie=t.commands[K];Ie instanceof Mn.b&&Ie.enclosingRange&&Ie.closeCharacterRange&&(g.push(Ie.closeCharacterRange),b.push(Ie.enclosingRange))}g.length>0&&this._pushAutoClosedAction(g,b),this._prevEditOperationType=t.type}t.shouldPushStackElementAfter&&this._model.pushStackElement()},o.prototype._interpretCommandResult=function(t){(!t||t.length===0)&&(t=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(t),this._cursors.normalize()},o.prototype._emitStateChangedIfNecessary=function(t,i,g){var b=new qi(this._model,this);if(b.equals(g))return!1;var K=this._cursors.getSelections(),Ie=this._cursors.getViewSelections();try{var Le=this._beginEmit();Le.emit(new Zo(Ie,K))}finally{this._endEmit()}if(!g||g.cursorState.length!==b.cursorState.length||b.cursorState.some(function(wt,et){return!wt.modelState.equals(g.cursorState[et].modelState)})){var qe=g?g.cursorState.map(function(wt){return wt.modelState.selection}):null,ct=g?g.modelVersionId:0;this._onDidChange.fire(new Ji(K,b.modelVersionId,qe,ct,t||"keyboard",i))}return!0},o.prototype._revealRange=function(t,i,g,b,K){var Ie=this._cursors.getViewPositions(),Le=Ie[0];if(i===1)for(var qe=1;qe<Ie.length;qe++)Ie[qe].isBefore(Le)&&(Le=Ie[qe]);else if(i===2)for(var qe=1;qe<Ie.length;qe++)Le.isBeforeOrEqual(Ie[qe])&&(Le=Ie[qe]);else if(Ie.length>1)return;var ct=new be.a(Le.lineNumber,Le.column,Le.lineNumber,Le.column);this.emitCursorRevealRange(t,ct,g,b,K)},o.prototype.emitCursorRevealRange=function(t,i,g,b,K){try{var Ie=this._beginEmit();Ie.emit(new mn(t,i,g,b,K))}finally{this._endEmit()}},o.prototype._findAutoClosingPairs=function(t){if(!t.length)return null;for(var i=[],g=0,b=t.length;g<b;g++){var K=t[g];if(!K.text||K.text.indexOf(`
`)>=0)return null;var Ie=K.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!Ie)return null;var Le=Ie[1],qe=this.context.config.autoClosingPairsClose2.get(Le);if(!qe||qe.length!==1)return null;var ct=qe[0].open,wt=K.text.length-Ie[2].length-1,et=K.text.lastIndexOf(ct,wt-1);if(et===-1)return null;i.push([et,wt])}return i},o.prototype.executeEdits=function(t,i,g){var b=this,K=null;t==="snippet"&&(K=this._findAutoClosingPairs(i)),K&&(i[0]._isTracked=!0);var Ie=[],Le=[],qe=this._model.pushEditOperations(this.getSelections(),i,function(ct){if(K)for(var wt=0,et=K.length;wt<et;wt++){var Wt=K[wt],kt=Wt[0],Vt=Wt[1],qt=ct[wt],$t=qt.range.startLineNumber,io=qt.range.startColumn-1+kt,yo=qt.range.startColumn-1+Vt;Ie.push(new be.a($t,yo+1,$t,yo+2)),Le.push(new be.a($t,io+1,$t,yo+2))}var mo=g(ct);return mo&&(b._isHandling=!0),mo});qe&&(this._isHandling=!1,this.setSelections(t,qe)),Ie.length>0&&this._pushAutoClosedAction(Ie,Le)},o.prototype.trigger=function(t,i,g){var b=Ln.b;if(i===b.CompositionStart){this._isDoingComposition=!0,this._selectionsWhenCompositionStarted=this.getSelections().slice(0);return}if(i===b.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68)){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var K=new qi(this._model,this),Ie=0;i!==b.Undo&&i!==b.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(i){case b.Type:this._type(t,g.text);break;case b.ReplacePreviousChar:this._replacePreviousChar(g.text,g.replaceCharCnt);break;case b.Paste:Ie=4,this._paste(g.text,g.pasteOnNewLine,g.multicursorText||[]);break;case b.Cut:this._cut();break;case b.Undo:Ie=5,this._interpretCommandResult(this._model.undo());break;case b.Redo:Ie=6,this._interpretCommandResult(this._model.redo());break;case b.ExecuteCommand:this._externalExecuteCommand(g);break;case b.ExecuteCommands:this._externalExecuteCommands(g);break;case b.CompositionEnd:this._interpretCompositionEnd(t);break}}catch(Le){Object(I.e)(Le)}this._isHandling=!1,i!==b.Undo&&i!==b.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,Ie,K)&&this._revealRange(t,0,0,!0,0)},o.prototype._interpretCompositionEnd=function(t){if(!this._isDoingComposition&&t==="keyboard"){var i=er.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Mn.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),i)),this._selectionsWhenCompositionStarted=null}},o.prototype._type=function(t,i){if(!this._isDoingComposition&&t==="keyboard")for(var g=i.length,b=0;b<g;){var K=fe.E(i,b),Ie=i.substr(b,K),Le=er.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Mn.a.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),Le,Ie)),b+=K}else this._executeEditOperation(Mn.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),i))},o.prototype._replacePreviousChar=function(t,i){this._executeEditOperation(Mn.a.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t,i))},o.prototype._paste=function(t,i,g){this._executeEditOperation(Mn.a.paste(this.context.config,this.context.model,this.getSelections(),t,i,g))},o.prototype._cut=function(){this._executeEditOperation(bn.a.cut(this.context.config,this.context.model,this.getSelections()))},o.prototype._externalExecuteCommand=function(t){this._cursors.killSecondaryCursors(),this._executeEditOperation(new De.e(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},o.prototype._externalExecuteCommands=function(t){this._executeEditOperation(new De.e(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},o.MAX_CURSOR_COUNT=1e4,o}(Ho),Ir=function(){function V(){}return V.executeCommands=function(o,t,i){for(var g={model:o,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},b=this._innerExecuteCommands(g,i),K=0,Ie=g.trackedRanges.length;K<Ie;K++)g.model._setTrackedRange(g.trackedRanges[K],null,0);return b},V._innerExecuteCommands=function(o,t){if(this._arrayIsEmpty(t))return null;var i=this._getEditOperations(o,t);if(i.operations.length===0)return null;var g=i.operations,b=this._getLoserCursorMap(g);if(b.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var K=[],Ie=0,Le=g.length;Ie<Le;Ie++)b.hasOwnProperty(g[Ie].identifier.major.toString())||K.push(g[Ie]);i.hadTrackedEditOperation&&K.length>0&&(K[0]._isTracked=!0);var qe=o.model.pushEditOperations(o.selectionsBefore,K,function(Vt){for(var qt=[],$t=0;$t<o.selectionsBefore.length;$t++)qt[$t]=[];for(var io=0,yo=Vt;io<yo.length;io++){var mo=yo[io];if(!mo.identifier)continue;qt[mo.identifier.major].push(mo)}for(var bo=function(Fo,Xo){return Fo.identifier.minor-Xo.identifier.minor},go=[],Lo=function(Fo){qt[Fo].length>0?(qt[Fo].sort(bo),go[Fo]=t[Fo].computeCursorState(o.model,{getInverseEditOperations:function(){return qt[Fo]},getTrackedSelection:function(Po){var nn=parseInt(Po,10),vn=o.model._getTrackedRange(o.trackedRanges[nn]);return o.trackedRangesDirection[nn]===0?new vt.a(vn.startLineNumber,vn.startColumn,vn.endLineNumber,vn.endColumn):new vt.a(vn.endLineNumber,vn.endColumn,vn.startLineNumber,vn.startColumn)}})):go[Fo]=o.selectionsBefore[Fo]},$t=0;$t<o.selectionsBefore.length;$t++)Lo($t);return go});qe||(qe=o.selectionsBefore);var ct=[];for(var wt in b)b.hasOwnProperty(wt)&&ct.push(parseInt(wt,10));ct.sort(function(Vt,qt){return qt-Vt});for(var et=0,Wt=ct;et<Wt.length;et++){var kt=Wt[et];qe.splice(kt,1)}return qe},V._arrayIsEmpty=function(o){for(var t=0,i=o.length;t<i;t++)if(o[t])return!1;return!0},V._getEditOperations=function(o,t){for(var i=[],g=!1,b=0,K=t.length;b<K;b++){var Ie=t[b];if(Ie){var Le=this._getEditOperationsFromCommand(o,b,Ie);i=i.concat(Le.operations),g=g||Le.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:g}},V._getEditOperationsFromCommand=function(o,t,i){var g=[],b=0,K=function(et,Wt,kt){if(kt===void 0&&(kt=!1),et.isEmpty()&&Wt==="")return;g.push({identifier:{major:t,minor:b++},range:et,text:Wt,forceMoveMarkers:kt,isAutoWhitespaceEdit:i.insertsAutoWhitespace})},Ie=!1,Le=function(et,Wt,kt){Ie=!0,K(et,Wt,kt)},qe=function(et,Wt){var kt;if(et.isEmpty())if(typeof Wt=="boolean")Wt?kt=2:kt=3;else{var Vt=o.model.getLineMaxColumn(et.startLineNumber);et.startColumn===Vt?kt=2:kt=3}else kt=1;var qt=o.trackedRanges.length,$t=o.model._setTrackedRange(null,et,kt);return o.trackedRanges[qt]=$t,o.trackedRangesDirection[qt]=et.getDirection(),qt.toString()},ct={addEditOperation:K,addTrackedEditOperation:Le,trackSelection:qe};try{i.getEditOperations(o.model,ct)}catch(wt){return Object(I.e)(wt),{operations:[],hadTrackedEditOperation:!1}}return{operations:g,hadTrackedEditOperation:Ie}},V._getLoserCursorMap=function(o){o=o.slice(0),o.sort(function(Le,qe){return-be.a.compareRangesUsingEnds(Le.range,qe.range)});for(var t={},i=1;i<o.length;i++){var g=o[i-1],b=o[i];if(g.range.getStartPosition().isBefore(b.range.getEndPosition())){var K=void 0;g.identifier.major>b.identifier.major?K=g.identifier.major:K=b.identifier.major,t[K.toString()]=!0;for(var Ie=0;Ie<o.length;Ie++)o[Ie].identifier.major===K&&(o.splice(Ie,1),Ie<i&&i--,Ie--);i>0&&i--}}return t},V}(),Es=e("9Y+e"),Jo=e("wQH0"),Ai=e("TQUy"),ws=e("QuOb"),In=function(){function V(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return V.prototype.insert=function(o){this._hasPending=!0,this._inserts.push(o)},V.prototype.change=function(o){this._hasPending=!0,this._changes.push(o)},V.prototype.remove=function(o){this._hasPending=!0,this._removes.push(o)},V.prototype.mustCommit=function(){return this._hasPending},V.prototype.commit=function(o){if(!this._hasPending)return;var t=this._inserts,i=this._changes,g=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],o._commitPendingChanges(t,i,g)},V}(),wi=function(){function V(o,t,i,g,b){this.id=o,this.afterLineNumber=t,this.ordinal=i,this.height=g,this.minWidth=b,this.prefixSum=0}return V}(),Xn=function(){function V(o,t){this._instanceId=fe.M(++V.INSTANCE_COUNT),this._pendingChanges=new In,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=o,this._lineHeight=t}return V.findInsertionIndex=function(o,t,i){for(var g=0,b=o.length;g<b;){var K=g+b>>>1;t===o[K].afterLineNumber?i<o[K].ordinal?b=K:g=K+1:t<o[K].afterLineNumber?b=K:g=K+1}return g},V.prototype.setLineHeight=function(o){this._checkPendingChanges(),this._lineHeight=o},V.prototype.onFlushed=function(o){this._checkPendingChanges(),this._lineCount=o},V.prototype.changeWhitespace=function(o){var t=this;try{var i={insertWhitespace:function(b,K,Ie,Le){b=b|0,K=K|0,Ie=Ie|0,Le=Le|0;var qe=t._instanceId+ ++t._lastWhitespaceId;return t._pendingChanges.insert(new wi(qe,b,K,Ie,Le)),qe},changeOneWhitespace:function(b,K,Ie){K=K|0,Ie=Ie|0,t._pendingChanges.change({id:b,newAfterLineNumber:K,newHeight:Ie})},removeWhitespace:function(b){t._pendingChanges.remove({id:b})}};return o(i)}finally{this._pendingChanges.commit(this)}},V.prototype._commitPendingChanges=function(o,t,i){if((o.length>0||i.length>0)&&(this._minWidth=-1),o.length+t.length+i.length<=1){for(var g=0,b=o;g<b.length;g++){var K=b[g];this._insertWhitespace(K)}for(var Ie=0,Le=t;Ie<Le.length;Ie++){var qe=Le[Ie];this._changeOneWhitespace(qe.id,qe.newAfterLineNumber,qe.newHeight)}for(var ct=0,wt=i;ct<wt.length;ct++){var et=wt[ct],Wt=this._findWhitespaceIndex(et.id);if(Wt===-1)continue;this._removeWhitespace(Wt)}return}for(var kt=new Set,Vt=0,qt=i;Vt<qt.length;Vt++){var et=qt[Vt];kt.add(et.id)}for(var $t=new Map,io=0,yo=t;io<yo.length;io++){var qe=yo[io];$t.set(qe.id,qe)}var mo=function(Lo){for(var No=[],Fo=0,Xo=Lo;Fo<Xo.length;Fo++){var Po=Xo[Fo];if(kt.has(Po.id))continue;if($t.has(Po.id)){var nn=$t.get(Po.id);Po.afterLineNumber=nn.newAfterLineNumber,Po.height=nn.newHeight}No.push(Po)}return No},bo=mo(this._arr).concat(mo(o));bo.sort(function(go,Lo){return go.afterLineNumber===Lo.afterLineNumber?go.ordinal-Lo.ordinal:go.afterLineNumber-Lo.afterLineNumber}),this._arr=bo,this._prefixSumValidIndex=-1},V.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)},V.prototype._insertWhitespace=function(o){var t=V.findInsertionIndex(this._arr,o.afterLineNumber,o.ordinal);this._arr.splice(t,0,o),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},V.prototype._findWhitespaceIndex=function(o){for(var t=this._arr,i=0,g=t.length;i<g;i++)if(t[i].id===o)return i;return-1},V.prototype._changeOneWhitespace=function(o,t,i){var g=this._findWhitespaceIndex(o);if(g===-1)return;if(this._arr[g].height!==i&&(this._arr[g].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,g-1)),this._arr[g].afterLineNumber!==t){var b=this._arr[g];this._removeWhitespace(g),b.afterLineNumber=t,this._insertWhitespace(b)}},V.prototype._removeWhitespace=function(o){this._arr.splice(o,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,o-1)},V.prototype.onLinesDeleted=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0,this._lineCount-=t-o+1;for(var i=0,g=this._arr.length;i<g;i++){var b=this._arr[i].afterLineNumber;o<=b&&b<=t?this._arr[i].afterLineNumber=o-1:b>t&&(this._arr[i].afterLineNumber-=t-o+1)}},V.prototype.onLinesInserted=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0,this._lineCount+=t-o+1;for(var i=0,g=this._arr.length;i<g;i++){var b=this._arr[i].afterLineNumber;o<=b&&(this._arr[i].afterLineNumber+=t-o+1)}},V.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),this._arr.length===0?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},V.prototype.getWhitespacesAccumulatedHeight=function(o){this._checkPendingChanges(),o=o|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<=o;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,o),this._arr[o].prefixSum},V.prototype.getLinesTotalHeight=function(){this._checkPendingChanges();var o=this._lineHeight*this._lineCount,t=this.getWhitespacesTotalHeight();return o+t},V.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(o){this._checkPendingChanges(),o=o|0;var t=this._findLastWhitespaceBeforeLineNumber(o);return t===-1?0:this.getWhitespacesAccumulatedHeight(t)},V.prototype._findLastWhitespaceBeforeLineNumber=function(o){o=o|0;for(var t=this._arr,i=0,g=t.length-1;i<=g;){var b=g-i|0,K=b/2|0,Ie=i+K|0;if(t[Ie].afterLineNumber<o){if(Ie+1>=t.length||t[Ie+1].afterLineNumber>=o)return Ie;i=Ie+1|0}else g=Ie-1|0}return-1},V.prototype._findFirstWhitespaceAfterLineNumber=function(o){o=o|0;var t=this._findLastWhitespaceBeforeLineNumber(o),i=t+1;return i<this._arr.length?i:-1},V.prototype.getFirstWhitespaceIndexAfterLineNumber=function(o){return this._checkPendingChanges(),o=o|0,this._findFirstWhitespaceAfterLineNumber(o)},V.prototype.getVerticalOffsetForLineNumber=function(o){this._checkPendingChanges(),o=o|0;var t;o>1?t=this._lineHeight*(o-1):t=0;var i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(o);return t+i},V.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),this._minWidth===-1){for(var o=0,t=0,i=this._arr.length;t<i;t++)o=Math.max(o,this._arr[t].minWidth);this._minWidth=o}return this._minWidth},V.prototype.isAfterLines=function(o){this._checkPendingChanges();var t=this.getLinesTotalHeight();return o>t},V.prototype.getLineNumberAtOrAfterVerticalOffset=function(o){if(this._checkPendingChanges(),o=o|0,o<0)return 1;for(var t=this._lineCount|0,i=this._lineHeight,g=1,b=t;g<b;){var K=(g+b)/2|0,Ie=this.getVerticalOffsetForLineNumber(K)|0;if(o>=Ie+i)g=K+1;else{if(o>=Ie)return K;b=K}}return g>t?t:g},V.prototype.getLinesViewportData=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0;var i=this._lineHeight,g=this.getLineNumberAtOrAfterVerticalOffset(o)|0,b=this.getVerticalOffsetForLineNumber(g)|0,K=this._lineCount|0,Ie=this.getFirstWhitespaceIndexAfterLineNumber(g)|0,Le=this.getWhitespacesCount()|0,qe,ct;Ie===-1?(Ie=Le,ct=K+1,qe=0):(ct=this.getAfterLineNumberForWhitespaceIndex(Ie)|0,qe=this.getHeightForWhitespaceIndex(Ie)|0);var wt=b,et=wt,Wt=5e5,kt=0;b>=Wt&&(kt=Math.floor(b/Wt)*Wt,kt=Math.floor(kt/i)*i,et-=kt);for(var Vt=[],qt=o+(t-o)/2,$t=-1,io=g;io<=K;io++){if($t===-1){var yo=wt,mo=wt+i;(yo<=qt&&qt<mo||yo>qt)&&($t=io)}for(wt+=i,Vt[io-g]=et,et+=i;ct===io;)et+=qe,wt+=qe,Ie++,Ie>=Le?ct=K+1:(ct=this.getAfterLineNumberForWhitespaceIndex(Ie)|0,qe=this.getHeightForWhitespaceIndex(Ie)|0);if(wt>=t){K=io;break}}$t===-1&&($t=K);var bo=this.getVerticalOffsetForLineNumber(K)|0,go=g,Lo=K;return go<Lo&&(b<o&&go++),go<Lo&&(bo+i>t&&Lo--),{bigNumbersDelta:kt,startLineNumber:g,endLineNumber:K,relativeVerticalOffset:Vt,centeredLineNumber:$t,completelyVisibleStartLineNumber:go,completelyVisibleEndLineNumber:Lo}},V.prototype.getVerticalOffsetForWhitespaceIndex=function(o){this._checkPendingChanges(),o=o|0;var t=this.getAfterLineNumberForWhitespaceIndex(o),i;t>=1?i=this._lineHeight*t:i=0;var g;return o>0?g=this.getWhitespacesAccumulatedHeight(o-1):g=0,i+g},V.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(o){this._checkPendingChanges(),o=o|0;var t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;var g=this.getVerticalOffsetForWhitespaceIndex(i),b=this.getHeightForWhitespaceIndex(i);if(o>=g+b)return-1;for(;t<i;){var K=Math.floor((t+i)/2),Ie=this.getVerticalOffsetForWhitespaceIndex(K),Le=this.getHeightForWhitespaceIndex(K);if(o>=Ie+Le)t=K+1;else{if(o>=Ie)return K;i=K}}return t},V.prototype.getWhitespaceAtVerticalOffset=function(o){this._checkPendingChanges(),o=o|0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(o);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>o)return null;var g=this.getHeightForWhitespaceIndex(t),b=this.getIdForWhitespaceIndex(t),K=this.getAfterLineNumberForWhitespaceIndex(t);return{id:b,afterLineNumber:K,verticalOffset:i,height:g}},V.prototype.getWhitespaceViewportData=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(o),g=this.getWhitespacesCount()-1;if(i<0)return[];for(var b=[],K=i;K<=g;K++){var Ie=this.getVerticalOffsetForWhitespaceIndex(K),Le=this.getHeightForWhitespaceIndex(K);if(Ie>=t)break;b.push({id:this.getIdForWhitespaceIndex(K),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(K),verticalOffset:Ie,height:Le})}return b},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(o){return this._checkPendingChanges(),o=o|0,this._arr[o].id},V.prototype.getAfterLineNumberForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].afterLineNumber},V.prototype.getHeightForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].height},V.INSTANCE_COUNT=0,V}(),zn=e("qNAo"),Ri=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),tr=125,_i=function(){function V(o,t,i,g){o=o|0,t=t|0,i=i|0,g=g|0,o<0&&(o=0),t<0&&(t=0),i<0&&(i=0),g<0&&(g=0),this.width=o,this.contentWidth=t,this.scrollWidth=Math.max(o,t),this.height=i,this.contentHeight=g,this.scrollHeight=Math.max(i,g)}return V.prototype.equals=function(o){return this.width===o.width&&this.contentWidth===o.contentWidth&&this.height===o.height&&this.contentHeight===o.contentHeight},V}(),Ii=function(V){Ri(o,V);function o(t,i){var g=V.call(this)||this;return g._onDidContentSizeChange=g._register(new U.a),g.onDidContentSizeChange=g._onDidContentSizeChange.event,g._dimensions=new _i(0,0,0,0),g._scrollable=g._register(new ws.a(t,i)),g.onDidScroll=g._scrollable.onScroll,g}return o.prototype.getScrollable=function(){return this._scrollable},o.prototype.setSmoothScrollDuration=function(t){this._scrollable.setSmoothScrollDuration(t)},o.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},o.prototype.getScrollDimensions=function(){return this._dimensions},o.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 g=i.contentWidth!==t.contentWidth,b=i.contentHeight!==t.contentHeight;(g||b)&&this._onDidContentSizeChange.fire({contentWidth:t.contentWidth,contentHeight:t.contentHeight,contentWidthChanged:g,contentHeightChanged:b})},o.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},o.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},o.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},o.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},o}(z.a),_s=function(V){Ri(o,V);function o(t,i,g){var b=V.call(this)||this;b._configuration=t;var K=b._configuration.options,Ie=K.get(107);return b._linesLayout=new Xn(i,K.get(49)),b._scrollable=b._register(new Ii(0,g)),b._configureSmoothScrollDuration(),b._scrollable.setScrollDimensions(new _i(Ie.contentWidth,0,Ie.height,0)),b.onDidScroll=b._scrollable.onDidScroll,b.onDidContentSizeChange=b._scrollable.onDidContentSizeChange,b._updateHeight(),b}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.getScrollable=function(){return this._scrollable.getScrollable()},o.prototype.onHeightMaybeChanged=function(){this._updateHeight()},o.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?tr:0)},o.prototype.onConfigurationChanged=function(t){var i=this._configuration.options;if(t.hasChanged(49)&&this._linesLayout.setLineHeight(i.get(49)),t.hasChanged(107)){var g=i.get(107),b=g.contentWidth,K=g.height,Ie=this._scrollable.getScrollDimensions(),Le=Ie.scrollWidth;this._scrollable.setScrollDimensions(new _i(b,Ie.contentWidth,K,this._getContentHeight(b,K,Le)))}else this._updateHeight();t.hasChanged(87)&&this._configureSmoothScrollDuration()},o.prototype.onFlushed=function(t){this._linesLayout.onFlushed(t)},o.prototype.onLinesDeleted=function(t,i){this._linesLayout.onLinesDeleted(t,i)},o.prototype.onLinesInserted=function(t,i){this._linesLayout.onLinesInserted(t,i)},o.prototype._getHorizontalScrollbarHeight=function(t,i){var g=this._configuration.options,b=g.get(78);return b.horizontal===2||t>=i?0:b.horizontalScrollbarSize},o.prototype._getContentHeight=function(t,i,g){var b=this._configuration.options,K=this._linesLayout.getLinesTotalHeight();return b.get(80)?K+=i-b.get(49):K+=this._getHorizontalScrollbarHeight(t,g),K},o.prototype._updateHeight=function(){var t=this._scrollable.getScrollDimensions(),i=t.width,g=t.height,b=t.scrollWidth;this._scrollable.setScrollDimensions(new _i(i,t.contentWidth,g,this._getContentHeight(i,g,b)))},o.prototype.getCurrentViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getCurrentScrollPosition();return new zn.f(i.scrollTop,i.scrollLeft,t.width,t.height)},o.prototype.getFutureViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getFutureScrollPosition();return new zn.f(i.scrollTop,i.scrollLeft,t.width,t.height)},o.prototype._computeContentWidth=function(t){var i=this._configuration.options,g=i.get(108),b=i.get(34);if(g.isViewportWrapping){var K=i.get(107),Ie=i.get(54);return t>K.contentWidth+b.typicalHalfwidthCharacterWidth&&(Ie.enabled&&Ie.side==="right")?t+K.verticalScrollbarWidth:t}else{var Le=i.get(79)*b.typicalHalfwidthCharacterWidth,qe=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+Le,qe)}},o.prototype.onMaxLineWidthChanged=function(t){var i=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new _i(i.width,this._computeContentWidth(t),i.height,i.contentHeight)),this._updateHeight()},o.prototype.saveState=function(){var t=this._scrollable.getFutureScrollPosition(),i=t.scrollTop,g=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i),b=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(g);return{scrollTop:i,scrollTopWithoutViewZones:i-b,scrollLeft:t.scrollLeft}},o.prototype.changeWhitespace=function(t){return this._linesLayout.changeWhitespace(t)},o.prototype.getVerticalOffsetForLineNumber=function(t){return this._linesLayout.getVerticalOffsetForLineNumber(t)},o.prototype.isAfterLines=function(t){return this._linesLayout.isAfterLines(t)},o.prototype.getLineNumberAtVerticalOffset=function(t){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t)},o.prototype.getWhitespaceAtVerticalOffset=function(t){return this._linesLayout.getWhitespaceAtVerticalOffset(t)},o.prototype.getLinesViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(t.top,t.top+t.height)},o.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)},o.prototype.getWhitespaceViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(t.top,t.top+t.height)},o.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},o.prototype.getContentWidth=function(){var t=this._scrollable.getScrollDimensions();return t.contentWidth},o.prototype.getScrollWidth=function(){var t=this._scrollable.getScrollDimensions();return t.scrollWidth},o.prototype.getContentHeight=function(){var t=this._scrollable.getScrollDimensions();return t.contentHeight},o.prototype.getScrollHeight=function(){var t=this._scrollable.getScrollDimensions();return t.scrollHeight},o.prototype.getCurrentScrollLeft=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollLeft},o.prototype.getCurrentScrollTop=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollTop},o.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},o.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},o.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},o.prototype.deltaScrollNow=function(t,i){var g=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:g.scrollLeft+t,scrollTop:g.scrollTop+i})},o}(z.a),hi=e("tX9W"),Ss=e("LeU+"),Jn=function(){function V(o,t){this.outputLineIndex=o,this.outputOffset=t}return V}(),qn=function(){function V(o,t,i){this.breakOffsets=o,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=i}return V.getInputOffsetOfOutputPosition=function(o,t,i){return t===0?i:o[t-1]+i},V.getOutputPositionOfInputOffset=function(o,t){for(var i=0,g=o.length-1,b=0,K=0;i<=g;){b=i+(g-i)/2|0;var Ie=o[b];if(K=b>0?o[b-1]:0,t<K)g=b-1;else if(t>=Ie)i=b+1;else break}return new Jn(b,t-K)},V}(),Ls=function(){function V(o){this._lines=o}return V.prototype.convertViewPositionToModelPosition=function(o){return this._lines.convertViewPositionToModelPosition(o.lineNumber,o.column)},V.prototype.convertViewRangeToModelRange=function(o){return this._lines.convertViewRangeToModelRange(o)},V.prototype.validateViewPosition=function(o,t){return this._lines.validateViewPosition(o.lineNumber,o.column,t)},V.prototype.validateViewRange=function(o,t){return this._lines.validateViewRange(o,t)},V.prototype.convertModelPositionToViewPosition=function(o){return this._lines.convertModelPositionToViewPosition(o.lineNumber,o.column)},V.prototype.convertModelRangeToViewRange=function(o){return this._lines.convertModelRangeToViewRange(o)},V.prototype.modelPositionIsVisible=function(o){return this._lines.modelPositionIsVisible(o.lineNumber,o.column)},V}(),or=function(){function V(o){this._counts=o,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}return V.prototype._invalidate=function(o){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,o-1)},V.prototype._ensureValid=function(){if(this._isValid)return;for(var o=this._validEndIndex+1,t=this._counts.length;o<t;o++){var i=this._counts[o],g=o>0?this._modelToView[o-1]:0;this._modelToView[o]=g+i;for(var b=0;b<i;b++)this._viewToModel[g+b]=o}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(o,t){if(this._counts[o]===t)return;this._counts[o]=t,this._invalidate(o)},V.prototype.removeValues=function(o,t){this._counts.splice(o,t),this._invalidate(o)},V.prototype.insertValues=function(o,t){this._counts=We.a(this._counts,o,t),this._invalidate(o)},V.prototype.getTotalValue=function(){return this._ensureValid(),this._viewToModel.length},V.prototype.getAccumulatedValue=function(o){return this._ensureValid(),this._modelToView[o]},V.prototype.getIndexOf=function(o){this._ensureValid();var t=this._viewToModel[o],i=t>0?this._modelToView[t-1]:0;return new Ss.b(t,o-i)},V}(),Nr=function(){function V(o,t,i,g,b,K,Ie,Le){this.model=o,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=g,this.tabSize=b,this.wrappingStrategy=K,this.wrappingColumn=Ie,this.wrappingIndent=Le,this._constructLines(!0,null)}return V.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},V.prototype.createCoordinatesConverter=function(){return new Ls(this)},V.prototype._constructLines=function(o,t){var i=this;this.lines=[],o&&(this.hiddenAreasIds=[]);for(var g=this.model.getLinesContent(),b=g.length,K=this.createLineBreaksComputer(),Ie=0;Ie<b;Ie++)K.addRequest(g[Ie],t?t[Ie]:null);for(var Le=K.finalize(),qe=[],ct=this.hiddenAreasIds.map(function(io){return i.model.getDecorationRange(io)}).sort(be.a.compareRangesUsingStarts),wt=1,et=0,Wt=-1,kt=Wt+1<ct.length?et+1:b+2,Ie=0;Ie<b;Ie++){var Vt=Ie+1;Vt===kt&&(Wt++,wt=ct[Wt].startLineNumber,et=ct[Wt].endLineNumber,kt=Wt+1<ct.length?et+1:b+2);var qt=Vt>=wt&&Vt<=et,$t=Ni(Le[Ie],!qt);qe[Ie]=$t.getViewLineCount(),this.lines[Ie]=$t}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new or(qe)},V.prototype.getHiddenAreas=function(){var o=this;return this.hiddenAreasIds.map(function(t){return o.model.getDecorationRange(t)})},V.prototype._reduceRanges=function(o){var t=this;if(o.length===0)return[];for(var i=o.map(function(ct){return t.model.validateRange(ct)}).sort(be.a.compareRangesUsingStarts),g=[],b=i[0].startLineNumber,K=i[0].endLineNumber,Ie=1,Le=i.length;Ie<Le;Ie++){var qe=i[Ie];qe.startLineNumber>K+1?(g.push(new be.a(b,1,K,1)),b=qe.startLineNumber,K=qe.endLineNumber):qe.endLineNumber>K&&(K=qe.endLineNumber)}return g.push(new be.a(b,1,K,1)),g},V.prototype.setHiddenAreas=function(o){var t=this,i=this._reduceRanges(o),g=this.hiddenAreasIds.map(function(mo){return t.model.getDecorationRange(mo)}).sort(be.a.compareRangesUsingStarts);if(i.length===g.length){for(var b=!1,K=0;K<i.length;K++)if(!i[K].equalsRange(g[K])){b=!0;break}if(!b)return!1}for(var Ie=[],Le=0,qe=i;Le<qe.length;Le++){var ct=qe[Le];Ie.push({range:ct,options:hi.a.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,Ie);for(var wt=i,et=1,Wt=0,kt=-1,Vt=kt+1<wt.length?Wt+1:this.lines.length+2,qt=!1,K=0;K<this.lines.length;K++){var $t=K+1;$t===Vt&&(kt++,et=wt[kt].startLineNumber,Wt=wt[kt].endLineNumber,Vt=kt+1<wt.length?Wt+1:this.lines.length+2);var io=!1;if($t>=et&&$t<=Wt?this.lines[K].isVisible()&&(this.lines[K]=this.lines[K].setVisible(!1),io=!0):(qt=!0,this.lines[K].isVisible()||(this.lines[K]=this.lines[K].setVisible(!0),io=!0)),io){var yo=this.lines[K].getViewLineCount();this.prefixSumComputer.changeValue(K,yo)}}return qt||this.setHiddenAreas([]),!0},V.prototype.modelPositionIsVisible=function(o,t){return o<1||o>this.lines.length?!1:this.lines[o-1].isVisible()},V.prototype.setTabSize=function(o){return this.tabSize===o?!1:(this.tabSize=o,this._constructLines(!1,null),!0)},V.prototype.setWrappingSettings=function(o,t,i,g){var b=this.fontInfo.equals(o),K=this.wrappingStrategy===t,Ie=this.wrappingColumn===i,Le=this.wrappingIndent===g;if(b&&K&&Ie&&Le)return!1;var qe=b&&K&&!Ie&&Le;this.fontInfo=o,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=g;var ct=null;if(qe){ct=[];for(var wt=0,et=this.lines.length;wt<et;wt++)ct[wt]=this.lines[wt].getLineBreakData()}return this._constructLines(!1,ct),!0},V.prototype.createLineBreaksComputer=function(){var o=this.wrappingStrategy==="advanced"?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory;return o.createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)},V.prototype.onModelFlushed=function(){this._constructLines(!0,null)},V.prototype.onModelLinesDeleted=function(o,t,i){if(o<=this._validModelVersionId)return null;var g=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,b=this.prefixSumComputer.getAccumulatedValue(i-1);return this.lines.splice(t-1,i-t+1),this.prefixSumComputer.removeValues(t-1,i-t+1),new fn(g,b)},V.prototype.onModelLinesInserted=function(o,t,i,g){if(o<=this._validModelVersionId)return null;for(var b=this.getHiddenAreas(),K=!1,Ie=new oe.a(t,1),Le=0,qe=b;Le<qe.length;Le++){var ct=qe[Le];if(ct.containsPosition(Ie)){K=!0;break}}for(var wt=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,et=0,Wt=[],kt=[],Vt=0,qt=g.length;Vt<qt;Vt++){var $t=Ni(g[Vt],!K);Wt.push($t);var io=$t.getViewLineCount();et+=io,kt[Vt]=io}return this.lines=this.lines.slice(0,t-1).concat(Wt).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,kt),new Vo(wt,wt+et-1)},V.prototype.onModelLineChanged=function(o,t,i){if(o<=this._validModelVersionId)return[!1,null,null,null];var g=t-1,b=this.lines[g].getViewLineCount(),K=this.lines[g].isVisible(),Ie=Ni(i,K);this.lines[g]=Ie;var Le=this.lines[g].getViewLineCount(),qe=!1,ct=0,wt=-1,et=0,Wt=-1,kt=0,Vt=-1;b>Le?(ct=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,wt=ct+Le-1,kt=wt+1,Vt=kt+(b-Le)-1,qe=!0):b<Le?(ct=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,wt=ct+b-1,et=wt+1,Wt=et+(Le-b)-1,qe=!0):(ct=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,wt=ct+Le-1),this.prefixSumComputer.changeValue(g,Le);var qt=ct<=wt?new Qo(ct,wt):null,$t=et<=Wt?new Vo(et,Wt):null,io=kt<=Vt?new fn(kt,Vt):null;return[qe,qt,$t,io]},V.prototype.acceptVersionId=function(o){this._validModelVersionId=o,this.lines.length===1&&!this.lines[0].isVisible()&&this.setHiddenAreas([])},V.prototype.getViewLineCount=function(){return this.prefixSumComputer.getTotalValue()},V.prototype._toValidViewLineNumber=function(o){if(o<1)return 1;var t=this.getViewLineCount();return o>t?t:o|0},V.prototype.getActiveIndentGuide=function(o,t,i){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);var g=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),b=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),K=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),Ie=this.model.getActiveIndentGuide(g.lineNumber,b.lineNumber,K.lineNumber),Le=this.convertModelPositionToViewPosition(Ie.startLineNumber,1),qe=this.convertModelPositionToViewPosition(Ie.endLineNumber,this.model.getLineMaxColumn(Ie.endLineNumber));return{startLineNumber:Le.lineNumber,endLineNumber:qe.lineNumber,indent:Ie.indent}},V.prototype.getViewLinesIndentGuides=function(o,t){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t);for(var i=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),g=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),b=[],K=[],Ie=[],Le=i.lineNumber-1,qe=g.lineNumber-1,ct=null,wt=Le;wt<=qe;wt++){var et=this.lines[wt];if(et.isVisible()){var Wt=et.getViewLineNumberOfModelPosition(0,wt===Le?i.column:1),kt=et.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(wt+1)),Vt=kt-Wt+1,qt=0;Vt>1&&et.getViewLineMinColumn(this.model,wt+1,kt)===1&&(qt=Wt===0?1:2),K.push(Vt),Ie.push(qt),ct===null&&(ct=new oe.a(wt+1,0))}else ct!==null&&(b=b.concat(this.model.getLinesIndentGuides(ct.lineNumber,wt)),ct=null)}ct!==null&&(b=b.concat(this.model.getLinesIndentGuides(ct.lineNumber,g.lineNumber)),ct=null);for(var $t=t-o+1,io=new Array($t),yo=0,mo=0,bo=b.length;mo<bo;mo++){var go=b[mo],Vt=Math.min($t-yo,K[mo]),qt=Ie[mo],Lo=void 0;qt===2?Lo=0:qt===1?Lo=1:Lo=Vt;for(var No=0;No<Vt;No++)No===Lo&&(go=0),io[yo++]=go}return io},V.prototype.getViewLineContent=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,g=t.remainder;return this.lines[i].getViewLineContent(this.model,i+1,g)},V.prototype.getViewLineLength=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,g=t.remainder;return this.lines[i].getViewLineLength(this.model,i+1,g)},V.prototype.getViewLineMinColumn=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,g=t.remainder;return this.lines[i].getViewLineMinColumn(this.model,i+1,g)},V.prototype.getViewLineMaxColumn=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,g=t.remainder;return this.lines[i].getViewLineMaxColumn(this.model,i+1,g)},V.prototype.getViewLineData=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,g=t.remainder;return this.lines[i].getViewLineData(this.model,i+1,g)},V.prototype.getViewLinesData=function(o,t,i){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t);for(var g=this.prefixSumComputer.getIndexOf(o-1),b=o,K=g.index,Ie=g.remainder,Le=[],qe=K,ct=this.model.getLineCount();qe<ct;qe++){var wt=this.lines[qe];if(!wt.isVisible())continue;var et=qe===K?Ie:0,Wt=wt.getViewLineCount()-et,kt=!1;b+Wt>t&&(kt=!0,Wt=t-b+1);var Vt=et+Wt;if(wt.getViewLinesData(this.model,qe+1,et,Vt,b-o,i,Le),b+=Wt,kt)break}return Le},V.prototype.validateViewPosition=function(o,t,i){o=this._toValidViewLineNumber(o);var g=this.prefixSumComputer.getIndexOf(o-1),b=g.index,K=g.remainder,Ie=this.lines[b],Le=Ie.getViewLineMinColumn(this.model,b+1,K),qe=Ie.getViewLineMaxColumn(this.model,b+1,K);t<Le&&(t=Le),t>qe&&(t=qe);var ct=Ie.getModelColumnOfViewPosition(K,t),wt=this.model.validatePosition(new oe.a(b+1,ct));return wt.equals(i)?new oe.a(o,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},V.prototype.validateViewRange=function(o,t){var i=this.validateViewPosition(o.startLineNumber,o.startColumn,t.getStartPosition()),g=this.validateViewPosition(o.endLineNumber,o.endColumn,t.getEndPosition());return new be.a(i.lineNumber,i.column,g.lineNumber,g.column)},V.prototype.convertViewPositionToModelPosition=function(o,t){o=this._toValidViewLineNumber(o);var i=this.prefixSumComputer.getIndexOf(o-1),g=i.index,b=i.remainder,K=this.lines[g].getModelColumnOfViewPosition(b,t);return this.model.validatePosition(new oe.a(g+1,K))},V.prototype.convertViewRangeToModelRange=function(o){var t=this.convertViewPositionToModelPosition(o.startLineNumber,o.startColumn),i=this.convertViewPositionToModelPosition(o.endLineNumber,o.endColumn);return new be.a(t.lineNumber,t.column,i.lineNumber,i.column)},V.prototype.convertModelPositionToViewPosition=function(o,t){for(var i=this.model.validatePosition(new oe.a(o,t)),g=i.lineNumber,b=i.column,K=g-1,Ie=!1;K>0&&!this.lines[K].isVisible();)K--,Ie=!0;if(K===0&&!this.lines[K].isVisible())return new oe.a(1,1);var Le=1+(K===0?0:this.prefixSumComputer.getAccumulatedValue(K-1)),qe;return Ie?qe=this.lines[K].getViewPositionOfModelPosition(Le,this.model.getLineMaxColumn(K+1)):qe=this.lines[g-1].getViewPositionOfModelPosition(Le,b),qe},V.prototype.convertModelRangeToViewRange=function(o){var t=this.convertModelPositionToViewPosition(o.startLineNumber,o.startColumn),i=this.convertModelPositionToViewPosition(o.endLineNumber,o.endColumn);return o.startLineNumber===o.endLineNumber&&t.lineNumber!==i.lineNumber&&i.column===this.getViewLineMinColumn(i.lineNumber)?new be.a(t.lineNumber,t.column,i.lineNumber-1,this.getViewLineMaxColumn(i.lineNumber-1)):new be.a(t.lineNumber,t.column,i.lineNumber,i.column)},V.prototype._getViewLineNumberForModelPosition=function(o,t){var i=o-1;if(this.lines[i].isVisible()){var g=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(g,t)}for(;i>0&&!this.lines[i].isVisible();)i--;if(i===0&&!this.lines[i].isVisible())return 1;var b=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(b,this.model.getLineMaxColumn(i+1))},V.prototype.getAllOverviewRulerDecorations=function(o,t,i){for(var g=this.model.getOverviewRulerDecorations(o,t),b=new ni,K=0,Ie=g;K<Ie.length;K++){var Le=Ie[K],qe=Le.options.overviewRuler,ct=qe?qe.position:0;if(ct===0)continue;var wt=qe.getColor(i),et=this._getViewLineNumberForModelPosition(Le.range.startLineNumber,Le.range.startColumn),Wt=this._getViewLineNumberForModelPosition(Le.range.endLineNumber,Le.range.endColumn);b.accept(wt,et,Wt,ct)}return b.result},V.prototype.getDecorationsInRange=function(o,t,i){var g=this.convertViewPositionToModelPosition(o.startLineNumber,o.startColumn),b=this.convertViewPositionToModelPosition(o.endLineNumber,o.endColumn);if(b.lineNumber-g.lineNumber<=o.endLineNumber-o.startLineNumber)return this.model.getDecorationsInRange(new be.a(g.lineNumber,1,b.lineNumber,b.column),t,i);for(var K=[],Ie=g.lineNumber-1,Le=b.lineNumber-1,qe=null,ct=Ie;ct<=Le;ct++){var wt=this.lines[ct];if(wt.isVisible())qe===null&&(qe=new oe.a(ct+1,ct===Ie?g.column:1));else if(qe!==null){var et=this.model.getLineMaxColumn(ct);K=K.concat(this.model.getDecorationsInRange(new be.a(qe.lineNumber,qe.column,ct,et),t,i)),qe=null}}qe!==null&&(K=K.concat(this.model.getDecorationsInRange(new be.a(qe.lineNumber,qe.column,b.lineNumber,b.column),t,i)),qe=null),K.sort(function(mo,bo){var go=be.a.compareRangesUsingStarts(mo.range,bo.range);return go===0?mo.id<bo.id?-1:mo.id>bo.id?1:0:go});for(var Wt=[],kt=0,Vt=null,qt=0,$t=K;qt<$t.length;qt++){var io=$t[qt],yo=io.id;if(Vt===yo)continue;Vt=yo,Wt[kt++]=io}return Wt},V}(),nr=function(){function V(){}return V.prototype.isVisible=function(){return!0},V.prototype.setVisible=function(o){return o?this:ir.INSTANCE},V.prototype.getLineBreakData=function(){return null},V.prototype.getViewLineCount=function(){return 1},V.prototype.getViewLineContent=function(o,t,i){return o.getLineContent(t)},V.prototype.getViewLineLength=function(o,t,i){return o.getLineLength(t)},V.prototype.getViewLineMinColumn=function(o,t,i){return o.getLineMinColumn(t)},V.prototype.getViewLineMaxColumn=function(o,t,i){return o.getLineMaxColumn(t)},V.prototype.getViewLineData=function(o,t,i){var g=o.getLineTokens(t),b=g.getLineContent();return new zn.c(b,!1,1,b.length+1,0,g.inflate())},V.prototype.getViewLinesData=function(o,t,i,g,b,K,Ie){if(!K[b]){Ie[b]=null;return}Ie[b]=this.getViewLineData(o,t,0)},V.prototype.getModelColumnOfViewPosition=function(o,t){return t},V.prototype.getViewPositionOfModelPosition=function(o,t){return new oe.a(o,t)},V.prototype.getViewLineNumberOfModelPosition=function(o,t){return o},V.INSTANCE=new V,V}(),ir=function(){function V(){}return V.prototype.isVisible=function(){return!1},V.prototype.setVisible=function(o){return o?nr.INSTANCE:this},V.prototype.getLineBreakData=function(){return null},V.prototype.getViewLineCount=function(){return 0},V.prototype.getViewLineContent=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineLength=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineMinColumn=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineMaxColumn=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineData=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLinesData=function(o,t,i,g,b,K,Ie){throw new Error("Not supported")},V.prototype.getModelColumnOfViewPosition=function(o,t){throw new Error("Not supported")},V.prototype.getViewPositionOfModelPosition=function(o,t){throw new Error("Not supported")},V.prototype.getViewLineNumberOfModelPosition=function(o,t){throw new Error("Not supported")},V.INSTANCE=new V,V}(),Yn=function(){function V(o,t){this._lineBreakData=o,this._isVisible=t}return V.prototype.isVisible=function(){return this._isVisible},V.prototype.setVisible=function(o){return this._isVisible=o,this},V.prototype.getLineBreakData=function(){return this._lineBreakData},V.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},V.prototype.getInputStartOffsetOfOutputLineIndex=function(o){return qn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,o,0)},V.prototype.getInputEndOffsetOfOutputLineIndex=function(o,t,i){return i+1===this._lineBreakData.breakOffsets.length?o.getLineMaxColumn(t)-1:qn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i+1,0)},V.prototype.getViewLineContent=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var g=this.getInputStartOffsetOfOutputLineIndex(i),b=this.getInputEndOffsetOfOutputLineIndex(o,t,i),K=o.getValueInRange({startLineNumber:t,startColumn:g+1,endLineNumber:t,endColumn:b+1});return i>0&&(K=rr(this._lineBreakData.wrappedTextIndentLength)+K),K},V.prototype.getViewLineLength=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var g=this.getInputStartOffsetOfOutputLineIndex(i),b=this.getInputEndOffsetOfOutputLineIndex(o,t,i),K=b-g;return i>0&&(K=this._lineBreakData.wrappedTextIndentLength+K),K},V.prototype.getViewLineMinColumn=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");return i>0?this._lineBreakData.wrappedTextIndentLength+1:1},V.prototype.getViewLineMaxColumn=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(o,t,i).length+1},V.prototype.getViewLineData=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var g=this.getInputStartOffsetOfOutputLineIndex(i),b=this.getInputEndOffsetOfOutputLineIndex(o,t,i),K=o.getValueInRange({startLineNumber:t,startColumn:g+1,endLineNumber:t,endColumn:b+1});i>0&&(K=rr(this._lineBreakData.wrappedTextIndentLength)+K);var Ie=i>0?this._lineBreakData.wrappedTextIndentLength+1:1,Le=K.length+1,qe=i+1<this.getViewLineCount(),ct=0;i>0&&(ct=this._lineBreakData.wrappedTextIndentLength);var wt=o.getLineTokens(t),et=i===0?0:this._lineBreakData.breakOffsetsVisibleColumn[i-1];return new zn.c(K,qe,Ie,Le,et,wt.sliceAndInflate(g,b,ct))},V.prototype.getViewLinesData=function(o,t,i,g,b,K,Ie){if(!this._isVisible)throw new Error("Not supported");for(var Le=i;Le<g;Le++){var qe=b+Le-i;if(!K[qe]){Ie[qe]=null;continue}Ie[qe]=this.getViewLineData(o,t,Le)}},V.prototype.getModelColumnOfViewPosition=function(o,t){if(!this._isVisible)throw new Error("Not supported");var i=t-1;return o>0&&(i<this._lineBreakData.wrappedTextIndentLength?i=0:i-=this._lineBreakData.wrappedTextIndentLength),qn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,o,i)+1},V.prototype.getViewPositionOfModelPosition=function(o,t){if(!this._isVisible)throw new Error("Not supported");var i=qn.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1),g=i.outputLineIndex,b=i.outputOffset+1;return g>0&&(b+=this._lineBreakData.wrappedTextIndentLength),new oe.a(o+g,b)},V.prototype.getViewLineNumberOfModelPosition=function(o,t){if(!this._isVisible)throw new Error("Not supported");var i=qn.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1);return o+i.outputLineIndex},V}(),An=[""];function rr(V){if(V>=An.length)for(var o=1;o<=V;o++)An[o]=Ms(o);return An[V]}function Ms(V){return new Array(V+1).join(" ")}function Ni(V,o){return V===null?o?nr.INSTANCE:ir.INSTANCE:new Yn(V,o)}var Ds=function(){function V(o){this._lines=o}return V.prototype._validPosition=function(o){return this._lines.model.validatePosition(o)},V.prototype._validRange=function(o){return this._lines.model.validateRange(o)},V.prototype.convertViewPositionToModelPosition=function(o){return this._validPosition(o)},V.prototype.convertViewRangeToModelRange=function(o){return this._validRange(o)},V.prototype.validateViewPosition=function(o,t){return this._validPosition(t)},V.prototype.validateViewRange=function(o,t){return this._validRange(t)},V.prototype.convertModelPositionToViewPosition=function(o){return this._validPosition(o)},V.prototype.convertModelRangeToViewRange=function(o){return this._validRange(o)},V.prototype.modelPositionIsVisible=function(o){var t=this._lines.model.getLineCount();return!(o.lineNumber<1||o.lineNumber>t)},V}(),fi=function(){function V(o){this.model=o}return V.prototype.dispose=function(){},V.prototype.createCoordinatesConverter=function(){return new Ds(this)},V.prototype.getHiddenAreas=function(){return[]},V.prototype.setHiddenAreas=function(o){return!1},V.prototype.setTabSize=function(o){return!1},V.prototype.setWrappingSettings=function(o,t,i,g){return!1},V.prototype.createLineBreaksComputer=function(){var o=[];return{addRequest:function(i,g){o.push(null)},finalize:function(){return o}}},V.prototype.onModelFlushed=function(){},V.prototype.onModelLinesDeleted=function(o,t,i){return new fn(t,i)},V.prototype.onModelLinesInserted=function(o,t,i,g){return new Vo(t,i)},V.prototype.onModelLineChanged=function(o,t,i){return[!1,new Qo(t,t),null,null]},V.prototype.acceptVersionId=function(o){},V.prototype.getViewLineCount=function(){return this.model.getLineCount()},V.prototype.getActiveIndentGuide=function(o,t,i){return{startLineNumber:o,endLineNumber:o,indent:0}},V.prototype.getViewLinesIndentGuides=function(o,t){for(var i=t-o+1,g=new Array(i),b=0;b<i;b++)g[b]=0;return g},V.prototype.getViewLineContent=function(o){return this.model.getLineContent(o)},V.prototype.getViewLineLength=function(o){return this.model.getLineLength(o)},V.prototype.getViewLineMinColumn=function(o){return this.model.getLineMinColumn(o)},V.prototype.getViewLineMaxColumn=function(o){return this.model.getLineMaxColumn(o)},V.prototype.getViewLineData=function(o){var t=this.model.getLineTokens(o),i=t.getLineContent();return new zn.c(i,!1,1,i.length+1,0,t.inflate())},V.prototype.getViewLinesData=function(o,t,i){var g=this.model.getLineCount();o=Math.min(Math.max(1,o),g),t=Math.min(Math.max(1,t),g);for(var b=[],K=o;K<=t;K++){var Ie=K-o;i[Ie]||(b[Ie]=null),b[Ie]=this.getViewLineData(K)}return b},V.prototype.getAllOverviewRulerDecorations=function(o,t,i){for(var g=this.model.getOverviewRulerDecorations(o,t),b=new ni,K=0,Ie=g;K<Ie.length;K++){var Le=Ie[K],qe=Le.options.overviewRuler,ct=qe?qe.position:0;if(ct===0)continue;var wt=qe.getColor(i),et=Le.range.startLineNumber,Wt=Le.range.endLineNumber;b.accept(wt,et,Wt,ct)}return b.result},V.prototype.getDecorationsInRange=function(o,t,i){return this.model.getDecorationsInRange(o,t,i)},V}(),ni=function(){function V(){this.result=Object.create(null)}return V.prototype.accept=function(o,t,i,g){var b=this.result[o];if(b){var K=b[b.length-3],Ie=b[b.length-1];if(K===g&&Ie+1>=t){i>Ie&&(b[b.length-1]=i);return}b.push(g,t,i)}else this.result[o]=[g,t,i]},V}(),Os=function(){function V(o,t,i,g,b){this.editorId=o,this.model=t,this.configuration=i,this._linesCollection=g,this._coordinatesConverter=b,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(o){var t=o.id,i=this._decorationsCache[t];if(!i){var g=o.range,b=o.options,K=void 0;if(b.isWholeLine){var Ie=this._coordinatesConverter.convertModelPositionToViewPosition(new oe.a(g.startLineNumber,1)),Le=this._coordinatesConverter.convertModelPositionToViewPosition(new oe.a(g.endLineNumber,this.model.getLineMaxColumn(g.endLineNumber)));K=new be.a(Ie.lineNumber,Ie.column,Le.lineNumber,Le.column)}else K=this._coordinatesConverter.convertModelRangeToViewRange(g);i=new zn.e(K,b),this._decorationsCache[t]=i}return i},V.prototype.getDecorationsViewportData=function(o){var t=this._cachedModelDecorationsResolver!==null;return t=t&&o.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(o),this._cachedModelDecorationsResolverViewRange=o),this._cachedModelDecorationsResolver},V.prototype._getDecorationsViewportData=function(o){for(var t=this._linesCollection.getDecorationsInRange(o,this.editorId,Object(he.j)(this.configuration.options)),i=o.startLineNumber,g=o.endLineNumber,b=[],K=0,Ie=[],Le=i;Le<=g;Le++)Ie[Le-i]=[];for(var qe=0,ct=t.length;qe<ct;qe++){var wt=t[qe],et=wt.options,Wt=this._getOrCreateViewModelDecoration(wt),kt=Wt.range;if(b[K++]=Wt,et.inlineClassName)for(var Vt=new zn.a(kt,et.inlineClassName,et.inlineClassNameAffectsLetterSpacing?3:0),qt=Math.max(i,kt.startLineNumber),$t=Math.min(g,kt.endLineNumber),Le=qt;Le<=$t;Le++)Ie[Le-i].push(Vt);if(et.beforeContentClassName&&(i<=kt.startLineNumber&&kt.startLineNumber<=g)){var Vt=new zn.a(new be.a(kt.startLineNumber,kt.startColumn,kt.startLineNumber,kt.startColumn),et.beforeContentClassName,1);Ie[kt.startLineNumber-i].push(Vt)}if(et.afterContentClassName&&(i<=kt.endLineNumber&&kt.endLineNumber<=g)){var Vt=new zn.a(new be.a(kt.endLineNumber,kt.endColumn,kt.endLineNumber,kt.endColumn),et.afterContentClassName,2);Ie[kt.endLineNumber-i].push(Vt)}}return{decorations:b,inlineDecorations:Ie}},V}(),Ts=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Si=!0,Kn=function(V){Ts(o,V);function o(t,i,g,b,K,Ie){var Le=V.call(this)||this;if(Le.editorId=t,Le.configuration=i,Le.model=g,Le._tokenizeViewportSoon=Le._register(new p.d(function(){return Le.tokenizeViewport()},50)),Le.hasFocus=!1,Le.viewportStartLine=-1,Le.viewportStartLineTrackedRange=null,Le.viewportStartLineDelta=0,Si&&Le.model.isTooLargeForTokenization())Le.lines=new fi(Le.model);else{var qe=Le.configuration.options,ct=qe.get(34),wt=qe.get(103),et=qe.get(108),Wt=qe.get(102);Le.lines=new Nr(Le.model,b,K,ct,Le.model.getOptions().tabSize,wt,et.wrappingColumn,Wt)}return Le.coordinatesConverter=Le.lines.createCoordinatesConverter(),Le.viewLayout=Le._register(new _s(Le.configuration,Le.getLineCount(),Ie)),Le._register(Le.viewLayout.onDidScroll(function(kt){kt.scrollTopChanged&&Le._tokenizeViewportSoon.schedule();try{var Vt=Le._beginEmit();Vt.emit(new yn(kt))}finally{Le._endEmit()}})),Le._register(Le.viewLayout.onDidContentSizeChange(function(kt){try{var Vt=Le._beginEmit();Vt.emit(new Ao(kt))}finally{Le._endEmit()}})),Le.decorations=new Os(Le.editorId,Le.model,Le.configuration,Le.lines,Le.coordinatesConverter),Le._registerModelEvents(),Le._register(Le.configuration.onDidChange(function(kt){try{var Vt=Le._beginEmit();Le._onConfigurationChanged(Vt,kt)}finally{Le._endEmit()}})),Le._register(li.getInstance().onDidChange(function(){try{var kt=Le._beginEmit();kt.emit(new pn)}finally{Le._endEmit()}})),Le}return o.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)},o.prototype.tokenizeViewport=function(){var t=this.viewLayout.getLinesViewportData(),i=this.coordinatesConverter.convertViewPositionToModelPosition(new oe.a(t.startLineNumber,1)),g=this.coordinatesConverter.convertViewPositionToModelPosition(new oe.a(t.endLineNumber,1));this.model.tokenizeViewport(i.lineNumber,g.lineNumber)},o.prototype.setHasFocus=function(t){this.hasFocus=t},o.prototype._onConfigurationChanged=function(t,i){var g=null;if(this.viewportStartLine!==-1){var b=new oe.a(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));g=this.coordinatesConverter.convertViewPositionToModelPosition(b)}var K=!1,Ie=this.configuration.options,Le=Ie.get(34),qe=Ie.get(103),ct=Ie.get(108),wt=Ie.get(102);if(this.lines.setWrappingSettings(Le,qe,ct.wrappingColumn,wt)&&(t.emit(new Wo),t.emit(new Mo),t.emit(new Co),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(K=!0)),i.hasChanged(68)&&(this.decorations.reset(),t.emit(new Co)),t.emit(new Oo(i)),this.viewLayout.onConfigurationChanged(i),K&&g){var et=this.coordinatesConverter.convertModelPositionToViewPosition(g),Wt=this.viewLayout.getVerticalOffsetForLineNumber(et.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:Wt+this.viewportStartLineDelta})}},o.prototype._registerModelEvents=function(){var t=this;this._register(this.model.onDidChangeRawContentFast(function(i){try{for(var g=t._beginEmit(),b=!1,K=!1,Ie=i.changes,Le=i.versionId,qe=t.lines.createLineBreaksComputer(),ct=0,wt=Ie;ct<wt.length;ct++){var et=wt[ct];switch(et.changeType){case 4:{for(var Wt=0,kt=et.detail;Wt<kt.length;Wt++){var Vt=kt[Wt];qe.addRequest(Vt,null)}break}case 2:{qe.addRequest(et.detail,null);break}}}for(var qt=qe.finalize(),$t=0,io=0,yo=Ie;io<yo.length;io++){var et=yo[io];switch(et.changeType){case 1:{t.lines.onModelFlushed(),g.emit(new Wo),t.decorations.reset(),t.viewLayout.onFlushed(t.getLineCount()),b=!0;break}case 3:{var mo=t.lines.onModelLinesDeleted(Le,et.fromLineNumber,et.toLineNumber);mo!==null&&(g.emit(mo),t.viewLayout.onLinesDeleted(mo.fromLineNumber,mo.toLineNumber)),b=!0;break}case 4:{var bo=qt.slice($t,$t+et.detail.length);$t+=et.detail.length;var go=t.lines.onModelLinesInserted(Le,et.fromLineNumber,et.toLineNumber,bo);go!==null&&(g.emit(go),t.viewLayout.onLinesInserted(go.fromLineNumber,go.toLineNumber)),b=!0;break}case 2:{var Lo=qt[$t];$t++;var No=t.lines.onModelLineChanged(Le,et.lineNumber,Lo),Fo=No[0],Xo=No[1],go=No[2],mo=No[3];K=Fo,Xo&&g.emit(Xo),go&&(g.emit(go),t.viewLayout.onLinesInserted(go.fromLineNumber,go.toLineNumber)),mo&&(g.emit(mo),t.viewLayout.onLinesDeleted(mo.fromLineNumber,mo.toLineNumber));break}case 5:break}}t.lines.acceptVersionId(Le),t.viewLayout.onHeightMaybeChanged(),!b&&K&&(g.emit(new Mo),g.emit(new Co),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 Po=t.model._getTrackedRange(t.viewportStartLineTrackedRange);if(Po){var nn=t.coordinatesConverter.convertModelPositionToViewPosition(Po.getStartPosition()),vn=t.viewLayout.getVerticalOffsetForLineNumber(nn.lineNumber);t.viewLayout.setScrollPositionNow({scrollTop:vn+t.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(i){for(var g=[],b=0,K=i.ranges.length;b<K;b++){var Ie=i.ranges[b],Le=t.coordinatesConverter.convertModelPositionToViewPosition(new oe.a(Ie.fromLineNumber,1)).lineNumber,qe=t.coordinatesConverter.convertModelPositionToViewPosition(new oe.a(Ie.toLineNumber,t.model.getLineMaxColumn(Ie.toLineNumber))).lineNumber;g[b]={fromLineNumber:Le,toLineNumber:qe}}try{var ct=t._beginEmit();ct.emit(new rn(g))}finally{t._endEmit()}i.tokenizationSupportChanged&&t._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(function(i){try{var g=t._beginEmit();g.emit(new Bo)}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 g=t._beginEmit();g.emit(new Wo),g.emit(new Mo),g.emit(new Co)}finally{t._endEmit()}}})),this._register(this.model.onDidChangeDecorations(function(i){t.decorations.onModelDecorationsChanged();try{var g=t._beginEmit();g.emit(new Co)}finally{t._endEmit()}}))},o.prototype.setHiddenAreas=function(t){try{var i=this._beginEmit(),g=this.lines.setHiddenAreas(t);g&&(i.emit(new Wo),i.emit(new Mo),i.emit(new Co),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},o.prototype.getVisibleRanges=function(){var t=this.getCompletelyVisibleViewRange(),i=this.coordinatesConverter.convertViewRangeToModelRange(t),g=this.lines.getHiddenAreas();if(g.length===0)return[i];for(var b=[],K=0,Ie=i.startLineNumber,Le=i.startColumn,qe=i.endLineNumber,ct=i.endColumn,wt=0,et=g.length;wt<et;wt++){var Wt=g[wt].startLineNumber,kt=g[wt].endLineNumber;if(kt<Ie)continue;if(Wt>qe)continue;Ie<Wt&&(b[K++]=new be.a(Ie,Le,Wt-1,this.model.getLineMaxColumn(Wt-1))),Ie=kt+1,Le=1}return(Ie<qe||Ie===qe&&Le<ct)&&(b[K++]=new be.a(Ie,Le,qe,ct)),b},o.prototype.getCompletelyVisibleViewRange=function(){var t=this.viewLayout.getLinesViewportData(),i=t.completelyVisibleStartLineNumber,g=t.completelyVisibleEndLineNumber;return new be.a(i,this.getLineMinColumn(i),g,this.getLineMaxColumn(g))},o.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(t){var i=this.viewLayout.getLinesViewportDataAtScrollTop(t),g=i.completelyVisibleStartLineNumber,b=i.completelyVisibleEndLineNumber;return new be.a(g,this.getLineMinColumn(g),b,this.getLineMaxColumn(b))},o.prototype.saveState=function(){var t=this.viewLayout.saveState(),i=t.scrollTop,g=this.viewLayout.getLineNumberAtVerticalOffset(i),b=this.coordinatesConverter.convertViewPositionToModelPosition(new oe.a(g,this.getLineMinColumn(g))),K=this.viewLayout.getVerticalOffsetForLineNumber(g)-i;return{scrollLeft:t.scrollLeft,firstPosition:b,firstPositionDeltaTop:K}},o.prototype.reduceRestoreState=function(t){if(typeof t.firstPosition=="undefined")return this._reduceRestoreStateCompatibility(t);var i=this.model.validatePosition(t.firstPosition),g=this.coordinatesConverter.convertModelPositionToViewPosition(i),b=this.viewLayout.getVerticalOffsetForLineNumber(g.lineNumber)-t.firstPositionDeltaTop;return{scrollLeft:t.scrollLeft,scrollTop:b}},o.prototype._reduceRestoreStateCompatibility=function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTopWithoutViewZones}},o.prototype.getTabSize=function(){return this.model.getOptions().tabSize},o.prototype.getOptions=function(){return this.model.getOptions()},o.prototype.getLineCount=function(){return this.lines.getViewLineCount()},o.prototype.setViewport=function(t,i,g){this.viewportStartLine=t;var b=this.coordinatesConverter.convertViewPositionToModelPosition(new oe.a(t,this.getLineMinColumn(t)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new be.a(b.lineNumber,b.column,b.lineNumber,b.column),1);var K=this.viewLayout.getVerticalOffsetForLineNumber(t),Ie=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=Ie-K},o.prototype.getActiveIndentGuide=function(t,i,g){return this.lines.getActiveIndentGuide(t,i,g)},o.prototype.getLinesIndentGuides=function(t,i){return this.lines.getViewLinesIndentGuides(t,i)},o.prototype.getLineContent=function(t){return this.lines.getViewLineContent(t)},o.prototype.getLineLength=function(t){return this.lines.getViewLineLength(t)},o.prototype.getLineMinColumn=function(t){return this.lines.getViewLineMinColumn(t)},o.prototype.getLineMaxColumn=function(t){return this.lines.getViewLineMaxColumn(t)},o.prototype.getLineFirstNonWhitespaceColumn=function(t){var i=fe.q(this.getLineContent(t));return i===-1?0:i+1},o.prototype.getLineLastNonWhitespaceColumn=function(t){var i=fe.D(this.getLineContent(t));return i===-1?0:i+2},o.prototype.getDecorationsInViewport=function(t){return this.decorations.getDecorationsViewportData(t).decorations},o.prototype.getViewLineRenderingData=function(t,i){var g=this.model.mightContainRTL(),b=this.model.mightContainNonBasicASCII(),K=this.getTabSize(),Ie=this.lines.getViewLineData(i),Le=this.decorations.getDecorationsViewportData(t).inlineDecorations,qe=Le[i-t.startLineNumber];return new zn.d(Ie.minColumn,Ie.maxColumn,Ie.content,Ie.continuesWithWrappedLine,g,b,Ie.tokens,qe,K,Ie.startVisibleColumn)},o.prototype.getViewLineData=function(t){return this.lines.getViewLineData(t)},o.prototype.getMinimapLinesRenderingData=function(t,i,g){var b=this.lines.getViewLinesData(t,i,g);return new zn.b(this.getTabSize(),b)},o.prototype.getAllOverviewRulerDecorations=function(t){return this.lines.getAllOverviewRulerDecorations(this.editorId,Object(he.j)(this.configuration.options),t)},o.prototype.invalidateOverviewRulerColorCache=function(){for(var t=this.model.getOverviewRulerDecorations(),i=0,g=t;i<g.length;i++){var b=g[i],K=b.options.overviewRuler;K&&K.invalidateCachedColor()}},o.prototype.invalidateMinimapColorCache=function(){for(var t=this.model.getAllDecorations(),i=0,g=t;i<g.length;i++){var b=g[i],K=b.options.minimap;K&&K.invalidateCachedColor()}},o.prototype.getValueInRange=function(t,i){var g=this.coordinatesConverter.convertViewRangeToModelRange(t);return this.model.getValueInRange(g,i)},o.prototype.getModelLineMaxColumn=function(t){return this.model.getLineMaxColumn(t)},o.prototype.validateModelPosition=function(t){return this.model.validatePosition(t)},o.prototype.validateModelRange=function(t){return this.model.validateRange(t)},o.prototype.deduceModelPositionRelativeToViewPosition=function(t,i,g){var b=this.coordinatesConverter.convertViewPositionToModelPosition(t);this.model.getEOL().length===2&&(i<0?i-=g:i+=g);var K=this.model.getOffsetAt(b),Ie=K+i;return this.model.getPositionAt(Ie)},o.prototype.getEOL=function(){return this.model.getEOL()},o.prototype.getPlainTextToCopy=function(t,i,g){var b=g?`\r
`:this.model.getEOL();t=t.slice(0),t.sort(be.a.compareRangesUsingStarts);for(var K=!1,Ie=!1,Le=0,qe=t;Le<qe.length;Le++){var ct=qe[Le];ct.isEmpty()?K=!0:Ie=!0}if(!Ie){if(!i)return"";for(var wt=t.map(function(Lo){return Lo.startLineNumber}),et="",Wt=0;Wt<wt.length;Wt++){if(Wt>0&&wt[Wt-1]===wt[Wt])continue;et+=this.model.getLineContent(wt[Wt])+b}return et}if(K&&i){for(var kt=[],Vt=0,qt=0,$t=t;qt<$t.length;qt++){var io=$t[qt],yo=io.startLineNumber;io.isEmpty()?yo!==Vt&&kt.push(this.model.getLineContent(yo)):kt.push(this.model.getValueInRange(io,g?2:0)),Vt=yo}return kt.length===1?kt[0]:kt}for(var mo=[],bo=0,go=t;bo<go.length;bo++){var io=go[bo];io.isEmpty()||mo.push(this.model.getValueInRange(io,g?2:0))}return mo.length===1?mo[0]:mo},o.prototype.getRichTextToCopy=function(t,i){var g=this.model.getLanguageIdentifier();if(g.id===1)return null;if(t.length!==1)return null;var b=t[0];if(b.isEmpty()){if(!i)return null;var K=b.startLineNumber;b=new be.a(K,this.model.getLineMinColumn(K),K,this.model.getLineMaxColumn(K))}var Ie=this.configuration.options.get(34),Le=this._getColorMap(),qe=Ie.fontFamily===he.b.fontFamily?Ie.fontFamily:"'"+Ie.fontFamily+"', "+he.b.fontFamily;return{mode:g.language,html:'<div style="'+("color: "+Le[1]+";")+("background-color: "+Le[2]+";")+("font-family: "+qe+";")+("font-weight: "+Ie.fontWeight+";")+("font-size: "+Ie.fontSize+"px;")+("line-height: "+Ie.lineHeight+"px;")+'white-space: pre;">'+this._getHTMLToCopy(b,Le)+"</div>"}},o.prototype._getHTMLToCopy=function(t,i){for(var g=t.startLineNumber,b=t.startColumn,K=t.endLineNumber,Ie=t.endColumn,Le=this.getTabSize(),qe="",ct=g;ct<=K;ct++){var wt=this.model.getLineTokens(ct),et=wt.getLineContent(),Wt=ct===g?b-1:0,kt=ct===K?Ie-1:et.length;et===""?qe+="<br>":qe+=Object(Ai.a)(et,wt.inflate(),i,Wt,kt,Le,_.h)}return qe},o.prototype._getColorMap=function(){var t=$o.B.getColorMap(),i=["#000000"];if(t)for(var g=1,b=t.length;g<b;g++)i[g]=Un.a.Format.CSS.formatHex(t[g]);return i},o}(Ho),ii=e("nnTU"),mi=e("T8No"),xs=e("Cg/j"),sr=e("8HsV"),ar=e("sM1p"),an=e("R3nR"),As=e("746U"),Rs=e("MXAL"),jr=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Is=function(V){jr(o,V);function o(t,i){for(var g=V.call(this,0)||this,b=0;b<t.length;b++)g.set(t.charCodeAt(b),1);for(var b=0;b<i.length;b++)g.set(i.charCodeAt(b),2);return g}return o.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},o}(Rs.a),ji=[],lr=[],Ns=function(){function V(o,t){this.classifier=new Is(o,t)}return V.create=function(o){return new V(o.get(99),o.get(98))},V.prototype.createLineBreaksComputer=function(o,t,i,g){var b=this;t=t|0,i=+i;var K=[],Ie=[];return{addRequest:function(qe,ct){K.push(qe),Ie.push(ct)},finalize:function(){for(var qe=o.typicalFullwidthCharacterWidth/o.typicalHalfwidthCharacterWidth,ct=[],wt=0,et=K.length;wt<et;wt++){var Wt=Ie[wt];Wt?ct[wt]=js(b.classifier,Wt,K[wt],t,i,qe,g):ct[wt]=Ps(b.classifier,K[wt],t,i,qe,g)}return ji.length=0,lr.length=0,ct}}},V}();function js(V,o,t,i,g,b,K){if(g===-1)return null;var Ie=t.length;if(Ie<=1)return null;var Le=o.breakOffsets,qe=o.breakOffsetsVisibleColumn,ct=ki(t,i,g,b,K),wt=g-ct,et=ji,Wt=lr,kt=0,Vt=g,qt=Le.length,$t=0;if($t>=0)for(var io=Math.abs(qe[$t]-Vt);$t+1<qt;){var yo=Math.abs(qe[$t+1]-Vt);if(yo>=io)break;io=yo,$t++}for(;$t<qt;){var mo=$t<0?0:Le[$t],bo=$t<0?0:qe[$t],go=0,Lo=0,No=0,Fo=0;if(bo<=Vt){for(var Xo=bo,Po=t.charCodeAt(mo-1),nn=V.get(Po),vn=!0,cn=mo;cn<Ie;cn++){var Nn=cn,hn=t.charCodeAt(cn),Wn=void 0,Fn=void 0;if(fe.z(hn)?(cn++,Wn=0,Fn=2):(Wn=V.get(hn),Fn=Pi(hn,Xo,i,b)),cr(Po,nn,hn,Wn)&&(go=Nn,Lo=Xo),Xo+=Fn,Xo>Vt){No=Nn,Fo=Xo-Fn,Xo-Lo>wt&&(go=0),vn=!1;break}Po=hn,nn=Wn}if(vn){kt>0&&(et[kt]=Le[Le.length-1],Wt[kt]=qe[Le.length-1],kt++);break}}if(go===0){for(var Xo=bo,hn=t.charCodeAt(mo),Wn=V.get(hn),Hi=!1,cn=mo-1;cn>=0;cn--){var Nn=cn+1,Po=t.charCodeAt(cn);if(Po===9){Hi=!0;break}var nn=void 0,fr=void 0;if(fe.A(Po)?(cn--,nn=0,fr=2):(nn=V.get(Po),fr=fe.y(Po)?b:1),Xo<=Vt){if(No===0&&(No=Nn,Fo=Xo),Xo<=Vt-wt)break;if(cr(Po,nn,hn,Wn)){go=Nn,Lo=Xo;break}}Xo-=fr,hn=Po,Wn=nn}if(go!==0){var Ur=wt-(Fo-Lo);if(Ur<=i){var Zn=t.charCodeAt(No),Fn=void 0;fe.z(Zn)?Fn=2:Fn=Pi(Zn,Fo,i,b),Ur-Fn<0&&(go=0)}}if(Hi){$t--;continue}}for(go===0&&(go=No,Lo=Fo),et[kt]=go,Wt[kt]=Lo,kt++,Vt=Lo+wt;$t<0||$t<qt&&qe[$t]<Lo;)$t++;for(var io=Math.abs(qe[$t]-Vt);$t+1<qt;){var yo=Math.abs(qe[$t+1]-Vt);if(yo>=io)break;io=yo,$t++}}return kt===0?null:(et.length=kt,Wt.length=kt,ji=o.breakOffsets,lr=o.breakOffsetsVisibleColumn,o.breakOffsets=et,o.breakOffsetsVisibleColumn=Wt,o.wrappedTextIndentLength=ct,o)}function Ps(V,o,t,i,g,b){if(i===-1)return null;var K=o.length;if(K<=1)return null;var Ie=ki(o,t,i,g,b),Le=i-Ie,qe=[],ct=[],wt=0,et=0,Wt=0,kt=i,Vt=o.charCodeAt(0),qt=V.get(Vt),$t=Pi(Vt,0,t,g),io=1;fe.z(Vt)&&($t+=1,Vt=o.charCodeAt(1),qt=V.get(Vt),io++);for(var yo=io;yo<K;yo++){var mo=yo,bo=o.charCodeAt(yo),go=void 0,Lo=void 0;fe.z(bo)?(yo++,go=0,Lo=2):(go=V.get(bo),Lo=Pi(bo,$t,t,g)),cr(Vt,qt,bo,go)&&(et=mo,Wt=$t),$t+=Lo,$t>kt&&((et===0||$t-Wt>Le)&&(et=mo,Wt=$t-Lo),qe[wt]=et,ct[wt]=Wt,wt++,kt=Wt+Le,et=0),Vt=bo,qt=go}return wt===0?null:(qe[wt]=K,ct[wt]=$t,new qn(qe,ct,Ie))}function Pi(V,o,t,i){return V===9?t-o%t:fe.y(V)?i:1}function dr(V,o){return o-V%o}function cr(V,o,t,i){return t!==32&&(o===2||o===3&&i!==2||i===1||i===3&&o!==1)}function ki(V,o,t,i,g){var b=0;if(g!==0){var K=fe.q(V);if(K!==-1){for(var Ie=0;Ie<K;Ie++){var Le=V.charCodeAt(Ie)===9?dr(b,o):1;b+=Le}for(var qe=g===3?2:g===2?1:0,Ie=0;Ie<qe;Ie++){var Le=dr(b,o);b+=Le}b+i>t&&(b=0)}}return b}var Pr=function(){function V(){}return V.create=function(){return new V},V.prototype.createLineBreaksComputer=function(o,t,i,g){t=t|0,i=+i;var b=[];return{addRequest:function(Ie,Le){b.push(Ie)},finalize:function(){return Fi(b,o,t,i,g)}}},V}();function Fi(V,o,t,i,g){if(i===-1){for(var b=[],K=0,Ie=V.length;K<Ie;K++)b[K]=null;return b}var Le=Math.round(i*o.typicalHalfwidthCharacterWidth);(g===2||g===3)&&(g=1);var qe=document.createElement("div");H.a.applyFontInfoSlow(qe,o);for(var ct=Object(Bt.a)(1e4),wt=[],et=[],Wt=[],kt=[],Vt=[],K=0;K<V.length;K++){var qt=V[K],$t=0,io=0,yo=Le;if(g!==0)if($t=fe.q(qt),$t===-1)$t=0;else{for(var mo=0;mo<$t;mo++){var bo=qt.charCodeAt(mo)===9?t-io%t:1;io+=bo}var go=Math.ceil(o.spaceWidth*io);go+o.typicalFullwidthCharacterWidth>Le?($t=0,io=0):yo=Le-go}var Lo=qt.substr($t),No=kr(Lo,io,t,yo,ct);wt[K]=$t,et[K]=io,Wt[K]=Lo,kt[K]=No[0],Vt[K]=No[1]}qe.innerHTML=ct.build(),qe.style.position="absolute",qe.style.top="10000",qe.style.wordWrap="break-word",document.body.appendChild(qe);for(var Fo=document.createRange(),Xo=Array.prototype.slice.call(qe.children,0),Po=[],K=0;K<V.length;K++){var nn=Xo[K],vn=Fr(Fo,nn,Wt[K],kt[K]);if(vn===null){Po[K]=null;continue}for(var $t=wt[K],io=et[K],cn=Vt[K],Nn=[],hn=0,Ie=vn.length;hn<Ie;hn++)Nn[hn]=cn[vn[hn]];if($t!==0)for(var hn=0,Ie=vn.length;hn<Ie;hn++)vn[hn]+=$t;Po[K]=new qn(vn,Nn,io)}return document.body.removeChild(qe),Po}function kr(V,o,t,i,g){g.appendASCIIString('<div style="width:'),g.appendASCIIString(String(i)),g.appendASCIIString('px;">');for(var b=V.length,K=o,Ie=0,Le=[],qe=[],ct=0<b?V.charCodeAt(0):0,wt=0;wt<b;wt++){Le[wt]=Ie,qe[wt]=K;var et=ct;ct=wt+1<b?V.charCodeAt(wt+1):0;var Wt=1,kt=1;switch(et){case 9:Wt=t-K%t,kt=Wt;for(var Vt=1;Vt<=Wt;Vt++)Vt<Wt?g.write1(160):g.appendASCII(32);break;case 32:ct===32?g.write1(160):g.appendASCII(32);break;case 60:g.appendASCIIString("&lt;");break;case 62:g.appendASCIIString("&gt;");break;case 38:g.appendASCIIString("&amp;");break;case 0:g.appendASCIIString("&#00;");break;case 65279:case 8232:g.write1(65533);break;default:fe.y(et)&&kt++,g.write1(et)}Ie+=Wt,K+=kt}return Le[V.length]=Ie,qe[V.length]=K,g.appendASCIIString("</div>"),[Le,qe]}function Fr(V,o,t,i){if(t.length<=1)return null;var g=o.firstChild,b=[];return pi(V,g,i,0,null,t.length-1,null,b),b.length===0?null:(b.push(t.length),b)}function pi(V,o,t,i,g,b,K,Ie){if(i===b)return;if(g=g||ur(V,o,t[i],t[i+1]),K=K||ur(V,o,t[b],t[b+1]),Math.abs(g[0].top-K[0].top)<=.1)return;if(i+1===b){Ie.push(b);return}var Le=i+(b-i)/2|0,qe=ur(V,o,t[Le],t[Le+1]);pi(V,o,t,i,g,Le,qe,Ie),pi(V,o,t,Le,qe,b,K,Ie)}function ur(V,o,t,i){return V.setStart(o,t),V.setEnd(o,i),V.getClientRects()}var Li=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Wr=function(V,o,t,i){var g=arguments.length,b=g<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,t):i,K;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(V,o,t,i);else for(var Ie=V.length-1;Ie>=0;Ie--)(K=V[Ie])&&(b=(g<3?K(b):g>3?K(o,t,b):K(o,t))||b);return g>3&&b&&Object.defineProperty(o,t,b),b},ri=function(V,o){return function(t,i){o(t,i,V)}},gi=0,hr=function(){function V(o,t,i,g,b,K){this.model=o,this.viewModel=t,this.cursor=i,this.view=g,this.hasRealView=b,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}(),ks=function(V){Li(o,V);function o(t,i,g,b,K,Ie,Le,qe,ct,wt){var et=V.call(this)||this;et._onDidDispose=et._register(new U.a),et.onDidDispose=et._onDidDispose.event,et._onDidChangeModelContent=et._register(new U.a),et.onDidChangeModelContent=et._onDidChangeModelContent.event,et._onDidChangeModelLanguage=et._register(new U.a),et.onDidChangeModelLanguage=et._onDidChangeModelLanguage.event,et._onDidChangeModelLanguageConfiguration=et._register(new U.a),et.onDidChangeModelLanguageConfiguration=et._onDidChangeModelLanguageConfiguration.event,et._onDidChangeModelOptions=et._register(new U.a),et.onDidChangeModelOptions=et._onDidChangeModelOptions.event,et._onDidChangeModelDecorations=et._register(new U.a),et.onDidChangeModelDecorations=et._onDidChangeModelDecorations.event,et._onDidChangeConfiguration=et._register(new U.a),et.onDidChangeConfiguration=et._onDidChangeConfiguration.event,et._onDidChangeModel=et._register(new U.a),et.onDidChangeModel=et._onDidChangeModel.event,et._onDidChangeCursorPosition=et._register(new U.a),et.onDidChangeCursorPosition=et._onDidChangeCursorPosition.event,et._onDidChangeCursorSelection=et._register(new U.a),et.onDidChangeCursorSelection=et._onDidChangeCursorSelection.event,et._onDidAttemptReadOnlyEdit=et._register(new U.a),et.onDidAttemptReadOnlyEdit=et._onDidAttemptReadOnlyEdit.event,et._onDidLayoutChange=et._register(new U.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 U.a),et.onWillType=et._onWillType.event,et._onDidType=et._register(new U.a),et.onDidType=et._onDidType.event,et._onDidCompositionStart=et._register(new U.a),et.onDidCompositionStart=et._onDidCompositionStart.event,et._onDidCompositionEnd=et._register(new U.a),et.onDidCompositionEnd=et._onDidCompositionEnd.event,et._onDidPaste=et._register(new U.a),et.onDidPaste=et._onDidPaste.event,et._onMouseUp=et._register(new U.a),et.onMouseUp=et._onMouseUp.event,et._onMouseDown=et._register(new U.a),et.onMouseDown=et._onMouseDown.event,et._onMouseDrag=et._register(new U.a),et.onMouseDrag=et._onMouseDrag.event,et._onMouseDrop=et._register(new U.a),et.onMouseDrop=et._onMouseDrop.event,et._onContextMenu=et._register(new U.a),et.onContextMenu=et._onContextMenu.event,et._onMouseMove=et._register(new U.a),et.onMouseMove=et._onMouseMove.event,et._onMouseLeave=et._register(new U.a),et.onMouseLeave=et._onMouseLeave.event,et._onMouseWheel=et._register(new U.a),et.onMouseWheel=et._onMouseWheel.event,et._onKeyUp=et._register(new U.a),et.onKeyUp=et._onKeyUp.event,et._onKeyDown=et._register(new U.a),et.onKeyDown=et._onKeyDown.event,et._onDidContentSizeChange=et._register(new U.a),et.onDidContentSizeChange=et._onDidContentSizeChange.event,et._onDidScrollChange=et._register(new U.a),et.onDidScrollChange=et._onDidScrollChange.event,et._onDidChangeViewZones=et._register(new U.a),et.onDidChangeViewZones=et._onDidChangeViewZones.event,et._domElement=t,et._id=++gi,et._decorationTypeKeysToIds={},et._decorationTypeSubtypes={},et.isSimpleWidget=g.isSimpleWidget||!1,et._telemetryData=g.telemetryData,i=i||{},et._configuration=et._register(et._createConfiguration(i,wt)),et._register(et._configuration.onDidChange(function(io){et._onDidChangeConfiguration.fire(io);var yo=et._configuration.options;if(io.hasChanged(107)){var mo=yo.get(107);et._onDidLayoutChange.fire(mo)}})),et._contextKeyService=et._register(Le.createScoped(et._domElement)),et._notificationService=ct,et._codeEditorService=K,et._commandService=Ie,et._themeService=qe,et._register(new Fs(et,et._contextKeyService)),et._register(new Ws(et,et._contextKeyService)),et._instantiationService=b.createChild(new sr.a([mi.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(g.contributions)?Wt=g.contributions:Wt=x.d.getEditorContributions();for(var kt=0,Vt=Wt;kt<Vt.length;kt++){var qt=Vt[kt];try{var $t=et._instantiationService.createInstance(qt.ctor,et);et._contributions[qt.id]=$t}catch(io){Object(I.e)(io)}}return x.d.getEditorActions().forEach(function(io){var yo=new Es.a(io.id,io.label,io.alias,Object(As.n)(io.precondition),function(){return et._instantiationService.invokeFunction(function(mo){return Promise.resolve(io.runEditorCommand(mo,et,null))})},et._contextKeyService);et._actions[yo.id]=yo}),et._codeEditorService.addCodeEditor(et),et}return o.prototype._createConfiguration=function(t,i){return new H.a(this.isSimpleWidget,t,this._domElement,i)},o.prototype.getId=function(){return this.getEditorType()+":"+this._id},o.prototype.getEditorType=function(){return Ln.a.ICodeEditor},o.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var t=Object.keys(this._contributions),i=0,g=t.length;i<g;i++){var b=t[i];this._contributions[b].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),V.prototype.dispose.call(this)},o.prototype.invokeWithinContext=function(t){return this._instantiationService.invokeFunction(t)},o.prototype.updateOptions=function(t){this._configuration.updateOptions(t)},o.prototype.getOptions=function(){return this._configuration.options},o.prototype.getOption=function(t){return this._configuration.options.get(t)},o.prototype.getRawOptions=function(){return this._configuration.getRawOptions()},o.prototype.getValue=function(t){if(t===void 0&&(t=null),!this._modelData)return"";var i=!!(t&&t.preserveBOM),g=0;return t&&t.lineEnding&&t.lineEnding===`
`?g=1:t&&t.lineEnding&&t.lineEnding===`\r
`&&(g=2),this._modelData.model.getValue(g,i)},o.prototype.setValue=function(t){if(!this._modelData)return;this._modelData.model.setValue(t)},o.prototype.getModel=function(){return this._modelData?this._modelData.model:null},o.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 g=this.hasTextFocus(),b=this._detachModel();this._attachModel(i),g&&this.hasModel()&&this.focus();var K={oldModelUrl:b?b.uri:null,newModelUrl:i?i.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(K),this._postDetachModelCleanup(b)},o.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var t in this._decorationTypeSubtypes){var i=this._decorationTypeSubtypes[t];for(var g in i)this._removeDecorationType(t+"-"+g)}this._decorationTypeSubtypes={}}},o.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},o.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},o._getVerticalOffsetForPosition=function(t,i,g){var b=t.model.validatePosition({lineNumber:i,column:g}),K=t.viewModel.coordinatesConverter.convertModelPositionToViewPosition(b);return t.viewModel.viewLayout.getVerticalOffsetForLineNumber(K.lineNumber)},o.prototype.getTopForLineNumber=function(t){return this._modelData?o._getVerticalOffsetForPosition(this._modelData,t,1):-1},o.prototype.getTopForPosition=function(t,i){return this._modelData?o._getVerticalOffsetForPosition(this._modelData,t,i):-1},o.prototype.setHiddenAreas=function(t){this._modelData&&this._modelData.viewModel.setHiddenAreas(t.map(function(i){return be.a.lift(i)}))},o.prototype.getVisibleColumnFromPosition=function(t){if(!this._modelData)return t.column;var i=this._modelData.model.validatePosition(t),g=this._modelData.model.getOptions().tabSize;return De.a.visibleColumnFromColumn(this._modelData.model.getLineContent(i.lineNumber),i.column,g)+1},o.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},o.prototype.setPosition=function(t){if(!this._modelData)return;if(!oe.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}])},o.prototype._sendRevealRange=function(t,i,g,b){if(!this._modelData)return;if(!be.a.isIRange(t))throw new Error("Invalid arguments");var K=this._modelData.model.validateRange(t),Ie=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(K);this._modelData.cursor.emitCursorRevealRange("api",Ie,i,g,b)},o.prototype.revealLine=function(t,i){i===void 0&&(i=0),this._revealLine(t,0,i)},o.prototype.revealLineInCenter=function(t,i){i===void 0&&(i=0),this._revealLine(t,1,i)},o.prototype.revealLineInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealLine(t,2,i)},o.prototype._revealLine=function(t,i,g){if(typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new be.a(t,1,t,1),i,!1,g)},o.prototype.revealPosition=function(t,i){i===void 0&&(i=0),this._revealPosition(t,0,!0,i)},o.prototype.revealPositionInCenter=function(t,i){i===void 0&&(i=0),this._revealPosition(t,1,!0,i)},o.prototype.revealPositionInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealPosition(t,2,!0,i)},o.prototype._revealPosition=function(t,i,g,b){if(!oe.a.isIPosition(t))throw new Error("Invalid arguments");this._sendRevealRange(new be.a(t.lineNumber,t.column,t.lineNumber,t.column),i,g,b)},o.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},o.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},o.prototype.setSelection=function(t){var i=vt.a.isISelection(t),g=be.a.isIRange(t);if(!i&&!g)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(t);else if(g){var b={selectionStartLineNumber:t.startLineNumber,selectionStartColumn:t.startColumn,positionLineNumber:t.endLineNumber,positionColumn:t.endColumn};this._setSelectionImpl(b)}},o.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])},o.prototype.revealLines=function(t,i,g){g===void 0&&(g=0),this._revealLines(t,i,0,g)},o.prototype.revealLinesInCenter=function(t,i,g){g===void 0&&(g=0),this._revealLines(t,i,1,g)},o.prototype.revealLinesInCenterIfOutsideViewport=function(t,i,g){g===void 0&&(g=0),this._revealLines(t,i,2,g)},o.prototype._revealLines=function(t,i,g,b){if(typeof t!="number"||typeof i!="number")throw new Error("Invalid arguments");this._sendRevealRange(new be.a(t,1,i,1),g,!1,b)},o.prototype.revealRange=function(t,i,g,b){i===void 0&&(i=0),g===void 0&&(g=!1),b===void 0&&(b=!0),this._revealRange(t,g?1:0,b,i)},o.prototype.revealRangeInCenter=function(t,i){i===void 0&&(i=0),this._revealRange(t,1,!0,i)},o.prototype.revealRangeInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealRange(t,2,!0,i)},o.prototype.revealRangeAtTop=function(t,i){i===void 0&&(i=0),this._revealRange(t,3,!0,i)},o.prototype._revealRange=function(t,i,g,b){if(!be.a.isIRange(t))throw new Error("Invalid arguments");this._sendRevealRange(be.a.lift(t),i,g,b)},o.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 g=0,b=t.length;g<b;g++)if(!vt.a.isISelection(t[g]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(i,t)},o.prototype.getContentWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1},o.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},o.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},o.prototype.getContentHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1},o.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},o.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},o.prototype.setScrollLeft=function(t){if(!this._modelData)return;if(typeof t!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:t})},o.prototype.setScrollTop=function(t){if(!this._modelData)return;if(typeof t!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:t})},o.prototype.setScrollPosition=function(t){if(!this._modelData)return;this._modelData.viewModel.viewLayout.setScrollPositionNow(t)},o.prototype.saveViewState=function(){if(!this._modelData)return null;for(var t={},i=Object.keys(this._contributions),g=0,b=i;g<b.length;g++){var K=b[g],Ie=this._contributions[K];typeof Ie.saveViewState=="function"&&(t[K]=Ie.saveViewState())}var Le=this._modelData.cursor.saveState(),qe=this._modelData.viewModel.saveState();return{cursorState:Le,viewState:qe,contributionsState:t}},o.prototype.restoreViewState=function(t){if(!this._modelData||!this._modelData.hasRealView)return;var i=t;if(i&&i.cursorState&&i.viewState){var g=i.cursorState;Array.isArray(g)?this._modelData.cursor.restoreState(g):this._modelData.cursor.restoreState([g]);for(var b=i.contributionsState||{},K=Object.keys(this._contributions),Ie=0,Le=K.length;Ie<Le;Ie++){var qe=K[Ie],ct=this._contributions[qe];typeof ct.restoreViewState=="function"&&ct.restoreViewState(b[qe])}var wt=this._modelData.viewModel.reduceRestoreState(i.viewState);this._modelData.view.restoreState(wt)}},o.prototype.getContribution=function(t){return this._contributions[t]||null},o.prototype.getActions=function(){for(var t=[],i=Object.keys(this._actions),g=0,b=i.length;g<b;g++){var K=i[g];t.push(this._actions[K])}return t},o.prototype.getSupportedActions=function(){var t=this.getActions();return t=t.filter(function(i){return i.isSupported()}),t},o.prototype.getAction=function(t){return this._actions[t]||null},o.prototype.trigger=function(t,i,g){if(g=g||{},i===Ln.b.Type){if(!this._modelData||typeof g.text!="string"||g.text.length===0)return;t==="keyboard"&&this._onWillType.fire(g.text),this._modelData.cursor.trigger(t,i,g),t==="keyboard"&&this._onDidType.fire(g.text);return}if(i===Ln.b.Paste){if(!this._modelData||typeof g.text!="string"||g.text.length===0)return;var b=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(t,i,g);var K=this._modelData.cursor.getSelection().getStartPosition();t==="keyboard"&&this._onDidPaste.fire({range:new be.a(b.lineNumber,b.column,K.lineNumber,K.column),mode:g.mode});return}var Ie=this.getAction(i);if(Ie){Promise.resolve(Ie.run()).then(void 0,I.e);return}if(!this._modelData)return;if(this._triggerEditorCommand(t,i,g))return;this._modelData.cursor.trigger(t,i,g),i===Ln.b.CompositionStart&&this._onDidCompositionStart.fire(),i===Ln.b.CompositionEnd&&this._onDidCompositionEnd.fire()},o.prototype._triggerEditorCommand=function(t,i,g){var b=this,K=x.d.getEditorCommand(i);return K?(g=g||{},g.source=t,this._instantiationService.invokeFunction(function(Ie){Promise.resolve(K.runEditorCommand(Ie,b,g)).then(void 0,I.e)}),!0):!1},o.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},o.prototype.pushUndoStop=function(){return this._modelData?this._configuration.options.get(68)?!1:(this._modelData.model.pushStackElement(),!0):!1},o.prototype.executeEdits=function(t,i,g){if(!this._modelData)return!1;if(this._configuration.options.get(68))return!1;var b;return g?Array.isArray(g)?b=function(){return g}:b=g:b=function(){return null},this._modelData.cursor.executeEdits(t,i,b),!0},o.prototype.executeCommand=function(t,i){if(!this._modelData)return;this._modelData.cursor.trigger(t,Ln.b.ExecuteCommand,i)},o.prototype.executeCommands=function(t,i){if(!this._modelData)return;this._modelData.cursor.trigger(t,Ln.b.ExecuteCommands,i)},o.prototype.changeDecorations=function(t){return this._modelData?this._modelData.model.changeDecorations(t,this._id):null},o.prototype.getLineDecorations=function(t){return this._modelData?this._modelData.model.getLineDecorations(t,this._id,Object(he.j)(this._configuration.options)):null},o.prototype.deltaDecorations=function(t,i){return this._modelData?t.length===0&&i.length===0?t:this._modelData.model.deltaDecorations(t,i,this._id):[]},o.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]},o.prototype.getLayoutInfo=function(){var t=this._configuration.options,i=t.get(107);return i},o.prototype.createOverviewRuler=function(t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(t)},o.prototype.getContainerDomNode=function(){return this._domElement},o.prototype.getDomNode=function(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode},o.prototype.delegateVerticalScrollbarMouseDown=function(t){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.delegateVerticalScrollbarMouseDown(t)},o.prototype.layout=function(t){this._configuration.observeReferenceElement(t),this.render()},o.prototype.focus=function(){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.focus()},o.prototype.hasTextFocus=function(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()},o.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},o.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)},o.prototype.layoutContentWidget=function(t){var i=t.getId();if(this._contentWidgets.hasOwnProperty(i)){var g=this._contentWidgets[i];g.position=t.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(g)}},o.prototype.removeContentWidget=function(t){var i=t.getId();if(this._contentWidgets.hasOwnProperty(i)){var g=this._contentWidgets[i];delete this._contentWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(g)}},o.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)},o.prototype.layoutOverlayWidget=function(t){var i=t.getId();if(this._overlayWidgets.hasOwnProperty(i)){var g=this._overlayWidgets[i];g.position=t.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(g)}},o.prototype.removeOverlayWidget=function(t){var i=t.getId();if(this._overlayWidgets.hasOwnProperty(i)){var g=this._overlayWidgets[i];delete this._overlayWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(g)}},o.prototype.changeViewZones=function(t){if(!this._modelData||!this._modelData.hasRealView)return;var i=this._modelData.view.change(t);i&&this._onDidChangeViewZones.fire()},o.prototype.getTargetAtClientPoint=function(t,i){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(t,i)},o.prototype.getScrolledVisiblePosition=function(t){if(!this._modelData||!this._modelData.hasRealView)return null;var i=this._modelData.model.validatePosition(t),g=this._configuration.options,b=g.get(107),K=o._getVerticalOffsetForPosition(this._modelData,i.lineNumber,i.column)-this.getScrollTop(),Ie=this._modelData.view.getOffsetForColumn(i.lineNumber,i.column)+b.glyphMarginWidth+b.lineNumbersWidth+b.decorationsWidth-this.getScrollLeft();return{top:K,left:Ie,height:g.get(49)}},o.prototype.getOffsetForColumn=function(t,i){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(t,i)},o.prototype.render=function(t){if(t===void 0&&(t=!1),!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.render(!0,t)},o.prototype.setAriaOptions=function(t){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.setAriaOptions(t)},o.prototype.applyFontInfo=function(t){H.a.applyFontInfoSlow(t,this._configuration.options.get(34))},o.prototype._attachModel=function(t){var i=this;if(!t){this._modelData=null;return}var g=[];this._domElement.setAttribute("data-mode-id",t.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(t.isDominatedByLongLines()),this._configuration.setMaxLineNumber(t.getLineCount()),t.onBeforeAttached();var b=new Kn(this._id,this._configuration,t,Pr.create(),Ns.create(this._configuration.options),function(kt){return J.W(kt)});g.push(t.onDidChangeDecorations(function(kt){return i._onDidChangeModelDecorations.fire(kt)})),g.push(t.onDidChangeLanguage(function(kt){i._domElement.setAttribute("data-mode-id",t.getLanguageIdentifier().language),i._onDidChangeModelLanguage.fire(kt)})),g.push(t.onDidChangeLanguageConfiguration(function(kt){return i._onDidChangeModelLanguageConfiguration.fire(kt)})),g.push(t.onDidChangeContent(function(kt){return i._onDidChangeModelContent.fire(kt)})),g.push(t.onDidChangeOptions(function(kt){return i._onDidChangeModelOptions.fire(kt)})),g.push(t.onWillDispose(function(){return i.setModel(null)}));var K=new Rr(this._configuration,t,b);g.push(K.onDidReachMaxCursorCount(function(){i._notificationService.warn(re.a("cursors.maximum","The number of cursors has been limited to {0}.",Rr.MAX_CURSOR_COUNT))})),g.push(K.onDidAttemptReadOnlyEdit(function(){i._onDidAttemptReadOnlyEdit.fire(void 0)})),g.push(K.onDidChange(function(kt){for(var Vt=[],qt=0,$t=kt.selections.length;qt<$t;qt++)Vt[qt]=kt.selections[qt].getPosition();var io={position:Vt[0],secondaryPositions:Vt.slice(1),reason:kt.reason,source:kt.source};i._onDidChangeCursorPosition.fire(io);var yo={selection:kt.selections[0],secondarySelections:kt.selections.slice(1),modelVersionId:kt.modelVersionId,oldSelections:kt.oldSelections,oldModelVersionId:kt.oldModelVersionId,source:kt.source,reason:kt.reason};i._onDidChangeCursorSelection.fire(yo)}));var Ie=this._createView(b,K),Le=Ie[0],qe=Ie[1];if(qe){this._domElement.appendChild(Le.domNode.domNode);for(var ct=Object.keys(this._contentWidgets),wt=0,et=ct.length;wt<et;wt++){var Wt=ct[wt];Le.addContentWidget(this._contentWidgets[Wt])}ct=Object.keys(this._overlayWidgets);for(var wt=0,et=ct.length;wt<et;wt++){var Wt=ct[wt];Le.addOverlayWidget(this._overlayWidgets[Wt])}Le.render(!1,!0),Le.domNode.domNode.setAttribute("data-uri",t.uri.toString())}this._modelData=new hr(t,b,K,Le,qe,g)},o.prototype._createView=function(t,i){var g=this,b;this.isSimpleWidget?b={executeEditorCommand:function(qe,ct){qe.runCoreEditorCommand(i,ct)},paste:function(qe,ct,wt,et,Wt){g.trigger(qe,Ln.b.Paste,{text:ct,pasteOnNewLine:wt,multicursorText:et,mode:Wt})},type:function(qe,ct){g.trigger(qe,Ln.b.Type,{text:ct})},replacePreviousChar:function(qe,ct,wt){g.trigger(qe,Ln.b.ReplacePreviousChar,{text:ct,replaceCharCnt:wt})},compositionStart:function(qe){g.trigger(qe,Ln.b.CompositionStart,void 0)},compositionEnd:function(qe){g.trigger(qe,Ln.b.CompositionEnd,void 0)},cut:function(qe){g.trigger(qe,Ln.b.Cut,void 0)}}:b={executeEditorCommand:function(qe,ct){qe.runCoreEditorCommand(i,ct)},paste:function(qe,ct,wt,et,Wt){g._commandService.executeCommand(Ln.b.Paste,{text:ct,pasteOnNewLine:wt,multicursorText:et,mode:Wt})},type:function(qe,ct){g._commandService.executeCommand(Ln.b.Type,{text:ct})},replacePreviousChar:function(qe,ct,wt){g._commandService.executeCommand(Ln.b.ReplacePreviousChar,{text:ct,replaceCharCnt:wt})},compositionStart:function(qe){g._commandService.executeCommand(Ln.b.CompositionStart,{})},compositionEnd:function(qe){g._commandService.executeCommand(Ln.b.CompositionEnd,{})},cut:function(qe){g._commandService.executeCommand(Ln.b.Cut,{})}};var K=new ht(t);K.onDidContentSizeChange=function(Le){return g._onDidContentSizeChange.fire(Le)},K.onDidScroll=function(Le){return g._onDidScrollChange.fire(Le)},K.onDidGainFocus=function(){return g._editorTextFocus.setValue(!0)},K.onDidLoseFocus=function(){return g._editorTextFocus.setValue(!1)},K.onContextMenu=function(Le){return g._onContextMenu.fire(Le)},K.onMouseDown=function(Le){return g._onMouseDown.fire(Le)},K.onMouseUp=function(Le){return g._onMouseUp.fire(Le)},K.onMouseDrag=function(Le){return g._onMouseDrag.fire(Le)},K.onMouseDrop=function(Le){return g._onMouseDrop.fire(Le)},K.onKeyUp=function(Le){return g._onKeyUp.fire(Le)},K.onMouseMove=function(Le){return g._onMouseMove.fire(Le)},K.onMouseLeave=function(Le){return g._onMouseLeave.fire(Le)},K.onMouseWheel=function(Le){return g._onMouseWheel.fire(Le)},K.onKeyDown=function(Le){return g._onKeyDown.fire(Le)};var Ie=new Cs(b,this._configuration,this._themeService,t,i,K);return[Ie,!0]},o.prototype._postDetachModelCleanup=function(t){t&&t.removeAllDecorationsWithOwnerId(this._id)},o.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},o.prototype._removeDecorationType=function(t){this._codeEditorService.removeDecorationType(t)},o.prototype.hasModel=function(){return this._modelData!==null},o=Wr([ri(3,xs.a),ri(4,u.a),ri(5,ii.b),ri(6,mi.c),ri(7,X.c),ri(8,ar.a),ri(9,an.b)],o),o}(z.a),ei=function(V){Li(o,V);function o(){var t=V.call(this)||this;return t._onDidChangeToTrue=t._register(new U.a),t.onDidChangeToTrue=t._onDidChangeToTrue.event,t._onDidChangeToFalse=t._register(new U.a),t.onDidChangeToFalse=t._onDidChangeToFalse.event,t._value=0,t}return o.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()},o}(z.a),Fs=function(V){Li(o,V);function o(t,i){var g=V.call(this)||this;return g._editor=t,i.createKey("editorId",t.getId()),g._editorSimpleInput=Jo.a.editorSimpleInput.bindTo(i),g._editorFocus=Jo.a.focus.bindTo(i),g._textInputFocus=Jo.a.textInputFocus.bindTo(i),g._editorTextFocus=Jo.a.editorTextFocus.bindTo(i),g._editorTabMovesFocus=Jo.a.tabMovesFocus.bindTo(i),g._editorReadonly=Jo.a.readOnly.bindTo(i),g._hasMultipleSelections=Jo.a.hasMultipleSelections.bindTo(i),g._hasNonEmptySelection=Jo.a.hasNonEmptySelection.bindTo(i),g._canUndo=Jo.a.canUndo.bindTo(i),g._canRedo=Jo.a.canRedo.bindTo(i),g._register(g._editor.onDidChangeConfiguration(function(){return g._updateFromConfig()})),g._register(g._editor.onDidChangeCursorSelection(function(){return g._updateFromSelection()})),g._register(g._editor.onDidFocusEditorWidget(function(){return g._updateFromFocus()})),g._register(g._editor.onDidBlurEditorWidget(function(){return g._updateFromFocus()})),g._register(g._editor.onDidFocusEditorText(function(){return g._updateFromFocus()})),g._register(g._editor.onDidBlurEditorText(function(){return g._updateFromFocus()})),g._register(g._editor.onDidChangeModel(function(){return g._updateFromModel()})),g._register(g._editor.onDidChangeConfiguration(function(){return g._updateFromModel()})),g._updateFromConfig(),g._updateFromSelection(),g._updateFromFocus(),g._updateFromModel(),g._editorSimpleInput.set(g._editor.isSimpleWidget),g}return o.prototype._updateFromConfig=function(){var t=this._editor.getOptions();this._editorTabMovesFocus.set(t.get(106)),this._editorReadonly.set(t.get(68))},o.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())},o.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())},o.prototype._updateFromModel=function(){var t=this._editor.getModel();this._canUndo.set(Boolean(t&&t.canUndo())),this._canRedo.set(Boolean(t&&t.canRedo()))},o}(z.a),Ws=function(V){Li(o,V);function o(t,i){var g=V.call(this)||this;g._editor=t,g._contextKeyService=i,g._langId=Jo.a.languageId.bindTo(i),g._hasCompletionItemProvider=Jo.a.hasCompletionItemProvider.bindTo(i),g._hasCodeActionsProvider=Jo.a.hasCodeActionsProvider.bindTo(i),g._hasCodeLensProvider=Jo.a.hasCodeLensProvider.bindTo(i),g._hasDefinitionProvider=Jo.a.hasDefinitionProvider.bindTo(i),g._hasDeclarationProvider=Jo.a.hasDeclarationProvider.bindTo(i),g._hasImplementationProvider=Jo.a.hasImplementationProvider.bindTo(i),g._hasTypeDefinitionProvider=Jo.a.hasTypeDefinitionProvider.bindTo(i),g._hasHoverProvider=Jo.a.hasHoverProvider.bindTo(i),g._hasDocumentHighlightProvider=Jo.a.hasDocumentHighlightProvider.bindTo(i),g._hasDocumentSymbolProvider=Jo.a.hasDocumentSymbolProvider.bindTo(i),g._hasReferenceProvider=Jo.a.hasReferenceProvider.bindTo(i),g._hasRenameProvider=Jo.a.hasRenameProvider.bindTo(i),g._hasSignatureHelpProvider=Jo.a.hasSignatureHelpProvider.bindTo(i),g._hasDocumentFormattingProvider=Jo.a.hasDocumentFormattingProvider.bindTo(i),g._hasDocumentSelectionFormattingProvider=Jo.a.hasDocumentSelectionFormattingProvider.bindTo(i),g._hasMultipleDocumentFormattingProvider=Jo.a.hasMultipleDocumentFormattingProvider.bindTo(i),g._hasMultipleDocumentSelectionFormattingProvider=Jo.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(i),g._isInWalkThrough=Jo.a.isInEmbeddedEditor.bindTo(i);var b=function(){return g._update()};return g._register(t.onDidChangeModel(b)),g._register(t.onDidChangeModelLanguage(b)),g._register($o.d.onDidChange(b)),g._register($o.a.onDidChange(b)),g._register($o.b.onDidChange(b)),g._register($o.f.onDidChange(b)),g._register($o.e.onDidChange(b)),g._register($o.q.onDidChange(b)),g._register($o.C.onDidChange(b)),g._register($o.p.onDidChange(b)),g._register($o.i.onDidChange(b)),g._register($o.m.onDidChange(b)),g._register($o.u.onDidChange(b)),g._register($o.v.onDidChange(b)),g._register($o.g.onDidChange(b)),g._register($o.j.onDidChange(b)),g._register($o.x.onDidChange(b)),b(),g}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.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()})},o.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($o.d.has(i)),t._hasCodeActionsProvider.set($o.a.has(i)),t._hasCodeLensProvider.set($o.b.has(i)),t._hasDefinitionProvider.set($o.f.has(i)),t._hasDeclarationProvider.set($o.e.has(i)),t._hasImplementationProvider.set($o.q.has(i)),t._hasTypeDefinitionProvider.set($o.C.has(i)),t._hasHoverProvider.set($o.p.has(i)),t._hasDocumentHighlightProvider.set($o.i.has(i)),t._hasDocumentSymbolProvider.set($o.m.has(i)),t._hasReferenceProvider.set($o.u.has(i)),t._hasRenameProvider.set($o.v.has(i)),t._hasSignatureHelpProvider.set($o.x.has(i)),t._hasDocumentFormattingProvider.set($o.g.has(i)||$o.j.has(i)),t._hasDocumentSelectionFormattingProvider.set($o.j.has(i)),t._hasMultipleDocumentFormattingProvider.set($o.g.all(i).length+$o.j.all(i).length>1),t._hasMultipleDocumentSelectionFormattingProvider.set($o.j.all(i).length>1),t._isInWalkThrough.set(i.uri.scheme===O.b.walkThroughSnippet)})},o}(z.a),Br=function(V){Li(o,V);function o(t){var i=V.call(this)||this;return i._onChange=i._register(new U.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 o.prototype.hasFocus=function(){return this._hasFocus},o}(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='"),Hr=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())+Hr}var Hs=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 Hs+encodeURIComponent(V.toString())+Wi}Object(X.e)(function(V,o){var t=V.getColor(Tn.p);t&&o.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+t+"; }");var i=V.getColor(Tn.q);i&&o.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+vi(i)+'") repeat-x bottom left; }');var g=V.getColor(Tn.O);g&&o.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+g+"; }");var b=V.getColor(Tn.P);b&&o.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+vi(b)+'") repeat-x bottom left; }');var K=V.getColor(Tn.G);K&&o.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+K+"; }");var Ie=V.getColor(Tn.H);Ie&&o.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+vi(Ie)+'") repeat-x bottom left; }');var Le=V.getColor(Tn.y);Le&&o.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+Le+"; }");var qe=V.getColor(Tn.z);qe&&o.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+Bi(qe)+'") no-repeat bottom left; }');var ct=V.getColor(lt.o);ct&&o.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+ct.rgba.a+"; }");var wt=V.getColor(lt.n);wt&&o.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+wt+"; }");var et=V.getColor(Tn.x)||"inherit";o.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+et+"}")})},nD70:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"b",function(){return re});var T=function(){function J(I){this._prefix=I,this._lastId=0}return J.prototype.nextId=function(){return this._prefix+ ++this._lastId},J}(),re=new T("id#")},nlbu:function(Lt,j,e){"use strict";e.d(j,"b",function(){return re}),e.d(j,"d",function(){return J}),e.d(j,"c",function(){return I}),e.d(j,"a",function(){return z});var T=e("N0LK"),re=function(){function O(H){this.value=H}return O.prototype.equals=function(H){return this.value===H.value},O.prototype.contains=function(H){return this.equals(H)||this.value===""||Object(T.N)(H.value,this.value+O.sep)},O.prototype.intersects=function(H){return this.contains(H)||H.contains(this)},O.prototype.append=function(H){return new O(this.value+O.sep+H)},O.sep=".",O.None=new O("@@none@@"),O.Empty=new O(""),O.QuickFix=new O("quickfix"),O.Refactor=new O("refactor"),O.Source=new O("source"),O.SourceOrganizeImports=O.Source.append("organizeImports"),O.SourceFixAll=O.Source.append("fixAll"),O}();function J(O,H){return O.include&&!O.include.intersects(H)||O.excludes&&O.excludes.some(function(x){return U(H,x,O.include)})?!1:!(!O.includeSourceActions&&re.Source.contains(H))}function I(O,H){var x=H.kind?new re(H.kind):void 0;return O.include&&(!x||!O.include.contains(x))||(O.excludes&&(x&&O.excludes.some(function(u){return U(x,u,O.include)}))||!O.includeSourceActions&&(x&&re.Source.contains(x)))?!1:!(O.onlyIncludePreferredActions&&!H.isPreferred)}function U(O,H,x){return H.contains(O)?!(x&&H.contains(x)):!1}var z=function(){function O(H,x,u){this.kind=H,this.apply=x,this.preferred=u}return O.fromUser=function(H,x){return!H||typeof H!="object"?new O(x.kind,x.apply,!1):new O(O.getKindFromUser(H,x.kind),O.getApplyFromUser(H,x.apply),O.getPreferredUser(H))},O.getApplyFromUser=function(H,x){switch(typeof H.apply=="string"?H.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return x}},O.getKindFromUser=function(H,x){return typeof H.kind=="string"?new re(H.kind):x},O.getPreferredUser=function(H){return typeof H.preferred=="boolean"?H.preferred:!1},O}()},nn6Y:function(Lt,j,e){},nnTU:function(Lt,j,e){"use strict";e.d(j,"b",function(){return H}),e.d(j,"a",function(){return x});var T=e("pmY6"),re=e("746U"),J=e("Cg/j"),I=e("MI8n"),U=e("24hK"),z=e("QDVR"),O=function(){for(var u=0,y=0,_=arguments.length;y<_;y++)u+=arguments[y].length;for(var f=Array(u),v=0,y=0;y<_;y++)for(var w=arguments[y],p=0,c=w.length;p<c;p++,v++)f[v]=w[p];return f},H=Object(J.c)("commandService"),x=new(function(){function u(){this._commands=new Map,this._onDidRegisterCommand=new I.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return u.prototype.registerCommand=function(y,_){var f=this;if(!y)throw new Error("invalid command");if(typeof y=="string"){if(!_)throw new Error("invalid command");return this.registerCommand({id:y,handler:_})}if(y.description){for(var v=[],w=0,p=y.description.args;w<p.length;w++){var c=p[w];v.push(c.constraint)}var s=y.handler;y.handler=function(L){for(var A=[],k=1;k<arguments.length;k++)A[k-1]=arguments[k];return Object(re.m)(A,v),s.apply(void 0,O([L],A))}}var l=y.id,d=this._commands.get(l);d||(d=new U.a,this._commands.set(l,d));var m=d.unshift(y),E=Object(T.h)(function(){m();var L=f._commands.get(l);(L==null?void 0:L.isEmpty())&&f._commands.delete(l)});return this._onDidRegisterCommand.fire(l),E},u.prototype.registerCommandAlias=function(y,_){return x.registerCommand(y,function(f){for(var v,w=[],p=1;p<arguments.length;p++)w[p-1]=arguments[p];return(v=f.get(H)).executeCommand.apply(v,O([_],w))})},u.prototype.getCommand=function(y){var _=this._commands.get(y);return!_||_.isEmpty()?void 0:_.iterator().next().value},u.prototype.getCommands=function(){for(var y=new Map,_=0,f=Object(z.d)(this._commands);_<f.length;_++){var v=f[_],w=this.getCommand(v);w&&y.set(v,w)}return y},u}())},nrBJ:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return e.e(199).then(e.bind(null,"eXtt"))}})},nrhi:function(Lt,j,e){"use strict";e.d(j,"a",function(){return z});var T=e("/kV6"),re=e("MNsG"),J=e("nnTU"),I=e("ic2d"),U=function(){function x(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return x.bindToCurrentPlatform=function(u){if(re.a===1){if(u&&u.win)return u.win}else if(re.a===2){if(u&&u.mac)return u.mac}else if(u&&u.linux)return u.linux;return u},x.prototype.registerKeybindingRule=function(u){var y=x.bindToCurrentPlatform(u);if(y&&y.primary){var _=Object(T.f)(y.primary,re.a);_&&this._registerDefaultKeybinding(_,u.id,u.args,u.weight,0,u.when)}if(y&&Array.isArray(y.secondary))for(var f=0,v=y.secondary.length;f<v;f++){var w=y.secondary[f],_=Object(T.f)(w,re.a);_&&this._registerDefaultKeybinding(_,u.id,u.args,u.weight,-f-1,u.when)}},x.prototype.registerCommandAndKeybindingRule=function(u){this.registerKeybindingRule(u),J.a.registerCommand(u)},x._mightProduceChar=function(u){return u>=21&&u<=30||u>=31&&u<=56?!0:u===80||u===81||u===82||u===83||u===84||u===85||u===86||u===110||u===111||u===87||u===88||u===89||u===90||u===91||u===92},x.prototype._assertNoCtrlAlt=function(u,y){u.ctrlKey&&u.altKey&&!u.metaKey&&(x._mightProduceChar(u.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",u," for ",y))},x.prototype._registerDefaultKeybinding=function(u,y,_,f,v,w){re.a===1&&this._assertNoCtrlAlt(u.parts[0],y),this._coreKeybindings.push({keybinding:u,command:y,commandArgs:_,when:w,weight1:f,weight2:v}),this._cachedMergedKeybindings=null},x.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(H)),this._cachedMergedKeybindings.slice(0)},x}(),z=new U,O={EditorModes:"platform.keybindingsRegistry"};I.a.add(O.EditorModes,z);function H(x,u){return x.weight1!==u.weight1?x.weight1-u.weight1:x.command<u.command?-1:x.command>u.command?1:x.weight2-u.weight2}},nuFA:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});var T;(function(re){function J(O,H){if(O.start>=H.end||H.start>=O.end)return{start:0,end:0};var x=Math.max(O.start,H.start),u=Math.min(O.end,H.end);return u-x<=0?{start:0,end:0}:{start:x,end:u}}re.intersect=J;function I(O){return O.end-O.start<=0}re.isEmpty=I;function U(O,H){return!I(J(O,H))}re.intersects=U;function z(O,H){var x=[],u={start:O.start,end:Math.min(H.start,O.end)},y={start:Math.max(H.end,O.start),end:O.end};return I(u)||x.push(u),I(y)||x.push(y),x}re.relativeComplement=z})(T||(T={}))},o39E:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I});var T=e("pmY6"),re=e("EffR"),J=function(){var U=function(O,H){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,u){x.__proto__=u}||function(x,u){for(var y in u)u.hasOwnProperty(y)&&(x[y]=u[y])},U(O,H)};return function(z,O){U(z,O);function H(){this.constructor=z}z.prototype=O===null?Object.create(O):(H.prototype=O.prototype,new H)}}(),I=function(U){J(z,U);function z(O,H,x){var u=U.call(this)||this;return u.referenceDomElement=O,u.changeCallback=x,u.width=-1,u.height=-1,u.mutationObserver=null,u.windowSizeListener=null,u.measureReferenceDomElement(!1,H),u}return z.prototype.dispose=function(){this.stopObserving(),U.prototype.dispose.call(this)},z.prototype.getWidth=function(){return this.width},z.prototype.getHeight=function(){return this.height},z.prototype.startObserving=function(){var O=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver(function(){return O._onDidMutate()}),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=re.j(window,"resize",function(){return O._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(O){this.measureReferenceDomElement(!0,O)},z.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},z.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},z.prototype.measureReferenceDomElement=function(O,H){var x=0,u=0;H?(x=H.width,u=H.height):this.referenceDomElement&&(x=this.referenceDomElement.clientWidth,u=this.referenceDomElement.clientHeight),x=Math.max(5,x),u=Math.max(5,u),(this.width!==x||this.height!==u)&&(this.width=x,this.height=u,O&&this.changeCallback())},z}(T.a)},oAeH:function(Lt,j,e){"use strict";e.d(j,"b",function(){return O}),e.d(j,"a",function(){return H});var T=e("746U"),re=e("Ll0s"),J=e("+Fos"),I=e("1I1M"),U=e("cGHE"),z=e("aokT"),O=function(){function x(){}return x.addCursorDown=function(u,y,_){for(var f=[],v=0,w=0,p=y.length;w<p;w++){var c=y[w];f[v++]=new re.d(c.modelState,c.viewState),_?f[v++]=re.d.fromModelState(J.a.translateDown(u.config,u.model,c.modelState)):f[v++]=re.d.fromViewState(J.a.translateDown(u.config,u.viewModel,c.viewState))}return f},x.addCursorUp=function(u,y,_){for(var f=[],v=0,w=0,p=y.length;w<p;w++){var c=y[w];f[v++]=new re.d(c.modelState,c.viewState),_?f[v++]=re.d.fromModelState(J.a.translateUp(u.config,u.model,c.modelState)):f[v++]=re.d.fromViewState(J.a.translateUp(u.config,u.viewModel,c.viewState))}return f},x.moveToBeginningOfLine=function(u,y,_){for(var f=[],v=0,w=y.length;v<w;v++){var p=y[v];f[v]=this._moveToLineStart(u,p,_)}return f},x._moveToLineStart=function(u,y,_){var f=y.viewState.position.column,v=y.modelState.position.column,w=f===v,p=y.viewState.position.lineNumber,c=u.viewModel.getLineFirstNonWhitespaceColumn(p),s=f===c;return!w&&!s?this._moveToLineStartByView(u,y,_):this._moveToLineStartByModel(u,y,_)},x._moveToLineStartByView=function(u,y,_){return re.d.fromViewState(J.a.moveToBeginningOfLine(u.config,u.viewModel,y.viewState,_))},x._moveToLineStartByModel=function(u,y,_){return re.d.fromModelState(J.a.moveToBeginningOfLine(u.config,u.model,y.modelState,_))},x.moveToEndOfLine=function(u,y,_){for(var f=[],v=0,w=y.length;v<w;v++){var p=y[v];f[v]=this._moveToLineEnd(u,p,_)}return f},x._moveToLineEnd=function(u,y,_){var f=y.viewState.position,v=u.viewModel.getLineMaxColumn(f.lineNumber),w=f.column===v,p=y.modelState.position,c=u.model.getLineMaxColumn(p.lineNumber),s=v-f.column===c-p.column;return w||s?this._moveToLineEndByModel(u,y,_):this._moveToLineEndByView(u,y,_)},x._moveToLineEndByView=function(u,y,_){return re.d.fromViewState(J.a.moveToEndOfLine(u.config,u.viewModel,y.viewState,_))},x._moveToLineEndByModel=function(u,y,_){return re.d.fromModelState(J.a.moveToEndOfLine(u.config,u.model,y.modelState,_))},x.expandLineSelection=function(u,y){for(var _=[],f=0,v=y.length;f<v;f++){var w=y[f],p=w.modelState.selection.startLineNumber,c=u.model.getLineCount(),s=w.modelState.selection.endLineNumber,l=void 0;s===c?l=u.model.getLineMaxColumn(c):(s++,l=1),_[f]=re.d.fromModelState(new re.f(new z.a(p,1,p,1),0,new U.a(s,l),0))}return _},x.moveToBeginningOfBuffer=function(u,y,_){for(var f=[],v=0,w=y.length;v<w;v++){var p=y[v];f[v]=re.d.fromModelState(J.a.moveToBeginningOfBuffer(u.config,u.model,p.modelState,_))}return f},x.moveToEndOfBuffer=function(u,y,_){for(var f=[],v=0,w=y.length;v<w;v++){var p=y[v];f[v]=re.d.fromModelState(J.a.moveToEndOfBuffer(u.config,u.model,p.modelState,_))}return f},x.selectAll=function(u,y){var _=u.model.getLineCount(),f=u.model.getLineMaxColumn(_);return re.d.fromModelState(new re.f(new z.a(1,1,1,1),0,new U.a(_,f),0))},x.line=function(u,y,_,f,v){var w=u.model.validatePosition(f),p=v?u.validateViewPosition(new U.a(v.lineNumber,v.column),w):u.convertModelPositionToViewPosition(w);if(!_||!y.modelState.hasSelection()){var c=u.model.getLineCount(),s=w.lineNumber+1,l=1;return s>c&&(s=c,l=u.model.getLineMaxColumn(s)),re.d.fromModelState(new re.f(new z.a(w.lineNumber,1,s,l),0,new U.a(s,l),0))}var d=y.modelState.selectionStart.getStartPosition().lineNumber;if(w.lineNumber<d)return re.d.fromViewState(y.viewState.move(y.modelState.hasSelection(),p.lineNumber,1,0));if(w.lineNumber>d){var c=u.viewModel.getLineCount(),m=p.lineNumber+1,E=1;return m>c&&(m=c,E=u.viewModel.getLineMaxColumn(m)),re.d.fromViewState(y.viewState.move(y.modelState.hasSelection(),m,E,0))}else{var L=y.modelState.selectionStart.getEndPosition();return re.d.fromModelState(y.modelState.move(y.modelState.hasSelection(),L.lineNumber,L.column,0))}},x.word=function(u,y,_,f){var v=u.model.validatePosition(f);return re.d.fromModelState(I.a.word(u.config,u.model,y.modelState,_,v))},x.cancelSelection=function(u,y){if(!y.modelState.hasSelection())return new re.d(y.modelState,y.viewState);var _=y.viewState.position.lineNumber,f=y.viewState.position.column;return re.d.fromViewState(new re.f(new z.a(_,f,_,f),0,new U.a(_,f),0))},x.moveTo=function(u,y,_,f,v){var w=u.model.validatePosition(f),p=v?u.validateViewPosition(new U.a(v.lineNumber,v.column),w):u.convertModelPositionToViewPosition(w);return re.d.fromViewState(y.viewState.move(_,p.lineNumber,p.column,0))},x.move=function(u,y,_){var f=_.select,v=_.value;switch(_.direction){case 0:return _.unit===4?this._moveHalfLineLeft(u,y,f):this._moveLeft(u,y,f,v);case 1:return _.unit===4?this._moveHalfLineRight(u,y,f):this._moveRight(u,y,f,v);case 2:return _.unit===2?this._moveUpByViewLines(u,y,f,v):this._moveUpByModelLines(u,y,f,v);case 3:return _.unit===2?this._moveDownByViewLines(u,y,f,v):this._moveDownByModelLines(u,y,f,v);case 4:return this._moveToViewMinColumn(u,y,f);case 5:return this._moveToViewFirstNonWhitespaceColumn(u,y,f);case 6:return this._moveToViewCenterColumn(u,y,f);case 7:return this._moveToViewMaxColumn(u,y,f);case 8:return this._moveToViewLastNonWhitespaceColumn(u,y,f);case 9:{var w=y[0],p=u.getCompletelyVisibleModelRange(),c=this._firstLineNumberInRange(u.model,p,v),s=u.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(u,w,f,c,s)]}case 11:{var w=y[0],p=u.getCompletelyVisibleModelRange(),c=this._lastLineNumberInRange(u.model,p,v),s=u.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(u,w,f,c,s)]}case 10:{var w=y[0],p=u.getCompletelyVisibleModelRange(),c=Math.round((p.startLineNumber+p.endLineNumber)/2),s=u.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(u,w,f,c,s)]}case 12:{for(var l=u.getCompletelyVisibleViewRange(),d=[],m=0,E=y.length;m<E;m++){var w=y[m];d[m]=this.findPositionInViewportIfOutside(u,w,l,f)}return d}}return null},x.findPositionInViewportIfOutside=function(u,y,_,f){var v=y.viewState.position.lineNumber;if(_.startLineNumber<=v&&v<=_.endLineNumber-1)return new re.d(y.modelState,y.viewState);v>_.endLineNumber-1&&(v=_.endLineNumber-1),v<_.startLineNumber&&(v=_.startLineNumber);var w=u.viewModel.getLineFirstNonWhitespaceColumn(v);return this._moveToViewPosition(u,y,f,v,w)},x._firstLineNumberInRange=function(u,y,_){var f=y.startLineNumber;return y.startColumn!==u.getLineMinColumn(f)&&f++,Math.min(y.endLineNumber,f+_-1)},x._lastLineNumberInRange=function(u,y,_){var f=y.startLineNumber;return y.startColumn!==u.getLineMinColumn(f)&&f++,Math.max(f,y.endLineNumber-_+1)},x._moveLeft=function(u,y,_,f){for(var v=[],w=0,p=y.length;w<p;w++){var c=y[w],s=J.a.moveLeft(u.config,u.viewModel,c.viewState,_,f);if(f===1&&s.position.lineNumber!==c.viewState.position.lineNumber){var l=u.viewModel.coordinatesConverter.convertViewPositionToModelPosition(s.position);l.lineNumber===c.modelState.position.lineNumber&&(s=J.a.moveLeft(u.config,u.viewModel,s,_,1))}v[w]=re.d.fromViewState(s)}return v},x._moveHalfLineLeft=function(u,y,_){for(var f=[],v=0,w=y.length;v<w;v++){var p=y[v],c=p.viewState.position.lineNumber,s=Math.round(u.viewModel.getLineContent(c).length/2);f[v]=re.d.fromViewState(J.a.moveLeft(u.config,u.viewModel,p.viewState,_,s))}return f},x._moveRight=function(u,y,_,f){for(var v=[],w=0,p=y.length;w<p;w++){var c=y[w],s=J.a.moveRight(u.config,u.viewModel,c.viewState,_,f);if(f===1&&s.position.lineNumber!==c.viewState.position.lineNumber){var l=u.viewModel.coordinatesConverter.convertViewPositionToModelPosition(s.position);l.lineNumber===c.modelState.position.lineNumber&&(s=J.a.moveRight(u.config,u.viewModel,s,_,1))}v[w]=re.d.fromViewState(s)}return v},x._moveHalfLineRight=function(u,y,_){for(var f=[],v=0,w=y.length;v<w;v++){var p=y[v],c=p.viewState.position.lineNumber,s=Math.round(u.viewModel.getLineContent(c).length/2);f[v]=re.d.fromViewState(J.a.moveRight(u.config,u.viewModel,p.viewState,_,s))}return f},x._moveDownByViewLines=function(u,y,_,f){for(var v=[],w=0,p=y.length;w<p;w++){var c=y[w];v[w]=re.d.fromViewState(J.a.moveDown(u.config,u.viewModel,c.viewState,_,f))}return v},x._moveDownByModelLines=function(u,y,_,f){for(var v=[],w=0,p=y.length;w<p;w++){var c=y[w];v[w]=re.d.fromModelState(J.a.moveDown(u.config,u.model,c.modelState,_,f))}return v},x._moveUpByViewLines=function(u,y,_,f){for(var v=[],w=0,p=y.length;w<p;w++){var c=y[w];v[w]=re.d.fromViewState(J.a.moveUp(u.config,u.viewModel,c.viewState,_,f))}return v},x._moveUpByModelLines=function(u,y,_,f){for(var v=[],w=0,p=y.length;w<p;w++){var c=y[w];v[w]=re.d.fromModelState(J.a.moveUp(u.config,u.model,c.modelState,_,f))}return v},x._moveToViewPosition=function(u,y,_,f,v){return re.d.fromViewState(y.viewState.move(_,f,v,0))},x._moveToModelPosition=function(u,y,_,f,v){return re.d.fromModelState(y.modelState.move(_,f,v,0))},x._moveToViewMinColumn=function(u,y,_){for(var f=[],v=0,w=y.length;v<w;v++){var p=y[v],c=p.viewState.position.lineNumber,s=u.viewModel.getLineMinColumn(c);f[v]=this._moveToViewPosition(u,p,_,c,s)}return f},x._moveToViewFirstNonWhitespaceColumn=function(u,y,_){for(var f=[],v=0,w=y.length;v<w;v++){var p=y[v],c=p.viewState.position.lineNumber,s=u.viewModel.getLineFirstNonWhitespaceColumn(c);f[v]=this._moveToViewPosition(u,p,_,c,s)}return f},x._moveToViewCenterColumn=function(u,y,_){for(var f=[],v=0,w=y.length;v<w;v++){var p=y[v],c=p.viewState.position.lineNumber,s=Math.round((u.viewModel.getLineMaxColumn(c)+u.viewModel.getLineMinColumn(c))/2);f[v]=this._moveToViewPosition(u,p,_,c,s)}return f},x._moveToViewMaxColumn=function(u,y,_){for(var f=[],v=0,w=y.length;v<w;v++){var p=y[v],c=p.viewState.position.lineNumber,s=u.viewModel.getLineMaxColumn(c);f[v]=this._moveToViewPosition(u,p,_,c,s)}return f},x._moveToViewLastNonWhitespaceColumn=function(u,y,_){for(var f=[],v=0,w=y.length;v<w;v++){var p=y[v],c=p.viewState.position.lineNumber,s=u.viewModel.getLineLastNonWhitespaceColumn(c);f[v]=this._moveToViewPosition(u,p,_,c,s)}return f},x}(),H;(function(x){var u=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};x.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:u,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}}}}]},x.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"},x.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function y(_){if(!_.to)return null;var f;switch(_.to){case x.RawDirection.Left:f=0;break;case x.RawDirection.Right:f=1;break;case x.RawDirection.Up:f=2;break;case x.RawDirection.Down:f=3;break;case x.RawDirection.WrappedLineStart:f=4;break;case x.RawDirection.WrappedLineFirstNonWhitespaceCharacter:f=5;break;case x.RawDirection.WrappedLineColumnCenter:f=6;break;case x.RawDirection.WrappedLineEnd:f=7;break;case x.RawDirection.WrappedLineLastNonWhitespaceCharacter:f=8;break;case x.RawDirection.ViewPortTop:f=9;break;case x.RawDirection.ViewPortBottom:f=11;break;case x.RawDirection.ViewPortCenter:f=10;break;case x.RawDirection.ViewPortIfOutside:f=12;break;default:return null}var v=0;switch(_.by){case x.RawUnit.Line:v=1;break;case x.RawUnit.WrappedLine:v=2;break;case x.RawUnit.Character:v=3;break;case x.RawUnit.HalfLine:v=4;break}return{direction:f,unit:v,select:!!_.select,value:_.value||1}}x.parse=y})(H||(H={}))},oKJv:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return e.e(173).then(e.bind(null,"HGU1"))}})},oQaD:function(Lt,j,e){"use strict";e.r(j),e.d(j,"getSelectionSearchString",function(){return M}),e.d(j,"CommonFindController",function(){return P}),e.d(j,"FindController",function(){return Z}),e.d(j,"StartFindAction",function(){return Ae}),e.d(j,"StartFindWithSelectionAction",function(){return xe}),e.d(j,"MatchFindAction",function(){return Ne}),e.d(j,"NextMatchFindAction",function(){return dt}),e.d(j,"NextMatchFindAction2",function(){return ht}),e.d(j,"PreviousMatchFindAction",function(){return xt}),e.d(j,"PreviousMatchFindAction2",function(){return Bt}),e.d(j,"SelectionMatchFindAction",function(){return Ht}),e.d(j,"NextSelectionMatchFindAction",function(){return Ut}),e.d(j,"PreviousSelectionMatchFindAction",function(){return oo}),e.d(j,"StartFindReplaceAction",function(){return Zt});var T=e("3/fG"),re=e("X+cX"),J=e("pmY6"),I=e("N0LK"),U=e("sswD"),z=e("wQH0"),O=e("LCkn"),H=e("cGHE"),x=e("aokT"),u=e("gCVg"),y=e("jAJ/"),_=e("M1Kb"),f=e("tX9W"),v=e("MD5Z"),w=e("t9D7"),p=function(){function yt(He){this._editor=He,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(He){this._startPosition=He,this.setCurrentFindMatch(null)},yt.prototype._getDecorationIndex=function(He){var Oe=this._decorations.indexOf(He);return Oe>=0?Oe+1:1},yt.prototype.getCurrentMatchesPosition=function(He){for(var Oe=this._editor.getModel().getDecorationsInRange(He),rt=0,It=Oe;rt<It.length;rt++){var pe=It[rt],D=pe.options;if(D===yt._FIND_MATCH_DECORATION||D===yt._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(pe.id)}return 1},yt.prototype.setCurrentFindMatch=function(He){var Oe=this,rt=null,It=0;if(He)for(var pe=0,D=this._decorations.length;pe<D;pe++){var ye=this._editor.getModel().getDecorationRange(this._decorations[pe]);if(He.equalsRange(ye)){rt=this._decorations[pe],It=pe+1;break}}return(this._highlightedDecorationId!==null||rt!==null)&&this._editor.changeDecorations(function(We){if(Oe._highlightedDecorationId!==null&&(We.changeDecorationOptions(Oe._highlightedDecorationId,yt._FIND_MATCH_DECORATION),Oe._highlightedDecorationId=null),rt!==null&&(Oe._highlightedDecorationId=rt,We.changeDecorationOptions(Oe._highlightedDecorationId,yt._CURRENT_FIND_MATCH_DECORATION)),Oe._rangeHighlightDecorationId!==null&&(We.removeDecoration(Oe._rangeHighlightDecorationId),Oe._rangeHighlightDecorationId=null),rt!==null){var Ze=Oe._editor.getModel().getDecorationRange(rt);if(Ze.startLineNumber!==Ze.endLineNumber&&Ze.endColumn===1){var st=Ze.endLineNumber-1,mt=Oe._editor.getModel().getLineMaxColumn(st);Ze=new x.a(Ze.startLineNumber,Ze.startColumn,st,mt)}Oe._rangeHighlightDecorationId=We.addDecoration(Ze,yt._RANGE_HIGHLIGHT_DECORATION)}}),It},yt.prototype.set=function(He,Oe){var rt=this;this._editor.changeDecorations(function(It){var pe=yt._FIND_MATCH_DECORATION,D=[];if(He.length>1e3){pe=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)),mt=He[0].range.startLineNumber,Kt=He[0].range.endLineNumber,Xt=1,no=He.length;Xt<no;Xt++){var vo=He[Xt].range;Kt+st>=vo.startLineNumber?vo.endLineNumber>Kt&&(Kt=vo.endLineNumber):(D.push({range:new x.a(mt,1,Kt,1),options:yt._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),mt=vo.startLineNumber,Kt=vo.endLineNumber)}D.push({range:new x.a(mt,1,Kt,1),options:yt._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var lo=new Array(He.length),Xt=0,no=He.length;Xt<no;Xt++)lo[Xt]={range:He[Xt].range,options:pe};rt._decorations=It.deltaDecorations(rt._decorations,lo),rt._overviewRulerApproximateDecorations=It.deltaDecorations(rt._overviewRulerApproximateDecorations,D),rt._rangeHighlightDecorationId&&(It.removeDecoration(rt._rangeHighlightDecorationId),rt._rangeHighlightDecorationId=null),rt._findScopeDecorationId&&(It.removeDecoration(rt._findScopeDecorationId),rt._findScopeDecorationId=null),Oe&&(rt._findScopeDecorationId=It.addDecoration(Oe,yt._FIND_SCOPE_DECORATION))})},yt.prototype.matchBeforePosition=function(He){if(this._decorations.length===0)return null;for(var Oe=this._decorations.length-1;Oe>=0;Oe--){var rt=this._decorations[Oe],It=this._editor.getModel().getDecorationRange(rt);if(!It||It.endLineNumber>He.lineNumber)continue;if(It.endLineNumber<He.lineNumber)return It;if(It.endColumn>He.column)continue;return It}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},yt.prototype.matchAfterPosition=function(He){if(this._decorations.length===0)return null;for(var Oe=0,rt=this._decorations.length;Oe<rt;Oe++){var It=this._decorations[Oe],pe=this._editor.getModel().getDecorationRange(It);if(!pe||pe.startLineNumber<He.lineNumber)continue;if(pe.startLineNumber>He.lineNumber)return pe;if(pe.startColumn<He.column)continue;return pe}return this._editor.getModel().getDecorationRange(this._decorations[0])},yt.prototype._allDecorations=function(){var He=[];return He=He.concat(this._decorations),He=He.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&He.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&He.push(this._rangeHighlightDecorationId),He},yt._CURRENT_FIND_MATCH_DECORATION=f.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(w.f)(v.Lb),position:_.d.Center},minimap:{color:Object(w.f)(v.Hb),position:_.c.Inline}}),yt._FIND_MATCH_DECORATION=f.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(w.f)(v.Lb),position:_.d.Center},minimap:{color:Object(w.f)(v.Hb),position:_.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(w.f)(v.Lb),position:_.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}(),c=function(){function yt(He,Oe,rt){this._editorSelection=He,this._ranges=Oe,this._replaceStrings=rt,this._trackedEditorSelectionId=null}return yt.prototype.getEditOperations=function(He,Oe){if(this._ranges.length>0){for(var rt=[],It=0;It<this._ranges.length;It++)rt.push({range:this._ranges[It],text:this._replaceStrings[It]});rt.sort(function(st,mt){return x.a.compareRangesUsingStarts(st.range,mt.range)});for(var pe=[],D=rt[0],It=1;It<rt.length;It++)D.range.endLineNumber===rt[It].range.startLineNumber&&D.range.endColumn===rt[It].range.startColumn?(D.range=D.range.plusRange(rt[It].range),D.text=D.text+rt[It].text):(pe.push(D),D=rt[It]);pe.push(D);for(var ye=0,We=pe;ye<We.length;ye++){var Ze=We[ye];Oe.addEditOperation(Ze.range,Ze.text)}}this._trackedEditorSelectionId=Oe.trackSelection(this._editorSelection)},yt.prototype.computeCursorState=function(He,Oe){return Oe.getTrackedSelection(this._trackedEditorSelectionId)},yt}();function s(yt,He){if(yt&&yt[0]!==""){var Oe=l(yt,He,"-"),rt=l(yt,He,"_");return Oe&&!rt?d(yt,He,"-"):!Oe&&rt?d(yt,He,"_"):yt[0].toUpperCase()===yt[0]?He.toUpperCase():yt[0].toLowerCase()===yt[0]?He.toLowerCase():I.j(yt[0][0])?He[0].toUpperCase()+He.substr(1):He}else return He}function l(yt,He,Oe){var rt=yt[0].indexOf(Oe)!==-1&&He.indexOf(Oe)!==-1;return rt&&yt[0].split(Oe).length===He.split(Oe).length}function d(yt,He,Oe){var rt=He.split(Oe),It=yt[0].split(Oe),pe="";return rt.forEach(function(D,ye){pe+=s([It[ye]],D)+Oe}),pe.slice(0,-1)}var m=function(){function yt(He){this.staticValue=He,this.kind=0}return yt}(),E=function(){function yt(He){this.pieces=He,this.kind=1}return yt}(),L=function(){function yt(He){!He||He.length===0?this._state=new m(""):He.length===1&&He[0].staticValue!==null?this._state=new m(He[0].staticValue):this._state=new E(He)}return yt.fromStaticValue=function(He){return new yt([A.staticValue(He)])},Object.defineProperty(yt.prototype,"hasReplacementPatterns",{get:function(){return this._state.kind===1},enumerable:!0,configurable:!0}),yt.prototype.buildReplaceString=function(He,Oe){if(this._state.kind===0)return Oe?s(He,this._state.staticValue):this._state.staticValue;for(var rt="",It=0,pe=this._state.pieces.length;It<pe;It++){var D=this._state.pieces[It];if(D.staticValue!==null){rt+=D.staticValue;continue}rt+=yt._substitute(D.matchIndex,He)}return rt},yt._substitute=function(He,Oe){if(Oe===null)return"";if(He===0)return Oe[0];for(var rt="";He>0;){if(He<Oe.length){var It=Oe[He]||"";return It+rt}rt=String(He%10)+rt,He=Math.floor(He/10)}return"$"+rt},yt}(),A=function(){function yt(He,Oe){this.staticValue=He,this.matchIndex=Oe}return yt.staticValue=function(He){return new yt(He,-1)},yt.matchIndex=function(He){return new yt(null,He)},yt}(),k=function(){function yt(He){this._source=He,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return yt.prototype.emitUnchanged=function(He){this._emitStatic(this._source.substring(this._lastCharIndex,He)),this._lastCharIndex=He},yt.prototype.emitStatic=function(He,Oe){this._emitStatic(He),this._lastCharIndex=Oe},yt.prototype._emitStatic=function(He){if(He.length===0)return;this._currentStaticPiece+=He},yt.prototype.emitMatchIndex=function(He,Oe){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=A.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=A.matchIndex(He),this._lastCharIndex=Oe},yt.prototype.finalize=function(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=A.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new L(this._result)},yt}();function R(yt){if(!yt||yt.length===0)return new L(null);for(var He=new k(yt),Oe=0,rt=yt.length;Oe<rt;Oe++){var It=yt.charCodeAt(Oe);if(It===92){if(Oe++,Oe>=rt)break;var pe=yt.charCodeAt(Oe);switch(pe){case 92:He.emitUnchanged(Oe-1),He.emitStatic("\\",Oe+1);break;case 110:He.emitUnchanged(Oe-1),He.emitStatic(`
`,Oe+1);break;case 116:He.emitUnchanged(Oe-1),He.emitStatic(" ",Oe+1);break}continue}if(It===36){if(Oe++,Oe>=rt)break;var pe=yt.charCodeAt(Oe);if(pe===36){He.emitUnchanged(Oe-1),He.emitStatic("$",Oe+1);continue}if(pe===48||pe===38){He.emitUnchanged(Oe-1),He.emitMatchIndex(0,Oe+1);continue}if(49<=pe&&pe<=57){var D=pe-48;if(Oe+1<rt){var ye=yt.charCodeAt(Oe+1);if(48<=ye&&ye<=57){Oe++,D=D*10+(ye-48),He.emitUnchanged(Oe-2),He.emitMatchIndex(D,Oe+1);continue}}He.emitUnchanged(Oe-1),He.emitMatchIndex(D,Oe+1);continue}}}return He.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}},Ce={primary:512|53,mac:{primary:2048|512|53}},Me={primary:512|48,mac:{primary:2048|512|48}},Te={primary:512|42,mac:{primary:2048|512|42}},Fe={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"},Ue=19999,Pe=240,ne=function(){function yt(He,Oe){var rt=this;this._toDispose=new J.b,this._editor=He,this._state=Oe,this._isDisposed=!1,this._startSearchingTimer=new re.e,this._decorations=new p(He),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(It){(It.reason===3||It.reason===5||It.reason===6)&&rt._decorations.setStartPosition(rt._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(function(It){if(rt._ignoreModelContentChanged)return;It.isFlush&&rt._decorations.reset(),rt._decorations.setStartPosition(rt._editor.getPosition()),rt._updateDecorationsScheduler.schedule()})),this._toDispose.add(this._state.onFindReplaceStateChange(function(It){return rt._onStateChanged(It)})),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(He){var Oe=this;if(this._isDisposed)return;if(!this._editor.hasModel())return;if(He.searchString||He.isReplaceRevealed||He.isRegex||He.wholeWord||He.matchCase||He.searchScope){var rt=this._editor.getModel();rt.isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(function(){He.searchScope?Oe.research(He.moveCursor,Oe._state.searchScope):Oe.research(He.moveCursor)},Pe)):He.searchScope?this.research(He.moveCursor,this._state.searchScope):this.research(He.moveCursor)}},yt._getSearchRange=function(He,Oe){return Oe||He.getFullModelRange()},yt.prototype.research=function(He,Oe){var rt=null;typeof Oe!="undefined"?rt=Oe:rt=this._decorations.getFindScope(),rt!==null&&(rt.startLineNumber!==rt.endLineNumber&&(rt.endColumn===1?rt=new x.a(rt.startLineNumber,1,rt.endLineNumber-1,this._editor.getModel().getLineMaxColumn(rt.endLineNumber-1)):rt=new x.a(rt.startLineNumber,1,rt.endLineNumber,this._editor.getModel().getLineMaxColumn(rt.endLineNumber))));var It=this._findMatches(rt,!1,Ue);this._decorations.set(It,rt),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),He&&this._moveToNextMatch(this._decorations.getStartPosition())},yt.prototype._hasMatches=function(){return this._state.matchesCount>0},yt.prototype._cannotFind=function(){if(!this._hasMatches()){var He=this._decorations.getFindScope();return He&&this._editor.revealRangeInCenterIfOutsideViewport(He,0),!0}return!1},yt.prototype._setCurrentFindMatch=function(He){var Oe=this._decorations.setCurrentFindMatch(He);this._state.changeMatchInfo(Oe,this._decorations.getCount(),He),this._editor.setSelection(He),this._editor.revealRangeInCenterIfOutsideViewport(He,0)},yt.prototype._prevSearchPosition=function(He){var Oe=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),rt=He.lineNumber,It=He.column,pe=this._editor.getModel();return Oe||It===1?(rt===1?rt=pe.getLineCount():rt--,It=pe.getLineMaxColumn(rt)):It--,new H.a(rt,It)},yt.prototype._moveToPrevMatch=function(He,Oe){if(Oe===void 0&&(Oe=!1),this._decorations.getCount()<Ue){var rt=this._decorations.matchBeforePosition(He);rt&&rt.isEmpty()&&rt.getStartPosition().equals(He)&&(He=this._prevSearchPosition(He),rt=this._decorations.matchBeforePosition(He)),rt&&this._setCurrentFindMatch(rt);return}if(this._cannotFind())return;var It=this._decorations.getFindScope(),pe=yt._getSearchRange(this._editor.getModel(),It);pe.getEndPosition().isBefore(He)&&(He=pe.getEndPosition()),He.isBefore(pe.getStartPosition())&&(He=pe.getEndPosition());var D=He.lineNumber,ye=He.column,We=this._editor.getModel(),Ze=new H.a(D,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(!Oe&&!pe.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(He){var Oe=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),rt=He.lineNumber,It=He.column,pe=this._editor.getModel();return Oe||It===pe.getLineMaxColumn(rt)?(rt===pe.getLineCount()?rt=1:rt++,It=1):It++,new H.a(rt,It)},yt.prototype._moveToNextMatch=function(He){if(this._decorations.getCount()<Ue){var Oe=this._decorations.matchAfterPosition(He);Oe&&Oe.isEmpty()&&Oe.getStartPosition().equals(He)&&(He=this._nextSearchPosition(He),Oe=this._decorations.matchAfterPosition(He)),Oe&&this._setCurrentFindMatch(Oe);return}var rt=this._getNextMatch(He,!1,!0);rt&&this._setCurrentFindMatch(rt.range)},yt.prototype._getNextMatch=function(He,Oe,rt,It){if(It===void 0&&(It=!1),this._cannotFind())return null;var pe=this._decorations.getFindScope(),D=yt._getSearchRange(this._editor.getModel(),pe);D.getEndPosition().isBefore(He)&&(He=D.getStartPosition()),He.isBefore(D.getStartPosition())&&(He=D.getStartPosition());var ye=He.lineNumber,We=He.column,Ze=this._editor.getModel(),st=new H.a(ye,We),mt=Ze.findNextMatch(this._state.searchString,st,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Oe);return rt&&mt&&mt.range.isEmpty()&&mt.range.getStartPosition().equals(st)&&(st=this._nextSearchPosition(st),mt=Ze.findNextMatch(this._state.searchString,st,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Oe)),mt?!It&&!D.containsRange(mt.range)?this._getNextMatch(mt.range.getEndPosition(),Oe,rt,!0):mt:null},yt.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},yt.prototype._getReplacePattern=function(){return this._state.isRegex?R(this._state.replaceString):L.fromStaticValue(this._state.replaceString)},yt.prototype.replace=function(){if(!this._hasMatches())return;var He=this._getReplacePattern(),Oe=this._editor.getSelection(),rt=this._getNextMatch(Oe.getStartPosition(),!0,!1);if(rt)if(Oe.equalsRange(rt.range)){var It=He.buildReplaceString(rt.matches,this._state.preserveCase),pe=new O.a(Oe,It);this._executeEditorCommand("replace",pe),this._decorations.setStartPosition(new H.a(Oe.startLineNumber,Oe.startColumn+It.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(rt.range)},yt.prototype._findMatches=function(He,Oe,rt){var It=yt._getSearchRange(this._editor.getModel(),He);return this._editor.getModel().findMatches(this._state.searchString,It,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Oe,rt)},yt.prototype.replaceAll=function(){if(!this._hasMatches())return;var He=this._decorations.getFindScope();He===null&&this._state.matchesCount>=Ue?this._largeReplaceAll():this._regularReplaceAll(He),this.research(!1)},yt.prototype._largeReplaceAll=function(){var He=new y.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null),Oe=He.parseSearchRequest();if(!Oe)return;var rt=Oe.regex;if(!rt.multiline){var It="mu";rt.ignoreCase&&(It+="i"),rt.global&&(It+="g"),rt=new RegExp(rt.source,It)}var pe=this._editor.getModel(),D=pe.getValue(1),ye=pe.getFullModelRange(),We=this._getReplacePattern(),Ze,st=this._state.preserveCase;We.hasReplacementPatterns||st?Ze=D.replace(rt,function(){return We.buildReplaceString(arguments,st)}):Ze=D.replace(rt,We.buildReplaceString(null,st));var mt=new O.b(ye,Ze,this._editor.getSelection());this._executeEditorCommand("replaceAll",mt)},yt.prototype._regularReplaceAll=function(He){for(var Oe=this._getReplacePattern(),rt=this._findMatches(He,Oe.hasReplacementPatterns||this._state.preserveCase,1073741824),It=[],pe=0,D=rt.length;pe<D;pe++)It[pe]=Oe.buildReplaceString(rt[pe].matches,this._state.preserveCase);var ye=new c(this._editor.getSelection(),rt.map(function(We){return We.range}),It);this._executeEditorCommand("replaceAll",ye)},yt.prototype.selectAllMatches=function(){if(!this._hasMatches())return;for(var He=this._decorations.getFindScope(),Oe=this._findMatches(He,!1,1073741824),rt=Oe.map(function(We){return new u.a(We.range.startLineNumber,We.range.startColumn,We.range.endLineNumber,We.range.endColumn)}),It=this._editor.getSelection(),pe=0,D=rt.length;pe<D;pe++){var ye=rt[pe];if(ye.equalsRange(It)){rt=[It].concat(rt.slice(0,pe)).concat(rt.slice(pe+1));break}}this._editor.setSelections(rt)},yt.prototype._executeEditorCommand=function(He,Oe){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(He,Oe),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},yt}(),ee=e("EffR"),ae=e("iJk1"),q=e("G300"),ue=e("zrhQ"),X=e("MI8n"),he=e("qj0h"),je=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),Xe={inputActiveOptionBorder:ue.a.fromHex("#007ACC00"),inputActiveOptionBackground:ue.a.fromHex("#0E639C50")},me=function(yt){je(He,yt);function He(Oe){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(Oe),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(It){rt.checked=!rt._checked,rt._onChange.fire(!1),It.preventDefault()}),rt.ignoreGesture(rt.domNode),rt.onkeydown(rt.domNode,function(It){if(It.keyCode===10||It.keyCode===3){rt.checked=!rt._checked,rt._onChange.fire(!0),It.preventDefault();return}rt._onKeyDown.fire(It)}),rt}return Object.defineProperty(He.prototype,"enabled",{get:function(){return this.domNode.getAttribute("aria-disabled")!=="true"},enumerable:!0,configurable:!0}),He.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(He.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}),He.prototype.width=function(){return 2+2+2+16},He.prototype.style=function(Oe){Oe.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=Oe.inputActiveOptionBorder),Oe.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=Oe.inputActiveOptionBackground),this.applyStyles()},He.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")},He.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},He.prototype.disable=function(){ee.S(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},He}(q.a),ge=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),we=T.a("caseDescription","Match Case"),Re=T.a("wordsDescription","Match Whole Word"),Ee=T.a("regexDescription","Use Regular Expression"),ve=function(yt){ge(He,yt);function He(Oe){return yt.call(this,{actionClassName:"codicon-case-sensitive",title:we+Oe.appendTitle,isChecked:Oe.isChecked,inputActiveOptionBorder:Oe.inputActiveOptionBorder,inputActiveOptionBackground:Oe.inputActiveOptionBackground})||this}return He}(me),Q=function(yt){ge(He,yt);function He(Oe){return yt.call(this,{actionClassName:"codicon-whole-word",title:Re+Oe.appendTitle,isChecked:Oe.isChecked,inputActiveOptionBorder:Oe.inputActiveOptionBorder,inputActiveOptionBackground:Oe.inputActiveOptionBackground})||this}return He}(me),C=function(yt){ge(He,yt);function He(Oe){return yt.call(this,{actionClassName:"codicon-regex",title:Ee+Oe.appendTitle,isChecked:Oe.isChecked,inputActiveOptionBorder:Oe.inputActiveOptionBorder,inputActiveOptionBackground:Oe.inputActiveOptionBackground})||this}return He}(me),F=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),se=function(yt){F(He,yt);function He(Oe,rt,It,pe){var D=yt.call(this)||this;D._hideSoon=D._register(new re.d(function(){return D._hide()},2e3)),D._isVisible=!1,D._editor=Oe,D._state=rt,D._keybindingService=It,D._domNode=document.createElement("div"),D._domNode.className="findOptionsWidget",D._domNode.style.display="none",D._domNode.style.top="10px",D._domNode.setAttribute("role","presentation"),D._domNode.setAttribute("aria-hidden","true");var ye=pe.getTheme().getColor(v.Y),We=pe.getTheme().getColor(v.X);return D.caseSensitive=D._register(new ve({appendTitle:D._keybindingLabelFor(Fe.ToggleCaseSensitiveCommand),isChecked:D._state.matchCase,inputActiveOptionBorder:ye,inputActiveOptionBackground:We})),D._domNode.appendChild(D.caseSensitive.domNode),D._register(D.caseSensitive.onChange(function(){D._state.change({matchCase:D.caseSensitive.checked},!1)})),D.wholeWords=D._register(new Q({appendTitle:D._keybindingLabelFor(Fe.ToggleWholeWordCommand),isChecked:D._state.wholeWord,inputActiveOptionBorder:ye,inputActiveOptionBackground:We})),D._domNode.appendChild(D.wholeWords.domNode),D._register(D.wholeWords.onChange(function(){D._state.change({wholeWord:D.wholeWords.checked},!1)})),D.regex=D._register(new C({appendTitle:D._keybindingLabelFor(Fe.ToggleRegexCommand),isChecked:D._state.isRegex,inputActiveOptionBorder:ye,inputActiveOptionBackground:We})),D._domNode.appendChild(D.regex.domNode),D._register(D.regex.onChange(function(){D._state.change({isRegex:D.regex.checked},!1)})),D._editor.addOverlayWidget(D),D._register(D._state.onFindReplaceStateChange(function(Ze){var st=!1;Ze.isRegex&&(D.regex.checked=D._state.isRegex,st=!0),Ze.wholeWord&&(D.wholeWords.checked=D._state.wholeWord,st=!0),Ze.matchCase&&(D.caseSensitive.checked=D._state.matchCase,st=!0),!D._state.isRevealed&&st&&D._revealTemporarily()})),D._register(ee.k(D._domNode,function(Ze){return D._onMouseOut()})),D._register(ee.j(D._domNode,"mouseover",function(Ze){return D._onMouseOver()})),D._applyTheme(pe.getTheme()),D._register(pe.onThemeChange(D._applyTheme.bind(D))),D}return He.prototype._keybindingLabelFor=function(Oe){var rt=this._keybindingService.lookupKeybinding(Oe);return rt?" ("+rt.getLabel()+")":""},He.prototype.dispose=function(){this._editor.removeOverlayWidget(this),yt.prototype.dispose.call(this)},He.prototype.getId=function(){return He.ID},He.prototype.getDomNode=function(){return this._domNode},He.prototype.getPosition=function(){return{preference:0}},He.prototype.highlightFindOptions=function(){this._revealTemporarily()},He.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},He.prototype._onMouseOut=function(){this._hideSoon.schedule()},He.prototype._onMouseOver=function(){this._hideSoon.cancel()},He.prototype._show=function(){if(this._isVisible)return;this._isVisible=!0,this._domNode.style.display="block"},He.prototype._hide=function(){if(!this._isVisible)return;this._isVisible=!1,this._domNode.style.display="none"},He.prototype._applyTheme=function(Oe){var rt={inputActiveOptionBorder:Oe.getColor(v.Y),inputActiveOptionBackground:Oe.getColor(v.X)};this.caseSensitive.style(rt),this.wholeWords.style(rt),this.regex.style(rt)},He.ID="editor.contrib.findOptionsWidget",He}(q.a);Object(w.e)(function(yt,He){var Oe=yt.getColor(v.Q);Oe&&He.addRule(".monaco-editor .findOptionsWidget { background-color: "+Oe+"; }");var rt=yt.getColor(v.S);rt&&He.addRule(".monaco-editor .findOptionsWidget { color: "+rt+"; }");var It=yt.getColor(v.hc);It&&He.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+It+"; }");var pe=yt.getColor(v.e);pe&&He.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+pe+"; }")});var oe=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}();function be(yt,He){return yt===1?!0:yt===2?!1:He}var De=function(yt){oe(He,yt);function He(){var Oe=yt.call(this)||this;return Oe._onFindReplaceStateChange=Oe._register(new X.a),Oe.onFindReplaceStateChange=Oe._onFindReplaceStateChange.event,Oe._searchString="",Oe._replaceString="",Oe._isRevealed=!1,Oe._isReplaceRevealed=!1,Oe._isRegex=!1,Oe._isRegexOverride=0,Oe._wholeWord=!1,Oe._wholeWordOverride=0,Oe._matchCase=!1,Oe._matchCaseOverride=0,Oe._preserveCase=!1,Oe._preserveCaseOverride=0,Oe._searchScope=null,Oe._matchesPosition=0,Oe._matchesCount=0,Oe._currentMatch=null,Oe}return Object.defineProperty(He.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"isRegex",{get:function(){return be(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"wholeWord",{get:function(){return be(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"matchCase",{get:function(){return be(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"preserveCase",{get:function(){return be(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),He.prototype.changeMatchInfo=function(Oe,rt,It){var pe={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},D=!1;rt===0&&(Oe=0),Oe>rt&&(Oe=rt),this._matchesPosition!==Oe&&(this._matchesPosition=Oe,pe.matchesPosition=!0,D=!0),this._matchesCount!==rt&&(this._matchesCount=rt,pe.matchesCount=!0,D=!0),typeof It!="undefined"&&(x.a.equalsRange(this._currentMatch,It)||(this._currentMatch=It,pe.currentMatch=!0,D=!0)),D&&this._onFindReplaceStateChange.fire(pe)},He.prototype.change=function(Oe,rt,It){It===void 0&&(It=!0);var pe={moveCursor:rt,updateHistory:It,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},D=!1,ye=this.isRegex,We=this.wholeWord,Ze=this.matchCase,st=this.preserveCase;typeof Oe.searchString!="undefined"&&(this._searchString!==Oe.searchString&&(this._searchString=Oe.searchString,pe.searchString=!0,D=!0)),typeof Oe.replaceString!="undefined"&&(this._replaceString!==Oe.replaceString&&(this._replaceString=Oe.replaceString,pe.replaceString=!0,D=!0)),typeof Oe.isRevealed!="undefined"&&(this._isRevealed!==Oe.isRevealed&&(this._isRevealed=Oe.isRevealed,pe.isRevealed=!0,D=!0)),typeof Oe.isReplaceRevealed!="undefined"&&(this._isReplaceRevealed!==Oe.isReplaceRevealed&&(this._isReplaceRevealed=Oe.isReplaceRevealed,pe.isReplaceRevealed=!0,D=!0)),typeof Oe.isRegex!="undefined"&&(this._isRegex=Oe.isRegex),typeof Oe.wholeWord!="undefined"&&(this._wholeWord=Oe.wholeWord),typeof Oe.matchCase!="undefined"&&(this._matchCase=Oe.matchCase),typeof Oe.preserveCase!="undefined"&&(this._preserveCase=Oe.preserveCase),typeof Oe.searchScope!="undefined"&&(x.a.equalsRange(this._searchScope,Oe.searchScope)||(this._searchScope=Oe.searchScope,pe.searchScope=!0,D=!0)),this._isRegexOverride=typeof Oe.isRegexOverride!="undefined"?Oe.isRegexOverride:0,this._wholeWordOverride=typeof Oe.wholeWordOverride!="undefined"?Oe.wholeWordOverride:0,this._matchCaseOverride=typeof Oe.matchCaseOverride!="undefined"?Oe.matchCaseOverride:0,this._preserveCaseOverride=typeof Oe.preserveCaseOverride!="undefined"?Oe.preserveCaseOverride:0,ye!==this.isRegex&&(D=!0,pe.isRegex=!0),We!==this.wholeWord&&(D=!0,pe.wholeWord=!0),Ze!==this.matchCase&&(D=!0,pe.matchCase=!0),st!==this.preserveCase&&(D=!0,pe.preserveCase=!0),D&&this._onFindReplaceStateChange.fire(pe)},He}(J.a),Se=e("AbCa"),Ve=e("OBOq"),Qe=e("cMOf"),it=e("/cxE"),pt=e("MNsG"),Rt=e("yqFB"),Mt=e("0+8E"),zt=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),uo=T.a("defaultLabel","input"),ao=function(yt){zt(He,yt);function He(Oe,rt,It,pe){var D=yt.call(this)||this;D._showOptionButtons=It,D.fixFocusOnOptionClickEnabled=!0,D._onDidOptionChange=D._register(new X.a),D.onDidOptionChange=D._onDidOptionChange.event,D._onKeyDown=D._register(new X.a),D.onKeyDown=D._onKeyDown.event,D._onMouseDown=D._register(new X.a),D.onMouseDown=D._onMouseDown.event,D._onInput=D._register(new X.a),D._onKeyUp=D._register(new X.a),D._onCaseSensitiveKeyDown=D._register(new X.a),D.onCaseSensitiveKeyDown=D._onCaseSensitiveKeyDown.event,D._onRegexKeyDown=D._register(new X.a),D.onRegexKeyDown=D._onRegexKeyDown.event,D._lastHighlightFindOptions=0,D.contextViewProvider=rt,D.placeholder=pe.placeholder||"",D.validation=pe.validation,D.label=pe.label||uo,D.inputActiveOptionBorder=pe.inputActiveOptionBorder,D.inputActiveOptionBackground=pe.inputActiveOptionBackground,D.inputBackground=pe.inputBackground,D.inputForeground=pe.inputForeground,D.inputBorder=pe.inputBorder,D.inputValidationInfoBorder=pe.inputValidationInfoBorder,D.inputValidationInfoBackground=pe.inputValidationInfoBackground,D.inputValidationInfoForeground=pe.inputValidationInfoForeground,D.inputValidationWarningBorder=pe.inputValidationWarningBorder,D.inputValidationWarningBackground=pe.inputValidationWarningBackground,D.inputValidationWarningForeground=pe.inputValidationWarningForeground,D.inputValidationErrorBorder=pe.inputValidationErrorBorder,D.inputValidationErrorBackground=pe.inputValidationErrorBackground,D.inputValidationErrorForeground=pe.inputValidationErrorForeground;var ye=pe.appendCaseSensitiveLabel||"",We=pe.appendWholeWordsLabel||"",Ze=pe.appendRegexLabel||"",st=pe.history||[],mt=!!pe.flexibleHeight,Kt=!!pe.flexibleWidth,Xt=pe.flexibleMaxHeight;D.domNode=document.createElement("div"),ee.f(D.domNode,"monaco-findInput"),D.inputBox=D._register(new Mt.a(D.domNode,D.contextViewProvider,{placeholder:D.placeholder||"",ariaLabel:D.label||"",validationOptions:{validation:D.validation},inputBackground:D.inputBackground,inputForeground:D.inputForeground,inputBorder:D.inputBorder,inputValidationInfoBackground:D.inputValidationInfoBackground,inputValidationInfoForeground:D.inputValidationInfoForeground,inputValidationInfoBorder:D.inputValidationInfoBorder,inputValidationWarningBackground:D.inputValidationWarningBackground,inputValidationWarningForeground:D.inputValidationWarningForeground,inputValidationWarningBorder:D.inputValidationWarningBorder,inputValidationErrorBackground:D.inputValidationErrorBackground,inputValidationErrorForeground:D.inputValidationErrorForeground,inputValidationErrorBorder:D.inputValidationErrorBorder,history:st,flexibleHeight:mt,flexibleWidth:Kt,flexibleMaxHeight:Xt})),D.regex=D._register(new C({appendTitle:Ze,isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.regex.onChange(function(lo){D._onDidOptionChange.fire(lo),!lo&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D._register(D.regex.onKeyDown(function(lo){D._onRegexKeyDown.fire(lo)})),D.wholeWords=D._register(new Q({appendTitle:We,isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.wholeWords.onChange(function(lo){D._onDidOptionChange.fire(lo),!lo&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D.caseSensitive=D._register(new ve({appendTitle:ye,isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.caseSensitive.onChange(function(lo){D._onDidOptionChange.fire(lo),!lo&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D._register(D.caseSensitive.onKeyDown(function(lo){D._onCaseSensitiveKeyDown.fire(lo)})),D._showOptionButtons&&(D.inputBox.paddingRight=D.caseSensitive.width()+D.wholeWords.width()+D.regex.width());var no=[D.caseSensitive.domNode,D.wholeWords.domNode,D.regex.domNode];D.onkeydown(D.domNode,function(lo){if(lo.equals(15)||lo.equals(17)||lo.equals(9)){var Ro=no.indexOf(document.activeElement);if(Ro>=0){var wo=-1;lo.equals(17)?wo=(Ro+1)%no.length:lo.equals(15)&&(Ro===0?wo=no.length-1:wo=Ro-1),lo.equals(9)?no[Ro].blur():wo>=0&&no[wo].focus(),ee.c.stop(lo,!0)}}});var vo=document.createElement("div");return vo.className="controls",vo.style.display=D._showOptionButtons?"block":"none",vo.appendChild(D.caseSensitive.domNode),vo.appendChild(D.wholeWords.domNode),vo.appendChild(D.regex.domNode),D.domNode.appendChild(vo),Oe&&Oe.appendChild(D.domNode),D.onkeydown(D.inputBox.inputElement,function(lo){return D._onKeyDown.fire(lo)}),D.onkeyup(D.inputBox.inputElement,function(lo){return D._onKeyUp.fire(lo)}),D.oninput(D.inputBox.inputElement,function(lo){return D._onInput.fire()}),D.onmousedown(D.inputBox.inputElement,function(lo){return D._onMouseDown.fire(lo)}),D}return He.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},He.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},He.prototype.setFocusInputOnOptionClick=function(Oe){this.fixFocusOnOptionClickEnabled=Oe},He.prototype.setEnabled=function(Oe){Oe?this.enable():this.disable()},He.prototype.getValue=function(){return this.inputBox.value},He.prototype.setValue=function(Oe){this.inputBox.value!==Oe&&(this.inputBox.value=Oe)},He.prototype.style=function(Oe){this.inputActiveOptionBorder=Oe.inputActiveOptionBorder,this.inputActiveOptionBackground=Oe.inputActiveOptionBackground,this.inputBackground=Oe.inputBackground,this.inputForeground=Oe.inputForeground,this.inputBorder=Oe.inputBorder,this.inputValidationInfoBackground=Oe.inputValidationInfoBackground,this.inputValidationInfoForeground=Oe.inputValidationInfoForeground,this.inputValidationInfoBorder=Oe.inputValidationInfoBorder,this.inputValidationWarningBackground=Oe.inputValidationWarningBackground,this.inputValidationWarningForeground=Oe.inputValidationWarningForeground,this.inputValidationWarningBorder=Oe.inputValidationWarningBorder,this.inputValidationErrorBackground=Oe.inputValidationErrorBackground,this.inputValidationErrorForeground=Oe.inputValidationErrorForeground,this.inputValidationErrorBorder=Oe.inputValidationErrorBorder,this.applyStyles()},He.prototype.applyStyles=function(){if(this.domNode){var Oe={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(Oe),this.wholeWords.style(Oe),this.caseSensitive.style(Oe);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)}},He.prototype.select=function(){this.inputBox.select()},He.prototype.focus=function(){this.inputBox.focus()},He.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},He.prototype.setCaseSensitive=function(Oe){this.caseSensitive.checked=Oe},He.prototype.getWholeWords=function(){return this.wholeWords.checked},He.prototype.setWholeWords=function(Oe){this.wholeWords.checked=Oe},He.prototype.getRegex=function(){return this.regex.checked},He.prototype.setRegex=function(Oe){this.regex.checked=Oe,this.validate()},He.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},He.prototype.highlightFindOptions=function(){ee.P(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,ee.f(this.domNode,"highlight-"+this._lastHighlightFindOptions)},He.prototype.validate=function(){this.inputBox.validate()},He.prototype.clearMessage=function(){this.inputBox.hideMessage()},He}(q.a),so=e("nrhi"),Pt=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),ft=T.a("defaultLabel","input"),vt=T.a("label.preserveCaseCheckbox","Preserve Case"),At=function(yt){Pt(He,yt);function He(Oe){return yt.call(this,{actionClassName:"codicon-preserve-case",title:vt+Oe.appendTitle,isChecked:Oe.isChecked,inputActiveOptionBorder:Oe.inputActiveOptionBorder,inputActiveOptionBackground:Oe.inputActiveOptionBackground})||this}return He}(me),at=function(yt){Pt(He,yt);function He(Oe,rt,It,pe){var D=yt.call(this)||this;D._showOptionButtons=It,D.fixFocusOnOptionClickEnabled=!0,D.cachedOptionsWidth=0,D._onDidOptionChange=D._register(new X.a),D.onDidOptionChange=D._onDidOptionChange.event,D._onKeyDown=D._register(new X.a),D.onKeyDown=D._onKeyDown.event,D._onMouseDown=D._register(new X.a),D._onInput=D._register(new X.a),D._onKeyUp=D._register(new X.a),D._onPreserveCaseKeyDown=D._register(new X.a),D.onPreserveCaseKeyDown=D._onPreserveCaseKeyDown.event,D.contextViewProvider=rt,D.placeholder=pe.placeholder||"",D.validation=pe.validation,D.label=pe.label||ft,D.inputActiveOptionBorder=pe.inputActiveOptionBorder,D.inputActiveOptionBackground=pe.inputActiveOptionBackground,D.inputBackground=pe.inputBackground,D.inputForeground=pe.inputForeground,D.inputBorder=pe.inputBorder,D.inputValidationInfoBorder=pe.inputValidationInfoBorder,D.inputValidationInfoBackground=pe.inputValidationInfoBackground,D.inputValidationInfoForeground=pe.inputValidationInfoForeground,D.inputValidationWarningBorder=pe.inputValidationWarningBorder,D.inputValidationWarningBackground=pe.inputValidationWarningBackground,D.inputValidationWarningForeground=pe.inputValidationWarningForeground,D.inputValidationErrorBorder=pe.inputValidationErrorBorder,D.inputValidationErrorBackground=pe.inputValidationErrorBackground,D.inputValidationErrorForeground=pe.inputValidationErrorForeground;var ye=pe.history||[],We=!!pe.flexibleHeight,Ze=!!pe.flexibleWidth,st=pe.flexibleMaxHeight;D.domNode=document.createElement("div"),ee.f(D.domNode,"monaco-findInput"),D.inputBox=D._register(new Mt.a(D.domNode,D.contextViewProvider,{ariaLabel:D.label||"",placeholder:D.placeholder||"",validationOptions:{validation:D.validation},inputBackground:D.inputBackground,inputForeground:D.inputForeground,inputBorder:D.inputBorder,inputValidationInfoBackground:D.inputValidationInfoBackground,inputValidationInfoForeground:D.inputValidationInfoForeground,inputValidationInfoBorder:D.inputValidationInfoBorder,inputValidationWarningBackground:D.inputValidationWarningBackground,inputValidationWarningForeground:D.inputValidationWarningForeground,inputValidationWarningBorder:D.inputValidationWarningBorder,inputValidationErrorBackground:D.inputValidationErrorBackground,inputValidationErrorForeground:D.inputValidationErrorForeground,inputValidationErrorBorder:D.inputValidationErrorBorder,history:ye,flexibleHeight:We,flexibleWidth:Ze,flexibleMaxHeight:st})),D.preserveCase=D._register(new At({appendTitle:"",isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.preserveCase.onChange(function(Xt){D._onDidOptionChange.fire(Xt),!Xt&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D._register(D.preserveCase.onKeyDown(function(Xt){D._onPreserveCaseKeyDown.fire(Xt)})),D._showOptionButtons?D.cachedOptionsWidth=D.preserveCase.width():D.cachedOptionsWidth=0;var mt=[D.preserveCase.domNode];D.onkeydown(D.domNode,function(Xt){if(Xt.equals(15)||Xt.equals(17)||Xt.equals(9)){var no=mt.indexOf(document.activeElement);if(no>=0){var vo=-1;Xt.equals(17)?vo=(no+1)%mt.length:Xt.equals(15)&&(no===0?vo=mt.length-1:vo=no-1),Xt.equals(9)?mt[no].blur():vo>=0&&mt[vo].focus(),ee.c.stop(Xt,!0)}}});var Kt=document.createElement("div");return Kt.className="controls",Kt.style.display=D._showOptionButtons?"block":"none",Kt.appendChild(D.preserveCase.domNode),D.domNode.appendChild(Kt),Oe&&Oe.appendChild(D.domNode),D.onkeydown(D.inputBox.inputElement,function(Xt){return D._onKeyDown.fire(Xt)}),D.onkeyup(D.inputBox.inputElement,function(Xt){return D._onKeyUp.fire(Xt)}),D.oninput(D.inputBox.inputElement,function(Xt){return D._onInput.fire()}),D.onmousedown(D.inputBox.inputElement,function(Xt){return D._onMouseDown.fire(Xt)}),D}return He.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},He.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},He.prototype.setEnabled=function(Oe){Oe?this.enable():this.disable()},He.prototype.style=function(Oe){this.inputActiveOptionBorder=Oe.inputActiveOptionBorder,this.inputActiveOptionBackground=Oe.inputActiveOptionBackground,this.inputBackground=Oe.inputBackground,this.inputForeground=Oe.inputForeground,this.inputBorder=Oe.inputBorder,this.inputValidationInfoBackground=Oe.inputValidationInfoBackground,this.inputValidationInfoForeground=Oe.inputValidationInfoForeground,this.inputValidationInfoBorder=Oe.inputValidationInfoBorder,this.inputValidationWarningBackground=Oe.inputValidationWarningBackground,this.inputValidationWarningForeground=Oe.inputValidationWarningForeground,this.inputValidationWarningBorder=Oe.inputValidationWarningBorder,this.inputValidationErrorBackground=Oe.inputValidationErrorBackground,this.inputValidationErrorForeground=Oe.inputValidationErrorForeground,this.inputValidationErrorBorder=Oe.inputValidationErrorBorder,this.applyStyles()},He.prototype.applyStyles=function(){if(this.domNode){var Oe={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(Oe);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)}},He.prototype.select=function(){this.inputBox.select()},He.prototype.focus=function(){this.inputBox.focus()},He.prototype.getPreserveCase=function(){return this.preserveCase.checked},He.prototype.setPreserveCase=function(Oe){this.preserveCase.checked=Oe},He.prototype.focusOnPreserve=function(){this.preserveCase.focus()},He.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(He.prototype,"width",{set:function(rt){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=rt,this.domNode.style.width=rt+"px"},enumerable:!0,configurable:!0}),He.prototype.dispose=function(){yt.prototype.dispose.call(this)},He}(q.a),tt=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),ut=function(yt,He,Oe,rt){var It=arguments.length,pe=It<3?He:rt===null?rt=Object.getOwnPropertyDescriptor(He,Oe):rt,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(yt,He,Oe,rt);else for(var ye=yt.length-1;ye>=0;ye--)(D=yt[ye])&&(pe=(It<3?D(pe):It>3?D(He,Oe,pe):D(He,Oe))||pe);return It>3&&pe&&Object.defineProperty(He,Oe,pe),pe},Ct=function(yt,He){return function(Oe,rt){He(Oe,rt,yt)}},gt="historyNavigationWidget",bt="historyNavigationEnabled";function Gt(yt,He,Oe){new $.d(Oe,He).bindTo(yt)}function Nt(yt,He){return yt.createScoped(He.target)}function Et(yt,He){return yt.getContext(document.activeElement).getValue(He)}function Je(yt,He){var Oe=Nt(yt,He);Gt(Oe,He,gt);var rt=new $.d(bt,!0).bindTo(Oe);return{scopedContextKeyService:Oe,historyNavigationEnablement:rt}}var $e=function(yt){tt(He,yt);function He(Oe,rt,It,pe,D){D===void 0&&(D=!1);var ye=yt.call(this,Oe,rt,D,It)||this;return ye._register(Je(pe,{target:ye.inputBox.element,historyNavigator:ye.inputBox}).scopedContextKeyService),ye}return He=ut([Ct(3,$.c)],He),He}(ao),ze=function(yt){tt(He,yt);function He(Oe,rt,It,pe,D){D===void 0&&(D=!1);var ye=yt.call(this,Oe,rt,D,It)||this;return ye._register(Je(pe,{target:ye.inputBox.element,historyNavigator:ye.inputBox}).scopedContextKeyService),ye}return He=ut([Ct(3,$.c)],He),He}(at);so.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:$.a.and($.a.has(gt),$.a.equals(bt,!0)),primary:16,secondary:[512|16],handler:function(He,Oe){var rt=Et(He.get($.c),gt);if(rt){var It=rt.historyNavigator;It.showPreviousValue()}}}),so.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:$.a.and($.a.has(gt),$.a.equals(bt,!0)),primary:18,secondary:[512|18],handler:function(He,Oe){var rt=Et(He.get($.c),gt);if(rt){var It=rt.historyNavigator;It.showNextValue()}}});var Ke=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.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"),ke=T.a("label.closeButton","Close"),lt=T.a("label.replace","Replace"),Tt=T.a("placeholder.replace","Replace"),Jt=T.a("label.replaceButton","Replace"),eo=T.a("label.replaceAllButton","Replace All"),po=T.a("label.toggleReplaceButton","Toggle Replace mode"),co=T.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Ue),Eo=T.a("label.matchesLocation","{0} of {1}"),Oo=T.a("label.noResults","No Results"),Ao=419,Zo=275,Co=Zo-54,Wo=69,Go=33,Bo="ctrlEnterReplaceAll.windows.donotask",Mo=pt.e?256:2048,Qo=function(){function yt(He){this.afterLineNumber=He,this.heightInPx=Go,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return yt}();function fn(yt,He,Oe){var rt=!!He.match(/\n/);if(Oe&&rt&&Oe.selectionStart>0){yt.stopPropagation();return}}function Vo(yt,He,Oe){var rt=!!He.match(/\n/);if(Oe&&rt&&Oe.selectionEnd<Oe.value.length){yt.stopPropagation();return}}var mn=function(yt){Ke(He,yt);function He(Oe,rt,It,pe,D,ye,We,Ze,st){var mt=yt.call(this)||this;return mt._cachedHeight=null,mt._codeEditor=Oe,mt._controller=rt,mt._state=It,mt._contextViewProvider=pe,mt._keybindingService=D,mt._contextKeyService=ye,mt._storageService=Ze,mt._notificationService=st,mt._ctrlEnterReplaceAllWarningPrompted=!!Ze.getBoolean(Bo,0),mt._isVisible=!1,mt._isReplaceVisible=!1,mt._ignoreChangeEvent=!1,mt._updateHistoryDelayer=new re.a(500),mt._register(Object(J.h)(function(){return mt._updateHistoryDelayer.cancel()})),mt._register(mt._state.onFindReplaceStateChange(function(Kt){return mt._onStateChanged(Kt)})),mt._buildDomNode(),mt._updateButtons(),mt._tryUpdateWidgetWidth(),mt._findInput.inputBox.layout(),mt._register(mt._codeEditor.onDidChangeConfiguration(function(Kt){if(Kt.hasChanged(68)&&(mt._codeEditor.getOption(68)&&mt._state.change({isReplaceRevealed:!1},!1),mt._updateButtons()),Kt.hasChanged(107)&&mt._tryUpdateWidgetWidth(),Kt.hasChanged(2)&&mt.updateAccessibilitySupport(),Kt.hasChanged(28)){var Xt=mt._codeEditor.getOption(28).addExtraSpaceOnTop;Xt&&!mt._viewZone&&(mt._viewZone=new Qo(0),mt._showViewZone()),!Xt&&mt._viewZone&&mt._removeViewZone()}})),mt.updateAccessibilitySupport(),mt._register(mt._codeEditor.onDidChangeCursorSelection(function(){mt._isVisible&&mt._updateToggleSelectionFindButton()})),mt._register(mt._codeEditor.onDidFocusEditorWidget(function(){if(mt._isVisible){var Kt=mt._controller.getGlobalBufferTerm();Kt&&Kt!==mt._state.searchString&&(mt._state.change({searchString:Kt},!0),mt._findInput.select())}})),mt._findInputFocused=W.bindTo(ye),mt._findFocusTracker=mt._register(ee.Z(mt._findInput.inputBox.inputElement)),mt._register(mt._findFocusTracker.onDidFocus(function(){mt._findInputFocused.set(!0),mt._updateSearchScope()})),mt._register(mt._findFocusTracker.onDidBlur(function(){mt._findInputFocused.set(!1)})),mt._replaceInputFocused=B.bindTo(ye),mt._replaceFocusTracker=mt._register(ee.Z(mt._replaceInput.inputBox.inputElement)),mt._register(mt._replaceFocusTracker.onDidFocus(function(){mt._replaceInputFocused.set(!0),mt._updateSearchScope()})),mt._register(mt._replaceFocusTracker.onDidBlur(function(){mt._replaceInputFocused.set(!1)})),mt._codeEditor.addOverlayWidget(mt),mt._codeEditor.getOption(28).addExtraSpaceOnTop&&(mt._viewZone=new Qo(0)),mt._applyTheme(We.getTheme()),mt._register(We.onThemeChange(mt._applyTheme.bind(mt))),mt._register(mt._codeEditor.onDidChangeModel(function(){if(!mt._isVisible)return;mt._viewZoneId=void 0})),mt._register(mt._codeEditor.onDidScrollChange(function(Kt){if(Kt.scrollTopChanged){mt._layoutViewZone();return}setTimeout(function(){mt._layoutViewZone()},0)})),mt}return He.prototype.getId=function(){return He.ID},He.prototype.getDomNode=function(){return this._domNode},He.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},He.prototype._onStateChanged=function(Oe){if(Oe.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(Oe.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),Oe.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),Oe.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())),(Oe.isRevealed||Oe.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&(this._tryUpdateHeight()&&this._showViewZone()),Oe.isRegex&&this._findInput.setRegex(this._state.isRegex),Oe.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),Oe.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),Oe.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),Oe.searchString||Oe.matchesCount||Oe.matchesPosition){var rt=this._state.searchString.length>0&&this._state.matchesCount===0;ee.Y(this._domNode,"no-results",rt),this._updateMatchesCount(),this._updateButtons()}(Oe.searchString||Oe.currentMatch)&&this._layoutViewZone(),Oe.updateHistory&&this._delayedUpdateHistory()},He.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},He.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},He.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=Wo+"px",this._state.matchesCount>=Ue?this._matchesCount.title=co:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var Oe;if(this._state.matchesCount>0){var rt=String(this._state.matchesCount);this._state.matchesCount>=Ue&&(rt+="+");var It=String(this._state.matchesPosition);It==="0"&&(It="?"),Oe=I.r(Eo,It,rt)}else Oe=Oo;this._matchesCount.appendChild(document.createTextNode(Oe)),Object(Ve.a)(this._getAriaLabel(Oe,this._state.currentMatch,this._state.searchString),!0),Wo=Math.max(Wo,this._matchesCount.clientWidth)},He.prototype._getAriaLabel=function(Oe,rt,It){return Oe===Oo?It===""?T.a("ariaSearchNoResultEmpty","{0} found",Oe):T.a("ariaSearchNoResult","{0} found for {1}",Oe,It):rt?T.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",Oe,It,rt.startLineNumber+":"+rt.startColumn):T.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",Oe,It)},He.prototype._updateToggleSelectionFindButton=function(){var Oe=this._codeEditor.getSelection(),rt=Oe?Oe.startLineNumber!==Oe.endLineNumber||Oe.startColumn!==Oe.endColumn:!1,It=this._toggleSelectionFind.checked;this._isVisible&&(It||rt)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},He.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var Oe=this._state.searchString.length>0,rt=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&Oe&&rt),this._nextBtn.setEnabled(this._isVisible&&Oe&&rt),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Oe),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Oe),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 It=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&It)},He.prototype._reveal=function(){var Oe=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 It=!!rt&&rt.startLineNumber!==rt.endLineNumber;this._toggleSelectionFind.checked=It;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){ee.f(Oe._domNode,"visible"),Oe._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){Oe._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var pe=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&rt){var D=this._codeEditor.getDomNode();if(D){var ye=ee.C(D),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&&(pe=!1);var mt=ee.F(this._domNode).left;Ze>mt&&(pe=!1);var Kt=this._codeEditor.getScrolledVisiblePosition(rt.getEndPosition()),Xt=ye.left+(Kt?Kt.left:0);Xt>mt&&(pe=!1)}}}this._showViewZone(pe)}},He.prototype._hide=function(Oe){this._isVisible&&(this._isVisible=!1,this._updateButtons(),ee.P(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),Oe&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},He.prototype._layoutViewZone=function(){var Oe=this,rt=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!rt){this._removeViewZone();return}if(!this._isVisible)return;var It=this._viewZone;if(this._viewZoneId!==void 0||!It)return;this._codeEditor.changeViewZones(function(pe){It.heightInPx=Oe._getHeight(),Oe._viewZoneId=pe.addZone(It),Oe._codeEditor.setScrollTop(Oe._codeEditor.getScrollTop()+It.heightInPx)})},He.prototype._showViewZone=function(Oe){var rt=this;if(Oe===void 0&&(Oe=!0),!this._isVisible)return;var It=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!It)return;this._viewZone===void 0&&(this._viewZone=new Qo(0));var pe=this._viewZone;this._codeEditor.changeViewZones(function(D){if(rt._viewZoneId!==void 0){var ye=rt._getHeight();if(ye===pe.heightInPx)return;var We=ye-pe.heightInPx;pe.heightInPx=ye,D.layoutZone(rt._viewZoneId),Oe&&rt._codeEditor.setScrollTop(rt._codeEditor.getScrollTop()+We);return}else{var We=rt._getHeight();pe.heightInPx=We,rt._viewZoneId=D.addZone(pe),Oe&&rt._codeEditor.setScrollTop(rt._codeEditor.getScrollTop()+We)}})},He.prototype._removeViewZone=function(){var Oe=this;this._codeEditor.changeViewZones(function(rt){Oe._viewZoneId!==void 0&&(rt.removeZone(Oe._viewZoneId),Oe._viewZoneId=void 0,Oe._viewZone&&(Oe._codeEditor.setScrollTop(Oe._codeEditor.getScrollTop()-Oe._viewZone.heightInPx),Oe._viewZone=void 0))})},He.prototype._applyTheme=function(Oe){var rt={inputActiveOptionBorder:Oe.getColor(v.Y),inputActiveOptionBackground:Oe.getColor(v.X),inputBackground:Oe.getColor(v.Z),inputForeground:Oe.getColor(v.bb),inputBorder:Oe.getColor(v.ab),inputValidationInfoBackground:Oe.getColor(v.fb),inputValidationInfoForeground:Oe.getColor(v.hb),inputValidationInfoBorder:Oe.getColor(v.gb),inputValidationWarningBackground:Oe.getColor(v.ib),inputValidationWarningForeground:Oe.getColor(v.kb),inputValidationWarningBorder:Oe.getColor(v.jb),inputValidationErrorBackground:Oe.getColor(v.cb),inputValidationErrorForeground:Oe.getColor(v.eb),inputValidationErrorBorder:Oe.getColor(v.db)};this._findInput.style(rt),this._replaceInput.style(rt),this._toggleSelectionFind.style(rt)},He.prototype._tryUpdateWidgetWidth=function(){if(!this._isVisible)return;if(!ee.M(this._domNode))return;var Oe=this._codeEditor.getLayoutInfo(),rt=Oe.contentWidth;if(rt<=0){ee.f(this._domNode,"hiddenEditor");return}else ee.I(this._domNode,"hiddenEditor")&&ee.P(this._domNode,"hiddenEditor");var It=Oe.width,pe=Oe.minimapWidth,D=!1,ye=!1,We=!1;if(this._resized){var Ze=ee.H(this._domNode);if(Ze>Ao){this._domNode.style.maxWidth=It-28-pe-15+"px",this._replaceInput.width=ee.H(this._findInput.domNode);return}}if(Ao+28+pe>=It&&(ye=!0),Ao+28+pe-Wo>=It&&(We=!0),Ao+28+pe-Wo>=It+50&&(D=!0),ee.Y(this._domNode,"collapsed-find-widget",D),ee.Y(this._domNode,"narrow-find-widget",We),ee.Y(this._domNode,"reduced-find-widget",ye),!We&&!D&&(this._domNode.style.maxWidth=It-28-pe-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))},He.prototype._getHeight=function(){var Oe=0;return Oe+=4,Oe+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(Oe+=4,Oe+=this._replaceInput.inputBox.height+2),Oe+=4,Oe},He.prototype._tryUpdateHeight=function(){var Oe=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===Oe?!1:(this._cachedHeight=Oe,this._domNode.style.height=Oe+"px",!0)},He.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},He.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},He.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},He.prototype._updateSearchScope=function(){if(!this._codeEditor.hasModel())return;if(this._toggleSelectionFind.checked){var Oe=this._codeEditor.getSelection();Oe.endColumn===1&&Oe.endLineNumber>Oe.startLineNumber&&(Oe=Oe.setEndPosition(Oe.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(Oe.endLineNumber-1)));var rt=this._state.currentMatch;Oe.startLineNumber!==Oe.endLineNumber&&(x.a.equalsRange(Oe,rt)||this._state.change({searchScope:Oe},!0))}},He.prototype._onFindInputMouseDown=function(Oe){Oe.middleButton&&Oe.stopPropagation()},He.prototype._onFindInputKeyDown=function(Oe){if(Oe.equals(Mo|3)){this._findInput.inputBox.insertAtCursor(`
`),Oe.preventDefault();return}if(Oe.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),Oe.preventDefault();return}if(Oe.equals(2048|18)){this._codeEditor.focus(),Oe.preventDefault();return}if(Oe.equals(16))return fn(Oe,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(Oe.equals(18))return Vo(Oe,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))},He.prototype._onReplaceInputKeyDown=function(Oe){if(Oe.equals(Mo|3)){pt.h&&pt.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(Bo,!0,0)),this._replaceInput.inputBox.insertAtCursor(`
`),Oe.preventDefault();return}if(Oe.equals(2)){this._findInput.focusOnCaseSensitive(),Oe.preventDefault();return}if(Oe.equals(1024|2)){this._findInput.focus(),Oe.preventDefault();return}if(Oe.equals(2048|18)){this._codeEditor.focus(),Oe.preventDefault();return}if(Oe.equals(16))return fn(Oe,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(Oe.equals(18))return Vo(Oe,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))},He.prototype.getHorizontalSashTop=function(Oe){return 0},He.prototype.getHorizontalSashLeft=function(Oe){return 0},He.prototype.getHorizontalSashWidth=function(Oe){return 500},He.prototype._keybindingLabelFor=function(Oe){var rt=this._keybindingService.lookupKeybinding(Oe);return rt?" ("+rt.getLabel()+")":""},He.prototype._buildDomNode=function(){var Oe=this,rt=!0,It=!0;this._findInput=this._register(new $e(null,this._contextViewProvider,{width:Co,label:fe,placeholder:G,appendCaseSensitiveLabel:this._keybindingLabelFor(Fe.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(Fe.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(Fe.ToggleRegexCommand),validation:function(mt){if(mt.length===0||!Oe._findInput.getRegex())return null;try{return new RegExp(mt),null}catch(Kt){return{content:Kt.message}}},flexibleHeight:rt,flexibleWidth:It,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 Oe._onFindInputKeyDown(st)})),this._register(this._findInput.inputBox.onDidChange(function(){if(Oe._ignoreChangeEvent)return;Oe._state.change({searchString:Oe._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){Oe._state.change({isRegex:Oe._findInput.getRegex(),wholeWord:Oe._findInput.getWholeWords(),matchCase:Oe._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(st){st.equals(1024|2)&&(Oe._isReplaceVisible&&(Oe._replaceInput.focus(),st.preventDefault()))})),this._register(this._findInput.onRegexKeyDown(function(st){st.equals(2)&&(Oe._isReplaceVisible&&(Oe._replaceInput.focusOnPreserve(),st.preventDefault()))})),this._register(this._findInput.inputBox.onDidHeightChange(function(st){Oe._tryUpdateHeight()&&Oe._showViewZone()})),pt.d&&this._register(this._findInput.onMouseDown(function(st){return Oe._onFindInputMouseDown(st)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new yn({label:te+this._keybindingLabelFor(Fe.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){Oe._codeEditor.getAction(Fe.PreviousMatchFindAction).run().then(void 0,it.e)}})),this._nextBtn=this._register(new yn({label:Y+this._keybindingLabelFor(Fe.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){Oe._codeEditor.getAction(Fe.NextMatchFindAction).run().then(void 0,it.e)}}));var pe=document.createElement("div");pe.className="find-part",pe.appendChild(this._findInput.domNode);var D=document.createElement("div");D.className="find-actions",pe.appendChild(D),D.appendChild(this._matchesCount),D.appendChild(this._prevBtn.domNode),D.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new me({actionClassName:"codicon codicon-selection",title:de+this._keybindingLabelFor(Fe.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(function(){if(Oe._toggleSelectionFind.checked){if(Oe._codeEditor.hasModel()){var st=Oe._codeEditor.getSelection();st.endColumn===1&&st.endLineNumber>st.startLineNumber&&(st=st.setEndPosition(st.endLineNumber-1,Oe._codeEditor.getModel().getLineMaxColumn(st.endLineNumber-1))),st.isEmpty()||Oe._state.change({searchScope:st},!0)}}else Oe._state.change({searchScope:null},!0)})),D.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new yn({label:ke+this._keybindingLabelFor(Fe.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){Oe._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(mt){mt.equals(2)&&(Oe._isReplaceVisible&&(Oe._replaceBtn.isEnabled()?Oe._replaceBtn.focus():Oe._codeEditor.focus(),mt.preventDefault()))}})),D.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ze(null,void 0,{label:lt,placeholder:Tt,history:[],flexibleHeight:rt,flexibleWidth:It,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(function(st){return Oe._onReplaceInputKeyDown(st)})),this._register(this._replaceInput.inputBox.onDidChange(function(){Oe._state.change({replaceString:Oe._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(function(st){Oe._isReplaceVisible&&Oe._tryUpdateHeight()&&Oe._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(function(){Oe._state.change({preserveCase:Oe._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(function(st){st.equals(2)&&(Oe._prevBtn.isEnabled()?Oe._prevBtn.focus():Oe._nextBtn.isEnabled()?Oe._nextBtn.focus():Oe._toggleSelectionFind.enabled?Oe._toggleSelectionFind.focus():Oe._closeBtn.isEnabled()&&Oe._closeBtn.focus(),st.preventDefault())})),this._replaceBtn=this._register(new yn({label:Jt+this._keybindingLabelFor(Fe.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){Oe._controller.replace()},onKeyDown:function(mt){mt.equals(1024|2)&&(Oe._closeBtn.focus(),mt.preventDefault())}})),this._replaceAllBtn=this._register(new yn({label:eo+this._keybindingLabelFor(Fe.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){Oe._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 yn({label:po,className:"codicon toggle left",onTrigger:function(){Oe._state.change({isReplaceRevealed:!Oe._isReplaceVisible},!1),Oe._isReplaceVisible&&(Oe._replaceInput.width=ee.H(Oe._findInput.domNode),Oe._replaceInput.inputBox.layout()),Oe._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=Ao+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(pe),this._domNode.appendChild(ye),this._resizeSash=new Qe.a(this._domNode,this,{orientation:0}),this._resized=!1;var Ze=Ao;this._register(this._resizeSash.onDidStart(function(){Ze=ee.H(Oe._domNode)})),this._register(this._resizeSash.onDidChange(function(st){Oe._resized=!0;var mt=Ze+st.startX-st.currentX;if(mt<Ao)return;var Kt=parseFloat(ee.z(Oe._domNode).maxWidth)||0;if(mt>Kt)return;Oe._domNode.style.width=mt+"px",Oe._isReplaceVisible&&(Oe._replaceInput.width=ee.H(Oe._findInput.domNode)),Oe._findInput.inputBox.layout(),Oe._tryUpdateHeight()})),this._register(this._resizeSash.onDidReset(function(){var st=ee.H(Oe._domNode);if(st<Ao)return;var mt=Ao;if(!Oe._resized||st===Ao){var Kt=Oe._codeEditor.getLayoutInfo();mt=Kt.width-28-Kt.minimapWidth-15,Oe._resized=!0}Oe._domNode.style.width=mt+"px",Oe._isReplaceVisible&&(Oe._replaceInput.width=ee.H(Oe._findInput.domNode)),Oe._findInput.inputBox.layout()}))},He.prototype.updateAccessibilitySupport=function(){var Oe=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(Oe!==2)},He.ID="editor.contrib.findWidget",He}(q.a),yn=function(yt){Ke(He,yt);function He(Oe){var rt=yt.call(this)||this;return rt._opts=Oe,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(It){rt._opts.onTrigger(),It.preventDefault()}),rt.onkeydown(rt._domNode,function(It){if(It.equals(10)||It.equals(3)){rt._opts.onTrigger(),It.preventDefault();return}rt._opts.onKeyDown&&rt._opts.onKeyDown(It)}),rt}return Object.defineProperty(He.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),He.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},He.prototype.focus=function(){this._domNode.focus()},He.prototype.setEnabled=function(Oe){ee.Y(this._domNode,"disabled",!Oe),this._domNode.setAttribute("aria-disabled",String(!Oe)),this._domNode.tabIndex=Oe?0:-1},He.prototype.setExpanded=function(Oe){this._domNode.setAttribute("aria-expanded",String(!!Oe))},He.prototype.toggleClass=function(Oe,rt){ee.Y(this._domNode,Oe,rt)},He}(q.a);Object(w.e)(function(yt,He){var Oe=function(vo,lo){lo&&He.addRule(".monaco-editor "+vo+" { background-color: "+lo+"; }")};Oe(".findMatch",yt.getColor(v.t)),Oe(".currentFindMatch",yt.getColor(v.r)),Oe(".findScope",yt.getColor(v.v));var rt=yt.getColor(v.Q);Oe(".find-widget",rt);var It=yt.getColor(v.hc);It&&He.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+It+"; }");var pe=yt.getColor(v.u);pe&&He.addRule(".monaco-editor .findMatch { border: 1px "+(yt.type==="hc"?"dotted":"solid")+" "+pe+"; box-sizing: border-box; }");var D=yt.getColor(v.s);D&&He.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+D+"; padding: 1px; box-sizing: border-box; }");var ye=yt.getColor(v.w);ye&&He.addRule(".monaco-editor .findScope { border: 1px "+(yt.type==="hc"?"dashed":"solid")+" "+ye+"; }");var We=yt.getColor(v.e);We&&He.addRule(".monaco-editor .find-widget { border: 1px solid "+We+"; }");var Ze=yt.getColor(v.S);Ze&&He.addRule(".monaco-editor .find-widget { color: "+Ze+"; }");var st=yt.getColor(v.U);st&&He.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+st+"; }");var mt=yt.getColor(v.T);if(mt)He.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+mt+"; width: 3px !important; margin-left: -4px;}");else{var Kt=yt.getColor(v.R);Kt&&He.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+Kt+"; width: 3px !important; margin-left: -4px;}")}var Xt=yt.getColor(v.V);Xt&&He.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+Xt+"; }")});var dn=e("9XeP"),rn=e("Uzvx"),pn=e("Cg/j"),zo=e("bexQ"),Ho=e("A+jI"),St=e("sM1p"),ot=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),nt=function(yt,He,Oe,rt){var It=arguments.length,pe=It<3?He:rt===null?rt=Object.getOwnPropertyDescriptor(He,Oe):rt,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(yt,He,Oe,rt);else for(var ye=yt.length-1;ye>=0;ye--)(D=yt[ye])&&(pe=(It<3?D(pe):It>3?D(He,Oe,pe):D(He,Oe))||pe);return It>3&&pe&&Object.defineProperty(He,Oe,pe),pe},Dt=function(yt,He){return function(Oe,rt){He(Oe,rt,yt)}},_e=524288;function M(yt){if(!yt.hasModel())return null;var He=yt.getSelection();if(He.startLineNumber===He.endLineNumber){if(He.isEmpty()){var Oe=yt.getModel().getWordAtPosition(He.getStartPosition());if(Oe)return Oe.word}else if(yt.getModel().getValueLengthInRange(He)<_e)return yt.getModel().getValueInRange(He)}return null}var P=function(yt){ot(He,yt);function He(Oe,rt,It,pe){var D=yt.call(this)||this;return D._editor=Oe,D._findWidgetVisible=ie.bindTo(rt),D._contextKeyService=rt,D._storageService=It,D._clipboardService=pe,D._updateHistoryDelayer=new re.a(500),D._state=D._register(new De),D.loadQueryState(),D._register(D._state.onFindReplaceStateChange(function(ye){return D._onStateChanged(ye)})),D._model=null,D._register(D._editor.onDidChangeModel(function(){var ye=D._editor.getModel()&&D._state.isRevealed;D.disposeModel(),D._state.change({searchScope:null,matchCase:D._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:D._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:D._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:D._storageService.getBoolean("editor.preserveCase",1,!1)},!1),ye&&D._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})})),D}return He.get=function(Oe){return Oe.getContribution(He.ID)},He.prototype.dispose=function(){this.disposeModel(),yt.prototype.dispose.call(this)},He.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},He.prototype._onStateChanged=function(Oe){this.saveQueryState(Oe),Oe.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),Oe.searchString&&this.setGlobalBufferTerm(this._state.searchString)},He.prototype.saveQueryState=function(Oe){Oe.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),Oe.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),Oe.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),Oe.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},He.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)},He.prototype.isFindInputFocused=function(){return!!W.getValue(this._contextKeyService)},He.prototype.getState=function(){return this._state},He.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},He.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var Oe=this._editor.getSelection();Oe.endColumn===1&&Oe.endLineNumber>Oe.startLineNumber&&(Oe=Oe.setEndPosition(Oe.endLineNumber-1,this._editor.getModel().getLineMaxColumn(Oe.endLineNumber-1))),Oe.isEmpty()||this._state.change({searchScope:Oe},!0)}},He.prototype.setSearchString=function(Oe){this._state.isRegex&&(Oe=I.p(Oe)),this._state.change({searchString:Oe},!1)},He.prototype.highlightFindOptions=function(){},He.prototype._start=function(Oe){if(this.disposeModel(),!this._editor.hasModel())return;var rt={isRevealed:!0};if(Oe.seedSearchStringFromSelection){var It=M(this._editor);It&&(this._state.isRegex?rt.searchString=I.p(It):rt.searchString=It)}if(!rt.searchString&&Oe.seedSearchStringFromGlobalClipboard){var It=this.getGlobalBufferTerm();It&&(rt.searchString=It)}if(Oe.forceRevealReplace?rt.isReplaceRevealed=!0:this._findWidgetVisible.get()||(rt.isReplaceRevealed=!1),Oe.updateSearchScope){var pe=this._editor.getSelection();pe.isEmpty()||(rt.searchScope=pe)}this._state.change(rt,!1),this._model||(this._model=new ne(this._editor,this._state))},He.prototype.start=function(Oe){this._start(Oe)},He.prototype.moveToNextMatch=function(){return this._model?(this._model.moveToNextMatch(),!0):!1},He.prototype.moveToPrevMatch=function(){return this._model?(this._model.moveToPrevMatch(),!0):!1},He.prototype.replace=function(){return this._model?(this._model.replace(),!0):!1},He.prototype.replaceAll=function(){return this._model?(this._model.replaceAll(),!0):!1},He.prototype.selectAllMatches=function(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1},He.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},He.prototype.setGlobalBufferTerm=function(Oe){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(Oe)},He.ID="editor.contrib.findController",He=nt([Dt(1,$.c),Dt(2,Ho.a),Dt(3,dn.a)],He),He}(J.a),Z=function(yt){ot(He,yt);function He(Oe,rt,It,pe,D,ye,We,Ze){var st=yt.call(this,Oe,It,We,Ze)||this;return st._contextViewService=rt,st._keybindingService=pe,st._themeService=D,st._notificationService=ye,st._widget=null,st._findOptionsWidget=null,st}return He.prototype._start=function(Oe){this._widget||this._createFindWidget();var rt=this._editor.getSelection(),It=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":It=!0;break;case"never":It=!1;break;case"multiline":var pe=!!rt&&rt.startLineNumber!==rt.endLineNumber;It=pe;break;default:break}Oe.updateSearchScope=It,yt.prototype._start.call(this,Oe),Oe.shouldFocus===2?this._widget.focusReplaceInput():Oe.shouldFocus===1&&this._widget.focusFindInput()},He.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},He.prototype._createFindWidget=function(){this._widget=this._register(new mn(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))},He=nt([Dt(1,rn.b),Dt(2,$.c),Dt(3,zo.a),Dt(4,w.c),Dt(5,St.a),Dt(6,Ho.a),Dt(7,Object(pn.d)(dn.a))],He),He}(P),Ae=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.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 He.prototype.run=function(Oe,rt){var It=P.get(rt);It&&It.start({forceRevealReplace:!1,seedSearchStringFromSelection:rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:rt.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},He}(U.b),xe=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.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 He.prototype.run=function(Oe,rt){var It=P.get(rt);It&&(It.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),It.setGlobalBufferTerm(It.getState().searchString))},He}(U.b),Ne=function(yt){ot(He,yt);function He(){return yt!==null&&yt.apply(this,arguments)||this}return He.prototype.run=function(Oe,rt){var It=P.get(rt);It&&!this._run(It)&&(It.start({forceRevealReplace:!1,seedSearchStringFromSelection:It.getState().searchString.length===0&&rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(It))},He}(U.b),dt=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.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 He.prototype._run=function(Oe){return Oe.moveToNextMatch()},He}(Ne),ht=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.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 He.prototype._run=function(Oe){return Oe.moveToNextMatch()},He}(Ne),xt=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.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 He.prototype._run=function(Oe){return Oe.moveToPrevMatch()},He}(Ne),Bt=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.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 He.prototype._run=function(Oe){return Oe.moveToPrevMatch()},He}(Ne),Ht=function(yt){ot(He,yt);function He(){return yt!==null&&yt.apply(this,arguments)||this}return He.prototype.run=function(Oe,rt){var It=P.get(rt);if(!It)return;var pe=M(rt);pe&&It.setSearchString(pe),this._run(It)||(It.start({forceRevealReplace:!1,seedSearchStringFromSelection:rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(It))},He}(U.b),Ut=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.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 He.prototype._run=function(Oe){return Oe.moveToNextMatch()},He}(Ht),oo=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.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 He.prototype._run=function(Oe){return Oe.moveToPrevMatch()},He}(Ht),Zt=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.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 He.prototype.run=function(Oe,rt){if(!rt.hasModel()||rt.getOption(68))return;var It=P.get(rt),pe=rt.getSelection(),D=It.isFindInputFocused(),ye=!pe.isEmpty()&&pe.startLineNumber===pe.endLineNumber&&rt.getOption(28).seedSearchStringFromSelection&&!D,We=D||ye?2:1;It&&It.start({forceRevealReplace:!0,seedSearchStringFromSelection:ye,seedSearchStringFromGlobalClipboard:rt.getOption(28).seedSearchStringFromSelection,shouldFocus:We,shouldAnimate:!0,updateSearchScope:!1})},He}(U.b);Object(U.h)(P.ID,Z),Object(U.f)(Ae),Object(U.f)(xe),Object(U.f)(dt),Object(U.f)(ht),Object(U.f)(xt),Object(U.f)(Bt),Object(U.f)(Ut),Object(U.f)(oo),Object(U.f)(Zt);var fo=U.c.bindToContribution(P.get);Object(U.g)(new fo({id:Fe.CloseFindWidgetCommand,precondition:ie,handler:function(He){return He.closeFindWidget()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:9,secondary:[1024|9]}})),Object(U.g)(new fo({id:Fe.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(He){return He.toggleCaseSensitive()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:le.primary,mac:le.mac,win:le.win,linux:le.linux}})),Object(U.g)(new fo({id:Fe.ToggleWholeWordCommand,precondition:void 0,handler:function(He){return He.toggleWholeWords()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Ce.primary,mac:Ce.mac,win:Ce.win,linux:Ce.linux}})),Object(U.g)(new fo({id:Fe.ToggleRegexCommand,precondition:void 0,handler:function(He){return He.toggleRegex()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Me.primary,mac:Me.mac,win:Me.win,linux:Me.linux}})),Object(U.g)(new fo({id:Fe.ToggleSearchScopeCommand,precondition:void 0,handler:function(He){return He.toggleSearchScope()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Te.primary,mac:Te.mac,win:Te.win,linux:Te.linux}})),Object(U.g)(new fo({id:Fe.ReplaceOneAction,precondition:ie,handler:function(He){return He.replace()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:2048|1024|22}})),Object(U.g)(new fo({id:Fe.ReplaceOneAction,precondition:ie,handler:function(He){return He.replace()},kbOpts:{weight:100+5,kbExpr:$.a.and(z.a.focus,B),primary:3}})),Object(U.g)(new fo({id:Fe.ReplaceAllAction,precondition:ie,handler:function(He){return He.replaceAll()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:2048|512|3}})),Object(U.g)(new fo({id:Fe.ReplaceAllAction,precondition:ie,handler:function(He){return He.replaceAll()},kbOpts:{weight:100+5,kbExpr:$.a.and(z.a.focus,B),primary:void 0,mac:{primary:2048|3}}})),Object(U.g)(new fo({id:Fe.SelectAllMatchesAction,precondition:ie,handler:function(He){return He.selectAllMatches()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:512|3}}))},oiKk:function(Lt,j,e){"use strict";e.r(j),e.d(j,"IPadShowKeyboard",function(){return H});var T=e("ci+S"),re=e.n(T),J=e("D3Dy"),I=e("EffR"),U=e("pmY6"),z=e("sswD"),O=function(){var u=function(_,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var p in w)w.hasOwnProperty(p)&&(v[p]=w[p])},u(_,f)};return function(y,_){u(y,_);function f(){this.constructor=y}y.prototype=_===null?Object.create(_):(f.prototype=_.prototype,new f)}}(),H=function(u){O(y,u);function y(_){var f=u.call(this)||this;return f.editor=_,f.widget=null,J.j&&(f._register(_.onDidChangeConfiguration(function(){return f.update()})),f.update()),f}return y.prototype.update=function(){var _=!this.editor.getOption(68);!this.widget&&_?this.widget=new x(this.editor):this.widget&&!_&&(this.widget.dispose(),this.widget=null)},y.prototype.dispose=function(){u.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},y.ID="editor.contrib.iPadShowKeyboard",y}(U.a),x=function(u){O(y,u);function y(_){var f=u.call(this)||this;return f.editor=_,f._domNode=document.createElement("textarea"),f._domNode.className="iPadShowKeyboard",f._register(I.j(f._domNode,"touchstart",function(v){f.editor.focus()})),f._register(I.j(f._domNode,"focus",function(v){f.editor.focus()})),f.editor.addOverlayWidget(f),f}return y.prototype.dispose=function(){this.editor.removeOverlayWidget(this),u.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}(U.a);Object(z.h)(H.ID,H)},p3Ex:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return e.e(151).then(e.bind(null,"/Om3"))}})},p5tG:function(Lt,j,e){"use strict";e.r(j),e.d(j,"LanguageServiceDefaultsImpl",function(){return I});var T=e("M/lh"),re=e.n(T);"use strict";var J=monaco.Emitter,I=function(){function u(y,_,f){this._onDidChange=new J,this._languageId=y,this.setDiagnosticsOptions(_),this.setModeConfiguration(f)}return Object.defineProperty(u.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),u.prototype.setDiagnosticsOptions=function(y){this._diagnosticsOptions=y||Object.create(null),this._onDidChange.fire(this)},u.prototype.setModeConfiguration=function(y){this._modeConfiguration=y||Object.create(null),this._onDidChange.fire(this)},u}(),U={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},O=new I("json",U,z);function H(){return{jsonDefaults:O}}monaco.languages.json=H();function x(){return e.e(142).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(){x().then(function(u){return u.setupMode(O)})})},pAvP:function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=e("Cg/j"),re="editorWorkerService",J=Object(T.c)(re)},pI2L:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return e.e(183).then(e.bind(null,"KpXS"))}})},pg8w:function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"b",function(){return H});var T=e("6OMU"),re=e("pmY6"),J=e("EffR"),I=e("ZCR3"),U=function(){var x=function(y,_){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},x(y,_)};return function(u,y){x(u,y);function _(){this.constructor=u}u.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}}(),z=function(x,u,y,_){var f=arguments.length,v=f<3?u:_===null?_=Object.getOwnPropertyDescriptor(u,y):_,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(x,u,y,_);else for(var p=x.length-1;p>=0;p--)(w=x[p])&&(v=(f<3?w(v):f>3?w(u,y,v):w(u,y))||v);return f>3&&v&&Object.defineProperty(u,y,v),v},O;(function(x){x.Tap="-monaco-gesturetap",x.Change="-monaco-gesturechange",x.Start="-monaco-gesturestart",x.End="-monaco-gesturesend",x.Contextmenu="-monaco-gesturecontextmenu"})(O||(O={}));var H=function(x){U(u,x);function u(){var y=x.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(_){return y.onTouchStart(_)})),y._register(J.j(document,"touchend",function(_){return y.onTouchEnd(_)})),y._register(J.j(document,"touchmove",function(_){return y.onTouchMove(_)})),y}return u.addTarget=function(y){return u.isTouchDevice()?(u.INSTANCE||(u.INSTANCE=new u),u.INSTANCE.targets.push(y),{dispose:function(){u.INSTANCE.targets=u.INSTANCE.targets.filter(function(f){return f!==y})}}):re.a.None},u.ignoreTarget=function(y){return u.isTouchDevice()?(u.INSTANCE||(u.INSTANCE=new u),u.INSTANCE.ignoreTargets.push(y),{dispose:function(){u.INSTANCE.ignoreTargets=u.INSTANCE.ignoreTargets.filter(function(f){return f!==y})}}):re.a.None},u.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},u.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),x.prototype.dispose.call(this)},u.prototype.onTouchStart=function(y){var _=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var f=0,v=y.targetTouches.length;f<v;f++){var w=y.targetTouches.item(f);this.activeTouches[w.identifier]={id:w.identifier,initialTarget:w.target,initialTimeStamp:_,initialPageX:w.pageX,initialPageY:w.pageY,rollingTimestamps:[_],rollingPageX:[w.pageX],rollingPageY:[w.pageY]};var p=this.newGestureEvent(O.Start,w.target);p.pageX=w.pageX,p.pageY=w.pageY,this.dispatchEvent(p)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)},u.prototype.onTouchEnd=function(y){for(var _=Date.now(),f=Object.keys(this.activeTouches).length,v=function(l,d){var m=y.changedTouches.item(l);if(!w.activeTouches.hasOwnProperty(String(m.identifier)))return console.warn("move of an UNKNOWN touch",m),"continue";var E=w.activeTouches[m.identifier],L=Date.now()-E.initialTimeStamp;if(L<u.HOLD_DELAY&&Math.abs(E.initialPageX-T.v(E.rollingPageX))<30&&Math.abs(E.initialPageY-T.v(E.rollingPageY))<30){var A=w.newGestureEvent(O.Tap,E.initialTarget);A.pageX=T.v(E.rollingPageX),A.pageY=T.v(E.rollingPageY),w.dispatchEvent(A)}else if(L>=u.HOLD_DELAY&&Math.abs(E.initialPageX-T.v(E.rollingPageX))<30&&Math.abs(E.initialPageY-T.v(E.rollingPageY))<30){var A=w.newGestureEvent(O.Contextmenu,E.initialTarget);A.pageX=T.v(E.rollingPageX),A.pageY=T.v(E.rollingPageY),w.dispatchEvent(A)}else if(f===1){var k=T.v(E.rollingPageX),R=T.v(E.rollingPageY),$=T.v(E.rollingTimestamps)-E.rollingTimestamps[0],ie=k-E.rollingPageX[0],W=R-E.rollingPageY[0],B=w.targets.filter(function(le){return E.initialTarget instanceof Node&&le.contains(E.initialTarget)});w.inertia(B,_,Math.abs(ie)/$,ie>0?1:-1,k,Math.abs(W)/$,W>0?1:-1,R)}w.dispatchEvent(w.newGestureEvent(O.End,E.initialTarget)),delete w.activeTouches[m.identifier]},w=this,p=0,c=y.changedTouches.length;p<c;p++)v(p,c);this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)},u.prototype.newGestureEvent=function(y,_){var f=document.createEvent("CustomEvent");return f.initEvent(y,!1,!0),f.initialTarget=_,f.tapCount=0,f},u.prototype.dispatchEvent=function(y){var _=this;if(y.type===O.Tap){var f=new Date().getTime(),v=0;f-this._lastSetTapCountTime>u.CLEAR_TAP_COUNT_TIME?v=1:v=2,this._lastSetTapCountTime=f,y.tapCount=v}else(y.type===O.Change||y.type===O.Contextmenu)&&(this._lastSetTapCountTime=0);for(var w=0;w<this.ignoreTargets.length;w++)if(y.initialTarget instanceof Node&&this.ignoreTargets[w].contains(y.initialTarget))return;this.targets.forEach(function(p){y.initialTarget instanceof Node&&p.contains(y.initialTarget)&&(p.dispatchEvent(y),_.dispatched=!0)})},u.prototype.inertia=function(y,_,f,v,w,p,c,s){var l=this;this.handle=J.W(function(){var d=Date.now(),m=d-_,E=0,L=0,A=!0;f+=u.SCROLL_FRICTION*m,p+=u.SCROLL_FRICTION*m,f>0&&(A=!1,E=v*f*m),p>0&&(A=!1,L=c*p*m);var k=l.newGestureEvent(O.Change);k.translationX=E,k.translationY=L,y.forEach(function(R){return R.dispatchEvent(k)}),A||l.inertia(y,d,f,v,w+E,p,c,s+L)})},u.prototype.onTouchMove=function(y){for(var _=Date.now(),f=0,v=y.changedTouches.length;f<v;f++){var w=y.changedTouches.item(f);if(!this.activeTouches.hasOwnProperty(String(w.identifier))){console.warn("end of an UNKNOWN touch",w);continue}var p=this.activeTouches[w.identifier],c=this.newGestureEvent(O.Change,p.initialTarget);c.translationX=w.pageX-T.v(p.rollingPageX),c.translationY=w.pageY-T.v(p.rollingPageY),c.pageX=w.pageX,c.pageY=w.pageY,this.dispatchEvent(c),p.rollingPageX.length>3&&(p.rollingPageX.shift(),p.rollingPageY.shift(),p.rollingTimestamps.shift()),p.rollingPageX.push(w.pageX),p.rollingPageY.push(w.pageY),p.rollingTimestamps.push(_)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)},u.SCROLL_FRICTION=-.005,u.HOLD_DELAY=700,u.CLEAR_TAP_COUNT_TIME=400,z([I.a],u,"isTouchDevice",null),u}(re.a)},pmY6:function(Lt,j,e){"use strict";e.d(j,"g",function(){return U}),e.d(j,"f",function(){return z}),e.d(j,"e",function(){return O}),e.d(j,"h",function(){return H}),e.d(j,"b",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"d",function(){return y}),e.d(j,"c",function(){return _});var T=!1,re="__is_disposable_tracked__";function J(f){if(!T)return;if(f&&f!==u.None)try{f[re]=!0}catch(v){}}function I(f){if(!T)return f;var v=new Error("Potentially leaked disposable").stack;return setTimeout(function(){f[re]||console.log(v)},3e3),f}function U(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 O(){for(var f=[],v=0;v<arguments.length;v++)f[v]=arguments[v];return f.forEach(J),I({dispose:function(){return z(f)}})}function H(f){var v=I({dispose:function(){J(v),f()}});return v}var x=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}(),u=function(){function f(){this._store=new x,I(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,I(this)}return Object.defineProperty(f.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(w){if(this._isDisposed||w===this._value)return;this._value&&this._value.dispose(),w&&J(w),this._value=w},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}(),_=function(){function f(v){this.object=v}return f.prototype.dispose=function(){},f}()},ptcw:function(Lt,j,e){"use strict";e.d(j,"a",function(){return U}),e.d(j,"d",function(){return z}),e.d(j,"b",function(){return O}),e.d(j,"c",function(){return u});var T=e("MD5Z"),re=function(){return re=Object.assign||function(y){for(var _,f=1,v=arguments.length;f<v;f++){_=arguments[f];for(var w in _)Object.prototype.hasOwnProperty.call(_,w)&&(y[w]=_[w])}return y},re.apply(this,arguments)};function J(y,_){var f=Object.create(null);for(var v in _){var w=_[v];w&&(f[v]=Object(T.Ub)(w,y))}return f}function I(y,_,f){function v(w){var p=J(y.getTheme(),_);typeof f=="function"?f(p):f.style(p)}return v(y.getTheme()),y.onThemeChange(v)}function U(y,_,f){return I(_,{badgeBackground:f&&f.badgeBackground||T.c,badgeForeground:f&&f.badgeForeground||T.d,badgeBorder:T.e},y)}function z(y,_,f){return I(_,{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 O(y,_,f){return I(_,re(re({},H),f||{}),y)}var H={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},x={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 u(y,_,f){return I(_,re(re({},x),f),y)}},"q/I2":function(Lt,j,e){},q8qy:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return e.e(171).then(e.bind(null,"ywQP"))}})},qH2V:function(Lt,j,e){},qNAo:function(Lt,j,e){"use strict";e.d(j,"f",function(){return re}),e.d(j,"b",function(){return J}),e.d(j,"c",function(){return I}),e.d(j,"d",function(){return U}),e.d(j,"a",function(){return z}),e.d(j,"e",function(){return O});var T=e("N0LK"),re=function(){function H(x,u,y,_){this.top=x|0,this.left=u|0,this.width=y|0,this.height=_|0}return H}(),J=function(){function H(x,u){this.tabSize=x,this.data=u}return H}(),I=function(){function H(x,u,y,_,f,v){this.content=x,this.continuesWithWrappedLine=u,this.minColumn=y,this.maxColumn=_,this.startVisibleColumn=f,this.tokens=v}return H}(),U=function(){function H(x,u,y,_,f,v,w,p,c,s){this.minColumn=x,this.maxColumn=u,this.content=y,this.continuesWithWrappedLine=_,this.isBasicASCII=H.isBasicASCII(y,v),this.containsRTL=H.containsRTL(y,this.isBasicASCII,f),this.tokens=w,this.inlineDecorations=p,this.tabSize=c,this.startVisibleColumn=s}return H.isBasicASCII=function(x,u){return u?T.v(x):!0},H.containsRTL=function(x,u,y){return!u&&y?T.i(x):!1},H}(),z=function(){function H(x,u,y){this.range=x,this.inlineClassName=u,this.type=y}return H}(),O=function(){function H(x,u){this.range=x,this.options=u}return H}()},qj0h:function(Lt,j,e){"use strict";e.d(j,"c",function(){return re}),e.d(j,"d",function(){return J}),e.d(j,"b",function(){return U}),e.d(j,"g",function(){return O}),e.d(j,"a",function(){return H}),e.d(j,"e",function(){return x}),e.d(j,"f",function(){return u});var T=e("746U");function re(y){if(!y||typeof y!="object")return y;if(y instanceof RegExp)return y;var _=Array.isArray(y)?[]:{};return Object.keys(y).forEach(function(f){y[f]&&typeof y[f]=="object"?_[f]=re(y[f]):_[f]=y[f]}),_}function J(y){if(!y||typeof y!="object")return y;for(var _=[y];_.length>0;){var f=_.shift();Object.freeze(f);for(var v in f)if(I.call(f,v)){var w=f[v];typeof w=="object"&&!Object.isFrozen(w)&&_.push(w)}}return y}var I=Object.prototype.hasOwnProperty;function U(y,_){return z(y,_,new Set)}function z(y,_,f){if(Object(T.l)(y))return y;var v=_(y);if(typeof v!="undefined")return v;if(Object(T.d)(y)){for(var w=[],p=0,c=y;p<c.length;p++){var s=c[p];w.push(z(s,_,f))}return w}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)I.call(y,d)&&(l[d]=z(y[d],_,f));return f.delete(y),l}return y}function O(y,_,f){return f===void 0&&(f=!0),Object(T.i)(y)?(Object(T.i)(_)&&Object.keys(_).forEach(function(v){v in y?f&&(Object(T.i)(y[v])&&Object(T.i)(_[v])?O(y[v],_[v],f):y[v]=_[v]):y[v]=_[v]}),y):_}function H(y){for(var _=[],f=1;f<arguments.length;f++)_[f-1]=arguments[f];return _.forEach(function(v){return Object.keys(v).forEach(function(w){return y[w]=v[w]})}),y}function x(y,_){if(y===_)return!0;if(y==null||_===null||_===void 0)return!1;if(typeof y!==typeof _)return!1;if(typeof y!="object")return!1;if(Array.isArray(y)!==Array.isArray(_))return!1;var f,v;if(Array.isArray(y)){if(y.length!==_.length)return!1;for(f=0;f<y.length;f++)if(!x(y[f],_[f]))return!1}else{var w=[];for(v in y)w.push(v);w.sort();var p=[];for(v in _)p.push(v);if(p.sort(),!x(w,p))return!1;for(f=0;f<w.length;f++)if(!x(y[w[f]],_[w[f]]))return!1}return!0}function u(y,_,f){var v=_(y);return typeof v=="undefined"?f:v}},r0BQ:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});var T=function(){function re(J,I,U){I===void 0&&(I=[]),U===void 0&&(U=!1),this.ctor=J,this.staticArguments=I,this.supportsDelayedInstantiation=U}return re}()},rugR:function(Lt,j,e){"use strict";e.r(j),e.d(j,"ModesHoverController",function(){return ft});var T=e("uAX5"),re=e("3/fG"),J=e("/kV6"),I=e("pmY6"),U=e("sswD"),z=e("aokT"),O=e("wQH0"),H=e("WBhO"),x=e("EffR"),u=e("JQT/"),y=e("zrhQ"),_=e("eLzo"),f=e("cGHE"),v=e("tX9W"),w=e("twdY"),p=e("ZIMw"),c=e("kqbb"),s=e("MI8n"),l=function(){function at(tt,ut,Ct){this.presentationIndex=Ct,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=ut}return Object.defineProperty(at.prototype,"color",{get:function(){return this._color},set:function(ut){if(this._color.equals(ut))return;this._color=ut,this._onDidChangeColor.fire(ut)},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(ut){this._colorPresentations=ut,this.presentationIndex>ut.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,ut){for(var Ct=0;Ct<this.colorPresentations.length;Ct++)if(ut===this.colorPresentations[Ct].label){this.presentationIndex=Ct,this._onDidChangePresentation.fire(this.presentation);break}},at.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},at}(),d=e("EPS+"),m=e("D3Dy"),E=e("AKMP"),L=e("G300"),A=e("MD5Z"),k=e("t9D7"),R=function(){var at=function(ut,Ct){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,bt){gt.__proto__=bt}||function(gt,bt){for(var Gt in bt)bt.hasOwnProperty(Gt)&&(gt[Gt]=bt[Gt])},at(ut,Ct)};return function(tt,ut){at(tt,ut);function Ct(){this.constructor=tt}tt.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),$=x.a,ie=function(at){R(tt,at);function tt(ut,Ct,gt){var bt=at.call(this)||this;bt.model=Ct,bt.domNode=$(".colorpicker-header"),x.q(ut,bt.domNode),bt.pickedColorNode=x.q(bt.domNode,$(".picked-color"));var Gt=x.q(bt.domNode,$(".original-color"));return Gt.style.backgroundColor=y.a.Format.CSS.format(bt.model.originalColor)||"",bt.backgroundColor=gt.getTheme().getColor(A.A)||y.a.white,bt._register(Object(k.e)(function(Nt,Et){bt.backgroundColor=Nt.getColor(A.A)||y.a.white})),bt._register(x.j(bt.pickedColorNode,x.d.CLICK,function(){return bt.model.selectNextColorPresentation()})),bt._register(x.j(Gt,x.d.CLICK,function(){bt.model.color=bt.model.originalColor,bt.model.flushColor()})),bt._register(Ct.onDidChangeColor(bt.onDidChangeColor,bt)),bt._register(Ct.onDidChangePresentation(bt.onDidChangePresentation,bt)),bt.pickedColorNode.style.backgroundColor=y.a.Format.CSS.format(Ct.color)||"",x.Y(bt.pickedColorNode,"light",Ct.color.rgba.a<.5?bt.backgroundColor.isLighter():Ct.color.isLighter()),bt}return tt.prototype.onDidChangeColor=function(ut){this.pickedColorNode.style.backgroundColor=y.a.Format.CSS.format(ut)||"",x.Y(this.pickedColorNode,"light",ut.rgba.a<.5?this.backgroundColor.isLighter():ut.isLighter()),this.onDidChangePresentation()},tt.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},tt}(I.a),W=function(at){R(tt,at);function tt(ut,Ct,gt){var bt=at.call(this)||this;return bt.model=Ct,bt.pixelRatio=gt,bt.domNode=$(".colorpicker-body"),x.q(ut,bt.domNode),bt.saturationBox=new B(bt.domNode,bt.model,bt.pixelRatio),bt._register(bt.saturationBox),bt._register(bt.saturationBox.onDidChange(bt.onDidSaturationValueChange,bt)),bt._register(bt.saturationBox.onColorFlushed(bt.flushColor,bt)),bt.opacityStrip=new Ce(bt.domNode,bt.model),bt._register(bt.opacityStrip),bt._register(bt.opacityStrip.onDidChange(bt.onDidOpacityChange,bt)),bt._register(bt.opacityStrip.onColorFlushed(bt.flushColor,bt)),bt.hueStrip=new Me(bt.domNode,bt.model),bt._register(bt.hueStrip),bt._register(bt.hueStrip.onDidChange(bt.onDidHueChange,bt)),bt._register(bt.hueStrip.onColorFlushed(bt.flushColor,bt)),bt}return tt.prototype.flushColor=function(){this.model.flushColor()},tt.prototype.onDidSaturationValueChange=function(ut){var Ct=ut.s,gt=ut.v,bt=this.model.color.hsva;this.model.color=new y.a(new y.b(bt.h,Ct,gt,bt.a))},tt.prototype.onDidOpacityChange=function(ut){var Ct=this.model.color.hsva;this.model.color=new y.a(new y.b(Ct.h,Ct.s,Ct.v,ut))},tt.prototype.onDidHueChange=function(ut){var Ct=this.model.color.hsva,gt=(1-ut)*360;this.model.color=new y.a(new y.b(gt===360?0:gt,Ct.s,Ct.v,Ct.a))},tt.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},tt}(I.a),B=function(at){R(tt,at);function tt(ut,Ct,gt){var bt=at.call(this)||this;return bt.model=Ct,bt.pixelRatio=gt,bt._onDidChange=new s.a,bt.onDidChange=bt._onDidChange.event,bt._onColorFlushed=new s.a,bt.onColorFlushed=bt._onColorFlushed.event,bt.domNode=$(".saturation-wrap"),x.q(ut,bt.domNode),bt.canvas=document.createElement("canvas"),bt.canvas.className="saturation-box",x.q(bt.domNode,bt.canvas),bt.selection=$(".saturation-selection"),x.q(bt.domNode,bt.selection),bt.layout(),bt._register(x.h(bt.domNode,function(Gt){return bt.onMouseDown(Gt)})),bt._register(bt.model.onDidChangeColor(bt.onDidChangeColor,bt)),bt.monitor=null,bt}return tt.prototype.onMouseDown=function(ut){var Ct=this;this.monitor=this._register(new E.a);var gt=x.C(this.domNode);ut.target!==this.selection&&this.onDidChangePosition(ut.offsetX,ut.offsetY),this.monitor.startMonitoring(ut.target,ut.buttons,E.b,function(Gt){return Ct.onDidChangePosition(Gt.posx-gt.left,Gt.posy-gt.top)},function(){return null});var bt=x.i(document,function(){Ct._onColorFlushed.fire(),bt.dispose(),Ct.monitor&&(Ct.monitor.stopMonitoring(!0),Ct.monitor=null)},!0)},tt.prototype.onDidChangePosition=function(ut,Ct){var gt=Math.max(0,Math.min(1,ut/this.width)),bt=Math.max(0,Math.min(1,1-Ct/this.height));this.paintSelection(gt,bt),this._onDidChange.fire({s:gt,v:bt})},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 ut=this.model.color.hsva;this.paintSelection(ut.s,ut.v)},tt.prototype.paint=function(){var ut=this.model.color.hsva,Ct=new y.a(new y.b(ut.h,1,1,1)),gt=this.canvas.getContext("2d"),bt=gt.createLinearGradient(0,0,this.canvas.width,0);bt.addColorStop(0,"rgba(255, 255, 255, 1)"),bt.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),bt.addColorStop(1,"rgba(255, 255, 255, 0)");var Gt=gt.createLinearGradient(0,0,0,this.canvas.height);Gt.addColorStop(0,"rgba(0, 0, 0, 0)"),Gt.addColorStop(1,"rgba(0, 0, 0, 1)"),gt.rect(0,0,this.canvas.width,this.canvas.height),gt.fillStyle=y.a.Format.CSS.format(Ct),gt.fill(),gt.fillStyle=bt,gt.fill(),gt.fillStyle=Gt,gt.fill()},tt.prototype.paintSelection=function(ut,Ct){this.selection.style.left=ut*this.width+"px",this.selection.style.top=this.height-Ct*this.height+"px"},tt.prototype.onDidChangeColor=function(){if(this.monitor&&this.monitor.isMonitoring())return;this.paint()},tt}(I.a),le=function(at){R(tt,at);function tt(ut,Ct){var gt=at.call(this)||this;return gt.model=Ct,gt._onDidChange=new s.a,gt.onDidChange=gt._onDidChange.event,gt._onColorFlushed=new s.a,gt.onColorFlushed=gt._onColorFlushed.event,gt.domNode=x.q(ut,$(".strip")),gt.overlay=x.q(gt.domNode,$(".overlay")),gt.slider=x.q(gt.domNode,$(".slider")),gt.slider.style.top="0px",gt._register(x.h(gt.domNode,function(bt){return gt.onMouseDown(bt)})),gt.layout(),gt}return tt.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var ut=this.getValue(this.model.color);this.updateSliderPosition(ut)},tt.prototype.onMouseDown=function(ut){var Ct=this,gt=this._register(new E.a),bt=x.C(this.domNode);x.f(this.domNode,"grabbing"),ut.target!==this.slider&&this.onDidChangeTop(ut.offsetY),gt.startMonitoring(ut.target,ut.buttons,E.b,function(Nt){return Ct.onDidChangeTop(Nt.posy-bt.top)},function(){return null});var Gt=x.i(document,function(){Ct._onColorFlushed.fire(),Gt.dispose(),gt.stopMonitoring(!0),x.P(Ct.domNode,"grabbing")},!0)},tt.prototype.onDidChangeTop=function(ut){var Ct=Math.max(0,Math.min(1,1-ut/this.height));this.updateSliderPosition(Ct),this._onDidChange.fire(Ct)},tt.prototype.updateSliderPosition=function(ut){this.slider.style.top=(1-ut)*this.height+"px"},tt}(I.a),Ce=function(at){R(tt,at);function tt(ut,Ct){var gt=at.call(this,ut,Ct)||this;return x.f(gt.domNode,"opacity-strip"),gt._register(Ct.onDidChangeColor(gt.onDidChangeColor,gt)),gt.onDidChangeColor(gt.model.color),gt}return tt.prototype.onDidChangeColor=function(ut){var Ct=ut.rgba,gt=Ct.r,bt=Ct.g,Gt=Ct.b,Nt=new y.a(new y.c(gt,bt,Gt,1)),Et=new y.a(new y.c(gt,bt,Gt,0));this.overlay.style.background="linear-gradient(to bottom, "+Nt+" 0%, "+Et+" 100%)"},tt.prototype.getValue=function(ut){return ut.hsva.a},tt}(le),Me=function(at){R(tt,at);function tt(ut,Ct){var gt=at.call(this,ut,Ct)||this;return x.f(gt.domNode,"hue-strip"),gt}return tt.prototype.getValue=function(ut){return 1-ut.hsva.h/360},tt}(le),Te=function(at){R(tt,at);function tt(ut,Ct,gt,bt){var Gt=at.call(this)||this;Gt.model=Ct,Gt.pixelRatio=gt,Gt._register(Object(m.o)(function(){return Gt.layout()}));var Nt=$(".colorpicker-widget");ut.appendChild(Nt);var Et=new ie(Nt,Gt.model,bt);return Gt.body=new W(Nt,Gt.model,Gt.pixelRatio),Gt._register(Et),Gt._register(Gt.body),Gt}return tt.prototype.layout=function(){this.body.layout()},tt}(L.a),Fe=e("6OMU"),Ue=e("/cxE");function Pe(at,tt,ut){var Ct=w.p.ordered(at),gt=Ct.map(function(bt){return Promise.resolve(bt.provideHover(at,tt,ut)).then(function(Gt){return Gt&&ne(Gt)?Gt:void 0},function(Gt){Object(Ue.f)(Gt);return})});return Promise.all(gt).then(Fe.d)}Object(U.k)("_executeHoverProvider",function(at,tt){return Pe(at,tt,u.a.None)});function ne(at){var tt=typeof at.range!="undefined",ut=typeof at.contents!="undefined"&&at.contents&&at.contents.length>0;return tt&&ut}var ee=e("X+cX"),ae=function(){function at(tt,ut,Ct,gt,bt){var Gt=this;this._computer=tt,this._state=0,this._hoverTime=bt,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=ut,this._errorCallback=Ct,this._progressCallback=gt}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(ut){return tt._computer.computeAsync(ut)}),this._asyncComputationPromise.then(function(ut){tt._asyncComputationPromiseDone=!0,tt._withAsyncResult(ut)},function(ut){return tt._onError(ut)})):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(Ue.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"),ue=function(){var at=function(ut,Ct){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,bt){gt.__proto__=bt}||function(gt,bt){for(var Gt in bt)bt.hasOwnProperty(Gt)&&(gt[Gt]=bt[Gt])},at(ut,Ct)};return function(tt,ut){at(tt,ut);function Ct(){this.constructor=tt}tt.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),X=function(){for(var at=0,tt=0,ut=arguments.length;tt<ut;tt++)at+=arguments[tt].length;for(var Ct=Array(at),gt=0,tt=0;tt<ut;tt++)for(var bt=arguments[tt],Gt=0,Nt=bt.length;Gt<Nt;Gt++,gt++)Ct[gt]=bt[Gt];return Ct},he=function(at){ue(tt,at);function tt(ut,Ct){var gt=at.call(this)||this;return gt.allowEditorOverflow=!0,gt._id=ut,gt._editor=Ct,gt._isVisible=!1,gt._stoleFocus=!1,gt._containerDomNode=document.createElement("div"),gt._containerDomNode.className="monaco-editor-hover hidden",gt._containerDomNode.tabIndex=0,gt._domNode=document.createElement("div"),gt._domNode.className="monaco-editor-hover-content",gt.scrollbar=new q.a(gt._domNode,{}),gt._register(gt.scrollbar),gt._containerDomNode.appendChild(gt.scrollbar.getDomNode()),gt.onkeydown(gt._containerDomNode,function(bt){bt.equals(9)&&gt.hide()}),gt._register(gt._editor.onDidChangeConfiguration(function(bt){bt.hasChanged(34)&&gt.updateFont()})),gt._editor.onDidLayoutChange(function(bt){return gt.layout()}),gt.layout(),gt._editor.addContentWidget(gt),gt._showAtPosition=null,gt._showAtRange=null,gt._stoleFocus=!1,gt}return Object.defineProperty(tt.prototype,"isVisible",{get:function(){return this._isVisible},set:function(Ct){this._isVisible=Ct,Object(x.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(ut,Ct,gt){this._showAtPosition=ut,this._showAtRange=Ct,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=gt,gt&&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 ut=this,Ct=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));Ct.forEach(function(gt){return ut._editor.applyFontInfo(gt)})},tt.prototype.updateContents=function(ut){this._domNode.textContent="",this._domNode.appendChild(ut),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},tt.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},tt.prototype.layout=function(){var ut=Math.max(this._editor.getLayoutInfo().height/4,250),Ct=this._editor.getOption(34),gt=Ct.fontSize,bt=Ct.lineHeight;this._domNode.style.fontSize=gt+"px",this._domNode.style.lineHeight=bt+"px",this._domNode.style.maxHeight=ut+"px",this._domNode.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px"},tt}(L.a),je=function(at){ue(tt,at);function tt(ut,Ct){var gt=at.call(this)||this;return gt._id=ut,gt._editor=Ct,gt._isVisible=!1,gt._domNode=document.createElement("div"),gt._domNode.className="monaco-editor-hover hidden",gt._domNode.setAttribute("aria-hidden","true"),gt._domNode.setAttribute("role","presentation"),gt._showAtLineNumber=-1,gt._register(gt._editor.onDidChangeConfiguration(function(bt){bt.hasChanged(34)&&gt.updateFont()})),gt._editor.addOverlayWidget(gt),gt}return Object.defineProperty(tt.prototype,"isVisible",{get:function(){return this._isVisible},set:function(Ct){this._isVisible=Ct,Object(x.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(ut){this._showAtLineNumber=ut,this.isVisible||(this.isVisible=!0);var Ct=this._editor.getLayoutInfo(),gt=this._editor.getTopForLineNumber(this._showAtLineNumber),bt=this._editor.getScrollTop(),Gt=this._editor.getOption(49),Nt=this._domNode.clientHeight,Et=gt-bt-(Nt-Gt)/2;this._domNode.style.left=Ct.glyphMarginLeft+Ct.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 ut=this,Ct=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),gt=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));X(Ct,gt).forEach(function(bt){return ut._editor.applyFontInfo(bt)})},tt.prototype.updateContents=function(ut){this._domNode.textContent="",this._domNode.appendChild(ut),this.updateFont()},tt}(L.a),Xe=e("3qCu"),me=e("tADe"),ge=e("gslv"),we=e("W9cx"),Re=e("lY/7"),Ee=e("hJVp"),ve=e("C1Q+"),Q=e("nlbu"),C=function(){var at=function(ut,Ct){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,bt){gt.__proto__=bt}||function(gt,bt){for(var Gt in bt)bt.hasOwnProperty(Gt)&&(gt[Gt]=bt[Gt])},at(ut,Ct)};return function(tt,ut){at(tt,ut);function Ct(){this.constructor=tt}tt.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),F=function(){for(var at=0,tt=0,ut=arguments.length;tt<ut;tt++)at+=arguments[tt].length;for(var Ct=Array(at),gt=0,tt=0;tt<ut;tt++)for(var bt=arguments[tt],Gt=0,Nt=bt.length;Gt<Nt;Gt++,gt++)Ct[gt]=bt[Gt];return Ct},se=x.a,oe=function(){function at(tt,ut,Ct){this.range=tt,this.color=ut,this.provider=Ct}return at}(),be=function(){function at(tt,ut){this.range=tt,this.marker=ut}return at}(),De=function(){function at(tt,ut){this._markerDecorationsService=ut,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 ut=this._editor.getModel();return w.p.has(ut)?Pe(ut,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 ut=this._editor.getModel(),Ct=this._range.startLineNumber;if(Ct>this._editor.getModel().getLineCount())return[];var gt=c.ColorDetector.get(this._editor),bt=ut.getLineMaxColumn(Ct),Gt=this._editor.getLineDecorations(Ct),Nt=!1,Et=this._range,Je=Gt.map(function($e){var ze=$e.range.startLineNumber===Ct?$e.range.startColumn:1,Ke=$e.range.endLineNumber===Ct?$e.range.endColumn:bt;if(ze>Et.startColumn||Et.endColumn>Ke)return null;var fe=new z.a(Et.startLineNumber,ze,Et.startLineNumber,Ke),G=tt._markerDecorationsService.getMarker(ut,$e);if(G)return new be(fe,G);var te=gt.getColorData($e.range.getStartPosition());if(!Nt&&te){Nt=!0;var Y=te.colorInfo,de=Y.color,ke=Y.range;return new oe(ke,de,te.provider)}else{if(Object(_.b)($e.options.hoverMessage))return null;var lt=$e.options.hoverMessage?Object(Fe.b)($e.options.hoverMessage):[];return{contents:lt,range:fe}}});return Object(Fe.d)(Je)},at.prototype.onResult=function(tt,ut){ut?this._result=tt.concat(this._result.sort(function(Ct,gt){return Ct instanceof oe?-1:gt instanceof oe?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 _.a().appendText(re.a("modesContentHover.loading","Loading..."))]}},at}(),Se={type:2,filter:{include:Q.b.QuickFix}},Ve=function(at){C(tt,at);function tt(ut,Ct,gt,bt,Gt,Nt){Nt===void 0&&(Nt=we.b);var Et=at.call(this,tt.ID,ut)||this;return Et._themeService=gt,Et._keybindingService=bt,Et._modeService=Gt,Et._openerService=Nt,Et.renderDisposable=Et._register(new I.d),Et._messages=[],Et._lastRange=null,Et._computer=new De(Et._editor,Ct),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(x.o(Et.getDomNode(),x.d.FOCUS,function(){Et._colorPicker&&x.f(Et.getDomNode(),"colorpicker-hover")})),Et._register(x.o(Et.getDomNode(),x.d.BLUR,function(){x.P(Et.getDomNode(),"colorpicker-hover")})),Et._register(ut.onDidChangeConfiguration(function(Je){Et._hoverOperation.setHoverTime(Et._editor.getOption(44).delay)})),Et._register(w.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(ut,Ct,gt){if(this._lastRange&&this._lastRange.equalsRange(ut))return;if(this._hoverOperation.cancel(),this.isVisible)if(!this._showAtPosition||this._showAtPosition.lineNumber!==ut.startLineNumber)this.hide();else{for(var bt=[],Gt=0,Nt=this._messages.length;Gt<Nt;Gt++){var Et=this._messages[Gt],Je=Et.range;Je&&Je.startColumn<=ut.startColumn&&Je.endColumn>=ut.endColumn&&bt.push(Et)}if(bt.length>0){if(Qe(bt,this._messages))return;this._renderMessages(ut,bt)}else this.hide()}this._lastRange=ut,this._computer.setRange(ut),this._shouldFocus=gt,this._hoverOperation.start(Ct)},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(ut,Ct){this._messages=ut,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):Ct&&this.hide()},tt.prototype._renderMessages=function(ut,Ct){var gt=this;this.renderDisposable.dispose(),this._colorPicker=null;var bt=1073741824,Gt=Ct[0].range?z.a.lift(Ct[0].range):null,Nt=document.createDocumentFragment(),Et=!0,Je=!1,$e=new I.b,ze=[];if(Ct.forEach(function(fe){if(!fe.range)return;if(bt=Math.min(bt,fe.range.startColumn),Gt=Gt?z.a.plusRange(Gt,fe.range):z.a.lift(fe.range),fe instanceof oe){Je=!0;var G=fe.color,te=G.red,Y=G.green,de=G.blue,ke=G.alpha,lt=new y.c(Math.round(te*255),Math.round(Y*255),Math.round(de*255),ke),Tt=new y.a(lt);if(!gt._editor.hasModel())return;var Jt=gt._editor.getModel(),eo=new z.a(fe.range.startLineNumber,fe.range.startColumn,fe.range.endLineNumber,fe.range.endColumn),po={range:fe.range,color:fe.color},co=new l(Tt,[],0),Eo=new Te(Nt,co,gt._editor.getOption(105),gt._themeService);Object(p.a)(Jt,po,fe.provider,u.a.None).then(function(Oo){if(co.colorPresentations=Oo||[],!gt._editor.hasModel())return;var Ao=gt._editor.getModel().getValueInRange(fe.range);co.guessColorPresentation(Tt,Ao);var Zo=function(){var Mo,Qo;co.presentation.textEdit?(Mo=[co.presentation.textEdit],Qo=new z.a(co.presentation.textEdit.range.startLineNumber,co.presentation.textEdit.range.startColumn,co.presentation.textEdit.range.endLineNumber,co.presentation.textEdit.range.endColumn),Qo=Qo.setEndPosition(Qo.endLineNumber,Qo.startColumn+co.presentation.textEdit.text.length)):(Mo=[{identifier:null,range:eo,text:co.presentation.label,forceMoveMarkers:!1}],Qo=eo.setEndPosition(eo.endLineNumber,eo.startColumn+co.presentation.label.length)),gt._editor.pushUndoStop(),gt._editor.executeEdits("colorpicker",Mo),co.presentation.additionalTextEdits&&(Mo=F(co.presentation.additionalTextEdits),gt._editor.executeEdits("colorpicker",Mo),gt.hide()),gt._editor.pushUndoStop(),eo=Qo},Co=function(Mo){return Object(p.a)(Jt,{range:eo,color:{red:Mo.rgba.r/255,green:Mo.rgba.g/255,blue:Mo.rgba.b/255,alpha:Mo.rgba.a}},fe.provider,u.a.None).then(function(Qo){co.colorPresentations=Qo||[]})},Wo=co.onColorFlushed(function(Bo){Co(Bo).then(Zo)}),Go=co.onDidChangeColor(Co);gt._colorPicker=Eo,gt.showAt(eo.getStartPosition(),eo,gt._shouldFocus),gt.updateContents(Nt),gt._colorPicker.layout(),gt.renderDisposable.value=Object(I.e)(Wo,Go,Eo,$e)})}else fe instanceof be?(ze.push(fe),Et=!1):fe.contents.filter(function(Oo){return!Object(_.b)(Oo)}).forEach(function(Oo){var Ao=se("div.hover-row.markdown-hover"),Zo=x.q(Ao,se("div.hover-contents")),Co=$e.add(new Xe.a(gt._editor,gt._modeService,gt._openerService));$e.add(Co.onDidRenderCodeBlock(function(){Zo.className="hover-contents code-hover-contents",gt.onContentsChange()}));var Wo=$e.add(Co.render(Oo));Zo.appendChild(Wo.element),Nt.appendChild(Ao),Et=!1})}),ze.length){ze.forEach(function(fe){return Nt.appendChild(gt.renderMarkerHover(fe))});var Ke=ze.length===1?ze[0]:ze.sort(function(fe,G){return me.c.compare(fe.marker.severity,G.marker.severity)})[0];Nt.appendChild(this.renderMarkerStatusbar(Ke))}!Je&&!Et&&(this.showAt(new f.a(ut.startLineNumber,bt),Gt,this._shouldFocus),this.updateContents(Nt)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,Gt?[{range:Gt,options:tt._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},tt.prototype.renderMarkerHover=function(ut){var Ct=this,gt=se("div.hover-row"),bt=x.q(gt,se("div.marker.hover-contents")),Gt=ut.marker,Nt=Gt.source,Et=Gt.message,Je=Gt.code,$e=Gt.relatedInformation;this._editor.applyFontInfo(bt);var ze=x.q(bt,se("span"));if(ze.style.whiteSpace="pre-wrap",ze.innerText=Et,Nt||Je){if(typeof Je=="string"){var Ke=x.q(bt,se("span"));Ke.style.opacity="0.6",Ke.style.paddingLeft="6px",Ke.innerText=Nt&&Je?Nt+"("+Je+")":Nt||"("+Je+")"}else if(Je){var fe=se("span");if(Nt){var G=x.q(fe,se("span"));G.innerText=Nt}this._codeLink=x.q(fe,se("a.code-link")),this._codeLink.setAttribute("href",Je.link.toString()),this._codeLink.onclick=function(Oo){Ct._openerService.open(Je.link),Oo.preventDefault(),Oo.stopPropagation()};var te=x.q(this._codeLink,se("span"));te.innerText=Je.value;var Ke=x.q(bt,fe);Ke.style.opacity="0.6",Ke.style.paddingLeft="6px"}}if(Object(Fe.q)($e))for(var Y=function(Oo,Ao,Zo,Co){var Wo=x.q(bt,se("div"));Wo.style.marginTop="8px";var Go=x.q(Wo,se("a"));Go.innerText=Object(ge.b)(Ao)+"("+Zo+", "+Co+"): ",Go.style.cursor="pointer",Go.onclick=function(Mo){Mo.stopPropagation(),Mo.preventDefault(),Ct._openerService&&Ct._openerService.open(Ao.with({fragment:Zo+","+Co}),{fromUserGesture:!0}).catch(Ue.e)};var Bo=x.q(Wo,se("span"));Bo.innerText=Oo,de._editor.applyFontInfo(Bo)},de=this,ke=0,lt=$e;ke<lt.length;ke++){var Tt=lt[ke],Jt=Tt.message,eo=Tt.resource,po=Tt.startLineNumber,co=Tt.startColumn;Y(Jt,eo,po,co)}return gt},tt.prototype.renderMarkerStatusbar=function(ut){var Ct=this,gt=se("div.hover-row.status-bar"),bt=new I.b,Gt=x.q(gt,se("div.actions"));(ut.marker.severity===me.c.Error||ut.marker.severity===me.c.Warning||ut.marker.severity===me.c.Info)&&bt.add(this.renderAction(Gt,{label:re.a("peek problem","Peek Problem"),commandId:Re.NextMarkerAction.ID,run:function(){Ct.hide(),Re.MarkerController.get(Ct._editor).show(ut.marker),Ct._editor.focus()}}));var Nt=x.q(Gt,se("div"));Nt.style.opacity="0",Nt.style.transition="opacity 0.2s",setTimeout(function(){return Nt.style.opacity="1"},200),Nt.textContent=re.a("checkingForQuickFixes","Checking for quick fixes..."),bt.add(Object(I.h)(function(){return Nt.remove()}));var Et=this.getCodeActions(ut.marker);return bt.add(Object(I.h)(function(){return Et.cancel()})),Et.then(function(Je){if(Nt.style.transition="",Nt.style.opacity="1",!Je.validActions.length){Je.dispose(),Nt.textContent=re.a("noQuickFixes","No quick fixes available");return}Nt.remove();var $e=!1;bt.add(Object(I.h)(function(){$e||Je.dispose()})),bt.add(Ct.renderAction(Gt,{label:re.a("quick fixes","Quick Fix..."),commandId:ve.e.Id,run:function(Ke){$e=!0;var fe=ve.f.get(Ct._editor),G=x.C(Ke);fe.showCodeActions(Se,Je,{x:G.left+6,y:G.top+G.height+6})}}))}),this.renderDisposable.value=bt,gt},tt.prototype.getCodeActions=function(ut){var Ct=this;return Object(ee.f)(function(gt){return Object(Ee.c)(Ct._editor.getModel(),new z.a(ut.startLineNumber,ut.startColumn,ut.endLineNumber,ut.endColumn),Se,gt)})},tt.prototype.renderAction=function(ut,Ct){var gt=x.q(ut,se("div.action-container")),bt=x.q(gt,se("a.action"));Ct.iconClass&&x.q(bt,se("span.icon."+Ct.iconClass));var Gt=x.q(bt,se("span"));Gt.textContent=Ct.label;var Nt=this._keybindingService.lookupKeybinding(Ct.commandId);return Nt&&(Gt.title=Ct.label+" ("+Nt.getLabel()+")"),x.j(gt,x.d.CLICK,function(Et){Et.stopPropagation(),Et.preventDefault(),Ct.run(gt)})},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 ut=0;ut<at.length;ut++){var Ct=at[ut],gt=tt[ut];if(Ct instanceof be&&gt instanceof be)return me.a.makeKey(Ct.marker)===me.a.makeKey(gt.marker);if(Ct instanceof oe||gt instanceof oe)return!1;if(Ct instanceof be||gt instanceof be)return!1;if(!Object(_.c)(Ct.contents,gt.contents))return!1}return!0}Object(k.e)(function(at,tt){var ut=at.getColor(A.ec);ut&&tt.addRule(".monaco-editor-hover .hover-contents a.code-link span:hover { color: "+ut+"; }")});var it=function(){var at=function(ut,Ct){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,bt){gt.__proto__=bt}||function(gt,bt){for(var Gt in bt)bt.hasOwnProperty(Gt)&&(gt[Gt]=bt[Gt])},at(ut,Ct)};return function(tt,ut){at(tt,ut);function Ct(){this.constructor=tt}tt.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),pt=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}},ut=this._editor.getLineDecorations(this._lineNumber),Ct=[];if(!ut)return Ct;for(var gt=0,bt=ut;gt<bt.length;gt++){var Gt=bt[gt];if(!Gt.options.glyphMarginClassName)continue;var Nt=Gt.options.glyphMarginHoverMessage;if(!Nt||Object(_.b)(Nt))continue;Ct.push.apply(Ct,Object(Fe.b)(Nt).map(tt))}return Ct},at.prototype.onResult=function(tt,ut){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(ut,Ct,gt){gt===void 0&&(gt=we.b);var bt=at.call(this,tt.ID,ut)||this;return bt._renderDisposeables=bt._register(new I.b),bt._messages=[],bt._lastLineNumber=-1,bt._markdownRenderer=bt._register(new Xe.a(bt._editor,Ct,gt)),bt._computer=new pt(bt._editor),bt._hoverOperation=new ae(bt._computer,function(Gt){return bt._withResult(Gt)},void 0,function(Gt){return bt._withResult(Gt)},300),bt}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(ut){if(this._lastLineNumber===ut)return;this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=ut,this._computer.setLineNumber(ut),this._hoverOperation.start(0)},tt.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),at.prototype.hide.call(this)},tt.prototype._withResult=function(ut){this._messages=ut,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},tt.prototype._renderMessages=function(ut,Ct){this._renderDisposeables.clear();for(var gt=document.createDocumentFragment(),bt=0,Gt=Ct;bt<Gt.length;bt++){var Nt=Gt[bt],Et=this._markdownRenderer.render(Nt.value);this._renderDisposeables.add(Et),gt.appendChild(Object(x.a)("div.hover-row",void 0,Et.element))}this.updateContents(gt),this.showAt(ut)},tt.ID="editor.contrib.modesGlyphHoverWidget",tt}(je),Mt=e("79sc"),zt=e("bexQ"),uo=e("H4T2"),ao=function(){var at=function(ut,Ct){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,bt){gt.__proto__=bt}||function(gt,bt){for(var Gt in bt)bt.hasOwnProperty(Gt)&&(gt[Gt]=bt[Gt])},at(ut,Ct)};return function(tt,ut){at(tt,ut);function Ct(){this.constructor=tt}tt.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),so=function(at,tt,ut,Ct){var gt=arguments.length,bt=gt<3?tt:Ct===null?Ct=Object.getOwnPropertyDescriptor(tt,ut):Ct,Gt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")bt=Reflect.decorate(at,tt,ut,Ct);else for(var Nt=at.length-1;Nt>=0;Nt--)(Gt=at[Nt])&&(bt=(gt<3?Gt(bt):gt>3?Gt(tt,ut,bt):Gt(tt,ut))||bt);return gt>3&&bt&&Object.defineProperty(tt,ut,bt),bt},Pt=function(at,tt){return function(ut,Ct){tt(ut,Ct,at)}},ft=function(){function at(tt,ut,Ct,gt,bt,Gt){var Nt=this;this._editor=tt,this._openerService=ut,this._modeService=Ct,this._markerDecorationsService=gt,this._keybindingService=bt,this._themeService=Gt,this._toUnhook=new I.b,this._contentWidget=new I.d,this._glyphWidget=new I.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(Et){Et.hasChanged(44)&&(Nt._hideWidgets(),Nt._unhookEvents(),Nt._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,ut=function(){return tt._hideWidgets()},Ct=this._editor.getOption(44);this._isHoverEnabled=Ct.enabled,this._isHoverSticky=Ct.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(gt){return tt._onEditorMouseDown(gt)})),this._toUnhook.add(this._editor.onMouseUp(function(gt){return tt._onEditorMouseUp(gt)})),this._toUnhook.add(this._editor.onMouseMove(function(gt){return tt._onEditorMouseMove(gt)})),this._toUnhook.add(this._editor.onKeyDown(function(gt){return tt._onKeyDown(gt)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return tt._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(ut)),this._toUnhook.add(this._editor.onMouseLeave(ut)),this._toUnhook.add(this._editor.onDidChangeModel(ut)),this._toUnhook.add(this._editor.onDidScrollChange(function(gt){return tt._onEditorScrollChanged(gt)}))},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 ut=tt.target.type;if(ut===9&&tt.target.detail===Ve.ID){this._hoverClicked=!0;return}if(ut===12&&tt.target.detail===Rt.ID)return;ut!==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 ut=tt.target.type;if(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())return;if(this._isHoverSticky&&ut===9&&tt.target.detail===Ve.ID)return;if(this._isHoverSticky&&ut===12&&tt.target.detail===Rt.ID)return;if(ut===7){var Ct=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,gt=tt.target.detail;gt&&!gt.isAfterLines&&typeof gt.horizontalDistanceToText=="number"&&gt.horizontalDistanceToText<Ct&&(ut=6)}ut===6?(this.glyphWidget.hide(),this._isHoverEnabled&&tt.target.range&&this.contentWidget.startShowingAt(tt.target.range,0,!1)):ut===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,ut,Ct){this.contentWidget.startShowingAt(tt,ut,Ct)},at.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},at.ID="editor.contrib.hover",at=so([Pt(1,we.a),Pt(2,H.a),Pt(3,Mt.a),Pt(4,zt.a),Pt(5,k.c)],at),at}(),vt=function(at){ao(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:O.a.editorTextFocus,primary:Object(J.a)(2048|41,2048|39),weight:100}})||this}return tt.prototype.run=function(ut,Ct){if(!Ct.hasModel())return;var gt=ft.get(Ct);if(!gt)return;var bt=Ct.getPosition(),Gt=new z.a(bt.lineNumber,bt.column,bt.lineNumber,bt.column),Nt=Ct.getOption(2)===2;gt.showContentHover(Gt,1,Nt)},tt}(U.b),At=function(at){ao(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(ut,Ct){var gt=ft.get(Ct);if(!gt)return;var bt=Ct.getPosition();if(!bt)return;var Gt=new z.a(bt.lineNumber,bt.column,bt.lineNumber,bt.column),Nt=uo.GotoDefinitionAtPositionEditorContribution.get(Ct),Et=Nt.startFindDefinitionFromCursor(bt);Et?Et.then(function(){gt.showContentHover(Gt,1,!0)}):gt.showContentHover(Gt,1,!0)},tt}(U.b);Object(U.h)(ft.ID,ft),Object(U.f)(vt),Object(U.f)(At),Object(k.e)(function(at,tt){var ut=at.getColor(A.D);ut&&tt.addRule(".monaco-editor .hoverHighlight { background-color: "+ut+"; }");var Ct=at.getColor(A.A);Ct&&tt.addRule(".monaco-editor .monaco-editor-hover { background-color: "+Ct+"; }");var gt=at.getColor(A.B);gt&&(tt.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+gt+"; }"),tt.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+gt.transparent(.5)+"; }"),tt.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+gt.transparent(.5)+"; }"),tt.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+gt.transparent(.5)+"; }"));var bt=at.getColor(A.ec);bt&&tt.addRule(".monaco-editor .monaco-editor-hover a { color: "+bt+"; }");var Gt=at.getColor(A.C);Gt&&tt.addRule(".monaco-editor .monaco-editor-hover { color: "+Gt+"; }");var Nt=at.getColor(A.E);Nt&&tt.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+Nt+"; }");var Et=at.getColor(A.dc);Et&&tt.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+Et+"; }")})},rzPn:function(Lt,j,e){"use strict";e.d(j,"a",function(){return Ke});var T=e("qH2V"),re=e("sswD"),J=e("tX9W"),I=e("EffR"),U=e("UsjR"),z=e("3/fG"),O=e("MNsG"),H=e("746U"),x=function(){function fe(G){this.modelProvider=Object(H.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}(),u=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 ke=0,lt=Y.entries;ke<lt.length;ke++){var Tt=lt[ke];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 ke=de[Y];G.filter.isVisible(ke)&&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}(),_=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 ke=this.modelProvider.getModel();ke.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"),w=e("/cxE"),p=e("/kV6"),c=function(){function fe(){this._arr=[]}return fe.prototype.set=function(G,te){this._arr.push({keybinding:Object(p.f)(G,O.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 c,this.upKeyBindingDispatcher=new c,(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)}),O.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(I.x(Y.target,"scrollbar","monaco-tree"))return!1;if(I.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=O.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 ke=Y,lt={origin:de,originalEvent:Y,didClickOnTwistie:this.isClickOnTwistie(ke)};if(G.getInput()===te)G.clearFocus(lt),G.clearSelection(lt);else{var Tt=Y&&ke.browserEvent&&ke.browserEvent.type==="mousedown"&&ke.browserEvent.detail===1;Tt||Y.preventDefault(),Y.stopPropagation(),G.domFocus(),G.setSelection([te],lt),G.setFocus(te,lt),this.shouldToggleExpansion(te,ke,de)&&(G.isExpanded(te)?G.collapse(te).then(void 0,w.e):G.expand(te).then(void 0,w.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(!I.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,w.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,w.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,w.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,w.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,w.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,w.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(ke){return de&&!ke?(G.focusParent(Y),G.reveal(G.getFocus())):void 0}).then(void 0,w.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(ke){return de&&!ke?(G.focusFirstChild(Y),G.reveal(G.getFocus())):void 0}).then(void 0,w.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}(),m=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}(),L=e("FWmy"),A=e("pmY6"),k=e("MI8n"),R=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[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 k.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){k.b.once(de.onDispose)(function(){return Y.run(G,te).then(lt,Tt)})});var ke;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 ke=te().then(function(eo){return delete Y.locks[G.id],Jt.dispose(),eo}).then(lt,Tt),ke})},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 k.d,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new k.d,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new k.d,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new k.d,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new k.d,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new k.d,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new k.d,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new k.d,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new k.d,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new k.d,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new k.d,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return fe.prototype.register=function(G){L.a(!this.isRegistered(G.id),"item already registered: "+G.id);var te=Object(A.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){L.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,ke){this._onDidCreate=new k.a,this._onDidReveal=new k.a,this.onDidReveal=this._onDidReveal.event,this._onExpand=new k.a,this.onExpand=this._onExpand.event,this._onDidExpand=new k.a,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new k.a,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new k.a,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new k.a,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new k.a,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new k.a,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new k.a,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new k.a,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new k.a,this.onDidDispose=this._onDidDispose.event,this.registry=te,this.context=Y,this.lock=de,this.element=ke,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,ke)),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 ke=function Tt(Jt){Jt.needsChildrenRefresh=!0,Jt.forEachChild(Tt)};return ke(this),Promise.resolve(this)}this.needsChildrenRefresh=!1;var lt=function(){var Jt={item:de,isNested:te};de._onRefreshChildren.fire(Jt);var eo;de.doesHaveChildren?eo=de.context.dataSource.getChildren(de.context.tree,de.element):eo=Promise.resolve([]);var po=eo.then(function(co){if(de.isDisposed()||de.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(co))return Promise.reject(new Error("Please return an array of children."));co=co?co.slice(0):[],co=de.sort(co);for(var Eo={};de.firstChild!==null;)Eo[de.firstChild.id]=de.firstChild,de.removeChild(de.firstChild);for(var Oo=0,Ao=co.length;Oo<Ao;Oo++){var Zo=co[Oo],Co=de.context.dataSource.getId(de.context.tree,Zo),Wo=Eo[Co]||new fe(Co,de.registry,de.context,de.lock,Zo);Wo.element=Zo,G&&(Wo.needsChildrenRefresh=G),delete Eo[Co],de.addChild(Wo)}for(var Go in Eo)Eo.hasOwnProperty(Go)&&Eo[Go].dispose();return G?Promise.all(de.mapEachChild(function(Bo){return Bo.doRefresh(G,!0)})):Promise.all(de.mapEachChild(function(Bo){return Bo.isExpanded()&&Bo.needsChildrenRefresh?Bo.doRefresh(G,!0):(Bo.updateVisibility(),Promise.resolve(null))}))});return po.then(void 0,w.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 Ce(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,ke=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(ke){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,ke){return Y.compare(te.context.tree,de,ke)}):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,ke,lt){return fe.call(this,te,Y,de,ke,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),Ce=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}(),Me=function(){function fe(G){this.registry=new W,this.registryDisposable=A.a.None,this._onSetInput=new k.a,this.onSetInput=this._onSetInput.event,this._onDidSetInput=new k.a,this.onDidSetInput=this._onDidSetInput.event,this._onRefresh=new k.a,this.onRefresh=this._onRefresh.event,this._onDidRefresh=new k.a,this.onDidRefresh=this._onDidRefresh.event,this._onDidHighlight=new k.a,this.onDidHighlight=this._onDidHighlight.event,this._onDidSelect=new k.a,this.onDidSelect=this._onDidSelect.event,this._onDidFocus=new k.a,this.onDidFocus=this._onDidFocus.event,this._onDidRevealItem=new k.f,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new k.f,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new k.f,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new k.f,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new k.f,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new k.f,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new k.f,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new k.f,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new k.f,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new k.f,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new k.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(ke){return ke.getAllTraits().forEach(function(lt){return delete te.traitsToItems[lt][ke.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 ke={item:de,recursive:te};return this._onRefresh.fire(ke),de.refresh(te).then(function(){Y._onDidRefresh.fire(ke)})},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 ke=Promise.resolve(null);return de.forEach(function(lt){ke=ke.then(function(){return Y.expand(lt)})}),ke}).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,ke=this.getNavigator(Y,!1),lt=0;lt<G&&!(de=ke.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,ke=this.getNavigator(Y,!1),lt=0;lt<G&&!(de=ke.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(),ke=Y.parent();ke===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),ke=this.getNavigator(de),lt=ke.first(),Tt=0;Tt<G;Tt++)lt=ke.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 ke=this.getNavigator(Y);de=ke.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 Ce(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,ke;if(te.length===0){for(ke in Y)Y.hasOwnProperty(ke)&&(de=Y[ke],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,ke=0,lt=te.length;ke<lt;ke++)de=this.getItem(te[ke]),de&&(Y[de.id]=de);var Tt=this.traitsToItems[G]||{},Jt=[],eo=void 0;for(eo in Tt)Tt.hasOwnProperty(eo)&&(Y.hasOwnProperty(eo)?delete Y[eo]:Jt.push(Tt[eo]));for(var ke=0,lt=Jt.length;ke<lt;ke++)de=Jt[ke],de.removeTrait(G),delete Tt[de.id];for(eo in Y)Y.hasOwnProperty(eo)&&(de=Y[eo],de.addTrait(G),Tt[eo]=de);this.traitsToItems[G]=Tt}},fe.prototype.getElementsWithTrait=function(G,te){var Y=[],de=this.traitsToItems[G]||{},ke;for(ke in de)de.hasOwnProperty(ke)&&(de[ke].isVisible()||te)&&Y.push(de[ke].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"),Fe=e("Gw4z"),Ue=e("pg8w"),Pe=e("N0LK"),ne=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}(),ue=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"),je=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,ke,lt,Tt,Jt=0;if(te===null)ke=0,Tt=0;else{if(ke=this.indexes[te]+1,de=this.heightMap[ke-1],!de){console.error("view item doesnt exist");return}Tt=de.top+de.height}for(var eo=this.heightMap.splice.bind(this.heightMap,ke,0),po=[];Y=G.next();)de=this.createViewItem(Y),de.top=Tt+Jt,this.indexes[Y.id]=ke++,po.push(de),Jt+=de.height;for(eo.apply(this.heightMap,po),lt=ke;lt<this.heightMap.length;lt++)de=this.heightMap[lt],de.top+=Jt,this.indexes[de.model.id]=lt;for(lt=po.length-1;lt>=0;lt--)this.onInsertItem(po[lt]);for(lt=this.heightMap.length-1;lt>=ke;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,ke=0,lt=0;te=G.next();){if(ke=this.indexes[te],Y=this.heightMap[ke],!Y){console.error("view item doesnt exist");return}lt-=Y.height,delete this.indexes[te],this.onRemoveItem(Y),de===null&&(de=ke)}if(lt===0||de===null)return;for(this.heightMap.splice(de,ke-de+1),ke=de;ke<this.heightMap.length;ke++)Y=this.heightMap[ke],Y.top+=lt,this.indexes[Y.model.id]=ke,this.onRefreshItem(Y)},fe.prototype.onRemoveItem=function(G){},fe.prototype.onRefreshItemSet=function(G){var te=this,Y=G.sort(function(de,ke){return te.indexes[de.id]-te.indexes[ke.id]});this.onRefreshItems(new X.a(Y))},fe.prototype.onRefreshItems=function(G){for(var te=null,Y,de,ke,lt=null,Tt=0;te=G.next();){for(ke=this.indexes[te.id];Tt!==0&&lt!==null&&lt<ke;lt++)Y=this.heightMap[lt],Y.top+=Tt,this.onRefreshItem(Y);Y=this.heightMap[ke],de=te.getHeight(),Y.top+=Tt,Tt+=de-Y.height,Y.height=de,this.onRefreshItem(Y,!0),lt=ke+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,ke;te<Y;)if(de=Math.floor((te+Y)/2),ke=this.heightMap[de],G<ke.top)Y=de;else if(G>=ke.top+ke.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,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[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)}}(),me=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}(),ge=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}(me),we=function(fe){Xe(G,fe);function G(te,Y,de){var ke=fe.call(this,te,Y,de.target)||this;return ke.originalEvent=de,ke}return G.prototype.preventDefault=function(){this.originalEvent.preventDefault()},G.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},G}(me),Re=e("ZQ78"),Ee=e("X+cX"),ve=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[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 C=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 ke=null;try{ke=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:ke}}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}(),F=function(){function fe(G,te){var Y=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=A.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,ke=de.getAriaLabel(this.context.tree,this.model.getElement());if(ke&&this.element.setAttribute("aria-label",ke),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=Pe.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=I.j(this.element,"dragstart",function(po){te.onDragStart(po)})):this.uri=null),!G&&this.element){var Jt=0;if(this.context.horizontalScrolling){var eo=window.getComputedStyle(this.element);Jt=parseFloat(eo.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(po){console.error("Tree usage error: exception while rendering element"),console.error(po)}this.context.horizontalScrolling&&(this.width=I.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[be.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[be.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 ke=fe.call(this,te,Y)||this;return ke.row={element:de,templateData:null,templateId:null},ke}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}(F);function oe(fe,G){return!fe&&!G?!0:!fe||!G||(fe.accept!==G.accept||fe.bubble!==G.bubble)?!1:!(fe.effect!==G.effect)}var be=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=A.a.None,de.gestureDisposable=A.a.None,de.dragAndDropScrollInterval=null,de.dragAndDropScrollTimeout=null,de.dragAndDropMouseY=null,de.highlightedItemWasDraggable=!1,de.onHiddenScrollTop=null,de._onDOMFocus=new k.a,de.onDOMFocus=de._onDOMFocus.event,de._onDOMBlur=new k.a,de._onDidScroll=new k.a,G.counter++,de.instance=G.counter;var ke=typeof te.options.horizontalScrollMode=="undefined"?2:te.options.horizontalScrollMode;de.horizontalScrolling=ke!==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 C(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=I.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&&I.f(de.domNode,"focused"),de.context.options.paddingOnRow||I.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:ke,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=Ue.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=I.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(I.j(de.domNode,"keydown",function(Tt){return de.onKeyDown(Tt)})),de.viewListeners.push(I.j(de.domNode,"keyup",function(Tt){return de.onKeyUp(Tt)})),de.viewListeners.push(I.j(de.domNode,"mousedown",function(Tt){return de.onMouseDown(Tt)})),de.viewListeners.push(I.j(de.domNode,"mouseup",function(Tt){return de.onMouseUp(Tt)})),de.viewListeners.push(I.j(de.wrapper,"auxclick",function(Tt){Tt&&Tt.button===1&&de.onMouseMiddleClick(Tt)})),de.viewListeners.push(I.j(de.wrapper,"click",function(Tt){return de.onClick(Tt)})),de.viewListeners.push(I.j(de.domNode,"contextmenu",function(Tt){return de.onContextMenu(Tt)})),de.viewListeners.push(I.j(de.wrapper,Ue.a.Tap,function(Tt){return de.onTap(Tt)})),de.viewListeners.push(I.j(de.wrapper,Ue.a.Change,function(Tt){return de.onTouchChange(Tt)})),Te.i&&(de.viewListeners.push(I.j(de.wrapper,"MSPointerDown",function(Tt){return de.onMsPointerDown(Tt)})),de.viewListeners.push(I.j(de.wrapper,"MSGestureTap",function(Tt){return de.onMsGestureTap(Tt)})),de.viewListeners.push(I.m(de.wrapper,"MSGestureChange",function(Tt){return de.onThrottledMsGestureChange(Tt)},function(Tt,Jt){Jt.stopPropagation(),Jt.preventDefault();var eo={translationY:Jt.translationY,translationX:Jt.translationX};return Tt&&(eo.translationY+=Tt.translationY,eo.translationX+=Tt.translationX),eo}))),de.viewListeners.push(I.j(window,"dragover",function(Tt){return de.onDragOver(Tt)})),de.viewListeners.push(I.j(de.wrapper,"drop",function(Tt){return de.onDrop(Tt)})),de.viewListeners.push(I.j(window,"dragend",function(Tt){return de.onDragEnd(Tt)})),de.viewListeners.push(I.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 F(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||I.A(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=Y||I.B(this.wrapper))},G.prototype.render=function(te,Y,de,ke,lt){var Tt,Jt,eo=te,po=te+Y,co=this.lastRenderTop+this.lastRenderHeight;for(Tt=this.indexAfter(po)-1,Jt=this.indexAt(Math.max(co,eo));Tt>=Jt;Tt--)this.insertItemInDOM(this.itemAtIndex(Tt));for(Tt=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(po))-1,Jt=this.indexAt(eo);Tt>=Jt;Tt--)this.insertItemInDOM(this.itemAtIndex(Tt));for(Tt=this.indexAt(this.lastRenderTop),Jt=Math.min(this.indexAt(eo),this.indexAfter(co));Tt<Jt;Tt++)this.removeItemFromDOM(this.itemAtIndex(Tt));for(Tt=Math.max(this.indexAfter(po),this.indexAt(this.lastRenderTop)),Jt=this.indexAfter(co);Tt<Jt;Tt++)this.removeItemFromDOM(this.itemAtIndex(Tt));var Eo=this.itemAtIndex(this.indexAt(eo));Eo&&(this.rowsContainer.style.top=Eo.top-eo+"px"),this.horizontalScrolling&&(this.rowsContainer.style.left=-de+"px",this.rowsContainer.style.width=Math.max(lt,ke)+"px"),this.lastRenderTop=eo,this.lastRenderHeight=po-eo},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,ke=0,lt=Y;ke<lt.length;ke++){var Tt=lt[ke];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 ke=this.itemAtIndex(de).model.getElement(),lt=this.model.getFocus();if(lt!==ke)this.model.setFocus(ke,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 ke=this.itemAtIndex(de).model.getElement(),lt=this.model.getFocus();if(lt!==ke)this.model.setFocus(ke,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 ke=[],lt=Y.getNavigator(),Tt=void 0;Tt=lt.next();)ke.push(Tt.id);this.refreshingPreviousChildrenIds[Y.id]=ke}},G.prototype.onItemChildrenRefreshed=function(te){var Y=this,de=te.item,ke=this.items[de.id];if(ke&&(ke.loadingTimer&&(clearTimeout(ke.loadingTimer),ke.loadingTimer=0),ke.loading=!1),!te.isNested){for(var lt=this.refreshingPreviousChildrenIds[de.id],Tt=[],Jt=de.getNavigator(),eo=void 0;eo=Jt.next();)Tt.push(eo);var po=Math.abs(lt.length-Tt.length)>1e3,co=[],Eo=!1;if(!po){var Oo=new Fe.a({getElements:function(){return lt}},{getElements:function(){return Tt.map(function(Bo){return Bo.id})}},null);co=Oo.ComputeDiff(!1).changes,Eo=co.some(function(Go){if(Go.modifiedLength>0){for(var Bo=Go.modifiedStart,Mo=Go.modifiedStart+Go.modifiedLength;Bo<Mo;Bo++)if(Y.items.hasOwnProperty(Tt[Bo].id))return!0}return!1})}if(!po&&!Eo&&co.length<50)for(var Ao=0,Zo=co;Ao<Zo.length;Ao++){var Co=Zo[Ao];if(Co.originalLength>0&&this.onRemoveItems(new X.a(lt,Co.originalStart,Co.originalStart+Co.originalLength)),Co.modifiedLength>0){var Wo=Tt[Co.modifiedStart-1]||de;Wo=Wo.getDepth()>0?Wo:null,this.onInsertItems(new X.a(Tt,Co.modifiedStart,Co.modifiedStart+Co.modifiedLength),Wo?Wo.id:null)}}else(po||co.length)&&(this.onRemoveItems(new X.a(lt)),this.onInsertItems(new X.a(Tt),de.getDepth()>0?de.id:null));(po||co.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 ke=this.onInsertItems(Y.getNavigator(),Y.id)||0,lt=this.scrollTop;de.top+de.height<=this.scrollTop&&(lt+=ke),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(ke){return ke&&ke.id})),this.onRowsChanged())},G.prototype.onItemReveal=function(te){var Y=te.item,de=te.relativeTop,ke=this.items[Y.id];if(ke)if(de!==null){de=de<0?0:de,de=de>1?1:de;var lt=ke.height-this.viewHeight;this.scrollTop=lt*de+ke.top}else{var Tt=ke.top+ke.height,Jt=this.scrollTop+this.viewHeight;ke.top<this.scrollTop?this.scrollTop=ke.top:Tt>=Jt&&(this.scrollTop=Tt-this.viewHeight)}},G.prototype.onItemAddTrait=function(te){var Y=te.item,de=te.trait,ke=this.items[Y.id];ke&&ke.addClass(de),de==="highlighted"&&(I.f(this.domNode,de),ke&&(this.highlightedItemWasDraggable=!!ke.draggable,ke.draggable&&(ke.draggable=!1)))},G.prototype.onItemRemoveTrait=function(te){var Y=te.item,de=te.trait,ke=this.items[Y.id];ke&&ke.removeClass(de),de==="highlighted"&&(I.P(this.domNode,de),this.highlightedItemWasDraggable&&(ke.draggable=!0),this.highlightedItemWasDraggable=!1)},G.prototype.onModelFocusChange=function(){var te=this.model&&this.model.getFocus();I.Y(this.domNode,"no-focused-item",!te),te?this.domNode.setAttribute("aria-activedescendant",Pe.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 ne.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 ne.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 ne.b(te);if(Y.ctrlKey&&O.f&&O.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 ne.b(te);if(Y.ctrlKey&&O.f&&O.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 ke=new ee.a(te);de=this.model.getFocus();var lt=void 0;if(!de)de=this.model.getInput(),lt=I.C(this.inputItem.element);else{var Tt=this.context.dataSource.getId(this.context.tree,de),Jt=this.items[Tt];lt=I.C(Jt.element)}Y=new we(lt.left+lt.width,lt.top,ke)}else{var eo=new ne.b(te),po=this.getItemAround(eo.target);if(!po)return;de=po.model.getElement(),Y=new ge(eo)}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(),ke=this.model.getSelection(),lt;if(ke.indexOf(de)>-1?lt=ke: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 ne.a(Y))},G.prototype.setupDragAndDropScrollInterval=function(){var te=this,Y=I.F(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(te.dragAndDropMouseY===null)return;var de=te.dragAndDropMouseY-Y,ke=0,lt=te.viewHeight-35;de<35?ke=Math.max(-14,.2*(de-35)):de>lt&&(ke=Math.min(14,.2*(de-lt))),te.scrollTop+=ke},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 ne.a(te),ke=this.getItemAround(de.target);if(!ke||de.posx===0&&de.posy===0&&de.browserEvent.type===I.d.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach(function(Ao){return Ao.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 ue}this.currentDragAndDropData.update(de.browserEvent.dataTransfer);var lt,Tt=ke.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 eo=Jt&&Jt.accept;eo?(this.currentDropElement=Tt.getElement(),de.preventDefault(),de.dataTransfer.dropEffect=Jt.effect===0?"copy":"move"):this.currentDropElement=null;var po=Tt.id===this.inputItem.id?this.inputItem:this.items[Tt.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==po||!oe(this.currentDropElementReaction,Jt))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach(function(Ao){return Ao.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=po,this.currentDropElementReaction=Jt,eo)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),Jt.bubble===0)for(var co=Tt.getNavigator(),Eo=void 0;Eo=co.next();)ke=this.items[Eo.id],ke&&(ke.dropTarget=!0,this.currentDropTargets.push(ke));if(Jt.autoExpand){var Oo=Object(Ee.l)(500);this.currentDropDisposable=A.h(function(){return Oo.cancel()}),Oo.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 ne.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||I.f(this.domNode,"focused"),this._onDOMFocus.fire()},G.prototype.onBlur=function(){this.context.options.alwaysFocused||I.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=A.f(this.modelListeners),this.model=null)},G.prototype.dispose=function(){var te=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=A.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}(je),De=e("zrhQ"),Se=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 m,this.styler=te.styler}return fe}(),Qe={listFocusBackground:De.a.fromHex("#073655"),listActiveSelectionBackground:De.a.fromHex("#0E639C"),listActiveSelectionForeground:De.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:De.a.fromHex("#094771"),listFocusAndSelectionForeground:De.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:De.a.fromHex("#3F3F46"),listHoverBackground:De.a.fromHex("#2A2D2E"),listDropBackground:De.a.fromHex("#383B3D")},it=function(){function fe(G,te,Y){Y===void 0&&(Y={}),this._onDidChangeFocus=new k.f,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new k.f,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new k.f,this._onDidExpandItem=new k.f,this._onDidCollapseItem=new k.f,this._onDispose=new k.a,this.onDidDispose=this._onDispose.event,this.container=G,Object(Se.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 Me(this.context),this.view=new be(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}(),pt=e("HyZH"),Rt=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[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)}}(),Mt="done",zt="active",uo="infinite",ao="discrete",so="monaco-progress-container",Pt="progress-bit",ft={progressBarBackground:De.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(Se.g)(de.options,ft,!1),de.workedVal=0,de.progressBarBackground=de.options.progressBarBackground,de._register(de.showDelayedScheduler=new Ee.d(function(){return Object(I.X)(de.element)},0)),de.create(te),de}return G.prototype.create=function(te){this.element=document.createElement("div"),Object(I.f)(this.element,so),te.appendChild(this.element),this.bit=document.createElement("div"),Object(I.f)(this.bit,Pt),this.element.appendChild(this.bit),this.applyStyles()},G.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(I.Q)(this.element,zt,uo,ao),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(I.f)(this.element,Mt),Object(I.I)(this.element,uo)?(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(I.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}(A.a),At=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[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){At(G,fe);function G(){return fe!==null&&fe.apply(this,arguments)||this}return G.prototype.onContextMenu=function(te,Y,de){return O.e?this.onLeftClick(te,Y,de):fe.prototype.onContextMenu.call(this,te,Y,de)},G}(s),tt={background:De.a.fromHex("#1E1E1E"),foreground:De.a.fromHex("#CCCCCC"),pickerGroupForeground:De.a.fromHex("#0097FB"),pickerGroupBorder:De.a.fromHex("#3F3F46"),widgetShadow:De.a.fromHex("#000000"),progressBarBackground:De.a.fromHex("#0E70C0")},ut=z.a("quickOpenAriaLabel","Quick picker. Type to narrow down results."),Ct=function(fe){At(G,fe);function G(te,Y,de){var ke=fe.call(this)||this;return ke.isDisposed=!1,ke.container=te,ke.callbacks=Y,ke.options=de,ke.styles=de||Object.create(null),Object(Se.g)(ke.styles,tt,!1),ke.model=null,ke}return G.prototype.getModel=function(){return this.model},G.prototype.create=function(){var te=this;this.element=document.createElement("div"),I.f(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(I.j(this.element,I.d.CONTEXT_MENU,function(de){return I.c.stop(de,!0)})),this._register(I.j(this.element,I.d.FOCUS,function(de){return te.gainingFocus()},!0)),this._register(I.j(this.element,I.d.BLUR,function(de){return te.loosingFocus(de)},!0)),this._register(I.j(this.element,I.d.KEY_DOWN,function(de){var ke=new ee.a(de);if(ke.keyCode===9)I.c.stop(de,!0),te.hide(2);else if(ke.keyCode===2&&!ke.altKey&&!ke.ctrlKey&&!ke.metaKey){var lt=de.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");ke.shiftKey&&ke.target===lt[0]?(I.c.stop(de,!0),lt[lt.length-1].focus()):!ke.shiftKey&&ke.target===lt[lt.length-1]&&(I.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"),I.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:ut,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(I.j(this.inputBox.inputElement,I.d.INPUT,function(de){return te.onType()})),this._register(I.j(this.inputBox.inputElement,I.d.KEY_DOWN,function(de){var ke=new ee.a(de),lt=te.shouldOpenInBackground(ke);if(ke.keyCode===2)return;if(ke.keyCode===18||ke.keyCode===16||ke.keyCode===12||ke.keyCode===11)I.c.stop(de,!0),te.navigateInTree(ke.keyCode,ke.shiftKey),te.inputBox.inputElement.selectionStart===te.inputBox.inputElement.selectionEnd&&(te.inputBox.inputElement.selectionStart=te.inputBox.value.length);else if(ke.keyCode===3||lt){I.c.stop(de,!0);var Tt=te.tree.getFocus();Tt&&te.elementSelected(Tt,de,lt?2:1)}})),this.resultCount=document.createElement("div"),I.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"),I.f(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var Y=this.options.treeCreator||function(de,ke,lt){return new it(de,ke,lt)};return this.tree=this._register(Y(this.treeContainer,{dataSource:new x(this),controller:new at({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new _(this,this.styles),filter:new y(this),accessibilityProvider:new u(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 ke=de.payload&&de.payload.originalEvent instanceof ne.b?de.payload.originalEvent:void 0,lt=ke?te.shouldOpenInBackground(ke):!1;te.elementSelected(de.selection[0],de,lt?2:1)}})),this._register(I.j(this.treeContainer,I.d.KEY_DOWN,function(de){var ke=new ee.a(de);if(!te.quickNavigateConfiguration)return;if(ke.keyCode===18||ke.keyCode===16||ke.keyCode===12||ke.keyCode===11)I.c.stop(de,!0),te.navigateInTree(ke.keyCode);else if(ke.keyCode===3){I.c.stop(de,!0);var lt=te.tree.getFocus();lt&&te.elementSelected(lt,de)}})),this._register(I.j(this.treeContainer,I.d.KEY_UP,function(de){var ke=new ee.a(de),lt=ke.keyCode;if(!te.quickNavigateConfiguration)return;var Tt=te.quickNavigateConfiguration.keybindings,Jt=Tt.some(function(po){var co=po.getParts(),Eo=co[0],Oo=co[1];return Oo?!1:Eo.shiftKey&&lt===4?!(ke.ctrlKey||ke.altKey||ke.metaKey):Eo.altKey&&lt===6||Eo.ctrlKey&&lt===5?!0:!!(Eo.metaKey&&lt===57)});if(Jt){var eo=te.tree.getFocus();eo&&te.elementSelected(eo,de)}})),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(I.j(this.treeContainer,I.d.KEY_DOWN,function(de){var ke=new ee.a(de);if(te.quickNavigateConfiguration)return;(ke.keyCode===18||ke.keyCode===16||ke.keyCode===12||ke.keyCode===11)&&(I.c.stop(de,!0),te.navigateInTree(ke.keyCode,ke.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():"",ke=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=ke?"0 5px 8px "+ke:""}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?I.J(this.helpText):I.X(this.helpText)),this.callbacks.onType(te)},G.prototype.navigateInTree=function(te,Y){var de=this.tree.getInput(),ke=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();ke.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 ke={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(te,0,ke)},G.prototype.elementSelected=function(te,Y,de){var ke=!0;if(this.isVisible()){var lt=de||1,Tt={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};ke=this.model.runner.run(te,lt,Tt)}ke&&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?(I.J(this.inputContainer),I.X(this.element),this.tree.domFocus()):(I.X(this.inputContainer),I.X(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||H.j(te)?I.J(this.helpText):I.X(this.helpText)),H.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 ke=te?te.entries.filter(function(lt){return de.isElementVisible(te,lt)}):[];de.updateResultCount(ke.length),ke.length&&de.autoFocus(te,ke,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 ke=void 0,lt=void 0,Tt=de.autoFocusPrefixMatch,Jt=Tt.toLowerCase(),eo=0,po=Y;eo<po.length;eo++){var co=po[eo],Eo=te.dataSource.getLabel(co)||"";if(!ke&&Eo.indexOf(Tt)===0?ke=co:!lt&&Eo.toLowerCase().indexOf(Jt)===0&&(lt=co),ke&&lt)break}var Oo=ke||lt;if(Oo){this.tree.setFocus(Oo),this.tree.reveal(Oo,.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 ke=de.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*ke: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(Eo){return Y.isElementVisible(te,Eo)}),eo=this.options.maxItemsToShow||Jt.length,po=0;po<eo&&po<Jt.length;po++){var co=de.getHeight(Jt[po]);if(lt+co<=Tt)lt+=co;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,I.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||ut)},G.prototype.onInputChanging=function(){var te=this;this.inputChangingTimeoutHandle&&(clearTimeout(this.inputChangingTimeoutHandle),this.inputChangingTimeoutHandle=null),I.f(this.element,"content-changing"),this.inputChangingTimeoutHandle=setTimeout(function(){I.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&&I.K(de,this.element))return;this.isLoosingFocus=!0,setTimeout(function(){if(!Y.isLoosingFocus||Y.isDisposed)return;var ke=Y.callbacks.onFocusLost&&Y.callbacks.onFocusLost();ke||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}(A.a),gt=e("MD5Z"),bt=e("ptcw"),Gt=function(){function fe(G,te,Y,de,ke,lt){this.codeEditor=G,this.themeService=lt,this.visible=!1,this.domNode=document.createElement("div"),this.quickOpenWidget=new Ct(this.domNode,{onOk:te,onCancel:Y,onType:de},{inputPlaceHolder:void 0,inputAriaLabel:ke.inputAriaLabel,keyboardSupport:!0}),this.styler=Object(bt.d)(this.quickOpenWidget,this.themeService,{pickerGroupForeground:gt.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 I.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}(),Nt=e("t9D7"),Et=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[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,ke=de<3?G:Y===null?Y=Object.getOwnPropertyDescriptor(G,te):Y,lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ke=Reflect.decorate(fe,G,te,Y);else for(var Tt=fe.length-1;Tt>=0;Tt--)(lt=fe[Tt])&&(ke=(de<3?lt(ke):de>3?lt(G,te,ke):lt(G,te))||ke);return de>3&&ke&&Object.defineProperty(G,te,ke),ke},$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(ke){te.clearDecorations(),ke&&te.lastKnownEditorSelection&&(te.editor.setSelection(te.lastKnownEditorSelection),te.editor.revealRangeInCenterIfOutsideViewport(te.lastKnownEditorSelection,0)),te.lastKnownEditorSelection=null,(document.activeElement===document.body||!ke)&&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}],ke=te.deltaDecorations(Y,de);this.rangeHighlightDecorationId=ke[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,Nt.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(ke){return Y.getModel(ke)},getAutoFocus:function(ke){return Y.getAutoFocus(ke)}})},G}(re.b);Object(re.h)(ze.ID,ze)},s7Km:function(Lt,j,e){"use strict";e.r(j),e.d(j,"MoveWordCommand",function(){return v}),e.d(j,"WordLeftCommand",function(){return w}),e.d(j,"WordRightCommand",function(){return p}),e.d(j,"CursorWordStartLeft",function(){return c}),e.d(j,"CursorWordEndLeft",function(){return s}),e.d(j,"CursorWordLeft",function(){return l}),e.d(j,"CursorWordStartLeftSelect",function(){return d}),e.d(j,"CursorWordEndLeftSelect",function(){return m}),e.d(j,"CursorWordLeftSelect",function(){return E}),e.d(j,"CursorWordAccessibilityLeft",function(){return L}),e.d(j,"CursorWordAccessibilityLeftSelect",function(){return A}),e.d(j,"CursorWordStartRight",function(){return k}),e.d(j,"CursorWordEndRight",function(){return R}),e.d(j,"CursorWordRight",function(){return $}),e.d(j,"CursorWordStartRightSelect",function(){return ie}),e.d(j,"CursorWordEndRightSelect",function(){return W}),e.d(j,"CursorWordRightSelect",function(){return B}),e.d(j,"CursorWordAccessibilityRight",function(){return le}),e.d(j,"CursorWordAccessibilityRightSelect",function(){return Ce}),e.d(j,"DeleteWordCommand",function(){return Me}),e.d(j,"DeleteWordLeftCommand",function(){return Te}),e.d(j,"DeleteWordRightCommand",function(){return Fe}),e.d(j,"DeleteWordStartLeft",function(){return Ue}),e.d(j,"DeleteWordEndLeft",function(){return Pe}),e.d(j,"DeleteWordLeft",function(){return ne}),e.d(j,"DeleteWordStartRight",function(){return ee}),e.d(j,"DeleteWordEndRight",function(){return ae}),e.d(j,"DeleteWordRight",function(){return q});var T=e("sswD"),re=e("LCkn"),J=e("Ll0s"),I=e("1I1M"),U=e("5v8Y"),z=e("cGHE"),O=e("aokT"),H=e("gCVg"),x=e("wQH0"),u=e("R3nR"),y=e("T8No"),_=e("/UlZ"),f=function(){var ue=function(he,je){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Xe,me){Xe.__proto__=me}||function(Xe,me){for(var ge in me)me.hasOwnProperty(ge)&&(Xe[ge]=me[ge])},ue(he,je)};return function(X,he){ue(X,he);function je(){this.constructor=X}X.prototype=he===null?Object.create(he):(je.prototype=he.prototype,new je)}}(),v=function(ue){f(X,ue);function X(he){var je=ue.call(this,he)||this;return je._inSelectionMode=he.inSelectionMode,je._wordNavigationType=he.wordNavigationType,je}return X.prototype.runEditorCommand=function(he,je,Xe){var me=this;if(!je.hasModel())return;var ge=Object(U.a)(je.getOption(96)),we=je.getModel(),Re=je.getSelections(),Ee=Re.map(function(Q){var C=new z.a(Q.positionLineNumber,Q.positionColumn),F=me._move(ge,we,C,me._wordNavigationType);return me._moveTo(Q,F,me._inSelectionMode)});if(je._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);je.revealPosition(ve,0)}},X.prototype._moveTo=function(he,je,Xe){return Xe?new H.a(he.selectionStartLineNumber,he.selectionStartColumn,je.lineNumber,je.column):new H.a(je.lineNumber,je.column,je.lineNumber,je.column)},X}(T.c),w=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._move=function(he,je,Xe,me){return I.a.moveWordLeft(he,je,Xe,me)},X}(v),p=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._move=function(he,je,Xe,me){return I.a.moveWordRight(he,je,Xe,me)},X}(v),c=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|15,mac:{primary:512|15},weight:100}})||this}return X}(w),s=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}return X}(w),l=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}return X}(w),d=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1024|15,mac:{primary:512|1024|15},weight:100}})||this}return X}(w),m=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}return X}(w),E=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}return X}(w),L=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|15},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(U.a)(_.e.wordSeparators.defaultValue),je,Xe,me)},X}(w),A=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|1024|15},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(U.a)(_.e.wordSeparators.defaultValue),je,Xe,me)},X}(w),k=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}return X}(p),R=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|17,mac:{primary:512|17},weight:100}})||this}return X}(p),$=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}return X}(p),ie=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}return X}(p),W=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1024|17,mac:{primary:512|1024|17},weight:100}})||this}return X}(p),B=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}return X}(p),le=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|17},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(U.a)(_.e.wordSeparators.defaultValue),je,Xe,me)},X}(p),Ce=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|1024|17},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(U.a)(_.e.wordSeparators.defaultValue),je,Xe,me)},X}(p),Me=function(ue){f(X,ue);function X(he){var je=ue.call(this,he)||this;return je._whitespaceHeuristics=he.whitespaceHeuristics,je._wordNavigationType=he.wordNavigationType,je}return X.prototype.runEditorCommand=function(he,je,Xe){var me=this;if(!je.hasModel())return;var ge=Object(U.a)(je.getOption(96)),we=je.getModel(),Re=je.getSelections(),Ee=Re.map(function(ve){var Q=me._delete(ge,we,ve,me._whitespaceHeuristics,me._wordNavigationType);return new re.a(Q,"")});je.pushUndoStop(),je.executeCommands(this.id,Ee),je.pushUndoStop()},X}(T.c),Te=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._delete=function(he,je,Xe,me,ge){var we=I.a.deleteWordLeft(he,je,Xe,me,ge);return we||new O.a(1,1,1,1)},X}(Me),Fe=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._delete=function(he,je,Xe,me,ge){var we=I.a.deleteWordRight(he,je,Xe,me,ge);if(we)return we;var Re=je.getLineCount(),Ee=je.getLineMaxColumn(Re);return new O.a(Re,Ee,Re,Ee)},X}(Me),Ue=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:x.a.writable})||this}return X}(Te),Pe=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:x.a.writable})||this}return X}(Te),ne=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:x.a.writable,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1,mac:{primary:512|1},weight:100}})||this}return X}(Te),ee=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:x.a.writable})||this}return X}(Fe),ae=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:x.a.writable})||this}return X}(Fe),q=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:x.a.writable,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|20,mac:{primary:512|20},weight:100}})||this}return X}(Fe);Object(T.g)(new c),Object(T.g)(new s),Object(T.g)(new l),Object(T.g)(new d),Object(T.g)(new m),Object(T.g)(new E),Object(T.g)(new k),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 L),Object(T.g)(new A),Object(T.g)(new le),Object(T.g)(new Ce),Object(T.g)(new Ue),Object(T.g)(new Pe),Object(T.g)(new ne),Object(T.g)(new ee),Object(T.g)(new ae),Object(T.g)(new q)},sFUC:function(Lt,j,e){"use strict";e.d(j,"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(Lt,j,e){"use strict";e.d(j,"a",function(){return I}),e.d(j,"b",function(){return U});var T=e("S3by"),re=e("Cg/j"),J=T.a,I=Object(re.c)("notificationService"),U=function(){function z(){}return z}()},sStQ:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return e.e(172).then(e.bind(null,"QKwv"))}})},scqD:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("themeService")},siPX:function(Lt,j,e){},snIX:function(Lt,j,e){"use strict";e.d(j,"a",function(){return z});var T=e("N0LK"),re=e("LCkn"),J=e("Ll0s"),I=e("+Fos"),U=e("aokT"),z=function(){function O(){}return O.deleteRight=function(H,x,u,y){for(var _=[],f=H!==3,v=0,w=y.length;v<w;v++){var p=y[v],c=p;if(c.isEmpty()){var s=p.getPosition(),l=I.a.right(x,u,s.lineNumber,s.column);c=new U.a(l.lineNumber,l.column,s.lineNumber,s.column)}if(c.isEmpty()){_[v]=null;continue}c.startLineNumber!==c.endLineNumber&&(f=!0),_[v]=new re.a(c,"")}return[f,_]},O._isAutoClosingPairDelete=function(H,x,u){if(H.autoClosingBrackets==="never"&&H.autoClosingQuotes==="never")return!1;for(var y=0,_=u.length;y<_;y++){var f=u[y],v=f.getPosition();if(!f.isEmpty())return!1;var w=x.getLineContent(v.lineNumber),p=w[v.column-2],c=H.autoClosingPairsOpen2.get(p);if(!c)return!1;if(Object(J.g)(p)){if(H.autoClosingQuotes==="never")return!1}else if(H.autoClosingBrackets==="never")return!1;for(var s=w[v.column-1],l=!1,d=0,m=c;d<m.length;d++){var E=m[d];E.open===p&&E.close===s&&(l=!0)}if(!l)return!1}return!0},O._runAutoClosingPairDelete=function(H,x,u){for(var y=[],_=0,f=u.length;_<f;_++){var v=u[_].getPosition(),w=new U.a(v.lineNumber,v.column-1,v.lineNumber,v.column+1);y[_]=new re.a(w,"")}return[!0,y]},O.deleteLeft=function(H,x,u,y){if(this._isAutoClosingPairDelete(x,u,y))return this._runAutoClosingPairDelete(x,u,y);for(var _=[],f=H!==2,v=0,w=y.length;v<w;v++){var p=y[v],c=p;if(c.isEmpty()){var s=p.getPosition();if(x.useTabStops&&s.column>1){var l=u.getLineContent(s.lineNumber),d=T.q(l),m=d===-1?l.length+1:d+1;if(s.column<=m){var E=J.a.visibleColumnFromColumn2(x,u,s),L=J.a.prevIndentTabStop(E,x.indentSize),A=J.a.columnFromVisibleColumn2(x,u,s.lineNumber,L);c=new U.a(s.lineNumber,A,s.lineNumber,s.column)}else c=new U.a(s.lineNumber,s.column-1,s.lineNumber,s.column)}else{var k=I.a.left(x,u,s.lineNumber,s.column);c=new U.a(k.lineNumber,k.column,s.lineNumber,s.column)}}if(c.isEmpty()){_[v]=null;continue}c.startLineNumber!==c.endLineNumber&&(f=!0),_[v]=new re.a(c,"")}return[f,_]},O.cut=function(H,x,u){for(var y=[],_=0,f=u.length;_<f;_++){var v=u[_];if(v.isEmpty())if(H.emptySelectionClipboard){var w=v.getPosition(),p=void 0,c=void 0,s=void 0,l=void 0;w.lineNumber<x.getLineCount()?(p=w.lineNumber,c=1,s=w.lineNumber+1,l=1):w.lineNumber>1?(p=w.lineNumber-1,c=x.getLineMaxColumn(w.lineNumber-1),s=w.lineNumber,l=x.getLineMaxColumn(w.lineNumber)):(p=w.lineNumber,c=1,s=w.lineNumber,l=x.getLineMaxColumn(w.lineNumber));var d=new U.a(p,c,s,l);d.isEmpty()?y[_]=null:y[_]=new re.a(d,"")}else y[_]=null;else y[_]=new re.a(v,"")}return new J.e(0,y,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},O}()},sswD:function(Lt,j,e){"use strict";e.d(j,"a",function(){return w}),e.d(j,"c",function(){return p}),e.d(j,"b",function(){return c}),e.d(j,"j",function(){return s}),e.d(j,"e",function(){return l}),e.d(j,"k",function(){return d}),e.d(j,"l",function(){return m}),e.d(j,"g",function(){return E}),e.d(j,"f",function(){return L}),e.d(j,"i",function(){return A}),e.d(j,"h",function(){return k}),e.d(j,"d",function(){return R});var T=e("/cxE"),re=e("bY76"),J=e("Vxe3"),I=e("cGHE"),U=e("G2kB"),z=e("t49l"),O=e("fjLI"),H=e("nnTU"),x=e("T8No"),u=e("nrhi"),y=e("ic2d"),_=e("XXUj"),f=e("746U"),v=function(){var W=function(le,Ce){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,Te){Me.__proto__=Te}||function(Me,Te){for(var Fe in Te)Te.hasOwnProperty(Fe)&&(Me[Fe]=Te[Fe])},W(le,Ce)};return function(B,le){W(B,le);function Ce(){this.constructor=B}B.prototype=le===null?Object.create(le):(Ce.prototype=le.prototype,new Ce)}}(),w=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=x.a.and(le,this.precondition):le=this.precondition),u.a.registerCommandAndKeybindingRule({id:this.id,handler:function(Me,Te){return B.runCommand(Me,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 H.a.registerCommand({id:this.id,handler:function(Me,Te){return B.runCommand(Me,Te)},description:this._description})},W.prototype._registerMenuItem=function(B){O.c.appendMenuItem(B.menuId,{group:B.group,command:{id:this.id,title:B.title},when:B.when,order:B.order})},W}(),p=function(W){v(B,W);function B(){return W!==null&&W.apply(this,arguments)||this}return B.bindToContribution=function(le){return function(Ce){v(Me,Ce);function Me(Te){var Fe=Ce.call(this,Te)||this;return Fe._callback=Te.handler,Fe}return Me.prototype.runEditorCommand=function(Te,Fe,Ue){var Pe=le(Fe);Pe&&this._callback(le(Fe),Ue)},Me}(B)},B.prototype.runCommand=function(le,Ce){var Me=this,Te=le.get(J.a),Fe=Te.getFocusedCodeEditor()||Te.getActiveCodeEditor();return Fe?Fe.invokeWithinContext(function(Ue){var Pe=Ue.get(x.c);return Pe.contextMatchesRules(Object(f.n)(Me.precondition))?Me.runEditorCommand(Ue,Fe,Ce):void 0}):void 0},B}(w),c=function(W){v(B,W);function B(le){var Ce=W.call(this,B.convertOptions(le))||this;return Ce.label=le.label,Ce.alias=le.alias,Ce}return B.convertOptions=function(le){var Ce;Array.isArray(le.menuOpts)?Ce=le.menuOpts:le.menuOpts?Ce=[le.menuOpts]:Ce=[];function Me(Te){return Te.menuId||(Te.menuId=7),Te.title||(Te.title=le.label),Te.when=x.a.and(le.precondition,Te.when),Te}return Array.isArray(le.contextMenuOpts)?Ce.push.apply(Ce,le.contextMenuOpts.map(Me)):le.contextMenuOpts&&Ce.push(Me(le.contextMenuOpts)),le.menuOpts=Ce,le},B.prototype.runEditorCommand=function(le,Ce,Me){return this.reportTelemetry(le,Ce),this.run(le,Ce,Me||{})},B.prototype.reportTelemetry=function(le,Ce){le.get(_.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},B}(p);function s(W,B){H.a.registerCommand(W,function(le,Ce){return B(le,Ce||{})})}function l(W,B){s(W,function(le,Ce){var Me=Ce.resource,Te=Ce.position;if(!(Me instanceof re.a))throw Object(T.b)("resource");if(!I.a.isIPosition(Te))throw Object(T.b)("position");var Fe=le.get(U.a).getModel(Me);if(Fe){var Ue=I.a.lift(Te);return B(Fe,Ue,Ce)}return le.get(z.a).createModelReference(Me).then(function(Pe){return new Promise(function(ne,ee){try{var ae=B(Pe.object.textEditorModel,I.a.lift(Te),Ce);ne(ae)}catch(q){ee(q)}}).finally(function(){Pe.dispose()})})})}function d(W,B){H.a.registerCommand(W,function(le){for(var Ce=[],Me=1;Me<arguments.length;Me++)Ce[Me-1]=arguments[Me];var Te=Ce[0],Fe=Ce[1];Object(f.a)(re.a.isUri(Te)),Object(f.a)(I.a.isIPosition(Fe));var Ue=le.get(U.a).getModel(Te);if(Ue){var Pe=I.a.lift(Fe);return B(Ue,Pe,Ce.slice(2))}return le.get(z.a).createModelReference(Te).then(function(ne){return new Promise(function(ee,ae){try{var q=B(ne.object.textEditorModel,I.a.lift(Fe),Ce.slice(2));ee(q)}catch(ue){ae(ue)}}).finally(function(){ne.dispose()})})})}function m(W,B){H.a.registerCommand(W,function(le){for(var Ce=[],Me=1;Me<arguments.length;Me++)Ce[Me-1]=arguments[Me];var Te=Ce[0];Object(f.a)(re.a.isUri(Te));var Fe=le.get(U.a).getModel(Te);return Fe?B(Fe,Ce.slice(1)):le.get(z.a).createModelReference(Te).then(function(Ue){return new Promise(function(Pe,ne){try{var ee=B(Ue.object.textEditorModel,Ce.slice(1));Pe(ee)}catch(ae){ne(ae)}}).finally(function(){Ue.dispose()})})})}function E(W){return ie.INSTANCE.registerEditorCommand(W),W}function L(W){ie.INSTANCE.registerEditorAction(new W)}function A(W){ie.INSTANCE.registerEditorAction(W)}function k(W,B){ie.INSTANCE.registerEditorContribution(W,B)}var R;(function(W){function B(Fe){return ie.INSTANCE.getEditorCommand(Fe)}W.getEditorCommand=B;function le(){return ie.INSTANCE.getEditorActions()}W.getEditorActions=le;function Ce(){return ie.INSTANCE.getEditorContributions()}W.getEditorContributions=Ce;function Me(Fe){return ie.INSTANCE.getEditorContributions().filter(function(Ue){return Fe.indexOf(Ue.id)>=0})}W.getSomeEditorContributions=Me;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(Lt,j,e){},t49l:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("textModelService")},t9D7:function(Lt,j,e){"use strict";e.d(j,"c",function(){return U}),e.d(j,"f",function(){return z}),e.d(j,"b",function(){return H}),e.d(j,"d",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"e",function(){return f});var T=e("Cg/j"),re=e("pmY6"),J=e("ic2d"),I=e("MI8n"),U=Object(T.c)("themeService");function z(v){return{id:v}}var O="dark",H="hc";function x(v){switch(v){case O:return"vs-dark";case H:return"hc-black";default:return"vs"}}var u={ThemingContribution:"base.contributions.theming"},y=function(){function v(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new I.a}return v.prototype.onThemeChange=function(w){var p=this;return this.themingParticipants.push(w),this.onThemingParticipantAddedEmitter.fire(w),Object(re.h)(function(){var c=p.themingParticipants.indexOf(w);p.themingParticipants.splice(c,1)})},v.prototype.getThemingParticipants=function(){return this.themingParticipants},v}(),_=new y;J.a.add(u.ThemingContribution,_);function f(v){return _.onThemeChange(v)}},tADe:function(Lt,j,e){"use strict";e.d(j,"c",function(){return I}),e.d(j,"a",function(){return U}),e.d(j,"b",function(){return z});var T=e("Cg/j"),re=e("3/fG"),J=e("S3by"),I;(function(O){O[O.Hint=1]="Hint",O[O.Info=2]="Info",O[O.Warning=4]="Warning",O[O.Error=8]="Error"})(I||(I={})),function(O){function H(f,v){return v-f}O.compare=H;var x=Object.create(null);x[O.Error]=Object(re.a)("sev.error","Error"),x[O.Warning]=Object(re.a)("sev.warning","Warning"),x[O.Info]=Object(re.a)("sev.info","Info");function u(f){return x[f]||""}O.toString=u;function y(f){switch(f){case J.a.Error:return O.Error;case J.a.Warning:return O.Warning;case J.a.Info:return O.Info;case J.a.Ignore:return O.Hint}}O.fromSeverity=y;function _(f){switch(f){case O.Error:return J.a.Error;case O.Warning:return J.a.Warning;case O.Info:return J.a.Info;case O.Hint:return J.a.Ignore}}O.toSeverity=_}(I||(I={}));var U;(function(O){var H="";function x(y){return u(y,!0)}O.makeKey=x;function u(y,_){var f=[H];return y.source?f.push(y.source.replace("\xA6","\xA6")):f.push(H),y.code?typeof y.code=="string"?f.push(y.code.replace("\xA6","\xA6")):f.push(y.code.value.replace("\xA6","\xA6")):f.push(H),y.severity!==void 0&&y.severity!==null?f.push(I.toString(y.severity)):f.push(H),y.message&&_?f.push(y.message.replace("\xA6","\xA6")):f.push(H),y.startLineNumber!==void 0&&y.startLineNumber!==null?f.push(y.startLineNumber.toString()):f.push(H),y.startColumn!==void 0&&y.startColumn!==null?f.push(y.startColumn.toString()):f.push(H),y.endLineNumber!==void 0&&y.endLineNumber!==null?f.push(y.endLineNumber.toString()):f.push(H),y.endColumn!==void 0&&y.endColumn!==null?f.push(y.endColumn.toString()):f.push(H),f.push(H),f.join("\xA6")}O.makeKeyOptionalMessage=u})(U||(U={}));var z=Object(T.c)("markerService")},tTk5:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("editorProgressService")},tX9W:function(Lt,j,e){"use strict";e.d(j,"b",function(){return mn}),e.d(j,"a",function(){return Ho});var T=e("/cxE"),re=e("MI8n"),J=e("pmY6"),I=e("N0LK"),U=e("bY76"),z=e("/UlZ"),O=e("cGHE"),H=e("aokT"),x=e("gCVg"),u=e("M1Kb"),y=function(){function _e(M,P){this.beforeVersionId=M,this.beforeCursorState=P,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return _e.prototype.undo=function(M){for(var P=this.editOperations.length-1;P>=0;P--)this.editOperations[P]={operations:M.applyEdits(this.editOperations[P].operations)}},_e.prototype.redo=function(M){for(var P=0;P<this.editOperations.length;P++)this.editOperations[P]={operations:M.applyEdits(this.editOperations[P].operations)}},_e}();function _(_e){var M=_e.getEOL();return M===`
`?0:1}var f=function(){function _e(M,P){this.beforeVersionId=M,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=P}return _e.prototype.undo=function(M){var P=_(M);M.setEOL(this.eol),this.eol=P},_e.prototype.redo=function(M){var P=_(M);M.setEOL(this.eol),this.eol=P},_e}(),v=function(){function _e(M){this.model=M,this.currentOpenStackElement=null,this.past=[],this.future=[]}return _e.prototype.pushStackElement=function(){this.currentOpenStackElement!==null&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},_e.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},_e.prototype.pushEOL=function(M){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var P=_(this.model),Z=new f(this.model.getAlternativeVersionId(),P);this.model.setEOL(M),Z.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=Z,this.pushStackElement()},_e.prototype.pushEditOperation=function(M,P,Z){this.future=[];var Ae=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof y?Ae=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(Ae=new y(this.model.getAlternativeVersionId(),M),this.currentOpenStackElement=Ae);var xe={operations:this.model.applyEdits(P)};return Ae.editOperations.push(xe),Ae.afterCursorState=_e._computeCursorState(Z,xe.operations),Ae.afterVersionId=this.model.getVersionId(),Ae.afterCursorState},_e._computeCursorState=function(M,P){try{return M?M(P):null}catch(Z){return Object(T.e)(Z),null}},_e.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var M=this.past.pop();try{M.undo(this.model)}catch(P){return Object(T.e)(P),this.clear(),null}return this.future.push(M),{selections:M.beforeCursorState,recordedVersionId:M.beforeVersionId}}return null},_e.prototype.canUndo=function(){return this.past.length>0||this.currentOpenStackElement!==null},_e.prototype.redo=function(){if(this.future.length>0){var M=this.future.pop();try{M.redo(this.model)}catch(P){return Object(T.e)(P),this.clear(),null}return this.past.push(M),{selections:M.afterCursorState,recordedVersionId:M.afterVersionId}}return null},_e.prototype.canRedo=function(){return this.future.length>0},_e}(),w=function(){function _e(){this.spacesDiff=0,this.looksLikeAlignment=!1}return _e}();function p(_e,M,P,Z,Ae){Ae.spacesDiff=0,Ae.looksLikeAlignment=!1;var xe;for(xe=0;xe<M&&xe<Z;xe++){var Ne=_e.charCodeAt(xe),dt=P.charCodeAt(xe);if(Ne!==dt)break}for(var ht=0,xt=0,Bt=xe;Bt<M;Bt++){var Ne=_e.charCodeAt(Bt);Ne===32?ht++:xt++}for(var Ht=0,Ut=0,Bt=xe;Bt<Z;Bt++){var dt=P.charCodeAt(Bt);dt===32?Ht++:Ut++}if(ht>0&&xt>0)return;if(Ht>0&&Ut>0)return;var oo=Math.abs(xt-Ut),Zt=Math.abs(ht-Ht);if(oo===0){Ae.spacesDiff=Zt,Zt>0&&0<=Ht-1&&Ht-1<_e.length&&Ht<P.length&&(P.charCodeAt(Ht)!==32&&_e.charCodeAt(Ht-1)===32&&(_e.charCodeAt(_e.length-1)===44&&(Ae.looksLikeAlignment=!0)));return}if(Zt%oo===0){Ae.spacesDiff=Zt/oo;return}}function c(_e,M,P){for(var Z=Math.min(_e.getLineCount(),1e4),Ae=0,xe=0,Ne="",dt=0,ht=[2,4,6,8,3,5,7],xt=8,Bt=[0,0,0,0,0,0,0,0,0],Ht=new w,Ut=1;Ut<=Z;Ut++){for(var oo=_e.getLineLength(Ut),Zt=_e.getLineContent(Ut),fo=oo<=65536,yt=!1,He=0,Oe=0,rt=0,It=0,pe=oo;It<pe;It++){var D=fo?Zt.charCodeAt(It):_e.getLineCharCode(Ut,It);if(D===9)rt++;else if(D===32)Oe++;else{yt=!0,He=It;break}}if(!yt)continue;if(rt>0?Ae++:Oe>1&&xe++,p(Ne,dt,Zt,He,Ht),Ht.looksLikeAlignment&&!(P&&M===Ht.spacesDiff))continue;var ye=Ht.spacesDiff;ye<=xt&&Bt[ye]++,Ne=Zt,dt=He}var We=P;Ae!==xe&&(We=Ae<xe);var Ze=M;if(We){var st=We?0:.1*Z;ht.forEach(function(mt){var Kt=Bt[mt];Kt>st&&(st=Kt,Ze=mt)}),Ze===4&&Bt[4]>0&&Bt[2]>0&&Bt[2]>=Bt[4]/2&&(Ze=2)}return{insertSpaces:We,tabSize:Ze}}function s(_e){return(_e.metadata&1)>>>0}function l(_e,M){_e.metadata=_e.metadata&254|M<<0}function d(_e){return(_e.metadata&2)>>>1===1}function m(_e,M){_e.metadata=_e.metadata&253|(M?1:0)<<1}function E(_e){return(_e.metadata&4)>>>2===1}function L(_e,M){_e.metadata=_e.metadata&251|(M?1:0)<<2}function A(_e){return(_e.metadata&8)>>>3===1}function k(_e,M){_e.metadata=_e.metadata&247|(M?1:0)<<3}function R(_e){return(_e.metadata&48)>>>4}function $(_e,M){_e.metadata=_e.metadata&207|M<<4}function ie(_e){return(_e.metadata&64)>>>6===1}function W(_e,M){_e.metadata=_e.metadata&191|(M?1:0)<<6}var B=function(){function _e(M,P,Z){this.metadata=0,this.parent=this,this.left=this,this.right=this,l(this,1),this.start=P,this.end=Z,this.delta=0,this.maxEnd=Z,this.id=M,this.ownerId=0,this.options=null,L(this,!1),$(this,1),k(this,!1),W(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=Z,this.range=null,m(this,!1)}return _e.prototype.reset=function(M,P,Z,Ae){this.start=P,this.end=Z,this.maxEnd=Z,this.cachedVersionId=M,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=Z,this.range=Ae},_e.prototype.setOptions=function(M){this.options=M;var P=this.options.className;L(this,P==="squiggly-error"||P==="squiggly-warning"||P==="squiggly-info"),$(this,this.options.stickiness),k(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),W(this,this.options.collapseOnReplaceEdit)},_e.prototype.setCachedOffsets=function(M,P,Z){this.cachedVersionId!==Z&&(this.range=null),this.cachedVersionId=Z,this.cachedAbsoluteStart=M,this.cachedAbsoluteEnd=P},_e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},_e}(),le=new B(null,0,0);le.parent=le,le.left=le,le.right=le,l(le,0);var Ce=function(){function _e(){this.root=le,this.requestNormalizeDelta=!1}return _e.prototype.intervalSearch=function(M,P,Z,Ae,xe){return this.root===le?[]:q(this,M,P,Z,Ae,xe)},_e.prototype.search=function(M,P,Z){return this.root===le?[]:ae(this,M,P,Z)},_e.prototype.collectNodesFromOwner=function(M){return ne(this,M)},_e.prototype.collectNodesPostOrder=function(){return ee(this)},_e.prototype.insert=function(M){ue(this,M),this._normalizeDeltaIfNecessary()},_e.prototype.delete=function(M){he(this,M),this._normalizeDeltaIfNecessary()},_e.prototype.resolveNode=function(M,P){for(var Z=M,Ae=0;M!==this.root;)M===M.parent.right&&(Ae+=M.parent.delta),M=M.parent;var xe=Z.start+Ae,Ne=Z.end+Ae;Z.setCachedOffsets(xe,Ne,P)},_e.prototype.acceptReplace=function(M,P,Z,Ae){for(var xe=Ue(this,M,M+P),Ne=0,dt=xe.length;Ne<dt;Ne++){var ht=xe[Ne];he(this,ht)}this._normalizeDeltaIfNecessary(),Pe(this,M,M+P,Z),this._normalizeDeltaIfNecessary();for(var Ne=0,dt=xe.length;Ne<dt;Ne++){var ht=xe[Ne];ht.start=ht.cachedAbsoluteStart,ht.end=ht.cachedAbsoluteEnd,Fe(ht,M,M+P,Z,Ae),ht.maxEnd=ht.end,ue(this,ht)}this._normalizeDeltaIfNecessary()},_e.prototype._normalizeDeltaIfNecessary=function(){if(!this.requestNormalizeDelta)return;this.requestNormalizeDelta=!1,Me(this)},_e}();function Me(_e){for(var M=_e.root,P=0;M!==le;){if(M.left!==le&&!d(M.left)){M=M.left;continue}if(M.right!==le&&!d(M.right)){P+=M.delta,M=M.right;continue}M.start=P+M.start,M.end=P+M.end,M.delta=0,Re(M),m(M,!0),m(M.left,!1),m(M.right,!1),M===M.parent.right&&(P-=M.parent.delta),M=M.parent}m(_e.root,!1)}function Te(_e,M,P,Z){return _e<P?!0:_e>P||Z===1?!1:Z===2?!0:M}function Fe(_e,M,P,Z,Ae){var xe=R(_e),Ne=xe===0||xe===2,dt=xe===1||xe===2,ht=P-M,xt=Z,Bt=Math.min(ht,xt),Ht=_e.start,Ut=!1,oo=_e.end,Zt=!1;M<=Ht&&oo<=P&&ie(_e)&&(_e.start=M,Ut=!0,_e.end=M,Zt=!0);{var fo=Ae?1:ht>0?2:0;!Ut&&Te(Ht,Ne,M,fo)&&(Ut=!0),!Zt&&Te(oo,dt,M,fo)&&(Zt=!0)}if(Bt>0&&!Ae){var fo=ht>xt?2:0;!Ut&&Te(Ht,Ne,M+Bt,fo)&&(Ut=!0),!Zt&&Te(oo,dt,M+Bt,fo)&&(Zt=!0)}{var fo=Ae?1:0;!Ut&&Te(Ht,Ne,P,fo)&&(_e.start=M+xt,Ut=!0),!Zt&&Te(oo,dt,P,fo)&&(_e.end=M+xt,Zt=!0)}var yt=xt-ht;Ut||(_e.start=Math.max(0,Ht+yt)),Zt||(_e.end=Math.max(0,oo+yt)),_e.start>_e.end&&(_e.end=_e.start)}function Ue(_e,M,P){for(var Z=_e.root,Ae=0,xe=0,Ne=0,dt=0,ht=[],xt=0;Z!==le;){if(d(Z)){m(Z.left,!1),m(Z.right,!1),Z===Z.parent.right&&(Ae-=Z.parent.delta),Z=Z.parent;continue}if(!d(Z.left)){if(xe=Ae+Z.maxEnd,xe<M){m(Z,!0);continue}if(Z.left!==le){Z=Z.left;continue}}if(Ne=Ae+Z.start,Ne>P){m(Z,!0);continue}if(dt=Ae+Z.end,dt>=M&&(Z.setCachedOffsets(Ne,dt,0),ht[xt++]=Z),m(Z,!0),Z.right!==le&&!d(Z.right)){Ae+=Z.delta,Z=Z.right;continue}}return m(_e.root,!1),ht}function Pe(_e,M,P,Z){for(var Ae=_e.root,xe=0,Ne=0,dt=0,ht=Z-(P-M);Ae!==le;){if(d(Ae)){m(Ae.left,!1),m(Ae.right,!1),Ae===Ae.parent.right&&(xe-=Ae.parent.delta),Re(Ae),Ae=Ae.parent;continue}if(!d(Ae.left)){if(Ne=xe+Ae.maxEnd,Ne<M){m(Ae,!0);continue}if(Ae.left!==le){Ae=Ae.left;continue}}if(dt=xe+Ae.start,dt>P){Ae.start+=ht,Ae.end+=ht,Ae.delta+=ht,(Ae.delta<-1073741824||Ae.delta>1073741824)&&(_e.requestNormalizeDelta=!0),m(Ae,!0);continue}if(m(Ae,!0),Ae.right!==le&&!d(Ae.right)){xe+=Ae.delta,Ae=Ae.right;continue}}m(_e.root,!1)}function ne(_e,M){for(var P=_e.root,Z=[],Ae=0;P!==le;){if(d(P)){m(P.left,!1),m(P.right,!1),P=P.parent;continue}if(P.left!==le&&!d(P.left)){P=P.left;continue}if(P.ownerId===M&&(Z[Ae++]=P),m(P,!0),P.right!==le&&!d(P.right)){P=P.right;continue}}return m(_e.root,!1),Z}function ee(_e){for(var M=_e.root,P=[],Z=0;M!==le;){if(d(M)){m(M.left,!1),m(M.right,!1),M=M.parent;continue}if(M.left!==le&&!d(M.left)){M=M.left;continue}if(M.right!==le&&!d(M.right)){M=M.right;continue}P[Z++]=M,m(M,!0)}return m(_e.root,!1),P}function ae(_e,M,P,Z){for(var Ae=_e.root,xe=0,Ne=0,dt=0,ht=[],xt=0;Ae!==le;){if(d(Ae)){m(Ae.left,!1),m(Ae.right,!1),Ae===Ae.parent.right&&(xe-=Ae.parent.delta),Ae=Ae.parent;continue}if(Ae.left!==le&&!d(Ae.left)){Ae=Ae.left;continue}Ne=xe+Ae.start,dt=xe+Ae.end,Ae.setCachedOffsets(Ne,dt,Z);var Bt=!0;if(M&&Ae.ownerId&&Ae.ownerId!==M&&(Bt=!1),P&&E(Ae)&&(Bt=!1),Bt&&(ht[xt++]=Ae),m(Ae,!0),Ae.right!==le&&!d(Ae.right)){xe+=Ae.delta,Ae=Ae.right;continue}}return m(_e.root,!1),ht}function q(_e,M,P,Z,Ae,xe){for(var Ne=_e.root,dt=0,ht=0,xt=0,Bt=0,Ht=[],Ut=0;Ne!==le;){if(d(Ne)){m(Ne.left,!1),m(Ne.right,!1),Ne===Ne.parent.right&&(dt-=Ne.parent.delta),Ne=Ne.parent;continue}if(!d(Ne.left)){if(ht=dt+Ne.maxEnd,ht<M){m(Ne,!0);continue}if(Ne.left!==le){Ne=Ne.left;continue}}if(xt=dt+Ne.start,xt>P){m(Ne,!0);continue}if(Bt=dt+Ne.end,Bt>=M){Ne.setCachedOffsets(xt,Bt,xe);var oo=!0;Z&&Ne.ownerId&&Ne.ownerId!==Z&&(oo=!1),Ae&&E(Ne)&&(oo=!1),oo&&(Ht[Ut++]=Ne)}if(m(Ne,!0),Ne.right!==le&&!d(Ne.right)){dt+=Ne.delta,Ne=Ne.right;continue}}return m(_e.root,!1),Ht}function ue(_e,M){if(_e.root===le)return M.parent=le,M.left=le,M.right=le,l(M,0),_e.root=M,_e.root;X(_e,M),Ee(M.parent);for(var P=M;P!==_e.root&&s(P.parent)===1;)if(P.parent===P.parent.parent.left){var Z=P.parent.parent.right;s(Z)===1?(l(P.parent,0),l(Z,0),l(P.parent.parent,1),P=P.parent.parent):(P===P.parent.right&&(P=P.parent,me(_e,P)),l(P.parent,0),l(P.parent.parent,1),ge(_e,P.parent.parent))}else{var Z=P.parent.parent.left;s(Z)===1?(l(P.parent,0),l(Z,0),l(P.parent.parent,1),P=P.parent.parent):(P===P.parent.left&&(P=P.parent,ge(_e,P)),l(P.parent,0),l(P.parent.parent,1),me(_e,P.parent.parent))}return l(_e.root,0),M}function X(_e,M){for(var P=0,Z=_e.root,Ae=M.start,xe=M.end;;){var Ne=ve(Ae,xe,Z.start+P,Z.end+P);if(Ne<0)if(Z.left===le){M.start-=P,M.end-=P,M.maxEnd-=P,Z.left=M;break}else Z=Z.left;else if(Z.right===le){M.start-=P+Z.delta,M.end-=P+Z.delta,M.maxEnd-=P+Z.delta,Z.right=M;break}else P+=Z.delta,Z=Z.right}M.parent=Z,M.left=le,M.right=le,l(M,1)}function he(_e,M){var P,Z;if(M.left===le?(P=M.right,Z=M,P.delta+=M.delta,(P.delta<-1073741824||P.delta>1073741824)&&(_e.requestNormalizeDelta=!0),P.start+=M.delta,P.end+=M.delta):M.right===le?(P=M.left,Z=M):(Z=je(M.right),P=Z.right,P.start+=Z.delta,P.end+=Z.delta,P.delta+=Z.delta,(P.delta<-1073741824||P.delta>1073741824)&&(_e.requestNormalizeDelta=!0),Z.start+=M.delta,Z.end+=M.delta,Z.delta=M.delta,(Z.delta<-1073741824||Z.delta>1073741824)&&(_e.requestNormalizeDelta=!0)),Z===_e.root){_e.root=P,l(P,0),M.detach(),Xe(),Re(P),_e.root.parent=le;return}var Ae=s(Z)===1;if(Z===Z.parent.left?Z.parent.left=P:Z.parent.right=P,Z===M?P.parent=Z.parent:(Z.parent===M?P.parent=Z:P.parent=Z.parent,Z.left=M.left,Z.right=M.right,Z.parent=M.parent,l(Z,s(M)),M===_e.root?_e.root=Z:M===M.parent.left?M.parent.left=Z:M.parent.right=Z,Z.left!==le&&(Z.left.parent=Z),Z.right!==le&&(Z.right.parent=Z)),M.detach(),Ae){Ee(P.parent),Z!==M&&(Ee(Z),Ee(Z.parent)),Xe();return}Ee(P),Ee(P.parent),Z!==M&&(Ee(Z),Ee(Z.parent));for(var xe;P!==_e.root&&s(P)===0;)P===P.parent.left?(xe=P.parent.right,s(xe)===1&&(l(xe,0),l(P.parent,1),me(_e,P.parent),xe=P.parent.right),s(xe.left)===0&&s(xe.right)===0?(l(xe,1),P=P.parent):(s(xe.right)===0&&(l(xe.left,0),l(xe,1),ge(_e,xe),xe=P.parent.right),l(xe,s(P.parent)),l(P.parent,0),l(xe.right,0),me(_e,P.parent),P=_e.root)):(xe=P.parent.left,s(xe)===1&&(l(xe,0),l(P.parent,1),ge(_e,P.parent),xe=P.parent.left),s(xe.left)===0&&s(xe.right)===0?(l(xe,1),P=P.parent):(s(xe.left)===0&&(l(xe.right,0),l(xe,1),me(_e,xe),xe=P.parent.left),l(xe,s(P.parent)),l(P.parent,0),l(xe.left,0),ge(_e,P.parent),P=_e.root));l(P,0),Xe()}function je(_e){for(;_e.left!==le;)_e=_e.left;return _e}function Xe(){le.parent=le,le.delta=0,le.start=0,le.end=0}function me(_e,M){var P=M.right;P.delta+=M.delta,(P.delta<-1073741824||P.delta>1073741824)&&(_e.requestNormalizeDelta=!0),P.start+=M.delta,P.end+=M.delta,M.right=P.left,P.left!==le&&(P.left.parent=M),P.parent=M.parent,M.parent===le?_e.root=P:M===M.parent.left?M.parent.left=P:M.parent.right=P,P.left=M,M.parent=P,Re(M),Re(P)}function ge(_e,M){var P=M.left;M.delta-=P.delta,(M.delta<-1073741824||M.delta>1073741824)&&(_e.requestNormalizeDelta=!0),M.start-=P.delta,M.end-=P.delta,M.left=P.right,P.right!==le&&(P.right.parent=M),P.parent=M.parent,M.parent===le?_e.root=P:M===M.parent.right?M.parent.right=P:M.parent.left=P,P.right=M,M.parent=P,Re(M),Re(P)}function we(_e){var M=_e.end;if(_e.left!==le){var P=_e.left.maxEnd;P>M&&(M=P)}if(_e.right!==le){var Z=_e.right.maxEnd+_e.delta;Z>M&&(M=Z)}return M}function Re(_e){_e.maxEnd=we(_e)}function Ee(_e){for(;_e!==le;){var M=we(_e);if(_e.maxEnd===M)return;_e.maxEnd=M,_e=_e.parent}}function ve(_e,M,P,Z){return _e===P?M-Z:_e-P}var Q=function(){function _e(M,P){this.piece=M,this.color=P,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return _e.prototype.next=function(){if(this.right!==C)return F(this.right);for(var M=this;M.parent!==C&&!(M.parent.left===M);)M=M.parent;return M.parent===C?C:M.parent},_e.prototype.prev=function(){if(this.left!==C)return se(this.left);for(var M=this;M.parent!==C&&!(M.parent.right===M);)M=M.parent;return M.parent===C?C:M.parent},_e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},_e}(),C=new Q(null,0);C.parent=C,C.left=C,C.right=C,C.color=0;function F(_e){for(;_e.left!==C;)_e=_e.left;return _e}function se(_e){for(;_e.right!==C;)_e=_e.right;return _e}function oe(_e){return _e===C?0:_e.size_left+_e.piece.length+oe(_e.right)}function be(_e){return _e===C?0:_e.lf_left+_e.piece.lineFeedCnt+be(_e.right)}function De(){C.parent=C}function Se(_e,M){var P=M.right;P.size_left+=M.size_left+(M.piece?M.piece.length:0),P.lf_left+=M.lf_left+(M.piece?M.piece.lineFeedCnt:0),M.right=P.left,P.left!==C&&(P.left.parent=M),P.parent=M.parent,M.parent===C?_e.root=P:M.parent.left===M?M.parent.left=P:M.parent.right=P,P.left=M,M.parent=P}function Ve(_e,M){var P=M.left;M.left=P.right,P.right!==C&&(P.right.parent=M),P.parent=M.parent,M.size_left-=P.size_left+(P.piece?P.piece.length:0),M.lf_left-=P.lf_left+(P.piece?P.piece.lineFeedCnt:0),M.parent===C?_e.root=P:M===M.parent.right?M.parent.right=P:M.parent.left=P,P.right=M,M.parent=P}function Qe(_e,M){var P,Z;if(M.left===C?(Z=M,P=Z.right):M.right===C?(Z=M,P=Z.left):(Z=F(M.right),P=Z.right),Z===_e.root){_e.root=P,P.color=0,M.detach(),De(),_e.root.parent=C;return}var Ae=Z.color===1;if(Z===Z.parent.left?Z.parent.left=P:Z.parent.right=P,Z===M?(P.parent=Z.parent,Rt(_e,P)):(Z.parent===M?P.parent=Z:P.parent=Z.parent,Rt(_e,P),Z.left=M.left,Z.right=M.right,Z.parent=M.parent,Z.color=M.color,M===_e.root?_e.root=Z:M===M.parent.left?M.parent.left=Z:M.parent.right=Z,Z.left!==C&&(Z.left.parent=Z),Z.right!==C&&(Z.right.parent=Z),Z.size_left=M.size_left,Z.lf_left=M.lf_left,Rt(_e,Z)),M.detach(),P.parent.left===P){var xe=oe(P),Ne=be(P);if(xe!==P.parent.size_left||Ne!==P.parent.lf_left){var dt=xe-P.parent.size_left,ht=Ne-P.parent.lf_left;P.parent.size_left=xe,P.parent.lf_left=Ne,pt(_e,P.parent,dt,ht)}}if(Rt(_e,P.parent),Ae){De();return}for(var xt;P!==_e.root&&P.color===0;)P===P.parent.left?(xt=P.parent.right,xt.color===1&&(xt.color=0,P.parent.color=1,Se(_e,P.parent),xt=P.parent.right),xt.left.color===0&&xt.right.color===0?(xt.color=1,P=P.parent):(xt.right.color===0&&(xt.left.color=0,xt.color=1,Ve(_e,xt),xt=P.parent.right),xt.color=P.parent.color,P.parent.color=0,xt.right.color=0,Se(_e,P.parent),P=_e.root)):(xt=P.parent.left,xt.color===1&&(xt.color=0,P.parent.color=1,Ve(_e,P.parent),xt=P.parent.left),xt.left.color===0&&xt.right.color===0?(xt.color=1,P=P.parent):(xt.left.color===0&&(xt.right.color=0,xt.color=1,Se(_e,xt),xt=P.parent.left),xt.color=P.parent.color,P.parent.color=0,xt.left.color=0,Ve(_e,P.parent),P=_e.root));P.color=0,De()}function it(_e,M){for(Rt(_e,M);M!==_e.root&&M.parent.color===1;)if(M.parent===M.parent.parent.left){var P=M.parent.parent.right;P.color===1?(M.parent.color=0,P.color=0,M.parent.parent.color=1,M=M.parent.parent):(M===M.parent.right&&(M=M.parent,Se(_e,M)),M.parent.color=0,M.parent.parent.color=1,Ve(_e,M.parent.parent))}else{var P=M.parent.parent.left;P.color===1?(M.parent.color=0,P.color=0,M.parent.parent.color=1,M=M.parent.parent):(M===M.parent.left&&(M=M.parent,Ve(_e,M)),M.parent.color=0,M.parent.parent.color=1,Se(_e,M.parent.parent))}_e.root.color=0}function pt(_e,M,P,Z){for(;M!==_e.root&&M!==C;)M.parent.left===M&&(M.parent.size_left+=P,M.parent.lf_left+=Z),M=M.parent}function Rt(_e,M){var P=0,Z=0;if(M===_e.root)return;if(P===0){for(;M!==_e.root&&M===M.parent.right;)M=M.parent;if(M===_e.root)return;M=M.parent,P=oe(M.left)-M.size_left,Z=be(M.left)-M.lf_left,M.size_left+=P,M.lf_left+=Z}for(;M!==_e.root&&(P!==0||Z!==0);)M.parent.left===M&&(M.parent.size_left+=P,M.parent.lf_left+=Z),M=M.parent}var Mt=e("jAJ/"),zt=65535;function uo(_e){var M;return _e[_e.length-1]<65536?M=new Uint16Array(_e.length):M=new Uint32Array(_e.length),M.set(_e,0),M}var ao=function(){function _e(M,P,Z,Ae,xe){this.lineStarts=M,this.cr=P,this.lf=Z,this.crlf=Ae,this.isBasicASCII=xe}return _e}();function so(_e,M){M===void 0&&(M=!0);for(var P=[0],Z=1,Ae=0,xe=_e.length;Ae<xe;Ae++){var Ne=_e.charCodeAt(Ae);Ne===13?Ae+1<xe&&_e.charCodeAt(Ae+1)===10?(P[Z++]=Ae+2,Ae++):P[Z++]=Ae+1:Ne===10&&(P[Z++]=Ae+1)}return M?uo(P):P}function Pt(_e,M){_e.length=0,_e[0]=0;for(var P=1,Z=0,Ae=0,xe=0,Ne=!0,dt=0,ht=M.length;dt<ht;dt++){var xt=M.charCodeAt(dt);xt===13?dt+1<ht&&M.charCodeAt(dt+1)===10?(xe++,_e[P++]=dt+2,dt++):(Z++,_e[P++]=dt+1):xt===10?(Ae++,_e[P++]=dt+1):Ne&&(xt!==9&&(xt<32||xt>126)&&(Ne=!1))}var Bt=new ao(uo(_e),Z,Ae,xe,Ne);return _e.length=0,Bt}var ft=function(){function _e(M,P,Z,Ae,xe){this.bufferIndex=M,this.start=P,this.end=Z,this.lineFeedCnt=Ae,this.length=xe}return _e}(),vt=function(){function _e(M,P){this.buffer=M,this.lineStarts=P}return _e}(),At=function(){function _e(M){this._limit=M,this._cache=[]}return _e.prototype.get=function(M){for(var P=this._cache.length-1;P>=0;P--){var Z=this._cache[P];if(Z.nodeStartOffset<=M&&Z.nodeStartOffset+Z.node.piece.length>=M)return Z}return null},_e.prototype.get2=function(M){for(var P=this._cache.length-1;P>=0;P--){var Z=this._cache[P];if(Z.nodeStartLineNumber&&Z.nodeStartLineNumber<M&&Z.nodeStartLineNumber+Z.node.piece.lineFeedCnt>=M)return Z}return null},_e.prototype.set=function(M){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(M)},_e.prototype.valdiate=function(M){for(var P=!1,Z=this._cache,Ae=0;Ae<Z.length;Ae++){var xe=Z[Ae];if(xe.node.parent===null||xe.nodeStartOffset>=M){Z[Ae]=null,P=!0;continue}}if(P){for(var Ne=[],dt=0,ht=Z;dt<ht.length;dt++){var xt=ht[dt];xt!==null&&Ne.push(xt)}this._cache=Ne}},_e}(),at=function(){function _e(M,P,Z){this.create(M,P,Z)}return _e.prototype.create=function(M,P,Z){this._buffers=[new vt("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=C,this._lineCnt=1,this._length=0,this._EOL=P,this._EOLLength=P.length,this._EOLNormalized=Z;for(var Ae=null,xe=0,Ne=M.length;xe<Ne;xe++)if(M[xe].buffer.length>0){M[xe].lineStarts||(M[xe].lineStarts=so(M[xe].buffer));var dt=new ft(xe+1,{line:0,column:0},{line:M[xe].lineStarts.length-1,column:M[xe].buffer.length-M[xe].lineStarts[M[xe].lineStarts.length-1]},M[xe].lineStarts.length-1,M[xe].buffer.length);this._buffers.push(M[xe]),Ae=this.rbInsertRight(Ae,dt)}this._searchCache=new At(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},_e.prototype.normalizeEOL=function(M){var P=this,Z=zt,Ae=Z-Math.floor(Z/3),xe=Ae*2,Ne="",dt=0,ht=[];if(this.iterate(this.root,function(Bt){var Ht=P.getNodeContent(Bt),Ut=Ht.length;if(dt<=Ae||dt+Ut<xe)return Ne+=Ht,dt+=Ut,!0;var oo=Ne.replace(/\r\n|\r|\n/g,M);return ht.push(new vt(oo,so(oo))),Ne=Ht,dt=Ut,!0}),dt>0){var xt=Ne.replace(/\r\n|\r|\n/g,M);ht.push(new vt(xt,so(xt)))}this.create(ht,M,!0)},_e.prototype.getEOL=function(){return this._EOL},_e.prototype.setEOL=function(M){this._EOL=M,this._EOLLength=this._EOL.length,this.normalizeEOL(M)},_e.prototype.getOffsetAt=function(M,P){for(var Z=0,Ae=this.root;Ae!==C;)if(Ae.left!==C&&Ae.lf_left+1>=M)Ae=Ae.left;else if(Ae.lf_left+Ae.piece.lineFeedCnt+1>=M){Z+=Ae.size_left;var xe=this.getAccumulatedValue(Ae,M-Ae.lf_left-2);return Z+=xe+P-1}else M-=Ae.lf_left+Ae.piece.lineFeedCnt,Z+=Ae.size_left+Ae.piece.length,Ae=Ae.right;return Z},_e.prototype.getPositionAt=function(M){M=Math.floor(M),M=Math.max(0,M);for(var P=this.root,Z=0,Ae=M;P!==C;)if(P.size_left!==0&&P.size_left>=M)P=P.left;else if(P.size_left+P.piece.length>=M){var xe=this.getIndexOf(P,M-P.size_left);if(Z+=P.lf_left+xe.index,xe.index===0){var Ne=this.getOffsetAt(Z+1,1),dt=Ae-Ne;return new O.a(Z+1,dt+1)}return new O.a(Z+1,xe.remainder+1)}else if(M-=P.size_left+P.piece.length,Z+=P.lf_left+P.piece.lineFeedCnt,P.right===C){var Ne=this.getOffsetAt(Z+1,1),dt=Ae-M-Ne;return new O.a(Z+1,dt+1)}else P=P.right;return new O.a(1,1)},_e.prototype.getValueInRange=function(M,P){if(M.startLineNumber===M.endLineNumber&&M.startColumn===M.endColumn)return"";var Z=this.nodeAt2(M.startLineNumber,M.startColumn),Ae=this.nodeAt2(M.endLineNumber,M.endColumn),xe=this.getValueInRange2(Z,Ae);return P?P!==this._EOL||!this._EOLNormalized?xe.replace(/\r\n|\r|\n/g,P):P===this.getEOL()&&this._EOLNormalized?(P===`\r
`,xe):xe.replace(/\r\n|\r|\n/g,P):xe},_e.prototype.getValueInRange2=function(M,P){if(M.node===P.node){var Z=M.node,Ae=this._buffers[Z.piece.bufferIndex].buffer,xe=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return Ae.substring(xe+M.remainder,xe+P.remainder)}var Ne=M.node,dt=this._buffers[Ne.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Ne.piece.bufferIndex,Ne.piece.start),xt=dt.substring(ht+M.remainder,ht+Ne.piece.length);for(Ne=Ne.next();Ne!==C;){var Bt=this._buffers[Ne.piece.bufferIndex].buffer,Ht=this.offsetInBuffer(Ne.piece.bufferIndex,Ne.piece.start);if(Ne===P.node){xt+=Bt.substring(Ht,Ht+P.remainder);break}else xt+=Bt.substr(Ht,Ne.piece.length);Ne=Ne.next()}return xt},_e.prototype.getLinesContent=function(){var M=this,P=[],Z=0,Ae="",xe=!1;return this.iterate(this.root,function(Ne){if(Ne===C)return!0;var dt=Ne.piece,ht=dt.length;if(ht===0)return!0;var xt=M._buffers[dt.bufferIndex].buffer,Bt=M._buffers[dt.bufferIndex].lineStarts,Ht=dt.start.line,Ut=dt.end.line,oo=Bt[Ht]+dt.start.column;if(xe&&(xt.charCodeAt(oo)===10&&(oo++,ht--),P[Z++]=Ae,Ae="",xe=!1,ht===0))return!0;if(Ht===Ut)return!M._EOLNormalized&&xt.charCodeAt(oo+ht-1)===13?(xe=!0,Ae+=xt.substr(oo,ht-1)):Ae+=xt.substr(oo,ht),!0;Ae+=M._EOLNormalized?xt.substring(oo,Math.max(oo,Bt[Ht+1]-M._EOLLength)):xt.substring(oo,Bt[Ht+1]).replace(/(\r\n|\r|\n)$/,""),P[Z++]=Ae;for(var Zt=Ht+1;Zt<Ut;Zt++)Ae=M._EOLNormalized?xt.substring(Bt[Zt],Bt[Zt+1]-M._EOLLength):xt.substring(Bt[Zt],Bt[Zt+1]).replace(/(\r\n|\r|\n)$/,""),P[Z++]=Ae;return!M._EOLNormalized&&xt.charCodeAt(Bt[Ut]+dt.end.column-1)===13?(xe=!0,dt.end.column===0?Z--:Ae=xt.substr(Bt[Ut],dt.end.column-1)):Ae=xt.substr(Bt[Ut],dt.end.column),!0}),xe&&(P[Z++]=Ae,Ae=""),P[Z++]=Ae,P},_e.prototype.getLength=function(){return this._length},_e.prototype.getLineCount=function(){return this._lineCnt},_e.prototype.getLineContent=function(M){return this._lastVisitedLine.lineNumber===M?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=M,M===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(M):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(M,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(M).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},_e.prototype.getLineCharCode=function(M,P){var Z=this.nodeAt2(M,P+1);if(Z.remainder===Z.node.piece.length){var Ae=Z.node.next();if(!Ae)return 0;var xe=this._buffers[Ae.piece.bufferIndex],Ne=this.offsetInBuffer(Ae.piece.bufferIndex,Ae.piece.start);return xe.buffer.charCodeAt(Ne)}else{var xe=this._buffers[Z.node.piece.bufferIndex],Ne=this.offsetInBuffer(Z.node.piece.bufferIndex,Z.node.piece.start),dt=Ne+Z.remainder;return xe.buffer.charCodeAt(dt)}},_e.prototype.getLineLength=function(M){if(M===this.getLineCount()){var P=this.getOffsetAt(M,1);return this.getLength()-P}return this.getOffsetAt(M+1,1)-this.getOffsetAt(M,1)-this._EOLLength},_e.prototype.findMatchesInNode=function(M,P,Z,Ae,xe,Ne,dt,ht,xt,Bt,Ht){var Ut=this._buffers[M.piece.bufferIndex],oo=this.offsetInBuffer(M.piece.bufferIndex,M.piece.start),Zt=this.offsetInBuffer(M.piece.bufferIndex,xe),fo=this.offsetInBuffer(M.piece.bufferIndex,Ne),yt,He={line:0,column:0},Oe,rt;P._wordSeparators?(Oe=Ut.buffer.substring(Zt,fo),rt=function(We){return We+Zt},P.reset(-1)):(Oe=Ut.buffer,rt=function(We){return We},P.reset(Zt));do if(yt=P.next(Oe),yt){if(rt(yt.index)>=fo)return Bt;this.positionInBuffer(M,rt(yt.index)-oo,He);var It=this.getLineFeedCnt(M.piece.bufferIndex,xe,He),pe=He.line===xe.line?He.column-xe.column+Ae:He.column+1,D=pe+yt[0].length;if(Ht[Bt++]=Object(Mt.d)(new H.a(Z+It,pe,Z+It,D),yt,ht),rt(yt.index)+yt[0].length>=fo)return Bt;if(Bt>=xt)return Bt}while(yt);return Bt},_e.prototype.findMatchesLineByLine=function(M,P,Z,Ae){var xe=[],Ne=0,dt=new Mt.b(P.wordSeparators,P.regex),ht=this.nodeAt2(M.startLineNumber,M.startColumn);if(ht===null)return[];var xt=this.nodeAt2(M.endLineNumber,M.endColumn);if(xt===null)return[];var Bt=this.positionInBuffer(ht.node,ht.remainder),Ht=this.positionInBuffer(xt.node,xt.remainder);if(ht.node===xt.node)return this.findMatchesInNode(ht.node,dt,M.startLineNumber,M.startColumn,Bt,Ht,P,Z,Ae,Ne,xe),xe;for(var Ut=M.startLineNumber,oo=ht.node;oo!==xt.node;){var Zt=this.getLineFeedCnt(oo.piece.bufferIndex,Bt,oo.piece.end);if(Zt>=1){var fo=this._buffers[oo.piece.bufferIndex].lineStarts,yt=this.offsetInBuffer(oo.piece.bufferIndex,oo.piece.start),He=fo[Bt.line+Zt],Oe=Ut===M.startLineNumber?M.startColumn:1;if(Ne=this.findMatchesInNode(oo,dt,Ut,Oe,Bt,this.positionInBuffer(oo,He-yt),P,Z,Ae,Ne,xe),Ne>=Ae)return xe;Ut+=Zt}var rt=Ut===M.startLineNumber?M.startColumn-1:0;if(Ut===M.endLineNumber){var It=this.getLineContent(Ut).substring(rt,M.endColumn-1);return Ne=this._findMatchesInLine(P,dt,It,M.endLineNumber,rt,Ne,xe,Z,Ae),xe}if(Ne=this._findMatchesInLine(P,dt,this.getLineContent(Ut).substr(rt),Ut,rt,Ne,xe,Z,Ae),Ne>=Ae)return xe;Ut++,ht=this.nodeAt2(Ut,1),oo=ht.node,Bt=this.positionInBuffer(ht.node,ht.remainder)}if(Ut===M.endLineNumber){var pe=Ut===M.startLineNumber?M.startColumn-1:0,It=this.getLineContent(Ut).substring(pe,M.endColumn-1);return Ne=this._findMatchesInLine(P,dt,It,M.endLineNumber,pe,Ne,xe,Z,Ae),xe}var D=Ut===M.startLineNumber?M.startColumn:1;return Ne=this.findMatchesInNode(xt.node,dt,Ut,D,Bt,Ht,P,Z,Ae,Ne,xe),xe},_e.prototype._findMatchesInLine=function(M,P,Z,Ae,xe,Ne,dt,ht,xt){var Bt=M.wordSeparators;if(!ht&&M.simpleSearch){for(var Ht=M.simpleSearch,Ut=Ht.length,oo=Z.length,Zt=-Ut;(Zt=Z.indexOf(Ht,Zt+Ut))!==-1;)if((!Bt||Object(Mt.e)(Bt,Z,oo,Zt,Ut))&&(dt[Ne++]=new u.b(new H.a(Ae,Zt+1+xe,Ae,Zt+1+Ut+xe),null),Ne>=xt))return Ne;return Ne}var fo;P.reset(0);do if(fo=P.next(Z),fo&&(dt[Ne++]=Object(Mt.d)(new H.a(Ae,fo.index+1+xe,Ae,fo.index+1+fo[0].length+xe),fo,ht),Ne>=xt))return Ne;while(fo);return Ne},_e.prototype.insert=function(M,P,Z){if(Z===void 0&&(Z=!1),this._EOLNormalized=this._EOLNormalized&&Z,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==C){var Ae=this.nodeAt(M),xe=Ae.node,Ne=Ae.remainder,dt=Ae.nodeStartOffset,ht=xe.piece,xt=ht.bufferIndex,Bt=this.positionInBuffer(xe,Ne);if(xe.piece.bufferIndex===0&&ht.end.line===this._lastChangeBufferPos.line&&ht.end.column===this._lastChangeBufferPos.column&&dt+ht.length===M&&P.length<zt){this.appendToNode(xe,P),this.computeBufferMetadata();return}if(dt===M)this.insertContentToNodeLeft(P,xe),this._searchCache.valdiate(M);else if(dt+xe.piece.length>M){var Ht=[],Ut=new ft(ht.bufferIndex,Bt,ht.end,this.getLineFeedCnt(ht.bufferIndex,Bt,ht.end),this.offsetInBuffer(xt,ht.end)-this.offsetInBuffer(xt,Bt));if(this.shouldCheckCRLF()&&this.endWithCR(P)){var oo=this.nodeCharCodeAt(xe,Ne);if(oo===10){var Zt={line:Ut.start.line+1,column:0};Ut=new ft(Ut.bufferIndex,Zt,Ut.end,this.getLineFeedCnt(Ut.bufferIndex,Zt,Ut.end),Ut.length-1),P+=`
`}}if(this.shouldCheckCRLF()&&this.startWithLF(P)){var fo=this.nodeCharCodeAt(xe,Ne-1);if(fo===13){var yt=this.positionInBuffer(xe,Ne-1);this.deleteNodeTail(xe,yt),P="\r"+P,xe.piece.length===0&&Ht.push(xe)}else this.deleteNodeTail(xe,Bt)}else this.deleteNodeTail(xe,Bt);var He=this.createNewPieces(P);Ut.length>0&&this.rbInsertRight(xe,Ut);for(var Oe=xe,rt=0;rt<He.length;rt++)Oe=this.rbInsertRight(Oe,He[rt]);this.deleteNodes(Ht)}else this.insertContentToNodeRight(P,xe)}else for(var It=this.createNewPieces(P),xe=this.rbInsertLeft(null,It[0]),rt=1;rt<It.length;rt++)xe=this.rbInsertRight(xe,It[rt]);this.computeBufferMetadata()},_e.prototype.delete=function(M,P){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",P<=0||this.root===C)return;var Z=this.nodeAt(M),Ae=this.nodeAt(M+P),xe=Z.node,Ne=Ae.node;if(xe===Ne){var dt=this.positionInBuffer(xe,Z.remainder),ht=this.positionInBuffer(xe,Ae.remainder);if(Z.nodeStartOffset===M){if(P===xe.piece.length){var xt=xe.next();Qe(this,xe),this.validateCRLFWithPrevNode(xt),this.computeBufferMetadata();return}this.deleteNodeHead(xe,ht),this._searchCache.valdiate(M),this.validateCRLFWithPrevNode(xe),this.computeBufferMetadata();return}if(Z.nodeStartOffset+xe.piece.length===M+P){this.deleteNodeTail(xe,dt),this.validateCRLFWithNextNode(xe),this.computeBufferMetadata();return}this.shrinkNode(xe,dt,ht),this.computeBufferMetadata();return}var Bt=[],Ht=this.positionInBuffer(xe,Z.remainder);this.deleteNodeTail(xe,Ht),this._searchCache.valdiate(M),xe.piece.length===0&&Bt.push(xe);var Ut=this.positionInBuffer(Ne,Ae.remainder);this.deleteNodeHead(Ne,Ut),Ne.piece.length===0&&Bt.push(Ne);for(var oo=xe.next(),Zt=oo;Zt!==C&&Zt!==Ne;Zt=Zt.next())Bt.push(Zt);var fo=xe.piece.length===0?xe.prev():xe;this.deleteNodes(Bt),this.validateCRLFWithNextNode(fo),this.computeBufferMetadata()},_e.prototype.insertContentToNodeLeft=function(M,P){var Z=[];if(this.shouldCheckCRLF()&&this.endWithCR(M)&&this.startWithLF(P)){var Ae=P.piece,xe={line:Ae.start.line+1,column:0},Ne=new ft(Ae.bufferIndex,xe,Ae.end,this.getLineFeedCnt(Ae.bufferIndex,xe,Ae.end),Ae.length-1);P.piece=Ne,M+=`
`,pt(this,P,-1,-1),P.piece.length===0&&Z.push(P)}for(var dt=this.createNewPieces(M),ht=this.rbInsertLeft(P,dt[dt.length-1]),xt=dt.length-2;xt>=0;xt--)ht=this.rbInsertLeft(ht,dt[xt]);this.validateCRLFWithPrevNode(ht),this.deleteNodes(Z)},_e.prototype.insertContentToNodeRight=function(M,P){this.adjustCarriageReturnFromNext(M,P)&&(M+=`
`);for(var Z=this.createNewPieces(M),Ae=this.rbInsertRight(P,Z[0]),xe=Ae,Ne=1;Ne<Z.length;Ne++)xe=this.rbInsertRight(xe,Z[Ne]);this.validateCRLFWithPrevNode(Ae)},_e.prototype.positionInBuffer=function(M,P,Z){for(var Ae=M.piece,xe=M.piece.bufferIndex,Ne=this._buffers[xe].lineStarts,dt=Ne[Ae.start.line]+Ae.start.column,ht=dt+P,xt=Ae.start.line,Bt=Ae.end.line,Ht=0,Ut=0,oo=0;xt<=Bt&&!(Ht=xt+(Bt-xt)/2|0,oo=Ne[Ht],Ht===Bt);)if(Ut=Ne[Ht+1],ht<oo)Bt=Ht-1;else if(ht>=Ut)xt=Ht+1;else break;return Z?(Z.line=Ht,Z.column=ht-oo,null):{line:Ht,column:ht-oo}},_e.prototype.getLineFeedCnt=function(M,P,Z){if(Z.column===0)return Z.line-P.line;var Ae=this._buffers[M].lineStarts;if(Z.line===Ae.length-1)return Z.line-P.line;var xe=Ae[Z.line+1],Ne=Ae[Z.line]+Z.column;if(xe>Ne+1)return Z.line-P.line;var dt=Ne-1,ht=this._buffers[M].buffer;return ht.charCodeAt(dt)===13?Z.line-P.line+1:Z.line-P.line},_e.prototype.offsetInBuffer=function(M,P){var Z=this._buffers[M].lineStarts;return Z[P.line]+P.column},_e.prototype.deleteNodes=function(M){for(var P=0;P<M.length;P++)Qe(this,M[P])},_e.prototype.createNewPieces=function(M){if(M.length>zt){for(var P=[];M.length>zt;){var Z=M.charCodeAt(zt-1),Ae=void 0;Z===13||Z>=55296&&Z<=56319?(Ae=M.substring(0,zt-1),M=M.substring(zt-1)):(Ae=M.substring(0,zt),M=M.substring(zt));var xe=so(Ae);P.push(new ft(this._buffers.length,{line:0,column:0},{line:xe.length-1,column:Ae.length-xe[xe.length-1]},xe.length-1,Ae.length)),this._buffers.push(new vt(Ae,xe))}var Ne=so(M);return P.push(new ft(this._buffers.length,{line:0,column:0},{line:Ne.length-1,column:M.length-Ne[Ne.length-1]},Ne.length-1,M.length)),this._buffers.push(new vt(M,Ne)),P}var dt=this._buffers[0].buffer.length,ht=so(M,!1),xt=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===dt&&dt!==0&&this.startWithLF(M)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},xt=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+="_"+M,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+=M}var Ht=this._buffers[0].buffer.length,Ut=this._buffers[0].lineStarts.length-1,oo=Ht-this._buffers[0].lineStarts[Ut],Zt={line:Ut,column:oo},fo=new ft(0,xt,Zt,this.getLineFeedCnt(0,xt,Zt),Ht-dt);return this._lastChangeBufferPos=Zt,[fo]},_e.prototype.getLineRawContent=function(M,P){P===void 0&&(P=0);var Z=this.root,Ae="",xe=this._searchCache.get2(M);if(xe){Z=xe.node;var Ne=this.getAccumulatedValue(Z,M-xe.nodeStartLineNumber-1),dt=this._buffers[Z.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);if(xe.nodeStartLineNumber+Z.piece.lineFeedCnt===M)Ae=dt.substring(ht+Ne,ht+Z.piece.length);else{var xt=this.getAccumulatedValue(Z,M-xe.nodeStartLineNumber);return dt.substring(ht+Ne,ht+xt-P)}}else for(var Bt=0,Ht=M;Z!==C;)if(Z.left!==C&&Z.lf_left>=M-1)Z=Z.left;else if(Z.lf_left+Z.piece.lineFeedCnt>M-1){var Ne=this.getAccumulatedValue(Z,M-Z.lf_left-2),xt=this.getAccumulatedValue(Z,M-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:Ht-(M-1-Z.lf_left)}),dt.substring(ht+Ne,ht+xt-P)}else if(Z.lf_left+Z.piece.lineFeedCnt===M-1){var Ne=this.getAccumulatedValue(Z,M-Z.lf_left-2),dt=this._buffers[Z.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);Ae=dt.substring(ht+Ne,ht+Z.piece.length);break}else M-=Z.lf_left+Z.piece.lineFeedCnt,Bt+=Z.size_left+Z.piece.length,Z=Z.right;for(Z=Z.next();Z!==C;){var dt=this._buffers[Z.piece.bufferIndex].buffer;if(Z.piece.lineFeedCnt>0){var xt=this.getAccumulatedValue(Z,0),ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return Ae+=dt.substring(ht,ht+xt-P),Ae}else{var ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);Ae+=dt.substr(ht,Z.piece.length)}Z=Z.next()}return Ae},_e.prototype.computeBufferMetadata=function(){for(var M=this.root,P=1,Z=0;M!==C;)P+=M.lf_left+M.piece.lineFeedCnt,Z+=M.size_left+M.piece.length,M=M.right;this._lineCnt=P,this._length=Z,this._searchCache.valdiate(this._length)},_e.prototype.getIndexOf=function(M,P){var Z=M.piece,Ae=this.positionInBuffer(M,P),xe=Ae.line-Z.start.line;if(this.offsetInBuffer(Z.bufferIndex,Z.end)-this.offsetInBuffer(Z.bufferIndex,Z.start)===P){var Ne=this.getLineFeedCnt(M.piece.bufferIndex,Z.start,Ae);if(Ne!==xe)return{index:Ne,remainder:0}}return{index:xe,remainder:Ae.column}},_e.prototype.getAccumulatedValue=function(M,P){if(P<0)return 0;var Z=M.piece,Ae=this._buffers[Z.bufferIndex].lineStarts,xe=Z.start.line+P+1;return xe>Z.end.line?Ae[Z.end.line]+Z.end.column-Ae[Z.start.line]-Z.start.column:Ae[xe]-Ae[Z.start.line]-Z.start.column},_e.prototype.deleteNodeTail=function(M,P){var Z=M.piece,Ae=Z.lineFeedCnt,xe=this.offsetInBuffer(Z.bufferIndex,Z.end),Ne=P,dt=this.offsetInBuffer(Z.bufferIndex,Ne),ht=this.getLineFeedCnt(Z.bufferIndex,Z.start,Ne),xt=ht-Ae,Bt=dt-xe,Ht=Z.length+Bt;M.piece=new ft(Z.bufferIndex,Z.start,Ne,ht,Ht),pt(this,M,Bt,xt)},_e.prototype.deleteNodeHead=function(M,P){var Z=M.piece,Ae=Z.lineFeedCnt,xe=this.offsetInBuffer(Z.bufferIndex,Z.start),Ne=P,dt=this.getLineFeedCnt(Z.bufferIndex,Ne,Z.end),ht=this.offsetInBuffer(Z.bufferIndex,Ne),xt=dt-Ae,Bt=xe-ht,Ht=Z.length+Bt;M.piece=new ft(Z.bufferIndex,Ne,Z.end,dt,Ht),pt(this,M,Bt,xt)},_e.prototype.shrinkNode=function(M,P,Z){var Ae=M.piece,xe=Ae.start,Ne=Ae.end,dt=Ae.length,ht=Ae.lineFeedCnt,xt=P,Bt=this.getLineFeedCnt(Ae.bufferIndex,Ae.start,xt),Ht=this.offsetInBuffer(Ae.bufferIndex,P)-this.offsetInBuffer(Ae.bufferIndex,xe);M.piece=new ft(Ae.bufferIndex,Ae.start,xt,Bt,Ht),pt(this,M,Ht-dt,Bt-ht);var Ut=new ft(Ae.bufferIndex,Z,Ne,this.getLineFeedCnt(Ae.bufferIndex,Z,Ne),this.offsetInBuffer(Ae.bufferIndex,Ne)-this.offsetInBuffer(Ae.bufferIndex,Z)),oo=this.rbInsertRight(M,Ut);this.validateCRLFWithPrevNode(oo)},_e.prototype.appendToNode=function(M,P){this.adjustCarriageReturnFromNext(P,M)&&(P+=`
`);var Z=this.shouldCheckCRLF()&&this.startWithLF(P)&&this.endWithCR(M),Ae=this._buffers[0].buffer.length;this._buffers[0].buffer+=P;for(var xe=so(P,!1),Ne=0;Ne<xe.length;Ne++)xe[Ne]+=Ae;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:Ae-dt}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(xe.slice(1));var ht=this._buffers[0].lineStarts.length-1,xt=this._buffers[0].buffer.length-this._buffers[0].lineStarts[ht],Bt={line:ht,column:xt},Ht=M.piece.length+P.length,Ut=M.piece.lineFeedCnt,oo=this.getLineFeedCnt(0,M.piece.start,Bt),Zt=oo-Ut;M.piece=new ft(M.piece.bufferIndex,M.piece.start,Bt,oo,Ht),this._lastChangeBufferPos=Bt,pt(this,M,P.length,Zt)},_e.prototype.nodeAt=function(M){var P=this.root,Z=this._searchCache.get(M);if(Z)return{node:Z.node,nodeStartOffset:Z.nodeStartOffset,remainder:M-Z.nodeStartOffset};for(var Ae=0;P!==C;)if(P.size_left>M)P=P.left;else if(P.size_left+P.piece.length>=M){Ae+=P.size_left;var xe={node:P,remainder:M-P.size_left,nodeStartOffset:Ae};return this._searchCache.set(xe),xe}else M-=P.size_left+P.piece.length,Ae+=P.size_left+P.piece.length,P=P.right;return null},_e.prototype.nodeAt2=function(M,P){for(var Z=this.root,Ae=0;Z!==C;)if(Z.left!==C&&Z.lf_left>=M-1)Z=Z.left;else if(Z.lf_left+Z.piece.lineFeedCnt>M-1){var xe=this.getAccumulatedValue(Z,M-Z.lf_left-2),Ne=this.getAccumulatedValue(Z,M-Z.lf_left-1);return Ae+=Z.size_left,{node:Z,remainder:Math.min(xe+P-1,Ne),nodeStartOffset:Ae}}else if(Z.lf_left+Z.piece.lineFeedCnt===M-1){var xe=this.getAccumulatedValue(Z,M-Z.lf_left-2);if(xe+P-1<=Z.piece.length)return{node:Z,remainder:xe+P-1,nodeStartOffset:Ae};P-=Z.piece.length-xe;break}else M-=Z.lf_left+Z.piece.lineFeedCnt,Ae+=Z.size_left+Z.piece.length,Z=Z.right;for(Z=Z.next();Z!==C;){if(Z.piece.lineFeedCnt>0){var Ne=this.getAccumulatedValue(Z,0),dt=this.offsetOfNode(Z);return{node:Z,remainder:Math.min(P-1,Ne),nodeStartOffset:dt}}else if(Z.piece.length>=P-1){var ht=this.offsetOfNode(Z);return{node:Z,remainder:P-1,nodeStartOffset:ht}}else P-=Z.piece.length;Z=Z.next()}return null},_e.prototype.nodeCharCodeAt=function(M,P){if(M.piece.lineFeedCnt<1)return-1;var Z=this._buffers[M.piece.bufferIndex],Ae=this.offsetInBuffer(M.piece.bufferIndex,M.piece.start)+P;return Z.buffer.charCodeAt(Ae)},_e.prototype.offsetOfNode=function(M){if(!M)return 0;for(var P=M.size_left;M!==this.root;)M.parent.right===M&&(P+=M.parent.size_left+M.parent.piece.length),M=M.parent;return P},_e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===`
`)},_e.prototype.startWithLF=function(M){if(typeof M=="string")return M.charCodeAt(0)===10;if(M===C||M.piece.lineFeedCnt===0)return!1;var P=M.piece,Z=this._buffers[P.bufferIndex].lineStarts,Ae=P.start.line,xe=Z[Ae]+P.start.column;if(Ae===Z.length-1)return!1;var Ne=Z[Ae+1];return Ne>xe+1?!1:this._buffers[P.bufferIndex].buffer.charCodeAt(xe)===10},_e.prototype.endWithCR=function(M){return typeof M=="string"?M.charCodeAt(M.length-1)===13:M===C||M.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(M,M.piece.length-1)===13},_e.prototype.validateCRLFWithPrevNode=function(M){if(this.shouldCheckCRLF()&&this.startWithLF(M)){var P=M.prev();this.endWithCR(P)&&this.fixCRLF(P,M)}},_e.prototype.validateCRLFWithNextNode=function(M){if(this.shouldCheckCRLF()&&this.endWithCR(M)){var P=M.next();this.startWithLF(P)&&this.fixCRLF(M,P)}},_e.prototype.fixCRLF=function(M,P){var Z=[],Ae=this._buffers[M.piece.bufferIndex].lineStarts,xe;M.piece.end.column===0?xe={line:M.piece.end.line-1,column:Ae[M.piece.end.line]-Ae[M.piece.end.line-1]-1}:xe={line:M.piece.end.line,column:M.piece.end.column-1};var Ne=M.piece.length-1,dt=M.piece.lineFeedCnt-1;M.piece=new ft(M.piece.bufferIndex,M.piece.start,xe,dt,Ne),pt(this,M,-1,-1),M.piece.length===0&&Z.push(M);var ht={line:P.piece.start.line+1,column:0},xt=P.piece.length-1,Bt=this.getLineFeedCnt(P.piece.bufferIndex,ht,P.piece.end);P.piece=new ft(P.piece.bufferIndex,ht,P.piece.end,Bt,xt),pt(this,P,-1,-1),P.piece.length===0&&Z.push(P);var Ht=this.createNewPieces(`\r
`);this.rbInsertRight(M,Ht[0]);for(var Ut=0;Ut<Z.length;Ut++)Qe(this,Z[Ut])},_e.prototype.adjustCarriageReturnFromNext=function(M,P){if(this.shouldCheckCRLF()&&this.endWithCR(M)){var Z=P.next();if(this.startWithLF(Z)){if(M+=`
`,Z.piece.length===1)Qe(this,Z);else{var Ae=Z.piece,xe={line:Ae.start.line+1,column:0},Ne=Ae.length-1,dt=this.getLineFeedCnt(Ae.bufferIndex,xe,Ae.end);Z.piece=new ft(Ae.bufferIndex,xe,Ae.end,dt,Ne),pt(this,Z,-1,-1)}return!0}}return!1},_e.prototype.iterate=function(M,P){if(M===C)return P(C);var Z=this.iterate(M.left,P);return Z&&(P(M)&&this.iterate(M.right,P))},_e.prototype.getNodeContent=function(M){if(M===C)return"";var P=this._buffers[M.piece.bufferIndex],Z,Ae=M.piece,xe=this.offsetInBuffer(Ae.bufferIndex,Ae.start),Ne=this.offsetInBuffer(Ae.bufferIndex,Ae.end);return Z=P.buffer.substring(xe,Ne),Z},_e.prototype.rbInsertRight=function(M,P){var Z=new Q(P,1);Z.left=C,Z.right=C,Z.parent=C,Z.size_left=0,Z.lf_left=0;var Ae=this.root;if(Ae===C)this.root=Z,Z.color=0;else if(M.right===C)M.right=Z,Z.parent=M;else{var xe=F(M.right);xe.left=Z,Z.parent=xe}return it(this,Z),Z},_e.prototype.rbInsertLeft=function(M,P){var Z=new Q(P,1);if(Z.left=C,Z.right=C,Z.parent=C,Z.size_left=0,Z.lf_left=0,this.root===C)this.root=Z,Z.color=0;else if(M.left===C)M.left=Z,Z.parent=M;else{var Ae=se(M.left);Ae.right=Z,Z.parent=Ae}return it(this,Z),Z},_e}(),tt=function(){function _e(M,P,Z,Ae,xe,Ne){this._BOM=P,this._mightContainNonBasicASCII=!xe,this._mightContainRTL=Ae,this._pieceTree=new at(M,Z,Ne)}return _e.prototype.mightContainRTL=function(){return this._mightContainRTL},_e.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},_e.prototype.getBOM=function(){return this._BOM},_e.prototype.getEOL=function(){return this._pieceTree.getEOL()},_e.prototype.getOffsetAt=function(M,P){return this._pieceTree.getOffsetAt(M,P)},_e.prototype.getPositionAt=function(M){return this._pieceTree.getPositionAt(M)},_e.prototype.getRangeAt=function(M,P){var Z=M+P,Ae=this.getPositionAt(M),xe=this.getPositionAt(Z);return new H.a(Ae.lineNumber,Ae.column,xe.lineNumber,xe.column)},_e.prototype.getValueInRange=function(M,P){if(P===void 0&&(P=0),M.isEmpty())return"";var Z=this._getEndOfLine(P);return this._pieceTree.getValueInRange(M,Z)},_e.prototype.getValueLengthInRange=function(M,P){if(P===void 0&&(P=0),M.isEmpty())return 0;if(M.startLineNumber===M.endLineNumber)return M.endColumn-M.startColumn;var Z=this.getOffsetAt(M.startLineNumber,M.startColumn),Ae=this.getOffsetAt(M.endLineNumber,M.endColumn);return Ae-Z},_e.prototype.getCharacterCountInRange=function(M,P){if(P===void 0&&(P=0),this._mightContainNonBasicASCII){for(var Z=0,Ae=M.startLineNumber,xe=M.endLineNumber,Ne=Ae;Ne<=xe;Ne++)for(var dt=this.getLineContent(Ne),ht=Ne===Ae?M.startColumn-1:0,xt=Ne===xe?M.endColumn-1:dt.length,Bt=ht;Bt<xt;Bt++)I.z(dt.charCodeAt(Bt))?(Z=Z+1,Bt=Bt+1):Z=Z+1;return Z+=this._getEndOfLine(P).length*(xe-Ae),Z}return this.getValueLengthInRange(M,P)},_e.prototype.getLength=function(){return this._pieceTree.getLength()},_e.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},_e.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},_e.prototype.getLineContent=function(M){return this._pieceTree.getLineContent(M)},_e.prototype.getLineCharCode=function(M,P){return this._pieceTree.getLineCharCode(M,P)},_e.prototype.getLineLength=function(M){return this._pieceTree.getLineLength(M)},_e.prototype.getLineFirstNonWhitespaceColumn=function(M){var P=I.q(this.getLineContent(M));return P===-1?0:P+1},_e.prototype.getLineLastNonWhitespaceColumn=function(M){var P=I.D(this.getLineContent(M));return P===-1?0:P+2},_e.prototype._getEndOfLine=function(M){switch(M){case 1:return`
`;case 2:return`\r
`;case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},_e.prototype.setEOL=function(M){this._pieceTree.setEOL(M)},_e.prototype.applyEdits=function(M,P){for(var Z=this._mightContainRTL,Ae=this._mightContainNonBasicASCII,xe=!0,Ne=[],dt=0;dt<M.length;dt++){var ht=M[dt];xe&&ht._isTracked&&(xe=!1);var xt=ht.range;!Z&&ht.text&&(Z=I.i(ht.text)),!Ae&&ht.text&&(Ae=!I.v(ht.text)),Ne[dt]={sortIndex:dt,identifier:ht.identifier||null,range:xt,rangeOffset:this.getOffsetAt(xt.startLineNumber,xt.startColumn),rangeLength:this.getValueLengthInRange(xt),lines:ht.text?ht.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(ht.forceMoveMarkers),isAutoWhitespaceEdit:ht.isAutoWhitespaceEdit||!1}}Ne.sort(_e._sortOpsAscending);for(var Bt=!1,dt=0,Ht=Ne.length-1;dt<Ht;dt++){var Ut=Ne[dt].range.getEndPosition(),oo=Ne[dt+1].range.getStartPosition();if(oo.isBeforeOrEqual(Ut)){if(oo.isBefore(Ut))throw new Error("Overlapping ranges are not allowed!");Bt=!0}}xe&&(Ne=this._reduceOperations(Ne));for(var Zt=_e._getInverseEditRanges(Ne),fo=[],dt=0;dt<Ne.length;dt++){var ht=Ne[dt],yt=Zt[dt];if(P&&ht.isAutoWhitespaceEdit&&ht.range.isEmpty())for(var He=yt.startLineNumber;He<=yt.endLineNumber;He++){var Oe="";if(He===yt.startLineNumber&&(Oe=this.getLineContent(ht.range.startLineNumber),I.q(Oe)!==-1))continue;fo.push({lineNumber:He,oldContent:Oe})}}for(var rt=[],dt=0;dt<Ne.length;dt++){var ht=Ne[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=Ae;var It=this._doApplyEdits(Ne),pe=null;if(P&&fo.length>0){fo.sort(function(Ze,st){return st.lineNumber-Ze.lineNumber}),pe=[];for(var dt=0,D=fo.length;dt<D;dt++){var He=fo[dt].lineNumber;if(dt>0&&fo[dt-1].lineNumber===He)continue;var ye=fo[dt].oldContent,We=this.getLineContent(He);if(We.length===0||We===ye||I.q(We)!==-1)continue;pe.push(He)}}return new u.a(rt,It,pe)},_e.prototype._reduceOperations=function(M){return M.length<1e3?M:[this._toSingleEditOperation(M)]},_e.prototype._toSingleEditOperation=function(M){for(var P=!1,Z=M[0].range,Ae=M[M.length-1].range,xe=new H.a(Z.startLineNumber,Z.startColumn,Ae.endLineNumber,Ae.endColumn),Ne=Z.startLineNumber,dt=Z.startColumn,ht=[],xt=0,Bt=M.length;xt<Bt;xt++){var Ht=M[xt],Ut=Ht.range;P=P||Ht.forceMoveMarkers;for(var oo=Ne;oo<Ut.startLineNumber;oo++)oo===Ne?ht.push(this.getLineContent(oo).substring(dt-1)):(ht.push(`
`),ht.push(this.getLineContent(oo)));if(Ut.startLineNumber===Ne?ht.push(this.getLineContent(Ut.startLineNumber).substring(dt-1,Ut.startColumn-1)):(ht.push(`
`),ht.push(this.getLineContent(Ut.startLineNumber).substring(0,Ut.startColumn-1))),Ht.lines)for(var Zt=0,fo=Ht.lines.length;Zt<fo;Zt++)Zt!==0&&ht.push(`
`),ht.push(Ht.lines[Zt]);Ne=Ht.range.endLineNumber,dt=Ht.range.endColumn}return{sortIndex:0,identifier:M[0].identifier,range:xe,rangeOffset:this.getOffsetAt(xe.startLineNumber,xe.startColumn),rangeLength:this.getValueLengthInRange(xe,0),lines:ht.join("").split(`
`),forceMoveMarkers:P,isAutoWhitespaceEdit:!1}},_e.prototype._doApplyEdits=function(M){M.sort(_e._sortOpsDescending);for(var P=[],Z=0;Z<M.length;Z++){var Ae=M[Z],xe=Ae.range.startLineNumber,Ne=Ae.range.startColumn,dt=Ae.range.endLineNumber,ht=Ae.range.endColumn;if(xe===dt&&Ne===ht&&(!Ae.lines||Ae.lines.length===0))continue;var xt=dt-xe,Bt=Ae.lines?Ae.lines.length-1:0,Ht=Math.min(xt,Bt),Ut=Ae.lines?Ae.lines.join(this.getEOL()):"";if(Ut?(this._pieceTree.delete(Ae.rangeOffset,Ae.rangeLength),this._pieceTree.insert(Ae.rangeOffset,Ut,!0)):this._pieceTree.delete(Ae.rangeOffset,Ae.rangeLength),Ht<Bt){for(var oo=[],Zt=Ht+1;Zt<=Bt;Zt++)oo.push(Ae.lines[Zt]);oo[oo.length-1]=this.getLineContent(xe+Bt-1)}var fo=new H.a(xe,Ne,dt,ht);P.push({range:fo,rangeLength:Ae.rangeLength,text:Ut,rangeOffset:Ae.rangeOffset,forceMoveMarkers:Ae.forceMoveMarkers})}return P},_e.prototype.findMatchesLineByLine=function(M,P,Z,Ae){return this._pieceTree.findMatchesLineByLine(M,P,Z,Ae)},_e._getInverseEditRanges=function(M){for(var P=[],Z=0,Ae=0,xe=null,Ne=0,dt=M.length;Ne<dt;Ne++){var ht=M[Ne],xt=void 0,Bt=void 0;xe?xe.range.endLineNumber===ht.range.startLineNumber?(xt=Z,Bt=Ae+(ht.range.startColumn-xe.range.endColumn)):(xt=Z+(ht.range.startLineNumber-xe.range.endLineNumber),Bt=ht.range.startColumn):(xt=ht.range.startLineNumber,Bt=ht.range.startColumn);var Ht=void 0;if(ht.lines&&ht.lines.length>0){var Ut=ht.lines.length,oo=ht.lines[0],Zt=ht.lines[Ut-1];Ut===1?Ht=new H.a(xt,Bt,xt,Bt+oo.length):Ht=new H.a(xt,Bt,xt+Ut-1,Zt.length+1)}else Ht=new H.a(xt,Bt,xt,Bt);Z=Ht.endLineNumber,Ae=Ht.endColumn,P.push(Ht),xe=ht}return P},_e._sortOpsAscending=function(M,P){var Z=H.a.compareRangesUsingEnds(M.range,P.range);return Z===0?M.sortIndex-P.sortIndex:Z},_e._sortOpsDescending=function(M,P){var Z=H.a.compareRangesUsingEnds(M.range,P.range);return Z===0?P.sortIndex-M.sortIndex:-Z},_e}(),ut=function(){function _e(M,P,Z,Ae,xe,Ne,dt,ht){this._chunks=M,this._bom=P,this._cr=Z,this._lf=Ae,this._crlf=xe,this._containsRTL=Ne,this._isBasicASCII=dt,this._normalizeEOL=ht}return _e.prototype._getEOL=function(M){var P=this._cr+this._lf+this._crlf,Z=this._cr+this._crlf;return P===0?M===1?`
`:`\r
`:Z>P/2?`\r
`:`
`},_e.prototype.create=function(M){var P=this._getEOL(M),Z=this._chunks;if(this._normalizeEOL&&(P===`\r
`&&(this._cr>0||this._lf>0)||P===`
`&&(this._cr>0||this._crlf>0)))for(var Ae=0,xe=Z.length;Ae<xe;Ae++){var Ne=Z[Ae].buffer.replace(/\r\n|\r|\n/g,P),dt=so(Ne);Z[Ae]=new vt(Ne,dt)}return new tt(Z,this._bom,P,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},_e}(),Ct=function(){function _e(){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 _e.prototype.acceptChunk=function(M){if(M.length===0)return;this.chunks.length===0&&(I.P(M)&&(this.BOM=I.a,M=M.substr(1)));var P=M.charCodeAt(M.length-1);P===13||P>=55296&&P<=56319?(this._acceptChunk1(M.substr(0,M.length-1),!1),this._hasPreviousChar=!0,this._previousChar=P):(this._acceptChunk1(M,!1),this._hasPreviousChar=!1,this._previousChar=P)},_e.prototype._acceptChunk1=function(M,P){if(!P&&M.length===0)return;this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+M):this._acceptChunk2(M)},_e.prototype._acceptChunk2=function(M){var P=Pt(this._tmpLineStarts,M);this.chunks.push(new vt(M,P.lineStarts)),this.cr+=P.cr,this.lf+=P.lf,this.crlf+=P.crlf,this.isBasicASCII&&(this.isBasicASCII=P.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=I.i(M))},_e.prototype.finish=function(M){return M===void 0&&(M=!0),this._finish(),new ut(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,M)},_e.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var M=this.chunks[this.chunks.length-1];M.buffer+=String.fromCharCode(this._previousChar);var P=so(M.buffer);M.lineStarts=P,this._previousChar===13&&this.cr++}},_e}(),gt=function(){function _e(){this.changeType=1}return _e}(),bt=function(){function _e(M,P){this.changeType=2,this.lineNumber=M,this.detail=P}return _e}(),Gt=function(){function _e(M,P){this.changeType=3,this.fromLineNumber=M,this.toLineNumber=P}return _e}(),Nt=function(){function _e(M,P,Z){this.changeType=4,this.fromLineNumber=M,this.toLineNumber=P,this.detail=Z}return _e}(),Et=function(){function _e(){this.changeType=5}return _e}(),Je=function(){function _e(M,P,Z,Ae){this.changes=M,this.versionId=P,this.isUndoing=Z,this.isRedoing=Ae}return _e.prototype.containsEvent=function(M){for(var P=0,Z=this.changes.length;P<Z;P++){var Ae=this.changes[P];if(Ae.changeType===M)return!0}return!1},_e.merge=function(M,P){var Z=[].concat(M.changes).concat(P.changes),Ae=P.versionId,xe=M.isUndoing||P.isUndoing,Ne=M.isRedoing||P.isRedoing;return new _e(Z,Ae,xe,Ne)},_e}(),$e=function(){function _e(M,P){this.rawContentChangedEvent=M,this.contentChangedEvent=P}return _e.prototype.merge=function(M){var P=Je.merge(this.rawContentChangedEvent,M.rawContentChangedEvent),Z=_e._mergeChangeEvents(this.contentChangedEvent,M.contentChangedEvent);return new _e(P,Z)},_e._mergeChangeEvents=function(M,P){var Z=[].concat(M.changes).concat(P.changes),Ae=P.eol,xe=P.versionId,Ne=M.isUndoing||P.isUndoing,dt=M.isRedoing||P.isRedoing,ht=M.isFlush||P.isFlush;return{changes:Z,eol:Ae,versionId:xe,isUndoing:Ne,isRedoing:dt,isFlush:ht}},_e}(),ze=e("6OMU"),Ke=e("4bUh"),fe=e("twdY"),G=e("i/Ef"),te=e("5Y4S"),Y=e("QRHv"),de=e("MNsG"),ke=function(){var _e=function(P,Z){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,xe){Ae.__proto__=xe}||function(Ae,xe){for(var Ne in xe)xe.hasOwnProperty(Ne)&&(Ae[Ne]=xe[Ne])},_e(P,Z)};return function(M,P){_e(M,P);function Z(){this.constructor=M}M.prototype=P===null?Object.create(P):(Z.prototype=P.prototype,new Z)}}(),lt=function(){function _e(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return _e.prototype._reset=function(M){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,M&&this._setBeginState(0,M)},_e.prototype.flush=function(M){this._reset(M)},Object.defineProperty(_e.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),_e.prototype._invalidateLine=function(M){M<this._len&&(this._valid[M]=!1),M<this._invalidLineStartIndex&&(this._invalidLineStartIndex=M)},_e.prototype._isValid=function(M){return M<this._len?this._valid[M]:!1},_e.prototype.getBeginState=function(M){return M<this._len?this._beginState[M]:null},_e.prototype._ensureLine=function(M){for(;M>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},_e.prototype._deleteLines=function(M,P){if(P===0)return;M+P>this._len&&(P=this._len-M),this._beginState.splice(M,P),this._valid.splice(M,P),this._len-=P},_e.prototype._insertLines=function(M,P){if(P===0)return;for(var Z=[],Ae=[],xe=0;xe<P;xe++)Z[xe]=null,Ae[xe]=!1;this._beginState=ze.a(this._beginState,M,Z),this._valid=ze.a(this._valid,M,Ae),this._len+=P},_e.prototype._setValid=function(M,P){this._ensureLine(M),this._valid[M]=P},_e.prototype._setBeginState=function(M,P){this._ensureLine(M),this._beginState[M]=P},_e.prototype.setEndState=function(M,P,Z){if(this._setValid(P,!0),this._invalidLineStartIndex=P+1,P===M-1)return;var Ae=this.getBeginState(P+1);if(Ae===null||!Z.equals(Ae)){this._setBeginState(P+1,Z),this._invalidateLine(P+1);return}for(var xe=P+1;xe<M&&this._isValid(xe);)xe++;this._invalidLineStartIndex=xe},_e.prototype.setFakeTokens=function(M){this._setValid(M,!1)},_e.prototype.applyEdits=function(M,P){for(var Z=M.endLineNumber-M.startLineNumber,Ae=P,xe=Math.min(Z,Ae),Ne=xe;Ne>=0;Ne--)this._invalidateLine(M.startLineNumber+Ne-1);this._acceptDeleteRange(M),this._acceptInsertText(new O.a(M.startLineNumber,M.startColumn),P)},_e.prototype._acceptDeleteRange=function(M){var P=M.startLineNumber-1;if(P>=this._len)return;this._deleteLines(M.startLineNumber,M.endLineNumber-M.startLineNumber)},_e.prototype._acceptInsertText=function(M,P){var Z=M.lineNumber-1;if(Z>=this._len)return;this._insertLines(M.lineNumber,P)},_e}(),Tt=function(_e){ke(M,_e);function M(P){var Z=_e.call(this)||this;return Z._isDisposed=!1,Z._textModel=P,Z._tokenizationStateStore=new lt,Z._tokenizationSupport=null,Z._register(fe.B.onDidChange(function(Ae){var xe=Z._textModel.getLanguageIdentifier();if(Ae.changedLanguages.indexOf(xe.language)===-1)return;Z._resetTokenizationState(),Z._textModel.clearTokens()})),Z._register(Z._textModel.onDidChangeRawContentFast(function(Ae){if(Ae.containsEvent(1)){Z._resetTokenizationState();return}})),Z._register(Z._textModel.onDidChangeContentFast(function(Ae){for(var xe=0,Ne=Ae.changes.length;xe<Ne;xe++){var dt=Ae.changes[xe],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 M.prototype.dispose=function(){this._isDisposed=!0,_e.prototype.dispose.call(this)},M.prototype._resetTokenizationState=function(){var P=Jt(this._textModel),Z=P[0],Ae=P[1];this._tokenizationSupport=Z,this._tokenizationStateStore.flush(Ae),this._beginBackgroundTokenization()},M.prototype._beginBackgroundTokenization=function(){var P=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&de.i(function(){if(P._isDisposed)return;P._revalidateTokensNow()})},M.prototype._revalidateTokensNow=function(P){P===void 0&&(P=this._textModel.getLineCount());for(var Z=1,Ae=new Y.b,xe=te.a.create(!1);this._hasLinesToTokenize()&&!(xe.elapsed()>Z);){var Ne=this._tokenizeOneInvalidLine(Ae);if(Ne>=P)break}this._beginBackgroundTokenization(),this._textModel.setTokens(Ae.tokens)},M.prototype.tokenizeViewport=function(P,Z){var Ae=new Y.b;this._tokenizeViewport(Ae,P,Z),this._textModel.setTokens(Ae.tokens)},M.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},M.prototype.forceTokenization=function(P){var Z=new Y.b;this._updateTokensUntilLine(Z,P),this._textModel.setTokens(Z.tokens)},M.prototype.isCheapToTokenize=function(P){if(!this._tokenizationSupport)return!0;var Z=this._tokenizationStateStore.invalidLineStartIndex+1;return P>Z?!1:P<Z?!0:this._textModel.getLineLength(P)<2048},M.prototype._hasLinesToTokenize=function(){return this._tokenizationSupport?this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount():!1},M.prototype._tokenizeOneInvalidLine=function(P){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var Z=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(P,Z),Z},M.prototype._updateTokensUntilLine=function(P,Z){if(!this._tokenizationSupport)return;for(var Ae=this._textModel.getLanguageIdentifier(),xe=this._textModel.getLineCount(),Ne=Z-1,dt=this._tokenizationStateStore.invalidLineStartIndex;dt<=Ne;dt++){var ht=this._textModel.getLineContent(dt+1),xt=this._tokenizationStateStore.getBeginState(dt),Bt=eo(Ae,this._tokenizationSupport,ht,xt);P.add(dt+1,Bt.tokens),this._tokenizationStateStore.setEndState(xe,dt,Bt.endState),dt=this._tokenizationStateStore.invalidLineStartIndex-1}},M.prototype._tokenizeViewport=function(P,Z,Ae){if(!this._tokenizationSupport)return;if(Ae<=this._tokenizationStateStore.invalidLineStartIndex)return;if(Z<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(P,Ae);return}for(var xe=this._textModel.getLineFirstNonWhitespaceColumn(Z),Ne=[],dt=null,ht=Z-1;xe>0&&ht>=1;ht--){var xt=this._textModel.getLineFirstNonWhitespaceColumn(ht);if(xt===0)continue;if(xt<xe){if(dt=this._tokenizationStateStore.getBeginState(ht-1),dt)break;Ne.push(this._textModel.getLineContent(ht)),xe=xt}}dt||(dt=this._tokenizationSupport.getInitialState());for(var Bt=this._textModel.getLanguageIdentifier(),Ht=dt,ht=Ne.length-1;ht>=0;ht--){var Ut=eo(Bt,this._tokenizationSupport,Ne[ht],Ht);Ht=Ut.endState}for(var oo=Z;oo<=Ae;oo++){var Zt=this._textModel.getLineContent(oo),Ut=eo(Bt,this._tokenizationSupport,Zt,Ht);P.add(oo,Ut.tokens),this._tokenizationStateStore.setFakeTokens(oo-1),Ht=Ut.endState}},M}(J.a);function Jt(_e){var M=_e.getLanguageIdentifier(),P=_e.isTooLargeForTokenization()?null:fe.B.get(M.language),Z=null;if(P)try{Z=P.getInitialState()}catch(Ae){Object(T.e)(Ae),P=null}return[P,Z]}function eo(_e,M,P,Z){var Ae=null;if(M)try{Ae=M.tokenize2(P,Z.clone(),0)}catch(xe){Object(T.e)(xe)}return Ae||(Ae=Object(G.e)(_e.id,P,Z,0)),Ke.a.convertToEndOffset(Ae.tokens,P.length),Ae}var po=e("0JNc"),co=e("cMvZ"),Eo=e("BFtn"),Oo=e("EIAu"),Ao=e("746U"),Zo=e("zrhQ"),Co=function(){var _e=function(P,Z){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,xe){Ae.__proto__=xe}||function(Ae,xe){for(var Ne in xe)xe.hasOwnProperty(Ne)&&(Ae[Ne]=xe[Ne])},_e(P,Z)};return function(M,P){_e(M,P);function Z(){this.constructor=M}M.prototype=P===null?Object.create(P):(Z.prototype=P.prototype,new Z)}}();function Wo(){return new Ct}function Go(_e){var M=Wo();return M.acceptChunk(_e),M.finish()}function Bo(_e,M){var P=typeof _e=="string"?Go(_e):_e;return P.create(M)}var Mo=0,Qo=999,fn=1e4,Vo=function(){throw new Error("Invalid change accessor")},mn=function(_e){Co(M,_e);function M(P,Z,Ae,xe){xe===void 0&&(xe=null);var Ne=_e.call(this)||this;Ne._onWillDispose=Ne._register(new re.a),Ne.onWillDispose=Ne._onWillDispose.event,Ne._onDidChangeDecorations=Ne._register(new nt),Ne.onDidChangeDecorations=Ne._onDidChangeDecorations.event,Ne._onDidChangeLanguage=Ne._register(new re.a),Ne.onDidChangeLanguage=Ne._onDidChangeLanguage.event,Ne._onDidChangeLanguageConfiguration=Ne._register(new re.a),Ne.onDidChangeLanguageConfiguration=Ne._onDidChangeLanguageConfiguration.event,Ne._onDidChangeTokens=Ne._register(new re.a),Ne.onDidChangeTokens=Ne._onDidChangeTokens.event,Ne._onDidChangeOptions=Ne._register(new re.a),Ne.onDidChangeOptions=Ne._onDidChangeOptions.event,Ne._onDidChangeAttached=Ne._register(new re.a),Ne.onDidChangeAttached=Ne._onDidChangeAttached.event,Ne._eventEmitter=Ne._register(new Dt),Mo++,Ne.id="$model"+Mo,Ne.isForSimpleWidget=Z.isForSimpleWidget,typeof xe=="undefined"||xe===null?Ne._associatedResource=U.a.parse("inmemory://model/"+Mo):Ne._associatedResource=xe,Ne._attachedEditorCount=0,Ne._buffer=Bo(P,Z.defaultEOL),Ne._options=M.resolveOptions(Ne._buffer,Z);var dt=Ne._buffer.getLineCount(),ht=Ne._buffer.getValueLengthInRange(new H.a(1,1,dt,Ne._buffer.getLineLength(dt)+1),0);return Z.largeFileOptimizations?Ne._isTooLargeForTokenization=ht>M.LARGE_FILE_SIZE_THRESHOLD||dt>M.LARGE_FILE_LINE_COUNT_THRESHOLD:Ne._isTooLargeForTokenization=!1,Ne._isTooLargeForSyncing=ht>M.MODEL_SYNC_LIMIT,Ne._versionId=1,Ne._alternativeVersionId=1,Ne._isDisposed=!1,Ne._isDisposing=!1,Ne._languageIdentifier=Ae||G.a,Ne._languageRegistryListener=co.a.onDidChange(function(xt){xt.languageIdentifier.id===Ne._languageIdentifier.id&&Ne._onDidChangeLanguageConfiguration.fire({})}),Ne._instanceId=I.M(Mo),Ne._lastDecorationId=0,Ne._decorations=Object.create(null),Ne._decorationsTree=new yn,Ne._commandManager=new v(Ne),Ne._isUndoing=!1,Ne._isRedoing=!1,Ne._trimAutoWhitespaceLines=null,Ne._tokens=new Y.d,Ne._tokens2=new Y.e,Ne._tokenization=new Tt(Ne),Ne}return M.createFromString=function(P,Z,Ae,xe){return Z===void 0&&(Z=M.DEFAULT_CREATION_OPTIONS),Ae===void 0&&(Ae=null),xe===void 0&&(xe=null),new M(P,Z,Ae,xe)},M.resolveOptions=function(P,Z){if(Z.detectIndentation){var Ae=c(P,Z.tabSize,Z.insertSpaces);return new u.e({tabSize:Ae.tabSize,indentSize:Ae.tabSize,insertSpaces:Ae.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})}return new u.e({tabSize:Z.tabSize,indentSize:Z.indentSize,insertSpaces:Z.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})},M.prototype.onDidChangeRawContentFast=function(P){return this._eventEmitter.fastEvent(function(Z){return P(Z.rawContentChangedEvent)})},M.prototype.onDidChangeRawContent=function(P){return this._eventEmitter.slowEvent(function(Z){return P(Z.rawContentChangedEvent)})},M.prototype.onDidChangeContentFast=function(P){return this._eventEmitter.fastEvent(function(Z){return P(Z.contentChangedEvent)})},M.prototype.onDidChangeContent=function(P){return this._eventEmitter.slowEvent(function(Z){return P(Z.contentChangedEvent)})},M.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,_e.prototype.dispose.call(this),this._isDisposing=!1},M.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},M.prototype._emitContentChangedEvent=function(P,Z){if(this._isDisposing)return;this._eventEmitter.fire(new $e(P,Z))},M.prototype.setValue=function(P){if(this._assertNotDisposed(),P===null)return;var Z=Bo(P,this._options.defaultEOL);this.setValueFromTextBuffer(Z)},M.prototype._createContentChanged2=function(P,Z,Ae,xe,Ne,dt,ht){return{changes:[{range:P,rangeOffset:Z,rangeLength:Ae,text:xe}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:Ne,isRedoing:dt,isFlush:ht}},M.prototype.setValueFromTextBuffer=function(P){if(this._assertNotDisposed(),P===null)return;var Z=this.getFullModelRange(),Ae=this.getValueLengthInRange(Z),xe=this.getLineCount(),Ne=this.getLineMaxColumn(xe);this._buffer=P,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new yn,this._commandManager=new v(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Je([new gt],this._versionId,!1,!1),this._createContentChanged2(new H.a(1,1,xe,Ne),0,Ae,this.getValue(),!1,!1,!0))},M.prototype.setEOL=function(P){this._assertNotDisposed();var Z=P===1?`\r
`:`
`;if(this._buffer.getEOL()===Z)return;var Ae=this.getFullModelRange(),xe=this.getValueLengthInRange(Ae),Ne=this.getLineCount(),dt=this.getLineMaxColumn(Ne);this._onBeforeEOLChange(),this._buffer.setEOL(Z),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Je([new Et],this._versionId,!1,!1),this._createContentChanged2(new H.a(1,1,Ne,dt),0,xe,this.getValue(),!1,!1,!1))},M.prototype._onBeforeEOLChange=function(){var P=this.getVersionId(),Z=this._decorationsTree.search(0,!1,!1,P);this._ensureNodesHaveRanges(Z)},M.prototype._onAfterEOLChange=function(){for(var P=this.getVersionId(),Z=this._decorationsTree.collectNodesPostOrder(),Ae=0,xe=Z.length;Ae<xe;Ae++){var Ne=Z[Ae],dt=Ne.cachedAbsoluteStart-Ne.start,ht=this._buffer.getOffsetAt(Ne.range.startLineNumber,Ne.range.startColumn),xt=this._buffer.getOffsetAt(Ne.range.endLineNumber,Ne.range.endColumn);Ne.cachedAbsoluteStart=ht,Ne.cachedAbsoluteEnd=xt,Ne.cachedVersionId=P,Ne.start=ht-dt,Ne.end=xt-dt,Re(Ne)}},M.prototype.onBeforeAttached=function(){this._attachedEditorCount++,this._attachedEditorCount===1&&this._onDidChangeAttached.fire(void 0)},M.prototype.onBeforeDetached=function(){this._attachedEditorCount--,this._attachedEditorCount===0&&this._onDidChangeAttached.fire(void 0)},M.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},M.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},M.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},M.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},M.prototype.isDisposed=function(){return this._isDisposed},M.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var P=0,Z=0,Ae=this._buffer.getLineCount(),xe=1;xe<=Ae;xe++){var Ne=this._buffer.getLineLength(xe);Ne>=fn?Z+=Ne:P+=Ne}return Z>P},Object.defineProperty(M.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),M.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},M.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},M.prototype.updateOptions=function(P){this._assertNotDisposed();var Z=typeof P.tabSize!="undefined"?P.tabSize:this._options.tabSize,Ae=typeof P.indentSize!="undefined"?P.indentSize:this._options.indentSize,xe=typeof P.insertSpaces!="undefined"?P.insertSpaces:this._options.insertSpaces,Ne=typeof P.trimAutoWhitespace!="undefined"?P.trimAutoWhitespace:this._options.trimAutoWhitespace,dt=new u.e({tabSize:Z,indentSize:Ae,insertSpaces:xe,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:Ne});if(this._options.equals(dt))return;var ht=this._options.createChangeEvent(dt);this._options=dt,this._onDidChangeOptions.fire(ht)},M.prototype.detectIndentation=function(P,Z){this._assertNotDisposed();var Ae=c(this._buffer,Z,P);this.updateOptions({insertSpaces:Ae.insertSpaces,tabSize:Ae.tabSize,indentSize:Ae.tabSize})},M._normalizeIndentationFromWhitespace=function(P,Z,Ae){for(var xe=0,Ne=0;Ne<P.length;Ne++)P.charAt(Ne)===" "?xe+=Z:xe++;var dt="";if(!Ae){var ht=Math.floor(xe/Z);xe=xe%Z;for(var Ne=0;Ne<ht;Ne++)dt+=" "}for(var Ne=0;Ne<xe;Ne++)dt+=" ";return dt},M.normalizeIndentation=function(P,Z,Ae){var xe=I.q(P);return xe===-1&&(xe=P.length),M._normalizeIndentationFromWhitespace(P.substring(0,xe),Z,Ae)+P.substring(xe)},M.prototype.normalizeIndentation=function(P){return this._assertNotDisposed(),M.normalizeIndentation(P,this._options.indentSize,this._options.insertSpaces)},M.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},M.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},M.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},M.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},M.prototype.getOffsetAt=function(P){this._assertNotDisposed();var Z=this._validatePosition(P.lineNumber,P.column,0);return this._buffer.getOffsetAt(Z.lineNumber,Z.column)},M.prototype.getPositionAt=function(P){this._assertNotDisposed();var Z=Math.min(this._buffer.getLength(),Math.max(0,P));return this._buffer.getPositionAt(Z)},M.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},M.prototype._overwriteAlternativeVersionId=function(P){this._alternativeVersionId=P},M.prototype.getValue=function(P,Z){Z===void 0&&(Z=!1),this._assertNotDisposed();var Ae=this.getFullModelRange(),xe=this.getValueInRange(Ae,P);return Z?this._buffer.getBOM()+xe:xe},M.prototype.getValueLength=function(P,Z){Z===void 0&&(Z=!1),this._assertNotDisposed();var Ae=this.getFullModelRange(),xe=this.getValueLengthInRange(Ae,P);return Z?this._buffer.getBOM().length+xe:xe},M.prototype.getValueInRange=function(P,Z){return Z===void 0&&(Z=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(P),Z)},M.prototype.getValueLengthInRange=function(P,Z){return Z===void 0&&(Z=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(P),Z)},M.prototype.getCharacterCountInRange=function(P,Z){return Z===void 0&&(Z=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(P),Z)},M.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},M.prototype.getLineContent=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(P)},M.prototype.getLineLength=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(P)},M.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},M.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},M.prototype.getLineMinColumn=function(P){return this._assertNotDisposed(),1},M.prototype.getLineMaxColumn=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(P)+1},M.prototype.getLineFirstNonWhitespaceColumn=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(P)},M.prototype.getLineLastNonWhitespaceColumn=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(P)},M.prototype._validateRangeRelaxedNoAllocations=function(P){var Z=this._buffer.getLineCount(),Ae=P.startLineNumber,xe=P.startColumn,Ne,dt;if(Ae<1)Ne=1,dt=1;else if(Ae>Z)Ne=Z,dt=this.getLineMaxColumn(Ne);else if(Ne=Ae|0,xe<=1)dt=1;else{var ht=this.getLineMaxColumn(Ne);xe>=ht?dt=ht:dt=xe|0}var xt=P.endLineNumber,Bt=P.endColumn,Ht,Ut;if(xt<1)Ht=1,Ut=1;else if(xt>Z)Ht=Z,Ut=this.getLineMaxColumn(Ht);else if(Ht=xt|0,Bt<=1)Ut=1;else{var ht=this.getLineMaxColumn(Ht);Bt>=ht?Ut=ht:Ut=Bt|0}return Ae===Ne&&xe===dt&&xt===Ht&&Bt===Ut&&P instanceof H.a&&!(P instanceof x.a)?P:new H.a(Ne,dt,Ht,Ut)},M.prototype._isValidPosition=function(P,Z,Ae){if(typeof P!="number"||typeof Z!="number")return!1;if(isNaN(P)||isNaN(Z))return!1;if(P<1||Z<1)return!1;if((P|0)!==P||(Z|0)!==Z)return!1;var xe=this._buffer.getLineCount();if(P>xe)return!1;if(Z===1)return!0;var Ne=this.getLineMaxColumn(P);if(Z>Ne)return!1;if(Ae===1){var dt=this._buffer.getLineCharCode(P,Z-2);if(I.z(dt))return!1}return!0},M.prototype._validatePosition=function(P,Z,Ae){var xe=Math.floor(typeof P=="number"&&!isNaN(P)?P:1),Ne=Math.floor(typeof Z=="number"&&!isNaN(Z)?Z:1),dt=this._buffer.getLineCount();if(xe<1)return new O.a(1,1);if(xe>dt)return new O.a(dt,this.getLineMaxColumn(dt));if(Ne<=1)return new O.a(xe,1);var ht=this.getLineMaxColumn(xe);if(Ne>=ht)return new O.a(xe,ht);if(Ae===1){var xt=this._buffer.getLineCharCode(xe,Ne-2);if(I.z(xt))return new O.a(xe,Ne-1)}return new O.a(xe,Ne)},M.prototype.validatePosition=function(P){var Z=1;return this._assertNotDisposed(),P instanceof O.a&&this._isValidPosition(P.lineNumber,P.column,Z)?P:this._validatePosition(P.lineNumber,P.column,Z)},M.prototype._isValidRange=function(P,Z){var Ae=P.startLineNumber,xe=P.startColumn,Ne=P.endLineNumber,dt=P.endColumn;if(!this._isValidPosition(Ae,xe,0))return!1;if(!this._isValidPosition(Ne,dt,0))return!1;if(Z===1){var ht=xe>1?this._buffer.getLineCharCode(Ae,xe-2):0,xt=dt>1&&dt<=this._buffer.getLineLength(Ne)?this._buffer.getLineCharCode(Ne,dt-2):0,Bt=I.z(ht),Ht=I.z(xt);return!Bt&&!Ht}return!0},M.prototype.validateRange=function(P){var Z=1;if(this._assertNotDisposed(),P instanceof H.a&&!(P instanceof x.a)&&this._isValidRange(P,Z))return P;var Ae=this._validatePosition(P.startLineNumber,P.startColumn,0),xe=this._validatePosition(P.endLineNumber,P.endColumn,0),Ne=Ae.lineNumber,dt=Ae.column,ht=xe.lineNumber,xt=xe.column;if(Z===1){var Bt=dt>1?this._buffer.getLineCharCode(Ne,dt-2):0,Ht=xt>1&&xt<=this._buffer.getLineLength(ht)?this._buffer.getLineCharCode(ht,xt-2):0,Ut=I.z(Bt),oo=I.z(Ht);return!Ut&&!oo?new H.a(Ne,dt,ht,xt):Ne===ht&&dt===xt?new H.a(Ne,dt-1,ht,xt-1):Ut&&oo?new H.a(Ne,dt-1,ht,xt+1):Ut?new H.a(Ne,dt-1,ht,xt):new H.a(Ne,dt,ht,xt+1)}return new H.a(Ne,dt,ht,xt)},M.prototype.modifyPosition=function(P,Z){this._assertNotDisposed();var Ae=this.getOffsetAt(P)+Z;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,Ae)))},M.prototype.getFullModelRange=function(){this._assertNotDisposed();var P=this.getLineCount();return new H.a(1,1,P,this.getLineMaxColumn(P))},M.prototype.findMatchesLineByLine=function(P,Z,Ae,xe){return this._buffer.findMatchesLineByLine(P,Z,Ae,xe)},M.prototype.findMatches=function(P,Z,Ae,xe,Ne,dt,ht){ht===void 0&&(ht=Qo),this._assertNotDisposed();var xt;if(H.a.isIRange(Z)?xt=this.validateRange(Z):xt=this.getFullModelRange(),!Ae&&P.indexOf(`
`)<0){var Bt=new Mt.a(P,Ae,xe,Ne),Ht=Bt.parseSearchRequest();return Ht?this.findMatchesLineByLine(xt,Ht,dt,ht):[]}return Mt.c.findMatches(this,new Mt.a(P,Ae,xe,Ne),xt,dt,ht)},M.prototype.findNextMatch=function(P,Z,Ae,xe,Ne,dt){this._assertNotDisposed();var ht=this.validatePosition(Z);if(!Ae&&P.indexOf(`
`)<0){var xt=new Mt.a(P,Ae,xe,Ne),Bt=xt.parseSearchRequest();if(!Bt)return null;var Ht=this.getLineCount(),Ut=new H.a(ht.lineNumber,ht.column,Ht,this.getLineMaxColumn(Ht)),oo=this.findMatchesLineByLine(Ut,Bt,dt,1);return Mt.c.findNextMatch(this,new Mt.a(P,Ae,xe,Ne),ht,dt),oo.length>0?oo[0]:(Ut=new H.a(1,1,ht.lineNumber,this.getLineMaxColumn(ht.lineNumber)),oo=this.findMatchesLineByLine(Ut,Bt,dt,1),oo.length>0?oo[0]:null)}return Mt.c.findNextMatch(this,new Mt.a(P,Ae,xe,Ne),ht,dt)},M.prototype.findPreviousMatch=function(P,Z,Ae,xe,Ne,dt){this._assertNotDisposed();var ht=this.validatePosition(Z);return Mt.c.findPreviousMatch(this,new Mt.a(P,Ae,xe,Ne),ht,dt)},M.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},M.prototype.pushEOL=function(P){var Z=this.getEOL()===`
`?0:1;if(Z===P)return;try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(P)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype.pushEditOperations=function(P,Z,Ae){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(P,Z,Ae)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._pushEditOperations=function(P,Z,Ae){var xe=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var Ne=Z.map(function(pe){return{range:xe.validateRange(pe.range),text:pe.text}}),dt=!0,ht=0,xt=P.length;ht<xt;ht++){for(var Bt=P[ht],Ht=!1,Ut=0,oo=Ne.length;Ut<oo;Ut++){var Zt=Ne[Ut].range,fo=Zt.startLineNumber>Bt.endLineNumber,yt=Bt.startLineNumber>Zt.endLineNumber;if(!fo&&!yt){Ht=!0;break}}if(!Ht){dt=!1;break}}if(dt)for(var ht=0,xt=this._trimAutoWhitespaceLines.length;ht<xt;ht++){for(var He=this._trimAutoWhitespaceLines[ht],Oe=this.getLineMaxColumn(He),rt=!0,Ut=0,oo=Ne.length;Ut<oo;Ut++){var Zt=Ne[Ut].range,It=Ne[Ut].text;if(He<Zt.startLineNumber||He>Zt.endLineNumber)continue;if(He===Zt.startLineNumber&&Zt.startColumn===Oe&&Zt.isEmpty()&&It&&It.length>0&&It.charAt(0)===`
`)continue;if(He===Zt.startLineNumber&&Zt.startColumn===1&&Zt.isEmpty()&&It&&It.length>0&&It.charAt(It.length-1)===`
`)continue;rt=!1;break}rt&&Z.push({range:new H.a(He,1,He,Oe),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(P,Z,Ae)},M.prototype.applyEdits=function(P){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(P)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._applyEdits=function(P){for(var Z=0,Ae=P.length;Z<Ae;Z++)P[Z].range=this.validateRange(P[Z].range);var xe=this._buffer.getLineCount(),Ne=this._buffer.applyEdits(P,this._options.trimAutoWhitespace),dt=this._buffer.getLineCount(),ht=Ne.changes;if(this._trimAutoWhitespaceLines=Ne.trimAutoWhitespaceLineNumbers,ht.length!==0){for(var xt=[],Bt=xe,Z=0,Ae=ht.length;Z<Ae;Z++){var Ht=ht[Z],Ut=Object(Y.f)(Ht.text),oo=Ut[0],Zt=Ut[1],fo=Ut[2];this._tokens.acceptEdit(Ht.range,oo,Zt),this._tokens2.acceptEdit(Ht.range,oo,Zt,fo,Ht.text.length>0?Ht.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(Ht.rangeOffset,Ht.rangeLength,Ht.text.length,Ht.forceMoveMarkers);for(var yt=Ht.range.startLineNumber,He=Ht.range.endLineNumber,Oe=He-yt,rt=oo,It=Math.min(Oe,rt),pe=rt-Oe,D=It;D>=0;D--){var ye=yt+D,We=dt-Bt-pe+ye;xt.push(new bt(ye,this.getLineContent(We)))}if(It<Oe){var Ze=yt+It;xt.push(new Gt(Ze+1,He))}if(It<rt){for(var st=yt+It,mt=rt-It,Kt=dt-Bt-mt+st+1,Xt=[],no=0;no<mt;no++){var vo=Kt+no;Xt[vo-Kt]=this.getLineContent(vo)}xt.push(new Nt(st+1,yt+rt,Xt))}Bt+=pe}this._increaseVersionId(),this._emitContentChangedEvent(new Je(xt,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:ht,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return Ne.reverseEdits},M.prototype._undo=function(){this._isUndoing=!0;var P=this._commandManager.undo();return this._isUndoing=!1,P?(this._overwriteAlternativeVersionId(P.recordedVersionId),P.selections):null},M.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype.canUndo=function(){return this._commandManager.canUndo()},M.prototype._redo=function(){this._isRedoing=!0;var P=this._commandManager.redo();return this._isRedoing=!1,P?(this._overwriteAlternativeVersionId(P.recordedVersionId),P.selections):null},M.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype.canRedo=function(){return this._commandManager.canRedo()},M.prototype.changeDecorations=function(P,Z){Z===void 0&&(Z=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(Z,P)}finally{this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._changeDecorations=function(P,Z){var Ae=this,xe={addDecoration:function(ht,xt){return Ae._onDidChangeDecorations.fire(),Ae._deltaDecorationsImpl(P,[],[{range:ht,options:xt}])[0]},changeDecoration:function(ht,xt){Ae._onDidChangeDecorations.fire(),Ae._changeDecorationImpl(ht,xt)},changeDecorationOptions:function(ht,xt){Ae._onDidChangeDecorations.fire(),Ae._changeDecorationOptionsImpl(ht,ot(xt))},removeDecoration:function(ht){Ae._onDidChangeDecorations.fire(),Ae._deltaDecorationsImpl(P,[ht],[])},deltaDecorations:function(ht,xt){return ht.length===0&&xt.length===0?[]:(Ae._onDidChangeDecorations.fire(),Ae._deltaDecorationsImpl(P,ht,xt))}},Ne=null;try{Ne=Z(xe)}catch(dt){Object(T.e)(dt)}return xe.addDecoration=Vo,xe.changeDecoration=Vo,xe.changeDecorationOptions=Vo,xe.removeDecoration=Vo,xe.deltaDecorations=Vo,Ne},M.prototype.deltaDecorations=function(P,Z,Ae){if(Ae===void 0&&(Ae=0),this._assertNotDisposed(),P||(P=[]),P.length===0&&Z.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(Ae,P,Z)}finally{this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._getTrackedRange=function(P){return this.getDecorationRange(P)},M.prototype._setTrackedRange=function(P,Z,Ae){var xe=P?this._decorations[P]:null;if(!xe)return Z?this._deltaDecorationsImpl(0,[],[{range:Z,options:St[Ae]}])[0]:null;if(!Z)return this._decorationsTree.delete(xe),delete this._decorations[xe.id],null;var Ne=this._validateRangeRelaxedNoAllocations(Z),dt=this._buffer.getOffsetAt(Ne.startLineNumber,Ne.startColumn),ht=this._buffer.getOffsetAt(Ne.endLineNumber,Ne.endColumn);return this._decorationsTree.delete(xe),xe.reset(this.getVersionId(),dt,ht,Ne),xe.setOptions(St[Ae]),this._decorationsTree.insert(xe),xe.id},M.prototype.removeAllDecorationsWithOwnerId=function(P){if(this._isDisposed)return;for(var Z=this._decorationsTree.collectNodesFromOwner(P),Ae=0,xe=Z.length;Ae<xe;Ae++){var Ne=Z[Ae];this._decorationsTree.delete(Ne),delete this._decorations[Ne.id]}},M.prototype.getDecorationOptions=function(P){var Z=this._decorations[P];return Z?Z.options:null},M.prototype.getDecorationRange=function(P){var Z=this._decorations[P];if(!Z)return null;var Ae=this.getVersionId();return Z.cachedVersionId!==Ae&&this._decorationsTree.resolveNode(Z,Ae),Z.range===null&&(Z.range=this._getRangeAt(Z.cachedAbsoluteStart,Z.cachedAbsoluteEnd)),Z.range},M.prototype.getLineDecorations=function(P,Z,Ae){return Z===void 0&&(Z=0),Ae===void 0&&(Ae=!1),P<1||P>this.getLineCount()?[]:this.getLinesDecorations(P,P,Z,Ae)},M.prototype.getLinesDecorations=function(P,Z,Ae,xe){Ae===void 0&&(Ae=0),xe===void 0&&(xe=!1);var Ne=this.getLineCount(),dt=Math.min(Ne,Math.max(1,P)),ht=Math.min(Ne,Math.max(1,Z)),xt=this.getLineMaxColumn(ht);return this._getDecorationsInRange(new H.a(dt,1,ht,xt),Ae,xe)},M.prototype.getDecorationsInRange=function(P,Z,Ae){Z===void 0&&(Z=0),Ae===void 0&&(Ae=!1);var xe=this.validateRange(P);return this._getDecorationsInRange(xe,Z,Ae)},M.prototype.getOverviewRulerDecorations=function(P,Z){P===void 0&&(P=0),Z===void 0&&(Z=!1);var Ae=this.getVersionId(),xe=this._decorationsTree.search(P,Z,!0,Ae);return this._ensureNodesHaveRanges(xe)},M.prototype.getAllDecorations=function(P,Z){P===void 0&&(P=0),Z===void 0&&(Z=!1);var Ae=this.getVersionId(),xe=this._decorationsTree.search(P,Z,!1,Ae);return this._ensureNodesHaveRanges(xe)},M.prototype._getDecorationsInRange=function(P,Z,Ae){var xe=this._buffer.getOffsetAt(P.startLineNumber,P.startColumn),Ne=this._buffer.getOffsetAt(P.endLineNumber,P.endColumn),dt=this.getVersionId(),ht=this._decorationsTree.intervalSearch(xe,Ne,Z,Ae,dt);return this._ensureNodesHaveRanges(ht)},M.prototype._ensureNodesHaveRanges=function(P){for(var Z=0,Ae=P.length;Z<Ae;Z++){var xe=P[Z];xe.range===null&&(xe.range=this._getRangeAt(xe.cachedAbsoluteStart,xe.cachedAbsoluteEnd))}return P},M.prototype._getRangeAt=function(P,Z){return this._buffer.getRangeAt(P,Z-P)},M.prototype._changeDecorationImpl=function(P,Z){var Ae=this._decorations[P];if(!Ae)return;var xe=this._validateRangeRelaxedNoAllocations(Z),Ne=this._buffer.getOffsetAt(xe.startLineNumber,xe.startColumn),dt=this._buffer.getOffsetAt(xe.endLineNumber,xe.endColumn);this._decorationsTree.delete(Ae),Ae.reset(this.getVersionId(),Ne,dt,xe),this._decorationsTree.insert(Ae)},M.prototype._changeDecorationOptionsImpl=function(P,Z){var Ae=this._decorations[P];if(!Ae)return;var xe=!!(Ae.options.overviewRuler&&Ae.options.overviewRuler.color),Ne=!!(Z.overviewRuler&&Z.overviewRuler.color);xe!==Ne?(this._decorationsTree.delete(Ae),Ae.setOptions(Z),this._decorationsTree.insert(Ae)):Ae.setOptions(Z)},M.prototype._deltaDecorationsImpl=function(P,Z,Ae){for(var xe=this.getVersionId(),Ne=Z.length,dt=0,ht=Ae.length,xt=0,Bt=new Array(ht);dt<Ne||xt<ht;){var Ht=null;if(dt<Ne){do Ht=this._decorations[Z[dt++]];while(!Ht&&dt<Ne);Ht&&this._decorationsTree.delete(Ht)}if(xt<ht){if(!Ht){var Ut=++this._lastDecorationId,oo=this._instanceId+";"+Ut;Ht=new B(oo,0,0),this._decorations[oo]=Ht}var Zt=Ae[xt],fo=this._validateRangeRelaxedNoAllocations(Zt.range),yt=ot(Zt.options),He=this._buffer.getOffsetAt(fo.startLineNumber,fo.startColumn),Oe=this._buffer.getOffsetAt(fo.endLineNumber,fo.endColumn);Ht.ownerId=P,Ht.reset(xe,He,Oe,fo),Ht.setOptions(yt),this._decorationsTree.insert(Ht),Bt[xt]=Ht.id,xt++}else Ht&&delete this._decorations[Ht.id]}return Bt},M.prototype.setLineTokens=function(P,Z){if(P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,P-1,this._buffer.getLineLength(P),Z)},M.prototype.setTokens=function(P){if(P.length===0)return;for(var Z=[],Ae=0,xe=P.length;Ae<xe;Ae++){var Ne=P[Ae];Z.push({fromLineNumber:Ne.startLineNumber,toLineNumber:Ne.startLineNumber+Ne.tokens.length-1});for(var dt=0,ht=Ne.tokens.length;dt<ht;dt++)this.setLineTokens(Ne.startLineNumber+dt,Ne.tokens[dt])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:Z})},M.prototype.setSemanticTokens=function(P){this._tokens2.set(P),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},M.prototype.tokenizeViewport=function(P,Z){P=Math.max(1,P),Z=Math.min(this._buffer.getLineCount(),Z),this._tokenization.tokenizeViewport(P,Z)},M.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},M.prototype._emitModelTokensChangedEvent=function(P){this._isDisposing||this._onDidChangeTokens.fire(P)},M.prototype.resetTokenization=function(){this._tokenization.reset()},M.prototype.forceTokenization=function(P){if(P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(P)},M.prototype.isCheapToTokenize=function(P){return this._tokenization.isCheapToTokenize(P)},M.prototype.tokenizeIfCheap=function(P){this.isCheapToTokenize(P)&&this.forceTokenization(P)},M.prototype.getLineTokens=function(P){if(P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(P)},M.prototype._getLineTokens=function(P){var Z=this.getLineContent(P),Ae=this._tokens.getTokens(this._languageIdentifier.id,P-1,Z);return this._tokens2.addSemanticTokens(P,Ae)},M.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},M.prototype.getModeId=function(){return this._languageIdentifier.language},M.prototype.setMode=function(P){if(this._languageIdentifier.id===P.id)return;var Z={oldLanguage:this._languageIdentifier.language,newLanguage:P.language};this._languageIdentifier=P,this._onDidChangeLanguage.fire(Z),this._onDidChangeLanguageConfiguration.fire({})},M.prototype.getLanguageIdAtPosition=function(P,Z){var Ae=this.validatePosition(new O.a(P,Z)),xe=this.getLineTokens(Ae.lineNumber);return xe.getLanguageId(xe.findTokenIndexAtOffset(Ae.column-1))},M.prototype.getWordAtPosition=function(P){this._assertNotDisposed();var Z=this.validatePosition(P),Ae=this.getLineContent(Z.lineNumber),xe=this._getLineTokens(Z.lineNumber),Ne=xe.findTokenIndexAtOffset(Z.column-1),dt=M._findLanguageBoundaries(xe,Ne),ht=dt[0],xt=dt[1],Bt=Object(po.d)(Z.column,co.a.getWordDefinition(xe.getLanguageId(Ne)),Ae.substring(ht,xt),ht);if(Bt&&Bt.startColumn<=P.column&&P.column<=Bt.endColumn)return Bt;if(Ne>0&&ht===Z.column-1){var Ht=M._findLanguageBoundaries(xe,Ne-1),Ut=Ht[0],oo=Ht[1],Zt=Object(po.d)(Z.column,co.a.getWordDefinition(xe.getLanguageId(Ne-1)),Ae.substring(Ut,oo),Ut);if(Zt&&Zt.startColumn<=P.column&&P.column<=Zt.endColumn)return Zt}return null},M._findLanguageBoundaries=function(P,Z){for(var Ae=P.getLanguageId(Z),xe=0,Ne=Z;Ne>=0&&P.getLanguageId(Ne)===Ae;Ne--)xe=P.getStartOffset(Ne);for(var dt=P.getLineContent().length,Ne=Z,ht=P.getCount();Ne<ht&&P.getLanguageId(Ne)===Ae;Ne++)dt=P.getEndOffset(Ne);return[xe,dt]},M.prototype.getWordUntilPosition=function(P){var Z=this.getWordAtPosition(P);return Z?{word:Z.word.substr(0,P.column-Z.startColumn),startColumn:Z.startColumn,endColumn:P.column}:{word:"",startColumn:P.column,endColumn:P.column}},M.prototype.findMatchingBracketUp=function(P,Z){var Ae=P.toLowerCase(),xe=this.validatePosition(Z),Ne=this._getLineTokens(xe.lineNumber),dt=Ne.getLanguageId(Ne.findTokenIndexAtOffset(xe.column-1)),ht=co.a.getBracketsSupport(dt);if(!ht)return null;var xt=ht.textIsBracket[Ae];return xt?this._findMatchingBracketUp(xt,xe):null},M.prototype.matchBracket=function(P){return this._matchBracket(this.validatePosition(P))},M.prototype._matchBracket=function(P){var Z=P.lineNumber,Ae=this._getLineTokens(Z),xe=Ae.getCount(),Ne=this._buffer.getLineContent(Z),dt=Ae.findTokenIndexAtOffset(P.column-1);if(dt<0)return null;var ht=co.a.getBracketsSupport(Ae.getLanguageId(dt));if(ht&&!Object(Eo.b)(Ae.getStandardTokenType(dt))){for(var xt=Math.max(0,P.column-1-ht.maxBracketLength),Bt=dt-1;Bt>=0;Bt--){var Ht=Ae.getEndOffset(Bt);if(Ht<=xt)break;Object(Eo.b)(Ae.getStandardTokenType(Bt))&&(xt=Ht)}for(var Ut=Math.min(Ne.length,P.column-1+ht.maxBracketLength),oo=null;;){var Zt=Oo.a.findNextBracketInRange(ht.forwardRegex,Z,Ne,xt,Ut);if(!Zt)break;if(Zt.startColumn<=P.column&&P.column<=Zt.endColumn){var fo=Ne.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),yt=this._matchFoundBracket(Zt,ht.textIsBracket[fo],ht.textIsOpenBracket[fo]);yt&&(oo=yt)}xt=Zt.endColumn-1}if(oo)return oo}if(dt>0&&Ae.getStartOffset(dt)===P.column-1){var He=dt-1,Oe=co.a.getBracketsSupport(Ae.getLanguageId(He));if(Oe&&!Object(Eo.b)(Ae.getStandardTokenType(He))){for(var xt=Math.max(0,P.column-1-Oe.maxBracketLength),Ut=Math.min(Ne.length,P.column-1+Oe.maxBracketLength),Bt=He+1;Bt<xe;Bt++){var rt=Ae.getStartOffset(Bt);if(rt>=Ut)break;Object(Eo.b)(Ae.getStandardTokenType(Bt))&&(Ut=rt)}var Zt=Oo.a.findPrevBracketInRange(Oe.reversedRegex,Z,Ne,xt,Ut);if(Zt&&Zt.startColumn<=P.column&&P.column<=Zt.endColumn){var fo=Ne.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),yt=this._matchFoundBracket(Zt,Oe.textIsBracket[fo],Oe.textIsOpenBracket[fo]);if(yt)return yt}}}return null},M.prototype._matchFoundBracket=function(P,Z,Ae){if(!Z)return null;if(Ae){var xe=this._findMatchingBracketDown(Z,P.getEndPosition());if(xe)return[P,xe]}else{var xe=this._findMatchingBracketUp(Z,P.getStartPosition());if(xe)return[P,xe]}return null},M.prototype._findMatchingBracketUp=function(P,Z){for(var Ae=P.languageIdentifier.id,xe=P.reversedRegex,Ne=-1,dt=function(rt,It,pe,D){for(;;){var ye=Oo.a.findPrevBracketInRange(xe,rt,It,pe,D);if(!ye)break;var We=It.substring(ye.startColumn-1,ye.endColumn-1).toLowerCase();if(P.isOpen(We)?Ne++:P.isClose(We)&&Ne--,Ne===0)return ye;D=ye.startColumn-1}return null},ht=Z.lineNumber;ht>=1;ht--){var xt=this._getLineTokens(ht),Bt=xt.getCount(),Ht=this._buffer.getLineContent(ht),Ut=Bt-1,oo=Ht.length,Zt=Ht.length;ht===Z.lineNumber&&(Ut=xt.findTokenIndexAtOffset(Z.column-1),oo=Z.column-1,Zt=Z.column-1);for(var fo=!0;Ut>=0;Ut--){var yt=xt.getLanguageId(Ut)===Ae&&!Object(Eo.b)(xt.getStandardTokenType(Ut));if(yt)fo?oo=xt.getStartOffset(Ut):(oo=xt.getStartOffset(Ut),Zt=xt.getEndOffset(Ut));else if(fo&&oo!==Zt){var He=dt(ht,Ht,oo,Zt);if(He)return He}fo=yt}if(fo&&oo!==Zt){var He=dt(ht,Ht,oo,Zt);if(He)return He}}return null},M.prototype._findMatchingBracketDown=function(P,Z){for(var Ae=P.languageIdentifier.id,xe=P.forwardRegex,Ne=1,dt=function(It,pe,D,ye){for(;;){var We=Oo.a.findNextBracketInRange(xe,It,pe,D,ye);if(!We)break;var Ze=pe.substring(We.startColumn-1,We.endColumn-1).toLowerCase();if(P.isOpen(Ze)?Ne++:P.isClose(Ze)&&Ne--,Ne===0)return We;D=We.endColumn-1}return null},ht=this.getLineCount(),xt=Z.lineNumber;xt<=ht;xt++){var Bt=this._getLineTokens(xt),Ht=Bt.getCount(),Ut=this._buffer.getLineContent(xt),oo=0,Zt=0,fo=0;xt===Z.lineNumber&&(oo=Bt.findTokenIndexAtOffset(Z.column-1),Zt=Z.column-1,fo=Z.column-1);for(var yt=!0;oo<Ht;oo++){var He=Bt.getLanguageId(oo)===Ae&&!Object(Eo.b)(Bt.getStandardTokenType(oo));if(He)yt||(Zt=Bt.getStartOffset(oo)),fo=Bt.getEndOffset(oo);else if(yt&&Zt!==fo){var Oe=dt(xt,Ut,Zt,fo);if(Oe)return Oe}yt=He}if(yt&&Zt!==fo){var Oe=dt(xt,Ut,Zt,fo);if(Oe)return Oe}}return null},M.prototype.findPrevBracket=function(P){for(var Z=this.validatePosition(P),Ae=-1,xe=null,Ne=Z.lineNumber;Ne>=1;Ne--){var dt=this._getLineTokens(Ne),ht=dt.getCount(),xt=this._buffer.getLineContent(Ne),Bt=ht-1,Ht=xt.length,Ut=xt.length;if(Ne===Z.lineNumber){Bt=dt.findTokenIndexAtOffset(Z.column-1),Ht=Z.column-1,Ut=Z.column-1;var oo=dt.getLanguageId(Bt);Ae!==oo&&(Ae=oo,xe=co.a.getBracketsSupport(Ae))}for(var Zt=!0;Bt>=0;Bt--){var oo=dt.getLanguageId(Bt);if(Ae!==oo){if(xe&&Zt&&Ht!==Ut){var fo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ne,xt,Ht,Ut);if(fo)return this._toFoundBracket(xe,fo);Zt=!1}Ae=oo,xe=co.a.getBracketsSupport(Ae)}var yt=!!xe&&!Object(Eo.b)(dt.getStandardTokenType(Bt));if(yt)Zt?Ht=dt.getStartOffset(Bt):(Ht=dt.getStartOffset(Bt),Ut=dt.getEndOffset(Bt));else if(xe&&Zt&&Ht!==Ut){var fo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ne,xt,Ht,Ut);if(fo)return this._toFoundBracket(xe,fo)}Zt=yt}if(xe&&Zt&&Ht!==Ut){var fo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ne,xt,Ht,Ut);if(fo)return this._toFoundBracket(xe,fo)}}return null},M.prototype.findNextBracket=function(P){for(var Z=this.validatePosition(P),Ae=this.getLineCount(),xe=-1,Ne=null,dt=Z.lineNumber;dt<=Ae;dt++){var ht=this._getLineTokens(dt),xt=ht.getCount(),Bt=this._buffer.getLineContent(dt),Ht=0,Ut=0,oo=0;if(dt===Z.lineNumber){Ht=ht.findTokenIndexAtOffset(Z.column-1),Ut=Z.column-1,oo=Z.column-1;var Zt=ht.getLanguageId(Ht);xe!==Zt&&(xe=Zt,Ne=co.a.getBracketsSupport(xe))}for(var fo=!0;Ht<xt;Ht++){var Zt=ht.getLanguageId(Ht);if(xe!==Zt){if(Ne&&fo&&Ut!==oo){var yt=Oo.a.findNextBracketInRange(Ne.forwardRegex,dt,Bt,Ut,oo);if(yt)return this._toFoundBracket(Ne,yt);fo=!1}xe=Zt,Ne=co.a.getBracketsSupport(xe)}var He=!!Ne&&!Object(Eo.b)(ht.getStandardTokenType(Ht));if(He)fo||(Ut=ht.getStartOffset(Ht)),oo=ht.getEndOffset(Ht);else if(Ne&&fo&&Ut!==oo){var yt=Oo.a.findNextBracketInRange(Ne.forwardRegex,dt,Bt,Ut,oo);if(yt)return this._toFoundBracket(Ne,yt)}fo=He}if(Ne&&fo&&Ut!==oo){var yt=Oo.a.findNextBracketInRange(Ne.forwardRegex,dt,Bt,Ut,oo);if(yt)return this._toFoundBracket(Ne,yt)}}return null},M.prototype.findEnclosingBrackets=function(P,Z){var Ae=this;Z===void 0&&(Z=1073741824);for(var xe=this.validatePosition(P),Ne=this.getLineCount(),dt=new Map,ht=[],xt=function(mt,Kt){if(!dt.has(mt)){for(var Xt=[],no=0,vo=Kt?Kt.brackets.length:0;no<vo;no++)Xt[no]=0;dt.set(mt,Xt)}ht=dt.get(mt)},Bt=function(mt,Kt,Xt,no,vo){for(;;){var lo=Oo.a.findNextBracketInRange(mt.forwardRegex,Kt,Xt,no,vo);if(!lo)break;var Ro=Xt.substring(lo.startColumn-1,lo.endColumn-1).toLowerCase(),wo=mt.textIsBracket[Ro];if(wo&&(wo.isOpen(Ro)?ht[wo.index]++:wo.isClose(Ro)&&ht[wo.index]--,ht[wo.index]===-1))return Ae._matchFoundBracket(lo,wo,!1);no=lo.endColumn-1}return null},Ht=-1,Ut=null,oo=Date.now(),Zt=xe.lineNumber;Zt<=Ne;Zt++){var fo=Date.now()-oo;if(fo>Z)return null;var yt=this._getLineTokens(Zt),He=yt.getCount(),Oe=this._buffer.getLineContent(Zt),rt=0,It=0,pe=0;if(Zt===xe.lineNumber){rt=yt.findTokenIndexAtOffset(xe.column-1),It=xe.column-1,pe=xe.column-1;var D=yt.getLanguageId(rt);Ht!==D&&(Ht=D,Ut=co.a.getBracketsSupport(Ht),xt(Ht,Ut))}for(var ye=!0;rt<He;rt++){var D=yt.getLanguageId(rt);if(Ht!==D){if(Ut&&ye&&It!==pe){var We=Bt(Ut,Zt,Oe,It,pe);if(We)return We;ye=!1}Ht=D,Ut=co.a.getBracketsSupport(Ht),xt(Ht,Ut)}var Ze=!!Ut&&!Object(Eo.b)(yt.getStandardTokenType(rt));if(Ze)ye||(It=yt.getStartOffset(rt)),pe=yt.getEndOffset(rt);else if(Ut&&ye&&It!==pe){var We=Bt(Ut,Zt,Oe,It,pe);if(We)return We}ye=Ze}if(Ut&&ye&&It!==pe){var We=Bt(Ut,Zt,Oe,It,pe);if(We)return We}}return null},M.prototype._toFoundBracket=function(P,Z){if(!Z)return null;var Ae=this.getValueInRange(Z);Ae=Ae.toLowerCase();var xe=P.textIsBracket[Ae];return xe?{range:Z,open:xe.open,close:xe.close,isOpen:P.textIsOpenBracket[Ae]}:null},M.computeIndentLevel=function(P,Z){for(var Ae=0,xe=0,Ne=P.length;xe<Ne;){var dt=P.charCodeAt(xe);if(dt===32)Ae++;else if(dt===9)Ae=Ae-Ae%Z+Z;else break;xe++}return xe===Ne?-1:Ae},M.prototype._computeIndentLevel=function(P){return M.computeIndentLevel(this._buffer.getLineContent(P+1),this._options.tabSize)},M.prototype.getActiveIndentGuide=function(P,Z,Ae){var xe=this;this._assertNotDisposed();var Ne=this.getLineCount();if(P<1||P>Ne)throw new Error("Illegal value for lineNumber");for(var dt=co.a.getFoldingRules(this._languageIdentifier.id),ht=Boolean(dt&&dt.offSide),xt=-2,Bt=-1,Ht=-2,Ut=-1,oo=function(vo){if(xt!==-1&&(xt===-2||xt>vo-1)){xt=-1,Bt=-1;for(var lo=vo-2;lo>=0;lo--){var Ro=xe._computeIndentLevel(lo);if(Ro>=0){xt=lo,Bt=Ro;break}}}if(Ht===-2){Ht=-1,Ut=-1;for(var lo=vo;lo<Ne;lo++){var wo=xe._computeIndentLevel(lo);if(wo>=0){Ht=lo,Ut=wo;break}}}},Zt=-2,fo=-1,yt=-2,He=-1,Oe=function(vo){if(Zt===-2){Zt=-1,fo=-1;for(var lo=vo-2;lo>=0;lo--){var Ro=xe._computeIndentLevel(lo);if(Ro>=0){Zt=lo,fo=Ro;break}}}if(yt!==-1&&(yt===-2||yt<vo-1)){yt=-1,He=-1;for(var lo=vo;lo<Ne;lo++){var wo=xe._computeIndentLevel(lo);if(wo>=0){yt=lo,He=wo;break}}}},rt=0,It=!0,pe=0,D=!0,ye=0,We=0;It||D;We++){var Ze=P-We,st=P+We;if(We!==0&&(Ze<1||Ze<Z)&&(It=!1),We!==0&&(st>Ne||st>Ae)&&(D=!1),We>5e4&&(It=!1,D=!1),It){var mt=void 0,Kt=this._computeIndentLevel(Ze-1);if(Kt>=0?(Ht=Ze-1,Ut=Kt,mt=Math.ceil(Kt/this._options.indentSize)):(oo(Ze),mt=this._getIndentLevelForWhitespaceLine(ht,Bt,Ut)),We===0){if(rt=Ze,pe=st,ye=mt,ye===0)return{startLineNumber:rt,endLineNumber:pe,indent:ye};continue}mt>=ye?rt=Ze:It=!1}if(D){var Xt=void 0,Kt=this._computeIndentLevel(st-1);Kt>=0?(Zt=st-1,fo=Kt,Xt=Math.ceil(Kt/this._options.indentSize)):(Oe(st),Xt=this._getIndentLevelForWhitespaceLine(ht,fo,He)),Xt>=ye?pe=st:D=!1}}return{startLineNumber:rt,endLineNumber:pe,indent:ye}},M.prototype.getLinesIndentGuides=function(P,Z){this._assertNotDisposed();var Ae=this.getLineCount();if(P<1||P>Ae)throw new Error("Illegal value for startLineNumber");if(Z<1||Z>Ae)throw new Error("Illegal value for endLineNumber");for(var xe=co.a.getFoldingRules(this._languageIdentifier.id),Ne=Boolean(xe&&xe.offSide),dt=new Array(Z-P+1),ht=-2,xt=-1,Bt=-2,Ht=-1,Ut=P;Ut<=Z;Ut++){var oo=Ut-P,Zt=this._computeIndentLevel(Ut-1);if(Zt>=0){ht=Ut-1,xt=Zt,dt[oo]=Math.ceil(Zt/this._options.indentSize);continue}if(ht===-2){ht=-1,xt=-1;for(var fo=Ut-2;fo>=0;fo--){var yt=this._computeIndentLevel(fo);if(yt>=0){ht=fo,xt=yt;break}}}if(Bt!==-1&&(Bt===-2||Bt<Ut-1)){Bt=-1,Ht=-1;for(var fo=Ut;fo<Ae;fo++){var yt=this._computeIndentLevel(fo);if(yt>=0){Bt=fo,Ht=yt;break}}}dt[oo]=this._getIndentLevelForWhitespaceLine(Ne,xt,Ht)}return dt},M.prototype._getIndentLevelForWhitespaceLine=function(P,Z,Ae){return Z===-1||Ae===-1?0:Z<Ae?1+Math.floor(Z/this._options.indentSize):Z===Ae?Math.ceil(Ae/this._options.indentSize):P?Math.ceil(Ae/this._options.indentSize):1+Math.floor(Ae/this._options.indentSize)},M.MODEL_SYNC_LIMIT=50*1024*1024,M.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024,M.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3,M.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},M}(J.a),yn=function(){function _e(){this._decorationsTree0=new Ce,this._decorationsTree1=new Ce}return _e.prototype.intervalSearch=function(M,P,Z,Ae,xe){var Ne=this._decorationsTree0.intervalSearch(M,P,Z,Ae,xe),dt=this._decorationsTree1.intervalSearch(M,P,Z,Ae,xe);return Ne.concat(dt)},_e.prototype.search=function(M,P,Z,Ae){if(Z)return this._decorationsTree1.search(M,P,Ae);var xe=this._decorationsTree0.search(M,P,Ae),Ne=this._decorationsTree1.search(M,P,Ae);return xe.concat(Ne)},_e.prototype.collectNodesFromOwner=function(M){var P=this._decorationsTree0.collectNodesFromOwner(M),Z=this._decorationsTree1.collectNodesFromOwner(M);return P.concat(Z)},_e.prototype.collectNodesPostOrder=function(){var M=this._decorationsTree0.collectNodesPostOrder(),P=this._decorationsTree1.collectNodesPostOrder();return M.concat(P)},_e.prototype.insert=function(M){A(M)?this._decorationsTree1.insert(M):this._decorationsTree0.insert(M)},_e.prototype.delete=function(M){A(M)?this._decorationsTree1.delete(M):this._decorationsTree0.delete(M)},_e.prototype.resolveNode=function(M,P){A(M)?this._decorationsTree1.resolveNode(M,P):this._decorationsTree0.resolveNode(M,P)},_e.prototype.acceptReplace=function(M,P,Z,Ae){this._decorationsTree0.acceptReplace(M,P,Z,Ae),this._decorationsTree1.acceptReplace(M,P,Z,Ae)},_e}();function dn(_e){return _e.replace(/[^a-z0-9\-_]/gi," ")}var rn=function(){function _e(M){this.color=M.color||"",this.darkColor=M.darkColor||""}return _e}(),pn=function(_e){Co(M,_e);function M(P){var Z=_e.call(this,P)||this;return Z._resolvedColor=null,Z.position=typeof P.position=="number"?P.position:u.d.Center,Z}return M.prototype.getColor=function(P){return this._resolvedColor||(P.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,P):this._resolvedColor=this._resolveColor(this.color,P)),this._resolvedColor},M.prototype.invalidateCachedColor=function(){this._resolvedColor=null},M.prototype._resolveColor=function(P,Z){if(typeof P=="string")return P;var Ae=P?Z.getColor(P.id):null;return Ae?Ae.toString():""},M}(rn),zo=function(_e){Co(M,_e);function M(P){var Z=_e.call(this,P)||this;return Z.position=P.position,Z}return M.prototype.getColor=function(P){return this._resolvedColor||(P.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,P):this._resolvedColor=this._resolveColor(this.color,P)),this._resolvedColor},M.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},M.prototype._resolveColor=function(P,Z){return typeof P=="string"?Zo.a.fromHex(P):Z.getColor(P.id)},M}(rn),Ho=function(){function _e(M){this.stickiness=M.stickiness||0,this.zIndex=M.zIndex||0,this.className=M.className?dn(M.className):null,this.hoverMessage=Object(Ao.o)(M.hoverMessage),this.glyphMarginHoverMessage=Object(Ao.o)(M.glyphMarginHoverMessage),this.isWholeLine=M.isWholeLine||!1,this.showIfCollapsed=M.showIfCollapsed||!1,this.collapseOnReplaceEdit=M.collapseOnReplaceEdit||!1,this.overviewRuler=M.overviewRuler?new pn(M.overviewRuler):null,this.minimap=M.minimap?new zo(M.minimap):null,this.glyphMarginClassName=M.glyphMarginClassName?dn(M.glyphMarginClassName):null,this.linesDecorationsClassName=M.linesDecorationsClassName?dn(M.linesDecorationsClassName):null,this.marginClassName=M.marginClassName?dn(M.marginClassName):null,this.inlineClassName=M.inlineClassName?dn(M.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=M.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=M.beforeContentClassName?dn(M.beforeContentClassName):null,this.afterContentClassName=M.afterContentClassName?dn(M.afterContentClassName):null}return _e.register=function(M){return new _e(M)},_e.createDynamic=function(M){return new _e(M)},_e}();Ho.EMPTY=Ho.register({});var St=[Ho.register({stickiness:0}),Ho.register({stickiness:1}),Ho.register({stickiness:2}),Ho.register({stickiness:3})];function ot(_e){return _e instanceof Ho?_e:Ho.createDynamic(_e)}var nt=function(_e){Co(M,_e);function M(){var P=_e.call(this)||this;return P._actual=P._register(new re.a),P.event=P._actual.event,P._deferredCnt=0,P._shouldFire=!1,P}return M.prototype.beginDeferredEmit=function(){this._deferredCnt++},M.prototype.endDeferredEmit=function(){this._deferredCnt--,this._deferredCnt===0&&(this._shouldFire&&(this._shouldFire=!1,this._actual.fire({})))},M.prototype.fire=function(){this._shouldFire=!0},M}(J.a),Dt=function(_e){Co(M,_e);function M(){var P=_e.call(this)||this;return P._fastEmitter=P._register(new re.a),P.fastEvent=P._fastEmitter.event,P._slowEmitter=P._register(new re.a),P.slowEvent=P._slowEmitter.event,P._deferredCnt=0,P._deferredEvent=null,P}return M.prototype.beginDeferredEmit=function(){this._deferredCnt++},M.prototype.endDeferredEmit=function(){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){var P=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(P),this._slowEmitter.fire(P)}},M.prototype.fire=function(P){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(P):this._deferredEvent=P;return}this._fastEmitter.fire(P),this._slowEmitter.fire(P)},M}(J.a)},tXSY:function(Lt,j,e){"use strict";e.r(j),e.d(j,"SnippetController2",function(){return je});var T=e("pmY6"),re=e("N0LK"),J=e("sswD"),I=e("aokT"),U=e("gCVg"),z=e("wQH0"),O=e("QVNv"),H=e("T8No"),x=e("09fa"),u=e("6OMU"),y=e("dFcq"),_=e("0/Sa"),f=e("tX9W"),v=e("9XeP"),w=e("EWX2"),p=e("Cg/j"),c=e("uACm"),s=e("3/fG"),l=e("MrjW"),d=e("gslv"),m=e("cMvZ"),E=e("bY76"),L="code-workspace";function A(me){return me instanceof E.a}function k(me){return me.configuration?{configPath:me.configuration,id:me.id}:me.folders.length===1?me.folders[0].uri:void 0}var R=e("3rx1"),$=function(){function me(ge){this._delegates=ge}return me.prototype.resolve=function(ge){for(var we=0,Re=this._delegates;we<Re.length;we++){var Ee=Re[we],ve=Ee.resolve(ge);if(ve!==void 0)return ve}return},me}(),ie=function(){function me(ge,we){this._model=ge,this._selection=we}return me.prototype.resolve=function(ge){var we=ge.name;if(we==="SELECTION"||we==="TM_SELECTED_TEXT"){var Re=this._model.getValueInRange(this._selection)||void 0;if(Re&&this._selection.startLineNumber!==this._selection.endLineNumber&&ge.snippet){var Ee=this._model.getLineContent(this._selection.startLineNumber),ve=Object(re.t)(Ee,0,this._selection.startColumn-1),Q=ve;ge.snippet.walk(function(se){return se===ge?!1:(se instanceof c.d&&(Q=Object(re.t)(se.value.split(/\r\n|\r|\n/).pop())),!0)});var C=Object(re.c)(Q,ve);Re=Re.replace(/(\r\n|\r|\n)(.*)/g,function(se,oe,be){return""+oe+Q.substr(C)+be})}return Re}else{if(we==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(we==="TM_CURRENT_WORD"){var F=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return F&&F.word||void 0}else{if(we==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(we==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber)}}return},me}(),W=function(){function me(ge,we){this._labelService=ge,this._model=we}return me.prototype.resolve=function(ge){var we=ge.name;if(we==="TM_FILENAME")return l.basename(this._model.uri.fsPath);if(we==="TM_FILENAME_BASE"){var Re=l.basename(this._model.uri.fsPath),Ee=Re.lastIndexOf(".");return Ee<=0?Re:Re.slice(0,Ee)}else{if(we==="TM_DIRECTORY"&&this._labelService)return l.dirname(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(Object(d.d)(this._model.uri));if(we==="TM_FILEPATH"&&this._labelService)return this._labelService.getUriLabel(this._model.uri)}return},me}(),B=function(){function me(ge,we,Re,Ee){this._readClipboardText=ge,this._selectionIdx=we,this._selectionCount=Re,this._spread=Ee}return me.prototype.resolve=function(ge){if(ge.name!=="CLIPBOARD")return;var we=this._readClipboardText();if(!we)return;if(this._spread){var Re=we.split(/\r\n|\n|\r/).filter(function(Ee){return!Object(re.x)(Ee)});if(Re.length===this._selectionCount)return Re[this._selectionIdx]}return we},me}(),le=function(){function me(ge){this._model=ge}return me.prototype.resolve=function(ge){var we=ge.name,Re=this._model.getLanguageIdentifier(),Ee=m.a.getComments(Re.id);return Ee?we==="LINE_COMMENT"?Ee.lineCommentToken||void 0:we==="BLOCK_COMMENT_START"?Ee.blockCommentStartToken||void 0:we==="BLOCK_COMMENT_END"&&Ee.blockCommentEndToken||void 0:void 0},me}(),Ce=function(){function me(){}return me.prototype.resolve=function(ge){var we=ge.name;return we==="CURRENT_YEAR"?String(new Date().getFullYear()):we==="CURRENT_YEAR_SHORT"?String(new Date().getFullYear()).slice(-2):we==="CURRENT_MONTH"?Object(re.F)(new Date().getMonth().valueOf()+1,2):we==="CURRENT_DATE"?Object(re.F)(new Date().getDate().valueOf(),2):we==="CURRENT_HOUR"?Object(re.F)(new Date().getHours().valueOf(),2):we==="CURRENT_MINUTE"?Object(re.F)(new Date().getMinutes().valueOf(),2):we==="CURRENT_SECOND"?Object(re.F)(new Date().getSeconds().valueOf(),2):we==="CURRENT_DAY_NAME"?me.dayNames[new Date().getDay()]:we==="CURRENT_DAY_NAME_SHORT"?me.dayNamesShort[new Date().getDay()]:we==="CURRENT_MONTH_NAME"?me.monthNames[new Date().getMonth()]:we==="CURRENT_MONTH_NAME_SHORT"?me.monthNamesShort[new Date().getMonth()]:we==="CURRENT_SECONDS_UNIX"?String(Math.floor(Date.now()/1e3)):void 0},me.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")],me.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")],me.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")],me.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")],me}(),Me=function(){function me(ge){this._workspaceService=ge}return me.prototype.resolve=function(ge){if(!this._workspaceService)return;var we=k(this._workspaceService.getWorkspace());return we?ge.name==="WORKSPACE_NAME"?this._resolveWorkspaceName(we):ge.name==="WORKSPACE_FOLDER"?this._resoveWorkspacePath(we):void 0:void 0},me.prototype._resolveWorkspaceName=function(ge){if(A(ge))return l.basename(ge.path);var we=l.basename(ge.configPath.path);return Object(re.m)(we,L)&&(we=we.substr(0,we.length-L.length-1)),we},me.prototype._resoveWorkspacePath=function(ge){if(A(ge))return Object(R.c)(ge.fsPath);var we=l.basename(ge.configPath.path),Re=ge.configPath.fsPath;return Object(re.m)(Re,we)&&(Re=Re.substr(0,Re.length-we.length-1)),Re?Object(R.c)(Re):"/"},me}(),Te=function(){function me(){}return me.prototype.resolve=function(ge){var we=ge.name;return we==="RANDOM"?Math.random().toString().slice(-6):we==="RANDOM_HEX"?Math.random().toString(16).slice(-6):void 0},me}(),Fe=e("t9D7"),Ue=e("MD5Z"),Pe=e("R8sh");Object(Fe.e)(function(me,ge){function we(Re){var Ee=me.getColor(Re);return Ee?Ee.toString():"transparent"}ge.addRule(".monaco-editor .snippet-placeholder { background-color: "+we(Ue.bc)+"; outline-color: "+we(Ue.cc)+"; }"),ge.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+we(Ue.Zb)+"; outline-color: "+we(Ue.ac)+"; }")});var ne=function(){function me(ge,we,Re){this._nestingLevel=1,this._editor=ge,this._snippet=we,this._offset=Re,this._placeholderGroups=Object(u.o)(we.placeholders,c.b.compareByIndex),this._placeholderGroupsIdx=-1}return me.prototype.dispose=function(){if(this._placeholderDecorations){var ge=[];this._placeholderDecorations.forEach(function(we){return ge.push(we)}),this._editor.deltaDecorations(ge,[])}this._placeholderGroups.length=0},me.prototype._initDecorations=function(){var ge=this;if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;var we=this._editor.getModel();this._editor.changeDecorations(function(Re){for(var Ee=0,ve=ge._snippet.placeholders;Ee<ve.length;Ee++){var Q=ve[Ee],C=ge._snippet.offset(Q),F=ge._snippet.fullLen(Q),se=I.a.fromPositions(we.getPositionAt(ge._offset+C),we.getPositionAt(ge._offset+C+F)),oe=Q.isFinalTabstop?me._decor.inactiveFinal:me._decor.inactive,be=Re.addDecoration(se,oe);ge._placeholderDecorations.set(Q,be)}})},me.prototype.move=function(ge){var we=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 C=this._placeholderDecorations.get(Q),F=this._editor.getModel().getDecorationRange(C),se=this._editor.getModel().getValueInRange(F);Re.push(_.a.replaceMove(F,Q.transform.resolve(se)))}}Re.length>0&&this._editor.executeEdits("snippet.placeholderTransform",Re)}var oe=!1;ge===!0&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,oe=!0):ge===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,oe=!0);var be=this._editor.getModel().changeDecorations(function(De){for(var Se=new Set,Ve=[],Qe=0,it=we._placeholderGroups[we._placeholderGroupsIdx];Qe<it.length;Qe++){var pt=it[Qe],Rt=we._placeholderDecorations.get(pt),Mt=we._editor.getModel().getDecorationRange(Rt);Ve.push(new U.a(Mt.startLineNumber,Mt.startColumn,Mt.endLineNumber,Mt.endColumn)),oe=oe&&we._hasPlaceholderBeenCollapsed(pt),De.changeDecorationOptions(Rt,pt.isFinalTabstop?me._decor.activeFinal:me._decor.active),Se.add(pt);for(var zt=0,uo=we._snippet.enclosingPlaceholders(pt);zt<uo.length;zt++){var ao=uo[zt],so=we._placeholderDecorations.get(ao);De.changeDecorationOptions(so,ao.isFinalTabstop?me._decor.activeFinal:me._decor.active),Se.add(ao)}}return we._placeholderDecorations.forEach(function(Pt,ft){Se.has(ft)||De.changeDecorationOptions(Pt,ft.isFinalTabstop?me._decor.inactiveFinal:me._decor.inactive)}),Ve});return oe?this.move(ge):be},me.prototype._hasPlaceholderBeenCollapsed=function(ge){for(var we=ge;we;){if(we instanceof c.b){var Re=this._placeholderDecorations.get(we),Ee=this._editor.getModel().getDecorationRange(Re);if(Ee.isEmpty()&&we.toString().length>0)return!0}we=we.parent}return!1},Object.defineProperty(me.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),me.prototype.computePossibleSelections=function(){for(var ge=new Map,we=0,Re=this._placeholderGroups;we<Re.length;we++)for(var Ee=Re[we],ve=void 0,Q=0,C=Ee;Q<C.length;Q++){var F=C[Q];if(F.isFinalTabstop)break;ve||(ve=[],ge.set(F.index,ve));var se=this._placeholderDecorations.get(F),oe=this._editor.getModel().getDecorationRange(se);if(!oe){ge.delete(F.index);break}ve.push(oe)}return ge},Object.defineProperty(me.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),me.prototype.merge=function(ge){var we=this,Re=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(function(Ee){for(var ve=0,Q=we._placeholderGroups[we._placeholderGroupsIdx];ve<Q.length;ve++){var C=Q[ve],F=ge.shift();console.assert(!F._placeholderDecorations);for(var se=F._snippet.placeholderInfo.last.index,oe=0,be=F._snippet.placeholderInfo.all;oe<be.length;oe++){var De=be[oe];De.isFinalTabstop?De.index=C.index+(se+1)/we._nestingLevel:De.index=C.index+De.index/we._nestingLevel}we._snippet.replace(C,F._snippet.children);var Se=we._placeholderDecorations.get(C);Ee.removeDecoration(Se),we._placeholderDecorations.delete(C);for(var Ve=0,Qe=F._snippet.placeholders;Ve<Qe.length;Ve++){var it=Qe[Ve],pt=F._snippet.offset(it),Rt=F._snippet.fullLen(it),Mt=I.a.fromPositions(Re.getPositionAt(F._offset+pt),Re.getPositionAt(F._offset+pt+Rt)),zt=Ee.addDecoration(Mt,me._decor.inactive);we._placeholderDecorations.set(it,zt)}}we._placeholderGroups=Object(u.o)(we._snippet.placeholders,c.b.compareByIndex)})},me._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"})},me}(),ee={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},ae=function(){function me(ge,we,Re){Re===void 0&&(Re=ee),this._templateMerges=[],this._snippets=[],this._editor=ge,this._template=we,this._options=Re}return me.adjustWhitespace=function(ge,we,Re,Ee,ve){var Q=ge.getLineContent(we.lineNumber),C=Object(re.t)(Q,0,we.column-1);Re.walk(function(F){if(F instanceof c.d&&!(F.parent instanceof c.a)){var se=F.value.split(/\r\n|\r|\n/);if(Ee)for(var oe=1;oe<se.length;oe++){var be=Object(re.t)(se[oe]);se[oe]=ge.normalizeIndentation(C+be)+se[oe].substr(be.length)}if(ve){var De=se.join(ge.getEOL());De!==F.value&&F.parent.replace(F,[new c.d(De)])}}return!0})},me.adjustSelection=function(ge,we,Re,Ee){if(Re!==0||Ee!==0){var ve=we.positionLineNumber,Q=we.positionColumn,C=Q-Re,F=Q+Ee,se=ge.validateRange({startLineNumber:ve,startColumn:C,endLineNumber:ve,endColumn:F});we=U.a.createWithDirection(se.startLineNumber,se.startColumn,se.endLineNumber,se.endColumn,we.getDirection())}return we},me.createEditsAndSnippets=function(ge,we,Re,Ee,ve,Q,C){var F=[],se=[];if(!ge.hasModel())return{edits:F,snippets:se};for(var oe=ge.getModel(),be=ge.invokeWithinContext(function(Ct){return Ct.get(w.a,p.d)}),De=ge.invokeWithinContext(function(Ct){return new W(Ct.get(Pe.a,p.d),oe)}),Se=ge.invokeWithinContext(function(Ct){return Ct.get(v.a,p.d)}),Ve=function(){return C||Se&&Se.readTextSync()},Qe=0,it=oe.getValueInRange(me.adjustSelection(oe,ge.getSelection(),Re,0)),pt=oe.getValueInRange(me.adjustSelection(oe,ge.getSelection(),0,Ee)),Rt=oe.getLineFirstNonWhitespaceColumn(ge.getSelection().positionLineNumber),Mt=ge.getSelections().map(function(Ct,gt){return{selection:Ct,idx:gt}}).sort(function(Ct,gt){return I.a.compareRangesUsingStarts(Ct.selection,gt.selection)}),zt=0,uo=Mt;zt<uo.length;zt++){var ao=uo[zt],so=ao.selection,Pt=ao.idx,ft=me.adjustSelection(oe,so,Re,0),vt=me.adjustSelection(oe,so,0,Ee);it!==oe.getValueInRange(ft)&&(ft=so),pt!==oe.getValueInRange(vt)&&(vt=so);var At=so.setStartPosition(ft.startLineNumber,ft.startColumn).setEndPosition(vt.endLineNumber,vt.endColumn),at=new c.c().parse(we,!0,ve),tt=At.getStartPosition();me.adjustWhitespace(oe,tt,at,Q||Pt>0&&Rt!==oe.getLineFirstNonWhitespaceColumn(so.positionLineNumber),!0),at.resolveVariables(new $([De,new B(Ve,Pt,Mt.length,ge.getOption(60)==="spread"),new ie(oe,so),new le(oe),new Ce,new Me(be),new Te]));var ut=oe.getOffsetAt(tt)+Qe;Qe+=at.toString().length-oe.getValueLengthInRange(At),F[Pt]=_.a.replace(At,at.toString()),se[Pt]=new ne(ge,at,ut)}return{edits:F,snippets:se}},me.prototype.dispose=function(){Object(T.f)(this._snippets)},me.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},me.prototype.insert=function(){var ge=this;if(!this._editor.hasModel())return;var we=me.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),Re=we.edits,Ee=we.snippets;this._snippets=Ee,this._editor.executeEdits("snippet",Re,function(ve){return ge._snippets[0].hasPlaceholder?ge._move(!0):ve.map(function(Q){return U.a.fromPositions(Q.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])},me.prototype.merge=function(ge,we){var Re=this;if(we===void 0&&(we=ee),!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,ge]);var Ee=me.createEditsAndSnippets(this._editor,ge,we.overwriteBefore,we.overwriteAfter,!0,we.adjustWhitespace,we.clipboardText),ve=Ee.edits,Q=Ee.snippets;this._editor.executeEdits("snippet",ve,function(C){for(var F=0,se=Re._snippets;F<se.length;F++){var oe=se[F];oe.merge(Q)}return console.assert(Q.length===0),Re._snippets[0].hasPlaceholder?Re._move(void 0):C.map(function(be){return U.a.fromPositions(be.range.getEndPosition())})})},me.prototype.next=function(){var ge=this._move(!0);this._editor.setSelections(ge),this._editor.revealPositionInCenterIfOutsideViewport(ge[0].getPosition())},me.prototype.prev=function(){var ge=this._move(!1);this._editor.setSelections(ge),this._editor.revealPositionInCenterIfOutsideViewport(ge[0].getPosition())},me.prototype._move=function(ge){for(var we=[],Re=0,Ee=this._snippets;Re<Ee.length;Re++){var ve=Ee[Re],Q=ve.move(ge);we.push.apply(we,Q)}return we},Object.defineProperty(me.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),me.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var ge=this._editor.getSelections();if(ge.length<this._snippets.length)return!1;for(var we=new Map,Re=function(se){var oe=se.computePossibleSelections();if(we.size===0&&oe.forEach(function(be,De){be.sort(I.a.compareRangesUsingStarts);for(var Se=0,Ve=ge;Se<Ve.length;Se++){var Qe=Ve[Se];if(be[0].containsRange(Qe)){we.set(De,[]);break}}}),we.size===0)return{value:!1};we.forEach(function(be,De){be.push.apply(be,oe.get(De))})},Ee=0,ve=this._snippets;Ee<ve.length;Ee++){var Q=ve[Ee],C=Re(Q);if(typeof C=="object")return C.value}return ge.sort(I.a.compareRangesUsingStarts),we.forEach(function(F,se){if(F.length!==ge.length){we.delete(se);return}F.sort(I.a.compareRangesUsingStarts);for(var oe=0;oe<F.length;oe++)if(!F[oe].containsRange(ge[oe])){we.delete(se);return}}),we.size>0},me}(),q=function(){return q=Object.assign||function(me){for(var ge,we=1,Re=arguments.length;we<Re;we++){ge=arguments[we];for(var Ee in ge)Object.prototype.hasOwnProperty.call(ge,Ee)&&(me[Ee]=ge[Ee])}return me},q.apply(this,arguments)},ue=function(me,ge,we,Re){var Ee=arguments.length,ve=Ee<3?ge:Re===null?Re=Object.getOwnPropertyDescriptor(ge,we):Re,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(me,ge,we,Re);else for(var C=me.length-1;C>=0;C--)(Q=me[C])&&(ve=(Ee<3?Q(ve):Ee>3?Q(ge,we,ve):Q(ge,we))||ve);return Ee>3&&ve&&Object.defineProperty(ge,we,ve),ve},X=function(me,ge){return function(we,Re){ge(we,Re,me)}},he={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},je=function(){function me(ge,we,Re){this._editor=ge,this._logService=we,this._snippetListener=new T.b,this._modelVersionId=-1,this._inSnippet=me.InSnippetMode.bindTo(Re),this._hasNextTabstop=me.HasNextTabstop.bindTo(Re),this._hasPrevTabstop=me.HasPrevTabstop.bindTo(Re)}return me.get=function(ge){return ge.getContribution(me.ID)},me.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(T.f)(this._session),this._snippetListener.dispose()},me.prototype.insert=function(ge,we){try{this._doInsert(ge,typeof we=="undefined"?he:q(q({},he),we))}catch(Re){this.cancel(),this._logService.error(Re),this._logService.error("snippet_error"),this._logService.error("insert_template=",ge),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},me.prototype._doInsert=function(ge,we){var Re=this;if(!this._editor.hasModel())return;this._snippetListener.clear(),we.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(ge,we):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new ae(this._editor,ge,we),this._session.insert()),we.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()}))},me.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()},me.prototype._handleChoice=function(){var ge=this;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}var we=this._session.choice;if(!we){this._currentChoice=void 0;return}if(this._currentChoice!==we){this._currentChoice=we,this._editor.setSelections(this._editor.getSelections().map(function(Ee){return U.a.fromPositions(Ee.getStartPosition())}));var Re=we.options[0];Object(O.f)(this._editor,we.options.map(function(Ee,ve){return{kind:13,label:Ee.value,insertText:Ee.value,sortText:Object(re.J)("a",ve+1),range:I.a.fromPositions(ge._editor.getPosition(),ge._editor.getPosition().delta(0,Re.value.length))}}))}},me.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},me.prototype.cancel=function(ge){ge===void 0&&(ge=!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,ge&&this._editor.setSelections([this._editor.getSelection()])},me.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},me.prototype.next=function(){this._session&&this._session.next(),this._updateState()},me.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},me.ID="snippetController2",me.InSnippetMode=new H.d("inSnippetMode",!1),me.HasNextTabstop=new H.d("hasNextTabstop",!1),me.HasPrevTabstop=new H.d("hasPrevTabstop",!1),me=ue([X(1,x.a),X(2,H.c)],me),me}();Object(J.h)(je.ID,je);var Xe=J.c.bindToContribution(je.get);Object(J.g)(new Xe({id:"jumpToNextSnippetPlaceholder",precondition:H.a.and(je.InSnippetMode,je.HasNextTabstop),handler:function(ge){return ge.next()},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:2}})),Object(J.g)(new Xe({id:"jumpToPrevSnippetPlaceholder",precondition:H.a.and(je.InSnippetMode,je.HasPrevTabstop),handler:function(ge){return ge.prev()},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:1024|2}})),Object(J.g)(new Xe({id:"leaveSnippet",precondition:je.InSnippetMode,handler:function(ge){return ge.cancel(!0)},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:9,secondary:[1024|9]}})),Object(J.g)(new Xe({id:"acceptSnippet",precondition:je.InSnippetMode,handler:function(ge){return ge.finish()}}))},tYmi:function(Lt,j,e){"use strict";e.d(j,"b",function(){return J}),e.d(j,"a",function(){return U});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 I=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(O){this._preferredWebSchema=O},z.prototype.rewrite=function(O){if(this._delegate)return this._delegate(O);var H=O.authority,x=this._hosts[H];x&&x.indexOf(":")!==-1&&(x="["+x+"]");var u=this._ports[H],y=this._connectionTokens[H],_="path="+encodeURIComponent(O.path);return typeof y=="string"&&(_+="&tkn="+encodeURIComponent(y)),T.a.from({scheme:re.g?this._preferredWebSchema:J.vscodeRemoteResource,authority:x+":"+u,path:"/vscode-remote-resource",query:_})},z}(),U=new I},twdY:function(Lt,j,e){"use strict";e.d(j,"r",function(){return f}),e.d(j,"A",function(){return v}),e.d(j,"F",function(){return w}),e.d(j,"E",function(){return p}),e.d(j,"y",function(){return c}),e.d(j,"h",function(){return s}),e.d(j,"G",function(){return l}),e.d(j,"z",function(){return d}),e.d(j,"n",function(){return m}),e.d(j,"D",function(){return L}),e.d(j,"u",function(){return A}),e.d(j,"v",function(){return k}),e.d(j,"d",function(){return R}),e.d(j,"x",function(){return $}),e.d(j,"p",function(){return ie}),e.d(j,"m",function(){return W}),e.d(j,"i",function(){return B}),e.d(j,"f",function(){return le}),e.d(j,"e",function(){return Ce}),e.d(j,"q",function(){return Me}),e.d(j,"C",function(){return Te}),e.d(j,"b",function(){return Fe}),e.d(j,"a",function(){return Ue}),e.d(j,"g",function(){return Pe}),e.d(j,"j",function(){return ne}),e.d(j,"t",function(){return ee}),e.d(j,"s",function(){return ae}),e.d(j,"c",function(){return q}),e.d(j,"w",function(){return ue}),e.d(j,"o",function(){return X}),e.d(j,"l",function(){return he}),e.d(j,"k",function(){return je}),e.d(j,"B",function(){return Xe});var T=e("746U"),re=e("bY76"),J=e("aokT"),I=e("MI8n"),U=e("pmY6"),z=e("l2gE");function O(me,ge,we,Re){if(Array.isArray(me)){for(var Ee=0,ve=0,Q=me;ve<Q.length;ve++){var C=Q[ve],F=O(C,ge,we,Re);if(F===10)return F;F>Ee&&(Ee=F)}return Ee}else{if(typeof me=="string")return Re?me==="*"?5:me===we?10:0:0;if(me){var se=me.language,oe=me.pattern,be=me.scheme,De=me.hasAccessToAllModels;if(!Re&&!De)return 0;var Ee=0;if(be)if(be===ge.scheme)Ee=10;else if(be==="*")Ee=5;else return 0;if(se)if(se===we)Ee=10;else if(se==="*")Ee=Math.max(Ee,5);else return 0;if(oe)if(oe===ge.fsPath||Object(z.a)(oe,ge.fsPath))Ee=10;else return 0;return Ee}else return 0}}var H=e("G2kB");function x(me){return typeof me=="string"?!1:Array.isArray(me)?me.every(x):!!me.exclusive}var u=function(){function me(){this._clock=0,this._entries=[],this._onDidChange=new I.a}return Object.defineProperty(me.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),me.prototype.register=function(ge,we){var Re=this,Ee={selector:ge,provider:we,_score:-1,_time:this._clock++};return this._entries.push(Ee),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(U.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)}})},me.prototype.has=function(ge){return this.all(ge).length>0},me.prototype.all=function(ge){if(!ge)return[];this._updateScores(ge);for(var we=[],Re=0,Ee=this._entries;Re<Ee.length;Re++){var ve=Ee[Re];ve._score>0&&we.push(ve.provider)}return we},me.prototype.ordered=function(ge){var we=[];return this._orderedForEach(ge,function(Re){return we.push(Re.provider)}),we},me.prototype.orderedGroups=function(ge){var we=[],Re,Ee;return this._orderedForEach(ge,function(ve){Re&&Ee===ve._score?Re.push(ve.provider):(Ee=ve._score,Re=[ve.provider],we.push(Re))}),we},me.prototype._orderedForEach=function(ge,we){if(!ge)return;this._updateScores(ge);for(var Re=0,Ee=this._entries;Re<Ee.length;Re++){var ve=Ee[Re];ve._score>0&&we(ve)}},me.prototype._updateScores=function(ge){var we={uri:ge.uri.toString(),language:ge.getLanguageIdentifier().language};if(this._lastCandidate&&this._lastCandidate.language===we.language&&this._lastCandidate.uri===we.uri)return;this._lastCandidate=we;for(var Re=0,Ee=this._entries;Re<Ee.length;Re++){var ve=Ee[Re];if(ve._score=O(ve.selector,ge.uri,ge.getLanguageIdentifier().language,Object(H.b)(ge)),x(ve.selector)&&ve._score>0){for(var Q=0,C=this._entries;Q<C.length;Q++){var F=C[Q];F._score=0}ve._score=1e3;break}}this._entries.sort(me._compareByScoreAndTime)},me._compareByScoreAndTime=function(ge,we){return ge._score<we._score?1:ge._score>we._score?-1:ge._time<we._time?1:ge._time>we._time?-1:0},me}(),y=e("QDVR"),_=function(){function me(){this._map=new Map,this._promises=new Map,this._onDidChange=new I.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}return me.prototype.fire=function(ge){this._onDidChange.fire({changedLanguages:ge,changedColorMap:!1})},me.prototype.register=function(ge,we){var Re=this;return this._map.set(ge,we),this.fire([ge]),Object(U.h)(function(){if(Re._map.get(ge)!==we)return;Re._map.delete(ge),Re.fire([ge])})},me.prototype.registerPromise=function(ge,we){var Re=this,Ee=null,ve=!1;return this._promises.set(ge,we.then(function(Q){if(Re._promises.delete(ge),ve||!Q)return;Ee=Re.register(ge,Q)})),Object(U.h)(function(){ve=!0,Ee&&Ee.dispose()})},me.prototype.getPromise=function(ge){var we=this,Re=this.get(ge);if(Re)return Promise.resolve(Re);var Ee=this._promises.get(ge);return Ee?Ee.then(function(ve){return we.get(ge)}):null},me.prototype.get=function(ge){return Object(T.o)(this._map.get(ge))},me.prototype.setColorMap=function(ge){this._colorMap=ge,this._onDidChange.fire({changedLanguages:Object(y.d)(this._map),changedColorMap:!0})},me.prototype.getColorMap=function(){return this._colorMap},me.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},me}(),f=function(){function me(ge,we){this.language=ge,this.id=we}return me}(),v=function(){function me(){}return me.getLanguageId=function(ge){return(ge&255)>>>0},me.getTokenType=function(ge){return(ge&1792)>>>8},me.getFontStyle=function(ge){return(ge&14336)>>>11},me.getForeground=function(ge){return(ge&8372224)>>>14},me.getBackground=function(ge){return(ge&4286578688)>>>23},me.getClassNameFromMetadata=function(ge){var we=this.getForeground(ge),Re="mtk"+we,Ee=this.getFontStyle(ge);return Ee&1&&(Re+=" mtki"),Ee&2&&(Re+=" mtkb"),Ee&4&&(Re+=" mtku"),Re},me.getInlineStyleFromMetadata=function(ge,we){var Re=this.getForeground(ge),Ee=this.getFontStyle(ge),ve="color: "+we[Re]+";";return Ee&1&&(ve+="font-style: italic;"),Ee&2&&(ve+="font-weight: bold;"),Ee&4&&(ve+="text-decoration: underline;"),ve},me}(),w=function(){var me=Object.create(null);return me[0]="method",me[1]="function",me[2]="constructor",me[3]="field",me[4]="variable",me[5]="class",me[6]="struct",me[7]="interface",me[8]="module",me[9]="property",me[10]="event",me[11]="operator",me[12]="unit",me[13]="value",me[14]="constant",me[15]="enum",me[16]="enum-member",me[17]="keyword",me[25]="snippet",me[18]="text",me[19]="color",me[20]="file",me[21]="reference",me[22]="customcolor",me[23]="folder",me[24]="type-parameter",function(ge){return me[ge]||"property"}}(),p=function(){var me=Object.create(null);return me.method=0,me.function=1,me.constructor=2,me.field=3,me.variable=4,me.class=5,me.struct=6,me.interface=7,me.module=8,me.property=9,me.event=10,me.operator=11,me.unit=12,me.value=13,me.constant=14,me.enum=15,me["enum-member"]=16,me.enumMember=16,me.keyword=17,me.snippet=25,me.text=18,me.color=19,me.file=20,me.reference=21,me.customcolor=22,me.folder=23,me["type-parameter"]=24,me.typeParameter=24,function(ge,we){var Re=me[ge];return typeof Re=="undefined"&&!we&&(Re=9),Re}}(),c;(function(me){me[me.Invoke=1]="Invoke",me[me.TriggerCharacter=2]="TriggerCharacter",me[me.ContentChange=3]="ContentChange"})(c||(c={}));var s;(function(me){me[me.Text=0]="Text",me[me.Read=1]="Read",me[me.Write=2]="Write"})(s||(s={}));function l(me){return me&&re.a.isUri(me.uri)&&J.a.isIRange(me.range)&&(J.a.isIRange(me.originSelectionRange)||J.a.isIRange(me.targetSelectionRange))}var d;(function(me){var ge=new Map;ge.set("file",0),ge.set("module",1),ge.set("namespace",2),ge.set("package",3),ge.set("class",4),ge.set("method",5),ge.set("property",6),ge.set("field",7),ge.set("constructor",8),ge.set("enum",9),ge.set("interface",10),ge.set("function",11),ge.set("variable",12),ge.set("constant",13),ge.set("string",14),ge.set("number",15),ge.set("boolean",16),ge.set("array",17),ge.set("object",18),ge.set("key",19),ge.set("null",20),ge.set("enum-member",21),ge.set("struct",22),ge.set("event",23),ge.set("operator",24),ge.set("type-parameter",25);var we=new Map;we.set(0,"file"),we.set(1,"module"),we.set(2,"namespace"),we.set(3,"package"),we.set(4,"class"),we.set(5,"method"),we.set(6,"property"),we.set(7,"field"),we.set(8,"constructor"),we.set(9,"enum"),we.set(10,"interface"),we.set(11,"function"),we.set(12,"variable"),we.set(13,"constant"),we.set(14,"string"),we.set(15,"number"),we.set(16,"boolean"),we.set(17,"array"),we.set(18,"object"),we.set(19,"key"),we.set(20,"null"),we.set(21,"enum-member"),we.set(22,"struct"),we.set(23,"event"),we.set(24,"operator"),we.set(25,"type-parameter");function Re(Q){return ge.get(Q)}me.fromString=Re;function Ee(Q){return we.get(Q)}me.toString=Ee;function ve(Q,C){return"codicon "+(C?"inline":"block")+" codicon-symbol-"+(we.get(Q)||"property")}me.toCssClassName=ve})(d||(d={}));var m=function(){function me(ge){this.value=ge}return me.Comment=new me("comment"),me.Imports=new me("imports"),me.Region=new me("region"),me}(),E;(function(me){function ge(we){return Object(T.i)(we)&&(Boolean(we.newUri)||Boolean(we.oldUri))}me.is=ge})(E||(E={}));var L;(function(me){function ge(we){return Object(T.i)(we)&&re.a.isUri(we.resource)&&Object(T.i)(we.edit)}me.is=ge})(L||(L={}));var A=new u,k=new u,R=new u,$=new u,ie=new u,W=new u,B=new u,le=new u,Ce=new u,Me=new u,Te=new u,Fe=new u,Ue=new u,Pe=new u,ne=new u,ee=new u,ae=new u,q=new u,ue=new u,X=new u,he=new u,je=new u,Xe=new _},uACm:function(Lt,j,e){"use strict";e.d(j,"d",function(){return z}),e.d(j,"b",function(){return H}),e.d(j,"a",function(){return x}),e.d(j,"c",function(){return w});var T=function(){var p=function(s,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var E in m)m.hasOwnProperty(E)&&(d[E]=m[E])},p(s,l)};return function(c,s){p(c,s);function l(){this.constructor=c}c.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),re=function(){for(var p=0,c=0,s=arguments.length;c<s;c++)p+=arguments[c].length;for(var l=Array(p),d=0,c=0;c<s;c++)for(var m=arguments[c],E=0,L=m.length;E<L;E++,d++)l[d]=m[E];return l},J,I=function(){function p(){this.value="",this.pos=0}return p.isDigitCharacter=function(c){return c>=48&&c<=57},p.isVariableCharacter=function(c){return c===95||c>=97&&c<=122||c>=65&&c<=90},p.prototype.text=function(c){this.value=c,this.pos=0},p.prototype.tokenText=function(c){return this.value.substr(c.pos,c.len)},p.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var c=this.pos,s=0,l=this.value.charCodeAt(c),d;if(d=p._table[l],typeof d=="number")return this.pos+=1,{type:d,pos:c,len:1};if(p.isDigitCharacter(l)){d=8;do s+=1,l=this.value.charCodeAt(c+s);while(p.isDigitCharacter(l));return this.pos+=s,{type:d,pos:c,len:s}}if(p.isVariableCharacter(l)){d=9;do l=this.value.charCodeAt(c+ ++s);while(p.isVariableCharacter(l)||p.isDigitCharacter(l));return this.pos+=s,{type:d,pos:c,len:s}}d=10;do s+=1,l=this.value.charCodeAt(c+s);while(!isNaN(l)&&typeof p._table[l]=="undefined"&&!p.isDigitCharacter(l)&&!p.isVariableCharacter(l));return this.pos+=s,{type:d,pos:c,len:s}},p._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),p}(),U=function(){function p(){this._children=[]}return p.prototype.appendChild=function(c){return c instanceof z&&this._children[this._children.length-1]instanceof z?this._children[this._children.length-1].value+=c.value:(c.parent=this,this._children.push(c)),this},p.prototype.replace=function(c,s){var l=c.parent,d=l.children.indexOf(c),m=l.children.slice(0);m.splice.apply(m,re([d,1],s)),l._children=m,function E(L,A){for(var k=0,R=L;k<R.length;k++){var $=R[k];$.parent=A,E($.children,$)}}(s,l)},Object.defineProperty(p.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"snippet",{get:function(){for(var s=this;;){if(!s)return;if(s instanceof v)return s;s=s.parent}},enumerable:!0,configurable:!0}),p.prototype.toString=function(){return this.children.reduce(function(c,s){return c+s.toString()},"")},p.prototype.len=function(){return 0},p}(),z=function(p){T(c,p);function c(s){var l=p.call(this)||this;return l.value=s,l}return c.prototype.toString=function(){return this.value},c.prototype.len=function(){return this.value.length},c.prototype.clone=function(){return new c(this.value)},c}(U),O=function(p){T(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return c}(U),H=function(p){T(c,p);function c(s){var l=p.call(this)||this;return l.index=s,l}return c.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(c.prototype,"isFinalTabstop",{get:function(){return this.index===0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"choice",{get:function(){return this._children.length===1&&this._children[0]instanceof x?this._children[0]:void 0},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var s=new c(this.index);return this.transform&&(s.transform=this.transform.clone()),s._children=this.children.map(function(l){return l.clone()}),s},c}(O),x=function(p){T(c,p);function c(){var s=p!==null&&p.apply(this,arguments)||this;return s.options=[],s}return c.prototype.appendChild=function(s){return s instanceof z&&(s.parent=this,this.options.push(s)),this},c.prototype.toString=function(){return this.options[0].value},c.prototype.len=function(){return this.options[0].len()},c.prototype.clone=function(){var s=new c;return this.options.forEach(s.appendChild,s),s},c}(U),u=function(p){T(c,p);function c(){var s=p!==null&&p.apply(this,arguments)||this;return s.regexp=new RegExp(""),s}return c.prototype.resolve=function(s){var l=this,d=!1,m=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)})&&(m=this._replace([])),m},c.prototype._replace=function(s){for(var l="",d=0,m=this._children;d<m.length;d++){var E=m[d];if(E instanceof y){var L=s[E.index]||"";L=E.resolve(L),l+=L}else l+=E.toString()}return l},c.prototype.toString=function(){return""},c.prototype.clone=function(){var s=new c;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},c}(U),y=function(p){T(c,p);function c(s,l,d,m){var E=p.call(this)||this;return E.index=s,E.shorthandName=l,E.ifValue=d,E.elseValue=m,E}return c.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||""},c.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},c.prototype.clone=function(){var s=new c(this.index,this.shorthandName,this.ifValue,this.elseValue);return s},c}(U),_=function(p){T(c,p);function c(s){var l=p.call(this)||this;return l.name=s,l}return c.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},c.prototype.clone=function(){var s=new c(this.name);return this.transform&&(s.transform=this.transform.clone()),s._children=this.children.map(function(l){return l.clone()}),s},c}(O);function f(p,c){for(var s=re(p);s.length>0;){var l=s.shift(),d=c(l);if(!d)break;s.unshift.apply(s,l.children)}}var v=function(p){T(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(c.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var l=[],d;this.walk(function(m){return m instanceof H&&(l.push(m),d=!d||d.index<m.index?m:d),!0}),this._placeholders={all:l,last:d}}return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"placeholders",{get:function(){var l=this.placeholderInfo.all;return l},enumerable:!0,configurable:!0}),c.prototype.offset=function(s){var l=0,d=!1;return this.walk(function(m){return m===s?(d=!0,!1):(l+=m.len(),!0)}),d?l:-1},c.prototype.fullLen=function(s){var l=0;return f([s],function(d){return l+=d.len(),!0}),l},c.prototype.enclosingPlaceholders=function(s){for(var l=[],d=s.parent;d;)d instanceof H&&l.push(d),d=d.parent;return l},c.prototype.resolveVariables=function(s){var l=this;return this.walk(function(d){return d instanceof _&&(d.resolve(s)&&(l._placeholders=void 0)),!0}),this},c.prototype.appendChild=function(s){return this._placeholders=void 0,p.prototype.appendChild.call(this,s)},c.prototype.replace=function(s,l){return this._placeholders=void 0,p.prototype.replace.call(this,s,l)},c.prototype.clone=function(){var s=new c;return this._children=this.children.map(function(l){return l.clone()}),s},c.prototype.walk=function(s){f(this.children,s)},c}(U),w=function(){function p(){this._scanner=new I,this._token={type:14,pos:0,len:0}}return p.escape=function(c){return c.replace(/\$|}|\\/g,"\\$&")},p.prototype.parse=function(c,s,l){this._scanner.text(c),this._token=this._scanner.next();for(var d=new v;this._parse(d););var m=new Map,E=[],L=0;d.walk(function(Ce){return Ce instanceof H&&(L+=1,Ce.isFinalTabstop?m.set(0,void 0):!m.has(Ce.index)&&Ce.children.length>0?m.set(Ce.index,Ce.children):E.push(Ce)),!0});for(var A=0,k=E;A<k.length;A++){var R=k[A],$=m.get(R.index);if($){var ie=new H(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=L>0&&s),!m.has(0)&&l&&d.appendChild(new H(0)),d},p.prototype._accept=function(c,s){if(c===void 0||this._token.type===c){var l=s?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),l}return!1},p.prototype._backTo=function(c){return this._scanner.pos=c.pos+c.len,this._token=c,!1},p.prototype._until=function(c){for(var s=this._token;this._token.type!==c;){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},p.prototype._parse=function(c){return this._parseEscaped(c)||this._parseTabstopOrVariableName(c)||this._parseComplexPlaceholder(c)||this._parseComplexVariable(c)||this._parseAnything(c)},p.prototype._parseEscaped=function(c){var s;return(s=this._accept(5,!0))?(s=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||s,c.appendChild(new z(s)),!0):!1},p.prototype._parseTabstopOrVariableName=function(c){var s,l=this._token,d=this._accept(0)&&(s=this._accept(9,!0)||this._accept(8,!0));return d?(c.appendChild(/^\d+$/.test(s)?new H(Number(s)):new _(s)),!0):this._backTo(l)},p.prototype._parseComplexPlaceholder=function(c){var s,l=this._token,d=this._accept(0)&&this._accept(3)&&(s=this._accept(8,!0));if(!d)return this._backTo(l);var m=new H(Number(s));if(this._accept(1))for(;;){if(this._accept(4))return c.appendChild(m),!0;if(this._parse(m))continue;return c.appendChild(new z("${"+s+":")),m.children.forEach(c.appendChild,c),!0}else if(m.index>0&&this._accept(7))for(var E=new x;;){if(this._parseChoiceElement(E)){if(this._accept(2))continue;if(this._accept(7)&&(m.appendChild(E),this._accept(4)))return c.appendChild(m),!0}return this._backTo(l),!1}else return this._accept(6)?this._parseTransform(m)?(c.appendChild(m),!0):(this._backTo(l),!1):this._accept(4)?(c.appendChild(m),!0):this._backTo(l)},p.prototype._parseChoiceElement=function(c){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):(c.appendChild(new z(l.join(""))),!0)},p.prototype._parseComplexVariable=function(c){var s,l=this._token,d=this._accept(0)&&this._accept(3)&&(s=this._accept(9,!0));if(!d)return this._backTo(l);var m=new _(s);if(this._accept(1))for(;;){if(this._accept(4))return c.appendChild(m),!0;if(this._parse(m))continue;return c.appendChild(new z("${"+s+":")),m.children.forEach(c.appendChild,c),!0}else return this._accept(6)?this._parseTransform(m)?(c.appendChild(m),!0):(this._backTo(l),!1):this._accept(4)?(c.appendChild(m),!0):this._backTo(l)},p.prototype._parseTransform=function(c){for(var s=new u,l="",d="";!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(6,!0)||m,l+=m;continue}if(this._token.type!==14){l+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(5,!0)||this._accept(6,!0)||m,s.appendChild(new z(m));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 c.transform=s,!0},p.prototype._parseFormatString=function(c){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 c.appendChild(new y(Number(d))),!0;if(!this._accept(1))return this._backTo(s),!1}else return c.appendChild(new y(Number(d))),!0;else return this._backTo(s),!1;if(this._accept(6)){var m=this._accept(9,!0);return!m||!this._accept(4)?(this._backTo(s),!1):(c.appendChild(new y(Number(d),m)),!0)}else if(this._accept(11)){var E=this._until(4);if(E)return c.appendChild(new y(Number(d),void 0,E,void 0)),!0}else if(this._accept(12)){var L=this._until(4);if(L)return c.appendChild(new y(Number(d),void 0,void 0,L)),!0}else if(this._accept(13)){var E=this._until(1);if(E){var L=this._until(4);if(L)return c.appendChild(new y(Number(d),void 0,E,L)),!0}}else{var L=this._until(4);if(L)return c.appendChild(new y(Number(d),void 0,void 0,L)),!0}return this._backTo(s),!1},p.prototype._parseAnything=function(c){return this._token.type!==14?(c.appendChild(new z(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1},p}()},uAX5:function(Lt,j,e){},uDWl:function(Lt,j,e){"use strict";e.d(j,"a",function(){return y});var T=e("D3Dy"),re=e("/kV6"),J=e("MNsG"),I=new Array(230),U=new Array(112);(function(){for(var _=0;_<U.length;_++)U[_]=-1;function f(v,w){I[v]=w,U[w]=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(_){if(_.charCode){var f=String.fromCharCode(_.charCode).toUpperCase();return re.b.fromString(f)}return I[_.keyCode]||0}var O=J.e?256:2048,H=512,x=1024,u=J.e?2048:256,y=function(){function _(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 _.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},_.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},_.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},_.prototype.equals=function(f){return this._asKeybinding===f},_.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|=O),this.altKey&&(v|=H),this.shiftKey&&(v|=x),this.metaKey&&(v|=u),v|=f,v},_.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)},_}()},uWgD:function(Lt,j,e){},ufhN:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return e.e(194).then(e.bind(null,"rMIR"))}})},ujyM:function(Lt,j,e){},undH:function(Lt,j,e){},"v+CO":function(Lt,j,e){"use strict";e.r(j),e.d(j,"EditorActionCommandEntry",function(){return _}),e.d(j,"QuickCommandAction",function(){return f});var T=e("N0LK"),re=e("D3Dy"),J=e("/cxE"),I=e("fpMC"),U=e("Rpxm"),z=e("sswD"),O=e("wQH0"),H=e("rzPn"),x=e("bexQ"),u=e("A9l+"),y=function(){var v=function(p,c){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(p,c)};return function(w,p){v(w,p);function c(){this.constructor=w}w.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}(),_=function(v){y(w,v);function w(p,c,s,l,d){var m=v.call(this)||this;return m.key=p,m.keyAriaLabel=c,m.setHighlights(s),m.action=l,m.editor=d,m}return w.prototype.getLabel=function(){return this.action.label},w.prototype.getAriaLabel=function(){return this.keyAriaLabel?T.r(u.d.ariaLabelEntryWithKey,this.getLabel(),this.keyAriaLabel):T.r(u.d.ariaLabelEntry,this.getLabel())},w.prototype.getGroupLabel=function(){return this.key},w.prototype.run=function(p,c){var s=this;return p===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},w}(U.b),f=function(v){y(w,v);function w(){return v.call(this,u.d.quickCommandActionInput,{id:"editor.action.quickCommand",label:u.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:O.a.focus,primary:re.i?512|59:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})||this}return w.prototype.run=function(p,c){var s=this,l=p.get(x.a);this._show(this.getController(c),{getModel:function(m){return new U.c(s._editorActionsToEntries(l,c,m))},getAutoFocus:function(m){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:m}}})},w.prototype._sort=function(p,c){var s=(p.getLabel()||"").toLowerCase(),l=(c.getLabel()||"").toLowerCase();return s.localeCompare(l)},w.prototype._editorActionsToEntries=function(p,c,s){for(var l=c.getSupportedActions(),d=[],m=0,E=l;m<E.length;m++){var L=E[m],A=p.lookupKeybinding(L.id);if(L.label){var k=Object(I.f)(s,L.label);k&&d.push(new _(A&&A.getLabel()||"",A&&A.getAriaLabel()||"",k,L,c))}}return d=d.sort(this._sort),d},w}(H.a);Object(z.f)(f)},vATl:function(Lt,j,e){"use strict";e.d(j,"a",function(){return v}),e.d(j,"b",function(){return w}),e.d(j,"d",function(){return p}),e.d(j,"c",function(){return c});var T=e("N0LK"),re=e("JQT/"),J=e("pmY6"),I=e("sswD"),U=e("T8No"),z=e("24hK"),O=e("Cg/j"),H=e("9fML"),x=function(){var s=function(d,m){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var A in L)L.hasOwnProperty(A)&&(E[A]=L[A])},s(d,m)};return function(l,d){s(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),u=Object(O.c)("IEditorCancelService"),y=new U.d("cancellableOperation",!1);Object(H.b)(u,function(){function s(){this._tokens=new WeakMap}return s.prototype.add=function(l,d){var m=this._tokens.get(l);m||(m=l.invokeWithinContext(function(L){var A=y.bindTo(L.get(U.c)),k=new z.a;return{key:A,tokens:k}}),this._tokens.set(l,m));var E;return m.key.set(!0),E=m.tokens.push(d),function(){E&&(E(),m.key.set(!m.tokens.isEmpty()),E=void 0)}},s.prototype.cancel=function(l){var d=this._tokens.get(l);if(!d)return;var m=d.tokens.pop();m&&(m.cancel(),d.key.set(!d.tokens.isEmpty()))},s}(),!0);var _=function(s){x(l,s);function l(d,m){var E=s.call(this,m)||this;return E.editor=d,E._unregister=d.invokeWithinContext(function(L){return L.get(u).add(d,E)}),E}return l.prototype.dispose=function(){this._unregister(),s.prototype.dispose.call(this)},l}(re.b);Object(I.g)(new(function(s){x(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,m){d.get(u).cancel(m)},l}(I.c)));var f=function(){var s=function(d,m){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var A in L)L.hasOwnProperty(A)&&(E[A]=L[A])},s(d,m)};return function(l,d){s(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),v=function(){function s(l,d){if(this.flags=d,(this.flags&1)!==0){var m=l.getModel();this.modelVersionId=m?T.r("{0}#{1}",m.uri.toString(),m.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}(),w=function(s){f(l,s);function l(d,m,E){var L=s.call(this,d,E)||this;return L.editor=d,L._listener=new J.b,m&4&&L._listener.add(d.onDidChangeCursorPosition(function(A){return L.cancel()})),m&2&&L._listener.add(d.onDidChangeCursorSelection(function(A){return L.cancel()})),m&8&&L._listener.add(d.onDidScrollChange(function(A){return L.cancel()})),m&1&&(L._listener.add(d.onDidChangeModel(function(A){return L.cancel()})),L._listener.add(d.onDidChangeModelContent(function(A){return L.cancel()}))),L}return l.prototype.dispose=function(){this._listener.dispose(),s.prototype.dispose.call(this)},l}(_),p=function(s){f(l,s);function l(d,m){var E=s.call(this,m)||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),c=function(){function s(l,d){this._visiblePosition=l,this._visiblePositionScrollDelta=d}return s.capture=function(l){var d=null,m=0;if(l.getScrollTop()!==0){var E=l.getVisibleRanges();if(E.length>0){d=E[0].getStartPosition();var L=l.getTopForPosition(d.lineNumber,d.column);m=l.getScrollTop()-L}}return new s(d,m)},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(Lt,j,e){},vRMv:function(Lt,j,e){"use strict";e.d(j,"b",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"c",function(){return y}),e.d(j,"e",function(){return _}),e.d(j,"d",function(){return f});var T=e("6OMU"),re=e("JQT/"),J=e("/cxE"),I=e("sswD"),U=e("twdY"),z=function(v,w,p,c){function s(l){return l instanceof p?l:new p(function(d){d(l)})}return new(p||(p=Promise))(function(l,d){function m(A){try{L(c.next(A))}catch(k){d(k)}}function E(A){try{L(c.throw(A))}catch(k){d(k)}}function L(A){A.done?l(A.value):s(A.value).then(m,E)}L((c=c.apply(v,w||[])).next())})},O=function(v,w){var p={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},c,s,l,d;return d={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function m(L){return function(A){return E([L,A])}}function E(L){if(c)throw new TypeError("Generator is already executing.");for(;p;)try{if(c=1,s&&(l=L[0]&2?s.return:L[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,L[1])).done)return l;(s=0,l)&&(L=[L[0]&2,l.value]);switch(L[0]){case 0:case 1:l=L;break;case 4:return p.label++,{value:L[1],done:!1};case 5:p.label++,s=L[1],L=[0];continue;case 7:L=p.ops.pop(),p.trys.pop();continue;default:if(!(l=p.trys,l=l.length>0&&l[l.length-1])&&(L[0]===6||L[0]===2)){p=0;continue}if(L[0]===3&&(!l||L[1]>l[0]&&L[1]<l[3])){p.label=L[1];break}if(L[0]===6&&p.label<l[1]){p.label=l[1],l=L;break}if(l&&p.label<l[2]){p.label=l[2],p.ops.push(L);break}l[2]&&p.ops.pop(),p.trys.pop();continue}L=w.call(v,p)}catch(A){L=[6,A],s=0}finally{c=l=0}if(L[0]&5)throw L[1];return{value:L[0]?L[1]:void 0,done:!0}}};function H(v,w,p,c){var s=p.ordered(v),l=s.map(function(d){return Promise.resolve(c(d,v,w)).then(void 0,function(m){Object(J.f)(m);return})});return Promise.all(l).then(T.m).then(T.d)}function x(v,w,p){return H(v,w,U.f,function(c,s,l){return c.provideDefinition(s,l,p)})}function u(v,w,p){return H(v,w,U.e,function(c,s,l){return c.provideDeclaration(s,l,p)})}function y(v,w,p){return H(v,w,U.q,function(c,s,l){return c.provideImplementation(s,l,p)})}function _(v,w,p){return H(v,w,U.C,function(c,s,l){return c.provideTypeDefinition(s,l,p)})}function f(v,w,p,c){var s=this;return H(v,w,U.u,function(l,d,m){return z(s,void 0,void 0,function(){var E,L;return O(this,function(A){switch(A.label){case 0:return[4,l.provideReferences(d,m,{includeDeclaration:!0},c)];case 1:return E=A.sent(),!p||!E||E.length!==2?[2,E]:[4,l.provideReferences(d,m,{includeDeclaration:!1},c)];case 2:return L=A.sent(),L&&L.length===1?[2,L]:[2,E]}})})})}Object(I.k)("_executeDefinitionProvider",function(v,w){return x(v,w,re.a.None)}),Object(I.k)("_executeDeclarationProvider",function(v,w){return u(v,w,re.a.None)}),Object(I.k)("_executeImplementationProvider",function(v,w){return y(v,w,re.a.None)}),Object(I.k)("_executeTypeDefinitionProvider",function(v,w){return _(v,w,re.a.None)}),Object(I.k)("_executeReferenceProvider",function(v,w){return f(v,w,!1,re.a.None)})},vVA1:function(Lt,j,e){"use strict";e.r(j);var T=e("sswD"),re=e("scqD"),J=e("A9l+"),I=function(){var z=function(H,x){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,y){u.__proto__=y}||function(u,y){for(var _ in y)y.hasOwnProperty(_)&&(u[_]=y[_])},z(H,x)};return function(O,H){z(O,H);function x(){this.constructor=O}O.prototype=H===null?Object.create(H):(x.prototype=H.prototype,new x)}}(),U=function(z){I(O,z);function O(){var H=z.call(this,{id:"editor.action.toggleHighContrast",label:J.h.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0})||this;return H._originalThemeName=null,H}return O.prototype.run=function(H,x){var u=H.get(re.a);this._originalThemeName?(u.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=u.getTheme().themeName,u.setTheme("hc-black"))},O}(T.b);Object(T.f)(U)},vl9R:function(Lt,j,e){"use strict";e.d(j,"d",function(){return re}),e.d(j,"b",function(){return J}),e.d(j,"c",function(){return I}),e.d(j,"a",function(){return U});var T=Object.prototype.hasOwnProperty;function re(z){var O=[];for(var H in z)T.call(z,H)&&O.push(z[H]);return O}function J(z){for(var O in z)if(T.call(z,O))return z[O];return}function I(z,O){var H=function(_){if(T.call(z,_)){var f=O({key:_,value:z[_]},function(){delete z[_]});if(f===!1)return{value:void 0}}};for(var x in z){var u=H(x);if(typeof u=="object")return u.value}}var U=function(){function z(){this.map=new Map}return z.prototype.add=function(O,H){var x=this.map.get(O);x||(x=new Set,this.map.set(O,x)),x.add(H)},z.prototype.delete=function(O,H){var x=this.map.get(O);if(!x)return;x.delete(H),x.size===0&&this.map.delete(O)},z.prototype.forEach=function(O,H){var x=this.map.get(O);if(!x)return;x.forEach(H)},z}()},"w29/":function(Lt,j,e){"use strict";e.r(j);var T=e("5DEy"),re=e.n(T),J=e("3/fG"),I=e("D3Dy"),U=e("MNsG"),z=e("5TxY"),O=e("sswD"),H=e("Vxe3"),x=e("wQH0"),u=function(){var m=function(L,A){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,R){k.__proto__=R}||function(k,R){for(var $ in R)R.hasOwnProperty($)&&(k[$]=R[$])},m(L,A)};return function(E,L){m(E,L);function A(){this.constructor=E}E.prototype=L===null?Object.create(L):(A.prototype=L.prototype,new A)}}(),y="9_cutcopypaste",_=U.f||document.queryCommandSupported("cut"),f=U.f||document.queryCommandSupported("copy"),v=f&&!I.f,w=U.f||!I.d&&document.queryCommandSupported("paste"),p=function(m){u(E,m);function E(L,A){var k=m.call(this,A)||this;return k.browserCommand=L,k}return E.prototype.runCommand=function(L,A){var k=L.get(H.a).getFocusedCodeEditor();if(k&&k.hasTextFocus()){k.trigger("keyboard",this.id,A);return}document.execCommand(this.browserCommand)},E.prototype.run=function(L,A){A.focus(),document.execCommand(this.browserCommand)},E}(O.b),c=function(m){u(E,m);function E(){var L=this,A={kbExpr:x.a.textInputFocus,primary:2048|54,win:{primary:2048|54,secondary:[1024|20]},weight:100};return U.f||(A=void 0),L=m.call(this,"cut",{id:"editor.action.clipboardCutAction",label:J.a("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:x.a.writable,kbOpts:A,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,L}return E.prototype.run=function(L,A){if(!A.hasModel())return;var k=A.getOption(25);if(!k&&A.getSelection().isEmpty())return;m.prototype.run.call(this,L,A)},E}(p),s=function(m){u(E,m);function E(){var L=this,A={kbExpr:x.a.textInputFocus,primary:2048|33,win:{primary:2048|33,secondary:[2048|19]},weight:100};return U.f||(A=void 0),L=m.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:J.a("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:A,contextMenuOpts:{group:y,order:2},menuOpts:{menuId:17,group:"2_ccp",title:J.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this,L}return E.prototype.run=function(L,A){if(!A.hasModel())return;var k=A.getOption(25);if(!k&&A.getSelection().isEmpty())return;m.prototype.run.call(this,L,A)},E}(p),l=function(m){u(E,m);function E(){var L=this,A={kbExpr:x.a.textInputFocus,primary:2048|52,win:{primary:2048|52,secondary:[1024|19]},weight:100};return U.f||(A=void 0),L=m.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:J.a("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:x.a.writable,kbOpts:A,contextMenuOpts:{group:y,order:3},menuOpts:{menuId:17,group:"2_ccp",title:J.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this,L}return E}(p),d=function(m){u(E,m);function E(){return m.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:x.a.textInputFocus,primary:0,weight:100}})||this}return E.prototype.run=function(L,A){if(!A.hasModel())return;var k=A.getOption(25);if(!k&&A.getSelection().isEmpty())return;z.a.forceCopyWithSyntaxHighlighting=!0,m.prototype.run.call(this,L,A),z.a.forceCopyWithSyntaxHighlighting=!1},E}(p);_&&Object(O.f)(c),f&&Object(O.f)(s),w&&Object(O.f)(l),v&&Object(O.f)(d)},w9QG:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return e.e(193).then(e.bind(null,"Czvm"))}})},wQH0:function(Lt,j,e){"use strict";e.d(j,"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(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return e.e(178).then(e.bind(null,"I+Au"))}})},wxcJ:function(Lt,j,e){"use strict";(function(T){e.d(j,"a",function(){return I}),e.d(j,"b",function(){return U}),e.d(j,"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(H){return Object(re.i)(H)}}:T,I=J.cwd,U=J.env,z=J.platform}).call(this,e("Q2Ig"))},"x/UI":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("IWorkspaceEditService")},xONI:function(Lt,j,e){"use strict";e.d(j,"a",function(){return u});var T=e("KgQ1"),re=e.n(T),J=e("EffR"),I=e("7lZ/"),U=e("pmY6"),z=e("nuFA"),O=e("qj0h"),H=function(){var v=function(p,c){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(p,c)};return function(w,p){v(w,p);function c(){this.constructor=w}w.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}(),x=function(){function v(w){this._element=w}return Object.defineProperty(v.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"textContent",{set:function(p){if(this.disposed||p===this._textContent)return;this._textContent=p,this._element.textContent=p},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"className",{set:function(p){if(this.disposed||p===this._className)return;this._className=p,this._element.className=p},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"title",{set:function(p){if(this.disposed||p===this._title)return;this._title=p,this._title?this._element.title=p:this._element.removeAttribute("title")},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"empty",{set:function(p){if(this.disposed||p===this._empty)return;this._empty=p,this._element.style.marginLeft=p?"0":""},enumerable:!0,configurable:!0}),v.prototype.dispose=function(){this.disposed=!0},v}(),u=function(v){H(w,v);function w(p,c){var s=v.call(this)||this;s.domNode=s._register(new x(J.q(p,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 x(J.q(l,J.a("span.monaco-icon-description-container")))),(c==null?void 0:c.supportHighlights)?s.nameNode=new f(d,!!c.supportCodicons):s.nameNode=new y(d),(c==null?void 0:c.supportDescriptionHighlights)?s.descriptionNodeFactory=function(){return new I.a(J.q(s.descriptionContainer.element,J.a("span.label-description")),!!c.supportCodicons)}:s.descriptionNodeFactory=function(){return s._register(new x(J.q(s.descriptionContainer.element,J.a("span.label-description"))))},s}return w.prototype.setLabel=function(p,c,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(p,s),(c||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof I.a?(this.descriptionNode.set(c||"",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=c||"",this.descriptionNode.title=(s==null?void 0:s.descriptionTitle)||"",this.descriptionNode.empty=!c))},w}(U.a),y=function(){function v(w){this.container=w,this.label=void 0,this.singleLabel=void 0}return v.prototype.setLabel=function(w,p){if(this.label===w&&Object(O.e)(this.options,p))return;if(this.label=w,this.options=p,typeof w=="string")this.singleLabel||(this.container.innerHTML="",J.P(this.container,"multiple"),this.singleLabel=J.q(this.container,J.a("a.label-name",{id:p==null?void 0:p.domId}))),this.singleLabel.textContent=w;else{this.container.innerHTML="",J.f(this.container,"multiple"),this.singleLabel=void 0;for(var c=0;c<w.length;c++){var s=w[c],l=(p==null?void 0:p.domId)&&(p==null?void 0:p.domId)+"_"+c;J.q(this.container,J.a("a.label-name",{id:l,"data-icon-label-count":w.length,"data-icon-label-index":c},s)),c<w.length-1&&J.q(this.container,J.a("span.label-separator",void 0,(p==null?void 0:p.separator)||"/"))}}},v}();function _(v,w,p){if(!p)return;var c=0;return v.map(function(s){var l={start:c,end:c+s.length},d=p.map(function(m){return z.a.intersect(l,m)}).filter(function(m){return!z.a.isEmpty(m)}).map(function(m){var E=m.start,L=m.end;return{start:E-c,end:L-c}});return c=l.end+w.length,d})}var f=function(){function v(w,p){this.container=w,this.supportCodicons=p,this.label=void 0,this.singleLabel=void 0}return v.prototype.setLabel=function(w,p){if(this.label===w&&Object(O.e)(this.options,p))return;if(this.label=w,this.options=p,typeof w=="string")this.singleLabel||(this.container.innerHTML="",J.P(this.container,"multiple"),this.singleLabel=new I.a(J.q(this.container,J.a("a.label-name",{id:p==null?void 0:p.domId})),this.supportCodicons)),this.singleLabel.set(w,p==null?void 0:p.matches,p==null?void 0:p.title,p==null?void 0:p.labelEscapeNewLines);else{this.container.innerHTML="",J.f(this.container,"multiple"),this.singleLabel=void 0;for(var c=(p==null?void 0:p.separator)||"/",s=_(w,c,p==null?void 0:p.matches),l=0;l<w.length;l++){var d=w[l],m=s?s[l]:void 0,E=(p==null?void 0:p.domId)&&(p==null?void 0:p.domId)+"_"+l,L=J.a("a.label-name",{id:E,"data-icon-label-count":w.length,"data-icon-label-index":l}),A=new I.a(J.q(this.container,L),this.supportCodicons);A.set(d,m,p==null?void 0:p.title,p==null?void 0:p.labelEscapeNewLines),l<w.length-1&&J.q(L,J.a("span.label-separator",void 0,c))}}},v}()},xYNL:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return e.e(168).then(e.bind(null,"tGOS"))}})},xmOD:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return e.e(188).then(e.bind(null,"fB/Z"))}})},y3CF:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return e.e(175).then(e.bind(null,"YdqL"))}})},yEoX:function(Lt,j,e){},yI7H:function(Lt,j,e){},yKqg:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return e.e(184).then(e.bind(null,"LdT9"))}})},yqFB:function(Lt,j,e){},yrU1:function(Lt,j,e){},z3hU:function(Lt,j,e){"use strict";e.r(j),e.d(j,"LanguageServiceDefaultsImpl",function(){return I});var T=e("M/lh"),re="3.7.5";"use strict";var J=monaco.Emitter,I=function(){function p(c,s){this._onDidChange=new J,this._onDidExtraLibsChange=new J,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(c),this.setDiagnosticsOptions(s),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(p.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),p.prototype.getExtraLibs=function(){return this._extraLibs},p.prototype.addExtraLib=function(c,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===c)return{dispose:function(){}};var m=1;return this._extraLibs[d]&&(m=this._extraLibs[d].version+1),this._extraLibs[d]={content:c,version:m},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var L=l._extraLibs[d];if(!L)return;if(L.version!==m)return;delete l._extraLibs[d],l._fireOnDidExtraLibsChangeSoon()}}},p.prototype.setExtraLibs=function(c){if(this._extraLibs=Object.create(null),c&&c.length>0)for(var s=0,l=c;s<l.length;s++){var d=l[s],m=d.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),E=d.content;this._extraLibs[m]={content:E,version:1}}this._fireOnDidExtraLibsChangeSoon()},p.prototype._fireOnDidExtraLibsChangeSoon=function(){var c=this;if(this._onDidExtraLibsChangeTimeout!==-1)return;this._onDidExtraLibsChangeTimeout=setTimeout(function(){c._onDidExtraLibsChangeTimeout=-1,c._onDidExtraLibsChange.fire(void 0)},0)},p.prototype.getCompilerOptions=function(){return this._compilerOptions},p.prototype.setCompilerOptions=function(c){this._compilerOptions=c||Object.create(null),this._onDidChange.fire(void 0)},p.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},p.prototype.setDiagnosticsOptions=function(c){this._diagnosticsOptions=c||Object.create(null),this._onDidChange.fire(void 0)},p.prototype.setMaximumWorkerIdleTime=function(c){},p.prototype.setEagerModelSync=function(c){this._eagerModelSync=c},p.prototype.getEagerModelSync=function(){return this._eagerModelSync},p}(),U;(function(p){p[p.None=0]="None",p[p.CommonJS=1]="CommonJS",p[p.AMD=2]="AMD",p[p.UMD=3]="UMD",p[p.System=4]="System",p[p.ES2015=5]="ES2015",p[p.ESNext=99]="ESNext"})(U||(U={}));var z;(function(p){p[p.None=0]="None",p[p.Preserve=1]="Preserve",p[p.React=2]="React",p[p.ReactNative=3]="ReactNative"})(z||(z={}));var O;(function(p){p[p.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",p[p.LineFeed=1]="LineFeed"})(O||(O={}));var H;(function(p){p[p.ES3=0]="ES3",p[p.ES5=1]="ES5",p[p.ES2015=2]="ES2015",p[p.ES2016=3]="ES2016",p[p.ES2017=4]="ES2017",p[p.ES2018=5]="ES2018",p[p.ES2019=6]="ES2019",p[p.ES2020=7]="ES2020",p[p.ESNext=99]="ESNext",p[p.JSON=100]="JSON",p[p.Latest=99]="Latest"})(H||(H={}));var x;(function(p){p[p.Classic=1]="Classic",p[p.NodeJs=2]="NodeJs"})(x||(x={}));var u=new I({allowNonTsExtensions:!0,target:H.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),y=new I({allowNonTsExtensions:!0,allowJs:!0,target:H.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function _(){return w().then(function(p){return p.getTypeScriptWorker()})}function f(){return w().then(function(p){return p.getJavaScriptWorker()})}function v(){return{ModuleKind:U,JsxEmit:z,NewLineKind:O,ScriptTarget:H,ModuleResolutionKind:x,typescriptVersion:re,typescriptDefaults:u,javascriptDefaults:y,getTypeScriptWorker:_,getJavaScriptWorker:f}}monaco.languages.typescript=v();function w(){return e.e(202).then(e.bind(null,"4yiN"))}monaco.languages.onLanguage("typescript",function(){return w().then(function(p){return p.setupTypeScript(u)})}),monaco.languages.onLanguage("javascript",function(){return w().then(function(p){return p.setupJavaScript(y)})})},zN7H:function(Lt,j,e){"use strict";e.d(j,"a",function(){return H});var T=e("N0LK"),re=e("Ll0s"),J=e("aokT"),I=e("gCVg"),U=e("cMvZ"),z=Object.create(null);function O(x,u){z[x]||(z[x]=["",x]);for(var y=z[x],_=y.length;_<=u;_++)y[_]=y[_-1]+x;return y[u]}var H=function(){function x(u,y){this._opts=y,this._selection=u,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return x.unshiftIndent=function(u,y,_,f,v){var w=re.a.visibleColumnFromColumn(u,y,_);if(v){var p=O(" ",f),c=re.a.prevIndentTabStop(w,f),s=c/f;return O(p,s)}else{var p=" ",c=re.a.prevRenderTabStop(w,_),s=c/_;return O(p,s)}},x.shiftIndent=function(u,y,_,f,v){var w=re.a.visibleColumnFromColumn(u,y,_);if(v){var p=O(" ",f),c=re.a.nextIndentTabStop(w,f),s=c/f;return O(p,s)}else{var p=" ",c=re.a.nextRenderTabStop(w,_),s=c/_;return O(p,s)}},x.prototype._addEditOperation=function(u,y,_){this._useLastEditRangeForCursorEndPosition?u.addTrackedEditOperation(y,_):u.addEditOperation(y,_)},x.prototype.getEditOperations=function(u,y){var _=this._selection.startLineNumber,f=this._selection.endLineNumber;this._selection.endColumn===1&&_!==f&&(f=f-1);var v=this._opts,w=v.tabSize,p=v.indentSize,c=v.insertSpaces,s=_===f;if(this._selection.isEmpty()&&(/^\s*$/.test(u.getLineContent(_))&&(this._useLastEditRangeForCursorEndPosition=!0)),this._opts.useTabStops)for(var l=0,d=0,m=_;m<=f;m++,l=d){d=0;var E=u.getLineContent(m),L=T.q(E);if(this._opts.isUnshift&&(E.length===0||L===0))continue;if(!s&&!this._opts.isUnshift&&E.length===0)continue;if(L===-1&&(L=E.length),m>1){var A=re.a.visibleColumnFromColumn(E,L+1,w);if(A%p!==0&&u.isCheapToTokenize(m-1)){var k=U.a.getEnterAction(this._opts.autoIndent,u,new J.a(m-1,u.getLineMaxColumn(m-1),m-1,u.getLineMaxColumn(m-1)));if(k){if(d=l,k.appendText)for(var R=0,$=k.appendText.length;R<$&&d<p&&k.appendText.charCodeAt(R)===32;R++)d++;k.removeText&&(d=Math.max(0,d-k.removeText));for(var R=0;R<d&&!(L===0||E.charCodeAt(L-1)!==32);R++)L--}}}if(this._opts.isUnshift&&L===0)continue;var ie=void 0;this._opts.isUnshift?ie=x.unshiftIndent(E,L+1,w,p,c):ie=x.shiftIndent(E,L+1,w,p,c),this._addEditOperation(y,new J.a(m,1,m,L+1),ie),m===_&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=L+1)}else for(var W=c?O(" ",p):" ",m=_;m<=f;m++){var E=u.getLineContent(m),L=T.q(E);if(this._opts.isUnshift&&(E.length===0||L===0))continue;if(!s&&!this._opts.isUnshift&&E.length===0)continue;if(L===-1&&(L=E.length),this._opts.isUnshift&&L===0)continue;if(this._opts.isUnshift){L=Math.min(L,p);for(var B=0;B<L;B++){var le=E.charCodeAt(B);if(le===9){L=B+1;break}}this._addEditOperation(y,new J.a(m,1,m,L+1),"")}else this._addEditOperation(y,new J.a(m,1,m,1),W),m===_&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}this._selectionId=y.trackSelection(this._selection)},x.prototype.computeCursorState=function(u,y){if(this._useLastEditRangeForCursorEndPosition){var _=y.getInverseEditOperations()[0];return new I.a(_.range.endLineNumber,_.range.endColumn,_.range.endLineNumber,_.range.endColumn)}var f=y.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var v=this._selection.startColumn,w=f.startColumn;return w<=v?f:f.getDirection()===0?new I.a(f.startLineNumber,v,f.endLineNumber,f.endColumn):new I.a(f.endLineNumber,f.endColumn,f.startLineNumber,v)}return f},x}()},zQEy:function(Lt,j,e){"use strict";e.r(j);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(160).then(e.bind(null,"On+f"))}})},zrhQ:function(Lt,j,e){"use strict";e.d(j,"c",function(){return re}),e.d(j,"b",function(){return I}),e.d(j,"a",function(){return U});function T(z,O){var H=Math.pow(10,O);return Math.round(z*H)/H}var re=function(){function z(O,H,x,u){u===void 0&&(u=1),this.r=Math.min(255,Math.max(0,O))|0,this.g=Math.min(255,Math.max(0,H))|0,this.b=Math.min(255,Math.max(0,x))|0,this.a=T(Math.max(Math.min(1,u),0),3)}return z.equals=function(O,H){return O.r===H.r&&O.g===H.g&&O.b===H.b&&O.a===H.a},z}(),J=function(){function z(O,H,x,u){this.h=Math.max(Math.min(360,O),0)|0,this.s=T(Math.max(Math.min(1,H),0),3),this.l=T(Math.max(Math.min(1,x),0),3),this.a=T(Math.max(Math.min(1,u),0),3)}return z.equals=function(O,H){return O.h===H.h&&O.s===H.s&&O.l===H.l&&O.a===H.a},z.fromRGBA=function(O){var H=O.r/255,x=O.g/255,u=O.b/255,y=O.a,_=Math.max(H,x,u),f=Math.min(H,x,u),v=0,w=0,p=(f+_)/2,c=_-f;if(c>0){w=Math.min(p<=.5?c/(2*p):c/(2-2*p),1);switch(_){case H:v=(x-u)/c+(x<u?6:0);break;case x:v=(u-H)/c+2;break;case u:v=(H-x)/c+4;break}v*=60,v=Math.round(v)}return new z(v,w,p,y)},z._hue2rgb=function(O,H,x){return x<0&&(x+=1),x>1&&(x-=1),x<1/6?O+(H-O)*6*x:x<1/2?H:x<2/3?O+(H-O)*(2/3-x)*6:O},z.toRGBA=function(O){var H=O.h/360,x=O.s,u=O.l,y=O.a,_,f,v;if(x===0)_=f=v=u;else{var w=u<.5?u*(1+x):u+x-u*x,p=2*u-w;_=z._hue2rgb(p,w,H+1/3),f=z._hue2rgb(p,w,H),v=z._hue2rgb(p,w,H-1/3)}return new re(Math.round(_*255),Math.round(f*255),Math.round(v*255),y)},z}(),I=function(){function z(O,H,x,u){this.h=Math.max(Math.min(360,O),0)|0,this.s=T(Math.max(Math.min(1,H),0),3),this.v=T(Math.max(Math.min(1,x),0),3),this.a=T(Math.max(Math.min(1,u),0),3)}return z.equals=function(O,H){return O.h===H.h&&O.s===H.s&&O.v===H.v&&O.a===H.a},z.fromRGBA=function(O){var H=O.r/255,x=O.g/255,u=O.b/255,y=Math.max(H,x,u),_=Math.min(H,x,u),f=y-_,v=y===0?0:f/y,w;return f===0?w=0:y===H?w=((x-u)/f%6+6)%6:y===x?w=(u-H)/f+2:w=(H-x)/f+4,new z(Math.round(w*60),v,y,O.a)},z.toRGBA=function(O){var H=O.h,x=O.s,u=O.v,y=O.a,_=u*x,f=_*(1-Math.abs(H/60%2-1)),v=u-_,w=[0,0,0],p=w[0],c=w[1],s=w[2];return H<60?(p=_,c=f):H<120?(p=f,c=_):H<180?(c=_,s=f):H<240?(c=f,s=_):H<300?(p=f,s=_):H<360&&(p=_,s=f),p=Math.round((p+v)*255),c=Math.round((c+v)*255),s=Math.round((s+v)*255),new re(p,c,s,y)},z}(),U=function(){function z(O){if(O)if(O instanceof re)this.rgba=O;else if(O instanceof J)this._hsla=O,this.rgba=J.toRGBA(O);else if(O instanceof I)this._hsva=O,this.rgba=I.toRGBA(O);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return z.fromHex=function(O){return z.Format.CSS.parseHex(O)||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:I.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),z.prototype.equals=function(O){return!!O&&re.equals(this.rgba,O.rgba)&&J.equals(this.hsla,O.hsla)&&I.equals(this.hsva,O.hsva)},z.prototype.getRelativeLuminance=function(){var O=z._relativeLuminanceForComponent(this.rgba.r),H=z._relativeLuminanceForComponent(this.rgba.g),x=z._relativeLuminanceForComponent(this.rgba.b),u=.2126*O+.7152*H+.0722*x;return T(u,4)},z._relativeLuminanceForComponent=function(O){var H=O/255;return H<=.03928?H/12.92:Math.pow((H+.055)/1.055,2.4)},z.prototype.isLighter=function(){var O=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return O>=128},z.prototype.isLighterThan=function(O){var H=this.getRelativeLuminance(),x=O.getRelativeLuminance();return H>x},z.prototype.isDarkerThan=function(O){var H=this.getRelativeLuminance(),x=O.getRelativeLuminance();return H<x},z.prototype.lighten=function(O){return new z(new J(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*O,this.hsla.a))},z.prototype.darken=function(O){return new z(new J(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*O,this.hsla.a))},z.prototype.transparent=function(O){var H=this.rgba,x=H.r,u=H.g,y=H.b,_=H.a;return new z(new re(x,u,y,_*O))},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(O,H,x){if(O.isLighterThan(H))return O;x=x||.5;var u=O.getRelativeLuminance(),y=H.getRelativeLuminance();return x=x*(y-u)/y,O.lighten(x)},z.getDarkerColor=function(O,H,x){if(O.isDarkerThan(H))return O;x=x||.5;var u=O.getRelativeLuminance(),y=H.getRelativeLuminance();return x=x*(u-y)/u,O.darken(x)},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 O;(function(H){var x;(function(u){function y(m){return m.rgba.a===1?"rgb("+m.rgba.r+", "+m.rgba.g+", "+m.rgba.b+")":z.Format.CSS.formatRGBA(m)}u.formatRGB=y;function _(m){return"rgba("+m.rgba.r+", "+m.rgba.g+", "+m.rgba.b+", "+ +m.rgba.a.toFixed(2)+")"}u.formatRGBA=_;function f(m){return m.hsla.a===1?"hsl("+m.hsla.h+", "+(m.hsla.s*100).toFixed(2)+"%, "+(m.hsla.l*100).toFixed(2)+"%)":z.Format.CSS.formatHSLA(m)}u.formatHSL=f;function v(m){return"hsla("+m.hsla.h+", "+(m.hsla.s*100).toFixed(2)+"%, "+(m.hsla.l*100).toFixed(2)+"%, "+m.hsla.a.toFixed(2)+")"}u.formatHSLA=v;function w(m){var E=m.toString(16);return E.length!==2?"0"+E:E}function p(m){return"#"+w(m.rgba.r)+w(m.rgba.g)+w(m.rgba.b)}u.formatHex=p;function c(m,E){return E===void 0&&(E=!1),E&&m.rgba.a===1?z.Format.CSS.formatHex(m):"#"+w(m.rgba.r)+w(m.rgba.g)+w(m.rgba.b)+w(Math.round(m.rgba.a*255))}u.formatHexA=c;function s(m){return m.isOpaque()?z.Format.CSS.formatHex(m):z.Format.CSS.formatRGBA(m)}u.format=s;function l(m){var E=m.length;if(E===0)return null;if(m.charCodeAt(0)!==35)return null;if(E===7){var L=16*d(m.charCodeAt(1))+d(m.charCodeAt(2)),A=16*d(m.charCodeAt(3))+d(m.charCodeAt(4)),k=16*d(m.charCodeAt(5))+d(m.charCodeAt(6));return new z(new re(L,A,k,1))}if(E===9){var L=16*d(m.charCodeAt(1))+d(m.charCodeAt(2)),A=16*d(m.charCodeAt(3))+d(m.charCodeAt(4)),k=16*d(m.charCodeAt(5))+d(m.charCodeAt(6)),R=16*d(m.charCodeAt(7))+d(m.charCodeAt(8));return new z(new re(L,A,k,R/255))}if(E===4){var L=d(m.charCodeAt(1)),A=d(m.charCodeAt(2)),k=d(m.charCodeAt(3));return new z(new re(16*L+L,16*A+A,16*k+k))}if(E===5){var L=d(m.charCodeAt(1)),A=d(m.charCodeAt(2)),k=d(m.charCodeAt(3)),R=d(m.charCodeAt(4));return new z(new re(16*L+L,16*A+A,16*k+k,(16*R+R)/255))}return null}u.parseHex=l;function d(m){switch(m){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}})(x=H.CSS||(H.CSS={}))})(O=z.Format||(z.Format={}))})(U||(U={}))}}]);