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.js

184 lines
2.0 MiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{"+3Gp":function(Et,A,o){"use strict";o.d(A,"a",function(){return V}),o.d(A,"b",function(){return B});var R=o("MNsG"),re=o("Yr1X"),ne=function(){var G=function(S,I){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var T in D)D.hasOwnProperty(T)&&(K[T]=D[T])},G(S,I)};return function(x,S){G(x,S);function I(){this.constructor=x}x.prototype=S===null?Object.create(S):(I.prototype=S.prototype,new I)}}(),P=R.e?1.5:1.35,F=8,V=function(){function G(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 G.createFromValidatedSettings=function(x,S,I){var K=x.get(33),D=x.get(37),T=x.get(36),te=x.get(35),U=x.get(49),_=x.get(46);return G._create(K,D,T,te,U,_,S,I)},G._create=function(x,S,I,K,D,T,te,U){D===0?D=Math.round(P*I):D<F&&(D=F);var _=1+(U?0:re.a.getZoomLevel()*.1);return I*=_,D*=_,new G({zoomLevel:te,fontFamily:x,fontWeight:S,fontSize:I,fontFeatureSettings:K,lineHeight:D,letterSpacing:T})},G.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing},G.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},G}(),B=function(G){ne(x,G);function x(S,I){var K=G.call(this,S)||this;return K.isTrusted=I,K.isMonospace=S.isMonospace,K.typicalHalfwidthCharacterWidth=S.typicalHalfwidthCharacterWidth,K.typicalFullwidthCharacterWidth=S.typicalFullwidthCharacterWidth,K.canUseHalfwidthRightwardsArrow=S.canUseHalfwidthRightwardsArrow,K.spaceWidth=S.spaceWidth,K.middotWidth=S.middotWidth,K.maxDigitWidth=S.maxDigitWidth,K}return x.prototype.equals=function(S){return this.fontFamily===S.fontFamily&&this.fontWeight===S.fontWeight&&this.fontSize===S.fontSize&&this.fontFeatureSettings===S.fontFeatureSettings&&this.lineHeight===S.lineHeight&&this.letterSpacing===S.letterSpacing&&this.typicalHalfwidthCharacterWidth===S.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===S.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===S.canUseHalfwidthRightwardsArrow&&this.spaceWidth===S.spaceWidth&&this.middotWidth===S.middotWidth&&this.maxDigitWidth===S.maxDigitWidth},x}(V)},"+7oY":function(Et,A,o){"use strict";o.d(A,"a",function(){return P}),o.d(A,"i",function(){return F}),o.d(A,"b",function(){return V}),o.d(A,"h",function(){return B}),o.d(A,"d",function(){return x}),o.d(A,"c",function(){return S}),o.d(A,"e",function(){return I}),o.d(A,"g",function(){return K}),o.d(A,"f",function(){return D});var R=o("ic2d"),re=o("Cg/j"),ne=o("CRAX"),P=Object(re.c)("configurationService");function F(T,te){var U=Object.create(null);for(var _ in T)V(U,_,T[_],te);return U}function V(T,te,U,_){for(var h=te.split("."),g=h.pop(),p=T,v=0;v<h.length;v++){var E=h[v],k=p[E];switch(typeof k){case"undefined":k=p[E]=Object.create(null);break;case"object":break;default:_("Ignoring "+te+" as "+h.slice(0,v+1).join(".")+" is "+JSON.stringify(k));return}p=k}typeof p=="object"?p[g]=U:_("Ignoring "+te+" as "+h.join(".")+" is "+JSON.stringify(p))}function B(T,te){var U=te.split(".");G(T,U)}function G(T,te){var U=te.shift();if(te.length===0){delete T[U];return}if(Object.keys(T).indexOf(U)!==-1){var _=T[U];typeof _=="object"&&!Array.isArray(_)&&(G(_,te),Object.keys(_).length===0&&delete T[U])}}function x(T,te,U){function _(p,v){for(var E=p,k=0,z=v;k<z.length;k++){var oe=z[k];if(typeof E!="object"||E===null)return;E=E[oe]}return E}var h=te.split("."),g=_(T,h);return typeof g=="undefined"?U:g}function S(){var T=R.a.as(ne.a.Configuration).getConfigurationProperties();return Object.keys(T)}function I(){var T=Object.create(null),te=R.a.as(ne.a.Configuration).getConfigurationProperties();for(var U in te){var _=te[U].default;V(T,U,_,function(h){return console.error("Conflict in default settings: "+h)})}return T}function K(T){return T.substring(1,T.length-1)}function D(T,te,U){var _=T.inspect(te),h=T.inspect(U);return typeof _.userValue!="undefined"||typeof _.workspaceValue!="undefined"||typeof _.workspaceFolderValue!="undefined"?_.value:typeof h.userValue!="undefined"||typeof h.workspaceValue!="undefined"||typeof h.workspaceFolderValue!="undefined"?h.value:_.defaultValue}},"+Fos":function(Et,A,o){"use strict";o.d(A,"a",function(){return V});var R=o("Ll0s"),re=o("cGHE"),ne=o("aokT"),P=o("N0LK"),F=function(){function B(G,x,S){this.lineNumber=G,this.column=x,this.leftoverVisibleColumns=S}return B}(),V=function(){function B(){}return B.leftPosition=function(G,x,S){return S>G.getLineMinColumn(x)?S=S-P.G(G.getLineContent(x),S-1):x>1&&(x=x-1,S=G.getLineMaxColumn(x)),new re.a(x,S)},B.left=function(G,x,S,I){var K=B.leftPosition(x,S,I);return new F(K.lineNumber,K.column,0)},B.moveLeft=function(G,x,S,I,K){var D,T;if(S.hasSelection()&&!I)D=S.selection.startLineNumber,T=S.selection.startColumn;else{var te=B.left(G,x,S.position.lineNumber,S.position.column-(K-1));D=te.lineNumber,T=te.column}return S.move(I,D,T,0)},B.rightPosition=function(G,x,S){return S<G.getLineMaxColumn(x)?S=S+P.E(G.getLineContent(x),S-1):x<G.getLineCount()&&(x=x+1,S=G.getLineMinColumn(x)),new re.a(x,S)},B.right=function(G,x,S,I){var K=B.rightPosition(x,S,I);return new F(K.lineNumber,K.column,0)},B.moveRight=function(G,x,S,I,K){var D,T;if(S.hasSelection()&&!I)D=S.selection.endLineNumber,T=S.selection.endColumn;else{var te=B.right(G,x,S.position.lineNumber,S.position.column+(K-1));D=te.lineNumber,T=te.column}return S.move(I,D,T,0)},B.down=function(G,x,S,I,K,D,T){var te=R.a.visibleColumnFromColumn(x.getLineContent(S),I,G.tabSize)+K;S=S+D;var U=x.getLineCount();return S>U?(S=U,T?I=x.getLineMaxColumn(S):I=Math.min(x.getLineMaxColumn(S),I)):I=R.a.columnFromVisibleColumn2(G,x,S,te),K=te-R.a.visibleColumnFromColumn(x.getLineContent(S),I,G.tabSize),new F(S,I,K)},B.moveDown=function(G,x,S,I,K){var D,T;S.hasSelection()&&!I?(D=S.selection.endLineNumber,T=S.selection.endColumn):(D=S.position.lineNumber,T=S.position.column);var te=B.down(G,x,D,T,S.leftoverVisibleColumns,K,!0);return S.move(I,te.lineNumber,te.column,te.leftoverVisibleColumns)},B.translateDown=function(G,x,S){var I=S.selection,K=B.down(G,x,I.selectionStartLineNumber,I.selectionStartColumn,S.selectionStartLeftoverVisibleColumns,1,!1),D=B.down(G,x,I.positionLineNumber,I.positionColumn,S.leftoverVisibleColumns,1,!1);return new R.f(new ne.a(K.lineNumber,K.column,K.lineNumber,K.column),K.leftoverVisibleColumns,new re.a(D.lineNumber,D.column),D.leftoverVisibleColumns)},B.up=function(G,x,S,I,K,D,T){var te=R.a.visibleColumnFromColumn(x.getLineContent(S),I,G.tabSize)+K;return S=S-D,S<1?(S=1,T?I=x.getLineMinColumn(S):I=Math.min(x.getLineMaxColumn(S),I)):I=R.a.columnFromVisibleColumn2(G,x,S,te),K=te-R.a.visibleColumnFromColumn(x.getLineContent(S),I,G.tabSize),new F(S,I,K)},B.moveUp=function(G,x,S,I,K){var D,T;S.hasSelection()&&!I?(D=S.selection.startLineNumber,T=S.selection.startColumn):(D=S.position.lineNumber,T=S.position.column);var te=B.up(G,x,D,T,S.leftoverVisibleColumns,K,!0);return S.move(I,te.lineNumber,te.column,te.leftoverVisibleColumns)},B.translateUp=function(G,x,S){var I=S.selection,K=B.up(G,x,I.selectionStartLineNumber,I.selectionStartColumn,S.selectionStartLeftoverVisibleColumns,1,!1),D=B.up(G,x,I.positionLineNumber,I.positionColumn,S.leftoverVisibleColumns,1,!1);return new R.f(new ne.a(K.lineNumber,K.column,K.lineNumber,K.column),K.leftoverVisibleColumns,new re.a(D.lineNumber,D.column),D.leftoverVisibleColumns)},B.moveToBeginningOfLine=function(G,x,S,I){var K=S.position.lineNumber,D=x.getLineMinColumn(K),T=x.getLineFirstNonWhitespaceColumn(K)||D,te,U=S.position.column;return U===T?te=D:te=T,S.move(I,K,te,0)},B.moveToEndOfLine=function(G,x,S,I){var K=S.position.lineNumber,D=x.getLineMaxColumn(K);return S.move(I,K,D,0)},B.moveToBeginningOfBuffer=function(G,x,S,I){return S.move(I,1,1,0)},B.moveToEndOfBuffer=function(G,x,S,I){var K=x.getLineCount(),D=x.getLineMaxColumn(K);return S.move(I,K,D,0)},B}()},"+a1H":function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return o.e(211).then(o.bind(null,"O3xE"))}})},"+hIS":function(Et,A,o){"use strict";o.d(A,"a",function(){return V});var R=typeof monaco=="undefined"?self.monaco:monaco,re={},ne={},P=function(){function B(G){var x=this;this._languageId=G,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(S,I){x._lazyLoadPromiseResolve=S,x._lazyLoadPromiseReject=I})}return B.getOrCreate=function(G){return ne[G]||(ne[G]=new B(G)),ne[G]},B.prototype.whenLoaded=function(){return this._lazyLoadPromise},B.prototype.load=function(){var G=this;return this._loadingTriggered||(this._loadingTriggered=!0,re[this._languageId].loader().then(function(x){return G._lazyLoadPromiseResolve(x)},function(x){return G._lazyLoadPromiseReject(x)})),this._lazyLoadPromise},B}();function F(B){return P.getOrCreate(B).load()}function V(B){var G=B.id;re[G]=B,R.languages.register(B);var x=P.getOrCreate(G);R.languages.setMonarchTokensProvider(G,x.whenLoaded().then(function(S){return S.language})),R.languages.onLanguage(G,function(){x.load().then(function(S){R.languages.setLanguageConfiguration(G,S.conf)})})}},"/UlZ":function(Et,A,o){"use strict";o.d(A,"f",function(){return V}),o.d(A,"a",function(){return B}),o.d(A,"h",function(){return G}),o.d(A,"g",function(){return E}),o.d(A,"d",function(){return Se}),o.d(A,"j",function(){return ye}),o.d(A,"b",function(){return Qe}),o.d(A,"c",function(){return Ee}),o.d(A,"i",function(){return W}),o.d(A,"e",function(){return Ae});var R=o("3/fG"),re=o("MNsG"),ne=o("0JNc"),P=function(){var me=function(Re,ge){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,St){nt.__proto__=St}||function(nt,St){for(var xt in St)St.hasOwnProperty(xt)&&(nt[xt]=St[xt])},me(Re,ge)};return function(Me,Re){me(Me,Re);function ge(){this.constructor=Me}Me.prototype=Re===null?Object.create(Re):(ge.prototype=Re.prototype,new ge)}}(),F=function(){return F=Object.assign||function(me){for(var Me,Re=1,ge=arguments.length;Re<ge;Re++){Me=arguments[Re];for(var nt in Me)Object.prototype.hasOwnProperty.call(Me,nt)&&(me[nt]=Me[nt])}return me},F.apply(this,arguments)},V=8,B=function(){function me(Me){this._values=Me}return me.prototype.hasChanged=function(Me){return this._values[Me]},me}(),G=function(){function me(){this._values=[]}return me.prototype._read=function(Me){return this._values[Me]},me.prototype.get=function(Me){return this._values[Me]},me.prototype._write=function(Me,Re){this._values[Me]=Re},me}(),x=function(){function me(Me,Re,ge,nt){this.id=Me,this.name=Re,this.defaultValue=ge,this.schema=nt}return me.prototype.compute=function(Me,Re,ge){return ge},me}(),S=function(){function me(Me,Re){Re===void 0&&(Re=null),this.schema=void 0,this.id=Me,this.name="_never_",this.defaultValue=void 0,this.deps=Re}return me.prototype.validate=function(Me){return this.defaultValue},me}(),I=function(){function me(Me,Re,ge,nt){this.id=Me,this.name=Re,this.defaultValue=ge,this.schema=nt}return me.prototype.validate=function(Me){return typeof Me=="undefined"?this.defaultValue:Me},me.prototype.compute=function(Me,Re,ge){return ge},me}(),K=function(me){P(Me,me);function Me(Re,ge,nt,St){St===void 0&&(St=void 0);var xt=this;return typeof St!="undefined"&&(St.type="boolean",St.default=nt),xt=me.call(this,Re,ge,nt,St)||this,xt}return Me.boolean=function(Re,ge){return typeof Re=="undefined"?ge:Re==="false"?!1:Boolean(Re)},Me.prototype.validate=function(Re){return Me.boolean(Re,this.defaultValue)},Me}(I),D=function(me){P(Me,me);function Me(Re,ge,nt,St,xt,Mt){Mt===void 0&&(Mt=void 0);var zt=this;return typeof Mt!="undefined"&&(Mt.type="integer",Mt.default=nt,Mt.minimum=St,Mt.maximum=xt),zt=me.call(this,Re,ge,nt,Mt)||this,zt.minimum=St,zt.maximum=xt,zt}return Me.clampedInt=function(Re,ge,nt,St){var xt;return typeof Re=="undefined"?xt=ge:(xt=parseInt(Re,10),isNaN(xt)&&(xt=ge)),xt=Math.max(nt,xt),xt=Math.min(St,xt),xt|0},Me.prototype.validate=function(Re){return Me.clampedInt(Re,this.defaultValue,this.minimum,this.maximum)},Me}(I),T=function(me){P(Me,me);function Me(Re,ge,nt,St,xt){var Mt=this;return typeof xt!="undefined"&&(xt.type="number",xt.default=nt),Mt=me.call(this,Re,ge,nt,xt)||this,Mt.validationFn=St,Mt}return Me.clamp=function(Re,ge,nt){return Re<ge?ge:Re>nt?nt:Re},Me.float=function(Re,ge){if(typeof Re=="number")return Re;if(typeof Re=="undefined")return ge;var nt=parseFloat(Re);return isNaN(nt)?ge:nt},Me.prototype.validate=function(Re){return this.validationFn(Me.float(Re,this.defaultValue))},Me}(I),te=function(me){P(Me,me);function Me(Re,ge,nt,St){St===void 0&&(St=void 0);var xt=this;return typeof St!="undefined"&&(St.type="string",St.default=nt),xt=me.call(this,Re,ge,nt,St)||this,xt}return Me.string=function(Re,ge){return typeof Re!="string"?ge:Re},Me.prototype.validate=function(Re){return Me.string(Re,this.defaultValue)},Me}(I),U=function(me){P(Me,me);function Me(Re,ge,nt,St,xt){xt===void 0&&(xt=void 0);var Mt=this;return typeof xt!="undefined"&&(xt.type="string",xt.enum=St,xt.default=nt),Mt=me.call(this,Re,ge,nt,xt)||this,Mt._allowedValues=St,Mt}return Me.stringSet=function(Re,ge,nt){return typeof Re!="string"||nt.indexOf(Re)===-1?ge:Re},Me.prototype.validate=function(Re){return Me.stringSet(Re,this.defaultValue,this._allowedValues)},Me}(I),_=function(me){P(Me,me);function Me(Re,ge,nt,St,xt,Mt,zt){zt===void 0&&(zt=void 0);var Gt=this;return typeof zt!="undefined"&&(zt.type="string",zt.enum=xt,zt.default=St),Gt=me.call(this,Re,ge,nt,zt)||this,Gt._allowedValues=xt,Gt._convert=Mt,Gt}return Me.prototype.validate=function(Re){return typeof Re!="string"?this.defaultValue:this._allowedValues.indexOf(Re)===-1?this.defaultValue:this._convert(Re)},Me}(x);function h(me){switch(me){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var g=function(me){P(Me,me);function Me(){return me.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[R.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),R.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),R.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:R.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return Me.prototype.validate=function(Re){switch(Re){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},Me.prototype.compute=function(Re,ge,nt){return nt===0?Re.accessibilitySupport:nt},Me}(x),p=function(me){P(Me,me);function Me(){var Re=this,ge={insertSpace:!0};return Re=me.call(this,13,"comments",ge,{"editor.comments.insertSpace":{type:"boolean",default:ge.insertSpace,description:R.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,Re}return Me.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var ge=Re;return{insertSpace:K.boolean(ge.insertSpace,this.defaultValue.insertSpace)}},Me}(x);function v(me){switch(me){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var E;(function(me){me[me.Line=1]="Line",me[me.Block=2]="Block",me[me.Underline=3]="Underline",me[me.LineThin=4]="LineThin",me[me.BlockOutline=5]="BlockOutline",me[me.UnderlineThin=6]="UnderlineThin"})(E||(E={}));function k(me){switch(me){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 z=function(me){P(Me,me);function Me(){return me.call(this,104,[55,26])||this}return Me.prototype.compute=function(Re,ge,nt){var St="monaco-editor";return ge.get(26)&&(St+=" "+ge.get(26)),Re.extraEditorClassName&&(St+=" "+Re.extraEditorClassName),ge.get(55)==="default"?St+=" mouse-default":ge.get(55)==="copy"&&(St+=" mouse-copy"),ge.get(85)&&(St+=" showUnused"),St},Me}(S),oe=function(me){P(Me,me);function Me(){return me.call(this,25,"emptySelectionClipboard",!0,{description:R.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return Me.prototype.compute=function(Re,ge,nt){return nt&&Re.emptySelectionClipboard},Me}(K),fe=function(me){P(Me,me);function Me(){var Re=this,ge={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return Re=me.call(this,28,"find",ge,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:ge.seedSearchStringFromSelection,description:R.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:ge.autoFindInSelection,enumDescriptions:[R.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),R.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),R.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:R.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:ge.globalFindClipboard,description:R.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:ge.addExtraSpaceOnTop,description:R.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,Re}return Me.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var ge=Re;return{seedSearchStringFromSelection:K.boolean(ge.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof Re.autoFindInSelection=="boolean"?Re.autoFindInSelection?"always":"never":U.stringSet(ge.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:K.boolean(ge.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:K.boolean(ge.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},Me}(x),Se=function(me){P(Me,me);function Me(){return me.call(this,35,"fontLigatures",Me.OFF,{anyOf:[{type:"boolean",description:R.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:R.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:R.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return Me.prototype.validate=function(Re){return typeof Re=="undefined"?this.defaultValue:typeof Re=="string"?Re==="false"?Me.OFF:Re==="true"?Me.ON:Re:Boolean(Re)?Me.ON:Me.OFF},Me.OFF='"liga" off, "calt" off',Me.ON='"liga" on, "calt" on',Me}(x),we=function(me){P(Me,me);function Me(){return me.call(this,34)||this}return Me.prototype.compute=function(Re,ge,nt){return Re.fontInfo},Me}(S),q=function(me){P(Me,me);function Me(){return me.call(this,36,"fontSize",Qe.fontSize,{type:"number",minimum:6,maximum:100,default:Qe.fontSize,description:R.a("fontSize","Controls the font size in pixels.")})||this}return Me.prototype.validate=function(Re){var ge=T.float(Re,this.defaultValue);return ge===0?Qe.fontSize:T.clamp(ge,6,100)},Me.prototype.compute=function(Re,ge,nt){return Re.fontInfo.fontSize},Me}(I),X=function(me){P(Me,me);function Me(){var Re=this,ge={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},nt={type:"string",enum:["peek","gotoAndPeek","goto"],default:ge.multiple,enumDescriptions:[R.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),R.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),R.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return Re=me.call(this,41,"gotoLocation",ge,{"editor.gotoLocation.multiple":{deprecationMessage:R.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":F({description:R.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleTypeDefinitions":F({description:R.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleDeclarations":F({description:R.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleImplementations":F({description:R.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleReferences":F({description:R.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},nt),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:ge.alternativeDefinitionCommand,description:R.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:ge.alternativeTypeDefinitionCommand,description:R.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:ge.alternativeDeclarationCommand,description:R.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:ge.alternativeImplementationCommand,description:R.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:ge.alternativeReferenceCommand,description:R.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,Re}return Me.prototype.validate=function(Re){var ge,nt,St,xt,Mt;if(typeof Re!="object")return this.defaultValue;var zt=Re;return{multiple:U.stringSet(zt.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(ge=zt.multipleDefinitions)!==null&&ge!==void 0?ge:U.stringSet(zt.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(nt=zt.multipleTypeDefinitions)!==null&&nt!==void 0?nt:U.stringSet(zt.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(St=zt.multipleDeclarations)!==null&&St!==void 0?St:U.stringSet(zt.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(xt=zt.multipleImplementations)!==null&&xt!==void 0?xt:U.stringSet(zt.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(Mt=zt.multipleReferences)!==null&&Mt!==void 0?Mt:U.stringSet(zt.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:te.string(zt.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:te.string(zt.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:te.string(zt.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:te.string(zt.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:te.string(zt.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},Me}(x),ce=function(me){P(Me,me);function Me(){var Re=this,ge={enabled:!0,delay:300,sticky:!0};return Re=me.call(this,44,"hover",ge,{"editor.hover.enabled":{type:"boolean",default:ge.enabled,description:R.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:ge.delay,description:R.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:ge.sticky,description:R.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,Re}return Me.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var ge=Re;return{enabled:K.boolean(ge.enabled,this.defaultValue.enabled),delay:D.clampedInt(ge.delay,this.defaultValue.delay,0,1e4),sticky:K.boolean(ge.sticky,this.defaultValue.sticky)}},Me}(x),Ne=function(me){P(Me,me);function Me(){return me.call(this,107,[40,48,30,54,78,50])||this}return Me.prototype.compute=function(Re,ge,nt){return Me.computeLayout(ge,{outerWidth:Re.outerWidth,outerHeight:Re.outerHeight,lineHeight:Re.fontInfo.lineHeight,lineNumbersDigitCount:Re.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:Re.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:Re.fontInfo.maxDigitWidth,pixelRatio:Re.pixelRatio})},Me.computeLayout=function(Re,ge){var nt=ge.outerWidth|0,St=ge.outerHeight|0,xt=ge.lineHeight|0,Mt=ge.lineNumbersDigitCount|0,zt=ge.typicalHalfwidthCharacterWidth,Gt=ge.maxDigitWidth,on=ge.pixelRatio,On=Re.get(40),yn=Re.get(50).renderType!==0,Mn=Re.get(51)|0,Ft=Re.get(54),gt=Ft.enabled,pt=Ft.side,Dt=Ft.renderCharacters,Ot=on>=2?Math.round(Ft.scale*2):Ft.scale,Ht=Ft.maxColumn|0,Jt=Re.get(78),nn=Jt.verticalScrollbarSize|0,sn=Jt.verticalHasArrows,un=Jt.arrowSize|0,Sn=Jt.horizontalScrollbarSize|0,Ln=Re.get(48),An=Re.get(30),Gn;if(typeof Ln=="string"&&/^\d+(\.\d+)?ch$/.test(Ln)){var Jn=parseFloat(Ln.substr(0,Ln.length-2));Gn=D.clampedInt(Jn*zt,0,0,1e3)}else Gn=D.clampedInt(Ln,0,0,1e3);An&&(Gn+=16);var $n=0;if(yn){var pi=Math.max(Mt,Mn);$n=Math.round(pi*Gt)}var Kn=0;On&&(Kn=xt);var yi=0,vi=yi+Kn,mt=vi+$n,Nt=mt+Gn,Ut=nt-Kn-$n-Gn,tn,Vt,wn,xn;if(!gt)Vt=0,wn=0,tn=0,xn=Ut;else{var kn=Ot/on;tn=Dt?1:2,wn=Math.max(0,Math.floor((Ut-nn-2)*kn/(zt+kn)))+V;var Fn=wn/kn;Fn>Ht&&(wn=Math.floor(Ht*kn)),xn=Ut-wn,pt==="left"?(Vt=0,yi+=wn,vi+=wn,mt+=wn,Nt+=wn):Vt=nt-wn-nn}var oi=Math.max(1,Math.floor((xn-nn-2)/zt)),ci=sn?un:0;return{width:nt,height:St,glyphMarginLeft:yi,glyphMarginWidth:Kn,lineNumbersLeft:vi,lineNumbersWidth:$n,decorationsLeft:mt,decorationsWidth:Gn,contentLeft:Nt,contentWidth:xn,renderMinimap:tn,minimapLeft:Vt,minimapWidth:wn,viewportColumn:oi,verticalScrollbarWidth:nn,horizontalScrollbarHeight:Sn,overviewRuler:{top:ci,width:nn,height:St-2*ci,right:0}}},Me}(S),He=function(me){P(Me,me);function Me(){var Re=this,ge={enabled:!0};return Re=me.call(this,47,"lightbulb",ge,{"editor.lightbulb.enabled":{type:"boolean",default:ge.enabled,description:R.a("codeActions","Enables the code action lightbulb in the editor.")}})||this,Re}return Me.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var ge=Re;return{enabled:K.boolean(ge.enabled,this.defaultValue.enabled)}},Me}(x),_e=function(me){P(Me,me);function Me(){return me.call(this,49,"lineHeight",Qe.lineHeight,0,150,{description:R.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return Me.prototype.compute=function(Re,ge,nt){return Re.fontInfo.lineHeight},Me}(D),de=function(me){P(Me,me);function Me(){var Re=this,ge={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return Re=me.call(this,54,"minimap",ge,{"editor.minimap.enabled":{type:"boolean",default:ge.enabled,description:R.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:ge.side,description:R.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:ge.showSlider,description:R.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:ge.scale,minimum:1,maximum:3,description:R.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:ge.renderCharacters,description:R.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:ge.maxColumn,description:R.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,Re}return Me.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var ge=Re;return{enabled:K.boolean(ge.enabled,this.defaultValue.enabled),side:U.stringSet(ge.side,this.defaultValue.side,["right","left"]),showSlider:U.stringSet(ge.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:K.boolean(ge.renderCharacters,this.defaultValue.renderCharacters),scale:D.clampedInt(ge.scale,1,1,3),maxColumn:D.clampedInt(ge.maxColumn,this.defaultValue.maxColumn,1,1e4)}},Me}(x);function se(me){return me==="ctrlCmd"?re.e?"metaKey":"ctrlKey":"altKey"}var he=function(me){P(Me,me);function Me(){var Re=this,ge={enabled:!0,cycle:!1};return Re=me.call(this,64,"parameterHints",ge,{"editor.parameterHints.enabled":{type:"boolean",default:ge.enabled,description:R.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:ge.cycle,description:R.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,Re}return Me.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var ge=Re;return{enabled:K.boolean(ge.enabled,this.defaultValue.enabled),cycle:K.boolean(ge.cycle,this.defaultValue.cycle)}},Me}(x),ie=function(me){P(Me,me);function Me(){return me.call(this,105)||this}return Me.prototype.compute=function(Re,ge,nt){return Re.pixelRatio},Me}(S),$=function(me){P(Me,me);function Me(){var Re=this,ge={other:!0,comments:!1,strings:!1};return Re=me.call(this,66,"quickSuggestions",ge,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:ge.strings,description:R.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:ge.comments,description:R.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:ge.other,description:R.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:ge,description:R.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,Re.defaultValue=ge,Re}return Me.prototype.validate=function(Re){if(typeof Re=="boolean")return Re;if(typeof Re=="object"){var ge=Re,nt={other:K.boolean(ge.other,this.defaultValue.other),comments:K.boolean(ge.comments,this.defaultValue.comments),strings:K.boolean(ge.strings,this.defaultValue.strings)};return nt.other&&nt.comments&&nt.strings?!0:!nt.other&&!nt.comments&&!nt.strings?!1:nt}return this.defaultValue},Me}(x),ve=function(me){P(Me,me);function Me(){return me.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[R.a("lineNumbers.off","Line numbers are not rendered."),R.a("lineNumbers.on","Line numbers are rendered as absolute number."),R.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),R.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:R.a("lineNumbers","Controls the display of line numbers.")})||this}return Me.prototype.validate=function(Re){var ge=this.defaultValue.renderType,nt=this.defaultValue.renderFn;return typeof Re!="undefined"&&(typeof Re=="function"?(ge=4,nt=Re):Re==="interval"?ge=3:Re==="relative"?ge=2:Re==="on"?ge=1:ge=0),{renderType:ge,renderFn:nt}},Me}(x);function ye(me){var Me=me.get(73);return Me==="editable"?me.get(68):Me!=="on"}var Ue=function(me){P(Me,me);function Me(){var Re=this,ge=[];return Re=me.call(this,77,"rulers",ge,{type:"array",items:{type:"number"},default:ge,description:R.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,Re}return Me.prototype.validate=function(Re){if(Array.isArray(Re)){for(var ge=[],nt=0,St=Re;nt<St.length;nt++){var xt=St[nt];ge.push(D.clampedInt(xt,0,0,1e4))}return ge.sort(function(Mt,zt){return Mt-zt}),ge}return this.defaultValue},Me}(I);function tt(me,Me){if(typeof me!="string")return Me;switch(me){case"hidden":return 2;case"visible":return 3;default:return 1}}var _t=function(me){P(Me,me);function Me(){return me.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 Me.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var ge=Re,nt=D.clampedInt(ge.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),St=D.clampedInt(ge.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:D.clampedInt(ge.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:tt(ge.vertical,this.defaultValue.vertical),horizontal:tt(ge.horizontal,this.defaultValue.horizontal),useShadows:K.boolean(ge.useShadows,this.defaultValue.useShadows),verticalHasArrows:K.boolean(ge.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:K.boolean(ge.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:K.boolean(ge.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:K.boolean(ge.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:nt,horizontalSliderSize:D.clampedInt(ge.horizontalSliderSize,nt,0,1e3),verticalScrollbarSize:St,verticalSliderSize:D.clampedInt(ge.verticalSliderSize,St,0,1e3)}},Me}(x),At=function(me){P(Me,me);function Me(){var Re=this,ge={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 Re=me.call(this,89,"suggest",ge,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[R.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),R.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:ge.insertMode,description:R.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:ge.insertHighlight,description:R.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:ge.filterGraceful,description:R.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:ge.localityBonus,description:R.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:ge.shareSuggestSelections,markdownDescription:R.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:ge.snippetsPreventQuickSuggestions,description:R.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:ge.showIcons,description:R.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:ge.maxVisibleSuggestions,minimum:1,maximum:15,description:R.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:R.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:R.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.hideStatusBar":{type:"boolean",default:!0,markdownDescription:R.a("editor.suggest.hideStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")}})||this,Re}return Me.prototype.validate=function(Re){if(typeof Re!="object")return this.defaultValue;var ge=Re;return{insertMode:U.stringSet(ge.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:K.boolean(ge.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:K.boolean(ge.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:K.boolean(ge.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:K.boolean(ge.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:K.boolean(ge.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:K.boolean(ge.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:D.clampedInt(ge.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:K.boolean(ge.showMethods,this.defaultValue.showMethods),showFunctions:K.boolean(ge.showFunctions,this.defaultValue.showFunctions),showConstructors:K.boolean(ge.showConstructors,this.defaultValue.showConstructors),showFields:K.boolean(ge.showFields,this.defaultValue.showFields),showVariables:K.boolean(ge.showVariables,this.defaultValue.showVariables),showClasses:K.boolean(ge.showClasses,this.defaultValue.showClasses),showStructs:K.boolean(ge.showStructs,this.defaultValue.showStructs),showInterfaces:K.boolean(ge.showInterfaces,this.defaultValue.showInterfaces),showModules:K.boolean(ge.showModules,this.defaultValue.showModules),showProperties:K.boolean(ge.showProperties,this.defaultValue.showProperties),showEvents:K.boolean(ge.showEvents,this.defaultValue.showEvents),showOperators:K.boolean(ge.showOperators,this.defaultValue.showOperators),showUnits:K.boolean(ge.showUnits,this.defaultValue.showUnits),showValues:K.boolean(ge.showValues,this.defaultValue.showValues),showConstants:K.boolean(ge.showConstants,this.defaultValue.showConstants),showEnums:K.boolean(ge.showEnums,this.defaultValue.showEnums),showEnumMembers:K.boolean(ge.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:K.boolean(ge.showKeywords,this.defaultValue.showKeywords),showWords:K.boolean(ge.showWords,this.defaultValue.showWords),showColors:K.boolean(ge.showColors,this.defaultValue.showColors),showFiles:K.boolean(ge.showFiles,this.defaultValue.showFiles),showReferences:K.boolean(ge.showReferences,this.defaultValue.showReferences),showFolders:K.boolean(ge.showFolders,this.defaultValue.showFolders),showTypeParameters:K.boolean(ge.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:K.boolean(ge.showSnippets,this.defaultValue.showSnippets),hideStatusBar:K.boolean(ge.hideStatusBar,this.defaultValue.hideStatusBar)}},Me}(x),Yt=function(me){P(Me,me);function Me(){return me.call(this,106,[68])||this}return Me.prototype.compute=function(Re,ge,nt){var St=ge.get(68);return St?!0:Re.tabFocusMode},Me}(S);function Ke(me){switch(me){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}var Ye=function(me){P(Me,me);function Me(){return me.call(this,108,[97,100,101,107,2])||this}return Me.prototype.compute=function(Re,ge,nt){var St=ge.get(97),xt=ge.get(100),Mt=ge.get(101),zt=ge.get(107),Gt=ge.get(2),on=null;return Gt===2?on={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:Mt&&Re.isDominatedByLongLines?on={isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,zt.viewportColumn)}:St==="on"?on={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,zt.viewportColumn)}:St==="bounded"?on={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,zt.viewportColumn),xt)}:St==="wordWrapColumn"?on={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:xt}:on={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1},{isDominatedByLongLines:Re.isDominatedByLongLines,isWordWrapMinified:on.isWordWrapMinified,isViewportWrapping:on.isViewportWrapping,wrappingColumn:on.wrappingColumn}},Me}(S),Xe="Consolas, 'Courier New', monospace",Ze="Menlo, Monaco, 'Courier New', monospace",We="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",Qe={fontFamily:re.e?Ze:re.d?We:Xe,fontWeight:"normal",fontSize:re.e?12:14,lineHeight:0,letterSpacing:0},Ee={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},W=[];function ee(me){return W[me.id]=me,me}var Ae={acceptSuggestionOnCommitCharacter:ee(new K(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:R.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:ee(new U(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",R.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:R.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:ee(new g),accessibilityPageSize:ee(new D(3,"accessibilityPageSize",10,1,1073741824,{description:R.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:ee(new te(4,"ariaLabel",R.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ee(new U(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",R.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),R.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:R.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:ee(new U(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",R.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:R.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ee(new U(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",R.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),R.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:R.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ee(new _(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],h,{enumDescriptions:[R.a("editor.autoIndent.none","The editor will not insert indentation automatically."),R.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),R.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),R.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),R.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:R.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ee(new K(9,"automaticLayout",!1)),autoSurround:ee(new U(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[R.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),R.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),R.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:R.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:ee(new K(11,"codeLens",!0,{description:R.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:ee(new K(12,"colorDecorators",!0,{description:R.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),comments:ee(new p),contextmenu:ee(new K(14,"contextmenu",!0)),copyWithSyntaxHighlighting:ee(new K(15,"copyWithSyntaxHighlighting",!0,{description:R.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ee(new _(16,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],v,{description:R.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ee(new K(17,"cursorSmoothCaretAnimation",!1,{description:R.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ee(new _(18,"cursorStyle",E.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],k,{description:R.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ee(new D(19,"cursorSurroundingLines",0,0,1073741824,{description:R.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:ee(new U(20,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[R.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),R.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:R.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ee(new D(21,"cursorWidth",0,0,1073741824,{markdownDescription:R.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ee(new K(22,"disableLayerHinting",!1)),disableMonospaceOptimizations:ee(new K(23,"disableMonospaceOptimizations",!1)),dragAndDrop:ee(new K(24,"dragAndDrop",!0,{description:R.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ee(new oe),extraEditorClassName:ee(new te(26,"extraEditorClassName","")),fastScrollSensitivity:ee(new T(27,"fastScrollSensitivity",5,function(me){return me<=0?5:me},{markdownDescription:R.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ee(new fe),fixedOverflowWidgets:ee(new K(29,"fixedOverflowWidgets",!1)),folding:ee(new K(30,"folding",!0,{description:R.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ee(new U(31,"foldingStrategy","auto",["auto","indentation"],{markdownDescription:R.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:ee(new K(32,"foldingHighlight",!0,{description:R.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),fontFamily:ee(new te(33,"fontFamily",Qe.fontFamily,{description:R.a("fontFamily","Controls the font family.")})),fontInfo:ee(new we),fontLigatures2:ee(new Se),fontSize:ee(new q),fontWeight:ee(new te(37,"fontWeight",Qe.fontWeight,{enum:["normal","bold","100","200","300","400","500","600","700","800","900"],description:R.a("fontWeight","Controls the font weight.")})),formatOnPaste:ee(new K(38,"formatOnPaste",!1,{description:R.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:ee(new K(39,"formatOnType",!1,{description:R.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ee(new K(40,"glyphMargin",!0,{description:R.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ee(new X),hideCursorInOverviewRuler:ee(new K(42,"hideCursorInOverviewRuler",!1,{description:R.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:ee(new K(43,"highlightActiveIndentGuide",!0,{description:R.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:ee(new ce),inDiffEditor:ee(new K(45,"inDiffEditor",!1)),letterSpacing:ee(new T(46,"letterSpacing",Qe.letterSpacing,function(me){return T.clamp(me,-5,20)},{description:R.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ee(new He),lineDecorationsWidth:ee(new I(48,"lineDecorationsWidth",10)),lineHeight:ee(new _e),lineNumbers:ee(new ve),lineNumbersMinChars:ee(new D(51,"lineNumbersMinChars",5,1,300)),links:ee(new K(52,"links",!0,{description:R.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ee(new U(53,"matchBrackets","always",["always","near","never"],{description:R.a("matchBrackets","Highlight matching brackets.")})),minimap:ee(new de),mouseStyle:ee(new U(55,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ee(new T(56,"mouseWheelScrollSensitivity",1,function(me){return me===0?1:me},{markdownDescription:R.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ee(new K(57,"mouseWheelZoom",!1,{markdownDescription:R.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ee(new K(58,"multiCursorMergeOverlapping",!0,{description:R.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ee(new _(59,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],se,{markdownEnumDescriptions:[R.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),R.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:R.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:ee(new U(60,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[R.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),R.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:R.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:ee(new K(61,"occurrencesHighlight",!0,{description:R.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ee(new K(62,"overviewRulerBorder",!0,{description:R.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ee(new D(63,"overviewRulerLanes",3,0,3)),parameterHints:ee(new he),peekWidgetDefaultFocus:ee(new U(65,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[R.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),R.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:R.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),quickSuggestions:ee(new $),quickSuggestionsDelay:ee(new D(67,"quickSuggestionsDelay",10,0,1073741824,{description:R.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ee(new K(68,"readOnly",!1)),renderControlCharacters:ee(new K(69,"renderControlCharacters",!1,{description:R.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:ee(new K(70,"renderIndentGuides",!0,{description:R.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:ee(new K(71,"renderFinalNewline",!0,{description:R.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ee(new U(72,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",R.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:R.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderValidationDecorations:ee(new U(73,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ee(new U(74,"renderWhitespace","none",["none","boundary","selection","all"],{enumDescriptions:["",R.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),R.a("renderWhitespace.selection","Render whitespace characters only on selected text."),""],description:R.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ee(new D(75,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:ee(new K(76,"roundedSelection",!0,{description:R.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ee(new Ue),scrollbar:ee(new _t),scrollBeyondLastColumn:ee(new D(79,"scrollBeyondLastColumn",5,0,1073741824,{description:R.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ee(new K(80,"scrollBeyondLastLine",!0,{description:R.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:ee(new K(81,"selectionClipboard",!0,{description:R.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:re.d})),selectionHighlight:ee(new K(82,"selectionHighlight",!0,{description:R.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ee(new K(83,"selectOnLineNumbers",!0)),showFoldingControls:ee(new U(84,"showFoldingControls","mouseover",["always","mouseover"],{description:R.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:ee(new K(85,"showUnused",!0,{description:R.a("showUnused","Controls fading out of unused code.")})),snippetSuggestions:ee(new U(86,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[R.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),R.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),R.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),R.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:R.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:ee(new K(87,"smoothScrolling",!1,{description:R.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ee(new D(88,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ee(new At),suggestFontSize:ee(new D(90,"suggestFontSize",0,0,1e3,{markdownDescription:R.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:ee(new D(91,"suggestLineHeight",0,0,1e3,{markdownDescription:R.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:ee(new K(92,"suggestOnTriggerCharacters",!0,{description:R.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ee(new U(93,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[R.a("suggestSelection.first","Always select the first suggestion."),R.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),R.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:R.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ee(new U(94,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[R.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),R.a("tabCompletion.off","Disable tab completions."),R.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:R.a("tabCompletion","Enables tab completions.")})),useTabStops:ee(new K(95,"useTabStops",!0,{description:R.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:ee(new te(96,"wordSeparators",ne.b,{description:R.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ee(new U(97,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[R.a("wordWrap.off","Lines will never wrap."),R.a("wordWrap.on","Lines will wrap at the viewport width."),R.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),R.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:R.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ee(new te(98,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:ee(new te(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:ee(new D(100,"wordWrapColumn",80,1,1073741824,{markdownDescription:R.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:ee(new K(101,"wordWrapMinified",!0)),wrappingIndent:ee(new _(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],Ke,{enumDescriptions:[R.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),R.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),R.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),R.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:R.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:ee(new U(103,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[R.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."),R.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:R.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:ee(new z),pixelRatio:ee(new ie),tabFocusMode:ee(new Yt),layoutInfo:ee(new Ne),wrappingInfo:ee(new Ye)}},"/cAr":function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return o.e(220).then(o.bind(null,"8m5U"))}})},"/cxE":function(Et,A,o){"use strict";o.d(A,"e",function(){return ne}),o.d(A,"f",function(){return P}),o.d(A,"g",function(){return F}),o.d(A,"d",function(){return B}),o.d(A,"a",function(){return G}),o.d(A,"b",function(){return x}),o.d(A,"c",function(){return S});var R=function(){function I(){this.listeners=[],this.unexpectedErrorHandler=function(K){setTimeout(function(){throw K.stack?new Error(K.message+`
`+K.stack):K},0)}}return I.prototype.emit=function(K){this.listeners.forEach(function(D){D(K)})},I.prototype.onUnexpectedError=function(K){this.unexpectedErrorHandler(K),this.emit(K)},I.prototype.onUnexpectedExternalError=function(K){this.unexpectedErrorHandler(K)},I}(),re=new R;function ne(I){B(I)||re.onUnexpectedError(I)}function P(I){B(I)||re.onUnexpectedExternalError(I)}function F(I){if(I instanceof Error){var K=I.name,D=I.message,T=I.stacktrace||I.stack;return{$isError:!0,name:K,message:D,stack:T}}return I}var V="Canceled";function B(I){return I instanceof Error&&I.name===V&&I.message===V}function G(){var I=new Error(V);return I.name=I.message,I}function x(I){return I?new Error("Illegal argument: "+I):new Error("Illegal argument")}function S(I){return I?new Error("Illegal state: "+I):new Error("Illegal state")}},"/kV6":function(Et,A,o){"use strict";o.d(A,"b",function(){return V}),o.d(A,"a",function(){return B}),o.d(A,"f",function(){return G}),o.d(A,"e",function(){return S}),o.d(A,"d",function(){return K}),o.d(A,"c",function(){return D});var R=o("/cxE"),re=function(){function T(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return T.prototype.define=function(te,U){this._keyCodeToStr[te]=U,this._strToKeyCode[U.toLowerCase()]=te},T.prototype.keyCodeToStr=function(te){return this._keyCodeToStr[te]},T.prototype.strToKeyCode=function(te){return this._strToKeyCode[te.toLowerCase()]||0},T}(),ne=new re,P=new re,F=new re;(function(){function T(te,U,_,h){_===void 0&&(_=U),h===void 0&&(h=_),ne.define(te,U),P.define(te,_),F.define(te,h)}T(0,"unknown"),T(1,"Backspace"),T(2,"Tab"),T(3,"Enter"),T(4,"Shift"),T(5,"Ctrl"),T(6,"Alt"),T(7,"PauseBreak"),T(8,"CapsLock"),T(9,"Escape"),T(10,"Space"),T(11,"PageUp"),T(12,"PageDown"),T(13,"End"),T(14,"Home"),T(15,"LeftArrow","Left"),T(16,"UpArrow","Up"),T(17,"RightArrow","Right"),T(18,"DownArrow","Down"),T(19,"Insert"),T(20,"Delete"),T(21,"0"),T(22,"1"),T(23,"2"),T(24,"3"),T(25,"4"),T(26,"5"),T(27,"6"),T(28,"7"),T(29,"8"),T(30,"9"),T(31,"A"),T(32,"B"),T(33,"C"),T(34,"D"),T(35,"E"),T(36,"F"),T(37,"G"),T(38,"H"),T(39,"I"),T(40,"J"),T(41,"K"),T(42,"L"),T(43,"M"),T(44,"N"),T(45,"O"),T(46,"P"),T(47,"Q"),T(48,"R"),T(49,"S"),T(50,"T"),T(51,"U"),T(52,"V"),T(53,"W"),T(54,"X"),T(55,"Y"),T(56,"Z"),T(57,"Meta"),T(58,"ContextMenu"),T(59,"F1"),T(60,"F2"),T(61,"F3"),T(62,"F4"),T(63,"F5"),T(64,"F6"),T(65,"F7"),T(66,"F8"),T(67,"F9"),T(68,"F10"),T(69,"F11"),T(70,"F12"),T(71,"F13"),T(72,"F14"),T(73,"F15"),T(74,"F16"),T(75,"F17"),T(76,"F18"),T(77,"F19"),T(78,"NumLock"),T(79,"ScrollLock"),T(80,";",";","OEM_1"),T(81,"=","=","OEM_PLUS"),T(82,",",",","OEM_COMMA"),T(83,"-","-","OEM_MINUS"),T(84,".",".","OEM_PERIOD"),T(85,"/","/","OEM_2"),T(86,"`","`","OEM_3"),T(110,"ABNT_C1"),T(111,"ABNT_C2"),T(87,"[","[","OEM_4"),T(88,"\\","\\","OEM_5"),T(89,"]","]","OEM_6"),T(90,"'","'","OEM_7"),T(91,"OEM_8"),T(92,"OEM_102"),T(93,"NumPad0"),T(94,"NumPad1"),T(95,"NumPad2"),T(96,"NumPad3"),T(97,"NumPad4"),T(98,"NumPad5"),T(99,"NumPad6"),T(100,"NumPad7"),T(101,"NumPad8"),T(102,"NumPad9"),T(103,"NumPad_Multiply"),T(104,"NumPad_Add"),T(105,"NumPad_Separator"),T(106,"NumPad_Subtract"),T(107,"NumPad_Decimal"),T(108,"NumPad_Divide")})();var V;(function(T){function te(p){return ne.keyCodeToStr(p)}T.toString=te;function U(p){return ne.strToKeyCode(p)}T.fromString=U;function _(p){return P.keyCodeToStr(p)}T.toUserSettingsUS=_;function h(p){return F.keyCodeToStr(p)}T.toUserSettingsGeneral=h;function g(p){return P.strToKeyCode(p)||F.strToKeyCode(p)}T.fromUserSettings=g})(V||(V={}));function B(T,te){var U=(te&65535)<<16>>>0;return(T|U)>>>0}function G(T,te){if(T===0)return null;var U=(T&65535)>>>0,_=(T&4294901760)>>>16;return _!==0?new I([x(U,te),x(_,te)]):new I([x(U,te)])}function x(T,te){var U=!!(T&2048),_=!!(T&256),h=te===2?_:U,g=!!(T&1024),p=!!(T&512),v=te===2?U:_,E=T&255;return new S(h,g,p,v,E)}var S=function(){function T(te,U,_,h,g){this.ctrlKey=te,this.shiftKey=U,this.altKey=_,this.metaKey=h,this.keyCode=g}return T.prototype.equals=function(te){return this.ctrlKey===te.ctrlKey&&this.shiftKey===te.shiftKey&&this.altKey===te.altKey&&this.metaKey===te.metaKey&&this.keyCode===te.keyCode},T.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},T.prototype.toChord=function(){return new I([this])},T.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},T}(),I=function(){function T(te){if(te.length===0)throw Object(R.b)("parts");this.parts=te}return T.prototype.equals=function(te){if(te===null||this.parts.length!==te.parts.length)return!1;for(var U=0;U<this.parts.length;U++)if(!this.parts[U].equals(te.parts[U]))return!1;return!0},T}(),K=function(){function T(te,U,_,h,g,p){this.ctrlKey=te,this.shiftKey=U,this.altKey=_,this.metaKey=h,this.keyLabel=g,this.keyAriaLabel=p}return T}(),D=function(){function T(){}return T}()},"/oaI":function(Et,A,o){},"0/Sa":function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("aokT"),re=function(){function ne(){}return ne.insert=function(P,F){return{range:new R.a(P.lineNumber,P.column,P.lineNumber,P.column),text:F,forceMoveMarkers:!0}},ne.delete=function(P){return{range:P,text:null}},ne.replace=function(P,F){return{range:P,text:F}},ne.replaceMove=function(P,F){return{range:P,text:F,forceMoveMarkers:!0}},ne}()},"09fa":function(Et,A,o){"use strict";o.d(A,"a",function(){return re}),o.d(A,"b",function(){return ne}),o.d(A,"c",function(){return P});var R=o("Cg/j"),re=Object(R.c)("logService"),ne;(function(F){F[F.Trace=0]="Trace",F[F.Debug=1]="Debug",F[F.Info=2]="Info",F[F.Warning=3]="Warning",F[F.Error=4]="Error",F[F.Critical=5]="Critical",F[F.Off=6]="Off"})(ne||(ne={}));var P=function(){function F(){}return F.prototype.getLevel=function(){return ne.Info},F.prototype.trace=function(V){for(var B=[],G=1;G<arguments.length;G++)B[G-1]=arguments[G]},F.prototype.error=function(V){for(var B=[],G=1;G<arguments.length;G++)B[G-1]=arguments[G]},F.prototype.dispose=function(){},F}()},"0JNc":function(Et,A,o){"use strict";o.d(A,"b",function(){return R}),o.d(A,"a",function(){return ne}),o.d(A,"c",function(){return P}),o.d(A,"d",function(){return B});var R="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function re(G){G===void 0&&(G="");for(var x="(-?\\d*\\.\\d\\w*)|([^",S=0,I=R;S<I.length;S++){var K=I[S];G.indexOf(K)>=0||(x+="\\"+K)}return x+="\\s]+)",new RegExp(x,"g")}var ne=re();function P(G){var x=ne;if(G&&G instanceof RegExp)if(G.global)x=G;else{var S="g";G.ignoreCase&&(S+="i"),G.multiline&&(S+="m"),G.unicode&&(S+="u"),x=new RegExp(G.source,S)}return x.lastIndex=0,x}function F(G,x,S,I){var K=G-1-I,D=S.lastIndexOf(" ",K-1)+1;x.lastIndex=D;for(var T;T=x.exec(S);){var te=T.index||0;if(te<=K&&x.lastIndex>=K)return{word:T[0],startColumn:I+1+te,endColumn:I+1+x.lastIndex}}return null}function V(G,x,S,I){var K=G-1-I;x.lastIndex=0;for(var D;D=x.exec(S);){var T=D.index||0;if(T>K)return null;if(x.lastIndex>=K)return{word:D[0],startColumn:I+1+T,endColumn:I+1+x.lastIndex}}return null}function B(G,x,S,I){x.lastIndex=0;var K=x.exec(S);if(!K)return null;var D=K[0].indexOf(" ")>=0?V(G,x,S,I):F(G,x,S,I);return x.lastIndex=0,D}},"0oIH":function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return o.e(210).then(o.bind(null,"Eg73"))}})},"1YUG":function(Et,A,o){"use strict";o.r(A),o.d(A,"CoreEditorCommand",function(){return oe}),o.d(A,"EditorScroll_",function(){return fe}),o.d(A,"RevealLine_",function(){return Se}),o.d(A,"CoreNavigationCommands",function(){return we}),o.d(A,"CoreEditingCommands",function(){return q});var R=o("3/fG"),re=o("746U"),ne=o("sswD"),P=o("Vxe3"),F=o("Ll0s"),V=o("cGHE"),B=o("aokT"),G=function(){function _e(){}return _e.columnSelect=function(de,se,he,ie,$,ve){for(var ye=Math.abs($-he)+1,Ue=he>$,tt=ie>ve,_t=ie<ve,At=[],Yt=0;Yt<ye;Yt++){var Ke=he+(Ue?-Yt:Yt),Ye=F.a.columnFromVisibleColumn2(de,se,Ke,ie),Xe=F.a.columnFromVisibleColumn2(de,se,Ke,ve),Ze=F.a.visibleColumnFromColumn2(de,se,new V.a(Ke,Ye)),We=F.a.visibleColumnFromColumn2(de,se,new V.a(Ke,Xe));_t&&(Ze>ve||We<ie)||tt&&(We>ie||Ze<ve)||At.push(new F.f(new B.a(Ke,Ye,Ke,Ye),0,new V.a(Ke,Xe),0))}if(At.length===0)for(var Yt=0;Yt<ye;Yt++){var Ke=he+(Ue?-Yt:Yt),Qe=se.getLineMaxColumn(Ke);At.push(new F.f(new B.a(Ke,Qe,Ke,Qe),0,new V.a(Ke,Qe),0))}return{viewStates:At,reversed:Ue,fromLineNumber:he,fromVisualColumn:ie,toLineNumber:$,toVisualColumn:ve}},_e.columnSelectLeft=function(de,se,he){var ie=he.toViewVisualColumn;return ie>1&&ie--,_e.columnSelect(de,se,he.fromViewLineNumber,he.fromViewVisualColumn,he.toViewLineNumber,ie)},_e.columnSelectRight=function(de,se,he){for(var ie=0,$=Math.min(he.fromViewLineNumber,he.toViewLineNumber),ve=Math.max(he.fromViewLineNumber,he.toViewLineNumber),ye=$;ye<=ve;ye++){var Ue=se.getLineMaxColumn(ye),tt=F.a.visibleColumnFromColumn2(de,se,new V.a(ye,Ue));ie=Math.max(ie,tt)}var _t=he.toViewVisualColumn;return _t<ie&&_t++,this.columnSelect(de,se,he.fromViewLineNumber,he.fromViewVisualColumn,he.toViewLineNumber,_t)},_e.columnSelectUp=function(de,se,he,ie){var $=ie?de.pageSize:1,ve=Math.max(1,he.toViewLineNumber-$);return this.columnSelect(de,se,he.fromViewLineNumber,he.fromViewVisualColumn,ve,he.toViewVisualColumn)},_e.columnSelectDown=function(de,se,he,ie){var $=ie?de.pageSize:1,ve=Math.min(se.getLineCount(),he.toViewLineNumber+$);return this.columnSelect(de,se,he.fromViewLineNumber,he.fromViewVisualColumn,ve,he.toViewVisualColumn)},_e}(),x=o("snIX"),S=o("+Fos"),I=o("N0LK"),K=o("5v8Y"),D=function(){var _e=function(se,he){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,$){ie.__proto__=$}||function(ie,$){for(var ve in $)$.hasOwnProperty(ve)&&(ie[ve]=$[ve])},_e(se,he)};return function(de,se){_e(de,se);function he(){this.constructor=de}de.prototype=se===null?Object.create(se):(he.prototype=se.prototype,new he)}}(),T=function(){function _e(){}return _e._createWord=function(de,se,he,ie,$){return{start:ie,end:$,wordType:se,nextCharClass:he}},_e._findPreviousWordOnLine=function(de,se,he){var ie=se.getLineContent(he.lineNumber);return this._doFindPreviousWordOnLine(ie,de,he)},_e._doFindPreviousWordOnLine=function(de,se,he){for(var ie=0,$=he.column-2;$>=0;$--){var ve=de.charCodeAt($),ye=se.get(ve);if(ye===0){if(ie===2)return this._createWord(de,ie,ye,$+1,this._findEndOfWord(de,se,ie,$+1));ie=1}else if(ye===2){if(ie===1)return this._createWord(de,ie,ye,$+1,this._findEndOfWord(de,se,ie,$+1));ie=2}else if(ye===1&&ie!==0)return this._createWord(de,ie,ye,$+1,this._findEndOfWord(de,se,ie,$+1))}return ie!==0?this._createWord(de,ie,1,0,this._findEndOfWord(de,se,ie,0)):null},_e._findEndOfWord=function(de,se,he,ie){for(var $=de.length,ve=ie;ve<$;ve++){var ye=de.charCodeAt(ve),Ue=se.get(ye);if(Ue===1||he===1&&Ue===2||he===2&&Ue===0)return ve}return $},_e._findNextWordOnLine=function(de,se,he){var ie=se.getLineContent(he.lineNumber);return this._doFindNextWordOnLine(ie,de,he)},_e._doFindNextWordOnLine=function(de,se,he){for(var ie=0,$=de.length,ve=he.column-1;ve<$;ve++){var ye=de.charCodeAt(ve),Ue=se.get(ye);if(Ue===0){if(ie===2)return this._createWord(de,ie,Ue,this._findStartOfWord(de,se,ie,ve-1),ve);ie=1}else if(Ue===2){if(ie===1)return this._createWord(de,ie,Ue,this._findStartOfWord(de,se,ie,ve-1),ve);ie=2}else if(Ue===1&&ie!==0)return this._createWord(de,ie,Ue,this._findStartOfWord(de,se,ie,ve-1),ve)}return ie!==0?this._createWord(de,ie,1,this._findStartOfWord(de,se,ie,$-1),$):null},_e._findStartOfWord=function(de,se,he,ie){for(var $=ie;$>=0;$--){var ve=de.charCodeAt($),ye=se.get(ve);if(ye===1||he===1&&ye===2||he===2&&ye===0)return $+1}return 0},_e.moveWordLeft=function(de,se,he,ie){var $=he.lineNumber,ve=he.column,ye=!1;ve===1&&$>1&&(ye=!0,$=$-1,ve=se.getLineMaxColumn($));var Ue=_e._findPreviousWordOnLine(de,se,new V.a($,ve));if(ie===0){if(Ue&&!ye){var tt=se.getLineLastNonWhitespaceColumn($);if(tt<ve)return new V.a($,Ue.end+1)}return new V.a($,Ue?Ue.start+1:1)}if(ie===1)return Ue&&Ue.wordType===2&&Ue.end-Ue.start==1&&Ue.nextCharClass===0&&(Ue=_e._findPreviousWordOnLine(de,se,new V.a($,Ue.start+1))),new V.a($,Ue?Ue.start+1:1);if(ie===3){for(;Ue&&Ue.wordType===2;)Ue=_e._findPreviousWordOnLine(de,se,new V.a($,Ue.start+1));return new V.a($,Ue?Ue.start+1:1)}return Ue&&ve<=Ue.end+1&&(Ue=_e._findPreviousWordOnLine(de,se,new V.a($,Ue.start+1))),new V.a($,Ue?Ue.end+1:1)},_e._moveWordPartLeft=function(de,se){var he=se.lineNumber,ie=de.getLineMaxColumn(he);if(se.column===1)return he>1?new V.a(he-1,de.getLineMaxColumn(he-1)):se;for(var $=de.getLineContent(he),ve=se.column-1;ve>1;ve--){var ye=$.charCodeAt(ve-2),Ue=$.charCodeAt(ve-1);if(ye!==95&&Ue===95)return new V.a(he,ve);if(I.B(ye)&&I.C(Ue))return new V.a(he,ve);if(I.C(ye)&&I.C(Ue)&&ve+1<ie){var tt=$.charCodeAt(ve);if(I.B(tt))return new V.a(he,ve)}}return new V.a(he,1)},_e.moveWordRight=function(de,se,he,ie){var $=he.lineNumber,ve=he.column,ye=!1;ve===se.getLineMaxColumn($)&&$<se.getLineCount()&&(ye=!0,$=$+1,ve=1);var Ue=_e._findNextWordOnLine(de,se,new V.a($,ve));if(ie===2)Ue&&Ue.wordType===2&&Ue.end-Ue.start==1&&Ue.nextCharClass===0&&(Ue=_e._findNextWordOnLine(de,se,new V.a($,Ue.end+1))),Ue?ve=Ue.end+1:ve=se.getLineMaxColumn($);else if(ie===3){for(ye&&(ve=0);Ue&&(Ue.wordType===2||Ue.start+1<=ve);)Ue=_e._findNextWordOnLine(de,se,new V.a($,Ue.end+1));Ue?ve=Ue.start+1:ve=se.getLineMaxColumn($)}else Ue&&!ye&&ve>=Ue.start+1&&(Ue=_e._findNextWordOnLine(de,se,new V.a($,Ue.end+1))),Ue?ve=Ue.start+1:ve=se.getLineMaxColumn($);return new V.a($,ve)},_e._moveWordPartRight=function(de,se){var he=se.lineNumber,ie=de.getLineMaxColumn(he);if(se.column===ie)return he<de.getLineCount()?new V.a(he+1,1):se;for(var $=de.getLineContent(he),ve=se.column+1;ve<ie;ve++){var ye=$.charCodeAt(ve-2),Ue=$.charCodeAt(ve-1);if(ye===95&&Ue!==95)return new V.a(he,ve);if(I.B(ye)&&I.C(Ue))return new V.a(he,ve);if(I.C(ye)&&I.C(Ue)&&ve+1<ie){var tt=$.charCodeAt(ve);if(I.B(tt))return new V.a(he,ve)}}return new V.a(he,ie)},_e._deleteWordLeftWhitespace=function(de,se){var he=de.getLineContent(se.lineNumber),ie=se.column-2,$=I.D(he,ie);return $+1<ie?new B.a(se.lineNumber,$+2,se.lineNumber,se.column):null},_e.deleteWordLeft=function(de,se,he,ie,$){if(!he.isEmpty())return he;var ve=new V.a(he.positionLineNumber,he.positionColumn),ye=ve.lineNumber,Ue=ve.column;if(ye===1&&Ue===1)return null;if(ie){var tt=this._deleteWordLeftWhitespace(se,ve);if(tt)return tt}var _t=_e._findPreviousWordOnLine(de,se,ve);return $===0?_t?Ue=_t.start+1:Ue>1?Ue=1:(ye--,Ue=se.getLineMaxColumn(ye)):(_t&&Ue<=_t.end+1&&(_t=_e._findPreviousWordOnLine(de,se,new V.a(ye,_t.start+1))),_t?Ue=_t.end+1:Ue>1?Ue=1:(ye--,Ue=se.getLineMaxColumn(ye))),new B.a(ye,Ue,ve.lineNumber,ve.column)},_e._deleteWordPartLeft=function(de,se){if(!se.isEmpty())return se;var he=se.getPosition(),ie=_e._moveWordPartLeft(de,he);return new B.a(he.lineNumber,he.column,ie.lineNumber,ie.column)},_e._findFirstNonWhitespaceChar=function(de,se){for(var he=de.length,ie=se;ie<he;ie++){var $=de.charAt(ie);if($!==" "&&$!==" ")return ie}return he},_e._deleteWordRightWhitespace=function(de,se){var he=de.getLineContent(se.lineNumber),ie=se.column-1,$=this._findFirstNonWhitespaceChar(he,ie);return ie+1<$?new B.a(se.lineNumber,se.column,se.lineNumber,$+1):null},_e.deleteWordRight=function(de,se,he,ie,$){if(!he.isEmpty())return he;var ve=new V.a(he.positionLineNumber,he.positionColumn),ye=ve.lineNumber,Ue=ve.column,tt=se.getLineCount(),_t=se.getLineMaxColumn(ye);if(ye===tt&&Ue===_t)return null;if(ie){var At=this._deleteWordRightWhitespace(se,ve);if(At)return At}var Yt=_e._findNextWordOnLine(de,se,ve);return $===2?Yt?Ue=Yt.end+1:Ue<_t||ye===tt?Ue=_t:(ye++,Yt=_e._findNextWordOnLine(de,se,new V.a(ye,1)),Yt?Ue=Yt.start+1:Ue=se.getLineMaxColumn(ye)):(Yt&&Ue>=Yt.start+1&&(Yt=_e._findNextWordOnLine(de,se,new V.a(ye,Yt.end+1))),Yt?Ue=Yt.start+1:Ue<_t||ye===tt?Ue=_t:(ye++,Yt=_e._findNextWordOnLine(de,se,new V.a(ye,1)),Yt?Ue=Yt.start+1:Ue=se.getLineMaxColumn(ye))),new B.a(ye,Ue,ve.lineNumber,ve.column)},_e._deleteWordPartRight=function(de,se){if(!se.isEmpty())return se;var he=se.getPosition(),ie=_e._moveWordPartRight(de,he);return new B.a(he.lineNumber,he.column,ie.lineNumber,ie.column)},_e.word=function(de,se,he,ie,$){var ve=Object(K.a)(de.wordSeparators),ye=_e._findPreviousWordOnLine(ve,se,$),Ue=_e._findNextWordOnLine(ve,se,$);if(!ie){var tt,_t;return ye&&ye.wordType===1&&ye.start<=$.column-1&&$.column-1<=ye.end?(tt=ye.start+1,_t=ye.end+1):Ue&&Ue.wordType===1&&Ue.start<=$.column-1&&$.column-1<=Ue.end?(tt=Ue.start+1,_t=Ue.end+1):(ye?tt=ye.end+1:tt=1,Ue?_t=Ue.start+1:_t=se.getLineMaxColumn($.lineNumber)),new F.f(new B.a($.lineNumber,tt,$.lineNumber,_t),0,new V.a($.lineNumber,_t),0)}var At,Yt;ye&&ye.wordType===1&&ye.start<$.column-1&&$.column-1<ye.end?(At=ye.start+1,Yt=ye.end+1):Ue&&Ue.wordType===1&&Ue.start<$.column-1&&$.column-1<Ue.end?(At=Ue.start+1,Yt=Ue.end+1):(At=$.column,Yt=$.column);var Ke=$.lineNumber,Ye;if(he.selectionStart.containsPosition($))Ye=he.selectionStart.endColumn;else if($.isBeforeOrEqual(he.selectionStart.getStartPosition())){Ye=At;var Xe=new V.a(Ke,Ye);he.selectionStart.containsPosition(Xe)&&(Ye=he.selectionStart.endColumn)}else{Ye=Yt;var Xe=new V.a(Ke,Ye);he.selectionStart.containsPosition(Xe)&&(Ye=he.selectionStart.startColumn)}return he.move(!0,Ke,Ye,0)},_e}(),te=function(_e){D(de,_e);function de(){return _e!==null&&_e.apply(this,arguments)||this}return de.deleteWordPartLeft=function(se,he,ie,$){var ve=U([T.deleteWordLeft(se,he,ie,$,0),T.deleteWordLeft(se,he,ie,$,2),T._deleteWordPartLeft(he,ie)]);return ve.sort(B.a.compareRangesUsingEnds),ve[2]},de.deleteWordPartRight=function(se,he,ie,$){var ve=U([T.deleteWordRight(se,he,ie,$,0),T.deleteWordRight(se,he,ie,$,2),T._deleteWordPartRight(he,ie)]);return ve.sort(B.a.compareRangesUsingStarts),ve[0]},de.moveWordPartLeft=function(se,he,ie){var $=U([T.moveWordLeft(se,he,ie,0),T.moveWordLeft(se,he,ie,2),T._moveWordPartLeft(he,ie)]);return $.sort(V.a.compare),$[2]},de.moveWordPartRight=function(se,he,ie){var $=U([T.moveWordRight(se,he,ie,0),T.moveWordRight(se,he,ie,2),T._moveWordPartRight(he,ie)]);return $.sort(V.a.compare),$[0]},de}(T);function U(_e){return _e.filter(function(de){return Boolean(de)})}var _=function(){function _e(){}return _e.addCursorDown=function(de,se,he){for(var ie=[],$=0,ve=0,ye=se.length;ve<ye;ve++){var Ue=se[ve];ie[$++]=new F.d(Ue.modelState,Ue.viewState),he?ie[$++]=F.d.fromModelState(S.a.translateDown(de.config,de.model,Ue.modelState)):ie[$++]=F.d.fromViewState(S.a.translateDown(de.config,de.viewModel,Ue.viewState))}return ie},_e.addCursorUp=function(de,se,he){for(var ie=[],$=0,ve=0,ye=se.length;ve<ye;ve++){var Ue=se[ve];ie[$++]=new F.d(Ue.modelState,Ue.viewState),he?ie[$++]=F.d.fromModelState(S.a.translateUp(de.config,de.model,Ue.modelState)):ie[$++]=F.d.fromViewState(S.a.translateUp(de.config,de.viewModel,Ue.viewState))}return ie},_e.moveToBeginningOfLine=function(de,se,he){for(var ie=[],$=0,ve=se.length;$<ve;$++){var ye=se[$];ie[$]=this._moveToLineStart(de,ye,he)}return ie},_e._moveToLineStart=function(de,se,he){var ie=se.viewState.position.column,$=se.modelState.position.column,ve=ie===$,ye=se.viewState.position.lineNumber,Ue=de.viewModel.getLineFirstNonWhitespaceColumn(ye),tt=ie===Ue;return!ve&&!tt?this._moveToLineStartByView(de,se,he):this._moveToLineStartByModel(de,se,he)},_e._moveToLineStartByView=function(de,se,he){return F.d.fromViewState(S.a.moveToBeginningOfLine(de.config,de.viewModel,se.viewState,he))},_e._moveToLineStartByModel=function(de,se,he){return F.d.fromModelState(S.a.moveToBeginningOfLine(de.config,de.model,se.modelState,he))},_e.moveToEndOfLine=function(de,se,he){for(var ie=[],$=0,ve=se.length;$<ve;$++){var ye=se[$];ie[$]=this._moveToLineEnd(de,ye,he)}return ie},_e._moveToLineEnd=function(de,se,he){var ie=se.viewState.position,$=de.viewModel.getLineMaxColumn(ie.lineNumber),ve=ie.column===$,ye=se.modelState.position,Ue=de.model.getLineMaxColumn(ye.lineNumber),tt=$-ie.column==Ue-ye.column;return ve||tt?this._moveToLineEndByModel(de,se,he):this._moveToLineEndByView(de,se,he)},_e._moveToLineEndByView=function(de,se,he){return F.d.fromViewState(S.a.moveToEndOfLine(de.config,de.viewModel,se.viewState,he))},_e._moveToLineEndByModel=function(de,se,he){return F.d.fromModelState(S.a.moveToEndOfLine(de.config,de.model,se.modelState,he))},_e.expandLineSelection=function(de,se){for(var he=[],ie=0,$=se.length;ie<$;ie++){var ve=se[ie],ye=ve.modelState.selection.startLineNumber,Ue=de.model.getLineCount(),tt=ve.modelState.selection.endLineNumber,_t=void 0;tt===Ue?_t=de.model.getLineMaxColumn(Ue):(tt++,_t=1),he[ie]=F.d.fromModelState(new F.f(new B.a(ye,1,ye,1),0,new V.a(tt,_t),0))}return he},_e.moveToBeginningOfBuffer=function(de,se,he){for(var ie=[],$=0,ve=se.length;$<ve;$++){var ye=se[$];ie[$]=F.d.fromModelState(S.a.moveToBeginningOfBuffer(de.config,de.model,ye.modelState,he))}return ie},_e.moveToEndOfBuffer=function(de,se,he){for(var ie=[],$=0,ve=se.length;$<ve;$++){var ye=se[$];ie[$]=F.d.fromModelState(S.a.moveToEndOfBuffer(de.config,de.model,ye.modelState,he))}return ie},_e.selectAll=function(de,se){var he=de.model.getLineCount(),ie=de.model.getLineMaxColumn(he);return F.d.fromModelState(new F.f(new B.a(1,1,1,1),0,new V.a(he,ie),0))},_e.line=function(de,se,he,ie,$){var ve=de.model.validatePosition(ie),ye=$?de.validateViewPosition(new V.a($.lineNumber,$.column),ve):de.convertModelPositionToViewPosition(ve);if(!he||!se.modelState.hasSelection()){var Ue=de.model.getLineCount(),tt=ve.lineNumber+1,_t=1;return tt>Ue&&(tt=Ue,_t=de.model.getLineMaxColumn(tt)),F.d.fromModelState(new F.f(new B.a(ve.lineNumber,1,tt,_t),0,new V.a(tt,_t),0))}var At=se.modelState.selectionStart.getStartPosition().lineNumber;if(ve.lineNumber<At)return F.d.fromViewState(se.viewState.move(se.modelState.hasSelection(),ye.lineNumber,1,0));if(ve.lineNumber>At){var Ue=de.viewModel.getLineCount(),Yt=ye.lineNumber+1,Ke=1;return Yt>Ue&&(Yt=Ue,Ke=de.viewModel.getLineMaxColumn(Yt)),F.d.fromViewState(se.viewState.move(se.modelState.hasSelection(),Yt,Ke,0))}else{var Ye=se.modelState.selectionStart.getEndPosition();return F.d.fromModelState(se.modelState.move(se.modelState.hasSelection(),Ye.lineNumber,Ye.column,0))}},_e.word=function(de,se,he,ie){var $=de.model.validatePosition(ie);return F.d.fromModelState(T.word(de.config,de.model,se.modelState,he,$))},_e.cancelSelection=function(de,se){if(!se.modelState.hasSelection())return new F.d(se.modelState,se.viewState);var he=se.viewState.position.lineNumber,ie=se.viewState.position.column;return F.d.fromViewState(new F.f(new B.a(he,ie,he,ie),0,new V.a(he,ie),0))},_e.moveTo=function(de,se,he,ie,$){var ve=de.model.validatePosition(ie),ye=$?de.validateViewPosition(new V.a($.lineNumber,$.column),ve):de.convertModelPositionToViewPosition(ve);return F.d.fromViewState(se.viewState.move(he,ye.lineNumber,ye.column,0))},_e.move=function(de,se,he){var ie=he.select,$=he.value;switch(he.direction){case 0:return he.unit===4?this._moveHalfLineLeft(de,se,ie):this._moveLeft(de,se,ie,$);case 1:return he.unit===4?this._moveHalfLineRight(de,se,ie):this._moveRight(de,se,ie,$);case 2:return he.unit===2?this._moveUpByViewLines(de,se,ie,$):this._moveUpByModelLines(de,se,ie,$);case 3:return he.unit===2?this._moveDownByViewLines(de,se,ie,$):this._moveDownByModelLines(de,se,ie,$);case 4:return this._moveToViewMinColumn(de,se,ie);case 5:return this._moveToViewFirstNonWhitespaceColumn(de,se,ie);case 6:return this._moveToViewCenterColumn(de,se,ie);case 7:return this._moveToViewMaxColumn(de,se,ie);case 8:return this._moveToViewLastNonWhitespaceColumn(de,se,ie);case 9:{var ve=se[0],ye=de.getCompletelyVisibleModelRange(),Ue=this._firstLineNumberInRange(de.model,ye,$),tt=de.model.getLineFirstNonWhitespaceColumn(Ue);return[this._moveToModelPosition(de,ve,ie,Ue,tt)]}case 11:{var ve=se[0],ye=de.getCompletelyVisibleModelRange(),Ue=this._lastLineNumberInRange(de.model,ye,$),tt=de.model.getLineFirstNonWhitespaceColumn(Ue);return[this._moveToModelPosition(de,ve,ie,Ue,tt)]}case 10:{var ve=se[0],ye=de.getCompletelyVisibleModelRange(),Ue=Math.round((ye.startLineNumber+ye.endLineNumber)/2),tt=de.model.getLineFirstNonWhitespaceColumn(Ue);return[this._moveToModelPosition(de,ve,ie,Ue,tt)]}case 12:{for(var _t=de.getCompletelyVisibleViewRange(),At=[],Yt=0,Ke=se.length;Yt<Ke;Yt++){var ve=se[Yt];At[Yt]=this.findPositionInViewportIfOutside(de,ve,_t,ie)}return At}}return null},_e.findPositionInViewportIfOutside=function(de,se,he,ie){var $=se.viewState.position.lineNumber;if(he.startLineNumber<=$&&$<=he.endLineNumber-1)return new F.d(se.modelState,se.viewState);$>he.endLineNumber-1&&($=he.endLineNumber-1),$<he.startLineNumber&&($=he.startLineNumber);var ve=de.viewModel.getLineFirstNonWhitespaceColumn($);return this._moveToViewPosition(de,se,ie,$,ve)},_e._firstLineNumberInRange=function(de,se,he){var ie=se.startLineNumber;return se.startColumn!==de.getLineMinColumn(ie)&&ie++,Math.min(se.endLineNumber,ie+he-1)},_e._lastLineNumberInRange=function(de,se,he){var ie=se.startLineNumber;return se.startColumn!==de.getLineMinColumn(ie)&&ie++,Math.max(ie,se.endLineNumber-he+1)},_e._moveLeft=function(de,se,he,ie){for(var $=[],ve=0,ye=se.length;ve<ye;ve++){var Ue=se[ve],tt=S.a.moveLeft(de.config,de.viewModel,Ue.viewState,he,ie);if(ie===1&&tt.position.lineNumber!==Ue.viewState.position.lineNumber){var _t=de.viewModel.coordinatesConverter.convertViewPositionToModelPosition(tt.position);_t.lineNumber===Ue.modelState.position.lineNumber&&(tt=S.a.moveLeft(de.config,de.viewModel,tt,he,1))}$[ve]=F.d.fromViewState(tt)}return $},_e._moveHalfLineLeft=function(de,se,he){for(var ie=[],$=0,ve=se.length;$<ve;$++){var ye=se[$],Ue=ye.viewState.position.lineNumber,tt=Math.round(de.viewModel.getLineContent(Ue).length/2);ie[$]=F.d.fromViewState(S.a.moveLeft(de.config,de.viewModel,ye.viewState,he,tt))}return ie},_e._moveRight=function(de,se,he,ie){for(var $=[],ve=0,ye=se.length;ve<ye;ve++){var Ue=se[ve],tt=S.a.moveRight(de.config,de.viewModel,Ue.viewState,he,ie);if(ie===1&&tt.position.lineNumber!==Ue.viewState.position.lineNumber){var _t=de.viewModel.coordinatesConverter.convertViewPositionToModelPosition(tt.position);_t.lineNumber===Ue.modelState.position.lineNumber&&(tt=S.a.moveRight(de.config,de.viewModel,tt,he,1))}$[ve]=F.d.fromViewState(tt)}return $},_e._moveHalfLineRight=function(de,se,he){for(var ie=[],$=0,ve=se.length;$<ve;$++){var ye=se[$],Ue=ye.viewState.position.lineNumber,tt=Math.round(de.viewModel.getLineContent(Ue).length/2);ie[$]=F.d.fromViewState(S.a.moveRight(de.config,de.viewModel,ye.viewState,he,tt))}return ie},_e._moveDownByViewLines=function(de,se,he,ie){for(var $=[],ve=0,ye=se.length;ve<ye;ve++){var Ue=se[ve];$[ve]=F.d.fromViewState(S.a.moveDown(de.config,de.viewModel,Ue.viewState,he,ie))}return $},_e._moveDownByModelLines=function(de,se,he,ie){for(var $=[],ve=0,ye=se.length;ve<ye;ve++){var Ue=se[ve];$[ve]=F.d.fromModelState(S.a.moveDown(de.config,de.model,Ue.modelState,he,ie))}return $},_e._moveUpByViewLines=function(de,se,he,ie){for(var $=[],ve=0,ye=se.length;ve<ye;ve++){var Ue=se[ve];$[ve]=F.d.fromViewState(S.a.moveUp(de.config,de.viewModel,Ue.viewState,he,ie))}return $},_e._moveUpByModelLines=function(de,se,he,ie){for(var $=[],ve=0,ye=se.length;ve<ye;ve++){var Ue=se[ve];$[ve]=F.d.fromModelState(S.a.moveUp(de.config,de.model,Ue.modelState,he,ie))}return $},_e._moveToViewPosition=function(de,se,he,ie,$){return F.d.fromViewState(se.viewState.move(he,ie,$,0))},_e._moveToModelPosition=function(de,se,he,ie,$){return F.d.fromModelState(se.modelState.move(he,ie,$,0))},_e._moveToViewMinColumn=function(de,se,he){for(var ie=[],$=0,ve=se.length;$<ve;$++){var ye=se[$],Ue=ye.viewState.position.lineNumber,tt=de.viewModel.getLineMinColumn(Ue);ie[$]=this._moveToViewPosition(de,ye,he,Ue,tt)}return ie},_e._moveToViewFirstNonWhitespaceColumn=function(de,se,he){for(var ie=[],$=0,ve=se.length;$<ve;$++){var ye=se[$],Ue=ye.viewState.position.lineNumber,tt=de.viewModel.getLineFirstNonWhitespaceColumn(Ue);ie[$]=this._moveToViewPosition(de,ye,he,Ue,tt)}return ie},_e._moveToViewCenterColumn=function(de,se,he){for(var ie=[],$=0,ve=se.length;$<ve;$++){var ye=se[$],Ue=ye.viewState.position.lineNumber,tt=Math.round((de.viewModel.getLineMaxColumn(Ue)+de.viewModel.getLineMinColumn(Ue))/2);ie[$]=this._moveToViewPosition(de,ye,he,Ue,tt)}return ie},_e._moveToViewMaxColumn=function(de,se,he){for(var ie=[],$=0,ve=se.length;$<ve;$++){var ye=se[$],Ue=ye.viewState.position.lineNumber,tt=de.viewModel.getLineMaxColumn(Ue);ie[$]=this._moveToViewPosition(de,ye,he,Ue,tt)}return ie},_e._moveToViewLastNonWhitespaceColumn=function(de,se,he){for(var ie=[],$=0,ve=se.length;$<ve;$++){var ye=se[$],Ue=ye.viewState.position.lineNumber,tt=de.viewModel.getLineLastNonWhitespaceColumn(Ue);ie[$]=this._moveToViewPosition(de,ye,he,Ue,tt)}return ie},_e}(),h;(function(_e){var de=function(ie){if(!re.i(ie))return!1;var $=ie;return!(!re.j($.to)||!re.k($.select)&&!re.e($.select)||!re.k($.by)&&!re.j($.by)||!re.k($.value)&&!re.h($.value))};_e.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:de,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}}}}]},_e.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"},_e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function se(he){if(!he.to)return null;var ie;switch(he.to){case _e.RawDirection.Left:ie=0;break;case _e.RawDirection.Right:ie=1;break;case _e.RawDirection.Up:ie=2;break;case _e.RawDirection.Down:ie=3;break;case _e.RawDirection.WrappedLineStart:ie=4;break;case _e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:ie=5;break;case _e.RawDirection.WrappedLineColumnCenter:ie=6;break;case _e.RawDirection.WrappedLineEnd:ie=7;break;case _e.RawDirection.WrappedLineLastNonWhitespaceCharacter:ie=8;break;case _e.RawDirection.ViewPortTop:ie=9;break;case _e.RawDirection.ViewPortBottom:ie=11;break;case _e.RawDirection.ViewPortCenter:ie=10;break;case _e.RawDirection.ViewPortIfOutside:ie=12;break;default:return null}var $=0;switch(he.by){case _e.RawUnit.Line:$=1;break;case _e.RawUnit.WrappedLine:$=2;break;case _e.RawUnit.Character:$=3;break;case _e.RawUnit.HalfLine:$=4;break}return{direction:ie,unit:$,select:!!he.select,value:he.value||1}}_e.parse=se})(h||(h={}));var g=o("GR/f"),p=o("iuje"),v=o("wQH0"),E=o("T8No"),k=function(){var _e=function(se,he){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,$){ie.__proto__=$}||function(ie,$){for(var ve in $)$.hasOwnProperty(ve)&&(ie[ve]=$[ve])},_e(se,he)};return function(de,se){_e(de,se);function he(){this.constructor=de}de.prototype=se===null?Object.create(se):(he.prototype=se.prototype,new he)}}(),z=0,oe=function(_e){k(de,_e);function de(){return _e!==null&&_e.apply(this,arguments)||this}return de.prototype.runEditorCommand=function(se,he,ie){var $=he._getCursors();!$||this.runCoreEditorCommand($,ie||{})},de}(ne.c),fe;(function(_e){var de=function(ie){if(!re.i(ie))return!1;var $=ie;return!(!re.j($.to)||!re.k($.by)&&!re.j($.by)||!re.k($.value)&&!re.h($.value)||!re.k($.revealCursor)&&!re.e($.revealCursor))};_e.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:de,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"}}}}]},_e.RawDirection={Up:"up",Down:"down"},_e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"};function se(he){var ie;switch(he.to){case _e.RawDirection.Up:ie=1;break;case _e.RawDirection.Down:ie=2;break;default:return null}var $;switch(he.by){case _e.RawUnit.Line:$=1;break;case _e.RawUnit.WrappedLine:$=2;break;case _e.RawUnit.Page:$=3;break;case _e.RawUnit.HalfPage:$=4;break;default:$=2}var ve=Math.floor(he.value||1),ye=!!he.revealCursor;return{direction:ie,unit:$,value:ve,revealCursor:ye,select:!!he.select}}_e.parse=se})(fe||(fe={}));var Se;(function(_e){var de=function(he){if(!re.i(he))return!1;var ie=he;return!(!re.h(ie.lineNumber)||!re.k(ie.at)&&!re.j(ie.at))};_e.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:de,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},_e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(Se||(Se={}));var we;(function(_e){var de=function(Xe){k(Ze,Xe);function Ze(We){var Qe=Xe.call(this,We)||this;return Qe._inSelectionMode=We.inSelectionMode,Qe}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,[_.moveTo(We.context,We.getPrimaryCursor(),this._inSelectionMode,Qe.position,Qe.viewPosition)]),We.reveal(Qe.source,!0,0,0)},Ze}(oe);_e.MoveTo=Object(ne.g)(new de({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),_e.MoveToSelect=Object(ne.g)(new de({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var se=function(Xe){k(Ze,Xe);function Ze(){return Xe!==null&&Xe.apply(this,arguments)||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement();var Ee=this._getColumnSelectResult(We.context,We.getPrimaryCursor(),We.getColumnSelectData(),Qe);We.setStates(Qe.source,3,Ee.viewStates.map(function(W){return F.d.fromViewState(W)})),We.setColumnSelectData({isReal:!0,fromViewLineNumber:Ee.fromLineNumber,fromViewVisualColumn:Ee.fromVisualColumn,toViewLineNumber:Ee.toLineNumber,toViewVisualColumn:Ee.toVisualColumn}),We.reveal(Qe.source,!0,Ee.reversed?1:2,0)},Ze}(oe);_e.ColumnSelect=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"columnSelect",precondition:void 0})||this}return Ze.prototype._getColumnSelectResult=function(We,Qe,Ee,W){var ee=We.model.validatePosition(W.position),Ae=We.validateViewPosition(new V.a(W.viewPosition.lineNumber,W.viewPosition.column),ee),me=W.doColumnSelect?Ee.fromViewLineNumber:Ae.lineNumber,Me=W.doColumnSelect?Ee.fromViewVisualColumn:W.mouseColumn-1;return G.columnSelect(We.config,We.viewModel,me,Me,Ae.lineNumber,W.mouseColumn-1)},Ze}(se))),_e.CursorColumnSelectLeft=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|1024|512|15,linux:{primary:0}}})||this}return Ze.prototype._getColumnSelectResult=function(We,Qe,Ee,W){return G.columnSelectLeft(We.config,We.viewModel,Ee)},Ze}(se))),_e.CursorColumnSelectRight=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|1024|512|17,linux:{primary:0}}})||this}return Ze.prototype._getColumnSelectResult=function(We,Qe,Ee,W){return G.columnSelectRight(We.config,We.viewModel,Ee)},Ze}(se)));var he=function(Xe){k(Ze,Xe);function Ze(We){var Qe=Xe.call(this,We)||this;return Qe._isPaged=We.isPaged,Qe}return Ze.prototype._getColumnSelectResult=function(We,Qe,Ee,W){return G.columnSelectUp(We.config,We.viewModel,Ee,this._isPaged)},Ze}(se);_e.CursorColumnSelectUp=Object(ne.g)(new he({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|1024|512|16,linux:{primary:0}}})),_e.CursorColumnSelectPageUp=Object(ne.g)(new he({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|1024|512|11,linux:{primary:0}}}));var ie=function(Xe){k(Ze,Xe);function Ze(We){var Qe=Xe.call(this,We)||this;return Qe._isPaged=We.isPaged,Qe}return Ze.prototype._getColumnSelectResult=function(We,Qe,Ee,W){return G.columnSelectDown(We.config,We.viewModel,Ee,this._isPaged)},Ze}(se);_e.CursorColumnSelectDown=Object(ne.g)(new ie({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|1024|512|18,linux:{primary:0}}})),_e.CursorColumnSelectPageDown=Object(ne.g)(new ie({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|1024|512|12,linux:{primary:0}}}));var $=function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"cursorMove",precondition:void 0,description:h.description})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){var Ee=h.parse(Qe);!Ee||this._runCursorMove(We,Qe.source,Ee)},Ze.prototype._runCursorMove=function(We,Qe,Ee){We.context.model.pushStackElement(),We.setStates(Qe,3,_.move(We.context,We.getAll(),Ee)),We.reveal(Qe,!0,0,0)},Ze}(oe);_e.CursorMoveImpl=$,_e.CursorMove=Object(ne.g)(new $);var ve=function(Xe){k(Ze,Xe);function Ze(We){var Qe=Xe.call(this,We)||this;return Qe._staticArgs=We.args,Qe}return Ze.prototype.runCoreEditorCommand=function(We,Qe){var Ee=this._staticArgs;this._staticArgs.value===-1&&(Ee={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:We.context.config.pageSize}),_e.CursorMove._runCursorMove(We,Qe.source,Ee)},Ze}(oe);_e.CursorLeft=Object(ne.g)(new ve({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:15,mac:{primary:15,secondary:[256|32]}}})),_e.CursorLeftSelect=Object(ne.g)(new ve({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:1024|15}})),_e.CursorRight=Object(ne.g)(new ve({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:17,mac:{primary:17,secondary:[256|36]}}})),_e.CursorRightSelect=Object(ne.g)(new ve({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:1024|17}})),_e.CursorUp=Object(ne.g)(new ve({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:16,mac:{primary:16,secondary:[256|46]}}})),_e.CursorUpSelect=Object(ne.g)(new ve({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:1024|16,secondary:[2048|1024|16],mac:{primary:1024|16},linux:{primary:1024|16}}})),_e.CursorPageUp=Object(ne.g)(new ve({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:11}})),_e.CursorPageUpSelect=Object(ne.g)(new ve({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:1024|11}})),_e.CursorDown=Object(ne.g)(new ve({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:18,mac:{primary:18,secondary:[256|44]}}})),_e.CursorDownSelect=Object(ne.g)(new ve({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:1024|18,secondary:[2048|1024|18],mac:{primary:1024|18},linux:{primary:1024|18}}})),_e.CursorPageDown=Object(ne.g)(new ve({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:12}})),_e.CursorPageDownSelect=Object(ne.g)(new ve({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:1024|12}})),_e.CreateCursor=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"createCursor",precondition:void 0})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){var Ee=We.context,W;Qe.wholeLine?W=_.line(Ee,We.getPrimaryCursor(),!1,Qe.position,Qe.viewPosition):W=_.moveTo(Ee,We.getPrimaryCursor(),!1,Qe.position,Qe.viewPosition);var ee=We.getAll();if(ee.length>1)for(var Ae=W.modelState?W.modelState.position:null,me=W.viewState?W.viewState.position:null,Me=0,Re=ee.length;Me<Re;Me++){var ge=ee[Me];if(!(Ae&&!ge.modelState.selection.containsPosition(Ae))&&!(me&&!ge.viewState.selection.containsPosition(me))){ee.splice(Me,1),We.context.model.pushStackElement(),We.setStates(Qe.source,3,ee);return}}ee.push(W),We.context.model.pushStackElement(),We.setStates(Qe.source,3,ee)},Ze}(oe))),_e.LastCursorMoveToSelect=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){var Ee=We.context,W=We.getLastAddedCursorIndex(),ee=We.getAll(),Ae=ee.slice(0);Ae[W]=_.moveTo(Ee,ee[W],!0,Qe.position,Qe.viewPosition),We.context.model.pushStackElement(),We.setStates(Qe.source,3,Ae)},Ze}(oe)));var ye=function(Xe){k(Ze,Xe);function Ze(We){var Qe=Xe.call(this,We)||this;return Qe._inSelectionMode=We.inSelectionMode,Qe}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,_.moveToBeginningOfLine(We.context,We.getAll(),this._inSelectionMode)),We.reveal(Qe.source,!0,0,0)},Ze}(oe);_e.CursorHome=Object(ne.g)(new ye({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2048|15]}}})),_e.CursorHomeSelect=Object(ne.g)(new ye({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:1024|14,mac:{primary:1024|14,secondary:[2048|1024|15]}}})),_e.CursorLineStart=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:0,mac:{primary:256|31}}})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,this._exec(We.context,We.getAll())),We.reveal(Qe.source,!0,0,0)},Ze.prototype._exec=function(We,Qe){for(var Ee=[],W=0,ee=Qe.length;W<ee;W++){var Ae=Qe[W],me=Ae.modelState.position.lineNumber;Ee[W]=F.d.fromModelState(Ae.modelState.move(!1,me,1,0))}return Ee},Ze}(oe)));var Ue=function(Xe){k(Ze,Xe);function Ze(We){var Qe=Xe.call(this,We)||this;return Qe._inSelectionMode=We.inSelectionMode,Qe}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,_.moveToEndOfLine(We.context,We.getAll(),this._inSelectionMode)),We.reveal(Qe.source,!0,0,0)},Ze}(oe);_e.CursorEnd=Object(ne.g)(new Ue({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2048|17]}}})),_e.CursorEndSelect=Object(ne.g)(new Ue({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:1024|13,mac:{primary:1024|13,secondary:[2048|1024|17]}}})),_e.CursorLineEnd=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:0,mac:{primary:256|35}}})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,this._exec(We.context,We.getAll())),We.reveal(Qe.source,!0,0,0)},Ze.prototype._exec=function(We,Qe){for(var Ee=[],W=0,ee=Qe.length;W<ee;W++){var Ae=Qe[W],me=Ae.modelState.position.lineNumber,Me=We.model.getLineMaxColumn(me);Ee[W]=F.d.fromModelState(Ae.modelState.move(!1,me,Me,0))}return Ee},Ze}(oe)));var tt=function(Xe){k(Ze,Xe);function Ze(We){var Qe=Xe.call(this,We)||this;return Qe._inSelectionMode=We.inSelectionMode,Qe}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,_.moveToBeginningOfBuffer(We.context,We.getAll(),this._inSelectionMode)),We.reveal(Qe.source,!0,0,0)},Ze}(oe);_e.CursorTop=Object(ne.g)(new tt({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|14,mac:{primary:2048|16}}})),_e.CursorTopSelect=Object(ne.g)(new tt({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|1024|14,mac:{primary:2048|1024|16}}}));var _t=function(Xe){k(Ze,Xe);function Ze(We){var Qe=Xe.call(this,We)||this;return Qe._inSelectionMode=We.inSelectionMode,Qe}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,_.moveToEndOfBuffer(We.context,We.getAll(),this._inSelectionMode)),We.reveal(Qe.source,!0,0,0)},Ze}(oe);_e.CursorBottom=Object(ne.g)(new _t({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|13,mac:{primary:2048|18}}})),_e.CursorBottomSelect=Object(ne.g)(new _t({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|1024|13,mac:{primary:2048|1024|18}}}));var At=function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"editorScroll",precondition:void 0,description:fe.description})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){var Ee=fe.parse(Qe);!Ee||this._runEditorScroll(We,Qe.source,Ee)},Ze.prototype._runEditorScroll=function(We,Qe,Ee){var W=this._computeDesiredScrollTop(We.context,Ee);if(Ee.revealCursor){var ee=We.context.getCompletelyVisibleViewRangeAtScrollTop(W);We.setStates(Qe,3,[_.findPositionInViewportIfOutside(We.context,We.getPrimaryCursor(),ee,Ee.select)])}We.scrollTo(W)},Ze.prototype._computeDesiredScrollTop=function(We,Qe){if(Qe.unit===1){var Ee=We.getCompletelyVisibleModelRange(),W=void 0;Qe.direction===1?W=Math.max(1,Ee.startLineNumber-Qe.value):W=Math.min(We.model.getLineCount(),Ee.startLineNumber+Qe.value);var ee=We.convertModelPositionToViewPosition(new V.a(W,1));return We.getVerticalOffsetForViewLine(ee.lineNumber)}var Ae;Qe.unit===3?Ae=We.config.pageSize*Qe.value:Qe.unit===4?Ae=Math.round(We.config.pageSize/2)*Qe.value:Ae=Qe.value;var me=(Qe.direction===1?-1:1)*Ae;return We.getCurrentScrollTop()+me*We.config.lineHeight},Ze}(oe);_e.EditorScrollImpl=At,_e.EditorScroll=Object(ne.g)(new At),_e.ScrollLineUp=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|16,mac:{primary:256|11}}})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){_e.EditorScroll._runEditorScroll(We,Qe.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},Ze}(oe))),_e.ScrollPageUp=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|11,win:{primary:512|11},linux:{primary:512|11}}})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){_e.EditorScroll._runEditorScroll(We,Qe.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},Ze}(oe))),_e.ScrollLineDown=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|18,mac:{primary:256|12}}})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){_e.EditorScroll._runEditorScroll(We,Qe.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},Ze}(oe))),_e.ScrollPageDown=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|12,win:{primary:512|12},linux:{primary:512|12}}})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){_e.EditorScroll._runEditorScroll(We,Qe.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},Ze}(oe)));var Yt=function(Xe){k(Ze,Xe);function Ze(We){var Qe=Xe.call(this,We)||this;return Qe._inSelectionMode=We.inSelectionMode,Qe}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,[_.word(We.context,We.getPrimaryCursor(),this._inSelectionMode,Qe.position)]),We.reveal(Qe.source,!0,0,0)},Ze}(oe);_e.WordSelect=Object(ne.g)(new Yt({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),_e.WordSelectDrag=Object(ne.g)(new Yt({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),_e.LastCursorWordSelect=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){var Ee=We.context,W=We.getLastAddedCursorIndex(),ee=We.getAll(),Ae=ee.slice(0),me=ee[W];Ae[W]=_.word(Ee,me,me.modelState.hasSelection(),Qe.position),Ee.model.pushStackElement(),We.setStates(Qe.source,3,Ae)},Ze}(oe)));var Ke=function(Xe){k(Ze,Xe);function Ze(We){var Qe=Xe.call(this,We)||this;return Qe._inSelectionMode=We.inSelectionMode,Qe}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,[_.line(We.context,We.getPrimaryCursor(),this._inSelectionMode,Qe.position,Qe.viewPosition)]),We.reveal(Qe.source,!1,0,0)},Ze}(oe);_e.LineSelect=Object(ne.g)(new Ke({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),_e.LineSelectDrag=Object(ne.g)(new Ke({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var Ye=function(Xe){k(Ze,Xe);function Ze(We){var Qe=Xe.call(this,We)||this;return Qe._inSelectionMode=We.inSelectionMode,Qe}return Ze.prototype.runCoreEditorCommand=function(We,Qe){var Ee=We.getLastAddedCursorIndex(),W=We.getAll(),ee=W.slice(0);ee[Ee]=_.line(We.context,W[Ee],this._inSelectionMode,Qe.position,Qe.viewPosition),We.context.model.pushStackElement(),We.setStates(Qe.source,3,ee)},Ze}(oe);_e.LastCursorLineSelect=Object(ne.g)(new Ye({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),_e.LastCursorLineSelectDrag=Object(ne.g)(new Ye({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),_e.ExpandLineSelection=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|42}})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,_.expandLineSelection(We.context,We.getAll())),We.reveal(Qe.source,!0,0,0)},Ze}(oe))),_e.CancelSelection=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"cancelSelection",precondition:v.a.hasNonEmptySelection,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,[_.cancelSelection(We.context,We.getPrimaryCursor())]),We.reveal(Qe.source,!0,0,0)},Ze}(oe))),_e.RemoveSecondaryCursors=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"removeSecondaryCursors",precondition:v.a.hasMultipleSelections,kbOpts:{weight:z+1,kbExpr:v.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,[We.getPrimaryCursor()]),We.reveal(Qe.source,!0,0,0)},Ze}(oe))),_e.RevealLine=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"revealLine",precondition:void 0,description:Se.description})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){var Ee=Qe,W=(Ee.lineNumber||0)+1;W<1&&(W=1);var ee=We.context.model.getLineCount();W>ee&&(W=ee);var Ae=new B.a(W,1,W,We.context.model.getLineMaxColumn(W)),me=0;if(Ee.at)switch(Ee.at){case Se.RawAtArgument.Top:me=3;break;case Se.RawAtArgument.Center:me=1;break;case Se.RawAtArgument.Bottom:me=4;break;default:break}var Me=We.context.convertModelRangeToViewRange(Ae);We.revealRange(Qe.source,!1,Me,me,0)},Ze}(oe))),_e.SelectAll=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"selectAll",precondition:void 0})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,[_.selectAll(We.context,We.getPrimaryCursor())])},Ze}(oe))),_e.SetSelection=Object(ne.g)(new(function(Xe){k(Ze,Xe);function Ze(){return Xe.call(this,{id:"setSelection",precondition:void 0})||this}return Ze.prototype.runCoreEditorCommand=function(We,Qe){We.context.model.pushStackElement(),We.setStates(Qe.source,3,[F.d.fromModelSelection(Qe.selection)])},Ze}(oe)))})(we||(we={}));var q;(function(_e){var de=function(se){k(he,se);function he(){return se!==null&&se.apply(this,arguments)||this}return he.prototype.runEditorCommand=function(ie,$,ve){var ye=$._getCursors();!ye||this.runCoreEditingCommand($,ye,ve||{})},he}(ne.c);_e.CoreEditingCommand=de,_e.LineBreakInsert=Object(ne.g)(new(function(se){k(he,se);function he(){return se.call(this,{id:"lineBreakInsert",precondition:v.a.writable,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:0,mac:{primary:256|45}}})||this}return he.prototype.runCoreEditingCommand=function(ie,$,ve){ie.pushUndoStop(),ie.executeCommands(this.id,g.a.lineBreakInsert($.context.config,$.context.model,$.getAll().map(function(ye){return ye.modelState.selection})))},he}(de))),_e.Outdent=Object(ne.g)(new(function(se){k(he,se);function he(){return se.call(this,{id:"outdent",precondition:v.a.writable,kbOpts:{weight:z,kbExpr:E.a.and(v.a.editorTextFocus,v.a.tabDoesNotMoveFocus),primary:1024|2}})||this}return he.prototype.runCoreEditingCommand=function(ie,$,ve){ie.pushUndoStop(),ie.executeCommands(this.id,g.a.outdent($.context.config,$.context.model,$.getAll().map(function(ye){return ye.modelState.selection}))),ie.pushUndoStop()},he}(de))),_e.Tab=Object(ne.g)(new(function(se){k(he,se);function he(){return se.call(this,{id:"tab",precondition:v.a.writable,kbOpts:{weight:z,kbExpr:E.a.and(v.a.editorTextFocus,v.a.tabDoesNotMoveFocus),primary:2}})||this}return he.prototype.runCoreEditingCommand=function(ie,$,ve){ie.pushUndoStop(),ie.executeCommands(this.id,g.a.tab($.context.config,$.context.model,$.getAll().map(function(ye){return ye.modelState.selection}))),ie.pushUndoStop()},he}(de))),_e.DeleteLeft=Object(ne.g)(new(function(se){k(he,se);function he(){return se.call(this,{id:"deleteLeft",precondition:v.a.writable,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:1,secondary:[1024|1],mac:{primary:1,secondary:[1024|1,256|38,256|1]}}})||this}return he.prototype.runCoreEditingCommand=function(ie,$,ve){var ye=x.a.deleteLeft($.getPrevEditOperationType(),$.context.config,$.context.model,$.getAll().map(function(_t){return _t.modelState.selection})),Ue=ye[0],tt=ye[1];Ue&&ie.pushUndoStop(),ie.executeCommands(this.id,tt),$.setPrevEditOperationType(2)},he}(de))),_e.DeleteRight=Object(ne.g)(new(function(se){k(he,se);function he(){return se.call(this,{id:"deleteRight",precondition:v.a.writable,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:20,mac:{primary:20,secondary:[256|34,256|20]}}})||this}return he.prototype.runCoreEditingCommand=function(ie,$,ve){var ye=x.a.deleteRight($.getPrevEditOperationType(),$.context.config,$.context.model,$.getAll().map(function(_t){return _t.modelState.selection})),Ue=ye[0],tt=ye[1];Ue&&ie.pushUndoStop(),ie.executeCommands(this.id,tt),$.setPrevEditOperationType(3)},he}(de)))})(q||(q={}));function X(_e){_e.register()}var ce=function(_e){k(de,_e);function de(se){var he=_e.call(this,se)||this;return he._editorHandler=se.editorHandler,he._inputHandler=se.inputHandler,he}return de.prototype.runCommand=function(se,he){var ie=se.get(P.a).getFocusedCodeEditor();if(ie&&ie.hasTextFocus())return this._runEditorHandler(se,ie,he);var $=document.activeElement;if($&&["input","textarea"].indexOf($.tagName.toLowerCase())>=0){document.execCommand(this._inputHandler);return}var ve=se.get(P.a).getActiveCodeEditor();if(ve)return ve.focus(),this._runEditorHandler(se,ve,he)},de.prototype._runEditorHandler=function(se,he,ie){var $=this._editorHandler;typeof $=="string"?he.trigger("keyboard",$,ie):(ie=ie||{},ie.source="keyboard",$.runEditorCommand(se,he,ie))},de}(ne.a),Ne=function(_e){k(de,_e);function de(se,he,ie){var $=_e.call(this,{id:se,precondition:void 0,description:ie})||this;return $._handlerId=he,$}return de.prototype.runCommand=function(se,he){var ie=se.get(P.a).getFocusedCodeEditor();!ie||ie.trigger("keyboard",this._handlerId,he)},de}(ne.a);X(new ce({editorHandler:we.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:v.a.textInputFocus,kbOpts:{weight:z,kbExpr:null,primary:2048|31},menuOpts:{menuId:25,group:"1_basic",title:R.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),X(new ce({editorHandler:p.b.Undo,inputHandler:"undo",id:p.b.Undo,precondition:v.a.writable,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|56},menuOpts:{menuId:17,group:"1_do",title:R.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),X(new Ne("default:"+p.b.Undo,p.b.Undo)),X(new ce({editorHandler:p.b.Redo,inputHandler:"redo",id:p.b.Redo,precondition:v.a.writable,kbOpts:{weight:z,kbExpr:v.a.textInputFocus,primary:2048|55,secondary:[2048|1024|56],mac:{primary:2048|1024|56}},menuOpts:{menuId:17,group:"1_do",title:R.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),X(new Ne("default:"+p.b.Redo,p.b.Redo));function He(_e,de){X(new Ne("default:"+_e,_e)),X(new Ne(_e,_e,de))}He(p.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),He(p.b.ReplacePreviousChar),He(p.b.CompositionStart),He(p.b.CompositionEnd),He(p.b.Paste),He(p.b.Cut)},"1lwE":function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return o.e(245).then(o.bind(null,"cOMg"))}})},"23p7":function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return o.e(198).then(o.bind(null,"aA7r"))}})},"24hK":function(Et,A,o){"use strict";o.d(A,"a",function(){return ne});var R=o("JYp7"),re=function(){function P(F){this.element=F,this.next=P.Undefined,this.prev=P.Undefined}return P.Undefined=new P(void 0),P}(),ne=function(){function P(){this._first=re.Undefined,this._last=re.Undefined,this._size=0}return Object.defineProperty(P.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),P.prototype.isEmpty=function(){return this._first===re.Undefined},P.prototype.clear=function(){this._first=re.Undefined,this._last=re.Undefined,this._size=0},P.prototype.unshift=function(F){return this._insert(F,!1)},P.prototype.push=function(F){return this._insert(F,!0)},P.prototype._insert=function(F,V){var B=this,G=new re(F);if(this._first===re.Undefined)this._first=G,this._last=G;else if(V){var x=this._last;this._last=G,G.prev=x,x.next=G}else{var S=this._first;this._first=G,G.next=S,S.prev=G}this._size+=1;var I=!1;return function(){I||(I=!0,B._remove(G))}},P.prototype.shift=function(){if(this._first!==re.Undefined){var F=this._first.element;return this._remove(this._first),F}},P.prototype.pop=function(){if(this._last!==re.Undefined){var F=this._last.element;return this._remove(this._last),F}},P.prototype._remove=function(F){if(F.prev!==re.Undefined&&F.next!==re.Undefined){var V=F.prev;V.next=F.next,F.next.prev=V}else F.prev===re.Undefined&&F.next===re.Undefined?(this._first=re.Undefined,this._last=re.Undefined):F.next===re.Undefined?(this._last=this._last.prev,this._last.next=re.Undefined):F.prev===re.Undefined&&(this._first=this._first.next,this._first.prev=re.Undefined);this._size-=1},P.prototype.iterator=function(){var F,V=this._first;return{next:function(){return V===re.Undefined?R.b:(F?F.value=V.element:F={done:!1,value:V.element},V=V.next,F)}}},P.prototype.toArray=function(){for(var F=[],V=this._first;V!==re.Undefined;V=V.next)F.push(V.element);return F},P}()},"2MPD":function(Et,A,o){},"2Tsy":function(Et,A,o){},"2V9f":function(Et,A,o){},"3/fG":function(Et,A,o){"use strict";o.d(A,"a",function(){return re});function R(ne,P){var F;return P.length===0?F=ne:F=ne.replace(/\{(\d+)\}/g,function(V,B){var G=B[0];return typeof P[G]!="undefined"?P[G]:V}),F}function re(ne,P){for(var F=[],V=2;V<arguments.length;V++)F[V-2]=arguments[V];return R(P,F)}},"3Rsk":function(Et,A,o){"use strict";o.d(A,"a",function(){return ne});var R=o("ic2d"),re=o("MI8n"),ne={JSONContribution:"base.contributions.json"};function P(B){return B.length>0&&B.charAt(B.length-1)==="#"?B.substring(0,B.length-1):B}var F=function(){function B(){this._onDidChangeSchema=new re.a,this.schemasById={}}return B.prototype.registerSchema=function(G,x){this.schemasById[P(G)]=x,this._onDidChangeSchema.fire(G)},B.prototype.notifySchemaChanged=function(G){this._onDidChangeSchema.fire(G)},B}(),V=new F;R.a.add(ne.JSONContribution,V)},"3qCu":function(Et,A,o){"use strict";o.d(A,"a",function(){return he});var R=o("EffR"),re=o("Md8J"),ne=o("/cxE"),P=o("eLzo"),F=o("nD70"),V;(function(ie){"use strict";var $={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:W,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:W,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:W,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};$._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,$._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,$.def=Xe($.def).replace("label",$._label).replace("title",$._title).getRegex(),$.bullet=/(?:[*+-]|\d{1,9}\.)/,$.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,$.item=Xe($.item,"gm").replace(/bull/g,$.bullet).getRegex(),$.list=Xe($.list).replace(/bull/g,$.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+$.def.source+")").getRegex(),$._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",$._comment=/<!--(?!-?>)[\s\S]*?-->/,$.html=Xe($.html,"i").replace("comment",$._comment).replace("tag",$._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$.paragraph=Xe($.paragraph).replace("hr",$.hr).replace("heading",$.heading).replace("lheading",$.lheading).replace("tag",$._tag).getRegex(),$.blockquote=Xe($.blockquote).replace("paragraph",$.paragraph).getRegex(),$.normal=ee({},$),$.gfm=ee({},$.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),$.gfm.paragraph=Xe($.paragraph).replace("(?!","(?!"+$.gfm.fences.source.replace("\\1","\\2")+"|"+$.list.source.replace("\\1","\\3")+"|").getRegex(),$.tables=ee({},$.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),$.pedantic=ee({},$.normal,{html:Xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$._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 ve(ge){this.tokens=[],this.tokens.links=Object.create(null),this.options=ge||Re.defaults,this.rules=$.normal,this.options.pedantic?this.rules=$.pedantic:this.options.gfm&&(this.options.tables?this.rules=$.tables:this.rules=$.gfm)}ve.rules=$,ve.lex=function(ge,nt){var St=new ve(nt);return St.lex(ge)},ve.prototype.lex=function(ge){return ge=ge.replace(/\r\n|\r/g,`
`).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,`
`),this.token(ge,!0)},ve.prototype.token=function(ge,nt){ge=ge.replace(/^ +$/gm,"");for(var St,xt,Mt,zt,Gt,on,On,yn,Mn,Ft,gt,pt,Dt,Ot,Ht,Jt;ge;){if((Mt=this.rules.newline.exec(ge))&&(ge=ge.substring(Mt[0].length),Mt[0].length>1&&this.tokens.push({type:"space"})),Mt=this.rules.code.exec(ge)){ge=ge.substring(Mt[0].length),Mt=Mt[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?Mt:me(Mt,`
`)});continue}if(Mt=this.rules.fences.exec(ge)){ge=ge.substring(Mt[0].length),this.tokens.push({type:"code",lang:Mt[2]?Mt[2].trim():Mt[2],text:Mt[3]||""});continue}if(Mt=this.rules.heading.exec(ge)){ge=ge.substring(Mt[0].length),this.tokens.push({type:"heading",depth:Mt[1].length,text:Mt[2]});continue}if((Mt=this.rules.nptable.exec(ge))&&(on={type:"table",header:Ae(Mt[1].replace(/^ *| *\| *$/g,"")),align:Mt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Mt[3]?Mt[3].replace(/\n$/,"").split(`
`):[]},on.header.length===on.align.length)){for(ge=ge.substring(Mt[0].length),gt=0;gt<on.align.length;gt++)/^ *-+: *$/.test(on.align[gt])?on.align[gt]="right":/^ *:-+: *$/.test(on.align[gt])?on.align[gt]="center":/^ *:-+ *$/.test(on.align[gt])?on.align[gt]="left":on.align[gt]=null;for(gt=0;gt<on.cells.length;gt++)on.cells[gt]=Ae(on.cells[gt],on.header.length);this.tokens.push(on);continue}if(Mt=this.rules.hr.exec(ge)){ge=ge.substring(Mt[0].length),this.tokens.push({type:"hr"});continue}if(Mt=this.rules.blockquote.exec(ge)){ge=ge.substring(Mt[0].length),this.tokens.push({type:"blockquote_start"}),Mt=Mt[0].replace(/^ *> ?/gm,""),this.token(Mt,nt),this.tokens.push({type:"blockquote_end"});continue}if(Mt=this.rules.list.exec(ge)){for(ge=ge.substring(Mt[0].length),zt=Mt[2],Ot=zt.length>1,On={type:"list_start",ordered:Ot,start:Ot?+zt:"",loose:!1},this.tokens.push(On),Mt=Mt[0].match(this.rules.item),yn=[],St=!1,Dt=Mt.length,gt=0;gt<Dt;gt++)on=Mt[gt],Ft=on.length,on=on.replace(/^ *([*+-]|\d+\.) */,""),~on.indexOf(`
`)&&(Ft-=on.length,on=this.options.pedantic?on.replace(/^ {1,4}/gm,""):on.replace(new RegExp("^ {1,"+Ft+"}","gm"),"")),gt!==Dt-1&&(Gt=$.bullet.exec(Mt[gt+1])[0],(zt.length>1?Gt.length===1:Gt.length>1||this.options.smartLists&&Gt!==zt)&&(ge=Mt.slice(gt+1).join(`
`)+ge,gt=Dt-1)),xt=St||/\n\n(?!\s*$)/.test(on),gt!==Dt-1&&(St=on.charAt(on.length-1)===`
`,xt||(xt=St)),xt&&(On.loose=!0),Ht=/^\[[ xX]\] /.test(on),Jt=void 0,Ht&&(Jt=on[1]!==" ",on=on.replace(/^\[[ xX]\] +/,"")),Mn={type:"list_item_start",task:Ht,checked:Jt,loose:xt},yn.push(Mn),this.tokens.push(Mn),this.token(on,!1),this.tokens.push({type:"list_item_end"});if(On.loose)for(Dt=yn.length,gt=0;gt<Dt;gt++)yn[gt].loose=!0;this.tokens.push({type:"list_end"});continue}if(Mt=this.rules.html.exec(ge)){ge=ge.substring(Mt[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(Mt[1]==="pre"||Mt[1]==="script"||Mt[1]==="style"),text:Mt[0]});continue}if(nt&&(Mt=this.rules.def.exec(ge))){ge=ge.substring(Mt[0].length),Mt[3]&&(Mt[3]=Mt[3].substring(1,Mt[3].length-1)),pt=Mt[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[pt]||(this.tokens.links[pt]={href:Mt[2],title:Mt[3]});continue}if((Mt=this.rules.table.exec(ge))&&(on={type:"table",header:Ae(Mt[1].replace(/^ *| *\| *$/g,"")),align:Mt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Mt[3]?Mt[3].replace(/\n$/,"").split(`
`):[]},on.header.length===on.align.length)){for(ge=ge.substring(Mt[0].length),gt=0;gt<on.align.length;gt++)/^ *-+: *$/.test(on.align[gt])?on.align[gt]="right":/^ *:-+: *$/.test(on.align[gt])?on.align[gt]="center":/^ *:-+ *$/.test(on.align[gt])?on.align[gt]="left":on.align[gt]=null;for(gt=0;gt<on.cells.length;gt++)on.cells[gt]=Ae(on.cells[gt].replace(/^ *\| *| *\| *$/g,""),on.header.length);this.tokens.push(on);continue}if(Mt=this.rules.lheading.exec(ge)){ge=ge.substring(Mt[0].length),this.tokens.push({type:"heading",depth:Mt[2]==="="?1:2,text:Mt[1]});continue}if(nt&&(Mt=this.rules.paragraph.exec(ge))){ge=ge.substring(Mt[0].length),this.tokens.push({type:"paragraph",text:Mt[1].charAt(Mt[1].length-1)===`
`?Mt[1].slice(0,-1):Mt[1]});continue}if(Mt=this.rules.text.exec(ge)){ge=ge.substring(Mt[0].length),this.tokens.push({type:"text",text:Mt[0]});continue}if(ge)throw new Error("Infinite loop on byte: "+ge.charCodeAt(0))}return this.tokens};var ye={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:W,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:W,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};ye._punctuation=`!"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~`,ye.em=Xe(ye.em).replace(/punctuation/g,ye._punctuation).getRegex(),ye._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ye._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ye._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])?)+(?![-_])/,ye.autolink=Xe(ye.autolink).replace("scheme",ye._scheme).replace("email",ye._email).getRegex(),ye._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ye.tag=Xe(ye.tag).replace("comment",$._comment).replace("attribute",ye._attribute).getRegex(),ye._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,ye._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,ye._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ye.link=Xe(ye.link).replace("label",ye._label).replace("href",ye._href).replace("title",ye._title).getRegex(),ye.reflink=Xe(ye.reflink).replace("label",ye._label).getRegex(),ye.normal=ee({},ye),ye.pedantic=ee({},ye.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:Xe(/^!?\[(label)\]\((.*?)\)/).replace("label",ye._label).getRegex(),reflink:Xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ye._label).getRegex()}),ye.gfm=ee({},ye.normal,{escape:Xe(ye.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),ye.gfm.url=Xe(ye.gfm.url,"i").replace("email",ye.gfm._extended_email).getRegex(),ye.breaks=ee({},ye.gfm,{br:Xe(ye.br).replace("{2,}","*").getRegex(),text:Xe(ye.gfm.text).replace(/\{2,\}/g,"*").getRegex()});function Ue(ge,nt){if(this.options=nt||Re.defaults,this.links=ge,this.rules=ye.normal,this.renderer=this.options.renderer||new tt,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=ye.pedantic:this.options.gfm&&(this.options.breaks?this.rules=ye.breaks:this.rules=ye.gfm)}Ue.rules=ye,Ue.output=function(ge,nt,St){var xt=new Ue(nt,St);return xt.output(ge)},Ue.prototype.output=function(ge){for(var nt="",St,xt,Mt,zt,Gt,on;ge;){if(Gt=this.rules.escape.exec(ge)){ge=ge.substring(Gt[0].length),nt+=Ke(Gt[1]);continue}if(Gt=this.rules.tag.exec(ge)){!this.inLink&&/^<a /i.test(Gt[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(Gt[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Gt[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Gt[0])&&(this.inRawBlock=!1),ge=ge.substring(Gt[0].length),nt+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Gt[0]):Ke(Gt[0]):Gt[0];continue}if(Gt=this.rules.link.exec(ge)){var On=Me(Gt[2],"()");if(On>-1){var yn=Gt[0].length-(Gt[2].length-On)-(Gt[3]||"").length;Gt[2]=Gt[2].substring(0,On),Gt[0]=Gt[0].substring(0,yn).trim(),Gt[3]=""}ge=ge.substring(Gt[0].length),this.inLink=!0,Mt=Gt[2],this.options.pedantic?(St=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Mt),St?(Mt=St[1],zt=St[3]):zt=""):zt=Gt[3]?Gt[3].slice(1,-1):"",Mt=Mt.trim().replace(/^<([\s\S]*)>$/,"$1"),nt+=this.outputLink(Gt,{href:Ue.escapes(Mt),title:Ue.escapes(zt)}),this.inLink=!1;continue}if((Gt=this.rules.reflink.exec(ge))||(Gt=this.rules.nolink.exec(ge))){if(ge=ge.substring(Gt[0].length),St=(Gt[2]||Gt[1]).replace(/\s+/g," "),St=this.links[St.toLowerCase()],!St||!St.href){nt+=Gt[0].charAt(0),ge=Gt[0].substring(1)+ge;continue}this.inLink=!0,nt+=this.outputLink(Gt,St),this.inLink=!1;continue}if(Gt=this.rules.strong.exec(ge)){ge=ge.substring(Gt[0].length),nt+=this.renderer.strong(this.output(Gt[4]||Gt[3]||Gt[2]||Gt[1]));continue}if(Gt=this.rules.em.exec(ge)){ge=ge.substring(Gt[0].length),nt+=this.renderer.em(this.output(Gt[6]||Gt[5]||Gt[4]||Gt[3]||Gt[2]||Gt[1]));continue}if(Gt=this.rules.code.exec(ge)){ge=ge.substring(Gt[0].length),nt+=this.renderer.codespan(Ke(Gt[2].trim(),!0));continue}if(Gt=this.rules.br.exec(ge)){ge=ge.substring(Gt[0].length),nt+=this.renderer.br();continue}if(Gt=this.rules.del.exec(ge)){ge=ge.substring(Gt[0].length),nt+=this.renderer.del(this.output(Gt[1]));continue}if(Gt=this.rules.autolink.exec(ge)){ge=ge.substring(Gt[0].length),Gt[2]==="@"?(xt=Ke(this.mangle(Gt[1])),Mt="mailto:"+xt):(xt=Ke(Gt[1]),Mt=xt),nt+=this.renderer.link(Mt,null,xt);continue}if(!this.inLink&&(Gt=this.rules.url.exec(ge))){if(Gt[2]==="@")xt=Ke(Gt[0]),Mt="mailto:"+xt;else{do on=Gt[0],Gt[0]=this.rules._backpedal.exec(Gt[0])[0];while(on!==Gt[0]);xt=Ke(Gt[0]),Gt[1]==="www."?Mt="http://"+xt:Mt=xt}ge=ge.substring(Gt[0].length),nt+=this.renderer.link(Mt,null,xt);continue}if(Gt=this.rules.text.exec(ge)){ge=ge.substring(Gt[0].length),this.inRawBlock?nt+=this.renderer.text(Gt[0]):nt+=this.renderer.text(Ke(this.smartypants(Gt[0])));continue}if(ge)throw new Error("Infinite loop on byte: "+ge.charCodeAt(0))}return nt},Ue.escapes=function(ge){return ge&&ge.replace(Ue.rules._escapes,"$1")},Ue.prototype.outputLink=function(ge,nt){var St=nt.href,xt=nt.title?Ke(nt.title):null;return ge[0].charAt(0)!=="!"?this.renderer.link(St,xt,this.output(ge[1])):this.renderer.image(St,xt,Ke(ge[1]))},Ue.prototype.smartypants=function(ge){return this.options.smartypants?ge.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"):ge},Ue.prototype.mangle=function(ge){if(!this.options.mangle)return ge;for(var nt="",St=ge.length,xt=0,Mt;xt<St;xt++)Mt=ge.charCodeAt(xt),Math.random()>.5&&(Mt="x"+Mt.toString(16)),nt+="&#"+Mt+";";return nt};function tt(ge){this.options=ge||Re.defaults}tt.prototype.code=function(ge,nt,St){var xt=(nt||"").match(/\S*/)[0];if(this.options.highlight){var Mt=this.options.highlight(ge,xt);Mt!=null&&Mt!==ge&&(St=!0,ge=Mt)}return xt?'<pre><code class="'+this.options.langPrefix+Ke(xt,!0)+'">'+(St?ge:Ke(ge,!0))+`</code></pre>
`:"<pre><code>"+(St?ge:Ke(ge,!0))+"</code></pre>"},tt.prototype.blockquote=function(ge){return`<blockquote>
`+ge+`</blockquote>
`},tt.prototype.html=function(ge){return ge},tt.prototype.heading=function(ge,nt,St,xt){return this.options.headerIds?"<h"+nt+' id="'+this.options.headerPrefix+xt.slug(St)+'">'+ge+"</h"+nt+`>
`:"<h"+nt+">"+ge+"</h"+nt+`>
`},tt.prototype.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},tt.prototype.list=function(ge,nt,St){var xt=nt?"ol":"ul",Mt=nt&&St!==1?' start="'+St+'"':"";return"<"+xt+Mt+`>
`+ge+"</"+xt+`>
`},tt.prototype.listitem=function(ge){return"<li>"+ge+`</li>
`},tt.prototype.checkbox=function(ge){return"<input "+(ge?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},tt.prototype.paragraph=function(ge){return"<p>"+ge+`</p>
`},tt.prototype.table=function(ge,nt){return nt&&(nt="<tbody>"+nt+"</tbody>"),`<table>
<thead>
`+ge+`</thead>
`+nt+`</table>
`},tt.prototype.tablerow=function(ge){return`<tr>
`+ge+`</tr>
`},tt.prototype.tablecell=function(ge,nt){var St=nt.header?"th":"td",xt=nt.align?"<"+St+' align="'+nt.align+'">':"<"+St+">";return xt+ge+"</"+St+`>
`},tt.prototype.strong=function(ge){return"<strong>"+ge+"</strong>"},tt.prototype.em=function(ge){return"<em>"+ge+"</em>"},tt.prototype.codespan=function(ge){return"<code>"+ge+"</code>"},tt.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},tt.prototype.del=function(ge){return"<del>"+ge+"</del>"},tt.prototype.link=function(ge,nt,St){if(ge=Ze(this.options.sanitize,this.options.baseUrl,ge),ge===null)return St;var xt='<a href="'+Ke(ge)+'"';return nt&&(xt+=' title="'+nt+'"'),xt+=">"+St+"</a>",xt},tt.prototype.image=function(ge,nt,St){if(ge=Ze(this.options.sanitize,this.options.baseUrl,ge),ge===null)return St;var xt='<img src="'+ge+'" alt="'+St+'"';return nt&&(xt+=' title="'+nt+'"'),xt+=this.options.xhtml?"/>":">",xt},tt.prototype.text=function(ge){return ge};function _t(){}_t.prototype.strong=_t.prototype.em=_t.prototype.codespan=_t.prototype.del=_t.prototype.text=function(ge){return ge},_t.prototype.link=_t.prototype.image=function(ge,nt,St){return""+St},_t.prototype.br=function(){return""};function At(ge){this.tokens=[],this.token=null,this.options=ge||Re.defaults,this.options.renderer=this.options.renderer||new tt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Yt}At.parse=function(ge,nt){var St=new At(nt);return St.parse(ge)},At.prototype.parse=function(ge){this.inline=new Ue(ge.links,this.options),this.inlineText=new Ue(ge.links,ee({},this.options,{renderer:new _t})),this.tokens=ge.reverse();for(var nt="";this.next();)nt+=this.tok();return nt},At.prototype.next=function(){return this.token=this.tokens.pop()},At.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},At.prototype.parseText=function(){for(var ge=this.token.text;this.peek().type==="text";)ge+=`
`+this.next().text;return this.inline.output(ge)},At.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,Ye(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 ge="",nt="",St,xt,Mt,zt;for(Mt="",St=0;St<this.token.header.length;St++)Mt+=this.renderer.tablecell(this.inline.output(this.token.header[St]),{header:!0,align:this.token.align[St]});for(ge+=this.renderer.tablerow(Mt),St=0;St<this.token.cells.length;St++){for(xt=this.token.cells[St],Mt="",zt=0;zt<xt.length;zt++)Mt+=this.renderer.tablecell(this.inline.output(xt[zt]),{header:!1,align:this.token.align[zt]});nt+=this.renderer.tablerow(Mt)}return this.renderer.table(ge,nt)}case"blockquote_start":{for(nt="";this.next().type!=="blockquote_end";)nt+=this.tok();return this.renderer.blockquote(nt)}case"list_start":{nt="";for(var Gt=this.token.ordered,on=this.token.start;this.next().type!=="list_end";)nt+=this.tok();return this.renderer.list(nt,Gt,on)}case"list_item_start":{nt="";var On=this.token.loose,yn=this.token.checked,Mn=this.token.task;for(this.token.task&&(nt+=this.renderer.checkbox(yn));this.next().type!=="list_item_end";)nt+=!On&&this.token.type==="text"?this.parseText():this.tok();return this.renderer.listitem(nt,Mn,yn)}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 Ft='Token with "'+this.token.type+'" type was not found.';if(this.options.silent)console.log(Ft);else throw new Error(Ft)}}};function Yt(){this.seen={}}Yt.prototype.slug=function(ge){var nt=ge.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(nt)){var St=nt;do this.seen[St]++,nt=St+"-"+this.seen[St];while(this.seen.hasOwnProperty(nt))}return this.seen[nt]=0,nt};function Ke(ge,nt){if(nt){if(Ke.escapeTest.test(ge))return ge.replace(Ke.escapeReplace,function(St){return Ke.replacements[St]})}else if(Ke.escapeTestNoEncode.test(ge))return ge.replace(Ke.escapeReplaceNoEncode,function(St){return Ke.replacements[St]});return ge}Ke.escapeTest=/[&<>"']/,Ke.escapeReplace=/[&<>"']/g,Ke.replacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ke.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,Ke.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function Ye(ge){return ge.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(nt,St){return St=St.toLowerCase(),St==="colon"?":":St.charAt(0)==="#"?St.charAt(1)==="x"?String.fromCharCode(parseInt(St.substring(2),16)):String.fromCharCode(+St.substring(1)):""})}function Xe(ge,nt){return ge=ge.source||ge,nt=nt||"",{replace:function(xt,Mt){return Mt=Mt.source||Mt,Mt=Mt.replace(/(^|[^\[])\^/g,"$1"),ge=ge.replace(xt,Mt),this},getRegex:function(){return new RegExp(ge,nt)}}}function Ze(ge,nt,St){if(ge){try{var xt=decodeURIComponent(Ye(St)).replace(/[^\w:]/g,"").toLowerCase()}catch(Mt){return null}if(xt.indexOf("javascript:")===0||xt.indexOf("vbscript:")===0||xt.indexOf("data:")===0)return null}nt&&!Ee.test(St)&&(St=We(nt,St));try{St=encodeURI(St).replace(/%25/g,"%")}catch(Mt){return null}return St}function We(ge,nt){return Qe[" "+ge]||(/^[^:]+:\/*[^/]*$/.test(ge)?Qe[" "+ge]=ge+"/":Qe[" "+ge]=me(ge,"/",!0)),ge=Qe[" "+ge],nt.slice(0,2)==="//"?ge.replace(/:[\s\S]*/,":")+nt:nt.charAt(0)==="/"?ge.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+nt:ge+nt}var Qe={},Ee=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function W(){}W.exec=W;function ee(ge){for(var nt=1,St,xt;nt<arguments.length;nt++){St=arguments[nt];for(xt in St)Object.prototype.hasOwnProperty.call(St,xt)&&(ge[xt]=St[xt])}return ge}function Ae(ge,nt){var St=ge.replace(/\|/g,function(zt,Gt,on){for(var On=!1,yn=Gt;--yn>=0&&on[yn]==="\\";)On=!On;return On?"|":" |"}),xt=St.split(/ \|/),Mt=0;if(xt.length>nt)xt.splice(nt);else for(;xt.length<nt;)xt.push("");for(;Mt<xt.length;Mt++)xt[Mt]=xt[Mt].trim().replace(/\\\|/g,"|");return xt}function me(ge,nt,St){if(ge.length===0)return"";for(var xt=0;xt<ge.length;){var Mt=ge.charAt(ge.length-xt-1);if(Mt===nt&&!St)xt++;else if(Mt!==nt&&St)xt++;else break}return ge.substr(0,ge.length-xt)}function Me(ge,nt){if(ge.indexOf(nt[1])===-1)return-1;for(var St=0,xt=0;xt<ge.length;xt++)if(ge[xt]==="\\")xt++;else if(ge[xt]===nt[0])St++;else if(ge[xt]===nt[1]&&(St--,St<0))return xt;return-1}function Re(ge,nt,St){if(typeof ge=="undefined"||ge===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ge!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ge)+", string expected");if(St||typeof nt=="function"){St||(St=nt,nt=null),nt=ee({},Re.defaults,nt||{});var xt=nt.highlight,Mt,zt,Gt=0;try{Mt=ve.lex(ge,nt)}catch(On){return St(On)}zt=Mt.length;var on=function(yn){if(yn)return nt.highlight=xt,St(yn);var Mn;try{Mn=At.parse(Mt,nt)}catch(Ft){yn=Ft}return nt.highlight=xt,yn?St(yn):St(null,Mn)};if(!xt||xt.length<3||(delete nt.highlight,!zt))return on();for(;Gt<Mt.length;Gt++)(function(On){return On.type!=="code"?--zt||on():xt(On.text,On.lang,function(yn,Mn){if(yn)return on(yn);if(Mn==null||Mn===On.text)return--zt||on();On.text=Mn,On.escaped=!0,--zt||on()})})(Mt[Gt]);return}try{return nt&&(nt=ee({},Re.defaults,nt)),At.parse(ve.lex(ge,nt),nt)}catch(On){if(On.message+=`
Please report this to https://github.com/markedjs/marked.`,(nt||Re.defaults).silent)return"<p>An error occurred:</p><pre>"+Ke(On.message+"",!0)+"</pre>";throw On}}Re.options=Re.setOptions=function(ge){return ee(Re.defaults,ge),Re},Re.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new tt,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},Re.defaults=Re.getDefaults(),Re.Parser=At,Re.parser=At.parse,Re.Renderer=tt,Re.TextRenderer=_t,Re.Lexer=ve,Re.lexer=ve.lex,Re.InlineLexer=Ue,Re.inlineLexer=Ue.output,Re.Slugger=Yt,Re.parse=Re,V=Re}).call(void 0);var B=V,G=V.Parser,x=V.parser,S=V.Renderer,I=V.TextRenderer,K=V.Lexer,D=V.lexer,T=V.InlineLexer,te=V.inlineLexer,U=V.parse,_,_,h;(function(){function ie($,ve,ye){function Ue(At,Yt){if(!ve[At]){if(!$[At]){var Ke=typeof _=="function"&&_;if(!Yt&&Ke)return _(At,!0);if(tt)return tt(At,!0);var Ye=new Error("Cannot find module '"+At+"'");throw Ye.code="MODULE_NOT_FOUND",Ye}var Xe=ve[At]={exports:{}};$[At][0].call(Xe.exports,function(Ze){var We=$[At][1][Ze];return Ue(We||Ze)},Xe,Xe.exports,ie,$,ve,ye)}return ve[At].exports}for(var tt=typeof _=="function"&&_,_t=0;_t<ye.length;_t++)Ue(ye[_t]);return Ue}return ie})()({1:[function(ie,$,ve){"use strict";var ye=ie("./toMap"),Ue=["background","base","cite","href","longdesc","src","usemap"];$.exports={uris:ye(Ue)}},{"./toMap":10}],2:[function(ie,$,ve){"use strict";var ye={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};$.exports=ye},{}],3:[function(ie,$,ve){"use strict";var ye=ie("./toMap"),Ue=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"];$.exports={voids:ye(Ue)}},{"./toMap":10}],4:[function(ie,$,ve){"use strict";var ye=ie("he"),Ue=ie("assignment"),tt=ie("./parser"),_t=ie("./sanitizer"),At=ie("./defaults");function Yt(Ke,Ye,Xe){var Ze=[],We=Xe===!0?Ye:Ue({},At,Ye),Qe=_t(Ze,We);return tt(Ke,Qe),Ze.join("")}Yt.defaults=At,$.exports=Yt,h=Yt},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(ie,$,ve){"use strict";$.exports=function(Ue){return typeof Ue=="string"?Ue.toLowerCase():Ue}},{}],6:[function(ie,$,ve){"use strict";function ye(Ue){for(var tt=Array.prototype.slice.call(arguments,1),_t,At;tt.length;){_t=tt.shift();for(At in _t)_t.hasOwnProperty(At)&&(Object.prototype.toString.call(Ue[At])==="[object Object]"?Ue[At]=ye(Ue[At],_t[At]):Ue[At]=_t[At])}return Ue}$.exports=ye},{}],7:[function(ie,$,ve){"use strict";var ye=ie("he"),Ue=ie("./lowercase"),tt=ie("./attributes"),_t=ie("./elements"),At=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,Yt=/^<\s*\/\s*([\w:-]+)[^>]*>/,Ke=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,Ye=/^</,Xe=/^<\s*\//;function Ze(){var Qe=[];return Qe.lastItem=function(){return Qe[Qe.length-1]},Qe}function We(Qe,Ee){for(var W=Ze(),ee=Qe,Ae;Qe;)me();xt();function me(){Ae=!0,Me();var Mt=Qe===ee;ee=Qe,Mt&&(Qe="")}function Me(){Qe.substr(0,4)==="<!--"?ge():Xe.test(Qe)?Re(Yt,xt):Ye.test(Qe)&&Re(At,St),nt()}function Re(Mt,zt){var Gt=Qe.match(Mt);Gt&&(Qe=Qe.substring(Gt[0].length),Gt[0].replace(Mt,zt),Ae=!1)}function ge(){var Mt=Qe.indexOf("-->");Mt>=0&&(Ee.comment&&Ee.comment(Qe.substring(4,Mt)),Qe=Qe.substring(Mt+3),Ae=!1)}function nt(){if(!!Ae){var Mt,zt=Qe.indexOf("<");zt>=0?(Mt=Qe.substring(0,zt),Qe=Qe.substring(zt)):(Mt=Qe,Qe=""),Ee.chars&&Ee.chars(Mt)}}function St(Mt,zt,Gt,on){var On={},yn=Ue(zt),Mn=_t.voids[yn]||!!on;Gt.replace(Ke,Ft),Mn||W.push(yn),Ee.start&&Ee.start(yn,On,Mn);function Ft(gt,pt,Dt,Ot,Ht){Dt===void 0&&Ot===void 0&&Ht===void 0?On[pt]=void 0:On[pt]=ye.decode(Dt||Ot||Ht||"")}}function xt(Mt,zt){var Gt,on=0,On=Ue(zt);if(On)for(on=W.length-1;on>=0&&W[on]!==On;on--);if(on>=0){for(Gt=W.length-1;Gt>=on;Gt--)Ee.end&&Ee.end(W[Gt]);W.length=on}}}$.exports=We},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(ie,$,ve){"use strict";var ye=ie("he"),Ue=ie("./lowercase"),tt=ie("./attributes"),_t=ie("./elements");function At(Yt,Ke){var Ye,Xe,Ze=Ke||{};return Me(),{start:Qe,end:Ee,chars:ee};function We(Re){Yt.push(Re)}function Qe(Re,ge,nt){var St=Ue(Re);if(Xe.ignoring){Ae(St);return}if((Ze.allowedTags||[]).indexOf(St)===-1){Ae(St);return}if(Ze.filter&&!Ze.filter({tag:St,attrs:ge})){Ae(St);return}We("<"),We(St),Object.keys(ge).forEach(xt),We(nt?"/>":">");function xt(Mt){var zt=ge[Mt],Gt=(Ze.allowedClasses||{})[St]||[],on=(Ze.allowedAttributes||{})[St]||[];on=on.concat((Ze.allowedAttributes||{})["*"]||[]);var On,yn=Ue(Mt);yn==="class"&&on.indexOf(yn)===-1?(zt=zt.split(" ").filter(Mn).join(" ").trim(),On=zt.length):On=on.indexOf(yn)!==-1&&(tt.uris[yn]!==!0||W(zt)),On&&(We(" "),We(Mt),typeof zt=="string"&&(We('="'),We(ye.encode(zt)),We('"')));function Mn(Ft){return Gt&&Gt.indexOf(Ft)!==-1}}}function Ee(Re){var ge=Ue(Re),nt=(Ze.allowedTags||[]).indexOf(ge)!==-1;nt&&Xe.ignoring===!1?(We("</"),We(ge),We(">")):me(ge)}function W(Re){var ge=Re[0];if(ge==="#"||ge==="/")return!0;var nt=Re.indexOf(":");if(nt===-1)return!0;var St=Re.indexOf("?");if(St!==-1&&nt>St)return!0;var xt=Re.indexOf("#");if(xt!==-1&&nt>xt)return!0;return Ze.allowedSchemes.some(Mt);function Mt(zt){return Re.indexOf(zt+":")===0}}function ee(Re){Xe.ignoring===!1&&We(Ze.transformText?Ze.transformText(Re):Re)}function Ae(Re){_t.voids[Re]||(Xe.ignoring===!1?Xe={ignoring:Re,depth:1}:Xe.ignoring===Re&&Xe.depth++)}function me(Re){Xe.ignoring===Re&&--Xe.depth<=0&&Me()}function Me(){Xe={ignoring:!1,depth:0}}}$.exports=At},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(ie,$,ve){"use strict";var ye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ue={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},tt=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,_t=/[&<>"']/g;function At(Xe){return ye[Xe]}function Yt(Xe){return Ue[Xe]}function Ke(Xe){return Xe==null?"":String(Xe).replace(_t,At)}function Ye(Xe){return Xe==null?"":String(Xe).replace(tt,Yt)}Ke.options=Ye.options={},$.exports={encode:Ke,escape:Ke,decode:Ye,unescape:Ye,version:"1.0.0-browser"}},{}],10:[function(ie,$,ve){"use strict";function ye(tt){return tt.reduce(Ue,{})}function Ue(tt,_t){return tt[_t]=!0,tt}$.exports=ye},{}]},{},[4]);var g=h,p=o("Q4rV"),v=o("qj0h"),E=o("N0LK"),k=o("bY76"),z=o("tYmi"),oe=o("Vhoy");function fe(ie,$){$===void 0&&($={});var ve=Object(re.a)($),ye=function(We){var Qe;try{Qe=Object(p.a)(decodeURIComponent(We))}catch(Ee){}return Qe?(Qe=Object(v.b)(Qe,function(Ee){if(ie.uris&&ie.uris[Ee])return k.a.revive(ie.uris[Ee])}),encodeURIComponent(JSON.stringify(Qe))):We},Ue=function(We,Qe){var Ee=ie.uris&&ie.uris[We];if(!Ee)return We;var W=k.a.revive(Ee);return k.a.parse(We).toString()===W.toString()?We:(Qe&&(W=R.r(W)),W.query&&(W=W.with({query:ye(W.query)})),W.toString(!0))},tt,_t=new Promise(function(Ze){return tt=Ze}),At=new S;At.image=function(Ze,We,Qe){var Ee,W=[],ee=[];return Ze&&(Ee=Object(P.d)(Ze),Ze=Ee.href,W=Ee.dimensions,Ze=Ue(Ze,!0),ee.push('src="'+Ze+'"')),Qe&&ee.push('alt="'+Qe+'"'),We&&ee.push('title="'+We+'"'),W.length&&(ee=ee.concat(W)),"<img "+ee.join(" ")+">"},At.link=function(Ze,We,Qe){return Ze===Qe&&(Qe=Object(P.e)(Qe)),Ze=Ue(Ze,!1),We=Object(P.e)(We),Ze=Object(P.e)(Ze),!Ze||Ze.match(/^data:|javascript:/i)||Ze.match(/^command:/i)&&!ie.isTrusted||Ze.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?Qe:(Ze=Ze.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),'<a href="#" data-href="'+Ze+'" title="'+(We||Ze)+'">'+Qe+"</a>")},At.paragraph=function(Ze){return"<p>"+(ie.supportThemeIcons?Object(oe.c)(Ze):Ze)+"</p>"},$.codeBlockRenderer&&(At.code=function(Ze,We){var Qe=$.codeBlockRenderer(We,Ze),Ee=F.b.nextId(),W=Promise.all([Qe,_t]).then(function(ee){var Ae=ee[0],me=ve.querySelector('div[data-code="'+Ee+'"]');me&&(me.innerHTML=Ae)}).catch(function(ee){});return $.codeBlockRenderCallback&&W.then($.codeBlockRenderCallback),'<div class="code" data-code="'+Ee+'">'+Object(E.o)(Ze)+"</div>"});var Yt=$.actionHandler;Yt&&Yt.disposeables.add(R.n(ve,"click",function(Ze){var We=Ze.target;if(!(We.tagName!=="A"&&(We=We.parentElement,!We||We.tagName!=="A")))try{var Qe=We.dataset.href;Qe&&Yt.callback(Qe,Ze)}catch(Ee){Object(ne.e)(Ee)}finally{Ze.preventDefault()}}));var Ke={sanitize:!0,renderer:At},Ye=[z.b.http,z.b.https,z.b.mailto,z.b.data,z.b.file,z.b.vscodeRemote,z.b.vscodeRemoteResource];ie.isTrusted&&Ye.push(z.b.command);var Xe=U(ie.supportThemeIcons?Object(oe.b)(ie.value):ie.value,Ke);return ve.innerHTML=g(Xe,{allowedSchemes:Ye,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),tt(),ve}var Se=o("W9cx"),we=o("WBhO"),q=o("TQUy"),X=o("Cg/j"),ce=o("MI8n"),Ne=o("pmY6"),He=o("twdY"),_e=function(){var ie=function(ve,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,tt){Ue.__proto__=tt}||function(Ue,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(Ue[_t]=tt[_t])},ie(ve,ye)};return function($,ve){ie($,ve);function ye(){this.constructor=$}$.prototype=ve===null?Object.create(ve):(ye.prototype=ve.prototype,new ye)}}(),de=function(ie,$,ve,ye){var Ue=arguments.length,tt=Ue<3?$:ye===null?ye=Object.getOwnPropertyDescriptor($,ve):ye,_t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(ie,$,ve,ye);else for(var At=ie.length-1;At>=0;At--)(_t=ie[At])&&(tt=(Ue<3?_t(tt):Ue>3?_t($,ve,tt):_t($,ve))||tt);return Ue>3&&tt&&Object.defineProperty($,ve,tt),tt},se=function(ie,$){return function(ve,ye){$(ve,ye,ie)}},he=function(ie){_e($,ie);function $(ve,ye,Ue){Ue===void 0&&(Ue=Se.b);var tt=ie.call(this)||this;return tt._editor=ve,tt._modeService=ye,tt._openerService=Ue,tt._onDidRenderCodeBlock=tt._register(new ce.a),tt.onDidRenderCodeBlock=tt._onDidRenderCodeBlock.event,tt}return $.prototype.getOptions=function(ve){var ye=this;return{codeBlockRenderer:function(tt,_t){var At=null;if(tt)At=ye._modeService.getModeIdForLanguageName(tt);else{var Yt=ye._editor.getModel();Yt&&(At=Yt.getLanguageIdentifier().language)}return ye._modeService.triggerMode(At||""),Promise.resolve(!0).then(function(Ke){var Ye=He.y.getPromise(At||"");return Ye?Ye.then(function(Xe){return Object(q.b)(_t,Xe)}):Object(q.b)(_t,void 0)}).then(function(Ke){return'<span style="font-family: '+ye._editor.getOption(34).fontFamily+'">'+Ke+"</span>"})},codeBlockRenderCallback:function(){return ye._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(tt){ye._openerService.open(tt,{fromUserGesture:!0}).catch(ne.e)},disposeables:ve}}},$.prototype.render=function(ve){var ye=new Ne.b,Ue;return ve?Ue=fe(ve,this.getOptions(ye)):Ue=document.createElement("span"),{element:Ue,dispose:function(){return ye.dispose()}}},$=de([se(1,we.a),se(2,Object(X.d)(Se.a))],$),$}(Ne.a)},"3rx1":function(Et,A,o){"use strict";o.d(A,"b",function(){return B}),o.d(A,"a",function(){return G}),o.d(A,"c",function(){return S});var R=o("bY76"),re=o("MrjW"),ne=o("N0LK"),P=o("tYmi"),F=o("MNsG"),V=o("gslv");function B(D,T,te){if(typeof D=="string"&&(D=R.a.file(D)),te){var U=te.getWorkspaceFolder(D);if(U){var _=te.getWorkspace().folders.length>1,h=void 0;if(Object(V.e)(U.uri,D)?h="":h=Object(V.h)(U.uri,D),_){var g=U.name?U.name:Object(V.b)(U.uri);h=h?g+" \u2022 "+h:g}return h}}if(D.scheme!==P.b.file&&D.scheme!==P.b.untitled)return D.with({query:null,fragment:null}).toString(!0);if(x(D.fsPath))return Object(re.normalize)(S(D.fsPath));var p=Object(re.normalize)(D.fsPath);return!F.h&&T&&(p=K(p,T.userHome)),p}function G(D){if(!!D){typeof D=="string"&&(D=R.a.file(D));var T=Object(V.b)(D)||(D.scheme===P.b.file?D.fsPath:D.path);return x(T)?S(T):T}}function x(D){return!!(F.h&&D&&D[1]===":")}function S(D){return x(D)?D.charAt(0).toUpperCase()+D.slice(1):D}var I=Object.create(null);function K(D,T){if(F.h||!D||!T)return D;var te=I.original===T?I.normalized:void 0;return te||(te=""+Object(ne.K)(T,re.posix.sep)+re.posix.sep,I={original:T,normalized:te}),(F.d?Object(ne.M)(D,te):Object(ne.N)(D,te))&&(D="~/"+D.substr(te.length)),D}},"4bUh":function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("twdY"),re=function(){function P(F,V){this._tokens=F,this._tokensCount=this._tokens.length>>>1,this._text=V}return P.prototype.equals=function(F){return F instanceof P?this.slicedEquals(F,0,this._tokensCount):!1},P.prototype.slicedEquals=function(F,V,B){if(this._text!==F._text||this._tokensCount!==F._tokensCount)return!1;for(var G=V<<1,x=G+(B<<1),S=G;S<x;S++)if(this._tokens[S]!==F._tokens[S])return!1;return!0},P.prototype.getLineContent=function(){return this._text},P.prototype.getCount=function(){return this._tokensCount},P.prototype.getStartOffset=function(F){return F>0?this._tokens[F-1<<1]:0},P.prototype.getMetadata=function(F){var V=this._tokens[(F<<1)+1];return V},P.prototype.getLanguageId=function(F){var V=this._tokens[(F<<1)+1];return R.x.getLanguageId(V)},P.prototype.getStandardTokenType=function(F){var V=this._tokens[(F<<1)+1];return R.x.getTokenType(V)},P.prototype.getForeground=function(F){var V=this._tokens[(F<<1)+1];return R.x.getForeground(V)},P.prototype.getClassName=function(F){var V=this._tokens[(F<<1)+1];return R.x.getClassNameFromMetadata(V)},P.prototype.getInlineStyle=function(F,V){var B=this._tokens[(F<<1)+1];return R.x.getInlineStyleFromMetadata(B,V)},P.prototype.getEndOffset=function(F){return this._tokens[F<<1]},P.prototype.findTokenIndexAtOffset=function(F){return P.findIndexInTokensArray(this._tokens,F)},P.prototype.inflate=function(){return this},P.prototype.sliceAndInflate=function(F,V,B){return new ne(this,F,V,B)},P.convertToEndOffset=function(F,V){for(var B=F.length>>>1,G=B-1,x=0;x<G;x++)F[x<<1]=F[x+1<<1];F[G<<1]=V},P.findIndexInTokensArray=function(F,V){if(F.length<=2)return 0;for(var B=0,G=(F.length>>>1)-1;B<G;){var x=B+Math.floor((G-B)/2),S=F[x<<1];if(S===V)return x+1;S<V?B=x+1:S>V&&(G=x)}return B},P}(),ne=function(){function P(F,V,B,G){this._source=F,this._startOffset=V,this._endOffset=B,this._deltaOffset=G,this._firstTokenIndex=F.findTokenIndexAtOffset(V),this._tokensCount=0;for(var x=this._firstTokenIndex,S=F.getCount();x<S;x++){var I=F.getStartOffset(x);if(I>=B)break;this._tokensCount++}}return P.prototype.equals=function(F){return F instanceof P?this._startOffset===F._startOffset&&this._endOffset===F._endOffset&&this._deltaOffset===F._deltaOffset&&this._source.slicedEquals(F._source,this._firstTokenIndex,this._tokensCount):!1},P.prototype.getCount=function(){return this._tokensCount},P.prototype.getForeground=function(F){return this._source.getForeground(this._firstTokenIndex+F)},P.prototype.getEndOffset=function(F){var V=this._source.getEndOffset(this._firstTokenIndex+F);return Math.min(this._endOffset,V)-this._startOffset+this._deltaOffset},P.prototype.getClassName=function(F){return this._source.getClassName(this._firstTokenIndex+F)},P.prototype.getInlineStyle=function(F,V){return this._source.getInlineStyle(this._firstTokenIndex+F,V)},P.prototype.findTokenIndexAtOffset=function(F){return this._source.findTokenIndexAtOffset(F+this._startOffset-this._deltaOffset)-this._firstTokenIndex},P}()},"4rho":function(Et,A,o){},"4y0V":function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("MI8n"),re=function(F,V,B){var G=function(I){return x.fire(I)},x=new R.a({onFirstListenerAdd:function(){F.addEventListener(V,G,B)},onLastListenerRemove:function(){F.removeEventListener(V,G,B)}});return x.event};function ne(P){return R.b.map(P,function(F){return F.preventDefault(),F.stopPropagation(),F})}},"51B1":function(Et,A,o){},"51f4":function(Et,A,o){"use strict";o.d(A,"a",function(){return F});var R=!1,re=null;function ne(V){if(!V.parent||V.parent===V)return null;try{var B=V.location,G=V.parent.location;if(B.protocol!==G.protocol||B.hostname!==G.hostname||B.port!==G.port)return R=!0,null}catch(x){return R=!0,null}return V.parent}function P(V,B){for(var G=V.document.getElementsByTagName("iframe"),x,S=0,I=G.length;S<I;S++)if(x=G[S],x.contentWindow===B)return x;return null}var F=function(){function V(){}return V.getSameOriginWindowChain=function(){if(!re){re=[];var B=window,G;do G=ne(B),G?re.push({window:B,iframeElement:P(G,B)}):re.push({window:B,iframeElement:null}),B=G;while(B)}return re.slice(0)},V.hasDifferentOriginAncestor=function(){return re||this.getSameOriginWindowChain(),R},V.getPositionOfChildWindowRelativeToAncestorWindow=function(B,G){if(!G||B===G)return{top:0,left:0};for(var x=0,S=0,I=this.getSameOriginWindowChain(),K=0,D=I;K<D.length;K++){var T=D[K];if(T.window===G||!T.iframeElement)break;var te=T.iframeElement.getBoundingClientRect();x+=te.top,S+=te.left}return{top:x,left:S}},V}()},"5DEy":function(Et,A,o){},"5TxY":function(Et,A,o){"use strict";o.d(A,"a",function(){return K}),o.d(A,"b",function(){return T});var R=o("D3Dy"),re=o("EffR"),ne=o("X+cX"),P=o("MI8n"),F=o("pmY6"),V=o("MNsG"),B=o("N0LK"),G=o("Comh"),x=o("gCVg"),S=o("CjF5"),I=function(){var _=function(g,p){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,E){v.__proto__=E}||function(v,E){for(var k in E)E.hasOwnProperty(k)&&(v[k]=E[k])},_(g,p)};return function(h,g){_(h,g);function p(){this.constructor=h}h.prototype=g===null?Object.create(g):(p.prototype=g.prototype,new p)}}(),K={forceCopyWithSyntaxHighlighting:!1},D=function(){function _(){this._lastState=null}return _.prototype.set=function(h,g){this._lastState={lastCopiedValue:h,data:g}},_.prototype.get=function(h){return this._lastState&&this._lastState.lastCopiedValue===h?this._lastState.data:(this._lastState=null,null)},_.INSTANCE=new _,_}(),T=function(_){I(h,_);function h(g,p){var v=_.call(this)||this;v.textArea=p,v._onFocus=v._register(new P.a),v.onFocus=v._onFocus.event,v._onBlur=v._register(new P.a),v.onBlur=v._onBlur.event,v._onKeyDown=v._register(new P.a),v.onKeyDown=v._onKeyDown.event,v._onKeyUp=v._register(new P.a),v.onKeyUp=v._onKeyUp.event,v._onCut=v._register(new P.a),v.onCut=v._onCut.event,v._onPaste=v._register(new P.a),v.onPaste=v._onPaste.event,v._onType=v._register(new P.a),v.onType=v._onType.event,v._onCompositionStart=v._register(new P.a),v.onCompositionStart=v._onCompositionStart.event,v._onCompositionUpdate=v._register(new P.a),v.onCompositionUpdate=v._onCompositionUpdate.event,v._onCompositionEnd=v._register(new P.a),v.onCompositionEnd=v._onCompositionEnd.event,v._onSelectionChangeRequest=v._register(new P.a),v.onSelectionChangeRequest=v._onSelectionChangeRequest.event,v._host=g,v._textArea=v._register(new U(p)),v._asyncTriggerCut=v._register(new ne.d(function(){return v._onCut.fire()},0)),v._textAreaState=G.b.EMPTY,v._selectionChangeListener=null,v.writeScreenReaderContent("ctor"),v._hasFocus=!1,v._isDoingComposition=!1,v._nextCommand=0,v._register(re.n(p.domNode,"keydown",function(oe){v._isDoingComposition&&(oe.keyCode===109||oe.keyCode===1)&&oe.stopPropagation(),oe.equals(9)&&oe.preventDefault(),v._onKeyDown.fire(oe)})),v._register(re.n(p.domNode,"keyup",function(oe){v._onKeyUp.fire(oe)})),v._register(re.i(p.domNode,"compositionstart",function(oe){v._isDoingComposition||(v._isDoingComposition=!0,R.f||v._setAndWriteTextAreaState("compositionstart",G.b.EMPTY),v._onCompositionStart.fire())}));var E=function(fe){var Se=v._textAreaState,we=G.b.readFromTextArea(v._textArea);return[we,G.b.deduceInput(Se,we,fe)]},k=function(fe){var Se=v._textAreaState,we=G.b.selectedText(fe),q={text:we.value,replaceCharCnt:Se.selectionEnd-Se.selectionStart};return[we,q]},z=function(fe){return!!(R.f&&fe==="ja"||R.i&&fe.indexOf("zh-Han")===0)};return v._register(re.i(p.domNode,"compositionupdate",function(oe){if(z(oe.locale)){var fe=E(!1),Se=fe[0],we=fe[1];v._textAreaState=Se,v._onType.fire(we),v._onCompositionUpdate.fire(oe);return}var q=k(oe.data),X=q[0],ce=q[1];v._textAreaState=X,v._onType.fire(ce),v._onCompositionUpdate.fire(oe)})),v._register(re.i(p.domNode,"compositionend",function(oe){if(!!v._isDoingComposition){if(z(oe.locale)){var fe=E(!1),Se=fe[0],we=fe[1];v._textAreaState=Se,v._onType.fire(we)}else{var q=k(oe.data),Se=q[0],we=q[1];v._textAreaState=Se,v._onType.fire(we)}(R.f||R.d)&&(v._textAreaState=G.b.readFromTextArea(v._textArea)),!!v._isDoingComposition&&(v._isDoingComposition=!1,v._onCompositionEnd.fire())}})),v._register(re.i(p.domNode,"input",function(){if(v._textArea.setIgnoreSelectionChangeTime("received input event"),!v._isDoingComposition){var oe=E(V.e),fe=oe[0],Se=oe[1];Se.replaceCharCnt===0&&Se.text.length===1&&B.z(Se.text.charCodeAt(0))||(v._textAreaState=fe,v._nextCommand===0?Se.text!==""&&v._onType.fire(Se):((Se.text!==""||Se.replaceCharCnt!==0)&&v._firePaste(Se.text,null),v._nextCommand=0))}})),v._register(re.i(p.domNode,"cut",function(oe){v._textArea.setIgnoreSelectionChangeTime("received cut event"),v._ensureClipboardGetsEditorSelection(oe),v._asyncTriggerCut.schedule()})),v._register(re.i(p.domNode,"copy",function(oe){v._ensureClipboardGetsEditorSelection(oe)})),v._register(re.i(p.domNode,"paste",function(oe){if(v._textArea.setIgnoreSelectionChangeTime("received paste event"),te.canUseTextData(oe)){var fe=te.getTextData(oe),Se=fe[0],we=fe[1];Se!==""&&v._firePaste(Se,we)}else v._textArea.getSelectionStart()!==v._textArea.getSelectionEnd()&&v._setAndWriteTextAreaState("paste",G.b.EMPTY),v._nextCommand=1})),v._register(re.i(p.domNode,"focus",function(){v._setHasFocus(!0)})),v._register(re.i(p.domNode,"blur",function(){v._setHasFocus(!1)})),v}return h.prototype._installSelectionChangeListener=function(){var g=this,p=0;return re.i(document,"selectionchange",function(v){if(!!g._hasFocus&&!g._isDoingComposition&&!(!R.d||!V.h)){var E=Date.now(),k=E-p;if(p=E,!(k<5)){var z=E-g._textArea.getIgnoreSelectionChangeTime();if(g._textArea.resetSelectionChangeTime(),!(z<100)&&!(!g._textAreaState.selectionStartPosition||!g._textAreaState.selectionEndPosition)){var oe=g._textArea.getValue();if(g._textAreaState.value===oe){var fe=g._textArea.getSelectionStart(),Se=g._textArea.getSelectionEnd();if(!(g._textAreaState.selectionStart===fe&&g._textAreaState.selectionEnd===Se)){var we=g._textAreaState.deduceEditorPosition(fe),q=g._host.deduceModelPosition(we[0],we[1],we[2]),X=g._textAreaState.deduceEditorPosition(Se),ce=g._host.deduceModelPosition(X[0],X[1],X[2]),Ne=new x.a(q.lineNumber,q.column,ce.lineNumber,ce.column);g._onSelectionChangeRequest.fire(Ne)}}}}}})},h.prototype.dispose=function(){_.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},h.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},h.prototype.isFocused=function(){return this._hasFocus},h.prototype.refreshFocusState=function(){var g=re.D(this.textArea.domNode);g?this._setHasFocus(g.activeElement===this.textArea.domNode):re.L(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},h.prototype._setHasFocus=function(g){this._hasFocus!==g&&(this._hasFocus=g,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(R.e?this._setAndWriteTextAreaState("focusgain",G.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},h.prototype._setAndWriteTextAreaState=function(g,p){this._hasFocus||(p=p.collapseSelection()),p.writeToTextArea(g,this._textArea,this._hasFocus),this._textAreaState=p},h.prototype.writeScreenReaderContent=function(g){this._isDoingComposition||this._setAndWriteTextAreaState(g,this._host.getScreenReaderContent(this._textAreaState))},h.prototype._ensureClipboardGetsEditorSelection=function(g){var p=this._host.getDataToCopy(te.canUseTextData(g)&&S.a.clipboard.richText),v={version:1,isFromEmptySelection:p.isFromEmptySelection,multicursorText:p.multicursorText,mode:p.mode};if(D.INSTANCE.set(R.h?p.text.replace(/\r\n/g,`
`):p.text,v),!te.canUseTextData(g)){this._setAndWriteTextAreaState("copy or cut",G.b.selectedText(p.text));return}te.setTextData(g,p.text,p.html,v)},h.prototype._firePaste=function(g,p){p||(p=D.INSTANCE.get(g)),this._onPaste.fire({text:g,metadata:p})},h}(F.a),te=function(){function _(){}return _.canUseTextData=function(h){return!!(h.clipboardData||window.clipboardData)},_.getTextData=function(h){if(h.clipboardData){h.preventDefault();var g=h.clipboardData.getData("text/plain"),p=null,v=h.clipboardData.getData("vscode-editor-data");if(typeof v=="string")try{p=JSON.parse(v),p.version!==1&&(p=null)}catch(E){}return[g,p]}if(window.clipboardData){h.preventDefault();var g=window.clipboardData.getData("Text");return[g,null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},_.setTextData=function(h,g,p,v){if(h.clipboardData){h.clipboardData.setData("text/plain",g),typeof p=="string"&&h.clipboardData.setData("text/html",p),h.clipboardData.setData("vscode-editor-data",JSON.stringify(v)),h.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",g),h.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},_}(),U=function(_){I(h,_);function h(g){var p=_.call(this)||this;return p._actual=g,p._ignoreSelectionChangeTime=0,p}return h.prototype.setIgnoreSelectionChangeTime=function(g){this._ignoreSelectionChangeTime=Date.now()},h.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},h.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},h.prototype.getValue=function(){return this._actual.domNode.value},h.prototype.setValue=function(g,p){var v=this._actual.domNode;v.value!==p&&(this.setIgnoreSelectionChangeTime("setValue"),v.value=p)},h.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},h.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},h.prototype.setSelectionRange=function(g,p,v){var E=this._actual.domNode,k=null,z=re.D(E);z?k=z.activeElement:k=document.activeElement;var oe=k===E,fe=E.selectionStart,Se=E.selectionEnd;if(oe&&fe===p&&Se===v){R.h&&window.parent!==window&&E.focus();return}if(oe){this.setIgnoreSelectionChangeTime("setSelectionRange"),E.setSelectionRange(p,v),R.h&&window.parent!==window&&E.focus();return}try{var we=re.U(E);this.setIgnoreSelectionChangeTime("setSelectionRange"),E.focus(),E.setSelectionRange(p,v),re.S(E,we)}catch(q){}},h}(F.a)},"5Y4S":function(Et,A,o){"use strict";o.d(A,"a",function(){return ne});var R=o("MNsG"),re=R.b.performance&&typeof R.b.performance.now=="function",ne=function(){function P(F){this._highResolution=re&&F,this._startTime=this._now(),this._stopTime=-1}return P.create=function(F){return F===void 0&&(F=!0),new P(F)},P.prototype.stop=function(){this._stopTime=this._now()},P.prototype.elapsed=function(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime},P.prototype._now=function(){return this._highResolution?R.b.performance.now():new Date().getTime()},P}()},"5v8Y":function(Et,A,o){"use strict";o.d(A,"a",function(){return F});var R=o("MXAL"),re=function(){var V=function(G,x){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,I){S.__proto__=I}||function(S,I){for(var K in I)I.hasOwnProperty(K)&&(S[K]=I[K])},V(G,x)};return function(B,G){V(B,G);function x(){this.constructor=B}B.prototype=G===null?Object.create(G):(x.prototype=G.prototype,new x)}}(),ne=function(V){re(B,V);function B(G){for(var x=V.call(this,0)||this,S=0,I=G.length;S<I;S++)x.set(G.charCodeAt(S),2);return x.set(32,1),x.set(9,1),x}return B}(R.a);function P(V){var B={};return function(G){return B.hasOwnProperty(G)||(B[G]=V(G)),B[G]}}var F=P(function(V){return new ne(V)})},"62hx":function(Et,A,o){},"6OMU":function(Et,A,o){"use strict";o.d(A,"v",function(){return R}),o.d(A,"w",function(){return re}),o.d(A,"g",function(){return ne}),o.d(A,"c",function(){return P}),o.d(A,"i",function(){return F}),o.d(A,"r",function(){return V}),o.d(A,"o",function(){return x}),o.d(A,"d",function(){return S}),o.d(A,"p",function(){return I}),o.d(A,"q",function(){return K}),o.d(A,"e",function(){return D}),o.d(A,"f",function(){return T}),o.d(A,"n",function(){return te}),o.d(A,"k",function(){return U}),o.d(A,"j",function(){return _}),o.d(A,"l",function(){return h}),o.d(A,"m",function(){return g}),o.d(A,"u",function(){return p}),o.d(A,"a",function(){return v}),o.d(A,"t",function(){return E}),o.d(A,"s",function(){return k}),o.d(A,"h",function(){return z}),o.d(A,"b",function(){return oe});function R(fe,Se){return Se===void 0&&(Se=0),fe[fe.length-(1+Se)]}function re(fe){if(fe.length===0)throw new Error("Invalid tail call");return[fe.slice(0,fe.length-1),fe[fe.length-1]]}function ne(fe,Se,we){if(we===void 0&&(we=function(Ne,He){return Ne===He}),fe===Se)return!0;if(!fe||!Se||fe.length!==Se.length)return!1;for(var q=0,X=fe.length;q<X;q++)if(!we(fe[q],Se[q]))return!1;return!0}function P(fe,Se,we){for(var q=0,X=fe.length-1;q<=X;){var ce=(q+X)/2|0,Ne=we(fe[ce],Se);if(Ne<0)q=ce+1;else if(Ne>0)X=ce-1;else return ce}return-(q+1)}function F(fe,Se){var we=0,q=fe.length;if(q===0)return 0;for(;we<q;){var X=Math.floor((we+q)/2);Se(fe[X])?q=X:we=X+1}return we}function V(fe,Se){return G(fe,Se,0,fe.length-1,[]),fe}function B(fe,Se,we,q,X,ce){for(var Ne=we,He=q+1,_e=we;_e<=X;_e++)ce[_e]=fe[_e];for(var _e=we;_e<=X;_e++)Ne>q?fe[_e]=ce[He++]:He>X?fe[_e]=ce[Ne++]:Se(ce[He],ce[Ne])<0?fe[_e]=ce[He++]:fe[_e]=ce[Ne++]}function G(fe,Se,we,q,X){if(!(q<=we)){var ce=we+(q-we)/2|0;G(fe,Se,we,ce,X),G(fe,Se,ce+1,q,X),!(Se(fe[ce],fe[ce+1])<=0)&&B(fe,Se,we,ce,q,X)}}function x(fe,Se){for(var we=[],q=void 0,X=0,ce=V(fe.slice(0),Se);X<ce.length;X++){var Ne=ce[X];!q||Se(q[0],Ne)!==0?(q=[Ne],we.push(q)):q.push(Ne)}return we}function S(fe){return fe.filter(function(Se){return!!Se})}function I(fe){return!Array.isArray(fe)||fe.length===0}function K(fe){return Array.isArray(fe)&&fe.length>0}function D(fe,Se){if(!Se)return fe.filter(function(q,X){return fe.indexOf(q)===X});var we=Object.create(null);return fe.filter(function(q){var X=Se(q);return we[X]?!1:(we[X]=!0,!0)})}function T(fe){var Se=new Set;return fe.filter(function(we){return Se.has(we)?!1:(Se.add(we),!0)})}function te(fe){var Se=[];return fe.forEach(function(we){return Se.push(we)}),Se}function U(fe,Se){for(var we=0;we<fe.length;we++){var q=fe[we];if(Se(q))return we}return-1}function _(fe,Se,we){we===void 0&&(we=void 0);var q=U(fe,Se);return q<0?we:fe[q]}function h(fe,Se){return fe.length>0?fe[0]:Se}function g(fe){var Se;return(Se=[]).concat.apply(Se,fe)}function p(fe,Se){var we=typeof Se=="number"?fe:0;typeof Se=="number"?we=fe:(we=0,Se=fe);var q=[];if(we<=Se)for(var X=we;X<Se;X++)q.push(X);else for(var X=we;X>Se;X--)q.push(X);return q}function v(fe,Se,we){var q=fe.slice(0,Se),X=fe.slice(Se);return q.concat(we,X)}function E(fe,Se){var we=fe.indexOf(Se);we>-1&&(fe.splice(we,1),fe.unshift(Se))}function k(fe,Se){var we=fe.indexOf(Se);we>-1&&(fe.splice(we,1),fe.push(Se))}function z(fe,Se){for(var we=0;we<fe.length;we++){var q=fe[we];if(Se(q,we,fe))return q}}function oe(fe){return Array.isArray(fe)?fe:[fe]}},"6lNC":function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return o.e(223).then(o.bind(null,"meXB"))}})},"746U":function(Et,A,o){"use strict";o.d(A,"d",function(){return re}),o.d(A,"j",function(){return ne}),o.d(A,"i",function(){return P}),o.d(A,"h",function(){return F}),o.d(A,"e",function(){return V}),o.d(A,"k",function(){return B}),o.d(A,"l",function(){return G}),o.d(A,"a",function(){return x}),o.d(A,"f",function(){return I}),o.d(A,"g",function(){return K}),o.d(A,"m",function(){return D}),o.d(A,"c",function(){return U}),o.d(A,"b",function(){return _}),o.d(A,"n",function(){return h}),o.d(A,"o",function(){return g});var R={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function re(p){return Array.isArray?Array.isArray(p):!!(p&&typeof p.length===R.number&&p.constructor===Array)}function ne(p){return typeof p===R.string||p instanceof String}function P(p){return typeof p===R.object&&p!==null&&!Array.isArray(p)&&!(p instanceof RegExp)&&!(p instanceof Date)}function F(p){return(typeof p===R.number||p instanceof Number)&&!isNaN(p)}function V(p){return p===!0||p===!1}function B(p){return typeof p===R.undefined}function G(p){return B(p)||p===null}function x(p,v){if(!p)throw new Error(v?"Unexpected type, expected '"+v+"'":"Unexpected type")}var S=Object.prototype.hasOwnProperty;function I(p){if(!P(p))return!1;for(var v in p)if(S.call(p,v))return!1;return!0}function K(p){return typeof p===R.function}function D(p,v){for(var E=Math.min(p.length,v.length),k=0;k<E;k++)T(p[k],v[k])}function T(p,v){if(ne(v)){if(typeof p!==v)throw new Error("argument does not match constraint: typeof "+v)}else if(K(v)){try{if(p instanceof v)return}catch(E){}if(!G(p)&&p.constructor===v||v.length===1&&v.call(void 0,p)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function te(p){for(var v=[],E=Object.getPrototypeOf(p);Object.prototype!==E;)v=v.concat(Object.getOwnPropertyNames(E)),E=Object.getPrototypeOf(E);return v}function U(p){for(var v=[],E=0,k=te(p);E<k.length;E++){var z=k[E];typeof p[z]=="function"&&v.push(z)}return v}function _(p,v){for(var E=function(we){return function(){var q=Array.prototype.slice.call(arguments,0);return v(we,q)}},k={},z=0,oe=p;z<oe.length;z++){var fe=oe[z];k[fe]=E(fe)}return k}function h(p){return p===null?void 0:p}function g(p){return typeof p=="undefined"?null:p}},"79sc":function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("Cg/j"),re=Object(R.c)("markerDecorationsService")},"7afs":function(Et,A,o){"use strict";o.d(A,"a",function(){return R}),o.d(A,"b",function(){return P});function R(B,G){switch(G===void 0&&(G=0),typeof B){case"object":return B===null?re(349,G):Array.isArray(B)?F(B,G):V(B,G);case"string":return P(B,G);case"boolean":return ne(B,G);case"number":return re(B,G);case"undefined":return re(0,937);default:return re(0,617)}}function re(B,G){return(G<<5)-G+B|0}function ne(B,G){return re(B?433:863,G)}function P(B,G){G=re(149417,G);for(var x=0,S=B.length;x<S;x++)G=re(B.charCodeAt(x),G);return G}function F(B,G){return G=re(104579,G),B.reduce(function(x,S){return R(S,x)},G)}function V(B,G){return G=re(181387,G),Object.keys(B).sort().reduce(function(x,S){return x=P(S,x),R(B[S],x)},G)}},"7lZ/":function(Et,A,o){"use strict";o.d(A,"a",function(){return P});var R=o("qj0h"),re=o("Vhoy"),ne=o("N0LK"),P=function(){function F(V,B){this.supportCodicons=B,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",V.appendChild(this.domNode)}return Object.defineProperty(F.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),F.prototype.set=function(V,B,G,x){B===void 0&&(B=[]),G===void 0&&(G=""),V||(V=""),x&&(V=F.escapeNewLines(V,B)),!(this.didEverRender&&this.text===V&&this.title===G&&R.e(this.highlights,B))&&(Array.isArray(B)||(B=[]),this.text=V,this.title=G,this.highlights=B,this.render())},F.prototype.render=function(){for(var V="",B=0,G=0,x=this.highlights;G<x.length;G++){var S=x[G];if(S.end!==S.start){if(B<S.start){V+="<span>";var I=this.text.substring(B,S.start);V+=this.supportCodicons?Object(re.c)(Object(ne.o)(I)):Object(ne.o)(I),V+="</span>",B=S.end}S.extraClasses?V+='<span class="highlight '+S.extraClasses+'">':V+='<span class="highlight">';var K=this.text.substring(S.start,S.end);V+=this.supportCodicons?Object(re.c)(Object(ne.o)(K)):Object(ne.o)(K),V+="</span>",B=S.end}}if(B<this.text.length){V+="<span>";var K=this.text.substring(B);V+=this.supportCodicons?Object(re.c)(Object(ne.o)(K)):Object(ne.o)(K),V+="</span>"}this.domNode.innerHTML=V,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},F.escapeNewLines=function(V,B){var G=0,x=0;return V.replace(/\r\n|\r|\n/g,function(S,I){x=S===`\r
`?-1:0,I+=G;for(var K=0,D=B;K<D.length;K++){var T=D[K];T.end<=I||(T.start>=I&&(T.start+=x),T.end>=I&&(T.end+=x))}return G+=x,"\u23CE"})},F}()},"7zd4":function(Et,A,o){},"8ATB":function(Et,A,o){},"8HAY":function(Et,A,o){"use strict";o.d(A,"a",function(){return V}),o.d(A,"b",function(){return B});var R=o("pmY6"),re=o("MI8n"),ne=function(){var G=function(S,I){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var T in D)D.hasOwnProperty(T)&&(K[T]=D[T])},G(S,I)};return function(x,S){G(x,S);function I(){this.constructor=x}x.prototype=S===null?Object.create(S):(I.prototype=S.prototype,new I)}}(),P=function(G,x,S,I){function K(D){return D instanceof S?D:new S(function(T){T(D)})}return new(S||(S=Promise))(function(D,T){function te(h){try{_(I.next(h))}catch(g){T(g)}}function U(h){try{_(I.throw(h))}catch(g){T(g)}}function _(h){h.done?D(h.value):K(h.value).then(te,U)}_((I=I.apply(G,x||[])).next())})},F=function(G,x){var S={label:0,sent:function(){if(D[0]&1)throw D[1];return D[1]},trys:[],ops:[]},I,K,D,T;return T={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function te(_){return function(h){return U([_,h])}}function U(_){if(I)throw new TypeError("Generator is already executing.");for(;S;)try{if(I=1,K&&(D=_[0]&2?K.return:_[0]?K.throw||((D=K.return)&&D.call(K),0):K.next)&&!(D=D.call(K,_[1])).done)return D;switch(K=0,D&&(_=[_[0]&2,D.value]),_[0]){case 0:case 1:D=_;break;case 4:return S.label++,{value:_[1],done:!1};case 5:S.label++,K=_[1],_=[0];continue;case 7:_=S.ops.pop(),S.trys.pop();continue;default:if(D=S.trys,!(D=D.length>0&&D[D.length-1])&&(_[0]===6||_[0]===2)){S=0;continue}if(_[0]===3&&(!D||_[1]>D[0]&&_[1]<D[3])){S.label=_[1];break}if(_[0]===6&&S.label<D[1]){S.label=D[1],D=_;break}if(D&&S.label<D[2]){S.label=D[2],S.ops.push(_);break}D[2]&&S.ops.pop(),S.trys.pop();continue}_=x.call(G,S)}catch(h){_=[6,h],K=0}finally{I=D=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},V=function(G){ne(x,G);function x(S,I,K,D,T){I===void 0&&(I=""),K===void 0&&(K=""),D===void 0&&(D=!0);var te=G.call(this)||this;return te._onDidChange=te._register(new re.a),te.onDidChange=te._onDidChange.event,te._enabled=!0,te._checked=!1,te._id=S,te._label=I,te._cssClass=K,te._enabled=D,te._actionCallback=T,te}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(I){this._setLabel(I)},enumerable:!0,configurable:!0}),x.prototype._setLabel=function(S){this._label!==S&&(this._label=S,this._onDidChange.fire({label:S}))},Object.defineProperty(x.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(I){this._setTooltip(I)},enumerable:!0,configurable:!0}),x.prototype._setTooltip=function(S){this._tooltip!==S&&(this._tooltip=S,this._onDidChange.fire({tooltip:S}))},Object.defineProperty(x.prototype,"class",{get:function(){return this._cssClass},set:function(I){this._setClass(I)},enumerable:!0,configurable:!0}),x.prototype._setClass=function(S){this._cssClass!==S&&(this._cssClass=S,this._onDidChange.fire({class:S}))},Object.defineProperty(x.prototype,"enabled",{get:function(){return this._enabled},set:function(I){this._setEnabled(I)},enumerable:!0,configurable:!0}),x.prototype._setEnabled=function(S){this._enabled!==S&&(this._enabled=S,this._onDidChange.fire({enabled:S}))},Object.defineProperty(x.prototype,"checked",{get:function(){return this._checked},set:function(I){this._setChecked(I)},enumerable:!0,configurable:!0}),x.prototype._setChecked=function(S){this._checked!==S&&(this._checked=S,this._onDidChange.fire({checked:S}))},x.prototype.run=function(S,I){return this._actionCallback?this._actionCallback(S):Promise.resolve(!0)},x}(R.a),B=function(G){ne(x,G);function x(){var S=G!==null&&G.apply(this,arguments)||this;return S._onDidBeforeRun=S._register(new re.a),S.onDidBeforeRun=S._onDidBeforeRun.event,S._onDidRun=S._register(new re.a),S.onDidRun=S._onDidRun.event,S}return x.prototype.run=function(S,I){return P(this,void 0,void 0,function(){var K,D;return F(this,function(T){switch(T.label){case 0:if(!S.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:S}),T.label=1;case 1:return T.trys.push([1,3,,4]),[4,this.runAction(S,I)];case 2:return K=T.sent(),this._onDidRun.fire({action:S,result:K}),[3,4];case 3:return D=T.sent(),this._onDidRun.fire({action:S,error:D}),[3,4];case 4:return[2]}})})},x.prototype.runAction=function(S,I){var K=I?S.run(I):S.run();return Promise.resolve(K)},x}(R.a)},"8HsV":function(Et,A,o){"use strict";o.d(A,"a",function(){return R});var R=function(){function re(){for(var ne=[],P=0;P<arguments.length;P++)ne[P]=arguments[P];this._entries=new Map;for(var F=0,V=ne;F<V.length;F++){var B=V[F],G=B[0],x=B[1];this.set(G,x)}}return re.prototype.set=function(ne,P){var F=this._entries.get(ne);return this._entries.set(ne,P),F},re.prototype.has=function(ne){return this._entries.has(ne)},re.prototype.get=function(ne){return this._entries.get(ne)},re}()},"8gvo":function(Et,A,o){},"8z58":function(Et,A,o){"use strict";o.r(A),o.d(A,"CancellationTokenSource",function(){return hd}),o.d(A,"Emitter",function(){return gd}),o.d(A,"KeyCode",function(){return pd}),o.d(A,"KeyMod",function(){return vd}),o.d(A,"Position",function(){return md}),o.d(A,"Range",function(){return yd}),o.d(A,"Selection",function(){return Cd}),o.d(A,"SelectionDirection",function(){return bd}),o.d(A,"MarkerSeverity",function(){return _d}),o.d(A,"MarkerTag",function(){return Sd}),o.d(A,"Uri",function(){return wd}),o.d(A,"Token",function(){return Ed}),o.d(A,"editor",function(){return Od}),o.d(A,"languages",function(){return Dd});var R=o("/UlZ"),re=o("URDS"),ne=o("JQT/"),P=o("MI8n"),F=o("/kV6"),V=o("bY76"),B=o("cGHE"),G=o("aokT"),x=o("gCVg"),S=o("Tcc1"),I;(function(s){s[s.Unknown=0]="Unknown",s[s.Disabled=1]="Disabled",s[s.Enabled=2]="Enabled"})(I||(I={}));var K;(function(s){s[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet"})(K||(K={}));var D;(function(s){s[s.Method=0]="Method",s[s.Function=1]="Function",s[s.Constructor=2]="Constructor",s[s.Field=3]="Field",s[s.Variable=4]="Variable",s[s.Class=5]="Class",s[s.Struct=6]="Struct",s[s.Interface=7]="Interface",s[s.Module=8]="Module",s[s.Property=9]="Property",s[s.Event=10]="Event",s[s.Operator=11]="Operator",s[s.Unit=12]="Unit",s[s.Value=13]="Value",s[s.Constant=14]="Constant",s[s.Enum=15]="Enum",s[s.EnumMember=16]="EnumMember",s[s.Keyword=17]="Keyword",s[s.Text=18]="Text",s[s.Color=19]="Color",s[s.File=20]="File",s[s.Reference=21]="Reference",s[s.Customcolor=22]="Customcolor",s[s.Folder=23]="Folder",s[s.TypeParameter=24]="TypeParameter",s[s.Snippet=25]="Snippet"})(D||(D={}));var T;(function(s){s[s.Deprecated=1]="Deprecated"})(T||(T={}));var te;(function(s){s[s.Invoke=0]="Invoke",s[s.TriggerCharacter=1]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(te||(te={}));var U;(function(s){s[s.EXACT=0]="EXACT",s[s.ABOVE=1]="ABOVE",s[s.BELOW=2]="BELOW"})(U||(U={}));var _;(function(s){s[s.NotSet=0]="NotSet",s[s.ContentFlush=1]="ContentFlush",s[s.RecoverFromMarkers=2]="RecoverFromMarkers",s[s.Explicit=3]="Explicit",s[s.Paste=4]="Paste",s[s.Undo=5]="Undo",s[s.Redo=6]="Redo"})(_||(_={}));var h;(function(s){s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(h||(h={}));var g;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(g||(g={}));var p;(function(s){s[s.None=0]="None",s[s.Keep=1]="Keep",s[s.Brackets=2]="Brackets",s[s.Advanced=3]="Advanced",s[s.Full=4]="Full"})(p||(p={}));var v;(function(s){s[s.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",s[s.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",s[s.accessibilitySupport=2]="accessibilitySupport",s[s.accessibilityPageSize=3]="accessibilityPageSize",s[s.ariaLabel=4]="ariaLabel",s[s.autoClosingBrackets=5]="autoClosingBrackets",s[s.autoClosingOvertype=6]="autoClosingOvertype",s[s.autoClosingQuotes=7]="autoClosingQuotes",s[s.autoIndent=8]="autoIndent",s[s.automaticLayout=9]="automaticLayout",s[s.autoSurround=10]="autoSurround",s[s.codeLens=11]="codeLens",s[s.colorDecorators=12]="colorDecorators",s[s.comments=13]="comments",s[s.contextmenu=14]="contextmenu",s[s.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",s[s.cursorBlinking=16]="cursorBlinking",s[s.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",s[s.cursorStyle=18]="cursorStyle",s[s.cursorSurroundingLines=19]="cursorSurroundingLines",s[s.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",s[s.cursorWidth=21]="cursorWidth",s[s.disableLayerHinting=22]="disableLayerHinting",s[s.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",s[s.dragAndDrop=24]="dragAndDrop",s[s.emptySelectionClipboard=25]="emptySelectionClipboard",s[s.extraEditorClassName=26]="extraEditorClassName",s[s.fastScrollSensitivity=27]="fastScrollSensitivity",s[s.find=28]="find",s[s.fixedOverflowWidgets=29]="fixedOverflowWidgets",s[s.folding=30]="folding",s[s.foldingStrategy=31]="foldingStrategy",s[s.foldingHighlight=32]="foldingHighlight",s[s.fontFamily=33]="fontFamily",s[s.fontInfo=34]="fontInfo",s[s.fontLigatures=35]="fontLigatures",s[s.fontSize=36]="fontSize",s[s.fontWeight=37]="fontWeight",s[s.formatOnPaste=38]="formatOnPaste",s[s.formatOnType=39]="formatOnType",s[s.glyphMargin=40]="glyphMargin",s[s.gotoLocation=41]="gotoLocation",s[s.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",s[s.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",s[s.hover=44]="hover",s[s.inDiffEditor=45]="inDiffEditor",s[s.letterSpacing=46]="letterSpacing",s[s.lightbulb=47]="lightbulb",s[s.lineDecorationsWidth=48]="lineDecorationsWidth",s[s.lineHeight=49]="lineHeight",s[s.lineNumbers=50]="lineNumbers",s[s.lineNumbersMinChars=51]="lineNumbersMinChars",s[s.links=52]="links",s[s.matchBrackets=53]="matchBrackets",s[s.minimap=54]="minimap",s[s.mouseStyle=55]="mouseStyle",s[s.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",s[s.mouseWheelZoom=57]="mouseWheelZoom",s[s.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",s[s.multiCursorModifier=59]="multiCursorModifier",s[s.multiCursorPaste=60]="multiCursorPaste",s[s.occurrencesHighlight=61]="occurrencesHighlight",s[s.overviewRulerBorder=62]="overviewRulerBorder",s[s.overviewRulerLanes=63]="overviewRulerLanes",s[s.parameterHints=64]="parameterHints",s[s.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",s[s.quickSuggestions=66]="quickSuggestions",s[s.quickSuggestionsDelay=67]="quickSuggestionsDelay",s[s.readOnly=68]="readOnly",s[s.renderControlCharacters=69]="renderControlCharacters",s[s.renderIndentGuides=70]="renderIndentGuides",s[s.renderFinalNewline=71]="renderFinalNewline",s[s.renderLineHighlight=72]="renderLineHighlight",s[s.renderValidationDecorations=73]="renderValidationDecorations",s[s.renderWhitespace=74]="renderWhitespace",s[s.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",s[s.roundedSelection=76]="roundedSelection",s[s.rulers=77]="rulers",s[s.scrollbar=78]="scrollbar",s[s.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",s[s.scrollBeyondLastLine=80]="scrollBeyondLastLine",s[s.selectionClipboard=81]="selectionClipboard",s[s.selectionHighlight=82]="selectionHighlight",s[s.selectOnLineNumbers=83]="selectOnLineNumbers",s[s.showFoldingControls=84]="showFoldingControls",s[s.showUnused=85]="showUnused",s[s.snippetSuggestions=86]="snippetSuggestions",s[s.smoothScrolling=87]="smoothScrolling",s[s.stopRenderingLineAfter=88]="stopRenderingLineAfter",s[s.suggest=89]="suggest",s[s.suggestFontSize=90]="suggestFontSize",s[s.suggestLineHeight=91]="suggestLineHeight",s[s.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",s[s.suggestSelection=93]="suggestSelection",s[s.tabCompletion=94]="tabCompletion",s[s.useTabStops=95]="useTabStops",s[s.wordSeparators=96]="wordSeparators",s[s.wordWrap=97]="wordWrap",s[s.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",s[s.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",s[s.wordWrapColumn=100]="wordWrapColumn",s[s.wordWrapMinified=101]="wordWrapMinified",s[s.wrappingIndent=102]="wrappingIndent",s[s.wrappingStrategy=103]="wrappingStrategy",s[s.editorClassName=104]="editorClassName",s[s.pixelRatio=105]="pixelRatio",s[s.tabFocusMode=106]="tabFocusMode",s[s.layoutInfo=107]="layoutInfo",s[s.wrappingInfo=108]="wrappingInfo"})(v||(v={}));var E;(function(s){s[s.TextDefined=0]="TextDefined",s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(E||(E={}));var k;(function(s){s[s.LF=0]="LF",s[s.CRLF=1]="CRLF"})(k||(k={}));var z;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(z||(z={}));var oe;(function(s){s[s.Unknown=0]="Unknown",s[s.Backspace=1]="Backspace",s[s.Tab=2]="Tab",s[s.Enter=3]="Enter",s[s.Shift=4]="Shift",s[s.Ctrl=5]="Ctrl",s[s.Alt=6]="Alt",s[s.PauseBreak=7]="PauseBreak",s[s.CapsLock=8]="CapsLock",s[s.Escape=9]="Escape",s[s.Space=10]="Space",s[s.PageUp=11]="PageUp",s[s.PageDown=12]="PageDown",s[s.End=13]="End",s[s.Home=14]="Home",s[s.LeftArrow=15]="LeftArrow",s[s.UpArrow=16]="UpArrow",s[s.RightArrow=17]="RightArrow",s[s.DownArrow=18]="DownArrow",s[s.Insert=19]="Insert",s[s.Delete=20]="Delete",s[s.KEY_0=21]="KEY_0",s[s.KEY_1=22]="KEY_1",s[s.KEY_2=23]="KEY_2",s[s.KEY_3=24]="KEY_3",s[s.KEY_4=25]="KEY_4",s[s.KEY_5=26]="KEY_5",s[s.KEY_6=27]="KEY_6",s[s.KEY_7=28]="KEY_7",s[s.KEY_8=29]="KEY_8",s[s.KEY_9=30]="KEY_9",s[s.KEY_A=31]="KEY_A",s[s.KEY_B=32]="KEY_B",s[s.KEY_C=33]="KEY_C",s[s.KEY_D=34]="KEY_D",s[s.KEY_E=35]="KEY_E",s[s.KEY_F=36]="KEY_F",s[s.KEY_G=37]="KEY_G",s[s.KEY_H=38]="KEY_H",s[s.KEY_I=39]="KEY_I",s[s.KEY_J=40]="KEY_J",s[s.KEY_K=41]="KEY_K",s[s.KEY_L=42]="KEY_L",s[s.KEY_M=43]="KEY_M",s[s.KEY_N=44]="KEY_N",s[s.KEY_O=45]="KEY_O",s[s.KEY_P=46]="KEY_P",s[s.KEY_Q=47]="KEY_Q",s[s.KEY_R=48]="KEY_R",s[s.KEY_S=49]="KEY_S",s[s.KEY_T=50]="KEY_T",s[s.KEY_U=51]="KEY_U",s[s.KEY_V=52]="KEY_V",s[s.KEY_W=53]="KEY_W",s[s.KEY_X=54]="KEY_X",s[s.KEY_Y=55]="KEY_Y",s[s.KEY_Z=56]="KEY_Z",s[s.Meta=57]="Meta",s[s.ContextMenu=58]="ContextMenu",s[s.F1=59]="F1",s[s.F2=60]="F2",s[s.F3=61]="F3",s[s.F4=62]="F4",s[s.F5=63]="F5",s[s.F6=64]="F6",s[s.F7=65]="F7",s[s.F8=66]="F8",s[s.F9=67]="F9",s[s.F10=68]="F10",s[s.F11=69]="F11",s[s.F12=70]="F12",s[s.F13=71]="F13",s[s.F14=72]="F14",s[s.F15=73]="F15",s[s.F16=74]="F16",s[s.F17=75]="F17",s[s.F18=76]="F18",s[s.F19=77]="F19",s[s.NumLock=78]="NumLock",s[s.ScrollLock=79]="ScrollLock",s[s.US_SEMICOLON=80]="US_SEMICOLON",s[s.US_EQUAL=81]="US_EQUAL",s[s.US_COMMA=82]="US_COMMA",s[s.US_MINUS=83]="US_MINUS",s[s.US_DOT=84]="US_DOT",s[s.US_SLASH=85]="US_SLASH",s[s.US_BACKTICK=86]="US_BACKTICK",s[s.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",s[s.US_BACKSLASH=88]="US_BACKSLASH",s[s.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",s[s.US_QUOTE=90]="US_QUOTE",s[s.OEM_8=91]="OEM_8",s[s.OEM_102=92]="OEM_102",s[s.NUMPAD_0=93]="NUMPAD_0",s[s.NUMPAD_1=94]="NUMPAD_1",s[s.NUMPAD_2=95]="NUMPAD_2",s[s.NUMPAD_3=96]="NUMPAD_3",s[s.NUMPAD_4=97]="NUMPAD_4",s[s.NUMPAD_5=98]="NUMPAD_5",s[s.NUMPAD_6=99]="NUMPAD_6",s[s.NUMPAD_7=100]="NUMPAD_7",s[s.NUMPAD_8=101]="NUMPAD_8",s[s.NUMPAD_9=102]="NUMPAD_9",s[s.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",s[s.NUMPAD_ADD=104]="NUMPAD_ADD",s[s.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",s[s.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",s[s.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",s[s.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",s[s.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",s[s.ABNT_C1=110]="ABNT_C1",s[s.ABNT_C2=111]="ABNT_C2",s[s.MAX_VALUE=112]="MAX_VALUE"})(oe||(oe={}));var fe;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(fe||(fe={}));var Se;(function(s){s[s.Unnecessary=1]="Unnecessary",s[s.Deprecated=2]="Deprecated"})(Se||(Se={}));var we;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(we||(we={}));var q;(function(s){s[s.UNKNOWN=0]="UNKNOWN",s[s.TEXTAREA=1]="TEXTAREA",s[s.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",s[s.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",s[s.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",s[s.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",s[s.CONTENT_TEXT=6]="CONTENT_TEXT",s[s.CONTENT_EMPTY=7]="CONTENT_EMPTY",s[s.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",s[s.CONTENT_WIDGET=9]="CONTENT_WIDGET",s[s.OVERVIEW_RULER=10]="OVERVIEW_RULER",s[s.SCROLLBAR=11]="SCROLLBAR",s[s.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",s[s.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(q||(q={}));var X;(function(s){s[s.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",s[s.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",s[s.TOP_CENTER=2]="TOP_CENTER"})(X||(X={}));var ce;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(ce||(ce={}));var Ne;(function(s){s[s.Off=0]="Off",s[s.On=1]="On",s[s.Relative=2]="Relative",s[s.Interval=3]="Interval",s[s.Custom=4]="Custom"})(Ne||(Ne={}));var He;(function(s){s[s.None=0]="None",s[s.Text=1]="Text",s[s.Blocks=2]="Blocks"})(He||(He={}));var _e;(function(s){s[s.Smooth=0]="Smooth",s[s.Immediate=1]="Immediate"})(_e||(_e={}));var de;(function(s){s[s.Auto=1]="Auto",s[s.Hidden=2]="Hidden",s[s.Visible=3]="Visible"})(de||(de={}));var se;(function(s){s[s.LTR=0]="LTR",s[s.RTL=1]="RTL"})(se||(se={}));var he;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(he||(he={}));var ie;(function(s){s[s.File=0]="File",s[s.Module=1]="Module",s[s.Namespace=2]="Namespace",s[s.Package=3]="Package",s[s.Class=4]="Class",s[s.Method=5]="Method",s[s.Property=6]="Property",s[s.Field=7]="Field",s[s.Constructor=8]="Constructor",s[s.Enum=9]="Enum",s[s.Interface=10]="Interface",s[s.Function=11]="Function",s[s.Variable=12]="Variable",s[s.Constant=13]="Constant",s[s.String=14]="String",s[s.Number=15]="Number",s[s.Boolean=16]="Boolean",s[s.Array=17]="Array",s[s.Object=18]="Object",s[s.Key=19]="Key",s[s.Null=20]="Null",s[s.EnumMember=21]="EnumMember",s[s.Struct=22]="Struct",s[s.Event=23]="Event",s[s.Operator=24]="Operator",s[s.TypeParameter=25]="TypeParameter"})(ie||(ie={}));var $;(function(s){s[s.Deprecated=1]="Deprecated"})($||($={}));var ve;(function(s){s[s.Hidden=0]="Hidden",s[s.Blink=1]="Blink",s[s.Smooth=2]="Smooth",s[s.Phase=3]="Phase",s[s.Expand=4]="Expand",s[s.Solid=5]="Solid"})(ve||(ve={}));var ye;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(ye||(ye={}));var Ue;(function(s){s[s.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",s[s.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",s[s.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",s[s.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Ue||(Ue={}));var tt;(function(s){s[s.None=0]="None",s[s.Same=1]="Same",s[s.Indent=2]="Indent",s[s.DeepIndent=3]="DeepIndent"})(tt||(tt={}));var _t=function(){function s(){}return s.chord=function(r,t){return Object(F.a)(r,t)},s.CtrlCmd=2048,s.Shift=1024,s.Alt=512,s.WinCtrl=256,s}();function At(){return{editor:void 0,languages:void 0,CancellationTokenSource:ne.b,Emitter:P.a,KeyCode:oe,KeyMod:_t,Position:B.a,Range:G.a,Selection:x.a,SelectionDirection:se,MarkerSeverity:fe,MarkerTag:Se,Uri:V.a,Token:S.a}}var Yt=o("siPX"),Ke=o("Vxe3"),Ye=o("EffR"),Xe=o("24hK"),Ze=o("Q4rV"),We=o("tYmi"),Qe=o("gslv"),Ee=o("nnTU"),W=o("W9cx"),ee;(function(s){s[s.API=0]="API",s[s.USER=1]="USER"})(ee||(ee={}));var Ae=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},me=function(s,r){return function(t,a){r(t,a,s)}},Me=function(s,r,t,a){function f(m){return m instanceof t?m:new t(function(H){H(m)})}return new(t||(t=Promise))(function(m,H){function Ce(ot){try{Pe(a.next(ot))}catch(dt){H(dt)}}function Te(ot){try{Pe(a.throw(ot))}catch(dt){H(dt)}}function Pe(ot){ot.done?m(ot.value):f(ot.value).then(Ce,Te)}Pe((a=a.apply(s,r||[])).next())})},Re=function(s,r){var t={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},a,f,m,H;return H={next:Ce(0),throw:Ce(1),return:Ce(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function Ce(Pe){return function(ot){return Te([Pe,ot])}}function Te(Pe){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,f&&(m=Pe[0]&2?f.return:Pe[0]?f.throw||((m=f.return)&&m.call(f),0):f.next)&&!(m=m.call(f,Pe[1])).done)return m;switch(f=0,m&&(Pe=[Pe[0]&2,m.value]),Pe[0]){case 0:case 1:m=Pe;break;case 4:return t.label++,{value:Pe[1],done:!1};case 5:t.label++,f=Pe[1],Pe=[0];continue;case 7:Pe=t.ops.pop(),t.trys.pop();continue;default:if(m=t.trys,!(m=m.length>0&&m[m.length-1])&&(Pe[0]===6||Pe[0]===2)){t=0;continue}if(Pe[0]===3&&(!m||Pe[1]>m[0]&&Pe[1]<m[3])){t.label=Pe[1];break}if(Pe[0]===6&&t.label<m[1]){t.label=m[1],m=Pe;break}if(m&&t.label<m[2]){t.label=m[2],t.ops.push(Pe);break}m[2]&&t.ops.pop(),t.trys.pop();continue}Pe=r.call(s,t)}catch(ot){Pe=[6,ot],f=0}finally{a=m=0}if(Pe[0]&5)throw Pe[1];return{value:Pe[0]?Pe[1]:void 0,done:!0}}},ge=function(){for(var s=0,r=0,t=arguments.length;r<t;r++)s+=arguments[r].length;for(var a=Array(s),f=0,r=0;r<t;r++)for(var m=arguments[r],H=0,Ce=m.length;H<Ce;H++,f++)a[f]=m[H];return a},nt=function(){function s(r){this._commandService=r}return s.prototype.open=function(r){return Me(this,void 0,void 0,function(){var t,a;return Re(this,function(f){switch(f.label){case 0:if(!Object(W.c)(r,We.b.command))return[2,!1];if(typeof r=="string"&&(r=V.a.parse(r)),!Ee.a.getCommand(r.path))throw new Error("command '"+r.path+"' NOT known");t=[];try{t=Object(Ze.a)(decodeURIComponent(r.query))}catch(m){try{t=Object(Ze.a)(r.query)}catch(H){}}return Array.isArray(t)||(t=[t]),[4,(a=this._commandService).executeCommand.apply(a,ge([r.path],t))];case 1:return f.sent(),[2,!0]}})})},s=Ae([me(0,Ee.b)],s),s}(),St=function(){function s(r){this._editorService=r}return s.prototype.open=function(r,t){return Me(this,void 0,void 0,function(){var a,f;return Re(this,function(m){switch(m.label){case 0:return typeof r=="string"&&(r=V.a.parse(r)),a=void 0,f=/^L?(\d+)(?:,(\d+))?/.exec(r.fragment),f&&(a={startLineNumber:parseInt(f[1]),startColumn:f[2]?parseInt(f[2]):1},r=r.with({fragment:""})),r.scheme===We.b.file&&(r=Object(Qe.g)(r)),[4,this._editorService.openCodeEditor({resource:r,options:{selection:a,context:(t==null?void 0:t.fromUserGesture)?ee.USER:ee.API}},this._editorService.getFocusedCodeEditor(),t==null?void 0:t.openToSide)];case 1:return m.sent(),[2,!0]}})})},s=Ae([me(0,Ke.a)],s),s}(),xt=function(){function s(r,t){var a=this;this._openers=new Xe.a,this._validators=new Xe.a,this._resolvers=new Xe.a,this._externalOpener={openExternal:function(m){return Ye.Z(m),Promise.resolve(!0)}},this._openers.push({open:function(m,H){return Me(a,void 0,void 0,function(){return Re(this,function(Ce){switch(Ce.label){case 0:return(H==null?void 0:H.openExternal)||Object(W.c)(m,We.b.mailto)||Object(W.c)(m,We.b.http)||Object(W.c)(m,We.b.https)?[4,this._doOpenExternal(m,H)]:[3,2];case 1:return Ce.sent(),[2,!0];case 2:return[2,!1]}})})}}),this._openers.push(new nt(t)),this._openers.push(new St(r))}return s.prototype.open=function(r,t){return Me(this,void 0,void 0,function(){var a,f,m,H,Ce,Te,Pe;return Re(this,function(ot){switch(ot.label){case 0:a=0,f=this._validators.toArray(),ot.label=1;case 1:return a<f.length?(m=f[a],[4,m.shouldOpen(r)]):[3,4];case 2:if(!ot.sent())return[2,!1];ot.label=3;case 3:return a++,[3,1];case 4:H=0,Ce=this._openers.toArray(),ot.label=5;case 5:return H<Ce.length?(Te=Ce[H],[4,Te.open(r,t)]):[3,8];case 6:if(Pe=ot.sent(),Pe)return[2,!0];ot.label=7;case 7:return H++,[3,5];case 8:return[2,!1]}})})},s.prototype.resolveExternalUri=function(r,t){return Me(this,void 0,void 0,function(){var a,f,m,H;return Re(this,function(Ce){switch(Ce.label){case 0:a=0,f=this._resolvers.toArray(),Ce.label=1;case 1:return a<f.length?(m=f[a],[4,m.resolveExternalUri(r,t)]):[3,4];case 2:if(H=Ce.sent(),H)return[2,H];Ce.label=3;case 3:return a++,[3,1];case 4:return[2,{resolved:r,dispose:function(){}}]}})})},s.prototype._doOpenExternal=function(r,t){return Me(this,void 0,void 0,function(){var a,f;return Re(this,function(m){switch(m.label){case 0:return a=typeof r=="string"?V.a.parse(r):r,[4,this.resolveExternalUri(a,t)];case 1:return f=m.sent().resolved,typeof r=="string"&&a.toString()===f.toString()?[2,this._externalOpener.openExternal(r)]:[2,this._externalOpener.openExternal(encodeURI(f.toString(!0)))]}})})},s.prototype.dispose=function(){this._validators.clear()},s=Ae([me(0,Ke.a),me(1,Ee.b)],s),s}(),Mt=o("FWmy"),zt=o("pmY6"),Gt=o("qj0h"),on=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),On={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},yn=function(s){on(r,s);function r(t,a){a===void 0&&(a={});var f=s.call(this)||this;return f._onDidUpdate=f._register(new P.a),f._editor=t,f._options=Gt.g(a,On,!1),f.disposed=!1,f.nextIdx=-1,f.ranges=[],f.ignoreSelectionChange=!1,f.revealFirst=Boolean(f._options.alwaysRevealFirst),f._register(f._editor.onDidDispose(function(){return f.dispose()})),f._register(f._editor.onDidUpdateDiff(function(){return f._onDiffUpdated()})),f._options.followsCaret&&f._register(f._editor.getModifiedEditor().onDidChangeCursorPosition(function(m){f.ignoreSelectionChange||(f.nextIdx=-1)})),f._options.alwaysRevealFirst&&f._register(f._editor.getModifiedEditor().onDidChangeModel(function(m){f.revealFirst=!0})),f._init(),f}return r.prototype._init=function(){var t=this._editor.getLineChanges()},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(t){var a=this;this.ranges=[],t&&t.forEach(function(f){!a._options.ignoreCharChanges&&f.charChanges?f.charChanges.forEach(function(m){a.ranges.push({rhs:!0,range:new G.a(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn)})}):a.ranges.push({rhs:!0,range:new G.a(f.modifiedStartLineNumber,1,f.modifiedStartLineNumber,1)})}),this.ranges.sort(function(f,m){return f.range.getStartPosition().isBeforeOrEqual(m.range.getStartPosition())?-1:m.range.getStartPosition().isBeforeOrEqual(f.range.getStartPosition())?1:0}),this._onDidUpdate.fire(this)},r.prototype._initIdx=function(t){var a=!1,f=this._editor.getPosition();if(!f){this.nextIdx=0;return}for(var m=0,H=this.ranges.length;m<H&&!a;m++){var Ce=this.ranges[m].range;f.isBeforeOrEqual(Ce.getStartPosition())&&(this.nextIdx=m+(t?0:-1),a=!0)}a||(this.nextIdx=t?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)},r.prototype._move=function(t,a){if(Mt.a(!this.disposed,"Illegal State - diff navigator has been disposed"),!!this.canNavigate()){this.nextIdx===-1?this._initIdx(t):t?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var f=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var m=f.range.getStartPosition();this._editor.setPosition(m),this._editor.revealPositionInCenter(m,a)}finally{this.ignoreSelectionChange=!1}}},r.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},r.prototype.next=function(t){t===void 0&&(t=0),this._move(!0,t)},r.prototype.previous=function(t){t===void 0&&(t=0),this._move(!1,t)},r.prototype.dispose=function(){s.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},r}(zt.a),Mn=o("+3Gp"),Ft=o("iuje"),gt=o("M1Kb"),pt=o("twdY"),Dt=o("i/Ef"),Ot=o("pAvP"),Ht=o("t49l"),Jt=o("X+cX"),nn=o("/cxE"),sn=o("MNsG"),un=o("746U"),Sn=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Ln="$initialize",An=!1;function Gn(s){!sn.g||(An||(An=!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(s.message))}var Jn=function(){function s(r){this._workerId=-1,this._handler=r,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return s.prototype.setWorkerId=function(r){this._workerId=r},s.prototype.sendMessage=function(r,t){var a=this,f=String(++this._lastSentReq);return new Promise(function(m,H){a._pendingReplies[f]={resolve:m,reject:H},a._send({vsWorker:a._workerId,req:f,method:r,args:t})})},s.prototype.handleMessage=function(r){!r||!r.vsWorker||this._workerId!==-1&&r.vsWorker!==this._workerId||this._handleMessage(r)},s.prototype._handleMessage=function(r){var t=this;if(r.seq){var a=r;if(!this._pendingReplies[a.seq]){console.warn("Got reply to unknown seq");return}var f=this._pendingReplies[a.seq];if(delete this._pendingReplies[a.seq],a.err){var m=a.err;a.err.$isError&&(m=new Error,m.name=a.err.name,m.message=a.err.message,m.stack=a.err.stack),f.reject(m);return}f.resolve(a.res);return}var H=r,Ce=H.req,Te=this._handler.handleMessage(H.method,H.args);Te.then(function(Pe){t._send({vsWorker:t._workerId,seq:Ce,res:Pe,err:void 0})},function(Pe){Pe.detail instanceof Error&&(Pe.detail=Object(nn.g)(Pe.detail)),t._send({vsWorker:t._workerId,seq:Ce,res:void 0,err:Object(nn.g)(Pe)})})},s.prototype._send=function(r){var t=[];if(r.req)for(var a=r,f=0;f<a.args.length;f++)a.args[f]instanceof ArrayBuffer&&t.push(a.args[f]);else{var a=r;a.res instanceof ArrayBuffer&&t.push(a.res)}this._handler.sendMessage(r,t)},s}(),$n=function(s){Sn(r,s);function r(t,a,f){var m=s.call(this)||this,H=null;m._worker=m._register(t.create("vs/base/common/worker/simpleWorker",function(ot){m._protocol.handleMessage(ot)},function(ot){H&&H(ot)})),m._protocol=new Jn({sendMessage:function(dt,Ct){m._worker.postMessage(dt,Ct)},handleMessage:function(dt,Ct){if(typeof f[dt]!="function")return Promise.reject(new Error("Missing method "+dt+" on main thread host."));try{return Promise.resolve(f[dt].apply(f,Ct))}catch(vt){return Promise.reject(vt)}}}),m._protocol.setWorkerId(m._worker.getId());var Ce=null;typeof self.require!="undefined"&&typeof self.require.getConfig=="function"?Ce=self.require.getConfig():typeof self.requirejs!="undefined"&&(Ce=self.requirejs.s.contexts._.config);var Te=un.c(f);m._onModuleLoaded=m._protocol.sendMessage(Ln,[m._worker.getId(),JSON.parse(JSON.stringify(Ce)),a,Te]);var Pe=function(dt,Ct){return m._request(dt,Ct)};return m._lazyProxy=new Promise(function(ot,dt){H=dt,m._onModuleLoaded.then(function(Ct){ot(un.b(Ct,Pe))},function(Ct){dt(Ct),m._onError("Worker failed to load "+a,Ct)})}),m}return r.prototype.getProxyObject=function(){return this._lazyProxy},r.prototype._request=function(t,a){var f=this;return new Promise(function(m,H){f._onModuleLoaded.then(function(){f._protocol.sendMessage(t,a).then(m,H)},H)})},r.prototype._onError=function(t,a){console.error(t),console.info(a)},r}(zt.a),pi=function(){function s(r,t){var a=this;this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new Jn({sendMessage:function(m,H){r(m,H)},handleMessage:function(m,H){return a._handleMessage(m,H)}})}return s.prototype.onmessage=function(r){this._protocol.handleMessage(r)},s.prototype._handleMessage=function(r,t){if(r===Ln)return this.initialize(t[0],t[1],t[2],t[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,t))}catch(a){return Promise.reject(a)}},s.prototype.initialize=function(r,t,a,f){var m=this;this._protocol.setWorkerId(r);var H=function(Pe,ot){return m._protocol.sendMessage(Pe,ot)},Ce=un.b(f,H);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(Ce),Promise.resolve(un.c(this._requestHandler))):(t&&(typeof t.baseUrl!="undefined"&&delete t.baseUrl,typeof t.paths!="undefined"&&typeof t.paths.vs!="undefined"&&delete t.paths.vs,t.catchError=!0,self.require.config(t)),new Promise(function(Te,Pe){self.require([a],function(ot){if(m._requestHandler=ot.create(Ce),!m._requestHandler){Pe(new Error("No RequestHandler!"));return}Te(un.c(m._requestHandler))},Pe)}))},s}();function Kn(s){return new pi(s,null)}function yi(s,r){if(sn.b.MonacoEnvironment){if(typeof sn.b.MonacoEnvironment.getWorker=="function")return sn.b.MonacoEnvironment.getWorker(s,r);if(typeof sn.b.MonacoEnvironment.getWorkerUrl=="function")return new Worker(sn.b.MonacoEnvironment.getWorkerUrl(s,r))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function vi(s){return typeof s.then=="function"}var mt=function(){function s(r,t,a,f,m){this.id=t;var H=yi("workerMain.js",a);vi(H)?this.worker=H:this.worker=Promise.resolve(H),this.postMessage(r,[]),this.worker.then(function(Ce){Ce.onmessage=function(Te){f(Te.data)},Ce.onmessageerror=m,typeof Ce.addEventListener=="function"&&Ce.addEventListener("error",m)})}return s.prototype.getId=function(){return this.id},s.prototype.postMessage=function(r,t){this.worker&&this.worker.then(function(a){return a.postMessage(r,t)})},s.prototype.dispose=function(){this.worker&&this.worker.then(function(r){return r.terminate()}),this.worker=null},s}(),Nt=function(){function s(r){this._label=r,this._webWorkerFailedBeforeError=!1}return s.prototype.create=function(r,t,a){var f=this,m=++s.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new mt(r,m,this._label||"anonymous"+m,t,function(H){Gn(H),f._webWorkerFailedBeforeError=H,a(H)})},s.LAST_WORKER_ID=0,s}(),Ut=o("cMvZ"),tn=o("6OMU"),Vt=function(){function s(r,t,a,f){this.originalStart=r,this.originalLength=t,this.modifiedStart=a,this.modifiedLength=f}return s.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},s.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},s}(),wn=o("7afs"),xn=function(){function s(r){this.source=r}return s.prototype.getElements=function(){for(var r=this.source,t=new Int32Array(r.length),a=0,f=r.length;a<f;a++)t[a]=r.charCodeAt(a);return t},s}();function kn(s,r,t){return new Ui(new xn(s),new xn(r)).ComputeDiff(t).changes}var Fn=function(){function s(){}return s.Assert=function(r,t){if(!r)throw new Error(t)},s}(),oi=function(){function s(){}return s.Copy=function(r,t,a,f,m){for(var H=0;H<m;H++)a[f+H]=r[t+H]},s.Copy2=function(r,t,a,f,m){for(var H=0;H<m;H++)a[f+H]=r[t+H]},s}(),ci=function(){function s(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return s.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Vt(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},s.prototype.AddOriginalElement=function(r,t){this.m_originalStart=Math.min(this.m_originalStart,r),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},s.prototype.AddModifiedElement=function(r,t){this.m_originalStart=Math.min(this.m_originalStart,r),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},s.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},s.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},s}(),Ui=function(){function s(r,t,a){a===void 0&&(a=null),this.ContinueProcessingPredicate=a;var f=s._getElements(r),m=f[0],H=f[1],Ce=f[2],Te=s._getElements(t),Pe=Te[0],ot=Te[1],dt=Te[2];this._hasStrings=Ce&&dt,this._originalStringElements=m,this._originalElementsOrHash=H,this._modifiedStringElements=Pe,this._modifiedElementsOrHash=ot,this.m_forwardHistory=[],this.m_reverseHistory=[]}return s._isStringArray=function(r){return r.length>0&&typeof r[0]=="string"},s._getElements=function(r){var t=r.getElements();if(s._isStringArray(t)){for(var a=new Int32Array(t.length),f=0,m=t.length;f<m;f++)a[f]=Object(wn.b)(t[f],0);return[t,a,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]},s.prototype.ElementsAreEqual=function(r,t){return this._originalElementsOrHash[r]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[r]===this._modifiedStringElements[t]:!0},s.prototype.OriginalElementsAreEqual=function(r,t){return this._originalElementsOrHash[r]!==this._originalElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[r]===this._originalStringElements[t]:!0},s.prototype.ModifiedElementsAreEqual=function(r,t){return this._modifiedElementsOrHash[r]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._modifiedStringElements[r]===this._modifiedStringElements[t]:!0},s.prototype.ComputeDiff=function(r){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,r)},s.prototype._ComputeDiff=function(r,t,a,f,m){var H=[!1],Ce=this.ComputeDiffRecursive(r,t,a,f,H);return m&&(Ce=this.PrettifyChanges(Ce)),{quitEarly:H[0],changes:Ce}},s.prototype.ComputeDiffRecursive=function(r,t,a,f,m){for(m[0]=!1;r<=t&&a<=f&&this.ElementsAreEqual(r,a);)r++,a++;for(;t>=r&&f>=a&&this.ElementsAreEqual(t,f);)t--,f--;if(r>t||a>f){var H=void 0;return a<=f?(Fn.Assert(r===t+1,"originalStart should only be one more than originalEnd"),H=[new Vt(r,0,a,f-a+1)]):r<=t?(Fn.Assert(a===f+1,"modifiedStart should only be one more than modifiedEnd"),H=[new Vt(r,t-r+1,a,0)]):(Fn.Assert(r===t+1,"originalStart should only be one more than originalEnd"),Fn.Assert(a===f+1,"modifiedStart should only be one more than modifiedEnd"),H=[]),H}var Ce=[0],Te=[0],Pe=this.ComputeRecursionPoint(r,t,a,f,Ce,Te,m),ot=Ce[0],dt=Te[0];if(Pe!==null)return Pe;if(!m[0]){var Ct=this.ComputeDiffRecursive(r,ot,a,dt,m),vt=[];return m[0]?vt=[new Vt(ot+1,t-(ot+1)+1,dt+1,f-(dt+1)+1)]:vt=this.ComputeDiffRecursive(ot+1,t,dt+1,f,m),this.ConcatenateChanges(Ct,vt)}return[new Vt(r,t-r+1,a,f-a+1)]},s.prototype.WALKTRACE=function(r,t,a,f,m,H,Ce,Te,Pe,ot,dt,Ct,vt,Qt,Kt,jt,kt,rn){var cn=null,En=null,_n=new ci,Wn=t,jn=a,Bn=vt[0]-jt[0]-f,ei=-1073741824,zn=this.m_forwardHistory.length-1;do{var mn=Bn+r;mn===Wn||mn<jn&&Pe[mn-1]<Pe[mn+1]?(dt=Pe[mn+1],Qt=dt-Bn-f,dt<ei&&_n.MarkNextChange(),ei=dt,_n.AddModifiedElement(dt+1,Qt),Bn=mn+1-r):(dt=Pe[mn-1]+1,Qt=dt-Bn-f,dt<ei&&_n.MarkNextChange(),ei=dt-1,_n.AddOriginalElement(dt,Qt+1),Bn=mn-1-r),zn>=0&&(Pe=this.m_forwardHistory[zn],r=Pe[0],Wn=1,jn=Pe.length-1)}while(--zn>=-1);if(cn=_n.getReverseChanges(),rn[0]){var ni=vt[0]+1,Qn=jt[0]+1;if(cn!==null&&cn.length>0){var gi=cn[cn.length-1];ni=Math.max(ni,gi.getOriginalEnd()),Qn=Math.max(Qn,gi.getModifiedEnd())}En=[new Vt(ni,Ct-ni+1,Qn,Kt-Qn+1)]}else{_n=new ci,Wn=H,jn=Ce,Bn=vt[0]-jt[0]-Te,ei=1073741824,zn=kt?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var mn=Bn+m;mn===Wn||mn<jn&&ot[mn-1]>=ot[mn+1]?(dt=ot[mn+1]-1,Qt=dt-Bn-Te,dt>ei&&_n.MarkNextChange(),ei=dt+1,_n.AddOriginalElement(dt+1,Qt+1),Bn=mn+1-m):(dt=ot[mn-1],Qt=dt-Bn-Te,dt>ei&&_n.MarkNextChange(),ei=dt,_n.AddModifiedElement(dt+1,Qt+1),Bn=mn-1-m),zn>=0&&(ot=this.m_reverseHistory[zn],m=ot[0],Wn=1,jn=ot.length-1)}while(--zn>=-1);En=_n.getChanges()}return this.ConcatenateChanges(cn,En)},s.prototype.ComputeRecursionPoint=function(r,t,a,f,m,H,Ce){var Te=0,Pe=0,ot=0,dt=0,Ct=0,vt=0;r--,a--,m[0]=0,H[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var Qt=t-r+(f-a),Kt=Qt+1,jt=new Int32Array(Kt),kt=new Int32Array(Kt),rn=f-a,cn=t-r,En=r-a,_n=t-f,Wn=cn-rn,jn=Wn%2==0;jt[rn]=r,kt[cn]=t,Ce[0]=!1;for(var Bn=1;Bn<=Qt/2+1;Bn++){var ei=0,zn=0;ot=this.ClipDiagonalBound(rn-Bn,Bn,rn,Kt),dt=this.ClipDiagonalBound(rn+Bn,Bn,rn,Kt);for(var mn=ot;mn<=dt;mn+=2){mn===ot||mn<dt&&jt[mn-1]<jt[mn+1]?Te=jt[mn+1]:Te=jt[mn-1]+1,Pe=Te-(mn-rn)-En;for(var ni=Te;Te<t&&Pe<f&&this.ElementsAreEqual(Te+1,Pe+1);)Te++,Pe++;if(jt[mn]=Te,Te+Pe>ei+zn&&(ei=Te,zn=Pe),!jn&&Math.abs(mn-cn)<=Bn-1&&Te>=kt[mn])return m[0]=Te,H[0]=Pe,ni<=kt[mn]&&1447>0&&Bn<=1447+1?this.WALKTRACE(rn,ot,dt,En,cn,Ct,vt,_n,jt,kt,Te,t,m,Pe,f,H,jn,Ce):null}var Qn=(ei-r+(zn-a)-Bn)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(ei,Qn))return Ce[0]=!0,m[0]=ei,H[0]=zn,Qn>0&&1447>0&&Bn<=1447+1?this.WALKTRACE(rn,ot,dt,En,cn,Ct,vt,_n,jt,kt,Te,t,m,Pe,f,H,jn,Ce):(r++,a++,[new Vt(r,t-r+1,a,f-a+1)]);Ct=this.ClipDiagonalBound(cn-Bn,Bn,cn,Kt),vt=this.ClipDiagonalBound(cn+Bn,Bn,cn,Kt);for(var mn=Ct;mn<=vt;mn+=2){mn===Ct||mn<vt&&kt[mn-1]>=kt[mn+1]?Te=kt[mn+1]-1:Te=kt[mn-1],Pe=Te-(mn-cn)-_n;for(var ni=Te;Te>r&&Pe>a&&this.ElementsAreEqual(Te,Pe);)Te--,Pe--;if(kt[mn]=Te,jn&&Math.abs(mn-rn)<=Bn&&Te<=jt[mn])return m[0]=Te,H[0]=Pe,ni>=jt[mn]&&1447>0&&Bn<=1447+1?this.WALKTRACE(rn,ot,dt,En,cn,Ct,vt,_n,jt,kt,Te,t,m,Pe,f,H,jn,Ce):null}if(Bn<=1447){var gi=new Int32Array(dt-ot+2);gi[0]=rn-ot+1,oi.Copy2(jt,ot,gi,1,dt-ot+1),this.m_forwardHistory.push(gi),gi=new Int32Array(vt-Ct+2),gi[0]=cn-Ct+1,oi.Copy2(kt,Ct,gi,1,vt-Ct+1),this.m_reverseHistory.push(gi)}}return this.WALKTRACE(rn,ot,dt,En,cn,Ct,vt,_n,jt,kt,Te,t,m,Pe,f,H,jn,Ce)},s.prototype.PrettifyChanges=function(r){for(var t=0;t<r.length;t++){for(var a=r[t],f=t<r.length-1?r[t+1].originalStart:this._originalElementsOrHash.length,m=t<r.length-1?r[t+1].modifiedStart:this._modifiedElementsOrHash.length,H=a.originalLength>0,Ce=a.modifiedLength>0;a.originalStart+a.originalLength<f&&a.modifiedStart+a.modifiedLength<m&&(!H||this.OriginalElementsAreEqual(a.originalStart,a.originalStart+a.originalLength))&&(!Ce||this.ModifiedElementsAreEqual(a.modifiedStart,a.modifiedStart+a.modifiedLength));)a.originalStart++,a.modifiedStart++;var Te=[null];if(t<r.length-1&&this.ChangesOverlap(r[t],r[t+1],Te)){r[t]=Te[0],r.splice(t+1,1),t--;continue}}for(var t=r.length-1;t>=0;t--){var a=r[t],f=0,m=0;if(t>0){var Pe=r[t-1];Pe.originalLength>0&&(f=Pe.originalStart+Pe.originalLength),Pe.modifiedLength>0&&(m=Pe.modifiedStart+Pe.modifiedLength)}for(var H=a.originalLength>0,Ce=a.modifiedLength>0,ot=0,dt=this._boundaryScore(a.originalStart,a.originalLength,a.modifiedStart,a.modifiedLength),Ct=1;;Ct++){var vt=a.originalStart-Ct,Qt=a.modifiedStart-Ct;if(vt<f||Qt<m||H&&!this.OriginalElementsAreEqual(vt,vt+a.originalLength)||Ce&&!this.ModifiedElementsAreEqual(Qt,Qt+a.modifiedLength))break;var Kt=this._boundaryScore(vt,a.originalLength,Qt,a.modifiedLength);Kt>dt&&(dt=Kt,ot=Ct)}a.originalStart-=ot,a.modifiedStart-=ot}return r},s.prototype._OriginalIsBoundary=function(r){return r<=0||r>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[r])},s.prototype._OriginalRegionIsBoundary=function(r,t){if(this._OriginalIsBoundary(r)||this._OriginalIsBoundary(r-1))return!0;if(t>0){var a=r+t;if(this._OriginalIsBoundary(a-1)||this._OriginalIsBoundary(a))return!0}return!1},s.prototype._ModifiedIsBoundary=function(r){return r<=0||r>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[r])},s.prototype._ModifiedRegionIsBoundary=function(r,t){if(this._ModifiedIsBoundary(r)||this._ModifiedIsBoundary(r-1))return!0;if(t>0){var a=r+t;if(this._ModifiedIsBoundary(a-1)||this._ModifiedIsBoundary(a))return!0}return!1},s.prototype._boundaryScore=function(r,t,a,f){var m=this._OriginalRegionIsBoundary(r,t)?1:0,H=this._ModifiedRegionIsBoundary(a,f)?1:0;return m+H},s.prototype.ConcatenateChanges=function(r,t){var a=[];if(r.length===0||t.length===0)return t.length>0?t:r;if(this.ChangesOverlap(r[r.length-1],t[0],a)){var f=new Array(r.length+t.length-1);return oi.Copy(r,0,f,0,r.length-1),f[r.length-1]=a[0],oi.Copy(t,1,f,r.length,t.length-1),f}else{var f=new Array(r.length+t.length);return oi.Copy(r,0,f,0,r.length),oi.Copy(t,0,f,r.length,t.length),f}},s.prototype.ChangesOverlap=function(r,t,a){if(Fn.Assert(r.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Fn.Assert(r.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),r.originalStart+r.originalLength>=t.originalStart||r.modifiedStart+r.modifiedLength>=t.modifiedStart){var f=r.originalStart,m=r.originalLength,H=r.modifiedStart,Ce=r.modifiedLength;return r.originalStart+r.originalLength>=t.originalStart&&(m=t.originalStart+t.originalLength-r.originalStart),r.modifiedStart+r.modifiedLength>=t.modifiedStart&&(Ce=t.modifiedStart+t.modifiedLength-r.modifiedStart),a[0]=new Vt(f,m,H,Ce),!0}else return a[0]=null,!1},s.prototype.ClipDiagonalBound=function(r,t,a,f){if(r>=0&&r<f)return r;var m=a,H=f-a-1,Ce=t%2==0;if(r<0){var Te=m%2==0;return Ce===Te?0:1}else{var Pe=H%2==0;return Ce===Pe?f-1:f-2}},s}(),rr=o("JYp7"),Xn=o("N0LK"),Ri=3;function wi(s,r,t,a){var f=new Ui(s,r,t);return f.ComputeDiff(a)}var Bi=function(){function s(r){for(var t=[],a=[],f=0,m=r.length;f<m;f++)t[f]=ki(r[f],1),a[f]=mi(r[f],1);this.lines=r,this._startColumns=t,this._endColumns=a}return s.prototype.getElements=function(){for(var r=[],t=0,a=this.lines.length;t<a;t++)r[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return r},s.prototype.getStartLineNumber=function(r){return r+1},s.prototype.getEndLineNumber=function(r){return r+1},s.prototype.createCharSequence=function(r,t,a){for(var f=[],m=[],H=[],Ce=0,Te=t;Te<=a;Te++)for(var Pe=this.lines[Te],ot=r?this._startColumns[Te]:1,dt=r?this._endColumns[Te]:Pe.length+1,Ct=ot;Ct<dt;Ct++)f[Ce]=Pe.charCodeAt(Ct-1),m[Ce]=Te+1,H[Ce]=Ct,Ce++;return new Vn(f,m,H)},s}(),Vn=function(){function s(r,t,a){this._charCodes=r,this._lineNumbers=t,this._columns=a}return s.prototype.getElements=function(){return this._charCodes},s.prototype.getStartLineNumber=function(r){return this._lineNumbers[r]},s.prototype.getStartColumn=function(r){return this._columns[r]},s.prototype.getEndLineNumber=function(r){return this._lineNumbers[r]},s.prototype.getEndColumn=function(r){return this._columns[r]+1},s}(),bi=function(){function s(r,t,a,f,m,H,Ce,Te){this.originalStartLineNumber=r,this.originalStartColumn=t,this.originalEndLineNumber=a,this.originalEndColumn=f,this.modifiedStartLineNumber=m,this.modifiedStartColumn=H,this.modifiedEndLineNumber=Ce,this.modifiedEndColumn=Te}return s.createFromDiffChange=function(r,t,a){var f,m,H,Ce,Te,Pe,ot,dt;return r.originalLength===0?(f=0,m=0,H=0,Ce=0):(f=t.getStartLineNumber(r.originalStart),m=t.getStartColumn(r.originalStart),H=t.getEndLineNumber(r.originalStart+r.originalLength-1),Ce=t.getEndColumn(r.originalStart+r.originalLength-1)),r.modifiedLength===0?(Te=0,Pe=0,ot=0,dt=0):(Te=a.getStartLineNumber(r.modifiedStart),Pe=a.getStartColumn(r.modifiedStart),ot=a.getEndLineNumber(r.modifiedStart+r.modifiedLength-1),dt=a.getEndColumn(r.modifiedStart+r.modifiedLength-1)),new s(f,m,H,Ce,Te,Pe,ot,dt)},s}();function ji(s){if(s.length<=1)return s;for(var r=[s[0]],t=r[0],a=1,f=s.length;a<f;a++){var m=s[a],H=m.originalStart-(t.originalStart+t.originalLength),Ce=m.modifiedStart-(t.modifiedStart+t.modifiedLength),Te=Math.min(H,Ce);Te<Ri?(t.originalLength=m.originalStart+m.originalLength-t.originalStart,t.modifiedLength=m.modifiedStart+m.modifiedLength-t.modifiedStart):(r.push(m),t=m)}return r}var Mi=function(){function s(r,t,a,f,m){this.originalStartLineNumber=r,this.originalEndLineNumber=t,this.modifiedStartLineNumber=a,this.modifiedEndLineNumber=f,this.charChanges=m}return s.createFromDiffResult=function(r,t,a,f,m,H,Ce){var Te,Pe,ot,dt,Ct=void 0;if(t.originalLength===0?(Te=a.getStartLineNumber(t.originalStart)-1,Pe=0):(Te=a.getStartLineNumber(t.originalStart),Pe=a.getEndLineNumber(t.originalStart+t.originalLength-1)),t.modifiedLength===0?(ot=f.getStartLineNumber(t.modifiedStart)-1,dt=0):(ot=f.getStartLineNumber(t.modifiedStart),dt=f.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),H&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&m()){var vt=a.createCharSequence(r,t.originalStart,t.originalStart+t.originalLength-1),Qt=f.createCharSequence(r,t.modifiedStart,t.modifiedStart+t.modifiedLength-1),Kt=wi(vt,Qt,m,!0).changes;Ce&&(Kt=ji(Kt)),Ct=[];for(var jt=0,kt=Kt.length;jt<kt;jt++)Ct.push(bi.createFromDiffChange(Kt[jt],vt,Qt))}return new s(Te,Pe,ot,dt,Ct)},s}(),Gi=function(){function s(r,t,a){this.shouldComputeCharChanges=a.shouldComputeCharChanges,this.shouldPostProcessCharChanges=a.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=a.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=a.shouldMakePrettyDiff,this.originalLines=r,this.modifiedLines=t,this.original=new Bi(r),this.modified=new Bi(t),this.continueLineDiff=qi(a.maxComputationTime),this.continueCharDiff=qi(a.maxComputationTime===0?0:Math.min(a.maxComputationTime,5e3))}return s.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=wi(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=r.changes,a=r.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var f=[],m=0,H=t.length;m<H;m++)f.push(Mi.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[m],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:a,changes:f}}for(var Ce=[],Te=0,Pe=0,m=-1,ot=t.length;m<ot;m++){for(var dt=m+1<ot?t[m+1]:null,Ct=dt?dt.originalStart:this.originalLines.length,vt=dt?dt.modifiedStart:this.modifiedLines.length;Te<Ct&&Pe<vt;){var Qt=this.originalLines[Te],Kt=this.modifiedLines[Pe];if(Qt!==Kt){{for(var jt=ki(Qt,1),kt=ki(Kt,1);jt>1&&kt>1;){var rn=Qt.charCodeAt(jt-2),cn=Kt.charCodeAt(kt-2);if(rn!==cn)break;jt--,kt--}(jt>1||kt>1)&&this._pushTrimWhitespaceCharChange(Ce,Te+1,1,jt,Pe+1,1,kt)}{for(var En=mi(Qt,1),_n=mi(Kt,1),Wn=Qt.length+1,jn=Kt.length+1;En<Wn&&_n<jn;){var rn=Qt.charCodeAt(En-1),cn=Qt.charCodeAt(_n-1);if(rn!==cn)break;En++,_n++}(En<Wn||_n<jn)&&this._pushTrimWhitespaceCharChange(Ce,Te+1,En,Wn,Pe+1,_n,jn)}}Te++,Pe++}dt&&(Ce.push(Mi.createFromDiffResult(this.shouldIgnoreTrimWhitespace,dt,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),Te+=dt.originalLength,Pe+=dt.modifiedLength)}return{quitEarly:a,changes:Ce}},s.prototype._pushTrimWhitespaceCharChange=function(r,t,a,f,m,H,Ce){if(!this._mergeTrimWhitespaceCharChange(r,t,a,f,m,H,Ce)){var Te=void 0;this.shouldComputeCharChanges&&(Te=[new bi(t,a,t,f,m,H,m,Ce)]),r.push(new Mi(t,t,m,m,Te))}},s.prototype._mergeTrimWhitespaceCharChange=function(r,t,a,f,m,H,Ce){var Te=r.length;if(Te===0)return!1;var Pe=r[Te-1];return Pe.originalEndLineNumber===0||Pe.modifiedEndLineNumber===0?!1:Pe.originalEndLineNumber+1===t&&Pe.modifiedEndLineNumber+1===m?(Pe.originalEndLineNumber=t,Pe.modifiedEndLineNumber=m,this.shouldComputeCharChanges&&Pe.charChanges&&Pe.charChanges.push(new bi(t,a,t,f,m,H,m,Ce)),!0):!1},s}();function ki(s,r){var t=Xn.q(s);return t===-1?r:t+1}function mi(s,r){var t=Xn.D(s);return t===-1?r:t+2}function qi(s){if(s===0)return function(){return!0};var r=Date.now();return function(){return Date.now()-r<s}}var or=o("LeU+"),Ci=function(){function s(r,t,a,f){this._uri=r,this._lines=t,this._eol=a,this._versionId=f,this._lineStarts=null}return s.prototype.dispose=function(){this._lines.length=0},s.prototype.getText=function(){return this._lines.join(this._eol)},s.prototype.onEvents=function(r){r.eol&&r.eol!==this._eol&&(this._eol=r.eol,this._lineStarts=null);for(var t=r.changes,a=0,f=t;a<f.length;a++){var m=f[a];this._acceptDeleteRange(m.range),this._acceptInsertText(new B.a(m.range.startLineNumber,m.range.startColumn),m.text)}this._versionId=r.versionId},s.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var r=this._eol.length,t=this._lines.length,a=new Uint32Array(t),f=0;f<t;f++)a[f]=this._lines[f].length+r;this._lineStarts=new or.a(a)}},s.prototype._setLineText=function(r,t){this._lines[r]=t,this._lineStarts&&this._lineStarts.changeValue(r,this._lines[r].length+this._eol.length)},s.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)},s.prototype._acceptInsertText=function(r,t){if(t.length!==0){var a=t.split(/\r\n|\r|\n/);if(a.length===1){this._setLineText(r.lineNumber-1,this._lines[r.lineNumber-1].substring(0,r.column-1)+a[0]+this._lines[r.lineNumber-1].substring(r.column-1));return}a[a.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)+a[0]);for(var f=new Uint32Array(a.length-1),m=1;m<a.length;m++)this._lines.splice(r.lineNumber+m-1,0,a[m]),f[m-1]=a[m].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(r.lineNumber,f)}},s}(),Di=o("0JNc"),Yi=o("MXAL"),ur=function(){function s(r,t,a){for(var f=new Uint8Array(r*t),m=0,H=r*t;m<H;m++)f[m]=a;this._data=f,this.rows=r,this.cols=t}return s.prototype.get=function(r,t){return this._data[r*this.cols+t]},s.prototype.set=function(r,t,a){this._data[r*this.cols+t]=a},s}(),Ni=function(){function s(r){for(var t=0,a=0,f=0,m=r.length;f<m;f++){var H=r[f],Ce=H[0],Te=H[1],Pe=H[2];Te>t&&(t=Te),Ce>a&&(a=Ce),Pe>a&&(a=Pe)}t++,a++;for(var ot=new ur(a,t,0),f=0,m=r.length;f<m;f++){var dt=r[f],Ce=dt[0],Te=dt[1],Pe=dt[2];ot.set(Ce,Te,Pe)}this._states=ot,this._maxCharCode=t}return s.prototype.nextState=function(r,t){return t<0||t>=this._maxCharCode?0:this._states.get(r,t)},s}(),sr=null;function $e(){return sr===null&&(sr=new Ni([[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]])),sr}var L=null;function M(){if(L===null){L=new Yi.a(0);for(var s=` <>'"\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<s.length;r++)L.set(s.charCodeAt(r),1);for(var t=".,;",r=0;r<t.length;r++)L.set(t.charCodeAt(r),2)}return L}var Z=function(){function s(){}return s._createLink=function(r,t,a,f,m){var H=m-1;do{var Ce=t.charCodeAt(H),Te=r.get(Ce);if(Te!==2)break;H--}while(H>f);if(f>0){var Pe=t.charCodeAt(f-1),ot=t.charCodeAt(H);(Pe===40&&ot===41||Pe===91&&ot===93||Pe===123&&ot===125)&&H--}return{range:{startLineNumber:a,startColumn:f+1,endLineNumber:a,endColumn:H+2},url:t.substring(f,H+1)}},s.computeLinks=function(r,t){t===void 0&&(t=$e());for(var a=M(),f=[],m=1,H=r.getLineCount();m<=H;m++){for(var Ce=r.getLineContent(m),Te=Ce.length,Pe=0,ot=0,dt=0,Ct=1,vt=!1,Qt=!1,Kt=!1;Pe<Te;){var jt=!1,kt=Ce.charCodeAt(Pe);if(Ct===13){var rn=void 0;switch(kt){case 40:vt=!0,rn=0;break;case 41:rn=vt?0:1;break;case 91:Qt=!0,rn=0;break;case 93:rn=Qt?0:1;break;case 123:Kt=!0,rn=0;break;case 125:rn=Kt?0:1;break;case 39:rn=dt===34||dt===96?0:1;break;case 34:rn=dt===39||dt===96?0:1;break;case 96:rn=dt===39||dt===34?0:1;break;case 42:rn=dt===42?1:0;break;case 124:rn=dt===124?1:0;break;default:rn=a.get(kt)}rn===1&&(f.push(s._createLink(a,Ce,m,ot,Pe)),jt=!0)}else if(Ct===12){var rn=void 0;kt===91?(Qt=!0,rn=0):rn=a.get(kt),rn===1?jt=!0:Ct=13}else Ct=t.nextState(Ct,kt),Ct===0&&(jt=!0);jt&&(Ct=1,vt=!1,Qt=!1,Kt=!1,ot=Pe+1,dt=kt),Pe++}Ct===13&&f.push(s._createLink(a,Ce,m,ot,Te))}return f},s}();function De(s){return!s||typeof s.getLineCount!="function"||typeof s.getLineContent!="function"?[]:Z.computeLinks(s)}var xe=function(){function s(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return s.prototype.navigateValueSet=function(r,t,a,f,m){if(r&&t){var H=this.doNavigateValueSet(t,m);if(H)return{range:r,value:H}}if(a&&f){var H=this.doNavigateValueSet(f,m);if(H)return{range:a,value:H}}return null},s.prototype.doNavigateValueSet=function(r,t){var a=this.numberReplace(r,t);return a!==null?a:this.textReplace(r,t)},s.prototype.numberReplace=function(r,t){var a=Math.pow(10,r.length-(r.lastIndexOf(".")+1)),f=Number(r),m=parseFloat(r);return!isNaN(f)&&!isNaN(m)&&f===m?f===0&&!t?null:(f=Math.floor(f*a),f+=t?a:-a,String(f/a)):null},s.prototype.textReplace=function(r,t){return this.valueSetsReplace(this._defaultValueSet,r,t)},s.prototype.valueSetsReplace=function(r,t,a){for(var f=null,m=0,H=r.length;f===null&&m<H;m++)f=this.valueSetReplace(r[m],t,a);return f},s.prototype.valueSetReplace=function(r,t,a){var f=r.indexOf(t);return f>=0?(f+=a?1:-1,f<0?f=r.length-1:f%=r.length,r[f]):null},s.INSTANCE=new s,s}(),je=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ht=function(s,r,t,a){function f(m){return m instanceof t?m:new t(function(H){H(m)})}return new(t||(t=Promise))(function(m,H){function Ce(ot){try{Pe(a.next(ot))}catch(dt){H(dt)}}function Te(ot){try{Pe(a.throw(ot))}catch(dt){H(dt)}}function Pe(ot){ot.done?m(ot.value):f(ot.value).then(Ce,Te)}Pe((a=a.apply(s,r||[])).next())})},ut=function(s,r){var t={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},a,f,m,H;return H={next:Ce(0),throw:Ce(1),return:Ce(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function Ce(Pe){return function(ot){return Te([Pe,ot])}}function Te(Pe){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,f&&(m=Pe[0]&2?f.return:Pe[0]?f.throw||((m=f.return)&&m.call(f),0):f.next)&&!(m=m.call(f,Pe[1])).done)return m;switch(f=0,m&&(Pe=[Pe[0]&2,m.value]),Pe[0]){case 0:case 1:m=Pe;break;case 4:return t.label++,{value:Pe[1],done:!1};case 5:t.label++,f=Pe[1],Pe=[0];continue;case 7:Pe=t.ops.pop(),t.trys.pop();continue;default:if(m=t.trys,!(m=m.length>0&&m[m.length-1])&&(Pe[0]===6||Pe[0]===2)){t=0;continue}if(Pe[0]===3&&(!m||Pe[1]>m[0]&&Pe[1]<m[3])){t.label=Pe[1];break}if(Pe[0]===6&&t.label<m[1]){t.label=m[1],m=Pe;break}if(m&&t.label<m[2]){t.label=m[2],t.ops.push(Pe);break}m[2]&&t.ops.pop(),t.trys.pop();continue}Pe=r.call(s,t)}catch(ot){Pe=[6,ot],f=0}finally{a=m=0}if(Pe[0]&5)throw Pe[1];return{value:Pe[0]?Pe[1]:void 0,done:!0}}},yt=function(s){je(r,s);function r(){return s!==null&&s.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(t){return this._lines[t-1]},r.prototype.getWordAtPosition=function(t,a){var f=Object(Di.d)(t.column,Object(Di.c)(a),this._lines[t.lineNumber-1],0);return f?new G.a(t.lineNumber,f.startColumn,t.lineNumber,f.endColumn):null},r.prototype.createWordIterator=function(t){var a=this,f,m=0,H,Ce=0,Te=[],Pe=function ot(){if(Ce<Te.length){var dt=H.substring(Te[Ce].start,Te[Ce].end);return Ce+=1,f?f.value=dt:f={done:!1,value:dt},f}else return m>=a._lines.length?rr.b:(H=a._lines[m],Te=a._wordenize(H,t),Ce=0,m+=1,ot())};return{next:Pe}},r.prototype.getLineWords=function(t,a){for(var f=this._lines[t-1],m=this._wordenize(f,a),H=[],Ce=0,Te=m;Ce<Te.length;Ce++){var Pe=Te[Ce];H.push({word:f.substring(Pe.start,Pe.end),startColumn:Pe.start+1,endColumn:Pe.end+1})}return H},r.prototype._wordenize=function(t,a){var f=[],m;for(a.lastIndex=0;(m=a.exec(t))&&m[0].length!==0;)f.push({start:m.index,end:m.index+m[0].length});return f},r.prototype.getValueInRange=function(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);var a=this._eol,f=t.startLineNumber-1,m=t.endLineNumber-1,H=[];H.push(this._lines[f].substring(t.startColumn-1));for(var Ce=f+1;Ce<m;Ce++)H.push(this._lines[Ce]);return H.push(this._lines[m].substring(0,t.endColumn-1)),H.join(a)},r.prototype.offsetAt=function(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(t.lineNumber-2)+(t.column-1)},r.prototype.positionAt=function(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();var a=this._lineStarts.getIndexOf(t),f=this._lines[a.index].length;return{lineNumber:1+a.index,column:1+Math.min(a.remainder,f)}},r.prototype._validateRange=function(t){var a=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),f=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return a.lineNumber!==t.startLineNumber||a.column!==t.startColumn||f.lineNumber!==t.endLineNumber||f.column!==t.endColumn?{startLineNumber:a.lineNumber,startColumn:a.column,endLineNumber:f.lineNumber,endColumn:f.column}:t},r.prototype._validatePosition=function(t){if(!B.a.isIPosition(t))throw new Error("bad position");var a=t.lineNumber,f=t.column,m=!1;if(a<1)a=1,f=1,m=!0;else if(a>this._lines.length)a=this._lines.length,f=this._lines[a-1].length+1,m=!0;else{var H=this._lines[a-1].length+1;f<1?(f=1,m=!0):f>H&&(f=H,m=!0)}return m?{lineNumber:a,column:f}:t},r}(Ci),It=function(){function s(r,t){this._host=r,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}return s.prototype.dispose=function(){this._models=Object.create(null)},s.prototype._getModel=function(r){return this._models[r]},s.prototype._getModels=function(){var r=this,t=[];return Object.keys(this._models).forEach(function(a){return t.push(r._models[a])}),t},s.prototype.acceptNewModel=function(r){this._models[r.url]=new yt(V.a.parse(r.url),r.lines,r.EOL,r.versionId)},s.prototype.acceptModelChanged=function(r,t){if(!!this._models[r]){var a=this._models[r];a.onEvents(t)}},s.prototype.acceptRemovedModel=function(r){!this._models[r]||delete this._models[r]},s.prototype.computeDiff=function(r,t,a,f){return ht(this,void 0,void 0,function(){var m,H,Ce,Te,Pe,ot,dt;return ut(this,function(Ct){return m=this._getModel(r),H=this._getModel(t),!m||!H?[2,null]:(Ce=m.getLinesContent(),Te=H.getLinesContent(),Pe=new Gi(Ce,Te,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:a,shouldMakePrettyDiff:!0,maxComputationTime:f}),ot=Pe.computeDiff(),dt=ot.changes.length>0?!1:this._modelsAreIdentical(m,H),[2,{quitEarly:ot.quitEarly,identical:dt,changes:ot.changes}])})})},s.prototype._modelsAreIdentical=function(r,t){var a=r.getLineCount(),f=t.getLineCount();if(a!==f)return!1;for(var m=1;m<=a;m++){var H=r.getLineContent(m),Ce=t.getLineContent(m);if(H!==Ce)return!1}return!0},s.prototype.computeMoreMinimalEdits=function(r,t){return ht(this,void 0,void 0,function(){var a,f,m,H,Ce,Te,Pe,ot,dt,Ct,vt,Qt,Kt,jt,kt,rn,cn,En;return ut(this,function(_n){if(a=this._getModel(r),!a)return[2,t];for(f=[],m=void 0,t=Object(tn.r)(t,function(Wn,jn){if(Wn.range&&jn.range)return G.a.compareRangesUsingStarts(Wn.range,jn.range);var Bn=Wn.range?0:1,ei=jn.range?0:1;return Bn-ei}),H=0,Ce=t;H<Ce.length;H++)if(Te=Ce[H],Pe=Te.range,ot=Te.text,dt=Te.eol,typeof dt=="number"&&(m=dt),!(G.a.isEmpty(Pe)&&!ot)&&(Ct=a.getValueInRange(Pe),ot=ot.replace(/\r\n|\n|\r/g,a.eol),Ct!==ot)){if(Math.max(ot.length,Ct.length)>s._diffLimit){f.push({range:Pe,text:ot});continue}for(vt=kn(Ct,ot,!1),Qt=a.offsetAt(G.a.lift(Pe).getStartPosition()),Kt=0,jt=vt;Kt<jt.length;Kt++)kt=jt[Kt],rn=a.positionAt(Qt+kt.originalStart),cn=a.positionAt(Qt+kt.originalStart+kt.originalLength),En={text:ot.substr(kt.modifiedStart,kt.modifiedLength),range:{startLineNumber:rn.lineNumber,startColumn:rn.column,endLineNumber:cn.lineNumber,endColumn:cn.column}},a.getValueInRange(En.range)!==En.text&&f.push(En)}return typeof m=="number"&&f.push({eol:m,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,f]})})},s.prototype.computeLinks=function(r){return ht(this,void 0,void 0,function(){var t;return ut(this,function(a){return t=this._getModel(r),t?[2,De(t)]:[2,null]})})},s.prototype.textualSuggest=function(r,t,a,f){return ht(this,void 0,void 0,function(){var m,H,Ce,Te,Pe,ot,dt,Ct;return ut(this,function(vt){if(m=this._getModel(r),!m)return[2,null];for(H=[],Ce=new Set,Te=new RegExp(a,f),Pe=m.getWordAtPosition(t,Te),Pe&&Ce.add(m.getValueInRange(Pe)),ot=m.createWordIterator(Te),dt=ot.next();!dt.done&&Ce.size<=s._suggestionsLimit;dt=ot.next())Ct=dt.value,!Ce.has(Ct)&&(Ce.add(Ct),!!isNaN(Number(Ct))&&H.push(Ct));return[2,H]})})},s.prototype.computeWordRanges=function(r,t,a,f){return ht(this,void 0,void 0,function(){var m,H,Ce,Te,Pe,ot,dt,Ct,vt;return ut(this,function(Qt){if(m=this._getModel(r),!m)return[2,Object.create(null)];for(H=new RegExp(a,f),Ce=Object.create(null),Te=t.startLineNumber;Te<t.endLineNumber;Te++)for(Pe=m.getLineWords(Te,H),ot=0,dt=Pe;ot<dt.length;ot++)Ct=dt[ot],!!isNaN(Number(Ct.word))&&(vt=Ce[Ct.word],vt||(vt=[],Ce[Ct.word]=vt),vt.push({startLineNumber:Te,startColumn:Ct.startColumn,endLineNumber:Te,endColumn:Ct.endColumn}));return[2,Ce]})})},s.prototype.navigateValueSet=function(r,t,a,f,m){return ht(this,void 0,void 0,function(){var H,Ce,Te,Pe,ot,dt;return ut(this,function(Ct){return H=this._getModel(r),H?(Ce=new RegExp(f,m),t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1}),Te=H.getValueInRange(t),Pe=H.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},Ce),Pe?(ot=H.getValueInRange(Pe),dt=xe.INSTANCE.navigateValueSet(t,Te,Pe,ot,a),[2,dt]):[2,null]):[2,null]})})},s.prototype.loadForeignModule=function(r,t,a){var f=this,m=function(Pe,ot){return f._host.fhr(Pe,ot)},H=un.b(a,m),Ce={host:H,getMirrorModels:function(){return f._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Ce,t),Promise.resolve(un.c(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},s.prototype.fmr=function(r,t){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,t))}catch(a){return Promise.reject(a)}},s._diffLimit=1e5,s._suggestionsLimit=1e4,s}();function Rt(s){return new It(s,null)}typeof importScripts=="function"&&(sn.b.monaco=At());var Wt=o("G2kB"),Zt=o("Cg/j"),Xt=Object(Zt.c)("textResourceConfigurationService"),ln=Object(Zt.c)("textResourcePropertiesService"),hn=o("09fa"),Tn=o("5Y4S"),pn=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Nn=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},In=function(s,r){return function(t,a){r(t,a,s)}},Oe=function(s,r,t,a){function f(m){return m instanceof t?m:new t(function(H){H(m)})}return new(t||(t=Promise))(function(m,H){function Ce(ot){try{Pe(a.next(ot))}catch(dt){H(dt)}}function Te(ot){try{Pe(a.throw(ot))}catch(dt){H(dt)}}function Pe(ot){ot.done?m(ot.value):f(ot.value).then(Ce,Te)}Pe((a=a.apply(s,r||[])).next())})},j=function(s,r){var t={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},a,f,m,H;return H={next:Ce(0),throw:Ce(1),return:Ce(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function Ce(Pe){return function(ot){return Te([Pe,ot])}}function Te(Pe){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,f&&(m=Pe[0]&2?f.return:Pe[0]?f.throw||((m=f.return)&&m.call(f),0):f.next)&&!(m=m.call(f,Pe[1])).done)return m;switch(f=0,m&&(Pe=[Pe[0]&2,m.value]),Pe[0]){case 0:case 1:m=Pe;break;case 4:return t.label++,{value:Pe[1],done:!1};case 5:t.label++,f=Pe[1],Pe=[0];continue;case 7:Pe=t.ops.pop(),t.trys.pop();continue;default:if(m=t.trys,!(m=m.length>0&&m[m.length-1])&&(Pe[0]===6||Pe[0]===2)){t=0;continue}if(Pe[0]===3&&(!m||Pe[1]>m[0]&&Pe[1]<m[3])){t.label=Pe[1];break}if(Pe[0]===6&&t.label<m[1]){t.label=m[1],m=Pe;break}if(m&&t.label<m[2]){t.label=m[2],t.ops.push(Pe);break}m[2]&&t.ops.pop(),t.trys.pop();continue}Pe=r.call(s,t)}catch(ot){Pe=[6,ot],f=0}finally{a=m=0}if(Pe[0]&5)throw Pe[1];return{value:Pe[0]?Pe[1]:void 0,done:!0}}},ae=60*1e3,Fe=5*60*1e3;function qe(s,r){var t=s.getModel(r);return!(!t||t.isTooLargeForSyncing())}var ct=function(s){pn(r,s);function r(t,a,f){var m=s.call(this)||this;return m._modelService=t,m._workerManager=m._register(new Ge(m._modelService)),m._logService=f,m._register(pt.r.register("*",{provideLinks:function(Ce,Te){return qe(m._modelService,Ce.uri)?m._workerManager.withWorker().then(function(Pe){return Pe.computeLinks(Ce.uri)}).then(function(Pe){return Pe&&{links:Pe}}):Promise.resolve({links:[]})}})),m._register(pt.d.register("*",new wt(m._workerManager,a,m._modelService))),m}return r.prototype.dispose=function(){s.prototype.dispose.call(this)},r.prototype.canComputeDiff=function(t,a){return qe(this._modelService,t)&&qe(this._modelService,a)},r.prototype.computeDiff=function(t,a,f,m){return this._workerManager.withWorker().then(function(H){return H.computeDiff(t,a,f,m)})},r.prototype.computeMoreMinimalEdits=function(t,a){var f=this;if(Object(tn.q)(a)){if(!qe(this._modelService,t))return Promise.resolve(a);var m=Tn.a.create(!0),H=this._workerManager.withWorker().then(function(Ce){return Ce.computeMoreMinimalEdits(t,a)});return H.finally(function(){return f._logService.trace("FORMAT#computeMoreMinimalEdits",t.toString(!0),m.elapsed())}),H}else return Promise.resolve(void 0)},r.prototype.canNavigateValueSet=function(t){return qe(this._modelService,t)},r.prototype.navigateValueSet=function(t,a,f){return this._workerManager.withWorker().then(function(m){return m.navigateValueSet(t,a,f)})},r.prototype.canComputeWordRanges=function(t){return qe(this._modelService,t)},r.prototype.computeWordRanges=function(t,a){return this._workerManager.withWorker().then(function(f){return f.computeWordRanges(t,a)})},r=Nn([In(0,Wt.a),In(1,Xt),In(2,hn.a)],r),r}(zt.a),wt=function(){function s(r,t,a){this._debugDisplayName="wordbasedCompletions",this._workerManager=r,this._configurationService=t,this._modelService=a}return s.prototype.provideCompletionItems=function(r,t){return Oe(this,void 0,void 0,function(){var a,f,m,H,Ce,Te;return j(this,function(Pe){switch(Pe.label){case 0:return a=this._configurationService.getValue(r.uri,t,"editor").wordBasedSuggestions,a?qe(this._modelService,r.uri)?(f=r.getWordAtPosition(t),m=f?new G.a(t.lineNumber,f.startColumn,t.lineNumber,f.endColumn):G.a.fromPositions(t),H=m.setEndPosition(t.lineNumber,t.column),[4,this._workerManager.withWorker()]):[2,void 0]:[2,void 0];case 1:return Ce=Pe.sent(),[4,Ce.textualSuggest(r.uri,t)];case 2:return Te=Pe.sent(),Te?[2,{suggestions:Te.map(function(ot){return{kind:18,label:ot,insertText:ot,range:{insert:H,replace:m}}})}]:[2,void 0]}})})},s}(),Ge=function(s){pn(r,s);function r(t){var a=s.call(this)||this;a._modelService=t,a._editorWorkerClient=null,a._lastWorkerUsedTime=new Date().getTime();var f=a._register(new Jt.c);return f.cancelAndSet(function(){return a._checkStopIdleWorker()},Math.round(Fe/2)),a._register(a._modelService.onModelRemoved(function(m){return a._checkStopEmptyWorker()})),a}return r.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),s.prototype.dispose.call(this)},r.prototype._checkStopEmptyWorker=function(){if(!!this._editorWorkerClient){var t=this._modelService.getModels();t.length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},r.prototype._checkStopIdleWorker=function(){if(!!this._editorWorkerClient){var t=new Date().getTime()-this._lastWorkerUsedTime;t>Fe&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},r.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new at(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},r}(zt.a),le=function(s){pn(r,s);function r(t,a,f){var m=s.call(this)||this;if(m._syncedModels=Object.create(null),m._syncedModelsLastUsedTime=Object.create(null),m._proxy=t,m._modelService=a,!f){var H=new Jt.c;H.cancelAndSet(function(){return m._checkStopModelSync()},Math.round(ae/2)),m._register(H)}return m}return r.prototype.dispose=function(){for(var t in this._syncedModels)Object(zt.f)(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),s.prototype.dispose.call(this)},r.prototype.ensureSyncedResources=function(t){for(var a=0,f=t;a<f.length;a++){var m=f[a],H=m.toString();this._syncedModels[H]||this._beginModelSync(m),this._syncedModels[H]&&(this._syncedModelsLastUsedTime[H]=new Date().getTime())}},r.prototype._checkStopModelSync=function(){var t=new Date().getTime(),a=[];for(var f in this._syncedModelsLastUsedTime){var m=t-this._syncedModelsLastUsedTime[f];m>ae&&a.push(f)}for(var H=0,Ce=a;H<Ce.length;H++){var Te=Ce[H];this._stopModelSync(Te)}},r.prototype._beginModelSync=function(t){var a=this,f=this._modelService.getModel(t);if(!!f&&!f.isTooLargeForSyncing()){var m=t.toString();this._proxy.acceptNewModel({url:f.uri.toString(),lines:f.getLinesContent(),EOL:f.getEOL(),versionId:f.getVersionId()});var H=new zt.b;H.add(f.onDidChangeContent(function(Ce){a._proxy.acceptModelChanged(m.toString(),Ce)})),H.add(f.onWillDispose(function(){a._stopModelSync(m)})),H.add(Object(zt.h)(function(){a._proxy.acceptRemovedModel(m)})),this._syncedModels[m]=H}},r.prototype._stopModelSync=function(t){var a=this._syncedModels[t];delete this._syncedModels[t],delete this._syncedModelsLastUsedTime[t],Object(zt.f)(a)},r}(zt.a),Y=function(){function s(r){this._instance=r,this._proxyObj=Promise.resolve(this._instance)}return s.prototype.dispose=function(){this._instance.dispose()},s.prototype.getProxyObject=function(){return this._proxyObj},s}(),Ve=function(){function s(r){this._workerClient=r}return s.prototype.fhr=function(r,t){return this._workerClient.fhr(r,t)},s}(),at=function(s){pn(r,s);function r(t,a,f){var m=s.call(this)||this;return m._modelService=t,m._keepIdleModels=a,m._workerFactory=new Nt(f),m._worker=null,m._modelManager=null,m}return r.prototype.fhr=function(t,a){throw new Error("Not implemented!")},r.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new $n(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Ve(this)))}catch(t){Gn(t),this._worker=new Y(new It(new Ve(this),null))}return this._worker},r.prototype._getProxy=function(){var t=this;return this._getOrCreateWorker().getProxyObject().then(void 0,function(a){return Gn(a),t._worker=new Y(new It(new Ve(t),null)),t._getOrCreateWorker().getProxyObject()})},r.prototype._getOrCreateModelManager=function(t){return this._modelManager||(this._modelManager=this._register(new le(t,this._modelService,this._keepIdleModels))),this._modelManager},r.prototype._withSyncedResources=function(t){var a=this;return this._getProxy().then(function(f){return a._getOrCreateModelManager(f).ensureSyncedResources(t),f})},r.prototype.computeDiff=function(t,a,f,m){return this._withSyncedResources([t,a]).then(function(H){return H.computeDiff(t.toString(),a.toString(),f,m)})},r.prototype.computeMoreMinimalEdits=function(t,a){return this._withSyncedResources([t]).then(function(f){return f.computeMoreMinimalEdits(t.toString(),a)})},r.prototype.computeLinks=function(t){return this._withSyncedResources([t]).then(function(a){return a.computeLinks(t.toString())})},r.prototype.textualSuggest=function(t,a){var f=this;return this._withSyncedResources([t]).then(function(m){var H=f._modelService.getModel(t);if(!H)return null;var Ce=Ut.a.getWordDefinition(H.getLanguageIdentifier().id),Te=Ce.source,Pe=Object(Xn.H)(Ce);return m.textualSuggest(t.toString(),a,Te,Pe)})},r.prototype.computeWordRanges=function(t,a){var f=this;return this._withSyncedResources([t]).then(function(m){var H=f._modelService.getModel(t);if(!H)return Promise.resolve(null);var Ce=Ut.a.getWordDefinition(H.getLanguageIdentifier().id),Te=Ce.source,Pe=Object(Xn.H)(Ce);return m.computeWordRanges(t.toString(),a,Te,Pe)})},r.prototype.navigateValueSet=function(t,a,f){var m=this;return this._withSyncedResources([t]).then(function(H){var Ce=m._modelService.getModel(t);if(!Ce)return null;var Te=Ut.a.getWordDefinition(Ce.getLanguageIdentifier().id),Pe=Te.source,ot=Object(Xn.H)(Te);return H.navigateValueSet(t.toString(),a,f,Pe,ot)})},r}(zt.a),et=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}();function J(s,r){return new be(s,r)}var be=function(s){et(r,s);function r(t,a){var f=s.call(this,t,a.keepIdleModels||!1,a.label)||this;return f._foreignModuleId=a.moduleId,f._foreignModuleCreateData=a.createData||null,f._foreignModuleHost=a.host||null,f._foreignProxy=null,f}return r.prototype.fhr=function(t,a){if(!this._foreignModuleHost||typeof this._foreignModuleHost[t]!="function")return Promise.reject(new Error("Missing method "+t+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[t].apply(this._foreignModuleHost,a))}catch(f){return Promise.reject(f)}},r.prototype._getForeignProxy=function(){var t=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then(function(a){var f=t._foreignModuleHost?un.c(t._foreignModuleHost):[];return a.loadForeignModule(t._foreignModuleId,t._foreignModuleCreateData,f).then(function(m){t._foreignModuleCreateData=null;for(var H=function(vt,Qt){return a.fmr(vt,Qt)},Ce=function(vt,Qt){return function(){var Kt=Array.prototype.slice.call(arguments,0);return Qt(vt,Kt)}},Te={},Pe=0,ot=m;Pe<ot.length;Pe++){var dt=ot[Pe];Te[dt]=Ce(dt,H)}return Te})})),this._foreignProxy},r.prototype.getProxy=function(){return this._getForeignProxy()},r.prototype.withSyncedResources=function(t){var a=this;return this._withSyncedResources(t).then(function(f){return a.getProxy()})},r}(at),Le=o("4bUh"),it=o("baJR"),Je=o("qNAo");function Be(s){return Array.isArray(s)}function bt(s){return!Be(s)}function Lt(s){return typeof s=="string"}function $t(s){return!Lt(s)}function Tt(s){return!s}function Bt(s,r){return s.ignoreCase&&r?r.toLowerCase():r}function fn(s){return s.replace(/[&<>'"_]/g,"-")}function Cn(s,r){console.log(s.languageId+": "+r)}function vn(s,r){return new Error(s.languageId+": "+r)}function Hn(s,r,t,a,f){var m=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,H=null;return r.replace(m,function(Ce,Te,Pe,ot,dt,Ct,vt,Qt,Kt){return Tt(Pe)?Tt(ot)?!Tt(dt)&&dt<a.length?Bt(s,a[dt]):!Tt(vt)&&s&&typeof s[vt]=="string"?s[vt]:(H===null&&(H=f.split("."),H.unshift(f)),!Tt(Ct)&&Ct<H.length?Bt(s,H[Ct]):""):Bt(s,t):"$"})}function Yn(s,r){for(var t=r;t&&t.length>0;){var a=s.tokenizer[t];if(a)return a;var f=t.lastIndexOf(".");f<0?t=null:t=t.substr(0,f)}return null}function Zn(s,r){for(var t=r;t&&t.length>0;){var a=s.stateNames[t];if(a)return!0;var f=t.lastIndexOf(".");f<0?t=null:t=t.substr(0,f)}return!1}var Vi=5,ii=function(){function s(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return s.create=function(r,t){return this._INSTANCE.create(r,t)},s.prototype.create=function(r,t){if(r!==null&&r.depth>=this._maxCacheDepth)return new Ai(r,t);var a=Ai.getStackElementId(r);a.length>0&&(a+="|"),a+=t;var f=this._entries[a];return f||(f=new Ai(r,t),this._entries[a]=f,f)},s._INSTANCE=new s(Vi),s}(),Ai=function(){function s(r,t){this.parent=r,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return s.getStackElementId=function(r){for(var t="";r!==null;)t.length>0&&(t+="|"),t+=r.state,r=r.parent;return t},s._equals=function(r,t){for(;r!==null&&t!==null;){if(r===t)return!0;if(r.state!==t.state)return!1;r=r.parent,t=t.parent}return r===null&&t===null},s.prototype.equals=function(r){return s._equals(this,r)},s.prototype.push=function(r){return ii.create(this,r)},s.prototype.pop=function(){return this.parent},s.prototype.popall=function(){for(var r=this;r.parent;)r=r.parent;return r},s.prototype.switchTo=function(r){return ii.create(this.parent,r)},s}(),lr=function(){function s(r,t){this.modeId=r,this.state=t}return s.prototype.equals=function(r){return this.modeId===r.modeId&&this.state.equals(r.state)},s.prototype.clone=function(){var r=this.state.clone();return r===this.state?this:new s(this.modeId,this.state)},s}(),er=function(){function s(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return s.create=function(r,t){return this._INSTANCE.create(r,t)},s.prototype.create=function(r,t){if(t!==null)return new tr(r,t);if(r!==null&&r.depth>=this._maxCacheDepth)return new tr(r,t);var a=Ai.getStackElementId(r),f=this._entries[a];return f||(f=new tr(r,null),this._entries[a]=f,f)},s._INSTANCE=new s(Vi),s}(),tr=function(){function s(r,t){this.stack=r,this.embeddedModeData=t}return s.prototype.clone=function(){var r=this.embeddedModeData?this.embeddedModeData.clone():null;return r===this.embeddedModeData?this:er.create(this.stack,this.embeddedModeData)},s.prototype.equals=function(r){return!(r instanceof s)||!this.stack.equals(r.stack)?!1:this.embeddedModeData===null&&r.embeddedModeData===null?!0:this.embeddedModeData===null||r.embeddedModeData===null?!1:this.embeddedModeData.equals(r.embeddedModeData)},s}(),Un=function(){function s(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return s.prototype.enterMode=function(r,t){this._language=t},s.prototype.emit=function(r,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new S.a(r,t,this._language)))},s.prototype.nestedModeTokenize=function(r,t,a){var f=t.modeId,m=t.state,H=pt.y.get(f);if(!H)return this.enterMode(a,f),this.emit(a,""),m;var Ce=H.tokenize(r,m,a);return this._tokens=this._tokens.concat(Ce.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,Ce.endState},s.prototype.finalize=function(r){return new S.b(this._tokens,r)},s}(),Hr=function(){function s(r,t){this._modeService=r,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return s.prototype.enterMode=function(r,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},s.prototype.emit=function(r,t){var a=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==a&&(this._lastTokenMetadata=a,this._tokens.push(r),this._tokens.push(a))},s._merge=function(r,t,a){var f=r!==null?r.length:0,m=t.length,H=a!==null?a.length:0;if(f===0&&m===0&&H===0)return new Uint32Array(0);if(f===0&&m===0)return a;if(m===0&&H===0)return r;var Ce=new Uint32Array(f+m+H);r!==null&&Ce.set(r);for(var Te=0;Te<m;Te++)Ce[f+Te]=t[Te];return a!==null&&Ce.set(a,f+m),Ce},s.prototype.nestedModeTokenize=function(r,t,a){var f=t.modeId,m=t.state,H=pt.y.get(f);if(!H)return this.enterMode(a,f),this.emit(a,""),m;var Ce=H.tokenize2(r,m,a);return this._prependTokens=s._merge(this._prependTokens,this._tokens,Ce.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,Ce.endState},s.prototype.finalize=function(r){return new S.c(s._merge(this._prependTokens,this._tokens,null),r)},s}(),Li=function(){function s(r,t,a,f){var m=this;this._modeService=r,this._standaloneThemeService=t,this._modeId=a,this._lexer=f,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var H=!1;this._tokenizationRegistryListener=pt.y.onDidChange(function(Ce){if(!H){for(var Te=!1,Pe=0,ot=Ce.changedLanguages.length;Pe<ot;Pe++){var dt=Ce.changedLanguages[Pe];if(m._embeddedModes[dt]){Te=!0;break}}Te&&(H=!0,pt.y.fire([m._modeId]),H=!1)}})}return s.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},s.prototype.getLoadStatus=function(){var r=[];for(var t in this._embeddedModes){var a=pt.y.get(t);if(a){if(a instanceof s){var f=a.getLoadStatus();f.loaded===!1&&r.push(f.promise)}continue}var m=pt.y.getPromise(t);m&&r.push(m)}return r.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(r).then(function(H){})}},s.prototype.getInitialState=function(){var r=ii.create(null,this._lexer.start);return er.create(r,null)},s.prototype.tokenize=function(r,t,a){var f=new Un,m=this._tokenize(r,t,a,f);return f.finalize(m)},s.prototype.tokenize2=function(r,t,a){var f=new Hr(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),m=this._tokenize(r,t,a,f);return f.finalize(m)},s.prototype._tokenize=function(r,t,a,f){return t.embeddedModeData?this._nestedTokenize(r,t,a,f):this._myTokenize(r,t,a,f)},s.prototype._findLeavingNestedModeOffset=function(r,t){var a=this._lexer.tokenizer[t.stack.state];if(!a&&(a=Yn(this._lexer,t.stack.state),!a))throw vn(this._lexer,"tokenizer state is not defined: "+t.stack.state);for(var f=-1,m=!1,H=0,Ce=a;H<Ce.length;H++){var Te=Ce[H];if(!(!$t(Te.action)||Te.action.nextEmbedded!=="@pop")){m=!0;var Pe=Te.regex,ot=Te.regex.source;ot.substr(0,4)==="^(?:"&&ot.substr(ot.length-1,1)===")"&&(Pe=new RegExp(ot.substr(4,ot.length-5),Pe.ignoreCase?"i":""));var dt=r.search(Pe);dt===-1||dt!==0&&Te.matchOnlyAtLineStart||(f===-1||dt<f)&&(f=dt)}}if(!m)throw vn(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return f},s.prototype._nestedTokenize=function(r,t,a,f){var m=this._findLeavingNestedModeOffset(r,t);if(m===-1){var H=f.nestedModeTokenize(r,t.embeddedModeData,a);return er.create(t.stack,new lr(t.embeddedModeData.modeId,H))}var Ce=r.substring(0,m);Ce.length>0&&f.nestedModeTokenize(Ce,t.embeddedModeData,a);var Te=r.substring(m);return this._myTokenize(Te,t,a+m,f)},s.prototype._safeRuleName=function(r){return r?r.name:"(unknown)"},s.prototype._myTokenize=function(r,t,a,f){f.enterMode(a,this._modeId);for(var m=r.length,H=t.embeddedModeData,Ce=t.stack,Te=0,Pe=null,ot=!0;ot||Te<m;){var dt=Te,Ct=Ce.depth,vt=Pe?Pe.groups.length:0,Qt=Ce.state,Kt=null,jt=null,kt=null,rn=null,cn=null;if(Pe){Kt=Pe.matches;var En=Pe.groups.shift();jt=En.matched,kt=En.action,rn=Pe.rule,Pe.groups.length===0&&(Pe=null)}else{if(!ot&&Te>=m)break;ot=!1;var _n=this._lexer.tokenizer[Qt];if(!_n&&(_n=Yn(this._lexer,Qt),!_n))throw vn(this._lexer,"tokenizer state is not defined: "+Qt);for(var Wn=r.substr(Te),jn=0,Bn=_n;jn<Bn.length;jn++){var ei=Bn[jn];if((Te===0||!ei.matchOnlyAtLineStart)&&(Kt=Wn.match(ei.regex),Kt)){jt=Kt[0],kt=ei.action;break}}}if(Kt||(Kt=[""],jt=""),kt||(Te<m&&(Kt=[r.charAt(Te)],jt=Kt[0]),kt=this._lexer.defaultToken),jt===null)break;for(Te+=jt.length;bt(kt)&&$t(kt)&&kt.test;)kt=kt.test(jt,Kt,Qt,Te===m);var zn=null;if(typeof kt=="string"||Array.isArray(kt))zn=kt;else if(kt.group)zn=kt.group;else if(kt.token!==null&&kt.token!==void 0){if(kt.tokenSubst?zn=Hn(this._lexer,kt.token,jt,Kt,Qt):zn=kt.token,kt.nextEmbedded)if(kt.nextEmbedded==="@pop"){if(!H)throw vn(this._lexer,"cannot pop embedded mode if not inside one");H=null}else{if(H)throw vn(this._lexer,"cannot enter embedded mode from within an embedded mode");cn=Hn(this._lexer,kt.nextEmbedded,jt,Kt,Qt)}if(kt.goBack&&(Te=Math.max(0,Te-kt.goBack)),kt.switchTo&&typeof kt.switchTo=="string"){var mn=Hn(this._lexer,kt.switchTo,jt,Kt,Qt);if(mn[0]==="@"&&(mn=mn.substr(1)),Yn(this._lexer,mn))Ce=Ce.switchTo(mn);else throw vn(this._lexer,"trying to switch to a state '"+mn+"' that is undefined in rule: "+this._safeRuleName(rn))}else{if(kt.transform&&typeof kt.transform=="function")throw vn(this._lexer,"action.transform not supported");if(kt.next)if(kt.next==="@push"){if(Ce.depth>=this._lexer.maxStack)throw vn(this._lexer,"maximum tokenizer stack size reached: ["+Ce.state+","+Ce.parent.state+",...]");Ce=Ce.push(Qt)}else if(kt.next==="@pop"){if(Ce.depth<=1)throw vn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(rn));Ce=Ce.pop()}else if(kt.next==="@popall")Ce=Ce.popall();else{var mn=Hn(this._lexer,kt.next,jt,Kt,Qt);if(mn[0]==="@"&&(mn=mn.substr(1)),Yn(this._lexer,mn))Ce=Ce.push(mn);else throw vn(this._lexer,"trying to set a next state '"+mn+"' that is undefined in rule: "+this._safeRuleName(rn))}}kt.log&&typeof kt.log=="string"&&Cn(this._lexer,this._lexer.languageId+": "+Hn(this._lexer,kt.log,jt,Kt,Qt))}if(zn===null)throw vn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(rn));if(Array.isArray(zn)){if(Pe&&Pe.groups.length>0)throw vn(this._lexer,"groups cannot be nested: "+this._safeRuleName(rn));if(Kt.length!==zn.length+1)throw vn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(rn));for(var ni=0,Qn=1;Qn<Kt.length;Qn++)ni+=Kt[Qn].length;if(ni!==jt.length)throw vn(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(rn));Pe={rule:rn,matches:Kt,groups:[]};for(var Qn=0;Qn<zn.length;Qn++)Pe.groups[Qn]={action:zn[Qn],matched:Kt[Qn+1]};Te-=jt.length;continue}else{if(zn==="@rematch"&&(Te-=jt.length,jt="",Kt=null,zn=""),jt.length===0){if(m===0||Ct!==Ce.depth||Qt!==Ce.state||(Pe?Pe.groups.length:0)!==vt)continue;throw vn(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(rn))}var gi=null;if(Lt(zn)&&zn.indexOf("@brackets")===0){var Ii=zn.substr("@brackets".length),Lr=Eo(this._lexer,jt);if(!Lr)throw vn(this._lexer,"@brackets token returned but no bracket defined as: "+jt);gi=fn(Lr.token+Ii)}else{var yr=zn===""?"":zn+this._lexer.tokenPostfix;gi=fn(yr)}f.emit(dt+a,gi)}if(cn!==null){var xr=this._modeService.getModeIdForLanguageName(cn);xr&&(cn=xr);var wo=this._getNestedEmbeddedModeData(cn);if(Te<m){var Wn=r.substr(Te);return this._nestedTokenize(Wn,er.create(Ce,wo),a+Te,f)}else return er.create(Ce,wo)}}return er.create(Ce,H)},s.prototype._getNestedEmbeddedModeData=function(r){var t=this._locateMode(r);if(t){var a=pt.y.get(t);if(a)return new lr(t,a.getInitialState())}return new lr(t||Dt.b,Dt.c)},s.prototype._locateMode=function(r){if(!r||!this._modeService.isRegisteredMode(r))return null;if(r===this._modeId)return r;var t=this._modeService.getModeId(r);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t},s}();function Eo(s,r){if(!r)return null;r=Bt(s,r);for(var t=s.brackets,a=0,f=t;a<f.length;a++){var m=f[a];if(m.open===r)return{token:m.token,bracketType:1};if(m.close===r)return{token:m.token,bracketType:-1}}return null}function Rr(s,r,t,a){return new Li(s,r,t,a)}var Ur=function(){function s(){}return s.colorizeElement=function(r,t,a,f){f=f||{};var m=f.theme||"vs",H=f.mimeType||a.getAttribute("lang")||a.getAttribute("data-lang");if(!H)return console.error("Mode not detected"),Promise.resolve();r.setTheme(m);var Ce=a.firstChild?a.firstChild.nodeValue:"";a.className+=" "+m;var Te=function(ot){a.innerHTML=ot};return this.colorize(t,Ce||"",H,f).then(Te,function(Pe){return console.error(Pe)})},s.colorize=function(r,t,a,f){var m=4;f&&typeof f.tabSize=="number"&&(m=f.tabSize),Xn.O(t)&&(t=t.substr(1));var H=t.split(/\r\n|\r|\n/),Ce=r.getModeId(a);if(!Ce)return Promise.resolve(eo(H,m));r.triggerMode(Ce);var Te=pt.y.get(Ce);if(Te)return Ar(H,m,Te);var Pe=pt.y.getPromise(Ce);return Pe?new Promise(function(ot,dt){Pe.then(function(Ct){Ar(H,m,Ct).then(ot,dt)},dt)}):new Promise(function(ot,dt){var Ct=null,vt=null,Qt=function(){Ct&&(Ct.dispose(),Ct=null),vt&&(vt.dispose(),vt=null);var jt=pt.y.get(Ce);if(jt){Ar(H,m,jt).then(ot,dt);return}ot(eo(H,m))};vt=new Jt.e,vt.cancelAndSet(Qt,500),Ct=pt.y.onDidChange(function(Kt){Kt.changedLanguages.indexOf(Ce)>=0&&Qt()})})},s.colorizeLine=function(r,t,a,f,m){m===void 0&&(m=4);var H=Je.d.isBasicASCII(r,t),Ce=Je.d.containsRTL(r,H,a),Te=Object(it.e)(new it.c(!1,!0,r,!1,H,Ce,0,f,[],m,0,0,0,-1,"none",!1,!1,null));return Te.html},s.colorizeModelLine=function(r,t,a){a===void 0&&(a=4);var f=r.getLineContent(t);r.forceTokenization(t);var m=r.getLineTokens(t),H=m.inflate();return this.colorizeLine(f,r.mightContainNonBasicASCII(),r.mightContainRTL(),H,a)},s}();function Ar(s,r,t){return new Promise(function(a,f){var m=function H(){var Ce=go(s,r,t);if(t instanceof Li){var Te=t.getLoadStatus();if(Te.loaded===!1){Te.promise.then(H,f);return}}a(Ce)};m()})}function eo(s,r){var t=[],a=(0<<11|1<<14|2<<23)>>>0,f=new Uint32Array(2);f[0]=0,f[1]=a;for(var m=0,H=s.length;m<H;m++){var Ce=s[m];f[0]=Ce.length;var Te=new Le.a(f,Ce),Pe=Je.d.isBasicASCII(Ce,!0),ot=Je.d.containsRTL(Ce,Pe,!0),dt=Object(it.e)(new it.c(!1,!0,Ce,!1,Pe,ot,0,Te,[],r,0,0,0,-1,"none",!1,!1,null));t=t.concat(dt.html),t.push("<br/>")}return t.join("")}function go(s,r,t){for(var a=[],f=t.getInitialState(),m=0,H=s.length;m<H;m++){var Ce=s[m],Te=t.tokenize2(Ce,f,0);Le.a.convertToEndOffset(Te.tokens,Ce.length);var Pe=new Le.a(Te.tokens,Ce),ot=Je.d.isBasicASCII(Ce,!0),dt=Je.d.containsRTL(Ce,ot,!0),Ct=Object(it.e)(new it.c(!1,!0,Ce,!1,ot,dt,0,Pe.inflate(),[],r,0,0,0,-1,"none",!1,!1,null));a=a.concat(Ct.html),a.push("<br/>"),f=Te.endState}return a.join("")}var dr=o("uDWl"),Sr=o("S3by"),po=o("sFUC"),ko=o("iDAx"),Oo=o("0/Sa"),Ti=o("+7oY"),zr=o("QDVR"),is=o("CRAX"),Fr=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),rs=function(){for(var s=0,r=0,t=arguments.length;r<t;r++)s+=arguments[r].length;for(var a=Array(s),f=0,r=0;r<t;r++)for(var m=arguments[r],H=0,Ce=m.length;H<Ce;H++,f++)a[f]=m[H];return a},ar=function(){function s(r,t,a){r===void 0&&(r={}),t===void 0&&(t=[]),a===void 0&&(a=[]),this._contents=r,this._keys=t,this._overrides=a,this.isFrozen=!1}return Object.defineProperty(s.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),s.prototype.isEmpty=function(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0},s.prototype.getValue=function(r){return r?Object(Ti.d)(this.contents,r):this.contents},s.prototype.getOverrideValue=function(r,t){var a=this.getContentsForOverrideIdentifer(t);return a?r?Object(Ti.d)(a,r):a:void 0},s.prototype.override=function(r){var t=this.getContentsForOverrideIdentifer(r);if(!t||typeof t!="object"||!Object.keys(t).length)return this;for(var a={},f=0,m=tn.e(rs(Object.keys(this.contents),Object.keys(t)));f<m.length;f++){var H=m[f],Ce=this.contents[H],Te=t[H];Te&&(typeof Ce=="object"&&typeof Te=="object"?(Ce=Gt.c(Ce),this.mergeContents(Ce,Te)):Ce=Te),a[H]=Ce}return new s(a,this.keys,this.overrides)},s.prototype.merge=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var a=Gt.c(this.contents),f=Gt.c(this.overrides),m=rs(this.keys),H=0,Ce=r;H<Ce.length;H++){var Te=Ce[H];this.mergeContents(a,Te.contents);for(var Pe=function(rn){var cn=f.filter(function(En){return tn.g(En.identifiers,rn.identifiers)})[0];cn?ot.mergeContents(cn.contents,rn.contents):f.push(Gt.c(rn))},ot=this,dt=0,Ct=Te.overrides;dt<Ct.length;dt++){var vt=Ct[dt];Pe(vt)}for(var Qt=0,Kt=Te.keys;Qt<Kt.length;Qt++){var jt=Kt[Qt];m.indexOf(jt)===-1&&m.push(jt)}}return new s(a,m,f)},s.prototype.freeze=function(){return this.isFrozen=!0,this},s.prototype.mergeContents=function(r,t){for(var a=0,f=Object.keys(t);a<f.length;a++){var m=f[a];if(m in r&&un.i(r[m])&&un.i(t[m])){this.mergeContents(r[m],t[m]);continue}r[m]=Gt.c(t[m])}},s.prototype.checkAndFreeze=function(r){return this.isFrozen&&!Object.isFrozen(r)?Gt.d(r):r},s.prototype.getContentsForOverrideIdentifer=function(r){for(var t=0,a=this.overrides;t<a.length;t++){var f=a[t];if(f.identifiers.indexOf(r)!==-1)return f.contents}return null},s.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},s.prototype.setValue=function(r,t){this.addKey(r),Object(Ti.b)(this.contents,r,t,function(a){throw new Error(a)})},s.prototype.removeValue=function(r){this.removeKey(r)&&Object(Ti.h)(this.contents,r)},s.prototype.addKey=function(r){for(var t=this.keys.length,a=0;a<t;a++)r.indexOf(this.keys[a])===0&&(t=a);this.keys.splice(t,1,r)},s.prototype.removeKey=function(r){var t=this.keys.indexOf(r);return t!==-1?(this.keys.splice(t,1),!0):!1},s}(),os=function(s){Fr(r,s);function r(){for(var t=this,a=Object(Ti.e)(),f=Object(Ti.c)(),m=[],H=0,Ce=Object.keys(a);H<Ce.length;H++){var Te=Ce[H];is.b.test(Te)&&m.push({identifiers:[Object(Ti.g)(Te).trim()],keys:Object.keys(a[Te]),contents:Object(Ti.i)(a[Te],function(Pe){return console.error("Conflict in default settings file: "+Pe)})})}return t=s.call(this,a,f,m)||this,t}return r}(ar),Do=function(){function s(r,t,a,f,m,H,Ce,Te){a===void 0&&(a=new ar),f===void 0&&(f=new ar),m===void 0&&(m=new zr.b),H===void 0&&(H=new ar),Ce===void 0&&(Ce=new zr.b),Te===void 0&&(Te=!0),this._defaultConfiguration=r,this._localUserConfiguration=t,this._remoteUserConfiguration=a,this._workspaceConfiguration=f,this._folderConfigurations=m,this._memoryConfiguration=H,this._memoryConfigurationByResource=Ce,this._freeze=Te,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new zr.b,this._userConfiguration=null}return s.prototype.getValue=function(r,t,a){var f=this.getConsolidateConfigurationModel(t,a);return f.getValue(r)},s.prototype.updateValue=function(r,t,a){a===void 0&&(a={});var f;a.resource?(f=this._memoryConfigurationByResource.get(a.resource),f||(f=new ar,this._memoryConfigurationByResource.set(a.resource,f))):f=this._memoryConfiguration,t===void 0?f.removeValue(r):f.setValue(r,t),a.resource||(this._workspaceConsolidatedConfiguration=null)},s.prototype.inspect=function(r,t,a){var f=this.getConsolidateConfigurationModel(t,a),m=this.getFolderConfigurationModelForResource(t.resource,a),H=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration,Ce=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(r):this._defaultConfiguration.freeze().getValue(r),Te=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(r):this.userConfiguration.freeze().getValue(r),Pe=t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(r):this.localUserConfiguration.freeze().getValue(r),ot=t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(r):this.remoteUserConfiguration.freeze().getValue(r),dt=a?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(r):this._workspaceConfiguration.freeze().getValue(r):void 0,Ct=m?t.overrideIdentifier?m.freeze().override(t.overrideIdentifier).getValue(r):m.freeze().getValue(r):void 0,vt=t.overrideIdentifier?H.override(t.overrideIdentifier).getValue(r):H.getValue(r),Qt=f.getValue(r),Kt=tn.e(tn.m(f.overrides.map(function(jt){return jt.identifiers}))).filter(function(jt){return f.getOverrideValue(r,jt)!==void 0});return{defaultValue:Ce,userValue:Te,userLocalValue:Pe,userRemoteValue:ot,workspaceValue:dt,workspaceFolderValue:Ct,memoryValue:vt,value:Qt,default:Ce!==void 0?{value:this._defaultConfiguration.freeze().getValue(r),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(r,t.overrideIdentifier):void 0}:void 0,user:Te!==void 0?{value:this.userConfiguration.freeze().getValue(r),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(r,t.overrideIdentifier):void 0}:void 0,userLocal:Pe!==void 0?{value:this.localUserConfiguration.freeze().getValue(r),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(r,t.overrideIdentifier):void 0}:void 0,userRemote:ot!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(r),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(r,t.overrideIdentifier):void 0}:void 0,workspace:dt!==void 0?{value:this._workspaceConfiguration.freeze().getValue(r),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(r,t.overrideIdentifier):void 0}:void 0,workspaceFolder:Ct!==void 0?{value:m==null?void 0:m.freeze().getValue(r),override:t.overrideIdentifier?m==null?void 0:m.freeze().getOverrideValue(r,t.overrideIdentifier):void 0}:void 0,memory:vt!==void 0?{value:H.getValue(r),override:t.overrideIdentifier?H.getOverrideValue(r,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:Kt.length?Kt:void 0}},Object.defineProperty(s.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(s.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),s.prototype.getConsolidateConfigurationModel=function(r,t){var a=this.getConsolidatedConfigurationModelForResource(r,t);return r.overrideIdentifier?a.override(r.overrideIdentifier):a},s.prototype.getConsolidatedConfigurationModelForResource=function(r,t){var a=r.resource,f=this.getWorkspaceConsolidatedConfiguration();if(t&&a){var m=t.getFolder(a);m&&(f=this.getFolderConsolidatedConfiguration(m.uri)||f);var H=this._memoryConfigurationByResource.get(a);H&&(f=f.merge(H))}return f},s.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},s.prototype.getFolderConsolidatedConfiguration=function(r){var t=this._foldersConsolidatedConfigurations.get(r);if(!t){var a=this.getWorkspaceConsolidatedConfiguration(),f=this._folderConfigurations.get(r);f?(t=a.merge(f),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(r,t)):t=a}return t},s.prototype.getFolderConfigurationModelForResource=function(r,t){if(t&&r){var a=t.getFolder(r);if(a)return this._folderConfigurations.get(a.uri)}},s}(),gn=o("3/fG"),Ls=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Ms=function(s){Ls(r,s);function r(t,a,f,m){var H=s.call(this)||this;return H._contextKeyService=t,H._commandService=a,H._telemetryService=f,H._notificationService=m,H._onDidUpdateKeybindings=H._register(new P.a),H._currentChord=null,H._currentChordChecker=new Jt.c,H._currentChordStatusMessage=null,H}return Object.defineProperty(r.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:P.b.None},enumerable:!0,configurable:!0}),r.prototype.dispose=function(){s.prototype.dispose.call(this)},r.prototype.getKeybindings=function(){return this._getResolver().getKeybindings()},r.prototype.lookupKeybinding=function(t){var a=this._getResolver().lookupPrimaryKeybinding(t);if(!!a)return a.resolvedKeybinding},r.prototype.softDispatch=function(t,a){var f=this.resolveKeyboardEvent(t);if(f.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var m=f.getDispatchParts()[0];if(m===null)return null;var H=this._contextKeyService.getContext(a),Ce=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(H,Ce,m)},r.prototype._enterChordMode=function(t,a){var f=this;this._currentChord={keypress:t,label:a},this._currentChordStatusMessage=this._notificationService.status(gn.a("first.chord","({0}) was pressed. Waiting for second key of chord...",a));var m=Date.now();this._currentChordChecker.cancelAndSet(function(){if(!f._documentHasFocus()){f._leaveChordMode();return}Date.now()-m>5e3&&f._leaveChordMode()},500)},r.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},r.prototype._dispatch=function(t,a){return this._doDispatch(this.resolveKeyboardEvent(t),a)},r.prototype._doDispatch=function(t,a){var f=this,m=!1;if(t.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var H=t.getDispatchParts()[0];if(H===null)return m;var Ce=this._contextKeyService.getContext(a),Te=this._currentChord?this._currentChord.keypress:null,Pe=t.getLabel(),ot=this._getResolver().resolve(Ce,Te,H);return ot&&ot.enterChord?(m=!0,this._enterChordMode(H,Pe),m):(this._currentChord&&(!ot||!ot.commandId)&&(this._notificationService.status(gn.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,Pe),{hideAfter:10*1e3}),m=!0),this._leaveChordMode(),ot&&ot.commandId&&(ot.bubble||(m=!0),typeof ot.commandArgs=="undefined"?this._commandService.executeCommand(ot.commandId).then(void 0,function(dt){return f._notificationService.warn(dt)}):this._commandService.executeCommand(ot.commandId,ot.commandArgs).then(void 0,function(dt){return f._notificationService.warn(dt)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:ot.commandId,from:"keybinding"})),m)},r.prototype.mightProducePrintableCharacter=function(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30},r}(zt.a),_i=o("T8No"),vo=function(){function s(r,t){this._defaultKeybindings=r,this._defaultBoundCommands=new Map;for(var a=0,f=r.length;a<f;a++){var m=r[a].command;m&&this._defaultBoundCommands.set(m,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=s.combine(r,t);for(var a=0,f=this._keybindings.length;a<f;a++){var H=this._keybindings[a];H.keypressParts.length!==0&&this._addKeyPress(H.keypressParts[0],H)}}return s._isTargetedForRemoval=function(r,t,a,f,m){return!(r.command!==f||t&&r.keypressParts[0]!==t||a&&r.keypressParts[1]!==a||m&&(!r.when||!m.equals(r.when)))},s.combine=function(r,t){r=r.slice(0);for(var a=[],f=0,m=t;f<m.length;f++){var H=m[f];if(!H.command||H.command.length===0||H.command.charAt(0)!=="-"){a.push(H);continue}for(var Ce=H.command.substr(1),Te=H.keypressParts[0],Pe=H.keypressParts[1],ot=H.when,dt=r.length-1;dt>=0;dt--)this._isTargetedForRemoval(r[dt],Te,Pe,Ce,ot)&&r.splice(dt,1)}return r.concat(a)},s.prototype._addKeyPress=function(r,t){var a=this._map.get(r);if(typeof a=="undefined"){this._map.set(r,[t]),this._addToLookupMap(t);return}for(var f=a.length-1;f>=0;f--){var m=a[f];if(m.command!==t.command){var H=m.keypressParts.length>1,Ce=t.keypressParts.length>1;H&&Ce&&m.keypressParts[1]!==t.keypressParts[1]||s.whenIsEntirelyIncluded(m.when,t.when)&&this._removeFromLookupMap(m)}}a.push(t),this._addToLookupMap(t)},s.prototype._addToLookupMap=function(r){if(!!r.command){var t=this._lookupMap.get(r.command);typeof t=="undefined"?(t=[r],this._lookupMap.set(r.command,t)):t.push(r)}},s.prototype._removeFromLookupMap=function(r){if(!!r.command){var t=this._lookupMap.get(r.command);if(typeof t!="undefined"){for(var a=0,f=t.length;a<f;a++)if(t[a]===r){t.splice(a,1);return}}}},s.whenIsEntirelyIncluded=function(r,t){return t?r?this._implies(r,t):!1:!0},s._implies=function(r,t){for(var a=r.negate(),f=function(Ct){return Ct instanceof _i.b?Ct.expr:[Ct]},m=f(a).concat(f(t)),H=0;H<m.length;H++)for(var Ce=m[H],Te=Ce.negate(),Pe=H+1;Pe<m.length;Pe++){var ot=m[Pe];if(Te.equals(ot))return!0}return!1},s.prototype.getKeybindings=function(){return this._keybindings},s.prototype.lookupPrimaryKeybinding=function(r){var t=this._lookupMap.get(r);return typeof t=="undefined"||t.length===0?null:t[t.length-1]},s.prototype.resolve=function(r,t,a){var f=null;if(t!==null){var m=this._map.get(t);if(typeof m=="undefined")return null;f=[];for(var H=0,Ce=m.length;H<Ce;H++){var Te=m[H];Te.keypressParts[1]===a&&f.push(Te)}}else{var m=this._map.get(a);if(typeof m=="undefined")return null;f=m}var Pe=this._findCommand(r,f);return Pe?t===null&&Pe.keypressParts.length>1&&Pe.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:Pe.command,commandArgs:Pe.commandArgs,bubble:Pe.bubble}:null},s.prototype._findCommand=function(r,t){for(var a=t.length-1;a>=0;a--){var f=t[a];if(!!s.contextMatchesRules(r,f.when))return f}return null},s.contextMatchesRules=function(r,t){return t?t.evaluate(r):!0},s}(),ss=o("nrhi"),as=function(){function s(r,t,a,f,m){this.resolvedKeybinding=r,this.keypressParts=r?Ns(r.getDispatchParts()):[],this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=a,this.when=f,this.isDefault=m}return s}();function Ns(s){for(var r=[],t=0,a=s.length;t<a;t++){var f=s[t];if(!f)return r;r.push(f)}return r}var Wr=function(){function s(r,t,a){a===void 0&&(a=t),this.modifierLabels=[null],this.modifierLabels[2]=r,this.modifierLabels[1]=t,this.modifierLabels[3]=a}return s.prototype.toLabel=function(r,t,a){if(t.length===0)return null;for(var f=[],m=0,H=t.length;m<H;m++){var Ce=t[m],Te=a(Ce);if(Te===null)return null;f[m]=la(Ce,Te,this.modifierLabels[r])}return f.join(" ")},s}(),us=new Wr({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:gn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:gn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:gn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:gn.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:gn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:gn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:gn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:gn.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),Qs=new Wr({ctrlKey:gn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:gn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:gn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:gn.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:gn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:gn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:gn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:gn.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:gn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:gn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:gn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:gn.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function la(s,r,t){if(r===null)return"";var a=[];return s.ctrlKey&&a.push(t.ctrlKey),s.shiftKey&&a.push(t.shiftKey),s.altKey&&a.push(t.altKey),s.metaKey&&a.push(t.metaKey),a.push(r),a.join(t.separator)}var $s=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Js=function(s){$s(r,s);function r(t,a){var f=s.call(this)||this;if(a.length===0)throw Object(nn.b)("parts");return f._os=t,f._parts=a,f}return r.prototype.getLabel=function(){var t=this;return us.toLabel(this._os,this._parts,function(a){return t._getLabel(a)})},r.prototype.getAriaLabel=function(){var t=this;return Qs.toLabel(this._os,this._parts,function(a){return t._getAriaLabel(a)})},r.prototype.isChord=function(){return this._parts.length>1},r.prototype.getParts=function(){var t=this;return this._parts.map(function(a){return t._getPart(a)})},r.prototype._getPart=function(t){return new F.d(t.ctrlKey,t.shiftKey,t.altKey,t.metaKey,this._getLabel(t),this._getAriaLabel(t))},r.prototype.getDispatchParts=function(){var t=this;return this._parts.map(function(a){return t._getDispatchPart(a)})},r}(F.c),da=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ls=function(s){da(r,s);function r(t,a){return s.call(this,a,t.parts)||this}return r.prototype._keyCodeToUILabel=function(t){if(this._os===2)switch(t){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return F.b.toString(t)},r.prototype._getLabel=function(t){return t.isDuplicateModifierCase()?"":this._keyCodeToUILabel(t.keyCode)},r.prototype._getAriaLabel=function(t){return t.isDuplicateModifierCase()?"":F.b.toString(t.keyCode)},r.prototype._getDispatchPart=function(t){return r.getDispatchStr(t)},r.getDispatchStr=function(t){if(t.isModifierKey())return null;var a="";return t.ctrlKey&&(a+="ctrl+"),t.shiftKey&&(a+="shift+"),t.altKey&&(a+="alt+"),t.metaKey&&(a+="meta+"),a+=F.b.toString(t.keyCode),a},r}(Js),wr=o("sM1p"),Is=o("EWX2"),Pi;(function(s){s.noSelection=gn.a("noSelection","No selection"),s.singleSelectionRange=gn.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),s.singleSelection=gn.a("singleSelection","Line {0}, Column {1}"),s.multiSelectionRange=gn.a("multiSelectionRange","{0} selections ({1} characters selected)"),s.multiSelection=gn.a("multiSelection","{0} selections"),s.emergencyConfOn=gn.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),s.openingDocs=gn.a("openingDocs","Now opening the Editor Accessibility documentation page."),s.readonlyDiffEditor=gn.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),s.editableDiffEditor=gn.a("editableDiffEditor"," in a pane of a diff editor."),s.readonlyEditor=gn.a("readonlyEditor"," in a read-only code editor"),s.editableEditor=gn.a("editableEditor"," in a code editor"),s.changeConfigToOnMac=gn.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),s.changeConfigToOnWinLinux=gn.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),s.auto_on=gn.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),s.auto_off=gn.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."),s.tabFocusModeOnMsg=gn.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),s.tabFocusModeOnMsgNoKb=gn.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."),s.tabFocusModeOffMsg=gn.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),s.tabFocusModeOffMsgNoKb=gn.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),s.openDocMac=gn.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),s.openDocWinLinux=gn.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),s.outroMsg=gn.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),s.showAccessibilityHelpAction=gn.a("showAccessibilityHelpAction","Show Accessibility Help")})(Pi||(Pi={}));var Kr;(function(s){s.inspectTokensAction=gn.a("inspectTokens","Developer: Inspect Tokens")})(Kr||(Kr={}));var Gr;(function(s){s.gotoLineLabelValidLineAndColumn=gn.a("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),s.gotoLineLabelValidLine=gn.a("gotoLineLabelValidLine","Go to line {0}"),s.gotoLineLabelEmptyWithLineLimit=gn.a("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),s.gotoLineLabelEmptyWithLineAndColumnLimit=gn.a("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),s.gotoLineAriaLabel=gn.a("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),s.gotoLineActionInput=gn.a("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),s.gotoLineActionLabel=gn.a("gotoLineActionLabel","Go to Line...")})(Gr||(Gr={}));var ds;(function(s){s.ariaLabelEntryWithKey=gn.a("ariaLabelEntryWithKey","{0}, {1}, commands"),s.ariaLabelEntry=gn.a("ariaLabelEntry","{0}, commands"),s.quickCommandActionInput=gn.a("quickCommandActionInput","Type the name of an action you want to execute"),s.quickCommandActionLabel=gn.a("quickCommandActionLabel","Command Palette")})(ds||(ds={}));var Vo;(function(s){s.entryAriaLabel=gn.a("entryAriaLabel","{0}, symbols"),s.quickOutlineActionInput=gn.a("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),s.quickOutlineActionLabel=gn.a("quickOutlineActionLabel","Go to Symbol..."),s._symbols_=gn.a("symbols","symbols ({0})"),s._modules_=gn.a("modules","modules ({0})"),s._class_=gn.a("class","classes ({0})"),s._interface_=gn.a("interface","interfaces ({0})"),s._method_=gn.a("method","methods ({0})"),s._function_=gn.a("function","functions ({0})"),s._property_=gn.a("property","properties ({0})"),s._variable_=gn.a("variable","variables ({0})"),s._variable2_=gn.a("variable2","variables ({0})"),s._constructor_=gn.a("_constructor","constructors ({0})"),s._call_=gn.a("call","calls ({0})")})(Vo||(Vo={}));var Yr;(function(s){s.editorViewAccessibleLabel=gn.a("editorViewAccessibleLabel","Editor content"),s.accessibilityHelpMessageIE=gn.a("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),s.accessibilityHelpMessage=gn.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(Yr||(Yr={}));var cs;(function(s){s.toggleHighContrast=gn.a("toggleHighContrast","Toggle High Contrast Theme")})(cs||(cs={}));var to;(function(s){s.bulkEditServiceSummary=gn.a("bulkEditServiceSummary","Made {0} edits in {1} files")})(to||(to={}));var qs=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),mo=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},fs=function(s,r){return function(t,a){r(t,a,s)}},ea=function(){for(var s=0,r=0,t=arguments.length;r<t;r++)s+=arguments[r].length;for(var a=Array(s),f=0,r=0;r<t;r++)for(var m=arguments[r],H=0,Ce=m.length;H<Ce;H++,f++)a[f]=m[H];return a},Ts=function(){function s(r){this.model=r,this._onDispose=new P.a}return Object.defineProperty(s.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),s.prototype.dispose=function(){this._onDispose.fire()},s}();function Ps(s,r,t){return Object(po.a)(s)?r(s):t(s)}var Zr=function(){function s(r){this.modelService=r}return s.prototype.setEditor=function(r){this.editor=r},s.prototype.createModelReference=function(r){var t=this,a=null;return this.editor&&(a=Ps(this.editor,function(f){return t.findModel(f,r)},function(f){return t.findModel(f.getOriginalEditor(),r)||t.findModel(f.getModifiedEditor(),r)})),a?Promise.resolve(new zt.c(new Ts(a))):Promise.reject(new Error("Model not found"))},s.prototype.findModel=function(r,t){var a=this.modelService?this.modelService.getModel(t):r.getModel();return a&&a.uri.toString()!==t.toString()?null:a},s}(),Ho=function(){function s(){}return s.prototype.show=function(){return s.NULL_PROGRESS_RUNNER},s.prototype.showWhile=function(r,t){return Promise.resolve(void 0)},s.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},s}(),hs=function(){function s(){}return s}(),gs=function(){function s(){}return s.prototype.info=function(r){return this.notify({severity:Sr.a.Info,message:r})},s.prototype.warn=function(r){return this.notify({severity:Sr.a.Warning,message:r})},s.prototype.error=function(r){return this.notify({severity:Sr.a.Error,message:r})},s.prototype.notify=function(r){switch(r.severity){case Sr.a.Error:console.error(r.message);break;case Sr.a.Warning:console.warn(r.message);break;default:console.log(r.message);break}return s.NO_OP},s.prototype.status=function(r,t){return zt.a.None},s.NO_OP=new wr.b,s}(),Uo=function(){function s(r){this._onWillExecuteCommand=new P.a,this._onDidExecuteCommand=new P.a,this._instantiationService=r,this._dynamicCommands=Object.create(null)}return s.prototype.addCommand=function(r){var t=this,a=r.id;return this._dynamicCommands[a]=r,Object(zt.h)(function(){delete t._dynamicCommands[a]})},s.prototype.executeCommand=function(r){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];var f=Ee.a.getCommand(r)||this._dynamicCommands[r];if(!f)return Promise.reject(new Error("command '"+r+"' not found"));try{this._onWillExecuteCommand.fire({commandId:r,args:t});var m=this._instantiationService.invokeFunction.apply(this._instantiationService,ea([f.handler],t));return this._onDidExecuteCommand.fire({commandId:r,args:t}),Promise.resolve(m)}catch(H){return Promise.reject(H)}},s}(),yo=function(s){qs(r,s);function r(t,a,f,m,H){var Ce=s.call(this,t,a,f,m)||this;return Ce._cachedResolver=null,Ce._dynamicKeybindings=[],Ce._register(Ye.i(H,Ye.c.KEY_DOWN,function(Te){var Pe=new dr.a(Te),ot=Ce._dispatch(Pe,Pe.target);ot&&(Pe.preventDefault(),Pe.stopPropagation())})),Ce}return r.prototype.addDynamicKeybinding=function(t,a,f,m){var H=this,Ce=Object(F.f)(a,sn.a),Te=new zt.b;Ce&&(this._dynamicKeybindings.push({keybinding:Ce,command:t,when:m,weight1:1e3,weight2:0}),Te.add(Object(zt.h)(function(){for(var ot=0;ot<H._dynamicKeybindings.length;ot++){var dt=H._dynamicKeybindings[ot];if(dt.command===t){H._dynamicKeybindings.splice(ot,1),H.updateResolver({source:1});return}}})));var Pe=this._commandService;if(Pe instanceof Uo)Te.add(Pe.addCommand({id:t,handler:f}));else throw new Error("Unknown command service!");return this.updateResolver({source:1}),Te},r.prototype.updateResolver=function(t){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(t)},r.prototype._getResolver=function(){if(!this._cachedResolver){var t=this._toNormalizedKeybindingItems(ss.a.getDefaultKeybindings(),!0),a=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new vo(t,a)}return this._cachedResolver},r.prototype._documentHasFocus=function(){return document.hasFocus()},r.prototype._toNormalizedKeybindingItems=function(t,a){for(var f=[],m=0,H=0,Ce=t;H<Ce.length;H++){var Te=Ce[H],Pe=Te.when||void 0,ot=Te.keybinding;if(!ot)f[m++]=new as(void 0,Te.command,Te.commandArgs,Pe,a);else for(var dt=this.resolveKeybinding(ot),Ct=0,vt=dt;Ct<vt.length;Ct++){var Qt=vt[Ct];f[m++]=new as(Qt,Te.command,Te.commandArgs,Pe,a)}}return f},r.prototype.resolveKeybinding=function(t){return[new ls(t,sn.a)]},r.prototype.resolveKeyboardEvent=function(t){var a=new F.e(t.ctrlKey,t.shiftKey,t.altKey,t.metaKey,t.keyCode).toChord();return new ls(a,sn.a)},r}(Ms);function Lo(s){return s&&typeof s=="object"&&(!s.overrideIdentifier||typeof s.overrideIdentifier=="string")&&(!s.resource||s.resource instanceof V.a)}var Mo=function(){function s(){this._onDidChangeConfiguration=new P.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Do(new os,new ar)}return s.prototype.configuration=function(){return this._configuration},s.prototype.getValue=function(r,t){var a=typeof r=="string"?r:void 0,f=Lo(r)?r:Lo(t)?t:{};return this.configuration().getValue(a,f,void 0)},s.prototype.updateValue=function(r,t,a,f){return this.configuration().updateValue(r,t),Promise.resolve()},s.prototype.inspect=function(r,t){return t===void 0&&(t={}),this.configuration().inspect(r,t,void 0)},s}(),zo=function(){function s(r){var t=this;this.configurationService=r,this._onDidChangeConfiguration=new P.a,this.configurationService.onDidChangeConfiguration(function(a){t._onDidChangeConfiguration.fire({affectedKeys:a.affectedKeys,affectsConfiguration:function(m,H){return a.affectsConfiguration(H)}})})}return s.prototype.getValue=function(r,t,a){var f=B.a.isIPosition(t)?t:null,m=f?typeof a=="string"?a:void 0:typeof t=="string"?t:void 0;return typeof m=="undefined"?this.configurationService.getValue():this.configurationService.getValue(m)},s}(),ps=function(){function s(r){this.configurationService=r}return s.prototype.getEOL=function(r,t){var a=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:r});return a&&a!=="auto"?a:sn.d||sn.e?`
`:`\r
`},s=mo([fs(0,Ti.a)],s),s}(),Br=function(){function s(){}return s.prototype.publicLog=function(r,t){return Promise.resolve(void 0)},s.prototype.publicLog2=function(r,t){return this.publicLog(r,t)},s}(),xs=function(){function s(){var r=V.a.from({scheme:s.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new Is.b({uri:r,name:"",index:0})]}}return s.prototype.getWorkspace=function(){return this.workspace},s.prototype.getWorkspaceFolder=function(r){return r&&r.scheme===s.SCHEME?this.workspace.folders[0]:null},s.SCHEME="inmemory",s}();function cr(s,r,t){!r||s instanceof Mo&&Object.keys(r).forEach(function(a){Object(ko.c)(a)&&s.updateValue("editor."+a,r[a]),t&&Object(ko.b)(a)&&s.updateValue("diffEditor."+a,r[a])})}var ri=function(){function s(r){this._modelService=r}return s.prototype.hasPreviewHandler=function(){return!1},s.prototype.apply=function(r,t){var a=new Map;if(r.edits)for(var f=0,m=r.edits;f<m.length;f++){var H=m[f];if(!pt.A.is(H))return Promise.reject(new Error("bad edit - only text edits are supported"));var Ce=this._modelService.getModel(H.resource);if(!Ce)return Promise.reject(new Error("bad edit - model not found"));var Te=a.get(Ce);Te||(Te=[],a.set(Ce,Te)),Te.push(H.edit)}var Pe=0,ot=0;return a.forEach(function(dt,Ct){Ct.pushStackElement(),Ct.pushEditOperations([],dt.map(function(vt){return Oo.a.replaceMove(G.a.lift(vt.range),vt.text)}),function(){return[]}),Ct.pushStackElement(),ot+=1,Pe+=dt.length}),Promise.resolve({selection:void 0,ariaSummary:Xn.r(to.bulkEditServiceSummary,Pe,ot)})},s}(),ta=function(){function s(){}return s.prototype.getUriLabel=function(r,t){return r.scheme==="file"?r.fsPath:r.path},s}(),Rs=function(){function s(r){this._container=r,this.onLayout=P.b.None}return Object.defineProperty(s.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),s}(),As=o("D3Dy"),vs=o("OBOq"),No=o("nB0o"),Fs=o("lKfe"),no=o("ZlPH"),Ws=o("cMOf"),si=o("HdwC"),Bs=o("vATl"),na=o("DTDp"),Mr=o("WqXY"),io=o("GJhM"),ro=o("8HAY"),nr=o("sswD"),Cr=o("kYye"),Ei=o("MD5Z"),Wi=o("t9D7"),Io=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),To=3,oo=function(){function s(r,t,a,f){this.originalLineStart=r,this.originalLineEnd=t,this.modifiedLineStart=a,this.modifiedLineEnd=f}return s.prototype.getType=function(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0},s}(),Ko=function(){function s(r){this.entries=r}return s}(),Po=function(s){Io(r,s);function r(t){var a=s.call(this)||this;return a._width=0,a._diffEditor=t,a._isVisible=!1,a.shadow=Object(no.b)(document.createElement("div")),a.shadow.setClassName("diff-review-shadow"),a.actionBarContainer=Object(no.b)(document.createElement("div")),a.actionBarContainer.setClassName("diff-review-actions"),a._actionBar=a._register(new Mr.a(a.actionBarContainer.domNode)),a._actionBar.push(new ro.a("diffreview.close",gn.a("label.close","Close"),"close-diff-review",!0,function(){return a.hide(),Promise.resolve(null)}),{label:!1,icon:!0}),a.domNode=Object(no.b)(document.createElement("div")),a.domNode.setClassName("diff-review monaco-editor-background"),a._content=Object(no.b)(document.createElement("div")),a._content.setClassName("diff-review-content"),a.scrollbar=a._register(new io.a(a._content.domNode,{})),a.domNode.domNode.appendChild(a.scrollbar.getDomNode()),a._register(t.onDidUpdateDiff(function(){!a._isVisible||(a._diffs=a._compute(),a._render())})),a._register(t.getModifiedEditor().onDidChangeCursorPosition(function(){!a._isVisible||a._render()})),a._register(t.getOriginalEditor().onDidFocusEditorWidget(function(){a._isVisible&&a.hide()})),a._register(t.getModifiedEditor().onDidFocusEditorWidget(function(){a._isVisible&&a.hide()})),a._register(Ye.n(a.domNode.domNode,"click",function(f){f.preventDefault();var m=Ye.w(f.target,"diff-review-row");m&&a._goToRow(m)})),a._register(Ye.n(a.domNode.domNode,"keydown",function(f){(f.equals(18)||f.equals(2048|18)||f.equals(512|18))&&(f.preventDefault(),a._goToRow(a._getNextRow())),(f.equals(16)||f.equals(2048|16)||f.equals(512|16))&&(f.preventDefault(),a._goToRow(a._getPrevRow())),(f.equals(9)||f.equals(2048|9)||f.equals(512|9)||f.equals(1024|9))&&(f.preventDefault(),a.hide()),(f.equals(10)||f.equals(3))&&(f.preventDefault(),a.accept())})),a._diffs=[],a._currentDiff=null,a}return r.prototype.prev=function(){var t=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var a=-1,f=0,m=this._diffs.length;f<m;f++)if(this._diffs[f]===this._currentDiff){a=f;break}t=this._diffs.length+a-1}else t=this._findDiffIndex(this._diffEditor.getPosition());this._diffs.length!==0&&(t=t%this._diffs.length,this._diffEditor.setPosition(new B.a(this._diffs[t].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},r.prototype.next=function(){var t=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var a=-1,f=0,m=this._diffs.length;f<m;f++)if(this._diffs[f]===this._currentDiff){a=f;break}t=a+1}else t=this._findDiffIndex(this._diffEditor.getPosition());this._diffs.length!==0&&(t=t%this._diffs.length,this._diffEditor.setPosition(new B.a(this._diffs[t].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},r.prototype.accept=function(){var t=-1,a=this._getCurrentFocusedRow();if(a){var f=parseInt(a.getAttribute("data-line"),10);isNaN(f)||(t=f)}this.hide(),t!==-1&&(this._diffEditor.setPosition(new B.a(t,1)),this._diffEditor.revealPosition(new B.a(t,1),1))},r.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},r.prototype._getPrevRow=function(){var t=this._getCurrentFocusedRow();return t?t.previousElementSibling?t.previousElementSibling:t:this._getFirstRow()},r.prototype._getNextRow=function(){var t=this._getCurrentFocusedRow();return t?t.nextElementSibling?t.nextElementSibling:t:this._getFirstRow()},r.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},r.prototype._getCurrentFocusedRow=function(){var t=document.activeElement;return t&&/diff-review-row/.test(t.className)?t:null},r.prototype._goToRow=function(t){var a=this._getCurrentFocusedRow();t.tabIndex=0,t.focus(),a&&a!==t&&(a.tabIndex=-1),this.scrollbar.scanDomNode()},r.prototype.isVisible=function(){return this._isVisible},r.prototype.layout=function(t,a,f){this._width=a,this.shadow.setTop(t-6),this.shadow.setWidth(a),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(t),this.domNode.setWidth(a),this.domNode.setHeight(f),this._content.setHeight(f),this._content.setWidth(a),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 t=this._diffEditor.getLineChanges();if(!t||t.length===0)return[];var a=this._diffEditor.getOriginalEditor().getModel(),f=this._diffEditor.getModifiedEditor().getModel();return!a||!f?[]:r._mergeAdjacent(t,a.getLineCount(),f.getLineCount())},r._mergeAdjacent=function(t,a,f){if(!t||t.length===0)return[];for(var m=[],H=0,Ce=0,Te=t.length;Ce<Te;Ce++){var Pe=t[Ce],ot=Pe.originalStartLineNumber,dt=Pe.originalEndLineNumber,Ct=Pe.modifiedStartLineNumber,vt=Pe.modifiedEndLineNumber,Qt=[],Kt=0;{var jt=dt===0?ot:ot-1,kt=vt===0?Ct:Ct-1,rn=1,cn=1;if(Ce>0){var En=t[Ce-1];En.originalEndLineNumber===0?rn=En.originalStartLineNumber+1:rn=En.originalEndLineNumber+1,En.modifiedEndLineNumber===0?cn=En.modifiedStartLineNumber+1:cn=En.modifiedEndLineNumber+1}var _n=jt-To+1,Wn=kt-To+1;if(_n<rn){var jn=rn-_n;_n=_n+jn,Wn=Wn+jn}if(Wn<cn){var jn=cn-Wn;_n=_n+jn,Wn=Wn+jn}Qt[Kt++]=new oo(_n,jt,Wn,kt)}dt!==0&&(Qt[Kt++]=new oo(ot,dt,0,0)),vt!==0&&(Qt[Kt++]=new oo(0,0,Ct,vt));{var Bn=dt===0?ot+1:dt+1,ei=vt===0?Ct+1:vt+1,zn=a,mn=f;if(Ce+1<Te){var ni=t[Ce+1];ni.originalEndLineNumber===0?zn=ni.originalStartLineNumber:zn=ni.originalStartLineNumber-1,ni.modifiedEndLineNumber===0?mn=ni.modifiedStartLineNumber:mn=ni.modifiedStartLineNumber-1}var Qn=Bn+To-1,gi=ei+To-1;if(Qn>zn){var jn=zn-Qn;Qn=Qn+jn,gi=gi+jn}if(gi>mn){var jn=mn-gi;Qn=Qn+jn,gi=gi+jn}Qt[Kt++]=new oo(Bn,Qn,ei,gi)}m[H++]=new Ko(Qt)}for(var Ii=m[0].entries,Lr=[],yr=0,Ce=1,Te=m.length;Ce<Te;Ce++){var xr=m[Ce].entries,wo=Ii[Ii.length-1],Ds=xr[0];if(wo.getType()===0&&Ds.getType()===0&&Ds.originalLineStart<=wo.originalLineEnd){Ii[Ii.length-1]=new oo(wo.originalLineStart,Ds.originalLineEnd,wo.modifiedLineStart,Ds.modifiedLineEnd),Ii=Ii.concat(xr.slice(1));continue}Lr[yr++]=new Ko(Ii),Ii=xr}return Lr[yr++]=new Ko(Ii),Lr},r.prototype._findDiffIndex=function(t){for(var a=t.lineNumber,f=0,m=this._diffs.length;f<m;f++){var H=this._diffs[f].entries,Ce=H[H.length-1].modifiedLineEnd;if(a<=Ce)return f}return 0},r.prototype._render=function(){var t=this._diffEditor.getOriginalEditor().getOptions(),a=this._diffEditor.getModifiedEditor().getOptions(),f=this._diffEditor.getOriginalEditor().getModel(),m=this._diffEditor.getModifiedEditor().getModel(),H=f.getOptions(),Ce=m.getOptions();if(!this._isVisible||!f||!m){Ye.s(this._content.domNode),this._currentDiff=null,this.scrollbar.scanDomNode();return}var Te=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[Te]!==this._currentDiff){this._currentDiff=this._diffs[Te];var Pe=this._diffs[Te].entries,ot=document.createElement("div");ot.className="diff-review-table",ot.setAttribute("role","list"),si.a.applyFontInfoSlow(ot,a.get(34));for(var dt=0,Ct=0,vt=0,Qt=0,Kt=0,jt=Pe.length;Kt<jt;Kt++){var kt=Pe[Kt],rn=kt.originalLineStart,cn=kt.originalLineEnd,En=kt.modifiedLineStart,_n=kt.modifiedLineEnd;rn!==0&&(dt===0||rn<dt)&&(dt=rn),cn!==0&&(Ct===0||cn>Ct)&&(Ct=cn),En!==0&&(vt===0||En<vt)&&(vt=En),_n!==0&&(Qt===0||_n>Qt)&&(Qt=_n)}var Wn=document.createElement("div");Wn.className="diff-review-row";var jn=document.createElement("div");jn.className="diff-review-cell diff-review-summary";var Bn=Ct-dt+1,ei=Qt-vt+1;jn.appendChild(document.createTextNode(Te+1+"/"+this._diffs.length+": @@ -"+dt+","+Bn+" +"+vt+","+ei+" @@")),Wn.setAttribute("data-line",String(vt));var zn=function(Ii){return Ii===0?gn.a("no_lines","no lines"):Ii===1?gn.a("one_line","1 line"):gn.a("more_lines","{0} lines",Ii)},mn=zn(Bn),ni=zn(ei);Wn.setAttribute("aria-label",gn.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}",Te+1,this._diffs.length,dt,mn,vt,ni)),Wn.appendChild(jn),Wn.setAttribute("role","listitem"),ot.appendChild(Wn);for(var Qn=vt,Kt=0,jt=Pe.length;Kt<jt;Kt++){var kt=Pe[Kt];r._renderSection(ot,kt,Qn,this._width,t,f,H,a,m,Ce),kt.modifiedLineStart!==0&&(Qn=kt.modifiedLineEnd)}Ye.s(this._content.domNode),this._content.domNode.appendChild(ot),this.scrollbar.scanDomNode()}},r._renderSection=function(t,a,f,m,H,Ce,Te,Pe,ot,dt){var Ct=a.getType(),vt="diff-review-row",Qt="",Kt="diff-review-spacer";switch(Ct){case 1:vt="diff-review-row line-insert",Qt=" char-insert",Kt="diff-review-spacer insert-sign";break;case 2:vt="diff-review-row line-delete",Qt=" char-delete",Kt="diff-review-spacer delete-sign";break}for(var jt=a.originalLineStart,kt=a.originalLineEnd,rn=a.modifiedLineStart,cn=a.modifiedLineEnd,En=Math.max(cn-rn,kt-jt),_n=H.get(107),Wn=_n.glyphMarginWidth+_n.lineNumbersWidth,jn=Pe.get(107),Bn=10+jn.glyphMarginWidth+jn.lineNumbersWidth,ei=0;ei<=En;ei++){var zn=jt===0?0:jt+ei,mn=rn===0?0:rn+ei,ni=document.createElement("div");ni.style.minWidth=m+"px",ni.className=vt,ni.setAttribute("role","listitem"),mn!==0&&(f=mn),ni.setAttribute("data-line",String(f));var Qn=document.createElement("div");Qn.className="diff-review-cell",ni.appendChild(Qn);var gi=document.createElement("span");gi.style.width=Wn+"px",gi.style.minWidth=Wn+"px",gi.className="diff-review-line-number"+Qt,zn!==0?gi.appendChild(document.createTextNode(String(zn))):gi.innerHTML="&#160;",Qn.appendChild(gi);var Ii=document.createElement("span");Ii.style.width=Bn+"px",Ii.style.minWidth=Bn+"px",Ii.style.paddingRight="10px",Ii.className="diff-review-line-number"+Qt,mn!==0?Ii.appendChild(document.createTextNode(String(mn))):Ii.innerHTML="&#160;",Qn.appendChild(Ii);var Lr=document.createElement("span");Lr.className=Kt,Lr.innerHTML="&#160;&#160;",Qn.appendChild(Lr);var yr=void 0;mn!==0?(Qn.insertAdjacentHTML("beforeend",this._renderLine(ot,Pe,dt.tabSize,mn)),yr=ot.getLineContent(mn)):(Qn.insertAdjacentHTML("beforeend",this._renderLine(Ce,H,Te.tabSize,zn)),yr=Ce.getLineContent(zn)),yr.length===0&&(yr=gn.a("blankLine","blank"));var xr="";switch(Ct){case 0:xr=gn.a("equalLine","original {0}, modified {1}: {2}",zn,mn,yr);break;case 1:xr=gn.a("insertLine","+ modified {0}: {1}",mn,yr);break;case 2:xr=gn.a("deleteLine","- original {0}: {1}",zn,yr);break}ni.setAttribute("aria-label",xr),t.appendChild(ni)}},r._renderLine=function(t,a,f,m){var H=t.getLineContent(m),Ce=a.get(34),Te=(0<<11|1<<14|2<<23)>>>0,Pe=new Uint32Array(2);Pe[0]=H.length,Pe[1]=Te;var ot=new Le.a(Pe,H),dt=Je.d.isBasicASCII(H,t.mightContainNonBasicASCII()),Ct=Je.d.containsRTL(H,dt,t.mightContainRTL()),vt=Object(it.e)(new it.c(Ce.isMonospace&&!a.get(23),Ce.canUseHalfwidthRightwardsArrow,H,!1,dt,Ct,0,ot,[],f,0,Ce.spaceWidth,Ce.middotWidth,a.get(88),a.get(74),a.get(69),a.get(35)!==R.d.OFF,null));return vt.html},r}(zt.a);Object(Wi.e)(function(s,r){var t=s.getColor(Cr.j);t&&r.addRule(".monaco-diff-editor .diff-review-line-number { color: "+t+"; }");var a=s.getColor(Ei.Tb);a&&r.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+a+" 0 -6px 6px -6px inset; }")});var so=function(s){Io(r,s);function r(){return s.call(this,{id:"editor.action.diffReview.next",label:gn.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:_i.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return r.prototype.run=function(t,a){var f=Er(t);f&&f.diffReviewNext()},r}(nr.b),br=function(s){Io(r,s);function r(){return s.call(this,{id:"editor.action.diffReview.prev",label:gn.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:_i.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1024|65,weight:100}})||this}return r.prototype.run=function(t,a){var f=Er(t);f&&f.diffReviewPrev()},r}(nr.b);function Er(s){for(var r=s.get(Ke.a),t=r.listDiffEditors(),a=0,f=t.length;a<f;a++){var m=t[a];if(m.hasWidgetFocus())return m}return null}Object(nr.f)(so),Object(nr.f)(br);var ms=o("erNZ"),fr=o("tX9W"),ao=o("MvK1"),js=o("dBaI"),jr=o("8HsV"),_r=o("Uzvx"),ks=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),hr=function(s,r,t,a){function f(m){return m instanceof t?m:new t(function(H){H(m)})}return new(t||(t=Promise))(function(m,H){function Ce(ot){try{Pe(a.next(ot))}catch(dt){H(dt)}}function Te(ot){try{Pe(a.throw(ot))}catch(dt){H(dt)}}function Pe(ot){ot.done?m(ot.value):f(ot.value).then(Ce,Te)}Pe((a=a.apply(s,r||[])).next())})},uo=function(s,r){var t={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},a,f,m,H;return H={next:Ce(0),throw:Ce(1),return:Ce(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function Ce(Pe){return function(ot){return Te([Pe,ot])}}function Te(Pe){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,f&&(m=Pe[0]&2?f.return:Pe[0]?f.throw||((m=f.return)&&m.call(f),0):f.next)&&!(m=m.call(f,Pe[1])).done)return m;switch(f=0,m&&(Pe=[Pe[0]&2,m.value]),Pe[0]){case 0:case 1:m=Pe;break;case 4:return t.label++,{value:Pe[1],done:!1};case 5:t.label++,f=Pe[1],Pe=[0];continue;case 7:Pe=t.ops.pop(),t.trys.pop();continue;default:if(m=t.trys,!(m=m.length>0&&m[m.length-1])&&(Pe[0]===6||Pe[0]===2)){t=0;continue}if(Pe[0]===3&&(!m||Pe[1]>m[0]&&Pe[1]<m[3])){t.label=Pe[1];break}if(Pe[0]===6&&t.label<m[1]){t.label=m[1],m=Pe;break}if(m&&t.label<m[2]){t.label=m[2],t.ops.push(Pe);break}m[2]&&t.ops.pop(),t.trys.pop();continue}Pe=r.call(s,t)}catch(ot){Pe=[6,ot],f=0}finally{a=m=0}if(Pe[0]&5)throw Pe[1];return{value:Pe[0]?Pe[1]:void 0,done:!0}}},Vs=function(s){ks(r,s);function r(t,a,f,m,H,Ce){var Te=s.call(this)||this;Te._viewZoneId=t,Te._marginDomNode=a,Te.editor=f,Te.diff=m,Te._contextMenuService=H,Te._clipboardService=Ce,Te._visibility=!1,Te._marginDomNode.style.zIndex="10",Te._diffActions=document.createElement("div"),Te._diffActions.className="codicon codicon-lightbulb lightbulb-glyph",Te._diffActions.style.position="absolute";var Pe=f.getOption(49),ot=f.getModel().getEOL();Te._diffActions.style.right="0px",Te._diffActions.style.visibility="hidden",Te._diffActions.style.height=Pe+"px",Te._diffActions.style.lineHeight=Pe+"px",Te._marginDomNode.appendChild(Te._diffActions);var dt=[];dt.push(new ro.a("diff.clipboard.copyDeletedContent",m.originalEndLineNumber>m.modifiedStartLineNumber?gn.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):gn.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,function(){return hr(Te,void 0,void 0,function(){return uo(this,function(jt){switch(jt.label){case 0:return[4,this._clipboardService.writeText(m.originalContent.join(ot)+ot)];case 1:return jt.sent(),[2]}})})}));var Ct=0,vt=void 0;m.originalEndLineNumber>m.modifiedStartLineNumber&&(vt=new ro.a("diff.clipboard.copyDeletedLineContent",gn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",m.originalStartLineNumber),void 0,!0,function(){return hr(Te,void 0,void 0,function(){return uo(this,function(jt){switch(jt.label){case 0:return[4,this._clipboardService.writeText(m.originalContent[Ct])];case 1:return jt.sent(),[2]}})})}),dt.push(vt));var Qt=f.getOption(68);Qt||dt.push(new ro.a("diff.inline.revertChange",gn.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,function(){return hr(Te,void 0,void 0,function(){var jt,jt;return uo(this,function(kt){return m.modifiedEndLineNumber===0?(jt=f.getModel().getLineMaxColumn(m.modifiedStartLineNumber),f.executeEdits("diffEditor",[{range:new G.a(m.modifiedStartLineNumber,jt,m.modifiedStartLineNumber,jt),text:ot+m.originalContent.join(ot)}])):(jt=f.getModel().getLineMaxColumn(m.modifiedEndLineNumber),f.executeEdits("diffEditor",[{range:new G.a(m.modifiedStartLineNumber,1,m.modifiedEndLineNumber,jt),text:m.originalContent.join(ot)}])),[2]})})}));var Kt=function(kt,rn){Te._contextMenuService.showContextMenu({getAnchor:function(){return{x:kt,y:rn}},getActions:function(){return vt&&(vt.label=gn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",m.originalStartLineNumber+Ct)),dt},autoSelectFirstItem:!0})};return Te._register(Ye.n(Te._diffActions,"mousedown",function(jt){var kt=Ye.B(Te._diffActions),rn=kt.top,cn=kt.height,En=Math.floor(Pe/3);jt.preventDefault(),Kt(jt.posx,rn+cn+En)})),Te._register(f.onMouseMove(function(jt){if(jt.target.type===8||jt.target.type===5){var kt=jt.target.detail.viewZoneId;kt===Te._viewZoneId?(Te.visibility=!0,Ct=Te._updateLightBulbPosition(Te._marginDomNode,jt.event.browserEvent.y,Pe)):Te.visibility=!1}else Te.visibility=!1})),Te._register(f.onMouseDown(function(jt){if(!!jt.event.rightButton&&(jt.target.type===8||jt.target.type===5)){var kt=jt.target.detail.viewZoneId;kt===Te._viewZoneId&&(jt.event.preventDefault(),Ct=Te._updateLightBulbPosition(Te._marginDomNode,jt.event.browserEvent.y,Pe),Kt(jt.event.posx,jt.event.posy+Pe))}})),Te}return Object.defineProperty(r.prototype,"visibility",{get:function(){return this._visibility},set:function(a){this._visibility!==a&&(this._visibility=a,a?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")},enumerable:!0,configurable:!0}),r.prototype._updateLightBulbPosition=function(t,a,f){var m=Ye.B(t).top,H=a-m,Ce=Math.floor(H/f),Te=Ce*f;return this._diffActions.style.top=Te+"px",Ce},r}(zt.a),Co=o("tTk5"),Hs=o("o39E"),Or=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Us=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},kr=function(s,r){return function(t,a){r(t,a,s)}},ys=function(){function s(r,t){this._contextMenuService=r,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return s.prototype.getForeignViewZones=function(r){var t=this;return r.filter(function(a){return!t._zonesMap[String(a.id)]})},s.prototype.clean=function(r){var t=this;this._zones.length>0&&r.changeViewZones(function(a){for(var f=0,m=t._zones.length;f<m;f++)a.removeZone(t._zones[f])}),this._zones=[],this._zonesMap={},this._decorations=r.deltaDecorations(this._decorations,[])},s.prototype.apply=function(r,t,a,f){var m=this,H=f?Bs.c.capture(r):null;r.changeViewZones(function(Ce){for(var Te=0,Pe=m._zones.length;Te<Pe;Te++)Ce.removeZone(m._zones[Te]);for(var Te=0,ot=m.inlineDiffMargins.length;Te<ot;Te++)m.inlineDiffMargins[Te].dispose();m._zones=[],m._zonesMap={},m.inlineDiffMargins=[];for(var Te=0,dt=a.zones.length;Te<dt;Te++){var Ct=a.zones[Te];Ct.suppressMouseDown=!0;var vt=Ce.addZone(Ct);m._zones.push(vt),m._zonesMap[String(vt)]=!0,a.zones[Te].diff&&Ct.marginDomNode&&m._clipboardService&&(Ct.suppressMouseDown=!1,m.inlineDiffMargins.push(new Vs(vt,Ct.marginDomNode,r,a.zones[Te].diff,m._contextMenuService,m._clipboardService)))}}),H&&H.restore(r),this._decorations=r.deltaDecorations(this._decorations,a.decorations),t&&t.setZones(a.overviewZones)},s}(),Cs=0,Go=function(s){Or(r,s);function r(t,a,f,m,H,Ce,Te,Pe,ot,dt,Ct){var vt=s.call(this)||this;vt._editorProgressService=Ct,vt._onDidDispose=vt._register(new P.a),vt.onDidDispose=vt._onDidDispose.event,vt._onDidUpdateDiff=vt._register(new P.a),vt.onDidUpdateDiff=vt._onDidUpdateDiff.event,vt._lastOriginalWarning=null,vt._lastModifiedWarning=null,vt._editorWorkerService=m,vt._codeEditorService=Te,vt._contextKeyService=vt._register(H.createScoped(t)),vt._contextKeyService.createKey("isInDiffEditor",!0),vt._themeService=Pe,vt._notificationService=ot,vt.id=++Cs,vt._state=0,vt._updatingDiffProgress=null,vt._domElement=t,a=a||{},vt._renderSideBySide=!0,typeof a.renderSideBySide!="undefined"&&(vt._renderSideBySide=a.renderSideBySide),vt._maxComputationTime=5e3,typeof a.maxComputationTime!="undefined"&&(vt._maxComputationTime=a.maxComputationTime),vt._ignoreTrimWhitespace=!0,typeof a.ignoreTrimWhitespace!="undefined"&&(vt._ignoreTrimWhitespace=a.ignoreTrimWhitespace),vt._renderIndicators=!0,typeof a.renderIndicators!="undefined"&&(vt._renderIndicators=a.renderIndicators),vt._originalIsEditable=!1,typeof a.originalEditable!="undefined"&&(vt._originalIsEditable=Boolean(a.originalEditable)),vt._updateDecorationsRunner=vt._register(new Jt.d(function(){return vt._updateDecorations()},0)),vt._containerDomElement=document.createElement("div"),vt._containerDomElement.className=r._getClassName(vt._themeService.getTheme(),vt._renderSideBySide),vt._containerDomElement.style.position="relative",vt._containerDomElement.style.height="100%",vt._domElement.appendChild(vt._containerDomElement),vt._overviewViewportDomElement=Object(no.b)(document.createElement("div")),vt._overviewViewportDomElement.setClassName("diffViewport"),vt._overviewViewportDomElement.setPosition("absolute"),vt._overviewDomElement=document.createElement("div"),vt._overviewDomElement.className="diffOverview",vt._overviewDomElement.style.position="absolute",vt._overviewDomElement.appendChild(vt._overviewViewportDomElement.domNode),vt._register(Ye.n(vt._overviewDomElement,"mousedown",function(Bn){vt.modifiedEditor.delegateVerticalScrollbarMouseDown(Bn)})),vt._containerDomElement.appendChild(vt._overviewDomElement),vt._originalDomNode=document.createElement("div"),vt._originalDomNode.className="editor original",vt._originalDomNode.style.position="absolute",vt._originalDomNode.style.height="100%",vt._containerDomElement.appendChild(vt._originalDomNode),vt._modifiedDomNode=document.createElement("div"),vt._modifiedDomNode.className="editor modified",vt._modifiedDomNode.style.position="absolute",vt._modifiedDomNode.style.height="100%",vt._containerDomElement.appendChild(vt._modifiedDomNode),vt._beginUpdateDecorationsTimeout=-1,vt._currentlyChangingViewZones=!1,vt._diffComputationToken=0,vt._originalEditorState=new ys(dt,f),vt._modifiedEditorState=new ys(dt,f),vt._isVisible=!0,vt._isHandlingScrollEvent=!1,vt._elementSizeObserver=vt._register(new Hs.a(vt._containerDomElement,void 0,function(){return vt._onDidContainerSizeChanged()})),a.automaticLayout&&vt._elementSizeObserver.startObserving(),vt._diffComputationResult=null;var Qt=vt._contextKeyService.createScoped();Qt.createKey("isInDiffLeftEditor",!0);var Kt=new jr.a;Kt.set(_i.c,Qt);var jt=Ce.createChild(Kt),kt=vt._contextKeyService.createScoped();kt.createKey("isInDiffRightEditor",!0);var rn=new jr.a;rn.set(_i.c,kt);var cn=Ce.createChild(rn);vt.originalEditor=vt._createLeftHandSideEditor(a,jt),vt.modifiedEditor=vt._createRightHandSideEditor(a,cn),vt._originalOverviewRuler=null,vt._modifiedOverviewRuler=null,vt._reviewPane=new Po(vt),vt._containerDomElement.appendChild(vt._reviewPane.domNode.domNode),vt._containerDomElement.appendChild(vt._reviewPane.shadow.domNode),vt._containerDomElement.appendChild(vt._reviewPane.actionBarContainer.domNode),vt._enableSplitViewResizing=!0,typeof a.enableSplitViewResizing!="undefined"&&(vt._enableSplitViewResizing=a.enableSplitViewResizing),vt._renderSideBySide?vt._setStrategy(new Qr(vt._createDataSource(),vt._enableSplitViewResizing)):vt._setStrategy(new Ir(vt._createDataSource(),vt._enableSplitViewResizing)),vt._register(Pe.onThemeChange(function(Bn){vt._strategy&&vt._strategy.applyColors(Bn)&&vt._updateDecorationsRunner.schedule(),vt._containerDomElement.className=r._getClassName(vt._themeService.getTheme(),vt._renderSideBySide)}));for(var En=nr.d.getDiffEditorContributions(),_n=0,Wn=En;_n<Wn.length;_n++){var jn=Wn[_n];try{vt._register(Ce.createInstance(jn.ctor,vt))}catch(Bn){Object(nn.e)(Bn)}}return vt._codeEditorService.addDiffEditor(vt),vt}return r.prototype._setState=function(t){this._state!==t&&(this._state=t,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))},r.prototype.hasWidgetFocus=function(){return Ye.J(document.activeElement,this._domElement)},r.prototype.diffReviewNext=function(){this._reviewPane.next()},r.prototype.diffReviewPrev=function(){this._reviewPane.prev()},r._getClassName=function(t,a){var f="monaco-diff-editor monaco-editor-background ";return a&&(f+="side-by-side "),f+=Object(Wi.d)(t.type),f},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(t,a){var f=this,m=this._createInnerEditor(a,this._originalDomNode,this._adjustOptionsForLeftHandSide(t,this._originalIsEditable));return this._register(m.onDidScrollChange(function(H){f._isHandlingScrollEvent||!H.scrollTopChanged&&!H.scrollLeftChanged&&!H.scrollHeightChanged||(f._isHandlingScrollEvent=!0,f.modifiedEditor.setScrollPosition({scrollLeft:H.scrollLeft,scrollTop:H.scrollTop}),f._isHandlingScrollEvent=!1,f._layoutOverviewViewport())})),this._register(m.onDidChangeViewZones(function(){f._onViewZonesChanged()})),this._register(m.onDidChangeModelContent(function(){f._isVisible&&f._beginUpdateDecorationsSoon()})),m},r.prototype._createRightHandSideEditor=function(t,a){var f=this,m=this._createInnerEditor(a,this._modifiedDomNode,this._adjustOptionsForRightHandSide(t));return this._register(m.onDidScrollChange(function(H){f._isHandlingScrollEvent||!H.scrollTopChanged&&!H.scrollLeftChanged&&!H.scrollHeightChanged||(f._isHandlingScrollEvent=!0,f.originalEditor.setScrollPosition({scrollLeft:H.scrollLeft,scrollTop:H.scrollTop}),f._isHandlingScrollEvent=!1,f._layoutOverviewViewport())})),this._register(m.onDidChangeViewZones(function(){f._onViewZonesChanged()})),this._register(m.onDidChangeConfiguration(function(H){H.hasChanged(34)&&m.getModel()&&f._onViewZonesChanged()})),this._register(m.onDidChangeModelContent(function(){f._isVisible&&f._beginUpdateDecorationsSoon()})),this._register(m.onDidChangeModelOptions(function(H){H.tabSize&&f._updateDecorationsRunner.schedule()})),m},r.prototype._createInnerEditor=function(t,a,f){return t.createInstance(No.a,a,f,{})},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(),s.prototype.dispose.call(this)},r.prototype.getId=function(){return this.getEditorType()+":"+this.id},r.prototype.getEditorType=function(){return Ft.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(t){var a=!1;typeof t.renderSideBySide!="undefined"&&this._renderSideBySide!==t.renderSideBySide&&(this._renderSideBySide=t.renderSideBySide,a=!0),typeof t.maxComputationTime!="undefined"&&(this._maxComputationTime=t.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());var f=!1;typeof t.ignoreTrimWhitespace!="undefined"&&this._ignoreTrimWhitespace!==t.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=t.ignoreTrimWhitespace,f=!0),typeof t.renderIndicators!="undefined"&&this._renderIndicators!==t.renderIndicators&&(this._renderIndicators=t.renderIndicators,f=!0),f&&this._beginUpdateDecorations(),typeof t.originalEditable!="undefined"&&(this._originalIsEditable=Boolean(t.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(t)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(t,this._originalIsEditable)),typeof t.enableSplitViewResizing!="undefined"&&(this._enableSplitViewResizing=t.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),a&&(this._renderSideBySide?this._setStrategy(new Qr(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new Ir(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(t){if(t&&(!t.original||!t.modified))throw new Error(t.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(t?t.original:null),this.modifiedEditor.setModel(t?t.modified:null),this._updateDecorationsRunner.cancel(),t&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),t&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()},r.prototype.getDomNode=function(){return this._domElement},r.prototype.getVisibleColumnFromPosition=function(t){return this.modifiedEditor.getVisibleColumnFromPosition(t)},r.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},r.prototype.setPosition=function(t){this.modifiedEditor.setPosition(t)},r.prototype.revealLine=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealLine(t,a)},r.prototype.revealLineInCenter=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealLineInCenter(t,a)},r.prototype.revealLineInCenterIfOutsideViewport=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(t,a)},r.prototype.revealPosition=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealPosition(t,a)},r.prototype.revealPositionInCenter=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealPositionInCenter(t,a)},r.prototype.revealPositionInCenterIfOutsideViewport=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(t,a)},r.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},r.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},r.prototype.setSelection=function(t){this.modifiedEditor.setSelection(t)},r.prototype.setSelections=function(t){this.modifiedEditor.setSelections(t)},r.prototype.revealLines=function(t,a,f){f===void 0&&(f=0),this.modifiedEditor.revealLines(t,a,f)},r.prototype.revealLinesInCenter=function(t,a,f){f===void 0&&(f=0),this.modifiedEditor.revealLinesInCenter(t,a,f)},r.prototype.revealLinesInCenterIfOutsideViewport=function(t,a,f){f===void 0&&(f=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(t,a,f)},r.prototype.revealRange=function(t,a,f,m){a===void 0&&(a=0),f===void 0&&(f=!1),m===void 0&&(m=!0),this.modifiedEditor.revealRange(t,a,f,m)},r.prototype.revealRangeInCenter=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealRangeInCenter(t,a)},r.prototype.revealRangeInCenterIfOutsideViewport=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(t,a)},r.prototype.revealRangeAtTop=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealRangeAtTop(t,a)},r.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},r.prototype.saveViewState=function(){var t=this.originalEditor.saveViewState(),a=this.modifiedEditor.saveViewState();return{original:t,modified:a}},r.prototype.restoreViewState=function(t){if(t.original&&t.modified){var a=t;this.originalEditor.restoreViewState(a.original),this.modifiedEditor.restoreViewState(a.modified)}},r.prototype.layout=function(t){this._elementSizeObserver.observe(t)},r.prototype.focus=function(){this.modifiedEditor.focus()},r.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},r.prototype.trigger=function(t,a,f){this.modifiedEditor.trigger(t,a,f)},r.prototype.changeDecorations=function(t){return this.modifiedEditor.changeDecorations(t)},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)){var t=this._elementSizeObserver.getHeight(),a=this._getReviewHeight(),f=r.ENTIRE_DIFF_OVERVIEW_WIDTH-2*r.ONE_OVERVIEW_WIDTH,m=this.modifiedEditor.getLayoutInfo();m&&(this._originalOverviewRuler.setLayout({top:0,width:r.ONE_OVERVIEW_WIDTH,right:f+r.ONE_OVERVIEW_WIDTH,height:t-a}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:r.ONE_OVERVIEW_WIDTH,height:t-a}))}},r.prototype._onViewZonesChanged=function(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()},r.prototype._beginUpdateDecorationsSoon=function(){var t=this;this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(function(){return t._beginUpdateDecorations()},r.UPDATE_DIFF_DECORATIONS_DELAY)},r._equals=function(t,a){return!t&&!a?!0:!t||!a?!1:t.toString()===a.toString()},r.prototype._beginUpdateDecorations=function(){var t=this;this._beginUpdateDecorationsTimeout=-1;var a=this.originalEditor.getModel(),f=this.modifiedEditor.getModel();if(!(!a||!f)){this._diffComputationToken++;var m=this._diffComputationToken;if(this._setState(1),!this._editorWorkerService.canComputeDiff(a.uri,f.uri)){(!r._equals(a.uri,this._lastOriginalWarning)||!r._equals(f.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=a.uri,this._lastModifiedWarning=f.uri,this._notificationService.warn(gn.a("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._editorWorkerService.computeDiff(a.uri,f.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(function(H){m===t._diffComputationToken&&a===t.originalEditor.getModel()&&f===t.modifiedEditor.getModel()&&(t._setState(2),t._diffComputationResult=H,t._updateDecorationsRunner.schedule(),t._onDidUpdateDiff.fire())},function(H){m===t._diffComputationToken&&a===t.originalEditor.getModel()&&f===t.modifiedEditor.getModel()&&(t._setState(2),t._diffComputationResult=null,t._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)){var t=this._diffComputationResult?this._diffComputationResult.changes:[],a=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),f=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),m=this._strategy.getEditorsDiffDecorations(t,this._ignoreTrimWhitespace,this._renderIndicators,a,f,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,m.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,m.modified,!0)}finally{this._currentlyChangingViewZones=!1}}},r.prototype._adjustOptionsForSubEditor=function(t){var a=Gt.c(t||{});return a.inDiffEditor=!0,a.wordWrap="off",a.wordWrapMinified=!1,a.automaticLayout=!1,a.scrollbar=a.scrollbar||{},a.scrollbar.vertical="visible",a.folding=!1,a.codeLens=!1,a.fixedOverflowWidgets=!0,a.minimap||(a.minimap={}),a.minimap.enabled=!1,a},r.prototype._adjustOptionsForLeftHandSide=function(t,a){var f=this._adjustOptionsForSubEditor(t);return f.readOnly=!a,f.extraEditorClassName="original-in-monaco-diff-editor",f},r.prototype._adjustOptionsForRightHandSide=function(t){var a=this._adjustOptionsForSubEditor(t);return a.revealHorizontalRightPadding=R.e.revealHorizontalRightPadding.defaultValue+r.ENTIRE_DIFF_OVERVIEW_WIDTH,a.scrollbar.verticalHasArrows=!1,a.extraEditorClassName="modified-in-monaco-diff-editor",a},r.prototype.doLayout=function(){this._elementSizeObserver.observe(),this._doLayout()},r.prototype._doLayout=function(){var t=this._elementSizeObserver.getWidth(),a=this._elementSizeObserver.getHeight(),f=this._getReviewHeight(),m=this._strategy.layout();this._originalDomNode.style.width=m+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=t-m+"px",this._modifiedDomNode.style.left=m+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=a-f+"px",this._overviewDomElement.style.width=r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=t-r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(r.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:m,height:a-f}),this.modifiedEditor.layout({width:t-m-r.ENTIRE_DIFF_OVERVIEW_WIDTH,height:a-f}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(a-f,t,f),this._layoutOverviewViewport()},r.prototype._layoutOverviewViewport=function(){var t=this._computeOverviewViewport();t?(this._overviewViewportDomElement.setTop(t.top),this._overviewViewportDomElement.setHeight(t.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},r.prototype._computeOverviewViewport=function(){var t=this.modifiedEditor.getLayoutInfo();if(!t)return null;var a=this.modifiedEditor.getScrollTop(),f=this.modifiedEditor.getScrollHeight(),m=Math.max(0,t.height),H=Math.max(0,m-2*0),Ce=f>0?H/f:0,Te=Math.max(0,Math.floor(t.height*Ce)),Pe=Math.floor(a*Ce);return{height:Te,top:Pe}},r.prototype._createDataSource=function(){var t=this;return{getWidth:function(){return t._elementSizeObserver.getWidth()},getHeight:function(){return t._elementSizeObserver.getHeight()-t._getReviewHeight()},getContainerDomNode:function(){return t._containerDomElement},relayoutEditors:function(){t._doLayout()},getOriginalEditor:function(){return t.originalEditor},getModifiedEditor:function(){return t.modifiedEditor}}},r.prototype._setStrategy=function(t){this._strategy&&this._strategy.dispose(),this._strategy=t,t.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},r.prototype._getLineChangeAtOrBeforeLineNumber=function(t,a){var f=this._diffComputationResult?this._diffComputationResult.changes:[];if(f.length===0||t<a(f[0]))return null;for(var m=0,H=f.length-1;m<H;){var Ce=Math.floor((m+H)/2),Te=a(f[Ce]),Pe=Ce+1<=H?a(f[Ce+1]):1073741824;t<Te?H=Ce-1:t>=Pe?m=Ce+1:(m=Ce,H=Ce)}return f[m]},r.prototype._getEquivalentLineForOriginalLineNumber=function(t){var a=this._getLineChangeAtOrBeforeLineNumber(t,function(Pe){return Pe.originalStartLineNumber});if(!a)return t;var f=a.originalStartLineNumber+(a.originalEndLineNumber>0?-1:0),m=a.modifiedStartLineNumber+(a.modifiedEndLineNumber>0?-1:0),H=a.originalEndLineNumber>0?a.originalEndLineNumber-a.originalStartLineNumber+1:0,Ce=a.modifiedEndLineNumber>0?a.modifiedEndLineNumber-a.modifiedStartLineNumber+1:0,Te=t-f;return Te<=H?m+Math.min(Te,Ce):m+Ce-H+Te},r.prototype._getEquivalentLineForModifiedLineNumber=function(t){var a=this._getLineChangeAtOrBeforeLineNumber(t,function(Pe){return Pe.modifiedStartLineNumber});if(!a)return t;var f=a.originalStartLineNumber+(a.originalEndLineNumber>0?-1:0),m=a.modifiedStartLineNumber+(a.modifiedEndLineNumber>0?-1:0),H=a.originalEndLineNumber>0?a.originalEndLineNumber-a.originalStartLineNumber+1:0,Ce=a.modifiedEndLineNumber>0?a.modifiedEndLineNumber-a.modifiedStartLineNumber+1:0,Te=t-m;return Te<=Ce?f+Math.min(Te,H):f+H-Ce+Te},r.prototype.getDiffLineInformationForOriginal=function(t){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(t)}:null},r.prototype.getDiffLineInformationForModified=function(t){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(t)}:null},r.ONE_OVERVIEW_WIDTH=15,r.ENTIRE_DIFF_OVERVIEW_WIDTH=30,r.UPDATE_DIFF_DECORATIONS_DELAY=200,r=Us([kr(3,Ot.a),kr(4,_i.c),kr(5,Zt.a),kr(6,Ke.a),kr(7,Wi.c),kr(8,wr.a),kr(9,_r.a),kr(10,Co.a)],r),r}(zt.a),Vr=function(s){Or(r,s);function r(t){var a=s.call(this)||this;return a._dataSource=t,a._insertColor=null,a._removeColor=null,a}return r.prototype.applyColors=function(t){var a=(t.getColor(Ei.j)||Ei.g).transparent(2),f=(t.getColor(Ei.l)||Ei.h).transparent(2),m=!a.equals(this._insertColor)||!f.equals(this._removeColor);return this._insertColor=a,this._removeColor=f,m},r.prototype.getEditorsDiffDecorations=function(t,a,f,m,H,Ce,Te){H=H.sort(function(Ct,vt){return Ct.afterLineNumber-vt.afterLineNumber}),m=m.sort(function(Ct,vt){return Ct.afterLineNumber-vt.afterLineNumber});var Pe=this._getViewZones(t,m,H,Ce,Te,f),ot=this._getOriginalEditorDecorations(t,a,f,Ce,Te),dt=this._getModifiedEditorDecorations(t,a,f,Ce,Te);return{original:{decorations:ot.decorations,overviewZones:ot.overviewZones,zones:Pe.original},modified:{decorations:dt.decorations,overviewZones:dt.overviewZones,zones:Pe.modified}}},r}(zt.a),bs=function(){function s(r){this._source=r,this._index=-1,this.current=null,this.advance()}return s.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},s}(),Xr=function(){function s(r,t,a,f,m){this.lineChanges=r,this.originalForeignVZ=t,this.originalLineHeight=a,this.modifiedForeignVZ=f,this.modifiedLineHeight=m}return s.prototype.getViewZones=function(){for(var r={original:[],modified:[]},t=0,a=0,f=0,m=0,H=0,Ce=0,Te=function(mn,ni){return mn.afterLineNumber-ni.afterLineNumber},Pe=function(mn,ni){if(ni.domNode===null&&mn.length>0){var Qn=mn[mn.length-1];if(Qn.afterLineNumber===ni.afterLineNumber&&Qn.domNode===null){Qn.heightInLines+=ni.heightInLines;return}}mn.push(ni)},ot=new bs(this.modifiedForeignVZ),dt=new bs(this.originalForeignVZ),Ct=0,vt=this.lineChanges.length;Ct<=vt;Ct++){var Qt=Ct<vt?this.lineChanges[Ct]:null;Qt!==null?(f=Qt.originalStartLineNumber+(Qt.originalEndLineNumber>0?-1:0),m=Qt.modifiedStartLineNumber+(Qt.modifiedEndLineNumber>0?-1:0),a=Qt.originalEndLineNumber>0?Qt.originalEndLineNumber-Qt.originalStartLineNumber+1:0,t=Qt.modifiedEndLineNumber>0?Qt.modifiedEndLineNumber-Qt.modifiedStartLineNumber+1:0,H=Math.max(Qt.originalStartLineNumber,Qt.originalEndLineNumber),Ce=Math.max(Qt.modifiedStartLineNumber,Qt.modifiedEndLineNumber)):(f+=1e7+a,m+=1e7+t,H=f,Ce=m);for(var Kt=[],jt=[];ot.current&&ot.current.afterLineNumber<=Ce;){var kt=void 0;ot.current.afterLineNumber<=m?kt=f-m+ot.current.afterLineNumber:kt=H;var rn=null;Qt&&Qt.modifiedStartLineNumber<=ot.current.afterLineNumber&&ot.current.afterLineNumber<=Qt.modifiedEndLineNumber&&(rn=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),Kt.push({afterLineNumber:kt,heightInLines:ot.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:rn}),ot.advance()}for(;dt.current&&dt.current.afterLineNumber<=H;){var kt=void 0;dt.current.afterLineNumber<=f?kt=m-f+dt.current.afterLineNumber:kt=Ce,jt.push({afterLineNumber:kt,heightInLines:dt.current.height/this.originalLineHeight,domNode:null}),dt.advance()}if(Qt!==null&&$r(Qt)){var cn=this._produceOriginalFromDiff(Qt,a,t);cn&&Kt.push(cn)}if(Qt!==null&&Dr(Qt)){var cn=this._produceModifiedFromDiff(Qt,a,t);cn&&jt.push(cn)}var En=0,_n=0;for(Kt=Kt.sort(Te),jt=jt.sort(Te);En<Kt.length&&_n<jt.length;){var Wn=Kt[En],jn=jt[_n],Bn=Wn.afterLineNumber-f,ei=jn.afterLineNumber-m;Bn<ei?(Pe(r.original,Wn),En++):ei<Bn?(Pe(r.modified,jn),_n++):Wn.shouldNotShrink?(Pe(r.original,Wn),En++):jn.shouldNotShrink?(Pe(r.modified,jn),_n++):Wn.heightInLines>=jn.heightInLines?(Wn.heightInLines-=jn.heightInLines,_n++):(jn.heightInLines-=Wn.heightInLines,En++)}for(;En<Kt.length;)Pe(r.original,Kt[En]),En++;for(;_n<jt.length;)Pe(r.modified,jt[_n]),_n++}return{original:s._ensureDomNodes(r.original),modified:s._ensureDomNodes(r.modified)}},s._ensureDomNodes=function(r){return r.map(function(t){return t.domNode||(t.domNode=Xo()),t})},s}();function Nr(s,r,t,a,f){return{range:new G.a(s,r,t,a),options:f}}var Zi={charDelete:fr.a.register({className:"char-delete"}),charDeleteWholeLine:fr.a.register({className:"char-delete",isWholeLine:!0}),charInsert:fr.a.register({className:"char-insert"}),charInsertWholeLine:fr.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:fr.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:fr.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign codicon codicon-add",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:fr.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:fr.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign codicon codicon-remove",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:fr.a.register({marginClassName:"line-delete"})},Qr=function(s){Or(r,s);function r(t,a){var f=s.call(this,t)||this;return f._disableSash=a===!1,f._sashRatio=null,f._sashPosition=null,f._startSashPosition=null,f._sash=f._register(new Ws.a(f._dataSource.getContainerDomNode(),f)),f._disableSash&&(f._sash.state=0),f._sash.onDidStart(function(){return f.onSashDragStart()}),f._sash.onDidChange(function(m){return f.onSashDrag(m)}),f._sash.onDidEnd(function(){return f.onSashDragEnd()}),f._sash.onDidReset(function(){return f.onSashReset()}),f}return r.prototype.setEnableSplitViewResizing=function(t){var a=t===!1;this._disableSash!==a&&(this._disableSash=a,this._sash.state=this._disableSash?0:3)},r.prototype.layout=function(t){t===void 0&&(t=this._sashRatio);var a=this._dataSource.getWidth(),f=a-Go.ENTIRE_DIFF_OVERVIEW_WIDTH,m=Math.floor((t||.5)*f),H=Math.floor(.5*f);return m=this._disableSash?H:m||H,f>r.MINIMUM_EDITOR_WIDTH*2?(m<r.MINIMUM_EDITOR_WIDTH&&(m=r.MINIMUM_EDITOR_WIDTH),m>f-r.MINIMUM_EDITOR_WIDTH&&(m=f-r.MINIMUM_EDITOR_WIDTH)):m=H,this._sashPosition!==m&&(this._sashPosition=m,this._sash.layout()),this._sashPosition},r.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},r.prototype.onSashDrag=function(t){var a=this._dataSource.getWidth(),f=a-Go.ENTIRE_DIFF_OVERVIEW_WIDTH,m=this.layout((this._startSashPosition+(t.currentX-t.startX))/f);this._sashRatio=m/f,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(t){return 0},r.prototype.getVerticalSashLeft=function(t){return this._sashPosition},r.prototype.getVerticalSashHeight=function(t){return this._dataSource.getHeight()},r.prototype._getViewZones=function(t,a,f,m,H){var Ce=new Yo(t,a,m.getOption(49),f,H.getOption(49));return Ce.getViewZones()},r.prototype._getOriginalEditorDecorations=function(t,a,f,m,H){for(var Ce=String(this._removeColor),Te={decorations:[],overviewZones:[]},Pe=m.getModel(),ot=0,dt=t.length;ot<dt;ot++){var Ct=t[ot];if(Dr(Ct)&&(Te.decorations.push({range:new G.a(Ct.originalStartLineNumber,1,Ct.originalEndLineNumber,1073741824),options:f?Zi.lineDeleteWithSign:Zi.lineDelete}),(!$r(Ct)||!Ct.charChanges)&&Te.decorations.push(Nr(Ct.originalStartLineNumber,1,Ct.originalEndLineNumber,1073741824,Zi.charDeleteWholeLine)),Te.overviewZones.push(new ao.a(Ct.originalStartLineNumber,Ct.originalEndLineNumber,Ce)),Ct.charChanges))for(var vt=0,Qt=Ct.charChanges.length;vt<Qt;vt++){var Kt=Ct.charChanges[vt];if(Dr(Kt))if(a)for(var jt=Kt.originalStartLineNumber;jt<=Kt.originalEndLineNumber;jt++){var kt=void 0,rn=void 0;jt===Kt.originalStartLineNumber?kt=Kt.originalStartColumn:kt=Pe.getLineFirstNonWhitespaceColumn(jt),jt===Kt.originalEndLineNumber?rn=Kt.originalEndColumn:rn=Pe.getLineLastNonWhitespaceColumn(jt),Te.decorations.push(Nr(jt,kt,jt,rn,Zi.charDelete))}else Te.decorations.push(Nr(Kt.originalStartLineNumber,Kt.originalStartColumn,Kt.originalEndLineNumber,Kt.originalEndColumn,Zi.charDelete))}}return Te},r.prototype._getModifiedEditorDecorations=function(t,a,f,m,H){for(var Ce=String(this._insertColor),Te={decorations:[],overviewZones:[]},Pe=H.getModel(),ot=0,dt=t.length;ot<dt;ot++){var Ct=t[ot];if($r(Ct)&&(Te.decorations.push({range:new G.a(Ct.modifiedStartLineNumber,1,Ct.modifiedEndLineNumber,1073741824),options:f?Zi.lineInsertWithSign:Zi.lineInsert}),(!Dr(Ct)||!Ct.charChanges)&&Te.decorations.push(Nr(Ct.modifiedStartLineNumber,1,Ct.modifiedEndLineNumber,1073741824,Zi.charInsertWholeLine)),Te.overviewZones.push(new ao.a(Ct.modifiedStartLineNumber,Ct.modifiedEndLineNumber,Ce)),Ct.charChanges))for(var vt=0,Qt=Ct.charChanges.length;vt<Qt;vt++){var Kt=Ct.charChanges[vt];if($r(Kt))if(a)for(var jt=Kt.modifiedStartLineNumber;jt<=Kt.modifiedEndLineNumber;jt++){var kt=void 0,rn=void 0;jt===Kt.modifiedStartLineNumber?kt=Kt.modifiedStartColumn:kt=Pe.getLineFirstNonWhitespaceColumn(jt),jt===Kt.modifiedEndLineNumber?rn=Kt.modifiedEndColumn:rn=Pe.getLineLastNonWhitespaceColumn(jt),Te.decorations.push(Nr(jt,kt,jt,rn,Zi.charInsert))}else Te.decorations.push(Nr(Kt.modifiedStartLineNumber,Kt.modifiedStartColumn,Kt.modifiedEndLineNumber,Kt.modifiedEndColumn,Zi.charInsert))}}return Te},r.MINIMUM_EDITOR_WIDTH=100,r}(Vr),Yo=function(s){Or(r,s);function r(t,a,f,m,H){return s.call(this,t,a,f,m,H)||this}return r.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},r.prototype._produceOriginalFromDiff=function(t,a,f){return f>a?{afterLineNumber:Math.max(t.originalStartLineNumber,t.originalEndLineNumber),heightInLines:f-a,domNode:null}:null},r.prototype._produceModifiedFromDiff=function(t,a,f){return a>f?{afterLineNumber:Math.max(t.modifiedStartLineNumber,t.modifiedEndLineNumber),heightInLines:a-f,domNode:null}:null},r}(Xr),Ir=function(s){Or(r,s);function r(t,a){var f=s.call(this,t)||this;return f.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,f._register(t.getOriginalEditor().onDidLayoutChange(function(m){f.decorationsLeft!==m.decorationsLeft&&(f.decorationsLeft=m.decorationsLeft,t.relayoutEditors())})),f}return r.prototype.setEnableSplitViewResizing=function(t){},r.prototype._getViewZones=function(t,a,f,m,H,Ce){var Te=new Zo(t,a,f,m,H,Ce);return Te.getViewZones()},r.prototype._getOriginalEditorDecorations=function(t,a,f,m,H){for(var Ce=String(this._removeColor),Te={decorations:[],overviewZones:[]},Pe=0,ot=t.length;Pe<ot;Pe++){var dt=t[Pe];Dr(dt)&&(Te.decorations.push({range:new G.a(dt.originalStartLineNumber,1,dt.originalEndLineNumber,1073741824),options:Zi.lineDeleteMargin}),Te.overviewZones.push(new ao.a(dt.originalStartLineNumber,dt.originalEndLineNumber,Ce)))}return Te},r.prototype._getModifiedEditorDecorations=function(t,a,f,m,H){for(var Ce=String(this._insertColor),Te={decorations:[],overviewZones:[]},Pe=H.getModel(),ot=0,dt=t.length;ot<dt;ot++){var Ct=t[ot];if($r(Ct))if(Te.decorations.push({range:new G.a(Ct.modifiedStartLineNumber,1,Ct.modifiedEndLineNumber,1073741824),options:f?Zi.lineInsertWithSign:Zi.lineInsert}),Te.overviewZones.push(new ao.a(Ct.modifiedStartLineNumber,Ct.modifiedEndLineNumber,Ce)),Ct.charChanges)for(var vt=0,Qt=Ct.charChanges.length;vt<Qt;vt++){var Kt=Ct.charChanges[vt];if($r(Kt))if(a)for(var jt=Kt.modifiedStartLineNumber;jt<=Kt.modifiedEndLineNumber;jt++){var kt=void 0,rn=void 0;jt===Kt.modifiedStartLineNumber?kt=Kt.modifiedStartColumn:kt=Pe.getLineFirstNonWhitespaceColumn(jt),jt===Kt.modifiedEndLineNumber?rn=Kt.modifiedEndColumn:rn=Pe.getLineLastNonWhitespaceColumn(jt),Te.decorations.push(Nr(jt,kt,jt,rn,Zi.charInsert))}else Te.decorations.push(Nr(Kt.modifiedStartLineNumber,Kt.modifiedStartColumn,Kt.modifiedEndLineNumber,Kt.modifiedEndColumn,Zi.charInsert))}else Te.decorations.push(Nr(Ct.modifiedStartLineNumber,1,Ct.modifiedEndLineNumber,1073741824,Zi.charInsertWholeLine))}return Te},r.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},r}(Vr),Zo=function(s){Or(r,s);function r(t,a,f,m,H,Ce){var Te=s.call(this,t,a,m.getOption(49),f,H.getOption(49))||this;return Te.originalModel=m.getModel(),Te.modifiedEditorOptions=H.getOptions(),Te.modifiedEditorTabSize=H.getModel().getOptions().tabSize,Te.renderIndicators=Ce,Te}return r.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var t=document.createElement("div");return t.className="inline-added-margin-view-zone",t},r.prototype._produceOriginalFromDiff=function(t,a,f){var m=document.createElement("div");return m.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(t.originalStartLineNumber,t.originalEndLineNumber),heightInLines:f,domNode:document.createElement("div"),marginDomNode:m}},r.prototype._produceModifiedFromDiff=function(t,a,f){var m=[];if(t.charChanges)for(var H=0,Ce=t.charChanges.length;H<Ce;H++){var Te=t.charChanges[H];Dr(Te)&&m.push(new Je.a(new G.a(Te.originalStartLineNumber,Te.originalStartColumn,Te.originalEndLineNumber,Te.originalEndColumn),"char-delete",0))}for(var Pe=Object(ms.a)(1e4),ot=[],dt=this.modifiedEditorOptions.get(107),Ct=this.modifiedEditorOptions.get(34),vt=dt.decorationsWidth,Qt=this.modifiedEditorOptions.get(49),Kt=Ct.typicalHalfwidthCharacterWidth,jt=0,kt=[],rn=t.originalStartLineNumber;rn<=t.originalEndLineNumber;rn++)if(jt=Math.max(jt,this._renderOriginalLine(rn-t.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,rn,m,Pe)),kt.push(this.originalModel.getLineContent(rn)),this.renderIndicators){var cn=rn-t.originalStartLineNumber;ot=ot.concat(['<div class="delete-sign codicon codicon-remove" style="position:absolute;top:'+cn*Qt+"px;width:"+vt+"px;height:"+Qt+'px;right:0;"></div>'])}jt+=this.modifiedEditorOptions.get(79);var En=document.createElement("div");En.className="view-lines line-delete",En.innerHTML=Pe.build(),si.a.applyFontInfoSlow(En,Ct);var _n=document.createElement("div");return _n.className="inline-deleted-margin-view-zone",_n.innerHTML=ot.join(""),si.a.applyFontInfoSlow(_n,Ct),{shouldNotShrink:!0,afterLineNumber:t.modifiedEndLineNumber===0?t.modifiedStartLineNumber:t.modifiedStartLineNumber-1,heightInLines:a,minWidthInPx:jt*Kt,domNode:En,marginDomNode:_n,diff:{originalStartLineNumber:t.originalStartLineNumber,originalEndLineNumber:t.originalEndLineNumber,modifiedStartLineNumber:t.modifiedStartLineNumber,modifiedEndLineNumber:t.modifiedEndLineNumber,originalContent:kt}}},r.prototype._renderOriginalLine=function(t,a,f,m,H,Ce,Te){var Pe=a.getLineTokens(H),ot=Pe.getLineContent(),dt=f.get(34),Ct=js.a.filter(Ce,H,1,ot.length+1);Te.appendASCIIString('<div class="view-line'),Ce.length===0&&Te.appendASCIIString(" char-delete"),Te.appendASCIIString('" style="top:'),Te.appendASCIIString(String(t*f.get(49))),Te.appendASCIIString('px;width:1000000px;">');var vt=Je.d.isBasicASCII(ot,a.mightContainNonBasicASCII()),Qt=Je.d.containsRTL(ot,vt,a.mightContainRTL()),Kt=Object(it.d)(new it.c(dt.isMonospace&&!f.get(23),dt.canUseHalfwidthRightwardsArrow,ot,!1,vt,Qt,0,Pe,Ct,m,0,dt.spaceWidth,dt.middotWidth,f.get(88),f.get(74),f.get(69),f.get(35)!==R.d.OFF,null),Te);Te.appendASCIIString("</div>");var jt=Kt.characterMapping.getAbsoluteOffsets();return jt.length>0?jt[jt.length-1]:0},r}(Xr);function $r(s){return s.modifiedEndLineNumber>0}function Dr(s){return s.originalEndLineNumber>0}function Xo(){var s=document.createElement("div");return s.className="diagonal-fill",s}Object(Wi.e)(function(s,r){var t=s.getColor(Ei.j);t&&(r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+t+"; }"),r.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+t+"; }"),r.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+t+"; }"));var a=s.getColor(Ei.l);a&&(r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+a+"; }"),r.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+a+"; }"),r.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+a+"; }"));var f=s.getColor(Ei.k);f&&r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(s.type==="hc"?"dashed":"solid")+" "+f+"; }");var m=s.getColor(Ei.m);m&&r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(s.type==="hc"?"dashed":"solid")+" "+m+"; }");var H=s.getColor(Ei.Tb);H&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+H+"; }");var Ce=s.getColor(Ei.i);Ce&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+Ce+"; }")});var Jr=o("9Y+e"),lo=Object(Zt.c)("themeService"),gr=o("fjLI"),Si=o("bexQ"),Xi=o("R3nR"),mr=o("9XeP"),bo=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),_o=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},ai=function(s,r){return function(t,a){r(t,a,s)}},So=function(){for(var s=0,r=0,t=arguments.length;r<t;r++)s+=arguments[r].length;for(var a=Array(s),f=0,r=0;r<t;r++)for(var m=arguments[r],H=0,Ce=m.length;H<Ce;H++,f++)a[f]=m[H];return a},qr=0,xo=!1;function Tr(){xo||(xo=!0,vs.b(document.body))}var Ro=function(s){bo(r,s);function r(t,a,f,m,H,Ce,Te,Pe,ot,dt){var Ct=this;return a=a||{},a.ariaLabel=a.ariaLabel||Yr.editorViewAccessibleLabel,a.ariaLabel=a.ariaLabel+";"+(As.i?Yr.accessibilityHelpMessageIE:Yr.accessibilityHelpMessage),Ct=s.call(this,t,a,{},f,m,H,Ce,Pe,ot,dt)||this,Te instanceof yo?Ct._standaloneKeybindingService=Te:Ct._standaloneKeybindingService=null,Tr(),Ct}return r.prototype.addCommand=function(t,a,f){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var m="DYNAMIC_"+ ++qr,H=_i.a.deserialize(f);return this._standaloneKeybindingService.addDynamicKeybinding(m,t,a,H),m},r.prototype.createContextKey=function(t,a){return this._contextKeyService.createKey(t,a)},r.prototype.addAction=function(t){var a=this;if(typeof t.id!="string"||typeof t.label!="string"||typeof t.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"),zt.a.None;var f=t.id,m=t.label,H=_i.a.and(_i.a.equals("editorId",this.getId()),_i.a.deserialize(t.precondition)),Ce=t.keybindings,Te=_i.a.and(H,_i.a.deserialize(t.keybindingContext)),Pe=t.contextMenuGroupId||null,ot=t.contextMenuOrder||0,dt=function(En){for(var _n=[],Wn=1;Wn<arguments.length;Wn++)_n[Wn-1]=arguments[Wn];return Promise.resolve(t.run.apply(t,So([a],_n)))},Ct=new zt.b,vt=this.getId()+":"+f;if(Ct.add(Ee.a.registerCommand(vt,dt)),Pe){var Qt={command:{id:vt,title:m},when:H,group:Pe,order:ot};Ct.add(gr.c.appendMenuItem(7,Qt))}if(Array.isArray(Ce))for(var Kt=0,jt=Ce;Kt<jt.length;Kt++){var kt=jt[Kt];Ct.add(this._standaloneKeybindingService.addDynamicKeybinding(vt,kt,dt,Te))}var rn=new Jr.a(vt,m,m,H,dt,this._contextKeyService);return this._actions[f]=rn,Ct.add(Object(zt.h)(function(){delete a._actions[f]})),Ct},r=_o([ai(2,Zt.a),ai(3,Ke.a),ai(4,Ee.b),ai(5,_i.c),ai(6,Si.a),ai(7,Wi.c),ai(8,wr.a),ai(9,Xi.b)],r),r}(No.a),co=function(s){bo(r,s);function r(t,a,f,m,H,Ce,Te,Pe,ot,dt,Ct,vt,Qt){var Kt=this;cr(vt,a,!1);var jt=dt.registerEditorContainer(t);a=a||{},typeof a.theme=="string"&&dt.setTheme(a.theme);var kt=a.model;delete a.model,Kt=s.call(this,t,a,m,H,Ce,Te,Pe,dt,Ct,Qt)||this,Kt._contextViewService=ot,Kt._configurationService=vt,Kt._register(f),Kt._register(jt);var rn;if(typeof kt=="undefined"?(rn=self.monaco.editor.createModel(a.value||"",a.language||"text/plain"),Kt._ownsModel=!0):(rn=kt,Kt._ownsModel=!1),Kt._attachModel(rn),rn){var cn={oldModelUrl:null,newModelUrl:rn.uri};Kt._onDidChangeModel.fire(cn)}return Kt}return r.prototype.dispose=function(){s.prototype.dispose.call(this)},r.prototype.updateOptions=function(t){cr(this._configurationService,t,!1),s.prototype.updateOptions.call(this,t)},r.prototype._attachModel=function(t){s.prototype._attachModel.call(this,t),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},r.prototype._postDetachModelCleanup=function(t){s.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},r=_o([ai(3,Zt.a),ai(4,Ke.a),ai(5,Ee.b),ai(6,_i.c),ai(7,Si.a),ai(8,_r.b),ai(9,lo),ai(10,wr.a),ai(11,Ti.a),ai(12,Xi.b)],r),r}(Ro),Ao=function(s){bo(r,s);function r(t,a,f,m,H,Ce,Te,Pe,ot,dt,Ct,vt,Qt,Kt,jt){var kt=this;cr(vt,a,!0);var rn=dt.registerEditorContainer(t);return a=a||{},typeof a.theme=="string"&&(a.theme=dt.setTheme(a.theme)),kt=s.call(this,t,a,jt,Pe,H,m,ot,dt,Ct,Qt,Kt)||this,kt._contextViewService=Te,kt._configurationService=vt,kt._register(f),kt._register(rn),kt._contextViewService.setContainer(kt._containerDomElement),kt}return r.prototype.dispose=function(){s.prototype.dispose.call(this)},r.prototype.updateOptions=function(t){cr(this._configurationService,t,!0),s.prototype.updateOptions.call(this,t)},r.prototype._createInnerEditor=function(t,a,f){return t.createInstance(Ro,a,f)},r.prototype.getOriginalEditor=function(){return s.prototype.getOriginalEditor.call(this)},r.prototype.getModifiedEditor=function(){return s.prototype.getModifiedEditor.call(this)},r.prototype.addCommand=function(t,a,f){return this.getModifiedEditor().addCommand(t,a,f)},r.prototype.createContextKey=function(t,a){return this.getModifiedEditor().createContextKey(t,a)},r.prototype.addAction=function(t){return this.getModifiedEditor().addAction(t)},r=_o([ai(3,Zt.a),ai(4,_i.c),ai(5,Si.a),ai(6,_r.b),ai(7,Ot.a),ai(8,Ke.a),ai(9,lo),ai(10,wr.a),ai(11,Ti.a),ai(12,_r.a),ai(13,Co.a),ai(14,Object(Zt.d)(mr.a))],r),r}(Go),Qo=o("x/UI"),_s=o("WBhO"),Ss=function(){function s(r){this._languageIdentifier=r}return s.prototype.getId=function(){return this._languageIdentifier.language},s}(),$o=o("MrjW"),ws=o("l2gE"),Jo="text/plain",Fo="application/unknown",fo=[],Wo=[],qo=[];function O(s,r){r===void 0&&(r=!1);var t=n(s);fo.push(t),t.userConfigured?qo.push(t):Wo.push(t),r&&!t.userConfigured&&fo.forEach(function(a){a.mime===t.mime||a.userConfigured||(t.extension&&a.extension===t.extension&&console.warn("Overwriting extension <<"+t.extension+">> to now point to mime <<"+t.mime+">>"),t.filename&&a.filename===t.filename&&console.warn("Overwriting filename <<"+t.filename+">> to now point to mime <<"+t.mime+">>"),t.filepattern&&a.filepattern===t.filepattern&&console.warn("Overwriting filepattern <<"+t.filepattern+">> to now point to mime <<"+t.mime+">>"),t.firstline&&a.firstline===t.firstline&&console.warn("Overwriting firstline <<"+t.firstline+">> to now point to mime <<"+t.mime+">>"))})}function n(s){return{id:s.id,mime:s.mime,filename:s.filename,extension:s.extension,filepattern:s.filepattern,firstline:s.firstline,userConfigured:s.userConfigured,filenameLowercase:s.filename?s.filename.toLowerCase():void 0,extensionLowercase:s.extension?s.extension.toLowerCase():void 0,filepatternLowercase:s.filepattern?s.filepattern.toLowerCase():void 0,filepatternOnPath:s.filepattern?s.filepattern.indexOf($o.posix.sep)>=0:!1}}function e(s,r){var t;if(s)switch(s.scheme){case We.b.file:t=s.fsPath;break;case We.b.data:var a=Qe.a.parseMetaData(s);t=a.get(Qe.a.META_DATA_LABEL);break;default:t=s.path}if(!t)return[Fo];t=t.toLowerCase();var f=Object($o.basename)(t),m=i(t,f,qo);if(m)return[m,Jo];var H=i(t,f,Wo);if(H)return[H,Jo];if(r){var Ce=l(r);if(Ce)return[Ce,Jo]}return[Fo]}function i(s,r,t){for(var a=null,f=null,m=null,H=t.length-1;H>=0;H--){var Ce=t[H];if(r===Ce.filenameLowercase){a=Ce;break}if(Ce.filepattern&&(!f||Ce.filepattern.length>f.filepattern.length)){var Te=Ce.filepatternOnPath?s:r;Object(ws.a)(Ce.filepatternLowercase,Te)&&(f=Ce)}Ce.extension&&(!m||Ce.extension.length>m.extension.length)&&Object(Xn.m)(r,Ce.extensionLowercase)&&(m=Ce)}return a?a.mime:f?f.mime:m?m.mime:null}function l(s){if(Object(Xn.O)(s)&&(s=s.substr(1)),s.length>0)for(var r=fo.length-1;r>=0;r--){var t=fo[r];if(!!t.firstline){var a=s.match(t.firstline);if(a&&a.length>0)return t.mime}}return null}var c=o("MqQJ"),N=o("ic2d"),pe=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ue=Object.prototype.hasOwnProperty,ze=function(s){pe(r,s);function r(t,a){t===void 0&&(t=!0),a===void 0&&(a=!1);var f=s.call(this)||this;return f._onDidChange=f._register(new P.a),f.onDidChange=f._onDidChange.event,f._warnOnOverwrite=a,f._nextLanguageId2=1,f._languageIdToLanguage=[],f._languageToLanguageId=Object.create(null),f._languages={},f._mimeTypesMap={},f._nameMap={},f._lowercaseNameMap={},t&&(f._initializeFromRegistry(),f._register(c.a.onDidChangeLanguages(function(m){return f._initializeFromRegistry()}))),f}return r.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var t=c.a.getLanguages();this._registerLanguages(t)},r.prototype._registerLanguages=function(t){for(var a=this,f=0,m=t;f<m.length;f++){var H=m[f];this._registerLanguage(H)}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(function(Ce){var Te=a._languages[Ce];Te.name&&(a._nameMap[Te.name]=Te.identifier),Te.aliases.forEach(function(Pe){a._lowercaseNameMap[Pe.toLowerCase()]=Te.identifier}),Te.mimetypes.forEach(function(Pe){a._mimeTypesMap[Pe]=Te.identifier})}),N.a.as(is.a.Configuration).registerOverrideIdentifiers(c.a.getLanguages().map(function(Ce){return Ce.id})),this._onDidChange.fire()},r.prototype._getLanguageId=function(t){if(this._languageToLanguageId[t])return this._languageToLanguageId[t];var a=this._nextLanguageId2++;return this._languageIdToLanguage[a]=t,this._languageToLanguageId[t]=a,a},r.prototype._registerLanguage=function(t){var a=t.id,f;if(ue.call(this._languages,a))f=this._languages[a];else{var m=this._getLanguageId(a);f={identifier:new pt.q(a,m),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[a]=f}this._mergeLanguage(f,t)},r.prototype._mergeLanguage=function(t,a){var f,m=a.id,H=null;if(Array.isArray(a.mimetypes)&&a.mimetypes.length>0&&((f=t.mimetypes).push.apply(f,a.mimetypes),H=a.mimetypes[0]),H||(H="text/x-"+m,t.mimetypes.push(H)),Array.isArray(a.extensions))for(var Ce=0,Te=a.extensions;Ce<Te.length;Ce++){var Pe=Te[Ce];O({id:m,mime:H,extension:Pe},this._warnOnOverwrite),t.extensions.push(Pe)}if(Array.isArray(a.filenames))for(var ot=0,dt=a.filenames;ot<dt.length;ot++){var Ct=dt[ot];O({id:m,mime:H,filename:Ct},this._warnOnOverwrite),t.filenames.push(Ct)}if(Array.isArray(a.filenamePatterns))for(var vt=0,Qt=a.filenamePatterns;vt<Qt.length;vt++){var Kt=Qt[vt];O({id:m,mime:H,filepattern:Kt},this._warnOnOverwrite)}if(typeof a.firstLine=="string"&&a.firstLine.length>0){var jt=a.firstLine;jt.charAt(0)!=="^"&&(jt="^"+jt);try{var kt=new RegExp(jt);Xn.I(kt)||O({id:m,mime:H,firstline:kt},this._warnOnOverwrite)}catch(Bn){Object(nn.e)(Bn)}}t.aliases.push(m);var rn=null;if(typeof a.aliases!="undefined"&&Array.isArray(a.aliases)&&(a.aliases.length===0?rn=[null]:rn=a.aliases),rn!==null)for(var cn=0,En=rn;cn<En.length;cn++){var _n=En[cn];!_n||_n.length===0||t.aliases.push(_n)}var Wn=rn!==null&&rn.length>0;if(!(Wn&&rn[0]===null)){var jn=(Wn?rn[0]:null)||m;(Wn||!t.name)&&(t.name=jn)}a.configuration&&t.configurationFiles.push(a.configuration)},r.prototype.isRegisteredMode=function(t){return ue.call(this._mimeTypesMap,t)?!0:ue.call(this._languages,t)},r.prototype.getModeIdForLanguageNameLowercase=function(t){return ue.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t].language:null},r.prototype.extractModeIds=function(t){var a=this;return t?t.split(",").map(function(f){return f.trim()}).map(function(f){return ue.call(a._mimeTypesMap,f)?a._mimeTypesMap[f].language:f}).filter(function(f){return ue.call(a._languages,f)}):[]},r.prototype.getLanguageIdentifier=function(t){if(t===Dt.b||t===0)return Dt.a;var a;if(typeof t=="string")a=t;else if(a=this._languageIdToLanguage[t],!a)return null;return ue.call(this._languages,a)?this._languages[a].identifier:null},r.prototype.getModeIdsFromFilepathOrFirstLine=function(t,a){if(!t&&!a)return[];var f=e(t,a);return this.extractModeIds(f.join(","))},r}(zt.a),st=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ft=function(s){st(r,s);function r(t,a){var f=s.call(this)||this;return f._onDidChange=f._register(new P.a),f.onDidChange=f._onDidChange.event,f._selector=a,f.languageIdentifier=f._selector(),f._register(t(function(){return f._evaluate()})),f}return r.prototype._evaluate=function(){var t=this._selector();t.id!==this.languageIdentifier.id&&(this.languageIdentifier=t,this._onDidChange.fire(this.languageIdentifier))},r}(zt.a),y=function(){function s(r){var t=this;r===void 0&&(r=!1),this._onDidCreateMode=new P.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new P.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new ze(!0,r),this._registry.onDidChange(function(){return t._onLanguagesMaybeChanged.fire()})}return s.prototype.isRegisteredMode=function(r){return this._registry.isRegisteredMode(r)},s.prototype.getModeIdForLanguageName=function(r){return this._registry.getModeIdForLanguageNameLowercase(r)},s.prototype.getModeIdByFilepathOrFirstLine=function(r,t){var a=this._registry.getModeIdsFromFilepathOrFirstLine(r,t);return Object(tn.l)(a,null)},s.prototype.getModeId=function(r){var t=this._registry.extractModeIds(r);return Object(tn.l)(t,null)},s.prototype.getLanguageIdentifier=function(r){return this._registry.getLanguageIdentifier(r)},s.prototype.create=function(r){var t=this;return new ft(this.onLanguagesMaybeChanged,function(){var a=t.getModeId(r);return t._createModeAndGetLanguageIdentifier(a)})},s.prototype.createByFilepathOrFirstLine=function(r,t){var a=this;return new ft(this.onLanguagesMaybeChanged,function(){var f=a.getModeIdByFilepathOrFirstLine(r,t);return a._createModeAndGetLanguageIdentifier(f)})},s.prototype._createModeAndGetLanguageIdentifier=function(r){var t=this.getLanguageIdentifier(r||"plaintext")||Dt.a;return this._getOrCreateMode(t.language),t},s.prototype.triggerMode=function(r){var t=this.getModeId(r);this._getOrCreateMode(t||"plaintext")},s.prototype._getOrCreateMode=function(r){if(!this._instantiatedModes.hasOwnProperty(r)){var t=this.getLanguageIdentifier(r)||Dt.a;this._instantiatedModes[r]=new Ss(t),this._onDidCreateMode.fire(this._instantiatedModes[r])}return this._instantiatedModes[r]},s}(),d=o("QRHv"),u=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),C=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},w=function(s,r){return function(t,a){r(t,a,s)}};function b(s){return s.toString()}var Q=function(){function s(r,t,a){this._modelEventListeners=new zt.b,this.model=r,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(r.onWillDispose(function(){return t(r)})),this._modelEventListeners.add(r.onDidChangeLanguage(function(f){return a(r,f)}))}return s.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},s.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},s.prototype.setLanguage=function(r){var t=this;this._disposeLanguageSelection(),this._languageSelection=r,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return t.model.setMode(r.languageIdentifier)}),this.model.setMode(r.languageIdentifier)},s}(),ke=sn.d||sn.e?1:2,rt=function(s){u(r,s);function r(t,a,f,m){var H=s.call(this)||this;return H._onModelAdded=H._register(new P.a),H.onModelAdded=H._onModelAdded.event,H._onModelRemoved=H._register(new P.a),H.onModelRemoved=H._onModelRemoved.event,H._onModelModeChanged=H._register(new P.a),H.onModelModeChanged=H._onModelModeChanged.event,H._configurationService=t,H._resourcePropertiesService=a,H._models={},H._modelCreationOptionsByLanguageAndResource=Object.create(null),H._configurationServiceSubscription=H._configurationService.onDidChangeConfiguration(function(Ce){return H._updateModelOptions()}),H._updateModelOptions(),H._register(new Ie(H,f,t,m)),H}return r._readModelOptions=function(t,a){var f=R.c.tabSize;if(t.editor&&typeof t.editor.tabSize!="undefined"){var m=parseInt(t.editor.tabSize,10);isNaN(m)||(f=m),f<1&&(f=1)}var H=f;if(t.editor&&typeof t.editor.indentSize!="undefined"&&t.editor.indentSize!=="tabSize"){var Ce=parseInt(t.editor.indentSize,10);isNaN(Ce)||(H=Ce),H<1&&(H=1)}var Te=R.c.insertSpaces;t.editor&&typeof t.editor.insertSpaces!="undefined"&&(Te=t.editor.insertSpaces==="false"?!1:Boolean(t.editor.insertSpaces));var Pe=ke,ot=t.eol;ot===`\r
`?Pe=2:ot===`
`&&(Pe=1);var dt=R.c.trimAutoWhitespace;t.editor&&typeof t.editor.trimAutoWhitespace!="undefined"&&(dt=t.editor.trimAutoWhitespace==="false"?!1:Boolean(t.editor.trimAutoWhitespace));var Ct=R.c.detectIndentation;t.editor&&typeof t.editor.detectIndentation!="undefined"&&(Ct=t.editor.detectIndentation==="false"?!1:Boolean(t.editor.detectIndentation));var vt=R.c.largeFileOptimizations;return t.editor&&typeof t.editor.largeFileOptimizations!="undefined"&&(vt=t.editor.largeFileOptimizations==="false"?!1:Boolean(t.editor.largeFileOptimizations)),{isForSimpleWidget:a,tabSize:f,indentSize:H,insertSpaces:Te,detectIndentation:Ct,defaultEOL:Pe,trimAutoWhitespace:dt,largeFileOptimizations:vt}},r.prototype.getCreationOptions=function(t,a,f){var m=this._modelCreationOptionsByLanguageAndResource[t+a];if(!m){var H=this._configurationService.getValue("editor",{overrideIdentifier:t,resource:a}),Ce=this._resourcePropertiesService.getEOL(a,t);m=r._readModelOptions({editor:H,eol:Ce},f),this._modelCreationOptionsByLanguageAndResource[t+a]=m}return m},r.prototype._updateModelOptions=function(){var t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var a=Object.keys(this._models),f=0,m=a.length;f<m;f++){var H=a[f],Ce=this._models[H],Te=Ce.model.getLanguageIdentifier().language,Pe=Ce.model.uri,ot=t[Te+Pe],dt=this.getCreationOptions(Te,Pe,Ce.model.isForSimpleWidget);r._setModelOptionsForModel(Ce.model,dt,ot)}},r._setModelOptionsForModel=function(t,a,f){f&&f.defaultEOL!==a.defaultEOL&&t.getLineCount()===1&&t.setEOL(a.defaultEOL===1?0:1),!(f&&f.detectIndentation===a.detectIndentation&&f.insertSpaces===a.insertSpaces&&f.tabSize===a.tabSize&&f.indentSize===a.indentSize&&f.trimAutoWhitespace===a.trimAutoWhitespace)&&(a.detectIndentation?(t.detectIndentation(a.insertSpaces,a.tabSize),t.updateOptions({trimAutoWhitespace:a.trimAutoWhitespace})):t.updateOptions({insertSpaces:a.insertSpaces,tabSize:a.tabSize,indentSize:a.indentSize,trimAutoWhitespace:a.trimAutoWhitespace}))},r.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),s.prototype.dispose.call(this)},r.prototype._createModelData=function(t,a,f,m){var H=this,Ce=this.getCreationOptions(a.language,f,m),Te=new fr.b(t,Ce,a,f),Pe=b(Te.uri);if(this._models[Pe])throw new Error("ModelService: Cannot add model because it already exists!");var ot=new Q(Te,function(dt){return H._onWillDispose(dt)},function(dt,Ct){return H._onDidChangeLanguage(dt,Ct)});return this._models[Pe]=ot,ot},r.prototype.createModel=function(t,a,f,m){m===void 0&&(m=!1);var H;return a?(H=this._createModelData(t,a.languageIdentifier,f,m),this.setMode(H.model,a)):H=this._createModelData(t,c.b,f,m),this._onModelAdded.fire(H.model),H.model},r.prototype.setMode=function(t,a){if(!!a){var f=this._models[b(t.uri)];!f||f.setLanguage(a)}},r.prototype.getModels=function(){for(var t=[],a=Object.keys(this._models),f=0,m=a.length;f<m;f++){var H=a[f];t.push(this._models[H].model)}return t},r.prototype.getModel=function(t){var a=b(t),f=this._models[a];return f?f.model:null},r.prototype._onWillDispose=function(t){var a=b(t.uri),f=this._models[a];delete this._models[a],f.dispose(),delete this._modelCreationOptionsByLanguageAndResource[t.getLanguageIdentifier().language+t.uri],this._onModelRemoved.fire(t)},r.prototype._onDidChangeLanguage=function(t,a){var f=a.oldLanguage,m=t.getLanguageIdentifier().language,H=this.getCreationOptions(f,t.uri,t.isForSimpleWidget),Ce=this.getCreationOptions(m,t.uri,t.isForSimpleWidget);r._setModelOptionsForModel(t,Ce,H),this._onModelModeChanged.fire({model:t,oldModeId:f})},r=C([w(0,Ti.a),w(1,ln),w(2,Wi.c),w(3,hn.a)],r),r}(zt.a),Ie=function(s){u(r,s);function r(t,a,f,m){var H=s.call(this)||this;H._configurationService=f,H._watchers=Object.create(null),H._semanticStyling=H._register(new lt(a,m));var Ce=function(dt){var Ct=f.getValue(r.SETTING_ID,{overrideIdentifier:dt.getLanguageIdentifier().language,resource:dt.uri});return Ct&&Ct.enabled},Te=function(dt){H._watchers[dt.uri.toString()]=new an(dt,a,H._semanticStyling)},Pe=function(dt,Ct){Ct.dispose(),delete H._watchers[dt.uri.toString()]};return H._register(t.onModelAdded(function(ot){Ce(ot)&&Te(ot)})),H._register(t.onModelRemoved(function(ot){var dt=H._watchers[ot.uri.toString()];dt&&Pe(ot,dt)})),H._configurationService.onDidChangeConfiguration(function(ot){if(ot.affectsConfiguration(r.SETTING_ID))for(var dt=0,Ct=t.getModels();dt<Ct.length;dt++){var vt=Ct[dt],Qt=H._watchers[vt.uri.toString()];Ce(vt)?Qt||Te(vt):Qt&&Pe(vt,Qt)}}),H}return r.SETTING_ID="editor.semanticHighlighting",r}(zt.a),lt=function(s){u(r,s);function r(t,a){var f=s.call(this)||this;return f._themeService=t,f._logService=a,f._caches=new WeakMap,f._themeService&&f._register(f._themeService.onThemeChange(function(){f._caches=new WeakMap})),f}return r.prototype.get=function(t){return this._caches.has(t)||this._caches.set(t,new en(t.getLegend(),this._themeService,this._logService)),this._caches.get(t)},r}(zt.a),Pt=function(){function s(r,t,a){this.tokenTypeIndex=r,this.tokenModifierSet=t,this.metadata=a,this.next=null}return s}(),qt=function(){function s(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=s._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<s._SIZES.length?2/3*this._currentLength:0),this._elements=[],s._nullOutEntries(this._elements,this._currentLength)}return s._nullOutEntries=function(r,t){for(var a=0;a<t;a++)r[a]=null},s.prototype._hashFunc=function(r,t){return((r<<5)-r+t|0)%this._currentLength},s.prototype.get=function(r,t){for(var a=this._hashFunc(r,t),f=this._elements[a];f;){if(f.tokenTypeIndex===r&&f.tokenModifierSet===t)return f;f=f.next}return null},s.prototype.add=function(r,t,a){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){var f=this._elements;this._currentLengthIndex++,this._currentLength=s._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<s._SIZES.length?2/3*this._currentLength:0),this._elements=[],s._nullOutEntries(this._elements,this._currentLength);for(var m=0,H=f;m<H.length;m++)for(var Ce=H[m],Te=Ce;Te;){var Pe=Te.next;Te.next=null,this._add(Te),Te=Pe}}this._add(new Pt(r,t,a))},s.prototype._add=function(r){var t=this._hashFunc(r.tokenTypeIndex,r.tokenModifierSet);r.next=this._elements[t],this._elements[t]=r},s._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],s}(),en=function(){function s(r,t,a){this._legend=r,this._themeService=t,this._logService=a,this._hashTable=new qt}return s.prototype.getMetadata=function(r,t){var a=this._hashTable.get(r,t),f;if(a)f=a.metadata;else{for(var m=this._legend.tokenTypes[r],H=[],Ce=t,Te=0;Ce>0&&Te<this._legend.tokenModifiers.length;Te++)Ce&1&&H.push(this._legend.tokenModifiers[Te]),Ce=Ce>>1;var Pe=this._themeService.getTheme().getTokenStyleMetadata(m,H);if(typeof Pe=="undefined")f=2147483647;else{if(f=0,typeof Pe.italic!="undefined"){var ot=(Pe.italic?1:0)<<11;f|=ot|1}if(typeof Pe.bold!="undefined"){var dt=(Pe.bold?2:0)<<11;f|=dt|2}if(typeof Pe.underline!="undefined"){var Ct=(Pe.underline?4:0)<<11;f|=Ct|4}if(Pe.foreground){var vt=Pe.foreground<<14;f|=vt|8}f===0&&(f=2147483647)}this._hashTable.add(r,t,f)}if(this._logService.getLevel()===hn.b.Trace){var Qt=this._legend.tokenTypes[r],Kt=t?" "+this._legend.tokenModifiers.filter(function(jt,kt){return t&1<<kt}).join(" "):"";this._logService.trace("tokenStyleMetadata "+(a?"[CACHED] ":"")+Qt+Kt+": foreground "+pt.x.getForeground(f)+", fontStyle "+pt.x.getFontStyle(f).toString(2))}return f},s}(),dn=function(){function s(r,t,a){this._provider=r,this.resultId=t,this.data=a}return s.prototype.dispose=function(){this._provider.releaseDocumentSemanticTokens(this.resultId)},s}(),an=function(s){u(r,s);function r(t,a,f){var m=s.call(this)||this;return m._isDisposed=!1,m._model=t,m._semanticStyling=f,m._fetchSemanticTokens=m._register(new Jt.d(function(){return m._fetchSemanticTokensNow()},300)),m._currentResponse=null,m._currentRequestCancellationTokenSource=null,m._register(m._model.onDidChangeContent(function(H){m._fetchSemanticTokens.isScheduled()||m._fetchSemanticTokens.schedule()})),m._register(pt.k.onDidChange(function(H){return m._fetchSemanticTokens.schedule()})),a&&m._register(a.onThemeChange(function(H){m._setSemanticTokens(null,null,null,[]),m._fetchSemanticTokens.schedule()})),m._fetchSemanticTokens.schedule(0),m}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,s.prototype.dispose.call(this)},r.prototype._fetchSemanticTokensNow=function(){var t=this;if(!this._currentRequestCancellationTokenSource){var a=this._getSemanticColoringProvider();if(!!a){this._currentRequestCancellationTokenSource=new ne.b;var f=[],m=this._model.onDidChangeContent(function(Pe){f.push(Pe)}),H=this._semanticStyling.get(a),Ce=this._currentResponse&&this._currentResponse.resultId||null,Te=Promise.resolve(a.provideDocumentSemanticTokens(this._model,Ce,this._currentRequestCancellationTokenSource.token));Te.then(function(Pe){t._currentRequestCancellationTokenSource=null,m.dispose(),t._setSemanticTokens(a,Pe||null,H,f)},function(Pe){(!Pe||typeof Pe.message!="string"||Pe.message.indexOf("busy")===-1)&&nn.e(Pe),t._currentRequestCancellationTokenSource=null,m.dispose(),f.length>0&&(t._fetchSemanticTokens.isScheduled()||t._fetchSemanticTokens.schedule())})}}},r._isSemanticTokens=function(t){return t&&!!t.data},r._isSemanticTokensEdits=function(t){return t&&Array.isArray(t.edits)},r._copy=function(t,a,f,m,H){for(var Ce=0;Ce<H;Ce++)f[m+Ce]=t[a+Ce]},r.prototype._setSemanticTokens=function(t,a,f,m){var H=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed){t&&a&&t.releaseDocumentSemanticTokens(a.resultId);return}if(!t||!a||!f){this._model.setSemanticTokens(null);return}if(r._isSemanticTokensEdits(a)){if(!H){this._model.setSemanticTokens(null);return}if(a.edits.length===0)a={resultId:a.resultId,data:H.data};else{for(var Ce=0,Te=0,Pe=a.edits;Te<Pe.length;Te++){var ot=Pe[Te];Ce+=(ot.data?ot.data.length:0)-ot.deleteCount}for(var dt=H.data,Ct=new Uint32Array(dt.length+Ce),vt=dt.length,Qt=Ct.length,Kt=a.edits.length-1;Kt>=0;Kt--){var ot=a.edits[Kt],jt=vt-(ot.start+ot.deleteCount);jt>0&&(r._copy(dt,vt-jt,Ct,Qt-jt,jt),Qt-=jt),ot.data&&(r._copy(ot.data,0,Ct,Qt-ot.data.length,ot.data.length),Qt-=ot.data.length),vt=ot.start}vt>0&&r._copy(dt,0,Ct,0,vt),a={resultId:a.resultId,data:Ct}}}if(r._isSemanticTokens(a)){this._currentResponse=new dn(t,a.resultId,a.data);for(var dt=a.data,kt=a.data.length/5|0,rn=Math.max(Math.ceil(kt/1024),400),cn=[],En=0,_n=1,Wn=0;En<kt;){var jn=En,Bn=Math.min(jn+rn,kt);if(Bn<kt){for(var ei=Bn;ei-1>jn&&dt[5*ei]===0;)ei--;if(ei-1===jn){for(var zn=Bn;zn+1<kt&&dt[5*zn]===0;)zn++;Bn=zn}else Bn=ei}for(var Ct=new Uint32Array((Bn-jn)*4),mn=0,ni=0;En<Bn;){var Qn=5*En,gi=dt[Qn],Ii=dt[Qn+1],Lr=_n+gi,yr=gi===0?Wn+Ii:Ii,xr=dt[Qn+2],wo=dt[Qn+3],Ds=dt[Qn+4],eu=f.getMetadata(wo,Ds);eu!==2147483647&&(ni===0&&(ni=Lr),Ct[mn]=Lr-ni,Ct[mn+1]=yr,Ct[mn+2]=yr+xr,Ct[mn+3]=eu,mn+=4),_n=Lr,Wn=yr,En++}mn!==Ct.length&&(Ct=Ct.subarray(0,mn));var Ld=new d.a(ni,new d.c(Ct));cn.push(Ld)}if(m.length>0){for(var Da=0,tu=m;Da<tu.length;Da++)for(var Md=tu[Da],La=0,nu=cn;La<nu.length;La++)for(var Nd=nu[La],Ma=0,iu=Md.changes;Ma<iu.length;Ma++){var ru=iu[Ma];Nd.applyEdit(ru.range,ru.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(cn);return}this._model.setSemanticTokens(null)},r.prototype._getSemanticColoringProvider=function(){var t=pt.k.ordered(this._model);return t.length>0?t[0]:null},r}(zt.a),bn=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Rn=function(s){bn(r,s);function r(){var t=s.call(this)||this;return t._onCodeEditorAdd=t._register(new P.a),t.onCodeEditorAdd=t._onCodeEditorAdd.event,t._onCodeEditorRemove=t._register(new P.a),t.onCodeEditorRemove=t._onCodeEditorRemove.event,t._onDiffEditorAdd=t._register(new P.a),t._onDiffEditorRemove=t._register(new P.a),t._codeEditors=Object.create(null),t._diffEditors=Object.create(null),t}return r.prototype.addCodeEditor=function(t){this._codeEditors[t.getId()]=t,this._onCodeEditorAdd.fire(t)},r.prototype.removeCodeEditor=function(t){delete this._codeEditors[t.getId()]&&this._onCodeEditorRemove.fire(t)},r.prototype.listCodeEditors=function(){var t=this;return Object.keys(this._codeEditors).map(function(a){return t._codeEditors[a]})},r.prototype.addDiffEditor=function(t){this._diffEditors[t.getId()]=t,this._onDiffEditorAdd.fire(t)},r.prototype.removeDiffEditor=function(t){delete this._diffEditors[t.getId()]&&this._onDiffEditorRemove.fire(t)},r.prototype.listDiffEditors=function(){var t=this;return Object.keys(this._diffEditors).map(function(a){return t._diffEditors[a]})},r.prototype.getFocusedCodeEditor=function(){for(var t=null,a=this.listCodeEditors(),f=0,m=a;f<m.length;f++){var H=m[f];if(H.hasTextFocus())return H;H.hasWidgetFocus()&&(t=H)}return t},r}(zt.a),Pn=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ti=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},Dn=function(s,r){return function(t,a){r(t,a,s)}},li=function(){function s(r,t,a){this._parent=r,this._editorId=t,this.styleSheet=a,this._refCount=0}return s.prototype.ref=function(){this._refCount++},s.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))},s}(),qn=function(){function s(r){this.styleSheet=r}return s.prototype.ref=function(){},s.prototype.unref=function(){},s}(),xi=function(s){Pn(r,s);function r(t,a){a===void 0&&(a=null);var f=s.call(this)||this;return f._decorationOptionProviders=new Map,f._editorStyleSheets=new Map,f._globalStyleSheet=a?new qn(a):null,f._themeService=t,f}return r.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new qn(Ye.v())),this._globalStyleSheet},r.prototype._getOrCreateStyleSheet=function(t){if(!t)return this._getOrCreateGlobalStyleSheet();var a=t.getContainerDomNode();if(!Ye.M(a))return this._getOrCreateGlobalStyleSheet();var f=t.getId();if(!this._editorStyleSheets.has(f)){var m=new li(this,f,Ye.v(a));this._editorStyleSheets.set(f,m)}return this._editorStyleSheets.get(f)},r.prototype._removeEditorStyleSheets=function(t){this._editorStyleSheets.delete(t)},r.prototype.registerDecorationType=function(t,a,f,m){var H=this._decorationOptionProviders.get(t);if(!H){var Ce=this._getOrCreateStyleSheet(m),Te={styleSheet:Ce.styleSheet,key:t,parentTypeKey:f,options:a||Object.create(null)};f?H=new ui(this._themeService,Ce,Te):H=new pr(this._themeService,Ce,Te),this._decorationOptionProviders.set(t,H)}H.refCount++},r.prototype.removeDecorationType=function(t){var a=this._decorationOptionProviders.get(t);a&&(a.refCount--,a.refCount<=0&&(this._decorationOptionProviders.delete(t),a.dispose(),this.listCodeEditors().forEach(function(f){return f.removeDecorations(t)})))},r.prototype.resolveDecorationOptions=function(t,a){var f=this._decorationOptionProviders.get(t);if(!f)throw new Error("Unknown decoration type key: "+t);return f.getOptions(this,a)},r=ti([Dn(0,Wi.c)],r),r}(Rn),ui=function(){function s(r,t,a){this._styleSheet=t,this._styleSheet.ref(),this._parentTypeKey=a.parentTypeKey,this.refCount=0,this._beforeContentRules=new di(3,a,r),this._afterContentRules=new di(4,a,r)}return s.prototype.getOptions=function(r,t){var a=r.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(a.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(a.afterContentClassName=this._afterContentRules.className),a},s.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},s}(),pr=function(){function s(r,t,a){var f=this;this._disposables=new zt.b,this._styleSheet=t,this._styleSheet.ref(),this.refCount=0;var m=function(Ct){var vt=new di(Ct,a,r);if(f._disposables.add(vt),vt.hasContent)return vt.className},H=function(Ct){var vt=new di(Ct,a,r);return f._disposables.add(vt),vt.hasContent?{className:vt.className,hasLetterSpacing:vt.hasLetterSpacing}:null};this.className=m(0);var Ce=H(1);Ce&&(this.inlineClassName=Ce.className,this.inlineClassNameAffectsLetterSpacing=Ce.hasLetterSpacing),this.beforeContentClassName=m(3),this.afterContentClassName=m(4),this.glyphMarginClassName=m(2);var Te=a.options;this.isWholeLine=Boolean(Te.isWholeLine),this.stickiness=Te.rangeBehavior;var Pe=Te.light&&Te.light.overviewRulerColor||Te.overviewRulerColor,ot=Te.dark&&Te.dark.overviewRulerColor||Te.overviewRulerColor;(typeof Pe!="undefined"||typeof ot!="undefined")&&(this.overviewRuler={color:Pe||ot,darkColor:ot||Pe,position:Te.overviewRulerLane||gt.d.Center})}return s.prototype.getOptions=function(r,t){return t?{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},s.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},s}(),Oi={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};"},di=function(){function s(r,t,a){var f=this;this._theme=a.getTheme(),this._ruleType=r,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var m=zi.getClassName(this._providerArgs.key,r);this._providerArgs.parentTypeKey&&(m=m+" "+zi.getClassName(this._providerArgs.parentTypeKey,r)),this._className=m,this._unThemedSelector=zi.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,r),this._buildCSS(),this._usesThemeColors?this._themeListener=a.onThemeChange(function(H){f._theme=a.getTheme(),f._removeCSS(),f._buildCSS()}):this._themeListener=null}return s.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(s.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),s.prototype._buildCSS=function(){var r=this._providerArgs.options,t,a,f;switch(this._ruleType){case 0:t=this.getCSSTextForModelDecorationClassName(r),a=this.getCSSTextForModelDecorationClassName(r.light),f=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:t=this.getCSSTextForModelDecorationInlineClassName(r),a=this.getCSSTextForModelDecorationInlineClassName(r.light),f=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:t=this.getCSSTextForModelDecorationGlyphMarginClassName(r),a=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),f=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:t=this.getCSSTextForModelDecorationContentClassName(r.before),a=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),f=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:t=this.getCSSTextForModelDecorationContentClassName(r.after),a=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),f=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var m=this._providerArgs.styleSheet.sheet,H=!1;t.length>0&&(m.insertRule(this._unThemedSelector+" {"+t+"}",0),H=!0),a.length>0&&(m.insertRule(".vs"+this._unThemedSelector+" {"+a+"}",0),H=!0),f.length>0&&(m.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+f+"}",0),H=!0),this._hasContent=H},s.prototype._removeCSS=function(){Ye.N(this._unThemedSelector,this._providerArgs.styleSheet)},s.prototype.getCSSTextForModelDecorationClassName=function(r){if(!r)return"";var t=[];return this.collectCSSText(r,["backgroundColor"],t),this.collectCSSText(r,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(r,t),t.join("")},s.prototype.getCSSTextForModelDecorationInlineClassName=function(r){if(!r)return"";var t=[];return this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),r.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},s.prototype.getCSSTextForModelDecorationContentClassName=function(r){if(!r)return"";var t=[];if(typeof r!="undefined"){if(this.collectBorderSettingsCSSText(r,t),typeof r.contentIconPath!="undefined"&&t.push(Xn.r(Oi.contentIconPath,Ye.q(V.a.revive(r.contentIconPath)))),typeof r.contentText=="string"){var a=r.contentText.match(/^.*$/m)[0],f=a.replace(/['\\]/g,"\\$&");t.push(Xn.r(Oi.contentText,f))}this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(r,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},s.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(r){if(!r)return"";var t=[];return typeof r.gutterIconPath!="undefined"&&(t.push(Xn.r(Oi.gutterIconPath,Ye.q(V.a.revive(r.gutterIconPath)))),typeof r.gutterIconSize!="undefined"&&t.push(Xn.r(Oi.gutterIconSize,r.gutterIconSize))),t.join("")},s.prototype.collectBorderSettingsCSSText=function(r,t){return this.collectCSSText(r,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)?(t.push(Xn.r("box-sizing: border-box;")),!0):!1},s.prototype.collectCSSText=function(r,t,a){for(var f=a.length,m=0,H=t;m<H.length;m++){var Ce=H[m],Te=this.resolveValue(r[Ce]);typeof Te=="string"&&a.push(Xn.r(Oi[Ce],Te))}return a.length!==f},s.prototype.resolveValue=function(r){if(Object(Ft.c)(r)){this._usesThemeColors=!0;var t=this._theme.getColor(r.id);return t?t.toString():"transparent"}return r},s}(),zi=function(){function s(){}return s.getClassName=function(r,t){return"ced-"+r+"-"+t},s.getSelector=function(r,t,a){var f=".monaco-editor ."+this.getClassName(r,a);return t&&(f=f+"."+this.getClassName(t,a)),a===3?f+="::before":a===4&&(f+="::after"),f},s}(),Qi=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),$i=function(s){Qi(r,s);function r(){return s!==null&&s.apply(this,arguments)||this}return r.prototype.getActiveCodeEditor=function(){return null},r.prototype.openCodeEditor=function(t,a,f){return a?Promise.resolve(this.doOpenEditor(a,t)):Promise.resolve(null)},r.prototype.doOpenEditor=function(t,a){var f=this.findModel(t,a.resource);if(!f){if(a.resource){var m=a.resource.scheme;if(m===We.b.http||m===We.b.https)return Object(Ye.Z)(a.resource.toString()),t}return null}var H=a.options?a.options.selection:null;if(H)if(typeof H.endLineNumber=="number"&&typeof H.endColumn=="number")t.setSelection(H),t.revealRangeInCenter(H,1);else{var Ce={lineNumber:H.startLineNumber,column:H.startColumn};t.setPosition(Ce),t.revealPositionInCenter(Ce,1)}return t},r.prototype.findModel=function(t,a){var f=t.getModel();return f&&f.uri.toString()!==a.toString()?null:f},r}(xi),Hi=o("zrhQ"),Ji=function(){function s(r,t,a,f,m){this.token=r,this.index=t,this.fontStyle=a,this.foreground=f,this.background=m}return s}();function fi(s){if(!s||!Array.isArray(s))return[];for(var r=[],t=0,a=0,f=s.length;a<f;a++){var m=s[a],H=-1;if(typeof m.fontStyle=="string"){H=0;for(var Ce=m.fontStyle.split(" "),Te=0,Pe=Ce.length;Te<Pe;Te++){var ot=Ce[Te];switch(ot){case"italic":H=H|1;break;case"bold":H=H|2;break;case"underline":H=H|4;break}}}var dt=null;typeof m.foreground=="string"&&(dt=m.foreground);var Ct=null;typeof m.background=="string"&&(Ct=m.background),r[t++]=new Ji(m.token||"",a,H,dt,Ct)}return r}function Fi(s,r){s.sort(function(kt,rn){var cn=Pr(kt.token,rn.token);return cn!==0?cn:kt.index-rn.index});for(var t=0,a="000000",f="ffffff";s.length>=1&&s[0].token==="";){var m=s.shift();m.fontStyle!==-1&&(t=m.fontStyle),m.foreground!==null&&(a=m.foreground),m.background!==null&&(f=m.background)}for(var H=new es,Ce=0,Te=r;Ce<Te.length;Ce++){var Pe=Te[Ce];H.getId(Pe)}for(var ot=H.getId(a),dt=H.getId(f),Ct=new ou(t,ot,dt),vt=new su(Ct),Qt=0,Kt=s.length;Qt<Kt;Qt++){var jt=s[Qt];vt.insert(jt.token,jt.fontStyle,H.getId(jt.foreground),H.getId(jt.background))}return new Es(H,vt)}var Ki=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,es=function(){function s(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return s.prototype.getId=function(r){if(r===null)return 0;var t=r.match(Ki);if(!t)throw new Error("Illegal value for token color: "+r);r=t[1].toUpperCase();var a=this._color2id.get(r);return a||(a=++this._lastColorId,this._color2id.set(r,a),this._id2color[a]=Hi.a.fromHex("#"+r),a)},s.prototype.getColorMap=function(){return this._id2color.slice(0)},s}(),Es=function(){function s(r,t){this._colorMap=r,this._root=t,this._cache=new Map}return s.createFromRawTokenTheme=function(r,t){return this.createFromParsedTokenTheme(fi(r),t)},s.createFromParsedTokenTheme=function(r,t){return Fi(r,t)},s.prototype.getColorMap=function(){return this._colorMap.getColorMap()},s.prototype._match=function(r){return this._root.match(r)},s.prototype.match=function(r,t){var a=this._cache.get(t);if(typeof a=="undefined"){var f=this._match(t),m=ir(t);a=(f.metadata|m<<8)>>>0,this._cache.set(t,a)}return(a|r<<0)>>>0},s}(),ia=/\b(comment|string|regex|regexp)\b/;function ir(s){var r=s.match(ia);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 Pr(s,r){return s<r?-1:s>r?1:0}var ou=function(){function s(r,t,a){this._fontStyle=r,this._foreground=t,this._background=a,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return s.prototype.clone=function(){return new s(this._fontStyle,this._foreground,this._background)},s.prototype.acceptOverwrite=function(r,t,a){r!==-1&&(this._fontStyle=r),t!==0&&(this._foreground=t),a!==0&&(this._background=a),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},s}(),su=function(){function s(r){this._mainRule=r,this._children=new Map}return s.prototype.match=function(r){if(r==="")return this._mainRule;var t=r.indexOf("."),a,f;t===-1?(a=r,f=""):(a=r.substring(0,t),f=r.substring(t+1));var m=this._children.get(a);return typeof m!="undefined"?m.match(f):this._mainRule},s.prototype.insert=function(r,t,a,f){if(r===""){this._mainRule.acceptOverwrite(t,a,f);return}var m=r.indexOf("."),H,Ce;m===-1?(H=r,Ce=""):(H=r.substring(0,m),Ce=r.substring(m+1));var Te=this._children.get(H);typeof Te=="undefined"&&(Te=new s(this._mainRule.clone()),this._children.set(H,Te)),Te.insert(Ce,t,a,f)},s}();function au(s){for(var r=[],t=1,a=s.length;t<a;t++){var f=s[t];r[t]=".mtk"+t+" { color: "+f+"; }"}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 Bo,jo,Os,uu={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:(Bo={},Bo[Ei.o]="#FFFFFE",Bo[Ei.x]="#000000",Bo[Ei.F]="#E5EBF1",Bo[Cr.g]="#D3D3D3",Bo[Cr.a]="#939393",Bo[Ei.M]="#ADD6FF4D",Bo)},lu={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:(jo={},jo[Ei.o]="#1E1E1E",jo[Ei.x]="#D4D4D4",jo[Ei.F]="#3A3D41",jo[Cr.g]="#404040",jo[Cr.a]="#707070",jo[Ei.M]="#ADD6FF26",jo)},du={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:(Os={},Os[Ei.o]="#000000",Os[Ei.x]="#FFFFFF",Os[Cr.g]="#FFFFFF",Os[Cr.a]="#FFFFFF",Os)},cu=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ts="vs",ra="vs-dark",zs="hc-black",fu=N.a.as(Ei.a.ColorContribution),hu=N.a.as(Wi.a.ThemingContribution),Na=function(){function s(r,t){this.themeData=t;var a=t.base;r.length>0?(this.id=a+" "+r,this.themeName=r):(this.id=a,this.themeName=a),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(s.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),s.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},s.prototype.getColors=function(){if(!this.colors){var r=new Map;for(var t in this.themeData.colors)r.set(t,Hi.a.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var a=fa(this.themeData.base);for(var t in a.colors)r.has(t)||r.set(t,Hi.a.fromHex(a.colors[t]))}this.colors=r}return this.colors},s.prototype.getColor=function(r,t){var a=this.getColors().get(r);if(a)return a;if(t!==!1)return this.getDefault(r)},s.prototype.getDefault=function(r){var t=this.defaultColors[r];return t||(t=fu.resolveDefaultColor(r,this),this.defaultColors[r]=t,t)},s.prototype.defines=function(r){return Object.prototype.hasOwnProperty.call(this.getColors(),r)},Object.defineProperty(s.prototype,"type",{get:function(){switch(this.base){case ts:return"light";case zs:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var t=[],a=[];if(this.themeData.inherit){var f=fa(this.themeData.base);t=f.rules,f.encodedTokensColors&&(a=f.encodedTokensColors)}t=t.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(a=this.themeData.encodedTokensColors),this._tokenTheme=Es.createFromRawTokenTheme(t,a)}return this._tokenTheme},enumerable:!0,configurable:!0}),s.prototype.getTokenStyleMetadata=function(r,t){},s}();function ca(s){return s===ts||s===ra||s===zs}function fa(s){switch(s){case ts:return uu;case ra:return lu;case zs:return du}}function ha(s){var r=fa(s);return new Na(s,r)}var gu=function(s){cu(r,s);function r(){var t=s.call(this)||this;return t._onThemeChange=t._register(new P.a),t.onThemeChange=t._onThemeChange.event,t._environment=Object.create(null),t._knownThemes=new Map,t._knownThemes.set(ts,ha(ts)),t._knownThemes.set(ra,ha(ra)),t._knownThemes.set(zs,ha(zs)),t._css="",t._globalStyleElement=null,t._styleElements=[],t.setTheme(ts),t}return r.prototype.registerEditorContainer=function(t){return Ye.M(t)?this._registerShadowDomContainer(t):this._registerRegularEditorContainer()},r.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=Ye.v(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),zt.a.None},r.prototype._registerShadowDomContainer=function(t){var a=this,f=Ye.v(t);return f.className="monaco-colors",f.innerHTML=this._css,this._styleElements.push(f),{dispose:function(){for(var H=0;H<a._styleElements.length;H++)if(a._styleElements[H]===f){a._styleElements.splice(H,1);return}}}},r.prototype.defineTheme=function(t,a){if(!/^[a-z0-9\-]+$/i.test(t))throw new Error("Illegal theme name!");if(!ca(a.base)&&!ca(t))throw new Error("Illegal theme base!");this._knownThemes.set(t,new Na(t,a)),ca(t)&&this._knownThemes.forEach(function(f){f.base===t&&f.notifyBaseUpdated()}),this._theme&&this._theme.themeName===t&&this.setTheme(t)},r.prototype.getTheme=function(){return this._theme},r.prototype.setTheme=function(t){var a=this,f;if(this._knownThemes.has(t)?f=this._knownThemes.get(t):f=this._knownThemes.get(ts),this._theme===f)return f.id;this._theme=f;var m=[],H={},Ce={addRule:function(dt){H[dt]||(m.push(dt),H[dt]=!0)}};hu.getThemingParticipants().forEach(function(ot){return ot(f,Ce,a._environment)});var Te=f.tokenTheme,Pe=Te.getColorMap();return Ce.addRule(au(Pe)),this._css=m.join(`
`),this._styleElements.forEach(function(ot){return ot.innerHTML=a._css}),pt.y.setColorMap(Pe),this._onThemeChange.fire(f),f.id},r.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},r}(zt.a),oa=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),pu=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},vu=function(s,r){return function(t,a){r(t,a,s)}},sa="data-keybinding-context",ga=function(){function s(r,t){this._id=r,this._parent=t,this._value=Object.create(null),this._value._contextId=r}return s.prototype.setValue=function(r,t){return this._value[r]!==t?(this._value[r]=t,!0):!1},s.prototype.removeValue=function(r){return r in this._value?(delete this._value[r],!0):!1},s.prototype.getValue=function(r){var t=this._value[r];return typeof t=="undefined"&&this._parent?this._parent.getValue(r):t},s}(),aa=function(s){oa(r,s);function r(){return s.call(this,-1,null)||this}return r.prototype.setValue=function(t,a){return!1},r.prototype.removeValue=function(t){return!1},r.prototype.getValue=function(t){},r.INSTANCE=new r,r}(ga),mu=function(s){oa(r,s);function r(t,a,f){var m=s.call(this,t,null)||this;return m._configurationService=a,m._values=new Map,m._listener=m._configurationService.onDidChangeConfiguration(function(H){if(H.source===6){var Ce=Object(zr.d)(m._values);m._values.clear(),f.fire(new Ta(Ce))}else{for(var Te=[],Pe=0,ot=H.affectedKeys;Pe<ot.length;Pe++){var dt=ot[Pe],Ct="config."+dt;m._values.has(Ct)&&(m._values.delete(Ct),Te.push(Ct))}f.fire(new Ta(Te))}}),m}return r.prototype.dispose=function(){this._listener.dispose()},r.prototype.getValue=function(t){if(t.indexOf(r._keyPrefix)!==0)return s.prototype.getValue.call(this,t);if(this._values.has(t))return this._values.get(t);var a=t.substr(r._keyPrefix.length),f=this._configurationService.getValue(a),m=void 0;switch(typeof f){case"number":case"boolean":case"string":m=f;break}return this._values.set(t,m),m},r.prototype.setValue=function(t,a){return s.prototype.setValue.call(this,t,a)},r.prototype.removeValue=function(t){return s.prototype.removeValue.call(this,t)},r._keyPrefix="config.",r}(ga),yu=function(){function s(r,t,a){this._service=r,this._key=t,this._defaultValue=a,this.reset()}return s.prototype.set=function(r){this._service.setContext(this._key,r)},s.prototype.reset=function(){typeof this._defaultValue=="undefined"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},s.prototype.get=function(){return this._service.getContextKeyValue(this._key)},s}(),Ia=function(){function s(r){this.key=r}return s.prototype.affectsSome=function(r){return r.has(this.key)},s}(),Ta=function(){function s(r){this.keys=r}return s.prototype.affectsSome=function(r){for(var t=0,a=this.keys;t<a.length;t++){var f=a[t];if(r.has(f))return!0}return!1},s}(),Cu=function(){function s(r){this.events=r}return s.prototype.affectsSome=function(r){for(var t=0,a=this.events;t<a.length;t++){var f=a[t];if(f.affectsSome(r))return!0}return!1},s}(),Pa=function(){function s(r){this._onDidChangeContext=new P.d({merge:function(a){return new Cu(a)}}),this._isDisposed=!1,this._myContextId=r}return s.prototype.createKey=function(r,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new yu(this,r,t)},Object.defineProperty(s.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),s.prototype.bufferChangeEvents=function(r){this._onDidChangeContext.pause();try{r()}finally{this._onDidChangeContext.resume()}},s.prototype.createScoped=function(r){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new _u(this,r)},s.prototype.contextMatchesRules=function(r){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId),a=vo.contextMatchesRules(t,r);return a},s.prototype.getContextKeyValue=function(r){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(r)},s.prototype.setContext=function(r,t){if(!this._isDisposed){var a=this.getContextValuesContainer(this._myContextId);!a||a.setValue(r,t)&&this._onDidChangeContext.fire(new Ia(r))}},s.prototype.removeContext=function(r){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(r)&&this._onDidChangeContext.fire(new Ia(r))},s.prototype.getContext=function(r){return this._isDisposed?aa.INSTANCE:this.getContextValuesContainer(Su(r))},s}(),bu=function(s){oa(r,s);function r(t){var a=s.call(this,0)||this;a._contexts=new Map,a._toDispose=new zt.b,a._lastContextId=0;var f=new mu(a._myContextId,t,a._onDidChangeContext);return a._contexts.set(a._myContextId,f),a._toDispose.add(f),a}return r.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},r.prototype.getContextValuesContainer=function(t){return this._isDisposed?aa.INSTANCE:this._contexts.get(t)||aa.INSTANCE},r.prototype.createChildContext=function(t){if(t===void 0&&(t=this._myContextId),this._isDisposed)throw new Error("ContextKeyService has been disposed");var a=++this._lastContextId;return this._contexts.set(a,new ga(a,this.getContextValuesContainer(t))),a},r.prototype.disposeContext=function(t){this._isDisposed||this._contexts.delete(t)},r=pu([vu(0,Ti.a)],r),r}(Pa),_u=function(s){oa(r,s);function r(t,a){var f=s.call(this,t.createChildContext())||this;return f._parent=t,a&&(f._domNode=a,f._domNode.setAttribute(sa,String(f._myContextId))),f}return r.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(sa),this._domNode=void 0)},Object.defineProperty(r.prototype,"onDidChangeContext",{get:function(){return P.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),r.prototype.getContextValuesContainer=function(t){return this._isDisposed?aa.INSTANCE:this._parent.getContextValuesContainer(t)},r.prototype.createChildContext=function(t){if(t===void 0&&(t=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(t)},r.prototype.disposeContext=function(t){this._isDisposed||this._parent.disposeContext(t)},r}(Pa);function Su(s){for(;s;){if(s.hasAttribute(sa)){var r=s.getAttribute(sa);return r?parseInt(r,10):NaN}s=s.parentElement}return 0}Ee.a.registerCommand(_i.e,function(s,r,t){s.get(_i.c).createKey(String(r),t)});var Id=o("eizg"),Td=o("CHaL"),Ks=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),wu=function(){for(var s=0,r=0,t=arguments.length;r<t;r++)s+=arguments[r].length;for(var a=Array(s),f=0,r=0;r<t;r++)for(var m=arguments[r],H=0,Ce=m.length;H<Ce;H++,f++)a[f]=m[H];return a},pa=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,va=/(&amp;)?(&amp;)([^\s&])/g,Gs;(function(s){s[s.Right=0]="Right",s[s.Left=1]="Left"})(Gs||(Gs={}));var Eu=function(s){Ks(r,s);function r(t,a,f){var m=s.call(this,f||"submenu",t,"",!0)||this;return m.entries=a,m}return r}(ro.a),xa=function(s){Ks(r,s);function r(t,a,f){f===void 0&&(f={});var m=this;Object(Ye.e)(t,"monaco-menu-container"),t.setAttribute("role","presentation");var H=document.createElement("div");Object(Ye.e)(H,"monaco-menu"),H.setAttribute("role","presentation"),m=s.call(this,H,{orientation:2,actionViewItemProvider:function(ot){return m.doGetActionViewItem(ot,f,Ce)},context:f.context,actionRunner:f.actionRunner,ariaLabel:f.ariaLabel,triggerKeys:{keys:wu([3],sn.e?[10]:[]),keyDown:!0}})||this,m.menuElement=H,m.actionsList.setAttribute("role","menu"),m.actionsList.tabIndex=0,m.menuDisposables=m._register(new zt.b),Object(Ye.i)(H,Ye.c.KEY_DOWN,function(Pe){var ot=new dr.a(Pe);ot.equals(2)&&Pe.preventDefault()}),f.enableMnemonics&&m.menuDisposables.add(Object(Ye.i)(H,Ye.c.KEY_DOWN,function(Pe){var ot=Pe.key.toLocaleLowerCase();if(m.mnemonics.has(ot)){Ye.b.stop(Pe,!0);var dt=m.mnemonics.get(ot);if(dt.length===1&&(dt[0]instanceof Ra&&dt[0].container&&m.focusItemByElement(dt[0].container),dt[0].onClick(Pe)),dt.length>1){var Ct=dt.shift();Ct&&Ct.container&&(m.focusItemByElement(Ct.container),dt.push(Ct)),m.mnemonics.set(ot,dt)}}})),sn.d&&m._register(Object(Ye.i)(H,Ye.c.KEY_DOWN,function(Pe){var ot=new dr.a(Pe);ot.equals(14)||ot.equals(11)?(m.focusedItem=m.viewItems.length-1,m.focusNext(),Ye.b.stop(Pe,!0)):(ot.equals(13)||ot.equals(12))&&(m.focusedItem=0,m.focusPrevious(),Ye.b.stop(Pe,!0))})),m._register(Object(Ye.i)(m.domNode,Ye.c.MOUSE_OUT,function(Pe){var ot=Pe.relatedTarget;Object(Ye.J)(ot,m.domNode)||(m.focusedItem=void 0,m.updateFocus(),Pe.stopPropagation())})),m._register(Object(Ye.i)(m.actionsList,Ye.c.MOUSE_OVER,function(Pe){var ot=Pe.target;if(!(!ot||!Object(Ye.J)(ot,m.actionsList)||ot===m.actionsList)){for(;ot.parentElement!==m.actionsList&&ot.parentElement!==null;)ot=ot.parentElement;if(Object(Ye.H)(ot,"action-item")){var dt=m.focusedItem;m.setFocusedItem(ot),dt!==m.focusedItem&&m.updateFocus()}}}));var Ce={parent:m};m.mnemonics=new Map,m.scrollableElement=m._register(new io.a(H,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var Te=m.scrollableElement.getDomNode();return Te.style.position="",m._register(Object(Ye.i)(Te,Ye.c.MOUSE_UP,function(Pe){Pe.preventDefault()})),H.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",m.push(a,{icon:!0,label:!0,isMenu:!0}),t.appendChild(m.scrollableElement.getDomNode()),m.scrollableElement.scanDomNode(),m.viewItems.filter(function(Pe){return!(Pe instanceof ya)}).forEach(function(Pe,ot,dt){Pe.updatePositionInSet(ot+1,dt.length)}),m}return r.prototype.style=function(t){var a=this.getContainer(),f=t.foregroundColor?""+t.foregroundColor:"",m=t.backgroundColor?""+t.backgroundColor:"",H=t.borderColor?"1px solid "+t.borderColor:"",Ce=t.shadowColor?"0 2px 4px "+t.shadowColor:"";a.style.border=H,this.domNode.style.color=f,this.domNode.style.backgroundColor=m,a.style.boxShadow=Ce,this.viewItems&&this.viewItems.forEach(function(Te){(Te instanceof ma||Te instanceof ya)&&Te.style(t)})},r.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(r.prototype,"onScroll",{get:function(){return this.scrollableElement.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),r.prototype.focusItemByElement=function(t){var a=this.focusedItem;this.setFocusedItem(t),a!==this.focusedItem&&this.updateFocus()},r.prototype.setFocusedItem=function(t){for(var a=0;a<this.actionsList.children.length;a++){var f=this.actionsList.children[a];if(t===f){this.focusedItem=a;break}}},r.prototype.updateFocus=function(t){s.prototype.updateFocus.call(this,t,!0),typeof this.focusedItem!="undefined"&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})},r.prototype.doGetActionViewItem=function(t,a,f){if(t instanceof Mr.d)return new ya(a.context,t,{icon:!0});if(t instanceof Eu){var m=new Ra(t,t.entries,f,a);if(a.enableMnemonics){var H=m.getMnemonic();if(H&&m.isEnabled()){var Ce=[];this.mnemonics.has(H)&&(Ce=this.mnemonics.get(H)),Ce.push(m),this.mnemonics.set(H,Ce)}}return m}else{var Te={enableMnemonics:a.enableMnemonics};if(a.getKeyBinding){var Pe=a.getKeyBinding(t);if(Pe){var ot=Pe.getLabel();ot&&(Te.keybinding=ot)}}var m=new ma(a.context,t,Te);if(a.enableMnemonics){var H=m.getMnemonic();if(H&&m.isEnabled()){var Ce=[];this.mnemonics.has(H)&&(Ce=this.mnemonics.get(H)),Ce.push(m),this.mnemonics.set(H,Ce)}}return m}},r}(Mr.a),ma=function(s){Ks(r,s);function r(t,a,f){f===void 0&&(f={});var m=this;if(f.isMenu=!0,m=s.call(this,a,a,f)||this,m.options=f,m.options.icon=f.icon!==void 0?f.icon:!1,m.options.label=f.label!==void 0?f.label:!0,m.cssClass="",m.options.label&&f.enableMnemonics){var H=m.getAction().label;if(H){var Ce=pa.exec(H);Ce&&(m.mnemonic=(Ce[1]?Ce[1]:Ce[3]).toLocaleLowerCase())}}return m.runOnceToEnableMouseUp=new Jt.d(function(){!m.element||m._register(Object(Ye.i)(m.element,Ye.c.MOUSE_UP,function(Te){Te.defaultPrevented||(Ye.b.stop(Te,!0),m.onClick(Te))}))},100),m._register(m.runOnceToEnableMouseUp),m}return r.prototype.render=function(t){s.prototype.render.call(this,t),!!this.element&&(this.container=t,this.item=Object(Ye.p)(this.element,Object(Ye.a)("a.action-menu-item")),this._action.id===Mr.d.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(Ye.p)(this.item,Object(Ye.a)("span.menu-item-check.codicon.codicon-check")),this.check.setAttribute("role","none"),this.label=Object(Ye.p)(this.item,Object(Ye.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(Ye.p)(this.item,Object(Ye.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())},r.prototype.blur=function(){s.prototype.blur.call(this),this.applyStyle()},r.prototype.focus=function(){s.prototype.focus.call(this),this.item&&this.item.focus(),this.applyStyle()},r.prototype.updatePositionInSet=function(t,a){this.item&&(this.item.setAttribute("aria-posinset",""+t),this.item.setAttribute("aria-setsize",""+a))},r.prototype.updateLabel=function(){if(this.options.label){var t=this.getAction().label;if(t){var a=Ou(t);this.options.enableMnemonics||(t=a),this.label&&this.label.setAttribute("aria-label",a.replace(/&&/g,"&"));var f=pa.exec(t);if(f){t=Xn.o(t),va.lastIndex=0;for(var m=va.exec(t);m&&m[1];)m=va.exec(t);m&&(t=t.substr(0,m.index)+'<u aria-hidden="true">'+m[3]+"</u>"+t.substr(m.index+m[0].length)),t=t.replace(/&amp;&amp;/g,"&amp;"),this.item&&this.item.setAttribute("aria-keyshortcuts",(f[1]?f[1]:f[3]).toLocaleLowerCase())}else t=t.replace(/&&/g,"&")}this.label&&(this.label.innerHTML=t.trim())}},r.prototype.updateTooltip=function(){var t=null;this.getAction().tooltip?t=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(t=this.getAction().label,this.options.keybinding&&(t=gn.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",t,this.options.keybinding))),t&&this.item&&(this.item.title=t)},r.prototype.updateClass=function(){this.cssClass&&this.item&&Object(Ye.P)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(Ye.e)(this.label,"icon"),this.cssClass&&Object(Ye.f)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(Ye.O)(this.label,"icon")},r.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(Ye.O)(this.element,"disabled"),this.item&&(Object(Ye.O)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(Ye.e)(this.element,"disabled"),this.item&&(Object(Ye.e)(this.item,"disabled"),Object(Ye.R)(this.item)))},r.prototype.updateChecked=function(){!this.item||(this.getAction().checked?(Object(Ye.e)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(Ye.O)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))},r.prototype.getMnemonic=function(){return this.mnemonic},r.prototype.applyStyle=function(){if(!!this.menuStyle){var t=this.element&&Object(Ye.H)(this.element,"focused"),a=t&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,f=t&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,m=t&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=a?a.toString():"",this.item.style.backgroundColor=f?f.toString():""),this.check&&(this.check.style.color=a?a.toString():""),this.container&&(this.container.style.border=m)}},r.prototype.style=function(t){this.menuStyle=t,this.applyStyle()},r}(Mr.c),Ra=function(s){Ks(r,s);function r(t,a,f,m){var H=s.call(this,t,t,m)||this;return H.submenuActions=a,H.parentData=f,H.submenuOptions=m,H.mysubmenu=null,H.submenuDisposables=H._register(new zt.b),H.mouseOver=!1,H.expandDirection=m&&m.expandDirection!==void 0?m.expandDirection:Gs.Right,H.showScheduler=new Jt.d(function(){H.mouseOver&&(H.cleanupExistingSubmenu(!1),H.createSubmenu(!1))},250),H.hideScheduler=new Jt.d(function(){H.element&&!Object(Ye.J)(document.activeElement,H.element)&&H.parentData.submenu===H.mysubmenu&&(H.parentData.parent.focus(!1),H.cleanupExistingSubmenu(!0))},750),H}return r.prototype.render=function(t){var a=this;s.prototype.render.call(this,t),!!this.element&&(this.item&&(Object(Ye.e)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(Ye.p)(this.item,Object(Ye.a)("span.submenu-indicator.codicon.codicon-chevron-right")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(Ye.i)(this.element,Ye.c.KEY_UP,function(f){var m=new dr.a(f);(m.equals(17)||m.equals(3))&&(Ye.b.stop(f,!0),a.createSubmenu(!0))})),this._register(Object(Ye.i)(this.element,Ye.c.KEY_DOWN,function(f){var m=new dr.a(f);document.activeElement===a.item&&(m.equals(17)||m.equals(3))&&Ye.b.stop(f,!0)})),this._register(Object(Ye.i)(this.element,Ye.c.MOUSE_OVER,function(f){a.mouseOver||(a.mouseOver=!0,a.showScheduler.schedule())})),this._register(Object(Ye.i)(this.element,Ye.c.MOUSE_LEAVE,function(f){a.mouseOver=!1})),this._register(Object(Ye.i)(this.element,Ye.c.FOCUS_OUT,function(f){a.element&&!Object(Ye.J)(document.activeElement,a.element)&&a.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(function(){a.parentData.parent.focus(!1),a.cleanupExistingSubmenu(!1)})))},r.prototype.onClick=function(t){Ye.b.stop(t,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)},r.prototype.cleanupExistingSubmenu=function(t){this.parentData.submenu&&(t||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))},r.prototype.createSubmenu=function(t){var a=this;if(t===void 0&&(t=!0),!!this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(Ye.p)(this.element,Object(Ye.a)("div.monaco-submenu")),Object(Ye.f)(this.submenuContainer,"menubar-menu-items-holder","context-view");var f=getComputedStyle(this.parentData.parent.domNode),m=parseFloat(f.paddingTop||"0")||0;this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-m+"px",this.parentData.submenu=new xa(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var H=this.element.getBoundingClientRect(),Ce=this.submenuContainer.getBoundingClientRect();this.expandDirection===Gs.Right?window.innerWidth<=H.right+Ce.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+H.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-m+"px"):this.expandDirection===Gs.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-m+"px"),this.submenuDisposables.add(Object(Ye.i)(this.submenuContainer,Ye.c.KEY_UP,function(Te){var Pe=new dr.a(Te);Pe.equals(15)&&(Ye.b.stop(Te,!0),a.parentData.parent.focus(),a.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(Ye.i)(this.submenuContainer,Ye.c.KEY_DOWN,function(Te){var Pe=new dr.a(Te);Pe.equals(15)&&Ye.b.stop(Te,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(function(){a.parentData.parent.focus(),a.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(t),this.mysubmenu=this.parentData.submenu}},r.prototype.updateAriaExpanded=function(t){var a;this.item&&((a=this.item)===null||a===void 0||a.setAttribute("aria-expanded",t))},r.prototype.applyStyle=function(){if(s.prototype.applyStyle.call(this),!!this.menuStyle){var t=this.element&&Object(Ye.H)(this.element,"focused"),a=t&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=a?""+a:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}},r.prototype.dispose=function(){s.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},r}(ma),ya=function(s){Ks(r,s);function r(){return s!==null&&s.apply(this,arguments)||this}return r.prototype.style=function(t){this.label&&(this.label.style.borderBottomColor=t.separatorColor?""+t.separatorColor:"")},r}(Mr.b);function Ou(s){var r=pa,t=r.exec(s);if(!t)return s;var a=!t[1];return s.replace(r,a?"$2$3":"").trim()}var Du=o("ptcw"),Aa=o("4y0V"),Lu=o("XSiN"),Mu=function(){function s(r,t,a,f,m){this.contextViewService=r,this.telemetryService=t,this.notificationService=a,this.keybindingService=f,this.themeService=m,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}return s.prototype.configure=function(r){this.options=r},s.prototype.showContextMenu=function(r){var t=this,a=r.getActions();if(!!a.length){this.focusToReturn=document.activeElement;var f;this.contextViewService.showContextView({getAnchor:function(){return r.getAnchor()},canRelayout:!1,anchorAlignment:r.anchorAlignment,render:function(H){var Ce=r.getMenuClassName?r.getMenuClassName():"";Ce&&(H.className+=" "+Ce),t.options.blockMouse&&(t.block=H.appendChild(Object(Ye.a)(".context-view-block")));var Te=new zt.b,Pe=r.actionRunner||new ro.b;return Pe.onDidBeforeRun(t.onActionRun,t,Te),Pe.onDidRun(t.onDidActionRun,t,Te),f=new xa(H,a,{actionViewItemProvider:r.getActionViewItem,context:r.getActionsContext?r.getActionsContext():null,actionRunner:Pe,getKeyBinding:r.getKeyBinding?r.getKeyBinding:function(ot){return t.keybindingService.lookupKeybinding(ot.id)}}),Te.add(Object(Du.c)(f,t.themeService)),f.onDidCancel(function(){return t.contextViewService.hideContextView(!0)},null,Te),f.onDidBlur(function(){return t.contextViewService.hideContextView(!0)},null,Te),Object(Aa.a)(window,Ye.c.BLUR)(function(){t.contextViewService.hideContextView(!0)},null,Te),Object(Aa.a)(window,Ye.c.MOUSE_DOWN)(function(ot){if(!ot.defaultPrevented){var dt=new Lu.a(ot),Ct=dt.target;if(!dt.rightButton){for(;Ct;){if(Ct===H)return;Ct=Ct.parentElement}t.contextViewService.hideContextView(!0)}}},null,Te),Object(zt.e)(Te,f)},focus:function(){f&&f.focus(!!r.autoSelectFirstItem)},onHide:function(H){r.onHide&&r.onHide(!!H),t.block&&(Object(Ye.Q)(t.block),t.block=null),t.focusToReturn&&t.focusToReturn.focus()}})}},s.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()},s.prototype.onDidActionRun=function(r){r.error&&this.notificationService&&this.notificationService.error(r.error)},s}(),Ca=o("XXUj"),Nu=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Iu=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},Ys=function(s,r){return function(t,a){r(t,a,s)}},Tu=function(s){Nu(r,s);function r(t,a,f,m,H){var Ce=s.call(this)||this;return Ce._onDidContextMenu=Ce._register(new P.a),Ce.contextMenuHandler=new Mu(f,t,a,m,H),Ce}return r.prototype.configure=function(t){this.contextMenuHandler.configure(t)},r.prototype.showContextMenu=function(t){this.contextMenuHandler.showContextMenu(t),this._onDidContextMenu.fire()},r=Iu([Ys(0,Ca.a),Ys(1,wr.a),Ys(2,_r.b),Ys(3,Si.a),Ys(4,Wi.c)],r),r}(zt.a),Pd=o("TT2d"),Pu=o("nuFA"),xu=o("CjF5"),Ru=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}();function Fa(s,r,t){var a=t.offset+t.size;return t.position===0?r<=s-a?a:r<=t.offset?t.offset-r:Math.max(s-r,0):r<=t.offset?t.offset-r:r<=s-a?a:0}var Au=function(s){Ru(r,s);function r(t){var a=s.call(this)||this;return a.container=null,a.delegate=null,a.toDisposeOnClean=zt.a.None,a.toDisposeOnSetContainer=zt.a.None,a.view=Ye.a(".context-view"),Ye.I(a.view),a.setContainer(t),a._register(Object(zt.h)(function(){return a.setContainer(null)})),a}return r.prototype.setContainer=function(t){var a=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),t){this.container=t,this.container.appendChild(this.view);var f=new zt.b;r.BUBBLE_UP_EVENTS.forEach(function(m){f.add(Ye.n(a.container,m,function(H){a.onDOMEvent(H,!1)}))}),r.BUBBLE_DOWN_EVENTS.forEach(function(m){f.add(Ye.n(a.container,m,function(H){a.onDOMEvent(H,!0)},!0))}),this.toDisposeOnSetContainer=f}},r.prototype.show=function(t){this.isVisible()&&this.hide(),Ye.s(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",Ye.W(this.view),this.toDisposeOnClean=t.render(this.view)||zt.a.None,this.delegate=t,this.doLayout(),this.delegate.focus&&this.delegate.focus()},r.prototype.layout=function(){if(!!this.isVisible()){if(this.delegate.canRelayout===!1&&!(sn.c&&xu.a.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()}},r.prototype.doLayout=function(){if(!!this.isVisible()){var t=this.delegate.getAnchor(),a;if(Ye.K(t)){var f=Ye.B(t);a={top:f.top,left:f.left,width:f.width,height:f.height}}else a={top:t.y,left:t.x,width:t.width||1,height:t.height||2};var m=Ye.G(this.view),H=Ye.F(this.view),Ce=this.delegate.anchorPosition||0,Te=this.delegate.anchorAlignment||0,Pe={offset:a.top-window.pageYOffset,size:a.height,position:Ce===0?0:1},ot;Te===0?ot={offset:a.left,size:0,position:0}:ot={offset:a.left+a.width,size:0,position:1};var dt=Fa(window.innerHeight,H,Pe)+window.pageYOffset;Pu.a.intersects({start:dt,end:dt+H},{start:Pe.offset,end:Pe.offset+Pe.size})&&(ot.size=a.width,Te===1&&(ot.offset=a.left));var Ct=Fa(window.innerWidth,m,ot);Ye.P(this.view,"top","bottom","left","right"),Ye.e(this.view,Ce===0?"bottom":"top"),Ye.e(this.view,Te===0?"left":"right");var vt=Ye.B(this.container);this.view.style.top=dt-vt.top+"px",this.view.style.left=Ct-vt.left+"px",this.view.style.width="initial"}},r.prototype.hide=function(t){var a=this.delegate;this.delegate=null,(a==null?void 0:a.onHide)&&a.onHide(t),this.toDisposeOnClean.dispose(),Ye.I(this.view)},r.prototype.isVisible=function(){return!!this.delegate},r.prototype.onDOMEvent=function(t,a){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(t,document.activeElement):a&&!Ye.J(t.target,this.container)&&this.hide())},r.prototype.dispose=function(){this.hide(),s.prototype.dispose.call(this)},r.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],r.BUBBLE_DOWN_EVENTS=["click"],r}(zt.a),Wa=Object(Zt.c)("layoutService"),Fu=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Wu=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},Bu=function(s,r){return function(t,a){r(t,a,s)}},ju=function(s){Fu(r,s);function r(t){var a=s.call(this)||this;return a.layoutService=t,a.contextView=a._register(new Au(t.container)),a.layout(),a._register(t.onLayout(function(){return a.layout()})),a}return r.prototype.setContainer=function(t){this.contextView.setContainer(t)},r.prototype.showContextView=function(t){this.contextView.show(t)},r.prototype.layout=function(){this.contextView.layout()},r.prototype.hideContextView=function(t){this.contextView.hide(t)},r=Wu([Bu(0,Wa)],r),r}(zt.a),ku=Object(Zt.c)("dialogService"),ba=o("vl9R");function Vu(s){return{data:s,incoming:Object.create(null),outgoing:Object.create(null)}}var Hu=function(){function s(r){this._hashFn=r,this._nodes=Object.create(null)}return s.prototype.roots=function(){var r=[];return Object(ba.b)(this._nodes,function(t){Object(un.f)(t.value.outgoing)&&r.push(t.value)}),r},s.prototype.insertEdge=function(r,t){var a=this.lookupOrInsertNode(r),f=this.lookupOrInsertNode(t);a.outgoing[this._hashFn(t)]=f,f.incoming[this._hashFn(r)]=a},s.prototype.removeNode=function(r){var t=this._hashFn(r);delete this._nodes[t],Object(ba.b)(this._nodes,function(a){delete a.value.outgoing[t],delete a.value.incoming[t]})},s.prototype.lookupOrInsertNode=function(r){var t=this._hashFn(r),a=this._nodes[t];return a||(a=Vu(r),this._nodes[t]=a),a},s.prototype.isEmpty=function(){for(var r in this._nodes)return!1;return!0},s.prototype.toString=function(){var r=[];return Object(ba.b)(this._nodes,function(t){r.push(t.key+", (incoming)["+Object.keys(t.value.incoming).join(", ")+"], (outgoing)["+Object.keys(t.value.outgoing).join(",")+"]")}),r.join(`
`)},s}(),Zs=o("r0BQ"),Ba=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),_a=function(){for(var s=0,r=0,t=arguments.length;r<t;r++)s+=arguments[r].length;for(var a=Array(s),f=0,r=0;r<t;r++)for(var m=arguments[r],H=0,Ce=m.length;H<Ce;H++,f++)a[f]=m[H];return a},ja=!1,Uu=typeof Proxy=="function",ka=function(s){Ba(r,s);function r(t){var a=s.call(this,"cyclic dependency between services")||this;return a.message=t.toString(),a}return r}(Error),Va=function(){function s(r,t,a){r===void 0&&(r=new jr.a),t===void 0&&(t=!1),this._services=r,this._strict=t,this._parent=a,this._services.set(Zt.a,this)}return s.prototype.createChild=function(r){return new s(r,this._strict,this)},s.prototype.invokeFunction=function(r){for(var t=this,a=[],f=1;f<arguments.length;f++)a[f-1]=arguments[f];var m=Sa.traceInvocation(r),H=!1;try{var Ce={get:function(Pe,ot){if(H)throw Object(nn.c)("service accessor is only valid during the invocation of its target method");var dt=t._getOrCreateServiceInstance(Pe,m);if(!dt&&ot!==Zt.d)throw new Error("[invokeFunction] unknown service '"+Pe+"'");return dt}};return r.apply(void 0,_a([Ce],a))}finally{H=!0,m.stop()}},s.prototype.createInstance=function(r){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];var f,m;return r instanceof Zs.a?(f=Sa.traceCreation(r.ctor),m=this._createInstance(r.ctor,r.staticArguments.concat(t),f)):(f=Sa.traceCreation(r),m=this._createInstance(r,t,f)),f.stop(),m},s.prototype._createInstance=function(r,t,a){t===void 0&&(t=[]);for(var f=Zt.b.getServiceDependencies(r).sort(function(Ct,vt){return Ct.index-vt.index}),m=[],H=0,Ce=f;H<Ce.length;H++){var Te=Ce[H],Pe=this._getOrCreateServiceInstance(Te.id,a);if(!Pe&&this._strict&&!Te.optional)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+Te.id+".");m.push(Pe)}var ot=f.length>0?f[0].index:t.length;if(t.length!==ot){console.warn("[createInstance] First service dependency of "+r.name+" at position "+(ot+1)+" conflicts with "+t.length+" static arguments");var dt=ot-t.length;dt>0?t=t.concat(new Array(dt)):t=t.slice(0,ot)}return new(r.bind.apply(r,_a([void 0],_a(t,m))))},s.prototype._setServiceInstance=function(r,t){if(this._services.get(r)instanceof Zs.a)this._services.set(r,t);else if(this._parent)this._parent._setServiceInstance(r,t);else throw new Error("illegalState - setting UNKNOWN service instance")},s.prototype._getServiceInstanceOrDescriptor=function(r){var t=this._services.get(r);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(r):t},s.prototype._getOrCreateServiceInstance=function(r,t){var a=this._getServiceInstanceOrDescriptor(r);return a instanceof Zs.a?this._createAndCacheServiceInstance(r,a,t.branch(r,!0)):(t.branch(r,!1),a)},s.prototype._createAndCacheServiceInstance=function(r,t,a){for(var f=new Hu(function(rn){return rn.id.toString()}),m=0,H=[{id:r,desc:t,_trace:a}];H.length;){var Ce=H.pop();if(f.lookupOrInsertNode(Ce),m++>150)throw new ka(f);for(var Te=0,Pe=Zt.b.getServiceDependencies(Ce.desc.ctor);Te<Pe.length;Te++){var ot=Pe[Te],dt=this._getServiceInstanceOrDescriptor(ot.id);if(!dt&&!ot.optional&&console.warn("[createInstance] "+r+" depends on "+ot.id+" which is NOT registered."),dt instanceof Zs.a){var Ct={id:ot.id,desc:dt,_trace:Ce._trace.branch(ot.id,!0)};f.insertEdge(Ce,Ct),H.push(Ct)}}}for(;;){var vt=f.roots();if(vt.length===0){if(!f.isEmpty())throw new ka(f);break}for(var Qt=0,Kt=vt;Qt<Kt.length;Qt++){var jt=Kt[Qt].data,kt=this._createServiceInstanceWithOwner(jt.id,jt.desc.ctor,jt.desc.staticArguments,jt.desc.supportsDelayedInstantiation,jt._trace);this._setServiceInstance(jt.id,kt),f.removeNode(jt)}}return this._getServiceInstanceOrDescriptor(r)},s.prototype._createServiceInstanceWithOwner=function(r,t,a,f,m){if(a===void 0&&(a=[]),this._services.get(r)instanceof Zs.a)return this._createServiceInstance(t,a,f,m);if(this._parent)return this._parent._createServiceInstanceWithOwner(r,t,a,f,m);throw new Error("illegalState - creating UNKNOWN service instance "+t.name)},s.prototype._createServiceInstance=function(r,t,a,f){var m=this;if(t===void 0&&(t=[]),!a||!Uu)return this._createInstance(r,t,f);var H=new Jt.b(function(){return m._createInstance(r,t,f)});return new Proxy(Object.create(null),{get:function(Te,Pe){if(Pe in Te)return Te[Pe];var ot=H.getValue(),dt=ot[Pe];return typeof dt!="function"||(dt=dt.bind(ot),Te[Pe]=dt),dt},set:function(Te,Pe,ot){return H.getValue()[Pe]=ot,!0}})},s}(),Sa=function(){function s(r,t){this.type=r,this.name=t,this._start=Date.now(),this._dep=[]}return s.traceInvocation=function(r){return ja?new s(1,r.name||r.toString().substring(0,42).replace(/\n/g,"")):s._None},s.traceCreation=function(r){return ja?new s(0,r.name):s._None},s.prototype.branch=function(r,t){var a=new s(2,r.toString());return this._dep.push([r,t,a]),a},s.prototype.stop=function(){var r=Date.now()-this._start;s._totals+=r;var t=!1;function a(m,H){for(var Ce=[],Te=new Array(m+1).join(" "),Pe=0,ot=H._dep;Pe<ot.length;Pe++){var dt=ot[Pe],Ct=dt[0],vt=dt[1],Qt=dt[2];if(vt&&Qt){t=!0,Ce.push(Te+"CREATES -> "+Ct);var Kt=a(m+1,Qt);Kt&&Ce.push(Kt)}else Ce.push(Te+"uses -> "+Ct)}return Ce.join(`
`)}var f=[(this.type===0?"CREATE":"CALL")+" "+this.name,""+a(1,this),"DONE, took "+r.toFixed(2)+"ms (grand total "+s._totals.toFixed(2)+"ms)"];(r>2||t)&&console.log(f.join(`
`))},s._None=new(function(r){Ba(t,r);function t(){return r.call(this,-1,null)||this}return t.prototype.stop=function(){},t.prototype.branch=function(){return this},t}(s)),s._totals=0,s}(),zu=o("R8sh"),Ha=o("k9mg"),ho=o("tADe"),ns;(function(s){function r(f,m,H){if(f[m])return f[m][H]}s.get=r;function t(f,m,H,Ce){f[m]||(f[m]=Object.create(null)),f[m][H]=Ce}s.set=t;function a(f,m,H){return f[m]&&f[m][H]?(delete f[m][H],Object(un.f)(f[m])&&delete f[m],!0):!1}s.remove=a})(ns||(ns={}));var Ku=function(){function s(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 s.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},s.prototype._update=function(r){if(!!this._data)for(var t=0,a=r;t<a.length;t++){var f=a[t],m=f.toString(),H=this._data[m];H&&this._substract(H);var Ce=this._resourceStats(f);this._add(Ce),this._data[m]=Ce}},s.prototype._resourceStats=function(r){var t={errors:0,warnings:0,infos:0,unknowns:0};if(r.scheme===We.b.inMemory||r.scheme===We.b.walkThrough||r.scheme===We.b.walkThroughSnippet)return t;for(var a=0,f=this._service.read({resource:r});a<f.length;a++){var m=f[a].severity;m===ho.c.Error?t.errors+=1:m===ho.c.Warning?t.warnings+=1:m===ho.c.Info?t.infos+=1:t.unknowns+=1}return t},s.prototype._substract=function(r){this.errors-=r.errors,this.warnings-=r.warnings,this.infos-=r.infos,this.unknowns-=r.unknowns},s.prototype._add=function(r){this.errors+=r.errors,this.warnings+=r.warnings,this.infos+=r.infos,this.unknowns+=r.unknowns},s}(),Gu=function(){function s(){this._onMarkerChanged=new P.a,this._onMarkerChangedEvent=P.b.debounce(this._onMarkerChanged.event,s._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new Ku(this)}return s.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty(s.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),s.prototype.remove=function(r,t){for(var a=0,f=t||[];a<f.length;a++){var m=f[a];this.changeOne(r,m,[])}},s.prototype.changeOne=function(r,t,a){if(Object(tn.p)(a)){var f=ns.remove(this._byResource,t.toString(),r),m=ns.remove(this._byOwner,r,t.toString());if(f!==m)throw new Error("invalid marker service state");f&&m&&this._onMarkerChanged.fire([t])}else{for(var H=[],Ce=0,Te=a;Ce<Te.length;Ce++){var Pe=Te[Ce],ot=s._toMarker(r,t,Pe);ot&&H.push(ot)}ns.set(this._byResource,t.toString(),r,H),ns.set(this._byOwner,r,t.toString(),H),this._onMarkerChanged.fire([t])}},s._toMarker=function(r,t,a){var f=a.code,m=a.severity,H=a.message,Ce=a.source,Te=a.startLineNumber,Pe=a.startColumn,ot=a.endLineNumber,dt=a.endColumn,Ct=a.relatedInformation,vt=a.tags;if(!!H)return Te=Te>0?Te:1,Pe=Pe>0?Pe:1,ot=ot>=Te?ot:Te,dt=dt>0?dt:Pe,{resource:t,owner:r,code:f,severity:m,message:H,source:Ce,startLineNumber:Te,startColumn:Pe,endLineNumber:ot,endColumn:dt,relatedInformation:Ct,tags:vt}},s.prototype.read=function(r){r===void 0&&(r=Object.create(null));var t=r.owner,a=r.resource,f=r.severities,m=r.take;if((!m||m<0)&&(m=-1),t&&a){var H=ns.get(this._byResource,a.toString(),t);if(H){for(var Ce=[],Te=0,Pe=H;Te<Pe.length;Te++){var ot=Pe[Te];if(s._accept(ot,f)){var dt=Ce.push(ot);if(m>0&&dt===m)break}}return Ce}else return[]}else if(!t&&!a){var Ce=[];for(var Ct in this._byResource)for(var vt in this._byResource[Ct])for(var Qt=0,Kt=this._byResource[Ct][vt];Qt<Kt.length;Qt++){var H=Kt[Qt];if(s._accept(H,f)){var dt=Ce.push(H);if(m>0&&dt===m)return Ce}}return Ce}else{var jt=t?this._byOwner[t]:a?this._byResource[a.toString()]:void 0;if(!jt)return[];var Ce=[];for(var kt in jt)for(var rn=0,cn=jt[kt];rn<cn.length;rn++){var H=cn[rn];if(s._accept(H,f)){var dt=Ce.push(H);if(m>0&&dt===m)return Ce}}return Ce}},s._accept=function(r,t){return t===void 0||(t&r.severity)===r.severity},s._debouncer=function(r,t){r||(s._dedupeMap=Object.create(null),r=[]);for(var a=0,f=t;a<f.length;a++){var m=f[a];s._dedupeMap[m.toString()]===void 0&&(s._dedupeMap[m.toString()]=!0,r.push(m))}return r},s}(),Ua=o("A+jI"),za=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},wa=function(s,r){return function(t,a){r(t,a,s)}},Yu=function(){function s(r){this._commandService=r}return s.prototype.createMenu=function(r,t){return new Zu(r,this._commandService,t)},s=za([wa(0,Ee.b)],s),s}(),Zu=function(){function s(r,t,a){var f=this;this._id=r,this._commandService=t,this._contextKeyService=a,this._onDidChange=new P.a,this._dispoables=new zt.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(P.b.debounce(P.b.filter(gr.c.onDidChangeMenu,function(m){return m===f._id}),function(){},50)(this._build,this)),this._dispoables.add(P.b.debounce(this._contextKeyService.onDidChangeContext,function(m,H){return m||H.affectsSome(f._contextKeys)},50)(function(m){return m&&f._onDidChange.fire(void 0)},this))}return s.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},s.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var r=gr.c.getMenuItems(this._id),t;r.sort(s._compareMenuItems);for(var a=0,f=r;a<f.length;a++){var m=f[a],H=m.group||"";(!t||t[0]!==H)&&(t=[H,[]],this._menuGroups.push(t)),t[1].push(m),s._fillInKbExprKeys(m.when,this._contextKeys),Object(gr.e)(m)&&m.command.precondition&&s._fillInKbExprKeys(m.command.precondition,this._contextKeys),Object(gr.e)(m)&&m.command.toggled&&s._fillInKbExprKeys(m.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},s.prototype.getActions=function(r){for(var t=[],a=0,f=this._menuGroups;a<f.length;a++){for(var m=f[a],H=m[0],Ce=m[1],Te=[],Pe=0,ot=Ce;Pe<ot.length;Pe++){var dt=ot[Pe];if(this._contextKeyService.contextMatchesRules(dt.when)){var Ct=Object(gr.e)(dt)?new gr.b(dt.command,dt.alt,r,this._contextKeyService,this._commandService):new gr.d(dt);Te.push(Ct)}}Te.length>0&&t.push([H,Te])}return t},s._fillInKbExprKeys=function(r,t){if(r)for(var a=0,f=r.keys();a<f.length;a++){var m=f[a];t.add(m)}},s._compareMenuItems=function(r,t){var a=r.group,f=t.group;if(a!==f){if(a){if(!f)return-1}else return 1;if(a==="navigation")return-1;if(f==="navigation")return 1;var m=a.localeCompare(f);if(m!==0)return m}var H=r.order||0,Ce=t.order||0;return H<Ce?-1:H>Ce?1:s._compareTitles(Object(gr.e)(r)?r.command.title:r.title,Object(gr.e)(t)?t.command.title:t.title)},s._compareTitles=function(r,t){var a=typeof r=="string"?r:r.value,f=typeof t=="string"?t:t.value;return a.localeCompare(f)},s=za([wa(1,Ee.b),wa(2,_i.c)],s),s}(),Xu=o("79sc"),Ka=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Qu=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},Ga=function(s,r){return function(t,a){r(t,a,s)}};function Xs(s){return s.toString()}var $u=function(s){Ka(r,s);function r(t){var a=s.call(this)||this;return a.model=t,a._markersData=new Map,a._register(Object(zt.h)(function(){a.model.deltaDecorations(Object(zr.d)(a._markersData),[]),a._markersData.clear()})),a}return r.prototype.update=function(t,a){var f=Object(zr.d)(this._markersData);this._markersData.clear();for(var m=this.model.deltaDecorations(f,a),H=0;H<m.length;H++)this._markersData.set(m[H],t[H])},r.prototype.getMarker=function(t){return this._markersData.get(t.id)},r}(zt.a),Ju=function(s){Ka(r,s);function r(t,a){var f=s.call(this)||this;return f._markerService=a,f._onDidChangeMarker=f._register(new P.a),f._markerDecorations=new Map,t.getModels().forEach(function(m){return f._onModelAdded(m)}),f._register(t.onModelAdded(f._onModelAdded,f)),f._register(t.onModelRemoved(f._onModelRemoved,f)),f._register(f._markerService.onMarkerChanged(f._handleMarkerChange,f)),f}return r.prototype.dispose=function(){s.prototype.dispose.call(this),this._markerDecorations.forEach(function(t){return t.dispose()}),this._markerDecorations.clear()},r.prototype.getMarker=function(t,a){var f=this._markerDecorations.get(Xs(t.uri));return f?Object(un.o)(f.getMarker(a)):null},r.prototype._handleMarkerChange=function(t){var a=this;t.forEach(function(f){var m=a._markerDecorations.get(Xs(f));m&&a._updateDecorations(m)})},r.prototype._onModelAdded=function(t){var a=new $u(t);this._markerDecorations.set(Xs(t.uri),a),this._updateDecorations(a)},r.prototype._onModelRemoved=function(t){var a=this,f=this._markerDecorations.get(Xs(t.uri));f&&(f.dispose(),this._markerDecorations.delete(Xs(t.uri))),(t.uri.scheme===We.b.inMemory||t.uri.scheme===We.b.internal||t.uri.scheme===We.b.vscode)&&this._markerService&&this._markerService.read({resource:t.uri}).map(function(m){return m.owner}).forEach(function(m){return a._markerService.remove(m,[t.uri])})},r.prototype._updateDecorations=function(t){var a=this,f=this._markerService.read({resource:t.model.uri,take:500}),m=f.map(function(H){return{range:a._createDecorationRange(t.model,H),options:a._createDecorationOption(H)}});t.update(f,m),this._onDidChangeMarker.fire(t.model)},r.prototype._createDecorationRange=function(t,a){var f=G.a.lift(a);if(a.severity===ho.c.Hint&&!this._hasMarkerTag(a,1)&&!this._hasMarkerTag(a,2)&&(f=f.setEndPosition(f.startLineNumber,f.startColumn+2)),f=t.validateRange(f),f.isEmpty()){var m=t.getWordAtPosition(f.getStartPosition());if(m)f=new G.a(f.startLineNumber,m.startColumn,f.endLineNumber,m.endColumn);else{var H=t.getLineLastNonWhitespaceColumn(f.startLineNumber)||t.getLineMaxColumn(f.startLineNumber);H===1||(f.endColumn>=H?f=new G.a(f.startLineNumber,H-1,f.endLineNumber,H):f=new G.a(f.startLineNumber,f.startColumn,f.endLineNumber,f.endColumn+1))}}else if(a.endColumn===Number.MAX_VALUE&&a.startColumn===1&&f.startLineNumber===f.endLineNumber){var Ce=t.getLineFirstNonWhitespaceColumn(a.startLineNumber);Ce<f.endColumn&&(f=new G.a(f.startLineNumber,Ce,f.endLineNumber,f.endColumn),a.startColumn=Ce)}return f},r.prototype._createDecorationOption=function(t){var a,f=void 0,m,H=void 0,Ce;switch(t.severity){case ho.c.Hint:this._hasMarkerTag(t,2)?a=void 0:this._hasMarkerTag(t,1)?a="squiggly-unnecessary":a="squiggly-hint",m=0;break;case ho.c.Warning:a="squiggly-warning",f=Object(Wi.f)(Cr.q),m=20,Ce={color:Object(Wi.f)(Ei.Ib),position:gt.c.Inline};break;case ho.c.Info:a="squiggly-info",f=Object(Wi.f)(Cr.p),m=10;break;case ho.c.Error:default:a="squiggly-error",f=Object(Wi.f)(Cr.o),m=30,Ce={color:Object(Wi.f)(Ei.Fb),position:gt.c.Inline};break}return t.tags&&(t.tags.indexOf(1)!==-1&&(H="squiggly-inline-unnecessary"),t.tags.indexOf(2)!==-1&&(H="squiggly-inline-deprecated")),{stickiness:1,className:a,showIfCollapsed:!0,overviewRuler:{color:f,position:gt.d.Right},minimap:Ce,zIndex:m,inlineClassName:H}},r.prototype._hasMarkerTag=function(t,a){return t.tags?t.tags.indexOf(a)>=0:!1},r=Qu([Ga(0,Wt.a),Ga(1,ho.b)],r),r}(zt.a),qu=o("9fML"),el=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),tl=function(s,r,t,a){var f=arguments.length,m=f<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,r,t,a);else for(var Ce=s.length-1;Ce>=0;Ce--)(H=s[Ce])&&(m=(f<3?H(m):f>3?H(r,t,m):H(r,t))||m);return f>3&&m&&Object.defineProperty(r,t,m),m},Ya=function(s,r){return function(t,a){r(t,a,s)}},nl=function(s){el(r,s);function r(t,a){var f=s.call(this)||this;f._contextKeyService=t,f._configurationService=a,f._accessibilitySupport=0,f._onDidChangeScreenReaderOptimized=new P.a,f._accessibilityModeEnabledContext=Xi.a.bindTo(f._contextKeyService);var m=function(){return f._accessibilityModeEnabledContext.set(f.isScreenReaderOptimized())};return f._register(f._configurationService.onDidChangeConfiguration(function(H){H.affectsConfiguration("editor.accessibilitySupport")&&(m(),f._onDidChangeScreenReaderOptimized.fire())})),m(),f.onDidChangeScreenReaderOptimized(function(){return m()}),f}return Object.defineProperty(r.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),r.prototype.isScreenReaderOptimized=function(){var t=this._configurationService.getValue("editor.accessibilitySupport");return t==="on"||t==="auto"&&this._accessibilitySupport===2},r.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},r=tl([Ya(0,_i.c),Ya(1,Ti.a)],r),r}(zt.a),il=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var H in m)m.hasOwnProperty(H)&&(f[H]=m[H])},s(t,a)};return function(r,t){s(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),hi;(function(s){var r=new jr.a,t=function(){function Ce(Te,Pe){this._serviceId=Te,this._factory=Pe,this._value=null}return Object.defineProperty(Ce.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),Ce.prototype.get=function(Te){if(!this._value){if(Te&&(this._value=Te[this._serviceId.toString()]),this._value||(this._value=this._factory(Te)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");r.set(this._serviceId,this._value)}return this._value},Ce}();s.LazyStaticService=t;var a=[];function f(Ce,Te){var Pe=new t(Ce,Te);return a.push(Pe),Pe}function m(Ce){for(var Te=new jr.a,Pe=0,ot=Object(qu.a)();Pe<ot.length;Pe++){var dt=ot[Pe],Ct=dt[0],vt=dt[1];Te.set(Ct,vt)}for(var Qt in Ce)Ce.hasOwnProperty(Qt)&&Te.set(Object(Zt.c)(Qt),Ce[Qt]);a.forEach(function(jt){return Te.set(jt.id,jt.get(Ce))});var Kt=new Va(Te,!0);return Te.set(Zt.a,Kt),[Te,Kt]}s.init=m,s.instantiationService=f(Zt.a,function(){return new Va(r,!0)});var H=new Mo;s.configurationService=f(Ti.a,function(){return H}),s.resourceConfigurationService=f(Xt,function(){return new zo(H)}),s.resourcePropertiesService=f(ln,function(){return new ps(H)}),s.contextService=f(Is.a,function(){return new xs}),s.labelService=f(zu.a,function(){return new ta}),s.telemetryService=f(Ca.a,function(){return new Br}),s.dialogService=f(ku,function(){return new hs}),s.notificationService=f(wr.a,function(){return new gs}),s.markerService=f(ho.b,function(){return new Gu}),s.modeService=f(_s.a,function(Ce){return new y}),s.standaloneThemeService=f(lo,function(){return new gu}),s.logService=f(hn.a,function(){return new hn.c}),s.modelService=f(Wt.a,function(Ce){return new rt(s.configurationService.get(Ce),s.resourcePropertiesService.get(Ce),s.standaloneThemeService.get(Ce),s.logService.get(Ce))}),s.markerDecorationsService=f(Xu.a,function(Ce){return new Ju(s.modelService.get(Ce),s.markerService.get(Ce))}),s.codeEditorService=f(Ke.a,function(Ce){return new $i(s.standaloneThemeService.get(Ce))}),s.editorProgressService=f(Co.a,function(){return new Ho}),s.storageService=f(Ua.a,function(){return new Ua.b}),s.editorWorkerService=f(Ot.a,function(Ce){return new ct(s.modelService.get(Ce),s.resourceConfigurationService.get(Ce),s.logService.get(Ce))})})(hi||(hi={}));var rl=function(s){il(r,s);function r(t,a){var f=s.call(this)||this,m=hi.init(a),H=m[0],Ce=m[1];f._serviceCollection=H,f._instantiationService=Ce;var Te=f.get(Ti.a),Pe=f.get(wr.a),ot=f.get(Ca.a),dt=f.get(Wi.c),Ct=function(cn,En){var _n=null;return a&&(_n=a[cn.toString()]),_n||(_n=En()),f._serviceCollection.set(cn,_n),_n},vt=Ct(_i.c,function(){return f._register(new bu(Te))});Ct(Xi.b,function(){return new nl(vt,Te)}),Ct(Ha.a,function(){return new Ha.b(dt)});var Qt=Ct(Ee.b,function(){return new Uo(f._instantiationService)}),Kt=Ct(Si.a,function(){return f._register(new yo(vt,Qt,ot,Pe,t))}),jt=Ct(Wa,function(){return new Rs(t)}),kt=Ct(_r.b,function(){return f._register(new ju(jt))});return Ct(_r.a,function(){var rn=new Tu(ot,Pe,kt,Kt,dt);return rn.configure({blockMouse:!1}),f._register(rn)}),Ct(gr.a,function(){return new Yu(Qt)}),Ct(Qo.a,function(){return new ri(hi.modelService.get(Wt.a))}),f}return r.prototype.get=function(t){var a=this._serviceCollection.get(t);if(!a)throw new Error("Missing service "+t);return a},r.prototype.set=function(t,a){this._serviceCollection.set(t,a)},r.prototype.has=function(t){return this._serviceCollection.has(t)},r}(zt.a);function Za(s,r,t){var a=new rl(s,r),f=null;a.has(Ht.a)||(f=new Zr(hi.modelService.get()),a.set(Ht.a,f)),a.has(W.a)||a.set(W.a,new xt(a.get(Ke.a),a.get(Ee.b)));var m=t(a);return f&&f.setEditor(m),m}function ol(s,r,t){return Za(s,t||{},function(a){return new co(s,r,a,a.get(Zt.a),a.get(Ke.a),a.get(Ee.b),a.get(_i.c),a.get(Si.a),a.get(_r.b),a.get(lo),a.get(wr.a),a.get(Ti.a),a.get(Xi.b))})}function sl(s){return hi.codeEditorService.get().onCodeEditorAdd(function(r){s(r)})}function al(s,r,t){return Za(s,t||{},function(a){return new Ao(s,r,a,a.get(Zt.a),a.get(_i.c),a.get(Si.a),a.get(_r.b),a.get(Ot.a),a.get(Ke.a),a.get(lo),a.get(wr.a),a.get(Ti.a),a.get(_r.a),a.get(Co.a),null)})}function ul(s,r){return new yn(s,r)}function Xa(s,r,t){return hi.modelService.get().createModel(s,r,t)}function ll(s,r,t){if(s=s||"",!r){var a=s.indexOf(`
`),f=s;return a!==-1&&(f=s.substring(0,a)),Xa(s,hi.modeService.get().createByFilepathOrFirstLine(t||null,f),t)}return Xa(s,hi.modeService.get().create(r),t)}function dl(s,r){hi.modelService.get().setMode(s,hi.modeService.get().create(r))}function cl(s,r,t){s&&hi.markerService.get().changeOne(r,s.uri,t)}function fl(s){return hi.markerService.get().read(s)}function hl(s){return hi.modelService.get().getModel(s)}function gl(){return hi.modelService.get().getModels()}function pl(s){return hi.modelService.get().onModelAdded(s)}function vl(s){return hi.modelService.get().onModelRemoved(s)}function ml(s){return hi.modelService.get().onModelModeChanged(function(r){s({model:r.model,oldLanguage:r.oldModeId})})}function yl(s){return J(hi.modelService.get(),s)}function Cl(s,r){return Ur.colorizeElement(hi.standaloneThemeService.get(),hi.modeService.get(),s,r)}function bl(s,r,t){return Ur.colorize(hi.modeService.get(),s,r,t)}function _l(s,r,t){return t===void 0&&(t=4),Ur.colorizeModelLine(s,r,t)}function Sl(s){var r=pt.y.get(s);return r||{getInitialState:function(){return Dt.c},tokenize:function(a,f,m){return Object(Dt.d)(s,a,f,m)}}}function wl(s,r){var t=hi.modeService.get();t.triggerMode(r);for(var a=Sl(r),f=s.split(/\r\n|\r|\n/),m=[],H=a.getInitialState(),Ce=0,Te=f.length;Ce<Te;Ce++){var Pe=f[Ce],ot=a.tokenize(Pe,H,0);m[Ce]=ot.tokens,H=ot.endState}return m}function El(s,r){hi.standaloneThemeService.get().defineTheme(s,r)}function Ol(s){hi.standaloneThemeService.get().setTheme(s)}function Dl(){Object(si.b)()}function Ll(){return{create:ol,onDidCreateEditor:sl,createDiffEditor:al,createDiffNavigator:ul,createModel:ll,setModelLanguage:dl,setModelMarkers:cl,getModelMarkers:fl,getModels:gl,getModel:hl,onDidCreateModel:pl,onWillDisposeModel:vl,onDidChangeModelLanguage:ml,createWebWorker:yl,colorizeElement:Cl,colorize:bl,colorizeModelLine:_l,tokenize:wl,defineTheme:El,setTheme:Ol,remeasureFonts:Dl,AccessibilitySupport:I,ContentWidgetPositionPreference:U,CursorChangeReason:_,DefaultEndOfLine:h,EditorAutoIndentStrategy:p,EditorOption:v,EndOfLinePreference:E,EndOfLineSequence:k,MinimapPosition:we,MouseTargetType:q,OverlayWidgetPositionPreference:X,OverviewRulerLane:ce,RenderLineNumbersType:Ne,RenderMinimap:He,ScrollbarVisibility:de,ScrollType:_e,TextEditorCursorBlinkingStyle:ve,TextEditorCursorStyle:ye,TrackedRangeStickiness:Ue,WrappingIndent:tt,ConfigurationChangedEvent:R.a,BareFontInfo:Mn.a,FontInfo:Mn.b,TextModelResolvedOptions:gt.e,FindMatch:gt.b,EditorType:Ft.a,EditorOptions:R.e}}function Ml(s,r){if(!r||!Array.isArray(r))return!1;for(var t=0,a=r;t<a.length;t++){var f=a[t];if(!s(f))return!1}return!0}function Qa(s,r){return typeof s=="boolean"?s:r}function $a(s,r){return typeof s=="string"?s:r}function Nl(s){for(var r={},t=0,a=s;t<a.length;t++){var f=a[t];r[f]=!0}return r}function Ja(s,r){r===void 0&&(r=!1),r&&(s=s.map(function(a){return a.toLowerCase()}));var t=Nl(s);return r?function(a){return t[a.toLowerCase()]!==void 0&&t.hasOwnProperty(a.toLowerCase())}:function(a){return t[a]!==void 0&&t.hasOwnProperty(a)}}function Ea(s,r){for(var t=0;r.indexOf("@")>=0&&t<5;)t++,r=r.replace(/@(\w+)/g,function(a,f){var m="";if(typeof s[f]=="string")m=s[f];else if(s[f]&&s[f]instanceof RegExp)m=s[f].source;else throw s[f]===void 0?vn(s,"language definition does not contain attribute '"+f+"', used at: "+r):vn(s,"attribute reference '"+f+"' must be a string, used at: "+r);return Tt(m)?"":"(?:"+m+")"});return new RegExp(r,s.ignoreCase?"i":"")}function Il(s,r,t,a){if(a<0)return s;if(a<r.length)return r[a];if(a>=100){a=a-100;var f=t.split(".");if(f.unshift(t),a<f.length)return f[a]}return null}function Tl(s,r,t,a){var f=-1,m=t,H=t.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);H&&(H[3]&&(f=parseInt(H[3]),H[2]&&(f=f+100)),m=H[4]);var Ce="~",Te=m;!m||m.length===0?(Ce="!=",Te=""):/^\w*$/.test(Te)?Ce="==":(H=m.match(/^(@|!@|~|!~|==|!=)(.*)$/),H&&(Ce=H[1],Te=H[2]));var Pe;if((Ce==="~"||Ce==="!~")&&/^(\w|\|)*$/.test(Te)){var ot=Ja(Te.split("|"),s.ignoreCase);Pe=function(kt){return Ce==="~"?ot(kt):!ot(kt)}}else if(Ce==="@"||Ce==="!@"){var dt=s[Te];if(!dt)throw vn(s,"the @ match target '"+Te+"' is not defined, in rule: "+r);if(!Ml(function(jt){return typeof jt=="string"},dt))throw vn(s,"the @ match target '"+Te+"' must be an array of strings, in rule: "+r);var Ct=Ja(dt,s.ignoreCase);Pe=function(kt){return Ce==="@"?Ct(kt):!Ct(kt)}}else if(Ce==="~"||Ce==="!~")if(Te.indexOf("$")<0){var vt=Ea(s,"^"+Te+"$");Pe=function(kt){return Ce==="~"?vt.test(kt):!vt.test(kt)}}else Pe=function(kt,rn,cn,En){var _n=Ea(s,"^"+Hn(s,Te,rn,cn,En)+"$");return _n.test(kt)};else if(Te.indexOf("$")<0){var Qt=Bt(s,Te);Pe=function(kt){return Ce==="=="?kt===Qt:kt!==Qt}}else{var Kt=Bt(s,Te);Pe=function(kt,rn,cn,En,_n){var Wn=Hn(s,Kt,rn,cn,En);return Ce==="=="?kt===Wn:kt!==Wn}}return f===-1?{name:t,value:a,test:function(kt,rn,cn,En){return Pe(kt,kt,rn,cn,En)}}:{name:t,value:a,test:function(kt,rn,cn,En){var _n=Il(kt,rn,cn,f);return Pe(_n||"",kt,rn,cn,En)}}}function Oa(s,r,t){if(t){if(typeof t=="string")return t;if(t.token||t.token===""){if(typeof t.token!="string")throw vn(s,"a 'token' attribute must be of type string, in rule: "+r);var a={token:t.token};if(t.token.indexOf("$")>=0&&(a.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")a.bracket=1;else if(t.bracket==="@close")a.bracket=-1;else throw vn(s,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+r);if(t.next){if(typeof t.next!="string")throw vn(s,"the next state must be a string value in rule: "+r);var f=t.next;if(!/^(@pop|@push|@popall)$/.test(f)&&(f[0]==="@"&&(f=f.substr(1)),f.indexOf("$")<0&&!Zn(s,Hn(s,f,"",[],""))))throw vn(s,"the next state '"+t.next+"' is not defined in rule: "+r);a.next=f}return typeof t.goBack=="number"&&(a.goBack=t.goBack),typeof t.switchTo=="string"&&(a.switchTo=t.switchTo),typeof t.log=="string"&&(a.log=t.log),typeof t.nextEmbedded=="string"&&(a.nextEmbedded=t.nextEmbedded,s.usesEmbedded=!0),a}else if(Array.isArray(t)){for(var m=[],H=0,Ce=t.length;H<Ce;H++)m[H]=Oa(s,r,t[H]);return{group:m}}else if(t.cases){var Te=[];for(var Pe in t.cases)if(t.cases.hasOwnProperty(Pe)){var ot=Oa(s,r,t.cases[Pe]);Pe==="@default"||Pe==="@"||Pe===""?Te.push({test:void 0,value:ot,name:Pe}):Pe==="@eos"?Te.push({test:function(vt,Qt,Kt,jt){return jt},value:ot,name:Pe}):Te.push(Tl(s,r,Pe,ot))}var dt=s.defaultToken;return{test:function(vt,Qt,Kt,jt){for(var kt=0,rn=Te;kt<rn.length;kt++){var cn=rn[kt],En=!cn.test||cn.test(vt,Qt,Kt,jt);if(En)return cn.value}return dt}}}else throw vn(s,"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 Pl=function(){function s(r){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=r}return s.prototype.setRegex=function(r,t){var a;if(typeof t=="string")a=t;else if(t instanceof RegExp)a=t.source;else throw vn(r,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=a.length>0&&a[0]==="^",this.name=this.name+": "+a,this.regex=Ea(r,"^(?:"+(this.matchOnlyAtLineStart?a.substr(1):a)+")")},s.prototype.setAction=function(r,t){this.action=Oa(r,this.name,t)},s}();function xl(s,r){if(!r||typeof r!="object")throw new Error("Monarch: expecting a language definition object");var t={};t.languageId=s,t.noThrow=!1,t.maxStack=100,t.start=typeof r.start=="string"?r.start:null,t.ignoreCase=Qa(r.ignoreCase,!1),t.tokenPostfix=$a(r.tokenPostfix,"."+t.languageId),t.defaultToken=$a(r.defaultToken,"source"),t.usesEmbedded=!1;var a=r;a.languageId=s,a.ignoreCase=t.ignoreCase,a.noThrow=t.noThrow,a.usesEmbedded=t.usesEmbedded,a.stateNames=r.tokenizer,a.defaultToken=t.defaultToken;function f(Ct,vt,Qt){for(var Kt=0,jt=Qt;Kt<jt.length;Kt++){var kt=jt[Kt],rn=kt.include;if(rn){if(typeof rn!="string")throw vn(t,"an 'include' attribute must be a string at: "+Ct);if(rn[0]==="@"&&(rn=rn.substr(1)),!r.tokenizer[rn])throw vn(t,"include target '"+rn+"' is not defined at: "+Ct);f(Ct+"."+rn,vt,r.tokenizer[rn])}else{var cn=new Pl(Ct);if(Array.isArray(kt)&&kt.length>=1&&kt.length<=3)if(cn.setRegex(a,kt[0]),kt.length>=3)if(typeof kt[1]=="string")cn.setAction(a,{token:kt[1],next:kt[2]});else if(typeof kt[1]=="object"){var En=kt[1];En.next=kt[2],cn.setAction(a,En)}else throw vn(t,"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: "+Ct);else cn.setAction(a,kt[1]);else{if(!kt.regex)throw vn(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+Ct);kt.name&&typeof kt.name=="string"&&(cn.name=kt.name),kt.matchOnlyAtStart&&(cn.matchOnlyAtLineStart=Qa(kt.matchOnlyAtLineStart,!1)),cn.setRegex(a,kt.regex),cn.setAction(a,kt.action)}vt.push(cn)}}}if(!r.tokenizer||typeof r.tokenizer!="object")throw vn(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(var m in r.tokenizer)if(r.tokenizer.hasOwnProperty(m)){t.start||(t.start=m);var H=r.tokenizer[m];t.tokenizer[m]=new Array,f("tokenizer."+m,t.tokenizer[m],H)}if(t.usesEmbedded=a.usesEmbedded,r.brackets){if(!Array.isArray(r.brackets))throw vn(t,"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 Ce=[],Te=0,Pe=r.brackets;Te<Pe.length;Te++){var ot=Pe[Te],dt=ot;if(dt&&Array.isArray(dt)&&dt.length===3&&(dt={token:dt[2],open:dt[0],close:dt[1]}),dt.open===dt.close)throw vn(t,"open and close brackets in a 'brackets' attribute must be different: "+dt.open+`
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof dt.open=="string"&&typeof dt.token=="string"&&typeof dt.close=="string")Ce.push({token:dt.token+t.tokenPostfix,open:Bt(t,dt.open),close:Bt(t,dt.close)});else throw vn(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=Ce,t.noThrow=!0,t}function Rl(s){c.a.registerLanguage(s)}function Al(){var s=[];return s=s.concat(c.a.getLanguages()),s}function Fl(s){var r=hi.modeService.get().getLanguageIdentifier(s);return r?r.id:0}function Wl(s,r){var t=hi.modeService.get().onDidCreateMode(function(a){a.getId()===s&&(t.dispose(),r())});return t}function Bl(s,r){var t=hi.modeService.get().getLanguageIdentifier(s);if(!t)throw new Error("Cannot set configuration for unknown language "+s);return Ut.a.register(t,r)}var jl=function(){function s(r){this._actual=r}return s.prototype.getInitialState=function(){return this._actual.getInitialState()},s.prototype.tokenize=function(r,t,a){throw new Error("Not supported!")},s.prototype.tokenize2=function(r,t){var a=this._actual.tokenizeEncoded(r,t);return new S.c(a.tokens,a.endState)},s}(),kl=function(){function s(r,t,a){this._standaloneThemeService=r,this._languageIdentifier=t,this._actual=a}return s.prototype.getInitialState=function(){return this._actual.getInitialState()},s.prototype._toClassicTokens=function(r,t,a){for(var f=[],m=0,H=0,Ce=r.length;H<Ce;H++){var Te=r[H],Pe=Te.startIndex;H===0?Pe=0:Pe<m&&(Pe=m),f[H]=new S.a(Pe+a,Te.scopes,t),m=Pe}return f},s.prototype.tokenize=function(r,t,a){var f=this._actual.tokenize(r,t),m=this._toClassicTokens(f.tokens,this._languageIdentifier.language,a),H;return f.endState.equals(t)?H=t:H=f.endState,new S.b(m,H)},s.prototype._toBinaryTokens=function(r,t){for(var a=this._languageIdentifier.id,f=this._standaloneThemeService.getTheme().tokenTheme,m=[],H=0,Ce=0,Te=0,Pe=r.length;Te<Pe;Te++){var ot=r[Te],dt=f.match(a,ot.scopes);if(!(H>0&&m[H-1]===dt)){var Ct=ot.startIndex;Te===0?Ct=0:Ct<Ce&&(Ct=Ce),m[H++]=Ct+t,m[H++]=dt,Ce=Ct}}for(var vt=new Uint32Array(H),Te=0;Te<H;Te++)vt[Te]=m[Te];return vt},s.prototype.tokenize2=function(r,t,a){var f=this._actual.tokenize(r,t),m=this._toBinaryTokens(f.tokens,a),H;return f.endState.equals(t)?H=t:H=f.endState,new S.c(m,H)},s}();function Vl(s){return"tokenizeEncoded"in s}function qa(s){return s&&typeof s.then=="function"}function Hl(s,r){var t=hi.modeService.get().getLanguageIdentifier(s);if(!t)throw new Error("Cannot set tokens provider for unknown language "+s);var a=function(m){return Vl(m)?new jl(m):new kl(hi.standaloneThemeService.get(),t,m)};return qa(r)?pt.y.registerPromise(s,r.then(function(f){return a(f)})):pt.y.register(s,a(r))}function Ul(s,r){var t=function(f){return Rr(hi.modeService.get(),hi.standaloneThemeService.get(),s,xl(s,f))};return qa(r)?pt.y.registerPromise(s,r.then(function(a){return t(a)})):pt.y.register(s,t(r))}function zl(s,r){return pt.t.register(s,r)}function Kl(s,r){return pt.u.register(s,r)}function Gl(s,r){return pt.w.register(s,r)}function Yl(s,r){return pt.o.register(s,{provideHover:function(a,f,m){var H=a.getWordAtPosition(f);return Promise.resolve(r.provideHover(a,f,m)).then(function(Ce){if(!!Ce)return!Ce.range&&H&&(Ce.range=new G.a(f.lineNumber,H.startColumn,f.lineNumber,H.endColumn)),Ce.range||(Ce.range=new G.a(f.lineNumber,f.column,f.lineNumber,f.column)),Ce})}})}function Zl(s,r){return pt.l.register(s,r)}function Xl(s,r){return pt.h.register(s,r)}function Ql(s,r){return pt.f.register(s,r)}function $l(s,r){return pt.p.register(s,r)}function Jl(s,r){return pt.z.register(s,r)}function ql(s,r){return pt.b.register(s,r)}function ed(s,r){return pt.a.register(s,{provideCodeActions:function(a,f,m,H){var Ce=hi.markerService.get().read({resource:a.uri}).filter(function(Te){return G.a.areIntersectingOrTouching(Te,f)});return r.provideCodeActions(a,f,{markers:Ce,only:m.only},H)}})}function td(s,r){return pt.g.register(s,r)}function nd(s,r){return pt.i.register(s,r)}function id(s,r){return pt.s.register(s,r)}function rd(s,r){return pt.r.register(s,r)}function od(s,r){return pt.d.register(s,r)}function sd(s,r){return pt.c.register(s,r)}function ad(s,r){return pt.n.register(s,r)}function ud(s,r){return pt.e.register(s,r)}function ld(s,r){return pt.v.register(s,r)}function dd(s,r){return pt.k.register(s,r)}function cd(s,r){return pt.j.register(s,r)}function fd(){return{register:Rl,getLanguages:Al,onLanguage:Wl,getEncodedLanguageId:Fl,setLanguageConfiguration:Bl,setTokensProvider:Hl,setMonarchTokensProvider:Ul,registerReferenceProvider:zl,registerRenameProvider:Kl,registerCompletionItemProvider:od,registerSignatureHelpProvider:Gl,registerHoverProvider:Yl,registerDocumentSymbolProvider:Zl,registerDocumentHighlightProvider:Xl,registerDefinitionProvider:Ql,registerImplementationProvider:$l,registerTypeDefinitionProvider:Jl,registerCodeLensProvider:ql,registerCodeActionProvider:ed,registerDocumentFormattingEditProvider:td,registerDocumentRangeFormattingEditProvider:nd,registerOnTypeFormattingEditProvider:id,registerLinkProvider:rd,registerColorProvider:sd,registerFoldingRangeProvider:ad,registerDeclarationProvider:ud,registerSelectionRangeProvider:ld,registerDocumentSemanticTokensProvider:dd,registerDocumentRangeSemanticTokensProvider:cd,DocumentHighlightKind:g,CompletionItemKind:D,CompletionItemTag:T,CompletionItemInsertTextRule:K,SymbolKind:ie,SymbolTag:$,IndentAction:z,CompletionTriggerKind:te,SignatureHelpTriggerKind:he,FoldingRangeKind:pt.m}}var ua=self;R.e.wrappingIndent.defaultValue=0,R.e.glyphMargin.defaultValue=!1,R.e.autoIndent.defaultValue=3,R.e.overviewRulerLanes.defaultValue=2;var vr=At();vr.editor=Ll(),vr.languages=fd();var hd=vr.CancellationTokenSource,gd=vr.Emitter,pd=vr.KeyCode,vd=vr.KeyMod,md=vr.Position,yd=vr.Range,Cd=vr.Selection,bd=vr.SelectionDirection,_d=vr.MarkerSeverity,Sd=vr.MarkerTag,wd=vr.Uri,Ed=vr.Token,Od=vr.editor,Dd=vr.languages;ua.monaco=vr,typeof ua.require!="undefined"&&typeof ua.require.config=="function"&&ua.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(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return o.e(206).then(o.bind(null,"v7Iz"))}})},"9XAT":function(Et,A,o){"use strict";o.r(A),o.d(A,"LanguageServiceDefaultsImpl",function(){return P});var R=o("M/lh"),re=o.n(R),ne=monaco.Emitter,P=function(){function K(D,T,te){this._onDidChange=new ne,this._languageId=D,this.setDiagnosticsOptions(T),this.setModeConfiguration(te)}return Object.defineProperty(K.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),K.prototype.setDiagnosticsOptions=function(D){this._diagnosticsOptions=D||Object.create(null),this._onDidChange.fire(this)},K.prototype.setModeConfiguration=function(D){this._modeConfiguration=D||Object.create(null),this._onDidChange.fire(this)},K}(),F={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"}},V={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},B=new P("css",F,V),G=new P("scss",F,V),x=new P("less",F,V);function S(){return{cssDefaults:B,lessDefaults:x,scssDefaults:G}}monaco.languages.css=S();function I(){return o.e(194).then(o.bind(null,"20/g"))}monaco.languages.onLanguage("less",function(){I().then(function(K){return K.setupMode(x)})}),monaco.languages.onLanguage("scss",function(){I().then(function(K){return K.setupMode(G)})}),monaco.languages.onLanguage("css",function(){I().then(function(K){return K.setupMode(B)})})},"9XeP":function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("Cg/j"),re=Object(R.c)("clipboardService")},"9Y+e":function(Et,A,o){"use strict";o.d(A,"a",function(){return R});var R=function(){function re(ne,P,F,V,B,G){this.id=ne,this.label=P,this.alias=F,this._precondition=V,this._run=B,this._contextKeyService=G}return re.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},re.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var ne=this._run();return ne||Promise.resolve(void 0)},re}()},"9fML":function(Et,A,o){"use strict";o.d(A,"b",function(){return ne}),o.d(A,"a",function(){return P});var R=o("r0BQ"),re=[];function ne(F,V,B){re.push([F,new R.a(V,[],B)])}function P(){return re}},"A+jI":function(Et,A,o){"use strict";o.d(A,"a",function(){return V}),o.d(A,"c",function(){return B}),o.d(A,"b",function(){return G});var R=o("Cg/j"),re=o("MI8n"),ne=o("pmY6"),P=o("746U"),F=function(){var x=function(I,K){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,T){D.__proto__=T}||function(D,T){for(var te in T)T.hasOwnProperty(te)&&(D[te]=T[te])},x(I,K)};return function(S,I){x(S,I);function K(){this.constructor=S}S.prototype=I===null?Object.create(I):(K.prototype=I.prototype,new K)}}(),V=Object(R.c)("storageService"),B;(function(x){x[x.NONE=0]="NONE",x[x.SHUTDOWN=1]="SHUTDOWN"})(B||(B={}));var G=function(x){F(S,x);function S(){var I=x!==null&&x.apply(this,arguments)||this;return I._onDidChangeStorage=I._register(new re.a),I.onDidChangeStorage=I._onDidChangeStorage.event,I._onWillSaveState=I._register(new re.a),I.onWillSaveState=I._onWillSaveState.event,I.globalCache=new Map,I.workspaceCache=new Map,I}return S.prototype.getCache=function(I){return I===0?this.globalCache:this.workspaceCache},S.prototype.get=function(I,K,D){var T=this.getCache(K).get(I);return Object(P.l)(T)?D:T},S.prototype.getBoolean=function(I,K,D){var T=this.getCache(K).get(I);return Object(P.l)(T)?D:T==="true"},S.prototype.store=function(I,K,D){if(Object(P.l)(K))return this.remove(I,D);var T=String(K),te=this.getCache(D).get(I);return te===T||(this.getCache(D).set(I,T),this._onDidChangeStorage.fire({scope:D,key:I})),Promise.resolve()},S.prototype.remove=function(I,K){var D=this.getCache(K).delete(I);return D&&this._onDidChangeStorage.fire({scope:K,key:I}),Promise.resolve()},S}(ne.a)},AKMP:function(Et,A,o){"use strict";o.d(A,"b",function(){return G}),o.d(A,"a",function(){return x});var R=o("EffR"),re=o("MNsG"),ne=o("D3Dy"),P=o("51f4"),F=o("XSiN"),V=o("pmY6"),B=o("CjF5");function G(S,I){var K=new F.a(I);return K.preventDefault(),{leftButton:K.leftButton,buttons:K.buttons,posx:K.posx,posy:K.posy}}var x=function(){function S(){this._hooks=new V.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}return S.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},S.prototype.stopMonitoring=function(I){if(!!this.isMonitoring()){this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var K=this._onStopCallback;this._onStopCallback=null,I&&K&&K()}},S.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},S.prototype.startMonitoring=function(I,K,D,T,te){var U=this;if(!this.isMonitoring()){this._mouseMoveEventMerger=D,this._mouseMoveCallback=T,this._onStopCallback=te;var _=P.a.getSameOriginWindowChain(),h=re.c&&B.a.pointerEvents?"pointermove":"mousemove",g=re.c&&B.a.pointerEvents?"pointerup":"mouseup",p=_.map(function(fe){return fe.window.document}),v=R.D(I);v&&p.unshift(v);for(var E=0,k=p;E<k.length;E++){var z=k[E];this._hooks.add(R.l(z,h,function(fe){if(!ne.i&&fe.buttons!==K){U.stopMonitoring(!0);return}U._mouseMoveCallback(fe)},function(fe,Se){return U._mouseMoveEventMerger(fe,Se)})),this._hooks.add(R.i(z,g,function(fe){return U.stopMonitoring(!0)}))}if(P.a.hasDifferentOriginAncestor()){var oe=_[_.length-1];this._hooks.add(R.i(oe.window.document,"mouseout",function(fe){var Se=new F.a(fe);Se.target.tagName.toLowerCase()==="html"&&U.stopMonitoring(!0)})),this._hooks.add(R.i(oe.window.document,"mouseover",function(fe){var Se=new F.a(fe);Se.target.tagName.toLowerCase()==="html"&&U.stopMonitoring(!0)})),this._hooks.add(R.i(oe.window.document.body,"mouseleave",function(fe){U.stopMonitoring(!0)}))}}},S}()},AbCa:function(Et,A,o){},ApJL:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return o.e(202).then(o.bind(null,"AoeA"))}})},BEdG:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.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 o.e(253).then(o.bind(null,"aH2L"))}})},BFtn:function(Et,A,o){"use strict";o.d(A,"a",function(){return R}),o.d(A,"b",function(){return ne});function R(P,F){for(var V=P.getCount(),B=P.findTokenIndexAtOffset(F),G=P.getLanguageId(B),x=B;x+1<V&&P.getLanguageId(x+1)===G;)x++;for(var S=B;S>0&&P.getLanguageId(S-1)===G;)S--;return new re(P,G,S,x+1,P.getStartOffset(S),P.getEndOffset(x))}var re=function(){function P(F,V,B,G,x,S){this._actual=F,this.languageId=V,this._firstTokenIndex=B,this._lastTokenIndex=G,this.firstCharOffset=x,this._lastCharOffset=S}return P.prototype.getLineContent=function(){var F=this._actual.getLineContent();return F.substring(this.firstCharOffset,this._lastCharOffset)},P.prototype.getActualLineContentBefore=function(F){var V=this._actual.getLineContent();return V.substring(0,this.firstCharOffset+F)},P.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},P.prototype.findTokenIndexAtOffset=function(F){return this._actual.findTokenIndexAtOffset(F+this.firstCharOffset)-this._firstTokenIndex},P.prototype.getStandardTokenType=function(F){return this._actual.getStandardTokenType(F+this._firstTokenIndex)},P}();function ne(P){return(P&7)!=0}},BUKB:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return o.e(249).then(o.bind(null,"xT+r"))}})},"C/vA":function(Et,A,o){"use strict";o.d(A,"a",function(){return R});function R(re){var ne=this,P=!1,F;return function(){return P||(P=!0,F=re.apply(ne,arguments)),F}}},C6rC:function(Et,A,o){},CClx:function(Et,A,o){},CHaL:function(Et,A,o){},CRAX:function(Et,A,o){"use strict";o.d(A,"a",function(){return B}),o.d(A,"b",function(){return h});var R=o("3/fG"),re=o("MI8n"),ne=o("ic2d"),P=o("746U"),F=o("3Rsk"),V=o("QDVR"),B={Configuration:"base.contributions.configuration"},G={properties:{},patternProperties:{}},x={properties:{},patternProperties:{}},S={properties:{},patternProperties:{}},I={properties:{},patternProperties:{}},K={properties:{},patternProperties:{}},D={properties:{},patternProperties:{}},T="vscode://schemas/settings/resourceLanguage",te=ne.a.as(F.a.JSONContribution),U=function(){function E(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new re.a,this._onDidUpdateConfiguration=new re.a,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:R.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={},te.registerSchema(T,this.resourceLanguageSettingsSchema)}return E.prototype.registerConfiguration=function(k,z){z===void 0&&(z=!0),this.registerConfigurations([k],z)},E.prototype.registerConfigurations=function(k,z){var oe=this;z===void 0&&(z=!0);var fe=[];k.forEach(function(Se){fe.push.apply(fe,oe.validateAndRegisterProperties(Se,z)),oe.configurationContributors.push(Se),oe.registerJSONConfiguration(Se)}),te.registerSchema(T,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(fe)},E.prototype.registerOverrideIdentifiers=function(k){for(var z=0,oe=k;z<oe.length;z++){var fe=oe[z];this.overrideIdentifiers.add(fe)}this.updateOverridePropertyPatternKey()},E.prototype.validateAndRegisterProperties=function(k,z,oe){z===void 0&&(z=!0),oe===void 0&&(oe=3),oe=P.l(k.scope)?oe:k.scope;var fe=[],Se=k.properties;if(Se)for(var we in Se){if(z&&v(we)){delete Se[we];continue}var q=Se[we],X=q.default;if(P.k(X)&&(q.default=g(q.type)),h.test(we)?q.scope=void 0:q.scope=P.l(q.scope)?oe:q.scope,Se[we].hasOwnProperty("included")&&!Se[we].included){this.excludedConfigurationProperties[we]=Se[we],delete Se[we];continue}else this.configurationProperties[we]=Se[we];fe.push(we)}var ce=k.allOf;if(ce)for(var Ne=0,He=ce;Ne<He.length;Ne++){var _e=He[Ne];fe.push.apply(fe,this.validateAndRegisterProperties(_e,z,oe))}return fe},E.prototype.getConfigurationProperties=function(){return this.configurationProperties},E.prototype.registerJSONConfiguration=function(k){var z=this,oe=function fe(Se){var we=Se.properties;if(we)for(var q in we)switch(G.properties[q]=we[q],we[q].scope){case 1:x.properties[q]=we[q];break;case 2:S.properties[q]=we[q];break;case 6:I.properties[q]=we[q];break;case 3:K.properties[q]=we[q];break;case 4:D.properties[q]=we[q];break;case 5:D.properties[q]=we[q],z.resourceLanguageSettingsSchema.properties[q]=we[q];break}var X=Se.allOf;X&&X.forEach(fe)};oe(k)},E.prototype.updateOverridePropertyPatternKey=function(){for(var k,z=0,oe=Object(V.e)(this.overrideIdentifiers);z<oe.length;z++){var fe=oe[z],Se="["+fe+"]",we={type:"object",description:R.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:R.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:T,default:(k=this.defaultOverridesConfigurationNode.properties[Se])===null||k===void 0?void 0:k.default};G.properties[Se]=we,x.properties[Se]=we,S.properties[Se]=we,I.properties[Se]=we,K.properties[Se]=we,D.properties[Se]=we}this._onDidSchemaChange.fire()},E}(),_="\\[.*\\]$",h=new RegExp(_);function g(E){var k=Array.isArray(E)?E[0]:E;switch(k){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var p=new U;ne.a.add(B.Configuration,p);function v(E){return h.test(E)?R.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",E):p.getConfigurationProperties()[E]!==void 0?R.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",E):null}},CZ1j:function(Et,A,o){"use strict";o.d(A,"b",function(){return R}),o.d(A,"a",function(){return re});function R(ne){return ne<0?0:ne>255?255:ne|0}function re(ne){return ne<0?0:ne>4294967295?4294967295:ne|0}},CdFp:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return o.e(197).then(o.bind(null,"6Xso"))}})},"Cg/j":function(Et,A,o){"use strict";o.d(A,"b",function(){return R}),o.d(A,"a",function(){return re}),o.d(A,"c",function(){return P}),o.d(A,"d",function(){return F});var R;(function(V){V.serviceIds=new Map,V.DI_TARGET="$di$target",V.DI_DEPENDENCIES="$di$dependencies";function B(G){return G[V.DI_DEPENDENCIES]||[]}V.getServiceDependencies=B})(R||(R={}));var re=P("instantiationService");function ne(V,B,G,x){B[R.DI_TARGET]===B?B[R.DI_DEPENDENCIES].push({id:V,index:G,optional:x}):(B[R.DI_DEPENDENCIES]=[{id:V,index:G,optional:x}],B[R.DI_TARGET]=B)}function P(V){if(R.serviceIds.has(V))return R.serviceIds.get(V);var B=function G(x,S,I){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ne(G,x,I,!1)};return B.toString=function(){return V},R.serviceIds.set(V,B),B}function F(V){return function(B,G,x){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ne(V,B,x,!0)}}},CjF5:function(Et,A,o){"use strict";o.d(A,"a",function(){return ne});var R=o("D3Dy"),re=o("MNsG"),ne={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(R.i)return!1;if(R.e){var P=navigator.userAgent.indexOf("Edge/"),F=parseInt(navigator.userAgent.substring(P+5,navigator.userAgent.indexOf(".",P)),10);if(!F||F>=12&&F<=16)return!1}return!0}()},keyboard:function(){return re.f||R.l?0:navigator.keyboard||R.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(Et,A,o){},Comh:function(Et,A,o){"use strict";o.d(A,"b",function(){return P}),o.d(A,"a",function(){return F});var R=o("N0LK"),re=o("cGHE"),ne=o("aokT"),P=function(){function V(B,G,x,S,I){this.value=B,this.selectionStart=G,this.selectionEnd=x,this.selectionStartPosition=S,this.selectionEndPosition=I}return V.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},V.readFromTextArea=function(B){return new V(B.getValue(),B.getSelectionStart(),B.getSelectionEnd(),null,null)},V.prototype.collapseSelection=function(){return new V(this.value,this.value.length,this.value.length,null,null)},V.prototype.writeToTextArea=function(B,G,x){G.setValue(B,this.value),x&&G.setSelectionRange(B,this.selectionStart,this.selectionEnd)},V.prototype.deduceEditorPosition=function(B){if(B<=this.selectionStart){var G=this.value.substring(B,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,G,-1)}if(B>=this.selectionEnd){var G=this.value.substring(this.selectionEnd,B);return this._finishDeduceEditorPosition(this.selectionEndPosition,G,1)}var x=this.value.substring(this.selectionStart,B);if(x.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,x,1);var S=this.value.substring(B,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,S,-1)},V.prototype._finishDeduceEditorPosition=function(B,G,x){for(var S=0,I=-1;(I=G.indexOf(`
`,I+1))!==-1;)S++;return[B,x*G.length,S]},V.selectedText=function(B){return new V(B,0,B.length,null,null)},V.deduceInput=function(B,G,x){if(!B)return{text:"",replaceCharCnt:0};var S=B.value,I=B.selectionStart,K=B.selectionEnd,D=G.value,T=G.selectionStart,te=G.selectionEnd,U=S.substring(K),_=D.substring(te),h=R.d(U,_);D=D.substring(0,D.length-h),S=S.substring(0,S.length-h);var g=S.substring(0,I),p=D.substring(0,T),v=R.c(g,p);if(D=D.substring(v),S=S.substring(v),T-=v,I-=v,te-=v,K-=v,x&&T===te&&S.length>0){var E=null;if(T===D.length?R.M(D,S)&&(E=D.substring(S.length)):R.m(D,S)&&(E=D.substring(0,D.length-S.length)),E!==null&&E.length>0&&(/\uFE0F/.test(E)||R.g(E)))return{text:E,replaceCharCnt:0}}if(T===te){if(S===D&&I===0&&K===S.length&&T===D.length&&D.indexOf(`
`)===-1&&R.h(D))return{text:"",replaceCharCnt:0};var k=g.length-v;return{text:D,replaceCharCnt:k}}var z=K-I;return{text:D,replaceCharCnt:z}},V.EMPTY=new V("",0,0,null,null),V}(),F=function(){function V(){}return V._getPageOfLine=function(B,G){return Math.floor((B-1)/G)},V._getRangeForPage=function(B,G){var x=B*G,S=x+1,I=x+G;return new ne.a(S,1,I+1,1)},V.fromEditorSelection=function(B,G,x,S,I){var K=V._getPageOfLine(x.startLineNumber,S),D=V._getRangeForPage(K,S),T=V._getPageOfLine(x.endLineNumber,S),te=V._getRangeForPage(T,S),U=D.intersectRanges(new ne.a(1,1,x.startLineNumber,x.startColumn)),_=G.getValueInRange(U,1),h=G.getLineCount(),g=G.getLineMaxColumn(h),p=te.intersectRanges(new ne.a(x.endLineNumber,x.endColumn,h,g)),v=G.getValueInRange(p,1),E;if(K===T||K+1===T)E=G.getValueInRange(x,1);else{var k=D.intersectRanges(x),z=te.intersectRanges(x);E=G.getValueInRange(k,1)+String.fromCharCode(8230)+G.getValueInRange(z,1)}if(I){var oe=500;_.length>oe&&(_=_.substring(_.length-oe,_.length)),v.length>oe&&(v=v.substring(0,oe)),E.length>2*oe&&(E=E.substring(0,oe)+String.fromCharCode(8230)+E.substring(E.length-oe,E.length))}return new P(_+E+v,_.length,_.length+E.length,new re.a(x.startLineNumber,x.startColumn),new re.a(x.endLineNumber,x.endColumn))},V}()},D3Dy:function(Et,A,o){"use strict";o.d(A,"c",function(){return ne}),o.d(A,"b",function(){return P}),o.d(A,"o",function(){return F}),o.d(A,"a",function(){return V}),o.d(A,"i",function(){return G}),o.d(A,"e",function(){return x}),o.d(A,"f",function(){return S}),o.d(A,"h",function(){return I}),o.d(A,"m",function(){return K}),o.d(A,"d",function(){return D}),o.d(A,"k",function(){return T}),o.d(A,"n",function(){return te}),o.d(A,"j",function(){return U}),o.d(A,"g",function(){return _}),o.d(A,"l",function(){return h});var R=o("MI8n"),re=function(){function g(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new R.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return g.prototype.getZoomLevel=function(){return this._zoomLevel},g.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},g.prototype.getPixelRatio=function(){var p=document.createElement("canvas").getContext("2d"),v=window.devicePixelRatio||1,E=p.webkitBackingStorePixelRatio||p.mozBackingStorePixelRatio||p.msBackingStorePixelRatio||p.oBackingStorePixelRatio||p.backingStorePixelRatio||1;return v/E},g.INSTANCE=new g,g}();function ne(){return re.INSTANCE.getZoomLevel()}function P(){return re.INSTANCE.getTimeSinceLastZoomLevelChanged()}function F(g){return re.INSTANCE.onDidChangeZoomLevel(g)}function V(){return re.INSTANCE.getPixelRatio()}var B=navigator.userAgent,G=B.indexOf("Trident")>=0,x=B.indexOf("Edge/")>=0,S=G||x,I=B.indexOf("Firefox")>=0,K=B.indexOf("AppleWebKit")>=0,D=B.indexOf("Chrome")>=0,T=!D&&B.indexOf("Safari")>=0,te=!D&&!T&&K,U=B.indexOf("iPad")>=0||T&&navigator.maxTouchPoints>0,_=x&&B.indexOf("WebView/")>=0,h=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},DTDp:function(Et,A,o){},Dvnd:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return o.e(215).then(o.bind(null,"y0OK"))}})},"E+ie":function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return o.e(205).then(o.bind(null,"p+q7"))}})},E4kL:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return o.e(254).then(o.bind(null,"EaLm"))}})},EIAu:function(Et,A,o){"use strict";o.d(A,"b",function(){return F}),o.d(A,"a",function(){return U});var R=o("N0LK"),re=o("aokT"),ne=function(){function _(h,g,p,v,E,k){this.languageIdentifier=h,this.index=g,this.open=p,this.close=v,this.forwardRegex=E,this.reversedRegex=k,this._openSet=_._toSet(this.open),this._closeSet=_._toSet(this.close)}return _.prototype.isOpen=function(h){return this._openSet.has(h)},_.prototype.isClose=function(h){return this._closeSet.has(h)},_._toSet=function(h){for(var g=new Set,p=0,v=h;p<v.length;p++){var E=v[p];g.add(E)}return g},_}();function P(_){var h=_.length;_=_.map(function(He){return[He[0].toLowerCase(),He[1].toLowerCase()]});for(var g=[],p=0;p<h;p++)g[p]=p;for(var v=function(_e,de){var se=_e[0],he=_e[1],ie=de[0],$=de[1];return se===ie||se===$||he===ie||he===$},E=function(_e,de){for(var se=Math.min(_e,de),he=Math.max(_e,de),ie=0;ie<h;ie++)g[ie]===he&&(g[ie]=se)},p=0;p<h;p++)for(var k=_[p],z=p+1;z<h;z++){var oe=_[z];v(k,oe)&&E(g[p],g[z])}for(var fe=[],Se=0;Se<h;Se++){for(var we=[],q=[],p=0;p<h;p++)if(g[p]===Se){var X=_[p],ce=X[0],Ne=X[1];we.push(ce),q.push(Ne)}we.length>0&&fe.push({open:we,close:q})}return fe}var F=function(){function _(h,g){var p=P(g);this.brackets=p.map(function(X,ce){return new ne(h,ce,X.open,X.close,x(X.open,X.close,p,ce),S(X.open,X.close,p,ce))}),this.forwardRegex=I(this.brackets),this.reversedRegex=K(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var v=0,E=this.brackets;v<E.length;v++){for(var k=E[v],z=0,oe=k.open;z<oe.length;z++){var fe=oe[z];this.textIsBracket[fe]=k,this.textIsOpenBracket[fe]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,fe.length)}for(var Se=0,we=k.close;Se<we.length;Se++){var q=we[Se];this.textIsBracket[q]=k,this.textIsOpenBracket[q]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,q.length)}}}return _}();function V(_,h,g,p){for(var v=0,E=h.length;v<E;v++)if(v!==g){for(var k=h[v],z=0,oe=k.open;z<oe.length;z++){var fe=oe[z];fe.indexOf(_)>=0&&p.push(fe)}for(var Se=0,we=k.close;Se<we.length;Se++){var q=we[Se];q.indexOf(_)>=0&&p.push(q)}}}function B(_,h){return _.length-h.length}function G(_){if(_.length<=1)return _;for(var h=[],g=new Set,p=0,v=_;p<v.length;p++){var E=v[p];g.has(E)||(h.push(E),g.add(E))}return h}function x(_,h,g,p){var v=[];v=v.concat(_),v=v.concat(h);for(var E=0,k=v.length;E<k;E++)V(v[E],g,p,v);return v=G(v),v.sort(B),v.reverse(),T(v)}function S(_,h,g,p){var v=[];v=v.concat(_),v=v.concat(h);for(var E=0,k=v.length;E<k;E++)V(v[E],g,p,v);return v=G(v),v.sort(B),v.reverse(),T(v.map(te))}function I(_){for(var h=[],g=0,p=_;g<p.length;g++){for(var v=p[g],E=0,k=v.open;E<k.length;E++){var z=k[E];h.push(z)}for(var oe=0,fe=v.close;oe<fe.length;oe++){var Se=fe[oe];h.push(Se)}}return h=G(h),T(h)}function K(_){for(var h=[],g=0,p=_;g<p.length;g++){for(var v=p[g],E=0,k=v.open;E<k.length;E++){var z=k[E];h.push(z)}for(var oe=0,fe=v.close;oe<fe.length;oe++){var Se=fe[oe];h.push(Se)}}return h=G(h),T(h.map(te))}function D(_){var h=/^[\w ]+$/.test(_);return _=R.p(_),h?"\\b"+_+"\\b":_}function T(_){var h="("+_.map(D).join(")|(")+")";return R.l(h,!0)}var te=function(){function _(p){for(var v="",E=p.length-1;E>=0;E--)v+=p.charAt(E);return v}var h=null,g=null;return function(v){return h!==v&&(h=v,g=_(h)),g}}(),U=function(){function _(){}return _._findPrevBracketInText=function(h,g,p,v){var E=p.match(h);if(!E)return null;var k=p.length-(E.index||0),z=E[0].length,oe=v+k;return new re.a(g,oe-z+1,g,oe+1)},_.findPrevBracketInRange=function(h,g,p,v,E){var k=te(p),z=k.substring(p.length-E,p.length-v);return this._findPrevBracketInText(h,g,z,v)},_.findNextBracketInText=function(h,g,p,v){var E=p.match(h);if(!E)return null;var k=E.index||0,z=E[0].length;if(z===0)return null;var oe=v+k;return new re.a(g,oe+1,g,oe+1+z)},_.findNextBracketInRange=function(h,g,p,v,E){var k=p.substring(v,E);return this.findNextBracketInText(h,g,k,v)},_}()},EOst:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return o.e(251).then(o.bind(null,"87dK"))}})},"EPS+":function(Et,A,o){},EWX2:function(Et,A,o){"use strict";o.d(A,"a",function(){return F}),o.d(A,"b",function(){return x});var R=o("bY76"),re=o("gslv"),ne=o("Cg/j"),P=o("QDVR"),F=Object(ne.c)("contextService"),V;(function(S){function I(K){return K&&typeof K=="object"&&typeof K.id=="string"&&Array.isArray(K.folders)}S.isIWorkspace=I})(V||(V={}));var B;(function(S){function I(K){return K&&typeof K=="object"&&R.a.isUri(K.uri)&&typeof K.name=="string"&&typeof K.toResource=="function"}S.isIWorkspaceFolder=I})(B||(B={}));var G=function(){function S(I,K,D){K===void 0&&(K=[]),D===void 0&&(D=null),this._id=I,this._configuration=D,this._foldersMap=P.c.forPaths(),this.folders=K}return Object.defineProperty(S.prototype,"folders",{get:function(){return this._folders},set:function(K){this._folders=K,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"configuration",{get:function(){return this._configuration},set:function(K){this._configuration=K},enumerable:!0,configurable:!0}),S.prototype.getFolder=function(I){return I&&this._foldersMap.findSubstr(I.with({scheme:I.scheme,authority:I.authority,path:I.path}).toString())||null},S.prototype.updateFoldersMap=function(){this._foldersMap=P.c.forPaths();for(var I=0,K=this.folders;I<K.length;I++){var D=K[I];this._foldersMap.set(D.uri.toString(),D)}},S.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}},S}(),x=function(){function S(I,K){this.raw=K,this.uri=I.uri,this.index=I.index,this.name=I.name}return S.prototype.toResource=function(I){return re.f(this.uri,I)},S.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},S}()},EffR:function(Et,A,o){"use strict";o.d(A,"s",function(){return U}),o.d(A,"Q",function(){return _}),o.d(A,"L",function(){return h}),o.d(A,"H",function(){return E}),o.d(A,"e",function(){return k}),o.d(A,"f",function(){return z}),o.d(A,"O",function(){return oe}),o.d(A,"P",function(){return fe}),o.d(A,"X",function(){return Se}),o.d(A,"i",function(){return q}),o.d(A,"n",function(){return Ne}),o.d(A,"m",function(){return He}),o.d(A,"g",function(){return _e}),o.d(A,"h",function(){return de}),o.d(A,"j",function(){return se}),o.d(A,"k",function(){return he}),o.d(A,"T",function(){return ve}),o.d(A,"V",function(){return ye}),o.d(A,"l",function(){return Yt}),o.d(A,"y",function(){return Ke}),o.d(A,"x",function(){return Ye}),o.d(A,"E",function(){return We}),o.d(A,"B",function(){return Qe}),o.d(A,"d",function(){return Ee}),o.d(A,"G",function(){return W}),o.d(A,"A",function(){return ee}),o.d(A,"z",function(){return Ae}),o.d(A,"F",function(){return me}),o.d(A,"J",function(){return Me}),o.d(A,"w",function(){return Re}),o.d(A,"M",function(){return nt}),o.d(A,"D",function(){return St}),o.d(A,"v",function(){return xt}),o.d(A,"u",function(){return on}),o.d(A,"N",function(){return On}),o.d(A,"K",function(){return yn}),o.d(A,"c",function(){return Mn}),o.d(A,"b",function(){return Ft}),o.d(A,"U",function(){return gt}),o.d(A,"S",function(){return pt}),o.d(A,"Y",function(){return Ot}),o.d(A,"p",function(){return Ht}),o.d(A,"a",function(){return un}),o.d(A,"W",function(){return Sn}),o.d(A,"I",function(){return Ln}),o.d(A,"R",function(){return Gn}),o.d(A,"C",function(){return Jn}),o.d(A,"t",function(){return $n}),o.d(A,"Z",function(){return pi}),o.d(A,"o",function(){return Kn}),o.d(A,"r",function(){return yi}),o.d(A,"q",function(){return vi});var R=o("D3Dy"),re=o("4y0V"),ne=o("uDWl"),P=o("XSiN"),F=o("X+cX"),V=o("/cxE"),B=o("MI8n"),G=o("pmY6"),x=o("MNsG"),S=o("6OMU"),I=o("tYmi"),K=o("CjF5"),D=function(){var mt=function(Ut,tn){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Vt,wn){Vt.__proto__=wn}||function(Vt,wn){for(var xn in wn)wn.hasOwnProperty(xn)&&(Vt[xn]=wn[xn])},mt(Ut,tn)};return function(Nt,Ut){mt(Nt,Ut);function tn(){this.constructor=Nt}Nt.prototype=Ut===null?Object.create(Ut):(tn.prototype=Ut.prototype,new tn)}}(),T=function(){return T=Object.assign||function(mt){for(var Nt,Ut=1,tn=arguments.length;Ut<tn;Ut++){Nt=arguments[Ut];for(var Vt in Nt)Object.prototype.hasOwnProperty.call(Nt,Vt)&&(mt[Vt]=Nt[Vt])}return mt},T.apply(this,arguments)},te=function(){for(var mt=0,Nt=0,Ut=arguments.length;Nt<Ut;Nt++)mt+=arguments[Nt].length;for(var tn=Array(mt),Vt=0,Nt=0;Nt<Ut;Nt++)for(var wn=arguments[Nt],xn=0,kn=wn.length;xn<kn;xn++,Vt++)tn[Vt]=wn[xn];return tn};function U(mt){for(;mt.firstChild;)mt.removeChild(mt.firstChild)}function _(mt){mt.parentNode&&mt.parentNode.removeChild(mt)}function h(mt){for(;mt;){if(mt===document.body)return!0;mt=mt.parentNode||mt.host}return!1}var g=new(function(){function mt(){this._lastStart=-1,this._lastEnd=-1}return mt.prototype._findClassName=function(Nt,Ut){var tn=Nt.className;if(!tn){this._lastStart=-1;return}Ut=Ut.trim();var Vt=tn.length,wn=Ut.length;if(wn===0){this._lastStart=-1;return}if(Vt<wn){this._lastStart=-1;return}if(tn===Ut){this._lastStart=0,this._lastEnd=Vt;return}for(var xn=-1,kn;(xn=tn.indexOf(Ut,xn+1))>=0;){if(kn=xn+wn,(xn===0||tn.charCodeAt(xn-1)===32)&&tn.charCodeAt(kn)===32){this._lastStart=xn,this._lastEnd=kn+1;return}if(xn>0&&tn.charCodeAt(xn-1)===32&&kn===Vt){this._lastStart=xn-1,this._lastEnd=kn;return}if(xn===0&&kn===Vt){this._lastStart=0,this._lastEnd=kn;return}}this._lastStart=-1},mt.prototype.hasClass=function(Nt,Ut){return this._findClassName(Nt,Ut),this._lastStart!==-1},mt.prototype.addClasses=function(Nt){for(var Ut=this,tn=[],Vt=1;Vt<arguments.length;Vt++)tn[Vt-1]=arguments[Vt];tn.forEach(function(wn){return wn.split(" ").forEach(function(xn){return Ut.addClass(Nt,xn)})})},mt.prototype.addClass=function(Nt,Ut){Nt.className?(this._findClassName(Nt,Ut),this._lastStart===-1&&(Nt.className=Nt.className+" "+Ut)):Nt.className=Ut},mt.prototype.removeClass=function(Nt,Ut){this._findClassName(Nt,Ut),this._lastStart!==-1&&(Nt.className=Nt.className.substring(0,this._lastStart)+Nt.className.substring(this._lastEnd))},mt.prototype.removeClasses=function(Nt){for(var Ut=this,tn=[],Vt=1;Vt<arguments.length;Vt++)tn[Vt-1]=arguments[Vt];tn.forEach(function(wn){return wn.split(" ").forEach(function(xn){return Ut.removeClass(Nt,xn)})})},mt.prototype.toggleClass=function(Nt,Ut,tn){this._findClassName(Nt,Ut),this._lastStart!==-1&&(tn===void 0||!tn)&&this.removeClass(Nt,Ut),this._lastStart===-1&&(tn===void 0||tn)&&this.addClass(Nt,Ut)},mt}()),p=new(function(){function mt(){}return mt.prototype.hasClass=function(Nt,Ut){return Boolean(Ut)&&Nt.classList&&Nt.classList.contains(Ut)},mt.prototype.addClasses=function(Nt){for(var Ut=this,tn=[],Vt=1;Vt<arguments.length;Vt++)tn[Vt-1]=arguments[Vt];tn.forEach(function(wn){return wn.split(" ").forEach(function(xn){return Ut.addClass(Nt,xn)})})},mt.prototype.addClass=function(Nt,Ut){Ut&&Nt.classList&&Nt.classList.add(Ut)},mt.prototype.removeClass=function(Nt,Ut){Ut&&Nt.classList&&Nt.classList.remove(Ut)},mt.prototype.removeClasses=function(Nt){for(var Ut=this,tn=[],Vt=1;Vt<arguments.length;Vt++)tn[Vt-1]=arguments[Vt];tn.forEach(function(wn){return wn.split(" ").forEach(function(xn){return Ut.removeClass(Nt,xn)})})},mt.prototype.toggleClass=function(Nt,Ut,tn){Nt.classList&&Nt.classList.toggle(Ut,tn)},mt}()),v=R.i?g:p,E=v.hasClass.bind(v),k=v.addClass.bind(v),z=v.addClasses.bind(v),oe=v.removeClass.bind(v),fe=v.removeClasses.bind(v),Se=v.toggleClass.bind(v),we=function(){function mt(Nt,Ut,tn,Vt){this._node=Nt,this._type=Ut,this._handler=tn,this._options=Vt||!1,this._node.addEventListener(this._type,this._handler,this._options)}return mt.prototype.dispose=function(){!this._handler||(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)},mt}();function q(mt,Nt,Ut,tn){return new we(mt,Nt,Ut,tn)}function X(mt){return function(Nt){return mt(new P.a(Nt))}}function ce(mt){return function(Nt){return mt(new ne.a(Nt))}}var Ne=function(Nt,Ut,tn,Vt){var wn=tn;return Ut==="click"||Ut==="mousedown"?wn=X(tn):(Ut==="keydown"||Ut==="keypress"||Ut==="keyup")&&(wn=ce(tn)),q(Nt,Ut,wn,Vt)},He=function(Nt,Ut,tn){var Vt=X(Ut);return _e(Nt,Vt,tn)};function _e(mt,Nt,Ut){return q(mt,x.c&&K.a.pointerEvents?Mn.POINTER_DOWN:Mn.MOUSE_DOWN,Nt,Ut)}function de(mt,Nt,Ut){return q(mt,x.c&&K.a.pointerEvents?Mn.POINTER_UP:Mn.MOUSE_UP,Nt,Ut)}function se(mt,Nt){return q(mt,"mouseout",function(Ut){for(var tn=Ut.relatedTarget;tn&&tn!==mt;)tn=tn.parentNode;tn!==mt&&Nt(Ut)})}function he(mt,Nt){return q(mt,"pointerout",function(Ut){for(var tn=Ut.relatedTarget;tn&&tn!==mt;)tn=tn.parentNode;tn!==mt&&Nt(Ut)})}var ie=null;function $(mt){if(!ie){var Nt=function(tn){return setTimeout(function(){return tn(new Date().getTime())},0)};ie=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||Nt}return ie.call(self,mt)}var ve,ye,Ue=function(){function mt(Nt,Ut){Ut===void 0&&(Ut=0),this._runner=Nt,this.priority=Ut,this._canceled=!1}return mt.prototype.dispose=function(){this._canceled=!0},mt.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(Nt){Object(V.e)(Nt)}},mt.sort=function(Nt,Ut){return Ut.priority-Nt.priority},mt}();(function(){var mt=[],Nt=null,Ut=!1,tn=!1,Vt=function(){for(Ut=!1,Nt=mt,mt=[],tn=!0;Nt.length>0;){Nt.sort(Ue.sort);var xn=Nt.shift();xn.execute()}tn=!1};ye=function(xn,kn){kn===void 0&&(kn=0);var Fn=new Ue(xn,kn);return mt.push(Fn),Ut||(Ut=!0,$(Vt)),Fn},ve=function(xn,kn){if(tn){var Fn=new Ue(xn,kn);return Nt.push(Fn),Fn}else return ye(xn,kn)}})();var tt=16,_t=function(Nt,Ut){return Ut},At=function(mt){D(Nt,mt);function Nt(Ut,tn,Vt,wn,xn){wn===void 0&&(wn=_t),xn===void 0&&(xn=tt);var kn=mt.call(this)||this,Fn=null,oi=0,ci=kn._register(new F.e),Ui=function(){oi=new Date().getTime(),Vt(Fn),Fn=null};return kn._register(q(Ut,tn,function(rr){Fn=wn(Fn,rr);var Xn=new Date().getTime()-oi;Xn>=xn?(ci.cancel(),Ui()):ci.setIfNotSet(Ui,xn-Xn)})),kn}return Nt}(G.a);function Yt(mt,Nt,Ut,tn,Vt){return new At(mt,Nt,Ut,tn,Vt)}function Ke(mt){return document.defaultView.getComputedStyle(mt,null)}function Ye(mt){if(mt!==document.body)return new Ze(mt.clientWidth,mt.clientHeight);if(x.c&&window.visualViewport){var Nt=window.visualViewport.width,Ut=window.visualViewport.height-(R.l?20+4:0);return new Ze(Nt,Ut)}if(window.innerWidth&&window.innerHeight)return new Ze(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Ze(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Ze(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var Xe=function(){function mt(){}return mt.convertToPixels=function(Nt,Ut){return parseFloat(Ut)||0},mt.getDimension=function(Nt,Ut,tn){var Vt=Ke(Nt),wn="0";return Vt&&(Vt.getPropertyValue?wn=Vt.getPropertyValue(Ut):wn=Vt.getAttribute(tn)),mt.convertToPixels(Nt,wn)},mt.getBorderLeftWidth=function(Nt){return mt.getDimension(Nt,"border-left-width","borderLeftWidth")},mt.getBorderRightWidth=function(Nt){return mt.getDimension(Nt,"border-right-width","borderRightWidth")},mt.getBorderTopWidth=function(Nt){return mt.getDimension(Nt,"border-top-width","borderTopWidth")},mt.getBorderBottomWidth=function(Nt){return mt.getDimension(Nt,"border-bottom-width","borderBottomWidth")},mt.getPaddingLeft=function(Nt){return mt.getDimension(Nt,"padding-left","paddingLeft")},mt.getPaddingRight=function(Nt){return mt.getDimension(Nt,"padding-right","paddingRight")},mt.getPaddingTop=function(Nt){return mt.getDimension(Nt,"padding-top","paddingTop")},mt.getPaddingBottom=function(Nt){return mt.getDimension(Nt,"padding-bottom","paddingBottom")},mt.getMarginLeft=function(Nt){return mt.getDimension(Nt,"margin-left","marginLeft")},mt.getMarginTop=function(Nt){return mt.getDimension(Nt,"margin-top","marginTop")},mt.getMarginRight=function(Nt){return mt.getDimension(Nt,"margin-right","marginRight")},mt.getMarginBottom=function(Nt){return mt.getDimension(Nt,"margin-bottom","marginBottom")},mt}(),Ze=function(){function mt(Nt,Ut){this.width=Nt,this.height=Ut}return mt}();function We(mt){for(var Nt=mt.offsetParent,Ut=mt.offsetTop,tn=mt.offsetLeft;(mt=mt.parentNode)!==null&&mt!==document.body&&mt!==document.documentElement;){Ut-=mt.scrollTop;var Vt=ge(mt)?null:Ke(mt);Vt&&(tn-=Vt.direction!=="rtl"?mt.scrollLeft:-mt.scrollLeft),mt===Nt&&(tn+=Xe.getBorderLeftWidth(mt),Ut+=Xe.getBorderTopWidth(mt),Ut+=mt.offsetTop,tn+=mt.offsetLeft,Nt=mt.offsetParent)}return{left:tn,top:Ut}}function Qe(mt){var Nt=mt.getBoundingClientRect();return{left:Nt.left+Ee.scrollX,top:Nt.top+Ee.scrollY,width:Nt.width,height:Nt.height}}var Ee=new(function(){function mt(){}return Object.defineProperty(mt.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(mt.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),mt}());function W(mt){var Nt=Xe.getMarginLeft(mt)+Xe.getMarginRight(mt);return mt.offsetWidth+Nt}function ee(mt){var Nt=Xe.getBorderLeftWidth(mt)+Xe.getBorderRightWidth(mt),Ut=Xe.getPaddingLeft(mt)+Xe.getPaddingRight(mt);return mt.offsetWidth-Nt-Ut}function Ae(mt){var Nt=Xe.getBorderTopWidth(mt)+Xe.getBorderBottomWidth(mt),Ut=Xe.getPaddingTop(mt)+Xe.getPaddingBottom(mt);return mt.offsetHeight-Nt-Ut}function me(mt){var Nt=Xe.getMarginTop(mt)+Xe.getMarginBottom(mt);return mt.offsetHeight+Nt}function Me(mt,Nt){for(;mt;){if(mt===Nt)return!0;mt=mt.parentNode}return!1}function Re(mt,Nt,Ut){for(;mt&&mt.nodeType===mt.ELEMENT_NODE;){if(E(mt,Nt))return mt;if(Ut){if(typeof Ut=="string"){if(E(mt,Ut))return null}else if(mt===Ut)return null}mt=mt.parentNode}return null}function ge(mt){return mt&&!!mt.host&&!!mt.mode}function nt(mt){return!!St(mt)}function St(mt){for(;mt.parentNode;){if(mt===document.body)return null;mt=mt.parentNode}return ge(mt)?mt:null}function xt(mt){mt===void 0&&(mt=document.getElementsByTagName("head")[0]);var Nt=document.createElement("style");return Nt.type="text/css",Nt.media="screen",mt.appendChild(Nt),Nt}var Mt=null;function zt(){return Mt||(Mt=xt()),Mt}function Gt(mt){return mt&&mt.sheet&&mt.sheet.rules?mt.sheet.rules:mt&&mt.sheet&&mt.sheet.cssRules?mt.sheet.cssRules:[]}function on(mt,Nt,Ut){Ut===void 0&&(Ut=zt()),!(!Ut||!Nt)&&Ut.sheet.insertRule(mt+"{"+Nt+"}",0)}function On(mt,Nt){if(Nt===void 0&&(Nt=zt()),!!Nt){for(var Ut=Gt(Nt),tn=[],Vt=0;Vt<Ut.length;Vt++){var wn=Ut[Vt];wn.selectorText.indexOf(mt)!==-1&&tn.push(Vt)}for(var Vt=tn.length-1;Vt>=0;Vt--)Nt.sheet.deleteRule(tn[Vt])}}function yn(mt){return typeof HTMLElement=="object"?mt instanceof HTMLElement:mt&&typeof mt=="object"&&mt.nodeType===1&&typeof mt.nodeName=="string"}var Mn={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:R.m?"webkitAnimationStart":"animationstart",ANIMATION_END:R.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:R.m?"webkitAnimationIteration":"animationiteration"},Ft={stop:function(Nt,Ut){Nt.preventDefault?Nt.preventDefault():Nt.returnValue=!1,Ut&&(Nt.stopPropagation?Nt.stopPropagation():Nt.cancelBubble=!0)}};function gt(mt){for(var Nt=[],Ut=0;mt&&mt.nodeType===mt.ELEMENT_NODE;Ut++)Nt[Ut]=mt.scrollTop,mt=mt.parentNode;return Nt}function pt(mt,Nt){for(var Ut=0;mt&&mt.nodeType===mt.ELEMENT_NODE;Ut++)mt.scrollTop!==Nt[Ut]&&(mt.scrollTop=Nt[Ut]),mt=mt.parentNode}var Dt=function(mt){D(Nt,mt);function Nt(Ut){var tn=mt.call(this)||this;tn._onDidFocus=tn._register(new B.a),tn.onDidFocus=tn._onDidFocus.event,tn._onDidBlur=tn._register(new B.a),tn.onDidBlur=tn._onDidBlur.event;var Vt=Me(document.activeElement,Ut),wn=!1,xn=function(){wn=!1,Vt||(Vt=!0,tn._onDidFocus.fire())},kn=function(){Vt&&(wn=!0,window.setTimeout(function(){wn&&(wn=!1,Vt=!1,tn._onDidBlur.fire())},0))};return tn._refreshStateHandler=function(){var Fn=Me(document.activeElement,Ut);Fn!==Vt&&(Vt?kn():xn())},tn._register(Object(re.a)(Ut,Mn.FOCUS,!0)(xn)),tn._register(Object(re.a)(Ut,Mn.BLUR,!0)(kn)),tn}return Nt}(G.a);function Ot(mt){return new Dt(mt)}function Ht(mt){for(var Nt=[],Ut=1;Ut<arguments.length;Ut++)Nt[Ut-1]=arguments[Ut];return Nt.forEach(function(tn){return mt.appendChild(tn)}),Nt[Nt.length-1]}var Jt=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/,nn;(function(mt){mt.HTML="http://www.w3.org/1999/xhtml",mt.SVG="http://www.w3.org/2000/svg"})(nn||(nn={}));function sn(mt,Nt,Ut){for(var tn=[],Vt=3;Vt<arguments.length;Vt++)tn[Vt-3]=arguments[Vt];var wn=Jt.exec(Nt);if(!wn)throw new Error("Bad use of emmet");Ut=T({},Ut||{});var xn=wn[1]||"div",kn;return mt!==nn.HTML?kn=document.createElementNS(mt,xn):kn=document.createElement(xn),wn[3]&&(kn.id=wn[3]),wn[4]&&(kn.className=wn[4].replace(/\./g," ").trim()),Object.keys(Ut).forEach(function(Fn){var oi=Ut[Fn];typeof oi!="undefined"&&(/^on\w+$/.test(Fn)?kn[Fn]=oi:Fn==="selected"?oi&&kn.setAttribute(Fn,"true"):kn.setAttribute(Fn,oi))}),Object(S.d)(tn).forEach(function(Fn){Fn instanceof Node?kn.appendChild(Fn):kn.appendChild(document.createTextNode(Fn))}),kn}function un(mt,Nt){for(var Ut=[],tn=2;tn<arguments.length;tn++)Ut[tn-2]=arguments[tn];return sn.apply(void 0,te([nn.HTML,mt,Nt],Ut))}un.SVG=function(mt,Nt){for(var Ut=[],tn=2;tn<arguments.length;tn++)Ut[tn-2]=arguments[tn];return sn.apply(void 0,te([nn.SVG,mt,Nt],Ut))};function Sn(){for(var mt=[],Nt=0;Nt<arguments.length;Nt++)mt[Nt]=arguments[Nt];for(var Ut=0,tn=mt;Ut<tn.length;Ut++){var Vt=tn[Ut];Vt.style.display="",Vt.removeAttribute("aria-hidden")}}function Ln(){for(var mt=[],Nt=0;Nt<arguments.length;Nt++)mt[Nt]=arguments[Nt];for(var Ut=0,tn=mt;Ut<tn.length;Ut++){var Vt=tn[Ut];Vt.style.display="none",Vt.setAttribute("aria-hidden","true")}}function An(mt,Nt){for(;mt&&mt.nodeType===mt.ELEMENT_NODE;){if(mt instanceof HTMLElement&&mt.hasAttribute(Nt))return mt;mt=mt.parentNode}return null}function Gn(mt){if(!(!mt||!mt.hasAttribute("tabIndex"))){if(document.activeElement===mt){var Nt=An(mt.parentElement,"tabIndex");Nt&&Nt.focus()}mt.removeAttribute("tabindex")}}function Jn(mt){return Array.prototype.slice.call(document.getElementsByTagName(mt),0)}function $n(mt){var Nt=window.devicePixelRatio*mt;return Math.max(1,Math.floor(Nt))/window.devicePixelRatio}function pi(mt){if(x.f||R.g)window.open(mt);else{var Nt=window.open();Nt&&(Nt.opener=null,Nt.location.href=mt)}}function Kn(mt){var Nt=function tn(){mt(),Ut=ye(tn)},Ut=ye(Nt);return Object(G.h)(function(){return Ut.dispose()})}I.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function yi(mt){return mt&&(I.b.vscodeRemote===mt.scheme?I.a.rewrite(mt):mt)}function vi(mt){return mt?"url('"+yi(mt).toString(!0).replace(/'/g,"%27")+"')":"url('')"}},FWmy:function(Et,A,o){"use strict";o.d(A,"a",function(){return R});function R(re,ne){if(!re)throw new Error(ne?"Assertion failed ("+ne+")":"Assertion Failed")}},FvUK:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return o.e(216).then(o.bind(null,"OfHX"))}})},G2kB:function(Et,A,o){"use strict";o.d(A,"a",function(){return re}),o.d(A,"b",function(){return ne});var R=o("Cg/j"),re=Object(R.c)("modelService");function ne(P){return!P.isTooLargeForSyncing()&&!P.isForSimpleWidget}},G300:function(Et,A,o){"use strict";o.d(A,"a",function(){return B});var R=o("EffR"),re=o("uDWl"),ne=o("XSiN"),P=o("pmY6"),F=o("pg8w"),V=function(){var G=function(S,I){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var T in D)D.hasOwnProperty(T)&&(K[T]=D[T])},G(S,I)};return function(x,S){G(x,S);function I(){this.constructor=x}x.prototype=S===null?Object.create(S):(I.prototype=S.prototype,new I)}}(),B=function(G){V(x,G);function x(){return G!==null&&G.apply(this,arguments)||this}return x.prototype.onclick=function(S,I){this._register(R.i(S,R.c.CLICK,function(K){return I(new ne.a(K))}))},x.prototype.onmousedown=function(S,I){this._register(R.i(S,R.c.MOUSE_DOWN,function(K){return I(new ne.a(K))}))},x.prototype.onmouseover=function(S,I){this._register(R.i(S,R.c.MOUSE_OVER,function(K){return I(new ne.a(K))}))},x.prototype.onnonbubblingmouseout=function(S,I){this._register(R.j(S,function(K){return I(new ne.a(K))}))},x.prototype.onkeydown=function(S,I){this._register(R.i(S,R.c.KEY_DOWN,function(K){return I(new re.a(K))}))},x.prototype.onkeyup=function(S,I){this._register(R.i(S,R.c.KEY_UP,function(K){return I(new re.a(K))}))},x.prototype.oninput=function(S,I){this._register(R.i(S,R.c.INPUT,I))},x.prototype.onblur=function(S,I){this._register(R.i(S,R.c.BLUR,I))},x.prototype.onfocus=function(S,I){this._register(R.i(S,R.c.FOCUS,I))},x.prototype.ignoreGesture=function(S){F.b.ignoreTarget(S)},x}(P.a)},GJhM:function(Et,A,o){"use strict";o.d(A,"b",function(){return _e}),o.d(A,"c",function(){return de}),o.d(A,"a",function(){return se});var R=o("eq1K"),re=o("D3Dy"),ne=o("EffR"),P=o("ZlPH"),F=o("XSiN"),V=o("AKMP"),B=o("G300"),G=o("X+cX"),x=function(){var ie=function(ve,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,tt){Ue.__proto__=tt}||function(Ue,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(Ue[_t]=tt[_t])},ie(ve,ye)};return function($,ve){ie($,ve);function ye(){this.constructor=$}$.prototype=ve===null?Object.create(ve):(ye.prototype=ve.prototype,new ye)}}(),S=11,I=function(ie){x($,ie);function $(ve){var ye=ie.call(this)||this;return ye._onActivate=ve.onActivate,ye.bgDomNode=document.createElement("div"),ye.bgDomNode.className="arrow-background",ye.bgDomNode.style.position="absolute",ye.bgDomNode.style.width=ve.bgWidth+"px",ye.bgDomNode.style.height=ve.bgHeight+"px",typeof ve.top!="undefined"&&(ye.bgDomNode.style.top="0px"),typeof ve.left!="undefined"&&(ye.bgDomNode.style.left="0px"),typeof ve.bottom!="undefined"&&(ye.bgDomNode.style.bottom="0px"),typeof ve.right!="undefined"&&(ye.bgDomNode.style.right="0px"),ye.domNode=document.createElement("div"),ye.domNode.className=ve.className,ye.domNode.style.position="absolute",ye.domNode.style.width=S+"px",ye.domNode.style.height=S+"px",typeof ve.top!="undefined"&&(ye.domNode.style.top=ve.top+"px"),typeof ve.left!="undefined"&&(ye.domNode.style.left=ve.left+"px"),typeof ve.bottom!="undefined"&&(ye.domNode.style.bottom=ve.bottom+"px"),typeof ve.right!="undefined"&&(ye.domNode.style.right=ve.right+"px"),ye._mouseMoveMonitor=ye._register(new V.a),ye.onmousedown(ye.bgDomNode,function(Ue){return ye._arrowMouseDown(Ue)}),ye.onmousedown(ye.domNode,function(Ue){return ye._arrowMouseDown(Ue)}),ye._mousedownRepeatTimer=ye._register(new G.c),ye._mousedownScheduleRepeatTimer=ye._register(new G.e),ye}return $.prototype._arrowMouseDown=function(ve){var ye=this,Ue=function(){ye._mousedownRepeatTimer.cancelAndSet(function(){return ye._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(Ue,200),this._mouseMoveMonitor.startMonitoring(ve.target,ve.buttons,V.b,function(tt){},function(){ye._mousedownRepeatTimer.cancel(),ye._mousedownScheduleRepeatTimer.cancel()}),ve.preventDefault()},$}(B.a),K=o("pmY6"),D=function(){var ie=function(ve,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,tt){Ue.__proto__=tt}||function(Ue,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(Ue[_t]=tt[_t])},ie(ve,ye)};return function($,ve){ie($,ve);function ye(){this.constructor=$}$.prototype=ve===null?Object.create(ve):(ye.prototype=ve.prototype,new ye)}}(),T=function(ie){D($,ie);function $(ve,ye,Ue){var tt=ie.call(this)||this;return tt._visibility=ve,tt._visibleClassName=ye,tt._invisibleClassName=Ue,tt._domNode=null,tt._isVisible=!1,tt._isNeeded=!1,tt._shouldBeVisible=!1,tt._revealTimer=tt._register(new G.e),tt}return $.prototype.applyVisibilitySetting=function(ve){return this._visibility===2?!1:this._visibility===3?!0:ve},$.prototype.setShouldBeVisible=function(ve){var ye=this.applyVisibilitySetting(ve);this._shouldBeVisible!==ye&&(this._shouldBeVisible=ye,this.ensureVisibility())},$.prototype.setIsNeeded=function(ve){this._isNeeded!==ve&&(this._isNeeded=ve,this.ensureVisibility())},$.prototype.setDomNode=function(ve){this._domNode=ve,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},$.prototype.ensureVisibility=function(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)},$.prototype._reveal=function(){var ve=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(function(){ve._domNode&&ve._domNode.setClassName(ve._visibleClassName)},0))},$.prototype._hide=function(ve){this._revealTimer.cancel(),!!this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(ve?" fade":"")))},$}(K.a),te=o("MNsG"),U=function(){var ie=function(ve,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,tt){Ue.__proto__=tt}||function(Ue,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(Ue[_t]=tt[_t])},ie(ve,ye)};return function($,ve){ie($,ve);function ye(){this.constructor=$}$.prototype=ve===null?Object.create(ve):(ye.prototype=ve.prototype,new ye)}}(),_=140,h=function(ie){U($,ie);function $(ve){var ye=ie.call(this)||this;return ye._lazyRender=ve.lazyRender,ye._host=ve.host,ye._scrollable=ve.scrollable,ye._scrollbarState=ve.scrollbarState,ye._visibilityController=ye._register(new T(ve.visibility,"visible scrollbar "+ve.extraScrollbarClassName,"invisible scrollbar "+ve.extraScrollbarClassName)),ye._visibilityController.setIsNeeded(ye._scrollbarState.isNeeded()),ye._mouseMoveMonitor=ye._register(new V.a),ye._shouldRender=!0,ye.domNode=Object(P.b)(document.createElement("div")),ye.domNode.setAttribute("role","presentation"),ye.domNode.setAttribute("aria-hidden","true"),ye._visibilityController.setDomNode(ye.domNode),ye.domNode.setPosition("absolute"),ye.onmousedown(ye.domNode.domNode,function(Ue){return ye._domNodeMouseDown(Ue)}),ye}return $.prototype._createArrow=function(ve){var ye=this._register(new I(ve));this.domNode.domNode.appendChild(ye.bgDomNode),this.domNode.domNode.appendChild(ye.domNode)},$.prototype._createSlider=function(ve,ye,Ue,tt){var _t=this;this.slider=Object(P.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(ve),this.slider.setLeft(ye),typeof Ue=="number"&&this.slider.setWidth(Ue),typeof tt=="number"&&this.slider.setHeight(tt),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(At){At.leftButton&&(At.preventDefault(),_t._sliderMouseDown(At,function(){}))}),this.onclick(this.slider.domNode,function(At){At.leftButton&&At.stopPropagation()})},$.prototype._onElementSize=function(ve){return this._scrollbarState.setVisibleSize(ve)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},$.prototype._onElementScrollSize=function(ve){return this._scrollbarState.setScrollSize(ve)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},$.prototype._onElementScrollPosition=function(ve){return this._scrollbarState.setScrollPosition(ve)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},$.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},$.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},$.prototype.render=function(){!this._shouldRender||(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))},$.prototype._domNodeMouseDown=function(ve){ve.target===this.domNode.domNode&&this._onMouseDown(ve)},$.prototype.delegateMouseDown=function(ve){var ye=this.domNode.domNode.getClientRects()[0].top,Ue=ye+this._scrollbarState.getSliderPosition(),tt=ye+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),_t=this._sliderMousePosition(ve);Ue<=_t&&_t<=tt?ve.leftButton&&(ve.preventDefault(),this._sliderMouseDown(ve,function(){})):this._onMouseDown(ve)},$.prototype._onMouseDown=function(ve){var ye,Ue;if(ve.target===this.domNode.domNode&&typeof ve.browserEvent.offsetX=="number"&&typeof ve.browserEvent.offsetY=="number")ye=ve.browserEvent.offsetX,Ue=ve.browserEvent.offsetY;else{var tt=ne.B(this.domNode.domNode);ye=ve.posx-tt.left,Ue=ve.posy-tt.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(ye,Ue))),ve.leftButton&&(ve.preventDefault(),this._sliderMouseDown(ve,function(){}))},$.prototype._sliderMouseDown=function(ve,ye){var Ue=this,tt=this._sliderMousePosition(ve),_t=this._sliderOrthogonalMousePosition(ve),At=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(ve.target,ve.buttons,V.b,function(Yt){var Ke=Ue._sliderOrthogonalMousePosition(Yt),Ye=Math.abs(Ke-_t);if(te.h&&Ye>_){Ue._setDesiredScrollPositionNow(At.getScrollPosition());return}var Xe=Ue._sliderMousePosition(Yt),Ze=Xe-tt;Ue._setDesiredScrollPositionNow(At.getDesiredScrollPositionFromDelta(Ze))},function(){Ue.slider.toggleClassName("active",!1),Ue._host.onDragEnd(),ye()}),this._host.onDragStart()},$.prototype._setDesiredScrollPositionNow=function(ve){var ye={};this.writeScrollPosition(ye,ve),this._scrollable.setScrollPositionNow(ye)},$}(B.a),g=20,p=function(){function ie($,ve,ye,Ue,tt,_t){this._scrollbarSize=Math.round(ve),this._oppositeScrollbarSize=Math.round(ye),this._arrowSize=Math.round($),this._visibleSize=Ue,this._scrollSize=tt,this._scrollPosition=_t,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return ie.prototype.clone=function(){return new ie(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},ie.prototype.setVisibleSize=function($){var ve=Math.round($);return this._visibleSize!==ve?(this._visibleSize=ve,this._refreshComputedValues(),!0):!1},ie.prototype.setScrollSize=function($){var ve=Math.round($);return this._scrollSize!==ve?(this._scrollSize=ve,this._refreshComputedValues(),!0):!1},ie.prototype.setScrollPosition=function($){var ve=Math.round($);return this._scrollPosition!==ve?(this._scrollPosition=ve,this._refreshComputedValues(),!0):!1},ie._computeValues=function($,ve,ye,Ue,tt){var _t=Math.max(0,ye-$),At=Math.max(0,_t-2*ve),Yt=Ue>0&&Ue>ye;if(!Yt)return{computedAvailableSize:Math.round(_t),computedIsNeeded:Yt,computedSliderSize:Math.round(At),computedSliderRatio:0,computedSliderPosition:0};var Ke=Math.round(Math.max(g,Math.floor(ye*At/Ue))),Ye=(At-Ke)/(Ue-ye),Xe=tt*Ye;return{computedAvailableSize:Math.round(_t),computedIsNeeded:Yt,computedSliderSize:Math.round(Ke),computedSliderRatio:Ye,computedSliderPosition:Math.round(Xe)}},ie.prototype._refreshComputedValues=function(){var $=ie._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=$.computedAvailableSize,this._computedIsNeeded=$.computedIsNeeded,this._computedSliderSize=$.computedSliderSize,this._computedSliderRatio=$.computedSliderRatio,this._computedSliderPosition=$.computedSliderPosition},ie.prototype.getArrowSize=function(){return this._arrowSize},ie.prototype.getScrollPosition=function(){return this._scrollPosition},ie.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},ie.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},ie.prototype.isNeeded=function(){return this._computedIsNeeded},ie.prototype.getSliderSize=function(){return this._computedSliderSize},ie.prototype.getSliderPosition=function(){return this._computedSliderPosition},ie.prototype.getDesiredScrollPositionFromOffset=function($){if(!this._computedIsNeeded)return 0;var ve=$-this._arrowSize-this._computedSliderSize/2;return Math.round(ve/this._computedSliderRatio)},ie.prototype.getDesiredScrollPositionFromDelta=function($){if(!this._computedIsNeeded)return 0;var ve=this._computedSliderPosition+$;return Math.round(ve/this._computedSliderRatio)},ie}(),v=function(){var ie=function(ve,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,tt){Ue.__proto__=tt}||function(Ue,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(Ue[_t]=tt[_t])},ie(ve,ye)};return function($,ve){ie($,ve);function ye(){this.constructor=$}$.prototype=ve===null?Object.create(ve):(ye.prototype=ve.prototype,new ye)}}(),E=function(ie){v($,ie);function $(ve,ye,Ue){var tt=this,_t=ve.getScrollDimensions(),At=ve.getCurrentScrollPosition();if(tt=ie.call(this,{lazyRender:ye.lazyRender,host:Ue,scrollbarState:new p(ye.horizontalHasArrows?ye.arrowSize:0,ye.horizontal===2?0:ye.horizontalScrollbarSize,ye.vertical===2?0:ye.verticalScrollbarSize,_t.width,_t.scrollWidth,At.scrollLeft),visibility:ye.horizontal,extraScrollbarClassName:"horizontal",scrollable:ve})||this,ye.horizontalHasArrows){var Yt=(ye.arrowSize-S)/2,Ke=(ye.horizontalScrollbarSize-S)/2;tt._createArrow({className:"left-arrow",top:Ke,left:Yt,bottom:void 0,right:void 0,bgWidth:ye.arrowSize,bgHeight:ye.horizontalScrollbarSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,1,0))}}),tt._createArrow({className:"right-arrow",top:Ke,left:void 0,bottom:void 0,right:Yt,bgWidth:ye.arrowSize,bgHeight:ye.horizontalScrollbarSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,-1,0))}})}return tt._createSlider(Math.floor((ye.horizontalScrollbarSize-ye.horizontalSliderSize)/2),0,void 0,ye.horizontalSliderSize),tt}return $.prototype._updateSlider=function(ve,ye){this.slider.setWidth(ve),this.slider.setLeft(ye)},$.prototype._renderDomNode=function(ve,ye){this.domNode.setWidth(ve),this.domNode.setHeight(ye),this.domNode.setLeft(0),this.domNode.setBottom(0)},$.prototype.onDidScroll=function(ve){return this._shouldRender=this._onElementScrollSize(ve.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ve.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(ve.width)||this._shouldRender,this._shouldRender},$.prototype._mouseDownRelativePosition=function(ve,ye){return ve},$.prototype._sliderMousePosition=function(ve){return ve.posx},$.prototype._sliderOrthogonalMousePosition=function(ve){return ve.posy},$.prototype.writeScrollPosition=function(ve,ye){ve.scrollLeft=ye},$}(h),k=function(){var ie=function(ve,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,tt){Ue.__proto__=tt}||function(Ue,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(Ue[_t]=tt[_t])},ie(ve,ye)};return function($,ve){ie($,ve);function ye(){this.constructor=$}$.prototype=ve===null?Object.create(ve):(ye.prototype=ve.prototype,new ye)}}(),z=function(ie){k($,ie);function $(ve,ye,Ue){var tt=this,_t=ve.getScrollDimensions(),At=ve.getCurrentScrollPosition();if(tt=ie.call(this,{lazyRender:ye.lazyRender,host:Ue,scrollbarState:new p(ye.verticalHasArrows?ye.arrowSize:0,ye.vertical===2?0:ye.verticalScrollbarSize,0,_t.height,_t.scrollHeight,At.scrollTop),visibility:ye.vertical,extraScrollbarClassName:"vertical",scrollable:ve})||this,ye.verticalHasArrows){var Yt=(ye.arrowSize-S)/2,Ke=(ye.verticalScrollbarSize-S)/2;tt._createArrow({className:"up-arrow",top:Yt,left:Ke,bottom:void 0,right:void 0,bgWidth:ye.verticalScrollbarSize,bgHeight:ye.arrowSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,0,1))}}),tt._createArrow({className:"down-arrow",top:void 0,left:Ke,bottom:Yt,right:void 0,bgWidth:ye.verticalScrollbarSize,bgHeight:ye.arrowSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,0,-1))}})}return tt._createSlider(0,Math.floor((ye.verticalScrollbarSize-ye.verticalSliderSize)/2),ye.verticalSliderSize,void 0),tt}return $.prototype._updateSlider=function(ve,ye){this.slider.setHeight(ve),this.slider.setTop(ye)},$.prototype._renderDomNode=function(ve,ye){this.domNode.setWidth(ye),this.domNode.setHeight(ve),this.domNode.setRight(0),this.domNode.setTop(0)},$.prototype.onDidScroll=function(ve){return this._shouldRender=this._onElementScrollSize(ve.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ve.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(ve.height)||this._shouldRender,this._shouldRender},$.prototype._mouseDownRelativePosition=function(ve,ye){return ye},$.prototype._sliderMousePosition=function(ve){return ve.posy},$.prototype._sliderOrthogonalMousePosition=function(ve){return ve.posx},$.prototype.writeScrollPosition=function(ve,ye){ve.scrollTop=ye},$}(h),oe=o("MI8n"),fe=o("QuOb"),Se=function(){var ie=function(ve,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,tt){Ue.__proto__=tt}||function(Ue,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(Ue[_t]=tt[_t])},ie(ve,ye)};return function($,ve){ie($,ve);function ye(){this.constructor=$}$.prototype=ve===null?Object.create(ve):(ye.prototype=ve.prototype,new ye)}}(),we=500,q=50,X=!0,ce=function(){function ie($,ve,ye){this.timestamp=$,this.deltaX=ve,this.deltaY=ye,this.score=0}return ie}(),Ne=function(){function ie(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return ie.prototype.isPhysicalMouseWheel=function(){if(this._front===-1&&this._rear===-1)return!1;var $=1,ve=0,ye=1,Ue=this._rear;do{var tt=Ue===this._front?$:Math.pow(2,-ye);if($-=tt,ve+=this._memory[Ue].score*tt,Ue===this._front)break;Ue=(this._capacity+Ue-1)%this._capacity,ye++}while(!0);return ve<=.5},ie.prototype.accept=function($,ve,ye){var Ue=new ce($,ve,ye);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)},ie.prototype._computeScore=function($){if(Math.abs($.deltaX)>0&&Math.abs($.deltaY)>0)return 1;var ve=.5,ye=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(Math.abs($.deltaX-Math.round($.deltaX))>0||Math.abs($.deltaY-Math.round($.deltaY))>0)&&(ve+=.25),Math.min(Math.max(ve,0),1)},ie.INSTANCE=new ie,ie}(),He=function(ie){Se($,ie);function $(ve,ye,Ue){var tt=ie.call(this)||this;tt._onScroll=tt._register(new oe.a),tt.onScroll=tt._onScroll.event,ve.style.overflow="hidden",tt._options=he(ye),tt._scrollable=Ue,tt._register(tt._scrollable.onScroll(function(At){tt._onDidScroll(At),tt._onScroll.fire(At)}));var _t={onMouseWheel:function(Yt){return tt._onMouseWheel(Yt)},onDragStart:function(){return tt._onDragStart()},onDragEnd:function(){return tt._onDragEnd()}};return tt._verticalScrollbar=tt._register(new z(tt._scrollable,tt._options,_t)),tt._horizontalScrollbar=tt._register(new E(tt._scrollable,tt._options,_t)),tt._domNode=document.createElement("div"),tt._domNode.className="monaco-scrollable-element "+tt._options.className,tt._domNode.setAttribute("role","presentation"),tt._domNode.style.position="relative",tt._domNode.style.overflow="hidden",tt._domNode.appendChild(ve),tt._domNode.appendChild(tt._horizontalScrollbar.domNode.domNode),tt._domNode.appendChild(tt._verticalScrollbar.domNode.domNode),tt._options.useShadows?(tt._leftShadowDomNode=Object(P.b)(document.createElement("div")),tt._leftShadowDomNode.setClassName("shadow"),tt._domNode.appendChild(tt._leftShadowDomNode.domNode),tt._topShadowDomNode=Object(P.b)(document.createElement("div")),tt._topShadowDomNode.setClassName("shadow"),tt._domNode.appendChild(tt._topShadowDomNode.domNode),tt._topLeftShadowDomNode=Object(P.b)(document.createElement("div")),tt._topLeftShadowDomNode.setClassName("shadow top-left-corner"),tt._domNode.appendChild(tt._topLeftShadowDomNode.domNode)):(tt._leftShadowDomNode=null,tt._topShadowDomNode=null,tt._topLeftShadowDomNode=null),tt._listenOnDomNode=tt._options.listenOnDomNode||tt._domNode,tt._mouseWheelToDispose=[],tt._setListeningToMouseWheel(tt._options.handleMouseWheel),tt.onmouseover(tt._listenOnDomNode,function(At){return tt._onMouseOver(At)}),tt.onnonbubblingmouseout(tt._listenOnDomNode,function(At){return tt._onMouseOut(At)}),tt._hideTimeout=tt._register(new G.e),tt._isDragging=!1,tt._mouseIsOver=!1,tt._shouldRender=!0,tt._revealOnScroll=!0,tt}return $.prototype.dispose=function(){this._mouseWheelToDispose=Object(K.f)(this._mouseWheelToDispose),ie.prototype.dispose.call(this)},$.prototype.getDomNode=function(){return this._domNode},$.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},$.prototype.delegateVerticalScrollbarMouseDown=function(ve){this._verticalScrollbar.delegateMouseDown(ve)},$.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},$.prototype.setScrollDimensions=function(ve){this._scrollable.setScrollDimensions(ve)},$.prototype.updateClassName=function(ve){this._options.className=ve,te.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},$.prototype.updateOptions=function(ve){var ye=he(ve);this._options.handleMouseWheel=ye.handleMouseWheel,this._options.mouseWheelScrollSensitivity=ye.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=ye.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},$.prototype._setListeningToMouseWheel=function(ve){var ye=this,Ue=this._mouseWheelToDispose.length>0;if(Ue!==ve&&(this._mouseWheelToDispose=Object(K.f)(this._mouseWheelToDispose),ve)){var tt=function(At){ye._onMouseWheel(new F.b(At))};this._mouseWheelToDispose.push(ne.i(this._listenOnDomNode,re.f?"mousewheel":"wheel",tt,{passive:!1}))}},$.prototype._onMouseWheel=function(ve){var ye,Ue=Ne.INSTANCE;if(X&&Ue.accept(Date.now(),ve.deltaX,ve.deltaY),ve.deltaY||ve.deltaX){var tt=ve.deltaY*this._options.mouseWheelScrollSensitivity,_t=ve.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(ye=[_t,tt],tt=ye[0],_t=ye[1]);var At=!te.e&&ve.browserEvent&&ve.browserEvent.shiftKey;(this._options.scrollYToX||At)&&!_t&&(_t=tt,tt=0),ve.browserEvent&&ve.browserEvent.altKey&&(_t=_t*this._options.fastScrollSensitivity,tt=tt*this._options.fastScrollSensitivity);var Yt=this._scrollable.getFutureScrollPosition(),Ke={};if(tt){var Ye=Yt.scrollTop-q*tt;this._verticalScrollbar.writeScrollPosition(Ke,Ye)}if(_t){var Xe=Yt.scrollLeft-q*_t;this._horizontalScrollbar.writeScrollPosition(Ke,Xe)}if(Ke=this._scrollable.validateScrollPosition(Ke),Yt.scrollLeft!==Ke.scrollLeft||Yt.scrollTop!==Ke.scrollTop){var Ze=X&&this._options.mouseWheelSmoothScroll&&Ue.isPhysicalMouseWheel();Ze?this._scrollable.setScrollPositionSmooth(Ke):this._scrollable.setScrollPositionNow(Ke),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(ve.preventDefault(),ve.stopPropagation())},$.prototype._onDidScroll=function(ve){this._shouldRender=this._horizontalScrollbar.onDidScroll(ve)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(ve)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},$.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},$.prototype._render=function(){if(!!this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var ve=this._scrollable.getCurrentScrollPosition(),ye=ve.scrollTop>0,Ue=ve.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(Ue?" left":"")),this._topShadowDomNode.setClassName("shadow"+(ye?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(ye?" top":"")+(Ue?" left":""))}},$.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},$.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},$.prototype._onMouseOut=function(ve){this._mouseIsOver=!1,this._hide()},$.prototype._onMouseOver=function(ve){this._mouseIsOver=!0,this._reveal()},$.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},$.prototype._hide=function(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},$.prototype._scheduleHide=function(){var ve=this;!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(function(){return ve._hide()},we)},$}(B.a),_e=function(ie){Se($,ie);function $(ve,ye){var Ue=this;ye=ye||{},ye.mouseWheelSmoothScroll=!1;var tt=new fe.a(0,function(_t){return ne.V(_t)});return Ue=ie.call(this,ve,ye,tt)||this,Ue._register(tt),Ue}return $.prototype.setScrollPosition=function(ve){this._scrollable.setScrollPositionNow(ve)},$.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},$}(He),de=function(ie){Se($,ie);function $(ve,ye,Ue){return ie.call(this,ve,ye,Ue)||this}return $}(He),se=function(ie){Se($,ie);function $(ve,ye){var Ue=ie.call(this,ve,ye)||this;return Ue._element=ve,Ue.onScroll(function(tt){tt.scrollTopChanged&&(Ue._element.scrollTop=tt.scrollTop),tt.scrollLeftChanged&&(Ue._element.scrollLeft=tt.scrollLeft)}),Ue.scanDomNode(),Ue}return $.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})},$}(_e);function he(ie){var $={lazyRender:typeof ie.lazyRender!="undefined"?ie.lazyRender:!1,className:typeof ie.className!="undefined"?ie.className:"",useShadows:typeof ie.useShadows!="undefined"?ie.useShadows:!0,handleMouseWheel:typeof ie.handleMouseWheel!="undefined"?ie.handleMouseWheel:!0,flipAxes:typeof ie.flipAxes!="undefined"?ie.flipAxes:!1,alwaysConsumeMouseWheel:typeof ie.alwaysConsumeMouseWheel!="undefined"?ie.alwaysConsumeMouseWheel:!1,scrollYToX:typeof ie.scrollYToX!="undefined"?ie.scrollYToX:!1,mouseWheelScrollSensitivity:typeof ie.mouseWheelScrollSensitivity!="undefined"?ie.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof ie.fastScrollSensitivity!="undefined"?ie.fastScrollSensitivity:5,mouseWheelSmoothScroll:typeof ie.mouseWheelSmoothScroll!="undefined"?ie.mouseWheelSmoothScroll:!0,arrowSize:typeof ie.arrowSize!="undefined"?ie.arrowSize:11,listenOnDomNode:typeof ie.listenOnDomNode!="undefined"?ie.listenOnDomNode:null,horizontal:typeof ie.horizontal!="undefined"?ie.horizontal:1,horizontalScrollbarSize:typeof ie.horizontalScrollbarSize!="undefined"?ie.horizontalScrollbarSize:10,horizontalSliderSize:typeof ie.horizontalSliderSize!="undefined"?ie.horizontalSliderSize:0,horizontalHasArrows:typeof ie.horizontalHasArrows!="undefined"?ie.horizontalHasArrows:!1,vertical:typeof ie.vertical!="undefined"?ie.vertical:1,verticalScrollbarSize:typeof ie.verticalScrollbarSize!="undefined"?ie.verticalScrollbarSize:10,verticalHasArrows:typeof ie.verticalHasArrows!="undefined"?ie.verticalHasArrows:!1,verticalSliderSize:typeof ie.verticalSliderSize!="undefined"?ie.verticalSliderSize:0};return $.horizontalSliderSize=typeof ie.horizontalSliderSize!="undefined"?ie.horizontalSliderSize:$.horizontalScrollbarSize,$.verticalSliderSize=typeof ie.verticalSliderSize!="undefined"?ie.verticalSliderSize:$.verticalScrollbarSize,te.e&&($.className+=" mac"),$}},"GR/f":function(Et,A,o){"use strict";o.d(A,"a",function(){return te}),o.d(A,"b",function(){return U});var R=o("/cxE"),re=o("N0LK"),ne=o("LCkn"),P=o("Ll0s"),F=o("aokT"),V=o("gCVg"),B=o("cMvZ"),G=Object.create(null);function x(_,h){G[_]||(G[_]=["",_]);for(var g=G[_],p=g.length;p<=h;p++)g[p]=g[p-1]+_;return g[h]}var S=function(){function _(h,g){this._opts=g,this._selection=h,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return _.unshiftIndent=function(h,g,p,v,E){var k=P.a.visibleColumnFromColumn(h,g,p);if(E){var z=x(" ",v),oe=P.a.prevIndentTabStop(k,v),fe=oe/v;return x(z,fe)}else{var z=" ",oe=P.a.prevRenderTabStop(k,p),fe=oe/p;return x(z,fe)}},_.shiftIndent=function(h,g,p,v,E){var k=P.a.visibleColumnFromColumn(h,g,p);if(E){var z=x(" ",v),oe=P.a.nextIndentTabStop(k,v),fe=oe/v;return x(z,fe)}else{var z=" ",oe=P.a.nextRenderTabStop(k,p),fe=oe/p;return x(z,fe)}},_.prototype._addEditOperation=function(h,g,p){this._useLastEditRangeForCursorEndPosition?h.addTrackedEditOperation(g,p):h.addEditOperation(g,p)},_.prototype.getEditOperations=function(h,g){var p=this._selection.startLineNumber,v=this._selection.endLineNumber;this._selection.endColumn===1&&p!==v&&(v=v-1);var E=this._opts,k=E.tabSize,z=E.indentSize,oe=E.insertSpaces,fe=p===v;if(this._selection.isEmpty()&&/^\s*$/.test(h.getLineContent(p))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var Se=0,we=0,q=p;q<=v;q++,Se=we){we=0;var X=h.getLineContent(q),ce=re.q(X);if(!(this._opts.isUnshift&&(X.length===0||ce===0))&&!(!fe&&!this._opts.isUnshift&&X.length===0)){if(ce===-1&&(ce=X.length),q>1){var Ne=P.a.visibleColumnFromColumn(X,ce+1,k);if(Ne%z!=0&&h.isCheapToTokenize(q-1)){var He=B.a.getEnterAction(this._opts.autoIndent,h,new F.a(q-1,h.getLineMaxColumn(q-1),q-1,h.getLineMaxColumn(q-1)));if(He){if(we=Se,He.appendText)for(var _e=0,de=He.appendText.length;_e<de&&we<z&&He.appendText.charCodeAt(_e)===32;_e++)we++;He.removeText&&(we=Math.max(0,we-He.removeText));for(var _e=0;_e<we&&!(ce===0||X.charCodeAt(ce-1)!==32);_e++)ce--}}}if(!(this._opts.isUnshift&&ce===0)){var se=void 0;this._opts.isUnshift?se=_.unshiftIndent(X,ce+1,k,z,oe):se=_.shiftIndent(X,ce+1,k,z,oe),this._addEditOperation(g,new F.a(q,1,q,ce+1),se),q===p&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=ce+1)}}}else for(var he=oe?x(" ",z):" ",q=p;q<=v;q++){var X=h.getLineContent(q),ce=re.q(X);if(!(this._opts.isUnshift&&(X.length===0||ce===0))&&!(!fe&&!this._opts.isUnshift&&X.length===0)&&(ce===-1&&(ce=X.length),!(this._opts.isUnshift&&ce===0)))if(this._opts.isUnshift){ce=Math.min(ce,z);for(var ie=0;ie<ce;ie++){var $=X.charCodeAt(ie);if($===9){ce=ie+1;break}}this._addEditOperation(g,new F.a(q,1,q,ce+1),"")}else this._addEditOperation(g,new F.a(q,1,q,1),he),q===p&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}this._selectionId=g.trackSelection(this._selection)},_.prototype.computeCursorState=function(h,g){if(this._useLastEditRangeForCursorEndPosition){var p=g.getInverseEditOperations()[0];return new V.a(p.range.endLineNumber,p.range.endColumn,p.range.endLineNumber,p.range.endColumn)}var v=g.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var E=this._selection.startColumn,k=v.startColumn;return k<=E?v:v.getDirection()===0?new V.a(v.startLineNumber,E,v.endLineNumber,v.endColumn):new V.a(v.endLineNumber,v.endColumn,v.startLineNumber,E)}return v},_}(),I=function(){function _(h,g,p){this._range=h,this._charBeforeSelection=g,this._charAfterSelection=p}return _.prototype.getEditOperations=function(h,g){g.addTrackedEditOperation(new F.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),g.addTrackedEditOperation(new F.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},_.prototype.computeCursorState=function(h,g){var p=g.getInverseEditOperations(),v=p[0].range,E=p[1].range;return new V.a(v.endLineNumber,v.endColumn,E.endLineNumber,E.endColumn-this._charAfterSelection.length)},_}(),K=o("5v8Y"),D=o("KDc4"),T=function(){var _=function(g,p){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,E){v.__proto__=E}||function(v,E){for(var k in E)E.hasOwnProperty(k)&&(v[k]=E[k])},_(g,p)};return function(h,g){_(h,g);function p(){this.constructor=h}h.prototype=g===null?Object.create(g):(p.prototype=g.prototype,new p)}}(),te=function(){function _(){}return _.indent=function(h,g,p){if(g===null||p===null)return[];for(var v=[],E=0,k=p.length;E<k;E++)v[E]=new S(p[E],{isUnshift:!1,tabSize:h.tabSize,indentSize:h.indentSize,insertSpaces:h.insertSpaces,useTabStops:h.useTabStops,autoIndent:h.autoIndent});return v},_.outdent=function(h,g,p){for(var v=[],E=0,k=p.length;E<k;E++)v[E]=new S(p[E],{isUnshift:!0,tabSize:h.tabSize,indentSize:h.indentSize,insertSpaces:h.insertSpaces,useTabStops:h.useTabStops,autoIndent:h.autoIndent});return v},_.shiftIndent=function(h,g,p){return p=p||1,S.shiftIndent(g,g.length+p,h.tabSize,h.indentSize,h.insertSpaces)},_.unshiftIndent=function(h,g,p){return p=p||1,S.unshiftIndent(g,g.length+p,h.tabSize,h.indentSize,h.insertSpaces)},_._distributedPaste=function(h,g,p,v){for(var E=[],k=0,z=p.length;k<z;k++)E[k]=new ne.a(p[k],v[k]);return new P.e(0,E,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},_._simplePaste=function(h,g,p,v,E){for(var k=[],z=0,oe=p.length;z<oe;z++){var fe=p[z],Se=fe.getPosition();if(E&&!fe.isEmpty()&&(E=!1),E&&v.indexOf(`
`)!==v.length-1&&(E=!1),E){var we=new F.a(Se.lineNumber,1,Se.lineNumber,1);k[z]=new ne.b(we,v,fe,!0)}else k[z]=new ne.a(fe,v)}return new P.e(0,k,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},_._distributePasteToCursors=function(h,g,p,v,E){if(v||g.length===1)return null;if(E&&E.length===g.length)return E;if(h.multiCursorPaste==="spread"){p.charCodeAt(p.length-1)===10&&(p=p.substr(0,p.length-1)),p.charCodeAt(p.length-1)===13&&(p=p.substr(0,p.length-1));var k=p.split(/\r\n|\r|\n/);if(k.length===g.length)return k}return null},_.paste=function(h,g,p,v,E,k){var z=this._distributePasteToCursors(h,p,v,E,k);return z?(p=p.sort(F.a.compareRangesUsingStarts),this._distributedPaste(h,g,p,z)):this._simplePaste(h,g,p,v,E)},_._goodIndentForLine=function(h,g,p){var v=null,E="",k=B.a.getInheritIndentForLine(h.autoIndent,g,p,!1);if(k)v=k.action,E=k.indentation;else if(p>1){var z=void 0;for(z=p-1;z>=1;z--){var oe=g.getLineContent(z),fe=re.D(oe);if(fe>=0)break}if(z<1)return null;var Se=g.getLineMaxColumn(z),we=B.a.getEnterAction(h.autoIndent,g,new F.a(z,Se,z,Se));we&&(E=we.indentation+we.appendText)}return v&&(v===D.a.Indent&&(E=_.shiftIndent(h,E)),v===D.a.Outdent&&(E=_.unshiftIndent(h,E)),E=h.normalizeIndentation(E)),E||null},_._replaceJumpToNextIndent=function(h,g,p,v){var E="",k=p.getStartPosition();if(h.insertSpaces)for(var z=P.a.visibleColumnFromColumn2(h,g,k),oe=h.indentSize,fe=oe-z%oe,Se=0;Se<fe;Se++)E+=" ";else E=" ";return new ne.a(p,E,v)},_.tab=function(h,g,p){for(var v=[],E=0,k=p.length;E<k;E++){var z=p[E];if(z.isEmpty()){var oe=g.getLineContent(z.startLineNumber);if(/^\s*$/.test(oe)&&g.isCheapToTokenize(z.startLineNumber)){var fe=this._goodIndentForLine(h,g,z.startLineNumber);fe=fe||" ";var Se=h.normalizeIndentation(fe);if(!re.M(oe,Se)){v[E]=new ne.a(new F.a(z.startLineNumber,1,z.startLineNumber,oe.length+1),Se,!0);continue}}v[E]=this._replaceJumpToNextIndent(h,g,z,!0)}else{if(z.startLineNumber===z.endLineNumber){var we=g.getLineMaxColumn(z.startLineNumber);if(z.startColumn!==1||z.endColumn!==we){v[E]=this._replaceJumpToNextIndent(h,g,z,!1);continue}}v[E]=new S(z,{isUnshift:!1,tabSize:h.tabSize,indentSize:h.indentSize,insertSpaces:h.insertSpaces,useTabStops:h.useTabStops,autoIndent:h.autoIndent})}}return v},_.replacePreviousChar=function(h,g,p,v,E,k){for(var z=[],oe=0,fe=v.length;oe<fe;oe++){var Se=v[oe];if(!Se.isEmpty()){z[oe]=null;continue}var we=Se.getPosition(),q=Math.max(1,we.column-k),X=new F.a(we.lineNumber,q,we.lineNumber,we.column);z[oe]=new ne.a(X,E)}return new P.e(1,z,{shouldPushStackElementBefore:h!==1,shouldPushStackElementAfter:!1})},_._typeCommand=function(h,g,p){return p?new ne.d(h,g,!0):new ne.a(h,g,!0)},_._enter=function(h,g,p,v){if(h.autoIndent===0)return _._typeCommand(v,`
`,p);if(!g.isCheapToTokenize(v.getStartPosition().lineNumber)||h.autoIndent===1){var E=g.getLineContent(v.startLineNumber),k=re.t(E).substring(0,v.startColumn-1);return _._typeCommand(v,`
`+h.normalizeIndentation(k),p)}var z=B.a.getEnterAction(h.autoIndent,g,v);if(z){if(z.indentAction===D.a.None)return _._typeCommand(v,`
`+h.normalizeIndentation(z.indentation+z.appendText),p);if(z.indentAction===D.a.Indent)return _._typeCommand(v,`
`+h.normalizeIndentation(z.indentation+z.appendText),p);if(z.indentAction===D.a.IndentOutdent){var oe=h.normalizeIndentation(z.indentation),fe=h.normalizeIndentation(z.indentation+z.appendText),Se=`
`+fe+`
`+oe;return p?new ne.d(v,Se,!0):new ne.c(v,Se,-1,fe.length-oe.length,!0)}else if(z.indentAction===D.a.Outdent){var we=_.unshiftIndent(h,z.indentation);return _._typeCommand(v,`
`+h.normalizeIndentation(we+z.appendText),p)}}var q=g.getLineContent(v.startLineNumber),X=re.t(q).substring(0,v.startColumn-1);if(h.autoIndent>=4){var ce=B.a.getIndentForEnter(h.autoIndent,g,v,{unshiftIndent:function($){return _.unshiftIndent(h,$)},shiftIndent:function($){return _.shiftIndent(h,$)},normalizeIndentation:function($){return h.normalizeIndentation($)}});if(ce){var Ne=P.a.visibleColumnFromColumn2(h,g,v.getEndPosition()),He=v.endColumn,_e=`
`;X!==h.normalizeIndentation(ce.beforeEnter)&&(_e=h.normalizeIndentation(ce.beforeEnter)+q.substring(X.length,v.startColumn-1)+`
`,v=new F.a(v.startLineNumber,1,v.endLineNumber,v.endColumn));var de=g.getLineContent(v.endLineNumber),se=re.q(de);if(se>=0?v=v.setEndPosition(v.endLineNumber,Math.max(v.endColumn,se+1)):v=v.setEndPosition(v.endLineNumber,g.getLineMaxColumn(v.endLineNumber)),p)return new ne.d(v,_e+h.normalizeIndentation(ce.afterEnter),!0);var he=0;return He<=se+1&&(h.insertSpaces||(Ne=Math.ceil(Ne/h.indentSize)),he=Math.min(Ne+1-h.normalizeIndentation(ce.afterEnter).length-1,0)),new ne.c(v,_e+h.normalizeIndentation(ce.afterEnter),0,he,!0)}}return _._typeCommand(v,`
`+h.normalizeIndentation(X),p)},_._isAutoIndentType=function(h,g,p){if(h.autoIndent<4)return!1;for(var v=0,E=p.length;v<E;v++)if(!g.isCheapToTokenize(p[v].getEndPosition().lineNumber))return!1;return!0},_._runAutoIndentType=function(h,g,p,v){var E=B.a.getIndentationAtPosition(g,p.startLineNumber,p.startColumn),k=B.a.getIndentActionForType(h.autoIndent,g,p,v,{shiftIndent:function(fe){return _.shiftIndent(h,fe)},unshiftIndent:function(fe){return _.unshiftIndent(h,fe)}});if(k===null)return null;if(k!==h.normalizeIndentation(E)){var z=g.getLineFirstNonWhitespaceColumn(p.startLineNumber);return z===0?_._typeCommand(new F.a(p.startLineNumber,0,p.endLineNumber,p.endColumn),h.normalizeIndentation(k)+v,!1):_._typeCommand(new F.a(p.startLineNumber,0,p.endLineNumber,p.endColumn),h.normalizeIndentation(k)+g.getLineContent(p.startLineNumber).substring(z-1,p.startColumn-1)+v,!1)}return null},_._isAutoClosingOvertype=function(h,g,p,v,E){if(h.autoClosingOvertype==="never"||!h.autoClosingPairsClose2.has(E))return!1;for(var k=0,z=p.length;k<z;k++){var oe=p[k];if(!oe.isEmpty())return!1;var fe=oe.getPosition(),Se=g.getLineContent(fe.lineNumber),we=Se.charAt(fe.column-1);if(we!==E)return!1;var q=Object(P.g)(E),X=fe.column>2?Se.charCodeAt(fe.column-2):0;if(X===92&&q)return!1;if(h.autoClosingOvertype==="auto"){for(var ce=!1,Ne=0,He=v.length;Ne<He;Ne++){var _e=v[Ne];if(fe.lineNumber===_e.startLineNumber&&fe.column===_e.startColumn){ce=!0;break}}if(!ce)return!1}}return!0},_._runAutoClosingOvertype=function(h,g,p,v,E){for(var k=[],z=0,oe=v.length;z<oe;z++){var fe=v[z],Se=fe.getPosition(),we=new F.a(Se.lineNumber,Se.column,Se.lineNumber,Se.column+1);k[z]=new ne.a(we,E)}return new P.e(1,k,{shouldPushStackElementBefore:h!==1,shouldPushStackElementAfter:!1})},_._autoClosingPairIsSymmetric=function(h){var g=h.open,p=h.close;return g.indexOf(p)>=0||p.indexOf(g)>=0},_._isBeforeClosingBrace=function(h,g,p){var v=h.autoClosingPairsClose2.get(p);if(!v)return!1;for(var E=_._autoClosingPairIsSymmetric(g),k=0,z=v;k<z.length;k++){var oe=z[k],fe=_._autoClosingPairIsSymmetric(oe);if(!(!E&&fe))return!0}return!1},_._findAutoClosingPairOpen=function(h,g,p,v){var E=h.autoClosingPairsOpen2.get(v);if(!E)return null;for(var k=null,z=0,oe=E;z<oe.length;z++){var fe=oe[z];if(k===null||fe.open.length>k.open.length){for(var Se=!0,we=0,q=p;we<q.length;we++){var X=q[we],ce=g.getValueInRange(new F.a(X.lineNumber,X.column-fe.open.length+1,X.lineNumber,X.column));if(ce+v!==fe.open){Se=!1;break}}Se&&(k=fe)}}return k},_._isAutoClosingOpenCharType=function(h,g,p,v,E){var k=Object(P.g)(v),z=k?h.autoClosingQuotes:h.autoClosingBrackets;if(z==="never")return null;var oe=this._findAutoClosingPairOpen(h,g,p.map(function(he){return he.getPosition()}),v);if(!oe)return null;for(var fe=k?h.shouldAutoCloseBefore.quote:h.shouldAutoCloseBefore.bracket,Se=0,we=p.length;Se<we;Se++){var q=p[Se];if(!q.isEmpty())return null;var X=q.getPosition(),ce=g.getLineContent(X.lineNumber);if(ce.length>X.column-1){var Ne=ce.charAt(X.column-1),He=_._isBeforeClosingBrace(h,oe,Ne);if(!He&&!fe(Ne))return null}if(!g.isCheapToTokenize(X.lineNumber))return null;if(oe.open.length===1&&k&&z!=="always"){var _e=Object(K.a)(h.wordSeparators);if(E&&X.column>1&&_e.get(ce.charCodeAt(X.column-2))===0||!E&&X.column>2&&_e.get(ce.charCodeAt(X.column-3))===0)return null}g.forceTokenization(X.lineNumber);var de=g.getLineTokens(X.lineNumber),se=!1;try{se=B.a.shouldAutoClosePair(oe,de,E?X.column:X.column-1)}catch(he){Object(R.e)(he)}if(!se)return null}return oe},_._runAutoClosingOpenCharType=function(h,g,p,v,E,k,z){for(var oe=[],fe=0,Se=v.length;fe<Se;fe++){var we=v[fe];oe[fe]=new U(we,E,k,z.close)}return new P.e(1,oe,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},_._shouldSurroundChar=function(h,g){return Object(P.g)(g)?h.autoSurround==="quotes"||h.autoSurround==="languageDefined":h.autoSurround==="brackets"||h.autoSurround==="languageDefined"},_._isSurroundSelectionType=function(h,g,p,v){if(!_._shouldSurroundChar(h,v)||!h.surroundingPairs.hasOwnProperty(v))return!1;for(var E=Object(P.g)(v),k=0,z=p.length;k<z;k++){var oe=p[k];if(oe.isEmpty())return!1;for(var fe=!0,Se=oe.startLineNumber;Se<=oe.endLineNumber;Se++){var we=g.getLineContent(Se),q=Se===oe.startLineNumber?oe.startColumn-1:0,X=Se===oe.endLineNumber?oe.endColumn-1:we.length,ce=we.substring(q,X);if(/[^ \t]/.test(ce)){fe=!1;break}}if(fe)return!1;if(E&&oe.startLineNumber===oe.endLineNumber&&oe.startColumn+1===oe.endColumn){var Ne=g.getValueInRange(oe);if(Object(P.g)(Ne))return!1}}return!0},_._runSurroundSelectionType=function(h,g,p,v,E){for(var k=[],z=0,oe=v.length;z<oe;z++){var fe=v[z],Se=g.surroundingPairs[E];k[z]=new I(fe,E,Se)}return new P.e(0,k,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},_._isTypeInterceptorElectricChar=function(h,g,p){return!!(p.length===1&&g.isCheapToTokenize(p[0].getEndPosition().lineNumber))},_._typeInterceptorElectricChar=function(h,g,p,v,E){if(!g.electricChars.hasOwnProperty(E)||!v.isEmpty())return null;var k=v.getPosition();p.forceTokenization(k.lineNumber);var z=p.getLineTokens(k.lineNumber),oe;try{oe=B.a.onElectricCharacter(E,z,k.column)}catch(he){return Object(R.e)(he),null}if(!oe)return null;if(oe.matchOpenBracket){var fe=(z.getLineContent()+E).lastIndexOf(oe.matchOpenBracket)+1,Se=p.findMatchingBracketUp(oe.matchOpenBracket,{lineNumber:k.lineNumber,column:fe});if(Se){if(Se.startLineNumber===k.lineNumber)return null;var we=p.getLineContent(Se.startLineNumber),q=re.t(we),X=g.normalizeIndentation(q),ce=p.getLineContent(k.lineNumber),Ne=p.getLineFirstNonWhitespaceColumn(k.lineNumber)||k.column,He=ce.substring(Ne-1,k.column-1),_e=X+He+E,de=new F.a(k.lineNumber,1,k.lineNumber,k.column),se=new ne.a(de,_e);return new P.e(1,[se],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},_.compositionEndWithInterceptors=function(h,g,p,v,E,k){if(!v||V.a.selectionsArrEqual(v,E))return null;for(var z=null,oe=0,fe=E;oe<fe.length;oe++){var Se=fe[oe];if(!Se.isEmpty())return null;var we=Se.getPosition(),q=p.getValueInRange(new F.a(we.lineNumber,we.column-1,we.lineNumber,we.column));if(z===null)z=q;else if(z!==q)return null}if(!z)return null;if(this._isAutoClosingOvertype(g,p,E,k,z)){var X=E.map(function(Ne){return new ne.a(new F.a(Ne.positionLineNumber,Ne.positionColumn,Ne.positionLineNumber,Ne.positionColumn+1),"",!1)});return new P.e(1,X,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var ce=this._isAutoClosingOpenCharType(g,p,E,z,!1);return ce?this._runAutoClosingOpenCharType(h,g,p,E,z,!1,ce):null},_.typeWithInterceptors=function(h,g,p,v,E,k){if(k===`
`){for(var z=[],oe=0,fe=v.length;oe<fe;oe++)z[oe]=_._enter(g,p,!1,v[oe]);return new P.e(1,z,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(g,p,v)){for(var Se=[],we=!1,oe=0,fe=v.length;oe<fe;oe++)if(Se[oe]=this._runAutoIndentType(g,p,v[oe],k),!Se[oe]){we=!0;break}if(!we)return new P.e(1,Se,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(g,p,v,E,k))return this._runAutoClosingOvertype(h,g,p,v,k);var q=this._isAutoClosingOpenCharType(g,p,v,k,!0);if(q)return this._runAutoClosingOpenCharType(h,g,p,v,k,!0,q);if(this._isSurroundSelectionType(g,p,v,k))return this._runSurroundSelectionType(h,g,p,v,k);if(this._isTypeInterceptorElectricChar(g,p,v)){var X=this._typeInterceptorElectricChar(h,g,p,v[0],k);if(X)return X}for(var ce=[],oe=0,fe=v.length;oe<fe;oe++)ce[oe]=new ne.a(v[oe],k);var Ne=h!==1;return k===" "&&(Ne=!0),new P.e(1,ce,{shouldPushStackElementBefore:Ne,shouldPushStackElementAfter:!1})},_.typeWithoutInterceptors=function(h,g,p,v,E){for(var k=[],z=0,oe=v.length;z<oe;z++)k[z]=new ne.a(v[z],E);return new P.e(1,k,{shouldPushStackElementBefore:h!==1,shouldPushStackElementAfter:!1})},_.lineInsertBefore=function(h,g,p){if(g===null||p===null)return[];for(var v=[],E=0,k=p.length;E<k;E++){var z=p[E].positionLineNumber;if(z===1)v[E]=new ne.d(new F.a(1,1,1,1),`
`);else{z--;var oe=g.getLineMaxColumn(z);v[E]=this._enter(h,g,!1,new F.a(z,oe,z,oe))}}return v},_.lineInsertAfter=function(h,g,p){if(g===null||p===null)return[];for(var v=[],E=0,k=p.length;E<k;E++){var z=p[E].positionLineNumber,oe=g.getLineMaxColumn(z);v[E]=this._enter(h,g,!1,new F.a(z,oe,z,oe))}return v},_.lineBreakInsert=function(h,g,p){for(var v=[],E=0,k=p.length;E<k;E++)v[E]=this._enter(h,g,!0,p[E]);return v},_}(),U=function(_){T(h,_);function h(g,p,v,E){var k=_.call(this,g,(v?p:"")+E,0,-E.length)||this;return k._openCharacter=p,k._closeCharacter=E,k.closeCharacterRange=null,k.enclosingRange=null,k}return h.prototype.computeCursorState=function(g,p){var v=p.getInverseEditOperations(),E=v[0].range;return this.closeCharacterRange=new F.a(E.startLineNumber,E.endColumn-this._closeCharacter.length,E.endLineNumber,E.endColumn),this.enclosingRange=new F.a(E.startLineNumber,E.endColumn-this._openCharacter.length-this._closeCharacter.length,E.endLineNumber,E.endColumn),_.prototype.computeCursorState.call(this,g,p)},h}(ne.c)},GZrW:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return o.e(244).then(o.bind(null,"Csoz"))}})},Gb1F:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return o.e(240).then(o.bind(null,"ynbn"))}})},H6Gb:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return o.e(227).then(o.bind(null,"lXEz"))}})},HdwC:function(Et,A,o){"use strict";o.d(A,"b",function(){return T}),o.d(A,"a",function(){return U});var R=o("D3Dy"),re=o("MI8n"),ne=o("pmY6"),P=o("MNsG"),F=function(){function _(h,g){this.chr=h,this.type=g,this.width=0}return _.prototype.fulfill=function(h){this.width=h},_}(),V=function(){function _(h,g){this._bareFontInfo=h,this._requests=g,this._container=null,this._testElements=null}return _.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},_.prototype._createDomElements=function(){var h=document.createElement("div");h.style.position="absolute",h.style.top="-50000px",h.style.width="50000px";var g=document.createElement("div");g.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),g.style.fontWeight=this._bareFontInfo.fontWeight,g.style.fontSize=this._bareFontInfo.fontSize+"px",g.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,g.style.lineHeight=this._bareFontInfo.lineHeight+"px",g.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",h.appendChild(g);var p=document.createElement("div");p.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),p.style.fontWeight="bold",p.style.fontSize=this._bareFontInfo.fontSize+"px",p.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,p.style.lineHeight=this._bareFontInfo.lineHeight+"px",p.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",h.appendChild(p);var v=document.createElement("div");v.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),v.style.fontWeight=this._bareFontInfo.fontWeight,v.style.fontSize=this._bareFontInfo.fontSize+"px",v.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,v.style.lineHeight=this._bareFontInfo.lineHeight+"px",v.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",v.style.fontStyle="italic",h.appendChild(v);for(var E=[],k=0,z=this._requests;k<z.length;k++){var oe=z[k],fe=void 0;oe.type===0&&(fe=g),oe.type===2&&(fe=p),oe.type===1&&(fe=v),fe.appendChild(document.createElement("br"));var Se=document.createElement("span");_._render(Se,oe),fe.appendChild(Se),E.push(Se)}this._container=h,this._testElements=E},_._render=function(h,g){if(g.chr===" "){for(var p="&#160;",v=0;v<8;v++)p+=p;h.innerHTML=p}else{for(var E=g.chr,v=0;v<8;v++)E+=E;h.textContent=E}},_.prototype._readFromDomElements=function(){for(var h=0,g=this._requests.length;h<g;h++){var p=this._requests[h],v=this._testElements[h];p.fulfill(v.offsetWidth/256)}},_}();function B(_,h){var g=new V(_,h);g.read()}var G=o("o39E"),x=o("iDAx"),S=o("/UlZ"),I=o("+3Gp"),K=function(){var _=function(g,p){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,E){v.__proto__=E}||function(v,E){for(var k in E)E.hasOwnProperty(k)&&(v[k]=E[k])},_(g,p)};return function(h,g){_(h,g);function p(){this.constructor=h}h.prototype=g===null?Object.create(g):(p.prototype=g.prototype,new p)}}(),D=function(){function _(){this._keys=Object.create(null),this._values=Object.create(null)}return _.prototype.has=function(h){var g=h.getId();return!!this._values[g]},_.prototype.get=function(h){var g=h.getId();return this._values[g]},_.prototype.put=function(h,g){var p=h.getId();this._keys[p]=h,this._values[p]=g},_.prototype.remove=function(h){var g=h.getId();delete this._keys[g],delete this._values[g]},_.prototype.getValues=function(){var h=this;return Object.keys(this._keys).map(function(g){return h._values[g]})},_}();function T(){te.INSTANCE.clearCache()}var te=function(_){K(h,_);function h(){var g=_.call(this)||this;return g._onDidChange=g._register(new re.a),g.onDidChange=g._onDidChange.event,g._cache=new D,g._evictUntrustedReadingsTimeout=-1,g}return h.prototype.dispose=function(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),_.prototype.dispose.call(this)},h.prototype.clearCache=function(){this._cache=new D,this._onDidChange.fire()},h.prototype._writeToCache=function(g,p){var v=this;this._cache.put(g,p),!p.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=setTimeout(function(){v._evictUntrustedReadingsTimeout=-1,v._evictUntrustedReadings()},5e3))},h.prototype._evictUntrustedReadings=function(){for(var g=this._cache.getValues(),p=!1,v=0,E=g.length;v<E;v++){var k=g[v];k.isTrusted||(p=!0,this._cache.remove(k))}p&&this._onDidChange.fire()},h.prototype.readConfiguration=function(g){if(!this._cache.has(g)){var p=h._actualReadConfiguration(g);(p.typicalHalfwidthCharacterWidth<=2||p.typicalFullwidthCharacterWidth<=2||p.spaceWidth<=2||p.maxDigitWidth<=2)&&(p=new I.b({zoomLevel:R.c(),fontFamily:p.fontFamily,fontWeight:p.fontWeight,fontSize:p.fontSize,fontFeatureSettings:p.fontFeatureSettings,lineHeight:p.lineHeight,letterSpacing:p.letterSpacing,isMonospace:p.isMonospace,typicalHalfwidthCharacterWidth:Math.max(p.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(p.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:p.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(p.spaceWidth,5),middotWidth:Math.max(p.middotWidth,5),maxDigitWidth:Math.max(p.maxDigitWidth,5)},!1)),this._writeToCache(g,p)}return this._cache.get(g)},h.createRequest=function(g,p,v,E){var k=new F(g,p);return v.push(k),E&&E.push(k),k},h._actualReadConfiguration=function(g){var p=[],v=[],E=this.createRequest("n",0,p,v),k=this.createRequest("\uFF4D",0,p,null),z=this.createRequest(" ",0,p,v),oe=this.createRequest("0",0,p,v),fe=this.createRequest("1",0,p,v),Se=this.createRequest("2",0,p,v),we=this.createRequest("3",0,p,v),q=this.createRequest("4",0,p,v),X=this.createRequest("5",0,p,v),ce=this.createRequest("6",0,p,v),Ne=this.createRequest("7",0,p,v),He=this.createRequest("8",0,p,v),_e=this.createRequest("9",0,p,v),de=this.createRequest("\u2192",0,p,v),se=this.createRequest("\uFFEB",0,p,null),he=this.createRequest("\xB7",0,p,v);this.createRequest("|",0,p,v),this.createRequest("/",0,p,v),this.createRequest("-",0,p,v),this.createRequest("_",0,p,v),this.createRequest("i",0,p,v),this.createRequest("l",0,p,v),this.createRequest("m",0,p,v),this.createRequest("|",1,p,v),this.createRequest("_",1,p,v),this.createRequest("i",1,p,v),this.createRequest("l",1,p,v),this.createRequest("m",1,p,v),this.createRequest("n",1,p,v),this.createRequest("|",2,p,v),this.createRequest("_",2,p,v),this.createRequest("i",2,p,v),this.createRequest("l",2,p,v),this.createRequest("m",2,p,v),this.createRequest("n",2,p,v),B(g,p);for(var ie=Math.max(oe.width,fe.width,Se.width,we.width,q.width,X.width,ce.width,Ne.width,He.width,_e.width),$=g.fontFeatureSettings===S.d.OFF,ve=v[0].width,ye=1,Ue=v.length;$&&ye<Ue;ye++){var tt=ve-v[ye].width;if(tt<-.001||tt>.001){$=!1;break}}var _t=!0;$&&se.width!==ve&&(_t=!1),se.width>de.width&&(_t=!1);var At=R.b()>2e3;return new I.b({zoomLevel:R.c(),fontFamily:g.fontFamily,fontWeight:g.fontWeight,fontSize:g.fontSize,fontFeatureSettings:g.fontFeatureSettings,lineHeight:g.lineHeight,letterSpacing:g.letterSpacing,isMonospace:$,typicalHalfwidthCharacterWidth:E.width,typicalFullwidthCharacterWidth:k.width,canUseHalfwidthRightwardsArrow:_t,spaceWidth:z.width,middotWidth:he.width,maxDigitWidth:ie},At)},h.INSTANCE=new h,h}(ne.a),U=function(_){K(h,_);function h(g,p,v,E){v===void 0&&(v=null);var k=_.call(this,g,p)||this;return k.accessibilityService=E,k._elementSizeObserver=k._register(new G.a(v,p.dimension,function(){return k._onReferenceDomElementSizeChanged()})),k._register(te.INSTANCE.onDidChange(function(){return k._onCSSBasedConfigurationChanged()})),k._validatedOptions.get(9)&&k._elementSizeObserver.startObserving(),k._register(R.o(function(z){return k._recomputeOptions()})),k._register(k.accessibilityService.onDidChangeScreenReaderOptimized(function(){return k._recomputeOptions()})),k._recomputeOptions(),k}return h.applyFontInfoSlow=function(g,p){g.style.fontFamily=p.getMassagedFontFamily(),g.style.fontWeight=p.fontWeight,g.style.fontSize=p.fontSize+"px",g.style.fontFeatureSettings=p.fontFeatureSettings,g.style.lineHeight=p.lineHeight+"px",g.style.letterSpacing=p.letterSpacing+"px"},h.applyFontInfo=function(g,p){g.setFontFamily(p.getMassagedFontFamily()),g.setFontWeight(p.fontWeight),g.setFontSize(p.fontSize),g.setFontFeatureSettings(p.fontFeatureSettings),g.setLineHeight(p.lineHeight),g.setLetterSpacing(p.letterSpacing)},h.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},h.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},h.prototype.observeReferenceElement=function(g){this._elementSizeObserver.observe(g)},h.prototype.dispose=function(){_.prototype.dispose.call(this)},h.prototype._getExtraEditorClassName=function(){var g="";return!R.k&&!R.n&&(g+="no-user-select "),P.e&&(g+="mac "),g},h.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:R.m||R.h,pixelRatio:R.a(),zoomLevel:R.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},h.prototype.readConfiguration=function(g){return te.INSTANCE.readConfiguration(g)},h}(x.a)},"I/Lx":function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return o.e(208).then(o.bind(null,"yswY"))}})},"J+ZK":function(Et,A,o){},"JQT/":function(Et,A,o){"use strict";o.d(A,"a",function(){return ne}),o.d(A,"b",function(){return F});var R=o("MI8n"),re=Object.freeze(function(V,B){var G=setTimeout(V.bind(B),0);return{dispose:function(){clearTimeout(G)}}}),ne;(function(V){function B(G){return G===V.None||G===V.Cancelled||G instanceof P?!0:!G||typeof G!="object"?!1:typeof G.isCancellationRequested=="boolean"&&typeof G.onCancellationRequested=="function"}V.isCancellationToken=B,V.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:R.b.None}),V.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:re})})(ne||(ne={}));var P=function(){function V(){this._isCancelled=!1,this._emitter=null}return V.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(V.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?re:(this._emitter||(this._emitter=new R.a),this._emitter.event)},enumerable:!0,configurable:!0}),V.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},V}(),F=function(){function V(B){this._token=void 0,this._parentListener=void 0,this._parentListener=B&&B.onCancellationRequested(this.cancel,this)}return Object.defineProperty(V.prototype,"token",{get:function(){return this._token||(this._token=new P),this._token},enumerable:!0,configurable:!0}),V.prototype.cancel=function(){this._token?this._token instanceof P&&this._token.cancel():this._token=ne.Cancelled},V.prototype.dispose=function(B){B===void 0&&(B=!1),B&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof P&&this._token.dispose():this._token=ne.None},V}()},JYp7:function(Et,A,o){"use strict";o.d(A,"b",function(){return re}),o.d(A,"c",function(){return ne}),o.d(A,"d",function(){return F}),o.d(A,"a",function(){return B});var R=function(){var x=function(I,K){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,T){D.__proto__=T}||function(D,T){for(var te in T)T.hasOwnProperty(te)&&(D[te]=T[te])},x(I,K)};return function(S,I){x(S,I);function K(){this.constructor=S}S.prototype=I===null?Object.create(I):(K.prototype=I.prototype,new K)}}(),re={done:!0,value:void 0},ne;(function(x){var S={next:function(){return re}};function I(){return S}x.empty=I;function K(E){var k=!1;return{next:function(){return k?re:(k=!0,{done:!1,value:E})}}}x.single=K;function D(E,k,z){return k===void 0&&(k=0),z===void 0&&(z=E.length),{next:function(){return k>=z?re:{done:!1,value:E[k++]}}}}x.fromArray=D;function T(E){return{next:function(){var z=E.next();return z.done?re:{done:!1,value:z.value}}}}x.fromNativeIterator=T;function te(E){return E?Array.isArray(E)?x.fromArray(E):E:x.empty()}x.from=te;function U(E,k){return{next:function(){var oe=E.next();return oe.done?re:{done:!1,value:k(oe.value)}}}}x.map=U;function _(E,k){return{next:function(){for(;;){var oe=E.next();if(oe.done)return re;if(k(oe.value))return{done:!1,value:oe.value}}}}}x.filter=_;function h(E,k){for(var z=E.next();!z.done;z=E.next())k(z.value)}x.forEach=h;function g(E,k){k===void 0&&(k=Number.POSITIVE_INFINITY);var z=[];if(k===0)return z;for(var oe=0,fe=E.next();!fe.done&&(z.push(fe.value),!(++oe>=k));fe=E.next());return z}x.collect=g;function p(){for(var E=[],k=0;k<arguments.length;k++)E[k]=arguments[k];var z=0;return{next:function(){if(z>=E.length)return re;var fe=E[z],Se=fe.next();return Se.done?(z++,this.next()):Se}}}x.concat=p;function v(E){return new P(E)}x.chain=v})(ne||(ne={}));var P=function(){function x(S){this.it=S}return x.prototype.next=function(){return this.it.next()},x}();function F(x){return Array.isArray(x)?ne.fromArray(x):x||ne.empty()}var V=function(){function x(S,I,K,D){I===void 0&&(I=0),K===void 0&&(K=S.length),D===void 0&&(D=I-1),this.items=S,this.start=I,this.end=K,this.index=D}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}(),B=function(x){R(S,x);function S(I,K,D,T){return K===void 0&&(K=0),D===void 0&&(D=I.length),T===void 0&&(T=K-1),x.call(this,I,K,D,T)||this}return S.prototype.current=function(){return x.prototype.current.call(this)},S.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},S.prototype.first=function(){return this.index=this.start,this.current()},S.prototype.last=function(){return this.index=this.end-1,this.current()},S.prototype.parent=function(){return null},S}(V),G=function(){function x(S,I){this.iterator=S,this.fn=I}return x.prototype.next=function(){return this.fn(this.iterator.next())},x}()},JlLP:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return o.e(229).then(o.bind(null,"W1QP"))}})},KDc4:function(Et,A,o){"use strict";o.d(A,"a",function(){return R}),o.d(A,"b",function(){return re});var R;(function(ne){ne[ne.None=0]="None",ne[ne.Indent=1]="Indent",ne[ne.IndentOutdent=2]="IndentOutdent",ne[ne.Outdent=3]="Outdent"})(R||(R={}));var re=function(){function ne(P){if(this.open=P.open,this.close=P.close,this._standardTokenMask=0,Array.isArray(P.notIn))for(var F=0,V=P.notIn.length;F<V;F++){var B=P.notIn[F];switch(B){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}return ne.prototype.isOK=function(P){return(this._standardTokenMask&P)==0},ne}()},KTWA:function(Et,A,o){"use strict";o.r(A);var R=o("3/fG"),re=o("sswD"),ne=o("wQH0"),P=o("aokT"),F=function(){function S(I,K){this._selection=I,this._isMovingLeft=K,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}return S.prototype.getEditOperations=function(I,K){var D=this._selection;if(this._selectionId=K.trackSelection(D),D.startLineNumber===D.endLineNumber&&!(this._isMovingLeft&&D.startColumn===0)&&!(!this._isMovingLeft&&D.endColumn===I.getLineMaxColumn(D.startLineNumber))){var T=D.selectionStartLineNumber,te=I.getLineContent(T),U,_,h;this._isMovingLeft?(U=te.substring(0,D.startColumn-2),_=te.substring(D.startColumn-1,D.endColumn-1),h=te.substring(D.startColumn-2,D.startColumn-1)+te.substring(D.endColumn-1)):(U=te.substring(0,D.startColumn-1)+te.substring(D.endColumn-1,D.endColumn),_=te.substring(D.startColumn-1,D.endColumn-1),h=te.substring(D.endColumn));var g=U+_+h;K.addEditOperation(new P.a(T,1,T,I.getLineMaxColumn(T)),null),K.addEditOperation(new P.a(T,1,T,1),g),this._cutStartIndex=D.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+D.endColumn-D.startColumn,this._moved=!0}},S.prototype.computeCursorState=function(I,K){var D=K.getTrackedSelection(this._selectionId);return this._moved&&(D=D.setStartPosition(D.startLineNumber,this._cutStartIndex),D=D.setEndPosition(D.startLineNumber,this._cutEndIndex)),D},S}(),V=function(){var S=function(K,D){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,te){T.__proto__=te}||function(T,te){for(var U in te)te.hasOwnProperty(U)&&(T[U]=te[U])},S(K,D)};return function(I,K){S(I,K);function D(){this.constructor=I}I.prototype=K===null?Object.create(K):(D.prototype=K.prototype,new D)}}(),B=function(S){V(I,S);function I(K,D){var T=S.call(this,D)||this;return T.left=K,T}return I.prototype.run=function(K,D){if(!!D.hasModel()){for(var T=[],te=D.getSelections(),U=0,_=te;U<_.length;U++){var h=_[U];T.push(new F(h,this.left))}D.pushUndoStop(),D.executeCommands(this.id,T),D.pushUndoStop()}},I}(re.b),G=function(S){V(I,S);function I(){return S.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:R.a("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:ne.a.writable})||this}return I}(B),x=function(S){V(I,S);function I(){return S.call(this,!1,{id:"editor.action.moveCarretRightAction",label:R.a("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:ne.a.writable})||this}return I}(B);Object(re.f)(G),Object(re.f)(x)},KaET:function(Et,A,o){},KgQ1:function(Et,A,o){},Krc3:function(Et,A,o){},LCkn:function(Et,A,o){"use strict";o.d(A,"a",function(){return re}),o.d(A,"d",function(){return P}),o.d(A,"c",function(){return F}),o.d(A,"b",function(){return V});var R=o("gCVg"),re=function(){function B(G,x,S){S===void 0&&(S=!1),this._range=G,this._text=x,this.insertsAutoWhitespace=S}return B.prototype.getEditOperations=function(G,x){x.addTrackedEditOperation(this._range,this._text)},B.prototype.computeCursorState=function(G,x){var S=x.getInverseEditOperations(),I=S[0].range;return new R.a(I.endLineNumber,I.endColumn,I.endLineNumber,I.endColumn)},B}(),ne=function(){function B(G,x){this._range=G,this._text=x}return B.prototype.getEditOperations=function(G,x){x.addTrackedEditOperation(this._range,this._text)},B.prototype.computeCursorState=function(G,x){var S=x.getInverseEditOperations(),I=S[0].range;return new R.a(I.startLineNumber,I.startColumn,I.endLineNumber,I.endColumn)},B}(),P=function(){function B(G,x,S){S===void 0&&(S=!1),this._range=G,this._text=x,this.insertsAutoWhitespace=S}return B.prototype.getEditOperations=function(G,x){x.addTrackedEditOperation(this._range,this._text)},B.prototype.computeCursorState=function(G,x){var S=x.getInverseEditOperations(),I=S[0].range;return new R.a(I.startLineNumber,I.startColumn,I.startLineNumber,I.startColumn)},B}(),F=function(){function B(G,x,S,I,K){K===void 0&&(K=!1),this._range=G,this._text=x,this._columnDeltaOffset=I,this._lineNumberDeltaOffset=S,this.insertsAutoWhitespace=K}return B.prototype.getEditOperations=function(G,x){x.addTrackedEditOperation(this._range,this._text)},B.prototype.computeCursorState=function(G,x){var S=x.getInverseEditOperations(),I=S[0].range;return new R.a(I.endLineNumber+this._lineNumberDeltaOffset,I.endColumn+this._columnDeltaOffset,I.endLineNumber+this._lineNumberDeltaOffset,I.endColumn+this._columnDeltaOffset)},B}(),V=function(){function B(G,x,S,I){I===void 0&&(I=!1),this._range=G,this._text=x,this._initialSelection=S,this._forceMoveMarkers=I,this._selectionId=null}return B.prototype.getEditOperations=function(G,x){x.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=x.trackSelection(this._initialSelection)},B.prototype.computeCursorState=function(G,x){return x.getTrackedSelection(this._selectionId)},B}()},LRks:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return o.e(248).then(o.bind(null,"05+/"))}})},"LeU+":function(Et,A,o){"use strict";o.d(A,"b",function(){return re}),o.d(A,"a",function(){return ne});var R=o("CZ1j"),re=function(){function P(F,V){this.index=F,this.remainder=V}return P}(),ne=function(){function P(F){this.values=F,this.prefixSum=new Uint32Array(F.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return P.prototype.insertValues=function(F,V){F=Object(R.a)(F);var B=this.values,G=this.prefixSum,x=V.length;return x===0?!1:(this.values=new Uint32Array(B.length+x),this.values.set(B.subarray(0,F),0),this.values.set(B.subarray(F),F+x),this.values.set(V,F),F-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=F-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(G.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},P.prototype.changeValue=function(F,V){return F=Object(R.a)(F),V=Object(R.a)(V),this.values[F]===V?!1:(this.values[F]=V,F-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=F-1),!0)},P.prototype.removeValues=function(F,V){F=Object(R.a)(F),V=Object(R.a)(V);var B=this.values,G=this.prefixSum;if(F>=B.length)return!1;var x=B.length-F;return V>=x&&(V=x),V===0?!1:(this.values=new Uint32Array(B.length-V),this.values.set(B.subarray(0,F),0),this.values.set(B.subarray(F+V),F),this.prefixSum=new Uint32Array(this.values.length),F-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=F-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(G.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},P.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},P.prototype.getAccumulatedValue=function(F){return F<0?0:(F=Object(R.a)(F),this._getAccumulatedValue(F))},P.prototype._getAccumulatedValue=function(F){if(F<=this.prefixSumValidIndex[0])return this.prefixSum[F];var V=this.prefixSumValidIndex[0]+1;V===0&&(this.prefixSum[0]=this.values[0],V++),F>=this.values.length&&(F=this.values.length-1);for(var B=V;B<=F;B++)this.prefixSum[B]=this.prefixSum[B-1]+this.values[B];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],F),this.prefixSum[F]},P.prototype.getIndexOf=function(F){F=Math.floor(F),this.getTotalValue();for(var V=0,B=this.values.length-1,G=0,x=0,S=0;V<=B;)if(G=V+(B-V)/2|0,x=this.prefixSum[G],S=x-this.values[G],F<S)B=G-1;else if(F>=x)V=G+1;else break;return new re(G,F-S)},P}()},LexI:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return o.e(209).then(o.bind(null,"lHAa"))}})},Ll0s:function(Et,A,o){"use strict";o.d(A,"b",function(){return K}),o.d(A,"f",function(){return D}),o.d(A,"c",function(){return T}),o.d(A,"d",function(){return _}),o.d(A,"e",function(){return h}),o.d(A,"a",function(){return g}),o.d(A,"g",function(){return p});var R=o("/cxE"),re=o("N0LK"),ne=o("cGHE"),P=o("aokT"),F=o("gCVg"),V=o("tX9W"),B=o("cMvZ"),G=function(){return!0},x=function(){return!1},S=function(E){return E===" "||E===" "};function I(v,E,k){v.has(E)?v.get(E).push(k):v.set(E,[k])}var K=function(){function v(E,k,z){this._languageIdentifier=E;var oe=z.options,fe=oe.get(107);this.readOnly=oe.get(68),this.tabSize=k.tabSize,this.indentSize=k.indentSize,this.insertSpaces=k.insertSpaces,this.lineHeight=oe.get(49),this.pageSize=Math.max(1,Math.floor(fe.height/this.lineHeight)-2),this.useTabStops=oe.get(95),this.wordSeparators=oe.get(96),this.emptySelectionClipboard=oe.get(25),this.copyWithSyntaxHighlighting=oe.get(15),this.multiCursorMergeOverlapping=oe.get(58),this.multiCursorPaste=oe.get(60),this.autoClosingBrackets=oe.get(5),this.autoClosingQuotes=oe.get(7),this.autoClosingOvertype=oe.get(6),this.autoSurround=oe.get(10),this.autoIndent=oe.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:v._getShouldAutoClose(E,this.autoClosingQuotes),bracket:v._getShouldAutoClose(E,this.autoClosingBrackets)};var Se=v._getAutoClosingPairs(E);if(Se)for(var we=0,q=Se;we<q.length;we++){var X=q[we];I(this.autoClosingPairsOpen2,X.open.charAt(X.open.length-1),X),X.close.length===1&&I(this.autoClosingPairsClose2,X.close,X)}var ce=v._getSurroundingPairs(E);if(ce)for(var Ne=0,He=ce;Ne<He.length;Ne++){var X=He[Ne];this.surroundingPairs[X.open]=X.close}}return v.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(v.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var k=v._getElectricCharacters(this._languageIdentifier);if(k)for(var z=0,oe=k;z<oe.length;z++){var fe=oe[z];this._electricChars[fe]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),v.prototype.normalizeIndentation=function(E){return V.b.normalizeIndentation(E,this.indentSize,this.insertSpaces)},v._getElectricCharacters=function(E){try{return B.a.getElectricCharacters(E.id)}catch(k){return Object(R.e)(k),null}},v._getAutoClosingPairs=function(E){try{return B.a.getAutoClosingPairs(E.id)}catch(k){return Object(R.e)(k),null}},v._getShouldAutoClose=function(E,k){switch(k){case"beforeWhitespace":return S;case"languageDefined":return v._getLanguageDefinedShouldAutoClose(E);case"always":return G;case"never":return x}},v._getLanguageDefinedShouldAutoClose=function(E){try{var k=B.a.getAutoCloseBeforeSet(E.id);return function(z){return k.indexOf(z)!==-1}}catch(z){return Object(R.e)(z),x}},v._getSurroundingPairs=function(E){try{return B.a.getSurroundingPairs(E.id)}catch(k){return Object(R.e)(k),null}},v}(),D=function(){function v(E,k,z,oe){this.selectionStart=E,this.selectionStartLeftoverVisibleColumns=k,this.position=z,this.leftoverVisibleColumns=oe,this.selection=v._computeSelection(this.selectionStart,this.position)}return v.prototype.equals=function(E){return this.selectionStartLeftoverVisibleColumns===E.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===E.leftoverVisibleColumns&&this.position.equals(E.position)&&this.selectionStart.equalsRange(E.selectionStart)},v.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},v.prototype.move=function(E,k,z,oe){return E?new v(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new ne.a(k,z),oe):new v(new P.a(k,z,k,z),oe,new ne.a(k,z),oe)},v._computeSelection=function(E,k){var z,oe,fe,Se;return E.isEmpty()?(z=E.startLineNumber,oe=E.startColumn,fe=k.lineNumber,Se=k.column):k.isBeforeOrEqual(E.getStartPosition())?(z=E.endLineNumber,oe=E.endColumn,fe=k.lineNumber,Se=k.column):(z=E.startLineNumber,oe=E.startColumn,fe=k.lineNumber,Se=k.column),new F.a(z,oe,fe,Se)},v}(),T=function(){function v(E,k,z){this.model=k,this.viewModel=z,this.config=new K(this.model.getLanguageIdentifier(),this.model.getOptions(),E)}return v.prototype.validateViewPosition=function(E,k){return this.viewModel.coordinatesConverter.validateViewPosition(E,k)},v.prototype.validateViewRange=function(E,k){return this.viewModel.coordinatesConverter.validateViewRange(E,k)},v.prototype.convertViewRangeToModelRange=function(E){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(E)},v.prototype.convertViewPositionToModelPosition=function(E,k){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(E,k))},v.prototype.convertModelPositionToViewPosition=function(E){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(E)},v.prototype.convertModelRangeToViewRange=function(E){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(E)},v.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},v.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},v.prototype.getCompletelyVisibleModelRange=function(){var E=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(E)},v.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(E){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(E)},v.prototype.getVerticalOffsetForViewLine=function(E){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(E)},v}(),te=function(){function v(E){this.modelState=E,this.viewState=null}return v}(),U=function(){function v(E){this.modelState=null,this.viewState=E}return v}(),_=function(){function v(E,k){this.modelState=E,this.viewState=k}return v.fromModelState=function(E){return new te(E)},v.fromViewState=function(E){return new U(E)},v.fromModelSelection=function(E){var k=E.selectionStartLineNumber,z=E.selectionStartColumn,oe=E.positionLineNumber,fe=E.positionColumn,Se=new D(new P.a(k,z,k,z),0,new ne.a(oe,fe),0);return v.fromModelState(Se)},v.fromModelSelections=function(E){for(var k=[],z=0,oe=E.length;z<oe;z++)k[z]=this.fromModelSelection(E[z]);return k},v.prototype.equals=function(E){return this.viewState.equals(E.viewState)&&this.modelState.equals(E.modelState)},v}(),h=function(){function v(E,k,z){this.type=E,this.commands=k,this.shouldPushStackElementBefore=z.shouldPushStackElementBefore,this.shouldPushStackElementAfter=z.shouldPushStackElementAfter}return v}(),g=function(){function v(){}return v.visibleColumnFromColumn=function(E,k,z){for(var oe=E.length,fe=k-1<oe?k-1:oe,Se=0,we=0;we<fe;){var q=re.u(E,fe,we);if(we+=q>=65536?2:1,q===9)Se=v.nextRenderTabStop(Se,z);else{for(var X=re.s(q);we<fe;){var ce=re.u(E,fe,we),Ne=re.s(ce);if(re.b(X,Ne))break;we+=ce>=65536?2:1,X=Ne}re.y(q)||re.w(q)?Se=Se+2:Se=Se+1}}return Se},v.visibleColumnFromColumn2=function(E,k,z){return this.visibleColumnFromColumn(k.getLineContent(z.lineNumber),z.column,E.tabSize)},v.columnFromVisibleColumn=function(E,k,z){if(k<=0)return 1;for(var oe=E.length,fe=0,Se=1,we=0;we<oe;){var q=re.u(E,oe,we);we+=q>=65536?2:1;var X=void 0;if(q===9)X=v.nextRenderTabStop(fe,z);else{for(var ce=re.s(q);we<oe;){var Ne=re.u(E,oe,we),He=re.s(Ne);if(re.b(ce,He))break;we+=Ne>=65536?2:1,ce=He}re.y(q)||re.w(q)?X=fe+2:X=fe+1}var _e=we+1;if(X>=k){var de=k-fe,se=X-k;return se<de?_e:Se}fe=X,Se=_e}return oe+1},v.columnFromVisibleColumn2=function(E,k,z,oe){var fe=this.columnFromVisibleColumn(k.getLineContent(z),oe,E.tabSize),Se=k.getLineMinColumn(z);if(fe<Se)return Se;var we=k.getLineMaxColumn(z);return fe>we?we:fe},v.nextRenderTabStop=function(E,k){return E+k-E%k},v.nextIndentTabStop=function(E,k){return E+k-E%k},v.prevRenderTabStop=function(E,k){return E-1-(E-1)%k},v.prevIndentTabStop=function(E,k){return E-1-(E-1)%k},v}();function p(v){return v==="'"||v==='"'||v==="`"}},"M/lh":function(Et,A,o){self.MonacoEnvironment=function(R){function re(ne){return ne.replace(/\/$/,"")}return{getWorkerUrl:function(P,F){var V=o.p,B=(V?re(V)+"/":"")+R[F];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(B)){var G=String(window.location),x=G.substr(0,G.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(B.substring(0,x.length)!==x){var S="/*"+F+'*/importScripts("'+B+'");',I=new Blob([S],{type:"application/javascript"});return URL.createObjectURL(I)}}return B}}}({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"}),o("1YUG"),o("oQaD"),o("bk7F"),o("KTWA"),o("w29/"),o("n01l"),o("dgXF"),o("cIJc"),o("oiKk"),o("rugR"),o("tXSY"),o("ep4t"),Et.exports=o("8z58"),o("CdFp"),o("23p7"),o("OOlL"),o("li8W"),o("kdPm"),o("ApJL"),o("jrbv"),o("gqHg"),o("p3Ex"),o("E+ie"),o("9B1q"),o("9XAT"),o("SvYn"),o("I/Lx"),o("LexI"),o("0oIH"),o("+a1H"),o("hFdI"),o("c2dO"),o("zQEy"),o("k7mE"),o("cldp"),o("p5tG"),o("Dvnd"),o("FvUK"),o("ZvGG"),o("QFiB"),o("ZkA/"),o("/cAr"),o("xYNL"),o("jVwG"),o("6lNC"),o("q8qy"),o("sStQ"),o("oKJv"),o("H6Gb"),o("y3CF"),o("JlLP"),o("j2o1"),o("woZy"),o("iLY9"),o("Msxo"),o("ajgA"),o("QiAa"),o("pI2L"),o("yKqg"),o("ij/i"),o("XQgg"),o("Gb1F"),o("xmOD"),o("c9ML"),o("Mzro"),o("GZrW"),o("1lwE"),o("w9QG"),o("ufhN"),o("LRks"),o("BUKB"),o("n18v"),o("EOst"),o("z3hU"),o("nrBJ"),o("BEdG"),o("E4kL")},M1Kb:function(Et,A,o){"use strict";o.d(A,"d",function(){return R}),o.d(A,"c",function(){return re}),o.d(A,"e",function(){return ne}),o.d(A,"b",function(){return P}),o.d(A,"a",function(){return F});var R;(function(V){V[V.Left=1]="Left",V[V.Center=2]="Center",V[V.Right=4]="Right",V[V.Full=7]="Full"})(R||(R={}));var re;(function(V){V[V.Inline=1]="Inline",V[V.Gutter=2]="Gutter"})(re||(re={}));var ne=function(){function V(B){this.tabSize=Math.max(1,B.tabSize|0),this.indentSize=B.tabSize|0,this.insertSpaces=Boolean(B.insertSpaces),this.defaultEOL=B.defaultEOL|0,this.trimAutoWhitespace=Boolean(B.trimAutoWhitespace)}return V.prototype.equals=function(B){return this.tabSize===B.tabSize&&this.indentSize===B.indentSize&&this.insertSpaces===B.insertSpaces&&this.defaultEOL===B.defaultEOL&&this.trimAutoWhitespace===B.trimAutoWhitespace},V.prototype.createChangeEvent=function(B){return{tabSize:this.tabSize!==B.tabSize,indentSize:this.indentSize!==B.indentSize,insertSpaces:this.insertSpaces!==B.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==B.trimAutoWhitespace}},V}(),P=function(){function V(B,G){this.range=B,this.matches=G}return V}(),F=function(){function V(B,G,x){this.reverseEdits=B,this.changes=G,this.trimAutoWhitespaceLineNumbers=x}return V}()},MD5Z:function(Et,A,o){"use strict";o.d(A,"a",function(){return B}),o.d(A,"Rb",function(){return S}),o.d(A,"V",function(){return I}),o.d(A,"T",function(){return K}),o.d(A,"U",function(){return D}),o.d(A,"e",function(){return T}),o.d(A,"b",function(){return te}),o.d(A,"cc",function(){return U}),o.d(A,"bc",function(){return _}),o.d(A,"fc",function(){return h}),o.d(A,"Y",function(){return g}),o.d(A,"ab",function(){return p}),o.d(A,"Z",function(){return v}),o.d(A,"X",function(){return E}),o.d(A,"W",function(){return k}),o.d(A,"eb",function(){return z}),o.d(A,"gb",function(){return oe}),o.d(A,"fb",function(){return fe}),o.d(A,"hb",function(){return Se}),o.d(A,"jb",function(){return we}),o.d(A,"ib",function(){return q}),o.d(A,"bb",function(){return X}),o.d(A,"db",function(){return ce}),o.d(A,"cb",function(){return Ne}),o.d(A,"Mb",function(){return de}),o.d(A,"Lb",function(){return se}),o.d(A,"c",function(){return he}),o.d(A,"d",function(){return ie}),o.d(A,"Tb",function(){return $}),o.d(A,"Vb",function(){return ve}),o.d(A,"Wb",function(){return ye}),o.d(A,"Ub",function(){return Ue}),o.d(A,"Qb",function(){return tt}),o.d(A,"q",function(){return _t}),o.d(A,"p",function(){return At}),o.d(A,"O",function(){return Yt}),o.d(A,"N",function(){return Ke}),o.d(A,"H",function(){return Ye}),o.d(A,"G",function(){return Xe}),o.d(A,"z",function(){return Ze}),o.d(A,"y",function(){return We}),o.d(A,"o",function(){return Qe}),o.d(A,"x",function(){return Ee}),o.d(A,"P",function(){return W}),o.d(A,"R",function(){return ee}),o.d(A,"Q",function(){return Ae}),o.d(A,"S",function(){return me}),o.d(A,"K",function(){return Me}),o.d(A,"L",function(){return Re}),o.d(A,"F",function(){return ge}),o.d(A,"M",function(){return nt}),o.d(A,"r",function(){return xt}),o.d(A,"t",function(){return Mt}),o.d(A,"v",function(){return zt}),o.d(A,"s",function(){return Gt}),o.d(A,"u",function(){return on}),o.d(A,"w",function(){return On}),o.d(A,"D",function(){return yn}),o.d(A,"A",function(){return Mn}),o.d(A,"C",function(){return Ft}),o.d(A,"B",function(){return gt}),o.d(A,"E",function(){return pt}),o.d(A,"n",function(){return Dt}),o.d(A,"J",function(){return Ot}),o.d(A,"I",function(){return Ht}),o.d(A,"g",function(){return Jt}),o.d(A,"h",function(){return nn}),o.d(A,"j",function(){return sn}),o.d(A,"l",function(){return un}),o.d(A,"k",function(){return Sn}),o.d(A,"m",function(){return Ln}),o.d(A,"i",function(){return An}),o.d(A,"qb",function(){return Gn}),o.d(A,"rb",function(){return Jn}),o.d(A,"kb",function(){return $n}),o.d(A,"lb",function(){return pi}),o.d(A,"wb",function(){return Kn}),o.d(A,"xb",function(){return yi}),o.d(A,"vb",function(){return vi}),o.d(A,"tb",function(){return mt}),o.d(A,"ub",function(){return Nt}),o.d(A,"mb",function(){return Ut}),o.d(A,"sb",function(){return tn}),o.d(A,"nb",function(){return Vt}),o.d(A,"pb",function(){return wn}),o.d(A,"ob",function(){return xn}),o.d(A,"ec",function(){return kn}),o.d(A,"zb",function(){return Fn}),o.d(A,"Ab",function(){return oi}),o.d(A,"yb",function(){return ci}),o.d(A,"Db",function(){return Ui}),o.d(A,"Bb",function(){return rr}),o.d(A,"Cb",function(){return Xn}),o.d(A,"Eb",function(){return Ri}),o.d(A,"Zb",function(){return wi}),o.d(A,"ac",function(){return Bi}),o.d(A,"Xb",function(){return Vn}),o.d(A,"Yb",function(){return bi}),o.d(A,"Kb",function(){return ji}),o.d(A,"Gb",function(){return Gi}),o.d(A,"Hb",function(){return ki}),o.d(A,"Fb",function(){return mi}),o.d(A,"Ib",function(){return qi}),o.d(A,"Nb",function(){return or}),o.d(A,"Pb",function(){return Ci}),o.d(A,"Ob",function(){return Di}),o.d(A,"f",function(){return Yi}),o.d(A,"dc",function(){return Ni}),o.d(A,"Jb",function(){return sr}),o.d(A,"Sb",function(){return L});var R=o("ic2d"),re=o("zrhQ"),ne=o("MI8n"),P=o("3/fG"),F=o("3Rsk"),V=o("X+cX"),B={ColorContribution:"base.contributions.colors"},G=function(){function xe(){this._onDidChangeSchema=new ne.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return xe.prototype.registerColor=function(je,ht,ut,yt,It){yt===void 0&&(yt=!1);var Rt={id:je,description:ut,defaults:ht,needsTransparency:yt,deprecationMessage:It};this.colorsById[je]=Rt;var Wt={type:"string",description:ut,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return It&&(Wt.deprecationMessage=It),this.colorSchema.properties[je]=Wt,this.colorReferenceSchema.enum.push(je),this.colorReferenceSchema.enumDescriptions.push(ut),this._onDidChangeSchema.fire(),je},xe.prototype.resolveDefaultColor=function(je,ht){var ut=this.colorsById[je];if(ut&&ut.defaults){var yt=ut.defaults[ht.type];return L(yt,ht)}},xe.prototype.getColorSchema=function(){return this.colorSchema},xe.prototype.toString=function(){var je=this,ht=function(yt,It){var Rt=yt.indexOf(".")===-1?0:1,Wt=It.indexOf(".")===-1?0:1;return Rt!==Wt?Rt-Wt:yt.localeCompare(It)};return Object.keys(this.colorsById).sort(ht).map(function(ut){return"- `"+ut+"`: "+je.colorsById[ut].description}).join(`
`)},xe}(),x=new G;R.a.add(B.ColorContribution,x);function S(xe,je,ht,ut,yt){return x.registerColor(xe,je,ht,ut,yt)}var I=S("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},P.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),K=S("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},P.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),D=S("focusBorder",{dark:re.a.fromHex("#0E639C").transparent(.8),light:re.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},P.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),T=S("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},P.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),te=S("contrastActiveBorder",{light:null,dark:null,hc:D},P.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),U=S("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},P.a("textLinkForeground","Foreground color for links in text.")),_=S("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:re.a.black},P.a("textCodeBlockBackground","Background color for code blocks in text.")),h=S("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},P.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),g=S("input.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},P.a("inputBoxBackground","Input box background.")),p=S("input.foreground",{dark:I,light:I,hc:I},P.a("inputBoxForeground","Input box foreground.")),v=S("input.border",{dark:null,light:null,hc:T},P.a("inputBoxBorder","Input box border.")),E=S("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:T},P.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),k=S("inputOption.activeBackground",{dark:Ni(D,.5),light:Ni(D,.3),hc:null},P.a("inputOption.activeBackground","Background color of activated options in input fields.")),z=S("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:re.a.black},P.a("inputValidationInfoBackground","Input validation background color for information severity.")),oe=S("inputValidation.infoForeground",{dark:null,light:null,hc:null},P.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),fe=S("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:T},P.a("inputValidationInfoBorder","Input validation border color for information severity.")),Se=S("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:re.a.black},P.a("inputValidationWarningBackground","Input validation background color for warning severity.")),we=S("inputValidation.warningForeground",{dark:null,light:null,hc:null},P.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),q=S("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:T},P.a("inputValidationWarningBorder","Input validation border color for warning severity.")),X=S("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:re.a.black},P.a("inputValidationErrorBackground","Input validation background color for error severity.")),ce=S("inputValidation.errorForeground",{dark:null,light:null,hc:null},P.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),Ne=S("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:T},P.a("inputValidationErrorBorder","Input validation border color for error severity.")),He=S("dropdown.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},P.a("dropdownBackground","Dropdown background.")),_e=S("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:re.a.white},P.a("dropdownForeground","Dropdown foreground.")),de=S("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:re.a.white},P.a("pickerGroupForeground","Quick picker color for grouping labels.")),se=S("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:re.a.white},P.a("pickerGroupBorder","Quick picker color for grouping borders.")),he=S("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:re.a.black},P.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),ie=S("badge.foreground",{dark:re.a.white,light:"#333",hc:re.a.white},P.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),$=S("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},P.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ve=S("scrollbarSlider.background",{dark:re.a.fromHex("#797979").transparent(.4),light:re.a.fromHex("#646464").transparent(.4),hc:Ni(T,.6)},P.a("scrollbarSliderBackground","Scrollbar slider background color.")),ye=S("scrollbarSlider.hoverBackground",{dark:re.a.fromHex("#646464").transparent(.7),light:re.a.fromHex("#646464").transparent(.7),hc:Ni(T,.8)},P.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Ue=S("scrollbarSlider.activeBackground",{dark:re.a.fromHex("#BFBFBF").transparent(.4),light:re.a.fromHex("#000000").transparent(.6),hc:T},P.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),tt=S("progressBar.background",{dark:re.a.fromHex("#0E70C0"),light:re.a.fromHex("#0E70C0"),hc:T},P.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),_t=S("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},P.a("editorError.foreground","Foreground color of error squigglies in the editor.")),At=S("editorError.border",{dark:null,light:null,hc:re.a.fromHex("#E47777").transparent(.8)},P.a("errorBorder","Border color of error boxes in the editor.")),Yt=S("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},P.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),Ke=S("editorWarning.border",{dark:null,light:null,hc:re.a.fromHex("#FFCC00").transparent(.8)},P.a("warningBorder","Border color of warning boxes in the editor.")),Ye=S("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},P.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Xe=S("editorInfo.border",{dark:null,light:null,hc:re.a.fromHex("#75BEFF").transparent(.8)},P.a("infoBorder","Border color of info boxes in the editor.")),Ze=S("editorHint.foreground",{dark:re.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},P.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),We=S("editorHint.border",{dark:null,light:null,hc:re.a.fromHex("#eeeeee").transparent(.8)},P.a("hintBorder","Border color of hint boxes in the editor.")),Qe=S("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:re.a.black},P.a("editorBackground","Editor background color.")),Ee=S("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:re.a.white},P.a("editorForeground","Editor default foreground color.")),W=S("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},P.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),ee=S("editorWidget.foreground",{dark:I,light:I,hc:I},P.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),Ae=S("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:T},P.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.")),me=S("editorWidget.resizeBorder",{light:null,dark:null,hc:null},P.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.")),Me=S("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},P.a("editorSelectionBackground","Color of the editor selection.")),Re=S("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},P.a("editorSelectionForeground","Color of the selected text for high contrast.")),ge=S("editor.inactiveSelectionBackground",{light:Ni(Me,.5),dark:Ni(Me,.5),hc:Ni(Me,.5)},P.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),nt=S("editor.selectionHighlightBackground",{light:$e(Me,Qe,.3,.6),dark:$e(Me,Qe,.3,.6),hc:null},P.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),St=S("editor.selectionHighlightBorder",{light:null,dark:null,hc:te},P.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),xt=S("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},P.a("editorFindMatch","Color of the current search match.")),Mt=S("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},P.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),zt=S("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},P.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Gt=S("editor.findMatchBorder",{light:null,dark:null,hc:te},P.a("editorFindMatchBorder","Border color of the current search match.")),on=S("editor.findMatchHighlightBorder",{light:null,dark:null,hc:te},P.a("findMatchHighlightBorder","Border color of the other search matches.")),On=S("editor.findRangeHighlightBorder",{dark:null,light:null,hc:Ni(te,.4)},P.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),yn=S("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},P.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),Mn=S("editorHoverWidget.background",{light:W,dark:W,hc:W},P.a("hoverBackground","Background color of the editor hover.")),Ft=S("editorHoverWidget.foreground",{light:ee,dark:ee,hc:ee},P.a("hoverForeground","Foreground color of the editor hover.")),gt=S("editorHoverWidget.border",{light:Ae,dark:Ae,hc:Ae},P.a("hoverBorder","Border color of the editor hover.")),pt=S("editorHoverWidget.statusBarBackground",{dark:ur(Mn,.2),light:Yi(Mn,.05),hc:W},P.a("statusBarBackground","Background color of the editor hover status bar.")),Dt=S("editorLink.activeForeground",{dark:"#4E94CE",light:re.a.blue,hc:re.a.cyan},P.a("activeLinkForeground","Color of active links.")),Ot=S("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},P.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Ht=S("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},P.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),Jt=new re.a(new re.c(155,185,85,.2)),nn=new re.a(new re.c(255,0,0,.2)),sn=S("diffEditor.insertedTextBackground",{dark:Jt,light:Jt,hc:null},P.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),un=S("diffEditor.removedTextBackground",{dark:nn,light:nn,hc:null},P.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Sn=S("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},P.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Ln=S("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},P.a("diffEditorRemovedOutline","Outline color for text that got removed.")),An=S("diffEditor.border",{dark:null,light:null,hc:T},P.a("diffEditorBorder","Border color between the two text editors.")),Gn=S("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},P.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.")),Jn=S("list.focusForeground",{dark:null,light:null,hc:null},P.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.")),$n=S("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},P.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.")),pi=S("list.activeSelectionForeground",{dark:re.a.white,light:re.a.white,hc:null},P.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.")),Kn=S("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},P.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.")),yi=S("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},P.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.")),vi=S("list.inactiveFocusBackground",{dark:null,light:null,hc:null},P.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.")),mt=S("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},P.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Nt=S("list.hoverForeground",{dark:null,light:null,hc:null},P.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),Ut=S("list.dropBackground",{dark:Gn,light:Gn,hc:null},P.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),tn=S("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:D},P.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Vt=S("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:re.a.black},P.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),wn=S("listFilterWidget.outline",{dark:re.a.transparent,light:re.a.transparent,hc:"#f38518"},P.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),xn=S("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:T},P.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),kn=S("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},P.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Fn=S("menu.border",{dark:null,light:null,hc:T},P.a("menuBorder","Border color of menus.")),oi=S("menu.foreground",{dark:_e,light:I,hc:_e},P.a("menuForeground","Foreground color of menu items.")),ci=S("menu.background",{dark:He,light:He,hc:He},P.a("menuBackground","Background color of menu items.")),Ui=S("menu.selectionForeground",{dark:pi,light:pi,hc:pi},P.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),rr=S("menu.selectionBackground",{dark:$n,light:$n,hc:$n},P.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Xn=S("menu.selectionBorder",{dark:null,light:null,hc:te},P.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Ri=S("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:T},P.a("menuSeparatorBackground","Color of a separator menu item in menus.")),wi=S("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))},P.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Bi=S("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},P.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Vn=S("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},P.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),bi=S("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new re.a(new re.c(10,50,100,.5)),hc:"#525252"},P.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),ji=S("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},P.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Mi=S("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},P.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Gi=S("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},P.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),ki=S("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},P.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),mi=S("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))},P.a("minimapError","Minimap marker color for errors.")),qi=S("minimap.warningHighlight",{dark:Yt,light:Yt,hc:Ke},P.a("overviewRuleWarning","Minimap marker color for warnings.")),or=S("problemsErrorIcon.foreground",{dark:_t,light:_t,hc:_t},P.a("problemsErrorIconForeground","The color used for the problems error icon.")),Ci=S("problemsWarningIcon.foreground",{dark:Yt,light:Yt,hc:Yt},P.a("problemsWarningIconForeground","The color used for the problems warning icon.")),Di=S("problemsInfoIcon.foreground",{dark:Ye,light:Ye,hc:Ye},P.a("problemsInfoIconForeground","The color used for the problems info icon."));function Yi(xe,je){return function(ht){var ut=L(xe,ht);if(ut)return ut.darken(je)}}function ur(xe,je){return function(ht){var ut=L(xe,ht);if(ut)return ut.lighten(je)}}function Ni(xe,je){return function(ht){var ut=L(xe,ht);if(ut)return ut.transparent(je)}}function sr(){for(var xe=[],je=0;je<arguments.length;je++)xe[je]=arguments[je];return function(ht){for(var ut=0,yt=xe;ut<yt.length;ut++){var It=yt[ut],Rt=L(It,ht);if(Rt)return Rt}}}function $e(xe,je,ht,ut){return function(yt){var It=L(xe,yt);if(It){var Rt=L(je,yt);return Rt?It.isDarkerThan(Rt)?re.a.getLighterColor(It,Rt,ht).transparent(ut):re.a.getDarkerColor(It,Rt,ht).transparent(ut):It.transparent(ht*ut)}}}function L(xe,je){if(xe!==null){if(typeof xe=="string")return xe[0]==="#"?re.a.fromHex(xe):je.getColor(xe);if(xe instanceof re.a)return xe;if(typeof xe=="function")return xe(je)}}var M="vscode://schemas/workbench-colors",Z=R.a.as(F.a.JSONContribution);Z.registerSchema(M,x.getColorSchema());var De=new V.d(function(){return Z.notifySchemaChanged(M)},200);x.onDidChangeSchema(function(){De.isScheduled()||De.schedule()})},MI8n:function(Et,A,o){"use strict";o.d(A,"b",function(){return V}),o.d(A,"a",function(){return x}),o.d(A,"d",function(){return S}),o.d(A,"c",function(){return K}),o.d(A,"e",function(){return D});var R=o("/cxE"),re=o("C/vA"),ne=o("pmY6"),P=o("24hK"),F=function(){var T=function(U,_){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var p in g)g.hasOwnProperty(p)&&(h[p]=g[p])},T(U,_)};return function(te,U){T(te,U);function _(){this.constructor=te}te.prototype=U===null?Object.create(U):(_.prototype=U.prototype,new _)}}(),V;(function(T){T.None=function(){return ne.a.None};function te(He){return function(_e,de,se){de===void 0&&(de=null);var he=!1,ie;return ie=He(function($){if(!he)return ie?ie.dispose():he=!0,_e.call(de,$)},null,se),he&&ie.dispose(),ie}}T.once=te;function U(He,_e){return E(function(de,se,he){return se===void 0&&(se=null),He(function(ie){return de.call(se,_e(ie))},null,he)})}T.map=U;function _(He,_e){return E(function(de,se,he){return se===void 0&&(se=null),He(function(ie){_e(ie),de.call(se,ie)},null,he)})}T.forEach=_;function h(He,_e){return E(function(de,se,he){return se===void 0&&(se=null),He(function(ie){return _e(ie)&&de.call(se,ie)},null,he)})}T.filter=h;function g(He){return He}T.signal=g;function p(){for(var He=[],_e=0;_e<arguments.length;_e++)He[_e]=arguments[_e];return function(de,se,he){return se===void 0&&(se=null),ne.e.apply(void 0,He.map(function(ie){return ie(function($){return de.call(se,$)},null,he)}))}}T.any=p;function v(He,_e,de){var se=de;return U(He,function(he){return se=_e(se,he),se})}T.reduce=v;function E(He){var _e,de=new x({onFirstListenerAdd:function(){_e=He(de.fire,de)},onLastListenerRemove:function(){_e.dispose()}});return de.event}T.snapshot=E;function k(He,_e,de,se,he){de===void 0&&(de=100),se===void 0&&(se=!1);var ie,$=void 0,ve=void 0,ye=0,Ue=new x({leakWarningThreshold:he,onFirstListenerAdd:function(){ie=He(function(_t){ye++,$=_e($,_t),se&&!ve&&(Ue.fire($),$=void 0),clearTimeout(ve),ve=setTimeout(function(){var At=$;$=void 0,ve=void 0,(!se||ye>1)&&Ue.fire(At),ye=0},de)})},onLastListenerRemove:function(){ie.dispose()}});return Ue.event}T.debounce=k;function z(He){var _e=new Date().getTime();return U(te(He),function(de){return new Date().getTime()-_e})}T.stopwatch=z;function oe(He){var _e=!0,de;return h(He,function(se){var he=_e||se!==de;return _e=!1,de=se,he})}T.latch=oe;function fe(He,_e,de){_e===void 0&&(_e=!1),de===void 0&&(de=[]);var se=de.slice(),he=He(function(ve){se?se.push(ve):$.fire(ve)}),ie=function(){se&&se.forEach(function(ye){return $.fire(ye)}),se=null},$=new x({onFirstListenerAdd:function(){he||(he=He(function(ye){return $.fire(ye)}))},onFirstListenerDidAdd:function(){se&&(_e?setTimeout(ie):ie())},onLastListenerRemove:function(){he&&he.dispose(),he=null}});return $.event}T.buffer=fe;var Se=function(){function He(_e){this.event=_e}return He.prototype.map=function(_e){return new He(U(this.event,_e))},He.prototype.forEach=function(_e){return new He(_(this.event,_e))},He.prototype.filter=function(_e){return new He(h(this.event,_e))},He.prototype.reduce=function(_e,de){return new He(v(this.event,_e,de))},He.prototype.latch=function(){return new He(oe(this.event))},He.prototype.debounce=function(_e,de,se,he){return de===void 0&&(de=100),se===void 0&&(se=!1),new He(k(this.event,_e,de,se,he))},He.prototype.on=function(_e,de,se){return this.event(_e,de,se)},He.prototype.once=function(_e,de,se){return te(this.event)(_e,de,se)},He}();function we(He){return new Se(He)}T.chain=we;function q(He,_e,de){de===void 0&&(de=function(ye){return ye});var se=function(){for(var ye=[],Ue=0;Ue<arguments.length;Ue++)ye[Ue]=arguments[Ue];return $.fire(de.apply(void 0,ye))},he=function(){return He.on(_e,se)},ie=function(){return He.removeListener(_e,se)},$=new x({onFirstListenerAdd:he,onLastListenerRemove:ie});return $.event}T.fromNodeEventEmitter=q;function X(He,_e,de){de===void 0&&(de=function(ye){return ye});var se=function(){for(var ye=[],Ue=0;Ue<arguments.length;Ue++)ye[Ue]=arguments[Ue];return $.fire(de.apply(void 0,ye))},he=function(){return He.addEventListener(_e,se)},ie=function(){return He.removeEventListener(_e,se)},$=new x({onFirstListenerAdd:he,onLastListenerRemove:ie});return $.event}T.fromDOMEventEmitter=X;function ce(He){var _e=new x,de=!1;return He.then(void 0,function(){return null}).then(function(){de?_e.fire(void 0):setTimeout(function(){return _e.fire(void 0)},0)}),de=!0,_e.event}T.fromPromise=ce;function Ne(He){return new Promise(function(_e){return te(He)(_e)})}T.toPromise=Ne})(V||(V={}));var B=-1,G=function(){function T(te,U){U===void 0&&(U=Math.random().toString(18).slice(2,5)),this.customThreshold=te,this.name=U,this._warnCountdown=0}return T.prototype.dispose=function(){this._stacks&&this._stacks.clear()},T.prototype.check=function(te){var U=this,_=B;if(typeof this.customThreshold=="number"&&(_=this.customThreshold),!(_<=0||te<_)){this._stacks||(this._stacks=new Map);var h=new Error().stack.split(`
`).slice(3).join(`
`),g=this._stacks.get(h)||0;if(this._stacks.set(h,g+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=_*.5;var p,v=0;this._stacks.forEach(function(E,k){(!p||v<E)&&(p=k,v=E)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+te+" listeners already. MOST frequent listener ("+v+"):"),console.warn(p)}return function(){var E=U._stacks.get(h)||0;U._stacks.set(h,E-1)}}},T}(),x=function(){function T(te){this._disposed=!1,this._options=te,this._leakageMon=B>0?new G(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(T.prototype,"event",{get:function(){var U=this;return this._event||(this._event=function(_,h,g){U._listeners||(U._listeners=new P.a);var p=U._listeners.isEmpty();p&&U._options&&U._options.onFirstListenerAdd&&U._options.onFirstListenerAdd(U);var v=U._listeners.push(h?[_,h]:_);p&&U._options&&U._options.onFirstListenerDidAdd&&U._options.onFirstListenerDidAdd(U),U._options&&U._options.onListenerDidAdd&&U._options.onListenerDidAdd(U,_,h);var E;U._leakageMon&&(E=U._leakageMon.check(U._listeners.size));var k;return k={dispose:function(){if(E&&E(),k.dispose=T._noop,!U._disposed&&(v(),U._options&&U._options.onLastListenerRemove)){var oe=U._listeners&&!U._listeners.isEmpty();oe||U._options.onLastListenerRemove(U)}}},g instanceof ne.b?g.add(k):Array.isArray(g)&&g.push(k),k}),this._event},enumerable:!0,configurable:!0}),T.prototype.fire=function(te){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new P.a);for(var U=this._listeners.iterator(),_=U.next();!_.done;_=U.next())this._deliveryQueue.push([_.value,te]);for(;this._deliveryQueue.size>0;){var h=this._deliveryQueue.shift(),g=h[0],p=h[1];try{typeof g=="function"?g.call(void 0,p):g[0].call(g[1],p)}catch(v){Object(R.e)(v)}}}},T.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},T._noop=function(){},T}(),S=function(T){F(te,T);function te(U){var _=T.call(this,U)||this;return _._isPaused=0,_._eventQueue=new P.a,_._mergeFn=U&&U.merge,_}return te.prototype.pause=function(){this._isPaused++},te.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){var U=this._eventQueue.toArray();this._eventQueue.clear(),T.prototype.fire.call(this,this._mergeFn(U))}else for(;!this._isPaused&&this._eventQueue.size!==0;)T.prototype.fire.call(this,this._eventQueue.shift())},te.prototype.fire=function(U){this._listeners&&(this._isPaused!==0?this._eventQueue.push(U):T.prototype.fire.call(this,U))},te}(x),I=function(){function T(){var te=this;this.hasListeners=!1,this.events=[],this.emitter=new x({onFirstListenerAdd:function(){return te.onFirstListenerAdd()},onLastListenerRemove:function(){return te.onLastListenerRemove()}})}return Object.defineProperty(T.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),T.prototype.add=function(te){var U=this,_={event:te,listener:null};this.events.push(_),this.hasListeners&&this.hook(_);var h=function(){U.hasListeners&&U.unhook(_);var p=U.events.indexOf(_);U.events.splice(p,1)};return Object(ne.h)(Object(re.a)(h))},T.prototype.onFirstListenerAdd=function(){var te=this;this.hasListeners=!0,this.events.forEach(function(U){return te.hook(U)})},T.prototype.onLastListenerRemove=function(){var te=this;this.hasListeners=!1,this.events.forEach(function(U){return te.unhook(U)})},T.prototype.hook=function(te){var U=this;te.listener=te.event(function(_){return U.emitter.fire(_)})},T.prototype.unhook=function(te){te.listener&&te.listener.dispose(),te.listener=null},T.prototype.dispose=function(){this.emitter.dispose()},T}(),K=function(){function T(){this.buffers=[]}return T.prototype.wrapEvent=function(te){var U=this;return function(_,h,g){return te(function(p){var v=U.buffers[U.buffers.length-1];v?v.push(function(){return _.call(h,p)}):_.call(h,p)},void 0,g)}},T.prototype.bufferEvents=function(te){var U=[];this.buffers.push(U);var _=te();return this.buffers.pop(),U.forEach(function(h){return h()}),_},T}(),D=function(){function T(){var te=this;this.listening=!1,this.inputEvent=V.None,this.inputEventListener=ne.a.None,this.emitter=new x({onFirstListenerDidAdd:function(){te.listening=!0,te.inputEventListener=te.inputEvent(te.emitter.fire,te.emitter)},onLastListenerRemove:function(){te.listening=!1,te.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(T.prototype,"input",{set:function(U){this.inputEvent=U,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=U(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),T.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},T}()},MNXI:function(Et,A,o){},MNsG:function(Et,A,o){"use strict";(function(R,re){o.d(A,"h",function(){return g}),o.d(A,"e",function(){return p}),o.d(A,"d",function(){return v}),o.d(A,"f",function(){return E}),o.d(A,"g",function(){return k}),o.d(A,"c",function(){return z}),o.d(A,"b",function(){return fe}),o.d(A,"i",function(){return Se}),o.d(A,"a",function(){return we});var ne="en",P=!1,F=!1,V=!1,B=!1,G=!1,x=!1,S=void 0,I=ne,K=void 0,D=void 0,T=typeof R!="undefined"&&typeof R.versions!="undefined"&&typeof R.versions.electron!="undefined"&&R.type==="renderer";if(typeof navigator=="object"&&!T)D=navigator.userAgent,P=D.indexOf("Windows")>=0,F=D.indexOf("Macintosh")>=0,x=D.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,V=D.indexOf("Linux")>=0,G=!0,S=navigator.language,I=S;else if(typeof R=="object"){P=R.platform==="win32",F=R.platform==="darwin",V=R.platform==="linux",S=ne,I=ne;var te=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(te)try{var U=JSON.parse(te),_=U.availableLanguages["*"];S=U.locale,I=_||ne,K=U._translationsConfigFile}catch(q){}B=!0}var h=0;F?h=1:P?h=3:V&&(h=2);var g=P,p=F,v=V,E=B,k=G,z=x,oe=typeof self=="object"?self:typeof re=="object"?re:{},fe=oe,Se=function(){if(fe.setImmediate)return fe.setImmediate.bind(fe);if(typeof fe.postMessage=="function"&&!fe.importScripts){var X=[];fe.addEventListener("message",function(He){if(He.data&&He.data.vscodeSetImmediateId)for(var _e=0,de=X.length;_e<de;_e++){var se=X[_e];if(se.id===He.data.vscodeSetImmediateId){X.splice(_e,1),se.callback();return}}});var ce=0;return function(He){var _e=++ce;X.push({id:_e,callback:He}),fe.postMessage({vscodeSetImmediateId:_e},"*")}}if(typeof R!="undefined"&&typeof R.nextTick=="function")return R.nextTick.bind(R);var Ne=Promise.resolve();return function(He){return Ne.then(He)}}(),we=F?2:P?1:3}).call(this,o("Q2Ig"),o("IyRk"))},MXAL:function(Et,A,o){"use strict";o.d(A,"a",function(){return re}),o.d(A,"b",function(){return ne});var R=o("CZ1j"),re=function(){function P(F){var V=Object(R.b)(F);this._defaultValue=V,this._asciiMap=P._createAsciiMap(V),this._map=new Map}return P._createAsciiMap=function(F){for(var V=new Uint8Array(256),B=0;B<256;B++)V[B]=F;return V},P.prototype.set=function(F,V){var B=Object(R.b)(V);F>=0&&F<256?this._asciiMap[F]=B:this._map.set(F,B)},P.prototype.get=function(F){return F>=0&&F<256?this._asciiMap[F]:this._map.get(F)||this._defaultValue},P}(),ne=function(){function P(){this._actual=new re(0)}return P.prototype.add=function(F){this._actual.set(F,1)},P.prototype.has=function(F){return this._actual.get(F)===1},P}()},Md8J:function(Et,A,o){"use strict";o.d(A,"c",function(){return re}),o.d(A,"b",function(){return ne}),o.d(A,"a",function(){return P});var R=o("EffR");function re(S,I){I===void 0&&(I={});var K=P(I);return K.textContent=S,K}function ne(S,I){I===void 0&&(I={});var K=P(I);return V(K,B(S),I.actionHandler),K}function P(S){var I=S.inline?"span":"div",K=document.createElement(I);return S.className&&(K.className=S.className),K}var F=function(){function S(I){this.source=I,this.index=0}return S.prototype.eos=function(){return this.index>=this.source.length},S.prototype.next=function(){var I=this.peek();return this.advance(),I},S.prototype.peek=function(){return this.source[this.index]},S.prototype.advance=function(){this.index++},S}();function V(S,I,K){var D;if(I.type===2)D=document.createTextNode(I.content||"");else if(I.type===3)D=document.createElement("b");else if(I.type===4)D=document.createElement("i");else if(I.type===5&&K){var T=document.createElement("a");T.href="#",K.disposeables.add(R.n(T,"click",function(te){K.callback(String(I.index),te)})),D=T}else I.type===7?D=document.createElement("br"):I.type===1&&(D=S);D&&S!==D&&S.appendChild(D),D&&Array.isArray(I.children)&&I.children.forEach(function(te){V(D,te,K)})}function B(S){for(var I={type:1,children:[]},K=0,D=I,T=[],te=new F(S);!te.eos();){var U=te.next(),_=U==="\\"&&x(te.peek())!==0;if(_&&(U=te.next()),!_&&G(U)&&U===te.peek()){te.advance(),D.type===2&&(D=T.pop());var h=x(U);if(D.type===h||D.type===5&&h===6)D=T.pop();else{var g={type:h,children:[]};h===5&&(g.index=K,K++),D.children.push(g),T.push(D),D=g}}else if(U===`
`)D.type===2&&(D=T.pop()),D.children.push({type:7});else if(D.type!==2){var p={type:2,content:U};D.children.push(p),T.push(D),D=p}else D.content+=U}return D.type===2&&(D=T.pop()),T.length,I}function G(S){return x(S)!==0}function x(S){switch(S){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},MqQJ:function(Et,A,o){"use strict";o.d(A,"a",function(){return G}),o.d(A,"c",function(){return x}),o.d(A,"b",function(){return S});var R=o("3/fG"),re=o("MI8n"),ne=o("twdY"),P=o("cMvZ"),F=o("ic2d"),V={ModesRegistry:"editor.modesRegistry"},B=function(){function I(){this._onDidChangeLanguages=new re.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return I.prototype.registerLanguage=function(K){this._languages.push(K),this._onDidChangeLanguages.fire(void 0)},I.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},I}(),G=new B;F.a.add(V.ModesRegistry,G);var x="plaintext",S=new ne.q(x,1);G.registerLanguage({id:x,extensions:[".txt",".gitignore"],aliases:[R.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),P.a.register(S,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},MrjW:function(Et,A,o){"use strict";o.r(A),o.d(A,"win32",function(){return g}),o.d(A,"posix",function(){return p}),o.d(A,"normalize",function(){return v}),o.d(A,"join",function(){return E}),o.d(A,"relative",function(){return k}),o.d(A,"dirname",function(){return z}),o.d(A,"basename",function(){return oe}),o.d(A,"extname",function(){return fe}),o.d(A,"sep",function(){return Se});var R=o("wxcJ"),re=function(){var we=function(X,ce){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ne,He){Ne.__proto__=He}||function(Ne,He){for(var _e in He)He.hasOwnProperty(_e)&&(Ne[_e]=He[_e])},we(X,ce)};return function(q,X){we(q,X);function ce(){this.constructor=q}q.prototype=X===null?Object.create(X):(ce.prototype=X.prototype,new ce)}}(),ne=65,P=97,F=90,V=122,B=46,G=47,x=92,S=58,I=63,K=function(we){re(q,we);function q(X,ce,Ne){var He=this,_e;typeof ce=="string"&&ce.indexOf("not ")===0?(_e="must not be",ce=ce.replace(/^not /,"")):_e="must be";var de=X.indexOf(".")!==-1?"property":"argument",se='The "'+X+'" '+de+" "+_e+" of type "+ce;return se+=". Received type "+typeof Ne,He=we.call(this,se)||this,He.code="ERR_INVALID_ARG_TYPE",He}return q}(Error);function D(we,q){if(typeof we!="string")throw new K(q,"string",we)}function T(we){return we===G||we===x}function te(we){return we===G}function U(we){return we>=ne&&we<=F||we>=P&&we<=V}function _(we,q,X,ce){for(var Ne="",He=0,_e=-1,de=0,se,he=0;he<=we.length;++he){if(he<we.length)se=we.charCodeAt(he);else{if(ce(se))break;se=G}if(ce(se)){if(!(_e===he-1||de===1))if(_e!==he-1&&de===2){if(Ne.length<2||He!==2||Ne.charCodeAt(Ne.length-1)!==B||Ne.charCodeAt(Ne.length-2)!==B){if(Ne.length>2){var ie=Ne.lastIndexOf(X);ie===-1?(Ne="",He=0):(Ne=Ne.slice(0,ie),He=Ne.length-1-Ne.lastIndexOf(X)),_e=he,de=0;continue}else if(Ne.length===2||Ne.length===1){Ne="",He=0,_e=he,de=0;continue}}q&&(Ne.length>0?Ne+=X+"..":Ne="..",He=2)}else Ne.length>0?Ne+=X+we.slice(_e+1,he):Ne=we.slice(_e+1,he),He=he-_e-1;_e=he,de=0}else se===B&&de!==-1?++de:de=-1}return Ne}function h(we,q){var X=q.dir||q.root,ce=q.base||(q.name||"")+(q.ext||"");return X?X===q.root?X+ce:X+we+ce:ce}var g={resolve:function(){for(var q=[],X=0;X<arguments.length;X++)q[X]=arguments[X];for(var ce="",Ne="",He=!1,_e=q.length-1;_e>=-1;_e--){var de=void 0;if(_e>=0?de=q[_e]:ce?(de=R.b["="+ce]||R.a(),(de===void 0||de.slice(0,3).toLowerCase()!==ce.toLowerCase()+"\\")&&(de=ce+"\\")):de=R.a(),D(de,"path"),de.length!==0){var se=de.length,he=0,ie="",$=!1,ve=de.charCodeAt(0);if(se>1)if(T(ve))if($=!0,T(de.charCodeAt(1))){for(var ye=2,Ue=ye;ye<se&&!T(de.charCodeAt(ye));++ye);if(ye<se&&ye!==Ue){var tt=de.slice(Ue,ye);for(Ue=ye;ye<se&&T(de.charCodeAt(ye));++ye);if(ye<se&&ye!==Ue){for(Ue=ye;ye<se&&!T(de.charCodeAt(ye));++ye);ye===se?(ie="\\\\"+tt+"\\"+de.slice(Ue),he=ye):ye!==Ue&&(ie="\\\\"+tt+"\\"+de.slice(Ue,ye),he=ye)}}}else he=1;else U(ve)&&de.charCodeAt(1)===S&&(ie=de.slice(0,2),he=2,se>2&&T(de.charCodeAt(2))&&($=!0,he=3));else T(ve)&&(he=1,$=!0);if(!(ie.length>0&&ce.length>0&&ie.toLowerCase()!==ce.toLowerCase())&&(ce.length===0&&ie.length>0&&(ce=ie),He||(Ne=de.slice(he)+"\\"+Ne,He=$),ce.length>0&&He))break}}return Ne=_(Ne,!He,"\\",T),ce+(He?"\\":"")+Ne||"."},normalize:function(q){D(q,"path");var X=q.length;if(X===0)return".";var ce=0,Ne,He=!1,_e=q.charCodeAt(0);if(X>1)if(T(_e))if(He=!0,T(q.charCodeAt(1))){for(var de=2,se=de;de<X&&!T(q.charCodeAt(de));++de);if(de<X&&de!==se){var he=q.slice(se,de);for(se=de;de<X&&T(q.charCodeAt(de));++de);if(de<X&&de!==se){for(se=de;de<X&&!T(q.charCodeAt(de));++de);if(de===X)return"\\\\"+he+"\\"+q.slice(se)+"\\";de!==se&&(Ne="\\\\"+he+"\\"+q.slice(se,de),ce=de)}}}else ce=1;else U(_e)&&q.charCodeAt(1)===S&&(Ne=q.slice(0,2),ce=2,X>2&&T(q.charCodeAt(2))&&(He=!0,ce=3));else if(T(_e))return"\\";var ie;return ce<X?ie=_(q.slice(ce),!He,"\\",T):ie="",ie.length===0&&!He&&(ie="."),ie.length>0&&T(q.charCodeAt(X-1))&&(ie+="\\"),Ne===void 0?He?ie.length>0?"\\"+ie:"\\":ie.length>0?ie:"":He?ie.length>0?Ne+"\\"+ie:Ne+"\\":ie.length>0?Ne+ie:Ne},isAbsolute:function(q){D(q,"path");var X=q.length;if(X===0)return!1;var ce=q.charCodeAt(0);return T(ce)?!0:!!(U(ce)&&X>2&&q.charCodeAt(1)===S&&T(q.charCodeAt(2)))},join:function(){for(var q=[],X=0;X<arguments.length;X++)q[X]=arguments[X];if(q.length===0)return".";for(var ce,Ne,He=0;He<q.length;++He){var _e=q[He];D(_e,"path"),_e.length>0&&(ce===void 0?ce=Ne=_e:ce+="\\"+_e)}if(ce===void 0)return".";var de=!0,se=0;if(typeof Ne=="string"&&T(Ne.charCodeAt(0))){++se;var he=Ne.length;he>1&&T(Ne.charCodeAt(1))&&(++se,he>2&&(T(Ne.charCodeAt(2))?++se:de=!1))}if(de){for(;se<ce.length&&T(ce.charCodeAt(se));++se);se>=2&&(ce="\\"+ce.slice(se))}return g.normalize(ce)},relative:function(q,X){if(D(q,"from"),D(X,"to"),q===X)return"";var ce=g.resolve(q),Ne=g.resolve(X);if(ce===Ne||(q=ce.toLowerCase(),X=Ne.toLowerCase(),q===X))return"";for(var He=0;He<q.length&&q.charCodeAt(He)===x;++He);for(var _e=q.length;_e-1>He&&q.charCodeAt(_e-1)===x;--_e);for(var de=_e-He,se=0;se<X.length&&X.charCodeAt(se)===x;++se);for(var he=X.length;he-1>se&&X.charCodeAt(he-1)===x;--he);for(var ie=he-se,$=de<ie?de:ie,ve=-1,ye=0;ye<=$;++ye){if(ye===$){if(ie>$){if(X.charCodeAt(se+ye)===x)return Ne.slice(se+ye+1);if(ye===2)return Ne.slice(se+ye)}de>$&&(q.charCodeAt(He+ye)===x?ve=ye:ye===2&&(ve=3));break}var Ue=q.charCodeAt(He+ye),tt=X.charCodeAt(se+ye);if(Ue!==tt)break;Ue===x&&(ve=ye)}if(ye!==$&&ve===-1)return Ne;var _t="";for(ve===-1&&(ve=0),ye=He+ve+1;ye<=_e;++ye)(ye===_e||q.charCodeAt(ye)===x)&&(_t.length===0?_t+="..":_t+="\\..");return _t.length>0?_t+Ne.slice(se+ve,he):(se+=ve,Ne.charCodeAt(se)===x&&++se,Ne.slice(se,he))},toNamespacedPath:function(q){if(typeof q!="string")return q;if(q.length===0)return"";var X=g.resolve(q);if(X.length>=3){if(X.charCodeAt(0)===x){if(X.charCodeAt(1)===x){var ce=X.charCodeAt(2);if(ce!==I&&ce!==B)return"\\\\?\\UNC\\"+X.slice(2)}}else if(U(X.charCodeAt(0))&&X.charCodeAt(1)===S&&X.charCodeAt(2)===x)return"\\\\?\\"+X}return q},dirname:function(q){D(q,"path");var X=q.length;if(X===0)return".";var ce=-1,Ne=-1,He=!0,_e=0,de=q.charCodeAt(0);if(X>1)if(T(de)){if(ce=_e=1,T(q.charCodeAt(1))){for(var se=2,he=se;se<X&&!T(q.charCodeAt(se));++se);if(se<X&&se!==he){for(he=se;se<X&&T(q.charCodeAt(se));++se);if(se<X&&se!==he){for(he=se;se<X&&!T(q.charCodeAt(se));++se);if(se===X)return q;se!==he&&(ce=_e=se+1)}}}}else U(de)&&q.charCodeAt(1)===S&&(ce=_e=2,X>2&&T(q.charCodeAt(2))&&(ce=_e=3));else if(T(de))return q;for(var ie=X-1;ie>=_e;--ie)if(T(q.charCodeAt(ie))){if(!He){Ne=ie;break}}else He=!1;if(Ne===-1){if(ce===-1)return".";Ne=ce}return q.slice(0,Ne)},basename:function(q,X){X!==void 0&&D(X,"ext"),D(q,"path");var ce=0,Ne=-1,He=!0,_e;if(q.length>=2){var de=q.charCodeAt(0);U(de)&&q.charCodeAt(1)===S&&(ce=2)}if(X!==void 0&&X.length>0&&X.length<=q.length){if(X.length===q.length&&X===q)return"";var se=X.length-1,he=-1;for(_e=q.length-1;_e>=ce;--_e){var ie=q.charCodeAt(_e);if(T(ie)){if(!He){ce=_e+1;break}}else he===-1&&(He=!1,he=_e+1),se>=0&&(ie===X.charCodeAt(se)?--se==-1&&(Ne=_e):(se=-1,Ne=he))}return ce===Ne?Ne=he:Ne===-1&&(Ne=q.length),q.slice(ce,Ne)}else{for(_e=q.length-1;_e>=ce;--_e)if(T(q.charCodeAt(_e))){if(!He){ce=_e+1;break}}else Ne===-1&&(He=!1,Ne=_e+1);return Ne===-1?"":q.slice(ce,Ne)}},extname:function(q){D(q,"path");var X=0,ce=-1,Ne=0,He=-1,_e=!0,de=0;q.length>=2&&q.charCodeAt(1)===S&&U(q.charCodeAt(0))&&(X=Ne=2);for(var se=q.length-1;se>=X;--se){var he=q.charCodeAt(se);if(T(he)){if(!_e){Ne=se+1;break}continue}He===-1&&(_e=!1,He=se+1),he===B?ce===-1?ce=se:de!==1&&(de=1):ce!==-1&&(de=-1)}return ce===-1||He===-1||de===0||de===1&&ce===He-1&&ce===Ne+1?"":q.slice(ce,He)},format:function(q){if(q===null||typeof q!="object")throw new K("pathObject","Object",q);return h("\\",q)},parse:function(q){D(q,"path");var X={root:"",dir:"",base:"",ext:"",name:""};if(q.length===0)return X;var ce=q.length,Ne=0,He=q.charCodeAt(0);if(ce>1){if(T(He)){if(Ne=1,T(q.charCodeAt(1))){for(var _e=2,de=_e;_e<ce&&!T(q.charCodeAt(_e));++_e);if(_e<ce&&_e!==de){for(de=_e;_e<ce&&T(q.charCodeAt(_e));++_e);if(_e<ce&&_e!==de){for(de=_e;_e<ce&&!T(q.charCodeAt(_e));++_e);_e===ce?Ne=_e:_e!==de&&(Ne=_e+1)}}}}else if(U(He)&&q.charCodeAt(1)===S)if(Ne=2,ce>2){if(T(q.charCodeAt(2))){if(ce===3)return X.root=X.dir=q,X;Ne=3}}else return X.root=X.dir=q,X}else if(T(He))return X.root=X.dir=q,X;Ne>0&&(X.root=q.slice(0,Ne));for(var se=-1,he=Ne,ie=-1,$=!0,ve=q.length-1,ye=0;ve>=Ne;--ve){if(He=q.charCodeAt(ve),T(He)){if(!$){he=ve+1;break}continue}ie===-1&&($=!1,ie=ve+1),He===B?se===-1?se=ve:ye!==1&&(ye=1):se!==-1&&(ye=-1)}return se===-1||ie===-1||ye===0||ye===1&&se===ie-1&&se===he+1?ie!==-1&&(X.base=X.name=q.slice(he,ie)):(X.name=q.slice(he,se),X.base=q.slice(he,ie),X.ext=q.slice(se,ie)),he>0&&he!==Ne?X.dir=q.slice(0,he-1):X.dir=X.root,X},sep:"\\",delimiter:";",win32:null,posix:null},p={resolve:function(){for(var q=[],X=0;X<arguments.length;X++)q[X]=arguments[X];for(var ce="",Ne=!1,He=q.length-1;He>=-1&&!Ne;He--){var _e=void 0;He>=0?_e=q[He]:_e=R.a(),D(_e,"path"),_e.length!==0&&(ce=_e+"/"+ce,Ne=_e.charCodeAt(0)===G)}return ce=_(ce,!Ne,"/",te),Ne?ce.length>0?"/"+ce:"/":ce.length>0?ce:"."},normalize:function(q){if(D(q,"path"),q.length===0)return".";var X=q.charCodeAt(0)===G,ce=q.charCodeAt(q.length-1)===G;return q=_(q,!X,"/",te),q.length===0&&!X&&(q="."),q.length>0&&ce&&(q+="/"),X?"/"+q:q},isAbsolute:function(q){return D(q,"path"),q.length>0&&q.charCodeAt(0)===G},join:function(){for(var q=[],X=0;X<arguments.length;X++)q[X]=arguments[X];if(q.length===0)return".";for(var ce,Ne=0;Ne<q.length;++Ne){var He=arguments[Ne];D(He,"path"),He.length>0&&(ce===void 0?ce=He:ce+="/"+He)}return ce===void 0?".":p.normalize(ce)},relative:function(q,X){if(D(q,"from"),D(X,"to"),q===X||(q=p.resolve(q),X=p.resolve(X),q===X))return"";for(var ce=1;ce<q.length&&q.charCodeAt(ce)===G;++ce);for(var Ne=q.length,He=Ne-ce,_e=1;_e<X.length&&X.charCodeAt(_e)===G;++_e);for(var de=X.length,se=de-_e,he=He<se?He:se,ie=-1,$=0;$<=he;++$){if($===he){if(se>he){if(X.charCodeAt(_e+$)===G)return X.slice(_e+$+1);if($===0)return X.slice(_e+$)}else He>he&&(q.charCodeAt(ce+$)===G?ie=$:$===0&&(ie=0));break}var ve=q.charCodeAt(ce+$),ye=X.charCodeAt(_e+$);if(ve!==ye)break;ve===G&&(ie=$)}var Ue="";for($=ce+ie+1;$<=Ne;++$)($===Ne||q.charCodeAt($)===G)&&(Ue.length===0?Ue+="..":Ue+="/..");return Ue.length>0?Ue+X.slice(_e+ie):(_e+=ie,X.charCodeAt(_e)===G&&++_e,X.slice(_e))},toNamespacedPath:function(q){return q},dirname:function(q){if(D(q,"path"),q.length===0)return".";for(var X=q.charCodeAt(0)===G,ce=-1,Ne=!0,He=q.length-1;He>=1;--He)if(q.charCodeAt(He)===G){if(!Ne){ce=He;break}}else Ne=!1;return ce===-1?X?"/":".":X&&ce===1?"//":q.slice(0,ce)},basename:function(q,X){X!==void 0&&D(X,"ext"),D(q,"path");var ce=0,Ne=-1,He=!0,_e;if(X!==void 0&&X.length>0&&X.length<=q.length){if(X.length===q.length&&X===q)return"";var de=X.length-1,se=-1;for(_e=q.length-1;_e>=0;--_e){var he=q.charCodeAt(_e);if(he===G){if(!He){ce=_e+1;break}}else se===-1&&(He=!1,se=_e+1),de>=0&&(he===X.charCodeAt(de)?--de==-1&&(Ne=_e):(de=-1,Ne=se))}return ce===Ne?Ne=se:Ne===-1&&(Ne=q.length),q.slice(ce,Ne)}else{for(_e=q.length-1;_e>=0;--_e)if(q.charCodeAt(_e)===G){if(!He){ce=_e+1;break}}else Ne===-1&&(He=!1,Ne=_e+1);return Ne===-1?"":q.slice(ce,Ne)}},extname:function(q){D(q,"path");for(var X=-1,ce=0,Ne=-1,He=!0,_e=0,de=q.length-1;de>=0;--de){var se=q.charCodeAt(de);if(se===G){if(!He){ce=de+1;break}continue}Ne===-1&&(He=!1,Ne=de+1),se===B?X===-1?X=de:_e!==1&&(_e=1):X!==-1&&(_e=-1)}return X===-1||Ne===-1||_e===0||_e===1&&X===Ne-1&&X===ce+1?"":q.slice(X,Ne)},format:function(q){if(q===null||typeof q!="object")throw new K("pathObject","Object",q);return h("/",q)},parse:function(q){D(q,"path");var X={root:"",dir:"",base:"",ext:"",name:""};if(q.length===0)return X;var ce=q.charCodeAt(0)===G,Ne;ce?(X.root="/",Ne=1):Ne=0;for(var He=-1,_e=0,de=-1,se=!0,he=q.length-1,ie=0;he>=Ne;--he){var $=q.charCodeAt(he);if($===G){if(!se){_e=he+1;break}continue}de===-1&&(se=!1,de=he+1),$===B?He===-1?He=he:ie!==1&&(ie=1):He!==-1&&(ie=-1)}return He===-1||de===-1||ie===0||ie===1&&He===de-1&&He===_e+1?de!==-1&&(_e===0&&ce?X.base=X.name=q.slice(1,de):X.base=X.name=q.slice(_e,de)):(_e===0&&ce?(X.name=q.slice(1,He),X.base=q.slice(1,de)):(X.name=q.slice(_e,He),X.base=q.slice(_e,de)),X.ext=q.slice(He,de)),_e>0?X.dir=q.slice(0,_e-1):ce&&(X.dir="/"),X},sep:"/",delimiter:":",win32:null,posix:null};p.win32=g.win32=g,p.posix=g.posix=p;var v=R.c==="win32"?g.normalize:p.normalize,E=R.c==="win32"?g.join:p.join,k=R.c==="win32"?g.relative:p.relative,z=R.c==="win32"?g.dirname:p.dirname,oe=R.c==="win32"?g.basename:p.basename,fe=R.c==="win32"?g.extname:p.extname,Se=R.c==="win32"?g.sep:p.sep},Msxo:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return o.e(233).then(o.bind(null,"Qx4d"))}})},MvK1:function(Et,A,o){"use strict";o.d(A,"a",function(){return re}),o.d(A,"b",function(){return ne});var R=function(){function P(F,V,B){this.from=F|0,this.to=V|0,this.colorId=B|0}return P.compare=function(F,V){return F.colorId===V.colorId?F.from===V.from?F.to-V.to:F.from-V.from:F.colorId-V.colorId},P}(),re=function(){function P(F,V,B){this.startLineNumber=F,this.endLineNumber=V,this.color=B,this._colorZone=null}return P.compare=function(F,V){return F.color===V.color?F.startLineNumber===V.startLineNumber?F.endLineNumber-V.endLineNumber:F.startLineNumber-V.startLineNumber:F.color<V.color?-1:1},P.prototype.setColorZone=function(F){this._colorZone=F},P.prototype.getColorZones=function(){return this._colorZone},P}(),ne=function(){function P(F){this._getVerticalOffsetForLine=F,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 P.prototype.getId2Color=function(){return this._id2Color},P.prototype.setZones=function(F){this._zones=F,this._zones.sort(re.compare)},P.prototype.setLineHeight=function(F){return this._lineHeight===F?!1:(this._lineHeight=F,this._colorZonesInvalid=!0,!0)},P.prototype.setPixelRatio=function(F){this._pixelRatio=F,this._colorZonesInvalid=!0},P.prototype.getDOMWidth=function(){return this._domWidth},P.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},P.prototype.setDOMWidth=function(F){return this._domWidth===F?!1:(this._domWidth=F,this._colorZonesInvalid=!0,!0)},P.prototype.getDOMHeight=function(){return this._domHeight},P.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},P.prototype.setDOMHeight=function(F){return this._domHeight===F?!1:(this._domHeight=F,this._colorZonesInvalid=!0,!0)},P.prototype.getOuterHeight=function(){return this._outerHeight},P.prototype.setOuterHeight=function(F){return this._outerHeight===F?!1:(this._outerHeight=F,this._colorZonesInvalid=!0,!0)},P.prototype.resolveColorZones=function(){for(var F=this._colorZonesInvalid,V=Math.floor(this._lineHeight),B=Math.floor(this.getCanvasHeight()),G=Math.floor(this._outerHeight),x=B/G,S=Math.floor(4*this._pixelRatio/2),I=[],K=0,D=this._zones.length;K<D;K++){var T=this._zones[K];if(!F){var te=T.getColorZones();if(te){I.push(te);continue}}var U=Math.floor(x*this._getVerticalOffsetForLine(T.startLineNumber)),_=Math.floor(x*(this._getVerticalOffsetForLine(T.endLineNumber)+V)),h=Math.floor((U+_)/2),g=_-h;g<S&&(g=S),h-g<0&&(h=g),h+g>B&&(h=B-g);var p=T.color,v=this._color2Id[p];v||(v=++this._lastAssignedId,this._color2Id[p]=v,this._id2Color[v]=p);var E=new R(h-g,h+g,v);T.setColorZone(E),I.push(E)}return this._colorZonesInvalid=!1,I.sort(R.compare),I},P}()},Mzro:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return o.e(243).then(o.bind(null,"l/4i"))}})},N0LK:function(Et,A,o){"use strict";o.d(A,"x",function(){return R}),o.d(A,"F",function(){return re}),o.d(A,"r",function(){return P}),o.d(A,"o",function(){return F}),o.d(A,"p",function(){return V}),o.d(A,"K",function(){return x}),o.d(A,"k",function(){return S}),o.d(A,"M",function(){return I}),o.d(A,"m",function(){return K}),o.d(A,"l",function(){return D}),o.d(A,"I",function(){return T}),o.d(A,"H",function(){return te}),o.d(A,"q",function(){return U}),o.d(A,"t",function(){return _}),o.d(A,"D",function(){return h}),o.d(A,"e",function(){return g}),o.d(A,"f",function(){return p}),o.d(A,"B",function(){return v}),o.d(A,"C",function(){return E}),o.d(A,"n",function(){return z}),o.d(A,"N",function(){return fe}),o.d(A,"c",function(){return Se}),o.d(A,"d",function(){return we}),o.d(A,"z",function(){return q}),o.d(A,"A",function(){return X}),o.d(A,"u",function(){return ce}),o.d(A,"E",function(){return He}),o.d(A,"G",function(){return _e}),o.d(A,"i",function(){return se}),o.d(A,"g",function(){return ie}),o.d(A,"v",function(){return ve}),o.d(A,"h",function(){return ye}),o.d(A,"y",function(){return Ue}),o.d(A,"w",function(){return tt}),o.d(A,"a",function(){return _t}),o.d(A,"O",function(){return At}),o.d(A,"J",function(){return Ke}),o.d(A,"j",function(){return Ye}),o.d(A,"L",function(){return Xe}),o.d(A,"s",function(){return Ze}),o.d(A,"b",function(){return We});function R(W){return!W||typeof W!="string"?!0:W.trim().length===0}function re(W,ee,Ae){Ae===void 0&&(Ae="0");for(var me=""+W,Me=[me],Re=me.length;Re<ee;Re++)Me.push(Ae);return Me.reverse().join("")}var ne=/{(\d+)}/g;function P(W){for(var ee=[],Ae=1;Ae<arguments.length;Ae++)ee[Ae-1]=arguments[Ae];return ee.length===0?W:W.replace(ne,function(me,Me){var Re=parseInt(Me,10);return isNaN(Re)||Re<0||Re>=ee.length?me:ee[Re]})}function F(W){return W.replace(/[<>&]/g,function(ee){switch(ee){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return ee}})}function V(W){return W.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function B(W,ee){ee===void 0&&(ee=" ");var Ae=G(W,ee);return x(Ae,ee)}function G(W,ee){if(!W||!ee)return W;var Ae=ee.length;if(Ae===0||W.length===0)return W;for(var me=0;W.indexOf(ee,me)===me;)me=me+Ae;return W.substring(me)}function x(W,ee){if(!W||!ee)return W;var Ae=ee.length,me=W.length;if(Ae===0||me===0)return W;for(var Me=me,Re=-1;Re=W.lastIndexOf(ee,Me-1),!(Re===-1||Re+Ae!==Me);){if(Re===0)return"";Me=Re}return W.substring(0,Me)}function S(W){return W.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function I(W,ee){if(W.length<ee.length)return!1;if(W===ee)return!0;for(var Ae=0;Ae<ee.length;Ae++)if(W[Ae]!==ee[Ae])return!1;return!0}function K(W,ee){var Ae=W.length-ee.length;return Ae>0?W.indexOf(ee,Ae)===Ae:Ae===0?W===ee:!1}function D(W,ee,Ae){if(Ae===void 0&&(Ae={}),!W)throw new Error("Cannot create regex from empty string");ee||(W=V(W)),Ae.wholeWord&&(/\B/.test(W.charAt(0))||(W="\\b"+W),/\B/.test(W.charAt(W.length-1))||(W=W+"\\b"));var me="";return Ae.global&&(me+="g"),Ae.matchCase||(me+="i"),Ae.multiline&&(me+="m"),Ae.unicode&&(me+="u"),new RegExp(W,me)}function T(W){if(W.source==="^"||W.source==="^$"||W.source==="$"||W.source==="^\\s*$")return!1;var ee=W.exec("");return!!(ee&&W.lastIndex===0)}function te(W){return(W.global?"g":"")+(W.ignoreCase?"i":"")+(W.multiline?"m":"")+(W.unicode?"u":"")}function U(W){for(var ee=0,Ae=W.length;ee<Ae;ee++){var me=W.charCodeAt(ee);if(me!==32&&me!==9)return ee}return-1}function _(W,ee,Ae){ee===void 0&&(ee=0),Ae===void 0&&(Ae=W.length);for(var me=ee;me<Ae;me++){var Me=W.charCodeAt(me);if(Me!==32&&Me!==9)return W.substring(ee,me)}return W.substring(ee,Ae)}function h(W,ee){ee===void 0&&(ee=W.length-1);for(var Ae=ee;Ae>=0;Ae--){var me=W.charCodeAt(Ae);if(me!==32&&me!==9)return Ae}return-1}function g(W,ee){return W<ee?-1:W>ee?1:0}function p(W,ee){for(var Ae=Math.min(W.length,ee.length),me=0;me<Ae;me++){var Me=W.charCodeAt(me),Re=ee.charCodeAt(me);if(Me!==Re){E(Me)&&(Me+=32),E(Re)&&(Re+=32);var ge=Me-Re;if(ge!==0)return v(Me)&&v(Re)?ge:g(W.toLowerCase(),ee.toLowerCase())}}return W.length<ee.length?-1:W.length>ee.length?1:0}function v(W){return W>=97&&W<=122}function E(W){return W>=65&&W<=90}function k(W){return v(W)||E(W)}function z(W,ee){return W.length===ee.length&&oe(W,ee)}function oe(W,ee,Ae){Ae===void 0&&(Ae=W.length);for(var me=0;me<Ae;me++){var Me=W.charCodeAt(me),Re=ee.charCodeAt(me);if(Me!==Re){if(k(Me)&&k(Re)){var ge=Math.abs(Me-Re);if(ge!==0&&ge!==32)return!1}else if(String.fromCharCode(Me).toLowerCase()!==String.fromCharCode(Re).toLowerCase())return!1}}return!0}function fe(W,ee){var Ae=ee.length;return ee.length>W.length?!1:oe(W,ee,Ae)}function Se(W,ee){var Ae,me=Math.min(W.length,ee.length);for(Ae=0;Ae<me;Ae++)if(W.charCodeAt(Ae)!==ee.charCodeAt(Ae))return Ae;return me}function we(W,ee){var Ae,me=Math.min(W.length,ee.length),Me=W.length-1,Re=ee.length-1;for(Ae=0;Ae<me;Ae++)if(W.charCodeAt(Me-Ae)!==ee.charCodeAt(Re-Ae))return Ae;return me}function q(W){return 55296<=W&&W<=56319}function X(W){return 56320<=W&&W<=57343}function ce(W,ee,Ae){var me=W.charCodeAt(Ae);if(q(me)&&Ae+1<ee){var Me=W.charCodeAt(Ae+1);if(X(Me))return(me-55296<<10)+(Me-56320)+65536}return me}function Ne(W,ee){var Ae=W.charCodeAt(ee-1);if(X(Ae)&&ee>1){var me=W.charCodeAt(ee-2);if(q(me))return(me-55296<<10)+(Ae-56320)+65536}return Ae}function He(W,ee){var Ae=Qe.getInstance(),me=ee,Me=W.length,Re=ce(W,Me,ee);ee+=Re>=65536?2:1;for(var ge=Ae.getGraphemeBreakType(Re);ee<Me;){var nt=ce(W,Me,ee),St=Ae.getGraphemeBreakType(nt);if(We(ge,St))break;ee+=nt>=65536?2:1,ge=St}return ee-me}function _e(W,ee){var Ae=Qe.getInstance(),me=ee,Me=Ne(W,ee);ee-=Me>=65536?2:1;for(var Re=Ae.getGraphemeBreakType(Me);ee>0;){var ge=Ne(W,ee),nt=Ae.getGraphemeBreakType(ge);if(We(nt,Re))break;ee-=ge>=65536?2:1,Re=nt}return me-ee}var de=/(?:[\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 se(W){return de.test(W)}var he=/(?:[\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 ie(W){return he.test(W)}var $=/^[\t\n\r\x20-\x7E]*$/;function ve(W){return $.test(W)}function ye(W){for(var ee=0,Ae=W.length;ee<Ae;ee++)if(Ue(W.charCodeAt(ee)))return!0;return!1}function Ue(W){return W=+W,W>=11904&&W<=55215||W>=63744&&W<=64255||W>=65281&&W<=65374}function tt(W){return W>=127462&&W<=127487||W>=9728&&W<=10175||W>=127744&&W<=128591||W>=128640&&W<=128764||W>=128992&&W<=129003||W>=129280&&W<=129535||W>=129648&&W<=129651||W>=129656&&W<=129666||W>=129680&&W<=129685}var _t=String.fromCharCode(65279);function At(W){return!!(W&&W.length>0&&W.charCodeAt(0)===65279)}function Yt(W){return btoa(encodeURIComponent(W))}function Ke(W,ee){for(var Ae="",me=0;me<ee;me++)Ae+=W;return Ae}function Ye(W,ee){return ee===void 0&&(ee=!1),W?(ee&&(W=W.replace(/\\./g,"")),W.toLowerCase()!==W):!1}function Xe(W){var ee=90-65+1;return W=W%(2*ee),W<ee?String.fromCharCode(97+W):String.fromCharCode(65+W-ee)}function Ze(W){var ee=Qe.getInstance();return ee.getGraphemeBreakType(W)}function We(W,ee){return W===0?ee!==5&&ee!==7:W===2&&ee===3?!1:W===4||W===2||W===3||ee===4||ee===2||ee===3?!0:!(W===8&&(ee===8||ee===9||ee===11||ee===12)||(W===11||W===9)&&(ee===9||ee===10)||(W===12||W===10)&&ee===10||ee===5||ee===13||ee===7||W===1||W===13&&ee===14||W===6&&ee===6)}var Qe=function(){function W(){this._data=Ee()}return W.getInstance=function(){return W._INSTANCE||(W._INSTANCE=new W),W._INSTANCE},W.prototype.getGraphemeBreakType=function(ee){if(ee<32)return ee===10?3:ee===13?2:4;if(ee<127)return 0;for(var Ae=this._data,me=Ae.length/3,Me=1;Me<=me;)if(ee<Ae[3*Me])Me=2*Me;else if(ee>Ae[3*Me+1])Me=2*Me+1;else return Ae[3*Me+2];return 0},W._INSTANCE=null,W}();function Ee(){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]")}},OBOq:function(Et,A,o){"use strict";o.d(A,"b",function(){return x}),o.d(A,"a",function(){return S}),o.d(A,"c",function(){return I});var R=o("UCkY"),re=o.n(R),ne=o("3/fG"),P=o("MNsG"),F=o("EffR"),V,B,G;function x(te){V=document.createElement("div"),V.className="monaco-aria-container",B=document.createElement("div"),B.className="monaco-alert",B.setAttribute("role","alert"),B.setAttribute("aria-atomic","true"),V.appendChild(B),G=document.createElement("div"),G.className="monaco-status",G.setAttribute("role","status"),G.setAttribute("aria-atomic","true"),V.appendChild(G),te.appendChild(V)}function S(te,U){T(B,te,U)}function I(te,U){P.e?S(te,U):T(G,te,U)}var K=0,D=void 0;function T(te,U,_){if(!!V){if(!_)switch(D===U?K++:(D=U,K=0),K){case 0:break;case 1:U=ne.a("repeated","{0} (occurred again)",U);break;default:U=ne.a("repeatedNtimes","{0} (occurred {1} times)",U,K);break}F.s(te),te.textContent=U,te.style.visibility="hidden",te.style.visibility="visible"}}},OKK6:function(Et,A,o){},OOlL:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return o.e(199).then(o.bind(null,"NlLO"))}})},PTeM:function(Et,A,o){"use strict";o.d(A,"c",function(){return ne}),o.d(A,"a",function(){return P}),o.d(A,"b",function(){return F});var R=o("N0LK"),re=o("MrjW");function ne(V){return V.replace(/[\\/]/g,re.posix.sep)}function P(V,B,G,x){if(x===void 0&&(x=re.sep),V===B)return!0;if(!V||!B||B.length>V.length)return!1;if(G){var S=Object(R.N)(V,B);if(!S)return!1;if(B.length===V.length)return!0;var I=B.length;return B.charAt(B.length-1)===x&&I--,V.charAt(I)===x}return B.charAt(B.length-1)!==x&&(B+=x),V.indexOf(B)===0}function F(V){return V>=65&&V<=90||V>=97&&V<=122}},Q4rV:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("bY76");function re(P){var F=JSON.parse(P);return F=ne(F),F}function ne(P,F){if(F===void 0&&(F=0),!P||F>200)return P;if(typeof P=="object"){switch(P.$mid){case 1:return R.a.revive(P);case 2:return new RegExp(P.source,P.flags)}for(var V in P)Object.hasOwnProperty.call(P,V)&&(P[V]=ne(P[V],F+1))}return P}},QDVR:function(Et,A,o){"use strict";o.d(A,"e",function(){return re}),o.d(A,"d",function(){return ne}),o.d(A,"c",function(){return B}),o.d(A,"b",function(){return G}),o.d(A,"a",function(){return S});var R=function(){var I=function(D,T){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,U){te.__proto__=U}||function(te,U){for(var _ in U)U.hasOwnProperty(_)&&(te[_]=U[_])},I(D,T)};return function(K,D){I(K,D);function T(){this.constructor=K}K.prototype=D===null?Object.create(D):(T.prototype=D.prototype,new T)}}();function re(I){var K=[];return I.forEach(function(D){return K.push(D)}),K}function ne(I){var K=[];return I.forEach(function(D,T){return K.push(T)}),K}var P=function(){function I(){this._value="",this._pos=0}return I.prototype.reset=function(K){return this._value=K,this._pos=0,this},I.prototype.next=function(){return this._pos+=1,this},I.prototype.hasNext=function(){return this._pos<this._value.length-1},I.prototype.cmp=function(K){var D=K.charCodeAt(0),T=this._value.charCodeAt(this._pos);return D-T},I.prototype.value=function(){return this._value[this._pos]},I}(),F=function(){function I(K){K===void 0&&(K=!0),this._splitOnBackslash=K}return I.prototype.reset=function(K){return this._value=K.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},I.prototype.hasNext=function(){return this._to<this._value.length},I.prototype.next=function(){this._from=this._to;for(var K=!0;this._to<this._value.length;this._to++){var D=this._value.charCodeAt(this._to);if(D===47||this._splitOnBackslash&&D===92)if(K)this._from++;else break;else K=!1}return this},I.prototype.cmp=function(K){for(var D=0,T=K.length,te=this._from;D<T&&te<this._to;){var U=K.charCodeAt(D)-this._value.charCodeAt(te);if(U!==0)return U;D+=1,te+=1}return T===this._to-this._from?0:D<T?-1:1},I.prototype.value=function(){return this._value.substring(this._from,this._to)},I}(),V=function(){function I(){}return I}(),B=function(){function I(K){this._iter=K}return I.forPaths=function(){return new I(new F)},I.forStrings=function(){return new I(new P)},I.prototype.clear=function(){this._root=void 0},I.prototype.set=function(K,D){var T=this._iter.reset(K),te;for(this._root||(this._root=new V,this._root.segment=T.value()),te=this._root;;){var U=T.cmp(te.segment);if(U>0)te.left||(te.left=new V,te.left.segment=T.value()),te=te.left;else if(U<0)te.right||(te.right=new V,te.right.segment=T.value()),te=te.right;else if(T.hasNext())T.next(),te.mid||(te.mid=new V,te.mid.segment=T.value()),te=te.mid;else break}var _=te.value;return te.value=D,te.key=K,_},I.prototype.get=function(K){for(var D=this._iter.reset(K),T=this._root;T;){var te=D.cmp(T.segment);if(te>0)T=T.left;else if(te<0)T=T.right;else if(D.hasNext())D.next(),T=T.mid;else break}return T?T.value:void 0},I.prototype.findSubstr=function(K){for(var D=this._iter.reset(K),T=this._root,te=void 0;T;){var U=D.cmp(T.segment);if(U>0)T=T.left;else if(U<0)T=T.right;else if(D.hasNext())D.next(),te=T.value||te,T=T.mid;else break}return T&&T.value||te},I.prototype.forEach=function(K){this._forEach(this._root,K)},I.prototype._forEach=function(K,D){K&&(this._forEach(K.left,D),K.value&&D(K.value,K.key),this._forEach(K.mid,D),this._forEach(K.right,D))},I}(),G=function(){function I(){this.map=new Map,this.ignoreCase=!1}return I.prototype.set=function(K,D){this.map.set(this.toKey(K),D)},I.prototype.get=function(K){return this.map.get(this.toKey(K))},I.prototype.toKey=function(K){var D=K.toString();return this.ignoreCase&&(D=D.toLowerCase()),D},I}(),x=function(){function I(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return I.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(I.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),I.prototype.get=function(K,D){D===void 0&&(D=0);var T=this._map.get(K);if(!!T)return D!==0&&this.touch(T,D),T.value},I.prototype.set=function(K,D,T){T===void 0&&(T=0);var te=this._map.get(K);if(te)te.value=D,T!==0&&this.touch(te,T);else{switch(te={key:K,value:D,next:void 0,previous:void 0},T){case 0:this.addItemLast(te);break;case 1:this.addItemFirst(te);break;case 2:this.addItemLast(te);break;default:this.addItemLast(te);break}this._map.set(K,te),this._size++}},I.prototype.delete=function(K){return!!this.remove(K)},I.prototype.remove=function(K){var D=this._map.get(K);if(!!D)return this._map.delete(K),this.removeItem(D),this._size--,D.value},I.prototype.forEach=function(K,D){for(var T=this._head;T;)D?K.bind(D)(T.value,T.key,this):K(T.value,T.key,this),T=T.next},I.prototype.trimOld=function(K){if(!(K>=this.size)){if(K===0){this.clear();return}for(var D=this._head,T=this.size;D&&T>K;)this._map.delete(D.key),D=D.next,T--;this._head=D,this._size=T,D&&(D.previous=void 0)}},I.prototype.addItemFirst=function(K){if(!this._head&&!this._tail)this._tail=K;else if(this._head)K.next=this._head,this._head.previous=K;else throw new Error("Invalid list");this._head=K},I.prototype.addItemLast=function(K){if(!this._head&&!this._tail)this._head=K;else if(this._tail)K.previous=this._tail,this._tail.next=K;else throw new Error("Invalid list");this._tail=K},I.prototype.removeItem=function(K){if(K===this._head&&K===this._tail)this._head=void 0,this._tail=void 0;else if(K===this._head){if(!K.next)throw new Error("Invalid list");K.next.previous=void 0,this._head=K.next}else if(K===this._tail){if(!K.previous)throw new Error("Invalid list");K.previous.next=void 0,this._tail=K.previous}else{var D=K.next,T=K.previous;if(!D||!T)throw new Error("Invalid list");D.previous=T,T.next=D}K.next=void 0,K.previous=void 0},I.prototype.touch=function(K,D){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(D!==1&&D!==2)){if(D===1){if(K===this._head)return;var T=K.next,te=K.previous;K===this._tail?(te.next=void 0,this._tail=te):(T.previous=te,te.next=T),K.previous=void 0,K.next=this._head,this._head.previous=K,this._head=K}else if(D===2){if(K===this._tail)return;var T=K.next,te=K.previous;K===this._head?(T.previous=void 0,this._head=T):(T.previous=te,te.next=T),K.next=void 0,K.previous=this._tail,this._tail.next=K,this._tail=K}}},I.prototype.toJSON=function(){var K=[];return this.forEach(function(D,T){K.push([T,D])}),K},I}(),S=function(I){R(K,I);function K(D,T){T===void 0&&(T=1);var te=I.call(this)||this;return te._limit=D,te._ratio=Math.min(Math.max(0,T),1),te}return K.prototype.get=function(D){return I.prototype.get.call(this,D,2)},K.prototype.peek=function(D){return I.prototype.get.call(this,D,0)},K.prototype.set=function(D,T){I.prototype.set.call(this,D,T,2),this.checkTrim()},K.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},K}(x)},QFiB:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return o.e(218).then(o.bind(null,"PhST"))}})},QRHv:function(Et,A,o){"use strict";o.d(A,"f",function(){return F}),o.d(A,"b",function(){return G}),o.d(A,"c",function(){return x}),o.d(A,"a",function(){return I}),o.d(A,"e",function(){return T}),o.d(A,"d",function(){return te});var R=o("6OMU"),re=o("4bUh"),ne=o("cGHE"),P=o("twdY");function F(U){for(var _=0,h=0,g=0,p=0,v=U.length;p<v;p++){var E=U.charCodeAt(p);E===13?(_===0&&(h=p),_++,p+1<v&&U.charCodeAt(p+1)===10&&p++,g=p+1):E===10&&(_===0&&(h=p),_++,g=p+1)}return _===0&&(h=U.length),[_,h,U.length-g]}function V(U){return(U<<0|0<<8|0<<11|1<<14|2<<23)>>>0}var B=new Uint32Array(0).buffer,G=function(){function U(){this.tokens=[]}return U.prototype.add=function(_,h){if(this.tokens.length>0){var g=this.tokens[this.tokens.length-1],p=g.startLineNumber+g.tokens.length-1;if(p+1===_){g.tokens.push(h);return}}this.tokens.push(new K(_,[h]))},U}(),x=function(){function U(_){this._tokens=_,this._tokenCount=_.length/4}return U.prototype.getMaxDeltaLine=function(){var _=this.getTokenCount();return _===0?-1:this.getDeltaLine(_-1)},U.prototype.getTokenCount=function(){return this._tokenCount},U.prototype.getDeltaLine=function(_){return this._tokens[4*_]},U.prototype.getStartCharacter=function(_){return this._tokens[4*_+1]},U.prototype.getEndCharacter=function(_){return this._tokens[4*_+2]},U.prototype.getMetadata=function(_){return this._tokens[4*_+3]},U.prototype.clear=function(){this._tokenCount=0},U.prototype.acceptDeleteRange=function(_,h,g,p,v){for(var E=this._tokens,k=this._tokenCount,z=p-h,oe=0,fe=!1,Se=0;Se<k;Se++){var we=4*Se,q=E[we],X=E[we+1],ce=E[we+2],Ne=E[we+3];if(q<h||q===h&&ce<=g){oe++;continue}else if(q===h&&X<g)q===p&&ce>v?ce-=v-g:ce=g;else if(q===h&&X===g)if(q===p&&ce>v)ce-=v-g;else{fe=!0;continue}else if(q<p||q===p&&X<v)if(q===p&&ce>v)q===h?(X=g,ce=X+(ce-v)):(X=0,ce=X+(ce-v));else{fe=!0;continue}else if(q>p){if(z===0&&!fe){oe=k;break}q-=z}else if(q===p&&X>=v)_&&q===0&&(X+=_,ce+=_),q-=z,X-=v-g,ce-=v-g;else throw new Error("Not possible!");var He=4*oe;E[He]=q,E[He+1]=X,E[He+2]=ce,E[He+3]=Ne,oe++}this._tokenCount=oe},U.prototype.acceptInsertText=function(_,h,g,p,v,E){for(var k=g===0&&p===1&&(E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122),z=this._tokens,oe=this._tokenCount,fe=0;fe<oe;fe++){var Se=4*fe,we=z[Se],q=z[Se+1],X=z[Se+2];if(!(we<_||we===_&&X<h)){if(we===_&&X===h)if(k)X+=1;else continue;else if(we===_&&q<h&&h<X)g===0?X+=p:X=h;else{if(we===_&&q===h&&k)continue;if(we===_)if(we+=g,g===0)q+=p,X+=p;else{var ce=X-q;q=v+(q-h),X=q+ce}else we+=g}z[Se]=we,z[Se+1]=q,z[Se+2]=X}}},U}(),S=function(){function U(_,h,g){this._actual=_,this._startTokenIndex=h,this._endTokenIndex=g}return U.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},U.prototype.getStartCharacter=function(_){return this._actual.getStartCharacter(this._startTokenIndex+_)},U.prototype.getEndCharacter=function(_){return this._actual.getEndCharacter(this._startTokenIndex+_)},U.prototype.getMetadata=function(_){return this._actual.getMetadata(this._startTokenIndex+_)},U}(),I=function(){function U(_,h){this.startLineNumber=_,this.tokens=h,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}return U.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},U.prototype.getLineTokens=function(_){if(this.startLineNumber<=_&&_<=this.endLineNumber){var h=U._findTokensWithLine(this.tokens,_-this.startLineNumber);if(h){var g=h[0],p=h[1];return new S(this.tokens,g,p)}}return null},U._findTokensWithLine=function(_,h){for(var g=0,p=_.getTokenCount()-1;g<p;){var v=g+Math.floor((p-g)/2),E=_.getDeltaLine(v);if(E<h)g=v+1;else if(E>h)p=v-1;else{for(var k=v;k>g&&_.getDeltaLine(k-1)===h;)k--;for(var z=v;z<p&&_.getDeltaLine(z+1)===h;)z++;return[k,z]}}return _.getDeltaLine(g)===h?[g,g]:null},U.prototype.applyEdit=function(_,h){var g=F(h),p=g[0],v=g[1],E=g[2];this.acceptEdit(_,p,v,E,h.length>0?h.charCodeAt(0):0)},U.prototype.acceptEdit=function(_,h,g,p,v){this._acceptDeleteRange(_),this._acceptInsertText(new ne.a(_.startLineNumber,_.startColumn),h,g,p,v),this._updateEndLineNumber()},U.prototype._acceptDeleteRange=function(_){if(!(_.startLineNumber===_.endLineNumber&&_.startColumn===_.endColumn)){var h=_.startLineNumber-this.startLineNumber,g=_.endLineNumber-this.startLineNumber;if(g<0){var p=g-h;this.startLineNumber-=p;return}var v=this.tokens.getMaxDeltaLine();if(!(h>=v+1)){if(h<0&&g>=v+1){this.startLineNumber=0,this.tokens.clear();return}if(h<0){var E=-h;this.startLineNumber-=E,this.tokens.acceptDeleteRange(_.startColumn-1,0,0,g,_.endColumn-1)}else this.tokens.acceptDeleteRange(0,h,_.startColumn-1,g,_.endColumn-1)}}},U.prototype._acceptInsertText=function(_,h,g,p,v){if(!(h===0&&g===0)){var E=_.lineNumber-this.startLineNumber;if(E<0){this.startLineNumber+=h;return}var k=this.tokens.getMaxDeltaLine();E>=k+1||this.tokens.acceptInsertText(E,_.column-1,h,g,p,v)}},U}(),K=function(){function U(_,h){this.startLineNumber=_,this.tokens=h}return U}();function D(U){return U instanceof Uint32Array?U:new Uint32Array(U)}var T=function(){function U(){this._pieces=[]}return U.prototype.flush=function(){this._pieces=[]},U.prototype.set=function(_){this._pieces=_||[]},U.prototype.addSemanticTokens=function(_,h){var g=this._pieces;if(g.length===0)return h;var p=U._findFirstPieceWithLine(g,_),v=this._pieces[p].getLineTokens(_);if(!v)return h;for(var E=h.getCount(),k=v.getCount(),z=0,oe=[],fe=0,Se=0;Se<k;Se++){for(var we=v.getStartCharacter(Se),q=v.getEndCharacter(Se),X=v.getMetadata(Se),ce=((X&1?2048:0)|(X&2?4096:0)|(X&4?8192:0)|(X&8?8372224:0)|(X&16?4286578688:0))>>>0,Ne=~ce>>>0;z<E&&h.getEndOffset(z)<=we;)oe[fe++]=h.getEndOffset(z),oe[fe++]=h.getMetadata(z),z++;for(z<E&&h.getStartOffset(z)<we&&(oe[fe++]=we,oe[fe++]=h.getMetadata(z));z<E&&h.getEndOffset(z)<q;)oe[fe++]=h.getEndOffset(z),oe[fe++]=h.getMetadata(z)&Ne|X&ce,z++;if(z<E&&h.getEndOffset(z)===q)oe[fe++]=h.getEndOffset(z),oe[fe++]=h.getMetadata(z)&Ne|X&ce,z++;else{var He=Math.min(Math.max(0,z-1),E-1);oe[fe++]=q,oe[fe++]=h.getMetadata(He)&Ne|X&ce}}for(;z<E;)oe[fe++]=h.getEndOffset(z),oe[fe++]=h.getMetadata(z),z++;return new re.a(new Uint32Array(oe),h.getLineContent())},U._findFirstPieceWithLine=function(_,h){for(var g=0,p=_.length-1;g<p;){var v=g+Math.floor((p-g)/2);if(_[v].endLineNumber<h)g=v+1;else if(_[v].startLineNumber>h)p=v-1;else{for(;v>g&&_[v-1].startLineNumber<=h&&h<=_[v-1].endLineNumber;)v--;return v}}return g},U.prototype.acceptEdit=function(_,h,g,p,v){for(var E=0,k=this._pieces;E<k.length;E++){var z=k[E];z.acceptEdit(_,h,g,p,v)}},U}(),te=function(){function U(){this._lineTokens=[],this._len=0}return U.prototype.flush=function(){this._lineTokens=[],this._len=0},U.prototype.getTokens=function(_,h,g){var p=null;if(h<this._len&&(p=this._lineTokens[h]),p!==null&&p!==B)return new re.a(D(p),g);var v=new Uint32Array(2);return v[0]=g.length,v[1]=V(_),new re.a(v,g)},U._massageTokens=function(_,h,g){var p=g?D(g):null;if(h===0){var v=!1;if(p&&p.length>1&&(v=P.x.getLanguageId(p[1])!==_),!v)return B}if(!p||p.length===0){var E=new Uint32Array(2);return E[0]=h,E[1]=V(_),E.buffer}return p[p.length-2]=h,p.byteOffset===0&&p.byteLength===p.buffer.byteLength?p.buffer:p},U.prototype._ensureLine=function(_){for(;_>=this._len;)this._lineTokens[this._len]=null,this._len++},U.prototype._deleteLines=function(_,h){h!==0&&(_+h>this._len&&(h=this._len-_),this._lineTokens.splice(_,h),this._len-=h)},U.prototype._insertLines=function(_,h){if(h!==0){for(var g=[],p=0;p<h;p++)g[p]=null;this._lineTokens=R.a(this._lineTokens,_,g),this._len+=h}},U.prototype.setTokens=function(_,h,g,p){var v=U._massageTokens(_,g,p);this._ensureLine(h),this._lineTokens[h]=v},U.prototype.acceptEdit=function(_,h,g){this._acceptDeleteRange(_),this._acceptInsertText(new ne.a(_.startLineNumber,_.startColumn),h,g)},U.prototype._acceptDeleteRange=function(_){var h=_.startLineNumber-1;if(!(h>=this._len)){if(_.startLineNumber===_.endLineNumber){if(_.startColumn===_.endColumn)return;this._lineTokens[h]=U._delete(this._lineTokens[h],_.startColumn-1,_.endColumn-1);return}this._lineTokens[h]=U._deleteEnding(this._lineTokens[h],_.startColumn-1);var g=_.endLineNumber-1,p=null;g<this._len&&(p=U._deleteBeginning(this._lineTokens[g],_.endColumn-1)),this._lineTokens[h]=U._append(this._lineTokens[h],p),this._deleteLines(_.startLineNumber,_.endLineNumber-_.startLineNumber)}},U.prototype._acceptInsertText=function(_,h,g){if(!(h===0&&g===0)){var p=_.lineNumber-1;if(!(p>=this._len)){if(h===0){this._lineTokens[p]=U._insert(this._lineTokens[p],_.column-1,g);return}this._lineTokens[p]=U._deleteEnding(this._lineTokens[p],_.column-1),this._lineTokens[p]=U._insert(this._lineTokens[p],_.column-1,g),this._insertLines(_.lineNumber,h)}}},U._deleteBeginning=function(_,h){return _===null||_===B?_:U._delete(_,0,h)},U._deleteEnding=function(_,h){if(_===null||_===B)return _;var g=D(_),p=g[g.length-2];return U._delete(_,h,p)},U._delete=function(_,h,g){if(_===null||_===B||h===g)return _;var p=D(_),v=p.length>>>1;if(h===0&&p[p.length-2]===g)return B;var E=re.a.findIndexInTokensArray(p,h),k=E>0?p[E-1<<1]:0,z=p[E<<1];if(g<z){for(var oe=g-h,fe=E;fe<v;fe++)p[fe<<1]-=oe;return _}var Se,we;k!==h?(p[E<<1]=h,Se=E+1<<1,we=h):(Se=E<<1,we=k);for(var q=g-h,X=E+1;X<v;X++){var ce=p[X<<1]-q;ce>we&&(p[Se++]=ce,p[Se++]=p[(X<<1)+1],we=ce)}if(Se===p.length)return _;var Ne=new Uint32Array(Se);return Ne.set(p.subarray(0,Se),0),Ne.buffer},U._append=function(_,h){if(h===B)return _;if(_===B)return h;if(_===null)return _;if(h===null)return null;var g=D(_),p=D(h),v=p.length>>>1,E=new Uint32Array(g.length+p.length);E.set(g,0);for(var k=g.length,z=g[g.length-2],oe=0;oe<v;oe++)E[k++]=p[oe<<1]+z,E[k++]=p[(oe<<1)+1];return E.buffer},U._insert=function(_,h,g){if(_===null||_===B)return _;var p=D(_),v=p.length>>>1,E=re.a.findIndexInTokensArray(p,h);if(E>0){var k=p[E-1<<1];k===h&&E--}for(var z=E;z<v;z++)p[z<<1]+=g;return _},U}()},QVNv:function(Et,A,o){"use strict";o.d(A,"b",function(){return T}),o.d(A,"a",function(){return U}),o.d(A,"c",function(){return h}),o.d(A,"e",function(){return g}),o.d(A,"d",function(){return z}),o.d(A,"f",function(){return fe});var R=o("X+cX"),re=o("qj0h"),ne=o("/cxE"),P=o("sswD"),F=o("twdY"),V=o("cGHE"),B=o("T8No"),G=o("JQT/"),x=o("aokT"),S=o("fpMC"),I=o("pmY6"),K=function(Se,we,q,X){function ce(Ne){return Ne instanceof q?Ne:new q(function(He){He(Ne)})}return new(q||(q=Promise))(function(Ne,He){function _e(he){try{se(X.next(he))}catch(ie){He(ie)}}function de(he){try{se(X.throw(he))}catch(ie){He(ie)}}function se(he){he.done?Ne(he.value):ce(he.value).then(_e,de)}se((X=X.apply(Se,we||[])).next())})},D=function(Se,we){var q={label:0,sent:function(){if(Ne[0]&1)throw Ne[1];return Ne[1]},trys:[],ops:[]},X,ce,Ne,He;return He={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol=="function"&&(He[Symbol.iterator]=function(){return this}),He;function _e(se){return function(he){return de([se,he])}}function de(se){if(X)throw new TypeError("Generator is already executing.");for(;q;)try{if(X=1,ce&&(Ne=se[0]&2?ce.return:se[0]?ce.throw||((Ne=ce.return)&&Ne.call(ce),0):ce.next)&&!(Ne=Ne.call(ce,se[1])).done)return Ne;switch(ce=0,Ne&&(se=[se[0]&2,Ne.value]),se[0]){case 0:case 1:Ne=se;break;case 4:return q.label++,{value:se[1],done:!1};case 5:q.label++,ce=se[1],se=[0];continue;case 7:se=q.ops.pop(),q.trys.pop();continue;default:if(Ne=q.trys,!(Ne=Ne.length>0&&Ne[Ne.length-1])&&(se[0]===6||se[0]===2)){q=0;continue}if(se[0]===3&&(!Ne||se[1]>Ne[0]&&se[1]<Ne[3])){q.label=se[1];break}if(se[0]===6&&q.label<Ne[1]){q.label=Ne[1],Ne=se;break}if(Ne&&q.label<Ne[2]){q.label=Ne[2],q.ops.push(se);break}Ne[2]&&q.ops.pop(),q.trys.pop();continue}se=we.call(Se,q)}catch(he){se=[6,he],ce=0}finally{X=Ne=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}},T={Visible:new B.d("suggestWidgetVisible",!1),MultipleSuggestions:new B.d("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new B.d("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new B.d("acceptSuggestionOnEnter",!0)},te=function(){function Se(we,q,X,ce,Ne){var He=this;this.position=we,this.completion=q,this.container=X,this.provider=ce,this.isResolved=!1,this.score=S.a.Default,this.distance=0,this.textLabel=typeof q.label=="string"?q.label:q.label.name,this.labelLow=this.textLabel.toLowerCase(),this.sortTextLow=q.sortText&&q.sortText.toLowerCase(),this.filterTextLow=q.filterText&&q.filterText.toLowerCase(),x.a.isIRange(q.range)?(this.editStart=new V.a(q.range.startLineNumber,q.range.startColumn),this.editInsertEnd=new V.a(q.range.endLineNumber,q.range.endColumn),this.editReplaceEnd=new V.a(q.range.endLineNumber,q.range.endColumn)):(this.editStart=new V.a(q.range.insert.startLineNumber,q.range.insert.startColumn),this.editInsertEnd=new V.a(q.range.insert.endLineNumber,q.range.insert.endColumn),this.editReplaceEnd=new V.a(q.range.replace.endLineNumber,q.range.replace.endColumn));var _e=ce.resolveCompletionItem;if(typeof _e!="function")this.resolve=function(){return Promise.resolve()},this.isResolved=!0;else{var de;this.resolve=function(se){return de||(de=Promise.resolve(_e.call(ce,Ne,we,q,se)).then(function(he){Object(re.a)(q,he),He.isResolved=!0},function(he){Object(ne.d)(he)&&(de=void 0)}),se.onCancellationRequested(function(){He.isResolved||(de=void 0)})),de}}}return Se}(),U=function(){function Se(we,q,X){we===void 0&&(we=2),q===void 0&&(q=new Set),X===void 0&&(X=new Set),this.snippetSortOrder=we,this.kindFilter=q,this.providerFilter=X}return Se.default=new Se,Se}(),_;function h(){return _}function g(Se,we,q,X,ce){q===void 0&&(q=U.default),X===void 0&&(X={triggerKind:0}),ce===void 0&&(ce=G.a.None);var Ne=Se.getWordAtPosition(we),He=Ne?new x.a(we.lineNumber,Ne.startColumn,we.lineNumber,Ne.endColumn):x.a.fromPositions(we),_e=He.setEndPosition(we.lineNumber,we.column);we=we.clone();var de=F.d.orderedGroups(Se);!q.kindFilter.has(25)&&_&&de.unshift([_]);var se=[],he=new I.b,ie=!1,$=de.map(function(ye){return function(){return Promise.all(ye.map(function(Ue){if(!(q.providerFilter.size>0&&!q.providerFilter.has(Ue)))return Promise.resolve(Ue.provideCompletionItems(Se,we,X,ce)).then(function(tt){var _t=se.length;if(tt){for(var At=0,Yt=tt.suggestions||[];At<Yt.length;At++){var Ke=Yt[At];q.kindFilter.has(Ke.kind)||(Ke.range||(Ke.range={insert:_e,replace:He}),Ke.sortText||(Ke.sortText=typeof Ke.label=="string"?Ke.label:Ke.label.name),se.push(new te(we,Ke,tt,Ue,Se)))}Object(I.g)(tt)&&he.add(tt)}_t!==se.length&&Ue!==_&&(ie=!0)},ne.f)}))}}),ve=Object(R.h)($,function(){return ie||ce.isCancellationRequested}).then(function(){return ce.isCancellationRequested?(he.dispose(),Promise.reject(Object(ne.a)())):se.sort(z(q.snippetSortOrder))});return ve}function p(Se,we){if(Se.sortTextLow&&we.sortTextLow){if(Se.sortTextLow<we.sortTextLow)return-1;if(Se.sortTextLow>we.sortTextLow)return 1}return Se.completion.label<we.completion.label?-1:Se.completion.label>we.completion.label?1:Se.completion.kind-we.completion.kind}function v(Se,we){if(Se.completion.kind!==we.completion.kind){if(Se.completion.kind===25)return-1;if(we.completion.kind===25)return 1}return p(Se,we)}function E(Se,we){if(Se.completion.kind!==we.completion.kind){if(Se.completion.kind===25)return 1;if(we.completion.kind===25)return-1}return p(Se,we)}var k=new Map;k.set(0,v),k.set(2,E),k.set(1,p);function z(Se){return k.get(Se)}Object(P.e)("_executeCompletionItemProvider",function(Se,we,q){return K(void 0,void 0,void 0,function(){var X,ce,Ne,He,_e,de,se,he;return D(this,function(ie){switch(ie.label){case 0:return X={incomplete:!1,suggestions:[]},ce=new I.b,Ne=[],He=q.maxItemsToResolve||0,[4,g(Se,we)];case 1:for(_e=ie.sent(),de=0,se=_e;de<se.length;de++)he=se[de],Ne.length<He&&Ne.push(he.resolve(G.a.None)),X.incomplete=X.incomplete||he.container.incomplete,X.suggestions.push(he.completion),Object(I.g)(he.container)&&ce.add(he.container);ie.label=2;case 2:return ie.trys.push([2,,4,5]),[4,Promise.all(Ne)];case 3:return ie.sent(),[2,X];case 4:return setTimeout(function(){return ce.dispose()},100),[7];case 5:return[2]}})})});var oe=new(function(){function Se(){this.onlyOnceSuggestions=[]}return Se.prototype.provideCompletionItems=function(){var we=this.onlyOnceSuggestions.slice(0),q={suggestions:we};return this.onlyOnceSuggestions.length=0,q},Se}());F.d.register("*",oe);function fe(Se,we){setTimeout(function(){var q;(q=oe.onlyOnceSuggestions).push.apply(q,we),Se.getContribution("editor.contrib.suggestController").triggerSuggest(new Set().add(oe))},0)}},QiAa:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return o.e(235).then(o.bind(null,"j6Xs"))}})},QuOb:function(Et,A,o){"use strict";o.d(A,"a",function(){return F});var R=o("MI8n"),re=o("pmY6"),ne=function(){var K=function(T,te){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,_){U.__proto__=_}||function(U,_){for(var h in _)_.hasOwnProperty(h)&&(U[h]=_[h])},K(T,te)};return function(D,T){K(D,T);function te(){this.constructor=D}D.prototype=T===null?Object.create(T):(te.prototype=T.prototype,new te)}}(),P=function(){function K(D,T,te,U,_,h){D=D|0,T=T|0,te=te|0,U=U|0,_=_|0,h=h|0,D<0&&(D=0),te+D>T&&(te=T-D),te<0&&(te=0),U<0&&(U=0),h+U>_&&(h=_-U),h<0&&(h=0),this.width=D,this.scrollWidth=T,this.scrollLeft=te,this.height=U,this.scrollHeight=_,this.scrollTop=h}return K.prototype.equals=function(D){return this.width===D.width&&this.scrollWidth===D.scrollWidth&&this.scrollLeft===D.scrollLeft&&this.height===D.height&&this.scrollHeight===D.scrollHeight&&this.scrollTop===D.scrollTop},K.prototype.withScrollDimensions=function(D){return new K(typeof D.width!="undefined"?D.width:this.width,typeof D.scrollWidth!="undefined"?D.scrollWidth:this.scrollWidth,this.scrollLeft,typeof D.height!="undefined"?D.height:this.height,typeof D.scrollHeight!="undefined"?D.scrollHeight:this.scrollHeight,this.scrollTop)},K.prototype.withScrollPosition=function(D){return new K(this.width,this.scrollWidth,typeof D.scrollLeft!="undefined"?D.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof D.scrollTop!="undefined"?D.scrollTop:this.scrollTop)},K.prototype.createScrollEvent=function(D){var T=this.width!==D.width,te=this.scrollWidth!==D.scrollWidth,U=this.scrollLeft!==D.scrollLeft,_=this.height!==D.height,h=this.scrollHeight!==D.scrollHeight,g=this.scrollTop!==D.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:T,scrollWidthChanged:te,scrollLeftChanged:U,heightChanged:_,scrollHeightChanged:h,scrollTopChanged:g}},K}(),F=function(K){ne(D,K);function D(T,te){var U=K.call(this)||this;return U._onScroll=U._register(new R.a),U.onScroll=U._onScroll.event,U._smoothScrollDuration=T,U._scheduleAtNextAnimationFrame=te,U._state=new P(0,0,0,0,0,0),U._smoothScrolling=null,U}return D.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),K.prototype.dispose.call(this)},D.prototype.setSmoothScrollDuration=function(T){this._smoothScrollDuration=T},D.prototype.validateScrollPosition=function(T){return this._state.withScrollPosition(T)},D.prototype.getScrollDimensions=function(){return this._state},D.prototype.setScrollDimensions=function(T){var te=this._state.withScrollDimensions(T);this._setState(te),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},D.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},D.prototype.getCurrentScrollPosition=function(){return this._state},D.prototype.setScrollPositionNow=function(T){var te=this._state.withScrollPosition(T);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(te)},D.prototype.setScrollPositionSmooth=function(T){var te=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(T);if(this._smoothScrolling){T={scrollLeft:typeof T.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:T.scrollLeft,scrollTop:typeof T.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:T.scrollTop};var U=this._state.withScrollPosition(T);if(this._smoothScrolling.to.scrollLeft===U.scrollLeft&&this._smoothScrolling.to.scrollTop===U.scrollTop)return;var _=this._smoothScrolling.combine(this._state,U,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=_}else{var U=this._state.withScrollPosition(T);this._smoothScrolling=x.start(this._state,U,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){!te._smoothScrolling||(te._smoothScrolling.animationFrameDisposable=null,te._performSmoothScrolling())})},D.prototype._performSmoothScrolling=function(){var T=this;if(!!this._smoothScrolling){var te=this._smoothScrolling.tick(),U=this._state.withScrollPosition(te);if(this._setState(U),te.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){!T._smoothScrolling||(T._smoothScrolling.animationFrameDisposable=null,T._performSmoothScrolling())})}},D.prototype._setState=function(T){var te=this._state;te.equals(T)||(this._state=T,this._onScroll.fire(this._state.createScrollEvent(te)))},D}(re.a),V=function(){function K(D,T,te){this.scrollLeft=D,this.scrollTop=T,this.isDone=te}return K}();function B(K,D){var T=D-K;return function(te){return K+T*I(te)}}function G(K,D,T){return function(te){return te<T?K(te/T):D((te-T)/(1-T))}}var x=function(){function K(D,T,te,U){this.from=D,this.to=T,this.duration=U,this._startTime=te,this.animationFrameDisposable=null,this._initAnimations()}return K.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)},K.prototype._initAnimation=function(D,T,te){var U=Math.abs(D-T);if(U>2.5*te){var _=void 0,h=void 0;return D<T?(_=D+.75*te,h=T-.75*te):(_=D-.75*te,h=T+.75*te),G(B(D,_),B(h,T),.33)}return B(D,T)},K.prototype.dispose=function(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},K.prototype.acceptScrollDimensions=function(D){this.to=D.withScrollPosition(this.to),this._initAnimations()},K.prototype.tick=function(){return this._tick(Date.now())},K.prototype._tick=function(D){var T=(D-this._startTime)/this.duration;if(T<1){var te=this.scrollLeft(T),U=this.scrollTop(T);return new V(te,U,!1)}return new V(this.to.scrollLeft,this.to.scrollTop,!0)},K.prototype.combine=function(D,T,te){return K.start(D,T,te)},K.start=function(D,T,te){te=te+10;var U=Date.now()-10;return new K(D,T,U,te)},K}();function S(K){return Math.pow(K,3)}function I(K){return 1-S(1-K)}},R3nR:function(Et,A,o){"use strict";o.d(A,"b",function(){return ne}),o.d(A,"a",function(){return P});var R=o("Cg/j"),re=o("T8No"),ne=Object(R.c)("accessibilityService"),P=new re.d("accessibilityModeEnabled",!1)},R8sh:function(Et,A,o){"use strict";o.d(A,"a",function(){return ne});var R=o("Cg/j"),re="label",ne=Object(R.c)(re)},S3by:function(Et,A,o){"use strict";var R=o("3/fG"),re=o("N0LK"),ne;(function(P){P[P.Ignore=0]="Ignore",P[P.Info=1]="Info",P[P.Warning=2]="Warning",P[P.Error=3]="Error"})(ne||(ne={})),function(P){var F="error",V="warning",B="warn",G="info",x=Object.create(null);x[P.Error]=R.a("sev.error","Error"),x[P.Warning]=R.a("sev.warning","Warning"),x[P.Info]=R.a("sev.info","Info");function S(I){return I?re.n(F,I)?P.Error:re.n(V,I)||re.n(B,I)?P.Warning:re.n(G,I)?P.Info:P.Ignore:P.Ignore}P.fromValue=S}(ne||(ne={})),A.a=ne},Sdnv:function(Et,A,o){"use strict";o.d(A,"a",function(){return R});function R(re,ne,P){return Math.min(Math.max(re,ne),P)}},SvYn:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return o.e(207).then(o.bind(null,"Dsrv"))}})},T8No:function(Et,A,o){"use strict";o.d(A,"a",function(){return P}),o.d(A,"b",function(){return D}),o.d(A,"d",function(){return T}),o.d(A,"c",function(){return te}),o.d(A,"e",function(){return U});var R=o("N0LK"),re=o("Cg/j"),ne=function(){var _=function(g,p){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,E){v.__proto__=E}||function(v,E){for(var k in E)E.hasOwnProperty(k)&&(v[k]=E[k])},_(g,p)};return function(h,g){_(h,g);function p(){this.constructor=h}h.prototype=g===null?Object.create(g):(p.prototype=g.prototype,new p)}}(),P=function(){function _(){}return _.has=function(h){return V.create(h)},_.equals=function(h,g){return B.create(h,g)},_.regex=function(h,g){return S.create(h,g)},_.not=function(h){return x.create(h)},_.and=function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];return K.create(h)},_.or=function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];return D.create(h)},_.deserialize=function(h,g){if(g===void 0&&(g=!1),!!h)return this._deserializeOrExpression(h,g)},_._deserializeOrExpression=function(h,g){var p=this,v=h.split("||");return D.create(v.map(function(E){return p._deserializeAndExpression(E,g)}))},_._deserializeAndExpression=function(h,g){var p=this,v=h.split("&&");return K.create(v.map(function(E){return p._deserializeOne(E,g)}))},_._deserializeOne=function(h,g){if(h=h.trim(),h.indexOf("!=")>=0){var p=h.split("!=");return G.create(p[0].trim(),this._deserializeValue(p[1],g))}if(h.indexOf("==")>=0){var p=h.split("==");return B.create(p[0].trim(),this._deserializeValue(p[1],g))}if(h.indexOf("=~")>=0){var p=h.split("=~");return S.create(p[0].trim(),this._deserializeRegexValue(p[1],g))}return/^\!\s*/.test(h)?x.create(h.substr(1).trim()):V.create(h)},_._deserializeValue=function(h,g){if(h=h.trim(),h==="true")return!0;if(h==="false")return!1;var p=/^'([^']*)'$/.exec(h);return p?p[1].trim():h},_._deserializeRegexValue=function(h,g){if(Object(R.x)(h)){if(g)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var p=h.indexOf("/"),v=h.lastIndexOf("/");if(p===v||p<0){if(g)throw new Error("bad regexp-value '"+h+"', missing /-enclosure");return console.warn("bad regexp-value '"+h+"', missing /-enclosure"),null}var E=h.slice(p+1,v),k=h[v+1]==="i"?"i":"";try{return new RegExp(E,k)}catch(z){if(g)throw new Error("bad regexp-value '"+h+"', parse error: "+z);return console.warn("bad regexp-value '"+h+"', parse error: "+z),null}},_}();function F(_,h){var g=_.getType(),p=h.getType();if(g!==p)return g-p;switch(g){case 1:return _.cmp(h);case 2:return _.cmp(h);case 3:return _.cmp(h);case 4:return _.cmp(h);case 6:return _.cmp(h);case 7:return _.cmp(h);case 5:return _.cmp(h);default:throw new Error("Unknown ContextKeyExpr!")}}var V=function(){function _(h){this.key=h}return _.create=function(h){return new _(h)},_.prototype.getType=function(){return 1},_.prototype.cmp=function(h){return this.key<h.key?-1:this.key>h.key?1:0},_.prototype.equals=function(h){return h instanceof _?this.key===h.key:!1},_.prototype.evaluate=function(h){return!!h.getValue(this.key)},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return x.create(this.key)},_}(),B=function(){function _(h,g){this.key=h,this.value=g}return _.create=function(h,g){return typeof g=="boolean"?g?V.create(h):x.create(h):new _(h,g)},_.prototype.getType=function(){return 3},_.prototype.cmp=function(h){return this.key<h.key?-1:this.key>h.key?1:this.value<h.value?-1:this.value>h.value?1:0},_.prototype.equals=function(h){return h instanceof _?this.key===h.key&&this.value===h.value:!1},_.prototype.evaluate=function(h){return h.getValue(this.key)==this.value},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return G.create(this.key,this.value)},_}(),G=function(){function _(h,g){this.key=h,this.value=g}return _.create=function(h,g){return typeof g=="boolean"?g?x.create(h):V.create(h):new _(h,g)},_.prototype.getType=function(){return 4},_.prototype.cmp=function(h){return this.key<h.key?-1:this.key>h.key?1:this.value<h.value?-1:this.value>h.value?1:0},_.prototype.equals=function(h){return h instanceof _?this.key===h.key&&this.value===h.value:!1},_.prototype.evaluate=function(h){return h.getValue(this.key)!=this.value},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return B.create(this.key,this.value)},_}(),x=function(){function _(h){this.key=h}return _.create=function(h){return new _(h)},_.prototype.getType=function(){return 2},_.prototype.cmp=function(h){return this.key<h.key?-1:this.key>h.key?1:0},_.prototype.equals=function(h){return h instanceof _?this.key===h.key:!1},_.prototype.evaluate=function(h){return!h.getValue(this.key)},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return V.create(this.key)},_}(),S=function(){function _(h,g){this.key=h,this.regexp=g}return _.create=function(h,g){return new _(h,g)},_.prototype.getType=function(){return 6},_.prototype.cmp=function(h){if(this.key<h.key)return-1;if(this.key>h.key)return 1;var g=this.regexp?this.regexp.source:"",p=h.regexp?h.regexp.source:"";return g<p?-1:g>p?1:0},_.prototype.equals=function(h){if(h instanceof _){var g=this.regexp?this.regexp.source:"",p=h.regexp?h.regexp.source:"";return this.key===h.key&&g===p}return!1},_.prototype.evaluate=function(h){var g=h.getValue(this.key);return this.regexp?this.regexp.test(g):!1},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return I.create(this)},_}(),I=function(){function _(h){this._actual=h}return _.create=function(h){return new _(h)},_.prototype.getType=function(){return 7},_.prototype.cmp=function(h){return this._actual.cmp(h._actual)},_.prototype.equals=function(h){return h instanceof _?this._actual.equals(h._actual):!1},_.prototype.evaluate=function(h){return!this._actual.evaluate(h)},_.prototype.keys=function(){return this._actual.keys()},_.prototype.negate=function(){return this._actual},_}(),K=function(){function _(h){this.expr=h}return _.create=function(h){var g=_._normalizeArr(h);if(g.length!==0)return g.length===1?g[0]:new _(g)},_.prototype.getType=function(){return 5},_.prototype.cmp=function(h){if(this.expr.length<h.expr.length)return-1;if(this.expr.length>h.expr.length)return 1;for(var g=0,p=this.expr.length;g<p;g++){var v=F(this.expr[g],h.expr[g]);if(v!==0)return v}return 0},_.prototype.equals=function(h){if(h instanceof _){if(this.expr.length!==h.expr.length)return!1;for(var g=0,p=this.expr.length;g<p;g++)if(!this.expr[g].equals(h.expr[g]))return!1;return!0}return!1},_.prototype.evaluate=function(h){for(var g=0,p=this.expr.length;g<p;g++)if(!this.expr[g].evaluate(h))return!1;return!0},_._normalizeArr=function(h){var g=[];if(h){for(var p=0,v=h.length;p<v;p++){var E=h[p];if(!!E){if(E instanceof _){g=g.concat(E.expr);continue}if(E instanceof D)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.');g.push(E)}}g.sort(F)}return g},_.prototype.keys=function(){for(var h=[],g=0,p=this.expr;g<p.length;g++){var v=p[g];h.push.apply(h,v.keys())}return h},_.prototype.negate=function(){for(var h=[],g=0,p=this.expr;g<p.length;g++){var v=p[g];h.push(v.negate())}return D.create(h)},_}(),D=function(){function _(h){this.expr=h}return _.create=function(h){var g=_._normalizeArr(h);if(g.length!==0)return g.length===1?g[0]:new _(g)},_.prototype.getType=function(){return 8},_.prototype.equals=function(h){if(h instanceof _){if(this.expr.length!==h.expr.length)return!1;for(var g=0,p=this.expr.length;g<p;g++)if(!this.expr[g].equals(h.expr[g]))return!1;return!0}return!1},_.prototype.evaluate=function(h){for(var g=0,p=this.expr.length;g<p;g++)if(this.expr[g].evaluate(h))return!0;return!1},_._normalizeArr=function(h){var g=[];if(h){for(var p=0,v=h.length;p<v;p++){var E=h[p];if(!!E){if(E instanceof _){g=g.concat(E.expr);continue}g.push(E)}}g.sort(F)}return g},_.prototype.keys=function(){for(var h=[],g=0,p=this.expr;g<p.length;g++){var v=p[g];h.push.apply(h,v.keys())}return h},_.prototype.negate=function(){for(var h=[],g=0,p=this.expr;g<p.length;g++){var v=p[g];h.push(v.negate())}for(var E=function(He){return He instanceof _?He.expr:[He]};h.length>1;){for(var k=h.shift(),z=h.shift(),oe=[],fe=0,Se=E(k);fe<Se.length;fe++)for(var we=Se[fe],q=0,X=E(z);q<X.length;q++){var ce=X[q];oe.push(P.and(we,ce))}h.unshift(P.or.apply(P,oe))}return h[0]},_}(),T=function(_){ne(h,_);function h(g,p){var v=_.call(this,g)||this;return v._defaultValue=p,v}return h.prototype.bindTo=function(g){return g.createKey(this.key,this._defaultValue)},h.prototype.getValue=function(g){return g.getContextKeyValue(this.key)},h.prototype.toNegated=function(){return P.not(this.key)},h}(V),te=Object(re.c)("contextKeyService"),U="setContext"},TQUy:function(Et,A,o){"use strict";o.d(A,"b",function(){return F}),o.d(A,"a",function(){return V});var R=o("N0LK"),re=o("4bUh"),ne=o("i/Ef"),P={getInitialState:function(){return ne.c},tokenize2:function(x,S,I){return Object(ne.e)(0,x,S,I)}};function F(G,x){return x===void 0&&(x=P),B(G,x||P)}function V(G,x,S,I,K,D,T){for(var te="<div>",U=I,_=0,h=0,g=x.getCount();h<g;h++){var p=x.getEndOffset(h);if(!(p<=I)){for(var v="";U<p&&U<K;U++){var E=G.charCodeAt(U);switch(E){case 9:var k=D-(U+_)%D;for(_+=k-1;k>0;)v+=T?"&#160;":" ",k--;break;case 60:v+="&lt;";break;case 62:v+="&gt;";break;case 38:v+="&amp;";break;case 0:v+="&#00;";break;case 65279:case 8232:v+="\uFFFD";break;case 13:v+="&#8203";break;case 32:v+=T?"&#160;":" ";break;default:v+=String.fromCharCode(E)}}if(te+='<span style="'+x.getInlineStyle(h,S)+'">'+v+"</span>",p>K||U>=K)break}}return te+="</div>",te}function B(G,x){for(var S='<div class="monaco-tokenized-source">',I=G.split(/\r\n|\r|\n/),K=x.getInitialState(),D=0,T=I.length;D<T;D++){var te=I[D];D>0&&(S+="<br/>");var U=x.tokenize2(te,K,0);re.a.convertToEndOffset(U.tokens,te.length);for(var _=new re.a(U.tokens,te),h=_.inflate(),g=0,p=0,v=h.getCount();p<v;p++){var E=h.getClassName(p),k=h.getEndOffset(p);S+='<span class="'+E+'">'+R.o(te.substring(g,k))+"</span>",g=k}K=U.endState}return S+="</div>",S}},TT2d:function(Et,A,o){},Tcc1:function(Et,A,o){"use strict";o.d(A,"a",function(){return R}),o.d(A,"b",function(){return re}),o.d(A,"c",function(){return ne});var R=function(){function P(F,V,B){this.offset=F|0,this.type=V,this.language=B}return P.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},P}(),re=function(){function P(F,V){this.tokens=F,this.endState=V}return P}(),ne=function(){function P(F,V){this.tokens=F,this.endState=V}return P}()},UCkY:function(Et,A,o){},URDS:function(Et,A,o){(function(R){/*!
Copyright (c) 2014 Taylor Hakes
Copyright (c) 2014 Forbes Lindesay
*/(function(re,ne){ne()})(this,function(){"use strict";function re(T){var te=this.constructor;return this.then(function(U){return te.resolve(T()).then(function(){return U})},function(U){return te.resolve(T()).then(function(){return te.reject(U)})})}var ne=setTimeout;function P(){}function F(T,te){return function(){T.apply(te,arguments)}}function V(T){if(!(this instanceof V))throw new TypeError("Promises must be constructed via new");if(typeof T!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],K(T,this)}function B(T,te){for(;T._state===3;)T=T._value;if(T._state===0){T._deferreds.push(te);return}T._handled=!0,V._immediateFn(function(){var U=T._state===1?te.onFulfilled:te.onRejected;if(U===null){(T._state===1?G:x)(te.promise,T._value);return}var _;try{_=U(T._value)}catch(h){x(te.promise,h);return}G(te.promise,_)})}function G(T,te){try{if(te===T)throw new TypeError("A promise cannot be resolved with itself.");if(te&&(typeof te=="object"||typeof te=="function")){var U=te.then;if(te instanceof V){T._state=3,T._value=te,S(T);return}else if(typeof U=="function"){K(F(U,te),T);return}}T._state=1,T._value=te,S(T)}catch(_){x(T,_)}}function x(T,te){T._state=2,T._value=te,S(T)}function S(T){T._state===2&&T._deferreds.length===0&&V._immediateFn(function(){T._handled||V._unhandledRejectionFn(T._value)});for(var te=0,U=T._deferreds.length;te<U;te++)B(T,T._deferreds[te]);T._deferreds=null}function I(T,te,U){this.onFulfilled=typeof T=="function"?T:null,this.onRejected=typeof te=="function"?te:null,this.promise=U}function K(T,te){var U=!1;try{T(function(_){U||(U=!0,G(te,_))},function(_){U||(U=!0,x(te,_))})}catch(_){if(U)return;U=!0,x(te,_)}}V.prototype.catch=function(T){return this.then(null,T)},V.prototype.then=function(T,te){var U=new this.constructor(P);return B(this,new I(T,te,U)),U},V.prototype.finally=re,V.all=function(T){return new V(function(te,U){if(!T||typeof T.length=="undefined")throw new TypeError("Promise.all accepts an array");var _=Array.prototype.slice.call(T);if(_.length===0)return te([]);var h=_.length;function g(v,E){try{if(E&&(typeof E=="object"||typeof E=="function")){var k=E.then;if(typeof k=="function"){k.call(E,function(z){g(v,z)},U);return}}_[v]=E,--h==0&&te(_)}catch(z){U(z)}}for(var p=0;p<_.length;p++)g(p,_[p])})},V.resolve=function(T){return T&&typeof T=="object"&&T.constructor===V?T:new V(function(te){te(T)})},V.reject=function(T){return new V(function(te,U){U(T)})},V.race=function(T){return new V(function(te,U){for(var _=0,h=T.length;_<h;_++)T[_].then(te,U)})},V._immediateFn=typeof setImmediate=="function"&&function(T){setImmediate(T)}||function(T){ne(T,0)},V._unhandledRejectionFn=function(te){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",te)};var D=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof R!="undefined")return R;throw new Error("unable to locate global object")}();"Promise"in D?D.Promise.prototype.finally||(D.Promise.prototype.finally=re):D.Promise=V})}).call(this,o("IyRk"))},Uzvx:function(Et,A,o){"use strict";o.d(A,"b",function(){return re}),o.d(A,"a",function(){return ne});var R=o("Cg/j"),re=Object(R.c)("contextViewService"),ne=Object(R.c)("contextMenuService")},VPJY:function(Et,A,o){},Vhoy:function(Et,A,o){"use strict";o.d(A,"a",function(){return re}),o.d(A,"b",function(){return P}),o.d(A,"c",function(){return V});var R=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function re(B){return B.replace(R,function(G,x){return x?G:"\\"+G})}var ne=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function P(B){return B.replace(ne,function(G){return"\\"+G})}var F=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function V(B){return B.replace(F,function(G,x,S,I,K){return x?"$("+S+")":'<span class="codicon codicon-'+I+(K?" codicon-animation-"+K:"")+'"></span>'})}},Vtyv:function(Et,A,o){},VvMK:function(Et,A,o){},Vxe3:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("Cg/j"),re=Object(R.c)("codeEditorService")},W9cx:function(Et,A,o){"use strict";o.d(A,"a",function(){return B}),o.d(A,"b",function(){return G}),o.d(A,"c",function(){return x});var R=o("bY76"),re=o("Cg/j"),ne=o("pmY6"),P=o("N0LK"),F=function(S,I,K,D){function T(te){return te instanceof K?te:new K(function(U){U(te)})}return new(K||(K=Promise))(function(te,U){function _(p){try{g(D.next(p))}catch(v){U(v)}}function h(p){try{g(D.throw(p))}catch(v){U(v)}}function g(p){p.done?te(p.value):T(p.value).then(_,h)}g((D=D.apply(S,I||[])).next())})},V=function(S,I){var K={label:0,sent:function(){if(te[0]&1)throw te[1];return te[1]},trys:[],ops:[]},D,T,te,U;return U={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(U[Symbol.iterator]=function(){return this}),U;function _(g){return function(p){return h([g,p])}}function h(g){if(D)throw new TypeError("Generator is already executing.");for(;K;)try{if(D=1,T&&(te=g[0]&2?T.return:g[0]?T.throw||((te=T.return)&&te.call(T),0):T.next)&&!(te=te.call(T,g[1])).done)return te;switch(T=0,te&&(g=[g[0]&2,te.value]),g[0]){case 0:case 1:te=g;break;case 4:return K.label++,{value:g[1],done:!1};case 5:K.label++,T=g[1],g=[0];continue;case 7:g=K.ops.pop(),K.trys.pop();continue;default:if(te=K.trys,!(te=te.length>0&&te[te.length-1])&&(g[0]===6||g[0]===2)){K=0;continue}if(g[0]===3&&(!te||g[1]>te[0]&&g[1]<te[3])){K.label=g[1];break}if(g[0]===6&&K.label<te[1]){K.label=te[1],te=g;break}if(te&&K.label<te[2]){K.label=te[2],K.ops.push(g);break}te[2]&&K.ops.pop(),K.trys.pop();continue}g=I.call(S,K)}catch(p){g=[6,p],T=0}finally{D=te=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},B=Object(re.c)("openerService"),G=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return ne.a.None},registerValidator:function(){return ne.a.None},registerExternalUriResolver:function(){return ne.a.None},setExternalOpener:function(){},open:function(){return F(this,void 0,void 0,function(){return V(this,function(I){return[2,!1]})})},resolveExternalUri:function(I){return F(this,void 0,void 0,function(){return V(this,function(K){return[2,{resolved:I,dispose:function(){}}]})})}});function x(S,I){return R.a.isUri(S)?Object(P.n)(S.scheme,I):Object(P.N)(S,I+":")}},WBhO:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("Cg/j"),re=Object(R.c)("modeService")},WqXY:function(Et,A,o){"use strict";o.d(A,"c",function(){return te}),o.d(A,"d",function(){return U}),o.d(A,"b",function(){return _}),o.d(A,"a",function(){return g});var R=o("yEoX"),re=o.n(R),ne=o("MNsG"),P=o("3/fG"),F=o("pmY6"),V=o("8HAY"),B=o("EffR"),G=o("746U"),x=o("pg8w"),S=o("uDWl"),I=o("MI8n"),K=o("ZQ78"),D=o("D3Dy"),T=function(){var p=function(E,k){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,oe){z.__proto__=oe}||function(z,oe){for(var fe in oe)oe.hasOwnProperty(fe)&&(z[fe]=oe[fe])},p(E,k)};return function(v,E){p(v,E);function k(){this.constructor=v}v.prototype=E===null?Object.create(E):(k.prototype=E.prototype,new k)}}(),te=function(p){T(v,p);function v(E,k,z){var oe=p.call(this)||this;return oe.options=z,oe._context=E||oe,oe._action=k,k instanceof V.a&&oe._register(k.onDidChange(function(fe){!oe.element||oe.handleActionChangeEvent(fe)})),oe}return v.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(v.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new V.b)),this._actionRunner},set:function(k){this._actionRunner=k},enumerable:!0,configurable:!0}),v.prototype.getAction=function(){return this._action},v.prototype.isEnabled=function(){return this._action.enabled},v.prototype.setActionContext=function(E){this._context=E},v.prototype.render=function(E){var k=this,z=this.element=E;this._register(x.b.addTarget(E));var oe=this.options&&this.options.draggable;oe&&(E.draggable=!0,D.h&&this._register(B.i(E,B.c.DRAG_START,function(fe){var Se;return(Se=fe.dataTransfer)===null||Se===void 0?void 0:Se.setData(K.a.TEXT,k._action.label)}))),this._register(B.i(z,x.a.Tap,function(fe){return k.onClick(fe)})),this._register(B.i(z,B.c.MOUSE_DOWN,function(fe){oe||B.b.stop(fe,!0),k._action.enabled&&fe.button===0&&B.e(z,"active")})),this._register(B.i(z,B.c.CLICK,function(fe){B.b.stop(fe,!0),k.options&&k.options.isMenu?k.onClick(fe):ne.i(function(){return k.onClick(fe)})})),this._register(B.i(z,B.c.DBLCLICK,function(fe){B.b.stop(fe,!0)})),[B.c.MOUSE_UP,B.c.MOUSE_OUT].forEach(function(fe){k._register(B.i(z,fe,function(Se){B.b.stop(Se),B.O(z,"active")}))})},v.prototype.onClick=function(E){B.b.stop(E,!0);var k;G.l(this._context)?k=E:(k=this._context,G.i(k)&&(k.event=E)),this.actionRunner.run(this._action,k)},v.prototype.focus=function(){this.element&&(this.element.focus(),B.e(this.element,"focused"))},v.prototype.blur=function(){this.element&&(this.element.blur(),B.O(this.element,"focused"))},v.prototype.updateEnabled=function(){},v.prototype.updateLabel=function(){},v.prototype.updateTooltip=function(){},v.prototype.updateClass=function(){},v.prototype.updateChecked=function(){},v.prototype.dispose=function(){this.element&&(B.Q(this.element),this.element=void 0),p.prototype.dispose.call(this)},v}(F.a),U=function(p){T(v,p);function v(E){var k=p.call(this,v.ID,E,E?"separator text":"separator")||this;return k.checked=!1,k.enabled=!1,k}return v.ID="vs.actions.separator",v}(V.a),_=function(p){T(v,p);function v(E,k,z){z===void 0&&(z={});var oe=p.call(this,E,k,z)||this;return oe.options=z,oe.options.icon=z.icon!==void 0?z.icon:!1,oe.options.label=z.label!==void 0?z.label:!0,oe.cssClass="",oe}return v.prototype.render=function(E){p.prototype.render.call(this,E),this.element&&(this.label=B.p(this.element,B.a("a.action-label"))),this.label&&(this._action.id===U.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&&(B.p(this.element,B.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},v.prototype.focus=function(){p.prototype.focus.call(this),this.label&&this.label.focus()},v.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},v.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=P.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",E,this.options.keybinding))),E&&this.label&&(this.label.title=E)},v.prototype.updateClass=function(){this.cssClass&&this.label&&B.P(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(B.e(this.label,"codicon"),this.cssClass&&B.f(this.label,this.cssClass)),this.updateEnabled()):this.label&&B.O(this.label,"codicon")},v.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),B.O(this.label,"disabled"),this.label.tabIndex=0),this.element&&B.O(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),B.e(this.label,"disabled"),B.R(this.label)),this.element&&B.e(this.element,"disabled"))},v.prototype.updateChecked=function(){this.label&&(this.getAction().checked?B.e(this.label,"checked"):B.O(this.label,"checked"))},v}(te),h={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},g=function(p){T(v,p);function v(E,k){k===void 0&&(k=h);var z=p.call(this)||this;z._onDidBlur=z._register(new I.a),z.onDidBlur=z._onDidBlur.event,z._onDidCancel=z._register(new I.a),z.onDidCancel=z._onDidCancel.event,z._onDidRun=z._register(new I.a),z.onDidRun=z._onDidRun.event,z._onDidBeforeRun=z._register(new I.a),z.onDidBeforeRun=z._onDidBeforeRun.event,z.options=k,z._context=k.context,z.options.triggerKeys||(z.options.triggerKeys=h.triggerKeys),z.options.actionRunner?z._actionRunner=z.options.actionRunner:(z._actionRunner=new V.b,z._register(z._actionRunner)),z._register(z._actionRunner.onDidRun(function(Se){return z._onDidRun.fire(Se)})),z._register(z._actionRunner.onDidBeforeRun(function(Se){return z._onDidBeforeRun.fire(Se)})),z.viewItems=[],z.focusedItem=void 0,z.domNode=document.createElement("div"),z.domNode.className="monaco-action-bar",k.animated!==!1&&B.e(z.domNode,"animated");var oe,fe;switch(z.options.orientation){case 0:oe=15,fe=17;break;case 1:oe=17,fe=15,z.domNode.className+=" reverse";break;case 2:oe=16,fe=18,z.domNode.className+=" vertical";break;case 3:oe=18,fe=16,z.domNode.className+=" vertical reverse";break}return z._register(B.i(z.domNode,B.c.KEY_DOWN,function(Se){var we=new S.a(Se),q=!0;we.equals(oe)?z.focusPrevious():we.equals(fe)?z.focusNext():we.equals(9)?z.cancel():z.isTriggerKeyEvent(we)?z.options.triggerKeys&&z.options.triggerKeys.keyDown&&z.doTrigger(we):q=!1,q&&(we.preventDefault(),we.stopPropagation())})),z._register(B.i(z.domNode,B.c.KEY_UP,function(Se){var we=new S.a(Se);z.isTriggerKeyEvent(we)?(z.options.triggerKeys&&!z.options.triggerKeys.keyDown&&z.doTrigger(we),we.preventDefault(),we.stopPropagation()):(we.equals(2)||we.equals(1024|2))&&z.updateFocusedItem()})),z.focusTracker=z._register(B.Y(z.domNode)),z._register(z.focusTracker.onDidBlur(function(){(document.activeElement===z.domNode||!B.J(document.activeElement,z.domNode))&&(z._onDidBlur.fire(),z.focusedItem=void 0)})),z._register(z.focusTracker.onDidFocus(function(){return z.updateFocusedItem()})),z.actionsList=document.createElement("ul"),z.actionsList.className="actions-container",z.actionsList.setAttribute("role","toolbar"),z.options.ariaLabel&&z.actionsList.setAttribute("aria-label",z.options.ariaLabel),z.domNode.appendChild(z.actionsList),E.appendChild(z.domNode),z}return v.prototype.isTriggerKeyEvent=function(E){var k=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(z){k=k||E.equals(z)}),k},v.prototype.updateFocusedItem=function(){for(var E=0;E<this.actionsList.children.length;E++){var k=this.actionsList.children[E];if(B.J(document.activeElement,k)){this.focusedItem=E;break}}},Object.defineProperty(v.prototype,"context",{get:function(){return this._context},set:function(k){this._context=k,this.viewItems.forEach(function(z){return z.setActionContext(k)})},enumerable:!0,configurable:!0}),v.prototype.getContainer=function(){return this.domNode},v.prototype.push=function(E,k){var z=this;k===void 0&&(k={});var oe=Array.isArray(E)?E:[E],fe=G.h(k.index)?k.index:null;oe.forEach(function(Se){var we=document.createElement("li");we.className="action-item",we.setAttribute("role","presentation"),z._register(B.i(we,B.c.CONTEXT_MENU,function(X){X.preventDefault(),X.stopPropagation()}));var q;z.options.actionViewItemProvider&&(q=z.options.actionViewItemProvider(Se)),q||(q=new _(z.context,Se,k)),q.actionRunner=z._actionRunner,q.setActionContext(z.context),q.render(we),fe===null||fe<0||fe>=z.actionsList.children.length?(z.actionsList.appendChild(we),z.viewItems.push(q)):(z.actionsList.insertBefore(we,z.actionsList.children[fe]),z.viewItems.splice(fe,0,q),fe++)})},v.prototype.clear=function(){this.viewItems=Object(F.f)(this.viewItems),B.s(this.actionsList)},v.prototype.isEmpty=function(){return this.viewItems.length===0},v.prototype.focus=function(E){var k=!1,z=void 0;E===void 0?k=!0:typeof E=="number"?z=E:typeof E=="boolean"&&(k=E),k&&typeof this.focusedItem=="undefined"?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(z!==void 0&&(this.focusedItem=z),this.updateFocus())},v.prototype.focusNext=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=this.viewItems.length-1);var E=this.focusedItem,k;do this.focusedItem=(this.focusedItem+1)%this.viewItems.length,k=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!k.isEnabled());this.focusedItem===E&&!k.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},v.prototype.focusPrevious=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=0);var E=this.focusedItem,k;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),k=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!k.isEnabled());this.focusedItem===E&&!k.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},v.prototype.updateFocus=function(E,k){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:k});for(var z=0;z<this.viewItems.length;z++){var oe=this.viewItems[z],fe=oe;z===this.focusedItem?G.g(fe.isEnabled)&&(fe.isEnabled()&&G.g(fe.focus)?fe.focus(E):this.actionsList.focus({preventScroll:k})):G.g(fe.blur)&&fe.blur()}},v.prototype.doTrigger=function(E){if(typeof this.focusedItem!="undefined"){var k=this.viewItems[this.focusedItem];if(k instanceof te){var z=k._context===null||k._context===void 0?E:k._context;this.run(k._action,z)}}},v.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},v.prototype.run=function(E,k){return this._actionRunner.run(E,k)},v.prototype.dispose=function(){Object(F.f)(this.viewItems),this.viewItems=[],B.Q(this.getContainer()),p.prototype.dispose.call(this)},v}(F.a)},"X+cX":function(Et,A,o){"use strict";o.d(A,"i",function(){return P}),o.d(A,"f",function(){return F}),o.d(A,"j",function(){return V}),o.d(A,"a",function(){return B}),o.d(A,"k",function(){return G}),o.d(A,"g",function(){return x}),o.d(A,"h",function(){return S}),o.d(A,"e",function(){return I}),o.d(A,"c",function(){return K}),o.d(A,"d",function(){return D}),o.d(A,"b",function(){return te});var R=o("JQT/"),re=o("/cxE"),ne=o("pmY6");function P(U){return U&&typeof U.then=="function"}function F(U){var _=new R.b,h=U(_.token),g=new Promise(function(p,v){_.token.onCancellationRequested(function(){v(re.a())}),Promise.resolve(h).then(function(E){_.dispose(),p(E)},function(E){_.dispose(),v(E)})});return new(function(){function p(){}return p.prototype.cancel=function(){_.cancel()},p.prototype.then=function(v,E){return g.then(v,E)},p.prototype.catch=function(v){return this.then(void 0,v)},p.prototype.finally=function(v){return g.finally(v)},p}())}function V(U,_,h){return Promise.race([U,new Promise(function(g){return _.onCancellationRequested(function(){return g(h)})})])}var B=function(){function U(_){this.defaultDelay=_,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return U.prototype.trigger=function(_,h){var g=this;return h===void 0&&(h=this.defaultDelay),this.task=_,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(p,v){g.doResolve=p,g.doReject=v}).then(function(){if(g.completionPromise=null,g.doResolve=null,g.task){var p=g.task;return g.task=null,p()}})),this.timeout=setTimeout(function(){g.timeout=null,g.doResolve&&g.doResolve(null)},h),this.completionPromise},U.prototype.isTriggered=function(){return this.timeout!==null},U.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(re.a()),this.completionPromise=null)},U.prototype.cancelTimeout=function(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)},U.prototype.dispose=function(){this.cancelTimeout()},U}();function G(U,_){return _?new Promise(function(h,g){var p=setTimeout(h,U);_.onCancellationRequested(function(){clearTimeout(p),g(re.a())})}):F(function(h){return G(U,h)})}function x(U,_){_===void 0&&(_=0);var h=setTimeout(U,_);return Object(ne.h)(function(){return clearTimeout(h)})}function S(U,_,h){_===void 0&&(_=function(k){return!!k}),h===void 0&&(h=null);var g=0,p=U.length,v=function E(){if(g>=p)return Promise.resolve(h);var k=U[g++],z=Promise.resolve(k());return z.then(function(oe){return _(oe)?Promise.resolve(oe):E()})};return v()}var I=function(){function U(_,h){this._token=-1,typeof _=="function"&&typeof h=="number"&&this.setIfNotSet(_,h)}return U.prototype.dispose=function(){this.cancel()},U.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},U.prototype.cancelAndSet=function(_,h){var g=this;this.cancel(),this._token=setTimeout(function(){g._token=-1,_()},h)},U.prototype.setIfNotSet=function(_,h){var g=this;this._token===-1&&(this._token=setTimeout(function(){g._token=-1,_()},h))},U}(),K=function(){function U(){this._token=-1}return U.prototype.dispose=function(){this.cancel()},U.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},U.prototype.cancelAndSet=function(_,h){this.cancel(),this._token=setInterval(function(){_()},h)},U}(),D=function(){function U(_,h){this.timeoutToken=-1,this.runner=_,this.timeout=h,this.timeoutHandler=this.onTimeout.bind(this)}return U.prototype.dispose=function(){this.cancel(),this.runner=null},U.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},U.prototype.schedule=function(_){_===void 0&&(_=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,_)},U.prototype.isScheduled=function(){return this.timeoutToken!==-1},U.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},U.prototype.doRun=function(){this.runner&&this.runner()},U}(),T;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var U=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});T=function(h){var g=setTimeout(function(){return h(U)}),p=!1;return{dispose:function(){p||(p=!0,clearTimeout(g))}}}}else T=function(h,g){var p=requestIdleCallback(h,typeof g=="number"?{timeout:g}:void 0),v=!1;return{dispose:function(){v||(v=!0,cancelIdleCallback(p))}}}})();var te=function(){function U(_){var h=this;this._didRun=!1,this._executor=function(){try{h._value=_()}catch(g){h._error=g}finally{h._didRun=!0}},this._handle=T(function(){return h._executor()})}return U.prototype.dispose=function(){this._handle.dispose()},U.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},U}()},XNtB:function(Et,A,o){},XQgg:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return o.e(239).then(o.bind(null,"/0xJ"))}})},XSiN:function(Et,A,o){"use strict";o.d(A,"a",function(){return F}),o.d(A,"b",function(){return B});var R=o("D3Dy"),re=o("51f4"),ne=o("MNsG"),P=function(){var G=function(S,I){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var T in D)D.hasOwnProperty(T)&&(K[T]=D[T])},G(S,I)};return function(x,S){G(x,S);function I(){this.constructor=x}x.prototype=S===null?Object.create(S):(I.prototype=S.prototype,new I)}}(),F=function(){function G(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 S=re.a.getPositionOfChildWindowRelativeToAncestorWindow(self,x.view);this.posx-=S.left,this.posy-=S.top}return G.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},G.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},G}(),V=function(G){P(x,G);function x(S){var I=G.call(this,S)||this;return I.dataTransfer=S.dataTransfer,I}return x}(F),B=function(){function G(x,S,I){if(S===void 0&&(S=0),I===void 0&&(I=0),this.browserEvent=x||null,this.target=x?x.target||x.targetNode||x.srcElement:null,this.deltaY=I,this.deltaX=S,x){var K=x,D=x;if(typeof K.wheelDeltaY!="undefined")this.deltaY=K.wheelDeltaY/120;else if(typeof D.VERTICAL_AXIS!="undefined"&&D.axis===D.VERTICAL_AXIS)this.deltaY=-D.detail/3;else if(x.type==="wheel"){var T=x;T.deltaMode===T.DOM_DELTA_LINE?this.deltaY=-x.deltaY:this.deltaY=-x.deltaY/40}if(typeof K.wheelDeltaX!="undefined")R.k&&ne.h?this.deltaX=-(K.wheelDeltaX/120):this.deltaX=K.wheelDeltaX/120;else if(typeof D.HORIZONTAL_AXIS!="undefined"&&D.axis===D.HORIZONTAL_AXIS)this.deltaX=-x.detail/3;else if(x.type==="wheel"){var T=x;T.deltaMode===T.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 G.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},G.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},G}()},XXBq:function(Et,A,o){},XXUj:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("Cg/j"),re=Object(R.c)("telemetryService")},Yr1X:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("MI8n"),re=new(function(){function ne(){this._zoomLevel=0,this._onDidChangeZoomLevel=new R.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return ne.prototype.getZoomLevel=function(){return this._zoomLevel},ne.prototype.setZoomLevel=function(P){P=Math.min(Math.max(-5,P),20),this._zoomLevel!==P&&(this._zoomLevel=P,this._onDidChangeZoomLevel.fire(this._zoomLevel))},ne}())},ZCR3:function(Et,A,o){"use strict";o.d(A,"a",function(){return ne});var R=0;function re(){var P="$memoize"+R++,F=void 0,V=function(G,x,S){var I=null,K=null;if(typeof S.value=="function"?(I="value",K=S.value,K.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof S.get=="function"&&(I="get",K=S.get),!K)throw new Error("not supported");var D=P+":"+x;S[I]=function(){for(var T=[],te=0;te<arguments.length;te++)T[te]=arguments[te];return F=this,this.hasOwnProperty(D)||Object.defineProperty(this,D,{configurable:!0,enumerable:!1,writable:!0,value:K.apply(this,T)}),this[D]}};return V.clear=function(){typeof F!="undefined"&&Object.getOwnPropertyNames(F).forEach(function(B){B.indexOf(P)===0&&delete F[B]})},V}function ne(P,F,V){return re()(P,F,V)}},ZQ78:function(Et,A,o){"use strict";o.d(A,"a",function(){return R}),o.d(A,"b",function(){return re}),o.d(A,"c",function(){return ne});var R={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},re=function(){function P(F){this.data=F}return P.prototype.update=function(){},P.prototype.getData=function(){return this.data},P}(),ne={CurrentDragAndDropData:void 0}},"ZkA/":function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return o.e(219).then(o.bind(null,"DTUS"))}})},ZlPH:function(Et,A,o){"use strict";o.d(A,"a",function(){return re}),o.d(A,"b",function(){return ne});var R=o("EffR"),re=function(){function P(F){this.domNode=F,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 P.prototype.setMaxWidth=function(F){this._maxWidth!==F&&(this._maxWidth=F,this.domNode.style.maxWidth=this._maxWidth+"px")},P.prototype.setWidth=function(F){this._width!==F&&(this._width=F,this.domNode.style.width=this._width+"px")},P.prototype.setHeight=function(F){this._height!==F&&(this._height=F,this.domNode.style.height=this._height+"px")},P.prototype.setTop=function(F){this._top!==F&&(this._top=F,this.domNode.style.top=this._top+"px")},P.prototype.unsetTop=function(){this._top!==-1&&(this._top=-1,this.domNode.style.top="")},P.prototype.setLeft=function(F){this._left!==F&&(this._left=F,this.domNode.style.left=this._left+"px")},P.prototype.setBottom=function(F){this._bottom!==F&&(this._bottom=F,this.domNode.style.bottom=this._bottom+"px")},P.prototype.setRight=function(F){this._right!==F&&(this._right=F,this.domNode.style.right=this._right+"px")},P.prototype.setFontFamily=function(F){this._fontFamily!==F&&(this._fontFamily=F,this.domNode.style.fontFamily=this._fontFamily)},P.prototype.setFontWeight=function(F){this._fontWeight!==F&&(this._fontWeight=F,this.domNode.style.fontWeight=this._fontWeight)},P.prototype.setFontSize=function(F){this._fontSize!==F&&(this._fontSize=F,this.domNode.style.fontSize=this._fontSize+"px")},P.prototype.setFontFeatureSettings=function(F){this._fontFeatureSettings!==F&&(this._fontFeatureSettings=F,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)},P.prototype.setLineHeight=function(F){this._lineHeight!==F&&(this._lineHeight=F,this.domNode.style.lineHeight=this._lineHeight+"px")},P.prototype.setLetterSpacing=function(F){this._letterSpacing!==F&&(this._letterSpacing=F,this.domNode.style.letterSpacing=this._letterSpacing+"px")},P.prototype.setClassName=function(F){this._className!==F&&(this._className=F,this.domNode.className=this._className)},P.prototype.toggleClassName=function(F,V){R.X(this.domNode,F,V),this._className=this.domNode.className},P.prototype.setDisplay=function(F){this._display!==F&&(this._display=F,this.domNode.style.display=this._display)},P.prototype.setPosition=function(F){this._position!==F&&(this._position=F,this.domNode.style.position=this._position)},P.prototype.setVisibility=function(F){this._visibility!==F&&(this._visibility=F,this.domNode.style.visibility=this._visibility)},P.prototype.setBackgroundColor=function(F){this._backgroundColor!==F&&(this._backgroundColor=F,this.domNode.style.backgroundColor=this._backgroundColor)},P.prototype.setLayerHinting=function(F){this._layerHint!==F&&(this._layerHint=F,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")},P.prototype.setContain=function(F){this._contain!==F&&(this._contain=F,this.domNode.style.contain=this._contain)},P.prototype.setAttribute=function(F,V){this.domNode.setAttribute(F,V)},P.prototype.removeAttribute=function(F){this.domNode.removeAttribute(F)},P.prototype.appendChild=function(F){this.domNode.appendChild(F.domNode)},P.prototype.removeChild=function(F){this.domNode.removeChild(F.domNode)},P}();function ne(P){return new re(P)}},ZvGG:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return o.e(217).then(o.bind(null,"yUwd"))}})},ajgA:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return o.e(234).then(o.bind(null,"Fzfo"))}})},aokT:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("cGHE"),re=function(){function ne(P,F,V,B){P>V||P===V&&F>B?(this.startLineNumber=V,this.startColumn=B,this.endLineNumber=P,this.endColumn=F):(this.startLineNumber=P,this.startColumn=F,this.endLineNumber=V,this.endColumn=B)}return ne.prototype.isEmpty=function(){return ne.isEmpty(this)},ne.isEmpty=function(P){return P.startLineNumber===P.endLineNumber&&P.startColumn===P.endColumn},ne.prototype.containsPosition=function(P){return ne.containsPosition(this,P)},ne.containsPosition=function(P,F){return!(F.lineNumber<P.startLineNumber||F.lineNumber>P.endLineNumber||F.lineNumber===P.startLineNumber&&F.column<P.startColumn||F.lineNumber===P.endLineNumber&&F.column>P.endColumn)},ne.prototype.containsRange=function(P){return ne.containsRange(this,P)},ne.containsRange=function(P,F){return!(F.startLineNumber<P.startLineNumber||F.endLineNumber<P.startLineNumber||F.startLineNumber>P.endLineNumber||F.endLineNumber>P.endLineNumber||F.startLineNumber===P.startLineNumber&&F.startColumn<P.startColumn||F.endLineNumber===P.endLineNumber&&F.endColumn>P.endColumn)},ne.prototype.strictContainsRange=function(P){return ne.strictContainsRange(this,P)},ne.strictContainsRange=function(P,F){return!(F.startLineNumber<P.startLineNumber||F.endLineNumber<P.startLineNumber||F.startLineNumber>P.endLineNumber||F.endLineNumber>P.endLineNumber||F.startLineNumber===P.startLineNumber&&F.startColumn<=P.startColumn||F.endLineNumber===P.endLineNumber&&F.endColumn>=P.endColumn)},ne.prototype.plusRange=function(P){return ne.plusRange(this,P)},ne.plusRange=function(P,F){var V,B,G,x;return F.startLineNumber<P.startLineNumber?(V=F.startLineNumber,B=F.startColumn):F.startLineNumber===P.startLineNumber?(V=F.startLineNumber,B=Math.min(F.startColumn,P.startColumn)):(V=P.startLineNumber,B=P.startColumn),F.endLineNumber>P.endLineNumber?(G=F.endLineNumber,x=F.endColumn):F.endLineNumber===P.endLineNumber?(G=F.endLineNumber,x=Math.max(F.endColumn,P.endColumn)):(G=P.endLineNumber,x=P.endColumn),new ne(V,B,G,x)},ne.prototype.intersectRanges=function(P){return ne.intersectRanges(this,P)},ne.intersectRanges=function(P,F){var V=P.startLineNumber,B=P.startColumn,G=P.endLineNumber,x=P.endColumn,S=F.startLineNumber,I=F.startColumn,K=F.endLineNumber,D=F.endColumn;return V<S?(V=S,B=I):V===S&&(B=Math.max(B,I)),G>K?(G=K,x=D):G===K&&(x=Math.min(x,D)),V>G||V===G&&B>x?null:new ne(V,B,G,x)},ne.prototype.equalsRange=function(P){return ne.equalsRange(this,P)},ne.equalsRange=function(P,F){return!!P&&!!F&&P.startLineNumber===F.startLineNumber&&P.startColumn===F.startColumn&&P.endLineNumber===F.endLineNumber&&P.endColumn===F.endColumn},ne.prototype.getEndPosition=function(){return new R.a(this.endLineNumber,this.endColumn)},ne.prototype.getStartPosition=function(){return new R.a(this.startLineNumber,this.startColumn)},ne.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},ne.prototype.setEndPosition=function(P,F){return new ne(this.startLineNumber,this.startColumn,P,F)},ne.prototype.setStartPosition=function(P,F){return new ne(P,F,this.endLineNumber,this.endColumn)},ne.prototype.collapseToStart=function(){return ne.collapseToStart(this)},ne.collapseToStart=function(P){return new ne(P.startLineNumber,P.startColumn,P.startLineNumber,P.startColumn)},ne.fromPositions=function(P,F){return F===void 0&&(F=P),new ne(P.lineNumber,P.column,F.lineNumber,F.column)},ne.lift=function(P){return P?new ne(P.startLineNumber,P.startColumn,P.endLineNumber,P.endColumn):null},ne.isIRange=function(P){return P&&typeof P.startLineNumber=="number"&&typeof P.startColumn=="number"&&typeof P.endLineNumber=="number"&&typeof P.endColumn=="number"},ne.areIntersectingOrTouching=function(P,F){return!(P.endLineNumber<F.startLineNumber||P.endLineNumber===F.startLineNumber&&P.endColumn<F.startColumn||F.endLineNumber<P.startLineNumber||F.endLineNumber===P.startLineNumber&&F.endColumn<P.startColumn)},ne.areIntersecting=function(P,F){return!(P.endLineNumber<F.startLineNumber||P.endLineNumber===F.startLineNumber&&P.endColumn<=F.startColumn||F.endLineNumber<P.startLineNumber||F.endLineNumber===P.startLineNumber&&F.endColumn<=P.startColumn)},ne.compareRangesUsingStarts=function(P,F){if(P&&F){var V=P.startLineNumber|0,B=F.startLineNumber|0;if(V===B){var G=P.startColumn|0,x=F.startColumn|0;if(G===x){var S=P.endLineNumber|0,I=F.endLineNumber|0;if(S===I){var K=P.endColumn|0,D=F.endColumn|0;return K-D}return S-I}return G-x}return V-B}var T=P?1:0,te=F?1:0;return T-te},ne.compareRangesUsingEnds=function(P,F){return P.endLineNumber===F.endLineNumber?P.endColumn===F.endColumn?P.startLineNumber===F.startLineNumber?P.startColumn-F.startColumn:P.startLineNumber-F.startLineNumber:P.endColumn-F.endColumn:P.endLineNumber-F.endLineNumber},ne.spansMultipleLines=function(P){return P.endLineNumber>P.startLineNumber},ne}()},bY76:function(Et,A,o){"use strict";o.d(A,"a",function(){return D});var R=o("MNsG"),re=function(){var z=function(fe,Se){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,q){we.__proto__=q}||function(we,q){for(var X in q)q.hasOwnProperty(X)&&(we[X]=q[X])},z(fe,Se)};return function(oe,fe){z(oe,fe);function Se(){this.constructor=oe}oe.prototype=fe===null?Object.create(fe):(Se.prototype=fe.prototype,new Se)}}(),ne,P=/^\w[\w\d+.-]*$/,F=/^\//,V=/^\/\//;function B(z,oe){if(!z.scheme&&oe)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+z.authority+'", path: "'+z.path+'", query: "'+z.query+'", fragment: "'+z.fragment+'"}');if(z.scheme&&!P.test(z.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(z.path){if(z.authority){if(!F.test(z.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(V.test(z.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function G(z,oe){return!z&&!oe?"file":z}function x(z,oe){switch(z){case"https":case"http":case"file":oe?oe[0]!==I&&(oe=I+oe):oe=I;break}return oe}var S="",I="/",K=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,D=function(){function z(oe,fe,Se,we,q,X){X===void 0&&(X=!1),typeof oe=="object"?(this.scheme=oe.scheme||S,this.authority=oe.authority||S,this.path=oe.path||S,this.query=oe.query||S,this.fragment=oe.fragment||S):(this.scheme=G(oe,X),this.authority=fe||S,this.path=x(this.scheme,Se||S),this.query=we||S,this.fragment=q||S,B(this,X))}return z.isUri=function(oe){return oe instanceof z?!0:oe?typeof oe.authority=="string"&&typeof oe.fragment=="string"&&typeof oe.path=="string"&&typeof oe.query=="string"&&typeof oe.scheme=="string"&&typeof oe.fsPath=="function"&&typeof oe.with=="function"&&typeof oe.toString=="function":!1},Object.defineProperty(z.prototype,"fsPath",{get:function(){return g(this)},enumerable:!0,configurable:!0}),z.prototype.with=function(oe){if(!oe)return this;var fe=oe.scheme,Se=oe.authority,we=oe.path,q=oe.query,X=oe.fragment;return fe===void 0?fe=this.scheme:fe===null&&(fe=S),Se===void 0?Se=this.authority:Se===null&&(Se=S),we===void 0?we=this.path:we===null&&(we=S),q===void 0?q=this.query:q===null&&(q=S),X===void 0?X=this.fragment:X===null&&(X=S),fe===this.scheme&&Se===this.authority&&we===this.path&&q===this.query&&X===this.fragment?this:new te(fe,Se,we,q,X)},z.parse=function(oe,fe){fe===void 0&&(fe=!1);var Se=K.exec(oe);return Se?new te(Se[2]||S,k(Se[4]||S),k(Se[5]||S),k(Se[7]||S),k(Se[9]||S),fe):new te(S,S,S,S,S)},z.file=function(oe){var fe=S;if(R.h&&(oe=oe.replace(/\\/g,I)),oe[0]===I&&oe[1]===I){var Se=oe.indexOf(I,2);Se===-1?(fe=oe.substring(2),oe=I):(fe=oe.substring(2,Se),oe=oe.substring(Se)||I)}return new te("file",fe,oe,S,S)},z.from=function(oe){return new te(oe.scheme,oe.authority,oe.path,oe.query,oe.fragment)},z.prototype.toString=function(oe){return oe===void 0&&(oe=!1),p(this,oe)},z.prototype.toJSON=function(){return this},z.revive=function(oe){if(oe){if(oe instanceof z)return oe;var fe=new te(oe);return fe._formatted=oe.external,fe._fsPath=oe._sep===T?oe.fsPath:null,fe}else return oe},z}(),T=R.h?1:void 0,te=function(z){re(oe,z);function oe(){var fe=z!==null&&z.apply(this,arguments)||this;return fe._formatted=null,fe._fsPath=null,fe}return Object.defineProperty(oe.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=g(this)),this._fsPath},enumerable:!0,configurable:!0}),oe.prototype.toString=function(fe){return fe===void 0&&(fe=!1),fe?p(this,!0):(this._formatted||(this._formatted=p(this,!1)),this._formatted)},oe.prototype.toJSON=function(){var fe={$mid:1};return this._fsPath&&(fe.fsPath=this._fsPath,fe._sep=T),this._formatted&&(fe.external=this._formatted),this.path&&(fe.path=this.path),this.scheme&&(fe.scheme=this.scheme),this.authority&&(fe.authority=this.authority),this.query&&(fe.query=this.query),this.fragment&&(fe.fragment=this.fragment),fe},oe}(D),U=(ne={},ne[58]="%3A",ne[47]="%2F",ne[63]="%3F",ne[35]="%23",ne[91]="%5B",ne[93]="%5D",ne[64]="%40",ne[33]="%21",ne[36]="%24",ne[38]="%26",ne[39]="%27",ne[40]="%28",ne[41]="%29",ne[42]="%2A",ne[43]="%2B",ne[44]="%2C",ne[59]="%3B",ne[61]="%3D",ne[32]="%20",ne);function _(z,oe){for(var fe=void 0,Se=-1,we=0;we<z.length;we++){var q=z.charCodeAt(we);if(q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===45||q===46||q===95||q===126||oe&&q===47)Se!==-1&&(fe+=encodeURIComponent(z.substring(Se,we)),Se=-1),fe!==void 0&&(fe+=z.charAt(we));else{fe===void 0&&(fe=z.substr(0,we));var X=U[q];X!==void 0?(Se!==-1&&(fe+=encodeURIComponent(z.substring(Se,we)),Se=-1),fe+=X):Se===-1&&(Se=we)}}return Se!==-1&&(fe+=encodeURIComponent(z.substring(Se))),fe!==void 0?fe:z}function h(z){for(var oe=void 0,fe=0;fe<z.length;fe++){var Se=z.charCodeAt(fe);Se===35||Se===63?(oe===void 0&&(oe=z.substr(0,fe)),oe+=U[Se]):oe!==void 0&&(oe+=z[fe])}return oe!==void 0?oe:z}function g(z){var oe;return z.authority&&z.path.length>1&&z.scheme==="file"?oe="//"+z.authority+z.path:z.path.charCodeAt(0)===47&&(z.path.charCodeAt(1)>=65&&z.path.charCodeAt(1)<=90||z.path.charCodeAt(1)>=97&&z.path.charCodeAt(1)<=122)&&z.path.charCodeAt(2)===58?oe=z.path[1].toLowerCase()+z.path.substr(2):oe=z.path,R.h&&(oe=oe.replace(/\//g,"\\")),oe}function p(z,oe){var fe=oe?h:_,Se="",we=z.scheme,q=z.authority,X=z.path,ce=z.query,Ne=z.fragment;if(we&&(Se+=we,Se+=":"),(q||we==="file")&&(Se+=I,Se+=I),q){var He=q.indexOf("@");if(He!==-1){var _e=q.substr(0,He);q=q.substr(He+1),He=_e.indexOf(":"),He===-1?Se+=fe(_e,!1):(Se+=fe(_e.substr(0,He),!1),Se+=":",Se+=fe(_e.substr(He+1),!1)),Se+="@"}q=q.toLowerCase(),He=q.indexOf(":"),He===-1?Se+=fe(q,!1):(Se+=fe(q.substr(0,He),!1),Se+=q.substr(He))}if(X){if(X.length>=3&&X.charCodeAt(0)===47&&X.charCodeAt(2)===58){var de=X.charCodeAt(1);de>=65&&de<=90&&(X="/"+String.fromCharCode(de+32)+":"+X.substr(3))}else if(X.length>=2&&X.charCodeAt(1)===58){var de=X.charCodeAt(0);de>=65&&de<=90&&(X=String.fromCharCode(de+32)+":"+X.substr(2))}Se+=fe(X,!0)}return ce&&(Se+="?",Se+=fe(ce,!1)),Ne&&(Se+="#",Se+=oe?Ne:_(Ne,!1)),Se}function v(z){try{return decodeURIComponent(z)}catch(oe){return z.length>3?z.substr(0,3)+v(z.substr(3)):z}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function k(z){return z.match(E)?z.replace(E,function(oe){return v(oe)}):z}},baJR:function(Et,A,o){"use strict";o.d(A,"b",function(){return F}),o.d(A,"c",function(){return V}),o.d(A,"a",function(){return B}),o.d(A,"d",function(){return x}),o.d(A,"e",function(){return I});var R=o("N0LK"),re=o("erNZ"),ne=o("dBaI"),P=function(){function g(p,v){this.endIndex=p,this.type=v}return g}(),F=function(){function g(p,v){this.startOffset=p,this.endOffset=v}return g.prototype.equals=function(p){return this.startOffset===p.startOffset&&this.endOffset===p.endOffset},g}(),V=function(){function g(p,v,E,k,z,oe,fe,Se,we,q,X,ce,Ne,He,_e,de,se,he){this.useMonospaceOptimizations=p,this.canUseHalfwidthRightwardsArrow=v,this.lineContent=E,this.continuesWithWrappedLine=k,this.isBasicASCII=z,this.containsRTL=oe,this.fauxIndentLength=fe,this.lineTokens=Se,this.lineDecorations=we,this.tabSize=q,this.startVisibleColumn=X,this.spaceWidth=ce,this.middotWidth=Ne,this.stopRenderingLineAfter=He,this.renderWhitespace=_e==="all"?3:_e==="boundary"?1:_e==="selection"?2:0,this.renderControlCharacters=de,this.fontLigatures=se,this.selectionsOnLine=he&&he.sort(function(ie,$){return ie.startOffset<$.startOffset?-1:1})}return g.prototype.sameSelection=function(p){if(this.selectionsOnLine===null)return p===null;if(p===null||p.length!==this.selectionsOnLine.length)return!1;for(var v=0;v<this.selectionsOnLine.length;v++)if(!this.selectionsOnLine[v].equals(p[v]))return!1;return!0},g.prototype.equals=function(p){return this.useMonospaceOptimizations===p.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===p.canUseHalfwidthRightwardsArrow&&this.lineContent===p.lineContent&&this.continuesWithWrappedLine===p.continuesWithWrappedLine&&this.isBasicASCII===p.isBasicASCII&&this.containsRTL===p.containsRTL&&this.fauxIndentLength===p.fauxIndentLength&&this.tabSize===p.tabSize&&this.startVisibleColumn===p.startVisibleColumn&&this.spaceWidth===p.spaceWidth&&this.stopRenderingLineAfter===p.stopRenderingLineAfter&&this.renderWhitespace===p.renderWhitespace&&this.renderControlCharacters===p.renderControlCharacters&&this.fontLigatures===p.fontLigatures&&ne.a.equalsArr(this.lineDecorations,p.lineDecorations)&&this.lineTokens.equals(p.lineTokens)&&this.sameSelection(p.selectionsOnLine)},g}(),B=function(){function g(p,v){this.length=p,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return g.getPartIndex=function(p){return(p&4294901760)>>>16},g.getCharIndex=function(p){return(p&65535)>>>0},g.prototype.setPartData=function(p,v,E,k){var z=(v<<16|E<<0)>>>0;this._data[p]=z,this._absoluteOffsets[p]=k+E},g.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},g.prototype.charOffsetToPartData=function(p){return this.length===0?0:p<0?this._data[0]:p>=this.length?this._data[this.length-1]:this._data[p]},g.prototype.partDataToCharOffset=function(p,v,E){if(this.length===0)return 0;for(var k=(p<<16|E<<0)>>>0,z=0,oe=this.length-1;z+1<oe;){var fe=z+oe>>>1,Se=this._data[fe];if(Se===k)return fe;Se>k?oe=fe:z=fe}if(z===oe)return z;var we=this._data[z],q=this._data[oe];if(we===k)return z;if(q===k)return oe;var X=g.getPartIndex(we),ce=g.getCharIndex(we),Ne=g.getPartIndex(q),He;X!==Ne?He=v:He=g.getCharIndex(q);var _e=E-ce,de=He-E;return _e<=de?z:oe},g}(),G=function(){function g(p,v,E){this.characterMapping=p,this.containsRTL=v,this.containsForeignElements=E}return g}();function x(g,p){if(g.lineContent.length===0){var v=0,E="<span><span>\xA0</span></span>";if(g.lineDecorations.length>0){for(var k=[],z=[],oe=0,fe=g.lineDecorations.length;oe<fe;oe++){var Se=g.lineDecorations[oe];Se.type===1&&(k.push(g.lineDecorations[oe].className),v|=1),Se.type===2&&(z.push(g.lineDecorations[oe].className),v|=2)}if(v!==0){var we=k.length>0?'<span class="'+k.join(" ")+'"></span>':"",q=z.length>0?'<span class="'+z.join(" ")+'"></span>':"";E="<span>"+we+q+"</span>"}}return p.appendASCIIString(E),new G(new B(0,0),!1,v)}return h(D(g),p)}var S=function(){function g(p,v,E,k){this.characterMapping=p,this.html=v,this.containsRTL=E,this.containsForeignElements=k}return g}();function I(g){var p=Object(re.a)(1e4),v=x(g,p);return new S(v.characterMapping,p.build(),v.containsRTL,v.containsForeignElements)}var K=function(){function g(p,v,E,k,z,oe,fe,Se,we,q,X,ce,Ne,He,_e){this.fontIsMonospace=p,this.canUseHalfwidthRightwardsArrow=v,this.lineContent=E,this.len=k,this.isOverflowing=z,this.parts=oe,this.containsForeignElements=fe,this.fauxIndentLength=Se,this.tabSize=we,this.startVisibleColumn=q,this.containsRTL=X,this.spaceWidth=ce,this.middotWidth=Ne,this.renderWhitespace=He,this.renderControlCharacters=_e}return g}();function D(g){var p=g.useMonospaceOptimizations,v=g.lineContent,E,k;g.stopRenderingLineAfter!==-1&&g.stopRenderingLineAfter<v.length?(E=!0,k=g.stopRenderingLineAfter):(E=!1,k=v.length);var z=T(g.lineTokens,g.fauxIndentLength,k);(g.renderWhitespace===3||g.renderWhitespace===1||g.renderWhitespace===2&&!!g.selectionsOnLine)&&(z=U(v,k,g.continuesWithWrappedLine,z,g.fauxIndentLength,g.tabSize,g.startVisibleColumn,p,g.selectionsOnLine,g.renderWhitespace===1));var oe=0;if(g.lineDecorations.length>0){for(var fe=0,Se=g.lineDecorations.length;fe<Se;fe++){var we=g.lineDecorations[fe];we.type===3||we.type===1?oe|=1:we.type===2&&(oe|=2)}z=_(v,k,z,g.lineDecorations)}return g.containsRTL||(z=te(v,z,!g.isBasicASCII||g.fontLigatures)),new K(p,g.canUseHalfwidthRightwardsArrow,v,k,E,z,oe,g.fauxIndentLength,g.tabSize,g.startVisibleColumn,g.containsRTL,g.spaceWidth,g.middotWidth,g.renderWhitespace,g.renderControlCharacters)}function T(g,p,v){var E=[],k=0;p>0&&(E[k++]=new P(p,""));for(var z=0,oe=g.getCount();z<oe;z++){var fe=g.getEndOffset(z);if(!(fe<=p)){var Se=g.getClassName(z);if(fe>=v){E[k++]=new P(v,Se);break}E[k++]=new P(fe,Se)}}return E}function te(g,p,v){var E=0,k=[],z=0;if(v)for(var oe=0,fe=p.length;oe<fe;oe++){var Se=p[oe],we=Se.endIndex;if(E+50<we){for(var q=Se.type,X=-1,ce=E,Ne=E;Ne<we;Ne++)g.charCodeAt(Ne)===32&&(X=Ne),X!==-1&&Ne-ce>=50&&(k[z++]=new P(X+1,q),ce=X+1,X=-1);ce!==we&&(k[z++]=new P(we,q))}else k[z++]=Se;E=we}else for(var oe=0,fe=p.length;oe<fe;oe++){var Se=p[oe],we=Se.endIndex,He=we-E;if(He>50){for(var q=Se.type,_e=Math.ceil(He/50),Ne=1;Ne<_e;Ne++){var de=E+Ne*50;k[z++]=new P(de,q)}k[z++]=new P(we,q)}else k[z++]=Se;E=we}return k}function U(g,p,v,E,k,z,oe,fe,Se,we){var q=[],X=0,ce=0,Ne=E[ce].type,He=E[ce].endIndex,_e=E.length,de=R.q(g),se;de===-1?(de=p,se=p):se=R.D(g);for(var he=!1,ie=0,$=Se&&Se[ie],ve=oe%z,ye=k;ye<p;ye++){var Ue=g.charCodeAt(ye);$&&ye>=$.endOffset&&(ie++,$=Se&&Se[ie]);var tt=void 0;if(ye<de||ye>se)tt=!0;else if(Ue===9)tt=!0;else if(Ue===32)if(we)if(he)tt=!0;else{var _t=ye+1<p?g.charCodeAt(ye+1):0;tt=_t===32||_t===9}else tt=!0;else tt=!1;tt&&Se&&(tt=!!$&&$.startOffset<=ye&&$.endOffset>ye),he?(!tt||!fe&&ve>=z)&&(q[X++]=new P(ye,"vs-whitespace"),ve=ve%z):(ye===He||tt&&ye>k)&&(q[X++]=new P(ye,Ne),ve=ve%z),Ue===9?ve=z:R.y(Ue)?ve+=2:ve++,he=tt,ye===He&&(ce++,ce<_e&&(Ne=E[ce].type,He=E[ce].endIndex))}var At=!1;if(he)if(v&&we){var Yt=p>0?g.charCodeAt(p-1):0,Ke=p>1?g.charCodeAt(p-2):0,Ye=Yt===32&&Ke!==32&&Ke!==9;Ye||(At=!0)}else At=!0;return q[X++]=new P(p,At?"vs-whitespace":Ne),q}function _(g,p,v,E){E.sort(ne.a.compare);for(var k=ne.b.normalize(g,E),z=k.length,oe=0,fe=[],Se=0,we=0,q=0,X=v.length;q<X;q++){for(var ce=v[q],Ne=ce.endIndex,He=ce.type;oe<z&&k[oe].startOffset<Ne;){var _e=k[oe];if(_e.startOffset>we&&(we=_e.startOffset,fe[Se++]=new P(we,He)),_e.endOffset+1<=Ne)we=_e.endOffset+1,fe[Se++]=new P(we,He+" "+_e.className),oe++;else{we=Ne,fe[Se++]=new P(we,He+" "+_e.className);break}}Ne>we&&(we=Ne,fe[Se++]=new P(we,He))}var de=v[v.length-1].endIndex;if(oe<z&&k[oe].startOffset===de){for(var se=[];oe<z&&k[oe].startOffset===de;)se.push(k[oe].className),oe++;fe[Se++]=new P(we,se.join(" "))}return fe}function h(g,p){var v=g.fontIsMonospace,E=g.canUseHalfwidthRightwardsArrow,k=g.containsForeignElements,z=g.lineContent,oe=g.len,fe=g.isOverflowing,Se=g.parts,we=g.fauxIndentLength,q=g.tabSize,X=g.startVisibleColumn,ce=g.containsRTL,Ne=g.spaceWidth,He=g.middotWidth,_e=g.renderWhitespace,de=g.renderControlCharacters,se=He>Ne?11825:183,he=new B(oe+1,Se.length),ie=0,$=X,ve=0,ye=0,Ue=0;p.appendASCIIString("<span>");for(var tt=0,_t=Se.length;tt<_t;tt++){Ue+=ye;var At=Se[tt],Yt=At.endIndex,Ke=At.type,Ye=_e!==0&&Ke.indexOf("vs-whitespace")>=0;if(ve=0,p.appendASCIIString('<span class="'),p.appendASCIIString(Ke),p.appendASCII(34),Ye){for(var Xe=0,Ze=ie,We=$;Ze<Yt;Ze++){var Qe=z.charCodeAt(Ze),Ee=(Qe===9?q-We%q:1)|0;Xe+=Ee,Ze>=we&&(We+=Ee)}if(!v){var W=Ke==="vs-whitespace";(W||!k)&&(p.appendASCIIString(' style="display:inline-block;width:'),p.appendASCIIString(String(Ne*Xe)),p.appendASCIIString('px"'))}for(p.appendASCII(62);ie<Yt;ie++){he.setPartData(ie,tt,ve,Ue);var Qe=z.charCodeAt(ie),Ee=void 0;if(Qe===9){Ee=q-$%q|0,!E||Ee>1?p.write1(8594):p.write1(65515);for(var ee=2;ee<=Ee;ee++)p.write1(160)}else Ee=1,p.write1(se);ve+=Ee,ie>=we&&($+=Ee)}ye=Xe}else{var Xe=0;for(ce&&p.appendASCIIString(' dir="ltr"'),p.appendASCII(62);ie<Yt;ie++){he.setPartData(ie,tt,ve,Ue);var Qe=z.charCodeAt(ie),Ae=1,Ee=1;switch(Qe){case 9:Ae=q-$%q,Ee=Ae;for(var ee=1;ee<=Ae;ee++)p.write1(160);break;case 32:p.write1(160);break;case 60:p.appendASCIIString("&lt;");break;case 62:p.appendASCIIString("&gt;");break;case 38:p.appendASCIIString("&amp;");break;case 0:p.appendASCIIString("&#00;");break;case 65279:case 8232:p.write1(65533);break;default:R.y(Qe)&&Ee++,de&&Qe<32?p.write1(9216+Qe):p.write1(Qe)}ve+=Ae,Xe+=Ae,ie>=we&&($+=Ee)}ye=Xe}p.appendASCIIString("</span>")}return he.setPartData(oe,Se.length-1,ve,Ue),fe&&p.appendASCIIString("<span>&hellip;</span>"),p.appendASCIIString("</span>"),new G(he,ce,k)}},bexQ:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("Cg/j"),re=Object(R.c)("keybindingService")},bk7F:function(Et,A,o){"use strict";o.r(A),o.d(A,"BracketMatchingController",function(){return E});var R=o("8ATB"),re=o.n(R),ne=o("3/fG"),P=o("X+cX"),F=o("pmY6"),V=o("sswD"),B=o("cGHE"),G=o("aokT"),x=o("gCVg"),S=o("wQH0"),I=o("M1Kb"),K=o("tX9W"),D=o("kYye"),T=o("MD5Z"),te=o("t9D7"),U=o("fjLI"),_=function(){var k=function(oe,fe){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Se,we){Se.__proto__=we}||function(Se,we){for(var q in we)we.hasOwnProperty(q)&&(Se[q]=we[q])},k(oe,fe)};return function(z,oe){k(z,oe);function fe(){this.constructor=z}z.prototype=oe===null?Object.create(oe):(fe.prototype=oe.prototype,new fe)}}(),h=Object(T.Rb)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},ne.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),g=function(k){_(z,k);function z(){return k.call(this,{id:"editor.action.jumpToBracket",label:ne.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:S.a.editorTextFocus,primary:2048|1024|88,weight:100}})||this}return z.prototype.run=function(oe,fe){var Se=E.get(fe);!Se||Se.jumpToBracket()},z}(V.b),p=function(k){_(z,k);function z(){return k.call(this,{id:"editor.action.selectToBracket",label:ne.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 z.prototype.run=function(oe,fe,Se){var we=E.get(fe);if(!!we){var q=!0;Se&&Se.selectBrackets===!1&&(q=!1),we.selectToBracket(q)}},z}(V.b),v=function(){function k(z,oe,fe){this.position=z,this.brackets=oe,this.options=fe}return k}(),E=function(k){_(z,k);function z(oe){var fe=k.call(this)||this;return fe._editor=oe,fe._lastBracketsData=[],fe._lastVersionId=0,fe._decorations=[],fe._updateBracketsSoon=fe._register(new P.d(function(){return fe._updateBrackets()},50)),fe._matchBrackets=fe._editor.getOption(53),fe._updateBracketsSoon.schedule(),fe._register(oe.onDidChangeCursorPosition(function(Se){fe._matchBrackets!=="never"&&fe._updateBracketsSoon.schedule()})),fe._register(oe.onDidChangeModelContent(function(Se){fe._updateBracketsSoon.schedule()})),fe._register(oe.onDidChangeModel(function(Se){fe._lastBracketsData=[],fe._decorations=[],fe._updateBracketsSoon.schedule()})),fe._register(oe.onDidChangeModelLanguageConfiguration(function(Se){fe._lastBracketsData=[],fe._updateBracketsSoon.schedule()})),fe._register(oe.onDidChangeConfiguration(function(Se){Se.hasChanged(53)&&(fe._matchBrackets=fe._editor.getOption(53),fe._decorations=fe._editor.deltaDecorations(fe._decorations,[]),fe._lastBracketsData=[],fe._lastVersionId=0,fe._updateBracketsSoon.schedule())})),fe}return z.get=function(oe){return oe.getContribution(z.ID)},z.prototype.jumpToBracket=function(){if(!!this._editor.hasModel()){var oe=this._editor.getModel(),fe=this._editor.getSelections().map(function(Se){var we=Se.getStartPosition(),q=oe.matchBracket(we),X=null;if(q)q[0].containsPosition(we)?X=q[1].getStartPosition():q[1].containsPosition(we)&&(X=q[0].getStartPosition());else{var ce=oe.findEnclosingBrackets(we);if(ce)X=ce[0].getStartPosition();else{var Ne=oe.findNextBracket(we);Ne&&Ne.range&&(X=Ne.range.getStartPosition())}}return X?new x.a(X.lineNumber,X.column,X.lineNumber,X.column):new x.a(we.lineNumber,we.column,we.lineNumber,we.column)});this._editor.setSelections(fe),this._editor.revealRange(fe[0])}},z.prototype.selectToBracket=function(oe){if(!!this._editor.hasModel()){var fe=this._editor.getModel(),Se=[];this._editor.getSelections().forEach(function(we){var q=we.getStartPosition(),X=fe.matchBracket(q);if(!X&&(X=fe.findEnclosingBrackets(q),!X)){var ce=fe.findNextBracket(q);ce&&ce.range&&(X=fe.matchBracket(ce.range.getStartPosition()))}var Ne=null,He=null;if(X){X.sort(G.a.compareRangesUsingStarts);var _e=X[0],de=X[1];Ne=oe?_e.getStartPosition():_e.getEndPosition(),He=oe?de.getEndPosition():de.getStartPosition()}Ne&&He&&Se.push(new x.a(Ne.lineNumber,Ne.column,He.lineNumber,He.column))}),Se.length>0&&(this._editor.setSelections(Se),this._editor.revealRange(Se[0]))}},z.prototype._updateBrackets=function(){if(this._matchBrackets!=="never"){this._recomputeBrackets();for(var oe=[],fe=0,Se=0,we=this._lastBracketsData;Se<we.length;Se++){var q=we[Se],X=q.brackets;X&&(oe[fe++]={range:X[0],options:q.options},oe[fe++]={range:X[1],options:q.options})}this._decorations=this._editor.deltaDecorations(this._decorations,oe)}},z.prototype._recomputeBrackets=function(){if(!this._editor.hasModel()){this._lastBracketsData=[],this._lastVersionId=0;return}var oe=this._editor.getSelections();if(oe.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}var fe=this._editor.getModel(),Se=fe.getVersionId(),we=[];this._lastVersionId===Se&&(we=this._lastBracketsData);for(var q=[],X=0,ce=0,Ne=oe.length;ce<Ne;ce++){var He=oe[ce];He.isEmpty()&&(q[X++]=He.getStartPosition())}q.length>1&&q.sort(B.a.compare);for(var _e=[],de=0,se=0,he=we.length,ce=0,Ne=q.length;ce<Ne;ce++){for(var ie=q[ce];se<he&&we[se].position.isBefore(ie);)se++;if(se<he&&we[se].position.equals(ie))_e[de++]=we[se];else{var $=fe.matchBracket(ie),ve=z._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!$&&this._matchBrackets==="always"&&($=fe.findEnclosingBrackets(ie,20),ve=z._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),_e[de++]=new v(ie,$,ve)}}this._lastBracketsData=_e,this._lastVersionId=Se},z.ID="editor.contrib.bracketMatchingController",z._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=K.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(te.f)(h),position:I.d.Center}}),z._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=K.a.register({stickiness:1,className:"bracket-match"}),z}(F.a);Object(V.h)(E.ID,E),Object(V.f)(p),Object(V.f)(g),Object(te.e)(function(k,z){var oe=k.getColor(D.c);oe&&z.addRule(".monaco-editor .bracket-match { background-color: "+oe+"; }");var fe=k.getColor(D.d);fe&&z.addRule(".monaco-editor .bracket-match { border: 1px solid "+fe+"; }")}),U.c.appendMenuItem(19,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:ne.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},c2dO:function(Et,A,o){"use strict";o.r(A),o.d(A,"LanguageServiceDefaultsImpl",function(){return P});var R=o("M/lh"),re=o.n(R),ne=monaco.Emitter,P=function(){function h(g,p,v){this._onDidChange=new ne,this._languageId=g,this.setOptions(p),this.setModeConfiguration(v)}return Object.defineProperty(h.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),h.prototype.setOptions=function(g){this._options=g||Object.create(null),this._onDidChange.fire(this)},h.prototype.setModeConfiguration=function(g){this._modeConfiguration=g||Object.create(null),this._onDidChange.fire(this)},h}(),F={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"},V={format:F,suggest:{html5:!0,angular1:!0,ionic:!0}},B={format:F,suggest:{html5:!0}},G={format:F,suggest:{html5:!0,razor:!0}};function x(h){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:h===S,documentFormattingEdits:h===S,documentRangeFormattingEdits:h===S}}var S="html",I="handlebars",K="razor",D=new P(S,V,x(S)),T=new P(I,B,x(I)),te=new P(K,G,x(K));function U(){return{htmlDefaults:D,razorDefaults:te,handlebarDefaults:T}}monaco.languages.html=U();function _(){return o.e(195).then(o.bind(null,"+lu7"))}monaco.languages.onLanguage(S,function(){_().then(function(h){return h.setupMode(D)})}),monaco.languages.onLanguage(I,function(){_().then(function(h){return h.setupMode(T)})}),monaco.languages.onLanguage(K,function(){_().then(function(h){return h.setupMode(te)})})},c9ML:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return o.e(242).then(o.bind(null,"QJnQ"))}})},cGHE:function(Et,A,o){"use strict";o.d(A,"a",function(){return R});var R=function(){function re(ne,P){this.lineNumber=ne,this.column=P}return re.prototype.with=function(ne,P){return ne===void 0&&(ne=this.lineNumber),P===void 0&&(P=this.column),ne===this.lineNumber&&P===this.column?this:new re(ne,P)},re.prototype.delta=function(ne,P){return ne===void 0&&(ne=0),P===void 0&&(P=0),this.with(this.lineNumber+ne,this.column+P)},re.prototype.equals=function(ne){return re.equals(this,ne)},re.equals=function(ne,P){return!ne&&!P?!0:!!ne&&!!P&&ne.lineNumber===P.lineNumber&&ne.column===P.column},re.prototype.isBefore=function(ne){return re.isBefore(this,ne)},re.isBefore=function(ne,P){return ne.lineNumber<P.lineNumber?!0:P.lineNumber<ne.lineNumber?!1:ne.column<P.column},re.prototype.isBeforeOrEqual=function(ne){return re.isBeforeOrEqual(this,ne)},re.isBeforeOrEqual=function(ne,P){return ne.lineNumber<P.lineNumber?!0:P.lineNumber<ne.lineNumber?!1:ne.column<=P.column},re.compare=function(ne,P){var F=ne.lineNumber|0,V=P.lineNumber|0;if(F===V){var B=ne.column|0,G=P.column|0;return B-G}return F-V},re.prototype.clone=function(){return new re(this.lineNumber,this.column)},re.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},re.lift=function(ne){return new re(ne.lineNumber,ne.column)},re.isIPosition=function(ne){return ne&&typeof ne.lineNumber=="number"&&typeof ne.column=="number"},re}()},cIJc:function(Et,A,o){"use strict";o.r(A);var R=o("6OMU"),re=o("JQT/"),ne=o("/kV6"),P=o("pmY6"),F=o("sswD"),V=o("Vxe3"),B=o("MXAL"),G=o("aokT"),x=o("wQH0"),S=o("twdY"),I=o("pAvP"),K=o("OBOq"),D=o("/cxE"),T=o("bY76"),te=o("vATl"),U=o("sFUC"),_=o("cGHE"),h=o("gCVg"),g=o("G2kB"),p=o("0/Sa"),v=function(){function Ze(){}return Ze._handleEolEdits=function(We,Qe){for(var Ee=void 0,W=[],ee=0,Ae=Qe;ee<Ae.length;ee++){var me=Ae[ee];typeof me.eol=="number"&&(Ee=me.eol),me.range&&typeof me.text=="string"&&W.push(me)}return typeof Ee=="number"&&We.hasModel()&&We.getModel().pushEOL(Ee),W},Ze._isFullModelReplaceEdit=function(We,Qe){if(!We.hasModel())return!1;var Ee=We.getModel(),W=Ee.validateRange(Qe.range),ee=Ee.getFullModelRange();return ee.equalsRange(W)},Ze.execute=function(We,Qe){We.pushUndoStop();var Ee=Ze._handleEolEdits(We,Qe);Ee.length===1&&Ze._isFullModelReplaceEdit(We,Ee[0])?We.executeEdits("formatEditsCommand",Ee.map(function(W){return p.a.replace(G.a.lift(W.range),W.text)})):We.executeEdits("formatEditsCommand",Ee.map(function(W){return p.a.replaceMove(G.a.lift(W.range),W.text)})),We.pushUndoStop()},Ze}(),E=o("3/fG"),k=function(){function Ze(We){this.value=We,this._lower=We.toLowerCase()}return Ze.toKey=function(We){return typeof We=="string"?We.toLowerCase():We._lower},Ze}(),z=o("Cg/j"),oe=o("24hK"),fe=o("nnTU"),Se=o("746U"),we=function(Ze,We,Qe,Ee){function W(ee){return ee instanceof Qe?ee:new Qe(function(Ae){Ae(ee)})}return new(Qe||(Qe=Promise))(function(ee,Ae){function me(ge){try{Re(Ee.next(ge))}catch(nt){Ae(nt)}}function Me(ge){try{Re(Ee.throw(ge))}catch(nt){Ae(nt)}}function Re(ge){ge.done?ee(ge.value):W(ge.value).then(me,Me)}Re((Ee=Ee.apply(Ze,We||[])).next())})},q=function(Ze,We){var Qe={label:0,sent:function(){if(ee[0]&1)throw ee[1];return ee[1]},trys:[],ops:[]},Ee,W,ee,Ae;return Ae={next:me(0),throw:me(1),return:me(2)},typeof Symbol=="function"&&(Ae[Symbol.iterator]=function(){return this}),Ae;function me(Re){return function(ge){return Me([Re,ge])}}function Me(Re){if(Ee)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(Ee=1,W&&(ee=Re[0]&2?W.return:Re[0]?W.throw||((ee=W.return)&&ee.call(W),0):W.next)&&!(ee=ee.call(W,Re[1])).done)return ee;switch(W=0,ee&&(Re=[Re[0]&2,ee.value]),Re[0]){case 0:case 1:ee=Re;break;case 4:return Qe.label++,{value:Re[1],done:!1};case 5:Qe.label++,W=Re[1],Re=[0];continue;case 7:Re=Qe.ops.pop(),Qe.trys.pop();continue;default:if(ee=Qe.trys,!(ee=ee.length>0&&ee[ee.length-1])&&(Re[0]===6||Re[0]===2)){Qe=0;continue}if(Re[0]===3&&(!ee||Re[1]>ee[0]&&Re[1]<ee[3])){Qe.label=Re[1];break}if(Re[0]===6&&Qe.label<ee[1]){Qe.label=ee[1],ee=Re;break}if(ee&&Qe.label<ee[2]){Qe.label=ee[2],Qe.ops.push(Re);break}ee[2]&&Qe.ops.pop(),Qe.trys.pop();continue}Re=We.call(Ze,Qe)}catch(ge){Re=[6,ge],W=0}finally{Ee=ee=0}if(Re[0]&5)throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}};function X(Ze){if(Ze=Ze.filter(function(ee){return ee.range}),!!Ze.length){for(var We=Ze[0].range,Qe=1;Qe<Ze.length;Qe++)We=G.a.plusRange(We,Ze[Qe].range);var Ee=We.startLineNumber,W=We.endLineNumber;Ee===W?Ze.length===1?Object(K.a)(E.a("hint11","Made 1 formatting edit on line {0}",Ee)):Object(K.a)(E.a("hintn1","Made {0} formatting edits on line {1}",Ze.length,Ee)):Ze.length===1?Object(K.a)(E.a("hint1n","Made 1 formatting edit between lines {0} and {1}",Ee,W)):Object(K.a)(E.a("hintnn","Made {0} formatting edits between lines {1} and {2}",Ze.length,Ee,W))}}function ce(Ze){for(var We=[],Qe=new Set,Ee=S.g.ordered(Ze),W=0,ee=Ee;W<ee.length;W++){var Ae=ee[W];We.push(Ae),Ae.extensionId&&Qe.add(k.toKey(Ae.extensionId))}for(var me=S.i.ordered(Ze),Me=function(St){if(St.extensionId){if(Qe.has(k.toKey(St.extensionId)))return"continue";Qe.add(k.toKey(St.extensionId))}We.push({displayName:St.displayName,extensionId:St.extensionId,provideDocumentFormattingEdits:function(Mt,zt,Gt){return St.provideDocumentRangeFormattingEdits(Mt,Mt.getFullModelRange(),zt,Gt)}})},Re=0,ge=me;Re<ge.length;Re++){var Ae=ge[Re];Me(Ae)}return We}var Ne=function(){function Ze(){}return Ze.select=function(We,Qe,Ee){return we(this,void 0,void 0,function(){var W;return q(this,function(ee){switch(ee.label){case 0:return We.length===0?[2,void 0]:(W=Ze._selectors.iterator().next().value,W?[4,W(We,Qe,Ee)]:[3,2]);case 1:return[2,ee.sent()];case 2:return[2,We[0]]}})})},Ze._selectors=new oe.a,Ze}();function He(Ze,We,Qe,Ee,W){return we(this,void 0,void 0,function(){var ee,Ae,me,Me;return q(this,function(Re){switch(Re.label){case 0:return ee=Ze.get(z.a),Ae=Object(U.a)(We)?We.getModel():We,me=S.i.ordered(Ae),[4,Ne.select(me,Ae,Ee)];case 1:return Me=Re.sent(),Me?[4,ee.invokeFunction(_e,Me,We,Qe,W)]:[3,3];case 2:Re.sent(),Re.label=3;case 3:return[2]}})})}function _e(Ze,We,Qe,Ee,W){return we(this,void 0,void 0,function(){var ee,Ae,me,Me,Re,ge,nt;return q(this,function(St){switch(St.label){case 0:ee=Ze.get(I.a),Object(U.a)(Qe)?(Ae=Qe.getModel(),me=new te.b(Qe,1|4,W)):(Ae=Qe,me=new te.d(Qe,W)),St.label=1;case 1:return St.trys.push([1,,4,5]),[4,We.provideDocumentRangeFormattingEdits(Ae,Ee,Ae.getFormattingOptions(),me.token)];case 2:return Re=St.sent(),[4,ee.computeMoreMinimalEdits(Ae.uri,Re)];case 3:return Me=St.sent(),me.token.isCancellationRequested?[2,!0]:[3,5];case 4:return me.dispose(),[7];case 5:return!Me||Me.length===0?[2,!1]:(Object(U.a)(Qe)?(v.execute(Qe,Me),X(Me),Qe.pushUndoStop(),Qe.revealPositionInCenterIfOutsideViewport(Qe.getPosition(),1)):(ge=Me[0].range,nt=new h.a(ge.startLineNumber,ge.startColumn,ge.endLineNumber,ge.endColumn),Ae.pushEditOperations([nt],Me.map(function(xt){return{text:xt.text,range:G.a.lift(xt.range),forceMoveMarkers:!0}}),function(xt){for(var Mt=0,zt=xt;Mt<zt.length;Mt++){var Gt=zt[Mt].range;if(G.a.areIntersectingOrTouching(Gt,nt))return[new h.a(Gt.startLineNumber,Gt.startColumn,Gt.endLineNumber,Gt.endColumn)]}return null})),[2,!0])}})})}function de(Ze,We,Qe,Ee){return we(this,void 0,void 0,function(){var W,ee,Ae,me;return q(this,function(Me){switch(Me.label){case 0:return W=Ze.get(z.a),ee=Object(U.a)(We)?We.getModel():We,Ae=ce(ee),[4,Ne.select(Ae,ee,Qe)];case 1:return me=Me.sent(),me?[4,W.invokeFunction(se,me,We,Qe,Ee)]:[3,3];case 2:Me.sent(),Me.label=3;case 3:return[2]}})})}function se(Ze,We,Qe,Ee,W){return we(this,void 0,void 0,function(){var ee,Ae,me,Me,Re,ge,nt;return q(this,function(St){switch(St.label){case 0:ee=Ze.get(I.a),Object(U.a)(Qe)?(Ae=Qe.getModel(),me=new te.b(Qe,1|4,W)):(Ae=Qe,me=new te.d(Qe,W)),St.label=1;case 1:return St.trys.push([1,,4,5]),[4,We.provideDocumentFormattingEdits(Ae,Ae.getFormattingOptions(),me.token)];case 2:return Re=St.sent(),[4,ee.computeMoreMinimalEdits(Ae.uri,Re)];case 3:return Me=St.sent(),me.token.isCancellationRequested?[2,!0]:[3,5];case 4:return me.dispose(),[7];case 5:return!Me||Me.length===0?[2,!1]:(Object(U.a)(Qe)?(v.execute(Qe,Me),Ee!==2&&(X(Me),Qe.pushUndoStop(),Qe.revealPositionInCenterIfOutsideViewport(Qe.getPosition(),1))):(ge=Me[0].range,nt=new h.a(ge.startLineNumber,ge.startColumn,ge.endLineNumber,ge.endColumn),Ae.pushEditOperations([nt],Me.map(function(xt){return{text:xt.text,range:G.a.lift(xt.range),forceMoveMarkers:!0}}),function(xt){for(var Mt=0,zt=xt;Mt<zt.length;Mt++){var Gt=zt[Mt].range;if(G.a.areIntersectingOrTouching(Gt,nt))return[new h.a(Gt.startLineNumber,Gt.startColumn,Gt.endLineNumber,Gt.endColumn)]}return null})),[2,!0])}})})}function he(Ze,We,Qe,Ee,W){return we(this,void 0,void 0,function(){var ee,Ae,me,Me,Re;return q(this,function(ge){switch(ge.label){case 0:ee=S.i.ordered(We),Ae=0,me=ee,ge.label=1;case 1:return Ae<me.length?(Me=me[Ae],[4,Promise.resolve(Me.provideDocumentRangeFormattingEdits(We,Qe,Ee,W)).catch(D.f)]):[3,5];case 2:return Re=ge.sent(),Object(R.q)(Re)?[4,Ze.computeMoreMinimalEdits(We.uri,Re)]:[3,4];case 3:return[2,ge.sent()];case 4:return Ae++,[3,1];case 5:return[2,void 0]}})})}function ie(Ze,We,Qe,Ee){return we(this,void 0,void 0,function(){var W,ee,Ae,me,Me;return q(this,function(Re){switch(Re.label){case 0:W=ce(We),ee=0,Ae=W,Re.label=1;case 1:return ee<Ae.length?(me=Ae[ee],[4,Promise.resolve(me.provideDocumentFormattingEdits(We,Qe,Ee)).catch(D.f)]):[3,5];case 2:return Me=Re.sent(),Object(R.q)(Me)?[4,Ze.computeMoreMinimalEdits(We.uri,Me)]:[3,4];case 3:return[2,Re.sent()];case 4:return ee++,[3,1];case 5:return[2,void 0]}})})}function $(Ze,We,Qe,Ee,W){var ee=S.s.ordered(We);return ee.length===0||ee[0].autoFormatTriggerCharacters.indexOf(Ee)<0?Promise.resolve(void 0):Promise.resolve(ee[0].provideOnTypeFormattingEdits(We,Qe,Ee,W,re.a.None)).catch(D.f).then(function(Ae){return Ze.computeMoreMinimalEdits(We.uri,Ae)})}fe.a.registerCommand("_executeFormatRangeProvider",function(Ze){for(var We=[],Qe=1;Qe<arguments.length;Qe++)We[Qe-1]=arguments[Qe];var Ee=We[0],W=We[1],ee=We[2];Object(Se.a)(T.a.isUri(Ee)),Object(Se.a)(G.a.isIRange(W));var Ae=Ze.get(g.a).getModel(Ee);if(!Ae)throw Object(D.b)("resource");return he(Ze.get(I.a),Ae,G.a.lift(W),ee,re.a.None)}),fe.a.registerCommand("_executeFormatDocumentProvider",function(Ze){for(var We=[],Qe=1;Qe<arguments.length;Qe++)We[Qe-1]=arguments[Qe];var Ee=We[0],W=We[1];Object(Se.a)(T.a.isUri(Ee));var ee=Ze.get(g.a).getModel(Ee);if(!ee)throw Object(D.b)("resource");return ie(Ze.get(I.a),ee,W,re.a.None)}),fe.a.registerCommand("_executeFormatOnTypeProvider",function(Ze){for(var We=[],Qe=1;Qe<arguments.length;Qe++)We[Qe-1]=arguments[Qe];var Ee=We[0],W=We[1],ee=We[2],Ae=We[3];Object(Se.a)(T.a.isUri(Ee)),Object(Se.a)(_.a.isIPosition(W)),Object(Se.a)(typeof ee=="string");var me=Ze.get(g.a).getModel(Ee);if(!me)throw Object(D.b)("resource");return $(Ze.get(I.a),me,_.a.lift(W),ee,Ae)});var ve=o("T8No"),ye=function(){var Ze=function(Qe,Ee){return Ze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,ee){W.__proto__=ee}||function(W,ee){for(var Ae in ee)ee.hasOwnProperty(Ae)&&(W[Ae]=ee[Ae])},Ze(Qe,Ee)};return function(We,Qe){Ze(We,Qe);function Ee(){this.constructor=We}We.prototype=Qe===null?Object.create(Qe):(Ee.prototype=Qe.prototype,new Ee)}}(),Ue=function(Ze,We,Qe,Ee){var W=arguments.length,ee=W<3?We:Ee===null?Ee=Object.getOwnPropertyDescriptor(We,Qe):Ee,Ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ee=Reflect.decorate(Ze,We,Qe,Ee);else for(var me=Ze.length-1;me>=0;me--)(Ae=Ze[me])&&(ee=(W<3?Ae(ee):W>3?Ae(We,Qe,ee):Ae(We,Qe))||ee);return W>3&&ee&&Object.defineProperty(We,Qe,ee),ee},tt=function(Ze,We){return function(Qe,Ee){We(Qe,Ee,Ze)}},_t=function(Ze,We,Qe,Ee){function W(ee){return ee instanceof Qe?ee:new Qe(function(Ae){Ae(ee)})}return new(Qe||(Qe=Promise))(function(ee,Ae){function me(ge){try{Re(Ee.next(ge))}catch(nt){Ae(nt)}}function Me(ge){try{Re(Ee.throw(ge))}catch(nt){Ae(nt)}}function Re(ge){ge.done?ee(ge.value):W(ge.value).then(me,Me)}Re((Ee=Ee.apply(Ze,We||[])).next())})},At=function(Ze,We){var Qe={label:0,sent:function(){if(ee[0]&1)throw ee[1];return ee[1]},trys:[],ops:[]},Ee,W,ee,Ae;return Ae={next:me(0),throw:me(1),return:me(2)},typeof Symbol=="function"&&(Ae[Symbol.iterator]=function(){return this}),Ae;function me(Re){return function(ge){return Me([Re,ge])}}function Me(Re){if(Ee)throw new TypeError("Generator is already executing.");for(;Qe;)try{if(Ee=1,W&&(ee=Re[0]&2?W.return:Re[0]?W.throw||((ee=W.return)&&ee.call(W),0):W.next)&&!(ee=ee.call(W,Re[1])).done)return ee;switch(W=0,ee&&(Re=[Re[0]&2,ee.value]),Re[0]){case 0:case 1:ee=Re;break;case 4:return Qe.label++,{value:Re[1],done:!1};case 5:Qe.label++,W=Re[1],Re=[0];continue;case 7:Re=Qe.ops.pop(),Qe.trys.pop();continue;default:if(ee=Qe.trys,!(ee=ee.length>0&&ee[ee.length-1])&&(Re[0]===6||Re[0]===2)){Qe=0;continue}if(Re[0]===3&&(!ee||Re[1]>ee[0]&&Re[1]<ee[3])){Qe.label=Re[1];break}if(Re[0]===6&&Qe.label<ee[1]){Qe.label=ee[1],ee=Re;break}if(ee&&Qe.label<ee[2]){Qe.label=ee[2],Qe.ops.push(Re);break}ee[2]&&Qe.ops.pop(),Qe.trys.pop();continue}Re=We.call(Ze,Qe)}catch(ge){Re=[6,ge],W=0}finally{Ee=ee=0}if(Re[0]&5)throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}},Yt=function(){function Ze(We,Qe){var Ee=this;this._workerService=Qe,this._callOnDispose=new P.b,this._callOnModel=new P.b,this._editor=We,this._callOnDispose.add(We.onDidChangeConfiguration(function(){return Ee._update()})),this._callOnDispose.add(We.onDidChangeModel(function(){return Ee._update()})),this._callOnDispose.add(We.onDidChangeModelLanguage(function(){return Ee._update()})),this._callOnDispose.add(S.s.onDidChange(this._update,this))}return Ze.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Ze.prototype._update=function(){var We=this;if(this._callOnModel.clear(),!!this._editor.getOption(39)&&!!this._editor.hasModel()){var Qe=this._editor.getModel(),Ee=S.s.ordered(Qe)[0];if(!(!Ee||!Ee.autoFormatTriggerCharacters)){for(var W=new B.b,ee=0,Ae=Ee.autoFormatTriggerCharacters;ee<Ae.length;ee++){var me=Ae[ee];W.add(me.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType(function(Me){var Re=Me.charCodeAt(Me.length-1);W.has(Re)&&We._trigger(String.fromCharCode(Re))}))}}},Ze.prototype._trigger=function(We){var Qe=this;if(!!this._editor.hasModel()&&!(this._editor.getSelections().length>1)){var Ee=this._editor.getModel(),W=this._editor.getPosition(),ee=!1,Ae=this._editor.onDidChangeModelContent(function(me){if(me.isFlush){ee=!0,Ae.dispose();return}for(var Me=0,Re=me.changes.length;Me<Re;Me++){var ge=me.changes[Me];if(ge.range.endLineNumber<=W.lineNumber){ee=!0,Ae.dispose();return}}});$(this._workerService,Ee,W,We,Ee.getFormattingOptions()).then(function(me){Ae.dispose(),!ee&&Object(R.q)(me)&&(v.execute(Qe._editor,me),X(me))},function(me){throw Ae.dispose(),me})}},Ze.ID="editor.contrib.autoFormat",Ze=Ue([tt(1,I.a)],Ze),Ze}(),Ke=function(){function Ze(We,Qe){var Ee=this;this.editor=We,this._instantiationService=Qe,this._callOnDispose=new P.b,this._callOnModel=new P.b,this._callOnDispose.add(We.onDidChangeConfiguration(function(){return Ee._update()})),this._callOnDispose.add(We.onDidChangeModel(function(){return Ee._update()})),this._callOnDispose.add(We.onDidChangeModelLanguage(function(){return Ee._update()})),this._callOnDispose.add(S.i.onDidChange(this._update,this))}return Ze.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Ze.prototype._update=function(){var We=this;this._callOnModel.clear(),!!this.editor.getOption(38)&&(!this.editor.hasModel()||!S.i.has(this.editor.getModel())||this._callOnModel.add(this.editor.onDidPaste(function(Qe){var Ee=Qe.range;return We._trigger(Ee)})))},Ze.prototype._trigger=function(We){!this.editor.hasModel()||this.editor.getSelections().length>1||this._instantiationService.invokeFunction(He,this.editor,We,2,re.a.None).catch(D.e)},Ze.ID="editor.contrib.formatOnPaste",Ze=Ue([tt(1,z.a)],Ze),Ze}(),Ye=function(Ze){ye(We,Ze);function We(){return Ze.call(this,{id:"editor.action.formatDocument",label:E.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:ve.a.and(x.a.writable,x.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:ve.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 We.prototype.run=function(Qe,Ee){return _t(this,void 0,void 0,function(){var W;return At(this,function(ee){switch(ee.label){case 0:return Ee.hasModel()?(W=Qe.get(z.a),[4,W.invokeFunction(de,Ee,1,re.a.None)]):[3,2];case 1:ee.sent(),ee.label=2;case 2:return[2]}})})},We}(F.b),Xe=function(Ze){ye(We,Ze);function We(){return Ze.call(this,{id:"editor.action.formatSelection",label:E.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:ve.a.and(x.a.writable,x.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:ve.a.and(x.a.editorTextFocus,x.a.hasDocumentSelectionFormattingProvider),primary:Object(ne.a)(2048|41,2048|36),weight:100},contextMenuOpts:{when:ve.a.and(x.a.hasDocumentSelectionFormattingProvider,x.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return We.prototype.run=function(Qe,Ee){return _t(this,void 0,void 0,function(){var W,ee,Ae;return At(this,function(me){switch(me.label){case 0:return Ee.hasModel()?(W=Qe.get(z.a),ee=Ee.getModel(),Ae=Ee.getSelection(),Ae.isEmpty()&&(Ae=new G.a(Ae.startLineNumber,1,Ae.startLineNumber,ee.getLineMaxColumn(Ae.startLineNumber))),[4,W.invokeFunction(He,Ee,Ae,1,re.a.None)]):[2];case 1:return me.sent(),[2]}})})},We}(F.b);Object(F.h)(Yt.ID,Yt),Object(F.h)(Ke.ID,Ke),Object(F.f)(Ye),Object(F.f)(Xe),fe.a.registerCommand("editor.action.format",function(Ze){return _t(void 0,void 0,void 0,function(){var We,Qe;return At(this,function(Ee){switch(Ee.label){case 0:return We=Ze.get(V.a).getFocusedCodeEditor(),!We||!We.hasModel()?[2]:(Qe=Ze.get(fe.b),We.getSelection().isEmpty()?[4,Qe.executeCommand("editor.action.formatDocument")]:[3,2]);case 1:return Ee.sent(),[3,4];case 2:return[4,Qe.executeCommand("editor.action.formatSelection")];case 3:Ee.sent(),Ee.label=4;case 4:return[2]}})})})},cMOf:function(Et,A,o){"use strict";o.d(A,"a",function(){return te});var R=o("undH"),re=o.n(R),ne=o("pmY6"),P=o("D3Dy"),F=o("MNsG"),V=o("746U"),B=o("pg8w"),G=o("XSiN"),x=o("MI8n"),S=o("EffR"),I=o("4y0V"),K=function(){var U=function(h,g){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var E in v)v.hasOwnProperty(E)&&(p[E]=v[E])},U(h,g)};return function(_,h){U(_,h);function g(){this.constructor=_}_.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),D=function(){for(var U=0,_=0,h=arguments.length;_<h;_++)U+=arguments[_].length;for(var g=Array(U),p=0,_=0;_<h;_++)for(var v=arguments[_],E=0,k=v.length;E<k;E++,p++)g[p]=v[E];return g},T=!1,te=function(U){K(_,U);function _(h,g,p){p===void 0&&(p={});var v=U.call(this)||this;return v._state=3,v._onDidEnablementChange=v._register(new x.a),v.onDidEnablementChange=v._onDidEnablementChange.event,v._onDidStart=v._register(new x.a),v.onDidStart=v._onDidStart.event,v._onDidChange=v._register(new x.a),v.onDidChange=v._onDidChange.event,v._onDidReset=v._register(new x.a),v.onDidReset=v._onDidReset.event,v._onDidEnd=v._register(new x.a),v.onDidEnd=v._onDidEnd.event,v.linkedSash=void 0,v.orthogonalStartSashDisposables=v._register(new ne.b),v.orthogonalEndSashDisposables=v._register(new ne.b),v.el=Object(S.p)(h,Object(S.a)(".monaco-sash")),F.e&&Object(S.e)(v.el,"mac"),v._register(Object(I.a)(v.el,"mousedown")(v.onMouseDown,v)),v._register(Object(I.a)(v.el,"dblclick")(v.onMouseDoubleClick,v)),v._register(B.b.addTarget(v.el)),v._register(Object(I.a)(v.el,B.a.Start)(v.onTouchStart,v)),P.j&&Object(S.e)(v.el,"touch"),v.setOrientation(p.orientation||0),v.hidden=!1,v.layoutProvider=g,v.orthogonalStartSash=p.orthogonalStartSash,v.orthogonalEndSash=p.orthogonalEndSash,Object(S.X)(v.el,"debug",T),v}return Object.defineProperty(_.prototype,"state",{get:function(){return this._state},set:function(g){this._state!==g&&(Object(S.X)(this.el,"disabled",g===0),Object(S.X)(this.el,"minimum",g===1),Object(S.X)(this.el,"maximum",g===2),this._state=g,this._onDidEnablementChange.fire(g))},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(g){this.orthogonalStartSashDisposables.clear(),g?(this.orthogonalStartSashDisposables.add(g.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(g.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=g},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(g){this.orthogonalEndSashDisposables.clear(),g?(this.orthogonalEndSashDisposables.add(g.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(g.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=g},enumerable:!0,configurable:!0}),_.prototype.setOrientation=function(h){this.orientation=h,this.orientation===1?(Object(S.e)(this.el,"horizontal"),Object(S.O)(this.el,"vertical")):(Object(S.O)(this.el,"horizontal"),Object(S.e)(this.el,"vertical")),this.layoutProvider&&this.layout()},_.prototype.onMouseDown=function(h){var g=this;S.b.stop(h,!1);var p=!1;if(!h.__orthogonalSashEvent){var v=this.getOrthogonalSash(h);v&&(p=!0,h.__orthogonalSashEvent=!0,v.onMouseDown(h))}if(this.linkedSash&&!h.__linkedSashEvent&&(h.__linkedSashEvent=!0,this.linkedSash.onMouseDown(h)),!!this.state){for(var E=D(Object(S.C)("iframe"),Object(S.C)("webview")),k=0,z=E;k<z.length;k++){var oe=z[k];oe.style.pointerEvents="none"}var fe=new G.a(h),Se=fe.posx,we=fe.posy,q=fe.altKey,X={startX:Se,currentX:Se,startY:we,currentY:we,altKey:q};Object(S.e)(this.el,"active"),this._onDidStart.fire(X);var ce=Object(S.v)(this.el),Ne=function(){var he="";p?he="all-scroll":g.orientation===1?g.state===1?he="s-resize":g.state===2?he="n-resize":he=F.e?"row-resize":"ns-resize":g.state===1?he="e-resize":g.state===2?he="w-resize":he=F.e?"col-resize":"ew-resize",ce.innerHTML="* { cursor: "+he+" !important; }"},He=new ne.b;Ne(),p||this.onDidEnablementChange(Ne,null,He);var _e=function(he){S.b.stop(he,!1);var ie=new G.a(he),$={startX:Se,currentX:ie.posx,startY:we,currentY:ie.posy,altKey:q};g._onDidChange.fire($)},de=function(he){S.b.stop(he,!1),g.el.removeChild(ce),Object(S.O)(g.el,"active"),g._onDidEnd.fire(),He.dispose();for(var ie=0,$=E;ie<$.length;ie++){var ve=$[ie];ve.style.pointerEvents="auto"}};Object(I.a)(window,"mousemove")(_e,null,He),Object(I.a)(window,"mouseup")(de,null,He)}},_.prototype.onMouseDoubleClick=function(h){var g=this.getOrthogonalSash(h);g&&g._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},_.prototype.onTouchStart=function(h){var g=this;S.b.stop(h);var p=[],v=h.pageX,E=h.pageY,k=h.altKey;this._onDidStart.fire({startX:v,currentX:v,startY:E,currentY:E,altKey:k}),p.push(Object(S.i)(this.el,B.a.Change,function(z){V.h(z.pageX)&&V.h(z.pageY)&&g._onDidChange.fire({startX:v,currentX:z.pageX,startY:E,currentY:z.pageY,altKey:k})})),p.push(Object(S.i)(this.el,B.a.End,function(z){g._onDidEnd.fire(),Object(ne.f)(p)}))},_.prototype.layout=function(){var h=P.j?20:4;if(this.orientation===0){var g=this.layoutProvider;this.el.style.left=g.getVerticalSashLeft(this)-h/2+"px",g.getVerticalSashTop&&(this.el.style.top=g.getVerticalSashTop(this)+"px"),g.getVerticalSashHeight&&(this.el.style.height=g.getVerticalSashHeight(this)+"px")}else{var p=this.layoutProvider;this.el.style.top=p.getHorizontalSashTop(this)-h/2+"px",p.getHorizontalSashLeft&&(this.el.style.left=p.getHorizontalSashLeft(this)+"px"),p.getHorizontalSashWidth&&(this.el.style.width=p.getHorizontalSashWidth(this)+"px")}},_.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},_.prototype.onOrthogonalStartSashEnablementChange=function(h){Object(S.X)(this.el,"orthogonal-start",h!==0)},_.prototype.onOrthogonalEndSashEnablementChange=function(h){Object(S.X)(this.el,"orthogonal-end",h!==0)},_.prototype.getOrthogonalSash=function(h){if(this.orientation===0){if(h.offsetY<=4)return this.orthogonalStartSash;if(h.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(h.offsetX<=4)return this.orthogonalStartSash;if(h.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}},_.prototype.dispose=function(){U.prototype.dispose.call(this),this.el.remove()},_}(ne.a)},cMvZ:function(Et,A,o){"use strict";o.d(A,"a",function(){return U});var R=o("MI8n"),re=o("pmY6"),ne=o("N0LK"),P=o("0JNc"),F=o("KDc4"),V=o("BFtn"),B=function(){function _(h){if(h.autoClosingPairs?this._autoClosingPairs=h.autoClosingPairs.map(function(p){return new F.b(p)}):h.brackets?this._autoClosingPairs=h.brackets.map(function(p){return new F.b({open:p[0],close:p[1]})}):this._autoClosingPairs=[],h.__electricCharacterSupport&&h.__electricCharacterSupport.docComment){var g=h.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new F.b({open:g.open,close:g.close||""}))}this._autoCloseBefore=typeof h.autoCloseBefore=="string"?h.autoCloseBefore:_.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=h.surroundingPairs||this._autoClosingPairs}return _.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},_.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},_.shouldAutoClosePair=function(h,g,p){if(g.getTokenCount()===0)return!0;var v=g.findTokenIndexAtOffset(p-2),E=g.getStandardTokenType(v);return h.isOK(E)},_.prototype.getSurroundingPairs=function(){return this._surroundingPairs},_.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])>
`,_}(),G=o("EIAu"),x=function(){function _(h){this._richEditBrackets=h}return _.prototype.getElectricCharacters=function(){var h=[];if(this._richEditBrackets)for(var g=0,p=this._richEditBrackets.brackets;g<p.length;g++)for(var v=p[g],E=0,k=v.close;E<k.length;E++){var z=k[E],oe=z.charAt(z.length-1);h.push(oe)}return h=h.filter(function(fe,Se,we){return we.indexOf(fe)===Se}),h},_.prototype.onElectricCharacter=function(h,g,p){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;var v=g.findTokenIndexAtOffset(p-1);if(Object(V.b)(g.getStandardTokenType(v)))return null;var E=this._richEditBrackets.reversedRegex,k=g.getLineContent().substring(0,p-1)+h,z=G.a.findPrevBracketInRange(E,1,k,0,k.length);if(!z)return null;var oe=k.substring(z.startColumn-1,z.endColumn-1).toLowerCase(),fe=this._richEditBrackets.textIsOpenBracket[oe];if(fe)return null;var Se=g.getActualLineContentBefore(z.startColumn-1);return/^\s*$/.test(Se)?{matchOpenBracket:oe}:null},_}(),S=function(){function _(h){this._indentationRules=h}return _.prototype.shouldIncrease=function(h){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(h))},_.prototype.shouldDecrease=function(h){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(h))},_.prototype.shouldIndentNextLine=function(h){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(h))},_.prototype.shouldIgnore=function(h){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(h))},_.prototype.getIndentMetadata=function(h){var g=0;return this.shouldIncrease(h)&&(g+=1),this.shouldDecrease(h)&&(g+=2),this.shouldIndentNextLine(h)&&(g+=4),this.shouldIgnore(h)&&(g+=8),g},_}(),I=o("/cxE"),K=function(){function _(h){var g=this;h=h||{},h.brackets=h.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],h.brackets.forEach(function(p){var v=_._createOpenBracketRegExp(p[0]),E=_._createCloseBracketRegExp(p[1]);v&&E&&g._brackets.push({open:p[0],openRegExp:v,close:p[1],closeRegExp:E})}),this._regExpRules=h.onEnterRules||[]}return _.prototype.onEnter=function(h,g,p,v){if(h>=3)for(var E=0,k=this._regExpRules.length;E<k;E++){var z=this._regExpRules[E],oe=[{reg:z.beforeText,text:p},{reg:z.afterText,text:v},{reg:z.oneLineAboveText,text:g}].every(function(Se){return Se.reg?Se.reg.test(Se.text):!0});if(oe)return z.action}if(h>=2&&p.length>0&&v.length>0)for(var E=0,k=this._brackets.length;E<k;E++){var fe=this._brackets[E];if(fe.openRegExp.test(p)&&fe.closeRegExp.test(v))return{indentAction:F.a.IndentOutdent}}if(h>=2&&p.length>0)for(var E=0,k=this._brackets.length;E<k;E++){var fe=this._brackets[E];if(fe.openRegExp.test(p))return{indentAction:F.a.Indent}}return null},_._createOpenBracketRegExp=function(h){var g=ne.p(h);return/\B/.test(g.charAt(0))||(g="\\b"+g),g+="\\s*$",_._safeRegExp(g)},_._createCloseBracketRegExp=function(h){var g=ne.p(h);return/\B/.test(g.charAt(g.length-1))||(g=g+"\\b"),g="^\\s*"+g,_._safeRegExp(g)},_._safeRegExp=function(h){try{return new RegExp(h)}catch(g){return Object(I.e)(g),null}},_}(),D=function(){function _(h,g,p){this._languageIdentifier=h,this._brackets=null,this._electricCharacter=null;var v=null;g&&(v=g._conf),this._conf=_._mergeConf(v,p),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new K(this._conf):null,this.comments=_._handleComments(this._conf),this.characterPair=new B(this._conf),this.wordDefinition=this._conf.wordPattern||P.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new S(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}return Object.defineProperty(_.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new G.b(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new x(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),_.prototype.onEnter=function(h,g,p,v){return this._onEnterSupport?this._onEnterSupport.onEnter(h,g,p,v):null},_._mergeConf=function(h,g){return{comments:h?g.comments||h.comments:g.comments,brackets:h?g.brackets||h.brackets:g.brackets,wordPattern:h?g.wordPattern||h.wordPattern:g.wordPattern,indentationRules:h?g.indentationRules||h.indentationRules:g.indentationRules,onEnterRules:h?g.onEnterRules||h.onEnterRules:g.onEnterRules,autoClosingPairs:h?g.autoClosingPairs||h.autoClosingPairs:g.autoClosingPairs,surroundingPairs:h?g.surroundingPairs||h.surroundingPairs:g.surroundingPairs,autoCloseBefore:h?g.autoCloseBefore||h.autoCloseBefore:g.autoCloseBefore,folding:h?g.folding||h.folding:g.folding,__electricCharacterSupport:h?g.__electricCharacterSupport||h.__electricCharacterSupport:g.__electricCharacterSupport}},_._handleComments=function(h){var g=h.comments;if(!g)return null;var p={};if(g.lineComment&&(p.lineCommentToken=g.lineComment),g.blockComment){var v=g.blockComment,E=v[0],k=v[1];p.blockCommentStartToken=E,p.blockCommentEndToken=k}return p},_}(),T=function(){function _(h){this.languageIdentifier=h}return _}(),te=function(){function _(){this._entries=new Map,this._onDidChange=new R.a,this.onDidChange=this._onDidChange.event}return _.prototype.register=function(h,g){var p=this,v=this._getRichEditSupport(h.id),E=new D(h,v,g);return this._entries.set(h.id,E),this._onDidChange.fire(new T(h)),Object(re.h)(function(){p._entries.get(h.id)===E&&(p._entries.set(h.id,v),p._onDidChange.fire(new T(h)))})},_.prototype._getRichEditSupport=function(h){return this._entries.get(h)},_.prototype._getElectricCharacterSupport=function(h){var g=this._getRichEditSupport(h);return g&&g.electricCharacter||null},_.prototype.getElectricCharacters=function(h){var g=this._getElectricCharacterSupport(h);return g?g.getElectricCharacters():[]},_.prototype.onElectricCharacter=function(h,g,p){var v=Object(V.a)(g,p-1),E=this._getElectricCharacterSupport(v.languageId);return E?E.onElectricCharacter(h,v,p-v.firstCharOffset):null},_.prototype.getComments=function(h){var g=this._getRichEditSupport(h);return g&&g.comments||null},_.prototype._getCharacterPairSupport=function(h){var g=this._getRichEditSupport(h);return g&&g.characterPair||null},_.prototype.getAutoClosingPairs=function(h){var g=this._getCharacterPairSupport(h);return g?g.getAutoClosingPairs():[]},_.prototype.getAutoCloseBeforeSet=function(h){var g=this._getCharacterPairSupport(h);return g?g.getAutoCloseBeforeSet():B.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},_.prototype.getSurroundingPairs=function(h){var g=this._getCharacterPairSupport(h);return g?g.getSurroundingPairs():[]},_.prototype.shouldAutoClosePair=function(h,g,p){var v=Object(V.a)(g,p-1);return B.shouldAutoClosePair(h,v,p-v.firstCharOffset)},_.prototype.getWordDefinition=function(h){var g=this._getRichEditSupport(h);return g?Object(P.c)(g.wordDefinition||null):Object(P.c)(null)},_.prototype.getFoldingRules=function(h){var g=this._getRichEditSupport(h);return g?g.foldingRules:{}},_.prototype.getIndentRulesSupport=function(h){var g=this._getRichEditSupport(h);return g&&g.indentRulesSupport||null},_.prototype.getPrecedingValidLine=function(h,g,p){var v=h.getLanguageIdAtPosition(g,0);if(g>1){var E=void 0,k=-1;for(E=g-1;E>=1;E--){if(h.getLanguageIdAtPosition(E,0)!==v)return k;var z=h.getLineContent(E);if(p.shouldIgnore(z)||/^\s+$/.test(z)||z===""){k=E;continue}return E}}return-1},_.prototype.getInheritIndentForLine=function(h,g,p,v){if(v===void 0&&(v=!0),h<4)return null;var E=this.getIndentRulesSupport(g.getLanguageIdentifier().id);if(!E)return null;if(p<=1)return{indentation:"",action:null};var k=this.getPrecedingValidLine(g,p,E);if(k<0)return null;if(k<1)return{indentation:"",action:null};var z=g.getLineContent(k);if(E.shouldIncrease(z)||E.shouldIndentNextLine(z))return{indentation:ne.t(z),action:F.a.Indent,line:k};if(E.shouldDecrease(z))return{indentation:ne.t(z),action:null,line:k};if(k===1)return{indentation:ne.t(g.getLineContent(k)),action:null,line:k};var oe=k-1,fe=E.getIndentMetadata(g.getLineContent(oe));if(!(fe&(1|2))&&fe&4){for(var Se=0,we=oe-1;we>0;we--)if(!E.shouldIndentNextLine(g.getLineContent(we))){Se=we;break}return{indentation:ne.t(g.getLineContent(Se+1)),action:null,line:Se+1}}if(v)return{indentation:ne.t(g.getLineContent(k)),action:null,line:k};for(var we=k;we>0;we--){var q=g.getLineContent(we);if(E.shouldIncrease(q))return{indentation:ne.t(q),action:F.a.Indent,line:we};if(E.shouldIndentNextLine(q)){for(var Se=0,X=we-1;X>0;X--)if(!E.shouldIndentNextLine(g.getLineContent(we))){Se=X;break}return{indentation:ne.t(g.getLineContent(Se+1)),action:null,line:Se+1}}else if(E.shouldDecrease(q))return{indentation:ne.t(q),action:null,line:we}}return{indentation:ne.t(g.getLineContent(1)),action:null,line:1}},_.prototype.getGoodIndentForLine=function(h,g,p,v,E){if(h<4)return null;var k=this._getRichEditSupport(p);if(!k)return null;var z=this.getIndentRulesSupport(p);if(!z)return null;var oe=this.getInheritIndentForLine(h,g,v),fe=g.getLineContent(v);if(oe){var Se=oe.line;if(Se!==void 0){var we=k.onEnter(h,"",g.getLineContent(Se),"");if(we){var q=ne.t(g.getLineContent(Se));return we.removeText&&(q=q.substring(0,q.length-we.removeText)),we.indentAction===F.a.Indent||we.indentAction===F.a.IndentOutdent?q=E.shiftIndent(q):we.indentAction===F.a.Outdent&&(q=E.unshiftIndent(q)),z.shouldDecrease(fe)&&(q=E.unshiftIndent(q)),we.appendText&&(q+=we.appendText),ne.t(q)}}return z.shouldDecrease(fe)?oe.action===F.a.Indent?oe.indentation:E.unshiftIndent(oe.indentation):oe.action===F.a.Indent?E.shiftIndent(oe.indentation):oe.indentation}return null},_.prototype.getIndentForEnter=function(h,g,p,v){if(h<4)return null;g.forceTokenization(p.startLineNumber);var E=g.getLineTokens(p.startLineNumber),k=Object(V.a)(E,p.startColumn-1),z=k.getLineContent(),oe=!1,fe;k.firstCharOffset>0&&E.getLanguageId(0)!==k.languageId?(oe=!0,fe=z.substr(0,p.startColumn-1-k.firstCharOffset)):fe=E.getLineContent().substring(0,p.startColumn-1);var Se;if(p.isEmpty())Se=z.substr(p.startColumn-1-k.firstCharOffset);else{var we=this.getScopedLineTokens(g,p.endLineNumber,p.endColumn);Se=we.getLineContent().substr(p.endColumn-1-k.firstCharOffset)}var q=this.getIndentRulesSupport(k.languageId);if(!q)return null;var X=fe,ce=ne.t(fe),Ne={getLineTokens:function(ie){return g.getLineTokens(ie)},getLanguageIdentifier:function(){return g.getLanguageIdentifier()},getLanguageIdAtPosition:function(ie,$){return g.getLanguageIdAtPosition(ie,$)},getLineContent:function(ie){return ie===p.startLineNumber?X:g.getLineContent(ie)}},He=ne.t(E.getLineContent()),_e=this.getInheritIndentForLine(h,Ne,p.startLineNumber+1);if(!_e){var de=oe?He:ce;return{beforeEnter:de,afterEnter:de}}var se=oe?He:_e.indentation;return _e.action===F.a.Indent&&(se=v.shiftIndent(se)),q.shouldDecrease(Se)&&(se=v.unshiftIndent(se)),{beforeEnter:oe?He:ce,afterEnter:se}},_.prototype.getIndentActionForType=function(h,g,p,v,E){if(h<4)return null;var k=this.getScopedLineTokens(g,p.startLineNumber,p.startColumn),z=this.getIndentRulesSupport(k.languageId);if(!z)return null;var oe=k.getLineContent(),fe=oe.substr(0,p.startColumn-1-k.firstCharOffset),Se;if(p.isEmpty())Se=oe.substr(p.startColumn-1-k.firstCharOffset);else{var we=this.getScopedLineTokens(g,p.endLineNumber,p.endColumn);Se=we.getLineContent().substr(p.endColumn-1-k.firstCharOffset)}if(!z.shouldDecrease(fe+Se)&&z.shouldDecrease(fe+v+Se)){var q=this.getInheritIndentForLine(h,g,p.startLineNumber,!1);if(!q)return null;var X=q.indentation;return q.action!==F.a.Indent&&(X=E.unshiftIndent(X)),X}return null},_.prototype.getIndentMetadata=function(h,g){var p=this.getIndentRulesSupport(h.getLanguageIdentifier().id);return!p||g<1||g>h.getLineCount()?null:p.getIndentMetadata(h.getLineContent(g))},_.prototype.getEnterAction=function(h,g,p){var v=this.getScopedLineTokens(g,p.startLineNumber,p.startColumn),E=this._getRichEditSupport(v.languageId);if(!E)return null;var k=v.getLineContent(),z=k.substr(0,p.startColumn-1-v.firstCharOffset),oe;if(p.isEmpty())oe=k.substr(p.startColumn-1-v.firstCharOffset);else{var fe=this.getScopedLineTokens(g,p.endLineNumber,p.endColumn);oe=fe.getLineContent().substr(p.endColumn-1-v.firstCharOffset)}var Se="";if(p.startLineNumber>1&&v.firstCharOffset===0){var we=this.getScopedLineTokens(g,p.startLineNumber-1);we.languageId===v.languageId&&(Se=we.getLineContent())}var q=E.onEnter(h,Se,z,oe);if(!q)return null;var X=q.indentAction,ce=q.appendText,Ne=q.removeText||0;ce||(X===F.a.Indent||X===F.a.IndentOutdent?ce=" ":ce="");var He=this.getIndentationAtPosition(g,p.startLineNumber,p.startColumn);return Ne&&(He=He.substring(0,He.length-Ne)),{indentAction:X,appendText:ce,removeText:Ne,indentation:He}},_.prototype.getIndentationAtPosition=function(h,g,p){var v=h.getLineContent(g),E=ne.t(v);return E.length>p-1&&(E=E.substring(0,p-1)),E},_.prototype.getScopedLineTokens=function(h,g,p){h.forceTokenization(g);var v=h.getLineTokens(g),E=typeof p=="undefined"?h.getLineMaxColumn(g)-1:p-1;return Object(V.a)(v,E)},_.prototype.getBracketsSupport=function(h){var g=this._getRichEditSupport(h);return g&&g.brackets||null},_}(),U=new te},"ci+S":function(Et,A,o){},cl4r:function(Et,A,o){},cldp:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return o.e(193).then(o.bind(null,"7Xl7"))}})},cqdO:function(Et,A,o){"use strict";o.d(A,"a",function(){return He}),o.d(A,"f",function(){return se}),o.d(A,"e",function(){return he}),o.d(A,"d",function(){return ye}),o.d(A,"b",function(){return Ue}),o.d(A,"c",function(){return Qe});var R=o("4rho"),re=o("3/fG"),ne=o("pmY6"),P=o("746U"),F=o("6OMU"),V=o("ZCR3"),B=o("EffR"),G=o("MNsG"),x=o("pg8w"),S=o("uDWl"),I=o("MI8n"),K=o("4y0V"),D=function(){var Ee=function(ee,Ae){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,Me){me.__proto__=Me}||function(me,Me){for(var Re in Me)Me.hasOwnProperty(Re)&&(me[Re]=Me[Re])},Ee(ee,Ae)};return function(W,ee){Ee(W,ee);function Ae(){this.constructor=W}W.prototype=ee===null?Object.create(ee):(Ae.prototype=ee.prototype,new Ae)}}(),T;(function(Ee){Ee.TREE="tree",Ee.FORM="form"})(T||(T={}));var te=function(Ee){D(W,Ee);function W(ee,Ae){return Ee.call(this,"ListError ["+ee+"] "+Ae)||this}return W}(Error),U=o("feEw"),_=o("zrhQ"),h=o("qj0h"),g=function(){function Ee(W){this.spliceables=W}return Ee.prototype.splice=function(W,ee,Ae){this.spliceables.forEach(function(me){return me.splice(W,ee,Ae)})},Ee}(),p=o("Sdnv"),v=o("fpMC"),E=function(){var Ee=function(ee,Ae){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,Me){me.__proto__=Me}||function(me,Me){for(var Re in Me)Me.hasOwnProperty(Re)&&(me[Re]=Me[Re])},Ee(ee,Ae)};return function(W,ee){Ee(W,ee);function Ae(){this.constructor=W}W.prototype=ee===null?Object.create(ee):(Ae.prototype=ee.prototype,new Ae)}}(),k=function(){return k=Object.assign||function(Ee){for(var W,ee=1,Ae=arguments.length;ee<Ae;ee++){W=arguments[ee];for(var me in W)Object.prototype.hasOwnProperty.call(W,me)&&(Ee[me]=W[me])}return Ee},k.apply(this,arguments)},z=function(Ee,W,ee,Ae){var me=arguments.length,Me=me<3?W:Ae===null?Ae=Object.getOwnPropertyDescriptor(W,ee):Ae,Re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Me=Reflect.decorate(Ee,W,ee,Ae);else for(var ge=Ee.length-1;ge>=0;ge--)(Re=Ee[ge])&&(Me=(me<3?Re(Me):me>3?Re(W,ee,Me):Re(W,ee))||Me);return me>3&&Me&&Object.defineProperty(W,ee,Me),Me},oe=function(){for(var Ee=0,W=0,ee=arguments.length;W<ee;W++)Ee+=arguments[W].length;for(var Ae=Array(Ee),me=0,W=0;W<ee;W++)for(var Me=arguments[W],Re=0,ge=Me.length;Re<ge;Re++,me++)Ae[me]=Me[Re];return Ae},fe=function(){function Ee(W){this.trait=W,this.renderedElements=[]}return Object.defineProperty(Ee.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),Ee.prototype.renderTemplate=function(W){return W},Ee.prototype.renderElement=function(W,ee,Ae){var me=Object(F.k)(this.renderedElements,function(Re){return Re.templateData===Ae});if(me>=0){var Me=this.renderedElements[me];this.trait.unrender(Ae),Me.index=ee}else{var Me={index:ee,templateData:Ae};this.renderedElements.push(Me)}this.trait.renderIndex(ee,Ae)},Ee.prototype.splice=function(W,ee,Ae){for(var me=[],Me=0,Re=this.renderedElements;Me<Re.length;Me++){var ge=Re[Me];ge.index<W?me.push(ge):ge.index>=W+ee&&me.push({index:ge.index+Ae-ee,templateData:ge.templateData})}this.renderedElements=me},Ee.prototype.renderIndexes=function(W){for(var ee=0,Ae=this.renderedElements;ee<Ae.length;ee++){var me=Ae[ee],Me=me.index,Re=me.templateData;W.indexOf(Me)>-1&&this.trait.renderIndex(Me,Re)}},Ee.prototype.disposeTemplate=function(W){var ee=Object(F.k)(this.renderedElements,function(Ae){return Ae.templateData===W});ee<0||this.renderedElements.splice(ee,1)},Ee}(),Se=function(){function Ee(W){this._trait=W,this.indexes=[],this.sortedIndexes=[],this._onChange=new I.a,this.onChange=this._onChange.event}return Object.defineProperty(Ee.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"renderer",{get:function(){return new fe(this)},enumerable:!0,configurable:!0}),Ee.prototype.splice=function(W,ee,Ae){var me=Ae.length-ee,Me=W+ee,Re=oe(this.sortedIndexes.filter(function(ge){return ge<W}),Ae.map(function(ge,nt){return ge?nt+W:-1}).filter(function(ge){return ge!==-1}),this.sortedIndexes.filter(function(ge){return ge>=Me}).map(function(ge){return ge+me}));this.renderer.splice(W,ee,Ae.length),this._set(Re,Re)},Ee.prototype.renderIndex=function(W,ee){B.X(ee,this._trait,this.contains(W))},Ee.prototype.unrender=function(W){B.O(W,this._trait)},Ee.prototype.set=function(W,ee){return this._set(W,oe(W).sort(Ye),ee)},Ee.prototype._set=function(W,ee,Ae){var me=this.indexes,Me=this.sortedIndexes;this.indexes=W,this.sortedIndexes=ee;var Re=Yt(Me,W);return this.renderer.renderIndexes(Re),this._onChange.fire({indexes:W,browserEvent:Ae}),me},Ee.prototype.get=function(){return this.indexes},Ee.prototype.contains=function(W){return Object(F.c)(this.sortedIndexes,W,Ye)>=0},Ee.prototype.dispose=function(){Object(ne.f)(this._onChange)},z([V.a],Ee.prototype,"renderer",null),Ee}(),we=function(Ee){E(W,Ee);function W(){return Ee.call(this,"focused")||this}return W.prototype.renderIndex=function(ee,Ae){Ee.prototype.renderIndex.call(this,ee,Ae),this.contains(ee)?Ae.setAttribute("aria-selected","true"):Ae.removeAttribute("aria-selected")},W}(Se),q=function(){function Ee(W,ee,Ae){this.trait=W,this.view=ee,this.identityProvider=Ae}return Ee.prototype.splice=function(W,ee,Ae){var me=this;if(!this.identityProvider)return this.trait.splice(W,ee,Ae.map(function(){return!1}));var Me=this.trait.get().map(function(ge){return me.identityProvider.getId(me.view.element(ge)).toString()}),Re=Ae.map(function(ge){return Me.indexOf(me.identityProvider.getId(ge).toString())>-1});this.trait.splice(W,ee,Re)},Ee}();function X(Ee){return Ee.tagName==="INPUT"||Ee.tagName==="TEXTAREA"}var ce=function(){function Ee(W,ee,Ae){this.list=W,this.view=ee,this.disposables=new ne.b;var me=Ae.multipleSelectionSupport!==!1;this.openController=Ae.openController||ve;var Me=I.b.chain(Object(K.a)(ee.domNode,"keydown")).filter(function(Re){return!X(Re.target)}).map(function(Re){return new S.a(Re)});Me.filter(function(Re){return Re.keyCode===3}).on(this.onEnter,this,this.disposables),Me.filter(function(Re){return Re.keyCode===16}).on(this.onUpArrow,this,this.disposables),Me.filter(function(Re){return Re.keyCode===18}).on(this.onDownArrow,this,this.disposables),Me.filter(function(Re){return Re.keyCode===11}).on(this.onPageUpArrow,this,this.disposables),Me.filter(function(Re){return Re.keyCode===12}).on(this.onPageDownArrow,this,this.disposables),Me.filter(function(Re){return Re.keyCode===9}).on(this.onEscape,this,this.disposables),me&&Me.filter(function(Re){return(G.e?Re.metaKey:Re.ctrlKey)&&Re.keyCode===31}).on(this.onCtrlA,this,this.disposables)}return Ee.prototype.onEnter=function(W){W.preventDefault(),W.stopPropagation(),this.list.setSelection(this.list.getFocus(),W.browserEvent),this.openController.shouldOpen(W.browserEvent)&&this.list.open(this.list.getFocus(),W.browserEvent)},Ee.prototype.onUpArrow=function(W){W.preventDefault(),W.stopPropagation(),this.list.focusPrevious(1,!1,W.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Ee.prototype.onDownArrow=function(W){W.preventDefault(),W.stopPropagation(),this.list.focusNext(1,!1,W.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Ee.prototype.onPageUpArrow=function(W){W.preventDefault(),W.stopPropagation(),this.list.focusPreviousPage(W.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Ee.prototype.onPageDownArrow=function(W){W.preventDefault(),W.stopPropagation(),this.list.focusNextPage(W.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Ee.prototype.onCtrlA=function(W){W.preventDefault(),W.stopPropagation(),this.list.setSelection(Object(F.u)(this.list.length),W.browserEvent),this.view.domNode.focus()},Ee.prototype.onEscape=function(W){W.preventDefault(),W.stopPropagation(),this.list.setSelection([],W.browserEvent),this.view.domNode.focus()},Ee.prototype.dispose=function(){this.disposables.dispose()},Ee}(),Ne;(function(Ee){Ee[Ee.Idle=0]="Idle",Ee[Ee.Typing=1]="Typing"})(Ne||(Ne={}));var He=new(function(){function Ee(){}return Ee.prototype.mightProducePrintableCharacter=function(W){return W.ctrlKey||W.metaKey||W.altKey?!1:W.keyCode>=31&&W.keyCode<=56||W.keyCode>=21&&W.keyCode<=30||W.keyCode>=93&&W.keyCode<=102||W.keyCode>=80&&W.keyCode<=90},Ee}()),_e=function(){function Ee(W,ee,Ae,me){this.list=W,this.view=ee,this.keyboardNavigationLabelProvider=Ae,this.delegate=me,this.enabled=!1,this.state=Ne.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new ne.b,this.disposables=new ne.b,this.updateOptions(W.options)}return Ee.prototype.updateOptions=function(W){var ee=typeof W.enableKeyboardNavigation=="undefined"?!0:!!W.enableKeyboardNavigation;ee?this.enable():this.disable(),typeof W.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=W.automaticKeyboardNavigation)},Ee.prototype.enable=function(){var W=this;if(!this.enabled){var ee=I.b.chain(Object(K.a)(this.view.domNode,"keydown")).filter(function(Me){return!X(Me.target)}).filter(function(){return W.automaticKeyboardNavigation||W.triggered}).map(function(Me){return new S.a(Me)}).filter(function(Me){return W.delegate.mightProducePrintableCharacter(Me)}).forEach(function(Me){Me.stopPropagation(),Me.preventDefault()}).map(function(Me){return Me.browserEvent.key}).event,Ae=I.b.debounce(ee,function(){return null},800),me=I.b.reduce(I.b.any(ee,Ae),function(Me,Re){return Re===null?null:(Me||"")+Re});me(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}},Ee.prototype.disable=function(){!this.enabled||(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)},Ee.prototype.onInput=function(W){if(!W){this.state=Ne.Idle,this.triggered=!1;return}var ee=this.list.getFocus(),Ae=ee.length>0?ee[0]:0,me=this.state===Ne.Idle?1:0;this.state=Ne.Typing;for(var Me=0;Me<this.list.length;Me++){var Re=(Ae+Me+me)%this.list.length,ge=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(Re)),nt=ge&&ge.toString();if(typeof nt=="undefined"||Object(v.f)(W,nt)){this.list.setFocus([Re]),this.list.reveal(Re);return}}},Ee.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},Ee}(),de=function(){function Ee(W,ee){this.list=W,this.view=ee,this.disposables=new ne.b;var Ae=I.b.chain(Object(K.a)(ee.domNode,"keydown")).filter(function(me){return!X(me.target)}).map(function(me){return new S.a(me)});Ae.filter(function(me){return me.keyCode===2&&!me.ctrlKey&&!me.metaKey&&!me.shiftKey&&!me.altKey}).on(this.onTab,this,this.disposables)}return Ee.prototype.onTab=function(W){if(W.target===this.view.domNode){var ee=this.list.getFocus();if(ee.length!==0){var Ae=this.view.domElement(ee[0]);if(!!Ae){var me=Ae.querySelector("[tabIndex]");if(!(!me||!(me instanceof HTMLElement)||me.tabIndex===-1)){var Me=window.getComputedStyle(me);Me.visibility==="hidden"||Me.display==="none"||(W.preventDefault(),W.stopPropagation(),me.focus())}}}}},Ee.prototype.dispose=function(){this.disposables.dispose()},Ee}();function se(Ee){return G.e?Ee.browserEvent.metaKey:Ee.browserEvent.ctrlKey}function he(Ee){return Ee.browserEvent.shiftKey}function ie(Ee){return Ee instanceof MouseEvent&&Ee.button===2}var $={isSelectionSingleChangeEvent:se,isSelectionRangeChangeEvent:he},ve={shouldOpen:function(W){return W instanceof MouseEvent?!ie(W):!0}},ye=function(){function Ee(W){this.list=W,this.disposables=new ne.b,this.multipleSelectionSupport=W.options.multipleSelectionSupport!==!1,this.multipleSelectionSupport&&(this.multipleSelectionController=W.options.multipleSelectionController||$),this.openController=W.options.openController||ve,this.mouseSupport=typeof W.options.mouseSupport=="undefined"||!!W.options.mouseSupport,this.mouseSupport&&(W.onMouseDown(this.onMouseDown,this,this.disposables),W.onContextMenu(this.onContextMenu,this,this.disposables),W.onMouseDblClick(this.onDoubleClick,this,this.disposables),W.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(x.b.addTarget(W.getHTMLElement()))),W.onMouseClick(this.onPointer,this,this.disposables),W.onMouseMiddleClick(this.onPointer,this,this.disposables),W.onTap(this.onPointer,this,this.disposables)}return Ee.prototype.isSelectionSingleChangeEvent=function(W){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(W):G.e?W.browserEvent.metaKey:W.browserEvent.ctrlKey},Ee.prototype.isSelectionRangeChangeEvent=function(W){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(W):W.browserEvent.shiftKey},Ee.prototype.isSelectionChangeEvent=function(W){return this.isSelectionSingleChangeEvent(W)||this.isSelectionRangeChangeEvent(W)},Ee.prototype.onMouseDown=function(W){document.activeElement!==W.browserEvent.target&&this.list.domFocus()},Ee.prototype.onContextMenu=function(W){var ee=typeof W.index=="undefined"?[]:[W.index];this.list.setFocus(ee,W.browserEvent)},Ee.prototype.onPointer=function(W){if(!!this.mouseSupport&&!X(W.browserEvent.target)){var ee=this.list.getFocus()[0],Ae=this.list.getSelection();ee=ee===void 0?Ae[0]:ee;var me=W.index;if(typeof me=="undefined"){this.list.setFocus([],W.browserEvent),this.list.setSelection([],W.browserEvent);return}if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(W))return this.changeSelection(W,ee);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(W))return this.changeSelection(W,ee);this.list.setFocus([me],W.browserEvent),ie(W.browserEvent)||(this.list.setSelection([me],W.browserEvent),this.openController.shouldOpen(W.browserEvent)&&this.list.open([me],W.browserEvent))}},Ee.prototype.onDoubleClick=function(W){if(!X(W.browserEvent.target)&&!(this.multipleSelectionSupport&&this.isSelectionChangeEvent(W))){var ee=this.list.getFocus();this.list.setSelection(ee,W.browserEvent),this.list.pin(ee)}},Ee.prototype.changeSelection=function(W,ee){var Ae=W.index;if(this.isSelectionRangeChangeEvent(W)&&ee!==void 0){var me=Math.min(ee,Ae),Me=Math.max(ee,Ae),Re=Object(F.u)(me,Me+1),ge=this.list.getSelection(),nt=At(Yt(ge,[ee]),ee);if(nt.length===0)return;var St=Yt(Re,Ke(ge,nt));this.list.setSelection(St,W.browserEvent)}else if(this.isSelectionSingleChangeEvent(W)){var ge=this.list.getSelection(),St=ge.filter(function(zt){return zt!==Ae});this.list.setFocus([Ae]),ge.length===St.length?this.list.setSelection(oe(St,[Ae]),W.browserEvent):this.list.setSelection(St,W.browserEvent)}},Ee.prototype.dispose=function(){this.disposables.dispose()},Ee}(),Ue=function(){function Ee(W,ee){this.styleElement=W,this.selectorSuffix=ee}return Ee.prototype.style=function(W){var ee=this.selectorSuffix&&"."+this.selectorSuffix,Ae=[];W.listBackground&&(W.listBackground.isOpaque()?Ae.push(".monaco-list"+ee+" .monaco-list-rows { background: "+W.listBackground+"; }"):G.e||console.warn("List with id '"+this.selectorSuffix+"' was styled with a non-opaque background color. This will break sub-pixel antialiasing.")),W.listFocusBackground&&(Ae.push(".monaco-list"+ee+":focus .monaco-list-row.focused { background-color: "+W.listFocusBackground+"; }"),Ae.push(".monaco-list"+ee+":focus .monaco-list-row.focused:hover { background-color: "+W.listFocusBackground+"; }")),W.listFocusForeground&&Ae.push(".monaco-list"+ee+":focus .monaco-list-row.focused { color: "+W.listFocusForeground+"; }"),W.listActiveSelectionBackground&&(Ae.push(".monaco-list"+ee+":focus .monaco-list-row.selected { background-color: "+W.listActiveSelectionBackground+"; }"),Ae.push(".monaco-list"+ee+":focus .monaco-list-row.selected:hover { background-color: "+W.listActiveSelectionBackground+"; }")),W.listActiveSelectionForeground&&Ae.push(".monaco-list"+ee+":focus .monaco-list-row.selected { color: "+W.listActiveSelectionForeground+"; }"),W.listFocusAndSelectionBackground&&Ae.push(`
.monaco-drag-image,
.monaco-list`+ee+":focus .monaco-list-row.selected.focused { background-color: "+W.listFocusAndSelectionBackground+`; }
`),W.listFocusAndSelectionForeground&&Ae.push(`
.monaco-drag-image,
.monaco-list`+ee+":focus .monaco-list-row.selected.focused { color: "+W.listFocusAndSelectionForeground+`; }
`),W.listInactiveFocusBackground&&(Ae.push(".monaco-list"+ee+" .monaco-list-row.focused { background-color: "+W.listInactiveFocusBackground+"; }"),Ae.push(".monaco-list"+ee+" .monaco-list-row.focused:hover { background-color: "+W.listInactiveFocusBackground+"; }")),W.listInactiveSelectionBackground&&(Ae.push(".monaco-list"+ee+" .monaco-list-row.selected { background-color: "+W.listInactiveSelectionBackground+"; }"),Ae.push(".monaco-list"+ee+" .monaco-list-row.selected:hover { background-color: "+W.listInactiveSelectionBackground+"; }")),W.listInactiveSelectionForeground&&Ae.push(".monaco-list"+ee+" .monaco-list-row.selected { color: "+W.listInactiveSelectionForeground+"; }"),W.listHoverBackground&&Ae.push(".monaco-list"+ee+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+W.listHoverBackground+"; }"),W.listHoverForeground&&Ae.push(".monaco-list"+ee+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+W.listHoverForeground+"; }"),W.listSelectionOutline&&Ae.push(".monaco-list"+ee+" .monaco-list-row.selected { outline: 1px dotted "+W.listSelectionOutline+"; outline-offset: -1px; }"),W.listFocusOutline&&Ae.push(`
.monaco-drag-image,
.monaco-list`+ee+":focus .monaco-list-row.focused { outline: 1px solid "+W.listFocusOutline+`; outline-offset: -1px; }
`),W.listInactiveFocusOutline&&Ae.push(".monaco-list"+ee+" .monaco-list-row.focused { outline: 1px dotted "+W.listInactiveFocusOutline+"; outline-offset: -1px; }"),W.listHoverOutline&&Ae.push(".monaco-list"+ee+" .monaco-list-row:hover { outline: 1px dashed "+W.listHoverOutline+"; outline-offset: -1px; }"),W.listDropBackground&&Ae.push(`
.monaco-list`+ee+`.drop-target,
.monaco-list`+ee+` .monaco-list-rows.drop-target,
.monaco-list`+ee+" .monaco-list-row.drop-target { background-color: "+W.listDropBackground+` !important; color: inherit !important; }
`),W.listFilterWidgetBackground&&Ae.push(".monaco-list-type-filter { background-color: "+W.listFilterWidgetBackground+" }"),W.listFilterWidgetOutline&&Ae.push(".monaco-list-type-filter { border: 1px solid "+W.listFilterWidgetOutline+"; }"),W.listFilterWidgetNoMatchesOutline&&Ae.push(".monaco-list-type-filter.no-matches { border: 1px solid "+W.listFilterWidgetNoMatchesOutline+"; }"),W.listMatchesShadow&&Ae.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+W.listMatchesShadow+"; }");var me=Ae.join(`
`);me!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=me)},Ee}(),tt={listFocusBackground:_.a.fromHex("#7FB0D0"),listActiveSelectionBackground:_.a.fromHex("#0E639C"),listActiveSelectionForeground:_.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:_.a.fromHex("#094771"),listFocusAndSelectionForeground:_.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:_.a.fromHex("#3F3F46"),listHoverBackground:_.a.fromHex("#2A2D2E"),listDropBackground:_.a.fromHex("#383B3D"),treeIndentGuidesStroke:_.a.fromHex("#a9a9a9")},_t={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:T.TREE};function At(Ee,W){var ee=Ee.indexOf(W);if(ee===-1)return[];for(var Ae=[],me=ee-1;me>=0&&Ee[me]===W-(ee-me);)Ae.push(Ee[me--]);for(Ae.reverse(),me=ee;me<Ee.length&&Ee[me]===W+(me-ee);)Ae.push(Ee[me++]);return Ae}function Yt(Ee,W){for(var ee=[],Ae=0,me=0;Ae<Ee.length||me<W.length;)if(Ae>=Ee.length)ee.push(W[me++]);else if(me>=W.length)ee.push(Ee[Ae++]);else if(Ee[Ae]===W[me]){ee.push(Ee[Ae]),Ae++,me++;continue}else Ee[Ae]<W[me]?ee.push(Ee[Ae++]):ee.push(W[me++]);return ee}function Ke(Ee,W){for(var ee=[],Ae=0,me=0;Ae<Ee.length||me<W.length;)if(Ae>=Ee.length)ee.push(W[me++]);else if(me>=W.length)ee.push(Ee[Ae++]);else if(Ee[Ae]===W[me]){Ae++,me++;continue}else Ee[Ae]<W[me]?ee.push(Ee[Ae++]):me++;return ee}var Ye=function(W,ee){return W-ee},Xe=function(){function Ee(W,ee){this._templateId=W,this.renderers=ee}return Object.defineProperty(Ee.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),Ee.prototype.renderTemplate=function(W){return this.renderers.map(function(ee){return ee.renderTemplate(W)})},Ee.prototype.renderElement=function(W,ee,Ae,me){for(var Me=0,Re=0,ge=this.renderers;Re<ge.length;Re++){var nt=ge[Re];nt.renderElement(W,ee,Ae[Me++],me)}},Ee.prototype.disposeElement=function(W,ee,Ae,me){for(var Me=0,Re=0,ge=this.renderers;Re<ge.length;Re++){var nt=ge[Re];nt.disposeElement&&nt.disposeElement(W,ee,Ae[Me],me),Me+=1}},Ee.prototype.disposeTemplate=function(W){for(var ee=0,Ae=0,me=this.renderers;Ae<me.length;Ae++){var Me=me[Ae];Me.disposeTemplate(W[ee++])}},Ee}(),Ze=function(){function Ee(W){this.accessibilityProvider=W,this.templateId="a18n"}return Ee.prototype.renderTemplate=function(W){return W},Ee.prototype.renderElement=function(W,ee,Ae){var me=this.accessibilityProvider.getAriaLabel(W);me?Ae.setAttribute("aria-label",me):Ae.removeAttribute("aria-label");var Me=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(W);typeof Me=="number"?Ae.setAttribute("aria-level",""+Me):Ae.removeAttribute("aria-level")},Ee.prototype.disposeTemplate=function(W){},Ee}(),We=function(){function Ee(W,ee){this.list=W,this.dnd=ee}return Ee.prototype.getDragElements=function(W){var ee=this.list.getSelectedElements(),Ae=ee.indexOf(W)>-1?ee:[W];return Ae},Ee.prototype.getDragURI=function(W){return this.dnd.getDragURI(W)},Ee.prototype.getDragLabel=function(W,ee){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(W,ee)},Ee.prototype.onDragStart=function(W,ee){this.dnd.onDragStart&&this.dnd.onDragStart(W,ee)},Ee.prototype.onDragOver=function(W,ee,Ae,me){return this.dnd.onDragOver(W,ee,Ae,me)},Ee.prototype.onDragEnd=function(W){this.dnd.onDragEnd&&this.dnd.onDragEnd(W)},Ee.prototype.drop=function(W,ee,Ae,me){this.dnd.drop(W,ee,Ae,me)},Ee}(),Qe=function(){function Ee(W,ee,Ae,me,Me){Me===void 0&&(Me=_t),this.user=W,this._options=Me,this.eventBufferer=new I.c,this.disposables=new ne.b,this._onDidOpen=new I.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new I.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new I.a,this.onDidDispose=this._onDidDispose.event,this.focus=new we,this.selection=new Se("selected"),Object(h.g)(Me,tt,!1);var Re=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=Me.accessibilityProvider,this.accessibilityProvider&&(Re.push(new Ze(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),me=me.map(function(Mt){return new Xe(Mt.templateId,oe(Re,[Mt]))});var ge=k(k({},Me),{dnd:Me.dnd&&new We(this,Me.dnd)});if(this.view=new U.b(ee,Ae,me,ge),typeof Me.ariaRole!="string"?this.view.domNode.setAttribute("role",T.TREE):this.view.domNode.setAttribute("role",Me.ariaRole),Me.styleController)this.styleController=Me.styleController(this.view.domId);else{var nt=B.v(this.view.domNode);this.styleController=new Ue(nt,this.view.domId)}if(this.spliceable=new g([new q(this.focus,this.view,Me.identityProvider),new q(this.selection,this.view,Me.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=I.b.map(Object(K.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=I.b.map(Object(K.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new de(this,this.view)),typeof Me.keyboardSupport!="boolean"||Me.keyboardSupport){var St=new ce(this,this.view,Me);this.disposables.add(St)}if(Me.keyboardNavigationLabelProvider){var xt=Me.keyboardNavigationDelegate||He;this.typeLabelController=new _e(this,this.view,Me.keyboardNavigationLabelProvider,xt),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(Me)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),Me.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(re.a)("aria list","{0}. Use the navigation keys to navigate.",Me.ariaLabel))}return Object.defineProperty(Ee.prototype,"onFocusChange",{get:function(){var ee=this;return I.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(Ae){return ee.toListEvent(Ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"onSelectionChange",{get:function(){var ee=this;return I.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(Ae){return ee.toListEvent(Ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"onContextMenu",{get:function(){var ee=this,Ae=I.b.chain(Object(K.a)(this.view.domNode,"keydown")).map(function(Re){return new S.a(Re)}).filter(function(Re){return ee.didJustPressContextMenuKey=Re.keyCode===58||Re.shiftKey&&Re.keyCode===68}).filter(function(Re){return Re.preventDefault(),Re.stopPropagation(),!1}).event,me=I.b.chain(Object(K.a)(this.view.domNode,"keyup")).filter(function(){var Re=ee.didJustPressContextMenuKey;return ee.didJustPressContextMenuKey=!1,Re}).filter(function(){return ee.getFocus().length>0&&!!ee.view.domElement(ee.getFocus()[0])}).map(function(Re){var ge=ee.getFocus()[0],nt=ee.view.element(ge),St=ee.view.domElement(ge);return{index:ge,element:nt,anchor:St,browserEvent:Re}}).event,Me=I.b.chain(this.view.onContextMenu).filter(function(){return!ee.didJustPressContextMenuKey}).map(function(Re){var ge=Re.element,nt=Re.index,St=Re.browserEvent;return{element:ge,index:nt,anchor:{x:St.clientX+1,y:St.clientY},browserEvent:St}}).event;return I.b.any(Ae,me,Me)},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"onKeyDown",{get:function(){return Object(K.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),Ee.prototype.createMouseController=function(W){return new ye(this)},Ee.prototype.updateOptions=function(W){W===void 0&&(W={}),this._options=k(k({},this._options),W),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(Ee.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Ee.prototype.splice=function(W,ee,Ae){var me=this;if(Ae===void 0&&(Ae=[]),W<0||W>this.view.length)throw new te(this.user,"Invalid start index: "+W);if(ee<0)throw new te(this.user,"Invalid delete count: "+ee);ee===0&&Ae.length===0||this.eventBufferer.bufferEvents(function(){return me.spliceable.splice(W,ee,Ae)})},Ee.prototype.rerender=function(){this.view.rerender()},Ee.prototype.element=function(W){return this.view.element(W)},Object.defineProperty(Ee.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(ee){this.view.setScrollTop(ee)},enumerable:!0,configurable:!0}),Ee.prototype.domFocus=function(){this.view.domNode.focus()},Ee.prototype.layout=function(W,ee){this.view.layout(W,ee)},Ee.prototype.setSelection=function(W,ee){for(var Ae=0,me=W;Ae<me.length;Ae++){var Me=me[Ae];if(Me<0||Me>=this.length)throw new te(this.user,"Invalid index "+Me)}this.selection.set(W,ee)},Ee.prototype.getSelection=function(){return this.selection.get()},Ee.prototype.getSelectedElements=function(){var W=this;return this.getSelection().map(function(ee){return W.view.element(ee)})},Ee.prototype.setFocus=function(W,ee){for(var Ae=0,me=W;Ae<me.length;Ae++){var Me=me[Ae];if(Me<0||Me>=this.length)throw new te(this.user,"Invalid index "+Me)}this.focus.set(W,ee)},Ee.prototype.focusNext=function(W,ee,Ae,me){if(W===void 0&&(W=1),ee===void 0&&(ee=!1),this.length!==0){var Me=this.focus.get(),Re=this.findNextIndex(Me.length>0?Me[0]+W:0,ee,me);Re>-1&&this.setFocus([Re],Ae)}},Ee.prototype.focusPrevious=function(W,ee,Ae,me){if(W===void 0&&(W=1),ee===void 0&&(ee=!1),this.length!==0){var Me=this.focus.get(),Re=this.findPreviousIndex(Me.length>0?Me[0]-W:0,ee,me);Re>-1&&this.setFocus([Re],Ae)}},Ee.prototype.focusNextPage=function(W,ee){var Ae=this,me=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);me=me===0?0:me-1;var Me=this.view.element(me),Re=this.getFocusedElements()[0];if(Re!==Me){var ge=this.findPreviousIndex(me,!1,ee);ge>-1&&Re!==this.view.element(ge)?this.setFocus([ge],W):this.setFocus([me],W)}else{var nt=this.view.getScrollTop();this.view.setScrollTop(nt+this.view.renderHeight-this.view.elementHeight(me)),this.view.getScrollTop()!==nt&&setTimeout(function(){return Ae.focusNextPage(W,ee)},0)}},Ee.prototype.focusPreviousPage=function(W,ee){var Ae=this,me,Me=this.view.getScrollTop();Me===0?me=this.view.indexAt(Me):me=this.view.indexAfter(Me-1);var Re=this.view.element(me),ge=this.getFocusedElements()[0];if(ge!==Re){var nt=this.findNextIndex(me,!1,ee);nt>-1&&ge!==this.view.element(nt)?this.setFocus([nt],W):this.setFocus([me],W)}else{var St=Me;this.view.setScrollTop(Me-this.view.renderHeight),this.view.getScrollTop()!==St&&setTimeout(function(){return Ae.focusPreviousPage(W,ee)},0)}},Ee.prototype.focusLast=function(W,ee){if(this.length!==0){var Ae=this.findPreviousIndex(this.length-1,!1,ee);Ae>-1&&this.setFocus([Ae],W)}},Ee.prototype.focusFirst=function(W,ee){if(this.length!==0){var Ae=this.findNextIndex(0,!1,ee);Ae>-1&&this.setFocus([Ae],W)}},Ee.prototype.findNextIndex=function(W,ee,Ae){ee===void 0&&(ee=!1);for(var me=0;me<this.length;me++){if(W>=this.length&&!ee)return-1;if(W=W%this.length,!Ae||Ae(this.element(W)))return W;W++}return-1},Ee.prototype.findPreviousIndex=function(W,ee,Ae){ee===void 0&&(ee=!1);for(var me=0;me<this.length;me++){if(W<0&&!ee)return-1;if(W=(this.length+W%this.length)%this.length,!Ae||Ae(this.element(W)))return W;W--}return-1},Ee.prototype.getFocus=function(){return this.focus.get()},Ee.prototype.getFocusedElements=function(){var W=this;return this.getFocus().map(function(ee){return W.view.element(ee)})},Ee.prototype.reveal=function(W,ee){if(W<0||W>=this.length)throw new te(this.user,"Invalid index "+W);var Ae=this.view.getScrollTop(),me=this.view.elementTop(W),Me=this.view.elementHeight(W);if(Object(P.h)(ee)){var Re=Me-this.view.renderHeight;this.view.setScrollTop(Re*Object(p.a)(ee,0,1)+me)}else{var ge=me+Me,nt=Ae+this.view.renderHeight;me<Ae&&ge>=nt||(me<Ae?this.view.setScrollTop(me):ge>=nt&&this.view.setScrollTop(ge-this.view.renderHeight))}},Ee.prototype.getRelativeTop=function(W){if(W<0||W>=this.length)throw new te(this.user,"Invalid index "+W);var ee=this.view.getScrollTop(),Ae=this.view.elementTop(W),me=this.view.elementHeight(W);if(Ae<ee||Ae+me>ee+this.view.renderHeight)return null;var Me=me-this.view.renderHeight;return Math.abs((ee-Ae)/Me)},Ee.prototype.getHTMLElement=function(){return this.view.domNode},Ee.prototype.open=function(W,ee){for(var Ae=this,me=0,Me=W;me<Me.length;me++){var Re=Me[me];if(Re<0||Re>=this.length)throw new te(this.user,"Invalid index "+Re)}this._onDidOpen.fire({indexes:W,elements:W.map(function(ge){return Ae.view.element(ge)}),browserEvent:ee})},Ee.prototype.pin=function(W,ee){for(var Ae=this,me=0,Me=W;me<Me.length;me++){var Re=Me[me];if(Re<0||Re>=this.length)throw new te(this.user,"Invalid index "+Re)}this._onDidPin.fire({indexes:W,elements:W.map(function(ge){return Ae.view.element(ge)}),browserEvent:ee})},Ee.prototype.style=function(W){this.styleController.style(W)},Ee.prototype.toListEvent=function(W){var ee=this,Ae=W.indexes,me=W.browserEvent;return{indexes:Ae,elements:Ae.map(function(Me){return ee.view.element(Me)}),browserEvent:me}},Ee.prototype._onFocusChange=function(){var W=this.focus.get();B.X(this.view.domNode,"element-focused",W.length>0),this.onDidChangeActiveDescendant()},Ee.prototype.onDidChangeActiveDescendant=function(){var W,ee=this.focus.get();if(ee.length>0){var Ae=void 0;((W=this.accessibilityProvider)===null||W===void 0?void 0:W.getActiveDescendantId)&&(Ae=this.accessibilityProvider.getActiveDescendantId(this.view.element(ee[0]))),this.view.domNode.setAttribute("aria-activedescendant",Ae||this.view.getElementDomId(ee[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},Ee.prototype._onSelectionChange=function(){var W=this.selection.get();B.X(this.view.domNode,"selection-none",W.length===0),B.X(this.view.domNode,"selection-single",W.length===1),B.X(this.view.domNode,"selection-multiple",W.length>1)},Ee.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},z([V.a],Ee.prototype,"onFocusChange",null),z([V.a],Ee.prototype,"onSelectionChange",null),z([V.a],Ee.prototype,"onContextMenu",null),Ee}()},dBaI:function(Et,A,o){"use strict";o.d(A,"a",function(){return re}),o.d(A,"b",function(){return F});var R=o("N0LK"),re=function(){function V(B,G,x,S){this.startColumn=B,this.endColumn=G,this.className=x,this.type=S}return V._equals=function(B,G){return B.startColumn===G.startColumn&&B.endColumn===G.endColumn&&B.className===G.className&&B.type===G.type},V.equalsArr=function(B,G){var x=B.length,S=G.length;if(x!==S)return!1;for(var I=0;I<x;I++)if(!V._equals(B[I],G[I]))return!1;return!0},V.filter=function(B,G,x,S){if(B.length===0)return[];for(var I=[],K=0,D=0,T=B.length;D<T;D++){var te=B[D],U=te.range;if(!(U.endLineNumber<G||U.startLineNumber>G)&&!(U.isEmpty()&&(te.type===0||te.type===3))){var _=U.startLineNumber===G?U.startColumn:x,h=U.endLineNumber===G?U.endColumn:S;I[K++]=new V(_,h,te.inlineClassName,te.type)}}return I},V.compare=function(B,G){return B.startColumn===G.startColumn?B.endColumn===G.endColumn?B.className<G.className?-1:B.className>G.className?1:0:B.endColumn-G.endColumn:B.startColumn-G.startColumn},V}(),ne=function(){function V(B,G,x){this.startOffset=B,this.endOffset=G,this.className=x}return V}(),P=function(){function V(){this.stopOffsets=[],this.classNames=[],this.count=0}return V.prototype.consumeLowerThan=function(B,G,x){for(;this.count>0&&this.stopOffsets[0]<B;){for(var S=0;S+1<this.count&&this.stopOffsets[S]===this.stopOffsets[S+1];)S++;x.push(new ne(G,this.stopOffsets[S],this.classNames.join(" "))),G=this.stopOffsets[S]+1,this.stopOffsets.splice(0,S+1),this.classNames.splice(0,S+1),this.count-=S+1}return this.count>0&&G<B&&(x.push(new ne(G,B-1,this.classNames.join(" "))),G=B),G},V.prototype.insert=function(B,G){if(this.count===0||this.stopOffsets[this.count-1]<=B)this.stopOffsets.push(B),this.classNames.push(G);else for(var x=0;x<this.count;x++)if(this.stopOffsets[x]>=B){this.stopOffsets.splice(x,0,B),this.classNames.splice(x,0,G);break}this.count++},V}(),F=function(){function V(){}return V.normalize=function(B,G){if(G.length===0)return[];for(var x=[],S=new P,I=0,K=0,D=G.length;K<D;K++){var T=G[K],te=T.startColumn,U=T.endColumn,_=T.className;if(te>1){var h=B.charCodeAt(te-2);R.z(h)&&te--}if(U>1){var h=B.charCodeAt(U-2);R.z(h)&&U--}var g=te-1,p=U-2;I=S.consumeLowerThan(g,I,x),S.count===0&&(I=g),S.insert(p,_)}return S.consumeLowerThan(1073741824,I,x),x},V}()},dFcq:function(Et,A,o){},dgXF:function(Et,A,o){"use strict";o.r(A),o.d(A,"FoldingController",function(){return ee}),o.d(A,"foldBackgroundBackground",function(){return Mn});var R=o("CjOT"),re=o("3/fG"),ne=o("746U"),P=o("N0LK"),F=o("X+cX"),V=o("/kV6"),B=o("pmY6"),G=o("sswD"),x=o("MI8n"),S=65535,I=16777215,K=4278190080,D=function(){function Ft(gt,pt,Dt){if(gt.length!==pt.length||gt.length>S)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=gt,this._endIndexes=pt,this._collapseStates=new Uint32Array(Math.ceil(gt.length/32)),this._types=Dt,this._parentsComputed=!1}return Ft.prototype.ensureParentIndices=function(){var gt=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var pt=[],Dt=function(Sn,Ln){var An=pt[pt.length-1];return gt.getStartLineNumber(An)<=Sn&&gt.getEndLineNumber(An)>=Ln},Ot=0,Ht=this._startIndexes.length;Ot<Ht;Ot++){var Jt=this._startIndexes[Ot],nn=this._endIndexes[Ot];if(Jt>I||nn>I)throw new Error("startLineNumber or endLineNumber must not exceed "+I);for(;pt.length>0&&!Dt(Jt,nn);)pt.pop();var sn=pt.length>0?pt[pt.length-1]:-1;pt.push(Ot),this._startIndexes[Ot]=Jt+((sn&255)<<24),this._endIndexes[Ot]=nn+((sn&65280)<<16)}}},Object.defineProperty(Ft.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),Ft.prototype.getStartLineNumber=function(gt){return this._startIndexes[gt]&I},Ft.prototype.getEndLineNumber=function(gt){return this._endIndexes[gt]&I},Ft.prototype.getType=function(gt){return this._types?this._types[gt]:void 0},Ft.prototype.hasTypes=function(){return!!this._types},Ft.prototype.isCollapsed=function(gt){var pt=gt/32|0,Dt=gt%32;return(this._collapseStates[pt]&1<<Dt)!=0},Ft.prototype.setCollapsed=function(gt,pt){var Dt=gt/32|0,Ot=gt%32,Ht=this._collapseStates[Dt];pt?this._collapseStates[Dt]=Ht|1<<Ot:this._collapseStates[Dt]=Ht&~(1<<Ot)},Ft.prototype.toRegion=function(gt){return new T(this,gt)},Ft.prototype.getParentIndex=function(gt){this.ensureParentIndices();var pt=((this._startIndexes[gt]&K)>>>24)+((this._endIndexes[gt]&K)>>>16);return pt===S?-1:pt},Ft.prototype.contains=function(gt,pt){return this.getStartLineNumber(gt)<=pt&&this.getEndLineNumber(gt)>=pt},Ft.prototype.findIndex=function(gt){var pt=0,Dt=this._startIndexes.length;if(Dt===0)return-1;for(;pt<Dt;){var Ot=Math.floor((pt+Dt)/2);gt<this.getStartLineNumber(Ot)?Dt=Ot:pt=Ot+1}return pt-1},Ft.prototype.findRange=function(gt){var pt=this.findIndex(gt);if(pt>=0){var Dt=this.getEndLineNumber(pt);if(Dt>=gt)return pt;for(pt=this.getParentIndex(pt);pt!==-1;){if(this.contains(pt,gt))return pt;pt=this.getParentIndex(pt)}}return-1},Ft.prototype.toString=function(){for(var gt=[],pt=0;pt<this.length;pt++)gt[pt]="["+(this.isCollapsed(pt)?"+":"-")+"] "+this.getStartLineNumber(pt)+"/"+this.getEndLineNumber(pt);return gt.join(", ")},Ft}(),T=function(){function Ft(gt,pt){this.ranges=gt,this.index=pt}return Object.defineProperty(Ft.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),Ft.prototype.containedBy=function(gt){return gt.startLineNumber<=this.startLineNumber&&gt.endLineNumber>=this.endLineNumber},Ft.prototype.containsLine=function(gt){return this.startLineNumber<=gt&&gt<=this.endLineNumber},Ft}(),te=function(){function Ft(gt,pt){this._updateEventEmitter=new x.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=gt,this._decorationProvider=pt,this._regions=new D(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(Ft.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),Ft.prototype.toggleCollapseState=function(gt){var pt=this;if(!!gt.length){var Dt={};this._decorationProvider.changeDecorations(function(Ot){for(var Ht=0,Jt=gt;Ht<Jt.length;Ht++){var nn=Jt[Ht],sn=nn.regionIndex,un=pt._editorDecorationIds[sn];if(un&&!Dt[un]){Dt[un]=!0;var Sn=!pt._regions.isCollapsed(sn);pt._regions.setCollapsed(sn,Sn),Ot.changeDecorationOptions(un,pt._decorationProvider.getDecorationOption(Sn))}}}),this._updateEventEmitter.fire({model:this,collapseStateChanged:gt})}},Ft.prototype.update=function(gt,pt){var Dt=this;pt===void 0&&(pt=[]);for(var Ot=[],Ht=function($n,pi){for(var Kn=0,yi=pt;Kn<yi.length;Kn++){var vi=yi[Kn];if($n<vi&&vi<=pi)return!0}return!1},Jt=function($n,pi){var Kn=gt.getStartLineNumber($n);pi&&Ht(Kn,gt.getEndLineNumber($n))&&(pi=!1),gt.setCollapsed($n,pi);var yi=Dt._textModel.getLineMaxColumn(Kn),vi={startLineNumber:Kn,startColumn:yi,endLineNumber:Kn,endColumn:yi};Ot.push({range:vi,options:Dt._decorationProvider.getDecorationOption(pi)})},nn=0,sn=function(){for(;nn<Dt._regions.length;){var $n=Dt._regions.isCollapsed(nn);if(nn++,$n)return nn-1}return-1},un=0,Sn=sn();Sn!==-1&&un<gt.length;){var Ln=this._textModel.getDecorationRange(this._editorDecorationIds[Sn]);if(Ln){var An=Ln.startLineNumber;if(this._textModel.getLineMaxColumn(An)===Ln.startColumn)for(;un<gt.length;){var Gn=gt.getStartLineNumber(un);if(An>=Gn)Jt(un,An===Gn),un++;else break}}Sn=sn()}for(;un<gt.length;)Jt(un,!1),un++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,Ot),this._regions=gt,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},Ft.prototype.getMemento=function(){for(var gt=[],pt=0;pt<this._regions.length;pt++)if(this._regions.isCollapsed(pt)){var Dt=this._textModel.getDecorationRange(this._editorDecorationIds[pt]);if(Dt){var Ot=Dt.startLineNumber,Ht=Dt.endLineNumber+this._regions.getEndLineNumber(pt)-this._regions.getStartLineNumber(pt);gt.push({startLineNumber:Ot,endLineNumber:Ht})}}if(gt.length>0)return gt},Ft.prototype.applyMemento=function(gt){if(!!Array.isArray(gt)){for(var pt=[],Dt=0,Ot=gt;Dt<Ot.length;Dt++){var Ht=Ot[Dt],Jt=this.getRegionAtLine(Ht.startLineNumber);Jt&&!Jt.isCollapsed&&pt.push(Jt)}this.toggleCollapseState(pt)}},Ft.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},Ft.prototype.getAllRegionsAtLine=function(gt,pt){var Dt=[];if(this._regions)for(var Ot=this._regions.findRange(gt),Ht=1;Ot>=0;){var Jt=this._regions.toRegion(Ot);(!pt||pt(Jt,Ht))&&Dt.push(Jt),Ht++,Ot=Jt.parentIndex}return Dt},Ft.prototype.getRegionAtLine=function(gt){if(this._regions){var pt=this._regions.findRange(gt);if(pt>=0)return this._regions.toRegion(pt)}return null},Ft.prototype.getRegionsInside=function(gt,pt){var Dt=[],Ot=gt?gt.regionIndex+1:0,Ht=gt?gt.endLineNumber:Number.MAX_VALUE;if(pt&&pt.length===2)for(var Jt=[],nn=Ot,sn=this._regions.length;nn<sn;nn++){var un=this._regions.toRegion(nn);if(this._regions.getStartLineNumber(nn)<Ht){for(;Jt.length>0&&!un.containedBy(Jt[Jt.length-1]);)Jt.pop();Jt.push(un),pt(un,Jt.length)&&Dt.push(un)}else break}else for(var nn=Ot,sn=this._regions.length;nn<sn;nn++){var un=this._regions.toRegion(nn);if(this._regions.getStartLineNumber(nn)<Ht)(!pt||pt(un))&&Dt.push(un);else break}return Dt},Ft}();function U(Ft,gt,pt){for(var Dt=[],Ot=function(un){var Sn=Ft.getRegionAtLine(un);if(Sn){var Ln=!Sn.isCollapsed;if(Dt.push(Sn),gt>1){var An=Ft.getRegionsInside(Sn,function(Gn,Jn){return Gn.isCollapsed!==Ln&&Jn<gt});Dt.push.apply(Dt,An)}}},Ht=0,Jt=pt;Ht<Jt.length;Ht++){var nn=Jt[Ht];Ot(nn)}Ft.toggleCollapseState(Dt)}function _(Ft,gt,pt,Dt){pt===void 0&&(pt=Number.MAX_VALUE);var Ot=[];if(Dt&&Dt.length>0)for(var Ht=0,Jt=Dt;Ht<Jt.length;Ht++){var nn=Jt[Ht],sn=Ft.getRegionAtLine(nn);if(sn&&(sn.isCollapsed!==gt&&Ot.push(sn),pt>1)){var un=Ft.getRegionsInside(sn,function(Sn,Ln){return Sn.isCollapsed!==gt&&Ln<pt});Ot.push.apply(Ot,un)}}else{var un=Ft.getRegionsInside(null,function(Ln,An){return Ln.isCollapsed!==gt&&An<pt});Ot.push.apply(Ot,un)}Ft.toggleCollapseState(Ot)}function h(Ft,gt,pt,Dt){for(var Ot=[],Ht=0,Jt=Dt;Ht<Jt.length;Ht++){var nn=Jt[Ht],sn=Ft.getAllRegionsAtLine(nn,function(un,Sn){return un.isCollapsed!==gt&&Sn<=pt});Ot.push.apply(Ot,sn)}Ft.toggleCollapseState(Ot)}function g(Ft,gt,pt){for(var Dt=[],Ot=0,Ht=pt;Ot<Ht.length;Ot++){var Jt=Ht[Ot],nn=Ft.getAllRegionsAtLine(Jt,function(sn){return sn.isCollapsed!==gt});nn.length>0&&Dt.push(nn[0])}Ft.toggleCollapseState(Dt)}function p(Ft,gt,pt,Dt){var Ot=function(nn,sn){return sn===gt&&nn.isCollapsed!==pt&&!Dt.some(function(un){return nn.containsLine(un)})},Ht=Ft.getRegionsInside(null,Ot);Ft.toggleCollapseState(Ht)}function v(Ft,gt,pt){for(var Dt=Ft.textModel,Ot=Ft.regions,Ht=[],Jt=Ot.length-1;Jt>=0;Jt--)if(pt!==Ot.isCollapsed(Jt)){var nn=Ot.getStartLineNumber(Jt);gt.test(Dt.getLineContent(nn))&&Ht.push(Ot.toRegion(Jt))}Ft.toggleCollapseState(Ht)}function E(Ft,gt,pt){for(var Dt=Ft.regions,Ot=[],Ht=Dt.length-1;Ht>=0;Ht--)pt!==Dt.isCollapsed(Ht)&&gt===Dt.getType(Ht)&&Ot.push(Dt.toRegion(Ht));Ft.toggleCollapseState(Ot)}var k=o("tX9W"),z=function(){function Ft(gt){this.editor=gt,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}return Ft.prototype.getDecorationOption=function(gt){return gt?this.showFoldingHighlights?Ft.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:Ft.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?Ft.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:Ft.EXPANDED_VISUAL_DECORATION},Ft.prototype.deltaDecorations=function(gt,pt){return this.editor.deltaDecorations(gt,pt)},Ft.prototype.changeDecorations=function(gt){return this.editor.changeDecorations(gt)},Ft.COLLAPSED_VISUAL_DECORATION=k.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),Ft.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=k.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),Ft.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=k.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),Ft.EXPANDED_VISUAL_DECORATION=k.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),Ft}(),oe=o("wQH0"),fe=o("aokT"),Se=o("6OMU"),we=function(){function Ft(gt){var pt=this;this._updateEventEmitter=new x.a,this._foldingModel=gt,this._foldingModelListener=gt.onDidChange(function(Dt){return pt.updateHiddenRanges()}),this._hiddenRanges=[],gt.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(Ft.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),Ft.prototype.updateHiddenRanges=function(){for(var gt=!1,pt=[],Dt=0,Ot=0,Ht=Number.MAX_VALUE,Jt=-1,nn=this._foldingModel.regions;Dt<nn.length;Dt++)if(!!nn.isCollapsed(Dt)){var sn=nn.getStartLineNumber(Dt)+1,un=nn.getEndLineNumber(Dt);Ht<=sn&&un<=Jt||(!gt&&Ot<this._hiddenRanges.length&&this._hiddenRanges[Ot].startLineNumber===sn&&this._hiddenRanges[Ot].endLineNumber===un?(pt.push(this._hiddenRanges[Ot]),Ot++):(gt=!0,pt.push(new fe.a(sn,1,un,1))),Ht=sn,Jt=un)}(gt||Ot<this._hiddenRanges.length)&&this.applyHiddenRanges(pt)},Ft.prototype.applyMemento=function(gt){if(!Array.isArray(gt)||gt.length===0)return!1;for(var pt=[],Dt=0,Ot=gt;Dt<Ot.length;Dt++){var Ht=Ot[Dt];if(!Ht.startLineNumber||!Ht.endLineNumber)return!1;pt.push(new fe.a(Ht.startLineNumber+1,1,Ht.endLineNumber,1))}return this.applyHiddenRanges(pt),!0},Ft.prototype.getMemento=function(){return this._hiddenRanges.map(function(gt){return{startLineNumber:gt.startLineNumber-1,endLineNumber:gt.endLineNumber}})},Ft.prototype.applyHiddenRanges=function(gt){this._hiddenRanges=gt,this._updateEventEmitter.fire(gt)},Ft.prototype.hasRanges=function(){return this._hiddenRanges.length>0},Ft.prototype.isHidden=function(gt){return X(this._hiddenRanges,gt)!==null},Ft.prototype.adjustSelections=function(gt){for(var pt=this,Dt=!1,Ot=this._foldingModel.textModel,Ht=null,Jt=function(Gn){return(!Ht||!q(Gn,Ht))&&(Ht=X(pt._hiddenRanges,Gn)),Ht?Ht.startLineNumber-1:null},nn=0,sn=gt.length;nn<sn;nn++){var un=gt[nn],Sn=Jt(un.startLineNumber);Sn&&(un=un.setStartPosition(Sn,Ot.getLineMaxColumn(Sn)),Dt=!0);var Ln=Jt(un.endLineNumber);Ln&&(un=un.setEndPosition(Ln,Ot.getLineMaxColumn(Ln)),Dt=!0),gt[nn]=un}return Dt},Ft.prototype.dispose=function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},Ft}();function q(Ft,gt){return Ft>=gt.startLineNumber&&Ft<=gt.endLineNumber}function X(Ft,gt){var pt=Object(Se.i)(Ft,function(Dt){return gt<Dt.startLineNumber})-1;return pt>=0&&Ft[pt].endLineNumber>=gt?Ft[pt]:null}var ce=o("cMvZ"),Ne=5e3,He="indent",_e=function(){function Ft(gt){this.editorModel=gt,this.id=He}return Ft.prototype.dispose=function(){},Ft.prototype.compute=function(gt){var pt=ce.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),Dt=pt&&!!pt.offSide,Ot=pt&&pt.markers;return Promise.resolve(se(this.editorModel,Dt,Ot))},Ft}(),de=function(){function Ft(gt){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=gt}return Ft.prototype.insertFirst=function(gt,pt,Dt){if(!(gt>I||pt>I)){var Ot=this._length;this._startIndexes[Ot]=gt,this._endIndexes[Ot]=pt,this._length++,Dt<1e3&&(this._indentOccurrences[Dt]=(this._indentOccurrences[Dt]||0)+1)}},Ft.prototype.toIndentRanges=function(gt){if(this._length<=this._foldingRangesLimit){for(var pt=new Uint32Array(this._length),Dt=new Uint32Array(this._length),Ot=this._length-1,Ht=0;Ot>=0;Ot--,Ht++)pt[Ht]=this._startIndexes[Ot],Dt[Ht]=this._endIndexes[Ot];return new D(pt,Dt)}else{for(var Jt=0,nn=this._indentOccurrences.length,Ot=0;Ot<this._indentOccurrences.length;Ot++){var sn=this._indentOccurrences[Ot];if(sn){if(sn+Jt>this._foldingRangesLimit){nn=Ot;break}Jt+=sn}}for(var un=gt.getOptions().tabSize,pt=new Uint32Array(this._foldingRangesLimit),Dt=new Uint32Array(this._foldingRangesLimit),Ot=this._length-1,Ht=0;Ot>=0;Ot--){var Sn=this._startIndexes[Ot],Ln=gt.getLineContent(Sn),An=k.b.computeIndentLevel(Ln,un);(An<nn||An===nn&&Jt++<this._foldingRangesLimit)&&(pt[Ht]=Sn,Dt[Ht]=this._endIndexes[Ot],Ht++)}return new D(pt,Dt)}},Ft}();function se(Ft,gt,pt,Dt){Dt===void 0&&(Dt=Ne);var Ot=Ft.getOptions().tabSize,Ht=new de(Dt),Jt=void 0;pt&&(Jt=new RegExp("("+pt.start.source+")|(?:"+pt.end.source+")"));var nn=[],sn=Ft.getLineCount()+1;nn.push({indent:-1,endAbove:sn,line:sn});for(var un=Ft.getLineCount();un>0;un--){var Sn=Ft.getLineContent(un),Ln=k.b.computeIndentLevel(Sn,Ot),An=nn[nn.length-1];if(Ln===-1){gt&&(An.endAbove=un);continue}var Gn=void 0;if(Jt&&(Gn=Sn.match(Jt)))if(Gn[1]){for(var Jn=nn.length-1;Jn>0&&nn[Jn].indent!==-2;)Jn--;if(Jn>0){nn.length=Jn+1,An=nn[Jn],Ht.insertFirst(un,An.line,Ln),An.line=un,An.indent=Ln,An.endAbove=un;continue}}else{nn.push({indent:-2,endAbove:un,line:un});continue}if(An.indent>Ln){do nn.pop(),An=nn[nn.length-1];while(An.indent>Ln);var $n=An.endAbove-1;$n-un>=1&&Ht.insertFirst(un,$n,Ln)}An.indent===Ln?An.endAbove=un:nn.push({indent:Ln,endAbove:un,line:un})}return Ht.toIndentRanges(Ft)}var he=o("twdY"),ie=o("/cxE"),$=5e3,ve={},ye="syntax",Ue=function(){function Ft(gt,pt,Dt){Dt===void 0&&(Dt=$),this.editorModel=gt,this.providers=pt,this.limit=Dt,this.id=ye}return Ft.prototype.compute=function(gt){var pt=this;return tt(this.providers,this.editorModel,gt).then(function(Dt){if(Dt){var Ot=At(Dt,pt.limit);return Ot}return null})},Ft.prototype.dispose=function(){},Ft}();function tt(Ft,gt,pt){var Dt=null,Ot=Ft.map(function(Ht,Jt){return Promise.resolve(Ht.provideFoldingRanges(gt,ve,pt)).then(function(nn){if(!pt.isCancellationRequested&&Array.isArray(nn)){Array.isArray(Dt)||(Dt=[]);for(var sn=gt.getLineCount(),un=0,Sn=nn;un<Sn.length;un++){var Ln=Sn[un];Ln.start>0&&Ln.end>Ln.start&&Ln.end<=sn&&Dt.push({start:Ln.start,end:Ln.end,rank:Jt,kind:Ln.kind})}}},ie.f)});return Promise.all(Ot).then(function(Ht){return Dt})}var _t=function(){function Ft(gt){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=gt}return Ft.prototype.add=function(gt,pt,Dt,Ot){if(!(gt>I||pt>I)){var Ht=this._length;this._startIndexes[Ht]=gt,this._endIndexes[Ht]=pt,this._nestingLevels[Ht]=Ot,this._types[Ht]=Dt,this._length++,Ot<30&&(this._nestingLevelCounts[Ot]=(this._nestingLevelCounts[Ot]||0)+1)}},Ft.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var gt=new Uint32Array(this._length),pt=new Uint32Array(this._length),Dt=0;Dt<this._length;Dt++)gt[Dt]=this._startIndexes[Dt],pt[Dt]=this._endIndexes[Dt];return new D(gt,pt,this._types)}else{for(var Ot=0,Ht=this._nestingLevelCounts.length,Dt=0;Dt<this._nestingLevelCounts.length;Dt++){var Jt=this._nestingLevelCounts[Dt];if(Jt){if(Jt+Ot>this._foldingRangesLimit){Ht=Dt;break}Ot+=Jt}}for(var gt=new Uint32Array(this._foldingRangesLimit),pt=new Uint32Array(this._foldingRangesLimit),nn=[],Dt=0,sn=0;Dt<this._length;Dt++){var un=this._nestingLevels[Dt];(un<Ht||un===Ht&&Ot++<this._foldingRangesLimit)&&(gt[sn]=this._startIndexes[Dt],pt[sn]=this._endIndexes[Dt],nn[sn]=this._types[Dt],sn++)}return new D(gt,pt,nn)}},Ft}();function At(Ft,gt){for(var pt=Ft.sort(function(un,Sn){var Ln=un.start-Sn.start;return Ln===0&&(Ln=un.rank-Sn.rank),Ln}),Dt=new _t(gt),Ot=void 0,Ht=[],Jt=0,nn=pt;Jt<nn.length;Jt++){var sn=nn[Jt];if(!Ot)Ot=sn,Dt.add(sn.start,sn.end,sn.kind&&sn.kind.value,Ht.length);else if(sn.start>Ot.start)if(sn.end<=Ot.end)Ht.push(Ot),Ot=sn,Dt.add(sn.start,sn.end,sn.kind&&sn.kind.value,Ht.length);else{if(sn.start>Ot.end){do Ot=Ht.pop();while(Ot&&sn.start>Ot.end);Ot&&Ht.push(Ot),Ot=sn}Dt.add(sn.start,sn.end,sn.kind&&sn.kind.value,Ht.length)}}return Dt.toIndentRanges()}var Yt="init",Ke=function(){function Ft(gt,pt,Dt,Ot){if(this.editorModel=gt,this.id=Yt,pt.length){var Ht=function(nn){return{range:{startLineNumber:nn.startLineNumber,startColumn:0,endLineNumber:nn.endLineNumber,endColumn:gt.getLineLength(nn.endLineNumber)},options:{stickiness:1}}};this.decorationIds=gt.deltaDecorations([],pt.map(Ht)),this.timeout=setTimeout(Dt,Ot)}}return Ft.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)},Ft.prototype.compute=function(gt){var pt=[];if(this.decorationIds)for(var Dt=0,Ot=this.decorationIds;Dt<Ot.length;Dt++){var Ht=Ot[Dt],Jt=this.editorModel.getDecorationRange(Ht);Jt&&pt.push({start:Jt.startLineNumber,end:Jt.endLineNumber,rank:1})}return Promise.resolve(At(pt,Number.MAX_VALUE))},Ft}(),Ye=o("T8No"),Xe=o("t9D7"),Ze=o("MD5Z"),We=function(){var Ft=function(pt,Dt){return Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ot,Ht){Ot.__proto__=Ht}||function(Ot,Ht){for(var Jt in Ht)Ht.hasOwnProperty(Jt)&&(Ot[Jt]=Ht[Jt])},Ft(pt,Dt)};return function(gt,pt){Ft(gt,pt);function Dt(){this.constructor=gt}gt.prototype=pt===null?Object.create(pt):(Dt.prototype=pt.prototype,new Dt)}}(),Qe=function(Ft,gt,pt,Dt){var Ot=arguments.length,Ht=Ot<3?gt:Dt===null?Dt=Object.getOwnPropertyDescriptor(gt,pt):Dt,Jt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ht=Reflect.decorate(Ft,gt,pt,Dt);else for(var nn=Ft.length-1;nn>=0;nn--)(Jt=Ft[nn])&&(Ht=(Ot<3?Jt(Ht):Ot>3?Jt(gt,pt,Ht):Jt(gt,pt))||Ht);return Ot>3&&Ht&&Object.defineProperty(gt,pt,Ht),Ht},Ee=function(Ft,gt){return function(pt,Dt){gt(pt,Dt,Ft)}},W=new Ye.d("foldingEnabled",!1),ee=function(Ft){We(gt,Ft);function gt(pt,Dt){var Ot=Ft.call(this)||this;Ot.contextKeyService=Dt,Ot.localToDispose=Ot._register(new B.b),Ot.editor=pt;var Ht=Ot.editor.getOptions();return Ot._isEnabled=Ht.get(30),Ot._useFoldingProviders=Ht.get(31)!=="indentation",Ot.foldingModel=null,Ot.hiddenRangeModel=null,Ot.rangeProvider=null,Ot.foldingRegionPromise=null,Ot.foldingStateMemento=null,Ot.foldingModelPromise=null,Ot.updateScheduler=null,Ot.cursorChangedScheduler=null,Ot.mouseDownInfo=null,Ot.foldingDecorationProvider=new z(pt),Ot.foldingDecorationProvider.autoHideFoldingControls=Ht.get(84)==="mouseover",Ot.foldingDecorationProvider.showFoldingHighlights=Ht.get(32),Ot.foldingEnabled=W.bindTo(Ot.contextKeyService),Ot.foldingEnabled.set(Ot._isEnabled),Ot._register(Ot.editor.onDidChangeModel(function(){return Ot.onModelChanged()})),Ot._register(Ot.editor.onDidChangeConfiguration(function(Jt){if(Jt.hasChanged(30)){var nn=Ot.editor.getOptions();Ot._isEnabled=nn.get(30),Ot.foldingEnabled.set(Ot._isEnabled),Ot.onModelChanged()}if(Jt.hasChanged(84)||Jt.hasChanged(32)){var sn=Ot.editor.getOptions();Ot.foldingDecorationProvider.autoHideFoldingControls=sn.get(84)==="mouseover",Ot.foldingDecorationProvider.showFoldingHighlights=sn.get(32),Ot.onModelContentChanged()}if(Jt.hasChanged(31)){var un=Ot.editor.getOptions();Ot._useFoldingProviders=un.get(31)!=="indentation",Ot.onFoldingStrategyChanged()}})),Ot.onModelChanged(),Ot}return gt.get=function(pt){return pt.getContribution(gt.ID)},gt.prototype.saveViewState=function(){var pt=this.editor.getModel();if(!pt||!this._isEnabled||pt.isTooLargeForTokenization())return{};if(this.foldingModel){var Dt=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),Ot=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:Dt,lineCount:pt.getLineCount(),provider:Ot}}},gt.prototype.restoreViewState=function(pt){var Dt=this.editor.getModel();if(!(!Dt||!this._isEnabled||Dt.isTooLargeForTokenization()||!this.hiddenRangeModel)&&!(!pt||!pt.collapsedRegions||pt.lineCount!==Dt.getLineCount())){(pt.provider===ye||pt.provider===Yt)&&(this.foldingStateMemento=pt);var Ot=pt.collapsedRegions;if(this.hiddenRangeModel.applyMemento(Ot)){var Ht=this.getFoldingModel();Ht&&Ht.then(function(Jt){Jt&&Jt.applyMemento(Ot)}).then(void 0,ie.e)}}},gt.prototype.onModelChanged=function(){var pt=this;this.localToDispose.clear();var Dt=this.editor.getModel();!this._isEnabled||!Dt||Dt.isTooLargeForTokenization()||(this.foldingModel=new te(Dt,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new we(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(function(Ot){return pt.onHiddenRangesChanges(Ot)})),this.updateScheduler=new F.a(200),this.cursorChangedScheduler=new F.d(function(){return pt.revealCursor()},200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(he.n.onDidChange(function(){return pt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(function(){return pt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelContent(function(){return pt.onModelContentChanged()})),this.localToDispose.add(this.editor.onDidChangeCursorPosition(function(){return pt.onCursorPositionChanged()})),this.localToDispose.add(this.editor.onMouseDown(function(Ot){return pt.onEditorMouseDown(Ot)})),this.localToDispose.add(this.editor.onMouseUp(function(Ot){return pt.onEditorMouseUp(Ot)})),this.localToDispose.add({dispose:function(){pt.foldingRegionPromise&&(pt.foldingRegionPromise.cancel(),pt.foldingRegionPromise=null),pt.updateScheduler&&pt.updateScheduler.cancel(),pt.updateScheduler=null,pt.foldingModel=null,pt.foldingModelPromise=null,pt.hiddenRangeModel=null,pt.cursorChangedScheduler=null,pt.foldingStateMemento=null,pt.rangeProvider&&pt.rangeProvider.dispose(),pt.rangeProvider=null}}),this.onModelContentChanged())},gt.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},gt.prototype.getRangeProvider=function(pt){var Dt=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new _e(pt),this._useFoldingProviders&&this.foldingModel){var Ot=he.n.ordered(this.foldingModel.textModel);if(Ot.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var Ht=this.rangeProvider=new Ke(pt,this.foldingStateMemento.collapsedRegions,function(){Dt.foldingStateMemento=null,Dt.onFoldingStrategyChanged()},3e4);return Ht}else Ot.length>0&&(this.rangeProvider=new Ue(pt,Ot))}return this.foldingStateMemento=null,this.rangeProvider},gt.prototype.getFoldingModel=function(){return this.foldingModelPromise},gt.prototype.onModelContentChanged=function(){var pt=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(function(){var Dt=pt.foldingModel;if(!Dt)return null;var Ot=pt.foldingRegionPromise=Object(F.f)(function(Ht){return pt.getRangeProvider(Dt.textModel).compute(Ht)});return Ot.then(function(Ht){if(Ht&&Ot===pt.foldingRegionPromise){var Jt=pt.editor.getSelections(),nn=Jt?Jt.map(function(sn){return sn.startLineNumber}):[];Dt.update(Ht,nn)}return Dt})}).then(void 0,function(Dt){return Object(ie.e)(Dt),null}))},gt.prototype.onHiddenRangesChanges=function(pt){if(this.hiddenRangeModel&&pt.length){var Dt=this.editor.getSelections();Dt&&this.hiddenRangeModel.adjustSelections(Dt)&&this.editor.setSelections(Dt)}this.editor.setHiddenAreas(pt)},gt.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},gt.prototype.revealCursor=function(){var pt=this,Dt=this.getFoldingModel();!Dt||Dt.then(function(Ot){if(Ot){var Ht=pt.editor.getSelections();if(Ht&&Ht.length>0){for(var Jt=[],nn=function(An){var Gn=An.selectionStartLineNumber;pt.hiddenRangeModel&&pt.hiddenRangeModel.isHidden(Gn)&&Jt.push.apply(Jt,Ot.getAllRegionsAtLine(Gn,function(Jn){return Jn.isCollapsed&&Gn>Jn.startLineNumber}))},sn=0,un=Ht;sn<un.length;sn++){var Sn=un[sn];nn(Sn)}Jt.length&&(Ot.toggleCollapseState(Jt),pt.reveal(Ht[0].getPosition()))}}}).then(void 0,ie.e)},gt.prototype.onEditorMouseDown=function(pt){if(this.mouseDownInfo=null,!(!this.hiddenRangeModel||!pt.target||!pt.target.range)&&!(!pt.event.leftButton&&!pt.event.middleButton)){var Dt=pt.target.range,Ot=!1;switch(pt.target.type){case 4:var Ht=pt.target.detail,Jt=pt.target.element.offsetLeft,nn=Ht.offsetX-Jt;if(nn<5)return;Ot=!0;break;case 6:{if(this.hiddenRangeModel.hasRanges()){var sn=this.editor.getModel();if(sn&&Dt.startColumn===sn.getLineMaxColumn(Dt.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:Dt.startLineNumber,iconClicked:Ot}}},gt.prototype.onEditorMouseUp=function(pt){var Dt=this,Ot=this.getFoldingModel();if(!(!Ot||!this.mouseDownInfo||!pt.target)){var Ht=this.mouseDownInfo.lineNumber,Jt=this.mouseDownInfo.iconClicked,nn=pt.target.range;if(!(!nn||nn.startLineNumber!==Ht)){if(Jt){if(pt.target.type!==4)return}else{var sn=this.editor.getModel();if(!sn||nn.startColumn!==sn.getLineMaxColumn(Ht))return}Ot.then(function(un){if(un){var Sn=un.getRegionAtLine(Ht);if(Sn&&Sn.startLineNumber===Ht){var Ln=Sn.isCollapsed;if(Jt||Ln){var An=[],Gn=pt.event.middleButton||pt.event.shiftKey;if(Gn)for(var Jn=0,$n=un.getRegionsInside(Sn);Jn<$n.length;Jn++){var pi=$n[Jn];pi.isCollapsed===Ln&&An.push(pi)}(Ln||!Gn||An.length===0)&&An.push(Sn),un.toggleCollapseState(An),Dt.reveal({lineNumber:Ht,column:1})}}}}).then(void 0,ie.e)}}},gt.prototype.reveal=function(pt){this.editor.revealPositionInCenterIfOutsideViewport(pt,0)},gt.ID="editor.contrib.folding",gt=Qe([Ee(1,Ye.c)],gt),gt}(B.a),Ae=function(Ft){We(gt,Ft);function gt(){return Ft!==null&&Ft.apply(this,arguments)||this}return gt.prototype.runEditorCommand=function(pt,Dt,Ot){var Ht=this,Jt=ee.get(Dt);if(!!Jt){var nn=Jt.getFoldingModel();if(nn)return this.reportTelemetry(pt,Dt),nn.then(function(sn){if(sn){Ht.invoke(Jt,sn,Dt,Ot);var un=Dt.getSelection();un&&Jt.reveal(un.getStartPosition())}})}},gt.prototype.getSelectedLines=function(pt){var Dt=pt.getSelections();return Dt?Dt.map(function(Ot){return Ot.startLineNumber}):[]},gt.prototype.getLineNumbers=function(pt,Dt){return pt&&pt.selectionLines?pt.selectionLines.map(function(Ot){return Ot+1}):this.getSelectedLines(Dt)},gt.prototype.run=function(pt,Dt){},gt}(G.b);function me(Ft){if(!ne.k(Ft)){if(!ne.i(Ft))return!1;var gt=Ft;if(!ne.k(gt.levels)&&!ne.h(gt.levels)||!ne.k(gt.direction)&&!ne.j(gt.direction)||!ne.k(gt.selectionLines)&&(!ne.d(gt.selectionLines)||!gt.selectionLines.every(ne.h)))return!1}return!0}var Me=function(Ft){We(gt,Ft);function gt(){return Ft.call(this,{id:"editor.unfold",label:re.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:W,kbOpts:{kbExpr:oe.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:me,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 gt.prototype.invoke=function(pt,Dt,Ot,Ht){var Jt=Ht&&Ht.levels||1,nn=this.getLineNumbers(Ht,Ot);Ht&&Ht.direction==="up"?h(Dt,!1,Jt,nn):_(Dt,!1,Jt,nn)},gt}(Ae),Re=function(Ft){We(gt,Ft);function gt(){return Ft.call(this,{id:"editor.unfoldRecursively",label:re.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:W,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(V.a)(2048|41,2048|89),weight:100}})||this}return gt.prototype.invoke=function(pt,Dt,Ot,Ht){_(Dt,!1,Number.MAX_VALUE,this.getSelectedLines(Ot))},gt}(Ae),ge=function(Ft){We(gt,Ft);function gt(){return Ft.call(this,{id:"editor.fold",label:re.a("foldAction.label","Fold"),alias:"Fold",precondition:W,kbOpts:{kbExpr:oe.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:me,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return gt.prototype.invoke=function(pt,Dt,Ot,Ht){var Jt=this.getLineNumbers(Ht,Ot),nn=Ht&&Ht.levels,sn=Ht&&Ht.direction;typeof nn!="number"&&typeof sn!="string"?g(Dt,!0,Jt):sn==="up"?h(Dt,!0,nn||1,Jt):_(Dt,!0,nn||1,Jt)},gt}(Ae),nt=function(Ft){We(gt,Ft);function gt(){return Ft.call(this,{id:"editor.toggleFold",label:re.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:W,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(V.a)(2048|41,2048|42),weight:100}})||this}return gt.prototype.invoke=function(pt,Dt,Ot){var Ht=this.getSelectedLines(Ot);U(Dt,1,Ht)},gt}(Ae),St=function(Ft){We(gt,Ft);function gt(){return Ft.call(this,{id:"editor.foldRecursively",label:re.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:W,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(V.a)(2048|41,2048|87),weight:100}})||this}return gt.prototype.invoke=function(pt,Dt,Ot){var Ht=this.getSelectedLines(Ot);_(Dt,!0,Number.MAX_VALUE,Ht)},gt}(Ae),xt=function(Ft){We(gt,Ft);function gt(){return Ft.call(this,{id:"editor.foldAllBlockComments",label:re.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:W,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(V.a)(2048|41,2048|85),weight:100}})||this}return gt.prototype.invoke=function(pt,Dt,Ot){if(Dt.regions.hasTypes())E(Dt,he.m.Comment.value,!0);else{var Ht=Ot.getModel();if(!Ht)return;var Jt=ce.a.getComments(Ht.getLanguageIdentifier().id);if(Jt&&Jt.blockCommentStartToken){var nn=new RegExp("^\\s*"+Object(P.p)(Jt.blockCommentStartToken));v(Dt,nn,!0)}}},gt}(Ae),Mt=function(Ft){We(gt,Ft);function gt(){return Ft.call(this,{id:"editor.foldAllMarkerRegions",label:re.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:W,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(V.a)(2048|41,2048|29),weight:100}})||this}return gt.prototype.invoke=function(pt,Dt,Ot){if(Dt.regions.hasTypes())E(Dt,he.m.Region.value,!0);else{var Ht=Ot.getModel();if(!Ht)return;var Jt=ce.a.getFoldingRules(Ht.getLanguageIdentifier().id);if(Jt&&Jt.markers&&Jt.markers.start){var nn=new RegExp(Jt.markers.start);v(Dt,nn,!0)}}},gt}(Ae),zt=function(Ft){We(gt,Ft);function gt(){return Ft.call(this,{id:"editor.unfoldAllMarkerRegions",label:re.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:W,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(V.a)(2048|41,2048|30),weight:100}})||this}return gt.prototype.invoke=function(pt,Dt,Ot){if(Dt.regions.hasTypes())E(Dt,he.m.Region.value,!1);else{var Ht=Ot.getModel();if(!Ht)return;var Jt=ce.a.getFoldingRules(Ht.getLanguageIdentifier().id);if(Jt&&Jt.markers&&Jt.markers.start){var nn=new RegExp(Jt.markers.start);v(Dt,nn,!1)}}},gt}(Ae),Gt=function(Ft){We(gt,Ft);function gt(){return Ft.call(this,{id:"editor.foldAll",label:re.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:W,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(V.a)(2048|41,2048|21),weight:100}})||this}return gt.prototype.invoke=function(pt,Dt,Ot){_(Dt,!0)},gt}(Ae),on=function(Ft){We(gt,Ft);function gt(){return Ft.call(this,{id:"editor.unfoldAll",label:re.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:W,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(V.a)(2048|41,2048|40),weight:100}})||this}return gt.prototype.invoke=function(pt,Dt,Ot){_(Dt,!1)},gt}(Ae),On=function(Ft){We(gt,Ft);function gt(){return Ft!==null&&Ft.apply(this,arguments)||this}return gt.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(gt.ID_PREFIX.length))},gt.prototype.invoke=function(pt,Dt,Ot){p(Dt,this.getFoldingLevel(),!0,this.getSelectedLines(Ot))},gt.ID_PREFIX="editor.foldLevel",gt.ID=function(pt){return gt.ID_PREFIX+pt},gt}(Ae);Object(G.h)(ee.ID,ee),Object(G.f)(Me),Object(G.f)(Re),Object(G.f)(ge),Object(G.f)(St),Object(G.f)(Gt),Object(G.f)(on),Object(G.f)(xt),Object(G.f)(Mt),Object(G.f)(zt),Object(G.f)(nt);for(var yn=1;yn<=7;yn++)Object(G.i)(new On({id:On.ID(yn),label:re.a("foldLevelAction.label","Fold Level {0}",yn),alias:"Fold Level "+yn,precondition:W,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(V.a)(2048|41,2048|21+yn),weight:100}}));var Mn=Object(Ze.Rb)("editor.foldBackground",{light:Object(Ze.dc)(Ze.K,.3),dark:Object(Ze.dc)(Ze.K,.3),hc:null},re.a("editorSelectionBackground","Color of the editor selection."));Object(Xe.e)(function(Ft,gt){var pt=Ft.getColor(Mn);pt&&gt.addRule(".monaco-editor .folded-background { background-color: "+pt+"; }")})},e1ni:function(Et,A,o){},eC1c:function(Et,A,o){},eLzo:function(Et,A,o){"use strict";o.d(A,"a",function(){return ne}),o.d(A,"b",function(){return P}),o.d(A,"c",function(){return V}),o.d(A,"e",function(){return G}),o.d(A,"d",function(){return x});var R=o("6OMU"),re=o("Vhoy"),ne=function(){function S(I,K){I===void 0&&(I=""),K===void 0&&(K=!1);var D,T;this._value=I,typeof K=="boolean"?(this._isTrusted=K,this._supportThemeIcons=!1):(this._isTrusted=(D=K.isTrusted)!==null&&D!==void 0?D:!1,this._supportThemeIcons=(T=K.supportThemeIcons)!==null&&T!==void 0?T:!1)}return Object.defineProperty(S.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"supportThemeIcons",{get:function(){return this._supportThemeIcons},enumerable:!0,configurable:!0}),S.prototype.appendText=function(I){return this._value+=(this._supportThemeIcons?Object(re.a)(I):I).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace(`
`,`
`),this},S.prototype.appendMarkdown=function(I){return this._value+=I,this},S.prototype.appendCodeblock=function(I,K){return this._value+="\n```",this._value+=I,this._value+=`
`,this._value+=K,this._value+="\n```\n",this},S}();function P(S){return F(S)?!S.value:Array.isArray(S)?S.every(P):!0}function F(S){return S instanceof ne?!0:S&&typeof S=="object"?typeof S.value=="string"&&(typeof S.isTrusted=="boolean"||S.isTrusted===void 0)&&(typeof S.supportThemeIcons=="boolean"||S.supportThemeIcons===void 0):!1}function V(S,I){return!S&&!I?!0:!S||!I?!1:Array.isArray(S)&&Array.isArray(I)?Object(R.g)(S,I,B):F(S)&&F(I)?B(S,I):!1}function B(S,I){return S===I?!0:!S||!I?!1:S.value===I.value&&S.isTrusted===I.isTrusted&&S.supportThemeIcons===I.supportThemeIcons}function G(S){return S&&S.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function x(S){var I=[],K=S.split("|").map(function(p){return p.trim()});S=K[0];var D=K[1];if(D){var T=/height=(\d+)/.exec(D),te=/width=(\d+)/.exec(D),U=T?T[1]:"",_=te?te[1]:"",h=isFinite(parseInt(_)),g=isFinite(parseInt(U));h&&I.push('width="'+_+'"'),g&&I.push('height="'+U+'"')}return{href:S,dimensions:I}}},eizg:function(Et,A,o){},ep4t:function(Et,A,o){"use strict";o.r(A),o.d(A,"SuggestController",function(){return Y}),o.d(A,"TriggerSuggestAction",function(){return Ve});var R=o("OBOq"),re=o("6OMU"),ne=o("/cxE"),P=o("/kV6"),F=o("pmY6"),V=o("sswD"),B=o("0/Sa"),G=o("aokT"),x=o("wQH0"),S=o("tXSY"),I=o("uACm"),K=o("QDVR"),D=o("A+jI"),T=o("twdY"),te=o("X+cX"),U=o("Cg/j"),_=o("+7oY"),h=o("9fML"),g=function(){var J=function(Le,it){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Je,Be){Je.__proto__=Be}||function(Je,Be){for(var bt in Be)Be.hasOwnProperty(bt)&&(Je[bt]=Be[bt])},J(Le,it)};return function(be,Le){J(be,Le);function it(){this.constructor=be}be.prototype=Le===null?Object.create(Le):(it.prototype=Le.prototype,new it)}}(),p=function(J,be,Le,it){var Je=arguments.length,Be=Je<3?be:it===null?it=Object.getOwnPropertyDescriptor(be,Le):it,bt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Be=Reflect.decorate(J,be,Le,it);else for(var Lt=J.length-1;Lt>=0;Lt--)(bt=J[Lt])&&(Be=(Je<3?bt(Be):Je>3?bt(be,Le,Be):bt(be,Le))||Be);return Je>3&&Be&&Object.defineProperty(be,Le,Be),Be},v=function(J,be){return function(Le,it){be(Le,it,J)}},E=function(){function J(){}return J.prototype.select=function(be,Le,it){if(it.length===0)return 0;for(var Je=it[0].score[0],Be=1;Be<it.length;Be++){var bt=it[Be],Lt=bt.score,$t=bt.completion;if(Lt[0]!==Je)break;if($t.preselect)return Be}return 0},J}(),k=function(J){g(be,J);function be(){return J!==null&&J.apply(this,arguments)||this}return be.prototype.memorize=function(Le,it,Je){},be.prototype.toJSON=function(){},be.prototype.fromJSON=function(){},be}(E),z=function(J){g(be,J);function be(){var Le=J!==null&&J.apply(this,arguments)||this;return Le._cache=new K.a(300,.66),Le._seq=0,Le}return be.prototype.memorize=function(Le,it,Je){var Be=Je.completion.label,bt=Le.getLanguageIdentifier().language+"/"+Be;this._cache.set(bt,{touch:this._seq++,type:Je.completion.kind,insertText:Je.completion.insertText})},be.prototype.select=function(Le,it,Je){if(Je.length===0)return 0;var Be=Le.getLineContent(it.lineNumber).substr(it.column-10,it.column-1);if(/\s$/.test(Be))return J.prototype.select.call(this,Le,it,Je);for(var bt=Je[0].score[0],Lt=-1,$t=-1,Tt=-1,Bt=0;Bt<Je.length&&Je[Bt].score[0]===bt;Bt++){var fn=Le.getLanguageIdentifier().language+"/"+Je[Bt].completion.label,Cn=this._cache.peek(fn);if(Cn&&Cn.touch>Tt&&Cn.type===Je[Bt].completion.kind&&Cn.insertText===Je[Bt].completion.insertText&&(Tt=Cn.touch,$t=Bt),Je[Bt].completion.preselect&&Lt===-1)return Lt=Bt}return $t!==-1?$t:Lt!==-1?Lt:0},be.prototype.toJSON=function(){var Le=[];return this._cache.forEach(function(it,Je){Le.push([Je,it])}),Le},be.prototype.fromJSON=function(Le){this._cache.clear();for(var it=0,Je=0,Be=Le;Je<Be.length;Je++){var bt=Be[Je],Lt=bt[0],$t=bt[1];$t.touch=it,$t.type=typeof $t.type=="number"?$t.type:Object(T.B)($t.type),this._cache.set(Lt,$t)}this._seq=this._cache.size},be}(E),oe=function(J){g(be,J);function be(){var Le=J!==null&&J.apply(this,arguments)||this;return Le._trie=K.c.forStrings(),Le._seq=0,Le}return be.prototype.memorize=function(Le,it,Je){var Be=Le.getWordUntilPosition(it).word,bt=Le.getLanguageIdentifier().language+"/"+Be;this._trie.set(bt,{type:Je.completion.kind,insertText:Je.completion.insertText,touch:this._seq++})},be.prototype.select=function(Le,it,Je){var Be=Le.getWordUntilPosition(it).word;if(!Be)return J.prototype.select.call(this,Le,it,Je);var bt=Le.getLanguageIdentifier().language+"/"+Be,Lt=this._trie.get(bt);if(Lt||(Lt=this._trie.findSubstr(bt)),Lt)for(var $t=0;$t<Je.length;$t++){var Tt=Je[$t].completion,Bt=Tt.kind,fn=Tt.insertText;if(Bt===Lt.type&&fn===Lt.insertText)return $t}return J.prototype.select.call(this,Le,it,Je)},be.prototype.toJSON=function(){var Le=[];return this._trie.forEach(function(it,Je){return Le.push([Je,it])}),Le.sort(function(it,Je){return-(it[1].touch-Je[1].touch)}).forEach(function(it,Je){return it[1].touch=Je}),Le.slice(0,200)},be.prototype.fromJSON=function(Le){if(this._trie.clear(),Le.length>0){this._seq=Le[0][1].touch+1;for(var it=0,Je=Le;it<Je.length;it++){var Be=Je[it],bt=Be[0],Lt=Be[1];Lt.type=typeof Lt.type=="number"?Lt.type:Object(T.B)(Lt.type),this._trie.set(bt,Lt)}}},be}(E),fe=function(J){g(be,J);function be(Le,it){var Je=J.call(this)||this;Je._storageService=Le,Je._configService=it,Je._storagePrefix="suggest/memories";var Be=function(){var Lt=Je._configService.getValue("editor.suggestSelection"),$t=Je._configService.getValue("editor.suggest.shareSuggestSelections");Je._update(Lt,$t,!1)};return Je._persistSoon=Je._register(new te.d(function(){return Je._saveState()},500)),Je._register(Le.onWillSaveState(function(bt){bt.reason===D.c.SHUTDOWN&&Je._saveState()})),Je._register(Je._configService.onDidChangeConfiguration(function(bt){(bt.affectsConfiguration("editor.suggestSelection")||bt.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&Be()})),Je._register(Je._storageService.onDidChangeStorage(function(bt){bt.scope===0&&bt.key.indexOf(Je._storagePrefix)===0&&(document.hasFocus()||Je._update(Je._mode,Je._shareMem,!0))})),Be(),Je}return be.prototype._update=function(Le,it,Je){if(!(!Je&&this._mode===Le&&this._shareMem===it)){this._shareMem=it,this._mode=Le,this._strategy=Le==="recentlyUsedByPrefix"?new oe:Le==="recentlyUsed"?new z:new k;try{var Be=it?0:1,bt=this._storageService.get(this._storagePrefix+"/"+this._mode,Be);bt&&this._strategy.fromJSON(JSON.parse(bt))}catch(Lt){}}},be.prototype.memorize=function(Le,it,Je){this._strategy.memorize(Le,it,Je),this._persistSoon.schedule()},be.prototype.select=function(Le,it,Je){return this._strategy.select(Le,it,Je)},be.prototype._saveState=function(){var Le=JSON.stringify(this._strategy),it=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,Le,it)},be=p([v(0,D.a),v(1,_.a)],be),be}(F.a),Se=Object(U.c)("ISuggestMemories");Object(h.b)(Se,fe,!0);var we=o("3/fG"),q=o("nnTU"),X=o("T8No"),ce=o("nrhi"),Ne=o("QVNv"),He=function(J,be,Le,it){var Je=arguments.length,Be=Je<3?be:it===null?it=Object.getOwnPropertyDescriptor(be,Le):it,bt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Be=Reflect.decorate(J,be,Le,it);else for(var Lt=J.length-1;Lt>=0;Lt--)(bt=J[Lt])&&(Be=(Je<3?bt(Be):Je>3?bt(be,Le,Be):bt(be,Le))||Be);return Je>3&&Be&&Object.defineProperty(be,Le,Be),Be},_e=function(J,be){return function(Le,it){be(Le,it,J)}},de=function(){function J(be,Le){this._editor=be,this._index=0,this._ckOtherSuggestions=J.OtherSuggestions.bindTo(Le)}return J.prototype.dispose=function(){this.reset()},J.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(F.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},J.prototype.set=function(be,Le){var it=this,Je=be.model,Be=be.index;if(Je.items.length===0){this.reset();return}var bt=J._moveIndex(!0,Je,Be);if(bt===Be){this.reset();return}this._acceptNext=Le,this._model=Je,this._index=Be,this._listener=this._editor.onDidChangeCursorPosition(function(){it._ignore||it.reset()}),this._ckOtherSuggestions.set(!0)},J._moveIndex=function(be,Le,it){for(var Je=it;Je=(Je+Le.items.length+(be?1:-1))%Le.items.length,!(Je===it||!Le.items[Je].completion.additionalTextEdits););return Je},J.prototype.next=function(){this._move(!0)},J.prototype.prev=function(){this._move(!1)},J.prototype._move=function(be){if(!!this._model)try{this._ignore=!0,this._index=J._moveIndex(be,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},J.OtherSuggestions=new X.d("hasOtherSuggestions",!1),J=He([_e(1,X.c)],J),J}(),se=o("MI8n"),he=o("gCVg"),ie=o("fpMC"),$=o("N0LK"),ve=function(){function J(be,Le){this.leadingLineContent=be,this.characterCountDelta=Le}return J}(),ye=function(){function J(be,Le,it,Je,Be,bt){this._snippetCompareFn=J._compareCompletionItems,this._items=be,this._column=Le,this._wordDistance=Je,this._options=Be,this._refilterKind=1,this._lineContext=it,bt==="top"?this._snippetCompareFn=J._compareCompletionItemsSnippetsUp:bt==="bottom"&&(this._snippetCompareFn=J._compareCompletionItemsSnippetsDown)}return Object.defineProperty(J.prototype,"lineContext",{get:function(){return this._lineContext},set:function(Le){(this._lineContext.leadingLineContent!==Le.leadingLineContent||this._lineContext.characterCountDelta!==Le.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta<Le.characterCountDelta&&this._filteredItems?2:1,this._lineContext=Le)},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),J.prototype.adopt=function(be){for(var Le=new Array,it=0;it<this._items.length;)be.has(this._items[it].provider)?it++:(Le.push(this._items[it]),this._items[it]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,Le},Object.defineProperty(J.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),J.prototype._ensureCachedState=function(){this._refilterKind!==0&&this._createCachedState()},J.prototype._createCachedState=function(){this._isIncomplete=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};for(var be=this._lineContext,Le=be.leadingLineContent,it=be.characterCountDelta,Je="",Be="",bt=this._refilterKind===1?this._items:this._filteredItems,Lt=[],$t=!this._options.filterGraceful||bt.length>2e3?ie.d:ie.e,Tt=0;Tt<bt.length;Tt++){var Bt=bt[Tt];Bt.container.incomplete&&this._isIncomplete.add(Bt.provider);var fn=Bt.position.column-Bt.editStart.column,Cn=fn+it-(Bt.position.column-this._column);if(Je.length!==Cn&&(Je=Cn===0?"":Le.slice(-Cn),Be=Je.toLowerCase()),Bt.word=Je,Cn===0)Bt.score=ie.a.Default;else{for(var vn=0;vn<fn;){var Hn=Je.charCodeAt(vn);if(Hn===32||Hn===9)vn+=1;else break}var Yn=typeof Bt.completion.label=="string"?Bt.completion.label:Bt.completion.label.name;if(vn>=Cn)Bt.score=ie.a.Default;else if(typeof Bt.completion.filterText=="string"){var Zn=$t(Je,Be,vn,Bt.completion.filterText,Bt.filterTextLow,0,!1);if(!Zn)continue;Object($.f)(Bt.completion.filterText,Yn)===0?Bt.score=Zn:(Bt.score=Object(ie.b)(Je,Be,vn,Yn,Bt.labelLow,0),Bt.score[0]=Zn[0])}else{var Zn=$t(Je,Be,vn,Yn,Bt.labelLow,0,!1);if(!Zn)continue;Bt.score=Zn}}switch(Bt.idx=Tt,Bt.distance=this._wordDistance.distance(Bt.position,Bt.completion),Lt.push(Bt),this._stats.suggestionCount++,Bt.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=Lt.sort(this._snippetCompareFn),this._refilterKind=0},J._compareCompletionItems=function(be,Le){return be.score[0]>Le.score[0]?-1:be.score[0]<Le.score[0]?1:be.distance<Le.distance?-1:be.distance>Le.distance?1:be.idx<Le.idx?-1:be.idx>Le.idx?1:0},J._compareCompletionItemsSnippetsDown=function(be,Le){if(be.completion.kind!==Le.completion.kind){if(be.completion.kind===25)return 1;if(Le.completion.kind===25)return-1}return J._compareCompletionItems(be,Le)},J._compareCompletionItemsSnippetsUp=function(be,Le){if(be.completion.kind!==Le.completion.kind){if(be.completion.kind===25)return-1;if(Le.completion.kind===25)return 1}return J._compareCompletionItems(be,Le)},J}(),Ue=o("JQT/"),tt=o("cGHE"),_t=o("24hK"),At=function(J,be,Le,it){function Je(Be){return Be instanceof Le?Be:new Le(function(bt){bt(Be)})}return new(Le||(Le=Promise))(function(Be,bt){function Lt(Bt){try{Tt(it.next(Bt))}catch(fn){bt(fn)}}function $t(Bt){try{Tt(it.throw(Bt))}catch(fn){bt(fn)}}function Tt(Bt){Bt.done?Be(Bt.value):Je(Bt.value).then(Lt,$t)}Tt((it=it.apply(J,be||[])).next())})},Yt=function(J,be){var Le={label:0,sent:function(){if(Be[0]&1)throw Be[1];return Be[1]},trys:[],ops:[]},it,Je,Be,bt;return bt={next:Lt(0),throw:Lt(1),return:Lt(2)},typeof Symbol=="function"&&(bt[Symbol.iterator]=function(){return this}),bt;function Lt(Tt){return function(Bt){return $t([Tt,Bt])}}function $t(Tt){if(it)throw new TypeError("Generator is already executing.");for(;Le;)try{if(it=1,Je&&(Be=Tt[0]&2?Je.return:Tt[0]?Je.throw||((Be=Je.return)&&Be.call(Je),0):Je.next)&&!(Be=Be.call(Je,Tt[1])).done)return Be;switch(Je=0,Be&&(Tt=[Tt[0]&2,Be.value]),Tt[0]){case 0:case 1:Be=Tt;break;case 4:return Le.label++,{value:Tt[1],done:!1};case 5:Le.label++,Je=Tt[1],Tt=[0];continue;case 7:Tt=Le.ops.pop(),Le.trys.pop();continue;default:if(Be=Le.trys,!(Be=Be.length>0&&Be[Be.length-1])&&(Tt[0]===6||Tt[0]===2)){Le=0;continue}if(Tt[0]===3&&(!Be||Tt[1]>Be[0]&&Tt[1]<Be[3])){Le.label=Tt[1];break}if(Tt[0]===6&&Le.label<Be[1]){Le.label=Be[1],Be=Tt;break}if(Be&&Le.label<Be[2]){Le.label=Be[2],Le.ops.push(Tt);break}Be[2]&&Le.ops.pop(),Le.trys.pop();continue}Tt=be.call(J,Le)}catch(Bt){Tt=[6,Bt],Je=0}finally{it=Be=0}if(Tt[0]&5)throw Tt[1];return{value:Tt[0]?Tt[1]:void 0,done:!0}}},Ke=function(){function J(){}return J.prototype.provideSelectionRanges=function(be,Le){return At(this,void 0,void 0,function(){var it,Je,Be,bt,Lt;return Yt(this,function($t){switch($t.label){case 0:it=[],Je=function(Bt){var fn,Cn;return Yt(this,function(vn){switch(vn.label){case 0:return fn=[],it.push(fn),Cn=new Map,[4,new Promise(function(Hn){return J._bracketsRightYield(Hn,0,be,Bt,Cn)})];case 1:return vn.sent(),[4,new Promise(function(Hn){return J._bracketsLeftYield(Hn,0,be,Bt,Cn,fn)})];case 2:return vn.sent(),[2]}})},Be=0,bt=Le,$t.label=1;case 1:return Be<bt.length?(Lt=bt[Be],[5,Je(Lt)]):[3,4];case 2:$t.sent(),$t.label=3;case 3:return Be++,[3,1];case 4:return[2,it]}})})},J._bracketsRightYield=function(be,Le,it,Je,Be){for(var bt=new Map,Lt=Date.now();;){if(Le>=J._maxRounds){be();break}if(!Je){be();break}var $t=it.findNextBracket(Je);if(!$t){be();break}var Tt=Date.now()-Lt;if(Tt>J._maxDuration){setTimeout(function(){return J._bracketsRightYield(be,Le+1,it,Je,Be)});break}var Bt=$t.close[0];if($t.isOpen){var fn=bt.has(Bt)?bt.get(Bt):0;bt.set(Bt,fn+1)}else{var fn=bt.has(Bt)?bt.get(Bt):0;if(fn-=1,bt.set(Bt,Math.max(0,fn)),fn<0){var Cn=Be.get(Bt);Cn||(Cn=new _t.a,Be.set(Bt,Cn)),Cn.push($t.range)}}Je=$t.range.getEndPosition()}},J._bracketsLeftYield=function(be,Le,it,Je,Be,bt){for(var Lt=new Map,$t=Date.now();;){if(Le>=J._maxRounds&&Be.size===0){be();break}if(!Je){be();break}var Tt=it.findPrevBracket(Je);if(!Tt){be();break}var Bt=Date.now()-$t;if(Bt>J._maxDuration){setTimeout(function(){return J._bracketsLeftYield(be,Le+1,it,Je,Be,bt)});break}var fn=Tt.close[0];if(Tt.isOpen){var Cn=Lt.has(fn)?Lt.get(fn):0;if(Cn-=1,Lt.set(fn,Math.max(0,Cn)),Cn<0){var vn=Be.get(fn);if(vn){var Hn=vn.shift();vn.size===0&&Be.delete(fn);var Yn=G.a.fromPositions(Tt.range.getEndPosition(),Hn.getStartPosition()),Zn=G.a.fromPositions(Tt.range.getStartPosition(),Hn.getEndPosition());bt.push({range:Yn}),bt.push({range:Zn}),J._addBracketLeading(it,Zn,bt)}}}else{var Cn=Lt.has(fn)?Lt.get(fn):0;Lt.set(fn,Cn+1)}Je=Tt.range.getStartPosition()}},J._addBracketLeading=function(be,Le,it){if(Le.startLineNumber!==Le.endLineNumber){var Je=Le.startLineNumber,Be=be.getLineFirstNonWhitespaceColumn(Je);Be!==0&&Be!==Le.startColumn&&(it.push({range:G.a.fromPositions(new tt.a(Je,Be),Le.getEndPosition())}),it.push({range:G.a.fromPositions(new tt.a(Je,1),Le.getEndPosition())}));var bt=Je-1;if(bt>0){var Lt=be.getLineFirstNonWhitespaceColumn(bt);Lt===Le.startColumn&&Lt!==be.getLineLastNonWhitespaceColumn(bt)&&(it.push({range:G.a.fromPositions(new tt.a(bt,Lt),Le.getEndPosition())}),it.push({range:G.a.fromPositions(new tt.a(bt,1),Le.getEndPosition())}))}}},J._maxDuration=30,J._maxRounds=2,J}(),Ye=function(){var J=function(Le,it){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Je,Be){Je.__proto__=Be}||function(Je,Be){for(var bt in Be)Be.hasOwnProperty(bt)&&(Je[bt]=Be[bt])},J(Le,it)};return function(be,Le){J(be,Le);function it(){this.constructor=be}be.prototype=Le===null?Object.create(Le):(it.prototype=Le.prototype,new it)}}(),Xe=function(J,be,Le,it){function Je(Be){return Be instanceof Le?Be:new Le(function(bt){bt(Be)})}return new(Le||(Le=Promise))(function(Be,bt){function Lt(Bt){try{Tt(it.next(Bt))}catch(fn){bt(fn)}}function $t(Bt){try{Tt(it.throw(Bt))}catch(fn){bt(fn)}}function Tt(Bt){Bt.done?Be(Bt.value):Je(Bt.value).then(Lt,$t)}Tt((it=it.apply(J,be||[])).next())})},Ze=function(J,be){var Le={label:0,sent:function(){if(Be[0]&1)throw Be[1];return Be[1]},trys:[],ops:[]},it,Je,Be,bt;return bt={next:Lt(0),throw:Lt(1),return:Lt(2)},typeof Symbol=="function"&&(bt[Symbol.iterator]=function(){return this}),bt;function Lt(Tt){return function(Bt){return $t([Tt,Bt])}}function $t(Tt){if(it)throw new TypeError("Generator is already executing.");for(;Le;)try{if(it=1,Je&&(Be=Tt[0]&2?Je.return:Tt[0]?Je.throw||((Be=Je.return)&&Be.call(Je),0):Je.next)&&!(Be=Be.call(Je,Tt[1])).done)return Be;switch(Je=0,Be&&(Tt=[Tt[0]&2,Be.value]),Tt[0]){case 0:case 1:Be=Tt;break;case 4:return Le.label++,{value:Tt[1],done:!1};case 5:Le.label++,Je=Tt[1],Tt=[0];continue;case 7:Tt=Le.ops.pop(),Le.trys.pop();continue;default:if(Be=Le.trys,!(Be=Be.length>0&&Be[Be.length-1])&&(Tt[0]===6||Tt[0]===2)){Le=0;continue}if(Tt[0]===3&&(!Be||Tt[1]>Be[0]&&Tt[1]<Be[3])){Le.label=Tt[1];break}if(Tt[0]===6&&Le.label<Be[1]){Le.label=Be[1],Be=Tt;break}if(Be&&Le.label<Be[2]){Le.label=Be[2],Le.ops.push(Tt);break}Be[2]&&Le.ops.pop(),Le.trys.pop();continue}Tt=be.call(J,Le)}catch(Bt){Tt=[6,Bt],Je=0}finally{it=Be=0}if(Tt[0]&5)throw Tt[1];return{value:Tt[0]?Tt[1]:void 0,done:!0}}},We=function(){function J(){}return J.create=function(be,Le){return Xe(this,void 0,void 0,function(){var it,Je,Be,bt;return Ze(this,function(Lt){switch(Lt.label){case 0:return Le.getOption(89).localityBonus?Le.hasModel()?(it=Le.getModel(),Je=Le.getPosition(),be.canComputeWordRanges(it.uri)?[4,new Ke().provideSelectionRanges(it,[Je])]:[2,J.None]):[2,J.None]:[2,J.None];case 1:return Be=Lt.sent(),!Be||Be.length===0||Be[0].length===0?[2,J.None]:[4,be.computeWordRanges(it.uri,Be[0][0].range)];case 2:return bt=Lt.sent(),[2,new(function($t){Ye(Tt,$t);function Tt(){return $t!==null&&$t.apply(this,arguments)||this}return Tt.prototype.distance=function(Bt,fn){if(!bt||!Je.equals(Le.getPosition()))return 0;if(fn.kind===17)return 2<<20;var Cn=typeof fn.label=="string"?fn.label:fn.label.name,vn=bt[Cn];if(Object(re.p)(vn))return 2<<20;for(var Hn=Object(re.c)(vn,G.a.fromPositions(Bt),G.a.compareRangesUsingStarts),Yn=Hn>=0?vn[Hn]:vn[Math.max(0,~Hn-1)],Zn=Be.length,Vi=0,ii=Be[0];Vi<ii.length;Vi++){var Ai=ii[Vi];if(!G.a.containsRange(Ai.range,Yn))break;Zn-=1}return Zn},Tt}(J))]}})})},J.None=new(function(be){Ye(Le,be);function Le(){return be!==null&&be.apply(this,arguments)||this}return Le.prototype.distance=function(){return 0},Le}(J)),J}(),Qe=function(){function J(be,Le,it,Je){this.leadingLineContent=be.getLineContent(Le.lineNumber).substr(0,Le.column-1),this.leadingWord=be.getWordUntilPosition(Le),this.lineNumber=Le.lineNumber,this.column=Le.column,this.auto=it,this.shy=Je}return J.shouldAutoTrigger=function(be){if(!be.hasModel())return!1;var Le=be.getModel(),it=be.getPosition();Le.tokenizeIfCheap(it.lineNumber);var Je=Le.getWordAtPosition(it);return!(!Je||Je.endColumn!==it.column||!isNaN(Number(Je.word)))},J}(),Ee=function(){function J(be,Le){var it=this;this._editor=be,this._editorWorker=Le,this._toDispose=new F.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new F.b,this._triggerQuickSuggest=new te.e,this._state=0,this._completionDisposables=new F.b,this._onDidCancel=new se.a,this._onDidTrigger=new se.a,this._onDidSuggest=new se.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new he.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(function(){it._updateTriggerCharacters(),it.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(function(){it._updateTriggerCharacters(),it.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(function(){it._updateTriggerCharacters(),it._updateQuickSuggest()})),this._toDispose.add(T.d.onDidChange(function(){it._updateTriggerCharacters(),it._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(function(Be){it._onCursorChange(Be)}));var Je=!1;this._toDispose.add(this._editor.onDidCompositionStart(function(){Je=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(function(){Je=!1,it._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(function(){Je||it._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}return J.prototype.dispose=function(){Object(F.f)(this._triggerCharacterListener),Object(F.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},J.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getOption(67),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&this._quickSuggestDelay!==0||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},J.prototype._updateTriggerCharacters=function(){var be=this;if(this._triggerCharacterListener.clear(),!(this._editor.getOption(68)||!this._editor.hasModel()||!this._editor.getOption(92))){for(var Le=new Map,it=0,Je=T.d.all(this._editor.getModel());it<Je.length;it++)for(var Be=Je[it],bt=0,Lt=Be.triggerCharacters||[];bt<Lt.length;bt++){var $t=Lt[bt],Tt=Le.get($t);Tt||(Tt=new Set,Tt.add(Object(Ne.c)()),Le.set($t,Tt)),Tt.add(Be)}var Bt=function(Cn){if(!Cn){var vn=be._editor.getPosition(),Hn=be._editor.getModel();Cn=Hn.getLineContent(vn.lineNumber).substr(0,vn.column-1)}var Yn="";Object($.A)(Cn.charCodeAt(Cn.length-1))?Object($.z)(Cn.charCodeAt(Cn.length-2))&&(Yn=Cn.substr(Cn.length-2)):Yn=Cn.charAt(Cn.length-1);var Zn=Le.get(Yn);if(Zn){var Vi=be._completionModel?be._completionModel.adopt(Zn):void 0;be.trigger({auto:!0,shy:!1,triggerCharacter:Yn},Boolean(be._completionModel),Zn,Vi)}};this._triggerCharacterListener.add(this._editor.onDidType(Bt)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(Bt))}},Object.defineProperty(J.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),J.prototype.cancel=function(be){be===void 0&&(be=!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:be}))},J.prototype.clear=function(){this._completionDisposables.clear()},J.prototype._updateActiveSuggestSession=function(){this._state!==0&&(!this._editor.hasModel()||!T.d.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._state===2,shy:!1},!0))},J.prototype._onCursorChange=function(be){var Le=this;if(!!this._editor.hasModel()){var it=this._editor.getModel(),Je=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!be.selection.isEmpty()||be.reason!==0||be.source!=="keyboard"&&be.source!=="deleteLeft"){this.cancel();return}if(!!T.d.has(it)&&this._state===0){if(this._editor.getOption(66)===!1||!Je.containsRange(this._currentSelection)&&!Je.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition())||this._editor.getOption(89).snippetsPreventQuickSuggestions&&S.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(function(){if(Le._state===0&&!!Qe.shouldAutoTrigger(Le._editor)&&!!Le._editor.hasModel()){var Be=Le._editor.getModel(),bt=Le._editor.getPosition(),Lt=Le._editor.getOption(66);if(Lt!==!1){if(Lt!==!0){Be.tokenizeIfCheap(bt.lineNumber);var $t=Be.getLineTokens(bt.lineNumber),Tt=$t.getStandardTokenType($t.findTokenIndexAtOffset(Math.max(bt.column-1-1,0))),Bt=Lt.other&&Tt===0||Lt.comments&&Tt===1||Lt.strings&&Tt===2;if(!Bt)return}Le.trigger({auto:!0,shy:!1})}}},this._quickSuggestDelay)}}},J.prototype._refilterCompletionItems=function(){var be=this;Promise.resolve().then(function(){if(be._state!==0&&!!be._editor.hasModel()){var Le=be._editor.getModel(),it=be._editor.getPosition(),Je=new Qe(Le,it,be._state===2,!1);be._onNewContext(Je)}})},J.prototype.trigger=function(be,Le,it,Je){var Be=this;if(Le===void 0&&(Le=!1),!!this._editor.hasModel()){var bt=this._editor.getModel(),Lt=be.auto,$t=new Qe(bt,this._editor.getPosition(),Lt,be.shy);this.cancel(Le),this._state=Lt?2:1,this._onDidTrigger.fire({auto:Lt,shy:be.shy,position:this._editor.getPosition()}),this._context=$t;var Tt;be.triggerCharacter?Tt={triggerKind:1,triggerCharacter:be.triggerCharacter}:it&&it.size>0?Tt={triggerKind:2}:Tt={triggerKind:0},this._requestToken=new Ue.b;var Bt=this._editor.getOption(86),fn=1;switch(Bt){case"top":fn=0;break;case"bottom":fn=2;break}var Cn=J._createItemKindFilter(this._editor),vn=We.create(this._editorWorker,this._editor),Hn=Object(Ne.e)(bt,this._editor.getPosition(),new Ne.a(fn,Cn,it),Tt,this._requestToken.token);Promise.all([Hn,vn]).then(function(Yn){var Zn=Yn[0],Vi=Yn[1];if(Object(F.f)(Be._requestToken),Be._state!==0&&!!Be._editor.hasModel()){var ii=Be._editor.getModel();if(Object(re.q)(Je)){var Ai=Object(Ne.d)(fn);Zn=Zn.concat(Je).sort(Ai)}var lr=new Qe(ii,Be._editor.getPosition(),Lt,be.shy);Be._completionModel=new ye(Zn,Be._context.column,{leadingLineContent:lr.leadingLineContent,characterCountDelta:lr.column-Be._context.column},Vi,Be._editor.getOption(89),Be._editor.getOption(86));for(var er=0,tr=Zn;er<tr.length;er++){var Un=tr[er];Object(F.g)(Un.container)&&Be._completionDisposables.add(Un.container)}Be._onNewContext(lr)}}).catch(ne.e)}},J._createItemKindFilter=function(be){var Le=new Set,it=be.getOption(86);it==="none"&&Le.add(25);var Je=be.getOption(89);return Je.showMethods||Le.add(0),Je.showFunctions||Le.add(1),Je.showConstructors||Le.add(2),Je.showFields||Le.add(3),Je.showVariables||Le.add(4),Je.showClasses||Le.add(5),Je.showStructs||Le.add(6),Je.showInterfaces||Le.add(7),Je.showModules||Le.add(8),Je.showProperties||Le.add(9),Je.showEvents||Le.add(10),Je.showOperators||Le.add(11),Je.showUnits||Le.add(12),Je.showValues||Le.add(13),Je.showConstants||Le.add(14),Je.showEnums||Le.add(15),Je.showEnumMembers||Le.add(16),Je.showKeywords||Le.add(17),Je.showWords||Le.add(18),Je.showColors||Le.add(19),Je.showFiles||Le.add(20),Je.showReferences||Le.add(21),Je.showColors||Le.add(22),Je.showFolders||Le.add(23),Je.showTypeParameters||Le.add(24),Je.showSnippets||Le.add(25),Le},J.prototype._onNewContext=function(be){if(!!this._context){if(be.lineNumber!==this._context.lineNumber){this.cancel();return}if(be.leadingWord.startColumn<this._context.leadingWord.startColumn){this.cancel();return}if(be.column<this._context.column){be.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();return}if(!!this._completionModel)if(be.column>this._context.column&&this._completionModel.incomplete.size>0&&be.leadingWord.word.length!==0){var Le=this._completionModel.incomplete,it=this._completionModel.adopt(Le);this.trigger({auto:this._state===2,shy:!1},!0,Le,it)}else{var Je=this._completionModel.lineContext,Be=!1;if(this._completionModel.lineContext={leadingLineContent:be.leadingLineContent,characterCountDelta:be.column-this._context.column},this._completionModel.items.length===0){if(Qe.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<be.leadingWord.startColumn){this.trigger({auto:this._context.auto,shy:!1},!0);return}if(this._context.auto){this.cancel();return}else if(this._completionModel.lineContext=Je,Be=this._completionModel.items.length>0,Be&&be.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:Be})}}},J}(),W=o("CClx"),ee=o("nn6Y"),Ae=o("XNtB"),me=o("epnl"),Me=o("yI7H"),Re=o("ujyM"),ge=o("t9D7"),nt=o("MD5Z"),St=Object(nt.Rb)("symbolIcon.arrayForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),xt=Object(nt.Rb)("symbolIcon.booleanForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mt=Object(nt.Rb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(we.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),zt=Object(nt.Rb)("symbolIcon.colorForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gt=Object(nt.Rb)("symbolIcon.constantForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),on=Object(nt.Rb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(we.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),On=Object(nt.Rb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(we.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yn=Object(nt.Rb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(we.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mn=Object(nt.Rb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(we.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ft=Object(nt.Rb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(we.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gt=Object(nt.Rb)("symbolIcon.fileForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pt=Object(nt.Rb)("symbolIcon.folderForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Dt=Object(nt.Rb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(we.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ot=Object(nt.Rb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(we.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ht=Object(nt.Rb)("symbolIcon.keyForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Jt=Object(nt.Rb)("symbolIcon.keywordForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nn=Object(nt.Rb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(we.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),sn=Object(nt.Rb)("symbolIcon.moduleForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),un=Object(nt.Rb)("symbolIcon.namespaceForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Sn=Object(nt.Rb)("symbolIcon.nullForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ln=Object(nt.Rb)("symbolIcon.numberForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),An=Object(nt.Rb)("symbolIcon.objectForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gn=Object(nt.Rb)("symbolIcon.operatorForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Jn=Object(nt.Rb)("symbolIcon.packageForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$n=Object(nt.Rb)("symbolIcon.propertyForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pi=Object(nt.Rb)("symbolIcon.referenceForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Kn=Object(nt.Rb)("symbolIcon.snippetForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yi=Object(nt.Rb)("symbolIcon.stringForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),vi=Object(nt.Rb)("symbolIcon.structForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),mt=Object(nt.Rb)("symbolIcon.textForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Nt=Object(nt.Rb)("symbolIcon.typeParameterForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ut=Object(nt.Rb)("symbolIcon.unitForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(we.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),tn=Object(nt.Rb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(we.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(ge.e)(function(J,be){var Le=J.getColor(St);Le&&be.addRule(".codicon-symbol-array { color: "+Le+" !important; }");var it=J.getColor(xt);it&&be.addRule(".codicon-symbol-boolean { color: "+it+" !important; }");var Je=J.getColor(Mt);Je&&be.addRule(".codicon-symbol-class { color: "+Je+" !important; }");var Be=J.getColor(nn);Be&&be.addRule(".codicon-symbol-method { color: "+Be+" !important; }");var bt=J.getColor(zt);bt&&be.addRule(".codicon-symbol-color { color: "+bt+" !important; }");var Lt=J.getColor(Gt);Lt&&be.addRule(".codicon-symbol-constant { color: "+Lt+" !important; }");var $t=J.getColor(on);$t&&be.addRule(".codicon-symbol-constructor { color: "+$t+" !important; }");var Tt=J.getColor(On);Tt&&be.addRule(`
.codicon-symbol-value,.codicon-symbol-enum { color: `+Tt+" !important; }");var Bt=J.getColor(yn);Bt&&be.addRule(".codicon-symbol-enum-member { color: "+Bt+" !important; }");var fn=J.getColor(Mn);fn&&be.addRule(".codicon-symbol-event { color: "+fn+" !important; }");var Cn=J.getColor(Ft);Cn&&be.addRule(".codicon-symbol-field { color: "+Cn+" !important; }");var vn=J.getColor(gt);vn&&be.addRule(".codicon-symbol-file { color: "+vn+" !important; }");var Hn=J.getColor(pt);Hn&&be.addRule(".codicon-symbol-folder { color: "+Hn+" !important; }");var Yn=J.getColor(Dt);Yn&&be.addRule(".codicon-symbol-function { color: "+Yn+" !important; }");var Zn=J.getColor(Ot);Zn&&be.addRule(".codicon-symbol-interface { color: "+Zn+" !important; }");var Vi=J.getColor(Ht);Vi&&be.addRule(".codicon-symbol-key { color: "+Vi+" !important; }");var ii=J.getColor(Jt);ii&&be.addRule(".codicon-symbol-keyword { color: "+ii+" !important; }");var Ai=J.getColor(sn);Ai&&be.addRule(".codicon-symbol-module { color: "+Ai+" !important; }");var lr=J.getColor(un);lr&&be.addRule(".codicon-symbol-namespace { color: "+lr+" !important; }");var er=J.getColor(Sn);er&&be.addRule(".codicon-symbol-null { color: "+er+" !important; }");var tr=J.getColor(Ln);tr&&be.addRule(".codicon-symbol-number { color: "+tr+" !important; }");var Un=J.getColor(An);Un&&be.addRule(".codicon-symbol-object { color: "+Un+" !important; }");var Hr=J.getColor(Gn);Hr&&be.addRule(".codicon-symbol-operator { color: "+Hr+" !important; }");var Li=J.getColor(Jn);Li&&be.addRule(".codicon-symbol-package { color: "+Li+" !important; }");var Eo=J.getColor($n);Eo&&be.addRule(".codicon-symbol-property { color: "+Eo+" !important; }");var Rr=J.getColor(pi);Rr&&be.addRule(".codicon-symbol-reference { color: "+Rr+" !important; }");var Ur=J.getColor(Kn);Ur&&be.addRule(".codicon-symbol-snippet { color: "+Ur+" !important; }");var Ar=J.getColor(yi);Ar&&be.addRule(".codicon-symbol-string { color: "+Ar+" !important; }");var eo=J.getColor(vi);eo&&be.addRule(".codicon-symbol-struct { color: "+eo+" !important; }");var go=J.getColor(mt);go&&be.addRule(".codicon-symbol-text { color: "+go+" !important; }");var dr=J.getColor(Nt);dr&&be.addRule(".codicon-symbol-type-parameter { color: "+dr+" !important; }");var Sr=J.getColor(Ut);Sr&&be.addRule(".codicon-symbol-unit { color: "+Sr+" !important; }");var po=J.getColor(tn);po&&be.addRule(".codicon-symbol-variable { color: "+po+" !important; }")});var Vt=o("EffR"),wn=o("cqdO"),xn=o("GJhM"),kn=o("bexQ"),Fn=o("XXUj"),oi=o("ptcw"),ci=o("3qCu"),Ui=o("WBhO"),rr=o("W9cx"),Xn=o("xONI"),Ri=o("tYmi"),wi=o("gslv"),Bi=o("MqQJ"),Vn;(function(J){J[J.FILE=0]="FILE",J[J.FOLDER=1]="FOLDER",J[J.ROOT_FOLDER=2]="ROOT_FOLDER"})(Vn||(Vn={}));function bi(J,be,Le,it){var Je=it===Vn.ROOT_FOLDER?["rootfolder-icon"]:it===Vn.FOLDER?["folder-icon"]:["file-icon"];if(Le){var Be;if(Le.scheme===Ri.b.data){var bt=wi.a.parseMetaData(Le);Be=bt.get(wi.a.META_DATA_LABEL)}else Be=Mi(Object(wi.c)(Le).toLowerCase());if(it===Vn.FOLDER)Je.push(Be+"-name-folder-icon");else{if(Be){Je.push(Be+"-name-file-icon");for(var Lt=Be.split("."),$t=1;$t<Lt.length;$t++)Je.push(Lt.slice($t).join(".")+"-ext-file-icon");Je.push("ext-file-icon")}var Tt=ji(J,be,Le);Tt&&Je.push(Mi(Tt)+"-lang-file-icon")}}return Je}function ji(J,be,Le){if(!Le)return null;var it=null;if(Le.scheme===Ri.b.data){var Je=wi.a.parseMetaData(Le),Be=Je.get(wi.a.META_DATA_MIME);Be&&(it=be.getModeId(Be))}else{var bt=J.getModel(Le);bt&&(it=bt.getModeId())}return it&&it!==Bi.c?it:be.getModeIdByFilepathOrFirstLine(Le)}function Mi(J){return J.replace(/\s/g,"\\$&")}var Gi=o("G2kB"),ki=o("bY76"),mi=o("eLzo"),qi=function(){return qi=Object.assign||function(J){for(var be,Le=1,it=arguments.length;Le<it;Le++){be=arguments[Le];for(var Je in be)Object.prototype.hasOwnProperty.call(be,Je)&&(J[Je]=be[Je])}return J},qi.apply(this,arguments)},or=function(J,be,Le,it){var Je=arguments.length,Be=Je<3?be:it===null?it=Object.getOwnPropertyDescriptor(be,Le):it,bt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Be=Reflect.decorate(J,be,Le,it);else for(var Lt=J.length-1;Lt>=0;Lt--)(bt=J[Lt])&&(Be=(Je<3?bt(Be):Je>3?bt(be,Le,Be):bt(be,Le))||Be);return Je>3&&Be&&Object.defineProperty(be,Le,Be),Be},Ci=function(J,be){return function(Le,it){be(Le,it,J)}},Di=function(J,be,Le,it){function Je(Be){return Be instanceof Le?Be:new Le(function(bt){bt(Be)})}return new(Le||(Le=Promise))(function(Be,bt){function Lt(Bt){try{Tt(it.next(Bt))}catch(fn){bt(fn)}}function $t(Bt){try{Tt(it.throw(Bt))}catch(fn){bt(fn)}}function Tt(Bt){Bt.done?Be(Bt.value):Je(Bt.value).then(Lt,$t)}Tt((it=it.apply(J,be||[])).next())})},Yi=function(J,be){var Le={label:0,sent:function(){if(Be[0]&1)throw Be[1];return Be[1]},trys:[],ops:[]},it,Je,Be,bt;return bt={next:Lt(0),throw:Lt(1),return:Lt(2)},typeof Symbol=="function"&&(bt[Symbol.iterator]=function(){return this}),bt;function Lt(Tt){return function(Bt){return $t([Tt,Bt])}}function $t(Tt){if(it)throw new TypeError("Generator is already executing.");for(;Le;)try{if(it=1,Je&&(Be=Tt[0]&2?Je.return:Tt[0]?Je.throw||((Be=Je.return)&&Be.call(Je),0):Je.next)&&!(Be=Be.call(Je,Tt[1])).done)return Be;switch(Je=0,Be&&(Tt=[Tt[0]&2,Be.value]),Tt[0]){case 0:case 1:Be=Tt;break;case 4:return Le.label++,{value:Tt[1],done:!1};case 5:Le.label++,Je=Tt[1],Tt=[0];continue;case 7:Tt=Le.ops.pop(),Le.trys.pop();continue;default:if(Be=Le.trys,!(Be=Be.length>0&&Be[Be.length-1])&&(Tt[0]===6||Tt[0]===2)){Le=0;continue}if(Tt[0]===3&&(!Be||Tt[1]>Be[0]&&Tt[1]<Be[3])){Le.label=Tt[1];break}if(Tt[0]===6&&Le.label<Be[1]){Le.label=Be[1],Be=Tt;break}if(Be&&Le.label<Be[2]){Le.label=Be[2],Le.ops.push(Tt);break}Be[2]&&Le.ops.pop(),Le.trys.pop();continue}Tt=be.call(J,Le)}catch(Bt){Tt=[6,Bt],Je=0}finally{it=Be=0}if(Tt[0]&5)throw Tt[1];return{value:Tt[0]?Tt[1]:void 0,done:!0}}},ur=!1,Ni=Object(nt.Rb)("editorSuggestWidget.background",{dark:nt.P,light:nt.P,hc:nt.P},we.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),sr=Object(nt.Rb)("editorSuggestWidget.border",{dark:nt.Q,light:nt.Q,hc:nt.Q},we.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),$e=Object(nt.Rb)("editorSuggestWidget.foreground",{dark:nt.x,light:nt.x,hc:nt.x},we.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),L=Object(nt.Rb)("editorSuggestWidget.selectedBackground",{dark:nt.qb,light:nt.qb,hc:nt.qb},we.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),M=Object(nt.Rb)("editorSuggestWidget.highlightForeground",{dark:nt.sb,light:nt.sb,hc:nt.sb},we.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),Z=/^(#([\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 De(J,be){var Le=typeof J.completion.label=="string"?J.completion.label:J.completion.label.name;return Le.match(Z)?(be[0]=Le,!0):typeof J.completion.documentation=="string"&&J.completion.documentation.match(Z)?(be[0]=J.completion.documentation,!0):!1}function xe(J){if(!J)return!1;var be=J.completion;return be.documentation?!0:be.detail&&be.detail!==be.label}function je(J){return"suggest-aria-id:"+J}var ht=function(){function J(be,Le,it,Je,Be,bt){this.widget=be,this.editor=Le,this.triggerKeybindingLabel=it,this._modelService=Je,this._modeService=Be,this._themeService=bt}return Object.defineProperty(J.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),J.prototype.renderTemplate=function(be){var Le=this,it=Object.create(null);it.disposables=new F.b,it.root=be,Object(Vt.e)(it.root,"show-file-icons"),it.icon=Object(Vt.p)(be,Object(Vt.a)(".icon")),it.colorspan=Object(Vt.p)(it.icon,Object(Vt.a)("span.colorspan"));var Je=Object(Vt.p)(be,Object(Vt.a)(".contents")),Be=Object(Vt.p)(Je,Object(Vt.a)(".main"));it.left=Object(Vt.p)(Be,Object(Vt.a)("span.left")),it.right=Object(Vt.p)(Be,Object(Vt.a)("span.right")),it.iconContainer=Object(Vt.p)(it.left,Object(Vt.a)(".icon-label.codicon")),it.iconLabel=new Xn.a(it.left,{supportHighlights:!0,supportCodicons:!0}),it.disposables.add(it.iconLabel),it.signatureLabel=Object(Vt.p)(it.left,Object(Vt.a)("span.signature-label")),it.qualifierLabel=Object(Vt.p)(it.left,Object(Vt.a)("span.qualifier-label")),it.detailsLabel=Object(Vt.p)(it.right,Object(Vt.a)("span.details-label")),it.readMore=Object(Vt.p)(it.right,Object(Vt.a)("span.readMore.codicon.codicon-info")),it.readMore.title=we.a("readMore","Read More...{0}",this.triggerKeybindingLabel);var bt=function(){var $t=Le.editor.getOptions(),Tt=$t.get(34),Bt=Tt.fontFamily,fn=Tt.fontFeatureSettings,Cn=$t.get(90)||Tt.fontSize,vn=$t.get(91)||Tt.lineHeight,Hn=Tt.fontWeight,Yn=Cn+"px",Zn=vn+"px";it.root.style.fontSize=Yn,it.root.style.fontWeight=Hn,Be.style.fontFamily=Bt,Be.style.fontFeatureSettings=fn,Be.style.lineHeight=Zn,it.icon.style.height=Zn,it.icon.style.width=Zn,it.readMore.style.height=Zn,it.readMore.style.width=Zn};return bt(),it.disposables.add(se.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Lt){return Lt.hasChanged(34)||Lt.hasChanged(90)||Lt.hasChanged(91)}).on(bt,null)),it},J.prototype.renderElement=function(be,Le,it){var Je=this,Be=it,bt=be.completion,Lt=typeof bt.label=="string"?bt.label:bt.label.name;Be.root.id=je(Le),Be.icon.className="icon "+Object(T.C)(bt.kind),Be.colorspan.style.backgroundColor="";var $t={labelEscapeNewLines:!0,matches:Object(ie.c)(be.score)},Tt=[];if(bt.kind===19&&De(be,Tt))Be.icon.className="icon customcolor",Be.iconContainer.className="icon hide",Be.colorspan.style.backgroundColor=Tt[0];else if(bt.kind===20&&this._themeService.getIconTheme().hasFileIcons){Be.icon.className="icon hide",Be.iconContainer.className="icon hide";var Bt=bi(this._modelService,this._modeService,ki.a.from({scheme:"fake",path:Lt}),Vn.FILE),fn=bi(this._modelService,this._modeService,ki.a.from({scheme:"fake",path:bt.detail}),Vn.FILE);$t.extraClasses=Bt.length>fn.length?Bt:fn}else bt.kind===23&&this._themeService.getIconTheme().hasFolderIcons?(Be.icon.className="icon hide",Be.iconContainer.className="icon hide",$t.extraClasses=Object(re.m)([bi(this._modelService,this._modeService,ki.a.from({scheme:"fake",path:Lt}),Vn.FOLDER),bi(this._modelService,this._modeService,ki.a.from({scheme:"fake",path:bt.detail}),Vn.FOLDER)])):(Be.icon.className="icon hide",Be.iconContainer.className="",Object(Vt.f)(Be.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(T.C)(bt.kind)));bt.tags&&bt.tags.indexOf(1)>=0&&($t.extraClasses=($t.extraClasses||[]).concat(["deprecated"]),$t.matches=[]),Be.iconLabel.setLabel(Lt,void 0,$t),typeof bt.label=="string"?(Be.signatureLabel.textContent="",Be.qualifierLabel.textContent="",Be.detailsLabel.textContent=(bt.detail||"").replace(/\n.*$/m,""),Object(Vt.O)(Be.right,"always-show-details")):(Be.signatureLabel.textContent=(bt.label.signature||"").replace(/\n.*$/m,""),Be.qualifierLabel.textContent=(bt.label.qualifier||"").replace(/\n.*$/m,""),Be.detailsLabel.textContent=(bt.label.type||"").replace(/\n.*$/m,""),Object(Vt.e)(Be.right,"always-show-details")),xe(be)?(Object(Vt.e)(Be.right,"can-expand-details"),Object(Vt.W)(Be.readMore),Be.readMore.onmousedown=function(Cn){Cn.stopPropagation(),Cn.preventDefault()},Be.readMore.onclick=function(Cn){Cn.stopPropagation(),Cn.preventDefault(),Je.widget.toggleDetails()}):(Object(Vt.O)(Be.right,"can-expand-details"),Object(Vt.I)(Be.readMore),Be.readMore.onmousedown=null,Be.readMore.onclick=null)},J.prototype.disposeTemplate=function(be){be.disposables.dispose()},J=or([Ci(3,Gi.a),Ci(4,Ui.a),Ci(5,ge.c)],J),J}(),ut=function(){function J(be,Le,it,Je,Be){var bt=this;this.widget=Le,this.editor=it,this.markdownRenderer=Je,this.kbToggleDetails=Be,this.borderWidth=1,this.disposables=new F.b,this.el=Object(Vt.p)(be,Object(Vt.a)(".details")),this.disposables.add(Object(F.h)(function(){return be.removeChild(bt.el)})),this.body=Object(Vt.a)(".body"),this.scrollbar=new xn.a(this.body,{}),Object(Vt.p)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(Vt.p)(this.body,Object(Vt.a)(".header")),this.close=Object(Vt.p)(this.header,Object(Vt.a)("span.codicon.codicon-close")),this.close.title=we.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(Vt.p)(this.header,Object(Vt.a)("p.type")),this.docs=Object(Vt.p)(this.body,Object(Vt.a)("p.docs")),this.configureFont(),se.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Lt){return Lt.hasChanged(34)}).on(this.configureFont,this,this.disposables),Je.onDidRenderCodeBlock(function(){return bt.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(J.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),J.prototype.renderLoading=function(){this.type.textContent=we.a("loading","Loading..."),this.docs.textContent=""},J.prototype.renderItem=function(be,Le){var it=this;this.renderDisposeable=Object(F.f)(this.renderDisposeable);var Je=be.completion,Be=Je.documentation,bt=Je.detail;if(Le){var Lt="";Lt+="score: "+be.score[0]+(be.word?", compared '"+(be.completion.filterText&&be.completion.filterText+" (filterText)"||be.completion.label)+"' with '"+be.word+"'":" (no prefix)")+`
`,Lt+="distance: "+be.distance+`, see localityBonus-setting
`,Lt+="index: "+be.idx+", based on "+(be.completion.sortText&&'sortText: "'+be.completion.sortText+'"'||"label")+`
`,Be=new mi.a().appendCodeblock("empty",Lt),bt="Provider: "+be.provider._debugDisplayName}if(!Le&&!xe(be)){this.type.textContent="",this.docs.textContent="",Object(Vt.e)(this.el,"no-docs");return}if(Object(Vt.O)(this.el,"no-docs"),typeof Be=="string")Object(Vt.O)(this.docs,"markdown-docs"),this.docs.textContent=Be;else{Object(Vt.e)(this.docs,"markdown-docs"),this.docs.innerHTML="";var $t=this.markdownRenderer.render(Be);this.renderDisposeable=$t,this.docs.appendChild($t.element)}bt?(this.type.innerText=bt,Object(Vt.W)(this.type)):(this.type.innerText="",Object(Vt.I)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+this.borderWidth*2+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=function(Tt){Tt.preventDefault(),Tt.stopPropagation()},this.close.onclick=function(Tt){Tt.preventDefault(),Tt.stopPropagation(),it.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},J.prototype.scrollDown=function(be){be===void 0&&(be=8),this.body.scrollTop+=be},J.prototype.scrollUp=function(be){be===void 0&&(be=8),this.body.scrollTop-=be},J.prototype.scrollTop=function(){this.body.scrollTop=0},J.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},J.prototype.pageDown=function(){this.scrollDown(80)},J.prototype.pageUp=function(){this.scrollUp(80)},J.prototype.setBorderWidth=function(be){this.borderWidth=be},J.prototype.configureFont=function(){var be=this.editor.getOptions(),Le=be.get(34),it=Le.fontFamily,Je=be.get(90)||Le.fontSize,Be=be.get(91)||Le.lineHeight,bt=Le.fontWeight,Lt=Je+"px",$t=Be+"px";this.el.style.fontSize=Lt,this.el.style.fontWeight=bt,this.el.style.fontFeatureSettings=Le.fontFeatureSettings,this.type.style.fontFamily=it,this.close.style.height=$t,this.close.style.width=$t},J.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(F.f)(this.renderDisposeable)},J}(),yt=function(){function J(be,Le,it,Je,Be,bt,Lt,$t,Tt){var Bt=this,fn,Cn;this.editor=be,this.telemetryService=Le,this.keybindingService=it,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=F.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new te.e,this.toDispose=new F.b,this.onDidSelectEmitter=new se.a,this.onDidFocusEmitter=new se.a,this.onDidHideEmitter=new se.a,this.onDidShowEmitter=new se.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new se.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var vn=this.toDispose.add(new ci.a(be,Lt,$t)),Hn=(Cn=(fn=it.lookupKeybinding("toggleSuggestionDetails"))===null||fn===void 0?void 0:fn.getLabel())!==null&&Cn!==void 0?Cn:"";this.msgDetailsLess=we.a("detail.less","{0} for less...",Hn),this.msgDetailMore=we.a("detail.more","{0} for more...",Hn),this.isAuto=!1,this.focusedItem=null,this.storageService=bt,this.element=Object(Vt.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(Vt.i)(this.element,"click",function(ii){ii.target===Bt.element&&Bt.hideWidget()})),this.messageElement=Object(Vt.p)(this.element,Object(Vt.a)(".message")),this.listElement=Object(Vt.p)(this.element,Object(Vt.a)(".tree"));var Yn=function(){return Object(Vt.X)(Bt.element,"with-status-bar",!Bt.editor.getOption(89).hideStatusBar)};Yn(),this.statusBarElement=Object(Vt.p)(this.element,Object(Vt.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(Vt.p)(this.statusBarElement,Object(Vt.a)("span")),this.statusBarRightSpan=Object(Vt.p)(this.statusBarElement,Object(Vt.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=Tt.createInstance(ut,this.element,this,this.editor,vn,Hn);var Zn=function(){return Object(Vt.X)(Bt.element,"no-icons",!Bt.editor.getOption(89).showIcons)};Zn();var Vi=Tt.createInstance(ht,this,this.editor,Hn);this.list=new wn.c("SuggestWidget",this.listElement,this,[Vi],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(Ai){var lr=typeof Ai.completion.label=="string"?Ai.completion.label:Ai.completion.label.name;if(Ai.isResolved&&Bt.expandDocsSettingFromStorage()){var er=Ai.completion,tr=er.documentation,Un=er.detail,Hr=$.r("{0}{1}",Un||"",tr?typeof tr=="string"?tr:tr.value:"");return we.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",lr,Hr)}else return lr}}}),this.toDispose.add(Object(oi.b)(this.list,Be,{listInactiveFocusBackground:L,listInactiveFocusOutline:nt.b})),this.toDispose.add(Be.onThemeChange(function(ii){return Bt.onThemeChange(ii)})),this.toDispose.add(be.onDidLayoutChange(function(){return Bt.onEditorLayoutChange()})),this.toDispose.add(this.list.onMouseDown(function(ii){return Bt.onListMouseDownOrTap(ii)})),this.toDispose.add(this.list.onTap(function(ii){return Bt.onListMouseDownOrTap(ii)})),this.toDispose.add(this.list.onSelectionChange(function(ii){return Bt.onListSelection(ii)})),this.toDispose.add(this.list.onFocusChange(function(ii){return Bt.onListFocus(ii)})),this.toDispose.add(this.editor.onDidChangeCursorSelection(function(){return Bt.onCursorSelectionChanged()})),this.toDispose.add(this.editor.onDidChangeConfiguration(function(ii){ii.hasChanged(89)&&(Yn(),Zn())})),this.suggestWidgetVisible=Ne.b.Visible.bindTo(Je),this.suggestWidgetMultipleSuggestions=Ne.b.MultipleSuggestions.bindTo(Je),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(Be.getTheme()),this.toDispose.add(Object(Vt.n)(this.details.element,"keydown",function(ii){Bt._onDetailsKeydown.fire(ii)})),this.toDispose.add(this.editor.onMouseDown(function(ii){return Bt.onEditorMouseDown(ii)}))}return J.prototype.onEditorMouseDown=function(be){this.details.element.contains(be.target.element)?this.details.element.focus():this.element.contains(be.target.element)&&this.editor.focus()},J.prototype.onCursorSelectionChanged=function(){this.state!==0&&this.editor.layoutContentWidget(this)},J.prototype.onEditorLayoutChange=function(){(this.state===3||this.state===5)&&this.expandDocsSettingFromStorage()&&this.expandSideOrBelow()},J.prototype.onListMouseDownOrTap=function(be){typeof be.element=="undefined"||typeof be.index=="undefined"||(be.browserEvent.preventDefault(),be.browserEvent.stopPropagation(),this.select(be.element,be.index))},J.prototype.onListSelection=function(be){!be.elements.length||this.select(be.elements[0],be.indexes[0])},J.prototype.select=function(be,Le){var it=this.completionModel;!it||(this.onDidSelectEmitter.fire({item:be,index:Le,model:it}),this.editor.focus())},J.prototype.onThemeChange=function(be){var Le=be.getColor(Ni);Le&&(this.listElement.style.backgroundColor=Le.toString(),this.statusBarElement.style.backgroundColor=Le.toString(),this.details.element.style.backgroundColor=Le.toString(),this.messageElement.style.backgroundColor=Le.toString());var it=be.getColor(sr);it&&(this.listElement.style.borderColor=it.toString(),this.statusBarElement.style.borderColor=it.toString(),this.details.element.style.borderColor=it.toString(),this.messageElement.style.borderColor=it.toString(),this.detailsBorderColor=it.toString());var Je=be.getColor(nt.U);Je&&(this.detailsFocusBorderColor=Je.toString()),this.details.setBorderWidth(be.type==="hc"?2:1)},J.prototype.onListFocus=function(be){var Le=this,it,Je;if(!this.ignoreFocusEvents){if(!be.elements.length){this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),this.editor.setAriaOptions({activeDescendant:void 0});return}if(!!this.completionModel){var Be=be.elements[0],bt=be.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,Be!==this.focusedItem){var Lt=this.editor.getOption(89).insertMode==="insert",$t=(it=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))===null||it===void 0?void 0:it.getLabel(),Tt=(Je=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))===null||Je===void 0?void 0:Je.getLabel();tt.a.equals(Be.editInsertEnd,Be.editReplaceEnd)?this.setStatusBarLeftText(we.a("accept","{0} to accept",$t)):Lt?this.setStatusBarLeftText(we.a("insert","{0} to insert, {1} to replace",$t,Tt)):this.setStatusBarLeftText(we.a("replace","{0} to replace, {1} to insert",$t,Tt)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=Be,this.list.reveal(bt),this.currentSuggestionDetails=Object(te.f)(function(Bt){return Di(Le,void 0,void 0,function(){var fn,Cn,vn=this;return Yi(this,function(Hn){switch(Hn.label){case 0:return fn=Object(te.g)(function(){return vn.showDetails(!0)},250),Bt.onCancellationRequested(function(){return fn.dispose()}),[4,Be.resolve(Bt)];case 1:return Cn=Hn.sent(),fn.dispose(),[2,Cn]}})})}),this.currentSuggestionDetails.then(function(){bt>=Le.list.length||Be!==Le.list.element(bt)||(Le.ignoreFocusEvents=!0,Le.list.splice(bt,1,[Be]),Le.list.setFocus([bt]),Le.ignoreFocusEvents=!1,Le.expandDocsSettingFromStorage()?Le.showDetails(!1):Object(Vt.O)(Le.element,"docs-side"),xe(Le.focusedItem)?Le.expandDocsSettingFromStorage()?Le.setStatusBarRightText(Le.msgDetailsLess):Le.setStatusBarRightText(Le.msgDetailMore):Le.statusBarRightSpan.innerText="",Le.editor.setAriaOptions({activeDescendant:je(bt)}))}).catch(ne.e)}this.onDidFocusEmitter.fire({item:Be,index:bt,model:this.completionModel})}}},J.prototype.setState=function(be){if(!!this.element){var Le=this.state!==be;switch(this.state=be,Object(Vt.X)(this.element,"frozen",be===4),be){case 0:Object(Vt.I)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,Le&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=J.LOADING_MESSAGE,Object(Vt.I)(this.listElement,this.details.element,this.statusBarElement),Object(Vt.W)(this.messageElement),Object(Vt.O)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=J.NO_SUGGESTIONS_MESSAGE,Object(Vt.I)(this.listElement,this.details.element,this.statusBarElement),Object(Vt.W)(this.messageElement),Object(Vt.O)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(Vt.I)(this.messageElement),Object(Vt.W)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(Vt.I)(this.messageElement),Object(Vt.W)(this.listElement),this.show();break;case 5:Object(Vt.I)(this.messageElement),Object(Vt.W)(this.details.element,this.listElement,this.statusBarElement),this.show();break}}},J.prototype.showTriggered=function(be,Le){var it=this;this.state===0&&(this.isAuto=!!be,this.isAuto||(this.loadingTimeout=Object(te.g)(function(){return it.setState(1)},Le)))},J.prototype.showSuggestions=function(be,Le,it,Je){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==be&&(this.completionModel=be),it&&this.state!==2&&this.state!==0){this.setState(4);return}var Be=this.completionModel.items.length,bt=Be===0;if(this.suggestWidgetMultipleSuggestions.set(Be>1),bt)Je?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){var Lt=this.completionModel.stats;Lt.wasAutomaticallyTriggered=!!Je,this.telemetryService.publicLog("suggestWidget",qi({},Lt))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),it?this.setState(4):this.setState(3),this.list.reveal(Le,0),this.list.setFocus([Le]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}},J.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}},J.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},J.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}},J.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}},J.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},J.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}},J.prototype.getFocusedItem=function(){if(this.state!==0&&this.state!==2&&this.state!==1&&this.completionModel)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}},J.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")},J.prototype.toggleDetails=function(){if(!!xe(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(Vt.I)(this.details.element),Object(Vt.O)(this.element,"docs-side"),Object(Vt.O)(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(this.state!==3&&this.state!==5&&this.state!==4)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},J.prototype.showDetails=function(be){be||this.expandSideOrBelow(),Object(Vt.W)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",be?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()},J.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},J.prototype.show=function(){var be=this,Le=this.updateListHeight();Le!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=Le),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(Vt.e)(be.element,"visible"),be.onDidShowEmitter.fire(be)},100)},J.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(Vt.O)(this.element,"visible")},J.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},J.prototype.getPosition=function(){if(this.state===0)return null;var be=[2,1];return this.preferDocPositionTop&&(be=[1]),{position:this.editor.getPosition(),preference:be}},J.prototype.getDomNode=function(){return this.element},J.prototype.getId=function(){return J.ID},J.prototype.isFrozen=function(){return this.state===4},J.prototype.updateListHeight=function(){var be=0;if(this.state===2||this.state===1)be=this.unfocusedHeight;else{var Le=this.list.contentHeight/this.unfocusedHeight,it=this.editor.getOption(89).maxVisibleSuggestions;be=Math.min(Le,it)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=be+"px",this.statusBarElement.style.top=be+"px",this.list.layout(be),be},J.prototype.adjustDocsPosition=function(){if(!!this.editor.hasModel()){var be=this.editor.getOption(49),Le=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),it=Object(Vt.B)(this.editor.getDomNode()),Je=it.left+Le.left,Be=it.top+Le.top+Le.height,bt=Object(Vt.B)(this.element),Lt=bt.left,$t=bt.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<$t&&!this.preferDocPositionTop){this.preferDocPositionTop=!0,this.adjustDocsPosition();return}this.docsPositionPreviousWidgetY=$t,Lt<Je-this.listWidth?Object(Vt.e)(this.element,"list-right"):Object(Vt.O)(this.element,"list-right"),Object(Vt.H)(this.element,"docs-side")&&Be-be>$t&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")}},J.prototype.expandSideOrBelow=function(){if(!xe(this.focusedItem)&&this.firstFocusInCurrentList){Object(Vt.O)(this.element,"docs-side"),Object(Vt.O)(this.element,"docs-below");return}var be=this.element.style.maxWidth.match(/(\d+)px/);!be||Number(be[1])<this.maxWidgetWidth?(Object(Vt.e)(this.element,"docs-below"),Object(Vt.O)(this.element,"docs-side")):xe(this.focusedItem)&&(Object(Vt.e)(this.element,"docs-side"),Object(Vt.O)(this.element,"docs-below"))},Object.defineProperty(J.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getOption(89).maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"unfocusedHeight",{get:function(){var Le=this.editor.getOptions();return Le.get(91)||Le.get(34).lineHeight},enumerable:!0,configurable:!0}),J.prototype.getHeight=function(be){return this.unfocusedHeight},J.prototype.getTemplateId=function(be){return"suggestion"},J.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,ur)},J.prototype.updateExpandDocsSetting=function(be){this.storageService.store("expandSuggestionDocs",be,0)},J.prototype.setStatusBarLeftText=function(be){this.statusBarLeftSpan.innerText=be},J.prototype.setStatusBarRightText=function(be){this.statusBarRightSpan.innerText=be},J.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},J.ID="editor.widget.suggestWidget",J.LOADING_MESSAGE=we.a("suggestWidget.loading","Loading..."),J.NO_SUGGESTIONS_MESSAGE=we.a("suggestWidget.noSuggestions","No suggestions."),J=or([Ci(1,Fn.a),Ci(2,kn.a),Ci(3,X.c),Ci(4,ge.c),Ci(5,D.a),Ci(6,Ui.a),Ci(7,rr.a),Ci(8,U.a)],J),J}();Object(ge.e)(function(J,be){var Le=J.getColor(M);Le&&be.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+Le+"; }");var it=J.getColor($e);it&&be.addRule(".monaco-editor .suggest-widget { color: "+it+"; }");var Je=J.getColor(nt.cc);Je&&be.addRule(".monaco-editor .suggest-widget a { color: "+Je+"; }");var Be=J.getColor(nt.bc);Be&&be.addRule(".monaco-editor .suggest-widget code { background-color: "+Be+"; }")});var It=function(){var J=function(Le,it){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Je,Be){Je.__proto__=Be}||function(Je,Be){for(var bt in Be)Be.hasOwnProperty(bt)&&(Je[bt]=Be[bt])},J(Le,it)};return function(be,Le){J(be,Le);function it(){this.constructor=be}be.prototype=Le===null?Object.create(Le):(it.prototype=Le.prototype,new it)}}(),Rt=function(J,be,Le,it){var Je=arguments.length,Be=Je<3?be:it===null?it=Object.getOwnPropertyDescriptor(be,Le):it,bt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Be=Reflect.decorate(J,be,Le,it);else for(var Lt=J.length-1;Lt>=0;Lt--)(bt=J[Lt])&&(Be=(Je<3?bt(Be):Je>3?bt(be,Le,Be):bt(be,Le))||Be);return Je>3&&Be&&Object.defineProperty(be,Le,Be),Be},Wt=function(J,be){return function(Le,it){be(Le,it,J)}},Zt=function(J){It(be,J);function be(Le,it){var Je=J.call(this)||this;return Je._editor=Le,Je._enabled=!1,Je._ckAtEnd=be.AtEnd.bindTo(it),Je._register(Je._editor.onDidChangeConfiguration(function(Be){return Be.hasChanged(94)&&Je._update()})),Je._update(),Je}return be.prototype.dispose=function(){J.prototype.dispose.call(this),Object(F.f)(this._selectionListener),this._ckAtEnd.reset()},be.prototype._update=function(){var Le=this,it=this._editor.getOption(94)==="on";if(this._enabled!==it)if(this._enabled=it,this._enabled){var Je=function(){if(!Le._editor.hasModel()){Le._ckAtEnd.set(!1);return}var bt=Le._editor.getModel(),Lt=Le._editor.getSelection(),$t=bt.getWordAtPosition(Lt.getStartPosition());if(!$t){Le._ckAtEnd.set(!1);return}Le._ckAtEnd.set($t.endColumn===Lt.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(Je),Je()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},be.AtEnd=new X.d("atEndOfWord",!1),be=Rt([Wt(1,X.c)],be),be}(F.a),Xt=o("pAvP"),ln=o("746U"),hn=o("MXAL"),Tn=function(){function J(be,Le,it){var Je=this;this._disposables=new F.b,this._disposables.add(Le.onDidShow(function(){return Je._onItem(Le.getFocusedItem())})),this._disposables.add(Le.onDidFocus(this._onItem,this)),this._disposables.add(Le.onDidHide(this.reset,this)),this._disposables.add(be.onWillType(function(Be){if(Je._active&&!Le.isFrozen()){var bt=Be.charCodeAt(Be.length-1);Je._active.acceptCharacters.has(bt)&&be.getOption(0)&&it(Je._active.item)}}))}return J.prototype._onItem=function(be){if(!be||!Object(re.q)(be.item.completion.commitCharacters)){this.reset();return}if(!(this._active&&this._active.item.item===be.item)){for(var Le=new hn.b,it=0,Je=be.item.completion.commitCharacters;it<Je.length;it++){var Be=Je[it];Be.length>0&&Le.add(Be.charCodeAt(0))}this._active={acceptCharacters:Le,item:be}}},J.prototype.reset=function(){this._active=void 0},J.prototype.dispose=function(){this._disposables.dispose()},J}(),pn=o("MNsG"),Nn=o("4y0V"),In=function(){var J=function(Le,it){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Je,Be){Je.__proto__=Be}||function(Je,Be){for(var bt in Be)Be.hasOwnProperty(bt)&&(Je[bt]=Be[bt])},J(Le,it)};return function(be,Le){J(be,Le);function it(){this.constructor=be}be.prototype=Le===null?Object.create(Le):(it.prototype=Le.prototype,new it)}}(),Oe=function(){function J(be){var Le=this;this._controller=be,this._disposables=new F.b,this._decorations=[],this._disposables.add(be.model.onDidSuggest(function(it){if(!it.shy){var Je=Le._controller.widget.getValue(),Be=Je.getFocusedItem();Be&&Le._highlight(Be.item),Le._widgetListener||(Le._widgetListener=Je.onDidFocus(function(bt){return Le._highlight(bt.item)}))}})),this._disposables.add(be.model.onDidCancel(function(){Le._reset()}))}return J.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(F.f)(this._widgetListener),Object(F.f)(this._shiftKeyListener)},J.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},J.prototype._highlight=function(be){var Le=this,it;this._currentItem=be;var Je=this._controller.editor.getOption(89),Be=[];if(Je.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=j.event(function(){return Le._highlight(Le._currentItem)}));var bt=this._controller.getOverwriteInfo(be,j.isPressed),Lt=this._controller.editor.getPosition();if(Je.insertMode==="insert"&&bt.overwriteAfter>0)Be=[{range:new G.a(Lt.lineNumber,Lt.column,Lt.lineNumber,Lt.column+bt.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if(Je.insertMode==="replace"&&bt.overwriteAfter===0){var $t=(it=this._controller.editor.getModel())===null||it===void 0?void 0:it.getWordAtPosition(Lt);$t&&$t.endColumn>Lt.column&&(Be=[{range:new G.a(Lt.lineNumber,Lt.column,Lt.lineNumber,$t.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,Be)},J}(),j=new(function(J){In(be,J);function be(){var Le=J.call(this)||this;return Le._subscriptions=new F.b,Le._isPressed=!1,Le._subscriptions.add(Object(Nn.a)(document.body,"keydown")(function(it){return Le.isPressed=it.shiftKey})),Le._subscriptions.add(Object(Nn.a)(document.body,"keyup")(function(){return Le.isPressed=!1})),Le._subscriptions.add(Object(Nn.a)(document.body,"mouseleave")(function(){return Le.isPressed=!1})),Le._subscriptions.add(Object(Nn.a)(document.body,"blur")(function(){return Le.isPressed=!1})),Le}return Object.defineProperty(be.prototype,"isPressed",{get:function(){return this._isPressed},set:function(it){this._isPressed!==it&&(this._isPressed=it,this.fire(it))},enumerable:!0,configurable:!0}),be.prototype.dispose=function(){this._subscriptions.dispose(),J.prototype.dispose.call(this)},be}(se.a)),ae=function(){var J=function(Le,it){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Je,Be){Je.__proto__=Be}||function(Je,Be){for(var bt in Be)Be.hasOwnProperty(bt)&&(Je[bt]=Be[bt])},J(Le,it)};return function(be,Le){J(be,Le);function it(){this.constructor=be}be.prototype=Le===null?Object.create(Le):(it.prototype=Le.prototype,new it)}}(),Fe=function(){return Fe=Object.assign||function(J){for(var be,Le=1,it=arguments.length;Le<it;Le++){be=arguments[Le];for(var Je in be)Object.prototype.hasOwnProperty.call(be,Je)&&(J[Je]=be[Je])}return J},Fe.apply(this,arguments)},qe=function(J,be,Le,it){var Je=arguments.length,Be=Je<3?be:it===null?it=Object.getOwnPropertyDescriptor(be,Le):it,bt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Be=Reflect.decorate(J,be,Le,it);else for(var Lt=J.length-1;Lt>=0;Lt--)(bt=J[Lt])&&(Be=(Je<3?bt(Be):Je>3?bt(be,Le,Be):bt(be,Le))||Be);return Je>3&&Be&&Object.defineProperty(be,Le,Be),Be},ct=function(J,be){return function(Le,it){be(Le,it,J)}},wt=function(){for(var J=0,be=0,Le=arguments.length;be<Le;be++)J+=arguments[be].length;for(var it=Array(J),Je=0,be=0;be<Le;be++)for(var Be=arguments[be],bt=0,Lt=Be.length;bt<Lt;bt++,Je++)it[Je]=Be[bt];return it},Ge=!1,le=function(){function J(be,Le){this._model=be,this._position=Le;var it=be.getLineMaxColumn(Le.lineNumber);if(it!==Le.column){var Je=be.getOffsetAt(Le),Be=be.getPositionAt(Je+1);this._marker=be.deltaDecorations([],[{range:G.a.fromPositions(Le,Be),options:{stickiness:1}}])}}return J.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},J.prototype.delta=function(be){if(this._model.isDisposed()||this._position.lineNumber!==be.lineNumber)return 0;if(this._marker){var Le=this._model.getDecorationRange(this._marker[0]),it=this._model.getOffsetAt(Le.getStartPosition());return it-this._model.getOffsetAt(be)}else return this._model.getLineMaxColumn(be.lineNumber)-be.column},J}(),Y=function(){function J(be,Le,it,Je,Be,bt){var Lt=this;this._memoryService=it,this._commandService=Je,this._contextKeyService=Be,this._instantiationService=bt,this._lineSuffix=new F.d,this._toDispose=new F.b,this.editor=be,this.model=new Ee(this.editor,Le),this.widget=this._toDispose.add(new te.b(function(){var Bt=Lt._instantiationService.createInstance(yt,Lt.editor);Lt._toDispose.add(Bt),Lt._toDispose.add(Bt.onDidSelect(function(vn){return Lt._insertSuggestion(vn,0)},Lt));var fn=new Tn(Lt.editor,Bt,function(vn){return Lt._insertSuggestion(vn,2)});Lt._toDispose.add(fn),Lt._toDispose.add(Lt.model.onDidSuggest(function(vn){vn.completionModel.items.length===0&&fn.reset()}));var Cn=Ne.b.MakesTextEdit.bindTo(Lt._contextKeyService);return Lt._toDispose.add(Bt.onDidFocus(function(vn){var Hn=vn.item,Yn=Lt.editor.getPosition(),Zn=Hn.editStart.column,Vi=Yn.column,ii=!0;if(Lt.editor.getOption(1)==="smart"&&Lt.model.state===2&&!Hn.completion.command&&!Hn.completion.additionalTextEdits&&!(Hn.completion.insertTextRules&4)&&Vi-Zn===Hn.completion.insertText.length){var Ai=Lt.editor.getModel().getValueInRange({startLineNumber:Yn.lineNumber,startColumn:Zn,endLineNumber:Yn.lineNumber,endColumn:Vi});ii=Ai!==Hn.completion.insertText}Cn.set(ii)})),Lt._toDispose.add(Object(F.h)(function(){return Cn.reset()})),Lt._toDispose.add(Bt.onDetailsKeyDown(function(vn){if(vn.toKeybinding().equals(new P.e(!0,!1,!1,!1,33))||pn.e&&vn.toKeybinding().equals(new P.e(!1,!1,!1,!0,33))){vn.stopPropagation();return}vn.toKeybinding().isModifierKey()||Lt.editor.focus()})),Bt})),this._alternatives=this._toDispose.add(new te.b(function(){return Lt._toDispose.add(new de(Lt.editor,Lt._contextKeyService))})),this._toDispose.add(bt.createInstance(Zt,be)),this._toDispose.add(this.model.onDidTrigger(function(Bt){Lt.widget.getValue().showTriggered(Bt.auto,Bt.shy?250:50),Lt._lineSuffix.value=new le(Lt.editor.getModel(),Bt.position)})),this._toDispose.add(this.model.onDidSuggest(function(Bt){if(!Bt.shy){var fn=Lt._memoryService.select(Lt.editor.getModel(),Lt.editor.getPosition(),Bt.completionModel.items);Lt.widget.getValue().showSuggestions(Bt.completionModel,fn,Bt.isFrozen,Bt.auto)}})),this._toDispose.add(this.model.onDidCancel(function(Bt){Bt.retrigger||Lt.widget.getValue().hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(function(){Ge||(Lt.model.cancel(),Lt.model.clear())}));var $t=Ne.b.AcceptSuggestionsOnEnter.bindTo(Be),Tt=function(){var fn=Lt.editor.getOption(1);$t.set(fn==="on"||fn==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(function(){return Tt()})),Tt(),this._toDispose.add(new Oe(this))}return J.get=function(be){return be.getContribution(J.ID)},J.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()},J.prototype._insertSuggestion=function(be,Le){var it,Je=this;if(!be||!be.item){this._alternatives.getValue().reset(),this.model.cancel(),this.model.clear();return}if(!!this.editor.hasModel()){var Be=this.editor.getModel(),bt=Be.getAlternativeVersionId(),Lt=be.item,$t=Lt.completion;Le&1||this.editor.pushUndoStop();var Tt=this.getOverwriteInfo(Lt,Boolean(Le&8));this._memoryService.memorize(Be,this.editor.getPosition(),Lt),Array.isArray($t.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",$t.additionalTextEdits.map(function(fn){return B.a.replace(G.a.lift(fn.range),fn.text)}));var Bt=$t.insertText;$t.insertTextRules&4||(Bt=I.c.escape(Bt)),S.SnippetController2.get(this.editor).insert(Bt,{overwriteBefore:Tt.overwriteBefore,overwriteAfter:Tt.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!($t.insertTextRules&1)}),Le&2||this.editor.pushUndoStop(),$t.command?$t.command.id===Ve.id?this.model.trigger({auto:!0,shy:!1},!0):((it=this._commandService).executeCommand.apply(it,wt([$t.command.id],$t.command.arguments?wt($t.command.arguments):[])).catch(ne.e).finally(function(){return Je.model.clear()}),this.model.cancel()):(this.model.cancel(),this.model.clear()),Le&4&&this._alternatives.getValue().set(be,function(fn){for(;Be.canUndo();){bt!==Be.getAlternativeVersionId()&&Be.undo(),Je._insertSuggestion(fn,1|2|(Le&8?8:0));break}}),this._alertCompletionItem(be.item)}},J.prototype.getOverwriteInfo=function(be,Le){Object(ln.a)(this.editor.hasModel());var it=this.editor.getOption(89).insertMode==="replace";Le&&(it=!it);var Je=be.position.column-be.editStart.column,Be=(it?be.editReplaceEnd.column:be.editInsertEnd.column)-be.position.column,bt=this.editor.getPosition().column-be.position.column,Lt=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:Je+bt,overwriteAfter:Be+Lt}},J.prototype._alertCompletionItem=function(be){var Le=be.completion,it=typeof Le.label=="string"?Le.label:Le.label.name;if(Object(re.q)(Le.additionalTextEdits)){var Je=we.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",it,Le.additionalTextEdits.length);Object(R.a)(Je)}},J.prototype.triggerSuggest=function(be){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,be),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())},J.prototype.triggerSuggestAndAcceptBest=function(be){var Le=this;if(!!this.editor.hasModel()){var it=this.editor.getPosition(),Je=function(){it.equals(Le.editor.getPosition())&&Le._commandService.executeCommand(be.fallback)},Be=function(Lt){if(Lt.completion.insertTextRules&4||Lt.completion.additionalTextEdits)return!0;var $t=Le.editor.getPosition(),Tt=Lt.editStart.column,Bt=$t.column;if(Bt-Tt!==Lt.completion.insertText.length)return!0;var fn=Le.editor.getModel().getValueInRange({startLineNumber:$t.lineNumber,startColumn:Tt,endLineNumber:$t.lineNumber,endColumn:Bt});return fn!==Lt.completion.insertText};se.b.once(this.model.onDidTrigger)(function(bt){var Lt=[];se.b.any(Le.model.onDidTrigger,Le.model.onDidCancel)(function(){Object(F.f)(Lt),Je()},void 0,Lt),Le.model.onDidSuggest(function($t){var Tt=$t.completionModel;if(Object(F.f)(Lt),Tt.items.length===0){Je();return}var Bt=Le._memoryService.select(Le.editor.getModel(),Le.editor.getPosition(),Tt.items),fn=Tt.items[Bt];if(!Be(fn)){Je();return}Le.editor.pushUndoStop(),Le._insertSuggestion({index:Bt,item:fn,model:Tt},4|1|2)},void 0,Lt)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(it.lineNumber,0),this.editor.focus()}},J.prototype.acceptSelectedSuggestion=function(be,Le){var it=this.widget.getValue().getFocusedItem(),Je=0;be&&(Je|=4),Le&&(Je|=8),this._insertSuggestion(it,Je)},J.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},J.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},J.prototype.cancelSuggestWidget=function(){this.model.cancel(),this.model.clear(),this.widget.getValue().hideWidget()},J.prototype.selectNextSuggestion=function(){this.widget.getValue().selectNext()},J.prototype.selectNextPageSuggestion=function(){this.widget.getValue().selectNextPage()},J.prototype.selectLastSuggestion=function(){this.widget.getValue().selectLast()},J.prototype.selectPrevSuggestion=function(){this.widget.getValue().selectPrevious()},J.prototype.selectPrevPageSuggestion=function(){this.widget.getValue().selectPreviousPage()},J.prototype.selectFirstSuggestion=function(){this.widget.getValue().selectFirst()},J.prototype.toggleSuggestionDetails=function(){this.widget.getValue().toggleDetails()},J.prototype.toggleExplainMode=function(){this.widget.getValue().toggleExplainMode()},J.prototype.toggleSuggestionFocus=function(){this.widget.getValue().toggleDetailsFocus()},J.ID="editor.contrib.suggestController",J=qe([ct(1,Xt.a),ct(2,Se),ct(3,q.b),ct(4,X.c),ct(5,U.a)],J),J}(),Ve=function(J){ae(be,J);function be(){return J.call(this,{id:be.id,label:we.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:X.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 be.prototype.run=function(Le,it){var Je=Y.get(it);!Je||Je.triggerSuggest()},be.id="editor.action.triggerSuggest",be}(V.b);Object(V.h)(Y.ID,Y),Object(V.f)(Ve);var at=100+90,et=V.c.bindToContribution(Y.get);Object(V.g)(new et({id:"acceptSelectedSuggestion",precondition:Ne.b.Visible,handler:function(be){be.acceptSelectedSuggestion(!0,!1)}})),ce.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:X.a.and(Ne.b.Visible,x.a.textInputFocus),primary:2,weight:at}),ce.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:X.a.and(Ne.b.Visible,x.a.textInputFocus,Ne.b.AcceptSuggestionsOnEnter,Ne.b.MakesTextEdit),primary:3,weight:at}),Object(V.g)(new et({id:"acceptAlternativeSelectedSuggestion",precondition:X.a.and(Ne.b.Visible,x.a.textInputFocus),kbOpts:{weight:at,kbExpr:x.a.textInputFocus,primary:1024|3,secondary:[1024|2]},handler:function(be){be.acceptSelectedSuggestion(!1,!0)}})),q.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(V.g)(new et({id:"hideSuggestWidget",precondition:Ne.b.Visible,handler:function(be){return be.cancelSuggestWidget()},kbOpts:{weight:at,kbExpr:x.a.textInputFocus,primary:9,secondary:[1024|9]}})),Object(V.g)(new et({id:"selectNextSuggestion",precondition:X.a.and(Ne.b.Visible,Ne.b.MultipleSuggestions),handler:function(be){return be.selectNextSuggestion()},kbOpts:{weight:at,kbExpr:x.a.textInputFocus,primary:18,secondary:[2048|18],mac:{primary:18,secondary:[2048|18,256|44]}}})),Object(V.g)(new et({id:"selectNextPageSuggestion",precondition:X.a.and(Ne.b.Visible,Ne.b.MultipleSuggestions),handler:function(be){return be.selectNextPageSuggestion()},kbOpts:{weight:at,kbExpr:x.a.textInputFocus,primary:12,secondary:[2048|12]}})),Object(V.g)(new et({id:"selectLastSuggestion",precondition:X.a.and(Ne.b.Visible,Ne.b.MultipleSuggestions),handler:function(be){return be.selectLastSuggestion()}})),Object(V.g)(new et({id:"selectPrevSuggestion",precondition:X.a.and(Ne.b.Visible,Ne.b.MultipleSuggestions),handler:function(be){return be.selectPrevSuggestion()},kbOpts:{weight:at,kbExpr:x.a.textInputFocus,primary:16,secondary:[2048|16],mac:{primary:16,secondary:[2048|16,256|46]}}})),Object(V.g)(new et({id:"selectPrevPageSuggestion",precondition:X.a.and(Ne.b.Visible,Ne.b.MultipleSuggestions),handler:function(be){return be.selectPrevPageSuggestion()},kbOpts:{weight:at,kbExpr:x.a.textInputFocus,primary:11,secondary:[2048|11]}})),Object(V.g)(new et({id:"selectFirstSuggestion",precondition:X.a.and(Ne.b.Visible,Ne.b.MultipleSuggestions),handler:function(be){return be.selectFirstSuggestion()}})),Object(V.g)(new et({id:"toggleSuggestionDetails",precondition:Ne.b.Visible,handler:function(be){return be.toggleSuggestionDetails()},kbOpts:{weight:at,kbExpr:x.a.textInputFocus,primary:2048|10,mac:{primary:256|10}}})),Object(V.g)(new et({id:"toggleExplainMode",precondition:Ne.b.Visible,handler:function(be){return be.toggleExplainMode()},kbOpts:{weight:100,primary:2048|85}})),Object(V.g)(new et({id:"toggleSuggestionFocus",precondition:Ne.b.Visible,handler:function(be){return be.toggleSuggestionFocus()},kbOpts:{weight:at,kbExpr:x.a.textInputFocus,primary:2048|512|10,mac:{primary:256|512|10}}})),Object(V.g)(new et({id:"insertBestCompletion",precondition:X.a.and(X.a.equals("config.editor.tabCompletion","on"),Zt.AtEnd,Ne.b.Visible.toNegated(),de.OtherSuggestions.toNegated(),S.SnippetController2.InSnippetMode.toNegated()),handler:function(be,Le){be.triggerSuggestAndAcceptBest(Object(ln.i)(Le)?Fe({fallback:"tab"},Le):{fallback:"tab"})},kbOpts:{weight:at,primary:2}})),Object(V.g)(new et({id:"insertNextSuggestion",precondition:X.a.and(X.a.equals("config.editor.tabCompletion","on"),de.OtherSuggestions,Ne.b.Visible.toNegated(),S.SnippetController2.InSnippetMode.toNegated()),handler:function(be){return be.acceptNextSuggestion()},kbOpts:{weight:at,kbExpr:x.a.textInputFocus,primary:2}})),Object(V.g)(new et({id:"insertPrevSuggestion",precondition:X.a.and(X.a.equals("config.editor.tabCompletion","on"),de.OtherSuggestions,Ne.b.Visible.toNegated(),S.SnippetController2.InSnippetMode.toNegated()),handler:function(be){return be.acceptPrevSuggestion()},kbOpts:{weight:at,kbExpr:x.a.textInputFocus,primary:1024|2}}))},epnl:function(Et,A,o){},eq1K:function(Et,A,o){},erNZ:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("N0LK"),re;typeof TextDecoder!="undefined"?re=function(V){return new ne(V)}:re=function(V){return new P};var ne=function(){function F(V){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=V|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return F.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},F.prototype.build=function(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},F.prototype._buildBuffer=function(){if(this._bufferLength===0)return"";var V=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(V)},F.prototype._flushBuffer=function(){var V=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[V]:this._completedStrings[this._completedStrings.length]=V},F.prototype.write1=function(V){var B=this._capacity-this._bufferLength;B<=1&&(B===0||R.z(V))&&this._flushBuffer(),this._buffer[this._bufferLength++]=V},F.prototype.appendASCII=function(V){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=V},F.prototype.appendASCIIString=function(V){var B=V.length;if(this._bufferLength+B>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=V;return}for(var G=0;G<B;G++)this._buffer[this._bufferLength++]=V.charCodeAt(G)},F}(),P=function(){function F(){this._pieces=[],this._piecesLen=0}return F.prototype.reset=function(){this._pieces=[],this._piecesLen=0},F.prototype.build=function(){return this._pieces.join("")},F.prototype.write1=function(V){this._pieces[this._piecesLen++]=String.fromCharCode(V)},F.prototype.appendASCII=function(V){this._pieces[this._piecesLen++]=String.fromCharCode(V)},F.prototype.appendASCIIString=function(V){this._pieces[this._piecesLen++]=V},F}()},feEw:function(Et,A,o){"use strict";o.d(A,"a",function(){return z}),o.d(A,"b",function(){return we});var R=o("qj0h"),re=o("pmY6"),ne=o("pg8w"),P=o("EffR"),F=o("MI8n"),V=o("4y0V"),B=o("GJhM"),G=o("nuFA");function x(q,X){for(var ce=[],Ne=0,He=X;Ne<He.length;Ne++){var _e=He[Ne];if(!(q.start>=_e.range.end)){if(q.end<_e.range.start)break;var de=G.a.intersect(q,_e.range);G.a.isEmpty(de)||ce.push({range:de,size:_e.size})}}return ce}function S(q,X){var ce=q.start,Ne=q.end;return{start:ce+X,end:Ne+X}}function I(q){for(var X=[],ce=null,Ne=0,He=q;Ne<He.length;Ne++){var _e=He[Ne],de=_e.range.start,se=_e.range.end,he=_e.size;if(ce&&he===ce.size){ce.range.end=se;continue}ce={range:{start:de,end:se},size:he},X.push(ce)}return X}function K(){for(var q=[],X=0;X<arguments.length;X++)q[X]=arguments[X];return I(q.reduce(function(ce,Ne){return ce.concat(Ne)},[]))}var D=function(){function q(){this.groups=[],this._size=0}return q.prototype.splice=function(X,ce,Ne){Ne===void 0&&(Ne=[]);var He=Ne.length-ce,_e=x({start:0,end:X},this.groups),de=x({start:X+ce,end:Number.POSITIVE_INFINITY},this.groups).map(function(he){return{range:S(he.range,He),size:he.size}}),se=Ne.map(function(he,ie){return{range:{start:X+ie,end:X+ie+1},size:he.size}});this.groups=K(_e,se,de),this._size=this.groups.reduce(function(he,ie){return he+ie.size*(ie.range.end-ie.range.start)},0)},Object.defineProperty(q.prototype,"count",{get:function(){var ce=this.groups.length;return ce?this.groups[ce-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),q.prototype.indexAt=function(X){if(X<0)return-1;for(var ce=0,Ne=0,He=0,_e=this.groups;He<_e.length;He++){var de=_e[He],se=de.range.end-de.range.start,he=Ne+se*de.size;if(X<he)return ce+Math.floor((X-Ne)/de.size);ce+=se,Ne=he}return ce},q.prototype.indexAfter=function(X){return Math.min(this.indexAt(X)+1,this.count)},q.prototype.positionAt=function(X){if(X<0)return-1;for(var ce=0,Ne=0,He=0,_e=this.groups;He<_e.length;He++){var de=_e[He],se=de.range.end-de.range.start,he=Ne+se;if(X<he)return ce+(X-Ne)*de.size;ce+=se*de.size,Ne=he}return-1},q}();function T(q){try{q.parentElement&&q.parentElement.removeChild(q)}catch(X){}}var te=function(){function q(X){this.renderers=X,this.cache=new Map}return q.prototype.alloc=function(X){var ce=this.getTemplateCache(X).pop();if(!ce){var Ne=Object(P.a)(".monaco-list-row"),He=this.getRenderer(X),_e=He.renderTemplate(Ne);ce={domNode:Ne,templateId:X,templateData:_e}}return ce},q.prototype.release=function(X){!X||this.releaseRow(X)},q.prototype.releaseRow=function(X){var ce=X.domNode,Ne=X.templateId;ce&&(Object(P.O)(ce,"scrolling"),T(ce));var He=this.getTemplateCache(Ne);He.push(X)},q.prototype.getTemplateCache=function(X){var ce=this.cache.get(X);return ce||(ce=[],this.cache.set(X,ce)),ce},q.prototype.dispose=function(){var X=this;this.cache.forEach(function(ce,Ne){for(var He=0,_e=ce;He<_e.length;He++){var de=_e[He],se=X.getRenderer(Ne);se.disposeTemplate(de.templateData),de.domNode=null,de.templateData=null}}),this.cache.clear()},q.prototype.getRenderer=function(X){var ce=this.renderers.get(X);if(!ce)throw new Error("No renderer found for "+X);return ce},q}(),U=o("ZCR3"),_=o("6OMU"),h=o("ZQ78"),g=o("X+cX"),p=o("D3Dy"),v=function(q,X,ce,Ne){var He=arguments.length,_e=He<3?X:Ne===null?Ne=Object.getOwnPropertyDescriptor(X,ce):Ne,de;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_e=Reflect.decorate(q,X,ce,Ne);else for(var se=q.length-1;se>=0;se--)(de=q[se])&&(_e=(He<3?de(_e):He>3?de(X,ce,_e):de(X,ce))||_e);return He>3&&_e&&Object.defineProperty(X,ce,_e),_e},E=function(){for(var q=0,X=0,ce=arguments.length;X<ce;X++)q+=arguments[X].length;for(var Ne=Array(q),He=0,X=0;X<ce;X++)for(var _e=arguments[X],de=0,se=_e.length;de<se;de++,He++)Ne[He]=_e[de];return Ne},k={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(X){return[X]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},z=function(){function q(X){this.elements=X}return q.prototype.update=function(){},q.prototype.getData=function(){return this.elements},q}(),oe=function(){function q(X){this.elements=X}return q.prototype.update=function(){},q.prototype.getData=function(){return this.elements},q}(),fe=function(){function q(){this.types=[],this.files=[]}return q.prototype.update=function(X){var ce;if(X.types&&(ce=this.types).splice.apply(ce,E([0,this.types.length],X.types)),X.files){this.files.splice(0,this.files.length);for(var Ne=0;Ne<X.files.length;Ne++){var He=X.files.item(Ne);He&&(He.size||He.type)&&this.files.push(He)}}},q.prototype.getData=function(){return{types:this.types,files:this.files}},q}();function Se(q,X){return Array.isArray(q)&&Array.isArray(X)?Object(_.g)(q,X):q===X}var we=function(){function q(X,ce,Ne,He){var _e=this;if(He===void 0&&(He=k),this.virtualDelegate=ce,this.domId="list_id_"+ ++q.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new g.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 F.a,He.horizontalScrolling&&He.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new D;for(var de=0,se=Ne;de<se.length;de++){var he=se[de];this.renderers.set(he.templateId,he)}this.cache=this.disposables.add(new te(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",P.e(this.domNode,this.domId),this.domNode.tabIndex=0,P.X(this.domNode,"mouse-support",typeof He.mouseSupport=="boolean"?He.mouseSupport:!0),this.horizontalScrolling=Object(R.f)(He,function(ie){return ie.horizontalScrolling},k.horizontalScrolling),P.X(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight=typeof He.additionalScrollHeight=="undefined"?0:He.additionalScrollHeight,this.ariaProvider=He.ariaProvider||{getSetSize:function($,ve,ye){return ye},getPosInSet:function($,ve){return ve+1}},this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.disposables.add(ne.b.addTarget(this.rowsContainer)),this.scrollableElement=this.disposables.add(new B.b(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(R.f)(He,function(ie){return ie.verticalScrollMode},k.verticalScrollMode),useShadows:Object(R.f)(He,function(ie){return ie.useShadows},k.useShadows)})),this.domNode.appendChild(this.scrollableElement.getDomNode()),X.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(V.a)(this.rowsContainer,ne.a.Change)(this.onTouchChange,this,this.disposables),Object(V.a)(this.scrollableElement.getDomNode(),"scroll")(function(ie){return ie.target.scrollTop=0},null,this.disposables),F.b.map(Object(V.a)(this.domNode,"dragover"),function(ie){return _e.toDragEvent(ie)})(this.onDragOver,this,this.disposables),F.b.map(Object(V.a)(this.domNode,"drop"),function(ie){return _e.toDragEvent(ie)})(this.onDrop,this,this.disposables),Object(V.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(V.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(R.f)(He,function(ie){return ie.setRowLineHeight},k.setRowLineHeight),this.supportDynamicHeights=Object(R.f)(He,function(ie){return ie.supportDynamicHeights},k.supportDynamicHeights),this.dnd=Object(R.f)(He,function(ie){return ie.dnd},k.dnd),this.layout()}return Object.defineProperty(q.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),q.prototype.splice=function(X,ce,Ne){if(Ne===void 0&&(Ne=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(X,ce,Ne)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},q.prototype._splice=function(X,ce,Ne){var He,_e=this;Ne===void 0&&(Ne=[]);for(var de=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),se={start:X,end:X+ce},he=G.a.intersect(de,se),ie=he.start;ie<he.end;ie++)this.removeItemFromDOM(ie);var $={start:X+ce,end:this.items.length},ve=G.a.intersect($,de),ye=G.a.relativeComplement($,de),Ue=Ne.map(function(Me){return{id:String(_e.itemId++),element:Me,templateId:_e.virtualDelegate.getTemplateId(Me),size:_e.virtualDelegate.getHeight(Me),width:void 0,hasDynamicHeight:!!_e.virtualDelegate.hasDynamicHeight&&_e.virtualDelegate.hasDynamicHeight(Me),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:re.a.None}}),tt;X===0&&ce>=this.items.length?(this.rangeMap=new D,this.rangeMap.splice(0,0,Ue),this.items=Ue,tt=[]):(this.rangeMap.splice(X,ce,Ue),tt=(He=this.items).splice.apply(He,E([X,ce],Ue)));for(var _t=Ne.length-ce,At=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Yt=S(ve,_t),Ke=G.a.intersect(At,Yt),ie=Ke.start;ie<Ke.end;ie++)this.updateItemInDOM(this.items[ie],ie);for(var Ye=G.a.relativeComplement(Yt,At),Xe=0,Ze=Ye;Xe<Ze.length;Xe++)for(var We=Ze[Xe],ie=We.start;ie<We.end;ie++)this.removeItemFromDOM(ie);for(var Qe=ye.map(function(Me){return S(Me,_t)}),Ee={start:X,end:X+Ne.length},W=E([Ee],Qe).map(function(Me){return G.a.intersect(At,Me)}),ee=this.getNextToLastElement(W),Ae=0,me=W;Ae<me.length;Ae++)for(var We=me[Ae],ie=We.start;ie<We.end;ie++)this.insertItemInDOM(ie,ee);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),tt.map(function(Me){return Me.element})},q.prototype.eventuallyUpdateScrollDimensions=function(){var X=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=P.V(function(){X.scrollableElement.setScrollDimensions({scrollHeight:X.scrollHeight}),X.updateScrollWidth(),X.scrollableElementUpdateDisposable=null}))},q.prototype.eventuallyUpdateScrollWidth=function(){var X=this;!this.horizontalScrolling||this.scrollableElementWidthDelayer.trigger(function(){return X.updateScrollWidth()})},q.prototype.updateScrollWidth=function(){if(!!this.horizontalScrolling){this.items.length===0&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var X=0,ce=0,Ne=this.items;ce<Ne.length;ce++){var He=Ne[ce];typeof He.width!="undefined"&&(X=Math.max(X,He.width))}this.scrollWidth=X,this.scrollableElement.setScrollDimensions({scrollWidth:X+10})}},q.prototype.rerender=function(){if(!!this.supportDynamicHeights){for(var X=0,ce=this.items;X<ce.length;X++){var Ne=ce[X];Ne.lastDynamicHeightWidth=void 0}this._rerender(this.lastRenderTop,this.lastRenderHeight)}},Object.defineProperty(q.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"renderHeight",{get:function(){var ce=this.scrollableElement.getScrollDimensions();return ce.height},enumerable:!0,configurable:!0}),q.prototype.element=function(X){return this.items[X].element},q.prototype.domElement=function(X){var ce=this.items[X].row;return ce&&ce.domNode},q.prototype.elementHeight=function(X){return this.items[X].size},q.prototype.elementTop=function(X){return this.rangeMap.positionAt(X)},q.prototype.indexAt=function(X){return this.rangeMap.indexAt(X)},q.prototype.indexAfter=function(X){return this.rangeMap.indexAfter(X)},q.prototype.layout=function(X,ce){var Ne={height:typeof X=="number"?X:P.z(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,Ne.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(Ne),typeof ce!="undefined"&&(this.renderWidth=ce,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof ce=="number"?ce:P.A(this.domNode)}))},q.prototype.render=function(X,ce,Ne,He){for(var _e=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),de=this.getRenderRange(X,ce),se=G.a.relativeComplement(de,_e),he=G.a.relativeComplement(_e,de),ie=this.getNextToLastElement(se),$=0,ve=se;$<ve.length;$++)for(var ye=ve[$],Ue=ye.start;Ue<ye.end;Ue++)this.insertItemInDOM(Ue,ie);for(var tt=0,_t=he;tt<_t.length;tt++)for(var ye=_t[tt],Ue=ye.start;Ue<ye.end;Ue++)this.removeItemFromDOM(Ue);this.rowsContainer.style.left="-"+Ne+"px",this.rowsContainer.style.top="-"+X+"px",this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(He,this.renderWidth)+"px"),this.lastRenderTop=X,this.lastRenderHeight=ce},q.prototype.insertItemInDOM=function(X,ce){var Ne=this,He=this.items[X];if(!He.row){He.row=this.cache.alloc(He.templateId);var _e=this.ariaProvider.getRole?this.ariaProvider.getRole(He.element):"treeitem";He.row.domNode.setAttribute("role",_e);var de=this.ariaProvider.isChecked?this.ariaProvider.isChecked(He.element):void 0;typeof de!="undefined"&&He.row.domNode.setAttribute("aria-checked",String(de))}He.row.domNode.parentElement||(ce?this.rowsContainer.insertBefore(He.row.domNode,ce):this.rowsContainer.appendChild(He.row.domNode)),this.updateItemInDOM(He,X);var se=this.renderers.get(He.templateId);if(!se)throw new Error("No renderer found for template id "+He.templateId);se&&se.renderElement(He.element,X,He.row.templateData,He.size);var he=this.dnd.getDragURI(He.element);if(He.dragStartDisposable.dispose(),He.row.domNode.draggable=!!he,he){var ie=Object(V.a)(He.row.domNode,"dragstart");He.dragStartDisposable=ie(function($){return Ne.onDragStart(He.element,he,$)})}this.horizontalScrolling&&(this.measureItemWidth(He),this.eventuallyUpdateScrollWidth())},q.prototype.measureItemWidth=function(X){if(!(!X.row||!X.row.domNode)){X.row.domNode.style.width=p.h?"-moz-fit-content":"fit-content",X.width=P.A(X.row.domNode);var ce=window.getComputedStyle(X.row.domNode);ce.paddingLeft&&(X.width+=parseFloat(ce.paddingLeft)),ce.paddingRight&&(X.width+=parseFloat(ce.paddingRight)),X.row.domNode.style.width=""}},q.prototype.updateItemInDOM=function(X,ce){X.row.domNode.style.top=this.elementTop(ce)+"px",X.row.domNode.style.height=X.size+"px",this.setRowLineHeight&&(X.row.domNode.style.lineHeight=X.size+"px"),X.row.domNode.setAttribute("data-index",""+ce),X.row.domNode.setAttribute("data-last-element",ce===this.length-1?"true":"false"),X.row.domNode.setAttribute("aria-setsize",String(this.ariaProvider.getSetSize(X.element,ce,this.length))),X.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(X.element,ce))),X.row.domNode.setAttribute("id",this.getElementDomId(ce)),P.X(X.row.domNode,"drop-target",X.dropTarget)},q.prototype.removeItemFromDOM=function(X){var ce=this.items[X];ce.dragStartDisposable.dispose();var Ne=this.renderers.get(ce.templateId);Ne&&Ne.disposeElement&&Ne.disposeElement(ce.element,X,ce.row.templateData,ce.size),this.cache.release(ce.row),ce.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},q.prototype.getScrollTop=function(){var X=this.scrollableElement.getScrollPosition();return X.scrollTop},q.prototype.setScrollTop=function(X){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:X})},Object.defineProperty(q.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(ce){this.setScrollTop(ce)},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onMouseClick",{get:function(){var ce=this;return F.b.map(Object(V.a)(this.domNode,"click"),function(Ne){return ce.toMouseEvent(Ne)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onMouseDblClick",{get:function(){var ce=this;return F.b.map(Object(V.a)(this.domNode,"dblclick"),function(Ne){return ce.toMouseEvent(Ne)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onMouseMiddleClick",{get:function(){var ce=this;return F.b.filter(F.b.map(Object(V.a)(this.domNode,"auxclick"),function(Ne){return ce.toMouseEvent(Ne)}),function(Ne){return Ne.browserEvent.button===1})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onMouseDown",{get:function(){var ce=this;return F.b.map(Object(V.a)(this.domNode,"mousedown"),function(Ne){return ce.toMouseEvent(Ne)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onContextMenu",{get:function(){var ce=this;return F.b.map(Object(V.a)(this.domNode,"contextmenu"),function(Ne){return ce.toMouseEvent(Ne)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onTouchStart",{get:function(){var ce=this;return F.b.map(Object(V.a)(this.domNode,"touchstart"),function(Ne){return ce.toTouchEvent(Ne)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onTap",{get:function(){var ce=this;return F.b.map(Object(V.a)(this.rowsContainer,ne.a.Tap),function(Ne){return ce.toGestureEvent(Ne)})},enumerable:!0,configurable:!0}),q.prototype.toMouseEvent=function(X){var ce=this.getItemIndexFromEventTarget(X.target||null),Ne=typeof ce=="undefined"?void 0:this.items[ce],He=Ne&&Ne.element;return{browserEvent:X,index:ce,element:He}},q.prototype.toTouchEvent=function(X){var ce=this.getItemIndexFromEventTarget(X.target||null),Ne=typeof ce=="undefined"?void 0:this.items[ce],He=Ne&&Ne.element;return{browserEvent:X,index:ce,element:He}},q.prototype.toGestureEvent=function(X){var ce=this.getItemIndexFromEventTarget(X.initialTarget||null),Ne=typeof ce=="undefined"?void 0:this.items[ce],He=Ne&&Ne.element;return{browserEvent:X,index:ce,element:He}},q.prototype.toDragEvent=function(X){var ce=this.getItemIndexFromEventTarget(X.target||null),Ne=typeof ce=="undefined"?void 0:this.items[ce],He=Ne&&Ne.element;return{browserEvent:X,index:ce,element:He}},q.prototype.onScroll=function(X){try{this.render(X.scrollTop,X.height,X.scrollLeft,X.scrollWidth),this.supportDynamicHeights&&this._rerender(X.scrollTop,X.height)}catch(ce){throw console.error("Got bad scroll event:",X),ce}},q.prototype.onTouchChange=function(X){X.preventDefault(),X.stopPropagation(),this.scrollTop-=X.translationY},q.prototype.onDragStart=function(X,ce,Ne){if(!!Ne.dataTransfer){var He=this.dnd.getDragElements(X);if(Ne.dataTransfer.effectAllowed="copyMove",Ne.dataTransfer.setData(h.a.RESOURCES,JSON.stringify([ce])),Ne.dataTransfer.setDragImage){var _e=void 0;this.dnd.getDragLabel&&(_e=this.dnd.getDragLabel(He,Ne)),typeof _e=="undefined"&&(_e=String(He.length));var de=P.a(".monaco-drag-image");de.textContent=_e,document.body.appendChild(de),Ne.dataTransfer.setDragImage(de,-10,-10),setTimeout(function(){return document.body.removeChild(de)},0)}this.currentDragData=new z(He),h.c.CurrentDragAndDropData=new oe(He),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,Ne)}},q.prototype.onDragOver=function(X){var ce=this;if(X.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),h.c.CurrentDragAndDropData&&h.c.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(X.browserEvent),!X.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(h.c.CurrentDragAndDropData)this.currentDragData=h.c.CurrentDragAndDropData;else{if(!X.browserEvent.dataTransfer.types)return!1;this.currentDragData=new fe}var Ne=this.dnd.onDragOver(this.currentDragData,X.element,X.index,X.browserEvent);if(this.canDrop=typeof Ne=="boolean"?Ne:Ne.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;X.browserEvent.dataTransfer.dropEffect=typeof Ne!="boolean"&&Ne.effect===0?"copy":"move";var He;if(typeof Ne!="boolean"&&Ne.feedback?He=Ne.feedback:typeof X.index=="undefined"?He=[-1]:He=[X.index],He=Object(_.e)(He).filter(function(ie){return ie>=-1&&ie<ce.length}).sort(function(ie,$){return ie-$}),He=He[0]===-1?[-1]:He,Se(this.currentDragFeedback,He))return!0;if(this.currentDragFeedback=He,this.currentDragFeedbackDisposable.dispose(),He[0]===-1)P.e(this.domNode,"drop-target"),P.e(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(re.h)(function(){P.O(ce.domNode,"drop-target"),P.O(ce.rowsContainer,"drop-target")});else{for(var _e=0,de=He;_e<de.length;_e++){var se=de[_e],he=this.items[se];he.dropTarget=!0,he.row&&he.row.domNode&&P.e(he.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(re.h)(function(){for(var ie=0,$=He;ie<$.length;ie++){var ve=$[ie],ye=ce.items[ve];ye.dropTarget=!1,ye.row&&ye.row.domNode&&P.O(ye.row.domNode,"drop-target")}})}return!0},q.prototype.onDragLeave=function(){var X=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(g.g)(function(){return X.clearDragOverFeedback()},100)},q.prototype.onDrop=function(X){if(!!this.canDrop){var ce=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,h.c.CurrentDragAndDropData=void 0,!(!ce||!X.browserEvent.dataTransfer)&&(X.browserEvent.preventDefault(),ce.update(X.browserEvent.dataTransfer),this.dnd.drop(ce,X.element,X.index,X.browserEvent))}},q.prototype.onDragEnd=function(X){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,h.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(X)},q.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=re.a.None},q.prototype.setupDragAndDropScrollTopAnimation=function(X){var ce=this;if(!this.dragOverAnimationDisposable){var Ne=P.E(this.domNode).top;this.dragOverAnimationDisposable=P.o(this.animateDragAndDropScrollTop.bind(this,Ne))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(g.g)(function(){ce.dragOverAnimationDisposable&&(ce.dragOverAnimationDisposable.dispose(),ce.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=X.pageY},q.prototype.animateDragAndDropScrollTop=function(X){if(this.dragOverMouseY!==void 0){var ce=this.dragOverMouseY-X,Ne=this.renderHeight-35;ce<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(ce-35))):ce>Ne&&(this.scrollTop+=Math.min(14,Math.floor(.3*(ce-Ne))))}},q.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},q.prototype.getItemIndexFromEventTarget=function(X){for(var ce=X;ce instanceof HTMLElement&&ce!==this.rowsContainer;){var Ne=ce.getAttribute("data-index");if(Ne){var He=Number(Ne);if(!isNaN(He))return He}ce=ce.parentElement}},q.prototype.getRenderRange=function(X,ce){return{start:this.rangeMap.indexAt(X),end:this.rangeMap.indexAfter(X+ce-1)}},q.prototype._rerender=function(X,ce){var Ne=this.getRenderRange(X,ce),He,_e;X===this.elementTop(Ne.start)?(He=Ne.start,_e=0):Ne.end-Ne.start>1&&(He=Ne.start+1,_e=this.elementTop(He)-X);for(var de=0;;){for(var se=this.getRenderRange(X,ce),he=!1,ie=se.start;ie<se.end;ie++){var $=this.probeDynamicHeight(ie);$!==0&&this.rangeMap.splice(ie,1,[this.items[ie]]),de+=$,he=he||$!==0}if(!he){de!==0&&this.eventuallyUpdateScrollDimensions();for(var ve=G.a.relativeComplement(Ne,se),ye=0,Ue=ve;ye<Ue.length;ye++)for(var tt=Ue[ye],ie=tt.start;ie<tt.end;ie++)this.items[ie].row&&this.removeItemFromDOM(ie);for(var _t=G.a.relativeComplement(se,Ne),At=0,Yt=_t;At<Yt.length;At++)for(var tt=Yt[At],ie=tt.start;ie<tt.end;ie++){var Ke=ie+1,Ye=Ke<this.items.length?this.items[Ke].row:null,Xe=Ye?Ye.domNode:null;this.insertItemInDOM(ie,Xe)}for(var ie=se.start;ie<se.end;ie++)this.items[ie].row&&this.updateItemInDOM(this.items[ie],ie);typeof He=="number"&&(this.scrollTop=this.elementTop(He)-_e),this._onDidChangeContentHeight.fire(this.contentHeight);return}}},q.prototype.probeDynamicHeight=function(X){var ce=this.items[X];if(!ce.hasDynamicHeight||ce.lastDynamicHeightWidth===this.renderWidth)return 0;var Ne=ce.size,He=this.cache.alloc(ce.templateId);He.domNode.style.height="",this.rowsContainer.appendChild(He.domNode);var _e=this.renderers.get(ce.templateId);return _e&&(_e.renderElement(ce.element,X,He.templateData,void 0),_e.disposeElement&&_e.disposeElement(ce.element,X,He.templateData,void 0)),ce.size=He.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(ce.element,ce.size),ce.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(He.domNode),this.cache.release(He),ce.size-Ne},q.prototype.getNextToLastElement=function(X){var ce=X[X.length-1];if(!ce)return null;var Ne=this.items[ce.end];return!Ne||!Ne.row?null:Ne.row.domNode},q.prototype.getElementDomId=function(X){return this.domId+"_"+X},q.prototype.dispose=function(){if(this.items){for(var X=0,ce=this.items;X<ce.length;X++){var Ne=ce[X];if(Ne.row){var He=this.renderers.get(Ne.row.templateId);He&&He.disposeTemplate(Ne.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(re.f)(this.disposables)},q.InstanceCount=0,v([U.a],q.prototype,"onMouseClick",null),v([U.a],q.prototype,"onMouseDblClick",null),v([U.a],q.prototype,"onMouseMiddleClick",null),v([U.a],q.prototype,"onMouseDown",null),v([U.a],q.prototype,"onContextMenu",null),v([U.a],q.prototype,"onTouchStart",null),v([U.a],q.prototype,"onTap",null),q}()},fjLI:function(Et,A,o){"use strict";o.d(A,"e",function(){return S}),o.d(A,"a",function(){return I}),o.d(A,"c",function(){return K}),o.d(A,"d",function(){return T}),o.d(A,"b",function(){return te});var R=o("8HAY"),re=o("Cg/j"),ne=o("T8No"),P=o("nnTU"),F=o("MI8n"),V=function(){var U=function(h,g){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var E in v)v.hasOwnProperty(E)&&(p[E]=v[E])},U(h,g)};return function(_,h){U(_,h);function g(){this.constructor=_}_.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),B=function(U,_,h,g){var p=arguments.length,v=p<3?_:g===null?g=Object.getOwnPropertyDescriptor(_,h):g,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(U,_,h,g);else for(var k=U.length-1;k>=0;k--)(E=U[k])&&(v=(p<3?E(v):p>3?E(_,h,v):E(_,h))||v);return p>3&&v&&Object.defineProperty(_,h,v),v},G=function(U,_){return function(h,g){_(h,g,U)}},x=function(){for(var U=0,_=0,h=arguments.length;_<h;_++)U+=arguments[_].length;for(var g=Array(U),p=0,_=0;_<h;_++)for(var v=arguments[_],E=0,k=v.length;E<k;E++,p++)g[p]=v[E];return g};function S(U){return U.command!==void 0}var I=Object(re.c)("menuService"),K=new(function(){function U(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new F.a,this.onDidChangeMenu=this._onDidChangeMenu.event}return U.prototype.addCommand=function(_){var h=this;return this._commands.set(_.id,_),this._onDidChangeMenu.fire(0),{dispose:function(){h._commands.delete(_.id)&&h._onDidChangeMenu.fire(0)}}},U.prototype.getCommand=function(_){return this._commands.get(_)},U.prototype.getCommands=function(){var _=new Map;return this._commands.forEach(function(h,g){return _.set(g,h)}),_},U.prototype.appendMenuItem=function(_,h){var g=this,p=this._menuItems.get(_);return p?p.push(h):(p=[h],this._menuItems.set(_,p)),this._onDidChangeMenu.fire(_),{dispose:function(){var E=p.indexOf(h);E>=0&&(p.splice(E,1),g._onDidChangeMenu.fire(_))}}},U.prototype.getMenuItems=function(_){var h=(this._menuItems.get(_)||[]).slice(0);return _===0&&this._appendImplicitItems(h),h},U.prototype._appendImplicitItems=function(_){for(var h=new Set,g=_.filter(function(oe){return S(oe)}),p=0,v=g;p<v.length;p++){var E=v[p],k=E.command,z=E.alt;h.add(k.id),z&&h.add(z.id)}this._commands.forEach(function(oe,fe){h.has(fe)||_.push({command:oe})})},U}()),D=function(U){V(_,U);function _(h,g,p){var v=U.call(this,h,g)||this;return v._commandService=p,v}return _.prototype.run=function(){for(var h,g=[],p=0;p<arguments.length;p++)g[p]=arguments[p];return(h=this._commandService).executeCommand.apply(h,x([this.id],g))},_=B([G(2,P.b)],_),_}(R.a),T=function(U){V(_,U);function _(h){var g=this;return typeof h.title=="string"?g=U.call(this,"",h.title,"submenu")||this:g=U.call(this,"",h.title.value,"submenu")||this,g.item=h,g}return _}(R.a),te=function(U){V(_,U);function _(h,g,p,v,E){var k=this;return typeof h.title=="string"?k=U.call(this,h.id,h.title,E)||this:k=U.call(this,h.id,h.title.value,E)||this,k._cssClass=void 0,k._enabled=!h.precondition||v.contextMatchesRules(h.precondition),k._checked=Boolean(h.toggled&&v.contextMatchesRules(h.toggled)),k._options=p||{},k.item=h,k.alt=g?new _(g,void 0,k._options,v,E):void 0,k}return _.prototype.dispose=function(){this.alt&&this.alt.dispose(),U.prototype.dispose.call(this)},_.prototype.run=function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];var p=[];return this._options.arg&&(p=x(p,[this._options.arg])),this._options.shouldForwardArgs&&(p=x(p,h)),U.prototype.run.apply(this,p)},_=B([G(3,ne.c),G(4,P.b)],_),_}(D)},fpMC:function(Et,A,o){"use strict";o.d(A,"f",function(){return P}),o.d(A,"b",function(){return Se}),o.d(A,"c",function(){return we}),o.d(A,"a",function(){return ye}),o.d(A,"d",function(){return Ue}),o.d(A,"e",function(){return Ze});var R=o("QDVR"),re=o("N0LK");function ne(){for(var Ee=[],W=0;W<arguments.length;W++)Ee[W]=arguments[W];return function(ee,Ae){for(var me=0,Me=Ee.length;me<Me;me++){var Re=Ee[me](ee,Ae);if(Re)return Re}return null}}var P=F.bind(void 0,!0);function F(Ee,W,ee){if(!ee||ee.length<W.length)return null;var Ae;return Ee?Ae=re.N(ee,W):Ae=ee.indexOf(W)===0,Ae?W.length>0?[{start:0,end:W.length}]:[]:null}function V(Ee,W){var ee=W.toLowerCase().indexOf(Ee.toLowerCase());return ee===-1?null:[{start:ee,end:ee+Ee.length}]}function B(Ee,W){return G(Ee.toLowerCase(),W.toLowerCase(),0,0)}function G(Ee,W,ee,Ae){if(ee===Ee.length)return[];if(Ae===W.length)return null;if(Ee[ee]===W[Ae]){var me=null;return(me=G(Ee,W,ee+1,Ae+1))?te({start:Ae,end:Ae+1},me):null}return G(Ee,W,ee,Ae+1)}function x(Ee){return 97<=Ee&&Ee<=122}function S(Ee){return 65<=Ee&&Ee<=90}function I(Ee){return 48<=Ee&&Ee<=57}function K(Ee){return Ee===32||Ee===9||Ee===10||Ee===13}var D=new Set;"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(function(Ee){return D.add(Ee.charCodeAt(0))});function T(Ee){return x(Ee)||S(Ee)||I(Ee)}function te(Ee,W){return W.length===0?W=[Ee]:Ee.end===W[0].start?W[0].start=Ee.start:W.unshift(Ee),W}function U(Ee,W){for(var ee=W;ee<Ee.length;ee++){var Ae=Ee.charCodeAt(ee);if(S(Ae)||I(Ae)||ee>0&&!T(Ee.charCodeAt(ee-1)))return ee}return Ee.length}function _(Ee,W,ee,Ae){if(ee===Ee.length)return[];if(Ae===W.length)return null;if(Ee[ee]!==W[Ae].toLowerCase())return null;var me=null,Me=Ae+1;for(me=_(Ee,W,ee+1,Ae+1);!me&&(Me=U(W,Me))<W.length;)me=_(Ee,W,ee+1,Me),Me++;return me===null?null:te({start:Ae,end:Ae+1},me)}function h(Ee){for(var W=0,ee=0,Ae=0,me=0,Me=0,Re=0;Re<Ee.length;Re++)Me=Ee.charCodeAt(Re),S(Me)&&W++,x(Me)&&ee++,T(Me)&&Ae++,I(Me)&&me++;var ge=W/Ee.length,nt=ee/Ee.length,St=Ae/Ee.length,xt=me/Ee.length;return{upperPercent:ge,lowerPercent:nt,alphaPercent:St,numericPercent:xt}}function g(Ee){var W=Ee.upperPercent,ee=Ee.lowerPercent;return ee===0&&W>.6}function p(Ee){var W=Ee.upperPercent,ee=Ee.lowerPercent,Ae=Ee.alphaPercent,me=Ee.numericPercent;return ee>.2&&W<.8&&Ae>.6&&me<.2}function v(Ee){for(var W=0,ee=0,Ae=0,me=0,Me=0;Me<Ee.length;Me++)Ae=Ee.charCodeAt(Me),S(Ae)&&W++,x(Ae)&&ee++,K(Ae)&&me++;return(W===0||ee===0)&&me===0?Ee.length<=30:W<=5}function E(Ee,W){if(!W||(W=W.trim(),W.length===0)||!v(Ee)||W.length>60)return null;var ee=h(W);if(!p(ee)){if(!g(ee))return null;W=W.toLowerCase()}var Ae=null,me=0;for(Ee=Ee.toLowerCase();me<W.length&&(Ae=_(Ee,W,0,me))===null;)me=U(W,me+1);return Ae}var k=ne(P,E,V),z=ne(P,E,B),oe=new R.a(1e4);function fe(Ee,W,ee){if(ee===void 0&&(ee=!1),typeof Ee!="string"||typeof W!="string")return null;var Ae=oe.get(Ee);Ae||(Ae=new RegExp(re.k(Ee),"i"),oe.set(Ee,Ae));var me=Ae.exec(W);return me?[{start:me.index,end:me.index+me[0].length}]:ee?z(Ee,W):k(Ee,W)}function Se(Ee,W,ee,Ae,me,Me){var Re=Ue(Ee,W,0,Ae,me,0,!0);if(Re)return Re;for(var ge=0,nt=0,St=Me,xt=0;xt<W.length&&xt<q;++xt){var Mt=me.indexOf(W.charAt(xt),St);if(Mt>=0)nt+=1,ge+=Math.pow(2,Mt),St=Mt+1;else if(ge!==0)break}return[nt,ge,Me]}function we(Ee){if(typeof Ee=="undefined")return[];for(var W=Ee[1].toString(2),ee=Ee[2],Ae=[],me=ee;me<q;me++)if(W[W.length-(me+1)]==="1"){var Me=Ae[Ae.length-1];Me&&Me.end===me?Me.end=me+1:Ae.push({start:me,end:me+1})}return Ae}var q=128;function X(){for(var Ee=[],W=[0],ee=1;ee<=q;ee++)W.push(-ee);for(var ee=0;ee<=q;ee++){var Ae=W.slice(0);Ae[0]=-ee,Ee.push(Ae)}return Ee}var ce=X(),Ne=X(),He=X(),_e=!1;function de(Ee,W,ee,Ae,me){function Me(nt,St,xt){for(xt===void 0&&(xt=" ");nt.length<St;)nt=xt+nt;return nt}for(var Re=" | |"+Ae.split("").map(function(nt){return Me(nt,3)}).join("|")+`
`,ge=0;ge<=ee;ge++)ge===0?Re+=" |":Re+=W[ge-1]+"|",Re+=Ee[ge].slice(0,me+1).map(function(nt){return Me(nt.toString(),3)}).join("|")+`
`;return Re}function se(Ee,W,ee,Ae){Ee=Ee.substr(W),ee=ee.substr(Ae),console.log(de(ce,Ee,Ee.length,ee,ee.length)),console.log(de(He,Ee,Ee.length,ee,ee.length)),console.log(de(Ne,Ee,Ee.length,ee,ee.length))}function he(Ee,W){if(W<0||W>=Ee.length)return!1;var ee=Ee.charCodeAt(W);switch(ee){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function ie(Ee,W){if(W<0||W>=Ee.length)return!1;var ee=Ee.charCodeAt(W);switch(ee){case 32:case 9:return!0;default:return!1}}function $(Ee,W,ee){return W[Ee]!==ee[Ee]}function ve(Ee,W,ee,Ae,me,Me){for(;W<ee&&me<Me;)Ee[W]===Ae[me]&&(W+=1),me+=1;return W===ee}var ye;(function(Ee){Ee.Default=Object.freeze([-100,0,0]);function W(ee){return!ee||ee[0]===-100&&ee[1]===0&&ee[2]===0}Ee.isDefault=W})(ye||(ye={}));function Ue(Ee,W,ee,Ae,me,Me,Re){var ge=Ee.length>q?q:Ee.length,nt=Ae.length>q?q:Ae.length;if(!(ee>=ge||Me>=nt||ge-ee>nt-Me)&&!!ve(W,ee,ge,me,Me,nt)){var St=1,xt=1,Mt=ee,zt=Me;for(St=1,Mt=ee;Mt<ge;St++,Mt++)for(xt=1,zt=Me;zt<nt;xt++,zt++){var Gt=tt(Ee,W,Mt,ee,Ae,me,zt);Ne[St][xt]=Gt;var on=ce[St-1][xt-1]+(Gt>1?1:Gt),On=ce[St-1][xt]+-1,yn=ce[St][xt-1]+-1;yn>=On?yn>on?(ce[St][xt]=yn,He[St][xt]=4):yn===on?(ce[St][xt]=yn,He[St][xt]=4|2):(ce[St][xt]=on,He[St][xt]=2):On>on?(ce[St][xt]=On,He[St][xt]=1):On===on?(ce[St][xt]=On,He[St][xt]=1|2):(ce[St][xt]=on,He[St][xt]=2)}if(_e&&se(Ee,ee,Ae,Me),_t=0,Yt=-100,Ke=Me,Ye=Re,Xe(St-1,xt-1,ge===nt?1:0,0,!1),_t!==0)return[Yt,At,Me]}}function tt(Ee,W,ee,Ae,me,Me,Re){return W[ee]!==Me[Re]?-1:Re===ee-Ae||$(Re,me,Me)&&(Re===0||!$(Re-1,me,Me))?Ee[ee]===me[Re]?7:5:he(Me,Re)&&(Re===0||!he(Me,Re-1))||he(Me,Re-1)||ie(Me,Re-1)?5:1}var _t=0,At=0,Yt=0,Ke=0,Ye=!1;function Xe(Ee,W,ee,Ae,me){if(!(_t>=10||ee<-25)){for(var Me=0;Ee>0&&W>0;){var Re=Ne[Ee][W],ge=He[Ee][W];if(ge===4)W-=1,me?ee-=5:Ae!==0&&(ee-=1),me=!1,Me=0;else if(ge&2)if(ge&4&&Xe(Ee,W-1,Ae!==0?ee-1:ee,Ae,me),ee+=Re,Ee-=1,W-=1,me=!0,Ae+=Math.pow(2,W+Ke),Re===1){if(Me+=1,Ee===0&&!Ye)return}else ee+=1+Me*(Re-1),Me=0;else return}ee-=W>=3?9:W*3,_t+=1,ee>Yt&&(Yt=ee,At=Ae)}}function Ze(Ee,W,ee,Ae,me,Me,Re){return We(Ee,W,ee,Ae,me,Me,!0,Re)}function We(Ee,W,ee,Ae,me,Me,Re,ge){var nt=Ue(Ee,W,ee,Ae,me,Me,ge);if(nt&&!Re)return nt;if(Ee.length>=3)for(var St=Math.min(7,Ee.length-1),xt=ee+1;xt<St;xt++){var Mt=Qe(Ee,xt);if(Mt){var zt=Ue(Mt,Mt.toLowerCase(),ee,Ae,me,Me,ge);zt&&(zt[0]-=3,(!nt||zt[0]>nt[0])&&(nt=zt))}}return nt}function Qe(Ee,W){if(!(W+1>=Ee.length)){var ee=Ee[W],Ae=Ee[W+1];if(ee!==Ae)return Ee.slice(0,W)+Ae+ee+Ee.slice(W+2)}}},gCVg:function(Et,A,o){"use strict";o.d(A,"a",function(){return P});var R=o("cGHE"),re=o("aokT"),ne=function(){var F=function(B,G){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,S){x.__proto__=S}||function(x,S){for(var I in S)S.hasOwnProperty(I)&&(x[I]=S[I])},F(B,G)};return function(V,B){F(V,B);function G(){this.constructor=V}V.prototype=B===null?Object.create(B):(G.prototype=B.prototype,new G)}}(),P=function(F){ne(V,F);function V(B,G,x,S){var I=F.call(this,B,G,x,S)||this;return I.selectionStartLineNumber=B,I.selectionStartColumn=G,I.positionLineNumber=x,I.positionColumn=S,I}return V.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},V.prototype.equalsSelection=function(B){return V.selectionsEqual(this,B)},V.selectionsEqual=function(B,G){return B.selectionStartLineNumber===G.selectionStartLineNumber&&B.selectionStartColumn===G.selectionStartColumn&&B.positionLineNumber===G.positionLineNumber&&B.positionColumn===G.positionColumn},V.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},V.prototype.setEndPosition=function(B,G){return this.getDirection()===0?new V(this.startLineNumber,this.startColumn,B,G):new V(B,G,this.startLineNumber,this.startColumn)},V.prototype.getPosition=function(){return new R.a(this.positionLineNumber,this.positionColumn)},V.prototype.setStartPosition=function(B,G){return this.getDirection()===0?new V(B,G,this.endLineNumber,this.endColumn):new V(this.endLineNumber,this.endColumn,B,G)},V.fromPositions=function(B,G){return G===void 0&&(G=B),new V(B.lineNumber,B.column,G.lineNumber,G.column)},V.liftSelection=function(B){return new V(B.selectionStartLineNumber,B.selectionStartColumn,B.positionLineNumber,B.positionColumn)},V.selectionsArrEqual=function(B,G){if(B&&!G||!B&&G)return!1;if(!B&&!G)return!0;if(B.length!==G.length)return!1;for(var x=0,S=B.length;x<S;x++)if(!this.selectionsEqual(B[x],G[x]))return!1;return!0},V.isISelection=function(B){return B&&typeof B.selectionStartLineNumber=="number"&&typeof B.selectionStartColumn=="number"&&typeof B.positionLineNumber=="number"&&typeof B.positionColumn=="number"},V.createWithDirection=function(B,G,x,S,I){return I===0?new V(B,G,x,S):new V(x,S,B,G)},V}(re.a)},gqHg:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return o.e(11).then(o.bind(null,"fhwZ"))}}),Object(R.a)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return o.e(11).then(o.bind(null,"fhwZ"))}})},gslv:function(Et,A,o){"use strict";o.d(A,"c",function(){return x}),o.d(A,"e",function(){return I}),o.d(A,"b",function(){return K}),o.d(A,"d",function(){return D}),o.d(A,"f",function(){return T}),o.d(A,"g",function(){return te}),o.d(A,"h",function(){return _}),o.d(A,"a",function(){return h});var R=o("PTeM"),re=o("MrjW"),ne=o("bY76"),P=o("N0LK"),F=o("tYmi"),V=o("MNsG"),B=function(){for(var g=0,p=0,v=arguments.length;p<v;p++)g+=arguments[p].length;for(var E=Array(g),k=0,p=0;p<v;p++)for(var z=arguments[p],oe=0,fe=z.length;oe<fe;oe++,k++)E[k]=z[oe];return E};function G(g){return g&&g.scheme===F.b.file?!V.d:!0}function x(g){return K(g)||g.authority}function S(g,p){return g===p||Object(P.n)(g,p)}function I(g,p,v){if(v===void 0&&(v=G(g)),g===p)return!0;if(!g||!p||g.scheme!==p.scheme||!S(g.authority,p.authority))return!1;var E=g.path||"/",k=p.path||"/";return E===k||v&&Object(P.n)(E||"/",k||"/")}function K(g){return re.posix.basename(g.path)}function D(g){if(g.path.length===0)return g;if(g.scheme===F.b.file)return ne.a.file(re.dirname(U(g)));var p=re.posix.dirname(g.path);return g.authority&&p.length&&p.charCodeAt(0)!==47&&(console.error('dirname("'+g.toString+")) resulted in a relative path"),p="/"),g.with({path:p})}function T(g){for(var p,v=[],E=1;E<arguments.length;E++)v[E-1]=arguments[E];var k;return g.scheme===F.b.file?k=ne.a.file(re.join.apply(re,B([U(g)],v))).path:k=(p=re.posix).join.apply(p,B([g.path||"/"],v)),g.with({path:k})}function te(g){if(!g.path.length)return g;var p;return g.scheme===F.b.file?p=ne.a.file(re.normalize(U(g))).path:p=re.posix.normalize(g.path),g.with({path:p})}function U(g){var p,v=g.path;return g.authority&&v.length>1&&g.scheme===F.b.file?p="//"+g.authority+v:V.h&&v.charCodeAt(0)===47&&R.b(v.charCodeAt(1))&&v.charCodeAt(2)===58?p=v.substr(1):p=v,V.h&&(p=p.replace(/\//g,"\\")),p}function _(g,p,v){if(v===void 0&&(v=G(g)),!(g.scheme!==p.scheme||!S(g.authority,p.authority))){if(g.scheme===F.b.file){var E=re.relative(g.path,p.path);return V.h?R.c(E):E}var k=g.path||"/",z=p.path||"/";if(v){for(var oe=0,fe=Math.min(k.length,z.length);oe<fe&&!(k.charCodeAt(oe)!==z.charCodeAt(oe)&&k.charAt(oe).toLowerCase()!==z.charAt(oe).toLowerCase());oe++);k=z.substr(0,oe)+k.substr(oe)}return re.posix.relative(k,z)}}var h;(function(g){g.META_DATA_LABEL="label",g.META_DATA_DESCRIPTION="description",g.META_DATA_SIZE="size",g.META_DATA_MIME="mime";function p(v){var E=new Map,k=v.path.substring(v.path.indexOf(";")+1,v.path.lastIndexOf(";"));k.split(";").forEach(function(oe){var fe=oe.split(":"),Se=fe[0],we=fe[1];Se&&we&&E.set(Se,we)});var z=v.path.substring(0,v.path.indexOf(";"));return z&&E.set(g.META_DATA_MIME,z),E}g.parseMetaData=p})(h||(h={}))},hFdI:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.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 o.e(212).then(o.bind(null,"tpLM"))}})},hHjc:function(Et,A,o){},"i/Ef":function(Et,A,o){"use strict";o.d(A,"c",function(){return P}),o.d(A,"b",function(){return F}),o.d(A,"a",function(){return V}),o.d(A,"d",function(){return B}),o.d(A,"e",function(){return G});var R=o("Tcc1"),re=o("twdY"),ne=function(){function x(){}return x.prototype.clone=function(){return this},x.prototype.equals=function(S){return this===S},x}(),P=new ne,F="vs.editor.nullMode",V=new re.q(F,0);function B(x,S,I,K){return new R.b([new R.a(K,"",x)],I)}function G(x,S,I,K){var D=new Uint32Array(2);return D[0]=K,D[1]=(x<<0|0<<8|0<<11|1<<14|2<<23)>>>0,new R.c(D,I===null?P:I)}},"i/Rh":function(Et,A,o){},iDAx:function(Et,A,o){"use strict";o.d(A,"a",function(){return v}),o.d(A,"c",function(){return He}),o.d(A,"b",function(){return _e});var R=o("3/fG"),re=o("MI8n"),ne=o("pmY6"),P=o("qj0h"),F=o("6OMU"),V=o("/UlZ"),B=o("Yr1X"),G=o("+3Gp"),x=o("CRAX"),S=o("ic2d"),I=o("vl9R"),K=function(){var de=function(he,ie){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ve){$.__proto__=ve}||function($,ve){for(var ye in ve)ve.hasOwnProperty(ye)&&($[ye]=ve[ye])},de(he,ie)};return function(se,he){de(se,he);function ie(){this.constructor=se}se.prototype=he===null?Object.create(he):(ie.prototype=he.prototype,new ie)}}(),D=function(){return D=Object.assign||function(de){for(var se,he=1,ie=arguments.length;he<ie;he++){se=arguments[he];for(var $ in se)Object.prototype.hasOwnProperty.call(se,$)&&(de[$]=se[$])}return de},D.apply(this,arguments)},T=new(function(){function de(){this._tabFocus=!1,this._onDidChangeTabFocus=new re.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return de.prototype.getTabFocusMode=function(){return this._tabFocus},de.prototype.setTabFocusMode=function(se){this._tabFocus!==se&&(this._tabFocus=se,this._onDidChangeTabFocus.fire(this._tabFocus))},de}()),te=Object.hasOwnProperty,U=function(){function de(){this._values=[]}return de.prototype._read=function(se){return this._values[se]},de.prototype.get=function(se){return this._values[se]},de.prototype._write=function(se,he){this._values[se]=he},de}(),_=function(){function de(){this._values=[]}return de.prototype._read=function(se){return this._values[se]},de.prototype._write=function(se,he){this._values[se]=he},de}(),h=function(){function de(){}return de.readOptions=function(se){for(var he=se,ie=new _,$=0,ve=V.i;$<ve.length;$++){var ye=ve[$],Ue=ye.name==="_never_"?void 0:he[ye.name];ie._write(ye.id,Ue)}return ie},de.validateOptions=function(se){for(var he=new V.h,ie=0,$=V.i;ie<$.length;ie++){var ve=$[ie];he._write(ve.id,ve.validate(se._read(ve.id)))}return he},de.computeOptions=function(se,he){for(var ie=new U,$=0,ve=V.i;$<ve.length;$++){var ye=ve[$];ie._write(ye.id,ye.compute(he,ie,se._read(ye.id)))}return ie},de._deepEquals=function(se,he){if(typeof se!="object"||typeof he!="object")return se===he;if(Array.isArray(se)||Array.isArray(he))return Array.isArray(se)&&Array.isArray(he)?F.g(se,he):!1;for(var ie in se)if(!de._deepEquals(se[ie],he[ie]))return!1;return!0},de.checkEquals=function(se,he){for(var ie=[],$=!1,ve=0,ye=V.i;ve<ye.length;ve++){var Ue=ye[ve],tt=!de._deepEquals(se._read(Ue.id),he._read(Ue.id));ie[Ue.id]=tt,tt&&($=!0)}return $?new V.a(ie):null},de}();function g(de){var se=de.wordWrap;se===!0?de.wordWrap="on":se===!1&&(de.wordWrap="off");var he=de.lineNumbers;he===!0?de.lineNumbers="on":he===!1&&(de.lineNumbers="off");var ie=de.autoClosingBrackets;ie===!1&&(de.autoClosingBrackets="never",de.autoClosingQuotes="never",de.autoSurround="never");var $=de.cursorBlinking;$==="visible"&&(de.cursorBlinking="solid");var ve=de.renderWhitespace;ve===!0?de.renderWhitespace="boundary":ve===!1&&(de.renderWhitespace="none");var ye=de.renderLineHighlight;ye===!0?de.renderLineHighlight="line":ye===!1&&(de.renderLineHighlight="none");var Ue=de.acceptSuggestionOnEnter;Ue===!0?de.acceptSuggestionOnEnter="on":Ue===!1&&(de.acceptSuggestionOnEnter="off");var tt=de.tabCompletion;tt===!1?de.tabCompletion="off":tt===!0&&(de.tabCompletion="onlySnippets");var _t=de.suggest;if(_t&&typeof _t.filteredTypes=="object"&&_t.filteredTypes){var At={};At.method="showMethods",At.function="showFunctions",At.constructor="showConstructors",At.field="showFields",At.variable="showVariables",At.class="showClasses",At.struct="showStructs",At.interface="showInterfaces",At.module="showModules",At.property="showProperties",At.event="showEvents",At.operator="showOperators",At.unit="showUnits",At.value="showValues",At.constant="showConstants",At.enum="showEnums",At.enumMember="showEnumMembers",At.keyword="showKeywords",At.text="showWords",At.color="showColors",At.file="showFiles",At.reference="showReferences",At.folder="showFolders",At.typeParameter="showTypeParameters",At.snippet="showSnippets",Object(I.b)(At,function(Ze){var We=_t.filteredTypes[Ze.key];We===!1&&(_t[Ze.value]=We)})}var Yt=de.hover;Yt===!0?de.hover={enabled:!0}:Yt===!1&&(de.hover={enabled:!1});var Ke=de.parameterHints;Ke===!0?de.parameterHints={enabled:!0}:Ke===!1&&(de.parameterHints={enabled:!1});var Ye=de.autoIndent;Ye===!0?de.autoIndent="full":Ye===!1&&(de.autoIndent="advanced");var Xe=de.matchBrackets;Xe===!0?de.matchBrackets="always":Xe===!1&&(de.matchBrackets="never")}function p(de){var se=P.c(de);return g(se),se}var v=function(de){K(se,de);function se(he,ie){var $=de.call(this)||this;return $._onDidChange=$._register(new re.a),$.onDidChange=$._onDidChange.event,$.isSimpleWidget=he,$._isDominatedByLongLines=!1,$._lineNumbersDigitCount=1,$._rawOptions=p(ie),$._readOptions=h.readOptions($._rawOptions),$._validatedOptions=h.validateOptions($._readOptions),$._register(B.a.onDidChangeZoomLevel(function(ve){return $._recomputeOptions()})),$._register(T.onDidChangeTabFocus(function(ve){return $._recomputeOptions()})),$}return se.prototype.observeReferenceElement=function(he){},se.prototype.dispose=function(){de.prototype.dispose.call(this)},se.prototype._recomputeOptions=function(){var he=this.options,ie=this._computeInternalOptions();if(!he)this.options=ie;else{var $=h.checkEquals(he,ie);if($===null)return;this.options=ie,this._onDidChange.fire($)}},se.prototype.getRawOptions=function(){return this._rawOptions},se.prototype._computeInternalOptions=function(){var he=this._getEnvConfiguration(),ie=G.a.createFromValidatedSettings(this._validatedOptions,he.zoomLevel,this.isSimpleWidget),$={outerWidth:he.outerWidth,outerHeight:he.outerHeight,fontInfo:this.readConfiguration(ie),extraEditorClassName:he.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:he.emptySelectionClipboard,pixelRatio:he.pixelRatio,tabFocusMode:T.getTabFocusMode(),accessibilitySupport:he.accessibilitySupport};return h.computeOptions(this._validatedOptions,$)},se._subsetEquals=function(he,ie){for(var $ in ie)if(te.call(ie,$)){var ve=ie[$],ye=he[$];if(ye===ve)continue;if(Array.isArray(ye)&&Array.isArray(ve)){if(!F.g(ye,ve))return!1;continue}if(typeof ye=="object"&&typeof ve=="object"){if(!this._subsetEquals(ye,ve))return!1;continue}return!1}return!0},se.prototype.updateOptions=function(he){if(typeof he!="undefined"){var ie=p(he);se._subsetEquals(this._rawOptions,ie)||(this._rawOptions=P.g(this._rawOptions,ie||{}),this._readOptions=h.readOptions(this._rawOptions),this._validatedOptions=h.validateOptions(this._readOptions),this._recomputeOptions())}},se.prototype.setIsDominatedByLongLines=function(he){this._isDominatedByLongLines=he,this._recomputeOptions()},se.prototype.setMaxLineNumber=function(he){var ie=se._digitCount(he);this._lineNumbersDigitCount!==ie&&(this._lineNumbersDigitCount=ie,this._recomputeOptions())},se._digitCount=function(he){for(var ie=0;he;)he=Math.floor(he/10),ie++;return ie||1},se}(ne.a),E=Object.freeze({id:"editor",order:5,type:"object",title:R.a("editorConfigurationTitle","Editor"),scope:5}),k=S.a.as(x.a.Configuration),z=D(D({},E),{properties:{"editor.tabSize":{type:"number",default:V.c.tabSize,minimum:1,markdownDescription:R.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:V.c.insertSpaces,markdownDescription:R.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:V.c.detectIndentation,markdownDescription:R.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:V.c.trimAutoWhitespace,description:R.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:V.c.largeFileOptimizations,description:R.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:R.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{type:"boolean",default:!1,description:R.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:R.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:R.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:R.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:R.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:R.a("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:R.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}});function oe(de){return typeof de.type!="undefined"||typeof de.anyOf!="undefined"}for(var fe=0,Se=V.i;fe<Se.length;fe++){var we=Se[fe],q=we.schema;if(typeof q!="undefined")if(oe(q))z.properties["editor."+we.name]=q;else for(var X in q)te.call(q,X)&&(z.properties[X]=q[X])}var ce=null;function Ne(){return ce===null&&(ce=Object.create(null),Object.keys(z.properties).forEach(function(de){ce[de]=!0})),ce}function He(de){var se=Ne();return se["editor."+de]||!1}function _e(de){var se=Ne();return se["diffEditor."+de]||!1}k.registerConfiguration(z)},iJk1:function(Et,A,o){},iLY9:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return o.e(232).then(o.bind(null,"8ahN"))}})},ic2d:function(Et,A,o){"use strict";o.d(A,"a",function(){return P});var R=o("746U"),re=o("FWmy"),ne=function(){function F(){this.data=new Map}return F.prototype.add=function(V,B){re.a(R.j(V)),re.a(R.i(B)),re.a(!this.data.has(V),"There is already an extension with this id"),this.data.set(V,B)},F.prototype.as=function(V){return this.data.get(V)||null},F}(),P=new ne},"ij/i":function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return o.e(238).then(o.bind(null,"3MdH"))}})},iuje:function(Et,A,o){"use strict";o.d(A,"c",function(){return R}),o.d(A,"a",function(){return re}),o.d(A,"b",function(){return ne});function R(P){return P&&typeof P.id=="string"}var re={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},ne={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},j2o1:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return o.e(230).then(o.bind(null,"ppMK"))}})},"jAJ/":function(Et,A,o){"use strict";o.d(A,"a",function(){return B}),o.d(A,"d",function(){return S}),o.d(A,"c",function(){return K}),o.d(A,"e",function(){return te}),o.d(A,"b",function(){return U});var R=o("N0LK"),re=o("5v8Y"),ne=o("cGHE"),P=o("aokT"),F=o("M1Kb"),V=999,B=function(){function _(h,g,p,v){this.searchString=h,this.isRegex=g,this.matchCase=p,this.wordSeparators=v}return _.prototype.parseSearchRequest=function(){if(this.searchString==="")return null;var h;this.isRegex?h=G(this.searchString):h=this.searchString.indexOf(`
`)>=0;var g=null;try{g=R.l(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:h,global:!0,unicode:!0})}catch(v){return null}if(!g)return null;var p=!this.isRegex&&!h;return p&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(p=this.matchCase),new x(g,this.wordSeparators?Object(re.a)(this.wordSeparators):null,p?this.searchString:null)},_}();function G(_){if(!_||_.length===0)return!1;for(var h=0,g=_.length;h<g;h++){var p=_.charCodeAt(h);if(p===92){if(h++,h>=g)break;var v=_.charCodeAt(h);if(v===110||v===114||v===87||v===119)return!0}}return!1}var x=function(){function _(h,g,p){this.regex=h,this.wordSeparators=g,this.simpleSearch=p}return _}();function S(_,h,g){if(!g)return new F.b(_,null);for(var p=[],v=0,E=h.length;v<E;v++)p[v]=h[v];return new F.b(_,p)}var I=function(){function _(h){for(var g=[],p=0,v=0,E=h.length;v<E;v++)h.charCodeAt(v)===10&&(g[p++]=v);this._lineFeedsOffsets=g}return _.prototype.findLineFeedCountBeforeOffset=function(h){var g=this._lineFeedsOffsets,p=0,v=g.length-1;if(v===-1||h<=g[0])return 0;for(;p<v;){var E=p+((v-p)/2>>0);g[E]>=h?v=E-1:g[E+1]>=h?(p=E,v=E):p=E+1}return p+1},_}(),K=function(){function _(){}return _.findMatches=function(h,g,p,v,E){var k=g.parseSearchRequest();return k?k.regex.multiline?this._doFindMatchesMultiline(h,p,new U(k.wordSeparators,k.regex),v,E):this._doFindMatchesLineByLine(h,p,k,v,E):[]},_._getMultilineMatchRange=function(h,g,p,v,E,k){var z,oe=0;v?(oe=v.findLineFeedCountBeforeOffset(E),z=g+E+oe):z=g+E;var fe;if(v){var Se=v.findLineFeedCountBeforeOffset(E+k.length),we=Se-oe;fe=z+k.length+we}else fe=z+k.length;var q=h.getPositionAt(z),X=h.getPositionAt(fe);return new P.a(q.lineNumber,q.column,X.lineNumber,X.column)},_._doFindMatchesMultiline=function(h,g,p,v,E){var k=h.getOffsetAt(g.getStartPosition()),z=h.getValueInRange(g,1),oe=h.getEOL()===`\r
`?new I(z):null,fe=[],Se=0,we;for(p.reset(0);we=p.next(z);)if(fe[Se++]=S(this._getMultilineMatchRange(h,k,z,oe,we.index,we[0]),we,v),Se>=E)return fe;return fe},_._doFindMatchesLineByLine=function(h,g,p,v,E){var k=[],z=0;if(g.startLineNumber===g.endLineNumber){var oe=h.getLineContent(g.startLineNumber).substring(g.startColumn-1,g.endColumn-1);return z=this._findMatchesInLine(p,oe,g.startLineNumber,g.startColumn-1,z,k,v,E),k}var fe=h.getLineContent(g.startLineNumber).substring(g.startColumn-1);z=this._findMatchesInLine(p,fe,g.startLineNumber,g.startColumn-1,z,k,v,E);for(var Se=g.startLineNumber+1;Se<g.endLineNumber&&z<E;Se++)z=this._findMatchesInLine(p,h.getLineContent(Se),Se,0,z,k,v,E);if(z<E){var we=h.getLineContent(g.endLineNumber).substring(0,g.endColumn-1);z=this._findMatchesInLine(p,we,g.endLineNumber,0,z,k,v,E)}return k},_._findMatchesInLine=function(h,g,p,v,E,k,z,oe){var fe=h.wordSeparators;if(!z&&h.simpleSearch){for(var Se=h.simpleSearch,we=Se.length,q=g.length,X=-we;(X=g.indexOf(Se,X+we))!==-1;)if((!fe||te(fe,g,q,X,we))&&(k[E++]=new F.b(new P.a(p,X+1+v,p,X+1+we+v),null),E>=oe))return E;return E}var ce=new U(h.wordSeparators,h.regex),Ne;ce.reset(0);do if(Ne=ce.next(g),Ne&&(k[E++]=S(new P.a(p,Ne.index+1+v,p,Ne.index+1+Ne[0].length+v),Ne,z),E>=oe))return E;while(Ne);return E},_.findNextMatch=function(h,g,p,v){var E=g.parseSearchRequest();if(!E)return null;var k=new U(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindNextMatchMultiline(h,p,k,v):this._doFindNextMatchLineByLine(h,p,k,v)},_._doFindNextMatchMultiline=function(h,g,p,v){var E=new ne.a(g.lineNumber,1),k=h.getOffsetAt(E),z=h.getLineCount(),oe=h.getValueInRange(new P.a(E.lineNumber,E.column,z,h.getLineMaxColumn(z)),1),fe=h.getEOL()===`\r
`?new I(oe):null;p.reset(g.column-1);var Se=p.next(oe);return Se?S(this._getMultilineMatchRange(h,k,oe,fe,Se.index,Se[0]),Se,v):g.lineNumber!==1||g.column!==1?this._doFindNextMatchMultiline(h,new ne.a(1,1),p,v):null},_._doFindNextMatchLineByLine=function(h,g,p,v){var E=h.getLineCount(),k=g.lineNumber,z=h.getLineContent(k),oe=this._findFirstMatchInLine(p,z,k,g.column,v);if(oe)return oe;for(var fe=1;fe<=E;fe++){var Se=(k+fe-1)%E,we=h.getLineContent(Se+1),q=this._findFirstMatchInLine(p,we,Se+1,1,v);if(q)return q}return null},_._findFirstMatchInLine=function(h,g,p,v,E){h.reset(v-1);var k=h.next(g);return k?S(new P.a(p,k.index+1,p,k.index+1+k[0].length),k,E):null},_.findPreviousMatch=function(h,g,p,v){var E=g.parseSearchRequest();if(!E)return null;var k=new U(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindPreviousMatchMultiline(h,p,k,v):this._doFindPreviousMatchLineByLine(h,p,k,v)},_._doFindPreviousMatchMultiline=function(h,g,p,v){var E=this._doFindMatchesMultiline(h,new P.a(1,1,g.lineNumber,g.column),p,v,10*V);if(E.length>0)return E[E.length-1];var k=h.getLineCount();return g.lineNumber!==k||g.column!==h.getLineMaxColumn(k)?this._doFindPreviousMatchMultiline(h,new ne.a(k,h.getLineMaxColumn(k)),p,v):null},_._doFindPreviousMatchLineByLine=function(h,g,p,v){var E=h.getLineCount(),k=g.lineNumber,z=h.getLineContent(k).substring(0,g.column-1),oe=this._findLastMatchInLine(p,z,k,v);if(oe)return oe;for(var fe=1;fe<=E;fe++){var Se=(E+k-fe-1)%E,we=h.getLineContent(Se+1),q=this._findLastMatchInLine(p,we,Se+1,v);if(q)return q}return null},_._findLastMatchInLine=function(h,g,p,v){var E=null,k;for(h.reset(0);k=h.next(g);)E=S(new P.a(p,k.index+1,p,k.index+1+k[0].length),k,v);return E},_}();function D(_,h,g,p,v){if(p===0)return!0;var E=h.charCodeAt(p-1);if(_.get(E)!==0||E===13||E===10)return!0;if(v>0){var k=h.charCodeAt(p);if(_.get(k)!==0)return!0}return!1}function T(_,h,g,p,v){if(p+v===g)return!0;var E=h.charCodeAt(p+v);if(_.get(E)!==0||E===13||E===10)return!0;if(v>0){var k=h.charCodeAt(p+v-1);if(_.get(k)!==0)return!0}return!1}function te(_,h,g,p,v){return D(_,h,g,p,v)&&T(_,h,g,p,v)}var U=function(){function _(h,g){this._wordSeparators=h,this._searchRegex=g,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return _.prototype.reset=function(h){this._searchRegex.lastIndex=h,this._prevMatchStartIndex=-1,this._prevMatchLength=0},_.prototype.next=function(h){var g=h.length,p;do{if(this._prevMatchStartIndex+this._prevMatchLength===g||(p=this._searchRegex.exec(h),!p))return null;var v=p.index,E=p[0].length;if(v===this._prevMatchStartIndex&&E===this._prevMatchLength){if(E===0){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=v,this._prevMatchLength=E,!this._wordSeparators||te(this._wordSeparators,h,g,v,E))return p}while(p);return null},_}()},jVwG:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return o.e(222).then(o.bind(null,"fYNN"))}})},jrbv:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return o.e(203).then(o.bind(null,"2ZXa"))}})},k7mE:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return o.e(214).then(o.bind(null,"BjZ/"))}})},k9mg:function(Et,A,o){"use strict";o.d(A,"a",function(){return ji}),o.d(A,"b",function(){return Mi}),o.d(A,"d",function(){return mi}),o.d(A,"c",function(){return hn});var R=o("EffR"),re=o("cqdO"),ne=o("pmY6"),P=o("3/fG"),F=o("+7oY"),V=o("CRAX"),B=o("T8No"),G=o("Cg/j"),x=o("bexQ"),S=o("ic2d"),I=o("ptcw"),K=o("t9D7"),D="inputFocus",T=o("2V9f"),te=o("MI8n"),U=o("uDWl"),_=o("ZQ78"),h=o("6OMU"),g=o("feEw"),p=o("4y0V"),v=o("fpMC"),E=function(){var Oe=function(ae,Fe){return Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var wt in ct)ct.hasOwnProperty(wt)&&(qe[wt]=ct[wt])},Oe(ae,Fe)};return function(j,ae){Oe(j,ae);function Fe(){this.constructor=j}j.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),k=function(Oe){E(j,Oe);function j(ae,Fe){return Oe.call(this,"TreeError ["+ae+"] "+Fe)||this}return j}(Error),z=function(){function Oe(j){this.fn=j,this._map=new WeakMap}return Oe.prototype.map=function(j){var ae=this._map.get(j);return ae||(ae=this.fn(j),this._map.set(j,ae)),ae},Oe}(),oe=o("JYp7"),fe=function(){for(var Oe=0,j=0,ae=arguments.length;j<ae;j++)Oe+=arguments[j].length;for(var Fe=Array(Oe),qe=0,j=0;j<ae;j++)for(var ct=arguments[j],wt=0,Ge=ct.length;wt<Ge;wt++,qe++)Fe[qe]=ct[wt];return Fe};function Se(Oe){return typeof Oe=="object"&&"visibility"in Oe&&"data"in Oe}function we(Oe){switch(Oe){case!0:return 1;case!1:return 0;default:return Oe}}function q(Oe){return typeof Oe.collapsible=="boolean"}var X=function(){function Oe(j,ae,Fe,qe){qe===void 0&&(qe={}),this.user=j,this.list=ae,this.rootRef=[],this.eventBufferer=new te.c,this._onDidChangeCollapseState=new te.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new te.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new te.a,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=typeof qe.collapseByDefault=="undefined"?!1:qe.collapseByDefault,this.filter=qe.filter,this.autoExpandSingleChildren=typeof qe.autoExpandSingleChildren=="undefined"?!1:qe.autoExpandSingleChildren,this.root={parent:void 0,element:Fe,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return Oe.prototype.splice=function(j,ae,Fe,qe,ct){var wt,Ge=this;if(j.length===0)throw new k(this.user,"Invalid tree location");for(var le=this.getParentNodeWithListIndex(j),Y=le.parentNode,Ve=le.listIndex,at=le.revealed,et=le.visible,J=[],be=oe.c.map(oe.c.from(Fe),function(Yn){return Ge.createTreeNode(Yn,Y,Y.visible?1:0,at,J,qe)}),Le=j[j.length-1],it=0,Je=Le;Je>=0&&Je<Y.children.length;Je--){var Be=Y.children[Je];if(Be.visible){it=Be.visibleChildIndex;break}}var bt=[],Lt=0,$t=0;oe.c.forEach(be,function(Yn){bt.push(Yn),$t+=Yn.renderNodeCount,Yn.visible&&(Yn.visibleChildIndex=it+Lt++)});for(var Tt=(wt=Y.children).splice.apply(wt,fe([Le,ae],bt)),Bt=0,fn=0,Cn=Tt;fn<Cn.length;fn++){var Be=Cn[fn];Be.visible&&Bt++}if(Bt!==0)for(var Je=Le+bt.length;Je<Y.children.length;Je++){var Be=Y.children[Je];Be.visible&&(Be.visibleChildIndex-=Bt)}if(Y.visibleChildrenCount+=Lt-Bt,at&&et){var vn=Tt.reduce(function(Yn,Zn){return Yn+(Zn.visible?Zn.renderNodeCount:0)},0);this._updateAncestorsRenderNodeCount(Y,$t-vn),this.list.splice(Ve,vn,J)}if(Tt.length>0&&ct){var Hn=function Yn(Zn){ct(Zn),Zn.children.forEach(Yn)};Tt.forEach(Hn)}this._onDidSplice.fire({insertedNodes:bt,deletedNodes:Tt})},Oe.prototype.rerender=function(j){if(j.length===0)throw new k(this.user,"Invalid tree location");var ae=this.getTreeNodeWithListIndex(j),Fe=ae.node,qe=ae.listIndex,ct=ae.revealed;ct&&this.list.splice(qe,1,[Fe])},Oe.prototype.has=function(j){return this.hasTreeNode(j)},Oe.prototype.getListIndex=function(j){var ae=this.getTreeNodeWithListIndex(j),Fe=ae.listIndex,qe=ae.visible,ct=ae.revealed;return qe&&ct?Fe:-1},Oe.prototype.getListRenderCount=function(j){return this.getTreeNode(j).renderNodeCount},Oe.prototype.isCollapsible=function(j){return this.getTreeNode(j).collapsible},Oe.prototype.setCollapsible=function(j,ae){var Fe=this,qe=this.getTreeNode(j);typeof ae=="undefined"&&(ae=!qe.collapsible);var ct={collapsible:ae};return this.eventBufferer.bufferEvents(function(){return Fe._setCollapseState(j,ct)})},Oe.prototype.isCollapsed=function(j){return this.getTreeNode(j).collapsed},Oe.prototype.setCollapsed=function(j,ae,Fe){var qe=this,ct=this.getTreeNode(j);typeof ae=="undefined"&&(ae=!ct.collapsed);var wt={collapsed:ae,recursive:Fe||!1};return this.eventBufferer.bufferEvents(function(){return qe._setCollapseState(j,wt)})},Oe.prototype._setCollapseState=function(j,ae){var Fe=this.getTreeNodeWithListIndex(j),qe=Fe.node,ct=Fe.listIndex,wt=Fe.revealed,Ge=this._setListNodeCollapseState(qe,ct,wt,ae);if(qe!==this.root&&this.autoExpandSingleChildren&&Ge&&!q(ae)&&qe.collapsible&&!qe.collapsed&&!ae.recursive){for(var le=-1,Y=0;Y<qe.children.length;Y++){var Ve=qe.children[Y];if(Ve.visible)if(le>-1){le=-1;break}else le=Y}le>-1&&this._setCollapseState(fe(j,[le]),ae)}return Ge},Oe.prototype._setListNodeCollapseState=function(j,ae,Fe,qe){var ct=this._setNodeCollapseState(j,qe,!1);if(!Fe||!j.visible||!ct)return ct;var wt=j.renderNodeCount,Ge=this.updateNodeAfterCollapseChange(j),le=wt-(ae===-1?0:1);return this.list.splice(ae+1,le,Ge.slice(1)),ct},Oe.prototype._setNodeCollapseState=function(j,ae,Fe){var qe;if(j===this.root?qe=!1:(q(ae)?(qe=j.collapsible!==ae.collapsible,j.collapsible=ae.collapsible):j.collapsible?(qe=j.collapsed!==ae.collapsed,j.collapsed=ae.collapsed):qe=!1,qe&&this._onDidChangeCollapseState.fire({node:j,deep:Fe})),!q(ae)&&ae.recursive)for(var ct=0,wt=j.children;ct<wt.length;ct++){var Ge=wt[ct];qe=this._setNodeCollapseState(Ge,ae,!0)||qe}return qe},Oe.prototype.expandTo=function(j){var ae=this;this.eventBufferer.bufferEvents(function(){for(var Fe=ae.getTreeNode(j);Fe.parent;)Fe=Fe.parent,j=j.slice(0,j.length-1),Fe.collapsed&&ae._setCollapseState(j,{collapsed:!1,recursive:!1})})},Oe.prototype.refilter=function(){var j=this.root.renderNodeCount,ae=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,j,ae)},Oe.prototype.createTreeNode=function(j,ae,Fe,qe,ct,wt){var Ge=this,le={parent:ae,element:j.element,children:[],depth:ae.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof j.collapsible=="boolean"?j.collapsible:typeof j.collapsed!="undefined",collapsed:typeof j.collapsed=="undefined"?this.collapseByDefault:j.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},Y=this._filterNode(le,Fe);qe&&ct.push(le);var Ve=oe.c.from(j.children),at=qe&&Y!==0&&!le.collapsed,et=oe.c.map(Ve,function(Le){return Ge.createTreeNode(Le,le,Y,at,ct,wt)}),J=0,be=1;return oe.c.forEach(et,function(Le){le.children.push(Le),be+=Le.renderNodeCount,Le.visible&&(Le.visibleChildIndex=J++)}),le.collapsible=le.collapsible||le.children.length>0,le.visibleChildrenCount=J,le.visible=Y===2?J>0:Y===1,le.visible?le.collapsed||(le.renderNodeCount=be):(le.renderNodeCount=0,qe&&ct.pop()),wt&&wt(le),le},Oe.prototype.updateNodeAfterCollapseChange=function(j){var ae=j.renderNodeCount,Fe=[];return this._updateNodeAfterCollapseChange(j,Fe),this._updateAncestorsRenderNodeCount(j.parent,Fe.length-ae),Fe},Oe.prototype._updateNodeAfterCollapseChange=function(j,ae){if(j.visible===!1)return 0;if(ae.push(j),j.renderNodeCount=1,!j.collapsed)for(var Fe=0,qe=j.children;Fe<qe.length;Fe++){var ct=qe[Fe];j.renderNodeCount+=this._updateNodeAfterCollapseChange(ct,ae)}return this._onDidChangeRenderNodeCount.fire(j),j.renderNodeCount},Oe.prototype.updateNodeAfterFilterChange=function(j){var ae=j.renderNodeCount,Fe=[];return this._updateNodeAfterFilterChange(j,j.visible?1:0,Fe),this._updateAncestorsRenderNodeCount(j.parent,Fe.length-ae),Fe},Oe.prototype._updateNodeAfterFilterChange=function(j,ae,Fe,qe){qe===void 0&&(qe=!0);var ct;if(j!==this.root){if(ct=this._filterNode(j,ae),ct===0)return j.visible=!1,j.renderNodeCount=0,!1;qe&&Fe.push(j)}var wt=Fe.length;j.renderNodeCount=j===this.root?0:1;var Ge=!1;if(!j.collapsed||ct!==0){for(var le=0,Y=0,Ve=j.children;Y<Ve.length;Y++){var at=Ve[Y];Ge=this._updateNodeAfterFilterChange(at,ct,Fe,qe&&!j.collapsed)||Ge,at.visible&&(at.visibleChildIndex=le++)}j.visibleChildrenCount=le}else j.visibleChildrenCount=0;return j!==this.root&&(j.visible=ct===2?Ge:ct===1),j.visible?j.collapsed||(j.renderNodeCount+=Fe.length-wt):(j.renderNodeCount=0,qe&&Fe.pop()),this._onDidChangeRenderNodeCount.fire(j),j.visible},Oe.prototype._updateAncestorsRenderNodeCount=function(j,ae){if(ae!==0)for(;j;)j.renderNodeCount+=ae,this._onDidChangeRenderNodeCount.fire(j),j=j.parent},Oe.prototype._filterNode=function(j,ae){var Fe=this.filter?this.filter.filter(j.element,ae):1;return typeof Fe=="boolean"?(j.filterData=void 0,Fe?1:0):Se(Fe)?(j.filterData=Fe.data,we(Fe.visibility)):(j.filterData=void 0,we(Fe))},Oe.prototype.hasTreeNode=function(j,ae){if(ae===void 0&&(ae=this.root),!j||j.length===0)return!0;var Fe=j[0],qe=j.slice(1);return Fe<0||Fe>ae.children.length?!1:this.hasTreeNode(qe,ae.children[Fe])},Oe.prototype.getTreeNode=function(j,ae){if(ae===void 0&&(ae=this.root),!j||j.length===0)return ae;var Fe=j[0],qe=j.slice(1);if(Fe<0||Fe>ae.children.length)throw new k(this.user,"Invalid tree location");return this.getTreeNode(qe,ae.children[Fe])},Oe.prototype.getTreeNodeWithListIndex=function(j){if(j.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var ae=this.getParentNodeWithListIndex(j),Fe=ae.parentNode,qe=ae.listIndex,ct=ae.revealed,wt=ae.visible,Ge=j[j.length-1];if(Ge<0||Ge>Fe.children.length)throw new k(this.user,"Invalid tree location");var le=Fe.children[Ge];return{node:le,listIndex:qe,revealed:ct,visible:wt&&le.visible}},Oe.prototype.getParentNodeWithListIndex=function(j,ae,Fe,qe,ct){ae===void 0&&(ae=this.root),Fe===void 0&&(Fe=0),qe===void 0&&(qe=!0),ct===void 0&&(ct=!0);var wt=j[0],Ge=j.slice(1);if(wt<0||wt>ae.children.length)throw new k(this.user,"Invalid tree location");for(var le=0;le<wt;le++)Fe+=ae.children[le].renderNodeCount;return qe=qe&&!ae.collapsed,ct=ct&&ae.visible,Ge.length===0?{parentNode:ae,listIndex:Fe,revealed:qe,visible:ct}:this.getParentNodeWithListIndex(Ge,ae.children[wt],Fe+1,qe,ct)},Oe.prototype.getNode=function(j){return j===void 0&&(j=[]),this.getTreeNode(j)},Oe.prototype.getNodeLocation=function(j){for(var ae=[],Fe=j;Fe.parent;)ae.push(Fe.parent.children.indexOf(Fe)),Fe=Fe.parent;return ae.reverse()},Oe.prototype.getParentNodeLocation=function(j){if(j.length!==0)return j.length===1?[]:Object(h.w)(j)[0]},Oe}(),ce=o("X+cX"),Ne=o("MNsG"),He=o("QDVR"),_e=o("Sdnv"),de=o("vl9R"),se=function(){var Oe=function(ae,Fe){return Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var wt in ct)ct.hasOwnProperty(wt)&&(qe[wt]=ct[wt])},Oe(ae,Fe)};return function(j,ae){Oe(j,ae);function Fe(){this.constructor=j}j.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),he=function(){return he=Object.assign||function(Oe){for(var j,ae=1,Fe=arguments.length;ae<Fe;ae++){j=arguments[ae];for(var qe in j)Object.prototype.hasOwnProperty.call(j,qe)&&(Oe[qe]=j[qe])}return Oe},he.apply(this,arguments)},ie=function(){for(var Oe=0,j=0,ae=arguments.length;j<ae;j++)Oe+=arguments[j].length;for(var Fe=Array(Oe),qe=0,j=0;j<ae;j++)for(var ct=arguments[j],wt=0,Ge=ct.length;wt<Ge;wt++,qe++)Fe[qe]=ct[wt];return Fe},$=function(Oe){se(j,Oe);function j(ae){var Fe=Oe.call(this,ae.elements.map(function(qe){return qe.element}))||this;return Fe.data=ae,Fe}return j}(g.a);function ve(Oe){return Oe instanceof g.a?new $(Oe):Oe}var ye=function(){function Oe(j,ae){this.modelProvider=j,this.dnd=ae,this.autoExpandDisposable=ne.a.None}return Oe.prototype.getDragURI=function(j){return this.dnd.getDragURI(j.element)},Oe.prototype.getDragLabel=function(j,ae){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(j.map(function(Fe){return Fe.element}),ae)},Oe.prototype.onDragStart=function(j,ae){this.dnd.onDragStart&&this.dnd.onDragStart(ve(j),ae)},Oe.prototype.onDragOver=function(j,ae,Fe,qe,ct){var wt=this;ct===void 0&&(ct=!0);var Ge=this.dnd.onDragOver(ve(j),ae&&ae.element,Fe,qe),le=this.autoExpandNode!==ae;if(le&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=ae),typeof ae=="undefined")return Ge;if(le&&typeof Ge!="boolean"&&Ge.autoExpand&&(this.autoExpandDisposable=Object(ce.g)(function(){var Lt=wt.modelProvider(),$t=Lt.getNodeLocation(ae);Lt.isCollapsed($t)&&Lt.setCollapsed($t,!1),wt.autoExpandNode=void 0},500)),typeof Ge=="boolean"||!Ge.accept||typeof Ge.bubble=="undefined"||Ge.feedback){if(!ct){var Y=typeof Ge=="boolean"?Ge:Ge.accept,Ve=typeof Ge=="boolean"?void 0:Ge.effect;return{accept:Y,effect:Ve,feedback:[Fe]}}return Ge}if(Ge.bubble===1){var at=this.modelProvider(),et=at.getNodeLocation(ae),J=at.getParentNodeLocation(et),be=at.getNode(J),Le=J&&at.getListIndex(J);return this.onDragOver(j,be,Le,qe,!1)}var it=this.modelProvider(),Je=it.getNodeLocation(ae),Be=it.getListIndex(Je),bt=it.getListRenderCount(Je);return he(he({},Ge),{feedback:Object(h.u)(Be,Be+bt)})},Oe.prototype.drop=function(j,ae,Fe,qe){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(ve(j),ae&&ae.element,Fe,qe)},Oe.prototype.onDragEnd=function(j){this.dnd.onDragEnd&&this.dnd.onDragEnd(j)},Oe}();function Ue(Oe,j){return j&&he(he({},j),{identityProvider:j.identityProvider&&{getId:function(Fe){return j.identityProvider.getId(Fe.element)}},dnd:j.dnd&&new ye(Oe,j.dnd),multipleSelectionController:j.multipleSelectionController&&{isSelectionSingleChangeEvent:function(Fe){return j.multipleSelectionController.isSelectionSingleChangeEvent(he(he({},Fe),{element:Fe.element}))},isSelectionRangeChangeEvent:function(Fe){return j.multipleSelectionController.isSelectionRangeChangeEvent(he(he({},Fe),{element:Fe.element}))}},accessibilityProvider:j.accessibilityProvider&&he(he({},j.accessibilityProvider),{getAriaLabel:function(Fe){return j.accessibilityProvider.getAriaLabel(Fe.element)},getAriaLevel:function(Fe){return Fe.depth},getActiveDescendantId:j.accessibilityProvider.getActiveDescendantId&&function(ae){return j.accessibilityProvider.getActiveDescendantId(ae.element)}}),keyboardNavigationLabelProvider:j.keyboardNavigationLabelProvider&&he(he({},j.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(Fe){return j.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(Fe.element)}}),enableKeyboardNavigation:j.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(Fe){var qe=Oe(),ct=qe.getNodeLocation(Fe),wt=qe.getParentNodeLocation(ct),Ge=qe.getNode(wt);return Ge.visibleChildrenCount},getPosInSet:function(Fe){return Fe.visibleChildIndex+1},isChecked:j.ariaProvider&&j.ariaProvider.isChecked?function(ae){return j.ariaProvider.isChecked(ae.element)}:void 0,getRole:j.ariaProvider&&j.ariaProvider.getRole?function(ae){return j.ariaProvider.getRole(ae.element)}:void 0}})}var tt=function(){function Oe(j){this.delegate=j}return Oe.prototype.getHeight=function(j){return this.delegate.getHeight(j.element)},Oe.prototype.getTemplateId=function(j){return this.delegate.getTemplateId(j.element)},Oe.prototype.hasDynamicHeight=function(j){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(j.element)},Oe.prototype.setDynamicHeight=function(j,ae){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(j.element,ae)},Oe}(),_t;(function(Oe){Oe.None="none",Oe.OnHover="onHover",Oe.Always="always"})(_t||(_t={}));var At=function(){function Oe(j,ae){var Fe=this;ae===void 0&&(ae=[]),this._elements=ae,this.onDidChange=te.b.forEach(j,function(qe){return Fe._elements=qe})}return Object.defineProperty(Oe.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Oe}(),Yt=function(){function Oe(j,ae,Fe,qe,ct){ct===void 0&&(ct={}),this.renderer=j,this.modelProvider=ae,this.activeNodes=qe,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=Oe.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new de.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=ne.a.None,this.disposables=new ne.b,this.templateId=j.templateId,this.updateOptions(ct),te.b.map(Fe,function(wt){return wt.node})(this.onDidChangeNodeTwistieState,this,this.disposables),j.onDidChangeTwistieState&&j.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}return Oe.prototype.updateOptions=function(j){if(j===void 0&&(j={}),typeof j.indent!="undefined"&&(this.indent=Object(_e.a)(j.indent,0,40)),typeof j.renderIndentGuides!="undefined"){var ae=j.renderIndentGuides!==_t.None;if(ae!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=ae,this.indentGuidesDisposable.dispose(),ae)){var Fe=new ne.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,Fe),this.indentGuidesDisposable=Fe,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof j.hideTwistiesOfChildlessElements!="undefined"&&(this.hideTwistiesOfChildlessElements=j.hideTwistiesOfChildlessElements)},Oe.prototype.renderTemplate=function(j){var ae=Object(R.p)(j,Object(R.a)(".monaco-tl-row")),Fe=Object(R.p)(ae,Object(R.a)(".monaco-tl-indent")),qe=Object(R.p)(ae,Object(R.a)(".monaco-tl-twistie")),ct=Object(R.p)(ae,Object(R.a)(".monaco-tl-contents")),wt=this.renderer.renderTemplate(ct);return{container:j,indent:Fe,twistie:qe,indentGuidesDisposable:ne.a.None,templateData:wt}},Oe.prototype.renderElement=function(j,ae,Fe,qe){typeof qe=="number"&&(this.renderedNodes.set(j,{templateData:Fe,height:qe}),this.renderedElements.set(j.element,j));var ct=Oe.DefaultIndent+(j.depth-1)*this.indent;Fe.twistie.style.paddingLeft=ct+"px",Fe.indent.style.width=ct+this.indent-16+"px",this.renderTwistie(j,Fe),typeof qe=="number"&&this.renderIndentGuides(j,Fe),this.renderer.renderElement(j,ae,Fe.templateData,qe)},Oe.prototype.disposeElement=function(j,ae,Fe,qe){Fe.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(j,ae,Fe.templateData,qe),typeof qe=="number"&&(this.renderedNodes.delete(j),this.renderedElements.delete(j.element))},Oe.prototype.disposeTemplate=function(j){this.renderer.disposeTemplate(j.templateData)},Oe.prototype.onDidChangeTwistieState=function(j){var ae=this.renderedElements.get(j);!ae||this.onDidChangeNodeTwistieState(ae)},Oe.prototype.onDidChangeNodeTwistieState=function(j){var ae=this.renderedNodes.get(j);!ae||(this.renderTwistie(j,ae.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(j,ae.templateData))},Oe.prototype.renderTwistie=function(j,ae){this.renderer.renderTwistie&&this.renderer.renderTwistie(j.element,ae.twistie),j.collapsible&&(!this.hideTwistiesOfChildlessElements||j.visibleChildrenCount>0)?(Object(R.f)(ae.twistie,"codicon","codicon-chevron-down","collapsible"),Object(R.X)(ae.twistie,"collapsed",j.collapsed)):Object(R.P)(ae.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),j.collapsible?ae.container.setAttribute("aria-expanded",String(!j.collapsed)):ae.container.removeAttribute("aria-expanded")},Oe.prototype.renderIndentGuides=function(j,ae){var Fe=this;if(Object(R.s)(ae.indent),ae.indentGuidesDisposable.dispose(),!!this.shouldRenderIndentGuides){for(var qe=new ne.b,ct=this.modelProvider(),wt=j,Ge=function(){var at=ct.getNodeLocation(wt),et=ct.getParentNodeLocation(at);if(!et)return"break";var J=ct.getNode(et),be=Object(R.a)(".indent-guide",{style:"width: "+le.indent+"px"});le.activeIndentNodes.has(J)&&Object(R.e)(be,"active"),ae.indent.childElementCount===0?ae.indent.appendChild(be):ae.indent.insertBefore(be,ae.indent.firstElementChild),le.renderedIndentGuides.add(J,be),qe.add(Object(ne.h)(function(){return Fe.renderedIndentGuides.delete(J,be)})),wt=J},le=this;;){var Y=Ge();if(Y==="break")break}ae.indentGuidesDisposable=qe}},Oe.prototype._onDidChangeActiveNodes=function(j){var ae=this;if(!!this.shouldRenderIndentGuides){var Fe=new Set,qe=this.modelProvider();j.forEach(function(ct){var wt=qe.getNodeLocation(ct);try{var Ge=qe.getParentNodeLocation(wt);ct.collapsible&&ct.children.length>0&&!ct.collapsed?Fe.add(ct):Ge&&Fe.add(qe.getNode(Ge))}catch(le){}}),this.activeIndentNodes.forEach(function(ct){Fe.has(ct)||ae.renderedIndentGuides.forEach(ct,function(wt){return Object(R.O)(wt,"active")})}),Fe.forEach(function(ct){ae.activeIndentNodes.has(ct)||ae.renderedIndentGuides.forEach(ct,function(wt){return Object(R.e)(wt,"active")})}),this.activeIndentNodes=Fe}},Oe.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(ne.f)(this.disposables)},Oe.DefaultIndent=8,Oe}(),Ke=function(){function Oe(j,ae,Fe){this.tree=j,this.keyboardNavigationLabelProvider=ae,this._filter=Fe,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new ne.b,j.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(Oe.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"pattern",{set:function(ae){this._pattern=ae,this._lowercasePattern=ae.toLowerCase()},enumerable:!0,configurable:!0}),Oe.prototype.filter=function(j,ae){if(this._filter){var Fe=this._filter.filter(j,ae);if(this.tree.options.simpleKeyboardNavigation)return Fe;var qe=void 0;if(typeof Fe=="boolean"?qe=Fe?1:0:Se(Fe)?qe=we(Fe.visibility):qe=Fe,qe===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:v.a.Default,visibility:!0};var ct=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(j),wt=ct&&ct.toString();if(typeof wt=="undefined")return{data:v.a.Default,visibility:!0};var Ge=Object(v.d)(this._pattern,this._lowercasePattern,0,wt,wt.toLowerCase(),0,!0);return Ge?(this._matchCount++,{data:Ge,visibility:!0}):this.tree.options.filterOnType?2:{data:v.a.Default,visibility:!0}},Oe.prototype.reset=function(){this._totalCount=0,this._matchCount=0},Oe.prototype.dispose=function(){Object(ne.f)(this.disposables)},Oe}(),Ye=function(){function Oe(j,ae,Fe,qe,ct){this.tree=j,this.view=Fe,this.filter=qe,this.keyboardNavigationDelegate=ct,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new te.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new te.a,this.enabledDisposables=new ne.b,this.disposables=new ne.b,this.domNode=Object(R.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(p.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(R.p)(Fe.getHTMLElement(),Object(R.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(R.p)(this.domNode,Object(R.a)("span.label"));var wt=Object(R.p)(this.domNode,Object(R.a)(".controls"));this._filterOnType=!!j.options.filterOnType,this.filterOnTypeDomNode=Object(R.p)(wt,Object(R.a)("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(p.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(R.p)(wt,Object(R.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(P.a)("clear","Clear"),this.keyboardNavigationEventFilter=j.options.keyboardNavigationEventFilter,ae.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(j.options)}return Object.defineProperty(Oe.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),Oe.prototype.updateOptions=function(j){j.simpleKeyboardNavigation?this.disable():this.enable(),typeof j.filterOnType!="undefined"&&(this._filterOnType=!!j.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),typeof j.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=j.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},Oe.prototype.enable=function(){var j=this;if(!this._enabled){var ae=te.b.chain(Object(p.a)(this.view.getHTMLElement(),"keydown")).filter(function(qe){return!Xe(qe.target)||qe.target===j.filterOnTypeDomNode}).filter(function(qe){return qe.key!=="Dead"&&!/^Media/.test(qe.key)}).map(function(qe){return new U.a(qe)}).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter(function(){return j.automaticKeyboardNavigation||j.triggered}).filter(function(qe){return j.keyboardNavigationDelegate.mightProducePrintableCharacter(qe)||(j.pattern.length>0||j.triggered)&&(qe.keyCode===9||qe.keyCode===1)&&!qe.altKey&&!qe.ctrlKey&&!qe.metaKey||qe.keyCode===1&&(Ne.e?qe.altKey&&!qe.metaKey:qe.ctrlKey)&&!qe.shiftKey}).forEach(function(qe){qe.stopPropagation(),qe.preventDefault()}).event,Fe=Object(p.a)(this.clearDomNode,"click");te.b.chain(te.b.any(ae,Fe)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}},Oe.prototype.disable=function(){!this._enabled||(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)},Oe.prototype.onEventOrInput=function(j){typeof j=="string"?this.onInput(j):j instanceof MouseEvent||j.keyCode===9||j.keyCode===1&&(Ne.e?j.altKey:j.ctrlKey)?this.onInput(""):j.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+j.browserEvent.key)},Oe.prototype.onInput=function(j){var ae=this.view.getHTMLElement();j&&!this.domNode.parentElement?ae.append(this.domNode):!j&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=j,this._onDidChangePattern.fire(j),this.filter.pattern=j,this.tree.refilter(),j&&this.tree.focusNext(0,!0,void 0,function(ct){return!v.a.isDefault(ct.filterData)});var Fe=this.tree.getFocus();if(Fe.length>0){var qe=Fe[0];this.tree.getRelativeTop(qe)===null&&this.tree.reveal(qe,.5)}this.render(),j||(this.triggered=!1)},Oe.prototype.onDragStart=function(){var j=this,ae=this.view.getHTMLElement(),Fe=Object(R.B)(ae).left,qe=ae.clientWidth,ct=qe/2,wt=this.domNode.clientWidth,Ge=new ne.b,le=this.positionClassName,Y=function(){switch(le){case"nw":j.domNode.style.top="4px",j.domNode.style.left="4px";break;case"ne":j.domNode.style.top="4px",j.domNode.style.left=qe-wt-6+"px";break}},Ve=function(J){J.preventDefault();var be=J.screenX-Fe;J.dataTransfer&&(J.dataTransfer.dropEffect="none"),be<ct?le="nw":le="ne",Y()},at=function(){j.positionClassName=le,j.domNode.className="monaco-list-type-filter "+j.positionClassName,j.domNode.style.top="",j.domNode.style.left="",Object(ne.f)(Ge)};Y(),Object(R.O)(this.domNode,le),Object(R.e)(this.domNode,"dragging"),Ge.add(Object(ne.h)(function(){return Object(R.O)(j.domNode,"dragging")})),Object(p.a)(document,"dragover")(Ve,null,Ge),Object(p.a)(this.domNode,"dragend")(at,null,Ge),_.c.CurrentDragAndDropData=new _.b("vscode-ui"),Ge.add(Object(ne.h)(function(){return _.c.CurrentDragAndDropData=void 0}))},Oe.prototype.onDidSpliceModel=function(){!this._enabled||this.pattern.length===0||(this.tree.refilter(),this.render())},Oe.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},Oe.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(P.a)("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(P.a)("enable filter on type","Enable Filter on Type")},Oe.prototype.render=function(){var j=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&j?(this.messageDomNode.textContent=Object(P.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(R.X)(this.domNode,"no-matches",j),this.domNode.title=Object(P.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)},Oe.prototype.shouldAllowFocus=function(j){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!v.a.isDefault(j.filterData)},Oe.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(ne.f)(this.disposables)},Oe}();function Xe(Oe){return Oe.tagName==="INPUT"||Oe.tagName==="TEXTAREA"}function Ze(Oe){return{elements:Oe.elements.map(function(j){return j.element}),browserEvent:Oe.browserEvent}}function We(Oe,j){j(Oe),Oe.children.forEach(function(ae){return We(ae,j)})}var Qe=function(){function Oe(j){this.identityProvider=j,this.nodes=[],this._onDidChange=new te.a,this.onDidChange=this._onDidChange.event}return Object.defineProperty(Oe.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),Oe.prototype.set=function(j,ae){Object(h.g)(this.nodes,j)||this._set(j,!1,ae)},Oe.prototype._set=function(j,ae,Fe){if(this.nodes=ie(j),this.elements=void 0,this._nodeSet=void 0,!ae){var qe=this;this._onDidChange.fire({get elements(){return qe.get()},browserEvent:Fe})}},Oe.prototype.get=function(){return this.elements||(this.elements=this.nodes.map(function(j){return j.element})),ie(this.elements)},Oe.prototype.getNodes=function(){return this.nodes},Oe.prototype.has=function(j){return this.nodeSet.has(j)},Oe.prototype.onDidModelSplice=function(j){var ae=this,Fe=j.insertedNodes,qe=j.deletedNodes;if(!this.identityProvider){var ct=this.createNodeSet(),wt=function(bt){return ct.delete(bt)};qe.forEach(function(Be){return We(Be,wt)}),this.set(Object(He.e)(ct));return}var Ge=new Set,le=function(bt){return Ge.add(ae.identityProvider.getId(bt.element).toString())};qe.forEach(function(Be){return We(Be,le)});var Y=new Map,Ve=function(bt){return Y.set(ae.identityProvider.getId(bt.element).toString(),bt)};Fe.forEach(function(Be){return We(Be,Ve)});for(var at=[],et=0,J=this.nodes;et<J.length;et++){var be=J[et],Le=this.identityProvider.getId(be.element).toString(),it=Ge.has(Le);if(!it)at.push(be);else{var Je=Y.get(Le);Je&&at.push(Je)}}this._set(at,!0)},Oe.prototype.createNodeSet=function(){for(var j=new Set,ae=0,Fe=this.nodes;ae<Fe.length;ae++){var qe=Fe[ae];j.add(qe)}return j},Oe}(),Ee=function(Oe){se(j,Oe);function j(ae,Fe){var qe=Oe.call(this,ae)||this;return qe.tree=Fe,qe}return j.prototype.onPointer=function(ae){if(!Xe(ae.browserEvent.target)){var Fe=ae.element;if(!Fe)return Oe.prototype.onPointer.call(this,ae);if(this.isSelectionRangeChangeEvent(ae)||this.isSelectionSingleChangeEvent(ae))return Oe.prototype.onPointer.call(this,ae);var qe=Object(R.H)(ae.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&ae.browserEvent.detail!==2&&!qe)return Oe.prototype.onPointer.call(this,ae);var ct=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?ct=this.tree.expandOnlyOnTwistieClick(Fe.element):ct=!!this.tree.expandOnlyOnTwistieClick,ct&&!qe)return Oe.prototype.onPointer.call(this,ae);if(Fe.collapsible){var wt=this.tree.model,Ge=wt.getNodeLocation(Fe),le=ae.browserEvent.altKey;if(wt.setCollapsed(Ge,void 0,le),ct&&qe)return}Oe.prototype.onPointer.call(this,ae)}},j.prototype.onDoubleClick=function(ae){var Fe=Object(R.H)(ae.browserEvent.target,"monaco-tl-twistie");Fe||Oe.prototype.onDoubleClick.call(this,ae)},j}(re.d),W=function(Oe){se(j,Oe);function j(ae,Fe,qe,ct,wt,Ge,le){var Y=Oe.call(this,ae,Fe,qe,ct,le)||this;return Y.focusTrait=wt,Y.selectionTrait=Ge,Y}return j.prototype.createMouseController=function(ae){return new Ee(this,ae.tree)},j.prototype.splice=function(ae,Fe,qe){var ct=this;if(qe===void 0&&(qe=[]),Oe.prototype.splice.call(this,ae,Fe,qe),qe.length!==0){var wt=[],Ge=[];qe.forEach(function(le,Y){ct.focusTrait.has(le)&&wt.push(ae+Y),ct.selectionTrait.has(le)&&Ge.push(ae+Y)}),wt.length>0&&Oe.prototype.setFocus.call(this,Object(h.f)(ie(Oe.prototype.getFocus.call(this),wt))),Ge.length>0&&Oe.prototype.setSelection.call(this,Object(h.f)(ie(Oe.prototype.getSelection.call(this),Ge)))}},j.prototype.setFocus=function(ae,Fe,qe){var ct=this;qe===void 0&&(qe=!1),Oe.prototype.setFocus.call(this,ae,Fe),qe||this.focusTrait.set(ae.map(function(wt){return ct.element(wt)}),Fe)},j.prototype.setSelection=function(ae,Fe,qe){var ct=this;qe===void 0&&(qe=!1),Oe.prototype.setSelection.call(this,ae,Fe),qe||this.selectionTrait.set(ae.map(function(wt){return ct.element(wt)}),Fe)},j}(re.c),ee=function(){function Oe(j,ae,Fe,qe,ct){var wt=this;ct===void 0&&(ct={}),this._options=ct,this.eventBufferer=new te.c,this.disposables=new ne.b,this._onWillRefilter=new te.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new te.a;var Ge=new tt(Fe),le=new te.e,Y=new te.e,Ve=new At(Y.event);this.renderers=qe.map(function(Be){return new Yt(Be,function(){return wt.model},le.event,Ve,ct)});for(var at=0,et=this.renderers;at<et.length;at++){var J=et[at];this.disposables.add(J)}var be;ct.keyboardNavigationLabelProvider&&(be=new Ke(this,ct.keyboardNavigationLabelProvider,ct.filter),ct=he(he({},ct),{filter:be}),this.disposables.add(be)),this.focus=new Qe(ct.identityProvider),this.selection=new Qe(ct.identityProvider),this.view=new W(j,ae,Ge,this.renderers,this.focus,this.selection,he(he({},Ue(function(){return wt.model},ct)),{tree:this})),this.model=this.createModel(j,this.view,ct),le.input=this.model.onDidChangeCollapseState;var Le=te.b.forEach(this.model.onDidSplice,function(Be){wt.eventBufferer.bufferEvents(function(){wt.focus.onDidModelSplice(Be),wt.selection.onDidModelSplice(Be)})});if(Le(function(){return null},null,this.disposables),Y.input=te.b.chain(te.b.any(Le,this.focus.onDidChange,this.selection.onDidChange)).debounce(function(){return null},0).map(function(){for(var Be=new Set,bt=0,Lt=wt.focus.getNodes();bt<Lt.length;bt++){var $t=Lt[bt];Be.add($t)}for(var Tt=0,Bt=wt.selection.getNodes();Tt<Bt.length;Tt++){var $t=Bt[Tt];Be.add($t)}return Object(h.n)(Be)}).event,ct.keyboardSupport!==!1){var it=te.b.chain(this.view.onKeyDown).filter(function(Be){return!Xe(Be.target)}).map(function(Be){return new U.a(Be)});it.filter(function(Be){return Be.keyCode===15}).on(this.onLeftArrow,this,this.disposables),it.filter(function(Be){return Be.keyCode===17}).on(this.onRightArrow,this,this.disposables),it.filter(function(Be){return Be.keyCode===10}).on(this.onSpace,this,this.disposables)}if(ct.keyboardNavigationLabelProvider){var Je=ct.keyboardNavigationDelegate||re.a;this.typeFilterController=new Ye(this,this.model,this.view,be,Je),this.focusNavigationFilter=function(Be){return wt.typeFilterController.shouldAllowFocus(Be)},this.disposables.add(this.typeFilterController)}this.styleElement=Object(R.v)(this.view.getHTMLElement()),Object(R.X)(this.getHTMLElement(),"always",this._options.renderIndentGuides===_t.Always)}return Object.defineProperty(Oe.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"onDidOpen",{get:function(){return te.b.map(this.view.onDidOpen,Ze)},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"openOnSingleClick",{get:function(){return typeof this._options.openOnSingleClick=="undefined"?!0:this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"expandOnlyOnTwistieClick",{get:function(){return typeof this._options.expandOnlyOnTwistieClick=="undefined"?!1:this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),Oe.prototype.updateOptions=function(j){j===void 0&&(j={}),this._options=he(he({},this._options),j);for(var ae=0,Fe=this.renderers;ae<Fe.length;ae++){var qe=Fe[ae];qe.updateOptions(j)}this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(R.X)(this.getHTMLElement(),"always",this._options.renderIndentGuides===_t.Always)},Object.defineProperty(Oe.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Oe.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(Oe.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(ae){this.view.scrollTop=ae},enumerable:!0,configurable:!0}),Oe.prototype.domFocus=function(){this.view.domFocus()},Oe.prototype.layout=function(j,ae){this.view.layout(j,ae)},Oe.prototype.style=function(j){var ae="."+this.view.domId,Fe=[];j.treeIndentGuidesStroke&&(Fe.push(".monaco-list"+ae+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+ae+".always .monaco-tl-indent > .indent-guide { border-color: "+j.treeIndentGuidesStroke.transparent(.4)+"; }"),Fe.push(".monaco-list"+ae+" .monaco-tl-indent > .indent-guide.active { border-color: "+j.treeIndentGuidesStroke+"; }"));var qe=Fe.join(`
`);qe!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=qe),this.view.style(j)},Oe.prototype.collapse=function(j,ae){return ae===void 0&&(ae=!1),this.model.setCollapsed(j,!0,ae)},Oe.prototype.expand=function(j,ae){return ae===void 0&&(ae=!1),this.model.setCollapsed(j,!1,ae)},Oe.prototype.isCollapsible=function(j){return this.model.isCollapsible(j)},Oe.prototype.setCollapsible=function(j,ae){return this.model.setCollapsible(j,ae)},Oe.prototype.isCollapsed=function(j){return this.model.isCollapsed(j)},Oe.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},Oe.prototype.setSelection=function(j,ae){var Fe=this,qe=j.map(function(wt){return Fe.model.getNode(wt)});this.selection.set(qe,ae);var ct=j.map(function(wt){return Fe.model.getListIndex(wt)}).filter(function(wt){return wt>-1});this.view.setSelection(ct,ae,!0)},Oe.prototype.getSelection=function(){return this.selection.get()},Oe.prototype.setFocus=function(j,ae){var Fe=this,qe=j.map(function(wt){return Fe.model.getNode(wt)});this.focus.set(qe,ae);var ct=j.map(function(wt){return Fe.model.getListIndex(wt)}).filter(function(wt){return wt>-1});this.view.setFocus(ct,ae,!0)},Oe.prototype.focusNext=function(j,ae,Fe,qe){j===void 0&&(j=1),ae===void 0&&(ae=!1),qe===void 0&&(qe=this.focusNavigationFilter),this.view.focusNext(j,ae,Fe,qe)},Oe.prototype.getFocus=function(){return this.focus.get()},Oe.prototype.reveal=function(j,ae){this.model.expandTo(j);var Fe=this.model.getListIndex(j);Fe!==-1&&this.view.reveal(Fe,ae)},Oe.prototype.getRelativeTop=function(j){var ae=this.model.getListIndex(j);return ae===-1?null:this.view.getRelativeTop(ae)},Oe.prototype.onLeftArrow=function(j){j.preventDefault(),j.stopPropagation();var ae=this.view.getFocusedElements();if(ae.length!==0){var Fe=ae[0],qe=this.model.getNodeLocation(Fe),ct=this.model.setCollapsed(qe,!0);if(!ct){var wt=this.model.getParentNodeLocation(qe);if(!wt)return;var Ge=this.model.getListIndex(wt);this.view.reveal(Ge),this.view.setFocus([Ge])}}},Oe.prototype.onRightArrow=function(j){j.preventDefault(),j.stopPropagation();var ae=this.view.getFocusedElements();if(ae.length!==0){var Fe=ae[0],qe=this.model.getNodeLocation(Fe),ct=this.model.setCollapsed(qe,!1);if(!ct){if(!Fe.children.some(function(le){return le.visible}))return;var wt=this.view.getFocus()[0],Ge=wt+1;this.view.reveal(Ge),this.view.setFocus([Ge])}}},Oe.prototype.onSpace=function(j){j.preventDefault(),j.stopPropagation();var ae=this.view.getFocusedElements();if(ae.length!==0){var Fe=ae[0],qe=this.model.getNodeLocation(Fe),ct=j.browserEvent.altKey;this.model.setCollapsed(qe,void 0,ct)}},Oe.prototype.dispose=function(){Object(ne.f)(this.disposables),this.view.dispose()},Oe}(),Ae=function(){return Ae=Object.assign||function(Oe){for(var j,ae=1,Fe=arguments.length;ae<Fe;ae++){j=arguments[ae];for(var qe in j)Object.prototype.hasOwnProperty.call(j,qe)&&(Oe[qe]=j[qe])}return Oe},Ae.apply(this,arguments)},me=function(){for(var Oe=0,j=0,ae=arguments.length;j<ae;j++)Oe+=arguments[j].length;for(var Fe=Array(Oe),qe=0,j=0;j<ae;j++)for(var ct=arguments[j],wt=0,Ge=ct.length;wt<Ge;wt++,qe++)Fe[qe]=ct[wt];return Fe},Me=function(){function Oe(j,ae,Fe){Fe===void 0&&(Fe={}),this.user=j,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new X(j,ae,null,Fe),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,Fe.sorter&&(this.sorter={compare:function(ct,wt){return Fe.sorter.compare(ct.element,wt.element)}}),this.identityProvider=Fe.identityProvider}return Oe.prototype.setChildren=function(j,ae,Fe,qe){var ct=this.getElementLocation(j);this._setChildren(ct,this.preserveCollapseState(ae),Fe,qe)},Oe.prototype._setChildren=function(j,ae,Fe,qe){var ct=this,wt=new Set,Ge=new Set,le=function(at){if(wt.add(at.element),ct.nodes.set(at.element,at),ct.identityProvider){var et=ct.identityProvider.getId(at.element).toString();Ge.add(et),ct.nodesByIdentity.set(et,at)}Fe&&Fe(at)},Y=function(at){if(wt.has(at.element)||ct.nodes.delete(at.element),ct.identityProvider){var et=ct.identityProvider.getId(at.element).toString();Ge.has(et)||ct.nodesByIdentity.delete(et)}qe&&qe(at)};this.model.splice(me(j,[0]),Number.MAX_VALUE,ae,le,Y)},Oe.prototype.preserveCollapseState=function(j){var ae=this,Fe=j?Object(oe.d)(j):oe.c.empty();return this.sorter&&(Fe=oe.c.fromArray(Object(h.r)(oe.c.collect(Fe),this.sorter.compare.bind(this.sorter)))),oe.c.map(Fe,function(qe){var ct=ae.nodes.get(qe.element);if(!ct&&ae.identityProvider){var wt=ae.identityProvider.getId(qe.element).toString();ct=ae.nodesByIdentity.get(wt)}if(!ct)return Ae(Ae({},qe),{children:ae.preserveCollapseState(qe.children)});var Ge=typeof qe.collapsible=="boolean"?qe.collapsible:ct.collapsible,le=typeof qe.collapsed!="undefined"?qe.collapsed:ct.collapsed;return Ae(Ae({},qe),{collapsible:Ge,collapsed:le,children:ae.preserveCollapseState(qe.children)})})},Oe.prototype.rerender=function(j){var ae=this.getElementLocation(j);this.model.rerender(ae)},Oe.prototype.has=function(j){return this.nodes.has(j)},Oe.prototype.getListIndex=function(j){var ae=this.getElementLocation(j);return this.model.getListIndex(ae)},Oe.prototype.getListRenderCount=function(j){var ae=this.getElementLocation(j);return this.model.getListRenderCount(ae)},Oe.prototype.isCollapsible=function(j){var ae=this.getElementLocation(j);return this.model.isCollapsible(ae)},Oe.prototype.setCollapsible=function(j,ae){var Fe=this.getElementLocation(j);return this.model.setCollapsible(Fe,ae)},Oe.prototype.isCollapsed=function(j){var ae=this.getElementLocation(j);return this.model.isCollapsed(ae)},Oe.prototype.setCollapsed=function(j,ae,Fe){var qe=this.getElementLocation(j);return this.model.setCollapsed(qe,ae,Fe)},Oe.prototype.expandTo=function(j){var ae=this.getElementLocation(j);this.model.expandTo(ae)},Oe.prototype.refilter=function(){this.model.refilter()},Oe.prototype.getNode=function(j){if(j===void 0&&(j=null),j===null)return this.model.getNode(this.model.rootRef);var ae=this.nodes.get(j);if(!ae)throw new k(this.user,"Tree element not found: "+j);return ae},Oe.prototype.getNodeLocation=function(j){return j.element},Oe.prototype.getParentNodeLocation=function(j){if(j===null)throw new k(this.user,"Invalid getParentNodeLocation call");var ae=this.nodes.get(j);if(!ae)throw new k(this.user,"Tree element not found: "+j);var Fe=this.model.getNodeLocation(ae),qe=this.model.getParentNodeLocation(Fe),ct=this.model.getNode(qe);return ct.element},Oe.prototype.getElementLocation=function(j){if(j===null)return[];var ae=this.nodes.get(j);if(!ae)throw new k(this.user,"Tree element not found: "+j);return this.model.getNodeLocation(ae)},Oe}(),Re=function(){return Re=Object.assign||function(Oe){for(var j,ae=1,Fe=arguments.length;ae<Fe;ae++){j=arguments[ae];for(var qe in j)Object.prototype.hasOwnProperty.call(j,qe)&&(Oe[qe]=j[qe])}return Oe},Re.apply(this,arguments)};function ge(Oe){var j=[Oe.element],ae=Oe.incompressible||!1;return{element:{elements:j,incompressible:ae},children:oe.c.map(oe.c.from(Oe.children),ge),collapsible:Oe.collapsible,collapsed:Oe.collapsed}}function nt(Oe){for(var j=[Oe.element],ae=Oe.incompressible||!1,Fe,qe;Fe=oe.c.from(Oe.children),qe=oe.c.collect(Fe,2),!(qe.length!==1||(Oe=qe[0],Oe.incompressible));)j.push(Oe.element);return{element:{elements:j,incompressible:ae},children:oe.c.map(oe.c.concat(oe.c.fromArray(qe),Fe),nt),collapsible:Oe.collapsible,collapsed:Oe.collapsed}}function St(Oe,j){j===void 0&&(j=0);var ae;return j<Oe.element.elements.length-1?ae=oe.c.single(St(Oe,j+1)):ae=oe.c.map(oe.c.from(Oe.children),function(Fe){return St(Fe,0)}),j===0&&Oe.element.incompressible?{element:Oe.element.elements[j],children:ae,incompressible:!0,collapsible:Oe.collapsible,collapsed:Oe.collapsed}:{element:Oe.element.elements[j],children:ae,collapsible:Oe.collapsible,collapsed:Oe.collapsed}}function xt(Oe){return St(Oe,0)}function Mt(Oe,j,ae){return Oe.element===j?Re(Re({},Oe),{children:ae}):Re(Re({},Oe),{children:oe.c.map(oe.c.from(Oe.children),function(Fe){return Mt(Fe,j,ae)})})}var zt=function(){function Oe(j,ae,Fe){Fe===void 0&&(Fe={}),this.user=j,this.nodes=new Map,this.model=new Me(j,ae,Fe),this.enabled=typeof Fe.compressionEnabled=="undefined"?!0:Fe.compressionEnabled}return Object.defineProperty(Oe.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Oe.prototype.setChildren=function(j,ae){if(j===null){var Fe=oe.c.map(oe.c.from(ae),this.enabled?nt:ge);this._setChildren(null,Fe);return}var qe=this.nodes.get(j);if(!qe)throw new Error("Unknown compressed tree node");var ct=this.model.getNode(qe),wt=this.model.getParentNodeLocation(qe),Ge=this.model.getNode(wt),le=xt(ct),Y=Mt(le,j,oe.c.from(ae)),Ve=(this.enabled?nt:ge)(Y),at=Ge.children.map(function(et){return et===ct?Ve:et});this._setChildren(Ge.element,at)},Oe.prototype.setCompressionEnabled=function(j){if(j!==this.enabled){this.enabled=j;var ae=this.model.getNode(),Fe=oe.c.from(ae.children),qe=oe.c.map(Fe,xt),ct=oe.c.map(qe,j?nt:ge);this._setChildren(null,ct)}},Oe.prototype._setChildren=function(j,ae){var Fe=this,qe=new Set,ct=function(le){for(var Y=0,Ve=le.element.elements;Y<Ve.length;Y++){var at=Ve[Y];qe.add(at),Fe.nodes.set(at,le.element)}},wt=function(le){for(var Y=0,Ve=le.element.elements;Y<Ve.length;Y++){var at=Ve[Y];qe.has(at)||Fe.nodes.delete(at)}};this.model.setChildren(j,ae,ct,wt)},Oe.prototype.has=function(j){return this.nodes.has(j)},Oe.prototype.getListIndex=function(j){var ae=this.getCompressedNode(j);return this.model.getListIndex(ae)},Oe.prototype.getListRenderCount=function(j){var ae=this.getCompressedNode(j);return this.model.getListRenderCount(ae)},Oe.prototype.getNode=function(j){if(typeof j=="undefined")return this.model.getNode();var ae=this.getCompressedNode(j);return this.model.getNode(ae)},Oe.prototype.getNodeLocation=function(j){var ae=this.model.getNodeLocation(j);return ae===null?null:ae.elements[ae.elements.length-1]},Oe.prototype.getParentNodeLocation=function(j){var ae=this.getCompressedNode(j),Fe=this.model.getParentNodeLocation(ae);return Fe===null?null:Fe.elements[Fe.elements.length-1]},Oe.prototype.isCollapsible=function(j){var ae=this.getCompressedNode(j);return this.model.isCollapsible(ae)},Oe.prototype.setCollapsible=function(j,ae){var Fe=this.getCompressedNode(j);return this.model.setCollapsible(Fe,ae)},Oe.prototype.isCollapsed=function(j){var ae=this.getCompressedNode(j);return this.model.isCollapsed(ae)},Oe.prototype.setCollapsed=function(j,ae,Fe){var qe=this.getCompressedNode(j);return this.model.setCollapsed(qe,ae,Fe)},Oe.prototype.expandTo=function(j){var ae=this.getCompressedNode(j);this.model.expandTo(ae)},Oe.prototype.rerender=function(j){var ae=this.getCompressedNode(j);this.model.rerender(ae)},Oe.prototype.refilter=function(){this.model.refilter()},Oe.prototype.getCompressedNode=function(j){if(j===null)return null;var ae=this.nodes.get(j);if(!ae)throw new k(this.user,"Tree element not found: "+j);return ae},Oe}(),Gt=function(j){return j[j.length-1]},on=function(){function Oe(j,ae){this.unwrapper=j,this.node=ae}return Object.defineProperty(Oe.prototype,"element",{get:function(){return this.node.element===null?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"children",{get:function(){var ae=this;return this.node.children.map(function(Fe){return new Oe(ae.unwrapper,Fe)})},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Oe}();function On(Oe,j){return{splice:function(Fe,qe,ct){j.splice(Fe,qe,ct.map(function(wt){return Oe.map(wt)}))}}}function yn(Oe,j){return Re(Re({},j),{sorter:j.sorter&&{compare:function(Fe,qe){return j.sorter.compare(Fe.elements[0],qe.elements[0])}},identityProvider:j.identityProvider&&{getId:function(Fe){return j.identityProvider.getId(Oe(Fe))}},filter:j.filter&&{filter:function(Fe,qe){return j.filter.filter(Oe(Fe),qe)}}})}var Mn=function(){function Oe(j,ae,Fe){var qe=this;Fe===void 0&&(Fe={}),this.elementMapper=Fe.elementMapper||Gt;var ct=function(Ge){return qe.elementMapper(Ge.elements)};this.nodeMapper=new z(function(wt){return new on(ct,wt)}),this.model=new zt(j,On(this.nodeMapper,ae),yn(ct,Fe))}return Object.defineProperty(Oe.prototype,"onDidSplice",{get:function(){var ae=this;return te.b.map(this.model.onDidSplice,function(Fe){var qe=Fe.insertedNodes,ct=Fe.deletedNodes;return{insertedNodes:qe.map(function(wt){return ae.nodeMapper.map(wt)}),deletedNodes:ct.map(function(wt){return ae.nodeMapper.map(wt)})}})},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"onDidChangeCollapseState",{get:function(){var ae=this;return te.b.map(this.model.onDidChangeCollapseState,function(Fe){var qe=Fe.node,ct=Fe.deep;return{node:ae.nodeMapper.map(qe),deep:ct}})},enumerable:!0,configurable:!0}),Oe.prototype.setChildren=function(j,ae){this.model.setChildren(j,ae)},Oe.prototype.setCompressionEnabled=function(j){this.model.setCompressionEnabled(j)},Oe.prototype.has=function(j){return this.model.has(j)},Oe.prototype.getListIndex=function(j){return this.model.getListIndex(j)},Oe.prototype.getListRenderCount=function(j){return this.model.getListRenderCount(j)},Oe.prototype.getNode=function(j){return this.nodeMapper.map(this.model.getNode(j))},Oe.prototype.getNodeLocation=function(j){return j.element},Oe.prototype.getParentNodeLocation=function(j){return this.model.getParentNodeLocation(j)},Oe.prototype.isCollapsible=function(j){return this.model.isCollapsible(j)},Oe.prototype.setCollapsible=function(j,ae){return this.model.setCollapsible(j,ae)},Oe.prototype.isCollapsed=function(j){return this.model.isCollapsed(j)},Oe.prototype.setCollapsed=function(j,ae,Fe){return this.model.setCollapsed(j,ae,Fe)},Oe.prototype.expandTo=function(j){return this.model.expandTo(j)},Oe.prototype.rerender=function(j){return this.model.rerender(j)},Oe.prototype.refilter=function(){return this.model.refilter()},Oe.prototype.getCompressedTreeNode=function(j){return j===void 0&&(j=null),this.model.getNode(j)},Oe}(),Ft=o("ZCR3"),gt=function(){var Oe=function(ae,Fe){return Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var wt in ct)ct.hasOwnProperty(wt)&&(qe[wt]=ct[wt])},Oe(ae,Fe)};return function(j,ae){Oe(j,ae);function Fe(){this.constructor=j}j.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),pt=function(){return pt=Object.assign||function(Oe){for(var j,ae=1,Fe=arguments.length;ae<Fe;ae++){j=arguments[ae];for(var qe in j)Object.prototype.hasOwnProperty.call(j,qe)&&(Oe[qe]=j[qe])}return Oe},pt.apply(this,arguments)},Dt=function(Oe,j,ae,Fe){var qe=arguments.length,ct=qe<3?j:Fe===null?Fe=Object.getOwnPropertyDescriptor(j,ae):Fe,wt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ct=Reflect.decorate(Oe,j,ae,Fe);else for(var Ge=Oe.length-1;Ge>=0;Ge--)(wt=Oe[Ge])&&(ct=(qe<3?wt(ct):qe>3?wt(j,ae,ct):wt(j,ae))||ct);return qe>3&&ct&&Object.defineProperty(j,ae,ct),ct},Ot=function(Oe){gt(j,Oe);function j(ae,Fe,qe,ct,wt){return wt===void 0&&(wt={}),Oe.call(this,ae,Fe,qe,ct,wt)||this}return Object.defineProperty(j.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),j.prototype.setChildren=function(ae,Fe){this.model.setChildren(ae,Fe)},j.prototype.rerender=function(ae){if(ae===void 0){this.view.rerender();return}this.model.rerender(ae)},j.prototype.hasElement=function(ae){return this.model.has(ae)},j.prototype.createModel=function(ae,Fe,qe){return new Me(ae,Fe,qe)},j}(ee),Ht=function(){function Oe(j,ae){this._compressedTreeNodeProvider=j,this.renderer=ae,this.templateId=ae.templateId,ae.onDidChangeTwistieState&&(this.onDidChangeTwistieState=ae.onDidChangeTwistieState)}return Object.defineProperty(Oe.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),Oe.prototype.renderTemplate=function(j){var ae=this.renderer.renderTemplate(j);return{compressedTreeNode:void 0,data:ae}},Oe.prototype.renderElement=function(j,ae,Fe,qe){var ct=this.compressedTreeNodeProvider.getCompressedTreeNode(j.element);ct.element.elements.length===1?(Fe.compressedTreeNode=void 0,this.renderer.renderElement(j,ae,Fe.data,qe)):(Fe.compressedTreeNode=ct,this.renderer.renderCompressedElements(ct,ae,Fe.data,qe))},Oe.prototype.disposeElement=function(j,ae,Fe,qe){Fe.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(Fe.compressedTreeNode,ae,Fe.data,qe):this.renderer.disposeElement&&this.renderer.disposeElement(j,ae,Fe.data,qe)},Oe.prototype.disposeTemplate=function(j){this.renderer.disposeTemplate(j.data)},Oe.prototype.renderTwistie=function(j,ae){this.renderer.renderTwistie&&this.renderer.renderTwistie(j,ae)},Dt([Ft.a],Oe.prototype,"compressedTreeNodeProvider",null),Oe}();function Jt(Oe,j){return j&&pt(pt({},j),{keyboardNavigationLabelProvider:j.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(Fe){var qe;try{qe=Oe().getCompressedTreeNode(Fe)}catch(ct){return j.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(Fe)}return qe.element.elements.length===1?j.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(Fe):j.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(qe.element.elements)}}})}var nn=function(Oe){gt(j,Oe);function j(ae,Fe,qe,ct,wt){wt===void 0&&(wt={});var Ge=this,le=function(){return Ge},Y=ct.map(function(Ve){return new Ht(le,Ve)});return Ge=Oe.call(this,ae,Fe,qe,Y,Jt(le,wt))||this,Ge}return j.prototype.setChildren=function(ae,Fe){this.model.setChildren(ae,Fe)},j.prototype.createModel=function(ae,Fe,qe){return new Mn(ae,Fe,qe)},j.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),Oe.prototype.updateOptions.call(this,ae),typeof ae.compressionEnabled!="undefined"&&this.model.setCompressionEnabled(ae.compressionEnabled)},j.prototype.getCompressedTreeNode=function(ae){return ae===void 0&&(ae=null),this.model.getCompressedTreeNode(ae)},j}(Ot),sn=o("/cxE"),un=function(){var Oe=function(ae,Fe){return Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var wt in ct)ct.hasOwnProperty(wt)&&(qe[wt]=ct[wt])},Oe(ae,Fe)};return function(j,ae){Oe(j,ae);function Fe(){this.constructor=j}j.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),Sn=function(){return Sn=Object.assign||function(Oe){for(var j,ae=1,Fe=arguments.length;ae<Fe;ae++){j=arguments[ae];for(var qe in j)Object.prototype.hasOwnProperty.call(j,qe)&&(Oe[qe]=j[qe])}return Oe},Sn.apply(this,arguments)},Ln=function(Oe,j,ae,Fe){function qe(ct){return ct instanceof ae?ct:new ae(function(wt){wt(ct)})}return new(ae||(ae=Promise))(function(ct,wt){function Ge(Ve){try{Y(Fe.next(Ve))}catch(at){wt(at)}}function le(Ve){try{Y(Fe.throw(Ve))}catch(at){wt(at)}}function Y(Ve){Ve.done?ct(Ve.value):qe(Ve.value).then(Ge,le)}Y((Fe=Fe.apply(Oe,j||[])).next())})},An=function(Oe,j){var ae={label:0,sent:function(){if(ct[0]&1)throw ct[1];return ct[1]},trys:[],ops:[]},Fe,qe,ct,wt;return wt={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(wt[Symbol.iterator]=function(){return this}),wt;function Ge(Y){return function(Ve){return le([Y,Ve])}}function le(Y){if(Fe)throw new TypeError("Generator is already executing.");for(;ae;)try{if(Fe=1,qe&&(ct=Y[0]&2?qe.return:Y[0]?qe.throw||((ct=qe.return)&&ct.call(qe),0):qe.next)&&!(ct=ct.call(qe,Y[1])).done)return ct;switch(qe=0,ct&&(Y=[Y[0]&2,ct.value]),Y[0]){case 0:case 1:ct=Y;break;case 4:return ae.label++,{value:Y[1],done:!1};case 5:ae.label++,qe=Y[1],Y=[0];continue;case 7:Y=ae.ops.pop(),ae.trys.pop();continue;default:if(ct=ae.trys,!(ct=ct.length>0&&ct[ct.length-1])&&(Y[0]===6||Y[0]===2)){ae=0;continue}if(Y[0]===3&&(!ct||Y[1]>ct[0]&&Y[1]<ct[3])){ae.label=Y[1];break}if(Y[0]===6&&ae.label<ct[1]){ae.label=ct[1],ct=Y;break}if(ct&&ae.label<ct[2]){ae.label=ct[2],ae.ops.push(Y);break}ct[2]&&ae.ops.pop(),ae.trys.pop();continue}Y=j.call(Oe,ae)}catch(Ve){Y=[6,Ve],qe=0}finally{Fe=ct=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}},Gn=function(){for(var Oe=0,j=0,ae=arguments.length;j<ae;j++)Oe+=arguments[j].length;for(var Fe=Array(Oe),qe=0,j=0;j<ae;j++)for(var ct=arguments[j],wt=0,Ge=ct.length;wt<Ge;wt++,qe++)Fe[qe]=ct[wt];return Fe};function Jn(Oe){return Sn(Sn({},Oe),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function $n(Oe,j){return j.parent?j.parent===Oe?!0:$n(Oe,j.parent):!1}function pi(Oe,j){return Oe===j||$n(Oe,j)||$n(j,Oe)}var Kn=function(){function Oe(j){this.node=j}return Object.defineProperty(Oe.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"children",{get:function(){return this.node.children.map(function(ae){return new Oe(ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Oe}(),yi=function(){function Oe(j,ae,Fe){this.renderer=j,this.nodeMapper=ae,this.onDidChangeTwistieState=Fe,this.renderedNodes=new Map,this.templateId=j.templateId}return Oe.prototype.renderTemplate=function(j){var ae=this.renderer.renderTemplate(j);return{templateData:ae}},Oe.prototype.renderElement=function(j,ae,Fe,qe){this.renderer.renderElement(this.nodeMapper.map(j),ae,Fe.templateData,qe)},Oe.prototype.renderTwistie=function(j,ae){return Object(R.X)(ae,"codicon-loading",j.slow),!1},Oe.prototype.disposeElement=function(j,ae,Fe,qe){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(j),ae,Fe.templateData,qe)},Oe.prototype.disposeTemplate=function(j){this.renderer.disposeTemplate(j.templateData)},Oe.prototype.dispose=function(){this.renderedNodes.clear()},Oe}();function vi(Oe){return{browserEvent:Oe.browserEvent,elements:Oe.elements.map(function(j){return j.element})}}var mt=function(Oe){un(j,Oe);function j(ae){var Fe=Oe.call(this,ae.elements.map(function(qe){return qe.element}))||this;return Fe.data=ae,Fe}return j}(g.a);function Nt(Oe){return Oe instanceof g.a?new mt(Oe):Oe}var Ut=function(){function Oe(j){this.dnd=j}return Oe.prototype.getDragURI=function(j){return this.dnd.getDragURI(j.element)},Oe.prototype.getDragLabel=function(j,ae){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(j.map(function(Fe){return Fe.element}),ae)},Oe.prototype.onDragStart=function(j,ae){this.dnd.onDragStart&&this.dnd.onDragStart(Nt(j),ae)},Oe.prototype.onDragOver=function(j,ae,Fe,qe,ct){return ct===void 0&&(ct=!0),this.dnd.onDragOver(Nt(j),ae&&ae.element,Fe,qe)},Oe.prototype.drop=function(j,ae,Fe,qe){this.dnd.drop(Nt(j),ae&&ae.element,Fe,qe)},Oe.prototype.onDragEnd=function(j){this.dnd.onDragEnd&&this.dnd.onDragEnd(j)},Oe}();function tn(Oe){return Oe&&Sn(Sn({},Oe),{collapseByDefault:!0,identityProvider:Oe.identityProvider&&{getId:function(ae){return Oe.identityProvider.getId(ae.element)}},dnd:Oe.dnd&&new Ut(Oe.dnd),multipleSelectionController:Oe.multipleSelectionController&&{isSelectionSingleChangeEvent:function(ae){return Oe.multipleSelectionController.isSelectionSingleChangeEvent(Sn(Sn({},ae),{element:ae.element}))},isSelectionRangeChangeEvent:function(ae){return Oe.multipleSelectionController.isSelectionRangeChangeEvent(Sn(Sn({},ae),{element:ae.element}))}},accessibilityProvider:Oe.accessibilityProvider&&Sn(Sn({},Oe.accessibilityProvider),{getAriaLabel:function(ae){return Oe.accessibilityProvider.getAriaLabel(ae.element)},getAriaLevel:Oe.accessibilityProvider.getAriaLevel&&function(j){return Oe.accessibilityProvider.getAriaLevel(j.element)},getActiveDescendantId:Oe.accessibilityProvider.getActiveDescendantId&&function(j){return Oe.accessibilityProvider.getActiveDescendantId(j.element)}}),filter:Oe.filter&&{filter:function(ae,Fe){return Oe.filter.filter(ae.element,Fe)}},keyboardNavigationLabelProvider:Oe.keyboardNavigationLabelProvider&&Sn(Sn({},Oe.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(ae){return Oe.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ae.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof Oe.expandOnlyOnTwistieClick=="undefined"?void 0:typeof Oe.expandOnlyOnTwistieClick!="function"?Oe.expandOnlyOnTwistieClick:function(j){return Oe.expandOnlyOnTwistieClick(j.element)},ariaProvider:Oe.ariaProvider&&{getPosInSet:function(ae,Fe){return Oe.ariaProvider.getPosInSet(ae.element,Fe)},getSetSize:function(ae,Fe,qe){return Oe.ariaProvider.getSetSize(ae.element,Fe,qe)},getRole:Oe.ariaProvider.getRole?function(j){return Oe.ariaProvider.getRole(j.element)}:void 0,isChecked:Oe.ariaProvider.isChecked?function(j){var ae;return((ae=Oe.ariaProvider)===null||ae===void 0?void 0:ae.isChecked)(j.element)}:void 0},additionalScrollHeight:Oe.additionalScrollHeight})}function Vt(Oe,j){j(Oe),Oe.children.forEach(function(ae){return Vt(ae,j)})}var wn=function(){function Oe(j,ae,Fe,qe,ct,wt){wt===void 0&&(wt={}),this.user=j,this.dataSource=ct,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new te.a,this._onDidChangeNodeSlowState=new te.a,this.nodeMapper=new z(function(Ge){return new Kn(Ge)}),this.disposables=new ne.b,this.identityProvider=wt.identityProvider,this.autoExpandSingleChildren=typeof wt.autoExpandSingleChildren=="undefined"?!1:wt.autoExpandSingleChildren,this.sorter=wt.sorter,this.collapseByDefault=wt.collapseByDefault,this.tree=this.createTree(j,ae,Fe,qe,wt),this.root=Jn({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Sn(Sn({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}return Object.defineProperty(Oe.prototype,"onDidChangeFocus",{get:function(){return te.b.map(this.tree.onDidChangeFocus,vi)},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"onDidChangeSelection",{get:function(){return te.b.map(this.tree.onDidChangeSelection,vi)},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"onDidOpen",{get:function(){return te.b.map(this.tree.onDidOpen,vi)},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),Oe.prototype.createTree=function(j,ae,Fe,qe,ct){var wt=this,Ge=new tt(Fe),le=qe.map(function(Ve){return new yi(Ve,wt.nodeMapper,wt._onDidChangeNodeSlowState.event)}),Y=tn(ct)||{};return new Ot(j,ae,Ge,le,Y)},Oe.prototype.updateOptions=function(j){j===void 0&&(j={}),this.tree.updateOptions(j)},Oe.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(Oe.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(ae){this.tree.scrollTop=ae},enumerable:!0,configurable:!0}),Oe.prototype.domFocus=function(){this.tree.domFocus()},Oe.prototype.layout=function(j,ae){this.tree.layout(j,ae)},Oe.prototype.style=function(j){this.tree.style(j)},Oe.prototype.getInput=function(){return this.root.element},Oe.prototype.setInput=function(j,ae){return Ln(this,void 0,void 0,function(){var Fe;return An(this,function(qe){switch(qe.label){case 0:return this.refreshPromises.forEach(function(ct){return ct.cancel()}),this.refreshPromises.clear(),this.root.element=j,Fe=ae&&{viewState:ae,focus:[],selection:[]},[4,this._updateChildren(j,!0,!1,Fe)];case 1:return qe.sent(),Fe&&(this.tree.setFocus(Fe.focus),this.tree.setSelection(Fe.selection)),ae&&typeof ae.scrollTop=="number"&&(this.scrollTop=ae.scrollTop),[2]}})})},Oe.prototype._updateChildren=function(j,ae,Fe,qe){return j===void 0&&(j=this.root.element),ae===void 0&&(ae=!0),Fe===void 0&&(Fe=!1),Ln(this,void 0,void 0,function(){var ct;return An(this,function(wt){switch(wt.label){case 0:if(typeof this.root.element=="undefined")throw new k(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return wt.sent(),[4,te.b.toPromise(this._onDidRender.event)];case 2:wt.sent(),wt.label=3;case 3:return ct=this.getDataNode(j),[4,this.refreshAndRenderNode(ct,ae,qe)];case 4:if(wt.sent(),Fe)try{this.tree.rerender(ct)}catch(Ge){}return[2]}})})},Oe.prototype.rerender=function(j){if(j===void 0||j===this.root.element){this.tree.rerender();return}var ae=this.getDataNode(j);this.tree.rerender(ae)},Oe.prototype.collapse=function(j,ae){ae===void 0&&(ae=!1);var Fe=this.getDataNode(j);return this.tree.collapse(Fe===this.root?null:Fe,ae)},Oe.prototype.expand=function(j,ae){return ae===void 0&&(ae=!1),Ln(this,void 0,void 0,function(){var Fe,qe;return An(this,function(ct){switch(ct.label){case 0:if(typeof this.root.element=="undefined")throw new k(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return ct.sent(),[4,te.b.toPromise(this._onDidRender.event)];case 2:ct.sent(),ct.label=3;case 3:return Fe=this.getDataNode(j),this.tree.hasElement(Fe)&&!this.tree.isCollapsible(Fe)?[2,!1]:Fe.refreshPromise?[4,this.root.refreshPromise]:[3,6];case 4:return ct.sent(),[4,te.b.toPromise(this._onDidRender.event)];case 5:ct.sent(),ct.label=6;case 6:return Fe!==this.root&&!Fe.refreshPromise&&!this.tree.isCollapsed(Fe)?[2,!1]:(qe=this.tree.expand(Fe===this.root?null:Fe,ae),Fe.refreshPromise?[4,this.root.refreshPromise]:[3,9]);case 7:return ct.sent(),[4,te.b.toPromise(this._onDidRender.event)];case 8:ct.sent(),ct.label=9;case 9:return[2,qe]}})})},Oe.prototype.setSelection=function(j,ae){var Fe=this,qe=j.map(function(ct){return Fe.getDataNode(ct)});this.tree.setSelection(qe,ae)},Oe.prototype.getSelection=function(){var j=this.tree.getSelection();return j.map(function(ae){return ae.element})},Oe.prototype.setFocus=function(j,ae){var Fe=this,qe=j.map(function(ct){return Fe.getDataNode(ct)});this.tree.setFocus(qe,ae)},Oe.prototype.getFocus=function(){var j=this.tree.getFocus();return j.map(function(ae){return ae.element})},Oe.prototype.reveal=function(j,ae){this.tree.reveal(this.getDataNode(j),ae)},Oe.prototype.getDataNode=function(j){var ae=this.nodes.get(j===this.root.element?null:j);if(!ae)throw new k(this.user,"Data tree node not found: "+j);return ae},Oe.prototype.refreshAndRenderNode=function(j,ae,Fe){return Ln(this,void 0,void 0,function(){return An(this,function(qe){switch(qe.label){case 0:return[4,this.refreshNode(j,ae,Fe)];case 1:return qe.sent(),this.render(j,Fe),[2]}})})},Oe.prototype.refreshNode=function(j,ae,Fe){return Ln(this,void 0,void 0,function(){var qe,ct=this;return An(this,function(wt){return this.subTreeRefreshPromises.forEach(function(Ge,le){!qe&&pi(le,j)&&(qe=Ge.then(function(){return ct.refreshNode(j,ae,Fe)}))}),qe?[2,qe]:[2,this.doRefreshSubTree(j,ae,Fe)]})})},Oe.prototype.doRefreshSubTree=function(j,ae,Fe){return Ln(this,void 0,void 0,function(){var qe,ct,wt=this;return An(this,function(Ge){switch(Ge.label){case 0:j.refreshPromise=new Promise(function(le){return qe=le}),this.subTreeRefreshPromises.set(j,j.refreshPromise),j.refreshPromise.finally(function(){j.refreshPromise=void 0,wt.subTreeRefreshPromises.delete(j)}),Ge.label=1;case 1:return Ge.trys.push([1,,4,5]),[4,this.doRefreshNode(j,ae,Fe)];case 2:return ct=Ge.sent(),j.stale=!1,[4,Promise.all(ct.map(function(le){return wt.doRefreshSubTree(le,ae,Fe)}))];case 3:return Ge.sent(),[3,5];case 4:return qe(),[7];case 5:return[2]}})})},Oe.prototype.doRefreshNode=function(j,ae,Fe){return Ln(this,void 0,void 0,function(){var qe,ct,wt,Ge,le=this;return An(this,function(Y){switch(Y.label){case 0:j.hasChildren=!!this.dataSource.hasChildren(j.element),j.hasChildren?(ct=Object(ce.k)(800),ct.then(function(){j.slow=!0,le._onDidChangeNodeSlowState.fire(j)},function(Ve){return null}),qe=this.doGetChildren(j).finally(function(){return ct.cancel()})):qe=Promise.resolve([]),Y.label=1;case 1:return Y.trys.push([1,3,4,5]),[4,qe];case 2:return wt=Y.sent(),[2,this.setChildren(j,wt,ae,Fe)];case 3:if(Ge=Y.sent(),j!==this.root&&this.tree.collapse(j===this.root?null:j),Object(sn.d)(Ge))return[2,[]];throw Ge;case 4:return j.slow&&(j.slow=!1,this._onDidChangeNodeSlowState.fire(j)),[7];case 5:return[2]}})})},Oe.prototype.doGetChildren=function(j){var ae=this,Fe=this.refreshPromises.get(j);return Fe||(Fe=Object(ce.f)(function(){return Ln(ae,void 0,void 0,function(){var qe;return An(this,function(ct){switch(ct.label){case 0:return[4,this.dataSource.getChildren(j.element)];case 1:return qe=ct.sent(),[2,this.processChildren(qe)]}})})}),this.refreshPromises.set(j,Fe),Fe.finally(function(){return ae.refreshPromises.delete(j)}))},Oe.prototype._onDidChangeCollapseState=function(j){var ae=j.node,Fe=j.deep;!ae.collapsed&&ae.element.stale&&(Fe?this.collapse(ae.element.element):this.refreshAndRenderNode(ae.element,!1).catch(sn.e))},Oe.prototype.setChildren=function(j,ae,Fe,qe){var ct,wt=this;if(j.children.length===0&&ae.length===0)return[];for(var Ge=new Map,le=new Map,Y=0,Ve=j.children;Y<Ve.length;Y++){var at=Ve[Y];if(Ge.set(at.element,at),this.identityProvider){var et=this.tree.isCollapsed(at);le.set(at.id,{node:at,collapsed:et})}}for(var J=[],be=ae.map(function(Lt){var $t=!!wt.dataSource.hasChildren(Lt);if(!wt.identityProvider){var Tt=Jn({element:Lt,parent:j,hasChildren:$t});return $t&&wt.collapseByDefault&&!wt.collapseByDefault(Lt)&&(Tt.collapsedByDefault=!1,J.push(Tt)),Tt}var Bt=wt.identityProvider.getId(Lt).toString(),fn=le.get(Bt);if(fn){var Tt=fn.node;return Ge.delete(Tt.element),wt.nodes.delete(Tt.element),wt.nodes.set(Lt,Tt),Tt.element=Lt,Tt.hasChildren=$t,Fe?fn.collapsed?(Tt.children.forEach(function(Hn){return Vt(Hn,function(Yn){return wt.nodes.delete(Yn.element)})}),Tt.children.splice(0,Tt.children.length),Tt.stale=!0):J.push(Tt):$t&&wt.collapseByDefault&&!wt.collapseByDefault(Lt)&&(Tt.collapsedByDefault=!1,J.push(Tt)),Tt}var Cn=Jn({element:Lt,parent:j,id:Bt,hasChildren:$t});return qe&&qe.viewState.focus&&qe.viewState.focus.indexOf(Bt)>-1&&qe.focus.push(Cn),qe&&qe.viewState.selection&&qe.viewState.selection.indexOf(Bt)>-1&&qe.selection.push(Cn),qe&&qe.viewState.expanded&&qe.viewState.expanded.indexOf(Bt)>-1?J.push(Cn):$t&&wt.collapseByDefault&&!wt.collapseByDefault(Lt)&&(Cn.collapsedByDefault=!1,J.push(Cn)),Cn}),Le=0,it=Object(He.e)(Ge);Le<it.length;Le++){var Je=it[Le];Vt(Je,function(Lt){return wt.nodes.delete(Lt.element)})}for(var Be=0,bt=be;Be<bt.length;Be++){var at=bt[Be];this.nodes.set(at.element,at)}return(ct=j.children).splice.apply(ct,Gn([0,j.children.length],be)),j!==this.root&&this.autoExpandSingleChildren&&be.length===1&&J.length===0&&(be[0].collapsedByDefault=!1,J.push(be[0])),J},Oe.prototype.render=function(j,ae){var Fe=this,qe=j.children.map(function(ct){return Fe.asTreeElement(ct,ae)});this.tree.setChildren(j===this.root?null:j,qe),j!==this.root&&this.tree.setCollapsible(j,j.hasChildren),this._onDidRender.fire()},Oe.prototype.asTreeElement=function(j,ae){var Fe=this;if(j.stale)return{element:j,collapsible:j.hasChildren,collapsed:!0};var qe;return ae&&ae.viewState.expanded&&j.id&&ae.viewState.expanded.indexOf(j.id)>-1?qe=!1:qe=j.collapsedByDefault,j.collapsedByDefault=void 0,{element:j,children:j.hasChildren?oe.c.map(oe.c.fromArray(j.children),function(ct){return Fe.asTreeElement(ct,ae)}):[],collapsible:j.hasChildren,collapsed:qe}},Oe.prototype.processChildren=function(j){return this.sorter&&j.sort(this.sorter.compare.bind(this.sorter)),j},Oe.prototype.dispose=function(){this.disposables.dispose()},Oe}(),xn=function(){function Oe(j){this.node=j}return Object.defineProperty(Oe.prototype,"element",{get:function(){return{elements:this.node.element.elements.map(function(ae){return ae.element}),incompressible:this.node.element.incompressible}},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"children",{get:function(){return this.node.children.map(function(ae){return new Oe(ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Oe}(),kn=function(){function Oe(j,ae,Fe,qe){this.renderer=j,this.nodeMapper=ae,this.compressibleNodeMapperProvider=Fe,this.onDidChangeTwistieState=qe,this.renderedNodes=new Map,this.disposables=[],this.templateId=j.templateId}return Oe.prototype.renderTemplate=function(j){var ae=this.renderer.renderTemplate(j);return{templateData:ae}},Oe.prototype.renderElement=function(j,ae,Fe,qe){this.renderer.renderElement(this.nodeMapper.map(j),ae,Fe.templateData,qe)},Oe.prototype.renderCompressedElements=function(j,ae,Fe,qe){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(j),ae,Fe.templateData,qe)},Oe.prototype.renderTwistie=function(j,ae){return Object(R.X)(ae,"codicon-loading",j.slow),!1},Oe.prototype.disposeElement=function(j,ae,Fe,qe){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(j),ae,Fe.templateData,qe)},Oe.prototype.disposeCompressedElements=function(j,ae,Fe,qe){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(j),ae,Fe.templateData,qe)},Oe.prototype.disposeTemplate=function(j){this.renderer.disposeTemplate(j.templateData)},Oe.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(ne.f)(this.disposables)},Oe}();function Fn(Oe){var j=Oe&&tn(Oe);return j&&Sn(Sn({},j),{keyboardNavigationLabelProvider:j.keyboardNavigationLabelProvider&&Sn(Sn({},j.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(Fe){return Oe.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(Fe.map(function(qe){return qe.element}))}})})}var oi=function(Oe){un(j,Oe);function j(ae,Fe,qe,ct,wt,Ge,le){le===void 0&&(le={});var Y=Oe.call(this,ae,Fe,qe,wt,Ge,le)||this;return Y.compressionDelegate=ct,Y.compressibleNodeMapper=new z(function(Ve){return new xn(Ve)}),Y.filter=le.filter,Y}return j.prototype.createTree=function(ae,Fe,qe,ct,wt){var Ge=this,le=new tt(qe),Y=ct.map(function(at){return new kn(at,Ge.nodeMapper,function(){return Ge.compressibleNodeMapper},Ge._onDidChangeNodeSlowState.event)}),Ve=Fn(wt)||{};return new nn(ae,Fe,le,Y,Ve)},j.prototype.asTreeElement=function(ae,Fe){return Sn({incompressible:this.compressionDelegate.isIncompressible(ae.element)},Oe.prototype.asTreeElement.call(this,ae,Fe))},j.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),this.tree.updateOptions(ae)},j.prototype.render=function(ae,Fe){var qe=this;if(!this.identityProvider)return Oe.prototype.render.call(this,ae,Fe);var ct=function(Le){return qe.identityProvider.getId(Le).toString()},wt=function(Le){for(var it=new Set,Je=0,Be=Le;Je<Be.length;Je++){var bt=Be[Je],Lt=qe.tree.getCompressedTreeNode(bt===qe.root?null:bt);if(!!Lt.element)for(var $t=0,Tt=Lt.element.elements;$t<Tt.length;$t++){var Bt=Tt[$t];it.add(ct(Bt.element))}}return it},Ge=wt(this.tree.getSelection()),le=wt(this.tree.getFocus());Oe.prototype.render.call(this,ae,Fe);var Y=this.getSelection(),Ve=!1,at=this.getFocus(),et=!1,J=function be(Le){var it=Le.element;if(it)for(var Je=0;Je<it.elements.length;Je++){var Be=ct(it.elements[Je].element),bt=it.elements[it.elements.length-1].element;Ge.has(Be)&&Y.indexOf(bt)===-1&&(Y.push(bt),Ve=!0),le.has(Be)&&at.indexOf(bt)===-1&&(at.push(bt),et=!0)}Le.children.forEach(be)};J(this.tree.getCompressedTreeNode(ae===this.root?null:ae)),Ve&&this.setSelection(Y),et&&this.setFocus(at)},j.prototype.processChildren=function(ae){var Fe=this;return this.filter&&(ae=ae.filter(function(qe){var ct=Fe.filter.filter(qe,1),wt=ci(ct);if(wt===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return wt===1})),Oe.prototype.processChildren.call(this,ae)},j}(wn);function ci(Oe){return typeof Oe=="boolean"?Oe?1:0:Se(Oe)?we(Oe.visibility):we(Oe)}var Ui=function(){var Oe=function(ae,Fe){return Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var wt in ct)ct.hasOwnProperty(wt)&&(qe[wt]=ct[wt])},Oe(ae,Fe)};return function(j,ae){Oe(j,ae);function Fe(){this.constructor=j}j.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),rr=function(Oe){Ui(j,Oe);function j(ae,Fe,qe,ct,wt,Ge){Ge===void 0&&(Ge={});var le=Oe.call(this,ae,Fe,qe,ct,Ge)||this;return le.user=ae,le.dataSource=wt,le.identityProvider=Ge.identityProvider,le}return j.prototype.createModel=function(ae,Fe,qe){return new Me(ae,Fe,qe)},j}(ee),Xn=o("R3nR"),Ri=function(){var Oe=function(ae,Fe){return Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var wt in ct)ct.hasOwnProperty(wt)&&(qe[wt]=ct[wt])},Oe(ae,Fe)};return function(j,ae){Oe(j,ae);function Fe(){this.constructor=j}j.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),wi=function(){return wi=Object.assign||function(Oe){for(var j,ae=1,Fe=arguments.length;ae<Fe;ae++){j=arguments[ae];for(var qe in j)Object.prototype.hasOwnProperty.call(j,qe)&&(Oe[qe]=j[qe])}return Oe},wi.apply(this,arguments)},Bi=function(Oe,j,ae,Fe){var qe=arguments.length,ct=qe<3?j:Fe===null?Fe=Object.getOwnPropertyDescriptor(j,ae):Fe,wt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ct=Reflect.decorate(Oe,j,ae,Fe);else for(var Ge=Oe.length-1;Ge>=0;Ge--)(wt=Oe[Ge])&&(ct=(qe<3?wt(ct):qe>3?wt(j,ae,ct):wt(j,ae))||ct);return qe>3&&ct&&Object.defineProperty(j,ae,ct),ct},Vn=function(Oe,j){return function(ae,Fe){j(ae,Fe,Oe)}},bi,ji=Object(G.c)("listService"),Mi=function(){function Oe(j){this._themeService=j,this.disposables=new ne.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}return Object.defineProperty(Oe.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),Oe.prototype.register=function(j,ae){var Fe=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var qe=new re.b(Object(R.v)(),"");this.disposables.add(Object(I.b)(qe,this._themeService))}if(this.lists.some(function(wt){return wt.widget===j}))throw new Error("Cannot register the same widget multiple times");var ct={widget:j,extraContextKeys:ae};return this.lists.push(ct),j.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=j),Object(ne.e)(j.onDidFocus(function(){return Fe._lastFocusedWidget=j}),Object(ne.h)(function(){return Fe.lists.splice(Fe.lists.indexOf(ct),1)}),j.onDidDispose(function(){Fe.lists=Fe.lists.filter(function(wt){return wt!==ct}),Fe._lastFocusedWidget===j&&(Fe._lastFocusedWidget=void 0)}))},Oe.prototype.dispose=function(){this.disposables.dispose()},Oe=Bi([Vn(0,K.c)],Oe),Oe}(),Gi=new B.d("listFocus",!0),ki=new B.d("listSupportsMultiselect",!0),mi=B.a.and(Gi,B.a.not(D)),qi=new B.d("listHasSelectionOrFocus",!1),or=new B.d("listDoubleSelection",!1),Ci=new B.d("listMultiSelection",!1),Di=new B.d("listSupportsKeyboardNavigation",!0),Yi="listAutomaticKeyboardNavigation",ur=new B.d(Yi,!0),Ni=!1;function sr(Oe,j){var ae=Oe.createScoped(j.getHTMLElement());return Gi.bindTo(ae),ae}var $e="workbench.list.multiSelectModifier",L="workbench.list.openMode",M="workbench.list.horizontalScrolling",Z="workbench.list.keyboardNavigation",De="workbench.list.automaticKeyboardNavigation",xe="workbench.tree.indent",je="workbench.tree.renderIndentGuides";function ht(Oe){return Object(F.f)(Oe,M,"workbench.tree.horizontalScrolling")}function ut(Oe){return Oe.getValue($e)==="alt"}function yt(Oe){return Oe.getValue(L)!=="doubleClick"}var It=function(Oe){Ri(j,Oe);function j(ae){var Fe=Oe.call(this)||this;return Fe.configurationService=ae,Fe.useAltAsMultipleSelectionModifier=ut(ae),Fe.registerListeners(),Fe}return j.prototype.registerListeners=function(){var ae=this;this._register(this.configurationService.onDidChangeConfiguration(function(Fe){Fe.affectsConfiguration($e)&&(ae.useAltAsMultipleSelectionModifier=ut(ae.configurationService))}))},j.prototype.isSelectionSingleChangeEvent=function(ae){return this.useAltAsMultipleSelectionModifier?ae.browserEvent.altKey:Object(re.f)(ae)},j.prototype.isSelectionRangeChangeEvent=function(ae){return Object(re.e)(ae)},j}(ne.a),Rt=function(Oe){Ri(j,Oe);function j(ae,Fe){var qe=Oe.call(this)||this;return qe.configurationService=ae,qe.existingOpenController=Fe,qe.openOnSingleClick=yt(ae),qe.registerListeners(),qe}return j.prototype.registerListeners=function(){var ae=this;this._register(this.configurationService.onDidChangeConfiguration(function(Fe){Fe.affectsConfiguration(L)&&(ae.openOnSingleClick=yt(ae.configurationService))}))},j.prototype.shouldOpen=function(ae){if(ae instanceof MouseEvent){var Fe=ae.button===0,qe=ae.detail===2;return Fe&&!this.openOnSingleClick&&!qe?!1:Fe||ae.button===1?this.existingOpenController?this.existingOpenController.shouldOpen(ae):!0:!1}return this.existingOpenController?this.existingOpenController.shouldOpen(ae):!0},j}(ne.a);function Wt(Oe,j,ae){var Fe=new ne.b,qe=wi({},Oe);if(Oe.multipleSelectionSupport!==!1&&!Oe.multipleSelectionController){var ct=new It(j);qe.multipleSelectionController=ct,Fe.add(ct)}var wt=new Rt(j,Oe.openController);return qe.openController=wt,Fe.add(wt),qe.keyboardNavigationDelegate={mightProducePrintableCharacter:function(le){return ae.mightProducePrintableCharacter(le)}},[qe,Fe]}function Zt(Oe,j){var ae=!1;return function(Fe){if(ae)return ae=!1,!1;var qe=j.softDispatch(Fe,Oe);return qe&&qe.enterChord?(ae=!0,!1):(ae=!1,!0)}}var Xt=function(Oe){Ri(j,Oe);function j(ae,Fe,qe,ct,wt,Ge,le,Y,Ve,at,et){var J=this,be=pn(Fe,wt,Ge,Ve,at,et),Le=be.options,it=be.getAutomaticKeyboardNavigation,Je=be.disposable;return J=Oe.call(this,ae,Fe,qe,ct,Le)||this,J.disposables.add(Je),J.internals=new Nn(J,Le,it,wt.overrideStyles,Ge,le,Y,Ve,et),J.disposables.add(J.internals),J}return j=Bi([Vn(5,B.c),Vn(6,ji),Vn(7,K.c),Vn(8,F.a),Vn(9,x.a),Vn(10,Xn.b)],j),j}(Ot),ln=function(Oe){Ri(j,Oe);function j(ae,Fe,qe,ct,wt,Ge,le,Y,Ve,at,et,J){var be=this,Le=pn(Fe,Ge,le,at,et,J),it=Le.options,Je=Le.getAutomaticKeyboardNavigation,Be=Le.disposable;return be=Oe.call(this,ae,Fe,qe,ct,wt,it)||this,be.disposables.add(Be),be.internals=new Nn(be,it,Je,Ge.overrideStyles,le,Y,Ve,at,J),be.disposables.add(be.internals),be}return j.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),Oe.prototype.updateOptions.call(this,ae),ae.overrideStyles&&this.internals.updateStyleOverrides(ae.overrideStyles)},j=Bi([Vn(6,B.c),Vn(7,ji),Vn(8,K.c),Vn(9,F.a),Vn(10,x.a),Vn(11,Xn.b)],j),j}(rr),hn=function(Oe){Ri(j,Oe);function j(ae,Fe,qe,ct,wt,Ge,le,Y,Ve,at,et,J){var be=this,Le=pn(Fe,Ge,le,at,et,J),it=Le.options,Je=Le.getAutomaticKeyboardNavigation,Be=Le.disposable;return be=Oe.call(this,ae,Fe,qe,ct,wt,it)||this,be.disposables.add(Be),be.internals=new Nn(be,it,Je,Ge.overrideStyles,le,Y,Ve,at,J),be.disposables.add(be.internals),be}return j.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),Oe.prototype.updateOptions.call(this,ae),ae.overrideStyles&&this.internals.updateStyleOverrides(ae.overrideStyles)},j=Bi([Vn(6,B.c),Vn(7,ji),Vn(8,K.c),Vn(9,F.a),Vn(10,x.a),Vn(11,Xn.b)],j),j}(wn),Tn=function(Oe){Ri(j,Oe);function j(ae,Fe,qe,ct,wt,Ge,le,Y,Ve,at,et,J,be){var Le=this,it=pn(Fe,le,Y,et,J,be),Je=it.options,Be=it.getAutomaticKeyboardNavigation,bt=it.disposable;return Le=Oe.call(this,ae,Fe,qe,ct,wt,Ge,Je)||this,Le.disposables.add(bt),Le.internals=new Nn(Le,Je,Be,le.overrideStyles,Y,Ve,at,et,be),Le.disposables.add(Le.internals),Le}return j=Bi([Vn(7,B.c),Vn(8,ji),Vn(9,K.c),Vn(10,F.a),Vn(11,x.a),Vn(12,Xn.b)],j),j}(oi);function pn(Oe,j,ae,Fe,qe,ct){Di.bindTo(ae),Ni||(ur.bindTo(ae),Ni=!0);var wt=function(){var it=ae.getContextKeyValue(Yi);return it&&(it=Fe.getValue(De)),it},Ge=ct.isScreenReaderOptimized(),le=Ge?"simple":Fe.getValue(Z),Y=typeof j.horizontalScrolling!="undefined"?j.horizontalScrolling:ht(Fe),Ve=yt(Fe),at=Wt(j,Fe,qe),et=at[0],J=at[1],be=j.additionalScrollHeight;return{getAutomaticKeyboardNavigation:wt,disposable:J,options:wi(wi({keyboardSupport:!1},et),{indent:Fe.getValue(xe),renderIndentGuides:Fe.getValue(je),automaticKeyboardNavigation:wt(),simpleKeyboardNavigation:le==="simple",filterOnType:le==="filter",horizontalScrolling:Y,openOnSingleClick:Ve,keyboardNavigationEventFilter:Zt(Oe,qe),additionalScrollHeight:be,hideTwistiesOfChildlessElements:j.hideTwistiesOfChildlessElements})}}var Nn=function(){function Oe(j,ae,Fe,qe,ct,wt,Ge,le,Y){var Ve=this;this.tree=j,this.themeService=Ge,this.disposables=[],this.contextKeyService=sr(ct,j);var at=ki.bindTo(this.contextKeyService);at.set(ae.multipleSelectionSupport!==!1),this.hasSelectionOrFocus=qi.bindTo(this.contextKeyService),this.hasDoubleSelection=or.bindTo(this.contextKeyService),this.hasMultiSelection=Ci.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=ut(le);var et=new Set;et.add(Yi);var J=function(){var Le=Y.isScreenReaderOptimized(),it=Le?"simple":le.getValue(Z);j.updateOptions({simpleKeyboardNavigation:it==="simple",filterOnType:it==="filter"})};this.updateStyleOverrides(qe),this.disposables.push(this.contextKeyService,wt.register(j),j.onDidChangeSelection(function(){var be=j.getSelection(),Le=j.getFocus();Ve.hasSelectionOrFocus.set(be.length>0||Le.length>0),Ve.hasMultiSelection.set(be.length>1),Ve.hasDoubleSelection.set(be.length===2)}),j.onDidChangeFocus(function(){var be=j.getSelection(),Le=j.getFocus();Ve.hasSelectionOrFocus.set(be.length>0||Le.length>0)}),le.onDidChangeConfiguration(function(be){if(be.affectsConfiguration(L)&&j.updateOptions({openOnSingleClick:yt(le)}),be.affectsConfiguration($e)&&(Ve._useAltAsMultipleSelectionModifier=ut(le)),be.affectsConfiguration(xe)){var Le=le.getValue(xe);j.updateOptions({indent:Le})}if(be.affectsConfiguration(je)){var it=le.getValue(je);j.updateOptions({renderIndentGuides:it})}be.affectsConfiguration(Z)&&J(),be.affectsConfiguration(De)&&j.updateOptions({automaticKeyboardNavigation:Fe()})}),this.contextKeyService.onDidChangeContext(function(be){be.affectsSome(et)&&j.updateOptions({automaticKeyboardNavigation:Fe()})}),Y.onDidChangeScreenReaderOptimized(function(){return J()}))}return Oe.prototype.updateStyleOverrides=function(j){Object(ne.f)(this.styler),this.styler=j?Object(I.b)(this.tree,this.themeService,j):ne.a.None},Oe.prototype.dispose=function(){this.disposables=Object(ne.f)(this.disposables),this.styler=Object(ne.f)(this.styler)},Oe=Bi([Vn(4,B.c),Vn(5,ji),Vn(6,K.c),Vn(7,F.a),Vn(8,Xn.b)],Oe),Oe}(),In=S.a.as(V.a.Configuration);In.registerConfiguration({id:"workbench",order:7,title:Object(P.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:(bi={},bi[$e]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(P.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(P.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(P.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.")},bi[L]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(P.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. ")},bi[M]={type:"boolean",default:!1,description:Object(P.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},bi["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(P.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(P.a)("deprecated","This setting is deprecated, please use '{0}' instead.",M)},bi[xe]={type:"number",default:8,minimum:0,maximum:40,description:Object(P.a)("tree indent setting","Controls tree indentation in pixels.")},bi[je]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(P.a)("render tree indent guides","Controls whether the tree should render indent guides.")},bi[Z]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(P.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(P.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(P.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(P.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},bi[De]={type:"boolean",default:!0,markdownDescription:Object(P.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.")},bi)})},kYye:function(Et,A,o){"use strict";o.d(A,"h",function(){return F}),o.d(A,"i",function(){return V}),o.d(A,"f",function(){return I}),o.d(A,"e",function(){return K}),o.d(A,"g",function(){return T}),o.d(A,"a",function(){return te}),o.d(A,"j",function(){return U}),o.d(A,"b",function(){return h}),o.d(A,"l",function(){return g}),o.d(A,"c",function(){return v}),o.d(A,"d",function(){return E}),o.d(A,"k",function(){return k}),o.d(A,"m",function(){return oe}),o.d(A,"n",function(){return fe}),o.d(A,"o",function(){return Se}),o.d(A,"q",function(){return we}),o.d(A,"p",function(){return q});var R=o("3/fG"),re=o("zrhQ"),ne=o("MD5Z"),P=o("t9D7"),F=Object(ne.Rb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},R.a("lineHighlight","Background color for the highlight of line at the cursor position.")),V=Object(ne.Rb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},R.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),B=Object(ne.Rb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},R.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),G=Object(ne.Rb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:ne.b},R.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),x=Object(ne.Rb)("editor.symbolHighlightBackground",{dark:ne.t,light:ne.t,hc:null},R.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),S=Object(ne.Rb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:ne.b},R.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),I=Object(ne.Rb)("editorCursor.foreground",{dark:"#AEAFAD",light:re.a.black,hc:re.a.white},R.a("caret","Color of the editor cursor.")),K=Object(ne.Rb)("editorCursor.background",null,R.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),D=Object(ne.Rb)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},R.a("editorWhitespaces","Color of whitespace characters in the editor.")),T=Object(ne.Rb)("editorIndentGuide.background",{dark:D,light:D,hc:D},R.a("editorIndentGuides","Color of the editor indentation guides.")),te=Object(ne.Rb)("editorIndentGuide.activeBackground",{dark:D,light:D,hc:D},R.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),U=Object(ne.Rb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:re.a.white},R.a("editorLineNumbers","Color of editor line numbers.")),_=Object(ne.Rb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:ne.b},R.a("editorActiveLineNumber","Color of editor active line number"),!1,R.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),h=Object(ne.Rb)("editorLineNumber.activeForeground",{dark:_,light:_,hc:_},R.a("editorActiveLineNumber","Color of editor active line number")),g=Object(ne.Rb)("editorRuler.foreground",{dark:"#5A5A5A",light:re.a.lightgrey,hc:re.a.white},R.a("editorRuler","Color of the editor rulers.")),p=Object(ne.Rb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},R.a("editorCodeLensForeground","Foreground color of editor code lenses")),v=Object(ne.Rb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},R.a("editorBracketMatchBackground","Background color behind matching brackets")),E=Object(ne.Rb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:ne.e},R.a("editorBracketMatchBorder","Color for matching brackets boxes")),k=Object(ne.Rb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},R.a("editorOverviewRulerBorder","Color of the overview ruler border.")),z=Object(ne.Rb)("editorGutter.background",{dark:ne.o,light:ne.o,hc:ne.o},R.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),oe=Object(ne.Rb)("editorUnnecessaryCode.border",{dark:null,light:null,hc:re.a.fromHex("#fff").transparent(.8)},R.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),fe=Object(ne.Rb)("editorUnnecessaryCode.opacity",{dark:re.a.fromHex("#000a"),light:re.a.fromHex("#0007"),hc:null},R.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.`)),Se=Object(ne.Rb)("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))},R.a("overviewRuleError","Overview ruler marker color for errors.")),we=Object(ne.Rb)("editorOverviewRuler.warningForeground",{dark:ne.O,light:ne.O,hc:ne.N},R.a("overviewRuleWarning","Overview ruler marker color for warnings.")),q=Object(ne.Rb)("editorOverviewRuler.infoForeground",{dark:ne.H,light:ne.H,hc:ne.G},R.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(P.e)(function(X,ce){var Ne=X.getColor(ne.o);Ne&&ce.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+Ne+"; }");var He=X.getColor(ne.x);He&&ce.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+He+"; }");var _e=X.getColor(z);_e&&ce.addRule(".monaco-editor .margin { background-color: "+_e+"; }");var de=X.getColor(B);de&&ce.addRule(".monaco-editor .rangeHighlight { background-color: "+de+"; }");var se=X.getColor(G);se&&ce.addRule(".monaco-editor .rangeHighlight { border: 1px "+(X.type==="hc"?"dotted":"solid")+" "+se+"; }");var he=X.getColor(x);he&&ce.addRule(".monaco-editor .symbolHighlight { background-color: "+he+"; }");var ie=X.getColor(S);ie&&ce.addRule(".monaco-editor .symbolHighlight { border: 1px "+(X.type==="hc"?"dotted":"solid")+" "+ie+"; }");var $=X.getColor(D);$&&ce.addRule(".vs-whitespace { color: "+$+" !important; }")})},kdPm:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return o.e(201).then(o.bind(null,"3VBA"))}})},"kw+w":function(Et,A,o){},l2gE:function(Et,A,o){"use strict";o.d(A,"a",function(){return ce});var R=o("6OMU"),re=o("N0LK"),ne=o("PTeM"),P=o("MrjW"),F=o("QDVR"),V=o("X+cX"),B="**",G="/",x="[/\\\\]",S="[^/\\\\]",I=/\//g;function K(he){switch(he){case 0:return"";case 1:return S+"*?";default:return"(?:"+x+"|"+S+"+"+x+"|"+x+S+"+)*?"}}function D(he,ie){if(!he)return[];for(var $=[],ve=!1,ye=!1,Ue="",tt=0,_t=he;tt<_t.length;tt++){var At=_t[tt];switch(At){case ie:if(!ve&&!ye){$.push(Ue),Ue="";continue}break;case"{":ve=!0;break;case"}":ve=!1;break;case"[":ye=!0;break;case"]":ye=!1;break}Ue+=At}return Ue&&$.push(Ue),$}function T(he){if(!he)return"";var ie="",$=D(he,G);if($.every(function(ye){return ye===B}))ie=".*";else{var ve=!1;$.forEach(function(ye,Ue){if(ye===B){ve||(ie+=K(2),ve=!0);return}for(var tt=!1,_t="",At=!1,Yt="",Ke=0,Ye=ye;Ke<Ye.length;Ke++){var Xe=Ye[Ke];if(Xe!=="}"&&tt){_t+=Xe;continue}if(At&&(Xe!=="]"||!Yt)){var Ze=void 0;Xe==="-"?Ze=Xe:(Xe==="^"||Xe==="!")&&!Yt?Ze="^":Xe===G?Ze="":Ze=re.p(Xe),Yt+=Ze;continue}switch(Xe){case"{":tt=!0;continue;case"[":At=!0;continue;case"}":var We=D(_t,","),Qe="(?:"+We.map(function(Ee){return T(Ee)}).join("|")+")";ie+=Qe,tt=!1,_t="";break;case"]":ie+="["+Yt+"]",At=!1,Yt="";break;case"?":ie+=S;continue;case"*":ie+=K(1);continue;default:ie+=re.p(Xe)}}Ue<$.length-1&&($[Ue+1]!==B||Ue+2<$.length)&&(ie+=x),ve=!1})}return ie}var te=/^\*\*\/\*\.[\w\.-]+$/,U=/^\*\*\/([\w\.-]+)\/?$/,_=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,h=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,g=/^\*\*((\/[\w\.-]+)+)\/?$/,p=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,v=new F.a(1e4),E=function(){return!1},k=function(){return null};function z(he,ie){if(!he)return k;var $;typeof he!="string"?$=he.pattern:$=he,$=$.trim();var ve=$+"_"+!!ie.trimForExclusions,ye=v.get(ve);if(ye)return oe(ye,he);var Ue;if(te.test($)){var tt=$.substr(4);ye=function(At,Yt){return typeof At=="string"&&re.m(At,tt)?$:null}}else(Ue=U.exec(fe($,ie)))?ye=Se(Ue[1],$):(ie.trimForExclusions?h:_).test($)?ye=we($,ie):(Ue=g.exec(fe($,ie)))?ye=q(Ue[1].substr(1),$,!0):(Ue=p.exec(fe($,ie)))?ye=q(Ue[1],$,!1):ye=X($);return v.set(ve,ye),oe(ye,he)}function oe(he,ie){return typeof ie=="string"?he:function($,ve){return ne.a($,ie.base)?he(P.relative(ie.base,$),ve):null}}function fe(he,ie){return ie.trimForExclusions&&re.m(he,"/**")?he.substr(0,he.length-2):he}function Se(he,ie){var $="/"+he,ve="\\"+he,ye=function(_t,At){return typeof _t!="string"?null:At?At===he?ie:null:_t===he||re.m(_t,$)||re.m(_t,ve)?ie:null},Ue=[he];return ye.basenames=Ue,ye.patterns=[ie],ye.allBasenames=Ue,ye}function we(he,ie){var $=se(he.slice(1,-1).split(",").map(function(_t){return z(_t,ie)}).filter(function(_t){return _t!==k}),he),ve=$.length;if(!ve)return k;if(ve===1)return $[0];var ye=function(At,Yt){for(var Ke=0,Ye=$.length;Ke<Ye;Ke++)if($[Ke](At,Yt))return he;return null},Ue=R.j($,function(_t){return!!_t.allBasenames});Ue&&(ye.allBasenames=Ue.allBasenames);var tt=$.reduce(function(_t,At){return At.allPaths?_t.concat(At.allPaths):_t},[]);return tt.length&&(ye.allPaths=tt),ye}function q(he,ie,$){var ve=P.sep!==P.posix.sep?he.replace(I,P.sep):he,ye=P.sep+ve,Ue=$?function(tt,_t){return typeof tt=="string"&&(tt===ve||re.m(tt,ye))?ie:null}:function(tt,_t){return typeof tt=="string"&&tt===ve?ie:null};return Ue.allPaths=[($?"*/":"./")+he],Ue}function X(he){try{var ie=new RegExp("^"+T(he)+"$");return function($,ve){return ie.lastIndex=0,typeof $=="string"&&ie.test($)?he:null}}catch($){return k}}function ce(he,ie,$){return!he||typeof ie!="string"?!1:Ne(he)(ie,void 0,$)}function Ne(he,ie){if(ie===void 0&&(ie={}),!he)return E;if(typeof he=="string"||He(he)){var $=z(he,ie);if($===k)return E;var ve=function(Ue,tt){return!!$(Ue,tt)};return $.allBasenames&&(ve.allBasenames=$.allBasenames),$.allPaths&&(ve.allPaths=$.allPaths),ve}return _e(he,ie)}function He(he){var ie=he;return ie&&typeof ie.base=="string"&&typeof ie.pattern=="string"}function _e(he,ie){var $=se(Object.getOwnPropertyNames(he).map(function(Ke){return de(Ke,he[Ke],ie)}).filter(function(Ke){return Ke!==k})),ve=$.length;if(!ve)return k;if(!$.some(function(Ke){return!!Ke.requiresSiblings})){if(ve===1)return $[0];var ye=function(Ye,Xe){for(var Ze=0,We=$.length;Ze<We;Ze++){var Qe=$[Ze](Ye,Xe);if(Qe)return Qe}return null},Ue=R.j($,function(Ke){return!!Ke.allBasenames});Ue&&(ye.allBasenames=Ue.allBasenames);var tt=$.reduce(function(Ke,Ye){return Ye.allPaths?Ke.concat(Ye.allPaths):Ke},[]);return tt.length&&(ye.allPaths=tt),ye}var _t=function(Ye,Xe,Ze){for(var We=void 0,Qe=0,Ee=$.length;Qe<Ee;Qe++){var W=$[Qe];W.requiresSiblings&&Ze&&(Xe||(Xe=P.basename(Ye)),We||(We=Xe.substr(0,Xe.length-P.extname(Ye).length)));var ee=W(Ye,Xe,We,Ze);if(ee)return ee}return null},At=R.j($,function(Ke){return!!Ke.allBasenames});At&&(_t.allBasenames=At.allBasenames);var Yt=$.reduce(function(Ke,Ye){return Ye.allPaths?Ke.concat(Ye.allPaths):Ke},[]);return Yt.length&&(_t.allPaths=Yt),_t}function de(he,ie,$){if(ie===!1)return k;var ve=z(he,$);if(ve===k)return k;if(typeof ie=="boolean")return ve;if(ie){var ye=ie.when;if(typeof ye=="string"){var Ue=function(_t,At,Yt,Ke){if(!Ke||!ve(_t,At))return null;var Ye=ye.replace("$(basename)",Yt),Xe=Ke(Ye);return Object(V.i)(Xe)?Xe.then(function(Ze){return Ze?he:null}):Xe?he:null};return Ue.requiresSiblings=!0,Ue}}return ve}function se(he,ie){var $=he.filter(function(Yt){return!!Yt.basenames});if($.length<2)return he;var ve=$.reduce(function(Yt,Ke){var Ye=Ke.basenames;return Ye?Yt.concat(Ye):Yt},[]),ye;if(ie){ye=[];for(var Ue=0,tt=ve.length;Ue<tt;Ue++)ye.push(ie)}else ye=$.reduce(function(Yt,Ke){var Ye=Ke.patterns;return Ye?Yt.concat(Ye):Yt},[]);var _t=function(Ke,Ye){if(typeof Ke!="string")return null;if(!Ye){var Xe=void 0;for(Xe=Ke.length;Xe>0;Xe--){var Ze=Ke.charCodeAt(Xe-1);if(Ze===47||Ze===92)break}Ye=Ke.substr(Xe)}var We=ve.indexOf(Ye);return We!==-1?ye[We]:null};_t.basenames=ve,_t.patterns=ye,_t.allBasenames=ve;var At=he.filter(function(Yt){return!Yt.basenames});return At.push(_t),At}},lKfe:function(Et,A,o){},li8W:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return o.e(200).then(o.bind(null,"7s2V"))}})},lrmC:function(Et,A,o){},n01l:function(Et,A,o){"use strict";o.r(A);var R=o("3/fG"),re=o("/kV6"),ne=o("sswD"),P=o("wQH0"),F=o("0/Sa"),V=o("cGHE"),B=o("aokT"),G=o("gCVg"),x=o("cMvZ"),S=function(){function g(p,v){this._selection=p,this._insertSpace=v,this._usedEndToken=null}return g._haystackHasNeedleAtOffset=function(p,v,E){if(E<0)return!1;var k=v.length,z=p.length;if(E+k>z)return!1;for(var oe=0;oe<k;oe++){var fe=p.charCodeAt(E+oe),Se=v.charCodeAt(oe);if(fe!==Se&&!(fe>=65&&fe<=90&&fe+32===Se)&&!(Se>=65&&Se<=90&&Se+32===fe))return!1}return!0},g.prototype._createOperationsForBlockComment=function(p,v,E,k,z,oe){var fe=p.startLineNumber,Se=p.startColumn,we=p.endLineNumber,q=p.endColumn,X=z.getLineContent(fe),ce=z.getLineContent(we),Ne=X.lastIndexOf(v,Se-1+v.length),He=ce.indexOf(E,q-1-E.length);if(Ne!==-1&&He!==-1)if(fe===we){var _e=X.substring(Ne+v.length,He);_e.indexOf(E)>=0&&(Ne=-1,He=-1)}else{var de=X.substring(Ne+v.length),se=ce.substring(0,He);(de.indexOf(E)>=0||se.indexOf(E)>=0)&&(Ne=-1,He=-1)}var he;Ne!==-1&&He!==-1?(k&&Ne+v.length<X.length&&X.charCodeAt(Ne+v.length)===32&&(v=v+" "),k&&He>0&&ce.charCodeAt(He-1)===32&&(E=" "+E,He-=1),he=g._createRemoveBlockCommentOperations(new B.a(fe,Ne+v.length+1,we,He+1),v,E)):(he=g._createAddBlockCommentOperations(p,v,E,this._insertSpace),this._usedEndToken=he.length===1?E:null);for(var ie=0,$=he;ie<$.length;ie++){var ve=$[ie];oe.addTrackedEditOperation(ve.range,ve.text)}},g._createRemoveBlockCommentOperations=function(p,v,E){var k=[];return B.a.isEmpty(p)?k.push(F.a.delete(new B.a(p.startLineNumber,p.startColumn-v.length,p.endLineNumber,p.endColumn+E.length))):(k.push(F.a.delete(new B.a(p.startLineNumber,p.startColumn-v.length,p.startLineNumber,p.startColumn))),k.push(F.a.delete(new B.a(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn+E.length)))),k},g._createAddBlockCommentOperations=function(p,v,E,k){var z=[];return B.a.isEmpty(p)?z.push(F.a.replace(new B.a(p.startLineNumber,p.startColumn,p.endLineNumber,p.endColumn),v+" "+E)):(z.push(F.a.insert(new V.a(p.startLineNumber,p.startColumn),v+(k?" ":""))),z.push(F.a.insert(new V.a(p.endLineNumber,p.endColumn),(k?" ":"")+E))),z},g.prototype.getEditOperations=function(p,v){var E=this._selection.startLineNumber,k=this._selection.startColumn;p.tokenizeIfCheap(E);var z=p.getLanguageIdAtPosition(E,k),oe=x.a.getComments(z);!oe||!oe.blockCommentStartToken||!oe.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,oe.blockCommentStartToken,oe.blockCommentEndToken,this._insertSpace,p,v)},g.prototype.computeCursorState=function(p,v){var E=v.getInverseEditOperations();if(E.length===2){var k=E[0],z=E[1];return new G.a(k.range.endLineNumber,k.range.endColumn,z.range.startLineNumber,z.range.startColumn)}else{var oe=E[0].range,fe=this._usedEndToken?-this._usedEndToken.length-1:0;return new G.a(oe.endLineNumber,oe.endColumn+fe,oe.endLineNumber,oe.endColumn+fe)}},g}(),I=o("N0LK"),K=function(){function g(p,v,E,k){this._selection=p,this._tabSize=v,this._type=E,this._insertSpace=k,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1}return g._gatherPreflightCommentStrings=function(p,v,E){p.tokenizeIfCheap(v);var k=p.getLanguageIdAtPosition(v,1),z=x.a.getComments(k),oe=z?z.lineCommentToken:null;if(!oe)return null;for(var fe=[],Se=0,we=E-v+1;Se<we;Se++)fe[Se]={ignore:!1,commentStr:oe,commentStrOffset:0,commentStrLength:oe.length};return fe},g._analyzeLines=function(p,v,E,k,z){var oe=!0,fe;p===0?fe=!0:p===1?fe=!1:fe=!0;for(var Se=0,we=k.length;Se<we;Se++){var q=k[Se],X=z+Se,ce=E.getLineContent(X),Ne=I.q(ce);if(Ne===-1){q.ignore=!0,q.commentStrOffset=ce.length;continue}if(oe=!1,q.ignore=!1,q.commentStrOffset=Ne,fe&&!S._haystackHasNeedleAtOffset(ce,q.commentStr,Ne)&&(p===0?fe=!1:p===1||(q.ignore=!0)),fe&&v){var He=Ne+q.commentStrLength;He<ce.length&&ce.charCodeAt(He)===32&&(q.commentStrLength+=1)}}if(p===0&&oe){fe=!1;for(var Se=0,we=k.length;Se<we;Se++)k[Se].ignore=!1}return{supported:!0,shouldRemoveComments:fe,lines:k}},g._gatherPreflightData=function(p,v,E,k,z){var oe=g._gatherPreflightCommentStrings(E,k,z);return oe===null?{supported:!1}:g._analyzeLines(p,v,E,oe,k)},g.prototype._executeLineComments=function(p,v,E,k){var z;E.shouldRemoveComments?z=g._createRemoveLineCommentsOperations(E.lines,k.startLineNumber):(g._normalizeInsertionPoint(p,E.lines,k.startLineNumber,this._tabSize),z=this._createAddLineCommentsOperations(E.lines,k.startLineNumber));for(var oe=new V.a(k.positionLineNumber,k.positionColumn),fe=0,Se=z.length;fe<Se;fe++)if(v.addEditOperation(z[fe].range,z[fe].text),z[fe].range.isEmpty()&&z[fe].range.getStartPosition().equals(oe)){var we=p.getLineContent(oe.lineNumber);we.length+1===oe.column&&(this._deltaColumn=(z[fe].text||"").length)}this._selectionId=v.trackSelection(k)},g.prototype._attemptRemoveBlockComment=function(p,v,E,k){var z=v.startLineNumber,oe=v.endLineNumber,fe=k.length+Math.max(p.getLineFirstNonWhitespaceColumn(v.startLineNumber),v.startColumn),Se=p.getLineContent(z).lastIndexOf(E,fe-1),we=p.getLineContent(oe).indexOf(k,v.endColumn-1-E.length);return Se!==-1&&we===-1&&(we=p.getLineContent(z).indexOf(k,Se+E.length),oe=z),Se===-1&&we!==-1&&(Se=p.getLineContent(oe).lastIndexOf(E,we),z=oe),v.isEmpty()&&(Se===-1||we===-1)&&(Se=p.getLineContent(z).indexOf(E),Se!==-1&&(we=p.getLineContent(z).indexOf(k,Se+E.length))),Se!==-1&&p.getLineContent(z).charCodeAt(Se+E.length)===32&&(E+=" "),we!==-1&&p.getLineContent(oe).charCodeAt(we-1)===32&&(k=" "+k,we-=1),Se!==-1&&we!==-1?S._createRemoveBlockCommentOperations(new B.a(z,Se+E.length+1,oe,we+1),E,k):null},g.prototype._executeBlockComment=function(p,v,E){p.tokenizeIfCheap(E.startLineNumber);var k=p.getLanguageIdAtPosition(E.startLineNumber,1),z=x.a.getComments(k);if(!(!z||!z.blockCommentStartToken||!z.blockCommentEndToken)){var oe=z.blockCommentStartToken,fe=z.blockCommentEndToken,Se=this._attemptRemoveBlockComment(p,E,oe,fe);if(!Se){if(E.isEmpty()){var we=p.getLineContent(E.startLineNumber),q=I.q(we);q===-1&&(q=we.length),Se=S._createAddBlockCommentOperations(new B.a(E.startLineNumber,q+1,E.startLineNumber,we.length+1),oe,fe,this._insertSpace)}else Se=S._createAddBlockCommentOperations(new B.a(E.startLineNumber,p.getLineFirstNonWhitespaceColumn(E.startLineNumber),E.endLineNumber,p.getLineMaxColumn(E.endLineNumber)),oe,fe,this._insertSpace);Se.length===1&&(this._deltaColumn=oe.length+1)}this._selectionId=v.trackSelection(E);for(var X=0,ce=Se;X<ce.length;X++){var Ne=ce[X];v.addEditOperation(Ne.range,Ne.text)}}},g.prototype.getEditOperations=function(p,v){var E=this._selection;this._moveEndPositionDown=!1,E.startLineNumber<E.endLineNumber&&E.endColumn===1&&(this._moveEndPositionDown=!0,E=E.setEndPosition(E.endLineNumber-1,p.getLineMaxColumn(E.endLineNumber-1)));var k=g._gatherPreflightData(this._type,this._insertSpace,p,E.startLineNumber,E.endLineNumber);return k.supported?this._executeLineComments(p,v,k,E):this._executeBlockComment(p,v,E)},g.prototype.computeCursorState=function(p,v){var E=v.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(E=E.setEndPosition(E.endLineNumber+1,1)),new G.a(E.selectionStartLineNumber,E.selectionStartColumn+this._deltaColumn,E.positionLineNumber,E.positionColumn+this._deltaColumn)},g._createRemoveLineCommentsOperations=function(p,v){for(var E=[],k=0,z=p.length;k<z;k++){var oe=p[k];oe.ignore||E.push(F.a.delete(new B.a(v+k,oe.commentStrOffset+1,v+k,oe.commentStrOffset+oe.commentStrLength+1)))}return E},g.prototype._createAddLineCommentsOperations=function(p,v){for(var E=[],k=this._insertSpace?" ":"",z=0,oe=p.length;z<oe;z++){var fe=p[z];fe.ignore||E.push(F.a.insert(new V.a(v+z,fe.commentStrOffset+1),fe.commentStr+k))}return E},g.nextVisibleColumn=function(p,v,E,k){return E?p+(v-p%v):p+k},g._normalizeInsertionPoint=function(p,v,E,k){for(var z=1073741824,oe,fe,Se=0,we=v.length;Se<we;Se++)if(!v[Se].ignore){for(var q=p.getLineContent(E+Se),X=0,ce=0,Ne=v[Se].commentStrOffset;X<z&&ce<Ne;ce++)X=g.nextVisibleColumn(X,k,q.charCodeAt(ce)===9,1);X<z&&(z=X)}z=Math.floor(z/k)*k;for(var Se=0,we=v.length;Se<we;Se++)if(!v[Se].ignore){var q=p.getLineContent(E+Se),X=0;for(oe=0,fe=v[Se].commentStrOffset;X<z&&oe<fe;oe++)X=g.nextVisibleColumn(X,k,q.charCodeAt(oe)===9,1);X>z?v[Se].commentStrOffset=oe-1:v[Se].commentStrOffset=oe}},g}(),D=function(){var g=function(v,E){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,z){k.__proto__=z}||function(k,z){for(var oe in z)z.hasOwnProperty(oe)&&(k[oe]=z[oe])},g(v,E)};return function(p,v){g(p,v);function E(){this.constructor=p}p.prototype=v===null?Object.create(v):(E.prototype=v.prototype,new E)}}(),T=function(g){D(p,g);function p(v,E){var k=g.call(this,E)||this;return k._type=v,k}return p.prototype.run=function(v,E){if(!!E.hasModel()){for(var k=E.getModel(),z=[],oe=E.getSelections(),fe=k.getOptions(),Se=E.getOption(13),we=0,q=oe;we<q.length;we++){var X=q[we];z.push(new K(X,fe.tabSize,this._type,Se.insertSpace))}E.pushUndoStop(),E.executeCommands(this.id,z),E.pushUndoStop()}},p}(ne.b),te=function(g){D(p,g);function p(){return g.call(this,0,{id:"editor.action.commentLine",label:R.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:P.a.writable,kbOpts:{kbExpr:P.a.editorTextFocus,primary:2048|85,weight:100},menuOpts:{menuId:17,group:"5_insert",title:R.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}return p}(T),U=function(g){D(p,g);function p(){return g.call(this,1,{id:"editor.action.addCommentLine",label:R.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:P.a.writable,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(re.a)(2048|41,2048|33),weight:100}})||this}return p}(T),_=function(g){D(p,g);function p(){return g.call(this,2,{id:"editor.action.removeCommentLine",label:R.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:P.a.writable,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(re.a)(2048|41,2048|51),weight:100}})||this}return p}(T),h=function(g){D(p,g);function p(){return g.call(this,{id:"editor.action.blockComment",label:R.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:P.a.writable,kbOpts:{kbExpr:P.a.editorTextFocus,primary:1024|512|31,linux:{primary:2048|1024|31},weight:100},menuOpts:{menuId:17,group:"5_insert",title:R.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}return p.prototype.run=function(v,E){if(!!E.hasModel()){for(var k=E.getOption(13),z=[],oe=E.getSelections(),fe=0,Se=oe;fe<Se.length;fe++){var we=Se[fe];z.push(new S(we,k.insertSpace))}E.pushUndoStop(),E.executeCommands(this.id,z),E.pushUndoStop()}},p}(ne.b);Object(ne.f)(te),Object(ne.f)(U),Object(ne.f)(_),Object(ne.f)(h)},n18v:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return o.e(250).then(o.bind(null,"nNVF"))}})},nB0o:function(Et,A,o){"use strict";o.d(A,"a",function(){return Ao});var R=o("lrmC"),re=o("3/fG"),ne=o("EffR"),P=o("/cxE"),F=o("MI8n"),V=o("pmY6"),B=o("tYmi"),G=o("HdwC"),x=o("sswD"),S=o("Vxe3"),I=o("ZlPH"),K=o("MNsG"),D=o("pg8w"),T=o("D3Dy"),te=o("XSiN"),U=o("X+cX"),_=o("AKMP"),h=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),g=function(){function O(n,e){this.x=n,this.y=e}return O.prototype.toClientCoordinates=function(){return new p(this.x-ne.d.scrollX,this.y-ne.d.scrollY)},O}(),p=function(){function O(n,e){this.clientX=n,this.clientY=e}return O.prototype.toPageCoordinates=function(){return new g(this.clientX+ne.d.scrollX,this.clientY+ne.d.scrollY)},O}(),v=function(){function O(n,e,i,l){this.x=n,this.y=e,this.width=i,this.height=l}return O}();function E(O){var n=ne.B(O);return new v(n.left,n.top,n.width,n.height)}var k=function(O){h(n,O);function n(e,i){var l=O.call(this,e)||this;return l.pos=new g(l.posx,l.posy),l.editorPos=E(i),l}return n}(te.a),z=function(){function O(n){this._editorViewDomNode=n}return O.prototype._create=function(n){return new k(n,this._editorViewDomNode)},O.prototype.onContextMenu=function(n,e){var i=this;return ne.i(n,"contextmenu",function(l){e(i._create(l))})},O.prototype.onMouseUp=function(n,e){var i=this;return ne.i(n,"mouseup",function(l){e(i._create(l))})},O.prototype.onMouseDown=function(n,e){var i=this;return ne.i(n,"mousedown",function(l){e(i._create(l))})},O.prototype.onMouseLeave=function(n,e){var i=this;return ne.j(n,function(l){e(i._create(l))})},O.prototype.onMouseMoveThrottled=function(n,e,i,l){var c=this,N=function(ue,ze){return i(ue,c._create(ze))};return ne.l(n,"mousemove",e,N,l)},O}(),oe=function(){function O(n){this._editorViewDomNode=n}return O.prototype._create=function(n){return new k(n,this._editorViewDomNode)},O.prototype.onPointerUp=function(n,e){var i=this;return ne.i(n,"pointerup",function(l){e(i._create(l))})},O.prototype.onPointerDown=function(n,e){var i=this;return ne.i(n,"pointerdown",function(l){e(i._create(l))})},O.prototype.onPointerLeave=function(n,e){var i=this;return ne.k(n,function(l){e(i._create(l))})},O.prototype.onPointerMoveThrottled=function(n,e,i,l){var c=this,N=function(ue,ze){return i(ue,c._create(ze))};return ne.l(n,"pointermove",e,N,l)},O}(),fe=function(O){h(n,O);function n(e){var i=O.call(this)||this;return i._editorViewDomNode=e,i._globalMouseMoveMonitor=i._register(new _.a),i._keydownListener=null,i}return n.prototype.startMonitoring=function(e,i,l,c,N){var pe=this;this._keydownListener=ne.n(document,"keydown",function(ze){var st=ze.toKeybinding();st.isModifierKey()||pe._globalMouseMoveMonitor.stopMonitoring(!0)},!0);var ue=function(st,ft){return l(st,new k(ft,pe._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(e,i,ue,c,function(){pe._keydownListener.dispose(),N()})},n}(V.a),Se=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),we=function(O){Se(n,O);function n(){var e=O.call(this)||this;return e._shouldRender=!0,e}return n.prototype.shouldRender=function(){return this._shouldRender},n.prototype.forceShouldRender=function(){this._shouldRender=!0},n.prototype.setShouldRender=function(){this._shouldRender=!0},n.prototype.onDidRender=function(){this._shouldRender=!1},n.prototype.onConfigurationChanged=function(e){return!1},n.prototype.onContentSizeChanged=function(e){return!1},n.prototype.onCursorStateChanged=function(e){return!1},n.prototype.onDecorationsChanged=function(e){return!1},n.prototype.onFlushed=function(e){return!1},n.prototype.onFocusChanged=function(e){return!1},n.prototype.onLanguageConfigurationChanged=function(e){return!1},n.prototype.onLineMappingChanged=function(e){return!1},n.prototype.onLinesChanged=function(e){return!1},n.prototype.onLinesDeleted=function(e){return!1},n.prototype.onLinesInserted=function(e){return!1},n.prototype.onRevealRangeRequest=function(e){return!1},n.prototype.onScrollChanged=function(e){return!1},n.prototype.onThemeChanged=function(e){return!1},n.prototype.onTokensChanged=function(e){return!1},n.prototype.onTokensColorsChanged=function(e){return!1},n.prototype.onZonesChanged=function(e){return!1},n.prototype.handleEvents=function(e){for(var i=!1,l=0,c=e.length;l<c;l++){var N=e[l];switch(N.type){case 1:this.onConfigurationChanged(N)&&(i=!0);break;case 2:this.onContentSizeChanged(N)&&(i=!0);break;case 3:this.onCursorStateChanged(N)&&(i=!0);break;case 4:this.onDecorationsChanged(N)&&(i=!0);break;case 5:this.onFlushed(N)&&(i=!0);break;case 6:this.onFocusChanged(N)&&(i=!0);break;case 7:this.onLanguageConfigurationChanged(N)&&(i=!0);break;case 8:this.onLineMappingChanged(N)&&(i=!0);break;case 9:this.onLinesChanged(N)&&(i=!0);break;case 10:this.onLinesDeleted(N)&&(i=!0);break;case 11:this.onLinesInserted(N)&&(i=!0);break;case 12:this.onRevealRangeRequest(N)&&(i=!0);break;case 13:this.onScrollChanged(N)&&(i=!0);break;case 15:this.onTokensChanged(N)&&(i=!0);break;case 14:this.onThemeChanged(N)&&(i=!0);break;case 16:this.onTokensColorsChanged(N)&&(i=!0);break;case 17:this.onZonesChanged(N)&&(i=!0);break;default:console.info("View received unknown event: "),console.info(N)}}i&&(this._shouldRender=!0)},n}(V.a),q=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),X=function(O){q(n,O);function n(e){var i=O.call(this)||this;return i._context=e,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),O.prototype.dispose.call(this)},n}(we),ce=function(){function O(){}return O.write=function(n,e){n instanceof I.a,n.setAttribute("data-mprt",String(e))},O.read=function(n){var e=n.getAttribute("data-mprt");return e===null?0:parseInt(e,10)},O.collect=function(n,e){for(var i=[],l=0;n&&n!==document.body&&n!==e;)n.nodeType===n.ELEMENT_NODE&&(i[l++]=this.read(n)),n=n.parentElement;for(var c=new Uint8Array(l),N=0;N<l;N++)c[N]=i[l-N-1];return c},O}(),Ne=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),He=function(){function O(n,e){this._viewLayout=n,this.viewportData=e,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 O.prototype.getScrolledTopFromAbsoluteTop=function(n){return n-this.scrollTop},O.prototype.getVerticalOffsetForLineNumber=function(n){return this._viewLayout.getVerticalOffsetForLineNumber(n)},O.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},O}(),_e=function(O){Ne(n,O);function n(e,i,l){var c=O.call(this,e,i)||this;return c._viewLines=l,c}return n.prototype.linesVisibleRangesForRange=function(e,i){return this._viewLines.linesVisibleRangesForRange(e,i)},n.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)},n}(He),de=function(){function O(n,e,i){this.outsideRenderedLine=n,this.lineNumber=e,this.ranges=i}return O}(),se=function(){function O(n,e){this.left=Math.round(n),this.width=Math.round(e)}return O.prototype.toString=function(){return"["+this.left+","+this.width+"]"},O}(),he=function(){function O(n,e){this.outsideRenderedLine=n,this.left=Math.round(e)}return O}(),ie=function(){function O(n,e){this.outsideRenderedLine=n,this.ranges=e}return O}(),$=function(){function O(n,e){this.left=n,this.width=e}return O.prototype.toString=function(){return"["+this.left+","+this.width+"]"},O.compare=function(n,e){return n.left-e.left},O}(),ve=function(){function O(){}return O._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},O._detachRange=function(n,e){n.selectNodeContents(e)},O._readClientRects=function(n,e,i,l,c){var N=this._createRange();try{return N.setStart(n,e),N.setEnd(i,l),N.getClientRects()}catch(pe){return null}finally{this._detachRange(N,c)}},O._mergeAdjacentRanges=function(n){if(n.length===1)return[new se(n[0].left,n[0].width)];n.sort($.compare);for(var e=[],i=0,l=n[0].left,c=n[0].width,N=1,pe=n.length;N<pe;N++){var ue=n[N],ze=ue.left,st=ue.width;l+c+.9>=ze?c=Math.max(c,ze+st-l):(e[i++]=new se(l,c),l=ze,c=st)}return e[i++]=new se(l,c),e},O._createHorizontalRangesFromClientRects=function(n,e){if(!n||n.length===0)return null;for(var i=[],l=0,c=n.length;l<c;l++){var N=n[l];i[l]=new $(Math.max(0,N.left-e),N.width)}return this._mergeAdjacentRanges(i)},O.readHorizontalRanges=function(n,e,i,l,c,N,pe){var ue=0,ze=n.children.length-1;if(ue>ze)return null;e=Math.min(ze,Math.max(ue,e)),l=Math.min(ze,Math.max(ue,l)),e!==l&&l>0&&c===0&&(l--,c=1073741824);var st=n.children[e].firstChild,ft=n.children[l].firstChild;if((!st||!ft)&&(!st&&i===0&&e>0&&(st=n.children[e-1].firstChild,i=1073741824),!ft&&c===0&&l>0&&(ft=n.children[l-1].firstChild,c=1073741824)),!st||!ft)return null;i=Math.min(st.textContent.length,Math.max(0,i)),c=Math.min(ft.textContent.length,Math.max(0,c));var y=this._readClientRects(st,i,ft,c,pe);return this._createHorizontalRangesFromClientRects(y,N)},O}(),ye=o("dBaI"),Ue=o("baJR"),tt=o("t9D7"),_t=o("/UlZ"),At=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Yt=function(){return K.f?!0:!(K.d||T.h||T.k)}(),Ke=T.f,Ye=function(){function O(n,e){this._domNode=n,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=e}return Object.defineProperty(O.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),O}(),Xe=function(){function O(n,e){this.themeType=e;var i=n.options,l=i.get(34);this.renderWhitespace=i.get(74),this.renderControlCharacters=i.get(69),this.spaceWidth=l.spaceWidth,this.middotWidth=l.middotWidth,this.useMonospaceOptimizations=l.isMonospace&&!i.get(23),this.canUseHalfwidthRightwardsArrow=l.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(49),this.stopRenderingLineAfter=i.get(88),this.fontLigatures=i.get(35)}return O.prototype.equals=function(n){return this.themeType===n.themeType&&this.renderWhitespace===n.renderWhitespace&&this.renderControlCharacters===n.renderControlCharacters&&this.spaceWidth===n.spaceWidth&&this.middotWidth===n.middotWidth&&this.useMonospaceOptimizations===n.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===n.canUseHalfwidthRightwardsArrow&&this.lineHeight===n.lineHeight&&this.stopRenderingLineAfter===n.stopRenderingLineAfter&&this.fontLigatures===n.fontLigatures},O}(),Ze=function(){function O(n){this._options=n,this._isMaybeInvalid=!0,this._renderedViewLine=null}return O.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},O.prototype.setDomNode=function(n){if(this._renderedViewLine)this._renderedViewLine.domNode=Object(I.b)(n);else throw new Error("I have no rendered view line to set the dom node to...")},O.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},O.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},O.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},O.prototype.onOptionsChanged=function(n){this._isMaybeInvalid=!0,this._options=n},O.prototype.onSelectionChanged=function(){return Ke||this._options.themeType===tt.b||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1},O.prototype.renderLine=function(n,e,i,l){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var c=i.getViewLineRenderingData(n),N=this._options,pe=ye.a.filter(c.inlineDecorations,n,c.minColumn,c.maxColumn),ue=null;if(Ke||N.themeType===tt.b||this._options.renderWhitespace==="selection")for(var ze=i.selections,st=0,ft=ze;st<ft.length;st++){var y=ft[st];if(!(y.endLineNumber<n||y.startLineNumber>n)){var d=y.startLineNumber===n?y.startColumn:c.minColumn,u=y.endLineNumber===n?y.endColumn:c.maxColumn;d<u&&(this._options.renderWhitespace!=="selection"?pe.push(new ye.a(d,u,"inline-selected-text",0)):(ue||(ue=[]),ue.push(new Ue.b(d-1,u-1))))}}var C=new Ue.c(N.useMonospaceOptimizations,N.canUseHalfwidthRightwardsArrow,c.content,c.continuesWithWrappedLine,c.isBasicASCII,c.containsRTL,c.minColumn-1,c.tokens,pe,c.tabSize,c.startVisibleColumn,N.spaceWidth,N.middotWidth,N.stopRenderingLineAfter,N.renderWhitespace,N.renderControlCharacters,N.fontLigatures!==_t.d.OFF,ue);if(this._renderedViewLine&&this._renderedViewLine.input.equals(C))return!1;l.appendASCIIString('<div style="top:'),l.appendASCIIString(String(e)),l.appendASCIIString("px;height:"),l.appendASCIIString(String(this._options.lineHeight)),l.appendASCIIString('px;" class="'),l.appendASCIIString(O.CLASS_NAME),l.appendASCIIString('">');var w=Object(Ue.d)(C,l);l.appendASCIIString("</div>");var b=null;return Yt&&c.isBasicASCII&&N.useMonospaceOptimizations&&w.containsForeignElements===0&&c.content.length<300&&C.lineTokens.getCount()<100&&(b=new We(this._renderedViewLine?this._renderedViewLine.domNode:null,C,w.characterMapping)),b||(b=W(this._renderedViewLine?this._renderedViewLine.domNode:null,C,w.characterMapping,w.containsRTL,w.containsForeignElements)),this._renderedViewLine=b,!0},O.prototype.layoutLine=function(n,e){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(e),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},O.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},O.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},O.prototype.getVisibleRangesForRange=function(n,e,i){if(!this._renderedViewLine)return null;n=n|0,e=e|0,n=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,n)),e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e));var l=this._renderedViewLine.input.stopRenderingLineAfter|0,c=!1;l!==-1&&n>l+1&&e>l+1&&(c=!0),l!==-1&&n>l+1&&(n=l+1),l!==-1&&e>l+1&&(e=l+1);var N=this._renderedViewLine.getVisibleRangesForRange(n,e,i);return N&&N.length>0?new ie(c,N):null},O.prototype.getColumnOfNodeOffset=function(n,e,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(n,e,i):1},O.CLASS_NAME="view-line",O}(),We=function(){function O(n,e,i){this.domNode=n,this.input=e,this._characterMapping=i,this._charWidth=e.spaceWidth}return O.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},O.prototype.getWidthIsFast=function(){return!0},O.prototype.getVisibleRangesForRange=function(n,e,i){var l=this._getCharPosition(n),c=this._getCharPosition(e);return[new se(l,c-l)]},O.prototype._getCharPosition=function(n){var e=this._characterMapping.getAbsoluteOffsets();return e.length===0?0:Math.round(this._charWidth*e[n-1])},O.prototype.getColumnOfNodeOffset=function(n,e,i){for(var l=e.textContent.length,c=-1;e;)e=e.previousSibling,c++;var N=this._characterMapping.partDataToCharOffset(c,l,i);return N+1},O}(),Qe=function(){function O(n,e,i,l,c){if(this.domNode=n,this.input=e,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(e.lineContent),this._containsForeignElements=c,this._cachedWidth=-1,this._pixelOffsetCache=null,!l||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var N=0,pe=this._characterMapping.length;N<=pe;N++)this._pixelOffsetCache[N]=-1}}return O.prototype._getReadingTarget=function(n){return n.domNode.firstChild},O.prototype.getWidth=function(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},O.prototype.getWidthIsFast=function(){return this._cachedWidth!==-1},O.prototype.getVisibleRangesForRange=function(n,e,i){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){var l=this._readPixelOffset(this.domNode,n,i);if(l===-1)return null;var c=this._readPixelOffset(this.domNode,e,i);return c===-1?null:[new se(l,c-l)]}return this._readVisibleRangesForRange(this.domNode,n,e,i)},O.prototype._readVisibleRangesForRange=function(n,e,i,l){if(e===i){var c=this._readPixelOffset(n,e,l);return c===-1?null:[new se(c,0)]}else return this._readRawVisibleRangesForRange(n,e,i,l)},O.prototype._readPixelOffset=function(n,e,i){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();var l=this._getReadingTarget(n);return l.firstChild?l.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){var c=this._pixelOffsetCache[e];if(c!==-1)return c;var N=this._actualReadPixelOffset(n,e,i);return this._pixelOffsetCache[e]=N,N}return this._actualReadPixelOffset(n,e,i)},O.prototype._actualReadPixelOffset=function(n,e,i){if(this._characterMapping.length===0){var l=ve.readHorizontalRanges(this._getReadingTarget(n),0,0,0,0,i.clientRectDeltaLeft,i.endNode);return!l||l.length===0?-1:l[0].left}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var c=this._characterMapping.charOffsetToPartData(e-1),N=Ue.a.getPartIndex(c),pe=Ue.a.getCharIndex(c),ue=ve.readHorizontalRanges(this._getReadingTarget(n),N,pe,N,pe,i.clientRectDeltaLeft,i.endNode);return!ue||ue.length===0?-1:ue[0].left},O.prototype._readRawVisibleRangesForRange=function(n,e,i,l){if(e===1&&i===this._characterMapping.length)return[new se(0,this.getWidth())];var c=this._characterMapping.charOffsetToPartData(e-1),N=Ue.a.getPartIndex(c),pe=Ue.a.getCharIndex(c),ue=this._characterMapping.charOffsetToPartData(i-1),ze=Ue.a.getPartIndex(ue),st=Ue.a.getCharIndex(ue);return ve.readHorizontalRanges(this._getReadingTarget(n),N,pe,ze,st,l.clientRectDeltaLeft,l.endNode)},O.prototype.getColumnOfNodeOffset=function(n,e,i){for(var l=e.textContent.length,c=-1;e;)e=e.previousSibling,c++;var N=this._characterMapping.partDataToCharOffset(c,l,i);return N+1},O}(),Ee=function(O){At(n,O);function n(){return O!==null&&O.apply(this,arguments)||this}return n.prototype._readVisibleRangesForRange=function(e,i,l,c){var N=O.prototype._readVisibleRangesForRange.call(this,e,i,l,c);if(!N||N.length===0||i===l||i===1&&l===this._characterMapping.length)return N;if(!this.input.containsRTL){var pe=this._readPixelOffset(e,l,c);if(pe!==-1){var ue=N[N.length-1];ue.left<pe&&(ue.width=pe-ue.left)}}return N},n}(Qe),W=function(){return T.m?ee:Ae}();function ee(O,n,e,i,l){return new Ee(O,n,e,i,l)}function Ae(O,n,e,i,l){return new Qe(O,n,e,i,l)}var me=o("cGHE"),Me=o("aokT"),Re=o("Ll0s"),ge=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),nt=function(){function O(n,e){this.lastViewCursorsRenderData=n,this.lastTextareaPosition=e}return O}(),St=function(){function O(n,e,i,l,c,N){i===void 0&&(i=0),l===void 0&&(l=null),c===void 0&&(c=null),N===void 0&&(N=null),this.element=n,this.type=e,this.mouseColumn=i,this.position=l,!c&&l&&(c=new Me.a(l.lineNumber,l.column,l.lineNumber,l.column)),this.range=c,this.detail=N}return O._typeToString=function(n){return n===1?"TEXTAREA":n===2?"GUTTER_GLYPH_MARGIN":n===3?"GUTTER_LINE_NUMBERS":n===4?"GUTTER_LINE_DECORATIONS":n===5?"GUTTER_VIEW_ZONE":n===6?"CONTENT_TEXT":n===7?"CONTENT_EMPTY":n===8?"CONTENT_VIEW_ZONE":n===9?"CONTENT_WIDGET":n===10?"OVERVIEW_RULER":n===11?"SCROLLBAR":n===12?"OVERLAY_WIDGET":"UNKNOWN"},O.toString=function(n){return this._typeToString(n.type)+": "+n.position+" - "+n.range+" - "+n.detail},O.prototype.toString=function(){return O.toString(this)},O}(),xt=function(){function O(){}return O.isTextArea=function(n){return n.length===2&&n[0]===3&&n[1]===6},O.isChildOfViewLines=function(n){return n.length>=4&&n[0]===3&&n[3]===7},O.isStrictChildOfViewLines=function(n){return n.length>4&&n[0]===3&&n[3]===7},O.isChildOfScrollableElement=function(n){return n.length>=2&&n[0]===3&&n[1]===5},O.isChildOfMinimap=function(n){return n.length>=2&&n[0]===3&&n[1]===8},O.isChildOfContentWidgets=function(n){return n.length>=4&&n[0]===3&&n[3]===1},O.isChildOfOverflowingContentWidgets=function(n){return n.length>=1&&n[0]===2},O.isChildOfOverlayWidgets=function(n){return n.length>=2&&n[0]===3&&n[1]===4},O}(),Mt=function(){function O(n,e,i){this.model=n.model;var l=n.configuration.options;this.layoutInfo=l.get(107),this.viewDomNode=e.viewDomNode,this.lineHeight=l.get(49),this.typicalHalfwidthCharacterWidth=l.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=n,this._viewHelper=e}return O.prototype.getZoneAtCoord=function(n){return O.getZoneAtCoord(this._context,n)},O.getZoneAtCoord=function(n,e){var i=n.viewLayout.getWhitespaceAtVerticalOffset(e);if(i){var l=i.verticalOffset+i.height/2,c=n.model.getLineCount(),N=null,pe=void 0,ue=null;return i.afterLineNumber!==c&&(ue=new me.a(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(N=new me.a(i.afterLineNumber,n.model.getLineMaxColumn(i.afterLineNumber))),ue===null?pe=N:N===null?pe=ue:e<l?pe=N:pe=ue,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:N,positionAfter:ue,position:pe}}return null},O.prototype.getFullLineRangeAtCoord=function(n){if(this._context.viewLayout.isAfterLines(n)){var e=this._context.model.getLineCount(),i=this._context.model.getLineMaxColumn(e);return{range:new Me.a(e,i,e,i),isAfterLines:!0}}var l=this._context.viewLayout.getLineNumberAtVerticalOffset(n),c=this._context.model.getLineMaxColumn(l);return{range:new Me.a(l,1,l,c),isAfterLines:!1}},O.prototype.getLineNumberAtVerticalOffset=function(n){return this._context.viewLayout.getLineNumberAtVerticalOffset(n)},O.prototype.isAfterLines=function(n){return this._context.viewLayout.isAfterLines(n)},O.prototype.getVerticalOffsetForLineNumber=function(n){return this._context.viewLayout.getVerticalOffsetForLineNumber(n)},O.prototype.findAttribute=function(n,e){return O._findAttribute(n,e,this._viewHelper.viewDomNode)},O._findAttribute=function(n,e,i){for(;n&&n!==document.body;){if(n.hasAttribute&&n.hasAttribute(e))return n.getAttribute(e);if(n===i)return null;n=n.parentNode}return null},O.prototype.getLineWidth=function(n){return this._viewHelper.getLineWidth(n)},O.prototype.visibleRangeForPosition=function(n,e){return this._viewHelper.visibleRangeForPosition(n,e)},O.prototype.getPositionFromDOMInfo=function(n,e){return this._viewHelper.getPositionFromDOMInfo(n,e)},O.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},O.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},O}(),zt=function(){function O(n,e,i){this.editorPos=e,this.pos=i,this.mouseVerticalOffset=Math.max(0,n.getCurrentScrollTop()+i.y-e.y),this.mouseContentHorizontalOffset=n.getCurrentScrollLeft()+i.x-e.x-n.layoutInfo.contentLeft,this.isInMarginArea=i.x-e.x<n.layoutInfo.contentLeft&&i.x-e.x>=n.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,yn._getMouseColumn(this.mouseContentHorizontalOffset,n.typicalHalfwidthCharacterWidth))}return O}(),Gt=function(O){ge(n,O);function n(e,i,l,c){var N=O.call(this,e,i,l)||this;return N._ctx=e,c?(N.target=c,N.targetPath=ce.collect(c,e.viewDomNode)):(N.target=null,N.targetPath=new Uint8Array(0)),N}return n.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+`
target: `+(this.target?this.target.outerHTML:null)},n.prototype.fulfill=function(e,i,l,c){i===void 0&&(i=null),l===void 0&&(l=null),c===void 0&&(c=null);var N=this.mouseColumn;return i&&i.column<this._ctx.model.getLineMaxColumn(i.lineNumber)&&(N=Re.a.visibleColumnFromColumn(this._ctx.model.getLineContent(i.lineNumber),i.column,this._ctx.model.getOptions().tabSize)+1),new St(this.target,e,N,i,l,c)},n.prototype.withTarget=function(e){return new n(this._ctx,this.editorPos,this.pos,e)},n}(zt),on={isAfterLines:!0};function On(O){return{isAfterLines:!1,horizontalDistanceToText:O}}var yn=function(){function O(n,e){this._context=n,this._viewHelper=e}return O.prototype.mouseTargetIsWidget=function(n){var e=n.target,i=ce.collect(e,this._viewHelper.viewDomNode);return!!(xt.isChildOfContentWidgets(i)||xt.isChildOfOverflowingContentWidgets(i)||xt.isChildOfOverlayWidgets(i))},O.prototype.createMouseTarget=function(n,e,i,l){var c=new Mt(this._context,this._viewHelper,n),N=new Gt(c,e,i,l);try{var pe=O._createMouseTarget(c,N,!1);return pe}catch(ue){return N.fulfill(0)}},O._createMouseTarget=function(n,e,i){if(e.target===null){if(i)return e.fulfill(0);var l=O._doHitTest(n,e);return l.position?O.createMouseTargetFromHitTestPosition(n,e,l.position.lineNumber,l.position.column):this._createMouseTarget(n,e.withTarget(l.hitTarget),!0)}var c=e,N=null;return N=N||O._hitTestContentWidget(n,c),N=N||O._hitTestOverlayWidget(n,c),N=N||O._hitTestMinimap(n,c),N=N||O._hitTestScrollbarSlider(n,c),N=N||O._hitTestViewZone(n,c),N=N||O._hitTestMargin(n,c),N=N||O._hitTestViewCursor(n,c),N=N||O._hitTestTextArea(n,c),N=N||O._hitTestViewLines(n,c,i),N=N||O._hitTestScrollbar(n,c),N||e.fulfill(0)},O._hitTestContentWidget=function(n,e){if(xt.isChildOfContentWidgets(e.targetPath)||xt.isChildOfOverflowingContentWidgets(e.targetPath)){var i=n.findAttribute(e.target,"widgetId");return i?e.fulfill(9,null,null,i):e.fulfill(0)}return null},O._hitTestOverlayWidget=function(n,e){if(xt.isChildOfOverlayWidgets(e.targetPath)){var i=n.findAttribute(e.target,"widgetId");return i?e.fulfill(12,null,null,i):e.fulfill(0)}return null},O._hitTestViewCursor=function(n,e){if(e.target)for(var i=n.lastRenderData.lastViewCursorsRenderData,l=0,c=i;l<c.length;l++){var N=c[l];if(e.target===N.domNode)return e.fulfill(6,N.position)}if(e.isInContentArea)for(var i=n.lastRenderData.lastViewCursorsRenderData,pe=e.mouseContentHorizontalOffset,ue=e.mouseVerticalOffset,ze=0,st=i;ze<st.length;ze++){var N=st[ze];if(!(pe<N.contentLeft)&&!(pe>N.contentLeft+N.width)){var ft=n.getVerticalOffsetForLineNumber(N.position.lineNumber);if(ft<=ue&&ue<=ft+N.height)return e.fulfill(6,N.position)}}return null},O._hitTestViewZone=function(n,e){var i=n.getZoneAtCoord(e.mouseVerticalOffset);if(i){var l=e.isInContentArea?8:5;return e.fulfill(l,i.position,null,i)}return null},O._hitTestTextArea=function(n,e){return xt.isTextArea(e.targetPath)?n.lastRenderData.lastTextareaPosition?e.fulfill(6,n.lastRenderData.lastTextareaPosition):e.fulfill(1,n.lastRenderData.lastTextareaPosition):null},O._hitTestMargin=function(n,e){if(e.isInMarginArea){var i=n.getFullLineRangeAtCoord(e.mouseVerticalOffset),l=i.range.getStartPosition(),c=Math.abs(e.pos.x-e.editorPos.x),N={isAfterLines:i.isAfterLines,glyphMarginLeft:n.layoutInfo.glyphMarginLeft,glyphMarginWidth:n.layoutInfo.glyphMarginWidth,lineNumbersWidth:n.layoutInfo.lineNumbersWidth,offsetX:c};return c-=n.layoutInfo.glyphMarginLeft,c<=n.layoutInfo.glyphMarginWidth?e.fulfill(2,l,i.range,N):(c-=n.layoutInfo.glyphMarginWidth,c<=n.layoutInfo.lineNumbersWidth?e.fulfill(3,l,i.range,N):(c-=n.layoutInfo.lineNumbersWidth,e.fulfill(4,l,i.range,N)))}return null},O._hitTestViewLines=function(n,e,i){if(!xt.isChildOfViewLines(e.targetPath))return null;if(n.isAfterLines(e.mouseVerticalOffset)){var l=n.model.getLineCount(),c=n.model.getLineMaxColumn(l);return e.fulfill(7,new me.a(l,c),void 0,on)}if(i){if(xt.isStrictChildOfViewLines(e.targetPath)){var N=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset);if(n.model.getLineLength(N)===0){var pe=n.getLineWidth(N),ue=On(e.mouseContentHorizontalOffset-pe);return e.fulfill(7,new me.a(N,1),void 0,ue)}var ze=n.getLineWidth(N);if(e.mouseContentHorizontalOffset>=ze){var ue=On(e.mouseContentHorizontalOffset-ze),st=new me.a(N,n.model.getLineMaxColumn(N));return e.fulfill(7,st,void 0,ue)}}return e.fulfill(0)}var ft=O._doHitTest(n,e);return ft.position?O.createMouseTargetFromHitTestPosition(n,e,ft.position.lineNumber,ft.position.column):this._createMouseTarget(n,e.withTarget(ft.hitTarget),!0)},O._hitTestMinimap=function(n,e){if(xt.isChildOfMinimap(e.targetPath)){var i=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),l=n.model.getLineMaxColumn(i);return e.fulfill(11,new me.a(i,l))}return null},O._hitTestScrollbarSlider=function(n,e){if(xt.isChildOfScrollableElement(e.targetPath)&&e.target&&e.target.nodeType===1){var i=e.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){var l=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),c=n.model.getLineMaxColumn(l);return e.fulfill(11,new me.a(l,c))}}return null},O._hitTestScrollbar=function(n,e){if(xt.isChildOfScrollableElement(e.targetPath)){var i=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),l=n.model.getLineMaxColumn(i);return e.fulfill(11,new me.a(i,l))}return null},O.prototype.getMouseColumn=function(n,e){var i=this._context.configuration.options,l=i.get(107),c=this._context.viewLayout.getCurrentScrollLeft()+e.x-n.x-l.contentLeft;return O._getMouseColumn(c,i.get(34).typicalHalfwidthCharacterWidth)},O._getMouseColumn=function(n,e){if(n<0)return 1;var i=Math.round(n/e);return i+1},O.createMouseTargetFromHitTestPosition=function(n,e,i,l){var c=new me.a(i,l),N=n.getLineWidth(i);if(e.mouseContentHorizontalOffset>N){if(T.e&&c.column===1){var pe=On(e.mouseContentHorizontalOffset-N);return e.fulfill(7,new me.a(i,n.model.getLineMaxColumn(i)),void 0,pe)}var ue=On(e.mouseContentHorizontalOffset-N);return e.fulfill(7,c,void 0,ue)}var ze=n.visibleRangeForPosition(i,l);if(!ze)return e.fulfill(0,c);var st=ze.left;if(e.mouseContentHorizontalOffset===st)return e.fulfill(6,c);var ft=[];if(ft.push({offset:ze.left,column:l}),l>1){var y=n.visibleRangeForPosition(i,l-1);y&&ft.push({offset:y.left,column:l-1})}var d=n.model.getLineMaxColumn(i);if(l<d){var u=n.visibleRangeForPosition(i,l+1);u&&ft.push({offset:u.left,column:l+1})}ft.sort(function(ke,rt){return ke.offset-rt.offset});for(var C=1;C<ft.length;C++){var w=ft[C-1],b=ft[C];if(w.offset<=e.mouseContentHorizontalOffset&&e.mouseContentHorizontalOffset<=b.offset){var Q=new Me.a(i,w.column,i,b.column);return e.fulfill(6,c,Q)}}return e.fulfill(6,c)},O._doHitTestWithCaretRangeFromPoint=function(n,e){var i=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),l=n.getVerticalOffsetForLineNumber(i),c=l+Math.floor(n.lineHeight/2),N=e.pos.y+(c-e.mouseVerticalOffset);N<=e.editorPos.y&&(N=e.editorPos.y+1),N>=e.editorPos.y+n.layoutInfo.height&&(N=e.editorPos.y+n.layoutInfo.height-1);var pe=new g(e.pos.x,N),ue=this._actualDoHitTestWithCaretRangeFromPoint(n,pe.toClientCoordinates());return ue.position?ue:this._actualDoHitTestWithCaretRangeFromPoint(n,e.pos.toClientCoordinates())},O._actualDoHitTestWithCaretRangeFromPoint=function(n,e){var i=ne.D(n.viewDomNode),l;if(i?typeof i.caretRangeFromPoint=="undefined"?l=Mn(i,e.clientX,e.clientY):l=i.caretRangeFromPoint(e.clientX,e.clientY):l=document.caretRangeFromPoint(e.clientX,e.clientY),!l||!l.startContainer)return{position:null,hitTarget:null};var c=l.startContainer,N=null;if(c.nodeType===c.TEXT_NODE){var pe=c.parentNode,ue=pe?pe.parentNode:null,ze=ue?ue.parentNode:null,st=ze&&ze.nodeType===ze.ELEMENT_NODE?ze.className:null;if(st===Ze.CLASS_NAME){var ft=n.getPositionFromDOMInfo(pe,l.startOffset);return{position:ft,hitTarget:null}}else N=c.parentNode}else if(c.nodeType===c.ELEMENT_NODE){var pe=c.parentNode,ue=pe?pe.parentNode:null,y=ue&&ue.nodeType===ue.ELEMENT_NODE?ue.className:null;if(y===Ze.CLASS_NAME){var ft=n.getPositionFromDOMInfo(c,c.textContent.length);return{position:ft,hitTarget:null}}else N=c}return{position:null,hitTarget:N}},O._doHitTestWithCaretPositionFromPoint=function(n,e){var i=document.caretPositionFromPoint(e.clientX,e.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){var l=i.offsetNode.parentNode,c=l?l.parentNode:null,N=c?c.parentNode:null,pe=N&&N.nodeType===N.ELEMENT_NODE?N.className:null;if(pe===Ze.CLASS_NAME){var ue=n.getPositionFromDOMInfo(i.offsetNode.parentNode,i.offset);return{position:ue,hitTarget:null}}else return{position:null,hitTarget:i.offsetNode.parentNode}}return{position:null,hitTarget:i.offsetNode}},O._doHitTestWithMoveToPoint=function(n,e){var i=null,l=null,c=document.body.createTextRange();try{c.moveToPoint(e.clientX,e.clientY)}catch(ft){return{position:null,hitTarget:null}}c.collapse(!0);var N=c?c.parentElement():null,pe=N?N.parentNode:null,ue=pe?pe.parentNode:null,ze=ue&&ue.nodeType===ue.ELEMENT_NODE?ue.className:"";if(ze===Ze.CLASS_NAME){var st=c.duplicate();st.moveToElementText(N),st.setEndPoint("EndToStart",c),i=n.getPositionFromDOMInfo(N,st.text.length),st.moveToElementText(n.viewDomNode)}else l=N;return c.moveToElementText(n.viewDomNode),{position:i,hitTarget:l}},O._doHitTest=function(n,e){return typeof document.caretRangeFromPoint=="function"?this._doHitTestWithCaretRangeFromPoint(n,e):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(n,e.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(n,e.pos.toClientCoordinates()):{position:null,hitTarget:null}},O}();function Mn(O,n,e){var i=document.createRange(),l=O.elementFromPoint(n,e);if(l!==null){for(;l&&l.firstChild&&l.firstChild.nodeType!==l.firstChild.TEXT_NODE;)l=l.lastChild;var c=l.getBoundingClientRect(),N=window.getComputedStyle(l,null).getPropertyValue("font"),pe=l.innerText,ue=c.left,ze=0,st=void 0;if(n>c.left+c.width)ze=pe.length;else for(var ft=Ft.getInstance(),y=0;y<pe.length+1;y++){if(st=ft.getCharWidth(pe.charAt(y),N)/2,ue+=st,n<ue){ze=y;break}ue+=st}i.setStart(l.firstChild,ze),i.setEnd(l.firstChild,ze)}return i}var Ft=function(){function O(){this._cache={},this._canvas=document.createElement("canvas")}return O.getInstance=function(){return O._INSTANCE||(O._INSTANCE=new O),O._INSTANCE},O.prototype.getCharWidth=function(n,e){var i=n+e;if(this._cache[i])return this._cache[i];var l=this._canvas.getContext("2d");l.font=e;var c=l.measureText(n),N=c.width;return this._cache[i]=N,N},O._INSTANCE=null,O}(),gt=o("Yr1X"),pt=o("gCVg"),Dt=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function Ot(O){return function(n,e){var i=!1;return O&&(i=O.mouseTargetIsWidget(e)),i||e.preventDefault(),e}}var Ht=function(O){Dt(n,O);function n(e,i,l){var c=O.call(this)||this;c._isFocused=!1,c._context=e,c.viewController=i,c.viewHelper=l,c.mouseTargetFactory=new yn(c._context,l),c._mouseDownOperation=c._register(new Jt(c._context,c.viewController,c.viewHelper,function(ue,ze){return c._createMouseTarget(ue,ze)},function(ue){return c._getMouseColumn(ue)})),c._asyncFocus=c._register(new U.d(function(){return c.viewHelper.focusTextArea()},0)),c.lastMouseLeaveTime=-1;var N=new z(c.viewHelper.viewDomNode);c._register(N.onContextMenu(c.viewHelper.viewDomNode,function(ue){return c._onContextMenu(ue,!0)})),c._register(N.onMouseMoveThrottled(c.viewHelper.viewDomNode,function(ue){return c._onMouseMove(ue)},Ot(c.mouseTargetFactory),n.MOUSE_MOVE_MINIMUM_TIME)),c._register(N.onMouseUp(c.viewHelper.viewDomNode,function(ue){return c._onMouseUp(ue)})),c._register(N.onMouseLeave(c.viewHelper.viewDomNode,function(ue){return c._onMouseLeave(ue)})),c._register(N.onMouseDown(c.viewHelper.viewDomNode,function(ue){return c._onMouseDown(ue)}));var pe=function(ze){if(c.viewController.emitMouseWheel(ze),!!c._context.configuration.options.get(57)){var st=new te.b(ze);if(st.browserEvent.ctrlKey||st.browserEvent.metaKey){var ft=gt.a.getZoomLevel(),y=st.deltaY>0?1:-1;gt.a.setZoomLevel(ft+y),st.preventDefault(),st.stopPropagation()}}};return c._register(ne.i(c.viewHelper.viewDomNode,T.f?"mousewheel":"wheel",pe,{capture:!0,passive:!1})),c._context.addEventHandler(c),c}return n.prototype.dispose=function(){this._context.removeEventHandler(this),O.prototype.dispose.call(this)},n.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},n.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},n.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},n.prototype.getTargetAtClientPoint=function(e,i){var l=new p(e,i),c=l.toPageCoordinates(),N=E(this.viewHelper.viewDomNode);return c.y<N.y||c.y>N.y+N.height||c.x<N.x||c.x>N.x+N.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),N,c,null)},n.prototype._createMouseTarget=function(e,i){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,i?e.target:null)},n.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},n.prototype._onContextMenu=function(e,i){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,i)})},n.prototype._onMouseMove=function(e){if(!this._mouseDownOperation.isActive()){var i=e.timestamp;i<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}},n.prototype._onMouseLeave=function(e){this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:e,target:null})},n.prototype._onMouseUp=function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})},n.prototype._onMouseDown=function(e){var i=this,l=this._createMouseTarget(e,!0),c=l.type===6||l.type===7,N=l.type===2||l.type===3||l.type===4,pe=l.type===3,ue=this._context.configuration.options.get(83),ze=l.type===8||l.type===5,st=l.type===9,ft=e.leftButton||e.middleButton;K.e&&e.leftButton&&e.ctrlKey&&(ft=!1);var y=function(){T.i&&!i._isFocused?i._asyncFocus.schedule():(e.preventDefault(),i.viewHelper.focusTextArea())};if(ft&&(c||pe&&ue))y(),this._mouseDownOperation.start(l.type,e);else if(N)e.preventDefault();else if(ze){var d=l.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(d.viewZoneId)&&(y(),this._mouseDownOperation.start(l.type,e),e.preventDefault())}else st&&this.viewHelper.shouldSuppressMouseDownOnWidget(l.detail)&&(y(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:l})},n.MOUSE_MOVE_MINIMUM_TIME=100,n}(we),Jt=function(O){Dt(n,O);function n(e,i,l,c,N){var pe=O.call(this)||this;return pe._context=e,pe._viewController=i,pe._viewHelper=l,pe._createMouseTarget=c,pe._getMouseColumn=N,pe._mouseMoveMonitor=pe._register(new fe(pe._viewHelper.viewDomNode)),pe._onScrollTimeout=pe._register(new U.e),pe._mouseState=new nn,pe._currentSelection=new pt.a(1,1,1,1),pe._isActive=!1,pe._lastMouseEvent=null,pe}return n.prototype.dispose=function(){O.prototype.dispose.call(this)},n.prototype.isActive=function(){return this._isActive},n.prototype._onMouseDownThenMove=function(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);var i=this._findMousePosition(e,!0);!i||(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:i}):this._dispatchMouse(i,!0))},n.prototype.start=function(e,i){var l=this;this._lastMouseEvent=i,this._mouseState.setStartedOnLineNumbers(e===3),this._mouseState.setStartButtons(i),this._mouseState.setModifiers(i);var c=this._findMousePosition(i,!0);if(!(!c||!c.position)){this._mouseState.trySetCount(i.detail,c.position),i.detail=this._mouseState.count;var N=this._context.configuration.options;if(!N.get(68)&&N.get(24)&&!this._mouseState.altKey&&i.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&c.type===6&&c.position&&this._currentSelection.containsPosition(c.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,Ot(null),function(pe){return l._onMouseDownThenMove(pe)},function(){var pe=l._findMousePosition(l._lastMouseEvent,!0);l._viewController.emitMouseDrop({event:l._lastMouseEvent,target:pe?l._createMouseTarget(l._lastMouseEvent,!0):null}),l._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(c,i.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,Ot(null),function(pe){return l._onMouseDownThenMove(pe)},function(){return l._stop()}))}},n.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},n.prototype.onScrollChanged=function(){var e=this;!this._isActive||this._onScrollTimeout.setIfNotSet(function(){if(!!e._lastMouseEvent){var i=e._findMousePosition(e._lastMouseEvent,!1);!i||e._mouseState.isDragAndDrop||e._dispatchMouse(i,!0)}},10)},n.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0]},n.prototype._getPositionOutsideEditor=function(e){var i=e.editorPos,l=this._context.model,c=this._context.viewLayout,N=this._getMouseColumn(e);if(e.posy<i.y){var pe=Math.max(c.getCurrentScrollTop()-(i.y-e.posy),0),ue=Mt.getZoneAtCoord(this._context,pe);if(ue){var ze=this._helpPositionJumpOverViewZone(ue);if(ze)return new St(null,13,N,ze)}var st=c.getLineNumberAtVerticalOffset(pe);return new St(null,13,N,new me.a(st,1))}if(e.posy>i.y+i.height){var pe=c.getCurrentScrollTop()+(e.posy-i.y),ue=Mt.getZoneAtCoord(this._context,pe);if(ue){var ze=this._helpPositionJumpOverViewZone(ue);if(ze)return new St(null,13,N,ze)}var ft=c.getLineNumberAtVerticalOffset(pe);return new St(null,13,N,new me.a(ft,l.getLineMaxColumn(ft)))}var y=c.getLineNumberAtVerticalOffset(c.getCurrentScrollTop()+(e.posy-i.y));return e.posx<i.x?new St(null,13,N,new me.a(y,1)):e.posx>i.x+i.width?new St(null,13,N,new me.a(y,l.getLineMaxColumn(y))):null},n.prototype._findMousePosition=function(e,i){var l=this._getPositionOutsideEditor(e);if(l)return l;var c=this._createMouseTarget(e,i),N=c.position;if(!N)return null;if(c.type===8||c.type===5){var pe=this._helpPositionJumpOverViewZone(c.detail);if(pe)return new St(c.element,c.type,c.mouseColumn,pe,null,c.detail)}return c},n.prototype._helpPositionJumpOverViewZone=function(e){var i=new me.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),l=e.positionBefore,c=e.positionAfter;return l&&c?l.isBefore(i)?l:c:null},n.prototype._dispatchMouse=function(e,i){!e.position||this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:i,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},n}(V.a),nn=function(){function O(){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(O.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),O.prototype.setModifiers=function(n){this._altKey=n.altKey,this._ctrlKey=n.ctrlKey,this._metaKey=n.metaKey,this._shiftKey=n.shiftKey},O.prototype.setStartButtons=function(n){this._leftButton=n.leftButton,this._middleButton=n.middleButton},O.prototype.setStartedOnLineNumbers=function(n){this._startedOnLineNumbers=n},O.prototype.trySetCount=function(n,e){var i=new Date().getTime();i-this._lastSetMouseDownCountTime>O.CLEAR_MOUSE_DOWN_COUNT_TIME&&(n=1),this._lastSetMouseDownCountTime=i,n>this._lastMouseDownCount+1&&(n=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(e)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=e,this._lastMouseDownCount=Math.min(n,this._lastMouseDownPositionEqualCount)},O.CLEAR_MOUSE_DOWN_COUNT_TIME=400,O}(),sn=o("CjF5"),un=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function Sn(O,n){var e={translationY:n.translationY,translationX:n.translationX};return O&&(e.translationY+=O.translationY,e.translationX+=O.translationX),e}var Ln=function(O){un(n,O);function n(e,i,l){var c=O.call(this,e,i,l)||this;return c.viewHelper.linesContentDomNode.style.msTouchAction="none",c.viewHelper.linesContentDomNode.style.msContentZooming="none",c._installGestureHandlerTimeout=window.setTimeout(function(){if(c._installGestureHandlerTimeout=-1,window.MSGesture){var N=new MSGesture,pe=new MSGesture;N.target=c.viewHelper.linesContentDomNode,pe.target=c.viewHelper.linesContentDomNode,c.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(ue){var ze=ue.pointerType;if(ze===(ue.MSPOINTER_TYPE_MOUSE||"mouse")){c._lastPointerType="mouse";return}else ze===(ue.MSPOINTER_TYPE_TOUCH||"touch")?(c._lastPointerType="touch",N.addPointer(ue.pointerId)):(c._lastPointerType="pen",pe.addPointer(ue.pointerId))}),c._register(ne.l(c.viewHelper.linesContentDomNode,"MSGestureChange",function(ue){return c._onGestureChange(ue)},Sn)),c._register(ne.i(c.viewHelper.linesContentDomNode,"MSGestureTap",function(ue){return c._onCaptureGestureTap(ue)},!0))}},100),c._lastPointerType="mouse",c}return n.prototype._onMouseDown=function(e){this._lastPointerType==="mouse"&&O.prototype._onMouseDown.call(this,e)},n.prototype._onCaptureGestureTap=function(e){var i=this,l=new k(e,this.viewHelper.viewDomNode),c=this._createMouseTarget(l,!1);c.position&&this.viewController.moveTo(c.position),l.browserEvent.fromElement?(l.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},n.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),O.prototype.dispose.call(this)},n}(Ht),An=function(O){un(n,O);function n(e,i,l){var c=O.call(this,e,i,l)||this;return c.viewHelper.linesContentDomNode.style.touchAction="none",c._installGestureHandlerTimeout=window.setTimeout(function(){if(c._installGestureHandlerTimeout=-1,window.MSGesture){var N=new MSGesture,pe=new MSGesture;N.target=c.viewHelper.linesContentDomNode,pe.target=c.viewHelper.linesContentDomNode,c.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(ue){var ze=ue.pointerType;if(ze==="mouse"){c._lastPointerType="mouse";return}else ze==="touch"?(c._lastPointerType="touch",N.addPointer(ue.pointerId)):(c._lastPointerType="pen",pe.addPointer(ue.pointerId))}),c._register(ne.l(c.viewHelper.linesContentDomNode,"MSGestureChange",function(ue){return c._onGestureChange(ue)},Sn)),c._register(ne.i(c.viewHelper.linesContentDomNode,"MSGestureTap",function(ue){return c._onCaptureGestureTap(ue)},!0))}},100),c._lastPointerType="mouse",c}return n.prototype._onMouseDown=function(e){this._lastPointerType==="mouse"&&O.prototype._onMouseDown.call(this,e)},n.prototype._onCaptureGestureTap=function(e){var i=this,l=new k(e,this.viewHelper.viewDomNode),c=this._createMouseTarget(l,!1);c.position&&this.viewController.moveTo(c.position),l.browserEvent.fromElement?(l.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},n.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),O.prototype.dispose.call(this)},n}(Ht),Gn=function(O){un(n,O);function n(e,i,l){var c=O.call(this,e,i,l)||this;c._register(D.b.addTarget(c.viewHelper.linesContentDomNode)),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Tap,function(pe){return c.onTap(pe)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Change,function(pe){return c.onChange(pe)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Contextmenu,function(pe){return c._onContextMenu(new k(pe,c.viewHelper.viewDomNode),!1)})),c._lastPointerType="mouse",c._register(ne.i(c.viewHelper.linesContentDomNode,"pointerdown",function(pe){var ue=pe.pointerType;if(ue==="mouse"){c._lastPointerType="mouse";return}else ue==="touch"?c._lastPointerType="touch":c._lastPointerType="pen"}));var N=new oe(c.viewHelper.viewDomNode);return c._register(N.onPointerMoveThrottled(c.viewHelper.viewDomNode,function(pe){return c._onMouseMove(pe)},Ot(c.mouseTargetFactory),Ht.MOUSE_MOVE_MINIMUM_TIME)),c._register(N.onPointerUp(c.viewHelper.viewDomNode,function(pe){return c._onMouseUp(pe)})),c._register(N.onPointerLeave(c.viewHelper.viewDomNode,function(pe){return c._onMouseLeave(pe)})),c._register(N.onPointerDown(c.viewHelper.viewDomNode,function(pe){return c._onMouseDown(pe)})),c}return n.prototype.onTap=function(e){if(!(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))){e.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new k(e,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}},n.prototype.onChange=function(e){this._lastPointerType==="touch"&&this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n.prototype._onMouseDown=function(e){e.target&&this.viewHelper.linesContentDomNode.contains(e.target)&&this._lastPointerType==="touch"||O.prototype._onMouseDown.call(this,e)},n}(Ht),Jn=function(O){un(n,O);function n(e,i,l){var c=O.call(this,e,i,l)||this;return c._register(D.b.addTarget(c.viewHelper.linesContentDomNode)),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Tap,function(N){return c.onTap(N)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Change,function(N){return c.onChange(N)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Contextmenu,function(N){return c._onContextMenu(new k(N,c.viewHelper.viewDomNode),!1)})),c}return n.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new k(e,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.moveTo(i.position)},n.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n}(Ht),$n=function(O){un(n,O);function n(e,i,l){var c=O.call(this)||this;return window.navigator.msPointerEnabled?c.handler=c._register(new Ln(e,i,l)):K.c&&sn.a.pointerEvents?c.handler=c._register(new Gn(e,i,l)):window.TouchEvent?c.handler=c._register(new Jn(e,i,l)):window.navigator.pointerEnabled||window.PointerEvent?c.handler=c._register(new An(e,i,l)):c.handler=c._register(new Ht(e,i,l)),c}return n.prototype.getTargetAtClientPoint=function(e,i){return this.handler.getTargetAtClientPoint(e,i)},n}(V.a),pi=o("VvMK"),Kn=o("N0LK"),yi=o("5TxY"),vi=o("Comh"),mt=o("Krc3"),Nt=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ut=function(O){Nt(n,O);function n(){return O!==null&&O.apply(this,arguments)||this}return n}(we),tn=o("kYye"),Vt=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wn=function(O){Vt(n,O);function n(e){var i=O.call(this)||this;return i._context=e,i._readConfig(),i._lastCursorModelPosition=new me.a(1,1),i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype._readConfig=function(){var e=this._context.configuration.options;this._lineHeight=e.get(49);var i=e.get(50);this._renderLineNumbers=i.renderType,this._renderCustomLineNumbers=i.renderFn,this._renderFinalNewline=e.get(71);var l=e.get(107);this._lineNumbersLeft=l.lineNumbersLeft,this._lineNumbersWidth=l.lineNumbersWidth},n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,O.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},n.prototype.onCursorStateChanged=function(e){var i=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(i),this._renderLineNumbers===2||this._renderLineNumbers===3},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getLineRenderLineNumber=function(e){var i=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new me.a(e,1));if(i.column!==1)return"";var l=i.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(l);if(this._renderLineNumbers===2){var c=Math.abs(this._lastCursorModelPosition.lineNumber-l);return c===0?'<span class="relative-current-line-number">'+l+"</span>":String(c)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===l||l%10==0?String(l):"":String(l)},n.prototype.prepareRender=function(e){if(this._renderLineNumbers===0){this._renderResult=null;return}for(var i=K.d?this._lineHeight%2==0?" lh-even":" lh-odd":"",l=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,N='<div class="'+n.CLASS_NAME+i+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',pe=this._context.model.getLineCount(),ue=[],ze=l;ze<=c;ze++){var st=ze-l;if(!this._renderFinalNewline&&ze===pe&&this._context.model.getLineLength(ze)===0){ue[st]="";continue}var ft=this._getLineRenderLineNumber(ze);ft?ue[st]=N+ft+"</div>":ue[st]=""}this._renderResult=ue},n.prototype.render=function(e,i){if(!this._renderResult)return"";var l=i-e;return l<0||l>=this._renderResult.length?"":this._renderResult[l]},n.CLASS_NAME="line-numbers",n}(Ut);Object(tt.e)(function(O,n){var e=O.getColor(tn.j);e&&n.addRule(".monaco-editor .line-numbers { color: "+e+"; }");var i=O.getColor(tn.b);i&&n.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var xn=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),kn=function(O){xn(n,O);function n(e){var i=O.call(this,e)||this,l=i._context.configuration.options,c=l.get(107);return i._canUseLayerHinting=!l.get(22),i._contentLeft=c.contentLeft,i._glyphMarginLeft=c.glyphMarginLeft,i._glyphMarginWidth=c.glyphMarginWidth,i._domNode=Object(I.b)(document.createElement("div")),i._domNode.setClassName(n.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=Object(I.b)(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(n.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return n.prototype.dispose=function(){O.prototype.dispose.call(this)},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,l=i.get(107);return this._canUseLayerHinting=!i.get(22),this._contentLeft=l.contentLeft,this._glyphMarginLeft=l.glyphMarginLeft,this._glyphMarginWidth=l.glyphMarginWidth,!0},n.prototype.onScrollChanged=function(e){return O.prototype.onScrollChanged.call(this,e)||e.scrollTopChanged},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var i=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-i);var l=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(l),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(l)},n.CLASS_NAME="glyph-margin",n.OUTER_CLASS_NAME="margin",n}(X),Fn=o("5v8Y"),oi=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ci=function(){function O(n){this.type=1,this._source=n}return O.prototype.hasChanged=function(n){return this._source.hasChanged(n)},O}(),Ui=function(){function O(n){this.type=2,this.contentWidth=n.contentWidth,this.contentHeight=n.contentHeight,this.contentWidthChanged=n.contentWidthChanged,this.contentHeightChanged=n.contentHeightChanged}return O}(),rr=function(){function O(n,e){this.type=3,this.selections=n,this.modelSelections=e}return O}(),Xn=function(){function O(){this.type=4}return O}(),Ri=function(){function O(){this.type=5}return O}(),wi=function(){function O(n){this.type=6,this.isFocused=n}return O}(),Bi=function(){function O(){this.type=7}return O}(),Vn=function(){function O(){this.type=8}return O}(),bi=function(){function O(n,e){this.type=9,this.fromLineNumber=n,this.toLineNumber=e}return O}(),ji=function(){function O(n,e){this.type=10,this.fromLineNumber=n,this.toLineNumber=e}return O}(),Mi=function(){function O(n,e){this.type=11,this.fromLineNumber=n,this.toLineNumber=e}return O}(),Gi=function(){function O(n,e,i,l,c){this.type=12,this.source=n,this.range=e,this.verticalType=i,this.revealHorizontal=l,this.scrollType=c}return O}(),ki=function(){function O(n){this.type=13,this.scrollWidth=n.scrollWidth,this.scrollLeft=n.scrollLeft,this.scrollHeight=n.scrollHeight,this.scrollTop=n.scrollTop,this.scrollWidthChanged=n.scrollWidthChanged,this.scrollLeftChanged=n.scrollLeftChanged,this.scrollHeightChanged=n.scrollHeightChanged,this.scrollTopChanged=n.scrollTopChanged}return O}(),mi=function(){function O(){this.type=14}return O}(),qi=function(){function O(n){this.type=15,this.ranges=n}return O}(),or=function(){function O(){this.type=16}return O}(),Ci=function(){function O(){this.type=17}return O}(),Di=function(O){oi(n,O);function n(){var e=O.call(this)||this;return e._listeners=[],e._collector=null,e._collectorCnt=0,e}return n.prototype.dispose=function(){this._listeners=[],O.prototype.dispose.call(this)},n.prototype._beginEmit=function(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new Yi),this._collector},n.prototype._endEmit=function(){if(this._collectorCnt--,this._collectorCnt===0){var e=this._collector.finalize();this._collector=null,e.length>0&&this._emit(e)}},n.prototype._emit=function(e){for(var i=this._listeners.slice(0),l=0,c=i.length;l<c;l++)ur(i[l],e)},n.prototype.addEventListener=function(e){var i=this;return this._listeners.push(e),Object(V.h)(function(){for(var l=i._listeners,c=0,N=l.length;c<N;c++)if(l[c]===e){l.splice(c,1);break}})},n}(V.a),Yi=function(){function O(){this._eventsLen=0,this._events=[],this._eventsLen=0}return O.prototype.emit=function(n){this._events[this._eventsLen++]=n},O.prototype.finalize=function(){var n=this._events;return this._events=[],n},O}();function ur(O,n){try{O(n)}catch(e){P.e(e)}}var Ni=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),sr=function(){function O(n,e,i){this.top=n,this.left=e,this.width=i}return O.prototype.setWidth=function(n){return new O(this.top,this.left,n)},O}(),$e=T.f||T.h,L=function(O){Ni(n,O);function n(e,i,l){var c=O.call(this,e)||this;c._primaryCursorPosition=new me.a(1,1),c._primaryCursorVisibleRange=null,c._viewController=i,c._viewHelper=l,c._scrollLeft=0,c._scrollTop=0;var N=c._context.configuration.options,pe=N.get(107);c._setAccessibilityOptions(N),c._contentLeft=pe.contentLeft,c._contentWidth=pe.contentWidth,c._contentHeight=pe.height,c._fontInfo=N.get(34),c._lineHeight=N.get(49),c._emptySelectionClipboard=N.get(25),c._copyWithSyntaxHighlighting=N.get(15),c._visibleTextArea=null,c._selections=[new pt.a(1,1,1,1)],c._modelSelections=[new pt.a(1,1,1,1)],c._lastRenderPosition=null,c.textArea=Object(I.b)(document.createElement("textarea")),ce.write(c.textArea,6),c.textArea.setClassName("inputarea"),c.textArea.setAttribute("wrap","off"),c.textArea.setAttribute("autocorrect","off"),c.textArea.setAttribute("autocapitalize","off"),c.textArea.setAttribute("autocomplete","off"),c.textArea.setAttribute("spellcheck","false"),c.textArea.setAttribute("aria-label",c._getAriaLabel(N)),c.textArea.setAttribute("role","textbox"),c.textArea.setAttribute("aria-multiline","true"),c.textArea.setAttribute("aria-haspopup","false"),c.textArea.setAttribute("aria-autocomplete","both"),K.g&&N.get(68)&&c.textArea.setAttribute("readonly","true"),c.textAreaCover=Object(I.b)(document.createElement("div")),c.textAreaCover.setPosition("absolute");var ue={getLineCount:function(){return c._context.model.getLineCount()},getLineMaxColumn:function(ft){return c._context.model.getLineMaxColumn(ft)},getValueInRange:function(ft,y){return c._context.model.getValueInRange(ft,y)}},ze={getDataToCopy:function(ft){var y=c._context.model.getPlainTextToCopy(c._modelSelections,c._emptySelectionClipboard,K.h),d=c._context.model.getEOL(),u=c._emptySelectionClipboard&&c._modelSelections.length===1&&c._modelSelections[0].isEmpty(),C=Array.isArray(y)?y:null,w=Array.isArray(y)?y.join(d):y,b=void 0,Q=null;if(ft&&(yi.a.forceCopyWithSyntaxHighlighting||c._copyWithSyntaxHighlighting&&w.length<65536)){var ke=c._context.model.getRichTextToCopy(c._modelSelections,c._emptySelectionClipboard);ke&&(b=ke.html,Q=ke.mode)}return{isFromEmptySelection:u,multicursorText:C,text:w,html:b,mode:Q}},getScreenReaderContent:function(ft){if(T.j)return vi.b.EMPTY;if(c._accessibilitySupport===1){if(K.e){var y=c._selections[0];if(y.isEmpty()){var d=y.getStartPosition(),u=c._getWordBeforePosition(d);if(u.length===0&&(u=c._getCharacterBeforePosition(d)),u.length>0)return new vi.b(u,u.length,u.length,d,d)}}return vi.b.EMPTY}return vi.a.fromEditorSelection(ft,ue,c._selections[0],c._accessibilityPageSize,c._accessibilitySupport===0)},deduceModelPosition:function(ft,y,d){return c._context.model.deduceModelPositionRelativeToViewPosition(ft,y,d)}};return c._textAreaInput=c._register(new yi.b(ze,c.textArea)),c._register(c._textAreaInput.onKeyDown(function(st){c._viewController.emitKeyDown(st)})),c._register(c._textAreaInput.onKeyUp(function(st){c._viewController.emitKeyUp(st)})),c._register(c._textAreaInput.onPaste(function(st){var ft=!1,y=null,d=null;st.metadata&&(ft=c._emptySelectionClipboard&&!!st.metadata.isFromEmptySelection,y=typeof st.metadata.multicursorText!="undefined"?st.metadata.multicursorText:null,d=st.metadata.mode),c._viewController.paste("keyboard",st.text,ft,y,d)})),c._register(c._textAreaInput.onCut(function(){c._viewController.cut("keyboard")})),c._register(c._textAreaInput.onType(function(st){st.replaceCharCnt?c._viewController.replacePreviousChar("keyboard",st.text,st.replaceCharCnt):c._viewController.type("keyboard",st.text)})),c._register(c._textAreaInput.onSelectionChangeRequest(function(st){c._viewController.setSelection("keyboard",st)})),c._register(c._textAreaInput.onCompositionStart(function(){var st=c._selections[0].startLineNumber,ft=c._selections[0].startColumn;c._context.privateViewEventBus.emit(new Gi("keyboard",new Me.a(st,ft,st,ft),0,!0,1));var y=c._viewHelper.visibleRangeForPositionRelativeToEditor(st,ft);y&&(c._visibleTextArea=new sr(c._context.viewLayout.getVerticalOffsetForLineNumber(st),y.left,$e?0:1),c._render()),c.textArea.setClassName("inputarea ime-input"),c._viewController.compositionStart("keyboard")})),c._register(c._textAreaInput.onCompositionUpdate(function(st){T.f?c._visibleTextArea=c._visibleTextArea.setWidth(0):c._visibleTextArea=c._visibleTextArea.setWidth(M(st.data,c._fontInfo)),c._render()})),c._register(c._textAreaInput.onCompositionEnd(function(){c._visibleTextArea=null,c._render(),c.textArea.setClassName("inputarea"),c._viewController.compositionEnd("keyboard")})),c._register(c._textAreaInput.onFocus(function(){c._context.privateViewEventBus.emit(new wi(!0))})),c._register(c._textAreaInput.onBlur(function(){c._context.privateViewEventBus.emit(new wi(!1))})),c}return n.prototype.dispose=function(){O.prototype.dispose.call(this)},n.prototype._getWordBeforePosition=function(e){for(var i=this._context.model.getLineContent(e.lineNumber),l=Object(Fn.a)(this._context.configuration.options.get(96)),c=e.column,N=0;c>1;){var pe=i.charCodeAt(c-2),ue=l.get(pe);if(ue!==0||N>50)return i.substring(c-1,e.column-1);N++,c--}return i.substring(0,e.column-1)},n.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var i=this._context.model.getLineContent(e.lineNumber),l=i.charAt(e.column-2);if(!Kn.z(l.charCodeAt(0)))return l}return""},n.prototype._getAriaLabel=function(e){var i=e.get(2);return i===1?re.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.get(4)},n.prototype._setAccessibilityOptions=function(e){this._accessibilitySupport=e.get(2);var i=e.get(3);this._accessibilitySupport===2&&i===_t.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=i},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,l=i.get(107);return this._setAccessibilityOptions(i),this._contentLeft=l.contentLeft,this._contentWidth=l.contentWidth,this._contentHeight=l.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)),K.g&&e.hasChanged(68)&&(i.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},n.prototype.onZonesChanged=function(e){return!0},n.prototype.isFocused=function(){return this._textAreaInput.isFocused()},n.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},n.prototype.getLastRenderData=function(){return this._lastRenderPosition},n.prototype.setAriaOptions=function(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant"))},n.prototype.prepareRender=function(e){this._primaryCursorPosition=new me.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)},n.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},n.prototype._render=function(){if(this._visibleTextArea){this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>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(K.e){this._renderInsideEditor(this._primaryCursorPosition,i,e,$e?0:1,this._lineHeight);return}this._renderInsideEditor(this._primaryCursorPosition,i,e,$e?0:1,$e?0:1)},n.prototype._renderInsideEditor=function(e,i,l,c,N){this._lastRenderPosition=e;var pe=this.textArea,ue=this.textAreaCover;G.a.applyFontInfo(pe,this._fontInfo),pe.setTop(i),pe.setLeft(l),pe.setWidth(c),pe.setHeight(N),ue.setTop(0),ue.setLeft(0),ue.setWidth(0),ue.setHeight(0)},n.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var e=this.textArea,i=this.textAreaCover;if(G.a.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),i.setTop(0),i.setLeft(0),$e){e.setWidth(0),e.setHeight(0),i.setWidth(0),i.setHeight(0);return}e.setWidth(1),e.setHeight(1),i.setWidth(1),i.setHeight(1);var l=this._context.configuration.options;l.get(40)?i.setClassName("monaco-editor-background textAreaCover "+kn.OUTER_CLASS_NAME):l.get(50).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+wn.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")},n}(X);function M(O,n){var e=document.createElement("canvas"),i=e.getContext("2d");i.font=Z(n);var l=i.measureText(O);return T.h?l.width+2:l.width}function Z(O){return De("normal",O.fontWeight,O.fontSize,O.lineHeight,O.fontFamily)}function De(O,n,e,i,l){return O+" normal "+n+" "+e+"px / "+i+"px "+l}var xe=o("1YUG"),je=function(){function O(n,e,i,l){this.configuration=n,this.viewModel=e,this.outgoingEvents=i,this.commandDelegate=l}return O.prototype._execMouseCommand=function(n,e){e.source="mouse",this.commandDelegate.executeEditorCommand(n,e)},O.prototype.paste=function(n,e,i,l,c){this.commandDelegate.paste(n,e,i,l,c)},O.prototype.type=function(n,e){this.commandDelegate.type(n,e)},O.prototype.replacePreviousChar=function(n,e,i){this.commandDelegate.replacePreviousChar(n,e,i)},O.prototype.compositionStart=function(n){this.commandDelegate.compositionStart(n)},O.prototype.compositionEnd=function(n){this.commandDelegate.compositionEnd(n)},O.prototype.cut=function(n){this.commandDelegate.cut(n)},O.prototype.setSelection=function(n,e){this.commandDelegate.executeEditorCommand(xe.CoreNavigationCommands.SetSelection,{source:n,selection:e})},O.prototype._validateViewColumn=function(n){var e=this.viewModel.getLineMinColumn(n.lineNumber);return n.column<e?new me.a(n.lineNumber,e):n},O.prototype._hasMulticursorModifier=function(n){switch(this.configuration.options.get(59)){case"altKey":return n.altKey;case"ctrlKey":return n.ctrlKey;case"metaKey":return n.metaKey}return!1},O.prototype._hasNonMulticursorModifier=function(n){switch(this.configuration.options.get(59)){case"altKey":return n.ctrlKey||n.metaKey;case"ctrlKey":return n.altKey||n.metaKey;case"metaKey":return n.ctrlKey||n.altKey}return!1},O.prototype.dispatchMouse=function(n){var e=K.d&&this.configuration.options.get(81);n.middleButton&&!e?this._columnSelect(n.position,n.mouseColumn,n.inSelectionMode):n.startedOnLineNumbers?this._hasMulticursorModifier(n)?n.inSelectionMode?this._lastCursorLineSelect(n.position):this._createCursor(n.position,!0):n.inSelectionMode?this._lineSelectDrag(n.position):this._lineSelect(n.position):n.mouseDownCount>=4?this._selectAll():n.mouseDownCount===3?this._hasMulticursorModifier(n)?n.inSelectionMode?this._lastCursorLineSelectDrag(n.position):this._lastCursorLineSelect(n.position):n.inSelectionMode?this._lineSelectDrag(n.position):this._lineSelect(n.position):n.mouseDownCount===2?this._hasMulticursorModifier(n)?this._lastCursorWordSelect(n.position):n.inSelectionMode?this._wordSelectDrag(n.position):this._wordSelect(n.position):this._hasMulticursorModifier(n)?this._hasNonMulticursorModifier(n)||(n.shiftKey?this._columnSelect(n.position,n.mouseColumn,!0):n.inSelectionMode?this._lastCursorMoveToSelect(n.position):this._createCursor(n.position,!1)):n.inSelectionMode?n.altKey?this._columnSelect(n.position,n.mouseColumn,!0):this._moveToSelect(n.position):this.moveTo(n.position)},O.prototype._usualArgs=function(n){return n=this._validateViewColumn(n),{position:this._convertViewToModelPosition(n),viewPosition:n}},O.prototype.moveTo=function(n){this._execMouseCommand(xe.CoreNavigationCommands.MoveTo,this._usualArgs(n))},O.prototype._moveToSelect=function(n){this._execMouseCommand(xe.CoreNavigationCommands.MoveToSelect,this._usualArgs(n))},O.prototype._columnSelect=function(n,e,i){n=this._validateViewColumn(n),this._execMouseCommand(xe.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(n),viewPosition:n,mouseColumn:e,doColumnSelect:i})},O.prototype._createCursor=function(n,e){n=this._validateViewColumn(n),this._execMouseCommand(xe.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(n),viewPosition:n,wholeLine:e})},O.prototype._lastCursorMoveToSelect=function(n){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(n))},O.prototype._wordSelect=function(n){this._execMouseCommand(xe.CoreNavigationCommands.WordSelect,this._usualArgs(n))},O.prototype._wordSelectDrag=function(n){this._execMouseCommand(xe.CoreNavigationCommands.WordSelectDrag,this._usualArgs(n))},O.prototype._lastCursorWordSelect=function(n){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(n))},O.prototype._lineSelect=function(n){this._execMouseCommand(xe.CoreNavigationCommands.LineSelect,this._usualArgs(n))},O.prototype._lineSelectDrag=function(n){this._execMouseCommand(xe.CoreNavigationCommands.LineSelectDrag,this._usualArgs(n))},O.prototype._lastCursorLineSelect=function(n){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(n))},O.prototype._lastCursorLineSelectDrag=function(n){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(n))},O.prototype._selectAll=function(){this._execMouseCommand(xe.CoreNavigationCommands.SelectAll,{})},O.prototype._convertViewToModelPosition=function(n){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(n)},O.prototype.emitKeyDown=function(n){this.outgoingEvents.emitKeyDown(n)},O.prototype.emitKeyUp=function(n){this.outgoingEvents.emitKeyUp(n)},O.prototype.emitContextMenu=function(n){this.outgoingEvents.emitContextMenu(n)},O.prototype.emitMouseMove=function(n){this.outgoingEvents.emitMouseMove(n)},O.prototype.emitMouseLeave=function(n){this.outgoingEvents.emitMouseLeave(n)},O.prototype.emitMouseUp=function(n){this.outgoingEvents.emitMouseUp(n)},O.prototype.emitMouseDown=function(n){this.outgoingEvents.emitMouseDown(n)},O.prototype.emitMouseDrag=function(n){this.outgoingEvents.emitMouseDrag(n)},O.prototype.emitMouseDrop=function(n){this.outgoingEvents.emitMouseDrop(n)},O.prototype.emitMouseWheel=function(n){this.outgoingEvents.emitMouseWheel(n)},O}(),ht=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ut=function(O){ht(n,O);function n(e){var i=O.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=e,i}return n.prototype.emitContentSizeChange=function(e){this.onDidContentSizeChange&&this.onDidContentSizeChange(e)},n.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)},n.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},n.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},n.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)},n.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)},n.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseWheel=function(e){this.onMouseWheel&&this.onMouseWheel(e)},n.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e},n.prototype._convertViewToModelMouseTarget=function(e){return n.convertViewToModelMouseTarget(e,this._viewModel.coordinatesConverter)},n.convertViewToModelMouseTarget=function(e,i){return new yt(e.element,e.type,e.mouseColumn,e.position?i.convertViewPositionToModelPosition(e.position):null,e.range?i.convertViewRangeToModelRange(e.range):null,e.detail)},n}(V.a),yt=function(){function O(n,e,i,l,c,N){this.element=n,this.type=e,this.mouseColumn=i,this.position=l,this.range=c,this.detail=N}return O.prototype.toString=function(){return St.toString(this)},O}(),It=o("erNZ"),Rt=function(){function O(n){this._createLine=n,this._set(1,[])}return O.prototype.flush=function(){this._set(1,[])},O.prototype._set=function(n,e){this._lines=e,this._rendLineNumberStart=n},O.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},O.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},O.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},O.prototype.getCount=function(){return this._lines.length},O.prototype.getLine=function(n){var e=n-this._rendLineNumberStart;if(e<0||e>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[e]},O.prototype.onLinesDeleted=function(n,e){if(this.getCount()===0)return null;var i=this.getStartLineNumber(),l=this.getEndLineNumber();if(e<i){var c=e-n+1;return this._rendLineNumberStart-=c,null}if(n>l)return null;for(var N=0,pe=0,ue=i;ue<=l;ue++){var ze=ue-this._rendLineNumberStart;n<=ue&&ue<=e&&(pe===0?(N=ze,pe=1):pe++)}if(n<i){var st=0;e<i?st=e-n+1:st=i-n,this._rendLineNumberStart-=st}var ft=this._lines.splice(N,pe);return ft},O.prototype.onLinesChanged=function(n,e){if(this.getCount()===0)return!1;for(var i=this.getStartLineNumber(),l=this.getEndLineNumber(),c=!1,N=n;N<=e;N++)N>=i&&N<=l&&(this._lines[N-this._rendLineNumberStart].onContentChanged(),c=!0);return c},O.prototype.onLinesInserted=function(n,e){if(this.getCount()===0)return null;var i=e-n+1,l=this.getStartLineNumber(),c=this.getEndLineNumber();if(n<=l)return this._rendLineNumberStart+=i,null;if(n>c)return null;if(i+n>c){var N=this._lines.splice(n-this._rendLineNumberStart,c-n+1);return N}for(var pe=[],ue=0;ue<i;ue++)pe[ue]=this._createLine();var ze=n-this._rendLineNumberStart,st=this._lines.slice(0,ze),ft=this._lines.slice(ze,this._lines.length-i),y=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=st.concat(pe).concat(ft),y},O.prototype.onTokensChanged=function(n){if(this.getCount()===0)return!1;for(var e=this.getStartLineNumber(),i=this.getEndLineNumber(),l=!1,c=0,N=n.length;c<N;c++){var pe=n[c];if(!(pe.toLineNumber<e||pe.fromLineNumber>i))for(var ue=Math.max(e,pe.fromLineNumber),ze=Math.min(i,pe.toLineNumber),st=ue;st<=ze;st++){var ft=st-this._rendLineNumberStart;this._lines[ft].onTokensChanged(),l=!0}}return l},O}(),Wt=function(){function O(n){var e=this;this._host=n,this.domNode=this._createDomNode(),this._linesCollection=new Rt(function(){return e._host.createVisibleLine()})}return O.prototype._createDomNode=function(){var n=Object(I.b)(document.createElement("div"));return n.setClassName("view-layer"),n.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n},O.prototype.onConfigurationChanged=function(n){return!!n.hasChanged(107)},O.prototype.onFlushed=function(n){return this._linesCollection.flush(),!0},O.prototype.onLinesChanged=function(n){return this._linesCollection.onLinesChanged(n.fromLineNumber,n.toLineNumber)},O.prototype.onLinesDeleted=function(n){var e=this._linesCollection.onLinesDeleted(n.fromLineNumber,n.toLineNumber);if(e)for(var i=0,l=e.length;i<l;i++){var c=e[i].getDomNode();c&&this.domNode.domNode.removeChild(c)}return!0},O.prototype.onLinesInserted=function(n){var e=this._linesCollection.onLinesInserted(n.fromLineNumber,n.toLineNumber);if(e)for(var i=0,l=e.length;i<l;i++){var c=e[i].getDomNode();c&&this.domNode.domNode.removeChild(c)}return!0},O.prototype.onScrollChanged=function(n){return n.scrollTopChanged},O.prototype.onTokensChanged=function(n){return this._linesCollection.onTokensChanged(n.ranges)},O.prototype.onZonesChanged=function(n){return!0},O.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},O.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},O.prototype.getVisibleLine=function(n){return this._linesCollection.getLine(n)},O.prototype.renderLines=function(n){var e=this._linesCollection._get(),i=new Zt(this.domNode.domNode,this._host,n),l={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines,linesLength:e.lines.length},c=i.render(l,n.startLineNumber,n.endLineNumber,n.relativeVerticalOffset);this._linesCollection._set(c.rendLineNumberStart,c.lines)},O}(),Zt=function(){function O(n,e,i){this.domNode=n,this.host=e,this.viewportData=i}return O.prototype.render=function(n,e,i,l){var c={rendLineNumberStart:n.rendLineNumberStart,lines:n.lines.slice(0),linesLength:n.linesLength};if(c.rendLineNumberStart+c.linesLength-1<e||i<c.rendLineNumberStart){c.rendLineNumberStart=e,c.linesLength=i-e+1,c.lines=[];for(var N=e;N<=i;N++)c.lines[N-e]=this.host.createVisibleLine();return this._finishRendering(c,!0,l),c}if(this._renderUntouchedLines(c,Math.max(e-c.rendLineNumberStart,0),Math.min(i-c.rendLineNumberStart,c.linesLength-1),l,e),c.rendLineNumberStart>e){var pe=e,ue=Math.min(i,c.rendLineNumberStart-1);pe<=ue&&(this._insertLinesBefore(c,pe,ue,l,e),c.linesLength+=ue-pe+1)}else if(c.rendLineNumberStart<e){var ze=Math.min(c.linesLength,e-c.rendLineNumberStart);ze>0&&(this._removeLinesBefore(c,ze),c.linesLength-=ze)}if(c.rendLineNumberStart=e,c.rendLineNumberStart+c.linesLength-1<i){var pe=c.rendLineNumberStart+c.linesLength,ue=i;pe<=ue&&(this._insertLinesAfter(c,pe,ue,l,e),c.linesLength+=ue-pe+1)}else if(c.rendLineNumberStart+c.linesLength-1>i){var pe=Math.max(0,i-c.rendLineNumberStart+1),ue=c.linesLength-1,ze=ue-pe+1;ze>0&&(this._removeLinesAfter(c,ze),c.linesLength-=ze)}return this._finishRendering(c,!1,l),c},O.prototype._renderUntouchedLines=function(n,e,i,l,c){for(var N=n.rendLineNumberStart,pe=n.lines,ue=e;ue<=i;ue++){var ze=N+ue;pe[ue].layoutLine(ze,l[ze-c])}},O.prototype._insertLinesBefore=function(n,e,i,l,c){for(var N=[],pe=0,ue=e;ue<=i;ue++)N[pe++]=this.host.createVisibleLine();n.lines=N.concat(n.lines)},O.prototype._removeLinesBefore=function(n,e){for(var i=0;i<e;i++){var l=n.lines[i].getDomNode();l&&this.domNode.removeChild(l)}n.lines.splice(0,e)},O.prototype._insertLinesAfter=function(n,e,i,l,c){for(var N=[],pe=0,ue=e;ue<=i;ue++)N[pe++]=this.host.createVisibleLine();n.lines=n.lines.concat(N)},O.prototype._removeLinesAfter=function(n,e){for(var i=n.linesLength-e,l=0;l<e;l++){var c=n.lines[i+l].getDomNode();c&&this.domNode.removeChild(c)}n.lines.splice(i,e)},O.prototype._finishRenderingNewLines=function(n,e,i,l){var c=this.domNode.lastChild;e||!c?this.domNode.innerHTML=i:c.insertAdjacentHTML("afterend",i);for(var N=this.domNode.lastChild,pe=n.linesLength-1;pe>=0;pe--){var ue=n.lines[pe];l[pe]&&(ue.setDomNode(N),N=N.previousSibling)}},O.prototype._finishRenderingInvalidLines=function(n,e,i){var l=document.createElement("div");l.innerHTML=e;for(var c=0;c<n.linesLength;c++){var N=n.lines[c];if(i[c]){var pe=l.firstChild,ue=N.getDomNode();ue.parentNode.replaceChild(pe,ue),N.setDomNode(pe)}}},O.prototype._finishRendering=function(n,e,i){var l=O._sb,c=n.linesLength,N=n.lines,pe=n.rendLineNumberStart,ue=[];{l.reset();for(var ze=!1,st=0;st<c;st++){var ft=N[st];ue[st]=!1;var y=ft.getDomNode();if(!y){var d=ft.renderLine(st+pe,i[st],this.viewportData,l);!d||(ue[st]=!0,ze=!0)}}ze&&this._finishRenderingNewLines(n,e,l.build(),ue)}{l.reset();for(var u=!1,C=[],st=0;st<c;st++){var ft=N[st];if(C[st]=!1,!ue[st]){var d=ft.renderLine(st+pe,i[st],this.viewportData,l);!d||(C[st]=!0,u=!0)}}u&&this._finishRenderingInvalidLines(n,l.build(),C)}},O._sb=Object(It.a)(1e5),O}(),Xt=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ln=function(O){Xt(n,O);function n(e){var i=O.call(this,e)||this;return i._visibleLines=new Wt(i),i.domNode=i._visibleLines.domNode,i._dynamicOverlays=[],i._isFocused=!1,i.domNode.setClassName("view-overlays"),i}return n.prototype.shouldRender=function(){if(O.prototype.shouldRender.call(this))return!0;for(var e=0,i=this._dynamicOverlays.length;e<i;e++){var l=this._dynamicOverlays[e];if(l.shouldRender())return!0}return!1},n.prototype.dispose=function(){O.prototype.dispose.call(this);for(var e=0,i=this._dynamicOverlays.length;e<i;e++){var l=this._dynamicOverlays[e];l.dispose()}this._dynamicOverlays=[]},n.prototype.getDomNode=function(){return this.domNode},n.prototype.createVisibleLine=function(){return new hn(this._context.configuration,this._dynamicOverlays)},n.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e)},n.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);for(var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),c=i;c<=l;c++){var N=this._visibleLines.getVisibleLine(c);N.onConfigurationChanged(e)}return!0},n.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e)},n.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!0},n.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},n.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},n.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},n.prototype.onScrollChanged=function(e){return this._visibleLines.onScrollChanged(e)||!0},n.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},n.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},n.prototype.prepareRender=function(e){for(var i=this._dynamicOverlays.filter(function(pe){return pe.shouldRender()}),l=0,c=i.length;l<c;l++){var N=i[l];N.prepareRender(e),N.onDidRender()}},n.prototype.render=function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)},n.prototype._viewOverlaysRender=function(e){this._visibleLines.renderLines(e.viewportData)},n}(X),hn=function(){function O(n,e){this._configuration=n,this._lineHeight=this._configuration.options.get(49),this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}return O.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},O.prototype.setDomNode=function(n){this._domNode=Object(I.b)(n)},O.prototype.onContentChanged=function(){},O.prototype.onTokensChanged=function(){},O.prototype.onConfigurationChanged=function(n){this._lineHeight=this._configuration.options.get(49)},O.prototype.renderLine=function(n,e,i,l){for(var c="",N=0,pe=this._dynamicOverlays.length;N<pe;N++){var ue=this._dynamicOverlays[N];c+=ue.render(i.startLineNumber,n)}return this._renderedContent===c?!1:(this._renderedContent=c,l.appendASCIIString('<div style="position:absolute;top:'),l.appendASCIIString(String(e)),l.appendASCIIString("px;width:100%;height:"),l.appendASCIIString(String(this._lineHeight)),l.appendASCIIString('px;">'),l.appendASCIIString(c),l.appendASCIIString("</div>"),!0)},O.prototype.layoutLine=function(n,e){this._domNode&&(this._domNode.setTop(e),this._domNode.setHeight(this._lineHeight))},O}(),Tn=function(O){Xt(n,O);function n(e){var i=O.call(this,e)||this,l=i._context.configuration.options,c=l.get(107);return i._contentWidth=c.contentWidth,i.domNode.setHeight(0),i}return n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,l=i.get(107);return this._contentWidth=l.contentWidth,O.prototype.onConfigurationChanged.call(this,e)||!0},n.prototype.onScrollChanged=function(e){return O.prototype.onScrollChanged.call(this,e)||e.scrollWidthChanged},n.prototype._viewOverlaysRender=function(e){O.prototype._viewOverlaysRender.call(this,e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))},n}(ln),pn=function(O){Xt(n,O);function n(e){var i=O.call(this,e)||this,l=i._context.configuration.options,c=l.get(107);return i._contentLeft=c.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),G.a.applyFontInfo(i.domNode,l.get(34)),i}return n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;G.a.applyFontInfo(this.domNode,i.get(34));var l=i.get(107);return this._contentLeft=l.contentLeft,O.prototype.onConfigurationChanged.call(this,e)||!0},n.prototype.onScrollChanged=function(e){return O.prototype.onScrollChanged.call(this,e)||e.scrollHeightChanged},n.prototype._viewOverlaysRender=function(e){O.prototype._viewOverlaysRender.call(this,e);var i=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(i),this.domNode.setWidth(this._contentLeft)},n}(ln),Nn=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),In=function(){function O(n,e){this.top=n,this.left=e}return O}(),Oe=function(O){Nn(n,O);function n(e,i){var l=O.call(this,e)||this;return l._viewDomNode=i,l._widgets={},l.domNode=Object(I.b)(document.createElement("div")),ce.write(l.domNode,1),l.domNode.setClassName("contentWidgets"),l.domNode.setPosition("absolute"),l.domNode.setTop(0),l.overflowingContentWidgetsDomNode=Object(I.b)(document.createElement("div")),ce.write(l.overflowingContentWidgetsDomNode,2),l.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),l}return n.prototype.dispose=function(){O.prototype.dispose.call(this),this._widgets={}},n.prototype.onConfigurationChanged=function(e){for(var i=Object.keys(this._widgets),l=0,c=i;l<c.length;l++){var N=c[l];this._widgets[N].onConfigurationChanged(e)}return!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLineMappingChanged=function(e){for(var i=Object.keys(this._widgets),l=0,c=i;l<c.length;l++){var N=c[l];this._widgets[N].onLineMappingChanged(e)}return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return!0},n.prototype.onZonesChanged=function(e){return!0},n.prototype.addWidget=function(e){var i=new j(this._context,this._viewDomNode,e);this._widgets[i.id]=i,i.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(i.domNode):this.domNode.appendChild(i.domNode),this.setShouldRender()},n.prototype.setWidgetPosition=function(e,i,l){var c=this._widgets[e.getId()];c.setPosition(i,l),this.setShouldRender()},n.prototype.removeWidget=function(e){var i=e.getId();if(this._widgets.hasOwnProperty(i)){var l=this._widgets[i];delete this._widgets[i];var c=l.domNode.domNode;c.parentNode.removeChild(c),c.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},n.prototype.shouldSuppressMouseDownOnWidget=function(e){return this._widgets.hasOwnProperty(e)?this._widgets[e].suppressMouseDown:!1},n.prototype.onBeforeRender=function(e){for(var i=Object.keys(this._widgets),l=0,c=i;l<c.length;l++){var N=c[l];this._widgets[N].onBeforeRender(e)}},n.prototype.prepareRender=function(e){for(var i=Object.keys(this._widgets),l=0,c=i;l<c.length;l++){var N=c[l];this._widgets[N].prepareRender(e)}},n.prototype.render=function(e){for(var i=Object.keys(this._widgets),l=0,c=i;l<c.length;l++){var N=c[l];this._widgets[N].render(e)}},n}(X),j=function(){function O(n,e,i){this._context=n,this._viewDomNode=e,this._actual=i,this.domNode=Object(I.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var l=this._context.configuration.options,c=l.get(107);this._fixedOverflowWidgets=l.get(29),this._contentWidth=c.contentWidth,this._contentLeft=c.contentLeft,this._lineHeight=l.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 O.prototype.onConfigurationChanged=function(n){var e=this._context.configuration.options;if(this._lineHeight=e.get(49),n.hasChanged(107)){var i=e.get(107);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}},O.prototype.onLineMappingChanged=function(n){this._setPosition(this._range)},O.prototype._setPosition=function(n){if(this._range=n,this._viewRange=null,this._range){var e=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(e.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(e.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(e))}},O.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},O.prototype.setPosition=function(n,e){this._setPosition(n),this._preference=e,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},O.prototype._layoutBoxInViewport=function(n,e,i,l,c){var N=n.top,pe=N,ue=e.top+this._lineHeight,ze=c.viewportHeight-ue,st=N-l,ft=pe>=l,y=ue,d=ze>=l,u=n.left,C=e.left;return u+i>c.scrollLeft+c.viewportWidth&&(u=c.scrollLeft+c.viewportWidth-i),C+i>c.scrollLeft+c.viewportWidth&&(C=c.scrollLeft+c.viewportWidth-i),u<c.scrollLeft&&(u=c.scrollLeft),C<c.scrollLeft&&(C=c.scrollLeft),{fitsAbove:ft,aboveTop:st,aboveLeft:u,fitsBelow:d,belowTop:y,belowLeft:C}},O.prototype._layoutHorizontalSegmentInPage=function(n,e,i,l){var c=Math.max(0,e.left-l),N=Math.min(e.left+e.width+l,n.width),pe=e.left+i-ne.d.scrollX;if(pe+l>N){var ue=pe-(N-l);pe-=ue,i-=ue}if(pe<c){var ue=pe-c;pe-=ue,i-=ue}return[i,pe]},O.prototype._layoutBoxInPage=function(n,e,i,l,c){var N=n.top-l,pe=e.top+this._lineHeight,ue=ne.B(this._viewDomNode.domNode),ze=ue.top+N-ne.d.scrollY,st=ue.top+pe-ne.d.scrollY,ft=ne.x(document.body),y=this._layoutHorizontalSegmentInPage(ft,ue,n.left-c.scrollLeft+this._contentLeft,i),d=y[0],u=y[1],C=this._layoutHorizontalSegmentInPage(ft,ue,e.left-c.scrollLeft+this._contentLeft,i),w=C[0],b=C[1],Q=22,ke=22,rt=ze>=Q,Ie=st+l<=ft.height-ke;return this._fixedOverflowWidgets?{fitsAbove:rt,aboveTop:Math.max(ze,Q),aboveLeft:u,fitsBelow:Ie,belowTop:st,belowLeft:b}:{fitsAbove:rt,aboveTop:Math.max(N,Q),aboveLeft:d,fitsBelow:Ie,belowTop:pe,belowLeft:w}},O.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(n){return new In(n.top,n.left+this._contentLeft)},O.prototype._getTopAndBottomLeft=function(n){if(!this._viewRange)return[null,null];var e=n.linesVisibleRangesForRange(this._viewRange,!1);if(!e||e.length===0)return[null,null];for(var i=e[0],l=e[0],c=0,N=e;c<N.length;c++){var pe=N[c];pe.lineNumber<i.lineNumber&&(i=pe),pe.lineNumber>l.lineNumber&&(l=pe)}for(var ue=1073741824,ze=0,st=i.ranges;ze<st.length;ze++){var ft=st[ze];ft.left<ue&&(ue=ft.left)}for(var y=1073741824,d=0,u=l.ranges;d<u.length;d++){var ft=u[d];ft.left<y&&(y=ft.left)}var C=n.getVerticalOffsetForLineNumber(i.lineNumber)-n.scrollTop,w=new In(C,ue),b=n.getVerticalOffsetForLineNumber(l.lineNumber)-n.scrollTop,Q=new In(b,y);return[w,Q]},O.prototype._prepareRenderWidget=function(n){var e=this._getTopAndBottomLeft(n),i=e[0],l=e[1];if(!i||!l)return null;if(this._cachedDomNodeClientWidth===-1||this._cachedDomNodeClientHeight===-1){var c=this.domNode.domNode;this._cachedDomNodeClientWidth=c.clientWidth,this._cachedDomNodeClientHeight=c.clientHeight}var N;if(this.allowEditorOverflow?N=this._layoutBoxInPage(i,l,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,n):N=this._layoutBoxInViewport(i,l,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,n),this._preference)for(var pe=1;pe<=2;pe++)for(var ue=0,ze=this._preference;ue<ze.length;ue++){var st=ze[ue];if(st===1){if(!N)return null;if(pe===2||N.fitsAbove)return new In(N.aboveTop,N.aboveLeft)}else if(st===2){if(!N)return null;if(pe===2||N.fitsBelow)return new In(N.belowTop,N.belowLeft)}else return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i}return null},O.prototype.onBeforeRender=function(n){!this._viewRange||!this._preference||this._viewRange.endLineNumber<n.startLineNumber||this._viewRange.startLineNumber>n.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)},O.prototype.prepareRender=function(n){this._renderData=this._prepareRenderWidget(n)},O.prototype.render=function(n){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"));return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+n.scrollTop-n.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)},O}(),ae=o("kw+w"),Fe=o("6OMU"),qe=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ct=!0,wt=function(O){qe(n,O);function n(e){var i=O.call(this)||this;i._context=e;var l=i._context.configuration.options,c=l.get(107);return i._lineHeight=l.get(49),i._renderLineHighlight=l.get(72),i._contentLeft=c.contentLeft,i._contentWidth=c.contentWidth,i._selectionIsEmpty=!0,i._cursorLineNumbers=[],i._selections=[],i._renderData=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),O.prototype.dispose.call(this)},n.prototype._readFromSelections=function(){var e=!1,i=ct?this._selections.slice(0,1):this._selections,l=i.map(function(N){return N.positionLineNumber});l.sort(function(N,pe){return N-pe}),Fe.g(this._cursorLineNumbers,l)||(this._cursorLineNumbers=l,e=!0);var c=i.every(function(N){return N.isEmpty()});return this._selectionIsEmpty!==c&&(this._selectionIsEmpty=c,e=!0),e},n.prototype.onThemeChanged=function(e){return this._readFromSelections()},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,l=i.get(107);return this._lineHeight=i.get(49),this._renderLineHighlight=i.get(72),this._contentLeft=l.contentLeft,this._contentWidth=l.contentWidth,!0},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._readFromSelections()},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollWidthChanged||e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.prepareRender=function(e){if(!this._shouldRenderThis()){this._renderData=null;return}for(var i=this._renderOne(e),l=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,N=this._cursorLineNumbers.length,pe=0,ue=[],ze=l;ze<=c;ze++){for(var st=ze-l;pe<N&&this._cursorLineNumbers[pe]<ze;)pe++;pe<N&&this._cursorLineNumbers[pe]===ze?ue[st]=i:ue[st]=""}this._renderData=ue},n.prototype.render=function(e,i){if(!this._renderData)return"";var l=i-e;return l>=this._renderData.length?"":this._renderData[l]},n}(Ut),Ge=function(O){qe(n,O);function n(){return O!==null&&O.apply(this,arguments)||this}return n.prototype._renderOne=function(e){var i="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'<div class="'+i+'" style="width:'+Math.max(e.scrollWidth,this._contentWidth)+"px; height:"+this._lineHeight+'px;"></div>'},n.prototype._shouldRenderThis=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},n.prototype._shouldRenderOther=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},n}(wt),le=function(O){qe(n,O);function n(){return O!==null&&O.apply(this,arguments)||this}return n.prototype._renderOne=function(e){var i="current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"");return'<div class="'+i+'" style="width:'+this._contentLeft+"px; height:"+this._lineHeight+'px;"></div>'},n.prototype._shouldRenderThis=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},n.prototype._shouldRenderOther=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},n}(wt);Object(tt.e)(function(O,n){ct=!1;var e=O.getColor(tn.h);if(e&&(n.addRule(".monaco-editor .view-overlays .current-line { background-color: "+e+"; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+e+"; border: none; }")),!e||e.isTransparent()||O.defines(tn.i)){var i=O.getColor(tn.i);i&&(ct=!0,n.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),O.type==="hc"&&(n.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});var Y=o("Vtyv"),Ve=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),at=function(O){Ve(n,O);function n(e){var i=O.call(this)||this;i._context=e;var l=i._context.configuration.options;return i._lineHeight=l.get(49),i._typicalHalfwidthCharacterWidth=l.get(34).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,O.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.prepareRender=function(e){for(var i=e.getDecorationsInViewport(),l=[],c=0,N=0,pe=i.length;N<pe;N++){var ue=i[N];ue.options.className&&(l[c++]=ue)}l=l.sort(function(u,C){if(u.options.zIndex<C.options.zIndex)return-1;if(u.options.zIndex>C.options.zIndex)return 1;var w=u.options.className,b=C.options.className;return w<b?-1:w>b?1:Me.a.compareRangesUsingStarts(u.range,C.range)});for(var ze=e.visibleRange.startLineNumber,st=e.visibleRange.endLineNumber,ft=[],y=ze;y<=st;y++){var d=y-ze;ft[d]=""}this._renderWholeLineDecorations(e,l,ft),this._renderNormalDecorations(e,l,ft),this._renderResult=ft},n.prototype._renderWholeLineDecorations=function(e,i,l){for(var c=String(this._lineHeight),N=e.visibleRange.startLineNumber,pe=e.visibleRange.endLineNumber,ue=0,ze=i.length;ue<ze;ue++){var st=i[ue];if(!!st.options.isWholeLine)for(var ft='<div class="cdr '+st.options.className+'" style="left:0;width:100%;height:'+c+'px;"></div>',y=Math.max(st.range.startLineNumber,N),d=Math.min(st.range.endLineNumber,pe),u=y;u<=d;u++){var C=u-N;l[C]+=ft}}},n.prototype._renderNormalDecorations=function(e,i,l){for(var c=String(this._lineHeight),N=e.visibleRange.startLineNumber,pe=null,ue=!1,ze=null,st=0,ft=i.length;st<ft;st++){var y=i[st];if(!y.options.isWholeLine){var d=y.options.className,u=Boolean(y.options.showIfCollapsed),C=y.range;if(u&&C.endColumn===1&&C.endLineNumber!==C.startLineNumber&&(C=new Me.a(C.startLineNumber,C.startColumn,C.endLineNumber-1,this._context.model.getLineMaxColumn(C.endLineNumber-1))),pe===d&&ue===u&&Me.a.areIntersectingOrTouching(ze,C)){ze=Me.a.plusRange(ze,C);continue}pe!==null&&this._renderNormalDecoration(e,ze,pe,ue,c,N,l),pe=d,ue=u,ze=C}}pe!==null&&this._renderNormalDecoration(e,ze,pe,ue,c,N,l)},n.prototype._renderNormalDecoration=function(e,i,l,c,N,pe,ue){var ze=e.linesVisibleRangesForRange(i,l==="findMatch");if(!!ze)for(var st=0,ft=ze.length;st<ft;st++){var y=ze[st];if(!y.outsideRenderedLine){var d=y.lineNumber-pe;if(c&&y.ranges.length===1){var u=y.ranges[0];u.width===0&&(y.ranges[0]=new se(u.left,this._typicalHalfwidthCharacterWidth))}for(var C=0,w=y.ranges.length;C<w;C++){var b=y.ranges[C],Q='<div class="cdr '+l+'" style="left:'+String(b.left)+"px;width:"+String(b.width)+"px;height:"+N+'px;"></div>';ue[d]+=Q}}}},n.prototype.render=function(e,i){if(!this._renderResult)return"";var l=i-e;return l<0||l>=this._renderResult.length?"":this._renderResult[l]},n}(Ut),et=o("GJhM"),J=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),be=function(O){J(n,O);function n(e,i,l,c){var N=O.call(this,e)||this,pe=N._context.configuration.options,ue=pe.get(78),ze=pe.get(56),st=pe.get(27),ft={listenOnDomNode:l.domNode,className:"editor-scrollable "+Object(tt.d)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:ue.vertical,horizontal:ue.horizontal,verticalHasArrows:ue.verticalHasArrows,horizontalHasArrows:ue.horizontalHasArrows,verticalScrollbarSize:ue.verticalScrollbarSize,verticalSliderSize:ue.verticalSliderSize,horizontalScrollbarSize:ue.horizontalScrollbarSize,horizontalSliderSize:ue.horizontalSliderSize,handleMouseWheel:ue.handleMouseWheel,alwaysConsumeMouseWheel:ue.alwaysConsumeMouseWheel,arrowSize:ue.arrowSize,mouseWheelScrollSensitivity:ze,fastScrollSensitivity:st};N.scrollbar=N._register(new et.c(i.domNode,ft,N._context.viewLayout.getScrollable())),ce.write(N.scrollbar.getDomNode(),5),N.scrollbarDomNode=Object(I.b)(N.scrollbar.getDomNode()),N.scrollbarDomNode.setPosition("absolute"),N._setLayout();var y=function(u,C,w){var b={};if(C){var Q=u.scrollTop;Q&&(b.scrollTop=N._context.viewLayout.getCurrentScrollTop()+Q,u.scrollTop=0)}if(w){var ke=u.scrollLeft;ke&&(b.scrollLeft=N._context.viewLayout.getCurrentScrollLeft()+ke,u.scrollLeft=0)}N._context.viewLayout.setScrollPositionNow(b)};return N._register(ne.i(l.domNode,"scroll",function(d){return y(l.domNode,!0,!0)})),N._register(ne.i(i.domNode,"scroll",function(d){return y(i.domNode,!0,!1)})),N._register(ne.i(c.domNode,"scroll",function(d){return y(c.domNode,!0,!1)})),N._register(ne.i(N.scrollbarDomNode.domNode,"scroll",function(d){return y(N.scrollbarDomNode.domNode,!0,!1)})),N}return n.prototype.dispose=function(){O.prototype.dispose.call(this)},n.prototype._setLayout=function(){var e=this._context.configuration.options,i=e.get(107);this.scrollbarDomNode.setLeft(i.contentLeft);var l=e.get(54),c=l.side;c==="right"?this.scrollbarDomNode.setWidth(i.contentWidth+i.minimapWidth):this.scrollbarDomNode.setWidth(i.contentWidth),this.scrollbarDomNode.setHeight(i.height)},n.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},n.prototype.getDomNode=function(){return this.scrollbarDomNode},n.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},n.prototype.onConfigurationChanged=function(e){if(e.hasChanged(78)||e.hasChanged(56)||e.hasChanged(27)){var i=this._context.configuration.options,l=i.get(78),c=i.get(56),N=i.get(27),pe={handleMouseWheel:l.handleMouseWheel,mouseWheelScrollSensitivity:c,fastScrollSensitivity:N};this.scrollbar.updateOptions(pe)}return e.hasChanged(107)&&this._setLayout(),!0},n.prototype.onScrollChanged=function(e){return!0},n.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(tt.d)(this._context.theme.type)),!0},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this.scrollbar.renderNow()},n}(X),Le=o("hHjc"),it=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Je=function(){function O(n,e,i){this.startLineNumber=+n,this.endLineNumber=+e,this.className=String(i)}return O}(),Be=function(O){it(n,O);function n(){return O!==null&&O.apply(this,arguments)||this}return n.prototype._render=function(e,i,l){for(var c=[],N=e;N<=i;N++){var pe=N-e;c[pe]=[]}if(l.length===0)return c;l.sort(function(b,Q){return b.className===Q.className?b.startLineNumber===Q.startLineNumber?b.endLineNumber-Q.endLineNumber:b.startLineNumber-Q.startLineNumber:b.className<Q.className?-1:1});for(var ue=null,ze=0,st=0,ft=l.length;st<ft;st++){var y=l[st],d=y.className,u=Math.max(y.startLineNumber,e)-e,C=Math.min(y.endLineNumber,i)-e;ue===d?(u=Math.max(ze+1,u),ze=Math.max(ze,C)):(ue=d,ze=C);for(var w=u;w<=ze;w++)c[w].push(ue)}return c},n}(Ut),bt=function(O){it(n,O);function n(e){var i=O.call(this)||this;i._context=e;var l=i._context.configuration.options,c=l.get(107);return i._lineHeight=l.get(49),i._glyphMargin=l.get(40),i._glyphMarginLeft=c.glyphMarginLeft,i._glyphMarginWidth=c.glyphMarginWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,O.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,l=i.get(107);return this._lineHeight=i.get(49),this._glyphMargin=i.get(40),this._glyphMarginLeft=l.glyphMarginLeft,this._glyphMarginWidth=l.glyphMarginWidth,!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getDecorations=function(e){for(var i=e.getDecorationsInViewport(),l=[],c=0,N=0,pe=i.length;N<pe;N++){var ue=i[N],ze=ue.options.glyphMarginClassName;ze&&(l[c++]=new Je(ue.range.startLineNumber,ue.range.endLineNumber,ze))}return l},n.prototype.prepareRender=function(e){if(!this._glyphMargin){this._renderResult=null;return}for(var i=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,c=this._render(i,l,this._getDecorations(e)),N=this._lineHeight.toString(),pe=this._glyphMarginLeft.toString(),ue=this._glyphMarginWidth.toString(),ze='" style="left:'+pe+"px;width:"+ue+"px;height:"+N+'px;"></div>',st=[],ft=i;ft<=l;ft++){var y=ft-i,d=c[y];d.length===0?st[y]="":st[y]='<div class="cgmr codicon '+d.join(" ")+ze}this._renderResult=st},n.prototype.render=function(e,i){if(!this._renderResult)return"";var l=i-e;return l<0||l>=this._renderResult.length?"":this._renderResult[l]},n}(Be),Lt=o("C6rC"),$t=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Tt=function(O){$t(n,O);function n(e){var i=O.call(this)||this;i._context=e,i._primaryLineNumber=0;var l=i._context.configuration.options,c=l.get(108),N=l.get(34);return i._lineHeight=l.get(49),i._spaceWidth=N.spaceWidth,i._enabled=l.get(70),i._activeIndentEnabled=l.get(43),i._maxIndentLeft=c.wrappingColumn===-1?-1:c.wrappingColumn*N.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,O.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,l=i.get(108),c=i.get(34);return this._lineHeight=i.get(49),this._spaceWidth=c.spaceWidth,this._enabled=i.get(70),this._activeIndentEnabled=i.get(43),this._maxIndentLeft=l.wrappingColumn===-1?-1:l.wrappingColumn*c.typicalHalfwidthCharacterWidth,!0},n.prototype.onCursorStateChanged=function(e){var i=e.selections[0],l=i.isEmpty()?i.positionLineNumber:0;return this._primaryLineNumber!==l?(this._primaryLineNumber=l,!0):!1},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.onLanguageConfigurationChanged=function(e){return!0},n.prototype.prepareRender=function(e){if(!this._enabled){this._renderResult=null;return}var i=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,c=this._context.model.getOptions().indentSize,N=c*this._spaceWidth,pe=e.scrollWidth,ue=this._lineHeight,ze=this._context.model.getLinesIndentGuides(i,l),st=0,ft=0,y=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var d=this._context.model.getActiveIndentGuide(this._primaryLineNumber,i,l);st=d.startLineNumber,ft=d.endLineNumber,y=d.indent}for(var u=[],C=i;C<=l;C++){var w=st<=C&&C<=ft,b=C-i,Q=ze[b],ke="";if(Q>=1)for(var rt=e.visibleRangeForPosition(new me.a(C,1)),Ie=rt?rt.left:0,lt=1;lt<=Q;lt++){var Pt=w&&lt===y?"cigra":"cigr";if(ke+='<div class="'+Pt+'" style="left:'+Ie+"px;height:"+ue+"px;width:"+N+'px"></div>',Ie+=N,Ie>pe||this._maxIndentLeft>0&&Ie>this._maxIndentLeft)break}u[b]=ke}this._renderResult=u},n.prototype.render=function(e,i){if(!this._renderResult)return"";var l=i-e;return l<0||l>=this._renderResult.length?"":this._renderResult[l]},n}(Ut);Object(tt.e)(function(O,n){var e=O.getColor(tn.g);e&&n.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+e+" inset; }");var i=O.getColor(tn.a)||e;i&&n.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")});var Bt=o("OKK6"),fn=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Cn=function(){function O(){this._currentVisibleRange=new Me.a(1,1,1,1)}return O.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},O.prototype.setCurrentVisibleRange=function(n){this._currentVisibleRange=n},O}(),vn=function(){function O(n,e,i,l,c,N){this.lineNumber=n,this.startColumn=e,this.endColumn=i,this.startScrollTop=l,this.stopScrollTop=c,this.scrollType=N}return O}(),Hn=function(O){fn(n,O);function n(e,i){var l=O.call(this,e)||this;l._linesContent=i,l._textRangeRestingSpot=document.createElement("div"),l._visibleLines=new Wt(l),l.domNode=l._visibleLines.domNode;var c=l._context.configuration,N=l._context.configuration.options,pe=N.get(34),ue=N.get(108);return l._lineHeight=N.get(49),l._typicalHalfwidthCharacterWidth=pe.typicalHalfwidthCharacterWidth,l._isViewportWrapping=ue.isViewportWrapping,l._revealHorizontalRightPadding=N.get(75),l._cursorSurroundingLines=N.get(19),l._cursorSurroundingLinesStyle=N.get(20),l._canUseLayerHinting=!N.get(22),l._viewLineOptions=new Xe(c,l._context.theme.type),ce.write(l.domNode,7),l.domNode.setClassName("view-lines"),G.a.applyFontInfo(l.domNode,pe),l._maxLineWidth=0,l._asyncUpdateLineWidths=new U.d(function(){l._updateLineWidthsSlow()},200),l._lastRenderedData=new Cn,l._horizontalRevealRequest=null,l}return n.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),O.prototype.dispose.call(this)},n.prototype.getDomNode=function(){return this.domNode},n.prototype.createVisibleLine=function(){return new Ze(this._viewLineOptions)},n.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(108)&&(this._maxLineWidth=0);var i=this._context.configuration.options,l=i.get(34),c=i.get(108);return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=l.typicalHalfwidthCharacterWidth,this._isViewportWrapping=c.isViewportWrapping,this._revealHorizontalRightPadding=i.get(75),this._cursorSurroundingLines=i.get(19),this._cursorSurroundingLinesStyle=i.get(20),this._canUseLayerHinting=!i.get(22),G.a.applyFontInfo(this.domNode,l),this._onOptionsMaybeChanged(),e.hasChanged(107)&&(this._maxLineWidth=0),!0},n.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,i=new Xe(e,this._context.theme.type);if(!this._viewLineOptions.equals(i)){this._viewLineOptions=i;for(var l=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber(),N=l;N<=c;N++){var pe=this._visibleLines.getVisibleLine(N);pe.onOptionsChanged(this._viewLineOptions)}return!0}return!1},n.prototype.onCursorStateChanged=function(e){for(var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),c=!1,N=i;N<=l;N++)c=this._visibleLines.getVisibleLine(N).onSelectionChanged()||c;return c},n.prototype.onDecorationsChanged=function(e){for(var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),c=i;c<=l;c++)this._visibleLines.getVisibleLine(c).onDecorationsChanged();return!0},n.prototype.onFlushed=function(e){var i=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,i},n.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},n.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},n.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},n.prototype.onRevealRangeRequest=function(e){var i=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.verticalType),l=this._context.viewLayout.validateScrollPosition({scrollTop:i});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?l={scrollTop:l.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new vn(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),l.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var c=Math.abs(this._context.viewLayout.getCurrentScrollTop()-l.scrollTop);return e.scrollType===0&&c>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(l):this._context.viewLayout.setScrollPositionNow(l),!0},n.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var i=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),l=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<i||e.scrollTop>l)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},n.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},n.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},n.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},n.prototype.getPositionFromDOMInfo=function(e,i){var l=this._getViewLineDomNode(e);if(l===null)return null;var c=this._getLineNumberFor(l);if(c===-1||c<1||c>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(c)===1)return new me.a(c,1);var N=this._visibleLines.getStartLineNumber(),pe=this._visibleLines.getEndLineNumber();if(c<N||c>pe)return null;var ue=this._visibleLines.getVisibleLine(c).getColumnOfNodeOffset(c,e,i),ze=this._context.model.getLineMinColumn(c);return ue<ze&&(ue=ze),new me.a(c,ue)},n.prototype._getViewLineDomNode=function(e){for(;e&&e.nodeType===1;){if(e.className===Ze.CLASS_NAME)return e;e=e.parentElement}return null},n.prototype._getLineNumberFor=function(e){for(var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),c=i;c<=l;c++){var N=this._visibleLines.getVisibleLine(c);if(e===N.getDomNode())return c}return-1},n.prototype.getLineWidth=function(e){var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber();return e<i||e>l?-1:this._visibleLines.getVisibleLine(e).getWidth()},n.prototype.linesVisibleRangesForRange=function(e,i){if(this.shouldRender())return null;var l=e.endLineNumber,c=Me.a.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!c)return null;var N=[],pe=0,ue=new Ye(this.domNode.domNode,this._textRangeRestingSpot),ze=0;i&&(ze=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new me.a(c.startLineNumber,1)).lineNumber);for(var st=this._visibleLines.getStartLineNumber(),ft=this._visibleLines.getEndLineNumber(),y=c.startLineNumber;y<=c.endLineNumber;y++)if(!(y<st||y>ft)){var d=y===c.startLineNumber?c.startColumn:1,u=y===c.endLineNumber?c.endColumn:this._context.model.getLineMaxColumn(y),C=this._visibleLines.getVisibleLine(y).getVisibleRangesForRange(d,u,ue);if(!!C){if(i&&y<l){var w=ze;ze=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new me.a(y+1,1)).lineNumber,w!==ze&&(C.ranges[C.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}N[pe++]=new de(C.outsideRenderedLine,y,C.ranges)}}return pe===0?null:N},n.prototype._visibleRangesForLineRange=function(e,i,l){return this.shouldRender()||e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(i,l,new Ye(this.domNode.domNode,this._textRangeRestingSpot))},n.prototype.visibleRangeForPosition=function(e){var i=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return i?new he(i.outsideRenderedLine,i.ranges[0].left):null},n.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},n.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},n.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},n.prototype._updateLineWidths=function(e){for(var i=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),c=1,N=!0,pe=i;pe<=l;pe++){var ue=this._visibleLines.getVisibleLine(pe);if(e&&!ue.getWidthIsFast()){N=!1;continue}c=Math.max(c,ue.getWidth())}return N&&i===1&&l===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(c),N},n.prototype.prepareRender=function(){throw new Error("Not supported")},n.prototype.render=function(){throw new Error("Not supported")},n.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.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,l=this._horizontalRevealRequest.startColumn,c=this._horizontalRevealRequest.endColumn,N=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=i&&i<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var pe=this._computeScrollLeftToRevealRange(i,l,c),ue=this._isViewportWrapping;ue||this._ensureMaxLineWidth(pe.maxHorizontalOffset),N===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:pe.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:pe.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var ze=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-ze),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},n.prototype._ensureMaxLineWidth=function(e){var i=Math.ceil(e);this._maxLineWidth<i&&(this._maxLineWidth=i,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},n.prototype._computeScrollTopToRevealRange=function(e,i,l,c){var N=e.top,pe=e.height,ue=N+pe,ze,st;ze=this._context.viewLayout.getVerticalOffsetForLineNumber(l.startLineNumber),st=this._context.viewLayout.getVerticalOffsetForLineNumber(l.endLineNumber)+this._lineHeight;var ft=i==="mouse"&&this._cursorSurroundingLinesStyle==="default";if(!ft){var y=Math.min(pe/this._lineHeight/2,this._cursorSurroundingLines);ze-=y*this._lineHeight,st+=Math.max(0,y-1)*this._lineHeight}(c===0||c===4)&&(st+=this._lineHeight);var d;if(st-ze>pe)d=ze;else if(c===1||c===2)if(c===2&&N<=ze&&st<=ue)d=N;else{var u=(ze+st)/2;d=Math.max(0,u-pe/2)}else d=this._computeMinimumScrolling(N,ue,ze,st,c===3,c===4);return d},n.prototype._computeScrollLeftToRevealRange=function(e,i,l){var c=0,N=this._context.viewLayout.getCurrentViewport(),pe=N.left,ue=pe+N.width,ze=this._visibleRangesForLineRange(e,i,l),st=1073741824,ft=0;if(!ze)return{scrollLeft:pe,maxHorizontalOffset:c};for(var y=0,d=ze.ranges;y<d.length;y++){var u=d[y];u.left<st&&(st=u.left),u.left+u.width>ft&&(ft=u.left+u.width)}c=ft,st=Math.max(0,st-n.HORIZONTAL_EXTRA_PX),ft+=this._revealHorizontalRightPadding;var C=this._computeMinimumScrolling(pe,ue,st,ft);return{scrollLeft:C,maxHorizontalOffset:c}},n.prototype._computeMinimumScrolling=function(e,i,l,c,N,pe){e=e|0,i=i|0,l=l|0,c=c|0,N=!!N,pe=!!pe;var ue=i-e,ze=c-l;if(ze<ue){if(N)return l;if(pe)return Math.max(0,c-ue);if(l<e)return l;if(c>i)return Math.max(0,c-ue)}else return l;return e},n.HORIZONTAL_EXTRA_PX=30,n}(X),Yn=o("J+ZK"),Zn=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vi=function(O){Zn(n,O);function n(e){var i=O.call(this)||this;i._context=e;var l=i._context.configuration.options,c=l.get(107);return i._decorationsLeft=c.decorationsLeft,i._decorationsWidth=c.decorationsWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,O.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,l=i.get(107);return this._decorationsLeft=l.decorationsLeft,this._decorationsWidth=l.decorationsWidth,!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getDecorations=function(e){for(var i=e.getDecorationsInViewport(),l=[],c=0,N=0,pe=i.length;N<pe;N++){var ue=i[N],ze=ue.options.linesDecorationsClassName;ze&&(l[c++]=new Je(ue.range.startLineNumber,ue.range.endLineNumber,ze))}return l},n.prototype.prepareRender=function(e){for(var i=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,c=this._render(i,l,this._getDecorations(e)),N=this._decorationsLeft.toString(),pe=this._decorationsWidth.toString(),ue='" style="left:'+N+"px;width:"+pe+'px;"></div>',ze=[],st=i;st<=l;st++){for(var ft=st-i,y=c[ft],d="",u=0,C=y.length;u<C;u++)d+='<div class="cldr '+y[u]+ue;ze[ft]=d}this._renderResult=ze},n.prototype.render=function(e,i){return this._renderResult?this._renderResult[i-e]:""},n}(Be),ii=o("XXBq"),Ai=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),lr=function(O){Ai(n,O);function n(e){var i=O.call(this)||this;return i._context=e,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,O.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){return!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getDecorations=function(e){for(var i=e.getDecorationsInViewport(),l=[],c=0,N=0,pe=i.length;N<pe;N++){var ue=i[N],ze=ue.options.marginClassName;ze&&(l[c++]=new Je(ue.range.startLineNumber,ue.range.endLineNumber,ze))}return l},n.prototype.prepareRender=function(e){for(var i=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,c=this._render(i,l,this._getDecorations(e)),N=[],pe=i;pe<=l;pe++){for(var ue=pe-i,ze=c[ue],st="",ft=0,y=ze.length;ft<y;ft++)st+='<div class="cmdr '+ze[ft]+'" style=""></div>';N[ue]=st}this._renderResult=N},n.prototype.render=function(e,i){return this._renderResult?this._renderResult[i-e]:""},n}(Be),er=o("8gvo"),tr=function(){function O(n,e,i,l){this.r=O._clamp(n),this.g=O._clamp(e),this.b=O._clamp(i),this.a=O._clamp(l)}return O._clamp=function(n){return n<0?0:n>255?255:n|0},O.Empty=new O(0,0,0,0),O}(),Un=o("twdY"),Hr=function(){function O(){var n=this;this._onDidChange=new F.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),Un.y.onDidChange(function(e){e.changedColorMap&&n._updateColorMap()})}return O.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new O),this._INSTANCE},O.prototype._updateColorMap=function(){var n=Un.y.getColorMap();if(!n){this._colors=[tr.Empty],this._backgroundIsLight=!0;return}this._colors=[tr.Empty];for(var e=1;e<n.length;e++){var i=n[e].rgba;this._colors[e]=new tr(i.r,i.g,i.b,Math.round(i.a*255))}var l=n[2].getRelativeLuminance();this._backgroundIsLight=l>=.5,this._onDidChange.fire(void 0)},O.prototype.getColor=function(n){return(n<1||n>=this._colors.length)&&(n=2),this._colors[n]},O.prototype.backgroundIsLight=function(){return this._backgroundIsLight},O._INSTANCE=null,O}(),Li=o("MD5Z"),Eo=function(){for(var O=[],n=32;n<=126;n++)O.push(n);return O.push(65533),O}(),Rr=function(n,e){return n-=32,n<0||n>96?e<=2?(n+96)%96:96-1:n},Ur=function(){function O(n,e){this.scale=e,this.charDataNormal=O.soften(n,12/15),this.charDataLight=O.soften(n,50/60)}return O.soften=function(n,e){for(var i=new Uint8ClampedArray(n.length),l=0,c=n.length;l<c;l++)i[l]=n[l]*e;return i},O.prototype.renderChar=function(n,e,i,l,c,N,pe,ue){var ze=1*this.scale,st=2*this.scale;if(e+ze>n.width||i+st>n.height){console.warn("bad render request outside image data");return}for(var ft=ue?this.charDataLight:this.charDataNormal,y=Rr(l,pe),d=n.width*4,u=N.r,C=N.g,w=N.b,b=c.r-u,Q=c.g-C,ke=c.b-w,rt=n.data,Ie=y*ze*st,lt=i*d+e*4,Pt=0;Pt<st;Pt++){for(var qt=lt,en=0;en<ze;en++){var dn=ft[Ie++]/255;rt[qt++]=u+b*dn,rt[qt++]=C+Q*dn,rt[qt++]=w+ke*dn,qt++}lt+=d}},O.prototype.blockRenderChar=function(n,e,i,l,c,N){var pe=1*this.scale,ue=2*this.scale;if(e+pe>n.width||i+ue>n.height){console.warn("bad render request outside image data");return}for(var ze=n.width*4,st=.5,ft=c.r,y=c.g,d=c.b,u=l.r-ft,C=l.g-y,w=l.b-d,b=ft+u*st,Q=y+C*st,ke=d+w*st,rt=n.data,Ie=i*ze+e*4,lt=0;lt<ue;lt++){for(var Pt=Ie,qt=0;qt<pe;qt++)rt[Pt++]=b,rt[Pt++]=Q,rt[Pt++]=ke,Pt++;Ie+=ze}},O}(),Ar=o("C/vA"),eo={"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},go=function(n){for(var e=new Uint8ClampedArray(n.length/2),i=0;i<n.length;i+=2)e[i>>1]=eo[n[i]]<<4|eo[n[i+1]]&15;return e},dr={1:Object(Ar.a)(function(){return go("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")}),2:Object(Ar.a)(function(){return go("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")})},Sr=function(){function O(){}return O.create=function(n,e){if(this.lastCreated&&n===this.lastCreated.scale&&e===this.lastFontFamily)return this.lastCreated;var i;return dr[n]?i=new Ur(dr[n](),n):i=O.createFromSampleData(O.createSampleData(e).data,n),this.lastFontFamily=e,this.lastCreated=i,i},O.createSampleData=function(n){var e=document.createElement("canvas"),i=e.getContext("2d");e.style.height=16+"px",e.height=16,e.width=96*10,e.style.width=96*10+"px",i.fillStyle="#ffffff",i.font="bold "+16+"px "+n,i.textBaseline="middle";for(var l=0,c=0,N=Eo;c<N.length;c++){var pe=N[c];i.fillText(String.fromCharCode(pe),l,16/2),l+=10}return i.getImageData(0,0,96*10,16)},O.createFromSampleData=function(n,e){var i=16*10*4*96;if(n.length!==i)throw new Error("Unexpected source in MinimapCharRenderer");var l=O._downsample(n,e);return new Ur(l,e)},O._downsampleChar=function(n,e,i,l,c){for(var N=1*c,pe=2*c,ue=l,ze=0,st=0;st<pe;st++)for(var ft=st/pe*16,y=(st+1)/pe*16,d=0;d<N;d++){for(var u=d/N*10,C=(d+1)/N*10,w=0,b=0,Q=ft;Q<y;Q++)for(var ke=e+Math.floor(Q)*3840,rt=1-(Q-Math.floor(Q)),Ie=u;Ie<C;Ie++){var lt=1-(Ie-Math.floor(Ie)),Pt=ke+Math.floor(Ie)*4,qt=lt*rt;b+=qt,w+=n[Pt]*n[Pt+3]/255*qt}var en=w/b;ze=Math.max(ze,en),i[ue++]=en}return ze},O._downsample=function(n,e){for(var i=2*e*1*e,l=i*96,c=new Uint8ClampedArray(l),N=0,pe=0,ue=0,ze=0;ze<96;ze++)ue=Math.max(ue,this._downsampleChar(n,pe,c,N,e)),N+=i,pe+=10*4;if(ue>0)for(var st=255/ue,ft=0;ft<l;ft++)c[ft]*=st;return c},O}(),po=o("M1Kb"),ko=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function Oo(O,n){return O===1?2*n:(2+1)*n}function Ti(O,n){return 1*n}var zr=140,is=2,Fr=function(){function O(n){var e=this,i=n.options,l=i.get(105),c=i.get(107),N=i.get(34);this.renderMinimap=c.renderMinimap|0,this.scrollBeyondLastLine=i.get(80);var pe=i.get(54);this.showSlider=pe.showSlider,this.fontScale=Math.round(pe.scale*l),this.charRenderer=Object(Ar.a)(function(){return Sr.create(e.fontScale,N.fontFamily)}),this.pixelRatio=l,this.typicalHalfwidthCharacterWidth=N.typicalHalfwidthCharacterWidth,this.lineHeight=i.get(49),this.minimapLeft=c.minimapLeft,this.minimapWidth=c.minimapWidth,this.minimapHeight=c.height,this.canvasInnerWidth=Math.floor(l*this.minimapWidth),this.canvasInnerHeight=Math.floor(l*this.minimapHeight),this.canvasOuterWidth=this.canvasInnerWidth/l,this.canvasOuterHeight=this.canvasInnerHeight/l}return O.prototype.equals=function(n){return this.renderMinimap===n.renderMinimap&&this.scrollBeyondLastLine===n.scrollBeyondLastLine&&this.showSlider===n.showSlider&&this.pixelRatio===n.pixelRatio&&this.typicalHalfwidthCharacterWidth===n.typicalHalfwidthCharacterWidth&&this.lineHeight===n.lineHeight&&this.fontScale===n.fontScale&&this.minimapLeft===n.minimapLeft&&this.minimapWidth===n.minimapWidth&&this.minimapHeight===n.minimapHeight&&this.canvasInnerWidth===n.canvasInnerWidth&&this.canvasInnerHeight===n.canvasInnerHeight&&this.canvasOuterWidth===n.canvasOuterWidth&&this.canvasOuterHeight===n.canvasOuterHeight},O}(),rs=function(){function O(n,e,i,l,c,N,pe){this.scrollTop=n,this.scrollHeight=e,this._computedSliderRatio=i,this.sliderTop=l,this.sliderHeight=c,this.startLineNumber=N,this.endLineNumber=pe}return O.prototype.getDesiredScrollTopFromDelta=function(n){var e=this.sliderTop+n;return Math.round(e/this._computedSliderRatio)},O.prototype.getDesiredScrollTopFromTouchLocation=function(n){return Math.round((n-this.sliderHeight/2)/this._computedSliderRatio)},O.create=function(n,e,i,l,c,N,pe,ue,ze){var st=n.pixelRatio,ft=Oo(n.renderMinimap,n.fontScale),y=Math.floor(n.canvasInnerHeight/ft),d=n.lineHeight,u;if(c&&i!==N){var C=i-e+1;u=Math.floor(C*ft/st)}else{var w=l/d;u=Math.floor(w*ft/st)}var b;n.scrollBeyondLastLine?b=(N-1)*ft/st:b=Math.max(0,N*ft/st-u),b=Math.min(n.minimapHeight-u,b);var Q=b/(ue-l),ke=pe*Q,rt=0;if(n.scrollBeyondLastLine){var w=l/d;rt=w}if(y>=N+rt){var Ie=1,lt=N;return new O(pe,ue,Q,ke,u,Ie,lt)}else{var Ie=Math.max(1,Math.floor(e-ke*st/ft));ze&&ze.scrollHeight===ue&&(ze.scrollTop>pe&&(Ie=Math.min(Ie,ze.startLineNumber)),ze.scrollTop<pe&&(Ie=Math.max(Ie,ze.startLineNumber)));var lt=Math.min(N,Ie+y-1);return new O(pe,ue,Q,ke,u,Ie,lt)}},O}(),ar=function(){function O(n){this.dy=n}return O.prototype.onContentChanged=function(){this.dy=-1},O.prototype.onTokensChanged=function(){this.dy=-1},O.INVALID=new O(-1),O}(),os=function(){function O(n,e,i){this.renderedLayout=n,this._imageData=e,this._renderedLines=new Rt(function(){return ar.INVALID}),this._renderedLines._set(n.startLineNumber,i)}return O.prototype.linesEquals=function(n){if(!this.scrollEquals(n))return!1;for(var e=this._renderedLines._get(),i=e.lines,l=0,c=i.length;l<c;l++)if(i[l].dy===-1)return!1;return!0},O.prototype.scrollEquals=function(n){return this.renderedLayout.startLineNumber===n.startLineNumber&&this.renderedLayout.endLineNumber===n.endLineNumber},O.prototype._get=function(){var n=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:n.rendLineNumberStart,lines:n.lines}},O.prototype.onLinesChanged=function(n){return this._renderedLines.onLinesChanged(n.fromLineNumber,n.toLineNumber)},O.prototype.onLinesDeleted=function(n){this._renderedLines.onLinesDeleted(n.fromLineNumber,n.toLineNumber)},O.prototype.onLinesInserted=function(n){this._renderedLines.onLinesInserted(n.fromLineNumber,n.toLineNumber)},O.prototype.onTokensChanged=function(n){return this._renderedLines.onTokensChanged(n.ranges)},O}(),Do=function(){function O(n,e,i,l){this._backgroundFillData=O._createBackgroundFillData(e,i,l),this._buffers=[n.createImageData(e,i),n.createImageData(e,i)],this._lastUsedBuffer=0}return O.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var n=this._buffers[this._lastUsedBuffer];return n.data.set(this._backgroundFillData),n},O._createBackgroundFillData=function(n,e,i){for(var l=i.r,c=i.g,N=i.b,pe=new Uint8ClampedArray(n*e*4),ue=0,ze=0;ze<e;ze++)for(var st=0;st<n;st++)pe[ue]=l,pe[ue+1]=c,pe[ue+2]=N,pe[ue+3]=255,ue+=4;return pe},O}(),gn=function(O){ko(n,O);function n(e){var i=O.call(this,e)||this;return i._selections=[],i._renderDecorations=!1,i._gestureInProgress=!1,i._options=new Fr(i._context.configuration),i._lastRenderData=null,i._buffers=null,i._selectionColor=i._context.theme.getColor(Li.Hb),i._domNode=Object(I.b)(document.createElement("div")),ce.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(I.b)(document.createElement("div")),i._shadow.setClassName("minimap-shadow-hidden"),i._domNode.appendChild(i._shadow),i._canvas=Object(I.b)(document.createElement("canvas")),i._canvas.setPosition("absolute"),i._canvas.setLeft(0),i._domNode.appendChild(i._canvas),i._decorationsCanvas=Object(I.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(I.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(I.b)(document.createElement("div")),i._sliderHorizontal.setPosition("absolute"),i._sliderHorizontal.setClassName("minimap-slider-horizontal"),i._slider.appendChild(i._sliderHorizontal),i._tokensColorTracker=Hr.getInstance(),i._applyLayout(),i._mouseDownListener=ne.n(i._domNode.domNode,"mousedown",function(l){l.preventDefault();var c=i._options.renderMinimap;if(c!==0&&!!i._lastRenderData){var N=Oo(c,i._options.fontScale),pe=i._options.pixelRatio*l.browserEvent.offsetY,ue=Math.floor(pe/N),ze=ue+i._lastRenderData.renderedLayout.startLineNumber;ze=Math.min(ze,i._context.model.getLineCount()),i._context.privateViewEventBus.emit(new Gi("mouse",new Me.a(ze,1,ze,1),1,!1,0))}}),i._sliderMouseMoveMonitor=new _.a,i._sliderMouseDownListener=ne.n(i._slider.domNode,"mousedown",function(l){if(l.preventDefault(),l.stopPropagation(),l.leftButton&&i._lastRenderData){var c=l.posy,N=l.posx,pe=i._lastRenderData.renderedLayout;i._slider.toggleClassName("active",!0),i._sliderMouseMoveMonitor.startMonitoring(l.target,l.buttons,_.b,function(ue){var ze=Math.abs(ue.posx-N);if(K.h&&ze>zr){i._context.viewLayout.setScrollPositionNow({scrollTop:pe.scrollTop});return}var st=ue.posy-c;i._context.viewLayout.setScrollPositionNow({scrollTop:pe.getDesiredScrollTopFromDelta(st)})},function(){i._slider.toggleClassName("active",!1)})}}),i._gestureDisposable=D.b.addTarget(i._domNode.domNode),i._sliderTouchStartListener=ne.i(i._domNode.domNode,D.a.Start,function(l){l.preventDefault(),l.stopPropagation(),i._lastRenderData&&(i._slider.toggleClassName("active",!0),i._gestureInProgress=!0,i.scrollDueToTouchEvent(l))}),i._sliderTouchMoveListener=ne.n(i._domNode.domNode,D.a.Change,function(l){l.preventDefault(),l.stopPropagation(),i._lastRenderData&&i._gestureInProgress&&i.scrollDueToTouchEvent(l)}),i._sliderTouchEndListener=ne.n(i._domNode.domNode,D.a.End,function(l){l.preventDefault(),l.stopPropagation(),i._gestureInProgress=!1,i._slider.toggleClassName("active",!1)}),i}return n.prototype.scrollDueToTouchEvent=function(e){var i=this._domNode.domNode.getBoundingClientRect().top,l=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-i);this._context.viewLayout.setScrollPositionNow({scrollTop:l})},n.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),O.prototype.dispose.call(this)},n.prototype._getMinimapDomNodeClassName=function(){return this._options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"},n.prototype.getDomNode=function(){return this._domNode},n.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},n.prototype._getBuffer=function(){return this._buffers||this._options.canvasInnerWidth>0&&this._options.canvasInnerHeight>0&&(this._buffers=new Do(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},n.prototype._onOptionsMaybeChanged=function(){var e=new Fr(this._context.configuration);return this._options.equals(e)?!1:(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},n.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._renderDecorations=!0,!0},n.prototype.onFlushed=function(e){return this._lastRenderData=null,!0},n.prototype.onLinesChanged=function(e){return this._lastRenderData?this._lastRenderData.onLinesChanged(e):!1},n.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},n.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},n.prototype.onScrollChanged=function(e){return this._renderDecorations=!0,!0},n.prototype.onTokensChanged=function(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1},n.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0},n.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0},n.prototype.onDecorationsChanged=function(e){return this._renderDecorations=!0,!0},n.prototype.onThemeChanged=function(e){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(Li.Hb),this._renderDecorations=!0,!0},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){var i=this._options.renderMinimap;if(i===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var l=rs.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(l.sliderTop),this._slider.setHeight(l.sliderHeight);var c=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,N=Math.min(this._options.minimapWidth,Math.round(c*Ti(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(N),this._sliderHorizontal.setWidth(this._options.minimapWidth-N),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(l.sliderHeight),this.renderDecorations(l),this._lastRenderData=this.renderLines(l)},n.prototype.renderDecorations=function(e){if(this._renderDecorations){this._renderDecorations=!1;var i=this._context.model.getDecorationsInViewport(new Me.a(e.startLineNumber,1,e.endLineNumber,this._context.model.getLineMaxColumn(e.endLineNumber))),l=this._options,c=l.renderMinimap,N=l.canvasInnerWidth,pe=l.canvasInnerHeight,ue=Oo(c,this._options.fontScale),ze=Ti(c,this._options.fontScale),st=this._context.model.getOptions().tabSize,ft=this._decorationsCanvas.domNode.getContext("2d");ft.clearRect(0,0,N,pe);for(var y=new Map,d=0;d<this._selections.length;d++)for(var u=this._selections[d],C=u.startLineNumber;C<=u.endLineNumber;C++)this.renderDecorationOnLine(ft,y,u,this._selectionColor,e,C,ue,ue,st,ze);for(var d=0;d<i.length;d++){var w=i[d];if(!!w.options.minimap)for(var b=w.options.minimap.getColor(this._context.theme),C=w.range.startLineNumber;C<=w.range.endLineNumber;C++)switch(w.options.minimap.position){case po.c.Inline:this.renderDecorationOnLine(ft,y,w.range,b,e,C,ue,ue,st,ze);continue;case po.c.Gutter:var Q=(C-e.startLineNumber)*ue,ke=2;this.renderDecoration(ft,b,ke,Q,is,ue);continue}}}},n.prototype.renderDecorationOnLine=function(e,i,l,c,N,pe,ue,ze,st,ft){var y=(pe-N.startLineNumber)*ze;if(!(y+ue<0||y>this._options.canvasInnerHeight)){var d=i.get(pe),u=!d;if(!d){var C=this._context.model.getLineContent(pe);d=[_t.f];for(var w=1;w<C.length+1;w++){var b=C.charCodeAt(w-1),Q=b===9?st*ft:Kn.y(b)?2*ft:ft;d[w]=d[w-1]+Q}i.set(pe,d)}var ke=l.startColumn,rt=l.endColumn,Ie=l.startLineNumber,lt=l.endLineNumber,Pt=Ie===pe?d[ke-1]:_t.f,qt=lt>pe?d.length-1:rt-1;if(qt>0){var en=d[qt]-Pt||2;this.renderDecoration(e,c,Pt,y,en,ue)}u&&this.renderLineHighlight(e,c,y,ue)}},n.prototype.renderLineHighlight=function(e,i,l,c){e.fillStyle=i&&i.transparent(.5).toString()||"",e.fillRect(_t.f,l,e.canvas.width,c)},n.prototype.renderDecoration=function(e,i,l,c,N,pe){e.fillStyle=i&&i.toString()||"",e.fillRect(l,c,N,pe)},n.prototype.renderLines=function(e){var i=this._options.renderMinimap,l=this._options.charRenderer(),c=e.startLineNumber,N=e.endLineNumber,pe=Oo(i,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var ue=this._lastRenderData._get();return new os(e,ue.imageData,ue.lines)}var ze=this._getBuffer();if(!ze)return null;for(var st=n._renderUntouchedLines(ze,c,N,pe,this._lastRenderData),ft=st[0],y=st[1],d=st[2],u=this._context.model.getMinimapLinesRenderingData(c,N,d),C=u.tabSize,w=this._tokensColorTracker.getColor(2),b=this._tokensColorTracker.backgroundIsLight(),Q=0,ke=[],rt=0,Ie=N-c+1;rt<Ie;rt++)d[rt]&&n._renderLine(ze,w,b,i,this._tokensColorTracker,l,Q,C,u.data[rt],this._options.fontScale),ke[rt]=new ar(Q),Q+=pe;var lt=ft===-1?0:ft,Pt=y===-1?ze.height:y,qt=Pt-lt,en=this._canvas.domNode.getContext("2d");return en.putImageData(ze,0,0,0,lt,ze.width,qt),new os(e,ze,ke)},n._renderUntouchedLines=function(e,i,l,c,N){var pe=[];if(!N){for(var ue=0,ze=l-i+1;ue<ze;ue++)pe[ue]=!0;return[-1,-1,pe]}for(var st=N._get(),ft=st.imageData.data,y=st.rendLineNumberStart,d=st.lines,u=d.length,C=e.width,w=e.data,b=(l-i+1)*c*C*4,Q=-1,ke=-1,rt=-1,Ie=-1,lt=-1,Pt=-1,qt=0,en=i;en<=l;en++){var dn=en-i,an=en-y,bn=an>=0&&an<u?d[an].dy:-1;if(bn===-1){pe[dn]=!0,qt+=c;continue}var Rn=bn*C*4,Pn=(bn+c)*C*4,ti=qt*C*4,Dn=(qt+c)*C*4;Ie===Rn&&Pt===ti?(Ie=Pn,Pt=Dn):(rt!==-1&&(w.set(ft.subarray(rt,Ie),lt),Q===-1&&rt===0&&rt===lt&&(Q=Ie),ke===-1&&Ie===b&&rt===lt&&(ke=rt)),rt=Rn,Ie=Pn,lt=ti,Pt=Dn),pe[dn]=!1,qt+=c}rt!==-1&&(w.set(ft.subarray(rt,Ie),lt),Q===-1&&rt===0&&rt===lt&&(Q=Ie),ke===-1&&Ie===b&&rt===lt&&(ke=rt));var li=Q===-1?-1:Q/(C*4),qn=ke===-1?-1:ke/(C*4);return[li,qn,pe]},n._renderLine=function(e,i,l,c,N,pe,ue,ze,st,ft){for(var y=st.content,d=st.tokens,u=Ti(c,ft),C=e.width-u,w=_t.f,b=0,Q=0,ke=0,rt=d.getCount();ke<rt;ke++)for(var Ie=d.getEndOffset(ke),lt=d.getForeground(ke),Pt=N.getColor(lt);b<Ie;b++){if(w>C)return;var qt=y.charCodeAt(b);if(qt===9){var en=ze-(b+Q)%ze;Q+=en-1,w+=en*u}else if(qt===32)w+=u;else for(var dn=Kn.y(qt)?2:1,an=0;an<dn;an++)if(c===2?pe.blockRenderChar(e,w,ue,Pt,i,l):pe.renderChar(e,w,ue,qt,Pt,i,ft,l),w+=u,w>C)return}},n}(X);Object(tt.e)(function(O,n){var e=O.getColor(Li.Vb);if(e){var i=e.transparent(.5);n.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var l=O.getColor(Li.Wb);if(l){var c=l.transparent(.5);n.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+c+"; }")}var N=O.getColor(Li.Ub);if(N){var pe=N.transparent(.5);n.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+pe+"; }")}var ue=O.getColor(Li.Tb);ue&&n.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+ue+" -6px 0 6px -6px inset; }")});var Ls=o("cl4r"),Ms=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),_i=function(O){Ms(n,O);function n(e){var i=O.call(this,e)||this,l=i._context.configuration.options,c=l.get(107);return i._widgets={},i._verticalScrollbarWidth=c.verticalScrollbarWidth,i._minimapWidth=c.minimapWidth,i._horizontalScrollbarHeight=c.horizontalScrollbarHeight,i._editorHeight=c.height,i._editorWidth=c.width,i._domNode=Object(I.b)(document.createElement("div")),ce.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return n.prototype.dispose=function(){O.prototype.dispose.call(this),this._widgets={}},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,l=i.get(107);return this._verticalScrollbarWidth=l.verticalScrollbarWidth,this._minimapWidth=l.minimapWidth,this._horizontalScrollbarHeight=l.horizontalScrollbarHeight,this._editorHeight=l.height,this._editorWidth=l.width,!0},n.prototype.addWidget=function(e){var i=Object(I.b)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:i},i.setPosition("absolute"),i.setAttribute("widgetId",e.getId()),this._domNode.appendChild(i),this.setShouldRender()},n.prototype.setWidgetPosition=function(e,i){var l=this._widgets[e.getId()];return l.preference===i?!1:(l.preference=i,this.setShouldRender(),!0)},n.prototype.removeWidget=function(e){var i=e.getId();if(this._widgets.hasOwnProperty(i)){var l=this._widgets[i],c=l.domNode.domNode;delete this._widgets[i],c.parentNode.removeChild(c),this.setShouldRender()}},n.prototype._renderWidget=function(e){var i=e.domNode;if(e.preference===null){i.unsetTop();return}if(e.preference===0)i.setTop(0),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(e.preference===1){var l=i.domNode.clientHeight;i.setTop(this._editorHeight-l-2*this._horizontalScrollbarHeight),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else e.preference===2&&(i.setTop(0),i.domNode.style.right="50%")},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var i=Object.keys(this._widgets),l=0,c=i.length;l<c;l++){var N=i[l];this._renderWidget(this._widgets[N])}},n}(X),vo=o("zrhQ"),ss=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),as=function(){function O(n,e){var i=n.options;this.lineHeight=i.get(49),this.pixelRatio=i.get(105),this.overviewRulerLanes=i.get(63),this.renderBorder=i.get(62);var l=e.getColor(tn.k);this.borderColor=l?l.toString():null,this.hideCursor=i.get(42);var c=e.getColor(tn.f);this.cursorColor=c?c.transparent(.7).toString():null,this.themeType=e.type;var N=i.get(54),pe=N.enabled,ue=N.side,ze=pe?Un.y.getDefaultBackground():null;ze===null||ue==="left"?this.backgroundColor=null:this.backgroundColor=vo.a.Format.CSS.formatHex(ze);var st=i.get(107),ft=st.overviewRuler;this.top=ft.top,this.right=ft.right,this.domWidth=ft.width,this.domHeight=ft.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 y=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),d=y[0],u=y[1];this.x=d,this.w=u}return O.prototype._initLanes=function(n,e,i){var l=e-n;if(i>=3){var c=Math.floor(l/3),N=Math.floor(l/3),pe=l-c-N,ue=n,ze=ue+c,st=ue+c+pe;return[[0,ue,ze,ue,st,ue,ze,ue],[0,c,pe,c+pe,N,c+pe+N,pe+N,c+pe+N]]}else if(i===2){var c=Math.floor(l/2),N=l-c,ue=n,st=ue+c;return[[0,ue,ue,ue,st,ue,ue,ue],[0,c,c,c,N,c+N,c+N,c+N]]}else{var ft=n,y=l;return[[0,ft,ft,ft,ft,ft,ft,ft],[0,y,y,y,y,y,y,y]]}},O.prototype.equals=function(n){return this.lineHeight===n.lineHeight&&this.pixelRatio===n.pixelRatio&&this.overviewRulerLanes===n.overviewRulerLanes&&this.renderBorder===n.renderBorder&&this.borderColor===n.borderColor&&this.hideCursor===n.hideCursor&&this.cursorColor===n.cursorColor&&this.themeType===n.themeType&&this.backgroundColor===n.backgroundColor&&this.top===n.top&&this.right===n.right&&this.domWidth===n.domWidth&&this.domHeight===n.domHeight&&this.canvasWidth===n.canvasWidth&&this.canvasHeight===n.canvasHeight},O}(),Ns=function(O){ss(n,O);function n(e){var i=O.call(this,e)||this;return i._domNode=Object(I.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=Un.y.onDidChange(function(l){l.changedColorMap&&i._updateSettings(!0)}),i._cursorPositions=[],i}return n.prototype.dispose=function(){O.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},n.prototype._updateSettings=function(e){var i=new as(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,e&&this._render(),!0)},n.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},n.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var i=0,l=e.selections.length;i<l;i++)this._cursorPositions[i]=e.selections[i].getPosition();return this._cursorPositions.sort(me.a.compare),!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.onThemeChanged=function(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},n.prototype.getDomNode=function(){return this._domNode.domNode},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this._render()},n.prototype._render=function(){if(this._settings.overviewRulerLanes===0){this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"");return}var e=this._settings.canvasWidth,i=this._settings.canvasHeight,l=this._settings.lineHeight,c=this._context.viewLayout,N=this._context.viewLayout.getScrollHeight(),pe=i/N,ue=this._context.model.getAllOverviewRulerDecorations(this._context.theme),ze=6*this._settings.pixelRatio|0,st=ze/2|0,ft=this._domNode.domNode.getContext("2d");this._settings.backgroundColor===null?ft.clearRect(0,0,e,i):(ft.fillStyle=this._settings.backgroundColor,ft.fillRect(0,0,e,i));var y=this._settings.x,d=this._settings.w,u=Object.keys(ue);u.sort();for(var C=0,w=u.length;C<w;C++){var b=u[C],Q=ue[b];ft.fillStyle=b;for(var ke=0,rt=0,Ie=0,lt=0,Pt=Q.length;lt<Pt;lt++){var qt=Q[3*lt],en=Q[3*lt+1],dn=Q[3*lt+2],an=c.getVerticalOffsetForLineNumber(en)*pe|0,bn=(c.getVerticalOffsetForLineNumber(dn)+l)*pe|0,Rn=bn-an;if(Rn<ze){var Pn=(an+bn)/2|0;Pn<st?Pn=st:Pn+st>i&&(Pn=i-st),an=Pn-st,bn=Pn+st}an>Ie+1||qt!==ke?(lt!==0&&ft.fillRect(y[ke],rt,d[ke],Ie-rt),ke=qt,rt=an,Ie=bn):bn>Ie&&(Ie=bn)}ft.fillRect(y[ke],rt,d[ke],Ie-rt)}if(!this._settings.hideCursor&&this._settings.cursorColor){var ti=2*this._settings.pixelRatio|0,Dn=ti/2|0,li=this._settings.x[7],qn=this._settings.w[7];ft.fillStyle=this._settings.cursorColor;for(var rt=-100,Ie=-100,lt=0,Pt=this._cursorPositions.length;lt<Pt;lt++){var xi=this._cursorPositions[lt],Pn=c.getVerticalOffsetForLineNumber(xi.lineNumber)*pe|0;Pn<Dn?Pn=Dn:Pn+Dn>i&&(Pn=i-Dn);var an=Pn-Dn,bn=an+ti;an>Ie+1?(lt!==0&&ft.fillRect(li,rt,qn,Ie-rt),rt=an,Ie=bn):bn>Ie&&(Ie=bn)}ft.fillRect(li,rt,qn,Ie-rt)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(ft.beginPath(),ft.lineWidth=1,ft.strokeStyle=this._settings.borderColor,ft.moveTo(0,0),ft.lineTo(0,i),ft.stroke(),ft.moveTo(0,0),ft.lineTo(e,0),ft.stroke())},n}(X),Wr=o("MvK1"),us=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qs=function(O){us(n,O);function n(e,i){var l=O.call(this)||this;l._context=e;var c=l._context.configuration.options;return l._domNode=Object(I.b)(document.createElement("canvas")),l._domNode.setClassName(i),l._domNode.setPosition("absolute"),l._domNode.setLayerHinting(!0),l._domNode.setContain("strict"),l._zoneManager=new Wr.b(function(N){return l._context.viewLayout.getVerticalOffsetForLineNumber(N)}),l._zoneManager.setDOMWidth(0),l._zoneManager.setDOMHeight(0),l._zoneManager.setOuterHeight(l._context.viewLayout.getScrollHeight()),l._zoneManager.setLineHeight(c.get(49)),l._zoneManager.setPixelRatio(c.get(105)),l._context.addEventHandler(l),l}return n.prototype.dispose=function(){this._context.removeEventHandler(this),O.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return e.hasChanged(49)&&(this._zoneManager.setLineHeight(i.get(49)),this._render()),e.hasChanged(105)&&(this._zoneManager.setPixelRatio(i.get(105)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},n.prototype.onFlushed=function(e){return this._render(),!0},n.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},n.prototype.onZonesChanged=function(e){return this._render(),!0},n.prototype.getDomNode=function(){return this._domNode.domNode},n.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var i=!1;i=this._zoneManager.setDOMWidth(e.width)||i,i=this._zoneManager.setDOMHeight(e.height)||i,i&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},n.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},n.prototype._render=function(){if(this._zoneManager.getOuterHeight()===0)return!1;var e=this._zoneManager.getCanvasWidth(),i=this._zoneManager.getCanvasHeight(),l=this._zoneManager.resolveColorZones(),c=this._zoneManager.getId2Color(),N=this._domNode.domNode.getContext("2d");return N.clearRect(0,0,e,i),l.length>0&&this._renderOneLane(N,l,c,e),!0},n.prototype._renderOneLane=function(e,i,l,c){for(var N=0,pe=0,ue=0,ze=0,st=i;ze<st.length;ze++){var ft=st[ze],y=ft.colorId,d=ft.from,u=ft.to;y!==N?(e.fillRect(0,pe,c,ue-pe),N=y,e.fillStyle=l[N],pe=d,ue=u):ue>=d?ue=Math.max(ue,u):(e.fillRect(0,pe,c,ue-pe),pe=d,ue=u)}e.fillRect(0,pe,c,ue-pe)},n}(we),la=o("7zd4"),$s=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Js=function(O){$s(n,O);function n(e){var i=O.call(this,e)||this;i.domNode=Object(I.b)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[];var l=i._context.configuration.options;return i._rulers=l.get(77),i._typicalHalfwidthCharacterWidth=l.get(34).typicalHalfwidthCharacterWidth,i}return n.prototype.dispose=function(){O.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return this._rulers=i.get(77),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},n.prototype.prepareRender=function(e){},n.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,i=this._rulers.length;if(e!==i){if(e<i){for(var l=this._context.model.getOptions().tabSize,c=l,N=i-e;N>0;){var pe=Object(I.b)(document.createElement("div"));pe.setClassName("view-ruler"),pe.setWidth(c),this.domNode.appendChild(pe),this._renderedRulers.push(pe),N--}return}for(var ue=e-i;ue>0;){var pe=this._renderedRulers.pop();this.domNode.removeChild(pe),ue--}}},n.prototype.render=function(e){this._ensureRulersCount();for(var i=0,l=this._rulers.length;i<l;i++){var c=this._renderedRulers[i];c.setHeight(Math.min(e.scrollHeight,1e6)),c.setLeft(this._rulers[i]*this._typicalHalfwidthCharacterWidth)}},n}(X);Object(tt.e)(function(O,n){var e=O.getColor(tn.l);e&&n.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+e+" inset; }")});var da=o("2MPD"),ls=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wr=function(O){ls(n,O);function n(e){var i=O.call(this,e)||this;i._scrollTop=0,i._width=0,i._updateWidth(),i._shouldShow=!1;var l=i._context.configuration.options,c=l.get(78);return i._useShadows=c.useShadows,i._domNode=Object(I.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i}return n.prototype.dispose=function(){O.prototype.dispose.call(this)},n.prototype._updateShouldShow=function(){var e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1},n.prototype.getDomNode=function(){return this._domNode},n.prototype._updateWidth=function(){var e=this._context.configuration.options,i=e.get(107);i.renderMinimap===0||i.minimapWidth>0&&i.minimapLeft===0?this._width=i.width:this._width=i.width-i.minimapWidth-i.verticalScrollbarWidth},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,l=i.get(78);return this._useShadows=l.useShadows,this._updateWidth(),this._updateShouldShow(),!0},n.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},n}(X);Object(tt.e)(function(O,n){var e=O.getColor(Li.Tb);e&&n.addRule(".monaco-editor .scroll-decoration { box-shadow: "+e+" 0 6px 6px -6px inset; }")});var Is=o("eC1c"),Pi=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Kr=function(){function O(n){this.left=n.left,this.width=n.width,this.startStyle=null,this.endStyle=null}return O}(),Gr=function(){function O(n,e){this.lineNumber=n,this.ranges=e}return O}();function ds(O){return new Kr(O)}function Vo(O){return new Gr(O.lineNumber,O.ranges.map(ds))}var Yr=T.f,cs=function(O){Pi(n,O);function n(e){var i=O.call(this)||this;i._previousFrameVisibleRangesWithStyle=[],i._context=e;var l=i._context.configuration.options;return i._lineHeight=l.get(49),i._roundedSelection=l.get(76),i._typicalHalfwidthCharacterWidth=l.get(34).typicalHalfwidthCharacterWidth,i._selections=[],i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,O.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._roundedSelection=i.get(76),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._visibleRangesHaveGaps=function(e){for(var i=0,l=e.length;i<l;i++){var c=e[i];if(c.ranges.length>1)return!0}return!1},n.prototype._enrichVisibleRangesWithStyle=function(e,i,l){var c=this._typicalHalfwidthCharacterWidth/4,N=null,pe=null;if(l&&l.length>0&&i.length>0){var ue=i[0].lineNumber;if(ue===e.startLineNumber)for(var ze=0;!N&&ze<l.length;ze++)l[ze].lineNumber===ue&&(N=l[ze].ranges[0]);var st=i[i.length-1].lineNumber;if(st===e.endLineNumber)for(var ze=l.length-1;!pe&&ze>=0;ze--)l[ze].lineNumber===st&&(pe=l[ze].ranges[0]);N&&!N.startStyle&&(N=null),pe&&!pe.startStyle&&(pe=null)}for(var ze=0,ft=i.length;ze<ft;ze++){var y=i[ze].ranges[0],d=y.left,u=y.left+y.width,C={top:0,bottom:0},w={top:0,bottom:0};if(ze>0){var b=i[ze-1].ranges[0].left,Q=i[ze-1].ranges[0].left+i[ze-1].ranges[0].width;to(d-b)<c?C.top=2:d>b&&(C.top=1),to(u-Q)<c?w.top=2:b<u&&u<Q&&(w.top=1)}else N&&(C.top=N.startStyle.top,w.top=N.endStyle.top);if(ze+1<ft){var ke=i[ze+1].ranges[0].left,rt=i[ze+1].ranges[0].left+i[ze+1].ranges[0].width;to(d-ke)<c?C.bottom=2:ke<d&&d<rt&&(C.bottom=1),to(u-rt)<c?w.bottom=2:u<rt&&(w.bottom=1)}else pe&&(C.bottom=pe.startStyle.bottom,w.bottom=pe.endStyle.bottom);y.startStyle=C,y.endStyle=w}},n.prototype._getVisibleRangesWithStyle=function(e,i,l){var c=i.linesVisibleRangesForRange(e,!0)||[],N=c.map(Vo),pe=this._visibleRangesHaveGaps(N);return!Yr&&!pe&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(i.visibleRange,N,l),N},n.prototype._createSelectionPiece=function(e,i,l,c,N){return'<div class="cslr '+l+'" style="top:'+e.toString()+"px;left:"+c.toString()+"px;width:"+N.toString()+"px;height:"+i+'px;"></div>'},n.prototype._actualRenderOneSelection=function(e,i,l,c){if(c.length!==0)for(var N=!!c[0].ranges[0].startStyle,pe=this._lineHeight.toString(),ue=(this._lineHeight-1).toString(),ze=c[0].lineNumber,st=c[c.length-1].lineNumber,ft=0,y=c.length;ft<y;ft++){for(var d=c[ft],u=d.lineNumber,C=u-i,w=l&&(u===st||u===ze)?ue:pe,b=l&&u===ze?1:0,Q="",ke="",rt=0,Ie=d.ranges.length;rt<Ie;rt++){var lt=d.ranges[rt];if(N){var Pt=lt.startStyle,qt=lt.endStyle;if(Pt.top===1||Pt.bottom===1){Q+=this._createSelectionPiece(b,w,n.SELECTION_CLASS_NAME,lt.left-n.ROUNDED_PIECE_WIDTH,n.ROUNDED_PIECE_WIDTH);var en=n.EDITOR_BACKGROUND_CLASS_NAME;Pt.top===1&&(en+=" "+n.SELECTION_TOP_RIGHT),Pt.bottom===1&&(en+=" "+n.SELECTION_BOTTOM_RIGHT),Q+=this._createSelectionPiece(b,w,en,lt.left-n.ROUNDED_PIECE_WIDTH,n.ROUNDED_PIECE_WIDTH)}if(qt.top===1||qt.bottom===1){Q+=this._createSelectionPiece(b,w,n.SELECTION_CLASS_NAME,lt.left+lt.width,n.ROUNDED_PIECE_WIDTH);var dn=n.EDITOR_BACKGROUND_CLASS_NAME;qt.top===1&&(dn+=" "+n.SELECTION_TOP_LEFT),qt.bottom===1&&(dn+=" "+n.SELECTION_BOTTOM_LEFT),Q+=this._createSelectionPiece(b,w,dn,lt.left+lt.width,n.ROUNDED_PIECE_WIDTH)}}var an=n.SELECTION_CLASS_NAME;if(N){var Pt=lt.startStyle,qt=lt.endStyle;Pt.top===0&&(an+=" "+n.SELECTION_TOP_LEFT),Pt.bottom===0&&(an+=" "+n.SELECTION_BOTTOM_LEFT),qt.top===0&&(an+=" "+n.SELECTION_TOP_RIGHT),qt.bottom===0&&(an+=" "+n.SELECTION_BOTTOM_RIGHT)}ke+=this._createSelectionPiece(b,w,an,lt.left,lt.width)}e[C][0]+=Q,e[C][1]+=ke}},n.prototype.prepareRender=function(e){for(var i=[],l=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,N=l;N<=c;N++){var pe=N-l;i[pe]=["",""]}for(var ue=[],ze=0,st=this._selections.length;ze<st;ze++){var ft=this._selections[ze];if(ft.isEmpty()){ue[ze]=null;continue}var y=this._getVisibleRangesWithStyle(ft,e,this._previousFrameVisibleRangesWithStyle[ze]);ue[ze]=y,this._actualRenderOneSelection(i,l,this._selections.length>1,y)}this._previousFrameVisibleRangesWithStyle=ue,this._renderResult=i.map(function(d){var u=d[0],C=d[1];return u+C})},n.prototype.render=function(e,i){if(!this._renderResult)return"";var l=i-e;return l<0||l>=this._renderResult.length?"":this._renderResult[l]},n.SELECTION_CLASS_NAME="selected-text",n.SELECTION_TOP_LEFT="top-left-radius",n.SELECTION_BOTTOM_LEFT="bottom-left-radius",n.SELECTION_TOP_RIGHT="top-right-radius",n.SELECTION_BOTTOM_RIGHT="bottom-right-radius",n.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",n.ROUNDED_PIECE_WIDTH=10,n}(Ut);Object(tt.e)(function(O,n){var e=O.getColor(Li.K);e&&n.addRule(".monaco-editor .focused .selected-text { background-color: "+e+"; }");var i=O.getColor(Li.F);i&&n.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var l=O.getColor(Li.L);l&&n.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+l+"; }")});function to(O){return O<0?-O:O}var qs=o("2Tsy"),mo=function(){function O(n,e,i,l,c,N){this.top=n,this.left=e,this.width=i,this.height=l,this.textContent=c,this.textContentClassName=N}return O}(),fs=function(){function O(n){this._context=n;var e=this._context.configuration.options,i=e.get(34);this._cursorStyle=e.get(18),this._lineHeight=e.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(e.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(I.b)(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),G.a.applyFontInfo(this._domNode,i),this._domNode.setDisplay("none"),this._position=new me.a(1,1),this._lastRenderedContent="",this._renderData=null}return O.prototype.getDomNode=function(){return this._domNode},O.prototype.getPosition=function(){return this._position},O.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},O.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},O.prototype.onConfigurationChanged=function(n){var e=this._context.configuration.options,i=e.get(34);return this._cursorStyle=e.get(18),this._lineHeight=e.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(e.get(21),this._typicalHalfwidthCharacterWidth),G.a.applyFontInfo(this._domNode,i),!0},O.prototype.onCursorPositionChanged=function(n){return this._position=n,!0},O.prototype._prepareRender=function(n){var e="";if(this._cursorStyle===_t.g.Line||this._cursorStyle===_t.g.LineThin){var i=n.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;var l;if(this._cursorStyle===_t.g.Line){if(l=ne.t(this._lineCursorWidth>0?this._lineCursorWidth:2),l>2){var c=this._context.model.getLineContent(this._position.lineNumber),N=Kn.E(c,this._position.column-1);e=c.substr(this._position.column-1,N)}}else l=ne.t(1);var pe=i.left;l>=2&&pe>=1&&(pe-=1);var ue=n.getVerticalOffsetForLineNumber(this._position.lineNumber)-n.bigNumbersDelta;return new mo(ue,pe,l,this._lineHeight,e,"")}var ze=this._context.model.getLineContent(this._position.lineNumber),st=Kn.E(ze,this._position.column-1),ft=n.linesVisibleRangesForRange(new Me.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+st),!1);if(!ft||ft.length===0)return null;var y=ft[0];if(y.outsideRenderedLine||y.ranges.length===0)return null;var d=y.ranges[0],u=d.width<1?this._typicalHalfwidthCharacterWidth:d.width,C="";if(this._cursorStyle===_t.g.Block){var w=this._context.model.getViewLineData(this._position.lineNumber);e=ze.substr(this._position.column-1,st);var b=w.tokens.findTokenIndexAtOffset(this._position.column-1);C=w.tokens.getClassName(b)}var Q=n.getVerticalOffsetForLineNumber(this._position.lineNumber)-n.bigNumbersDelta,ke=this._lineHeight;return(this._cursorStyle===_t.g.Underline||this._cursorStyle===_t.g.UnderlineThin)&&(Q+=this._lineHeight-2,ke=2),new mo(Q,d.left,u,ke,e,C)},O.prototype.prepareRender=function(n){this._renderData=this._prepareRender(n)},O.prototype.render=function(n){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},O}(),ea=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ts=function(O){ea(n,O);function n(e){var i=O.call(this,e)||this,l=i._context.configuration.options;return i._readOnly=l.get(68),i._cursorBlinking=l.get(16),i._cursorStyle=l.get(18),i._cursorSmoothCaretAnimation=l.get(17),i._selectionIsEmpty=!0,i._isVisible=!1,i._primaryCursor=new fs(i._context),i._secondaryCursors=[],i._renderData=[],i._domNode=Object(I.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 U.e,i._cursorFlatBlinkInterval=new U.c,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return n.prototype.dispose=function(){O.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(e){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(e);for(var l=0,c=this._secondaryCursors.length;l<c;l++)this._secondaryCursors[l].onConfigurationChanged(e);return!0},n.prototype._onCursorPositionChanged=function(e,i){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<i.length)for(var l=i.length-this._secondaryCursors.length,c=0;c<l;c++){var N=new fs(this._context);this._domNode.domNode.insertBefore(N.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(N)}else if(this._secondaryCursors.length>i.length)for(var pe=this._secondaryCursors.length-i.length,c=0;c<pe;c++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1);for(var c=0;c<i.length;c++)this._secondaryCursors[c].onCursorPositionChanged(i[c])},n.prototype.onCursorStateChanged=function(e){for(var i=[],l=0,c=e.selections.length;l<c;l++)i[l]=e.selections[l].getPosition();this._onCursorPositionChanged(i[0],i.slice(1));var N=e.selections[0].isEmpty();return this._selectionIsEmpty!==N&&(this._selectionIsEmpty=N,this._updateDomClassName()),!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onFocusChanged=function(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return!0},n.prototype.onTokensChanged=function(e){var i=function(ue){for(var ze=0,st=e.ranges.length;ze<st;ze++)if(e.ranges[ze].fromLineNumber<=ue.lineNumber&&ue.lineNumber<=e.ranges[ze].toLineNumber)return!0;return!1};if(i(this._primaryCursor.getPosition()))return!0;for(var l=0,c=this._secondaryCursors;l<c.length;l++){var N=c[l];if(i(N.getPosition()))return!0}return!1},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},n.prototype._updateBlinking=function(){var e=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var i=this._getCursorBlinking(),l=i===0,c=i===5;l?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!l&&!c&&(i===1?this._cursorFlatBlinkInterval.cancelAndSet(function(){e._isVisible?e._hide():e._show()},n.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(function(){e._blinkingEnabled=!0,e._updateDomClassName()},n.BLINK_INTERVAL))},n.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},n.prototype._getClassName=function(){var e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case _t.g.Line:e+=" cursor-line-style";break;case _t.g.Block:e+=" cursor-block-style";break;case _t.g.Underline:e+=" cursor-underline-style";break;case _t.g.LineThin:e+=" cursor-line-thin-style";break;case _t.g.BlockOutline:e+=" cursor-block-outline-style";break;case _t.g.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e},n.prototype._show=function(){this._primaryCursor.show();for(var e=0,i=this._secondaryCursors.length;e<i;e++)this._secondaryCursors[e].show();this._isVisible=!0},n.prototype._hide=function(){this._primaryCursor.hide();for(var e=0,i=this._secondaryCursors.length;e<i;e++)this._secondaryCursors[e].hide();this._isVisible=!1},n.prototype.prepareRender=function(e){this._primaryCursor.prepareRender(e);for(var i=0,l=this._secondaryCursors.length;i<l;i++)this._secondaryCursors[i].prepareRender(e)},n.prototype.render=function(e){var i=[],l=0,c=this._primaryCursor.render(e);c&&(i[l++]=c);for(var N=0,pe=this._secondaryCursors.length;N<pe;N++){var ue=this._secondaryCursors[N].render(e);ue&&(i[l++]=ue)}this._renderData=i},n.prototype.getLastRenderData=function(){return this._renderData},n.BLINK_INTERVAL=500,n}(X);Object(tt.e)(function(O,n){var e=O.getColor(tn.f);if(e){var i=O.getColor(tn.e);i||(i=e.opposite()),n.addRule(".monaco-editor .cursor { background-color: "+e+"; border-color: "+e+"; color: "+i+"; }"),O.type==="hc"&&n.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }")}});var Ps=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zr=function(){throw new Error("Invalid change accessor")},Ho=function(O){Ps(n,O);function n(e){var i=O.call(this,e)||this,l=i._context.configuration.options,c=l.get(107);return i._lineHeight=l.get(49),i._contentWidth=c.contentWidth,i._contentLeft=c.contentLeft,i.domNode=Object(I.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(I.b)(document.createElement("div")),i.marginDomNode.setClassName("margin-view-zones"),i.marginDomNode.setPosition("absolute"),i.marginDomNode.setAttribute("role","presentation"),i.marginDomNode.setAttribute("aria-hidden","true"),i._zones={},i}return n.prototype.dispose=function(){O.prototype.dispose.call(this),this._zones={}},n.prototype._recomputeWhitespacesProps=function(){for(var e=this,i=this._context.viewLayout.getWhitespaces(),l=new Map,c=0,N=i;c<N.length;c++){var pe=N[c];l.set(pe.id,pe)}return this._context.viewLayout.changeWhitespace(function(ue){for(var ze=!1,st=Object.keys(e._zones),ft=0,y=st.length;ft<y;ft++){var d=st[ft],u=e._zones[d],C=e._computeWhitespaceProps(u.delegate),w=l.get(d);w&&(w.afterLineNumber!==C.afterViewLineNumber||w.height!==C.heightInPx)&&(ue.changeOneWhitespace(d,C.afterViewLineNumber,C.heightInPx),e._safeCallOnComputedHeight(u.delegate,C.heightInPx),ze=!0)}return ze})},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,l=i.get(107);return this._lineHeight=i.get(49),this._contentWidth=l.contentWidth,this._contentLeft=l.contentLeft,e.hasChanged(49)&&this._recomputeWhitespacesProps(),!0},n.prototype.onLineMappingChanged=function(e){var i=this._recomputeWhitespacesProps();return i&&this._context.viewLayout.onHeightMaybeChanged(),i},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype._getZoneOrdinal=function(e){return typeof e.afterColumn!="undefined"?e.afterColumn:1e4},n.prototype._computeWhitespaceProps=function(e){if(e.afterLineNumber===0)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var i;if(typeof e.afterColumn!="undefined")i=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var l=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;i=new me.a(l,this._context.model.getModelLineMaxColumn(l))}var c;i.column===this._context.model.getModelLineMaxColumn(i.lineNumber)?c=this._context.model.validateModelPosition({lineNumber:i.lineNumber+1,column:1}):c=this._context.model.validateModelPosition({lineNumber:i.lineNumber,column:i.column+1});var N=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(i),pe=this._context.model.coordinatesConverter.modelPositionIsVisible(c);return{afterViewLineNumber:N.lineNumber,heightInPx:pe?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}},n.prototype.changeViewZones=function(e){var i=this;return this._context.viewLayout.changeWhitespace(function(l){var c=!1,N={addZone:function(ue){return c=!0,i._addZone(l,ue)},removeZone:function(ue){!ue||(c=i._removeZone(l,ue)||c)},layoutZone:function(ue){!ue||(c=i._layoutZone(l,ue)||c)}};return hs(e,N),N.addZone=Zr,N.removeZone=Zr,N.layoutZone=Zr,c})},n.prototype._addZone=function(e,i){var l=this._computeWhitespaceProps(i),c=e.insertWhitespace(l.afterViewLineNumber,this._getZoneOrdinal(i),l.heightInPx,l.minWidthInPx),N={whitespaceId:c,delegate:i,isVisible:!1,domNode:Object(I.b)(i.domNode),marginDomNode:i.marginDomNode?Object(I.b)(i.marginDomNode):null};return this._safeCallOnComputedHeight(N.delegate,l.heightInPx),N.domNode.setPosition("absolute"),N.domNode.domNode.style.width="100%",N.domNode.setDisplay("none"),N.domNode.setAttribute("monaco-view-zone",N.whitespaceId),this.domNode.appendChild(N.domNode),N.marginDomNode&&(N.marginDomNode.setPosition("absolute"),N.marginDomNode.domNode.style.width="100%",N.marginDomNode.setDisplay("none"),N.marginDomNode.setAttribute("monaco-view-zone",N.whitespaceId),this.marginDomNode.appendChild(N.marginDomNode)),this._zones[N.whitespaceId]=N,this.setShouldRender(),N.whitespaceId},n.prototype._removeZone=function(e,i){if(this._zones.hasOwnProperty(i)){var l=this._zones[i];return delete this._zones[i],e.removeWhitespace(l.whitespaceId),l.domNode.removeAttribute("monaco-visible-view-zone"),l.domNode.removeAttribute("monaco-view-zone"),l.domNode.domNode.parentNode.removeChild(l.domNode.domNode),l.marginDomNode&&(l.marginDomNode.removeAttribute("monaco-visible-view-zone"),l.marginDomNode.removeAttribute("monaco-view-zone"),l.marginDomNode.domNode.parentNode.removeChild(l.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},n.prototype._layoutZone=function(e,i){if(this._zones.hasOwnProperty(i)){var l=this._zones[i],c=this._computeWhitespaceProps(l.delegate);return e.changeOneWhitespace(l.whitespaceId,c.afterViewLineNumber,c.heightInPx),this._safeCallOnComputedHeight(l.delegate,c.heightInPx),this.setShouldRender(),!0}return!1},n.prototype.shouldSuppressMouseDownOnViewZone=function(e){if(this._zones.hasOwnProperty(e)){var i=this._zones[e];return Boolean(i.delegate.suppressMouseDown)}return!1},n.prototype._heightInPixels=function(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight},n.prototype._minWidthInPixels=function(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0},n.prototype._safeCallOnComputedHeight=function(e,i){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(i)}catch(l){Object(P.e)(l)}},n.prototype._safeCallOnDomNodeTop=function(e,i){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(i)}catch(l){Object(P.e)(l)}},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){for(var i=e.viewportData.whitespaceViewportData,l={},c=!1,N=0,pe=i.length;N<pe;N++)l[i[N].id]=i[N],c=!0;for(var ue=Object.keys(this._zones),N=0,pe=ue.length;N<pe;N++){var ze=ue[N],st=this._zones[ze],ft=0,y=0,d="none";l.hasOwnProperty(ze)?(ft=l[ze].verticalOffset-e.bigNumbersDelta,y=l[ze].height,d="block",st.isVisible||(st.domNode.setAttribute("monaco-visible-view-zone","true"),st.isVisible=!0),this._safeCallOnDomNodeTop(st.delegate,e.getScrolledTopFromAbsoluteTop(l[ze].verticalOffset))):(st.isVisible&&(st.domNode.removeAttribute("monaco-visible-view-zone"),st.isVisible=!1),this._safeCallOnDomNodeTop(st.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),st.domNode.setTop(ft),st.domNode.setHeight(y),st.domNode.setDisplay(d),st.marginDomNode&&(st.marginDomNode.setTop(ft),st.marginDomNode.setHeight(y),st.marginDomNode.setDisplay(d))}c&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},n}(X);function hs(O,n){try{return O(n)}catch(e){Object(P.e)(e)}}var gs=function(){function O(n,e,i,l){this.configuration=n,this.theme=e,this.model=i,this.viewLayout=i.viewLayout,this.privateViewEventBus=l}return O.prototype.addEventHandler=function(n){this.privateViewEventBus.addEventHandler(n)},O.prototype.removeEventHandler=function(n){this.privateViewEventBus.removeEventHandler(n)},O}(),Uo=function(){function O(n){this._eventHandlerGateKeeper=n,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return O.prototype.addEventHandler=function(n){for(var e=0,i=this._eventHandlers.length;e<i;e++)this._eventHandlers[e]===n&&console.warn("Detected duplicate listener in ViewEventDispatcher",n);this._eventHandlers.push(n)},O.prototype.removeEventHandler=function(n){for(var e=0;e<this._eventHandlers.length;e++)if(this._eventHandlers[e]===n){this._eventHandlers.splice(e,1);break}},O.prototype.emit=function(n){this._eventQueue?this._eventQueue.push(n):this._eventQueue=[n],this._isConsumingQueue||this.consumeQueue()},O.prototype.emitMany=function(n){this._eventQueue?this._eventQueue=this._eventQueue.concat(n):this._eventQueue=n,this._isConsumingQueue||this.consumeQueue()},O.prototype.consumeQueue=function(){var n=this;this._eventHandlerGateKeeper(function(){try{n._isConsumingQueue=!0,n._doConsumeQueue()}finally{n._isConsumingQueue=!1}})},O.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var n=this._eventQueue;this._eventQueue=null;for(var e=this._eventHandlers.slice(0),i=0,l=e.length;i<l;i++)e[i].handleEvents(n)}},O}(),yo=function(){function O(n,e,i,l){this.selections=n,this.startLineNumber=e.startLineNumber|0,this.endLineNumber=e.endLineNumber|0,this.relativeVerticalOffset=e.relativeVerticalOffset,this.bigNumbersDelta=e.bigNumbersDelta|0,this.whitespaceViewportData=i,this._model=l,this.visibleRange=new Me.a(e.startLineNumber,this._model.getLineMinColumn(e.startLineNumber),e.endLineNumber,this._model.getLineMaxColumn(e.endLineNumber))}return O.prototype.getViewLineRenderingData=function(n){return this._model.getViewLineRenderingData(this.visibleRange,n)},O.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},O}(),Lo=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Mo=function(O){Lo(n,O);function n(e,i,l,c,N,pe){var ue=O.call(this)||this;ue._cursor=N,ue._renderAnimationFrame=null,ue.outgoingEvents=pe;var ze=new je(i,c,ue.outgoingEvents,e);ue.eventDispatcher=new Uo(function(Q){return ue._renderOnce(Q)}),ue.eventDispatcher.addEventHandler(ue),ue._context=new gs(i,l.getTheme(),c,ue.eventDispatcher),ue._register(l.onThemeChange(function(Q){ue._context.theme=Q,ue.eventDispatcher.emit(new mi),ue.render(!0,!1)})),ue.viewParts=[],ue._textAreaHandler=new L(ue._context,ze,ue.createTextAreaHandlerHelper()),ue.viewParts.push(ue._textAreaHandler),ue.linesContent=Object(I.b)(document.createElement("div")),ue.linesContent.setClassName("lines-content monaco-editor-background"),ue.linesContent.setPosition("absolute"),ue.domNode=Object(I.b)(document.createElement("div")),ue.domNode.setClassName(ue.getEditorClassName()),ue.overflowGuardContainer=Object(I.b)(document.createElement("div")),ce.write(ue.overflowGuardContainer,3),ue.overflowGuardContainer.setClassName("overflow-guard"),ue._scrollbar=new be(ue._context,ue.linesContent,ue.domNode,ue.overflowGuardContainer),ue.viewParts.push(ue._scrollbar),ue.viewLines=new Hn(ue._context,ue.linesContent),ue.viewZones=new Ho(ue._context),ue.viewParts.push(ue.viewZones);var st=new Ns(ue._context);ue.viewParts.push(st);var ft=new wr(ue._context);ue.viewParts.push(ft);var y=new Tn(ue._context);ue.viewParts.push(y),y.addDynamicOverlay(new Ge(ue._context)),y.addDynamicOverlay(new cs(ue._context)),y.addDynamicOverlay(new Tt(ue._context)),y.addDynamicOverlay(new at(ue._context));var d=new pn(ue._context);ue.viewParts.push(d),d.addDynamicOverlay(new le(ue._context)),d.addDynamicOverlay(new bt(ue._context)),d.addDynamicOverlay(new lr(ue._context)),d.addDynamicOverlay(new Vi(ue._context)),d.addDynamicOverlay(new wn(ue._context));var u=new kn(ue._context);u.getDomNode().appendChild(ue.viewZones.marginDomNode),u.getDomNode().appendChild(d.getDomNode()),ue.viewParts.push(u),ue.contentWidgets=new Oe(ue._context,ue.domNode),ue.viewParts.push(ue.contentWidgets),ue.viewCursors=new Ts(ue._context),ue.viewParts.push(ue.viewCursors),ue.overlayWidgets=new _i(ue._context),ue.viewParts.push(ue.overlayWidgets);var C=new Js(ue._context);ue.viewParts.push(C);var w=new gn(ue._context);if(ue.viewParts.push(w),st){var b=ue._scrollbar.getOverviewRulerLayoutInfo();b.parent.insertBefore(st.getDomNode(),b.insertBefore)}return ue.linesContent.appendChild(y.getDomNode()),ue.linesContent.appendChild(C.domNode),ue.linesContent.appendChild(ue.viewZones.domNode),ue.linesContent.appendChild(ue.viewLines.getDomNode()),ue.linesContent.appendChild(ue.contentWidgets.domNode),ue.linesContent.appendChild(ue.viewCursors.getDomNode()),ue.overflowGuardContainer.appendChild(u.getDomNode()),ue.overflowGuardContainer.appendChild(ue._scrollbar.getDomNode()),ue.overflowGuardContainer.appendChild(ft.getDomNode()),ue.overflowGuardContainer.appendChild(ue._textAreaHandler.textArea),ue.overflowGuardContainer.appendChild(ue._textAreaHandler.textAreaCover),ue.overflowGuardContainer.appendChild(ue.overlayWidgets.getDomNode()),ue.overflowGuardContainer.appendChild(w.getDomNode()),ue.domNode.appendChild(ue.overflowGuardContainer),ue.domNode.appendChild(ue.contentWidgets.overflowingContentWidgetsDomNode),ue._applyLayout(),ue.pointerHandler=ue._register(new $n(ue._context,ze,ue.createPointerHandlerHelper())),ue._register(c.addEventListener(function(Q){ue.eventDispatcher.emitMany(Q)})),ue._register(ue._cursor.addEventListener(function(Q){ue.eventDispatcher.emitMany(Q)})),ue}return n.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},n.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus()},getLastRenderData:function(){var l=e.viewCursors.getLastRenderData()||[],c=e._textAreaHandler.getLastRenderData();return new nt(l,c)},shouldSuppressMouseDownOnViewZone:function(l){return e.viewZones.shouldSuppressMouseDownOnViewZone(l)},shouldSuppressMouseDownOnWidget:function(l){return e.contentWidgets.shouldSuppressMouseDownOnWidget(l)},getPositionFromDOMInfo:function(l,c){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(l,c)},visibleRangeForPosition:function(l,c){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new me.a(l,c))},getLineWidth:function(l){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(l)}}},n.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(l,c){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new me.a(l,c))}}},n.prototype._applyLayout=function(){var e=this._context.configuration.options,i=e.get(107);this.domNode.setWidth(i.width),this.domNode.setHeight(i.height),this.overflowGuardContainer.setWidth(i.width),this.overflowGuardContainer.setHeight(i.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},n.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(104)+" "+Object(tt.d)(this._context.theme.type)+e},n.prototype.onConfigurationChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._applyLayout(),!1},n.prototype.onContentSizeChanged=function(e){return this.outgoingEvents.emitContentSizeChange(e),!1},n.prototype.onFocusChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(e.isFocused),e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},n.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},n.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1},n.prototype.dispose=function(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var e=0,i=this.viewParts.length;e<i;e++)this.viewParts[e].dispose();this.viewParts=[],O.prototype.dispose.call(this)},n.prototype._renderOnce=function(e){var i=zo(e);return this._scheduleRender(),i},n.prototype._scheduleRender=function(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=ne.T(this._onRenderScheduled.bind(this),100))},n.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},n.prototype._renderNow=function(){var e=this;zo(function(){return e._actualRender()})},n.prototype._getViewPartsToRender=function(){for(var e=[],i=0,l=0,c=this.viewParts.length;l<c;l++){var N=this.viewParts[l];N.shouldRender()&&(e[i++]=N)}return e},n.prototype._actualRender=function(){if(!!ne.L(this.domNode.domNode)){var e=this._getViewPartsToRender();if(!(!this.viewLines.shouldRender()&&e.length===0)){var i=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(i.startLineNumber,i.endLineNumber,i.centeredLineNumber);var l=new yo(this._cursor.getViewSelections(),i,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(l),this.viewLines.shouldRender()&&(this.viewLines.renderText(l),this.viewLines.onDidRender(),e=this._getViewPartsToRender());for(var c=new _e(this._context.viewLayout,l,this.viewLines),N=0,pe=e.length;N<pe;N++){var ue=e[N];ue.prepareRender(c)}for(var N=0,pe=e.length;N<pe;N++){var ue=e[N];ue.render(c),ue.onDidRender()}}}},n.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)},n.prototype.restoreState=function(e){this._context.viewLayout.setScrollPositionNow({scrollTop:e.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:e.scrollLeft})},n.prototype.getOffsetForColumn=function(e,i){var l=this._context.model.validateModelPosition({lineNumber:e,column:i}),c=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(l);this._flushAccumulatedAndRenderNow();var N=this.viewLines.visibleRangeForPosition(new me.a(c.lineNumber,c.column));return N?N.left:-1},n.prototype.getTargetAtClientPoint=function(e,i){var l=this.pointerHandler.getTargetAtClientPoint(e,i);return l?ut.convertViewToModelMouseTarget(l,this._context.model.coordinatesConverter):null},n.prototype.createOverviewRuler=function(e){return new Qs(this._context,e)},n.prototype.change=function(e){var i=this;return this._renderOnce(function(){var l=i.viewZones.changeViewZones(e);return l&&(i._context.viewLayout.onHeightMaybeChanged(),i._context.privateViewEventBus.emit(new Ci)),l})},n.prototype.render=function(e,i){if(i){this.viewLines.forceShouldRender();for(var l=0,c=this.viewParts.length;l<c;l++){var N=this.viewParts[l];N.forceShouldRender()}}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()},n.prototype.focus=function(){this._textAreaHandler.focusTextArea()},n.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},n.prototype.setAriaOptions=function(e){this._textAreaHandler.setAriaOptions(e)},n.prototype.addContentWidget=function(e){this.contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()},n.prototype.layoutContentWidget=function(e){var i=e.position&&e.position.range||null;if(i===null){var l=e.position?e.position.position:null;l!==null&&(i=new Me.a(l.lineNumber,l.column,l.lineNumber,l.column))}var c=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,i,c),this._scheduleRender()},n.prototype.removeContentWidget=function(e){this.contentWidgets.removeWidget(e.widget),this._scheduleRender()},n.prototype.addOverlayWidget=function(e){this.overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()},n.prototype.layoutOverlayWidget=function(e){var i=e.position?e.position.preference:null,l=this.overlayWidgets.setWidgetPosition(e.widget,i);l&&this._scheduleRender()},n.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender()},n}(we);function zo(O){try{return O()}catch(n){Object(P.e)(n)}}var ps=function(){function O(n){this._selTrackedRange=null,this._trackSelection=!0,this._setState(n,new Re.f(new Me.a(1,1,1,1),0,new me.a(1,1),0),new Re.f(new Me.a(1,1,1,1),0,new me.a(1,1),0))}return O.prototype.dispose=function(n){this._removeTrackedRange(n)},O.prototype.startTrackingSelection=function(n){this._trackSelection=!0,this._updateTrackedRange(n)},O.prototype.stopTrackingSelection=function(n){this._trackSelection=!1,this._removeTrackedRange(n)},O.prototype._updateTrackedRange=function(n){!this._trackSelection||(this._selTrackedRange=n.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))},O.prototype._removeTrackedRange=function(n){this._selTrackedRange=n.model._setTrackedRange(this._selTrackedRange,null,0)},O.prototype.asCursorState=function(){return new Re.d(this.modelState,this.viewState)},O.prototype.readSelectionFromMarkers=function(n){var e=n.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.getDirection()===0?new pt.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new pt.a(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)},O.prototype.ensureValidState=function(n){this._setState(n,this.modelState,this.viewState)},O.prototype.setState=function(n,e,i){this._setState(n,e,i)},O.prototype._setState=function(n,e,i){if(e){var l=n.model.validateRange(e.selectionStart),N=e.selectionStart.equalsRange(l)?e.selectionStartLeftoverVisibleColumns:0,c=n.model.validatePosition(e.position),pe=e.position.equals(c)?e.leftoverVisibleColumns:0;e=new Re.f(l,N,c,pe)}else{if(!i)return;var l=n.model.validateRange(n.convertViewRangeToModelRange(i.selectionStart)),c=n.model.validatePosition(n.convertViewPositionToModelPosition(i.position.lineNumber,i.position.column));e=new Re.f(l,i.selectionStartLeftoverVisibleColumns,c,i.leftoverVisibleColumns)}if(i){var st=n.validateViewRange(i.selectionStart,e.selectionStart),ft=n.validateViewPosition(i.position,e.position);i=new Re.f(st,e.selectionStartLeftoverVisibleColumns,ft,e.leftoverVisibleColumns)}else{var ue=n.convertModelPositionToViewPosition(new me.a(e.selectionStart.startLineNumber,e.selectionStart.startColumn)),ze=n.convertModelPositionToViewPosition(new me.a(e.selectionStart.endLineNumber,e.selectionStart.endColumn)),st=new Me.a(ue.lineNumber,ue.column,ze.lineNumber,ze.column),ft=n.convertModelPositionToViewPosition(e.position);i=new Re.f(st,e.selectionStartLeftoverVisibleColumns,ft,e.leftoverVisibleColumns)}this.modelState=e,this.viewState=i,this._updateTrackedRange(n)},O}(),Br=function(){function O(n){this.context=n,this.primaryCursor=new ps(n),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return O.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},O.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var n=0,e=this.secondaryCursors.length;n<e;n++)this.secondaryCursors[n].startTrackingSelection(this.context)},O.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var n=0,e=this.secondaryCursors.length;n<e;n++)this.secondaryCursors[n].stopTrackingSelection(this.context)},O.prototype.updateContext=function(n){this.context=n},O.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var n=0,e=this.secondaryCursors.length;n<e;n++)this.secondaryCursors[n].ensureValidState(this.context)},O.prototype.readSelectionFromMarkers=function(){var n=[];n[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e].readSelectionFromMarkers(this.context);return n},O.prototype.getAll=function(){var n=[];n[0]=this.primaryCursor.asCursorState();for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e].asCursorState();return n},O.prototype.getViewPositions=function(){var n=[];n[0]=this.primaryCursor.viewState.position;for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e].viewState.position;return n},O.prototype.getSelections=function(){var n=[];n[0]=this.primaryCursor.modelState.selection;for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e].modelState.selection;return n},O.prototype.getViewSelections=function(){var n=[];n[0]=this.primaryCursor.viewState.selection;for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e].viewState.selection;return n},O.prototype.setSelections=function(n){this.setStates(Re.d.fromModelSelections(n))},O.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},O.prototype.setStates=function(n){n!==null&&(this.primaryCursor.setState(this.context,n[0].modelState,n[0].viewState),this._setSecondaryStates(n.slice(1)))},O.prototype._setSecondaryStates=function(n){var e=this.secondaryCursors.length,i=n.length;if(e<i)for(var l=i-e,c=0;c<l;c++)this._addSecondaryCursor();else if(e>i)for(var N=e-i,c=0;c<N;c++)this._removeSecondaryCursor(this.secondaryCursors.length-1);for(var c=0;c<i;c++)this.secondaryCursors[c].setState(this.context,n[c].modelState,n[c].viewState)},O.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},O.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new ps(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},O.prototype.getLastAddedCursorIndex=function(){return this.secondaryCursors.length===0||this.lastAddedCursorIndex===0?0:this.lastAddedCursorIndex},O.prototype._removeSecondaryCursor=function(n){this.lastAddedCursorIndex>=n+1&&this.lastAddedCursorIndex--,this.secondaryCursors[n].dispose(this.context),this.secondaryCursors.splice(n,1)},O.prototype._getAll=function(){var n=[];n[0]=this.primaryCursor;for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e];return n},O.prototype.normalize=function(){if(this.secondaryCursors.length!==0){for(var n=this._getAll(),e=[],i=0,l=n.length;i<l;i++)e.push({index:i,selection:n[i].modelState.selection});e.sort(function(dn,an){return dn.selection.startLineNumber===an.selection.startLineNumber?dn.selection.startColumn-an.selection.startColumn:dn.selection.startLineNumber-an.selection.startLineNumber});for(var c=0;c<e.length-1;c++){var N=e[c],pe=e[c+1],ue=N.selection,ze=pe.selection;if(!!this.context.config.multiCursorMergeOverlapping){var st=void 0;if(ze.isEmpty()||ue.isEmpty()?st=ze.getStartPosition().isBeforeOrEqual(ue.getEndPosition()):st=ze.getStartPosition().isBefore(ue.getEndPosition()),st){var ft=N.index<pe.index?c:c+1,y=N.index<pe.index?c+1:c,d=e[y].index,u=e[ft].index,C=e[y].selection,w=e[ft].selection;if(!C.equalsSelection(w)){var b=C.plusRange(w),Q=C.selectionStartLineNumber===C.startLineNumber&&C.selectionStartColumn===C.startColumn,ke=w.selectionStartLineNumber===w.startLineNumber&&w.selectionStartColumn===w.startColumn,rt=void 0;d===this.lastAddedCursorIndex?(rt=Q,this.lastAddedCursorIndex=u):rt=ke;var Ie=void 0;rt?Ie=new pt.a(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):Ie=new pt.a(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn),e[ft].selection=Ie;var lt=Re.d.fromModelSelection(Ie);n[u].setState(this.context,lt.modelState,lt.viewState)}for(var Pt=0,qt=e;Pt<qt.length;Pt++){var en=qt[Pt];en.index>d&&en.index--}n.splice(d,1),e.splice(y,1),this._removeSecondaryCursor(d-1),c--}}}}},O}(),xs=o("snIX"),cr=o("GR/f"),ri=o("iuje"),ta=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function Rs(O){for(var n=0,e=O.length;n<e;n++)if(O[n].type===8)return!0;return!1}var As=function(){function O(n,e,i,l,c,N){this.selections=n,this.modelVersionId=e,this.oldSelections=i,this.oldModelVersionId=l,this.source=c,this.reason=N}return O}(),vs=function(){function O(n,e){this.modelVersionId=n.getVersionId(),this.cursorState=e.getAll()}return O.prototype.equals=function(n){if(!n||this.modelVersionId!==n.modelVersionId||this.cursorState.length!==n.cursorState.length)return!1;for(var e=0,i=this.cursorState.length;e<i;e++)if(!this.cursorState[e].equals(n.cursorState[e]))return!1;return!0},O}(),No=function(){function O(n,e,i){this._model=n,this._autoClosedCharactersDecorations=e,this._autoClosedEnclosingDecorations=i}return O.getAllAutoClosedCharacters=function(n){for(var e=[],i=0,l=n;i<l.length;i++){var c=l[i];e=e.concat(c.getAutoClosedCharactersRanges())}return e},O.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},O.prototype.getAutoClosedCharactersRanges=function(){for(var n=[],e=0;e<this._autoClosedCharactersDecorations.length;e++){var i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[e]);i&&n.push(i)}return n},O.prototype.isValid=function(n){for(var e=[],i=0;i<this._autoClosedEnclosingDecorations.length;i++){var l=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(l&&(e.push(l),l.startLineNumber!==l.endLineNumber))return!1}e.sort(Me.a.compareRangesUsingStarts),n.sort(Me.a.compareRangesUsingStarts);for(var i=0;i<n.length;i++)if(i>=e.length||!e[i].strictContainsRange(n[i]))return!1;return!0},O}(),Fs=function(O){ta(n,O);function n(e,i,l){var c=O.call(this)||this;c._onDidReachMaxCursorCount=c._register(new F.a),c.onDidReachMaxCursorCount=c._onDidReachMaxCursorCount.event,c._onDidAttemptReadOnlyEdit=c._register(new F.a),c.onDidAttemptReadOnlyEdit=c._onDidAttemptReadOnlyEdit.event,c._onDidChange=c._register(new F.a),c.onDidChange=c._onDidChange.event,c._configuration=e,c._model=i,c._knownModelVersionId=c._model.getVersionId(),c._viewModel=l,c.context=new Re.c(c._configuration,c._model,c._viewModel),c._cursors=new Br(c.context),c._isHandling=!1,c._isDoingComposition=!1,c._selectionsWhenCompositionStarted=null,c._columnSelectData=null,c._autoClosedActions=[],c._prevEditOperationType=0,c._register(c._model.onDidChangeRawContent(function(pe){if(c._knownModelVersionId=pe.versionId,!c._isHandling){var ue=pe.containsEvent(1);c._onModelContentChanged(ue)}})),c._register(l.addEventListener(function(pe){!Rs(pe)||c._knownModelVersionId===c._model.getVersionId()&&c.setStates("viewModel",0,c.getAll())}));var N=function(){c.context=new Re.c(c._configuration,c._model,c._viewModel),c._cursors.updateContext(c.context)};return c._register(c._model.onDidChangeLanguage(function(pe){N()})),c._register(c._model.onDidChangeLanguageConfiguration(function(){N()})),c._register(c._model.onDidChangeOptions(function(){N()})),c._register(c._configuration.onDidChange(function(pe){Re.b.shouldRecreate(pe)&&N()})),c}return n.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(V.f)(this._autoClosedActions),O.prototype.dispose.call(this)},n.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var e=this._cursors.getSelections(),i=0;i<this._autoClosedActions.length;i++){var l=this._autoClosedActions[i];l.isValid(e)||(l.dispose(),this._autoClosedActions.splice(i,1),i--)}},n.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},n.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},n.prototype.getAll=function(){return this._cursors.getAll()},n.prototype.setStates=function(e,i,l){l!==null&&l.length>n.MAX_CURSOR_COUNT&&(l=l.slice(0,n.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var c=new vs(this._model,this);this._cursors.setStates(l),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,i,c)},n.prototype.setColumnSelectData=function(e){this._columnSelectData=e},n.prototype.reveal=function(e,i,l,c){this._revealRange(e,l,0,i,c)},n.prototype.revealRange=function(e,i,l,c,N){this.emitCursorRevealRange(e,l,c,i,N)},n.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},n.prototype.saveState=function(){for(var e=[],i=this._cursors.getSelections(),l=0,c=i.length;l<c;l++){var N=i[l];e.push({inSelectionMode:!N.isEmpty(),selectionStart:{lineNumber:N.selectionStartLineNumber,column:N.selectionStartColumn},position:{lineNumber:N.positionLineNumber,column:N.positionColumn}})}return e},n.prototype.restoreState=function(e){for(var i=[],l=0,c=e.length;l<c;l++){var N=e[l],pe=1,ue=1;N.position&&N.position.lineNumber&&(pe=N.position.lineNumber),N.position&&N.position.column&&(ue=N.position.column);var ze=pe,st=ue;N.selectionStart&&N.selectionStart.lineNumber&&(ze=N.selectionStart.lineNumber),N.selectionStart&&N.selectionStart.column&&(st=N.selectionStart.column),i.push({selectionStartLineNumber:ze,selectionStartColumn:st,positionLineNumber:pe,positionColumn:ue})}this.setStates("restoreState",0,Re.d.fromModelSelections(i)),this.reveal("restoreState",!0,0,1)},n.prototype._onModelContentChanged=function(e){if(this._prevEditOperationType=0,e)this._cursors.dispose(),this._cursors=new Br(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var i=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,Re.d.fromModelSelections(i))}},n.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},n.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor(),i=e.viewState.selectionStart.getStartPosition(),l=i.lineNumber,c=Re.a.visibleColumnFromColumn2(this.context.config,this.context.viewModel,i);return{isReal:!1,fromViewLineNumber:l,fromViewVisualColumn:c,toViewLineNumber:l,toViewVisualColumn:c}},n.prototype.getSelections=function(){return this._cursors.getSelections()},n.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},n.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},n.prototype.setSelections=function(e,i){this.setStates(e,0,Re.d.fromModelSelections(i))},n.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},n.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e},n.prototype._pushAutoClosedAction=function(e,i){for(var l=[],c=[],N=0,pe=e.length;N<pe;N++)l.push({range:e[N],options:{inlineClassName:"auto-closed-character",stickiness:1}}),c.push({range:i[N],options:{stickiness:1}});var ue=this._model.deltaDecorations([],l),ze=this._model.deltaDecorations([],c);this._autoClosedActions.push(new No(this._model,ue,ze))},n.prototype._executeEditOperation=function(e){if(!!e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var i=no.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(i){this._interpretCommandResult(i);for(var l=[],c=[],N=0;N<e.commands.length;N++){var pe=e.commands[N];pe instanceof cr.b&&pe.enclosingRange&&pe.closeCharacterRange&&(l.push(pe.closeCharacterRange),c.push(pe.enclosingRange))}l.length>0&&this._pushAutoClosedAction(l,c),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}},n.prototype._interpretCommandResult=function(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},n.prototype._emitStateChangedIfNecessary=function(e,i,l){var c=new vs(this._model,this);if(c.equals(l))return!1;var N=this._cursors.getSelections(),pe=this._cursors.getViewSelections();try{var ue=this._beginEmit();ue.emit(new rr(pe,N))}finally{this._endEmit()}if(!l||l.cursorState.length!==c.cursorState.length||c.cursorState.some(function(ft,y){return!ft.modelState.equals(l.cursorState[y].modelState)})){var ze=l?l.cursorState.map(function(ft){return ft.modelState.selection}):null,st=l?l.modelVersionId:0;this._onDidChange.fire(new As(N,c.modelVersionId,ze,st,e||"keyboard",i))}return!0},n.prototype._revealRange=function(e,i,l,c,N){var pe=this._cursors.getViewPositions(),ue=pe[0];if(i===1)for(var ze=1;ze<pe.length;ze++)pe[ze].isBefore(ue)&&(ue=pe[ze]);else if(i===2)for(var ze=1;ze<pe.length;ze++)ue.isBeforeOrEqual(pe[ze])&&(ue=pe[ze]);else if(pe.length>1)return;var st=new Me.a(ue.lineNumber,ue.column,ue.lineNumber,ue.column);this.emitCursorRevealRange(e,st,l,c,N)},n.prototype.emitCursorRevealRange=function(e,i,l,c,N){try{var pe=this._beginEmit();pe.emit(new Gi(e,i,l,c,N))}finally{this._endEmit()}},n.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var i=[],l=0,c=e.length;l<c;l++){var N=e[l];if(!N.text||N.text.indexOf(`
`)>=0)return null;var pe=N.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!pe)return null;var ue=pe[1],ze=this.context.config.autoClosingPairsClose2.get(ue);if(!ze||ze.length!==1)return null;var st=ze[0].open,ft=N.text.length-pe[2].length-1,y=N.text.lastIndexOf(st,ft-1);if(y===-1)return null;i.push([y,ft])}return i},n.prototype.executeEdits=function(e,i,l){var c=this,N=null;e==="snippet"&&(N=this._findAutoClosingPairs(i)),N&&(i[0]._isTracked=!0);var pe=[],ue=[],ze=this._model.pushEditOperations(this.getSelections(),i,function(st){if(N)for(var ft=0,y=N.length;ft<y;ft++){var d=N[ft],u=d[0],C=d[1],w=st[ft],b=w.range.startLineNumber,Q=w.range.startColumn-1+u,ke=w.range.startColumn-1+C;pe.push(new Me.a(b,ke+1,b,ke+2)),ue.push(new Me.a(b,Q+1,b,ke+2))}var rt=l(st);return rt&&(c._isHandling=!0),rt});ze&&(this._isHandling=!1,this.setSelections(e,ze)),pe.length>0&&this._pushAutoClosedAction(pe,ue)},n.prototype.trigger=function(e,i,l){var c=ri.b;if(i===c.CompositionStart){this._isDoingComposition=!0,this._selectionsWhenCompositionStarted=this.getSelections().slice(0);return}if(i===c.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68)){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var N=new vs(this._model,this),pe=0;i!==c.Undo&&i!==c.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(i){case c.Type:this._type(e,l.text);break;case c.ReplacePreviousChar:this._replacePreviousChar(l.text,l.replaceCharCnt);break;case c.Paste:pe=4,this._paste(l.text,l.pasteOnNewLine,l.multicursorText||[]);break;case c.Cut:this._cut();break;case c.Undo:pe=5,this._interpretCommandResult(this._model.undo());break;case c.Redo:pe=6,this._interpretCommandResult(this._model.redo());break;case c.ExecuteCommand:this._externalExecuteCommand(l);break;case c.ExecuteCommands:this._externalExecuteCommands(l);break;case c.CompositionEnd:this._interpretCompositionEnd(e);break}}catch(ue){Object(P.e)(ue)}this._isHandling=!1,i!==c.Undo&&i!==c.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,pe,N)&&this._revealRange(e,0,0,!0,0)},n.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&e==="keyboard"){var i=No.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(cr.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),i)),this._selectionsWhenCompositionStarted=null}},n.prototype._type=function(e,i){if(!this._isDoingComposition&&e==="keyboard")for(var l=i.length,c=0;c<l;){var N=Kn.E(i,c),pe=i.substr(c,N),ue=No.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(cr.a.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),ue,pe)),c+=N}else this._executeEditOperation(cr.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),i))},n.prototype._replacePreviousChar=function(e,i){this._executeEditOperation(cr.a.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,i))},n.prototype._paste=function(e,i,l){this._executeEditOperation(cr.a.paste(this.context.config,this.context.model,this.getSelections(),e,i,l))},n.prototype._cut=function(){this._executeEditOperation(xs.a.cut(this.context.config,this.context.model,this.getSelections()))},n.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new Re.e(0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},n.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new Re.e(0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},n.MAX_CURSOR_COUNT=1e4,n}(Di),no=function(){function O(){}return O.executeCommands=function(n,e,i){for(var l={model:n,selectionsBefore:e,trackedRanges:[],trackedRangesDirection:[]},c=this._innerExecuteCommands(l,i),N=0,pe=l.trackedRanges.length;N<pe;N++)l.model._setTrackedRange(l.trackedRanges[N],null,0);return c},O._innerExecuteCommands=function(n,e){if(this._arrayIsEmpty(e))return null;var i=this._getEditOperations(n,e);if(i.operations.length===0)return null;var l=i.operations,c=this._getLoserCursorMap(l);if(c.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var N=[],pe=0,ue=l.length;pe<ue;pe++)c.hasOwnProperty(l[pe].identifier.major.toString())||N.push(l[pe]);i.hadTrackedEditOperation&&N.length>0&&(N[0]._isTracked=!0);var ze=n.model.pushEditOperations(n.selectionsBefore,N,function(C){for(var w=[],b=0;b<n.selectionsBefore.length;b++)w[b]=[];for(var Q=0,ke=C;Q<ke.length;Q++){var rt=ke[Q];!rt.identifier||w[rt.identifier.major].push(rt)}for(var Ie=function(en,dn){return en.identifier.minor-dn.identifier.minor},lt=[],Pt=function(en){w[en].length>0?(w[en].sort(Ie),lt[en]=e[en].computeCursorState(n.model,{getInverseEditOperations:function(){return w[en]},getTrackedSelection:function(an){var bn=parseInt(an,10),Rn=n.model._getTrackedRange(n.trackedRanges[bn]);return n.trackedRangesDirection[bn]===0?new pt.a(Rn.startLineNumber,Rn.startColumn,Rn.endLineNumber,Rn.endColumn):new pt.a(Rn.endLineNumber,Rn.endColumn,Rn.startLineNumber,Rn.startColumn)}})):lt[en]=n.selectionsBefore[en]},b=0;b<n.selectionsBefore.length;b++)Pt(b);return lt});ze||(ze=n.selectionsBefore);var st=[];for(var ft in c)c.hasOwnProperty(ft)&&st.push(parseInt(ft,10));st.sort(function(C,w){return w-C});for(var y=0,d=st;y<d.length;y++){var u=d[y];ze.splice(u,1)}return ze},O._arrayIsEmpty=function(n){for(var e=0,i=n.length;e<i;e++)if(n[e])return!1;return!0},O._getEditOperations=function(n,e){for(var i=[],l=!1,c=0,N=e.length;c<N;c++){var pe=e[c];if(pe){var ue=this._getEditOperationsFromCommand(n,c,pe);i=i.concat(ue.operations),l=l||ue.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:l}},O._getEditOperationsFromCommand=function(n,e,i){var l=[],c=0,N=function(y,d,u){u===void 0&&(u=!1),!(y.isEmpty()&&d==="")&&l.push({identifier:{major:e,minor:c++},range:y,text:d,forceMoveMarkers:u,isAutoWhitespaceEdit:i.insertsAutoWhitespace})},pe=!1,ue=function(y,d,u){pe=!0,N(y,d,u)},ze=function(y,d){var u;if(y.isEmpty())if(typeof d=="boolean")d?u=2:u=3;else{var C=n.model.getLineMaxColumn(y.startLineNumber);y.startColumn===C?u=2:u=3}else u=1;var w=n.trackedRanges.length,b=n.model._setTrackedRange(null,y,u);return n.trackedRanges[w]=b,n.trackedRangesDirection[w]=y.getDirection(),w.toString()},st={addEditOperation:N,addTrackedEditOperation:ue,trackSelection:ze};try{i.getEditOperations(n.model,st)}catch(ft){return Object(P.e)(ft),{operations:[],hadTrackedEditOperation:!1}}return{operations:l,hadTrackedEditOperation:pe}},O._getLoserCursorMap=function(n){n=n.slice(0),n.sort(function(ue,ze){return-Me.a.compareRangesUsingEnds(ue.range,ze.range)});for(var e={},i=1;i<n.length;i++){var l=n[i-1],c=n[i];if(l.range.getStartPosition().isBefore(c.range.getEndPosition())){var N=void 0;l.identifier.major>c.identifier.major?N=l.identifier.major:N=c.identifier.major,e[N.toString()]=!0;for(var pe=0;pe<n.length;pe++)n[pe].identifier.major===N&&(n.splice(pe,1),pe<i&&i--,pe--);i>0&&i--}}return e},O}(),Ws=o("9Y+e"),si=o("wQH0"),Bs=o("TQUy"),na=o("QuOb"),Mr=function(){function O(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return O.prototype.insert=function(n){this._hasPending=!0,this._inserts.push(n)},O.prototype.change=function(n){this._hasPending=!0,this._changes.push(n)},O.prototype.remove=function(n){this._hasPending=!0,this._removes.push(n)},O.prototype.mustCommit=function(){return this._hasPending},O.prototype.commit=function(n){if(!!this._hasPending){var e=this._inserts,i=this._changes,l=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],n._commitPendingChanges(e,i,l)}},O}(),io=function(){function O(n,e,i,l,c){this.id=n,this.afterLineNumber=e,this.ordinal=i,this.height=l,this.minWidth=c,this.prefixSum=0}return O}(),ro=function(){function O(n,e){this._instanceId=Kn.L(++O.INSTANCE_COUNT),this._pendingChanges=new Mr,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=n,this._lineHeight=e}return O.findInsertionIndex=function(n,e,i){for(var l=0,c=n.length;l<c;){var N=l+c>>>1;e===n[N].afterLineNumber?i<n[N].ordinal?c=N:l=N+1:e<n[N].afterLineNumber?c=N:l=N+1}return l},O.prototype.setLineHeight=function(n){this._checkPendingChanges(),this._lineHeight=n},O.prototype.onFlushed=function(n){this._checkPendingChanges(),this._lineCount=n},O.prototype.changeWhitespace=function(n){var e=this;try{var i={insertWhitespace:function(c,N,pe,ue){c=c|0,N=N|0,pe=pe|0,ue=ue|0;var ze=e._instanceId+ ++e._lastWhitespaceId;return e._pendingChanges.insert(new io(ze,c,N,pe,ue)),ze},changeOneWhitespace:function(c,N,pe){N=N|0,pe=pe|0,e._pendingChanges.change({id:c,newAfterLineNumber:N,newHeight:pe})},removeWhitespace:function(c){e._pendingChanges.remove({id:c})}};return n(i)}finally{this._pendingChanges.commit(this)}},O.prototype._commitPendingChanges=function(n,e,i){if((n.length>0||i.length>0)&&(this._minWidth=-1),n.length+e.length+i.length<=1){for(var l=0,c=n;l<c.length;l++){var N=c[l];this._insertWhitespace(N)}for(var pe=0,ue=e;pe<ue.length;pe++){var ze=ue[pe];this._changeOneWhitespace(ze.id,ze.newAfterLineNumber,ze.newHeight)}for(var st=0,ft=i;st<ft.length;st++){var y=ft[st],d=this._findWhitespaceIndex(y.id);d!==-1&&this._removeWhitespace(d)}return}for(var u=new Set,C=0,w=i;C<w.length;C++){var y=w[C];u.add(y.id)}for(var b=new Map,Q=0,ke=e;Q<ke.length;Q++){var ze=ke[Q];b.set(ze.id,ze)}var rt=function(Pt){for(var qt=[],en=0,dn=Pt;en<dn.length;en++){var an=dn[en];if(!u.has(an.id)){if(b.has(an.id)){var bn=b.get(an.id);an.afterLineNumber=bn.newAfterLineNumber,an.height=bn.newHeight}qt.push(an)}}return qt},Ie=rt(this._arr).concat(rt(n));Ie.sort(function(lt,Pt){return lt.afterLineNumber===Pt.afterLineNumber?lt.ordinal-Pt.ordinal:lt.afterLineNumber-Pt.afterLineNumber}),this._arr=Ie,this._prefixSumValidIndex=-1},O.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)},O.prototype._insertWhitespace=function(n){var e=O.findInsertionIndex(this._arr,n.afterLineNumber,n.ordinal);this._arr.splice(e,0,n),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)},O.prototype._findWhitespaceIndex=function(n){for(var e=this._arr,i=0,l=e.length;i<l;i++)if(e[i].id===n)return i;return-1},O.prototype._changeOneWhitespace=function(n,e,i){var l=this._findWhitespaceIndex(n);if(l!==-1&&(this._arr[l].height!==i&&(this._arr[l].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,l-1)),this._arr[l].afterLineNumber!==e)){var c=this._arr[l];this._removeWhitespace(l),c.afterLineNumber=e,this._insertWhitespace(c)}},O.prototype._removeWhitespace=function(n){this._arr.splice(n,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)},O.prototype.onLinesDeleted=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0,this._lineCount-=e-n+1;for(var i=0,l=this._arr.length;i<l;i++){var c=this._arr[i].afterLineNumber;n<=c&&c<=e?this._arr[i].afterLineNumber=n-1:c>e&&(this._arr[i].afterLineNumber-=e-n+1)}},O.prototype.onLinesInserted=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0,this._lineCount+=e-n+1;for(var i=0,l=this._arr.length;i<l;i++){var c=this._arr[i].afterLineNumber;n<=c&&(this._arr[i].afterLineNumber+=e-n+1)}},O.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),this._arr.length===0?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},O.prototype.getWhitespacesAccumulatedHeight=function(n){this._checkPendingChanges(),n=n|0;var e=Math.max(0,this._prefixSumValidIndex+1);e===0&&(this._arr[0].prefixSum=this._arr[0].height,e++);for(var i=e;i<=n;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,n),this._arr[n].prefixSum},O.prototype.getLinesTotalHeight=function(){this._checkPendingChanges();var n=this._lineHeight*this._lineCount,e=this.getWhitespacesTotalHeight();return n+e},O.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(n){this._checkPendingChanges(),n=n|0;var e=this._findLastWhitespaceBeforeLineNumber(n);return e===-1?0:this.getWhitespacesAccumulatedHeight(e)},O.prototype._findLastWhitespaceBeforeLineNumber=function(n){n=n|0;for(var e=this._arr,i=0,l=e.length-1;i<=l;){var c=l-i|0,N=c/2|0,pe=i+N|0;if(e[pe].afterLineNumber<n){if(pe+1>=e.length||e[pe+1].afterLineNumber>=n)return pe;i=pe+1|0}else l=pe-1|0}return-1},O.prototype._findFirstWhitespaceAfterLineNumber=function(n){n=n|0;var e=this._findLastWhitespaceBeforeLineNumber(n),i=e+1;return i<this._arr.length?i:-1},O.prototype.getFirstWhitespaceIndexAfterLineNumber=function(n){return this._checkPendingChanges(),n=n|0,this._findFirstWhitespaceAfterLineNumber(n)},O.prototype.getVerticalOffsetForLineNumber=function(n){this._checkPendingChanges(),n=n|0;var e;n>1?e=this._lineHeight*(n-1):e=0;var i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(n);return e+i},O.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),this._minWidth===-1){for(var n=0,e=0,i=this._arr.length;e<i;e++)n=Math.max(n,this._arr[e].minWidth);this._minWidth=n}return this._minWidth},O.prototype.isAfterLines=function(n){this._checkPendingChanges();var e=this.getLinesTotalHeight();return n>e},O.prototype.getLineNumberAtOrAfterVerticalOffset=function(n){if(this._checkPendingChanges(),n=n|0,n<0)return 1;for(var e=this._lineCount|0,i=this._lineHeight,l=1,c=e;l<c;){var N=(l+c)/2|0,pe=this.getVerticalOffsetForLineNumber(N)|0;if(n>=pe+i)l=N+1;else{if(n>=pe)return N;c=N}}return l>e?e:l},O.prototype.getLinesViewportData=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0;var i=this._lineHeight,l=this.getLineNumberAtOrAfterVerticalOffset(n)|0,c=this.getVerticalOffsetForLineNumber(l)|0,N=this._lineCount|0,pe=this.getFirstWhitespaceIndexAfterLineNumber(l)|0,ue=this.getWhitespacesCount()|0,ze,st;pe===-1?(pe=ue,st=N+1,ze=0):(st=this.getAfterLineNumberForWhitespaceIndex(pe)|0,ze=this.getHeightForWhitespaceIndex(pe)|0);var ft=c,y=ft,d=5e5,u=0;c>=d&&(u=Math.floor(c/d)*d,u=Math.floor(u/i)*i,y-=u);for(var C=[],w=n+(e-n)/2,b=-1,Q=l;Q<=N;Q++){if(b===-1){var ke=ft,rt=ft+i;(ke<=w&&w<rt||ke>w)&&(b=Q)}for(ft+=i,C[Q-l]=y,y+=i;st===Q;)y+=ze,ft+=ze,pe++,pe>=ue?st=N+1:(st=this.getAfterLineNumberForWhitespaceIndex(pe)|0,ze=this.getHeightForWhitespaceIndex(pe)|0);if(ft>=e){N=Q;break}}b===-1&&(b=N);var Ie=this.getVerticalOffsetForLineNumber(N)|0,lt=l,Pt=N;return lt<Pt&&c<n&&lt++,lt<Pt&&Ie+i>e&&Pt--,{bigNumbersDelta:u,startLineNumber:l,endLineNumber:N,relativeVerticalOffset:C,centeredLineNumber:b,completelyVisibleStartLineNumber:lt,completelyVisibleEndLineNumber:Pt}},O.prototype.getVerticalOffsetForWhitespaceIndex=function(n){this._checkPendingChanges(),n=n|0;var e=this.getAfterLineNumberForWhitespaceIndex(n),i;e>=1?i=this._lineHeight*e:i=0;var l;return n>0?l=this.getWhitespacesAccumulatedHeight(n-1):l=0,i+l},O.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(n){this._checkPendingChanges(),n=n|0;var e=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;var l=this.getVerticalOffsetForWhitespaceIndex(i),c=this.getHeightForWhitespaceIndex(i);if(n>=l+c)return-1;for(;e<i;){var N=Math.floor((e+i)/2),pe=this.getVerticalOffsetForWhitespaceIndex(N),ue=this.getHeightForWhitespaceIndex(N);if(n>=pe+ue)e=N+1;else{if(n>=pe)return N;i=N}}return e},O.prototype.getWhitespaceAtVerticalOffset=function(n){this._checkPendingChanges(),n=n|0;var e=this.getWhitespaceIndexAtOrAfterVerticallOffset(n);if(e<0||e>=this.getWhitespacesCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(e);if(i>n)return null;var l=this.getHeightForWhitespaceIndex(e),c=this.getIdForWhitespaceIndex(e),N=this.getAfterLineNumberForWhitespaceIndex(e);return{id:c,afterLineNumber:N,verticalOffset:i,height:l}},O.prototype.getWhitespaceViewportData=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(n),l=this.getWhitespacesCount()-1;if(i<0)return[];for(var c=[],N=i;N<=l;N++){var pe=this.getVerticalOffsetForWhitespaceIndex(N),ue=this.getHeightForWhitespaceIndex(N);if(pe>=e)break;c.push({id:this.getIdForWhitespaceIndex(N),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(N),verticalOffset:pe,height:ue})}return c},O.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},O.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},O.prototype.getIdForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].id},O.prototype.getAfterLineNumberForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].afterLineNumber},O.prototype.getHeightForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].height},O.INSTANCE_COUNT=0,O}(),nr=o("qNAo"),Cr=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ei=125,Wi=function(){function O(n,e,i,l){n=n|0,e=e|0,i=i|0,l=l|0,n<0&&(n=0),e<0&&(e=0),i<0&&(i=0),l<0&&(l=0),this.width=n,this.contentWidth=e,this.scrollWidth=Math.max(n,e),this.height=i,this.contentHeight=l,this.scrollHeight=Math.max(i,l)}return O.prototype.equals=function(n){return this.width===n.width&&this.contentWidth===n.contentWidth&&this.height===n.height&&this.contentHeight===n.contentHeight},O}(),Io=function(O){Cr(n,O);function n(e,i){var l=O.call(this)||this;return l._onDidContentSizeChange=l._register(new F.a),l.onDidContentSizeChange=l._onDidContentSizeChange.event,l._dimensions=new Wi(0,0,0,0),l._scrollable=l._register(new na.a(e,i)),l.onDidScroll=l._scrollable.onScroll,l}return n.prototype.getScrollable=function(){return this._scrollable},n.prototype.setSmoothScrollDuration=function(e){this._scrollable.setSmoothScrollDuration(e)},n.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},n.prototype.getScrollDimensions=function(){return this._dimensions},n.prototype.setScrollDimensions=function(e){if(!this._dimensions.equals(e)){var i=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight});var l=i.contentWidth!==e.contentWidth,c=i.contentHeight!==e.contentHeight;(l||c)&&this._onDidContentSizeChange.fire({contentWidth:e.contentWidth,contentHeight:e.contentHeight,contentWidthChanged:l,contentHeightChanged:c})}},n.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},n.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},n.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},n.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},n}(V.a),To=function(O){Cr(n,O);function n(e,i,l){var c=O.call(this)||this;c._configuration=e;var N=c._configuration.options,pe=N.get(107);return c._linesLayout=new ro(i,N.get(49)),c._scrollable=c._register(new Io(0,l)),c._configureSmoothScrollDuration(),c._scrollable.setScrollDimensions(new Wi(pe.contentWidth,0,pe.height,0)),c.onDidScroll=c._scrollable.onDidScroll,c.onDidContentSizeChange=c._scrollable.onDidContentSizeChange,c._updateHeight(),c}return n.prototype.dispose=function(){O.prototype.dispose.call(this)},n.prototype.getScrollable=function(){return this._scrollable.getScrollable()},n.prototype.onHeightMaybeChanged=function(){this._updateHeight()},n.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?Ei:0)},n.prototype.onConfigurationChanged=function(e){var i=this._configuration.options;if(e.hasChanged(49)&&this._linesLayout.setLineHeight(i.get(49)),e.hasChanged(107)){var l=i.get(107),c=l.contentWidth,N=l.height,pe=this._scrollable.getScrollDimensions(),ue=pe.scrollWidth;this._scrollable.setScrollDimensions(new Wi(c,pe.contentWidth,N,this._getContentHeight(c,N,ue)))}else this._updateHeight();e.hasChanged(87)&&this._configureSmoothScrollDuration()},n.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)},n.prototype.onLinesDeleted=function(e,i){this._linesLayout.onLinesDeleted(e,i)},n.prototype.onLinesInserted=function(e,i){this._linesLayout.onLinesInserted(e,i)},n.prototype._getHorizontalScrollbarHeight=function(e,i){var l=this._configuration.options,c=l.get(78);return c.horizontal===2||e>=i?0:c.horizontalScrollbarSize},n.prototype._getContentHeight=function(e,i,l){var c=this._configuration.options,N=this._linesLayout.getLinesTotalHeight();return c.get(80)?N+=i-c.get(49):N+=this._getHorizontalScrollbarHeight(e,l),N},n.prototype._updateHeight=function(){var e=this._scrollable.getScrollDimensions(),i=e.width,l=e.height,c=e.scrollWidth;this._scrollable.setScrollDimensions(new Wi(i,e.contentWidth,l,this._getContentHeight(i,l,c)))},n.prototype.getCurrentViewport=function(){var e=this._scrollable.getScrollDimensions(),i=this._scrollable.getCurrentScrollPosition();return new nr.f(i.scrollTop,i.scrollLeft,e.width,e.height)},n.prototype.getFutureViewport=function(){var e=this._scrollable.getScrollDimensions(),i=this._scrollable.getFutureScrollPosition();return new nr.f(i.scrollTop,i.scrollLeft,e.width,e.height)},n.prototype._computeContentWidth=function(e){var i=this._configuration.options,l=i.get(108),c=i.get(34);if(l.isViewportWrapping){var N=i.get(107),pe=i.get(54);return e>N.contentWidth+c.typicalHalfwidthCharacterWidth&&pe.enabled&&pe.side==="right"?e+N.verticalScrollbarWidth:e}else{var ue=i.get(79)*c.typicalHalfwidthCharacterWidth,ze=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+ue,ze)}},n.prototype.onMaxLineWidthChanged=function(e){var i=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Wi(i.width,this._computeContentWidth(e),i.height,i.contentHeight)),this._updateHeight()},n.prototype.saveState=function(){var e=this._scrollable.getFutureScrollPosition(),i=e.scrollTop,l=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i),c=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(l);return{scrollTop:i,scrollTopWithoutViewZones:i-c,scrollLeft:e.scrollLeft}},n.prototype.changeWhitespace=function(e){return this._linesLayout.changeWhitespace(e)},n.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},n.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},n.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},n.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},n.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},n.prototype.getLinesViewportDataAtScrollTop=function(e){var i=this._scrollable.getScrollDimensions();return e+i.height>i.scrollHeight&&(e=i.scrollHeight-i.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+i.height)},n.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},n.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},n.prototype.getContentWidth=function(){var e=this._scrollable.getScrollDimensions();return e.contentWidth},n.prototype.getScrollWidth=function(){var e=this._scrollable.getScrollDimensions();return e.scrollWidth},n.prototype.getContentHeight=function(){var e=this._scrollable.getScrollDimensions();return e.contentHeight},n.prototype.getScrollHeight=function(){var e=this._scrollable.getScrollDimensions();return e.scrollHeight},n.prototype.getCurrentScrollLeft=function(){var e=this._scrollable.getCurrentScrollPosition();return e.scrollLeft},n.prototype.getCurrentScrollTop=function(){var e=this._scrollable.getCurrentScrollPosition();return e.scrollTop},n.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},n.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},n.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},n.prototype.deltaScrollNow=function(e,i){var l=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:l.scrollLeft+e,scrollTop:l.scrollTop+i})},n}(V.a),oo=o("tX9W"),Ko=o("LeU+"),Po=function(){function O(n,e){this.outputLineIndex=n,this.outputOffset=e}return O}(),so=function(){function O(n,e,i){this.breakOffsets=n,this.breakOffsetsVisibleColumn=e,this.wrappedTextIndentLength=i}return O.getInputOffsetOfOutputPosition=function(n,e,i){return e===0?i:n[e-1]+i},O.getOutputPositionOfInputOffset=function(n,e){for(var i=0,l=n.length-1,c=0,N=0;i<=l;){c=i+(l-i)/2|0;var pe=n[c];if(N=c>0?n[c-1]:0,e<N)l=c-1;else if(e>=pe)i=c+1;else break}return new Po(c,e-N)},O}(),br=function(){function O(n){this._lines=n}return O.prototype.convertViewPositionToModelPosition=function(n){return this._lines.convertViewPositionToModelPosition(n.lineNumber,n.column)},O.prototype.convertViewRangeToModelRange=function(n){return this._lines.convertViewRangeToModelRange(n)},O.prototype.validateViewPosition=function(n,e){return this._lines.validateViewPosition(n.lineNumber,n.column,e)},O.prototype.validateViewRange=function(n,e){return this._lines.validateViewRange(n,e)},O.prototype.convertModelPositionToViewPosition=function(n){return this._lines.convertModelPositionToViewPosition(n.lineNumber,n.column)},O.prototype.convertModelRangeToViewRange=function(n){return this._lines.convertModelRangeToViewRange(n)},O.prototype.modelPositionIsVisible=function(n){return this._lines.modelPositionIsVisible(n.lineNumber,n.column)},O}(),Er=function(){function O(n){this._counts=n,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}return O.prototype._invalidate=function(n){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,n-1)},O.prototype._ensureValid=function(){if(!this._isValid){for(var n=this._validEndIndex+1,e=this._counts.length;n<e;n++){var i=this._counts[n],l=n>0?this._modelToView[n-1]:0;this._modelToView[n]=l+i;for(var c=0;c<i;c++)this._viewToModel[l+c]=n}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1}},O.prototype.changeValue=function(n,e){this._counts[n]!==e&&(this._counts[n]=e,this._invalidate(n))},O.prototype.removeValues=function(n,e){this._counts.splice(n,e),this._invalidate(n)},O.prototype.insertValues=function(n,e){this._counts=Fe.a(this._counts,n,e),this._invalidate(n)},O.prototype.getTotalValue=function(){return this._ensureValid(),this._viewToModel.length},O.prototype.getAccumulatedValue=function(n){return this._ensureValid(),this._modelToView[n]},O.prototype.getIndexOf=function(n){this._ensureValid();var e=this._viewToModel[n],i=e>0?this._modelToView[e-1]:0;return new Ko.b(e,n-i)},O}(),ms=function(){function O(n,e,i,l,c,N,pe,ue){this.model=n,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=e,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=l,this.tabSize=c,this.wrappingStrategy=N,this.wrappingColumn=pe,this.wrappingIndent=ue,this._constructLines(!0,null)}return O.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},O.prototype.createCoordinatesConverter=function(){return new br(this)},O.prototype._constructLines=function(n,e){var i=this;this.lines=[],n&&(this.hiddenAreasIds=[]);for(var l=this.model.getLinesContent(),c=l.length,N=this.createLineBreaksComputer(),pe=0;pe<c;pe++)N.addRequest(l[pe],e?e[pe]:null);for(var ue=N.finalize(),ze=[],st=this.hiddenAreasIds.map(function(Q){return i.model.getDecorationRange(Q)}).sort(Me.a.compareRangesUsingStarts),ft=1,y=0,d=-1,u=d+1<st.length?y+1:c+2,pe=0;pe<c;pe++){var C=pe+1;C===u&&(d++,ft=st[d].startLineNumber,y=st[d].endLineNumber,u=d+1<st.length?y+1:c+2);var w=C>=ft&&C<=y,b=hr(ue[pe],!w);ze[pe]=b.getViewLineCount(),this.lines[pe]=b}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Er(ze)},O.prototype.getHiddenAreas=function(){var n=this;return this.hiddenAreasIds.map(function(e){return n.model.getDecorationRange(e)})},O.prototype._reduceRanges=function(n){var e=this;if(n.length===0)return[];for(var i=n.map(function(st){return e.model.validateRange(st)}).sort(Me.a.compareRangesUsingStarts),l=[],c=i[0].startLineNumber,N=i[0].endLineNumber,pe=1,ue=i.length;pe<ue;pe++){var ze=i[pe];ze.startLineNumber>N+1?(l.push(new Me.a(c,1,N,1)),c=ze.startLineNumber,N=ze.endLineNumber):ze.endLineNumber>N&&(N=ze.endLineNumber)}return l.push(new Me.a(c,1,N,1)),l},O.prototype.setHiddenAreas=function(n){var e=this,i=this._reduceRanges(n),l=this.hiddenAreasIds.map(function(rt){return e.model.getDecorationRange(rt)}).sort(Me.a.compareRangesUsingStarts);if(i.length===l.length){for(var c=!1,N=0;N<i.length;N++)if(!i[N].equalsRange(l[N])){c=!0;break}if(!c)return!1}for(var pe=[],ue=0,ze=i;ue<ze.length;ue++){var st=ze[ue];pe.push({range:st,options:oo.a.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,pe);for(var ft=i,y=1,d=0,u=-1,C=u+1<ft.length?d+1:this.lines.length+2,w=!1,N=0;N<this.lines.length;N++){var b=N+1;b===C&&(u++,y=ft[u].startLineNumber,d=ft[u].endLineNumber,C=u+1<ft.length?d+1:this.lines.length+2);var Q=!1;if(b>=y&&b<=d?this.lines[N].isVisible()&&(this.lines[N]=this.lines[N].setVisible(!1),Q=!0):(w=!0,this.lines[N].isVisible()||(this.lines[N]=this.lines[N].setVisible(!0),Q=!0)),Q){var ke=this.lines[N].getViewLineCount();this.prefixSumComputer.changeValue(N,ke)}}return w||this.setHiddenAreas([]),!0},O.prototype.modelPositionIsVisible=function(n,e){return n<1||n>this.lines.length?!1:this.lines[n-1].isVisible()},O.prototype.setTabSize=function(n){return this.tabSize===n?!1:(this.tabSize=n,this._constructLines(!1,null),!0)},O.prototype.setWrappingSettings=function(n,e,i,l){var c=this.fontInfo.equals(n),N=this.wrappingStrategy===e,pe=this.wrappingColumn===i,ue=this.wrappingIndent===l;if(c&&N&&pe&&ue)return!1;var ze=c&&N&&!pe&&ue;this.fontInfo=n,this.wrappingStrategy=e,this.wrappingColumn=i,this.wrappingIndent=l;var st=null;if(ze){st=[];for(var ft=0,y=this.lines.length;ft<y;ft++)st[ft]=this.lines[ft].getLineBreakData()}return this._constructLines(!1,st),!0},O.prototype.createLineBreaksComputer=function(){var n=this.wrappingStrategy==="advanced"?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory;return n.createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)},O.prototype.onModelFlushed=function(){this._constructLines(!0,null)},O.prototype.onModelLinesDeleted=function(n,e,i){if(n<=this._validModelVersionId)return null;var l=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,c=this.prefixSumComputer.getAccumulatedValue(i-1);return this.lines.splice(e-1,i-e+1),this.prefixSumComputer.removeValues(e-1,i-e+1),new ji(l,c)},O.prototype.onModelLinesInserted=function(n,e,i,l){if(n<=this._validModelVersionId)return null;for(var c=this.getHiddenAreas(),N=!1,pe=new me.a(e,1),ue=0,ze=c;ue<ze.length;ue++){var st=ze[ue];if(st.containsPosition(pe)){N=!0;break}}for(var ft=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,y=0,d=[],u=[],C=0,w=l.length;C<w;C++){var b=hr(l[C],!N);d.push(b);var Q=b.getViewLineCount();y+=Q,u[C]=Q}return this.lines=this.lines.slice(0,e-1).concat(d).concat(this.lines.slice(e-1)),this.prefixSumComputer.insertValues(e-1,u),new Mi(ft,ft+y-1)},O.prototype.onModelLineChanged=function(n,e,i){if(n<=this._validModelVersionId)return[!1,null,null,null];var l=e-1,c=this.lines[l].getViewLineCount(),N=this.lines[l].isVisible(),pe=hr(i,N);this.lines[l]=pe;var ue=this.lines[l].getViewLineCount(),ze=!1,st=0,ft=-1,y=0,d=-1,u=0,C=-1;c>ue?(st=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,ft=st+ue-1,u=ft+1,C=u+(c-ue)-1,ze=!0):c<ue?(st=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,ft=st+c-1,y=ft+1,d=y+(ue-c)-1,ze=!0):(st=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,ft=st+ue-1),this.prefixSumComputer.changeValue(l,ue);var w=st<=ft?new bi(st,ft):null,b=y<=d?new Mi(y,d):null,Q=u<=C?new ji(u,C):null;return[ze,w,b,Q]},O.prototype.acceptVersionId=function(n){this._validModelVersionId=n,this.lines.length===1&&!this.lines[0].isVisible()&&this.setHiddenAreas([])},O.prototype.getViewLineCount=function(){return this.prefixSumComputer.getTotalValue()},O.prototype._toValidViewLineNumber=function(n){if(n<1)return 1;var e=this.getViewLineCount();return n>e?e:n|0},O.prototype.getActiveIndentGuide=function(n,e,i){n=this._toValidViewLineNumber(n),e=this._toValidViewLineNumber(e),i=this._toValidViewLineNumber(i);var l=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),c=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),N=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),pe=this.model.getActiveIndentGuide(l.lineNumber,c.lineNumber,N.lineNumber),ue=this.convertModelPositionToViewPosition(pe.startLineNumber,1),ze=this.convertModelPositionToViewPosition(pe.endLineNumber,this.model.getLineMaxColumn(pe.endLineNumber));return{startLineNumber:ue.lineNumber,endLineNumber:ze.lineNumber,indent:pe.indent}},O.prototype.getViewLinesIndentGuides=function(n,e){n=this._toValidViewLineNumber(n),e=this._toValidViewLineNumber(e);for(var i=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),l=this.convertViewPositionToModelPosition(e,this.getViewLineMaxColumn(e)),c=[],N=[],pe=[],ue=i.lineNumber-1,ze=l.lineNumber-1,st=null,ft=ue;ft<=ze;ft++){var y=this.lines[ft];if(y.isVisible()){var d=y.getViewLineNumberOfModelPosition(0,ft===ue?i.column:1),u=y.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(ft+1)),C=u-d+1,w=0;C>1&&y.getViewLineMinColumn(this.model,ft+1,u)===1&&(w=d===0?1:2),N.push(C),pe.push(w),st===null&&(st=new me.a(ft+1,0))}else st!==null&&(c=c.concat(this.model.getLinesIndentGuides(st.lineNumber,ft)),st=null)}st!==null&&(c=c.concat(this.model.getLinesIndentGuides(st.lineNumber,l.lineNumber)),st=null);for(var b=e-n+1,Q=new Array(b),ke=0,rt=0,Ie=c.length;rt<Ie;rt++){var lt=c[rt],C=Math.min(b-ke,N[rt]),w=pe[rt],Pt=void 0;w===2?Pt=0:w===1?Pt=1:Pt=C;for(var qt=0;qt<C;qt++)qt===Pt&&(lt=0),Q[ke++]=lt}return Q},O.prototype.getViewLineContent=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,l=e.remainder;return this.lines[i].getViewLineContent(this.model,i+1,l)},O.prototype.getViewLineLength=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,l=e.remainder;return this.lines[i].getViewLineLength(this.model,i+1,l)},O.prototype.getViewLineMinColumn=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,l=e.remainder;return this.lines[i].getViewLineMinColumn(this.model,i+1,l)},O.prototype.getViewLineMaxColumn=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,l=e.remainder;return this.lines[i].getViewLineMaxColumn(this.model,i+1,l)},O.prototype.getViewLineData=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,l=e.remainder;return this.lines[i].getViewLineData(this.model,i+1,l)},O.prototype.getViewLinesData=function(n,e,i){n=this._toValidViewLineNumber(n),e=this._toValidViewLineNumber(e);for(var l=this.prefixSumComputer.getIndexOf(n-1),c=n,N=l.index,pe=l.remainder,ue=[],ze=N,st=this.model.getLineCount();ze<st;ze++){var ft=this.lines[ze];if(!!ft.isVisible()){var y=ze===N?pe:0,d=ft.getViewLineCount()-y,u=!1;c+d>e&&(u=!0,d=e-c+1);var C=y+d;if(ft.getViewLinesData(this.model,ze+1,y,C,c-n,i,ue),c+=d,u)break}}return ue},O.prototype.validateViewPosition=function(n,e,i){n=this._toValidViewLineNumber(n);var l=this.prefixSumComputer.getIndexOf(n-1),c=l.index,N=l.remainder,pe=this.lines[c],ue=pe.getViewLineMinColumn(this.model,c+1,N),ze=pe.getViewLineMaxColumn(this.model,c+1,N);e<ue&&(e=ue),e>ze&&(e=ze);var st=pe.getModelColumnOfViewPosition(N,e),ft=this.model.validatePosition(new me.a(c+1,st));return ft.equals(i)?new me.a(n,e):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},O.prototype.validateViewRange=function(n,e){var i=this.validateViewPosition(n.startLineNumber,n.startColumn,e.getStartPosition()),l=this.validateViewPosition(n.endLineNumber,n.endColumn,e.getEndPosition());return new Me.a(i.lineNumber,i.column,l.lineNumber,l.column)},O.prototype.convertViewPositionToModelPosition=function(n,e){n=this._toValidViewLineNumber(n);var i=this.prefixSumComputer.getIndexOf(n-1),l=i.index,c=i.remainder,N=this.lines[l].getModelColumnOfViewPosition(c,e);return this.model.validatePosition(new me.a(l+1,N))},O.prototype.convertViewRangeToModelRange=function(n){var e=this.convertViewPositionToModelPosition(n.startLineNumber,n.startColumn),i=this.convertViewPositionToModelPosition(n.endLineNumber,n.endColumn);return new Me.a(e.lineNumber,e.column,i.lineNumber,i.column)},O.prototype.convertModelPositionToViewPosition=function(n,e){for(var i=this.model.validatePosition(new me.a(n,e)),l=i.lineNumber,c=i.column,N=l-1,pe=!1;N>0&&!this.lines[N].isVisible();)N--,pe=!0;if(N===0&&!this.lines[N].isVisible())return new me.a(1,1);var ue=1+(N===0?0:this.prefixSumComputer.getAccumulatedValue(N-1)),ze;return pe?ze=this.lines[N].getViewPositionOfModelPosition(ue,this.model.getLineMaxColumn(N+1)):ze=this.lines[l-1].getViewPositionOfModelPosition(ue,c),ze},O.prototype.convertModelRangeToViewRange=function(n){var e=this.convertModelPositionToViewPosition(n.startLineNumber,n.startColumn),i=this.convertModelPositionToViewPosition(n.endLineNumber,n.endColumn);return n.startLineNumber===n.endLineNumber&&e.lineNumber!==i.lineNumber&&i.column===this.getViewLineMinColumn(i.lineNumber)?new Me.a(e.lineNumber,e.column,i.lineNumber-1,this.getViewLineMaxColumn(i.lineNumber-1)):new Me.a(e.lineNumber,e.column,i.lineNumber,i.column)},O.prototype._getViewLineNumberForModelPosition=function(n,e){var i=n-1;if(this.lines[i].isVisible()){var l=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(l,e)}for(;i>0&&!this.lines[i].isVisible();)i--;if(i===0&&!this.lines[i].isVisible())return 1;var c=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(c,this.model.getLineMaxColumn(i+1))},O.prototype.getAllOverviewRulerDecorations=function(n,e,i){for(var l=this.model.getOverviewRulerDecorations(n,e),c=new Co,N=0,pe=l;N<pe.length;N++){var ue=pe[N],ze=ue.options.overviewRuler,st=ze?ze.position:0;if(st!==0){var ft=ze.getColor(i),y=this._getViewLineNumberForModelPosition(ue.range.startLineNumber,ue.range.startColumn),d=this._getViewLineNumberForModelPosition(ue.range.endLineNumber,ue.range.endColumn);c.accept(ft,y,d,st)}}return c.result},O.prototype.getDecorationsInRange=function(n,e,i){var l=this.convertViewPositionToModelPosition(n.startLineNumber,n.startColumn),c=this.convertViewPositionToModelPosition(n.endLineNumber,n.endColumn);if(c.lineNumber-l.lineNumber<=n.endLineNumber-n.startLineNumber)return this.model.getDecorationsInRange(new Me.a(l.lineNumber,1,c.lineNumber,c.column),e,i);for(var N=[],pe=l.lineNumber-1,ue=c.lineNumber-1,ze=null,st=pe;st<=ue;st++){var ft=this.lines[st];if(ft.isVisible())ze===null&&(ze=new me.a(st+1,st===pe?l.column:1));else if(ze!==null){var y=this.model.getLineMaxColumn(st);N=N.concat(this.model.getDecorationsInRange(new Me.a(ze.lineNumber,ze.column,st,y),e,i)),ze=null}}ze!==null&&(N=N.concat(this.model.getDecorationsInRange(new Me.a(ze.lineNumber,ze.column,c.lineNumber,c.column),e,i)),ze=null),N.sort(function(rt,Ie){var lt=Me.a.compareRangesUsingStarts(rt.range,Ie.range);return lt===0?rt.id<Ie.id?-1:rt.id>Ie.id?1:0:lt});for(var d=[],u=0,C=null,w=0,b=N;w<b.length;w++){var Q=b[w],ke=Q.id;C!==ke&&(C=ke,d[u++]=Q)}return d},O}(),fr=function(){function O(){}return O.prototype.isVisible=function(){return!0},O.prototype.setVisible=function(n){return n?this:ao.INSTANCE},O.prototype.getLineBreakData=function(){return null},O.prototype.getViewLineCount=function(){return 1},O.prototype.getViewLineContent=function(n,e,i){return n.getLineContent(e)},O.prototype.getViewLineLength=function(n,e,i){return n.getLineLength(e)},O.prototype.getViewLineMinColumn=function(n,e,i){return n.getLineMinColumn(e)},O.prototype.getViewLineMaxColumn=function(n,e,i){return n.getLineMaxColumn(e)},O.prototype.getViewLineData=function(n,e,i){var l=n.getLineTokens(e),c=l.getLineContent();return new nr.c(c,!1,1,c.length+1,0,l.inflate())},O.prototype.getViewLinesData=function(n,e,i,l,c,N,pe){if(!N[c]){pe[c]=null;return}pe[c]=this.getViewLineData(n,e,0)},O.prototype.getModelColumnOfViewPosition=function(n,e){return e},O.prototype.getViewPositionOfModelPosition=function(n,e){return new me.a(n,e)},O.prototype.getViewLineNumberOfModelPosition=function(n,e){return n},O.INSTANCE=new O,O}(),ao=function(){function O(){}return O.prototype.isVisible=function(){return!1},O.prototype.setVisible=function(n){return n?fr.INSTANCE:this},O.prototype.getLineBreakData=function(){return null},O.prototype.getViewLineCount=function(){return 0},O.prototype.getViewLineContent=function(n,e,i){throw new Error("Not supported")},O.prototype.getViewLineLength=function(n,e,i){throw new Error("Not supported")},O.prototype.getViewLineMinColumn=function(n,e,i){throw new Error("Not supported")},O.prototype.getViewLineMaxColumn=function(n,e,i){throw new Error("Not supported")},O.prototype.getViewLineData=function(n,e,i){throw new Error("Not supported")},O.prototype.getViewLinesData=function(n,e,i,l,c,N,pe){throw new Error("Not supported")},O.prototype.getModelColumnOfViewPosition=function(n,e){throw new Error("Not supported")},O.prototype.getViewPositionOfModelPosition=function(n,e){throw new Error("Not supported")},O.prototype.getViewLineNumberOfModelPosition=function(n,e){throw new Error("Not supported")},O.INSTANCE=new O,O}(),js=function(){function O(n,e){this._lineBreakData=n,this._isVisible=e}return O.prototype.isVisible=function(){return this._isVisible},O.prototype.setVisible=function(n){return this._isVisible=n,this},O.prototype.getLineBreakData=function(){return this._lineBreakData},O.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},O.prototype.getInputStartOffsetOfOutputLineIndex=function(n){return so.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n,0)},O.prototype.getInputEndOffsetOfOutputLineIndex=function(n,e,i){return i+1===this._lineBreakData.breakOffsets.length?n.getLineMaxColumn(e)-1:so.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i+1,0)},O.prototype.getViewLineContent=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");var l=this.getInputStartOffsetOfOutputLineIndex(i),c=this.getInputEndOffsetOfOutputLineIndex(n,e,i),N=n.getValueInRange({startLineNumber:e,startColumn:l+1,endLineNumber:e,endColumn:c+1});return i>0&&(N=_r(this._lineBreakData.wrappedTextIndentLength)+N),N},O.prototype.getViewLineLength=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");var l=this.getInputStartOffsetOfOutputLineIndex(i),c=this.getInputEndOffsetOfOutputLineIndex(n,e,i),N=c-l;return i>0&&(N=this._lineBreakData.wrappedTextIndentLength+N),N},O.prototype.getViewLineMinColumn=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");return i>0?this._lineBreakData.wrappedTextIndentLength+1:1},O.prototype.getViewLineMaxColumn=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(n,e,i).length+1},O.prototype.getViewLineData=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");var l=this.getInputStartOffsetOfOutputLineIndex(i),c=this.getInputEndOffsetOfOutputLineIndex(n,e,i),N=n.getValueInRange({startLineNumber:e,startColumn:l+1,endLineNumber:e,endColumn:c+1});i>0&&(N=_r(this._lineBreakData.wrappedTextIndentLength)+N);var pe=i>0?this._lineBreakData.wrappedTextIndentLength+1:1,ue=N.length+1,ze=i+1<this.getViewLineCount(),st=0;i>0&&(st=this._lineBreakData.wrappedTextIndentLength);var ft=n.getLineTokens(e),y=i===0?0:this._lineBreakData.breakOffsetsVisibleColumn[i-1];return new nr.c(N,ze,pe,ue,y,ft.sliceAndInflate(l,c,st))},O.prototype.getViewLinesData=function(n,e,i,l,c,N,pe){if(!this._isVisible)throw new Error("Not supported");for(var ue=i;ue<l;ue++){var ze=c+ue-i;if(!N[ze]){pe[ze]=null;continue}pe[ze]=this.getViewLineData(n,e,ue)}},O.prototype.getModelColumnOfViewPosition=function(n,e){if(!this._isVisible)throw new Error("Not supported");var i=e-1;return n>0&&(i<this._lineBreakData.wrappedTextIndentLength?i=0:i-=this._lineBreakData.wrappedTextIndentLength),so.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n,i)+1},O.prototype.getViewPositionOfModelPosition=function(n,e){if(!this._isVisible)throw new Error("Not supported");var i=so.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,e-1),l=i.outputLineIndex,c=i.outputOffset+1;return l>0&&(c+=this._lineBreakData.wrappedTextIndentLength),new me.a(n+l,c)},O.prototype.getViewLineNumberOfModelPosition=function(n,e){if(!this._isVisible)throw new Error("Not supported");var i=so.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,e-1);return n+i.outputLineIndex},O}(),jr=[""];function _r(O){if(O>=jr.length)for(var n=1;n<=O;n++)jr[n]=ks(n);return jr[O]}function ks(O){return new Array(O+1).join(" ")}function hr(O,n){return O===null?n?fr.INSTANCE:ao.INSTANCE:new js(O,n)}var uo=function(){function O(n){this._lines=n}return O.prototype._validPosition=function(n){return this._lines.model.validatePosition(n)},O.prototype._validRange=function(n){return this._lines.model.validateRange(n)},O.prototype.convertViewPositionToModelPosition=function(n){return this._validPosition(n)},O.prototype.convertViewRangeToModelRange=function(n){return this._validRange(n)},O.prototype.validateViewPosition=function(n,e){return this._validPosition(e)},O.prototype.validateViewRange=function(n,e){return this._validRange(e)},O.prototype.convertModelPositionToViewPosition=function(n){return this._validPosition(n)},O.prototype.convertModelRangeToViewRange=function(n){return this._validRange(n)},O.prototype.modelPositionIsVisible=function(n){var e=this._lines.model.getLineCount();return!(n.lineNumber<1||n.lineNumber>e)},O}(),Vs=function(){function O(n){this.model=n}return O.prototype.dispose=function(){},O.prototype.createCoordinatesConverter=function(){return new uo(this)},O.prototype.getHiddenAreas=function(){return[]},O.prototype.setHiddenAreas=function(n){return!1},O.prototype.setTabSize=function(n){return!1},O.prototype.setWrappingSettings=function(n,e,i,l){return!1},O.prototype.createLineBreaksComputer=function(){var n=[];return{addRequest:function(i,l){n.push(null)},finalize:function(){return n}}},O.prototype.onModelFlushed=function(){},O.prototype.onModelLinesDeleted=function(n,e,i){return new ji(e,i)},O.prototype.onModelLinesInserted=function(n,e,i,l){return new Mi(e,i)},O.prototype.onModelLineChanged=function(n,e,i){return[!1,new bi(e,e),null,null]},O.prototype.acceptVersionId=function(n){},O.prototype.getViewLineCount=function(){return this.model.getLineCount()},O.prototype.getActiveIndentGuide=function(n,e,i){return{startLineNumber:n,endLineNumber:n,indent:0}},O.prototype.getViewLinesIndentGuides=function(n,e){for(var i=e-n+1,l=new Array(i),c=0;c<i;c++)l[c]=0;return l},O.prototype.getViewLineContent=function(n){return this.model.getLineContent(n)},O.prototype.getViewLineLength=function(n){return this.model.getLineLength(n)},O.prototype.getViewLineMinColumn=function(n){return this.model.getLineMinColumn(n)},O.prototype.getViewLineMaxColumn=function(n){return this.model.getLineMaxColumn(n)},O.prototype.getViewLineData=function(n){var e=this.model.getLineTokens(n),i=e.getLineContent();return new nr.c(i,!1,1,i.length+1,0,e.inflate())},O.prototype.getViewLinesData=function(n,e,i){var l=this.model.getLineCount();n=Math.min(Math.max(1,n),l),e=Math.min(Math.max(1,e),l);for(var c=[],N=n;N<=e;N++){var pe=N-n;i[pe]||(c[pe]=null),c[pe]=this.getViewLineData(N)}return c},O.prototype.getAllOverviewRulerDecorations=function(n,e,i){for(var l=this.model.getOverviewRulerDecorations(n,e),c=new Co,N=0,pe=l;N<pe.length;N++){var ue=pe[N],ze=ue.options.overviewRuler,st=ze?ze.position:0;if(st!==0){var ft=ze.getColor(i),y=ue.range.startLineNumber,d=ue.range.endLineNumber;c.accept(ft,y,d,st)}}return c.result},O.prototype.getDecorationsInRange=function(n,e,i){return this.model.getDecorationsInRange(n,e,i)},O}(),Co=function(){function O(){this.result=Object.create(null)}return O.prototype.accept=function(n,e,i,l){var c=this.result[n];if(c){var N=c[c.length-3],pe=c[c.length-1];if(N===l&&pe+1>=e){i>pe&&(c[c.length-1]=i);return}c.push(l,e,i)}else this.result[n]=[l,e,i]},O}(),Hs=function(){function O(n,e,i,l,c){this.editorId=n,this.model=e,this.configuration=i,this._linesCollection=l,this._coordinatesConverter=c,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return O.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},O.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},O.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},O.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},O.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},O.prototype._getOrCreateViewModelDecoration=function(n){var e=n.id,i=this._decorationsCache[e];if(!i){var l=n.range,c=n.options,N=void 0;if(c.isWholeLine){var pe=this._coordinatesConverter.convertModelPositionToViewPosition(new me.a(l.startLineNumber,1)),ue=this._coordinatesConverter.convertModelPositionToViewPosition(new me.a(l.endLineNumber,this.model.getLineMaxColumn(l.endLineNumber)));N=new Me.a(pe.lineNumber,pe.column,ue.lineNumber,ue.column)}else N=this._coordinatesConverter.convertModelRangeToViewRange(l);i=new nr.e(N,c),this._decorationsCache[e]=i}return i},O.prototype.getDecorationsViewportData=function(n){var e=this._cachedModelDecorationsResolver!==null;return e=e&&n.equalsRange(this._cachedModelDecorationsResolverViewRange),e||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(n),this._cachedModelDecorationsResolverViewRange=n),this._cachedModelDecorationsResolver},O.prototype._getDecorationsViewportData=function(n){for(var e=this._linesCollection.getDecorationsInRange(n,this.editorId,Object(_t.j)(this.configuration.options)),i=n.startLineNumber,l=n.endLineNumber,c=[],N=0,pe=[],ue=i;ue<=l;ue++)pe[ue-i]=[];for(var ze=0,st=e.length;ze<st;ze++){var ft=e[ze],y=ft.options,d=this._getOrCreateViewModelDecoration(ft),u=d.range;if(c[N++]=d,y.inlineClassName)for(var C=new nr.a(u,y.inlineClassName,y.inlineClassNameAffectsLetterSpacing?3:0),w=Math.max(i,u.startLineNumber),b=Math.min(l,u.endLineNumber),ue=w;ue<=b;ue++)pe[ue-i].push(C);if(y.beforeContentClassName&&i<=u.startLineNumber&&u.startLineNumber<=l){var C=new nr.a(new Me.a(u.startLineNumber,u.startColumn,u.startLineNumber,u.startColumn),y.beforeContentClassName,1);pe[u.startLineNumber-i].push(C)}if(y.afterContentClassName&&i<=u.endLineNumber&&u.endLineNumber<=l){var C=new nr.a(new Me.a(u.endLineNumber,u.endColumn,u.endLineNumber,u.endColumn),y.afterContentClassName,2);pe[u.endLineNumber-i].push(C)}}return{decorations:c,inlineDecorations:pe}},O}(),Or=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Us=!0,kr=function(O){Or(n,O);function n(e,i,l,c,N,pe){var ue=O.call(this)||this;if(ue.editorId=e,ue.configuration=i,ue.model=l,ue._tokenizeViewportSoon=ue._register(new U.d(function(){return ue.tokenizeViewport()},50)),ue.hasFocus=!1,ue.viewportStartLine=-1,ue.viewportStartLineTrackedRange=null,ue.viewportStartLineDelta=0,Us&&ue.model.isTooLargeForTokenization())ue.lines=new Vs(ue.model);else{var ze=ue.configuration.options,st=ze.get(34),ft=ze.get(103),y=ze.get(108),d=ze.get(102);ue.lines=new ms(ue.model,c,N,st,ue.model.getOptions().tabSize,ft,y.wrappingColumn,d)}return ue.coordinatesConverter=ue.lines.createCoordinatesConverter(),ue.viewLayout=ue._register(new To(ue.configuration,ue.getLineCount(),pe)),ue._register(ue.viewLayout.onDidScroll(function(u){u.scrollTopChanged&&ue._tokenizeViewportSoon.schedule();try{var C=ue._beginEmit();C.emit(new ki(u))}finally{ue._endEmit()}})),ue._register(ue.viewLayout.onDidContentSizeChange(function(u){try{var C=ue._beginEmit();C.emit(new Ui(u))}finally{ue._endEmit()}})),ue.decorations=new Hs(ue.editorId,ue.model,ue.configuration,ue.lines,ue.coordinatesConverter),ue._registerModelEvents(),ue._register(ue.configuration.onDidChange(function(u){try{var C=ue._beginEmit();ue._onConfigurationChanged(C,u)}finally{ue._endEmit()}})),ue._register(Hr.getInstance().onDidChange(function(){try{var u=ue._beginEmit();u.emit(new or)}finally{ue._endEmit()}})),ue}return n.prototype.dispose=function(){O.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.invalidateMinimapColorCache(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},n.prototype.tokenizeViewport=function(){var e=this.viewLayout.getLinesViewportData(),i=this.coordinatesConverter.convertViewPositionToModelPosition(new me.a(e.startLineNumber,1)),l=this.coordinatesConverter.convertViewPositionToModelPosition(new me.a(e.endLineNumber,1));this.model.tokenizeViewport(i.lineNumber,l.lineNumber)},n.prototype.setHasFocus=function(e){this.hasFocus=e},n.prototype._onConfigurationChanged=function(e,i){var l=null;if(this.viewportStartLine!==-1){var c=new me.a(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));l=this.coordinatesConverter.convertViewPositionToModelPosition(c)}var N=!1,pe=this.configuration.options,ue=pe.get(34),ze=pe.get(103),st=pe.get(108),ft=pe.get(102);if(this.lines.setWrappingSettings(ue,ze,st.wrappingColumn,ft)&&(e.emit(new Ri),e.emit(new Vn),e.emit(new Xn),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(N=!0)),i.hasChanged(68)&&(this.decorations.reset(),e.emit(new Xn)),e.emit(new ci(i)),this.viewLayout.onConfigurationChanged(i),N&&l){var y=this.coordinatesConverter.convertModelPositionToViewPosition(l),d=this.viewLayout.getVerticalOffsetForLineNumber(y.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:d+this.viewportStartLineDelta})}},n.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast(function(i){try{for(var l=e._beginEmit(),c=!1,N=!1,pe=i.changes,ue=i.versionId,ze=e.lines.createLineBreaksComputer(),st=0,ft=pe;st<ft.length;st++){var y=ft[st];switch(y.changeType){case 4:{for(var d=0,u=y.detail;d<u.length;d++){var C=u[d];ze.addRequest(C,null)}break}case 2:{ze.addRequest(y.detail,null);break}}}for(var w=ze.finalize(),b=0,Q=0,ke=pe;Q<ke.length;Q++){var y=ke[Q];switch(y.changeType){case 1:{e.lines.onModelFlushed(),l.emit(new Ri),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),c=!0;break}case 3:{var rt=e.lines.onModelLinesDeleted(ue,y.fromLineNumber,y.toLineNumber);rt!==null&&(l.emit(rt),e.viewLayout.onLinesDeleted(rt.fromLineNumber,rt.toLineNumber)),c=!0;break}case 4:{var Ie=w.slice(b,b+y.detail.length);b+=y.detail.length;var lt=e.lines.onModelLinesInserted(ue,y.fromLineNumber,y.toLineNumber,Ie);lt!==null&&(l.emit(lt),e.viewLayout.onLinesInserted(lt.fromLineNumber,lt.toLineNumber)),c=!0;break}case 2:{var Pt=w[b];b++;var qt=e.lines.onModelLineChanged(ue,y.lineNumber,Pt),en=qt[0],dn=qt[1],lt=qt[2],rt=qt[3];N=en,dn&&l.emit(dn),lt&&(l.emit(lt),e.viewLayout.onLinesInserted(lt.fromLineNumber,lt.toLineNumber)),rt&&(l.emit(rt),e.viewLayout.onLinesDeleted(rt.fromLineNumber,rt.toLineNumber));break}case 5:break}}e.lines.acceptVersionId(ue),e.viewLayout.onHeightMaybeChanged(),!c&&N&&(l.emit(new Vn),l.emit(new Xn),e.decorations.onLineMappingChanged())}finally{e._endEmit()}if(e.viewportStartLine=-1,e.configuration.setMaxLineNumber(e.model.getLineCount()),!e.hasFocus&&e.model.getAttachedEditorCount()>=2&&e.viewportStartLineTrackedRange){var an=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(an){var bn=e.coordinatesConverter.convertModelPositionToViewPosition(an.getStartPosition()),Rn=e.viewLayout.getVerticalOffsetForLineNumber(bn.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:Rn+e.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(i){for(var l=[],c=0,N=i.ranges.length;c<N;c++){var pe=i.ranges[c],ue=e.coordinatesConverter.convertModelPositionToViewPosition(new me.a(pe.fromLineNumber,1)).lineNumber,ze=e.coordinatesConverter.convertModelPositionToViewPosition(new me.a(pe.toLineNumber,e.model.getLineMaxColumn(pe.toLineNumber))).lineNumber;l[c]={fromLineNumber:ue,toLineNumber:ze}}try{var st=e._beginEmit();st.emit(new qi(l))}finally{e._endEmit()}i.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(function(i){try{var l=e._beginEmit();l.emit(new Bi)}finally{e._endEmit()}})),this._register(this.model.onDidChangeOptions(function(i){if(e.lines.setTabSize(e.model.getOptions().tabSize)){e.decorations.onLineMappingChanged(),e.viewLayout.onFlushed(e.getLineCount());try{var l=e._beginEmit();l.emit(new Ri),l.emit(new Vn),l.emit(new Xn)}finally{e._endEmit()}}})),this._register(this.model.onDidChangeDecorations(function(i){e.decorations.onModelDecorationsChanged();try{var l=e._beginEmit();l.emit(new Xn)}finally{e._endEmit()}}))},n.prototype.setHiddenAreas=function(e){try{var i=this._beginEmit(),l=this.lines.setHiddenAreas(e);l&&(i.emit(new Ri),i.emit(new Vn),i.emit(new Xn),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},n.prototype.getVisibleRanges=function(){var e=this.getCompletelyVisibleViewRange(),i=this.coordinatesConverter.convertViewRangeToModelRange(e),l=this.lines.getHiddenAreas();if(l.length===0)return[i];for(var c=[],N=0,pe=i.startLineNumber,ue=i.startColumn,ze=i.endLineNumber,st=i.endColumn,ft=0,y=l.length;ft<y;ft++){var d=l[ft].startLineNumber,u=l[ft].endLineNumber;u<pe||d>ze||(pe<d&&(c[N++]=new Me.a(pe,ue,d-1,this.model.getLineMaxColumn(d-1))),pe=u+1,ue=1)}return(pe<ze||pe===ze&&ue<st)&&(c[N++]=new Me.a(pe,ue,ze,st)),c},n.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),i=e.completelyVisibleStartLineNumber,l=e.completelyVisibleEndLineNumber;return new Me.a(i,this.getLineMinColumn(i),l,this.getLineMaxColumn(l))},n.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var i=this.viewLayout.getLinesViewportDataAtScrollTop(e),l=i.completelyVisibleStartLineNumber,c=i.completelyVisibleEndLineNumber;return new Me.a(l,this.getLineMinColumn(l),c,this.getLineMaxColumn(c))},n.prototype.saveState=function(){var e=this.viewLayout.saveState(),i=e.scrollTop,l=this.viewLayout.getLineNumberAtVerticalOffset(i),c=this.coordinatesConverter.convertViewPositionToModelPosition(new me.a(l,this.getLineMinColumn(l))),N=this.viewLayout.getVerticalOffsetForLineNumber(l)-i;return{scrollLeft:e.scrollLeft,firstPosition:c,firstPositionDeltaTop:N}},n.prototype.reduceRestoreState=function(e){if(typeof e.firstPosition=="undefined")return this._reduceRestoreStateCompatibility(e);var i=this.model.validatePosition(e.firstPosition),l=this.coordinatesConverter.convertModelPositionToViewPosition(i),c=this.viewLayout.getVerticalOffsetForLineNumber(l.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:c}},n.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}},n.prototype.getTabSize=function(){return this.model.getOptions().tabSize},n.prototype.getOptions=function(){return this.model.getOptions()},n.prototype.getLineCount=function(){return this.lines.getViewLineCount()},n.prototype.setViewport=function(e,i,l){this.viewportStartLine=e;var c=this.coordinatesConverter.convertViewPositionToModelPosition(new me.a(e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new Me.a(c.lineNumber,c.column,c.lineNumber,c.column),1);var N=this.viewLayout.getVerticalOffsetForLineNumber(e),pe=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=pe-N},n.prototype.getActiveIndentGuide=function(e,i,l){return this.lines.getActiveIndentGuide(e,i,l)},n.prototype.getLinesIndentGuides=function(e,i){return this.lines.getViewLinesIndentGuides(e,i)},n.prototype.getLineContent=function(e){return this.lines.getViewLineContent(e)},n.prototype.getLineLength=function(e){return this.lines.getViewLineLength(e)},n.prototype.getLineMinColumn=function(e){return this.lines.getViewLineMinColumn(e)},n.prototype.getLineMaxColumn=function(e){return this.lines.getViewLineMaxColumn(e)},n.prototype.getLineFirstNonWhitespaceColumn=function(e){var i=Kn.q(this.getLineContent(e));return i===-1?0:i+1},n.prototype.getLineLastNonWhitespaceColumn=function(e){var i=Kn.D(this.getLineContent(e));return i===-1?0:i+2},n.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations},n.prototype.getViewLineRenderingData=function(e,i){var l=this.model.mightContainRTL(),c=this.model.mightContainNonBasicASCII(),N=this.getTabSize(),pe=this.lines.getViewLineData(i),ue=this.decorations.getDecorationsViewportData(e).inlineDecorations,ze=ue[i-e.startLineNumber];return new nr.d(pe.minColumn,pe.maxColumn,pe.content,pe.continuesWithWrappedLine,l,c,pe.tokens,ze,N,pe.startVisibleColumn)},n.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)},n.prototype.getMinimapLinesRenderingData=function(e,i,l){var c=this.lines.getViewLinesData(e,i,l);return new nr.b(this.getTabSize(),c)},n.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,Object(_t.j)(this.configuration.options),e)},n.prototype.invalidateOverviewRulerColorCache=function(){for(var e=this.model.getOverviewRulerDecorations(),i=0,l=e;i<l.length;i++){var c=l[i],N=c.options.overviewRuler;N&&N.invalidateCachedColor()}},n.prototype.invalidateMinimapColorCache=function(){for(var e=this.model.getAllDecorations(),i=0,l=e;i<l.length;i++){var c=l[i],N=c.options.minimap;N&&N.invalidateCachedColor()}},n.prototype.getValueInRange=function(e,i){var l=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(l,i)},n.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},n.prototype.validateModelPosition=function(e){return this.model.validatePosition(e)},n.prototype.validateModelRange=function(e){return this.model.validateRange(e)},n.prototype.deduceModelPositionRelativeToViewPosition=function(e,i,l){var c=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(i<0?i-=l:i+=l);var N=this.model.getOffsetAt(c),pe=N+i;return this.model.getPositionAt(pe)},n.prototype.getEOL=function(){return this.model.getEOL()},n.prototype.getPlainTextToCopy=function(e,i,l){var c=l?`\r
`:this.model.getEOL();e=e.slice(0),e.sort(Me.a.compareRangesUsingStarts);for(var N=!1,pe=!1,ue=0,ze=e;ue<ze.length;ue++){var st=ze[ue];st.isEmpty()?N=!0:pe=!0}if(!pe){if(!i)return"";for(var ft=e.map(function(Pt){return Pt.startLineNumber}),y="",d=0;d<ft.length;d++)d>0&&ft[d-1]===ft[d]||(y+=this.model.getLineContent(ft[d])+c);return y}if(N&&i){for(var u=[],C=0,w=0,b=e;w<b.length;w++){var Q=b[w],ke=Q.startLineNumber;Q.isEmpty()?ke!==C&&u.push(this.model.getLineContent(ke)):u.push(this.model.getValueInRange(Q,l?2:0)),C=ke}return u.length===1?u[0]:u}for(var rt=[],Ie=0,lt=e;Ie<lt.length;Ie++){var Q=lt[Ie];Q.isEmpty()||rt.push(this.model.getValueInRange(Q,l?2:0))}return rt.length===1?rt[0]:rt},n.prototype.getRichTextToCopy=function(e,i){var l=this.model.getLanguageIdentifier();if(l.id===1||e.length!==1)return null;var c=e[0];if(c.isEmpty()){if(!i)return null;var N=c.startLineNumber;c=new Me.a(N,this.model.getLineMinColumn(N),N,this.model.getLineMaxColumn(N))}var pe=this.configuration.options.get(34),ue=this._getColorMap(),ze=pe.fontFamily===_t.b.fontFamily?pe.fontFamily:"'"+pe.fontFamily+"', "+_t.b.fontFamily;return{mode:l.language,html:'<div style="'+("color: "+ue[1]+";")+("background-color: "+ue[2]+";")+("font-family: "+ze+";")+("font-weight: "+pe.fontWeight+";")+("font-size: "+pe.fontSize+"px;")+("line-height: "+pe.lineHeight+"px;")+'white-space: pre;">'+this._getHTMLToCopy(c,ue)+"</div>"}},n.prototype._getHTMLToCopy=function(e,i){for(var l=e.startLineNumber,c=e.startColumn,N=e.endLineNumber,pe=e.endColumn,ue=this.getTabSize(),ze="",st=l;st<=N;st++){var ft=this.model.getLineTokens(st),y=ft.getLineContent(),d=st===l?c-1:0,u=st===N?pe-1:y.length;y===""?ze+="<br>":ze+=Object(Bs.a)(y,ft.inflate(),i,d,u,ue,K.h)}return ze},n.prototype._getColorMap=function(){var e=Un.y.getColorMap(),i=["#000000"];if(e)for(var l=1,c=e.length;l<c;l++)i[l]=vo.a.Format.CSS.formatHex(e[l]);return i},n}(Di),ys=o("nnTU"),Cs=o("T8No"),Go=o("Cg/j"),Vr=o("8HsV"),bs=o("sM1p"),Xr=o("R3nR"),Nr=o("746U"),Zi=o("MXAL"),Qr=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Yo=function(O){Qr(n,O);function n(e,i){for(var l=O.call(this,0)||this,c=0;c<e.length;c++)l.set(e.charCodeAt(c),1);for(var c=0;c<i.length;c++)l.set(i.charCodeAt(c),2);return l}return n.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue},n}(Zi.a),Ir=[],Zo=[],$r=function(){function O(n,e){this.classifier=new Yo(n,e)}return O.create=function(n){return new O(n.get(99),n.get(98))},O.prototype.createLineBreaksComputer=function(n,e,i,l){var c=this;e=e|0,i=+i;var N=[],pe=[];return{addRequest:function(ze,st){N.push(ze),pe.push(st)},finalize:function(){for(var ze=n.typicalFullwidthCharacterWidth/n.typicalHalfwidthCharacterWidth,st=[],ft=0,y=N.length;ft<y;ft++){var d=pe[ft];d?st[ft]=Dr(c.classifier,d,N[ft],e,i,ze,l):st[ft]=Xo(c.classifier,N[ft],e,i,ze,l)}return Ir.length=0,Zo.length=0,st}}},O}();function Dr(O,n,e,i,l,c,N){if(l===-1)return null;var pe=e.length;if(pe<=1)return null;var ue=n.breakOffsets,ze=n.breakOffsetsVisibleColumn,st=Si(e,i,l,c,N),ft=l-st,y=Ir,d=Zo,u=0,C=l,w=ue.length,b=0;if(b>=0)for(var Q=Math.abs(ze[b]-C);b+1<w;){var ke=Math.abs(ze[b+1]-C);if(ke>=Q)break;Q=ke,b++}for(;b<w;){var rt=b<0?0:ue[b],Ie=b<0?0:ze[b],lt=0,Pt=0,qt=0,en=0;if(Ie<=C){for(var dn=Ie,an=e.charCodeAt(rt-1),bn=O.get(an),Rn=!0,Pn=rt;Pn<pe;Pn++){var ti=Pn,Dn=e.charCodeAt(Pn),li=void 0,qn=void 0;if(Kn.z(Dn)?(Pn++,li=0,qn=2):(li=O.get(Dn),qn=Jr(Dn,dn,i,c)),gr(an,bn,Dn,li)&&(lt=ti,Pt=dn),dn+=qn,dn>C){qt=ti,en=dn-qn,dn-Pt>ft&&(lt=0),Rn=!1;break}an=Dn,bn=li}if(Rn){u>0&&(y[u]=ue[ue.length-1],d[u]=ze[ue.length-1],u++);break}}if(lt===0){for(var dn=Ie,Dn=e.charCodeAt(rt),li=O.get(Dn),xi=!1,Pn=rt-1;Pn>=0;Pn--){var ti=Pn+1,an=e.charCodeAt(Pn);if(an===9){xi=!0;break}var bn=void 0,ui=void 0;if(Kn.A(an)?(Pn--,bn=0,ui=2):(bn=O.get(an),ui=Kn.y(an)?c:1),dn<=C){if(qt===0&&(qt=ti,en=dn),dn<=C-ft)break;if(gr(an,bn,Dn,li)){lt=ti,Pt=dn;break}}dn-=ui,Dn=an,li=bn}if(lt!==0){var pr=ft-(en-Pt);if(pr<=i){var Oi=e.charCodeAt(qt),qn=void 0;Kn.z(Oi)?qn=2:qn=Jr(Oi,en,i,c),pr-qn<0&&(lt=0)}}if(xi){b--;continue}}for(lt===0&&(lt=qt,Pt=en),y[u]=lt,d[u]=Pt,u++,C=Pt+ft;b<0||b<w&&ze[b]<Pt;)b++;for(var Q=Math.abs(ze[b]-C);b+1<w;){var ke=Math.abs(ze[b+1]-C);if(ke>=Q)break;Q=ke,b++}}return u===0?null:(y.length=u,d.length=u,Ir=n.breakOffsets,Zo=n.breakOffsetsVisibleColumn,n.breakOffsets=y,n.breakOffsetsVisibleColumn=d,n.wrappedTextIndentLength=st,n)}function Xo(O,n,e,i,l,c){if(i===-1)return null;var N=n.length;if(N<=1)return null;var pe=Si(n,e,i,l,c),ue=i-pe,ze=[],st=[],ft=0,y=0,d=0,u=i,C=n.charCodeAt(0),w=O.get(C),b=Jr(C,0,e,l),Q=1;Kn.z(C)&&(b+=1,C=n.charCodeAt(1),w=O.get(C),Q++);for(var ke=Q;ke<N;ke++){var rt=ke,Ie=n.charCodeAt(ke),lt=void 0,Pt=void 0;Kn.z(Ie)?(ke++,lt=0,Pt=2):(lt=O.get(Ie),Pt=Jr(Ie,b,e,l)),gr(C,w,Ie,lt)&&(y=rt,d=b),b+=Pt,b>u&&((y===0||b-d>ue)&&(y=rt,d=b-Pt),ze[ft]=y,st[ft]=d,ft++,u=d+ue,y=0),C=Ie,w=lt}return ft===0?null:(ze[ft]=N,st[ft]=b,new so(ze,st,pe))}function Jr(O,n,e,i){return O===9?e-n%e:Kn.y(O)?i:1}function lo(O,n){return n-O%n}function gr(O,n,e,i){return e!==32&&(n===2||n===3&&i!==2||i===1||i===3&&n!==1)}function Si(O,n,e,i,l){var c=0;if(l!==0){var N=Kn.q(O);if(N!==-1){for(var pe=0;pe<N;pe++){var ue=O.charCodeAt(pe)===9?lo(c,n):1;c+=ue}for(var ze=l===3?2:l===2?1:0,pe=0;pe<ze;pe++){var ue=lo(c,n);c+=ue}c+i>e&&(c=0)}}return c}var Xi=function(){function O(){}return O.create=function(){return new O},O.prototype.createLineBreaksComputer=function(n,e,i,l){e=e|0,i=+i;var c=[];return{addRequest:function(pe,ue){c.push(pe)},finalize:function(){return mr(c,n,e,i,l)}}},O}();function mr(O,n,e,i,l){if(i===-1){for(var c=[],N=0,pe=O.length;N<pe;N++)c[N]=null;return c}var ue=Math.round(i*n.typicalHalfwidthCharacterWidth);(l===2||l===3)&&(l=1);var ze=document.createElement("div");G.a.applyFontInfoSlow(ze,n);for(var st=Object(It.a)(1e4),ft=[],y=[],d=[],u=[],C=[],N=0;N<O.length;N++){var w=O[N],b=0,Q=0,ke=ue;if(l!==0)if(b=Kn.q(w),b===-1)b=0;else{for(var rt=0;rt<b;rt++){var Ie=w.charCodeAt(rt)===9?e-Q%e:1;Q+=Ie}var lt=Math.ceil(n.spaceWidth*Q);lt+n.typicalFullwidthCharacterWidth>ue?(b=0,Q=0):ke=ue-lt}var Pt=w.substr(b),qt=bo(Pt,Q,e,ke,st);ft[N]=b,y[N]=Q,d[N]=Pt,u[N]=qt[0],C[N]=qt[1]}ze.innerHTML=st.build(),ze.style.position="absolute",ze.style.top="10000",ze.style.wordWrap="break-word",document.body.appendChild(ze);for(var en=document.createRange(),dn=Array.prototype.slice.call(ze.children,0),an=[],N=0;N<O.length;N++){var bn=dn[N],Rn=_o(en,bn,d[N],u[N]);if(Rn===null){an[N]=null;continue}for(var b=ft[N],Q=y[N],Pn=C[N],ti=[],Dn=0,pe=Rn.length;Dn<pe;Dn++)ti[Dn]=Pn[Rn[Dn]];if(b!==0)for(var Dn=0,pe=Rn.length;Dn<pe;Dn++)Rn[Dn]+=b;an[N]=new so(Rn,ti,Q)}return document.body.removeChild(ze),an}function bo(O,n,e,i,l){l.appendASCIIString('<div style="width:'),l.appendASCIIString(String(i)),l.appendASCIIString('px;">');for(var c=O.length,N=n,pe=0,ue=[],ze=[],st=0<c?O.charCodeAt(0):0,ft=0;ft<c;ft++){ue[ft]=pe,ze[ft]=N;var y=st;st=ft+1<c?O.charCodeAt(ft+1):0;var d=1,u=1;switch(y){case 9:d=e-N%e,u=d;for(var C=1;C<=d;C++)C<d?l.write1(160):l.appendASCII(32);break;case 32:st===32?l.write1(160):l.appendASCII(32);break;case 60:l.appendASCIIString("&lt;");break;case 62:l.appendASCIIString("&gt;");break;case 38:l.appendASCIIString("&amp;");break;case 0:l.appendASCIIString("&#00;");break;case 65279:case 8232:l.write1(65533);break;default:Kn.y(y)&&u++,l.write1(y)}pe+=d,N+=u}return ue[O.length]=pe,ze[O.length]=N,l.appendASCIIString("</div>"),[ue,ze]}function _o(O,n,e,i){if(e.length<=1)return null;var l=n.firstChild,c=[];return ai(O,l,i,0,null,e.length-1,null,c),c.length===0?null:(c.push(e.length),c)}function ai(O,n,e,i,l,c,N,pe){if(i!==c&&(l=l||So(O,n,e[i],e[i+1]),N=N||So(O,n,e[c],e[c+1]),!(Math.abs(l[0].top-N[0].top)<=.1))){if(i+1===c){pe.push(c);return}var ue=i+(c-i)/2|0,ze=So(O,n,e[ue],e[ue+1]);ai(O,n,e,i,l,ue,ze,pe),ai(O,n,e,ue,ze,c,N,pe)}}function So(O,n,e,i){return O.setStart(n,e),O.setEnd(n,i),O.getClientRects()}var qr=function(){var O=function(e,i){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var N in c)c.hasOwnProperty(N)&&(l[N]=c[N])},O(e,i)};return function(n,e){O(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),xo=function(O,n,e,i){var l=arguments.length,c=l<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,e):i,N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(O,n,e,i);else for(var pe=O.length-1;pe>=0;pe--)(N=O[pe])&&(c=(l<3?N(c):l>3?N(n,e,c):N(n,e))||c);return l>3&&c&&Object.defineProperty(n,e,c),c},Tr=function(O,n){return function(e,i){n(e,i,O)}},Ro=0,co=function(){function O(n,e,i,l,c,N){this.model=n,this.viewModel=e,this.cursor=i,this.view=l,this.hasRealView=c,this.listenersToRemove=N}return O.prototype.dispose=function(){Object(V.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},O}(),Ao=function(O){qr(n,O);function n(e,i,l,c,N,pe,ue,ze,st,ft){var y=O.call(this)||this;y._onDidDispose=y._register(new F.a),y.onDidDispose=y._onDidDispose.event,y._onDidChangeModelContent=y._register(new F.a),y.onDidChangeModelContent=y._onDidChangeModelContent.event,y._onDidChangeModelLanguage=y._register(new F.a),y.onDidChangeModelLanguage=y._onDidChangeModelLanguage.event,y._onDidChangeModelLanguageConfiguration=y._register(new F.a),y.onDidChangeModelLanguageConfiguration=y._onDidChangeModelLanguageConfiguration.event,y._onDidChangeModelOptions=y._register(new F.a),y.onDidChangeModelOptions=y._onDidChangeModelOptions.event,y._onDidChangeModelDecorations=y._register(new F.a),y.onDidChangeModelDecorations=y._onDidChangeModelDecorations.event,y._onDidChangeConfiguration=y._register(new F.a),y.onDidChangeConfiguration=y._onDidChangeConfiguration.event,y._onDidChangeModel=y._register(new F.a),y.onDidChangeModel=y._onDidChangeModel.event,y._onDidChangeCursorPosition=y._register(new F.a),y.onDidChangeCursorPosition=y._onDidChangeCursorPosition.event,y._onDidChangeCursorSelection=y._register(new F.a),y.onDidChangeCursorSelection=y._onDidChangeCursorSelection.event,y._onDidAttemptReadOnlyEdit=y._register(new F.a),y.onDidAttemptReadOnlyEdit=y._onDidAttemptReadOnlyEdit.event,y._onDidLayoutChange=y._register(new F.a),y.onDidLayoutChange=y._onDidLayoutChange.event,y._editorTextFocus=y._register(new Qo),y.onDidFocusEditorText=y._editorTextFocus.onDidChangeToTrue,y.onDidBlurEditorText=y._editorTextFocus.onDidChangeToFalse,y._editorWidgetFocus=y._register(new Qo),y.onDidFocusEditorWidget=y._editorWidgetFocus.onDidChangeToTrue,y.onDidBlurEditorWidget=y._editorWidgetFocus.onDidChangeToFalse,y._onWillType=y._register(new F.a),y.onWillType=y._onWillType.event,y._onDidType=y._register(new F.a),y.onDidType=y._onDidType.event,y._onDidCompositionStart=y._register(new F.a),y.onDidCompositionStart=y._onDidCompositionStart.event,y._onDidCompositionEnd=y._register(new F.a),y.onDidCompositionEnd=y._onDidCompositionEnd.event,y._onDidPaste=y._register(new F.a),y.onDidPaste=y._onDidPaste.event,y._onMouseUp=y._register(new F.a),y.onMouseUp=y._onMouseUp.event,y._onMouseDown=y._register(new F.a),y.onMouseDown=y._onMouseDown.event,y._onMouseDrag=y._register(new F.a),y.onMouseDrag=y._onMouseDrag.event,y._onMouseDrop=y._register(new F.a),y.onMouseDrop=y._onMouseDrop.event,y._onContextMenu=y._register(new F.a),y.onContextMenu=y._onContextMenu.event,y._onMouseMove=y._register(new F.a),y.onMouseMove=y._onMouseMove.event,y._onMouseLeave=y._register(new F.a),y.onMouseLeave=y._onMouseLeave.event,y._onMouseWheel=y._register(new F.a),y.onMouseWheel=y._onMouseWheel.event,y._onKeyUp=y._register(new F.a),y.onKeyUp=y._onKeyUp.event,y._onKeyDown=y._register(new F.a),y.onKeyDown=y._onKeyDown.event,y._onDidContentSizeChange=y._register(new F.a),y.onDidContentSizeChange=y._onDidContentSizeChange.event,y._onDidScrollChange=y._register(new F.a),y.onDidScrollChange=y._onDidScrollChange.event,y._onDidChangeViewZones=y._register(new F.a),y.onDidChangeViewZones=y._onDidChangeViewZones.event,y._domElement=e,y._id=++Ro,y._decorationTypeKeysToIds={},y._decorationTypeSubtypes={},y.isSimpleWidget=l.isSimpleWidget||!1,y._telemetryData=l.telemetryData,i=i||{},y._configuration=y._register(y._createConfiguration(i,ft)),y._register(y._configuration.onDidChange(function(Q){y._onDidChangeConfiguration.fire(Q);var ke=y._configuration.options;if(Q.hasChanged(107)){var rt=ke.get(107);y._onDidLayoutChange.fire(rt)}})),y._contextKeyService=y._register(ue.createScoped(y._domElement)),y._notificationService=st,y._codeEditorService=N,y._commandService=pe,y._themeService=ze,y._register(new _s(y,y._contextKeyService)),y._register(new Ss(y,y._contextKeyService)),y._instantiationService=c.createChild(new Vr.a([Cs.c,y._contextKeyService])),y._modelData=null,y._contributions={},y._actions={},y._focusTracker=new $o(e),y._focusTracker.onChange(function(){y._editorWidgetFocus.setValue(y._focusTracker.hasFocus())}),y._contentWidgets={},y._overlayWidgets={};var d;Array.isArray(l.contributions)?d=l.contributions:d=x.d.getEditorContributions();for(var u=0,C=d;u<C.length;u++){var w=C[u];try{var b=y._instantiationService.createInstance(w.ctor,y);y._contributions[w.id]=b}catch(Q){Object(P.e)(Q)}}return x.d.getEditorActions().forEach(function(Q){var ke=new Ws.a(Q.id,Q.label,Q.alias,Object(Nr.n)(Q.precondition),function(){return y._instantiationService.invokeFunction(function(rt){return Promise.resolve(Q.runEditorCommand(rt,y,null))})},y._contextKeyService);y._actions[ke.id]=ke}),y._codeEditorService.addCodeEditor(y),y}return n.prototype._createConfiguration=function(e,i){return new G.a(this.isSimpleWidget,e,this._domElement,i)},n.prototype.getId=function(){return this.getEditorType()+":"+this._id},n.prototype.getEditorType=function(){return ri.a.ICodeEditor},n.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var e=Object.keys(this._contributions),i=0,l=e.length;i<l;i++){var c=e[i];this._contributions[c].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),O.prototype.dispose.call(this)},n.prototype.invokeWithinContext=function(e){return this._instantiationService.invokeFunction(e)},n.prototype.updateOptions=function(e){this._configuration.updateOptions(e)},n.prototype.getOptions=function(){return this._configuration.options},n.prototype.getOption=function(e){return this._configuration.options.get(e)},n.prototype.getRawOptions=function(){return this._configuration.getRawOptions()},n.prototype.getValue=function(e){if(e===void 0&&(e=null),!this._modelData)return"";var i=!!(e&&e.preserveBOM),l=0;return e&&e.lineEnding&&e.lineEnding===`
`?l=1:e&&e.lineEnding&&e.lineEnding===`\r
`&&(l=2),this._modelData.model.getValue(l,i)},n.prototype.setValue=function(e){!this._modelData||this._modelData.model.setValue(e)},n.prototype.getModel=function(){return this._modelData?this._modelData.model:null},n.prototype.setModel=function(e){e===void 0&&(e=null);var i=e;if(!(this._modelData===null&&i===null)&&!(this._modelData&&this._modelData.model===i)){var l=this.hasTextFocus(),c=this._detachModel();this._attachModel(i),l&&this.hasModel()&&this.focus();var N={oldModelUrl:c?c.uri:null,newModelUrl:i?i.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(N),this._postDetachModelCleanup(c)}},n.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes){var i=this._decorationTypeSubtypes[e];for(var l in i)this._removeDecorationType(e+"-"+l)}this._decorationTypeSubtypes={}}},n.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},n.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},n._getVerticalOffsetForPosition=function(e,i,l){var c=e.model.validatePosition({lineNumber:i,column:l}),N=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(c);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(N.lineNumber)},n.prototype.getTopForLineNumber=function(e){return this._modelData?n._getVerticalOffsetForPosition(this._modelData,e,1):-1},n.prototype.getTopForPosition=function(e,i){return this._modelData?n._getVerticalOffsetForPosition(this._modelData,e,i):-1},n.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map(function(i){return Me.a.lift(i)}))},n.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var i=this._modelData.model.validatePosition(e),l=this._modelData.model.getOptions().tabSize;return Re.a.visibleColumnFromColumn(this._modelData.model.getLineContent(i.lineNumber),i.column,l)+1},n.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},n.prototype.setPosition=function(e){if(!!this._modelData){if(!me.a.isIPosition(e))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}},n.prototype._sendRevealRange=function(e,i,l,c){if(!!this._modelData){if(!Me.a.isIRange(e))throw new Error("Invalid arguments");var N=this._modelData.model.validateRange(e),pe=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(N);this._modelData.cursor.emitCursorRevealRange("api",pe,i,l,c)}},n.prototype.revealLine=function(e,i){i===void 0&&(i=0),this._revealLine(e,0,i)},n.prototype.revealLineInCenter=function(e,i){i===void 0&&(i=0),this._revealLine(e,1,i)},n.prototype.revealLineInCenterIfOutsideViewport=function(e,i){i===void 0&&(i=0),this._revealLine(e,2,i)},n.prototype._revealLine=function(e,i,l){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Me.a(e,1,e,1),i,!1,l)},n.prototype.revealPosition=function(e,i){i===void 0&&(i=0),this._revealPosition(e,0,!0,i)},n.prototype.revealPositionInCenter=function(e,i){i===void 0&&(i=0),this._revealPosition(e,1,!0,i)},n.prototype.revealPositionInCenterIfOutsideViewport=function(e,i){i===void 0&&(i=0),this._revealPosition(e,2,!0,i)},n.prototype._revealPosition=function(e,i,l,c){if(!me.a.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Me.a(e.lineNumber,e.column,e.lineNumber,e.column),i,l,c)},n.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},n.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},n.prototype.setSelection=function(e){var i=pt.a.isISelection(e),l=Me.a.isIRange(e);if(!i&&!l)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e);else if(l){var c={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(c)}},n.prototype._setSelectionImpl=function(e){if(!!this._modelData){var i=new pt.a(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[i])}},n.prototype.revealLines=function(e,i,l){l===void 0&&(l=0),this._revealLines(e,i,0,l)},n.prototype.revealLinesInCenter=function(e,i,l){l===void 0&&(l=0),this._revealLines(e,i,1,l)},n.prototype.revealLinesInCenterIfOutsideViewport=function(e,i,l){l===void 0&&(l=0),this._revealLines(e,i,2,l)},n.prototype._revealLines=function(e,i,l,c){if(typeof e!="number"||typeof i!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Me.a(e,1,i,1),l,!1,c)},n.prototype.revealRange=function(e,i,l,c){i===void 0&&(i=0),l===void 0&&(l=!1),c===void 0&&(c=!0),this._revealRange(e,l?1:0,c,i)},n.prototype.revealRangeInCenter=function(e,i){i===void 0&&(i=0),this._revealRange(e,1,!0,i)},n.prototype.revealRangeInCenterIfOutsideViewport=function(e,i){i===void 0&&(i=0),this._revealRange(e,2,!0,i)},n.prototype.revealRangeAtTop=function(e,i){i===void 0&&(i=0),this._revealRange(e,3,!0,i)},n.prototype._revealRange=function(e,i,l,c){if(!Me.a.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Me.a.lift(e),i,l,c)},n.prototype.setSelections=function(e,i){if(i===void 0&&(i="api"),!!this._modelData){if(!e||e.length===0)throw new Error("Invalid arguments");for(var l=0,c=e.length;l<c;l++)if(!pt.a.isISelection(e[l]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(i,e)}},n.prototype.getContentWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1},n.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},n.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},n.prototype.getContentHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1},n.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},n.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},n.prototype.setScrollLeft=function(e){if(!!this._modelData){if(typeof e!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})}},n.prototype.setScrollTop=function(e){if(!!this._modelData){if(typeof e!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})}},n.prototype.setScrollPosition=function(e){!this._modelData||this._modelData.viewModel.viewLayout.setScrollPositionNow(e)},n.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},i=Object.keys(this._contributions),l=0,c=i;l<c.length;l++){var N=c[l],pe=this._contributions[N];typeof pe.saveViewState=="function"&&(e[N]=pe.saveViewState())}var ue=this._modelData.cursor.saveState(),ze=this._modelData.viewModel.saveState();return{cursorState:ue,viewState:ze,contributionsState:e}},n.prototype.restoreViewState=function(e){if(!(!this._modelData||!this._modelData.hasRealView)){var i=e;if(i&&i.cursorState&&i.viewState){var l=i.cursorState;Array.isArray(l)?this._modelData.cursor.restoreState(l):this._modelData.cursor.restoreState([l]);for(var c=i.contributionsState||{},N=Object.keys(this._contributions),pe=0,ue=N.length;pe<ue;pe++){var ze=N[pe],st=this._contributions[ze];typeof st.restoreViewState=="function"&&st.restoreViewState(c[ze])}var ft=this._modelData.viewModel.reduceRestoreState(i.viewState);this._modelData.view.restoreState(ft)}}},n.prototype.getContribution=function(e){return this._contributions[e]||null},n.prototype.getActions=function(){for(var e=[],i=Object.keys(this._actions),l=0,c=i.length;l<c;l++){var N=i[l];e.push(this._actions[N])}return e},n.prototype.getSupportedActions=function(){var e=this.getActions();return e=e.filter(function(i){return i.isSupported()}),e},n.prototype.getAction=function(e){return this._actions[e]||null},n.prototype.trigger=function(e,i,l){if(l=l||{},i===ri.b.Type){if(!this._modelData||typeof l.text!="string"||l.text.length===0)return;e==="keyboard"&&this._onWillType.fire(l.text),this._modelData.cursor.trigger(e,i,l),e==="keyboard"&&this._onDidType.fire(l.text);return}if(i===ri.b.Paste){if(!this._modelData||typeof l.text!="string"||l.text.length===0)return;var c=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,i,l);var N=this._modelData.cursor.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({range:new Me.a(c.lineNumber,c.column,N.lineNumber,N.column),mode:l.mode});return}var pe=this.getAction(i);if(pe){Promise.resolve(pe.run()).then(void 0,P.e);return}!this._modelData||this._triggerEditorCommand(e,i,l)||(this._modelData.cursor.trigger(e,i,l),i===ri.b.CompositionStart&&this._onDidCompositionStart.fire(),i===ri.b.CompositionEnd&&this._onDidCompositionEnd.fire())},n.prototype._triggerEditorCommand=function(e,i,l){var c=this,N=x.d.getEditorCommand(i);return N?(l=l||{},l.source=e,this._instantiationService.invokeFunction(function(pe){Promise.resolve(N.runEditorCommand(pe,c,l)).then(void 0,P.e)}),!0):!1},n.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},n.prototype.pushUndoStop=function(){return!this._modelData||this._configuration.options.get(68)?!1:(this._modelData.model.pushStackElement(),!0)},n.prototype.executeEdits=function(e,i,l){if(!this._modelData||this._configuration.options.get(68))return!1;var c;return l?Array.isArray(l)?c=function(){return l}:c=l:c=function(){return null},this._modelData.cursor.executeEdits(e,i,c),!0},n.prototype.executeCommand=function(e,i){!this._modelData||this._modelData.cursor.trigger(e,ri.b.ExecuteCommand,i)},n.prototype.executeCommands=function(e,i){!this._modelData||this._modelData.cursor.trigger(e,ri.b.ExecuteCommands,i)},n.prototype.changeDecorations=function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null},n.prototype.getLineDecorations=function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Object(_t.j)(this._configuration.options)):null},n.prototype.deltaDecorations=function(e,i){return this._modelData?e.length===0&&i.length===0?e:this._modelData.model.deltaDecorations(e,i,this._id):[]},n.prototype.removeDecorations=function(e){var i=this._decorationTypeKeysToIds[e];i&&this.deltaDecorations(i,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]},n.prototype.getLayoutInfo=function(){var e=this._configuration.options,i=e.get(107);return i},n.prototype.createOverviewRuler=function(e){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(e)},n.prototype.getContainerDomNode=function(){return this._domElement},n.prototype.getDomNode=function(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode},n.prototype.delegateVerticalScrollbarMouseDown=function(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarMouseDown(e)},n.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render()},n.prototype.focus=function(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()},n.prototype.hasTextFocus=function(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()},n.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},n.prototype.addContentWidget=function(e){var i={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(i)},n.prototype.layoutContentWidget=function(e){var i=e.getId();if(this._contentWidgets.hasOwnProperty(i)){var l=this._contentWidgets[i];l.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(l)}},n.prototype.removeContentWidget=function(e){var i=e.getId();if(this._contentWidgets.hasOwnProperty(i)){var l=this._contentWidgets[i];delete this._contentWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(l)}},n.prototype.addOverlayWidget=function(e){var i={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(i)},n.prototype.layoutOverlayWidget=function(e){var i=e.getId();if(this._overlayWidgets.hasOwnProperty(i)){var l=this._overlayWidgets[i];l.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(l)}},n.prototype.removeOverlayWidget=function(e){var i=e.getId();if(this._overlayWidgets.hasOwnProperty(i)){var l=this._overlayWidgets[i];delete this._overlayWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(l)}},n.prototype.changeViewZones=function(e){if(!(!this._modelData||!this._modelData.hasRealView)){var i=this._modelData.view.change(e);i&&this._onDidChangeViewZones.fire()}},n.prototype.getTargetAtClientPoint=function(e,i){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(e,i)},n.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var i=this._modelData.model.validatePosition(e),l=this._configuration.options,c=l.get(107),N=n._getVerticalOffsetForPosition(this._modelData,i.lineNumber,i.column)-this.getScrollTop(),pe=this._modelData.view.getOffsetForColumn(i.lineNumber,i.column)+c.glyphMarginWidth+c.lineNumbersWidth+c.decorationsWidth-this.getScrollLeft();return{top:N,left:pe,height:l.get(49)}},n.prototype.getOffsetForColumn=function(e,i){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(e,i)},n.prototype.render=function(e){e===void 0&&(e=!1),!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.render(!0,e)},n.prototype.setAriaOptions=function(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(e)},n.prototype.applyFontInfo=function(e){G.a.applyFontInfoSlow(e,this._configuration.options.get(34))},n.prototype._attachModel=function(e){var i=this;if(!e){this._modelData=null;return}var l=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();var c=new kr(this._id,this._configuration,e,Xi.create(),$r.create(this._configuration.options),function(u){return ne.V(u)});l.push(e.onDidChangeDecorations(function(u){return i._onDidChangeModelDecorations.fire(u)})),l.push(e.onDidChangeLanguage(function(u){i._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),i._onDidChangeModelLanguage.fire(u)})),l.push(e.onDidChangeLanguageConfiguration(function(u){return i._onDidChangeModelLanguageConfiguration.fire(u)})),l.push(e.onDidChangeContent(function(u){return i._onDidChangeModelContent.fire(u)})),l.push(e.onDidChangeOptions(function(u){return i._onDidChangeModelOptions.fire(u)})),l.push(e.onWillDispose(function(){return i.setModel(null)}));var N=new Fs(this._configuration,e,c);l.push(N.onDidReachMaxCursorCount(function(){i._notificationService.warn(re.a("cursors.maximum","The number of cursors has been limited to {0}.",Fs.MAX_CURSOR_COUNT))})),l.push(N.onDidAttemptReadOnlyEdit(function(){i._onDidAttemptReadOnlyEdit.fire(void 0)})),l.push(N.onDidChange(function(u){for(var C=[],w=0,b=u.selections.length;w<b;w++)C[w]=u.selections[w].getPosition();var Q={position:C[0],secondaryPositions:C.slice(1),reason:u.reason,source:u.source};i._onDidChangeCursorPosition.fire(Q);var ke={selection:u.selections[0],secondarySelections:u.selections.slice(1),modelVersionId:u.modelVersionId,oldSelections:u.oldSelections,oldModelVersionId:u.oldModelVersionId,source:u.source,reason:u.reason};i._onDidChangeCursorSelection.fire(ke)}));var pe=this._createView(c,N),ue=pe[0],ze=pe[1];if(ze){this._domElement.appendChild(ue.domNode.domNode);for(var st=Object.keys(this._contentWidgets),ft=0,y=st.length;ft<y;ft++){var d=st[ft];ue.addContentWidget(this._contentWidgets[d])}st=Object.keys(this._overlayWidgets);for(var ft=0,y=st.length;ft<y;ft++){var d=st[ft];ue.addOverlayWidget(this._overlayWidgets[d])}ue.render(!1,!0),ue.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new co(e,c,N,ue,ze,l)},n.prototype._createView=function(e,i){var l=this,c;this.isSimpleWidget?c={executeEditorCommand:function(ze,st){ze.runCoreEditorCommand(i,st)},paste:function(ze,st,ft,y,d){l.trigger(ze,ri.b.Paste,{text:st,pasteOnNewLine:ft,multicursorText:y,mode:d})},type:function(ze,st){l.trigger(ze,ri.b.Type,{text:st})},replacePreviousChar:function(ze,st,ft){l.trigger(ze,ri.b.ReplacePreviousChar,{text:st,replaceCharCnt:ft})},compositionStart:function(ze){l.trigger(ze,ri.b.CompositionStart,void 0)},compositionEnd:function(ze){l.trigger(ze,ri.b.CompositionEnd,void 0)},cut:function(ze){l.trigger(ze,ri.b.Cut,void 0)}}:c={executeEditorCommand:function(ze,st){ze.runCoreEditorCommand(i,st)},paste:function(ze,st,ft,y,d){l._commandService.executeCommand(ri.b.Paste,{text:st,pasteOnNewLine:ft,multicursorText:y,mode:d})},type:function(ze,st){l._commandService.executeCommand(ri.b.Type,{text:st})},replacePreviousChar:function(ze,st,ft){l._commandService.executeCommand(ri.b.ReplacePreviousChar,{text:st,replaceCharCnt:ft})},compositionStart:function(ze){l._commandService.executeCommand(ri.b.CompositionStart,{})},compositionEnd:function(ze){l._commandService.executeCommand(ri.b.CompositionEnd,{})},cut:function(ze){l._commandService.executeCommand(ri.b.Cut,{})}};var N=new ut(e);N.onDidContentSizeChange=function(ue){return l._onDidContentSizeChange.fire(ue)},N.onDidScroll=function(ue){return l._onDidScrollChange.fire(ue)},N.onDidGainFocus=function(){return l._editorTextFocus.setValue(!0)},N.onDidLoseFocus=function(){return l._editorTextFocus.setValue(!1)},N.onContextMenu=function(ue){return l._onContextMenu.fire(ue)},N.onMouseDown=function(ue){return l._onMouseDown.fire(ue)},N.onMouseUp=function(ue){return l._onMouseUp.fire(ue)},N.onMouseDrag=function(ue){return l._onMouseDrag.fire(ue)},N.onMouseDrop=function(ue){return l._onMouseDrop.fire(ue)},N.onKeyUp=function(ue){return l._onKeyUp.fire(ue)},N.onMouseMove=function(ue){return l._onMouseMove.fire(ue)},N.onMouseLeave=function(ue){return l._onMouseLeave.fire(ue)},N.onMouseWheel=function(ue){return l._onMouseWheel.fire(ue)},N.onKeyDown=function(ue){return l._onKeyDown.fire(ue)};var pe=new Mo(c,this._configuration,this._themeService,e,i,N);return[pe,!0]},n.prototype._postDetachModelCleanup=function(e){e&&e.removeAllDecorationsWithOwnerId(this._id)},n.prototype._detachModel=function(){if(!this._modelData)return null;var e=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),e},n.prototype._removeDecorationType=function(e){this._codeEditorService.removeDecorationType(e)},n.prototype.hasModel=function(){return this._modelData!==null},n=xo([Tr(3,Go.a),Tr(4,S.a),Tr(5,ys.b),Tr(6,Cs.c),Tr(7,tt.c),Tr(8,bs.a),Tr(9,Xr.b)],n),n}(V.a),Qo=function(O){qr(n,O);function n(){var e=O.call(this)||this;return e._onDidChangeToTrue=e._register(new F.a),e.onDidChangeToTrue=e._onDidChangeToTrue.event,e._onDidChangeToFalse=e._register(new F.a),e.onDidChangeToFalse=e._onDidChangeToFalse.event,e._value=0,e}return n.prototype.setValue=function(e){var i=e?2:1;this._value!==i&&(this._value=i,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())},n}(V.a),_s=function(O){qr(n,O);function n(e,i){var l=O.call(this)||this;return l._editor=e,i.createKey("editorId",e.getId()),l._editorSimpleInput=si.a.editorSimpleInput.bindTo(i),l._editorFocus=si.a.focus.bindTo(i),l._textInputFocus=si.a.textInputFocus.bindTo(i),l._editorTextFocus=si.a.editorTextFocus.bindTo(i),l._editorTabMovesFocus=si.a.tabMovesFocus.bindTo(i),l._editorReadonly=si.a.readOnly.bindTo(i),l._hasMultipleSelections=si.a.hasMultipleSelections.bindTo(i),l._hasNonEmptySelection=si.a.hasNonEmptySelection.bindTo(i),l._canUndo=si.a.canUndo.bindTo(i),l._canRedo=si.a.canRedo.bindTo(i),l._register(l._editor.onDidChangeConfiguration(function(){return l._updateFromConfig()})),l._register(l._editor.onDidChangeCursorSelection(function(){return l._updateFromSelection()})),l._register(l._editor.onDidFocusEditorWidget(function(){return l._updateFromFocus()})),l._register(l._editor.onDidBlurEditorWidget(function(){return l._updateFromFocus()})),l._register(l._editor.onDidFocusEditorText(function(){return l._updateFromFocus()})),l._register(l._editor.onDidBlurEditorText(function(){return l._updateFromFocus()})),l._register(l._editor.onDidChangeModel(function(){return l._updateFromModel()})),l._register(l._editor.onDidChangeConfiguration(function(){return l._updateFromModel()})),l._updateFromConfig(),l._updateFromSelection(),l._updateFromFocus(),l._updateFromModel(),l._editorSimpleInput.set(l._editor.isSimpleWidget),l}return n.prototype._updateFromConfig=function(){var e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(106)),this._editorReadonly.set(e.get(68))},n.prototype._updateFromSelection=function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(function(i){return!i.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},n.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},n.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},n}(V.a),Ss=function(O){qr(n,O);function n(e,i){var l=O.call(this)||this;l._editor=e,l._contextKeyService=i,l._langId=si.a.languageId.bindTo(i),l._hasCompletionItemProvider=si.a.hasCompletionItemProvider.bindTo(i),l._hasCodeActionsProvider=si.a.hasCodeActionsProvider.bindTo(i),l._hasCodeLensProvider=si.a.hasCodeLensProvider.bindTo(i),l._hasDefinitionProvider=si.a.hasDefinitionProvider.bindTo(i),l._hasDeclarationProvider=si.a.hasDeclarationProvider.bindTo(i),l._hasImplementationProvider=si.a.hasImplementationProvider.bindTo(i),l._hasTypeDefinitionProvider=si.a.hasTypeDefinitionProvider.bindTo(i),l._hasHoverProvider=si.a.hasHoverProvider.bindTo(i),l._hasDocumentHighlightProvider=si.a.hasDocumentHighlightProvider.bindTo(i),l._hasDocumentSymbolProvider=si.a.hasDocumentSymbolProvider.bindTo(i),l._hasReferenceProvider=si.a.hasReferenceProvider.bindTo(i),l._hasRenameProvider=si.a.hasRenameProvider.bindTo(i),l._hasSignatureHelpProvider=si.a.hasSignatureHelpProvider.bindTo(i),l._hasDocumentFormattingProvider=si.a.hasDocumentFormattingProvider.bindTo(i),l._hasDocumentSelectionFormattingProvider=si.a.hasDocumentSelectionFormattingProvider.bindTo(i),l._hasMultipleDocumentFormattingProvider=si.a.hasMultipleDocumentFormattingProvider.bindTo(i),l._hasMultipleDocumentSelectionFormattingProvider=si.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(i),l._isInWalkThrough=si.a.isInEmbeddedEditor.bindTo(i);var c=function(){return l._update()};return l._register(e.onDidChangeModel(c)),l._register(e.onDidChangeModelLanguage(c)),l._register(Un.d.onDidChange(c)),l._register(Un.a.onDidChange(c)),l._register(Un.b.onDidChange(c)),l._register(Un.f.onDidChange(c)),l._register(Un.e.onDidChange(c)),l._register(Un.p.onDidChange(c)),l._register(Un.z.onDidChange(c)),l._register(Un.o.onDidChange(c)),l._register(Un.h.onDidChange(c)),l._register(Un.l.onDidChange(c)),l._register(Un.t.onDidChange(c)),l._register(Un.u.onDidChange(c)),l._register(Un.g.onDidChange(c)),l._register(Un.i.onDidChange(c)),l._register(Un.w.onDidChange(c)),c(),l}return n.prototype.dispose=function(){O.prototype.dispose.call(this)},n.prototype.reset=function(){var e=this;this._contextKeyService.bufferChangeEvents(function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()})},n.prototype._update=function(){var e=this,i=this._editor.getModel();if(!i){this.reset();return}this._contextKeyService.bufferChangeEvents(function(){e._langId.set(i.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(Un.d.has(i)),e._hasCodeActionsProvider.set(Un.a.has(i)),e._hasCodeLensProvider.set(Un.b.has(i)),e._hasDefinitionProvider.set(Un.f.has(i)),e._hasDeclarationProvider.set(Un.e.has(i)),e._hasImplementationProvider.set(Un.p.has(i)),e._hasTypeDefinitionProvider.set(Un.z.has(i)),e._hasHoverProvider.set(Un.o.has(i)),e._hasDocumentHighlightProvider.set(Un.h.has(i)),e._hasDocumentSymbolProvider.set(Un.l.has(i)),e._hasReferenceProvider.set(Un.t.has(i)),e._hasRenameProvider.set(Un.u.has(i)),e._hasSignatureHelpProvider.set(Un.w.has(i)),e._hasDocumentFormattingProvider.set(Un.g.has(i)||Un.i.has(i)),e._hasDocumentSelectionFormattingProvider.set(Un.i.has(i)),e._hasMultipleDocumentFormattingProvider.set(Un.g.all(i).length+Un.i.all(i).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(Un.i.all(i).length>1),e._isInWalkThrough.set(i.uri.scheme===B.b.walkThroughSnippet)})},n}(V.a),$o=function(O){qr(n,O);function n(e){var i=O.call(this)||this;return i._onChange=i._register(new F.a),i.onChange=i._onChange.event,i._hasFocus=!1,i._domFocusTracker=i._register(ne.Y(e)),i._register(i._domFocusTracker.onDidFocus(function(){i._hasFocus=!0,i._onChange.fire(void 0)})),i._register(i._domFocusTracker.onDidBlur(function(){i._hasFocus=!1,i._onChange.fire(void 0)})),i}return n.prototype.hasFocus=function(){return this._hasFocus},n}(V.a),ws=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='"),Jo=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 Fo(O){return ws+encodeURIComponent(O.toString())+Jo}var fo=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),Wo=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 qo(O){return fo+encodeURIComponent(O.toString())+Wo}Object(tt.e)(function(O,n){var e=O.getColor(Li.p);e&&n.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+e+"; }");var i=O.getColor(Li.q);i&&n.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+Fo(i)+'") repeat-x bottom left; }');var l=O.getColor(Li.N);l&&n.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+l+"; }");var c=O.getColor(Li.O);c&&n.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+Fo(c)+'") repeat-x bottom left; }');var N=O.getColor(Li.G);N&&n.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+N+"; }");var pe=O.getColor(Li.H);pe&&n.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+Fo(pe)+'") repeat-x bottom left; }');var ue=O.getColor(Li.y);ue&&n.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+ue+"; }");var ze=O.getColor(Li.z);ze&&n.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+qo(ze)+'") no-repeat bottom left; }');var st=O.getColor(tn.n);st&&n.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+st.rgba.a+"; }");var ft=O.getColor(tn.m);ft&&n.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+ft+"; }");var y=O.getColor(Li.x)||"inherit";n.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+y+"}")})},nD70:function(Et,A,o){"use strict";o.d(A,"a",function(){return R}),o.d(A,"b",function(){return re});var R=function(){function ne(P){this._prefix=P,this._lastId=0}return ne.prototype.nextId=function(){return this._prefix+ ++this._lastId},ne}(),re=new R("id#")},nn6Y:function(Et,A,o){},nnTU:function(Et,A,o){"use strict";o.d(A,"b",function(){return G}),o.d(A,"a",function(){return x});var R=o("pmY6"),re=o("746U"),ne=o("Cg/j"),P=o("MI8n"),F=o("24hK"),V=o("QDVR"),B=function(){for(var S=0,I=0,K=arguments.length;I<K;I++)S+=arguments[I].length;for(var D=Array(S),T=0,I=0;I<K;I++)for(var te=arguments[I],U=0,_=te.length;U<_;U++,T++)D[T]=te[U];return D},G=Object(ne.c)("commandService"),x=new(function(){function S(){this._commands=new Map,this._onDidRegisterCommand=new P.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return S.prototype.registerCommand=function(I,K){var D=this;if(!I)throw new Error("invalid command");if(typeof I=="string"){if(!K)throw new Error("invalid command");return this.registerCommand({id:I,handler:K})}if(I.description){for(var T=[],te=0,U=I.description.args;te<U.length;te++){var _=U[te];T.push(_.constraint)}var h=I.handler;I.handler=function(k){for(var z=[],oe=1;oe<arguments.length;oe++)z[oe-1]=arguments[oe];return Object(re.m)(z,T),h.apply(void 0,B([k],z))}}var g=I.id,p=this._commands.get(g);p||(p=new F.a,this._commands.set(g,p));var v=p.unshift(I),E=Object(R.h)(function(){v();var k=D._commands.get(g);(k==null?void 0:k.isEmpty())&&D._commands.delete(g)});return this._onDidRegisterCommand.fire(g),E},S.prototype.registerCommandAlias=function(I,K){return x.registerCommand(I,function(D){for(var T,te=[],U=1;U<arguments.length;U++)te[U-1]=arguments[U];return(T=D.get(G)).executeCommand.apply(T,B([K],te))})},S.prototype.getCommand=function(I){var K=this._commands.get(I);if(!(!K||K.isEmpty()))return K.iterator().next().value},S.prototype.getCommands=function(){for(var I=new Map,K=0,D=Object(V.d)(this._commands);K<D.length;K++){var T=D[K],te=this.getCommand(T);te&&I.set(T,te)}return I},S}())},nrBJ:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return o.e(252).then(o.bind(null,"eXtt"))}})},nrhi:function(Et,A,o){"use strict";o.d(A,"a",function(){return V});var R=o("/kV6"),re=o("MNsG"),ne=o("nnTU"),P=o("ic2d"),F=function(){function x(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return x.bindToCurrentPlatform=function(S){if(re.a===1){if(S&&S.win)return S.win}else if(re.a===2){if(S&&S.mac)return S.mac}else if(S&&S.linux)return S.linux;return S},x.prototype.registerKeybindingRule=function(S){var I=x.bindToCurrentPlatform(S);if(I&&I.primary){var K=Object(R.f)(I.primary,re.a);K&&this._registerDefaultKeybinding(K,S.id,S.args,S.weight,0,S.when)}if(I&&Array.isArray(I.secondary))for(var D=0,T=I.secondary.length;D<T;D++){var te=I.secondary[D],K=Object(R.f)(te,re.a);K&&this._registerDefaultKeybinding(K,S.id,S.args,S.weight,-D-1,S.when)}},x.prototype.registerCommandAndKeybindingRule=function(S){this.registerKeybindingRule(S),ne.a.registerCommand(S)},x._mightProduceChar=function(S){return S>=21&&S<=30||S>=31&&S<=56?!0:S===80||S===81||S===82||S===83||S===84||S===85||S===86||S===110||S===111||S===87||S===88||S===89||S===90||S===91||S===92},x.prototype._assertNoCtrlAlt=function(S,I){S.ctrlKey&&S.altKey&&!S.metaKey&&x._mightProduceChar(S.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",S," for ",I)},x.prototype._registerDefaultKeybinding=function(S,I,K,D,T,te){re.a===1&&this._assertNoCtrlAlt(S.parts[0],I),this._coreKeybindings.push({keybinding:S,command:I,commandArgs:K,when:te,weight1:D,weight2:T}),this._cachedMergedKeybindings=null},x.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(G)),this._cachedMergedKeybindings.slice(0)},x}(),V=new F,B={EditorModes:"platform.keybindingsRegistry"};P.a.add(B.EditorModes,V);function G(x,S){return x.weight1!==S.weight1?x.weight1-S.weight1:x.command<S.command?-1:x.command>S.command?1:x.weight2-S.weight2}},nuFA:function(Et,A,o){"use strict";o.d(A,"a",function(){return R});var R;(function(re){function ne(B,G){if(B.start>=G.end||G.start>=B.end)return{start:0,end:0};var x=Math.max(B.start,G.start),S=Math.min(B.end,G.end);return S-x<=0?{start:0,end:0}:{start:x,end:S}}re.intersect=ne;function P(B){return B.end-B.start<=0}re.isEmpty=P;function F(B,G){return!P(ne(B,G))}re.intersects=F;function V(B,G){var x=[],S={start:B.start,end:Math.min(G.start,B.end)},I={start:Math.max(G.end,B.start),end:B.end};return P(S)||x.push(S),P(I)||x.push(I),x}re.relativeComplement=V})(R||(R={}))},o39E:function(Et,A,o){"use strict";o.d(A,"a",function(){return P});var R=o("pmY6"),re=o("EffR"),ne=function(){var F=function(B,G){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,S){x.__proto__=S}||function(x,S){for(var I in S)S.hasOwnProperty(I)&&(x[I]=S[I])},F(B,G)};return function(V,B){F(V,B);function G(){this.constructor=V}V.prototype=B===null?Object.create(B):(G.prototype=B.prototype,new G)}}(),P=function(F){ne(V,F);function V(B,G,x){var S=F.call(this)||this;return S.referenceDomElement=B,S.changeCallback=x,S.width=-1,S.height=-1,S.mutationObserver=null,S.windowSizeListener=null,S.measureReferenceDomElement(!1,G),S}return V.prototype.dispose=function(){this.stopObserving(),F.prototype.dispose.call(this)},V.prototype.getWidth=function(){return this.width},V.prototype.getHeight=function(){return this.height},V.prototype.startObserving=function(){var B=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver(function(){return B._onDidMutate()}),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=re.i(window,"resize",function(){return B._onDidResizeWindow()}))},V.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},V.prototype.observe=function(B){this.measureReferenceDomElement(!0,B)},V.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},V.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},V.prototype.measureReferenceDomElement=function(B,G){var x=0,S=0;G?(x=G.width,S=G.height):this.referenceDomElement&&(x=this.referenceDomElement.clientWidth,S=this.referenceDomElement.clientHeight),x=Math.max(5,x),S=Math.max(5,S),(this.width!==x||this.height!==S)&&(this.width=x,this.height=S,B&&this.changeCallback())},V}(R.a)},oKJv:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return o.e(226).then(o.bind(null,"HGU1"))}})},oQaD:function(Et,A,o){"use strict";o.r(A),o.d(A,"getSelectionSearchString",function(){return Zt}),o.d(A,"CommonFindController",function(){return Xt}),o.d(A,"FindController",function(){return ln}),o.d(A,"StartFindAction",function(){return hn}),o.d(A,"StartFindWithSelectionAction",function(){return Tn}),o.d(A,"MatchFindAction",function(){return pn}),o.d(A,"NextMatchFindAction",function(){return Nn}),o.d(A,"NextMatchFindAction2",function(){return In}),o.d(A,"PreviousMatchFindAction",function(){return Oe}),o.d(A,"PreviousMatchFindAction2",function(){return j}),o.d(A,"SelectionMatchFindAction",function(){return ae}),o.d(A,"NextSelectionMatchFindAction",function(){return Fe}),o.d(A,"PreviousSelectionMatchFindAction",function(){return qe}),o.d(A,"StartFindReplaceAction",function(){return ct});var R=o("3/fG"),re=o("X+cX"),ne=o("pmY6"),P=o("N0LK"),F=o("sswD"),V=o("wQH0"),B=o("LCkn"),G=o("cGHE"),x=o("aokT"),S=o("gCVg"),I=o("jAJ/"),K=o("M1Kb"),D=o("tX9W"),T=o("MD5Z"),te=o("t9D7"),U=function(){function Ge(le){this._editor=le,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return Ge.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},Ge.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},Ge.prototype.getCount=function(){return this._decorations.length},Ge.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},Ge.prototype.getStartPosition=function(){return this._startPosition},Ge.prototype.setStartPosition=function(le){this._startPosition=le,this.setCurrentFindMatch(null)},Ge.prototype._getDecorationIndex=function(le){var Y=this._decorations.indexOf(le);return Y>=0?Y+1:1},Ge.prototype.getCurrentMatchesPosition=function(le){for(var Y=this._editor.getModel().getDecorationsInRange(le),Ve=0,at=Y;Ve<at.length;Ve++){var et=at[Ve],J=et.options;if(J===Ge._FIND_MATCH_DECORATION||J===Ge._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(et.id)}return 1},Ge.prototype.setCurrentFindMatch=function(le){var Y=this,Ve=null,at=0;if(le)for(var et=0,J=this._decorations.length;et<J;et++){var be=this._editor.getModel().getDecorationRange(this._decorations[et]);if(le.equalsRange(be)){Ve=this._decorations[et],at=et+1;break}}return(this._highlightedDecorationId!==null||Ve!==null)&&this._editor.changeDecorations(function(Le){if(Y._highlightedDecorationId!==null&&(Le.changeDecorationOptions(Y._highlightedDecorationId,Ge._FIND_MATCH_DECORATION),Y._highlightedDecorationId=null),Ve!==null&&(Y._highlightedDecorationId=Ve,Le.changeDecorationOptions(Y._highlightedDecorationId,Ge._CURRENT_FIND_MATCH_DECORATION)),Y._rangeHighlightDecorationId!==null&&(Le.removeDecoration(Y._rangeHighlightDecorationId),Y._rangeHighlightDecorationId=null),Ve!==null){var it=Y._editor.getModel().getDecorationRange(Ve);if(it.startLineNumber!==it.endLineNumber&&it.endColumn===1){var Je=it.endLineNumber-1,Be=Y._editor.getModel().getLineMaxColumn(Je);it=new x.a(it.startLineNumber,it.startColumn,Je,Be)}Y._rangeHighlightDecorationId=Le.addDecoration(it,Ge._RANGE_HIGHLIGHT_DECORATION)}}),at},Ge.prototype.set=function(le,Y){var Ve=this;this._editor.changeDecorations(function(at){var et=Ge._FIND_MATCH_DECORATION,J=[];if(le.length>1e3){et=Ge._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var be=Ve._editor.getModel().getLineCount(),Le=Ve._editor.getLayoutInfo().height,it=Le/be,Je=Math.max(2,Math.ceil(3/it)),Be=le[0].range.startLineNumber,bt=le[0].range.endLineNumber,Lt=1,$t=le.length;Lt<$t;Lt++){var Tt=le[Lt].range;bt+Je>=Tt.startLineNumber?Tt.endLineNumber>bt&&(bt=Tt.endLineNumber):(J.push({range:new x.a(Be,1,bt,1),options:Ge._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),Be=Tt.startLineNumber,bt=Tt.endLineNumber)}J.push({range:new x.a(Be,1,bt,1),options:Ge._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var Bt=new Array(le.length),Lt=0,$t=le.length;Lt<$t;Lt++)Bt[Lt]={range:le[Lt].range,options:et};Ve._decorations=at.deltaDecorations(Ve._decorations,Bt),Ve._overviewRulerApproximateDecorations=at.deltaDecorations(Ve._overviewRulerApproximateDecorations,J),Ve._rangeHighlightDecorationId&&(at.removeDecoration(Ve._rangeHighlightDecorationId),Ve._rangeHighlightDecorationId=null),Ve._findScopeDecorationId&&(at.removeDecoration(Ve._findScopeDecorationId),Ve._findScopeDecorationId=null),Y&&(Ve._findScopeDecorationId=at.addDecoration(Y,Ge._FIND_SCOPE_DECORATION))})},Ge.prototype.matchBeforePosition=function(le){if(this._decorations.length===0)return null;for(var Y=this._decorations.length-1;Y>=0;Y--){var Ve=this._decorations[Y],at=this._editor.getModel().getDecorationRange(Ve);if(!(!at||at.endLineNumber>le.lineNumber)){if(at.endLineNumber<le.lineNumber)return at;if(!(at.endColumn>le.column))return at}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},Ge.prototype.matchAfterPosition=function(le){if(this._decorations.length===0)return null;for(var Y=0,Ve=this._decorations.length;Y<Ve;Y++){var at=this._decorations[Y],et=this._editor.getModel().getDecorationRange(at);if(!(!et||et.startLineNumber<le.lineNumber)){if(et.startLineNumber>le.lineNumber)return et;if(!(et.startColumn<le.column))return et}}return this._editor.getModel().getDecorationRange(this._decorations[0])},Ge.prototype._allDecorations=function(){var le=[];return le=le.concat(this._decorations),le=le.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&le.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&le.push(this._rangeHighlightDecorationId),le},Ge._CURRENT_FIND_MATCH_DECORATION=D.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(te.f)(T.Kb),position:K.d.Center},minimap:{color:Object(te.f)(T.Gb),position:K.c.Inline}}),Ge._FIND_MATCH_DECORATION=D.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(te.f)(T.Kb),position:K.d.Center},minimap:{color:Object(te.f)(T.Gb),position:K.c.Inline}}),Ge._FIND_MATCH_NO_OVERVIEW_DECORATION=D.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),Ge._FIND_MATCH_ONLY_OVERVIEW_DECORATION=D.a.register({stickiness:1,overviewRuler:{color:Object(te.f)(T.Kb),position:K.d.Center}}),Ge._RANGE_HIGHLIGHT_DECORATION=D.a.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),Ge._FIND_SCOPE_DECORATION=D.a.register({className:"findScope",isWholeLine:!0}),Ge}(),_=function(){function Ge(le,Y,Ve){this._editorSelection=le,this._ranges=Y,this._replaceStrings=Ve,this._trackedEditorSelectionId=null}return Ge.prototype.getEditOperations=function(le,Y){if(this._ranges.length>0){for(var Ve=[],at=0;at<this._ranges.length;at++)Ve.push({range:this._ranges[at],text:this._replaceStrings[at]});Ve.sort(function(Je,Be){return x.a.compareRangesUsingStarts(Je.range,Be.range)});for(var et=[],J=Ve[0],at=1;at<Ve.length;at++)J.range.endLineNumber===Ve[at].range.startLineNumber&&J.range.endColumn===Ve[at].range.startColumn?(J.range=J.range.plusRange(Ve[at].range),J.text=J.text+Ve[at].text):(et.push(J),J=Ve[at]);et.push(J);for(var be=0,Le=et;be<Le.length;be++){var it=Le[be];Y.addEditOperation(it.range,it.text)}}this._trackedEditorSelectionId=Y.trackSelection(this._editorSelection)},Ge.prototype.computeCursorState=function(le,Y){return Y.getTrackedSelection(this._trackedEditorSelectionId)},Ge}();function h(Ge,le){if(Ge&&Ge[0]!==""){var Y=g(Ge,le,"-"),Ve=g(Ge,le,"_");return Y&&!Ve?p(Ge,le,"-"):!Y&&Ve?p(Ge,le,"_"):Ge[0].toUpperCase()===Ge[0]?le.toUpperCase():Ge[0].toLowerCase()===Ge[0]?le.toLowerCase():P.j(Ge[0][0])?le[0].toUpperCase()+le.substr(1):le}else return le}function g(Ge,le,Y){var Ve=Ge[0].indexOf(Y)!==-1&&le.indexOf(Y)!==-1;return Ve&&Ge[0].split(Y).length===le.split(Y).length}function p(Ge,le,Y){var Ve=le.split(Y),at=Ge[0].split(Y),et="";return Ve.forEach(function(J,be){et+=h([at[be]],J)+Y}),et.slice(0,-1)}var v=function(){function Ge(le){this.staticValue=le,this.kind=0}return Ge}(),E=function(){function Ge(le){this.pieces=le,this.kind=1}return Ge}(),k=function(){function Ge(le){!le||le.length===0?this._state=new v(""):le.length===1&&le[0].staticValue!==null?this._state=new v(le[0].staticValue):this._state=new E(le)}return Ge.fromStaticValue=function(le){return new Ge([z.staticValue(le)])},Object.defineProperty(Ge.prototype,"hasReplacementPatterns",{get:function(){return this._state.kind===1},enumerable:!0,configurable:!0}),Ge.prototype.buildReplaceString=function(le,Y){if(this._state.kind===0)return Y?h(le,this._state.staticValue):this._state.staticValue;for(var Ve="",at=0,et=this._state.pieces.length;at<et;at++){var J=this._state.pieces[at];if(J.staticValue!==null){Ve+=J.staticValue;continue}Ve+=Ge._substitute(J.matchIndex,le)}return Ve},Ge._substitute=function(le,Y){if(Y===null)return"";if(le===0)return Y[0];for(var Ve="";le>0;){if(le<Y.length){var at=Y[le]||"";return at+Ve}Ve=String(le%10)+Ve,le=Math.floor(le/10)}return"$"+Ve},Ge}(),z=function(){function Ge(le,Y){this.staticValue=le,this.matchIndex=Y}return Ge.staticValue=function(le){return new Ge(le,-1)},Ge.matchIndex=function(le){return new Ge(null,le)},Ge}(),oe=function(){function Ge(le){this._source=le,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return Ge.prototype.emitUnchanged=function(le){this._emitStatic(this._source.substring(this._lastCharIndex,le)),this._lastCharIndex=le},Ge.prototype.emitStatic=function(le,Y){this._emitStatic(le),this._lastCharIndex=Y},Ge.prototype._emitStatic=function(le){le.length!==0&&(this._currentStaticPiece+=le)},Ge.prototype.emitMatchIndex=function(le,Y){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=z.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=z.matchIndex(le),this._lastCharIndex=Y},Ge.prototype.finalize=function(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=z.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new k(this._result)},Ge}();function fe(Ge){if(!Ge||Ge.length===0)return new k(null);for(var le=new oe(Ge),Y=0,Ve=Ge.length;Y<Ve;Y++){var at=Ge.charCodeAt(Y);if(at===92){if(Y++,Y>=Ve)break;var et=Ge.charCodeAt(Y);switch(et){case 92:le.emitUnchanged(Y-1),le.emitStatic("\\",Y+1);break;case 110:le.emitUnchanged(Y-1),le.emitStatic(`
`,Y+1);break;case 116:le.emitUnchanged(Y-1),le.emitStatic(" ",Y+1);break}continue}if(at===36){if(Y++,Y>=Ve)break;var et=Ge.charCodeAt(Y);if(et===36){le.emitUnchanged(Y-1),le.emitStatic("$",Y+1);continue}if(et===48||et===38){le.emitUnchanged(Y-1),le.emitMatchIndex(0,Y+1);continue}if(49<=et&&et<=57){var J=et-48;if(Y+1<Ve){var be=Ge.charCodeAt(Y+1);if(48<=be&&be<=57){Y++,J=J*10+(be-48),le.emitUnchanged(Y-2),le.emitMatchIndex(J,Y+1);continue}}le.emitUnchanged(Y-1),le.emitMatchIndex(J,Y+1);continue}}}return le.finalize()}var Se=o("T8No"),we=new Se.d("findWidgetVisible",!1),q=new Se.d("findInputFocussed",!1),X=new Se.d("replaceInputFocussed",!1),ce={primary:512|33,mac:{primary:2048|512|33}},Ne={primary:512|53,mac:{primary:2048|512|53}},He={primary:512|48,mac:{primary:2048|512|48}},_e={primary:512|42,mac:{primary:2048|512|42}},de={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"},se=19999,he=240,ie=function(){function Ge(le,Y){var Ve=this;this._toDispose=new ne.b,this._editor=le,this._state=Y,this._isDisposed=!1,this._startSearchingTimer=new re.e,this._decorations=new U(le),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new re.d(function(){return Ve.research(!1)},100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(function(at){(at.reason===3||at.reason===5||at.reason===6)&&Ve._decorations.setStartPosition(Ve._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(function(at){Ve._ignoreModelContentChanged||(at.isFlush&&Ve._decorations.reset(),Ve._decorations.setStartPosition(Ve._editor.getPosition()),Ve._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(function(at){return Ve._onStateChanged(at)})),this.research(!1,this._state.searchScope)}return Ge.prototype.dispose=function(){this._isDisposed=!0,Object(ne.f)(this._startSearchingTimer),this._toDispose.dispose()},Ge.prototype._onStateChanged=function(le){var Y=this;if(!this._isDisposed&&!!this._editor.hasModel()&&(le.searchString||le.isReplaceRevealed||le.isRegex||le.wholeWord||le.matchCase||le.searchScope)){var Ve=this._editor.getModel();Ve.isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(function(){le.searchScope?Y.research(le.moveCursor,Y._state.searchScope):Y.research(le.moveCursor)},he)):le.searchScope?this.research(le.moveCursor,this._state.searchScope):this.research(le.moveCursor)}},Ge._getSearchRange=function(le,Y){return Y||le.getFullModelRange()},Ge.prototype.research=function(le,Y){var Ve=null;typeof Y!="undefined"?Ve=Y:Ve=this._decorations.getFindScope(),Ve!==null&&Ve.startLineNumber!==Ve.endLineNumber&&(Ve.endColumn===1?Ve=new x.a(Ve.startLineNumber,1,Ve.endLineNumber-1,this._editor.getModel().getLineMaxColumn(Ve.endLineNumber-1)):Ve=new x.a(Ve.startLineNumber,1,Ve.endLineNumber,this._editor.getModel().getLineMaxColumn(Ve.endLineNumber)));var at=this._findMatches(Ve,!1,se);this._decorations.set(at,Ve),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),le&&this._moveToNextMatch(this._decorations.getStartPosition())},Ge.prototype._hasMatches=function(){return this._state.matchesCount>0},Ge.prototype._cannotFind=function(){if(!this._hasMatches()){var le=this._decorations.getFindScope();return le&&this._editor.revealRangeInCenterIfOutsideViewport(le,0),!0}return!1},Ge.prototype._setCurrentFindMatch=function(le){var Y=this._decorations.setCurrentFindMatch(le);this._state.changeMatchInfo(Y,this._decorations.getCount(),le),this._editor.setSelection(le),this._editor.revealRangeInCenterIfOutsideViewport(le,0)},Ge.prototype._prevSearchPosition=function(le){var Y=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),Ve=le.lineNumber,at=le.column,et=this._editor.getModel();return Y||at===1?(Ve===1?Ve=et.getLineCount():Ve--,at=et.getLineMaxColumn(Ve)):at--,new G.a(Ve,at)},Ge.prototype._moveToPrevMatch=function(le,Y){if(Y===void 0&&(Y=!1),this._decorations.getCount()<se){var Ve=this._decorations.matchBeforePosition(le);Ve&&Ve.isEmpty()&&Ve.getStartPosition().equals(le)&&(le=this._prevSearchPosition(le),Ve=this._decorations.matchBeforePosition(le)),Ve&&this._setCurrentFindMatch(Ve);return}if(!this._cannotFind()){var at=this._decorations.getFindScope(),et=Ge._getSearchRange(this._editor.getModel(),at);et.getEndPosition().isBefore(le)&&(le=et.getEndPosition()),le.isBefore(et.getStartPosition())&&(le=et.getEndPosition());var J=le.lineNumber,be=le.column,Le=this._editor.getModel(),it=new G.a(J,be),Je=Le.findPreviousMatch(this._state.searchString,it,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1);if(Je&&Je.range.isEmpty()&&Je.range.getStartPosition().equals(it)&&(it=this._prevSearchPosition(it),Je=Le.findPreviousMatch(this._state.searchString,it,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1)),!!Je){if(!Y&&!et.containsRange(Je.range))return this._moveToPrevMatch(Je.range.getStartPosition(),!0);this._setCurrentFindMatch(Je.range)}}},Ge.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},Ge.prototype._nextSearchPosition=function(le){var Y=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),Ve=le.lineNumber,at=le.column,et=this._editor.getModel();return Y||at===et.getLineMaxColumn(Ve)?(Ve===et.getLineCount()?Ve=1:Ve++,at=1):at++,new G.a(Ve,at)},Ge.prototype._moveToNextMatch=function(le){if(this._decorations.getCount()<se){var Y=this._decorations.matchAfterPosition(le);Y&&Y.isEmpty()&&Y.getStartPosition().equals(le)&&(le=this._nextSearchPosition(le),Y=this._decorations.matchAfterPosition(le)),Y&&this._setCurrentFindMatch(Y);return}var Ve=this._getNextMatch(le,!1,!0);Ve&&this._setCurrentFindMatch(Ve.range)},Ge.prototype._getNextMatch=function(le,Y,Ve,at){if(at===void 0&&(at=!1),this._cannotFind())return null;var et=this._decorations.getFindScope(),J=Ge._getSearchRange(this._editor.getModel(),et);J.getEndPosition().isBefore(le)&&(le=J.getStartPosition()),le.isBefore(J.getStartPosition())&&(le=J.getStartPosition());var be=le.lineNumber,Le=le.column,it=this._editor.getModel(),Je=new G.a(be,Le),Be=it.findNextMatch(this._state.searchString,Je,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Y);return Ve&&Be&&Be.range.isEmpty()&&Be.range.getStartPosition().equals(Je)&&(Je=this._nextSearchPosition(Je),Be=it.findNextMatch(this._state.searchString,Je,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Y)),Be?!at&&!J.containsRange(Be.range)?this._getNextMatch(Be.range.getEndPosition(),Y,Ve,!0):Be:null},Ge.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},Ge.prototype._getReplacePattern=function(){return this._state.isRegex?fe(this._state.replaceString):k.fromStaticValue(this._state.replaceString)},Ge.prototype.replace=function(){if(!!this._hasMatches()){var le=this._getReplacePattern(),Y=this._editor.getSelection(),Ve=this._getNextMatch(Y.getStartPosition(),!0,!1);if(Ve)if(Y.equalsRange(Ve.range)){var at=le.buildReplaceString(Ve.matches,this._state.preserveCase),et=new B.a(Y,at);this._executeEditorCommand("replace",et),this._decorations.setStartPosition(new G.a(Y.startLineNumber,Y.startColumn+at.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(Ve.range)}},Ge.prototype._findMatches=function(le,Y,Ve){var at=Ge._getSearchRange(this._editor.getModel(),le);return this._editor.getModel().findMatches(this._state.searchString,at,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,Y,Ve)},Ge.prototype.replaceAll=function(){if(!!this._hasMatches()){var le=this._decorations.getFindScope();le===null&&this._state.matchesCount>=se?this._largeReplaceAll():this._regularReplaceAll(le),this.research(!1)}},Ge.prototype._largeReplaceAll=function(){var le=new I.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null),Y=le.parseSearchRequest();if(!!Y){var Ve=Y.regex;if(!Ve.multiline){var at="mu";Ve.ignoreCase&&(at+="i"),Ve.global&&(at+="g"),Ve=new RegExp(Ve.source,at)}var et=this._editor.getModel(),J=et.getValue(1),be=et.getFullModelRange(),Le=this._getReplacePattern(),it,Je=this._state.preserveCase;Le.hasReplacementPatterns||Je?it=J.replace(Ve,function(){return Le.buildReplaceString(arguments,Je)}):it=J.replace(Ve,Le.buildReplaceString(null,Je));var Be=new B.b(be,it,this._editor.getSelection());this._executeEditorCommand("replaceAll",Be)}},Ge.prototype._regularReplaceAll=function(le){for(var Y=this._getReplacePattern(),Ve=this._findMatches(le,Y.hasReplacementPatterns||this._state.preserveCase,1073741824),at=[],et=0,J=Ve.length;et<J;et++)at[et]=Y.buildReplaceString(Ve[et].matches,this._state.preserveCase);var be=new _(this._editor.getSelection(),Ve.map(function(Le){return Le.range}),at);this._executeEditorCommand("replaceAll",be)},Ge.prototype.selectAllMatches=function(){if(!!this._hasMatches()){for(var le=this._decorations.getFindScope(),Y=this._findMatches(le,!1,1073741824),Ve=Y.map(function(Le){return new S.a(Le.range.startLineNumber,Le.range.startColumn,Le.range.endLineNumber,Le.range.endColumn)}),at=this._editor.getSelection(),et=0,J=Ve.length;et<J;et++){var be=Ve[et];if(be.equalsRange(at)){Ve=[at].concat(Ve.slice(0,et)).concat(Ve.slice(et+1));break}}this._editor.setSelections(Ve)}},Ge.prototype._executeEditorCommand=function(le,Y){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(le,Y),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},Ge}(),$=o("EffR"),ve=o("iJk1"),ye=o("G300"),Ue=o("zrhQ"),tt=o("MI8n"),_t=o("qj0h"),At=function(){var Ge=function(Y,Ve){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var J in et)et.hasOwnProperty(J)&&(at[J]=et[J])},Ge(Y,Ve)};return function(le,Y){Ge(le,Y);function Ve(){this.constructor=le}le.prototype=Y===null?Object.create(Y):(Ve.prototype=Y.prototype,new Ve)}}(),Yt={inputActiveOptionBorder:Ue.a.fromHex("#007ACC00"),inputActiveOptionBackground:Ue.a.fromHex("#0E639C50")},Ke=function(Ge){At(le,Ge);function le(Y){var Ve=Ge.call(this)||this;return Ve._onChange=Ve._register(new tt.a),Ve.onChange=Ve._onChange.event,Ve._onKeyDown=Ve._register(new tt.a),Ve.onKeyDown=Ve._onKeyDown.event,Ve._opts=_t.c(Y),_t.g(Ve._opts,Yt,!1),Ve._checked=Ve._opts.isChecked,Ve.domNode=document.createElement("div"),Ve.domNode.title=Ve._opts.title,Ve.domNode.className="monaco-custom-checkbox codicon "+(Ve._opts.actionClassName||"")+" "+(Ve._checked?"checked":"unchecked"),Ve.domNode.tabIndex=0,Ve.domNode.setAttribute("role","checkbox"),Ve.domNode.setAttribute("aria-checked",String(Ve._checked)),Ve.domNode.setAttribute("aria-label",Ve._opts.title),Ve.applyStyles(),Ve.onclick(Ve.domNode,function(at){Ve.checked=!Ve._checked,Ve._onChange.fire(!1),at.preventDefault()}),Ve.ignoreGesture(Ve.domNode),Ve.onkeydown(Ve.domNode,function(at){if(at.keyCode===10||at.keyCode===3){Ve.checked=!Ve._checked,Ve._onChange.fire(!0),at.preventDefault();return}Ve._onKeyDown.fire(at)}),Ve}return Object.defineProperty(le.prototype,"enabled",{get:function(){return this.domNode.getAttribute("aria-disabled")!=="true"},enumerable:!0,configurable:!0}),le.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(le.prototype,"checked",{get:function(){return this._checked},set:function(Ve){this._checked=Ve,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}),le.prototype.width=function(){return 2+2+2+16},le.prototype.style=function(Y){Y.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=Y.inputActiveOptionBorder),Y.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=Y.inputActiveOptionBackground),this.applyStyles()},le.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")},le.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},le.prototype.disable=function(){$.R(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},le}(ye.a),Ye=function(){var Ge=function(Y,Ve){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var J in et)et.hasOwnProperty(J)&&(at[J]=et[J])},Ge(Y,Ve)};return function(le,Y){Ge(le,Y);function Ve(){this.constructor=le}le.prototype=Y===null?Object.create(Y):(Ve.prototype=Y.prototype,new Ve)}}(),Xe=R.a("caseDescription","Match Case"),Ze=R.a("wordsDescription","Match Whole Word"),We=R.a("regexDescription","Use Regular Expression"),Qe=function(Ge){Ye(le,Ge);function le(Y){return Ge.call(this,{actionClassName:"codicon-case-sensitive",title:Xe+Y.appendTitle,isChecked:Y.isChecked,inputActiveOptionBorder:Y.inputActiveOptionBorder,inputActiveOptionBackground:Y.inputActiveOptionBackground})||this}return le}(Ke),Ee=function(Ge){Ye(le,Ge);function le(Y){return Ge.call(this,{actionClassName:"codicon-whole-word",title:Ze+Y.appendTitle,isChecked:Y.isChecked,inputActiveOptionBorder:Y.inputActiveOptionBorder,inputActiveOptionBackground:Y.inputActiveOptionBackground})||this}return le}(Ke),W=function(Ge){Ye(le,Ge);function le(Y){return Ge.call(this,{actionClassName:"codicon-regex",title:We+Y.appendTitle,isChecked:Y.isChecked,inputActiveOptionBorder:Y.inputActiveOptionBorder,inputActiveOptionBackground:Y.inputActiveOptionBackground})||this}return le}(Ke),ee=function(){var Ge=function(Y,Ve){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var J in et)et.hasOwnProperty(J)&&(at[J]=et[J])},Ge(Y,Ve)};return function(le,Y){Ge(le,Y);function Ve(){this.constructor=le}le.prototype=Y===null?Object.create(Y):(Ve.prototype=Y.prototype,new Ve)}}(),Ae=function(Ge){ee(le,Ge);function le(Y,Ve,at,et){var J=Ge.call(this)||this;J._hideSoon=J._register(new re.d(function(){return J._hide()},2e3)),J._isVisible=!1,J._editor=Y,J._state=Ve,J._keybindingService=at,J._domNode=document.createElement("div"),J._domNode.className="findOptionsWidget",J._domNode.style.display="none",J._domNode.style.top="10px",J._domNode.setAttribute("role","presentation"),J._domNode.setAttribute("aria-hidden","true");var be=et.getTheme().getColor(T.X),Le=et.getTheme().getColor(T.W);return J.caseSensitive=J._register(new Qe({appendTitle:J._keybindingLabelFor(de.ToggleCaseSensitiveCommand),isChecked:J._state.matchCase,inputActiveOptionBorder:be,inputActiveOptionBackground:Le})),J._domNode.appendChild(J.caseSensitive.domNode),J._register(J.caseSensitive.onChange(function(){J._state.change({matchCase:J.caseSensitive.checked},!1)})),J.wholeWords=J._register(new Ee({appendTitle:J._keybindingLabelFor(de.ToggleWholeWordCommand),isChecked:J._state.wholeWord,inputActiveOptionBorder:be,inputActiveOptionBackground:Le})),J._domNode.appendChild(J.wholeWords.domNode),J._register(J.wholeWords.onChange(function(){J._state.change({wholeWord:J.wholeWords.checked},!1)})),J.regex=J._register(new W({appendTitle:J._keybindingLabelFor(de.ToggleRegexCommand),isChecked:J._state.isRegex,inputActiveOptionBorder:be,inputActiveOptionBackground:Le})),J._domNode.appendChild(J.regex.domNode),J._register(J.regex.onChange(function(){J._state.change({isRegex:J.regex.checked},!1)})),J._editor.addOverlayWidget(J),J._register(J._state.onFindReplaceStateChange(function(it){var Je=!1;it.isRegex&&(J.regex.checked=J._state.isRegex,Je=!0),it.wholeWord&&(J.wholeWords.checked=J._state.wholeWord,Je=!0),it.matchCase&&(J.caseSensitive.checked=J._state.matchCase,Je=!0),!J._state.isRevealed&&Je&&J._revealTemporarily()})),J._register($.j(J._domNode,function(it){return J._onMouseOut()})),J._register($.i(J._domNode,"mouseover",function(it){return J._onMouseOver()})),J._applyTheme(et.getTheme()),J._register(et.onThemeChange(J._applyTheme.bind(J))),J}return le.prototype._keybindingLabelFor=function(Y){var Ve=this._keybindingService.lookupKeybinding(Y);return Ve?" ("+Ve.getLabel()+")":""},le.prototype.dispose=function(){this._editor.removeOverlayWidget(this),Ge.prototype.dispose.call(this)},le.prototype.getId=function(){return le.ID},le.prototype.getDomNode=function(){return this._domNode},le.prototype.getPosition=function(){return{preference:0}},le.prototype.highlightFindOptions=function(){this._revealTemporarily()},le.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},le.prototype._onMouseOut=function(){this._hideSoon.schedule()},le.prototype._onMouseOver=function(){this._hideSoon.cancel()},le.prototype._show=function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")},le.prototype._hide=function(){!this._isVisible||(this._isVisible=!1,this._domNode.style.display="none")},le.prototype._applyTheme=function(Y){var Ve={inputActiveOptionBorder:Y.getColor(T.X),inputActiveOptionBackground:Y.getColor(T.W)};this.caseSensitive.style(Ve),this.wholeWords.style(Ve),this.regex.style(Ve)},le.ID="editor.contrib.findOptionsWidget",le}(ye.a);Object(te.e)(function(Ge,le){var Y=Ge.getColor(T.P);Y&&le.addRule(".monaco-editor .findOptionsWidget { background-color: "+Y+"; }");var Ve=Ge.getColor(T.R);Ve&&le.addRule(".monaco-editor .findOptionsWidget { color: "+Ve+"; }");var at=Ge.getColor(T.fc);at&&le.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+at+"; }");var et=Ge.getColor(T.e);et&&le.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+et+"; }")});var me=function(){var Ge=function(Y,Ve){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var J in et)et.hasOwnProperty(J)&&(at[J]=et[J])},Ge(Y,Ve)};return function(le,Y){Ge(le,Y);function Ve(){this.constructor=le}le.prototype=Y===null?Object.create(Y):(Ve.prototype=Y.prototype,new Ve)}}();function Me(Ge,le){return Ge===1?!0:Ge===2?!1:le}var Re=function(Ge){me(le,Ge);function le(){var Y=Ge.call(this)||this;return Y._onFindReplaceStateChange=Y._register(new tt.a),Y.onFindReplaceStateChange=Y._onFindReplaceStateChange.event,Y._searchString="",Y._replaceString="",Y._isRevealed=!1,Y._isReplaceRevealed=!1,Y._isRegex=!1,Y._isRegexOverride=0,Y._wholeWord=!1,Y._wholeWordOverride=0,Y._matchCase=!1,Y._matchCaseOverride=0,Y._preserveCase=!1,Y._preserveCaseOverride=0,Y._searchScope=null,Y._matchesPosition=0,Y._matchesCount=0,Y._currentMatch=null,Y}return Object.defineProperty(le.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"isRegex",{get:function(){return Me(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"wholeWord",{get:function(){return Me(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"matchCase",{get:function(){return Me(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"preserveCase",{get:function(){return Me(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),le.prototype.changeMatchInfo=function(Y,Ve,at){var et={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},J=!1;Ve===0&&(Y=0),Y>Ve&&(Y=Ve),this._matchesPosition!==Y&&(this._matchesPosition=Y,et.matchesPosition=!0,J=!0),this._matchesCount!==Ve&&(this._matchesCount=Ve,et.matchesCount=!0,J=!0),typeof at!="undefined"&&(x.a.equalsRange(this._currentMatch,at)||(this._currentMatch=at,et.currentMatch=!0,J=!0)),J&&this._onFindReplaceStateChange.fire(et)},le.prototype.change=function(Y,Ve,at){at===void 0&&(at=!0);var et={moveCursor:Ve,updateHistory:at,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},J=!1,be=this.isRegex,Le=this.wholeWord,it=this.matchCase,Je=this.preserveCase;typeof Y.searchString!="undefined"&&this._searchString!==Y.searchString&&(this._searchString=Y.searchString,et.searchString=!0,J=!0),typeof Y.replaceString!="undefined"&&this._replaceString!==Y.replaceString&&(this._replaceString=Y.replaceString,et.replaceString=!0,J=!0),typeof Y.isRevealed!="undefined"&&this._isRevealed!==Y.isRevealed&&(this._isRevealed=Y.isRevealed,et.isRevealed=!0,J=!0),typeof Y.isReplaceRevealed!="undefined"&&this._isReplaceRevealed!==Y.isReplaceRevealed&&(this._isReplaceRevealed=Y.isReplaceRevealed,et.isReplaceRevealed=!0,J=!0),typeof Y.isRegex!="undefined"&&(this._isRegex=Y.isRegex),typeof Y.wholeWord!="undefined"&&(this._wholeWord=Y.wholeWord),typeof Y.matchCase!="undefined"&&(this._matchCase=Y.matchCase),typeof Y.preserveCase!="undefined"&&(this._preserveCase=Y.preserveCase),typeof Y.searchScope!="undefined"&&(x.a.equalsRange(this._searchScope,Y.searchScope)||(this._searchScope=Y.searchScope,et.searchScope=!0,J=!0)),this._isRegexOverride=typeof Y.isRegexOverride!="undefined"?Y.isRegexOverride:0,this._wholeWordOverride=typeof Y.wholeWordOverride!="undefined"?Y.wholeWordOverride:0,this._matchCaseOverride=typeof Y.matchCaseOverride!="undefined"?Y.matchCaseOverride:0,this._preserveCaseOverride=typeof Y.preserveCaseOverride!="undefined"?Y.preserveCaseOverride:0,be!==this.isRegex&&(J=!0,et.isRegex=!0),Le!==this.wholeWord&&(J=!0,et.wholeWord=!0),it!==this.matchCase&&(J=!0,et.matchCase=!0),Je!==this.preserveCase&&(J=!0,et.preserveCase=!0),J&&this._onFindReplaceStateChange.fire(et)},le}(ne.a),ge=o("AbCa"),nt=o("OBOq"),St=o("cMOf"),xt=o("/cxE"),Mt=o("MNsG"),zt=o("yqFB"),Gt=o("i/Rh"),on=o("D3Dy"),On=o("Md8J"),yn=o("WqXY"),Mn=o("JYp7"),Ft=function(){function Ge(le,Y){le===void 0&&(le=[]),Y===void 0&&(Y=10),this._initialize(le),this._limit=Y,this._onChange()}return Ge.prototype.add=function(le){this._history.delete(le),this._history.add(le),this._onChange()},Ge.prototype.next=function(){return this._navigator.next()},Ge.prototype.previous=function(){return this._navigator.previous()},Ge.prototype.current=function(){return this._navigator.current()},Ge.prototype.parent=function(){return null},Ge.prototype.first=function(){return this._navigator.first()},Ge.prototype.last=function(){return this._navigator.last()},Ge.prototype.has=function(le){return this._history.has(le)},Ge.prototype._onChange=function(){this._reduceToLimit();var le=this._elements;this._navigator=new Mn.a(le,0,le.length,le.length)},Ge.prototype._reduceToLimit=function(){var le=this._elements;le.length>this._limit&&this._initialize(le.slice(le.length-this._limit))},Ge.prototype._initialize=function(le){this._history=new Set;for(var Y=0,Ve=le;Y<Ve.length;Y++){var at=Ve[Y];this._history.add(at)}},Object.defineProperty(Ge.prototype,"_elements",{get:function(){var Y=[];return this._history.forEach(function(Ve){return Y.push(Ve)}),Y},enumerable:!0,configurable:!0}),Ge}(),gt=o("GJhM"),pt=o("4y0V"),Dt=function(){var Ge=function(Y,Ve){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var J in et)et.hasOwnProperty(J)&&(at[J]=et[J])},Ge(Y,Ve)};return function(le,Y){Ge(le,Y);function Ve(){this.constructor=le}le.prototype=Y===null?Object.create(Y):(Ve.prototype=Y.prototype,new Ve)}}(),Ot=$.a,Ht={inputBackground:Ue.a.fromHex("#3C3C3C"),inputForeground:Ue.a.fromHex("#CCCCCC"),inputValidationInfoBorder:Ue.a.fromHex("#55AAFF"),inputValidationInfoBackground:Ue.a.fromHex("#063B49"),inputValidationWarningBorder:Ue.a.fromHex("#B89500"),inputValidationWarningBackground:Ue.a.fromHex("#352A05"),inputValidationErrorBorder:Ue.a.fromHex("#BE1100"),inputValidationErrorBackground:Ue.a.fromHex("#5A1D1D")},Jt=function(Ge){Dt(le,Ge);function le(Y,Ve,at){var et=Ge.call(this)||this;et.state="idle",et.maxHeight=Number.POSITIVE_INFINITY,et._onDidChange=et._register(new tt.a),et.onDidChange=et._onDidChange.event,et._onDidHeightChange=et._register(new tt.a),et.onDidHeightChange=et._onDidHeightChange.event,et.contextViewProvider=Ve,et.options=at||Object.create(null),Object(_t.g)(et.options,Ht,!1),et.message=null,et.placeholder=et.options.placeholder||"",et.ariaLabel=et.options.ariaLabel||"",et.inputBackground=et.options.inputBackground,et.inputForeground=et.options.inputForeground,et.inputBorder=et.options.inputBorder,et.inputValidationInfoBorder=et.options.inputValidationInfoBorder,et.inputValidationInfoBackground=et.options.inputValidationInfoBackground,et.inputValidationInfoForeground=et.options.inputValidationInfoForeground,et.inputValidationWarningBorder=et.options.inputValidationWarningBorder,et.inputValidationWarningBackground=et.options.inputValidationWarningBackground,et.inputValidationWarningForeground=et.options.inputValidationWarningForeground,et.inputValidationErrorBorder=et.options.inputValidationErrorBorder,et.inputValidationErrorBackground=et.options.inputValidationErrorBackground,et.inputValidationErrorForeground=et.options.inputValidationErrorForeground,et.options.validationOptions&&(et.validation=et.options.validationOptions.validation),et.element=$.p(Y,Ot(".monaco-inputbox.idle"));var J=et.options.flexibleHeight?"textarea":"input",be=$.p(et.element,Ot(".wrapper"));if(et.input=$.p(be,Ot(J+".input.empty")),et.input.setAttribute("autocorrect","off"),et.input.setAttribute("autocapitalize","off"),et.input.setAttribute("spellcheck","false"),et.onfocus(et.input,function(){return $.e(et.element,"synthetic-focus")}),et.onblur(et.input,function(){return $.O(et.element,"synthetic-focus")}),et.options.flexibleHeight){et.maxHeight=typeof et.options.flexibleMaxHeight=="number"?et.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,et.mirror=$.p(be,Ot("div.mirror")),et.mirror.innerHTML="&#160;",et.scrollableElement=new gt.b(et.element,{vertical:1}),et.options.flexibleWidth&&(et.input.setAttribute("wrap","off"),et.mirror.style.whiteSpace="pre",et.mirror.style.wordWrap="initial"),$.p(Y,et.scrollableElement.getDomNode()),et._register(et.scrollableElement),et._register(et.scrollableElement.onScroll(function(it){return et.input.scrollTop=it.scrollTop}));var Le=tt.b.filter(Object(pt.a)(document,"selectionchange"),function(){var it=document.getSelection();return(it==null?void 0:it.anchorNode)===be});et._register(Le(et.updateScrollDimensions,et)),et._register(et.onDidHeightChange(et.updateScrollDimensions,et))}else et.input.type=et.options.type||"text",et.input.setAttribute("wrap","off");return et.ariaLabel&&et.input.setAttribute("aria-label",et.ariaLabel),et.placeholder&&et.setPlaceHolder(et.placeholder),et.oninput(et.input,function(){return et.onValueChange()}),et.onblur(et.input,function(){return et.onBlur()}),et.onfocus(et.input,function(){return et.onFocus()}),et.placeholder&&on.i&&et.onclick(et.input,function(it){$.b.stop(it,!0),et.input.focus()}),et.ignoreGesture(et.input),setTimeout(function(){return et.updateMirror()},0),et.options.actions&&(et.actionbar=et._register(new yn.a(et.element)),et.actionbar.push(et.options.actions,{icon:!0,label:!1})),et.applyStyles(),et}return le.prototype.onBlur=function(){this._hideMessage()},le.prototype.onFocus=function(){this._showMessage()},le.prototype.setPlaceHolder=function(Y){this.placeholder=Y,this.input.setAttribute("placeholder",Y),this.input.title=Y},le.prototype.setAriaLabel=function(Y){this.ariaLabel=Y,Y?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")},Object.defineProperty(le.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"value",{get:function(){return this.input.value},set:function(Ve){this.input.value!==Ve&&(this.input.value=Ve,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"height",{get:function(){return typeof this.cachedHeight=="number"?this.cachedHeight:$.F(this.element)},enumerable:!0,configurable:!0}),le.prototype.focus=function(){this.input.focus()},le.prototype.blur=function(){this.input.blur()},le.prototype.hasFocus=function(){return document.activeElement===this.input},le.prototype.select=function(Y){Y===void 0&&(Y=null),this.input.select(),Y&&this.input.setSelectionRange(Y.start,Y.end)},le.prototype.enable=function(){this.input.removeAttribute("disabled")},le.prototype.disable=function(){this.blur(),this.input.disabled=!0,this._hideMessage()},Object.defineProperty(le.prototype,"width",{get:function(){return $.G(this.input)},set:function(Ve){if(this.options.flexibleHeight&&this.options.flexibleWidth){var at=0;if(this.mirror){var et=parseFloat(this.mirror.style.paddingLeft||"")||0,J=parseFloat(this.mirror.style.paddingRight||"")||0;at=et+J}this.input.style.width=Ve-at+"px"}else this.input.style.width=Ve+"px";this.mirror&&(this.mirror.style.width=Ve+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"paddingRight",{set:function(Ve){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+Ve+"px)":this.input.style.paddingRight=Ve+"px",this.mirror&&(this.mirror.style.paddingRight=Ve+"px")},enumerable:!0,configurable:!0}),le.prototype.updateScrollDimensions=function(){if(!(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)){var Y=this.cachedContentHeight,Ve=this.cachedHeight,at=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:Y,height:Ve}),this.scrollableElement.setScrollPosition({scrollTop:at})}},le.prototype.showMessage=function(Y,Ve){this.message=Y,$.O(this.element,"idle"),$.O(this.element,"info"),$.O(this.element,"warning"),$.O(this.element,"error"),$.e(this.element,this.classForType(Y.type));var at=this.stylesForType(this.message.type);this.element.style.border=at.border?"1px solid "+at.border:"";var et;Y.type===3?et=R.a("alertErrorMessage","Error: {0}",Y.content):Y.type===2?et=R.a("alertWarningMessage","Warning: {0}",Y.content):et=R.a("alertInfoMessage","Info: {0}",Y.content),nt.a(et),(this.hasFocus()||Ve)&&this._showMessage()},le.prototype.hideMessage=function(){this.message=null,$.O(this.element,"info"),$.O(this.element,"warning"),$.O(this.element,"error"),$.e(this.element,"idle"),this._hideMessage(),this.applyStyles()},le.prototype.validate=function(){var Y=null;return this.validation&&(Y=this.validation(this.value),Y?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(Y)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!Y},le.prototype.stylesForType=function(Y){switch(Y){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}}},le.prototype.classForType=function(Y){switch(Y){case 1:return"info";case 2:return"warning";default:return"error"}},le.prototype._showMessage=function(){var Y=this;if(!(!this.contextViewProvider||!this.message)){var Ve,at=function(){return Ve.style.width=$.G(Y.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return Y.element},anchorAlignment:1,render:function(J){if(!Y.message)return null;Ve=$.p(J,Ot(".monaco-inputbox-container")),at();var be={inline:!0,className:"monaco-inputbox-message"},Le=Y.message.formatContent?Object(On.b)(Y.message.content,be):Object(On.c)(Y.message.content,be);$.e(Le,Y.classForType(Y.message.type));var it=Y.stylesForType(Y.message.type);return Le.style.backgroundColor=it.background?it.background.toString():"",Le.style.color=it.foreground?it.foreground.toString():"",Le.style.border=it.border?"1px solid "+it.border:"",$.p(Ve,Le),null},onHide:function(){Y.state="closed"},layout:at}),this.state="open"}},le.prototype._hideMessage=function(){!this.contextViewProvider||(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")},le.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),$.X(this.input,"empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()},le.prototype.updateMirror=function(){if(!!this.mirror){var Y=this.value,Ve=Y.charCodeAt(Y.length-1),at=Ve===10?" ":"",et=Y+at;et?this.mirror.textContent=Y+at:this.mirror.innerHTML="&#160;",this.layout()}},le.prototype.style=function(Y){this.inputBackground=Y.inputBackground,this.inputForeground=Y.inputForeground,this.inputBorder=Y.inputBorder,this.inputValidationInfoBackground=Y.inputValidationInfoBackground,this.inputValidationInfoForeground=Y.inputValidationInfoForeground,this.inputValidationInfoBorder=Y.inputValidationInfoBorder,this.inputValidationWarningBackground=Y.inputValidationWarningBackground,this.inputValidationWarningForeground=Y.inputValidationWarningForeground,this.inputValidationWarningBorder=Y.inputValidationWarningBorder,this.inputValidationErrorBackground=Y.inputValidationErrorBackground,this.inputValidationErrorForeground=Y.inputValidationErrorForeground,this.inputValidationErrorBorder=Y.inputValidationErrorBorder,this.applyStyles()},le.prototype.applyStyles=function(){var Y=this.inputBackground?this.inputBackground.toString():"",Ve=this.inputForeground?this.inputForeground.toString():"",at=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=Y,this.element.style.color=Ve,this.input.style.backgroundColor=Y,this.input.style.color=Ve,this.element.style.borderWidth=at?"1px":"",this.element.style.borderStyle=at?"solid":"",this.element.style.borderColor=at},le.prototype.layout=function(){if(!!this.mirror){var Y=this.cachedContentHeight;this.cachedContentHeight=$.F(this.mirror),Y!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}},le.prototype.insertAtCursor=function(Y){var Ve=this.inputElement,at=Ve.selectionStart,et=Ve.selectionEnd,J=Ve.value;at!==null&&et!==null&&(this.value=J.substr(0,at)+Y+J.substr(et),Ve.setSelectionRange(at+1,at+1),this.layout())},le.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),Ge.prototype.dispose.call(this)},le}(ye.a),nn=function(Ge){Dt(le,Ge);function le(Y,Ve,at){var et=Ge.call(this,Y,Ve,at)||this;return et.history=new Ft(at.history,100),et}return le.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},le.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var Y=this.getNextValue();Y&&(Y=Y===this.value?this.getNextValue():Y),Y&&(this.value=Y,nt.c(this.value))},le.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var Y=this.getPreviousValue();Y&&(Y=Y===this.value?this.getPreviousValue():Y),Y&&(this.value=Y,nt.c(this.value))},le.prototype.getCurrentValue=function(){var Y=this.history.current();return Y||(Y=this.history.last(),this.history.next()),Y},le.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},le.prototype.getNextValue=function(){return this.history.next()||this.history.last()},le}(Jt),sn=function(){var Ge=function(Y,Ve){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var J in et)et.hasOwnProperty(J)&&(at[J]=et[J])},Ge(Y,Ve)};return function(le,Y){Ge(le,Y);function Ve(){this.constructor=le}le.prototype=Y===null?Object.create(Y):(Ve.prototype=Y.prototype,new Ve)}}(),un=R.a("defaultLabel","input"),Sn=function(Ge){sn(le,Ge);function le(Y,Ve,at,et){var J=Ge.call(this)||this;J._showOptionButtons=at,J.fixFocusOnOptionClickEnabled=!0,J._onDidOptionChange=J._register(new tt.a),J.onDidOptionChange=J._onDidOptionChange.event,J._onKeyDown=J._register(new tt.a),J.onKeyDown=J._onKeyDown.event,J._onMouseDown=J._register(new tt.a),J.onMouseDown=J._onMouseDown.event,J._onInput=J._register(new tt.a),J._onKeyUp=J._register(new tt.a),J._onCaseSensitiveKeyDown=J._register(new tt.a),J.onCaseSensitiveKeyDown=J._onCaseSensitiveKeyDown.event,J._onRegexKeyDown=J._register(new tt.a),J.onRegexKeyDown=J._onRegexKeyDown.event,J._lastHighlightFindOptions=0,J.contextViewProvider=Ve,J.placeholder=et.placeholder||"",J.validation=et.validation,J.label=et.label||un,J.inputActiveOptionBorder=et.inputActiveOptionBorder,J.inputActiveOptionBackground=et.inputActiveOptionBackground,J.inputBackground=et.inputBackground,J.inputForeground=et.inputForeground,J.inputBorder=et.inputBorder,J.inputValidationInfoBorder=et.inputValidationInfoBorder,J.inputValidationInfoBackground=et.inputValidationInfoBackground,J.inputValidationInfoForeground=et.inputValidationInfoForeground,J.inputValidationWarningBorder=et.inputValidationWarningBorder,J.inputValidationWarningBackground=et.inputValidationWarningBackground,J.inputValidationWarningForeground=et.inputValidationWarningForeground,J.inputValidationErrorBorder=et.inputValidationErrorBorder,J.inputValidationErrorBackground=et.inputValidationErrorBackground,J.inputValidationErrorForeground=et.inputValidationErrorForeground;var be=et.appendCaseSensitiveLabel||"",Le=et.appendWholeWordsLabel||"",it=et.appendRegexLabel||"",Je=et.history||[],Be=!!et.flexibleHeight,bt=!!et.flexibleWidth,Lt=et.flexibleMaxHeight;J.domNode=document.createElement("div"),$.e(J.domNode,"monaco-findInput"),J.inputBox=J._register(new nn(J.domNode,J.contextViewProvider,{placeholder:J.placeholder||"",ariaLabel:J.label||"",validationOptions:{validation:J.validation},inputBackground:J.inputBackground,inputForeground:J.inputForeground,inputBorder:J.inputBorder,inputValidationInfoBackground:J.inputValidationInfoBackground,inputValidationInfoForeground:J.inputValidationInfoForeground,inputValidationInfoBorder:J.inputValidationInfoBorder,inputValidationWarningBackground:J.inputValidationWarningBackground,inputValidationWarningForeground:J.inputValidationWarningForeground,inputValidationWarningBorder:J.inputValidationWarningBorder,inputValidationErrorBackground:J.inputValidationErrorBackground,inputValidationErrorForeground:J.inputValidationErrorForeground,inputValidationErrorBorder:J.inputValidationErrorBorder,history:Je,flexibleHeight:Be,flexibleWidth:bt,flexibleMaxHeight:Lt})),J.regex=J._register(new W({appendTitle:it,isChecked:!1,inputActiveOptionBorder:J.inputActiveOptionBorder,inputActiveOptionBackground:J.inputActiveOptionBackground})),J._register(J.regex.onChange(function(Bt){J._onDidOptionChange.fire(Bt),!Bt&&J.fixFocusOnOptionClickEnabled&&J.inputBox.focus(),J.validate()})),J._register(J.regex.onKeyDown(function(Bt){J._onRegexKeyDown.fire(Bt)})),J.wholeWords=J._register(new Ee({appendTitle:Le,isChecked:!1,inputActiveOptionBorder:J.inputActiveOptionBorder,inputActiveOptionBackground:J.inputActiveOptionBackground})),J._register(J.wholeWords.onChange(function(Bt){J._onDidOptionChange.fire(Bt),!Bt&&J.fixFocusOnOptionClickEnabled&&J.inputBox.focus(),J.validate()})),J.caseSensitive=J._register(new Qe({appendTitle:be,isChecked:!1,inputActiveOptionBorder:J.inputActiveOptionBorder,inputActiveOptionBackground:J.inputActiveOptionBackground})),J._register(J.caseSensitive.onChange(function(Bt){J._onDidOptionChange.fire(Bt),!Bt&&J.fixFocusOnOptionClickEnabled&&J.inputBox.focus(),J.validate()})),J._register(J.caseSensitive.onKeyDown(function(Bt){J._onCaseSensitiveKeyDown.fire(Bt)})),J._showOptionButtons&&(J.inputBox.paddingRight=J.caseSensitive.width()+J.wholeWords.width()+J.regex.width());var $t=[J.caseSensitive.domNode,J.wholeWords.domNode,J.regex.domNode];J.onkeydown(J.domNode,function(Bt){if(Bt.equals(15)||Bt.equals(17)||Bt.equals(9)){var fn=$t.indexOf(document.activeElement);if(fn>=0){var Cn=-1;Bt.equals(17)?Cn=(fn+1)%$t.length:Bt.equals(15)&&(fn===0?Cn=$t.length-1:Cn=fn-1),Bt.equals(9)?$t[fn].blur():Cn>=0&&$t[Cn].focus(),$.b.stop(Bt,!0)}}});var Tt=document.createElement("div");return Tt.className="controls",Tt.style.display=J._showOptionButtons?"block":"none",Tt.appendChild(J.caseSensitive.domNode),Tt.appendChild(J.wholeWords.domNode),Tt.appendChild(J.regex.domNode),J.domNode.appendChild(Tt),Y&&Y.appendChild(J.domNode),J.onkeydown(J.inputBox.inputElement,function(Bt){return J._onKeyDown.fire(Bt)}),J.onkeyup(J.inputBox.inputElement,function(Bt){return J._onKeyUp.fire(Bt)}),J.oninput(J.inputBox.inputElement,function(Bt){return J._onInput.fire()}),J.onmousedown(J.inputBox.inputElement,function(Bt){return J._onMouseDown.fire(Bt)}),J}return le.prototype.enable=function(){$.O(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},le.prototype.disable=function(){$.e(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},le.prototype.setFocusInputOnOptionClick=function(Y){this.fixFocusOnOptionClickEnabled=Y},le.prototype.setEnabled=function(Y){Y?this.enable():this.disable()},le.prototype.getValue=function(){return this.inputBox.value},le.prototype.setValue=function(Y){this.inputBox.value!==Y&&(this.inputBox.value=Y)},le.prototype.style=function(Y){this.inputActiveOptionBorder=Y.inputActiveOptionBorder,this.inputActiveOptionBackground=Y.inputActiveOptionBackground,this.inputBackground=Y.inputBackground,this.inputForeground=Y.inputForeground,this.inputBorder=Y.inputBorder,this.inputValidationInfoBackground=Y.inputValidationInfoBackground,this.inputValidationInfoForeground=Y.inputValidationInfoForeground,this.inputValidationInfoBorder=Y.inputValidationInfoBorder,this.inputValidationWarningBackground=Y.inputValidationWarningBackground,this.inputValidationWarningForeground=Y.inputValidationWarningForeground,this.inputValidationWarningBorder=Y.inputValidationWarningBorder,this.inputValidationErrorBackground=Y.inputValidationErrorBackground,this.inputValidationErrorForeground=Y.inputValidationErrorForeground,this.inputValidationErrorBorder=Y.inputValidationErrorBorder,this.applyStyles()},le.prototype.applyStyles=function(){if(this.domNode){var Y={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(Y),this.wholeWords.style(Y),this.caseSensitive.style(Y);var Ve={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(Ve)}},le.prototype.select=function(){this.inputBox.select()},le.prototype.focus=function(){this.inputBox.focus()},le.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},le.prototype.setCaseSensitive=function(Y){this.caseSensitive.checked=Y},le.prototype.getWholeWords=function(){return this.wholeWords.checked},le.prototype.setWholeWords=function(Y){this.wholeWords.checked=Y},le.prototype.getRegex=function(){return this.regex.checked},le.prototype.setRegex=function(Y){this.regex.checked=Y,this.validate()},le.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},le.prototype.highlightFindOptions=function(){$.O(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,$.e(this.domNode,"highlight-"+this._lastHighlightFindOptions)},le.prototype.validate=function(){this.inputBox.validate()},le.prototype.clearMessage=function(){this.inputBox.hideMessage()},le}(ye.a),Ln=o("nrhi"),An=function(){var Ge=function(Y,Ve){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var J in et)et.hasOwnProperty(J)&&(at[J]=et[J])},Ge(Y,Ve)};return function(le,Y){Ge(le,Y);function Ve(){this.constructor=le}le.prototype=Y===null?Object.create(Y):(Ve.prototype=Y.prototype,new Ve)}}(),Gn=R.a("defaultLabel","input"),Jn=R.a("label.preserveCaseCheckbox","Preserve Case"),$n=function(Ge){An(le,Ge);function le(Y){return Ge.call(this,{actionClassName:"codicon-preserve-case",title:Jn+Y.appendTitle,isChecked:Y.isChecked,inputActiveOptionBorder:Y.inputActiveOptionBorder,inputActiveOptionBackground:Y.inputActiveOptionBackground})||this}return le}(Ke),pi=function(Ge){An(le,Ge);function le(Y,Ve,at,et){var J=Ge.call(this)||this;J._showOptionButtons=at,J.fixFocusOnOptionClickEnabled=!0,J.cachedOptionsWidth=0,J._onDidOptionChange=J._register(new tt.a),J.onDidOptionChange=J._onDidOptionChange.event,J._onKeyDown=J._register(new tt.a),J.onKeyDown=J._onKeyDown.event,J._onMouseDown=J._register(new tt.a),J._onInput=J._register(new tt.a),J._onKeyUp=J._register(new tt.a),J._onPreserveCaseKeyDown=J._register(new tt.a),J.onPreserveCaseKeyDown=J._onPreserveCaseKeyDown.event,J.contextViewProvider=Ve,J.placeholder=et.placeholder||"",J.validation=et.validation,J.label=et.label||Gn,J.inputActiveOptionBorder=et.inputActiveOptionBorder,J.inputActiveOptionBackground=et.inputActiveOptionBackground,J.inputBackground=et.inputBackground,J.inputForeground=et.inputForeground,J.inputBorder=et.inputBorder,J.inputValidationInfoBorder=et.inputValidationInfoBorder,J.inputValidationInfoBackground=et.inputValidationInfoBackground,J.inputValidationInfoForeground=et.inputValidationInfoForeground,J.inputValidationWarningBorder=et.inputValidationWarningBorder,J.inputValidationWarningBackground=et.inputValidationWarningBackground,J.inputValidationWarningForeground=et.inputValidationWarningForeground,J.inputValidationErrorBorder=et.inputValidationErrorBorder,J.inputValidationErrorBackground=et.inputValidationErrorBackground,J.inputValidationErrorForeground=et.inputValidationErrorForeground;var be=et.history||[],Le=!!et.flexibleHeight,it=!!et.flexibleWidth,Je=et.flexibleMaxHeight;J.domNode=document.createElement("div"),$.e(J.domNode,"monaco-findInput"),J.inputBox=J._register(new nn(J.domNode,J.contextViewProvider,{ariaLabel:J.label||"",placeholder:J.placeholder||"",validationOptions:{validation:J.validation},inputBackground:J.inputBackground,inputForeground:J.inputForeground,inputBorder:J.inputBorder,inputValidationInfoBackground:J.inputValidationInfoBackground,inputValidationInfoForeground:J.inputValidationInfoForeground,inputValidationInfoBorder:J.inputValidationInfoBorder,inputValidationWarningBackground:J.inputValidationWarningBackground,inputValidationWarningForeground:J.inputValidationWarningForeground,inputValidationWarningBorder:J.inputValidationWarningBorder,inputValidationErrorBackground:J.inputValidationErrorBackground,inputValidationErrorForeground:J.inputValidationErrorForeground,inputValidationErrorBorder:J.inputValidationErrorBorder,history:be,flexibleHeight:Le,flexibleWidth:it,flexibleMaxHeight:Je})),J.preserveCase=J._register(new $n({appendTitle:"",isChecked:!1,inputActiveOptionBorder:J.inputActiveOptionBorder,inputActiveOptionBackground:J.inputActiveOptionBackground})),J._register(J.preserveCase.onChange(function(Lt){J._onDidOptionChange.fire(Lt),!Lt&&J.fixFocusOnOptionClickEnabled&&J.inputBox.focus(),J.validate()})),J._register(J.preserveCase.onKeyDown(function(Lt){J._onPreserveCaseKeyDown.fire(Lt)})),J._showOptionButtons?J.cachedOptionsWidth=J.preserveCase.width():J.cachedOptionsWidth=0;var Be=[J.preserveCase.domNode];J.onkeydown(J.domNode,function(Lt){if(Lt.equals(15)||Lt.equals(17)||Lt.equals(9)){var $t=Be.indexOf(document.activeElement);if($t>=0){var Tt=-1;Lt.equals(17)?Tt=($t+1)%Be.length:Lt.equals(15)&&($t===0?Tt=Be.length-1:Tt=$t-1),Lt.equals(9)?Be[$t].blur():Tt>=0&&Be[Tt].focus(),$.b.stop(Lt,!0)}}});var bt=document.createElement("div");return bt.className="controls",bt.style.display=J._showOptionButtons?"block":"none",bt.appendChild(J.preserveCase.domNode),J.domNode.appendChild(bt),Y&&Y.appendChild(J.domNode),J.onkeydown(J.inputBox.inputElement,function(Lt){return J._onKeyDown.fire(Lt)}),J.onkeyup(J.inputBox.inputElement,function(Lt){return J._onKeyUp.fire(Lt)}),J.oninput(J.inputBox.inputElement,function(Lt){return J._onInput.fire()}),J.onmousedown(J.inputBox.inputElement,function(Lt){return J._onMouseDown.fire(Lt)}),J}return le.prototype.enable=function(){$.O(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},le.prototype.disable=function(){$.e(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},le.prototype.setEnabled=function(Y){Y?this.enable():this.disable()},le.prototype.style=function(Y){this.inputActiveOptionBorder=Y.inputActiveOptionBorder,this.inputActiveOptionBackground=Y.inputActiveOptionBackground,this.inputBackground=Y.inputBackground,this.inputForeground=Y.inputForeground,this.inputBorder=Y.inputBorder,this.inputValidationInfoBackground=Y.inputValidationInfoBackground,this.inputValidationInfoForeground=Y.inputValidationInfoForeground,this.inputValidationInfoBorder=Y.inputValidationInfoBorder,this.inputValidationWarningBackground=Y.inputValidationWarningBackground,this.inputValidationWarningForeground=Y.inputValidationWarningForeground,this.inputValidationWarningBorder=Y.inputValidationWarningBorder,this.inputValidationErrorBackground=Y.inputValidationErrorBackground,this.inputValidationErrorForeground=Y.inputValidationErrorForeground,this.inputValidationErrorBorder=Y.inputValidationErrorBorder,this.applyStyles()},le.prototype.applyStyles=function(){if(this.domNode){var Y={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(Y);var Ve={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(Ve)}},le.prototype.select=function(){this.inputBox.select()},le.prototype.focus=function(){this.inputBox.focus()},le.prototype.getPreserveCase=function(){return this.preserveCase.checked},le.prototype.setPreserveCase=function(Y){this.preserveCase.checked=Y},le.prototype.focusOnPreserve=function(){this.preserveCase.focus()},le.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(le.prototype,"width",{set:function(Ve){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=Ve,this.domNode.style.width=Ve+"px"},enumerable:!0,configurable:!0}),le.prototype.dispose=function(){Ge.prototype.dispose.call(this)},le}(ye.a),Kn=function(){var Ge=function(Y,Ve){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var J in et)et.hasOwnProperty(J)&&(at[J]=et[J])},Ge(Y,Ve)};return function(le,Y){Ge(le,Y);function Ve(){this.constructor=le}le.prototype=Y===null?Object.create(Y):(Ve.prototype=Y.prototype,new Ve)}}(),yi=function(Ge,le,Y,Ve){var at=arguments.length,et=at<3?le:Ve===null?Ve=Object.getOwnPropertyDescriptor(le,Y):Ve,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")et=Reflect.decorate(Ge,le,Y,Ve);else for(var be=Ge.length-1;be>=0;be--)(J=Ge[be])&&(et=(at<3?J(et):at>3?J(le,Y,et):J(le,Y))||et);return at>3&&et&&Object.defineProperty(le,Y,et),et},vi=function(Ge,le){return function(Y,Ve){le(Y,Ve,Ge)}},mt="historyNavigationWidget",Nt="historyNavigationEnabled";function Ut(Ge,le,Y){new Se.d(Y,le).bindTo(Ge)}function tn(Ge,le){return Ge.createScoped(le.target)}function Vt(Ge,le){return Ge.getContext(document.activeElement).getValue(le)}function wn(Ge,le){var Y=tn(Ge,le);Ut(Y,le,mt);var Ve=new Se.d(Nt,!0).bindTo(Y);return{scopedContextKeyService:Y,historyNavigationEnablement:Ve}}var xn=function(Ge){Kn(le,Ge);function le(Y,Ve,at,et,J){J===void 0&&(J=!1);var be=Ge.call(this,Y,Ve,J,at)||this;return be._register(wn(et,{target:be.inputBox.element,historyNavigator:be.inputBox}).scopedContextKeyService),be}return le=yi([vi(3,Se.c)],le),le}(Sn),kn=function(Ge){Kn(le,Ge);function le(Y,Ve,at,et,J){J===void 0&&(J=!1);var be=Ge.call(this,Y,Ve,J,at)||this;return be._register(wn(et,{target:be.inputBox.element,historyNavigator:be.inputBox}).scopedContextKeyService),be}return le=yi([vi(3,Se.c)],le),le}(pi);Ln.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:Se.a.and(Se.a.has(mt),Se.a.equals(Nt,!0)),primary:16,secondary:[512|16],handler:function(le,Y){var Ve=Vt(le.get(Se.c),mt);if(Ve){var at=Ve.historyNavigator;at.showPreviousValue()}}}),Ln.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:Se.a.and(Se.a.has(mt),Se.a.equals(Nt,!0)),primary:18,secondary:[512|18],handler:function(le,Y){var Ve=Vt(le.get(Se.c),mt);if(Ve){var at=Ve.historyNavigator;at.showNextValue()}}});var Fn=function(){var Ge=function(Y,Ve){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var J in et)et.hasOwnProperty(J)&&(at[J]=et[J])},Ge(Y,Ve)};return function(le,Y){Ge(le,Y);function Ve(){this.constructor=le}le.prototype=Y===null?Object.create(Y):(Ve.prototype=Y.prototype,new Ve)}}(),oi=R.a("label.find","Find"),ci=R.a("placeholder.find","Find"),Ui=R.a("label.previousMatchButton","Previous match"),rr=R.a("label.nextMatchButton","Next match"),Xn=R.a("label.toggleSelectionFind","Find in selection"),Ri=R.a("label.closeButton","Close"),wi=R.a("label.replace","Replace"),Bi=R.a("placeholder.replace","Replace"),Vn=R.a("label.replaceButton","Replace"),bi=R.a("label.replaceAllButton","Replace All"),ji=R.a("label.toggleReplaceButton","Toggle Replace mode"),Mi=R.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",se),Gi=R.a("label.matchesLocation","{0} of {1}"),ki=R.a("label.noResults","No Results"),mi=419,qi=275,or=qi-54,Ci=69,Di=33,Yi="ctrlEnterReplaceAll.windows.donotask",ur=Mt.e?256:2048,Ni=function(){function Ge(le){this.afterLineNumber=le,this.heightInPx=Di,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return Ge}();function sr(Ge,le,Y){var Ve=!!le.match(/\n/);if(Y&&Ve&&Y.selectionStart>0){Ge.stopPropagation();return}}function $e(Ge,le,Y){var Ve=!!le.match(/\n/);if(Y&&Ve&&Y.selectionEnd<Y.value.length){Ge.stopPropagation();return}}var L=function(Ge){Fn(le,Ge);function le(Y,Ve,at,et,J,be,Le,it,Je){var Be=Ge.call(this)||this;return Be._cachedHeight=null,Be._codeEditor=Y,Be._controller=Ve,Be._state=at,Be._contextViewProvider=et,Be._keybindingService=J,Be._contextKeyService=be,Be._storageService=it,Be._notificationService=Je,Be._ctrlEnterReplaceAllWarningPrompted=!!it.getBoolean(Yi,0),Be._isVisible=!1,Be._isReplaceVisible=!1,Be._ignoreChangeEvent=!1,Be._updateHistoryDelayer=new re.a(500),Be._register(Object(ne.h)(function(){return Be._updateHistoryDelayer.cancel()})),Be._register(Be._state.onFindReplaceStateChange(function(bt){return Be._onStateChanged(bt)})),Be._buildDomNode(),Be._updateButtons(),Be._tryUpdateWidgetWidth(),Be._findInput.inputBox.layout(),Be._register(Be._codeEditor.onDidChangeConfiguration(function(bt){if(bt.hasChanged(68)&&(Be._codeEditor.getOption(68)&&Be._state.change({isReplaceRevealed:!1},!1),Be._updateButtons()),bt.hasChanged(107)&&Be._tryUpdateWidgetWidth(),bt.hasChanged(2)&&Be.updateAccessibilitySupport(),bt.hasChanged(28)){var Lt=Be._codeEditor.getOption(28).addExtraSpaceOnTop;Lt&&!Be._viewZone&&(Be._viewZone=new Ni(0),Be._showViewZone()),!Lt&&Be._viewZone&&Be._removeViewZone()}})),Be.updateAccessibilitySupport(),Be._register(Be._codeEditor.onDidChangeCursorSelection(function(){Be._isVisible&&Be._updateToggleSelectionFindButton()})),Be._register(Be._codeEditor.onDidFocusEditorWidget(function(){if(Be._isVisible){var bt=Be._controller.getGlobalBufferTerm();bt&&bt!==Be._state.searchString&&(Be._state.change({searchString:bt},!0),Be._findInput.select())}})),Be._findInputFocused=q.bindTo(be),Be._findFocusTracker=Be._register($.Y(Be._findInput.inputBox.inputElement)),Be._register(Be._findFocusTracker.onDidFocus(function(){Be._findInputFocused.set(!0),Be._updateSearchScope()})),Be._register(Be._findFocusTracker.onDidBlur(function(){Be._findInputFocused.set(!1)})),Be._replaceInputFocused=X.bindTo(be),Be._replaceFocusTracker=Be._register($.Y(Be._replaceInput.inputBox.inputElement)),Be._register(Be._replaceFocusTracker.onDidFocus(function(){Be._replaceInputFocused.set(!0),Be._updateSearchScope()})),Be._register(Be._replaceFocusTracker.onDidBlur(function(){Be._replaceInputFocused.set(!1)})),Be._codeEditor.addOverlayWidget(Be),Be._codeEditor.getOption(28).addExtraSpaceOnTop&&(Be._viewZone=new Ni(0)),Be._applyTheme(Le.getTheme()),Be._register(Le.onThemeChange(Be._applyTheme.bind(Be))),Be._register(Be._codeEditor.onDidChangeModel(function(){!Be._isVisible||(Be._viewZoneId=void 0)})),Be._register(Be._codeEditor.onDidScrollChange(function(bt){if(bt.scrollTopChanged){Be._layoutViewZone();return}setTimeout(function(){Be._layoutViewZone()},0)})),Be}return le.prototype.getId=function(){return le.ID},le.prototype.getDomNode=function(){return this._domNode},le.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},le.prototype._onStateChanged=function(Y){if(Y.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(Y.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),Y.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),Y.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(68)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=$.G(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(Y.isRevealed||Y.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),Y.isRegex&&this._findInput.setRegex(this._state.isRegex),Y.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),Y.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),Y.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),Y.searchString||Y.matchesCount||Y.matchesPosition){var Ve=this._state.searchString.length>0&&this._state.matchesCount===0;$.X(this._domNode,"no-results",Ve),this._updateMatchesCount(),this._updateButtons()}(Y.searchString||Y.currentMatch)&&this._layoutViewZone(),Y.updateHistory&&this._delayedUpdateHistory()},le.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},le.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},le.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=Ci+"px",this._state.matchesCount>=se?this._matchesCount.title=Mi:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var Y;if(this._state.matchesCount>0){var Ve=String(this._state.matchesCount);this._state.matchesCount>=se&&(Ve+="+");var at=String(this._state.matchesPosition);at==="0"&&(at="?"),Y=P.r(Gi,at,Ve)}else Y=ki;this._matchesCount.appendChild(document.createTextNode(Y)),Object(nt.a)(this._getAriaLabel(Y,this._state.currentMatch,this._state.searchString),!0),Ci=Math.max(Ci,this._matchesCount.clientWidth)},le.prototype._getAriaLabel=function(Y,Ve,at){return Y===ki?at===""?R.a("ariaSearchNoResultEmpty","{0} found",Y):R.a("ariaSearchNoResult","{0} found for {1}",Y,at):Ve?R.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",Y,at,Ve.startLineNumber+":"+Ve.startColumn):R.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",Y,at)},le.prototype._updateToggleSelectionFindButton=function(){var Y=this._codeEditor.getSelection(),Ve=Y?Y.startLineNumber!==Y.endLineNumber||Y.startColumn!==Y.endColumn:!1,at=this._toggleSelectionFind.checked;this._isVisible&&(at||Ve)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},le.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var Y=this._state.searchString.length>0,Ve=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&Y&&Ve),this._nextBtn.setEnabled(this._isVisible&&Y&&Ve),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Y),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Y),$.X(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 at=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&at)},le.prototype._reveal=function(){var Y=this;if(!this._isVisible){this._isVisible=!0;var Ve=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 at=!!Ve&&Ve.startLineNumber!==Ve.endLineNumber;this._toggleSelectionFind.checked=at;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){$.e(Y._domNode,"visible"),Y._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){Y._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var et=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&Ve){var J=this._codeEditor.getDomNode();if(J){var be=$.B(J),Le=this._codeEditor.getScrolledVisiblePosition(Ve.getStartPosition()),it=be.left+(Le?Le.left:0),Je=Le?Le.top:0;if(this._viewZone&&Je<this._viewZone.heightInPx){Ve.endLineNumber>Ve.startLineNumber&&(et=!1);var Be=$.E(this._domNode).left;it>Be&&(et=!1);var bt=this._codeEditor.getScrolledVisiblePosition(Ve.getEndPosition()),Lt=be.left+(bt?bt.left:0);Lt>Be&&(et=!1)}}}this._showViewZone(et)}},le.prototype._hide=function(Y){this._isVisible&&(this._isVisible=!1,this._updateButtons(),$.O(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),Y&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},le.prototype._layoutViewZone=function(){var Y=this,Ve=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!Ve){this._removeViewZone();return}if(!!this._isVisible){var at=this._viewZone;this._viewZoneId!==void 0||!at||this._codeEditor.changeViewZones(function(et){at.heightInPx=Y._getHeight(),Y._viewZoneId=et.addZone(at),Y._codeEditor.setScrollTop(Y._codeEditor.getScrollTop()+at.heightInPx)})}},le.prototype._showViewZone=function(Y){var Ve=this;if(Y===void 0&&(Y=!0),!!this._isVisible){var at=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!!at){this._viewZone===void 0&&(this._viewZone=new Ni(0));var et=this._viewZone;this._codeEditor.changeViewZones(function(J){if(Ve._viewZoneId!==void 0){var be=Ve._getHeight();if(be===et.heightInPx)return;var Le=be-et.heightInPx;et.heightInPx=be,J.layoutZone(Ve._viewZoneId),Y&&Ve._codeEditor.setScrollTop(Ve._codeEditor.getScrollTop()+Le);return}else{var Le=Ve._getHeight();et.heightInPx=Le,Ve._viewZoneId=J.addZone(et),Y&&Ve._codeEditor.setScrollTop(Ve._codeEditor.getScrollTop()+Le)}})}}},le.prototype._removeViewZone=function(){var Y=this;this._codeEditor.changeViewZones(function(Ve){Y._viewZoneId!==void 0&&(Ve.removeZone(Y._viewZoneId),Y._viewZoneId=void 0,Y._viewZone&&(Y._codeEditor.setScrollTop(Y._codeEditor.getScrollTop()-Y._viewZone.heightInPx),Y._viewZone=void 0))})},le.prototype._applyTheme=function(Y){var Ve={inputActiveOptionBorder:Y.getColor(T.X),inputActiveOptionBackground:Y.getColor(T.W),inputBackground:Y.getColor(T.Y),inputForeground:Y.getColor(T.ab),inputBorder:Y.getColor(T.Z),inputValidationInfoBackground:Y.getColor(T.eb),inputValidationInfoForeground:Y.getColor(T.gb),inputValidationInfoBorder:Y.getColor(T.fb),inputValidationWarningBackground:Y.getColor(T.hb),inputValidationWarningForeground:Y.getColor(T.jb),inputValidationWarningBorder:Y.getColor(T.ib),inputValidationErrorBackground:Y.getColor(T.bb),inputValidationErrorForeground:Y.getColor(T.db),inputValidationErrorBorder:Y.getColor(T.cb)};this._findInput.style(Ve),this._replaceInput.style(Ve),this._toggleSelectionFind.style(Ve)},le.prototype._tryUpdateWidgetWidth=function(){if(!!this._isVisible&&!!$.L(this._domNode)){var Y=this._codeEditor.getLayoutInfo(),Ve=Y.contentWidth;if(Ve<=0){$.e(this._domNode,"hiddenEditor");return}else $.H(this._domNode,"hiddenEditor")&&$.O(this._domNode,"hiddenEditor");var at=Y.width,et=Y.minimapWidth,J=!1,be=!1,Le=!1;if(this._resized){var it=$.G(this._domNode);if(it>mi){this._domNode.style.maxWidth=at-28-et-15+"px",this._replaceInput.width=$.G(this._findInput.domNode);return}}if(mi+28+et>=at&&(be=!0),mi+28+et-Ci>=at&&(Le=!0),mi+28+et-Ci>=at+50&&(J=!0),$.X(this._domNode,"collapsed-find-widget",J),$.X(this._domNode,"narrow-find-widget",Le),$.X(this._domNode,"reduced-find-widget",be),!Le&&!J&&(this._domNode.style.maxWidth=at-28-et-15+"px"),this._resized){this._findInput.inputBox.layout();var Je=this._findInput.inputBox.element.clientWidth;Je>0&&(this._replaceInput.width=Je)}else this._isReplaceVisible&&(this._replaceInput.width=$.G(this._findInput.domNode))}},le.prototype._getHeight=function(){var Y=0;return Y+=4,Y+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(Y+=4,Y+=this._replaceInput.inputBox.height+2),Y+=4,Y},le.prototype._tryUpdateHeight=function(){var Y=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===Y?!1:(this._cachedHeight=Y,this._domNode.style.height=Y+"px",!0)},le.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},le.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},le.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},le.prototype._updateSearchScope=function(){if(!!this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){var Y=this._codeEditor.getSelection();Y.endColumn===1&&Y.endLineNumber>Y.startLineNumber&&(Y=Y.setEndPosition(Y.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(Y.endLineNumber-1)));var Ve=this._state.currentMatch;Y.startLineNumber!==Y.endLineNumber&&(x.a.equalsRange(Y,Ve)||this._state.change({searchScope:Y},!0))}},le.prototype._onFindInputMouseDown=function(Y){Y.middleButton&&Y.stopPropagation()},le.prototype._onFindInputKeyDown=function(Y){if(Y.equals(ur|3)){this._findInput.inputBox.insertAtCursor(`
`),Y.preventDefault();return}if(Y.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),Y.preventDefault();return}if(Y.equals(2048|18)){this._codeEditor.focus(),Y.preventDefault();return}if(Y.equals(16))return sr(Y,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(Y.equals(18))return $e(Y,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))},le.prototype._onReplaceInputKeyDown=function(Y){if(Y.equals(ur|3)){Mt.h&&Mt.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(R.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(Yi,!0,0)),this._replaceInput.inputBox.insertAtCursor(`
`),Y.preventDefault();return}if(Y.equals(2)){this._findInput.focusOnCaseSensitive(),Y.preventDefault();return}if(Y.equals(1024|2)){this._findInput.focus(),Y.preventDefault();return}if(Y.equals(2048|18)){this._codeEditor.focus(),Y.preventDefault();return}if(Y.equals(16))return sr(Y,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(Y.equals(18))return $e(Y,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))},le.prototype.getHorizontalSashTop=function(Y){return 0},le.prototype.getHorizontalSashLeft=function(Y){return 0},le.prototype.getHorizontalSashWidth=function(Y){return 500},le.prototype._keybindingLabelFor=function(Y){var Ve=this._keybindingService.lookupKeybinding(Y);return Ve?" ("+Ve.getLabel()+")":""},le.prototype._buildDomNode=function(){var Y=this,Ve=!0,at=!0;this._findInput=this._register(new xn(null,this._contextViewProvider,{width:or,label:oi,placeholder:ci,appendCaseSensitiveLabel:this._keybindingLabelFor(de.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(de.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(de.ToggleRegexCommand),validation:function(Be){if(Be.length===0||!Y._findInput.getRegex())return null;try{return new RegExp(Be),null}catch(bt){return{content:bt.message}}},flexibleHeight:Ve,flexibleWidth:at,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(Je){return Y._onFindInputKeyDown(Je)})),this._register(this._findInput.inputBox.onDidChange(function(){Y._ignoreChangeEvent||Y._state.change({searchString:Y._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){Y._state.change({isRegex:Y._findInput.getRegex(),wholeWord:Y._findInput.getWholeWords(),matchCase:Y._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(Je){Je.equals(1024|2)&&Y._isReplaceVisible&&(Y._replaceInput.focus(),Je.preventDefault())})),this._register(this._findInput.onRegexKeyDown(function(Je){Je.equals(2)&&Y._isReplaceVisible&&(Y._replaceInput.focusOnPreserve(),Je.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(function(Je){Y._tryUpdateHeight()&&Y._showViewZone()})),Mt.d&&this._register(this._findInput.onMouseDown(function(Je){return Y._onFindInputMouseDown(Je)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new M({label:Ui+this._keybindingLabelFor(de.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){Y._codeEditor.getAction(de.PreviousMatchFindAction).run().then(void 0,xt.e)}})),this._nextBtn=this._register(new M({label:rr+this._keybindingLabelFor(de.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){Y._codeEditor.getAction(de.NextMatchFindAction).run().then(void 0,xt.e)}}));var et=document.createElement("div");et.className="find-part",et.appendChild(this._findInput.domNode);var J=document.createElement("div");J.className="find-actions",et.appendChild(J),J.appendChild(this._matchesCount),J.appendChild(this._prevBtn.domNode),J.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new Ke({actionClassName:"codicon codicon-selection",title:Xn+this._keybindingLabelFor(de.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(function(){if(Y._toggleSelectionFind.checked){if(Y._codeEditor.hasModel()){var Je=Y._codeEditor.getSelection();Je.endColumn===1&&Je.endLineNumber>Je.startLineNumber&&(Je=Je.setEndPosition(Je.endLineNumber-1,Y._codeEditor.getModel().getLineMaxColumn(Je.endLineNumber-1))),Je.isEmpty()||Y._state.change({searchScope:Je},!0)}}else Y._state.change({searchScope:null},!0)})),J.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new M({label:Ri+this._keybindingLabelFor(de.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){Y._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(Be){Be.equals(2)&&Y._isReplaceVisible&&(Y._replaceBtn.isEnabled()?Y._replaceBtn.focus():Y._codeEditor.focus(),Be.preventDefault())}})),J.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new kn(null,void 0,{label:wi,placeholder:Bi,history:[],flexibleHeight:Ve,flexibleWidth:at,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(function(Je){return Y._onReplaceInputKeyDown(Je)})),this._register(this._replaceInput.inputBox.onDidChange(function(){Y._state.change({replaceString:Y._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(function(Je){Y._isReplaceVisible&&Y._tryUpdateHeight()&&Y._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(function(){Y._state.change({preserveCase:Y._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(function(Je){Je.equals(2)&&(Y._prevBtn.isEnabled()?Y._prevBtn.focus():Y._nextBtn.isEnabled()?Y._nextBtn.focus():Y._toggleSelectionFind.enabled?Y._toggleSelectionFind.focus():Y._closeBtn.isEnabled()&&Y._closeBtn.focus(),Je.preventDefault())})),this._replaceBtn=this._register(new M({label:Vn+this._keybindingLabelFor(de.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){Y._controller.replace()},onKeyDown:function(Be){Be.equals(1024|2)&&(Y._closeBtn.focus(),Be.preventDefault())}})),this._replaceAllBtn=this._register(new M({label:bi+this._keybindingLabelFor(de.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){Y._controller.replaceAll()}}));var be=document.createElement("div");be.className="replace-part",be.appendChild(this._replaceInput.domNode);var Le=document.createElement("div");Le.className="replace-actions",be.appendChild(Le),Le.appendChild(this._replaceBtn.domNode),Le.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new M({label:ji,className:"codicon toggle left",onTrigger:function(){Y._state.change({isReplaceRevealed:!Y._isReplaceVisible},!1),Y._isReplaceVisible&&(Y._replaceInput.width=$.G(Y._findInput.domNode),Y._replaceInput.inputBox.layout()),Y._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=mi+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(et),this._domNode.appendChild(be),this._resizeSash=new St.a(this._domNode,this,{orientation:0}),this._resized=!1;var it=mi;this._register(this._resizeSash.onDidStart(function(){it=$.G(Y._domNode)})),this._register(this._resizeSash.onDidChange(function(Je){Y._resized=!0;var Be=it+Je.startX-Je.currentX;if(!(Be<mi)){var bt=parseFloat($.y(Y._domNode).maxWidth)||0;Be>bt||(Y._domNode.style.width=Be+"px",Y._isReplaceVisible&&(Y._replaceInput.width=$.G(Y._findInput.domNode)),Y._findInput.inputBox.layout(),Y._tryUpdateHeight())}})),this._register(this._resizeSash.onDidReset(function(){var Je=$.G(Y._domNode);if(!(Je<mi)){var Be=mi;if(!Y._resized||Je===mi){var bt=Y._codeEditor.getLayoutInfo();Be=bt.width-28-bt.minimapWidth-15,Y._resized=!0}Y._domNode.style.width=Be+"px",Y._isReplaceVisible&&(Y._replaceInput.width=$.G(Y._findInput.domNode)),Y._findInput.inputBox.layout()}}))},le.prototype.updateAccessibilitySupport=function(){var Y=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(Y!==2)},le.ID="editor.contrib.findWidget",le}(ye.a),M=function(Ge){Fn(le,Ge);function le(Y){var Ve=Ge.call(this)||this;return Ve._opts=Y,Ve._domNode=document.createElement("div"),Ve._domNode.title=Ve._opts.label,Ve._domNode.tabIndex=0,Ve._domNode.className="button "+Ve._opts.className,Ve._domNode.setAttribute("role","button"),Ve._domNode.setAttribute("aria-label",Ve._opts.label),Ve.onclick(Ve._domNode,function(at){Ve._opts.onTrigger(),at.preventDefault()}),Ve.onkeydown(Ve._domNode,function(at){if(at.equals(10)||at.equals(3)){Ve._opts.onTrigger(),at.preventDefault();return}Ve._opts.onKeyDown&&Ve._opts.onKeyDown(at)}),Ve}return Object.defineProperty(le.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),le.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},le.prototype.focus=function(){this._domNode.focus()},le.prototype.setEnabled=function(Y){$.X(this._domNode,"disabled",!Y),this._domNode.setAttribute("aria-disabled",String(!Y)),this._domNode.tabIndex=Y?0:-1},le.prototype.setExpanded=function(Y){this._domNode.setAttribute("aria-expanded",String(!!Y))},le.prototype.toggleClass=function(Y,Ve){$.X(this._domNode,Y,Ve)},le}(ye.a);Object(te.e)(function(Ge,le){var Y=function(Tt,Bt){Bt&&le.addRule(".monaco-editor "+Tt+" { background-color: "+Bt+"; }")};Y(".findMatch",Ge.getColor(T.t)),Y(".currentFindMatch",Ge.getColor(T.r)),Y(".findScope",Ge.getColor(T.v));var Ve=Ge.getColor(T.P);Y(".find-widget",Ve);var at=Ge.getColor(T.fc);at&&le.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+at+"; }");var et=Ge.getColor(T.u);et&&le.addRule(".monaco-editor .findMatch { border: 1px "+(Ge.type==="hc"?"dotted":"solid")+" "+et+"; box-sizing: border-box; }");var J=Ge.getColor(T.s);J&&le.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+J+"; padding: 1px; box-sizing: border-box; }");var be=Ge.getColor(T.w);be&&le.addRule(".monaco-editor .findScope { border: 1px "+(Ge.type==="hc"?"dashed":"solid")+" "+be+"; }");var Le=Ge.getColor(T.e);Le&&le.addRule(".monaco-editor .find-widget { border: 1px solid "+Le+"; }");var it=Ge.getColor(T.R);it&&le.addRule(".monaco-editor .find-widget { color: "+it+"; }");var Je=Ge.getColor(T.T);Je&&le.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+Je+"; }");var Be=Ge.getColor(T.S);if(Be)le.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+Be+"; width: 3px !important; margin-left: -4px;}");else{var bt=Ge.getColor(T.Q);bt&&le.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+bt+"; width: 3px !important; margin-left: -4px;}")}var Lt=Ge.getColor(T.U);Lt&&le.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+Lt+"; }")});var Z=o("9XeP"),De=o("Uzvx"),xe=o("Cg/j"),je=o("bexQ"),ht=o("A+jI"),ut=o("sM1p"),yt=function(){var Ge=function(Y,Ve){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var J in et)et.hasOwnProperty(J)&&(at[J]=et[J])},Ge(Y,Ve)};return function(le,Y){Ge(le,Y);function Ve(){this.constructor=le}le.prototype=Y===null?Object.create(Y):(Ve.prototype=Y.prototype,new Ve)}}(),It=function(Ge,le,Y,Ve){var at=arguments.length,et=at<3?le:Ve===null?Ve=Object.getOwnPropertyDescriptor(le,Y):Ve,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")et=Reflect.decorate(Ge,le,Y,Ve);else for(var be=Ge.length-1;be>=0;be--)(J=Ge[be])&&(et=(at<3?J(et):at>3?J(le,Y,et):J(le,Y))||et);return at>3&&et&&Object.defineProperty(le,Y,et),et},Rt=function(Ge,le){return function(Y,Ve){le(Y,Ve,Ge)}},Wt=524288;function Zt(Ge){if(!Ge.hasModel())return null;var le=Ge.getSelection();if(le.startLineNumber===le.endLineNumber){if(le.isEmpty()){var Y=Ge.getModel().getWordAtPosition(le.getStartPosition());if(Y)return Y.word}else if(Ge.getModel().getValueLengthInRange(le)<Wt)return Ge.getModel().getValueInRange(le)}return null}var Xt=function(Ge){yt(le,Ge);function le(Y,Ve,at,et){var J=Ge.call(this)||this;return J._editor=Y,J._findWidgetVisible=we.bindTo(Ve),J._contextKeyService=Ve,J._storageService=at,J._clipboardService=et,J._updateHistoryDelayer=new re.a(500),J._state=J._register(new Re),J.loadQueryState(),J._register(J._state.onFindReplaceStateChange(function(be){return J._onStateChanged(be)})),J._model=null,J._register(J._editor.onDidChangeModel(function(){var be=J._editor.getModel()&&J._state.isRevealed;J.disposeModel(),J._state.change({searchScope:null,matchCase:J._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:J._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:J._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:J._storageService.getBoolean("editor.preserveCase",1,!1)},!1),be&&J._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})})),J}return le.get=function(Y){return Y.getContribution(le.ID)},le.prototype.dispose=function(){this.disposeModel(),Ge.prototype.dispose.call(this)},le.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},le.prototype._onStateChanged=function(Y){this.saveQueryState(Y),Y.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),Y.searchString&&this.setGlobalBufferTerm(this._state.searchString)},le.prototype.saveQueryState=function(Y){Y.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),Y.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),Y.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),Y.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},le.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)},le.prototype.isFindInputFocused=function(){return!!q.getValue(this._contextKeyService)},le.prototype.getState=function(){return this._state},le.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},le.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},le.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},le.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},le.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var Y=this._editor.getSelection();Y.endColumn===1&&Y.endLineNumber>Y.startLineNumber&&(Y=Y.setEndPosition(Y.endLineNumber-1,this._editor.getModel().getLineMaxColumn(Y.endLineNumber-1))),Y.isEmpty()||this._state.change({searchScope:Y},!0)}},le.prototype.setSearchString=function(Y){this._state.isRegex&&(Y=P.p(Y)),this._state.change({searchString:Y},!1)},le.prototype.highlightFindOptions=function(){},le.prototype._start=function(Y){if(this.disposeModel(),!!this._editor.hasModel()){var Ve={isRevealed:!0};if(Y.seedSearchStringFromSelection){var at=Zt(this._editor);at&&(this._state.isRegex?Ve.searchString=P.p(at):Ve.searchString=at)}if(!Ve.searchString&&Y.seedSearchStringFromGlobalClipboard){var at=this.getGlobalBufferTerm();at&&(Ve.searchString=at)}if(Y.forceRevealReplace?Ve.isReplaceRevealed=!0:this._findWidgetVisible.get()||(Ve.isReplaceRevealed=!1),Y.updateSearchScope){var et=this._editor.getSelection();et.isEmpty()||(Ve.searchScope=et)}this._state.change(Ve,!1),this._model||(this._model=new ie(this._editor,this._state))}},le.prototype.start=function(Y){this._start(Y)},le.prototype.moveToNextMatch=function(){return this._model?(this._model.moveToNextMatch(),!0):!1},le.prototype.moveToPrevMatch=function(){return this._model?(this._model.moveToPrevMatch(),!0):!1},le.prototype.replace=function(){return this._model?(this._model.replace(),!0):!1},le.prototype.replaceAll=function(){return this._model?(this._model.replaceAll(),!0):!1},le.prototype.selectAllMatches=function(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1},le.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},le.prototype.setGlobalBufferTerm=function(Y){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(Y)},le.ID="editor.contrib.findController",le=It([Rt(1,Se.c),Rt(2,ht.a),Rt(3,Z.a)],le),le}(ne.a),ln=function(Ge){yt(le,Ge);function le(Y,Ve,at,et,J,be,Le,it){var Je=Ge.call(this,Y,at,Le,it)||this;return Je._contextViewService=Ve,Je._keybindingService=et,Je._themeService=J,Je._notificationService=be,Je._widget=null,Je._findOptionsWidget=null,Je}return le.prototype._start=function(Y){this._widget||this._createFindWidget();var Ve=this._editor.getSelection(),at=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":at=!0;break;case"never":at=!1;break;case"multiline":var et=!!Ve&&Ve.startLineNumber!==Ve.endLineNumber;at=et;break;default:break}Y.updateSearchScope=at,Ge.prototype._start.call(this,Y),Y.shouldFocus===2?this._widget.focusReplaceInput():Y.shouldFocus===1&&this._widget.focusFindInput()},le.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},le.prototype._createFindWidget=function(){this._widget=this._register(new L(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new Ae(this._editor,this._state,this._keybindingService,this._themeService))},le=It([Rt(1,De.b),Rt(2,Se.c),Rt(3,je.a),Rt(4,te.c),Rt(5,ut.a),Rt(6,ht.a),Rt(7,Object(xe.d)(Z.a))],le),le}(Xt),hn=function(Ge){yt(le,Ge);function le(){return Ge.call(this,{id:de.StartFindAction,label:R.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|36,weight:100},menuOpts:{menuId:17,group:"3_find",title:R.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return le.prototype.run=function(Y,Ve){var at=Xt.get(Ve);at&&at.start({forceRevealReplace:!1,seedSearchStringFromSelection:Ve.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:Ve.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},le}(F.b),Tn=function(Ge){yt(le,Ge);function le(){return Ge.call(this,{id:de.StartFindWithSelection,label:R.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 le.prototype.run=function(Y,Ve){var at=Xt.get(Ve);at&&(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),at.setGlobalBufferTerm(at.getState().searchString))},le}(F.b),pn=function(Ge){yt(le,Ge);function le(){return Ge!==null&&Ge.apply(this,arguments)||this}return le.prototype.run=function(Y,Ve){var at=Xt.get(Ve);at&&!this._run(at)&&(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:at.getState().searchString.length===0&&Ve.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(at))},le}(F.b),Nn=function(Ge){yt(le,Ge);function le(){return Ge.call(this,{id:de.NextMatchFindAction,label:R.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:V.a.focus,primary:61,mac:{primary:2048|37,secondary:[61]},weight:100}})||this}return le.prototype._run=function(Y){return Y.moveToNextMatch()},le}(pn),In=function(Ge){yt(le,Ge);function le(){return Ge.call(this,{id:de.NextMatchFindAction,label:R.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:Se.a.and(V.a.focus,q),primary:3,weight:100}})||this}return le.prototype._run=function(Y){return Y.moveToNextMatch()},le}(pn),Oe=function(Ge){yt(le,Ge);function le(){return Ge.call(this,{id:de.PreviousMatchFindAction,label:R.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:V.a.focus,primary:1024|61,mac:{primary:2048|1024|37,secondary:[1024|61]},weight:100}})||this}return le.prototype._run=function(Y){return Y.moveToPrevMatch()},le}(pn),j=function(Ge){yt(le,Ge);function le(){return Ge.call(this,{id:de.PreviousMatchFindAction,label:R.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:Se.a.and(V.a.focus,q),primary:1024|3,weight:100}})||this}return le.prototype._run=function(Y){return Y.moveToPrevMatch()},le}(pn),ae=function(Ge){yt(le,Ge);function le(){return Ge!==null&&Ge.apply(this,arguments)||this}return le.prototype.run=function(Y,Ve){var at=Xt.get(Ve);if(!!at){var et=Zt(Ve);et&&at.setSearchString(et),this._run(at)||(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:Ve.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(at))}},le}(F.b),Fe=function(Ge){yt(le,Ge);function le(){return Ge.call(this,{id:de.NextSelectionMatchFindAction,label:R.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:V.a.focus,primary:2048|61,weight:100}})||this}return le.prototype._run=function(Y){return Y.moveToNextMatch()},le}(ae),qe=function(Ge){yt(le,Ge);function le(){return Ge.call(this,{id:de.PreviousSelectionMatchFindAction,label:R.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:V.a.focus,primary:2048|1024|61,weight:100}})||this}return le.prototype._run=function(Y){return Y.moveToPrevMatch()},le}(ae),ct=function(Ge){yt(le,Ge);function le(){return Ge.call(this,{id:de.StartFindReplaceAction,label:R.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:R.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return le.prototype.run=function(Y,Ve){if(!(!Ve.hasModel()||Ve.getOption(68))){var at=Xt.get(Ve),et=Ve.getSelection(),J=at.isFindInputFocused(),be=!et.isEmpty()&&et.startLineNumber===et.endLineNumber&&Ve.getOption(28).seedSearchStringFromSelection&&!J,Le=J||be?2:1;at&&at.start({forceRevealReplace:!0,seedSearchStringFromSelection:be,seedSearchStringFromGlobalClipboard:Ve.getOption(28).seedSearchStringFromSelection,shouldFocus:Le,shouldAnimate:!0,updateSearchScope:!1})}},le}(F.b);Object(F.h)(Xt.ID,ln),Object(F.f)(hn),Object(F.f)(Tn),Object(F.f)(Nn),Object(F.f)(In),Object(F.f)(Oe),Object(F.f)(j),Object(F.f)(Fe),Object(F.f)(qe),Object(F.f)(ct);var wt=F.c.bindToContribution(Xt.get);Object(F.g)(new wt({id:de.CloseFindWidgetCommand,precondition:we,handler:function(le){return le.closeFindWidget()},kbOpts:{weight:100+5,kbExpr:V.a.focus,primary:9,secondary:[1024|9]}})),Object(F.g)(new wt({id:de.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(le){return le.toggleCaseSensitive()},kbOpts:{weight:100+5,kbExpr:V.a.focus,primary:ce.primary,mac:ce.mac,win:ce.win,linux:ce.linux}})),Object(F.g)(new wt({id:de.ToggleWholeWordCommand,precondition:void 0,handler:function(le){return le.toggleWholeWords()},kbOpts:{weight:100+5,kbExpr:V.a.focus,primary:Ne.primary,mac:Ne.mac,win:Ne.win,linux:Ne.linux}})),Object(F.g)(new wt({id:de.ToggleRegexCommand,precondition:void 0,handler:function(le){return le.toggleRegex()},kbOpts:{weight:100+5,kbExpr:V.a.focus,primary:He.primary,mac:He.mac,win:He.win,linux:He.linux}})),Object(F.g)(new wt({id:de.ToggleSearchScopeCommand,precondition:void 0,handler:function(le){return le.toggleSearchScope()},kbOpts:{weight:100+5,kbExpr:V.a.focus,primary:_e.primary,mac:_e.mac,win:_e.win,linux:_e.linux}})),Object(F.g)(new wt({id:de.ReplaceOneAction,precondition:we,handler:function(le){return le.replace()},kbOpts:{weight:100+5,kbExpr:V.a.focus,primary:2048|1024|22}})),Object(F.g)(new wt({id:de.ReplaceOneAction,precondition:we,handler:function(le){return le.replace()},kbOpts:{weight:100+5,kbExpr:Se.a.and(V.a.focus,X),primary:3}})),Object(F.g)(new wt({id:de.ReplaceAllAction,precondition:we,handler:function(le){return le.replaceAll()},kbOpts:{weight:100+5,kbExpr:V.a.focus,primary:2048|512|3}})),Object(F.g)(new wt({id:de.ReplaceAllAction,precondition:we,handler:function(le){return le.replaceAll()},kbOpts:{weight:100+5,kbExpr:Se.a.and(V.a.focus,X),primary:void 0,mac:{primary:2048|3}}})),Object(F.g)(new wt({id:de.SelectAllMatchesAction,precondition:we,handler:function(le){return le.selectAllMatches()},kbOpts:{weight:100+5,kbExpr:V.a.focus,primary:512|3}}))},oiKk:function(Et,A,o){"use strict";o.r(A),o.d(A,"IPadShowKeyboard",function(){return G});var R=o("ci+S"),re=o.n(R),ne=o("D3Dy"),P=o("EffR"),F=o("pmY6"),V=o("sswD"),B=function(){var S=function(K,D){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,te){T.__proto__=te}||function(T,te){for(var U in te)te.hasOwnProperty(U)&&(T[U]=te[U])},S(K,D)};return function(I,K){S(I,K);function D(){this.constructor=I}I.prototype=K===null?Object.create(K):(D.prototype=K.prototype,new D)}}(),G=function(S){B(I,S);function I(K){var D=S.call(this)||this;return D.editor=K,D.widget=null,ne.j&&(D._register(K.onDidChangeConfiguration(function(){return D.update()})),D.update()),D}return I.prototype.update=function(){var K=!this.editor.getOption(68);!this.widget&&K?this.widget=new x(this.editor):this.widget&&!K&&(this.widget.dispose(),this.widget=null)},I.prototype.dispose=function(){S.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},I.ID="editor.contrib.iPadShowKeyboard",I}(F.a),x=function(S){B(I,S);function I(K){var D=S.call(this)||this;return D.editor=K,D._domNode=document.createElement("textarea"),D._domNode.className="iPadShowKeyboard",D._register(P.i(D._domNode,"touchstart",function(T){D.editor.focus()})),D._register(P.i(D._domNode,"focus",function(T){D.editor.focus()})),D.editor.addOverlayWidget(D),D}return I.prototype.dispose=function(){this.editor.removeOverlayWidget(this),S.prototype.dispose.call(this)},I.prototype.getId=function(){return I.ID},I.prototype.getDomNode=function(){return this._domNode},I.prototype.getPosition=function(){return{preference:1}},I.ID="editor.contrib.ShowKeyboardWidget",I}(F.a);Object(V.h)(G.ID,G)},p3Ex:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return o.e(204).then(o.bind(null,"/Om3"))}})},p5tG:function(Et,A,o){"use strict";o.r(A),o.d(A,"LanguageServiceDefaultsImpl",function(){return P});var R=o("M/lh"),re=o.n(R),ne=monaco.Emitter,P=function(){function S(I,K,D){this._onDidChange=new ne,this._languageId=I,this.setDiagnosticsOptions(K),this.setModeConfiguration(D)}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,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),S.prototype.setDiagnosticsOptions=function(I){this._diagnosticsOptions=I||Object.create(null),this._onDidChange.fire(this)},S.prototype.setModeConfiguration=function(I){this._modeConfiguration=I||Object.create(null),this._onDidChange.fire(this)},S}(),F={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},V={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},B=new P("json",F,V);function G(){return{jsonDefaults:B}}monaco.languages.json=G();function x(){return o.e(196).then(o.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(S){return S.setupMode(B)})})},pAvP:function(Et,A,o){"use strict";o.d(A,"a",function(){return ne});var R=o("Cg/j"),re="editorWorkerService",ne=Object(R.c)(re)},pI2L:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return o.e(236).then(o.bind(null,"KpXS"))}})},pg8w:function(Et,A,o){"use strict";o.d(A,"a",function(){return B}),o.d(A,"b",function(){return G});var R=o("6OMU"),re=o("pmY6"),ne=o("EffR"),P=o("ZCR3"),F=function(){var x=function(I,K){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,T){D.__proto__=T}||function(D,T){for(var te in T)T.hasOwnProperty(te)&&(D[te]=T[te])},x(I,K)};return function(S,I){x(S,I);function K(){this.constructor=S}S.prototype=I===null?Object.create(I):(K.prototype=I.prototype,new K)}}(),V=function(x,S,I,K){var D=arguments.length,T=D<3?S:K===null?K=Object.getOwnPropertyDescriptor(S,I):K,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(x,S,I,K);else for(var U=x.length-1;U>=0;U--)(te=x[U])&&(T=(D<3?te(T):D>3?te(S,I,T):te(S,I))||T);return D>3&&T&&Object.defineProperty(S,I,T),T},B;(function(x){x.Tap="-monaco-gesturetap",x.Change="-monaco-gesturechange",x.Start="-monaco-gesturestart",x.End="-monaco-gesturesend",x.Contextmenu="-monaco-gesturecontextmenu"})(B||(B={}));var G=function(x){F(S,x);function S(){var I=x.call(this)||this;return I.dispatched=!1,I.activeTouches={},I.handle=null,I.targets=[],I.ignoreTargets=[],I._lastSetTapCountTime=0,I._register(ne.i(document,"touchstart",function(K){return I.onTouchStart(K)})),I._register(ne.i(document,"touchend",function(K){return I.onTouchEnd(K)})),I._register(ne.i(document,"touchmove",function(K){return I.onTouchMove(K)})),I}return S.addTarget=function(I){return S.isTouchDevice()?(S.INSTANCE||(S.INSTANCE=new S),S.INSTANCE.targets.push(I),{dispose:function(){S.INSTANCE.targets=S.INSTANCE.targets.filter(function(D){return D!==I})}}):re.a.None},S.ignoreTarget=function(I){return S.isTouchDevice()?(S.INSTANCE||(S.INSTANCE=new S),S.INSTANCE.ignoreTargets.push(I),{dispose:function(){S.INSTANCE.ignoreTargets=S.INSTANCE.ignoreTargets.filter(function(D){return D!==I})}}):re.a.None},S.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},S.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),x.prototype.dispose.call(this)},S.prototype.onTouchStart=function(I){var K=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var D=0,T=I.targetTouches.length;D<T;D++){var te=I.targetTouches.item(D);this.activeTouches[te.identifier]={id:te.identifier,initialTarget:te.target,initialTimeStamp:K,initialPageX:te.pageX,initialPageY:te.pageY,rollingTimestamps:[K],rollingPageX:[te.pageX],rollingPageY:[te.pageY]};var U=this.newGestureEvent(B.Start,te.target);U.pageX=te.pageX,U.pageY=te.pageY,this.dispatchEvent(U)}this.dispatched&&(I.preventDefault(),I.stopPropagation(),this.dispatched=!1)},S.prototype.onTouchEnd=function(I){for(var K=Date.now(),D=Object.keys(this.activeTouches).length,T=function(g,p){var v=I.changedTouches.item(g);if(!te.activeTouches.hasOwnProperty(String(v.identifier)))return console.warn("move of an UNKNOWN touch",v),"continue";var E=te.activeTouches[v.identifier],k=Date.now()-E.initialTimeStamp;if(k<S.HOLD_DELAY&&Math.abs(E.initialPageX-R.v(E.rollingPageX))<30&&Math.abs(E.initialPageY-R.v(E.rollingPageY))<30){var z=te.newGestureEvent(B.Tap,E.initialTarget);z.pageX=R.v(E.rollingPageX),z.pageY=R.v(E.rollingPageY),te.dispatchEvent(z)}else if(k>=S.HOLD_DELAY&&Math.abs(E.initialPageX-R.v(E.rollingPageX))<30&&Math.abs(E.initialPageY-R.v(E.rollingPageY))<30){var z=te.newGestureEvent(B.Contextmenu,E.initialTarget);z.pageX=R.v(E.rollingPageX),z.pageY=R.v(E.rollingPageY),te.dispatchEvent(z)}else if(D===1){var oe=R.v(E.rollingPageX),fe=R.v(E.rollingPageY),Se=R.v(E.rollingTimestamps)-E.rollingTimestamps[0],we=oe-E.rollingPageX[0],q=fe-E.rollingPageY[0],X=te.targets.filter(function(ce){return E.initialTarget instanceof Node&&ce.contains(E.initialTarget)});te.inertia(X,K,Math.abs(we)/Se,we>0?1:-1,oe,Math.abs(q)/Se,q>0?1:-1,fe)}te.dispatchEvent(te.newGestureEvent(B.End,E.initialTarget)),delete te.activeTouches[v.identifier]},te=this,U=0,_=I.changedTouches.length;U<_;U++)T(U,_);this.dispatched&&(I.preventDefault(),I.stopPropagation(),this.dispatched=!1)},S.prototype.newGestureEvent=function(I,K){var D=document.createEvent("CustomEvent");return D.initEvent(I,!1,!0),D.initialTarget=K,D.tapCount=0,D},S.prototype.dispatchEvent=function(I){var K=this;if(I.type===B.Tap){var D=new Date().getTime(),T=0;D-this._lastSetTapCountTime>S.CLEAR_TAP_COUNT_TIME?T=1:T=2,this._lastSetTapCountTime=D,I.tapCount=T}else(I.type===B.Change||I.type===B.Contextmenu)&&(this._lastSetTapCountTime=0);for(var te=0;te<this.ignoreTargets.length;te++)if(I.initialTarget instanceof Node&&this.ignoreTargets[te].contains(I.initialTarget))return;this.targets.forEach(function(U){I.initialTarget instanceof Node&&U.contains(I.initialTarget)&&(U.dispatchEvent(I),K.dispatched=!0)})},S.prototype.inertia=function(I,K,D,T,te,U,_,h){var g=this;this.handle=ne.V(function(){var p=Date.now(),v=p-K,E=0,k=0,z=!0;D+=S.SCROLL_FRICTION*v,U+=S.SCROLL_FRICTION*v,D>0&&(z=!1,E=T*D*v),U>0&&(z=!1,k=_*U*v);var oe=g.newGestureEvent(B.Change);oe.translationX=E,oe.translationY=k,I.forEach(function(fe){return fe.dispatchEvent(oe)}),z||g.inertia(I,p,D,T,te+E,U,_,h+k)})},S.prototype.onTouchMove=function(I){for(var K=Date.now(),D=0,T=I.changedTouches.length;D<T;D++){var te=I.changedTouches.item(D);if(!this.activeTouches.hasOwnProperty(String(te.identifier))){console.warn("end of an UNKNOWN touch",te);continue}var U=this.activeTouches[te.identifier],_=this.newGestureEvent(B.Change,U.initialTarget);_.translationX=te.pageX-R.v(U.rollingPageX),_.translationY=te.pageY-R.v(U.rollingPageY),_.pageX=te.pageX,_.pageY=te.pageY,this.dispatchEvent(_),U.rollingPageX.length>3&&(U.rollingPageX.shift(),U.rollingPageY.shift(),U.rollingTimestamps.shift()),U.rollingPageX.push(te.pageX),U.rollingPageY.push(te.pageY),U.rollingTimestamps.push(K)}this.dispatched&&(I.preventDefault(),I.stopPropagation(),this.dispatched=!1)},S.SCROLL_FRICTION=-.005,S.HOLD_DELAY=700,S.CLEAR_TAP_COUNT_TIME=400,V([P.a],S,"isTouchDevice",null),S}(re.a)},pmY6:function(Et,A,o){"use strict";o.d(A,"g",function(){return F}),o.d(A,"f",function(){return V}),o.d(A,"e",function(){return B}),o.d(A,"h",function(){return G}),o.d(A,"b",function(){return x}),o.d(A,"a",function(){return S}),o.d(A,"d",function(){return I}),o.d(A,"c",function(){return K});var R=!1,re="__is_disposable_tracked__";function ne(D){if(!!R&&D&&D!==S.None)try{D[re]=!0}catch(T){}}function P(D){if(!R)return D;var T=new Error("Potentially leaked disposable").stack;return setTimeout(function(){D[re]||console.log(T)},3e3),D}function F(D){return typeof D.dispose=="function"&&D.dispose.length===0}function V(D){return Array.isArray(D)?(D.forEach(function(T){T&&(ne(T),T.dispose())}),[]):D?(ne(D),D.dispose(),D):void 0}function B(){for(var D=[],T=0;T<arguments.length;T++)D[T]=arguments[T];return D.forEach(ne),P({dispose:function(){return V(D)}})}function G(D){var T=P({dispose:function(){ne(T),D()}});return T}var x=function(){function D(){this._toDispose=new Set,this._isDisposed=!1}return D.prototype.dispose=function(){this._isDisposed||(ne(this),this._isDisposed=!0,this.clear())},D.prototype.clear=function(){this._toDispose.forEach(function(T){return T.dispose()}),this._toDispose.clear()},D.prototype.add=function(T){if(!T)return T;if(T===this)throw new Error("Cannot register a disposable on itself!");return ne(T),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(T),T},D}(),S=function(){function D(){this._store=new x,P(this)}return D.prototype.dispose=function(){ne(this),this._store.dispose()},D.prototype._register=function(T){if(T===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(T)},D.None=Object.freeze({dispose:function(){}}),D}(),I=function(){function D(){this._isDisposed=!1,P(this)}return Object.defineProperty(D.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(te){this._isDisposed||te===this._value||(this._value&&this._value.dispose(),te&&ne(te),this._value=te)},enumerable:!0,configurable:!0}),D.prototype.clear=function(){this.value=void 0},D.prototype.dispose=function(){this._isDisposed=!0,ne(this),this._value&&this._value.dispose(),this._value=void 0},D}(),K=function(){function D(T){this.object=T}return D.prototype.dispose=function(){},D}()},ptcw:function(Et,A,o){"use strict";o.d(A,"a",function(){return F}),o.d(A,"b",function(){return B}),o.d(A,"c",function(){return S});var R=o("MD5Z"),re=function(){return re=Object.assign||function(I){for(var K,D=1,T=arguments.length;D<T;D++){K=arguments[D];for(var te in K)Object.prototype.hasOwnProperty.call(K,te)&&(I[te]=K[te])}return I},re.apply(this,arguments)};function ne(I,K){var D=Object.create(null);for(var T in K){var te=K[T];te&&(D[T]=Object(R.Sb)(te,I))}return D}function P(I,K,D){function T(te){var U=ne(I.getTheme(),K);typeof D=="function"?D(U):D.style(U)}return T(I.getTheme()),I.onThemeChange(T)}function F(I,K,D){return P(K,{badgeBackground:D&&D.badgeBackground||R.c,badgeForeground:D&&D.badgeForeground||R.d,badgeBorder:R.e},I)}function V(I,K,D){return P(K,{foreground:D&&D.foreground||R.V,background:D&&D.background||R.o,borderColor:D&&D.borderColor||R.e,widgetShadow:D&&D.widgetShadow||R.fc,progressBarBackground:D&&D.progressBarBackground||R.Qb,pickerGroupForeground:D&&D.pickerGroupForeground||R.Mb,pickerGroupBorder:D&&D.pickerGroupBorder||R.Lb,inputBackground:D&&D.inputBackground||R.Y,inputForeground:D&&D.inputForeground||R.ab,inputBorder:D&&D.inputBorder||R.Z,inputValidationInfoBorder:D&&D.inputValidationInfoBorder||R.fb,inputValidationInfoBackground:D&&D.inputValidationInfoBackground||R.eb,inputValidationInfoForeground:D&&D.inputValidationInfoForeground||R.gb,inputValidationWarningBorder:D&&D.inputValidationWarningBorder||R.ib,inputValidationWarningBackground:D&&D.inputValidationWarningBackground||R.hb,inputValidationWarningForeground:D&&D.inputValidationWarningForeground||R.jb,inputValidationErrorBorder:D&&D.inputValidationErrorBorder||R.cb,inputValidationErrorBackground:D&&D.inputValidationErrorBackground||R.bb,inputValidationErrorForeground:D&&D.inputValidationErrorForeground||R.db,listFocusBackground:D&&D.listFocusBackground||R.qb,listFocusForeground:D&&D.listFocusForeground||R.rb,listActiveSelectionBackground:D&&D.listActiveSelectionBackground||Object(R.f)(R.kb,.1),listActiveSelectionForeground:D&&D.listActiveSelectionForeground||R.lb,listFocusAndSelectionBackground:D&&D.listFocusAndSelectionBackground||R.kb,listFocusAndSelectionForeground:D&&D.listFocusAndSelectionForeground||R.lb,listInactiveSelectionBackground:D&&D.listInactiveSelectionBackground||R.wb,listInactiveSelectionForeground:D&&D.listInactiveSelectionForeground||R.xb,listInactiveFocusBackground:D&&D.listInactiveFocusBackground||R.vb,listHoverBackground:D&&D.listHoverBackground||R.tb,listHoverForeground:D&&D.listHoverForeground||R.ub,listDropBackground:D&&D.listDropBackground||R.mb,listFocusOutline:D&&D.listFocusOutline||R.b,listSelectionOutline:D&&D.listSelectionOutline||R.b,listHoverOutline:D&&D.listHoverOutline||R.b},I)}function B(I,K,D){return P(K,re(re({},G),D||{}),I)}var G={listFocusBackground:R.qb,listFocusForeground:R.rb,listActiveSelectionBackground:Object(R.f)(R.kb,.1),listActiveSelectionForeground:R.lb,listFocusAndSelectionBackground:R.kb,listFocusAndSelectionForeground:R.lb,listInactiveSelectionBackground:R.wb,listInactiveSelectionForeground:R.xb,listInactiveFocusBackground:R.vb,listHoverBackground:R.tb,listHoverForeground:R.ub,listDropBackground:R.mb,listFocusOutline:R.b,listSelectionOutline:R.b,listHoverOutline:R.b,listFilterWidgetBackground:R.nb,listFilterWidgetOutline:R.pb,listFilterWidgetNoMatchesOutline:R.ob,listMatchesShadow:R.fc,treeIndentGuidesStroke:R.ec},x={shadowColor:R.fc,borderColor:R.zb,foregroundColor:R.Ab,backgroundColor:R.yb,selectionForegroundColor:R.Db,selectionBackgroundColor:R.Bb,selectionBorderColor:R.Cb,separatorColor:R.Eb};function S(I,K,D){return P(K,re(re({},x),D),I)}},q8qy:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return o.e(224).then(o.bind(null,"ywQP"))}})},qNAo:function(Et,A,o){"use strict";o.d(A,"f",function(){return re}),o.d(A,"b",function(){return ne}),o.d(A,"c",function(){return P}),o.d(A,"d",function(){return F}),o.d(A,"a",function(){return V}),o.d(A,"e",function(){return B});var R=o("N0LK"),re=function(){function G(x,S,I,K){this.top=x|0,this.left=S|0,this.width=I|0,this.height=K|0}return G}(),ne=function(){function G(x,S){this.tabSize=x,this.data=S}return G}(),P=function(){function G(x,S,I,K,D,T){this.content=x,this.continuesWithWrappedLine=S,this.minColumn=I,this.maxColumn=K,this.startVisibleColumn=D,this.tokens=T}return G}(),F=function(){function G(x,S,I,K,D,T,te,U,_,h){this.minColumn=x,this.maxColumn=S,this.content=I,this.continuesWithWrappedLine=K,this.isBasicASCII=G.isBasicASCII(I,T),this.containsRTL=G.containsRTL(I,this.isBasicASCII,D),this.tokens=te,this.inlineDecorations=U,this.tabSize=_,this.startVisibleColumn=h}return G.isBasicASCII=function(x,S){return S?R.v(x):!0},G.containsRTL=function(x,S,I){return!S&&I?R.i(x):!1},G}(),V=function(){function G(x,S,I){this.range=x,this.inlineClassName=S,this.type=I}return G}(),B=function(){function G(x,S){this.range=x,this.options=S}return G}()},qj0h:function(Et,A,o){"use strict";o.d(A,"c",function(){return re}),o.d(A,"d",function(){return ne}),o.d(A,"b",function(){return F}),o.d(A,"g",function(){return B}),o.d(A,"a",function(){return G}),o.d(A,"e",function(){return x}),o.d(A,"f",function(){return S});var R=o("746U");function re(I){if(!I||typeof I!="object"||I instanceof RegExp)return I;var K=Array.isArray(I)?[]:{};return Object.keys(I).forEach(function(D){I[D]&&typeof I[D]=="object"?K[D]=re(I[D]):K[D]=I[D]}),K}function ne(I){if(!I||typeof I!="object")return I;for(var K=[I];K.length>0;){var D=K.shift();Object.freeze(D);for(var T in D)if(P.call(D,T)){var te=D[T];typeof te=="object"&&!Object.isFrozen(te)&&K.push(te)}}return I}var P=Object.prototype.hasOwnProperty;function F(I,K){return V(I,K,new Set)}function V(I,K,D){if(Object(R.l)(I))return I;var T=K(I);if(typeof T!="undefined")return T;if(Object(R.d)(I)){for(var te=[],U=0,_=I;U<_.length;U++){var h=_[U];te.push(V(h,K,D))}return te}if(Object(R.i)(I)){if(D.has(I))throw new Error("Cannot clone recursive data-structure");D.add(I);var g={};for(var p in I)P.call(I,p)&&(g[p]=V(I[p],K,D));return D.delete(I),g}return I}function B(I,K,D){return D===void 0&&(D=!0),Object(R.i)(I)?(Object(R.i)(K)&&Object.keys(K).forEach(function(T){T in I?D&&(Object(R.i)(I[T])&&Object(R.i)(K[T])?B(I[T],K[T],D):I[T]=K[T]):I[T]=K[T]}),I):K}function G(I){for(var K=[],D=1;D<arguments.length;D++)K[D-1]=arguments[D];return K.forEach(function(T){return Object.keys(T).forEach(function(te){return I[te]=T[te]})}),I}function x(I,K){if(I===K)return!0;if(I==null||K===null||K===void 0||typeof I!=typeof K||typeof I!="object"||Array.isArray(I)!==Array.isArray(K))return!1;var D,T;if(Array.isArray(I)){if(I.length!==K.length)return!1;for(D=0;D<I.length;D++)if(!x(I[D],K[D]))return!1}else{var te=[];for(T in I)te.push(T);te.sort();var U=[];for(T in K)U.push(T);if(U.sort(),!x(te,U))return!1;for(D=0;D<te.length;D++)if(!x(I[te[D]],K[te[D]]))return!1}return!0}function S(I,K,D){var T=K(I);return typeof T=="undefined"?D:T}},r0BQ:function(Et,A,o){"use strict";o.d(A,"a",function(){return R});var R=function(){function re(ne,P,F){P===void 0&&(P=[]),F===void 0&&(F=!1),this.ctor=ne,this.staticArguments=P,this.supportsDelayedInstantiation=F}return re}()},rugR:function(Et,A,o){"use strict";o.r(A),o.d(A,"ModesHoverController",function(){return ze});var R=o("uAX5"),re=o("3/fG"),ne=o("/kV6"),P=o("pmY6"),F=o("sswD"),V=o("aokT"),B=o("wQH0"),G=o("WBhO"),x=o("EffR"),S=o("JQT/"),I=o("zrhQ"),K=o("eLzo"),D=o("cGHE"),T=o("tX9W"),te=o("twdY"),U=o("/cxE"),_=o("bY76"),h=o("G2kB");function g(y,d){var u=[],C=te.c.ordered(y).reverse(),w=C.map(function(b){return Promise.resolve(b.provideDocumentColors(y,d)).then(function(Q){if(Array.isArray(Q))for(var ke=0,rt=Q;ke<rt.length;ke++){var Ie=rt[ke];u.push({colorInfo:Ie,provider:b})}})});return Promise.all(w).then(function(){return u})}function p(y,d,u,C){return Promise.resolve(u.provideColorPresentations(y,d,C))}Object(F.j)("_executeDocumentColorProvider",function(y,d){var u=d.resource;if(!(u instanceof _.a))throw Object(U.b)();var C=y.get(h.a).getModel(u);if(!C)throw Object(U.b)();var w=[],b=te.c.ordered(C).reverse(),Q=b.map(function(ke){return Promise.resolve(ke.provideDocumentColors(C,S.a.None)).then(function(rt){if(Array.isArray(rt))for(var Ie=0,lt=rt;Ie<lt.length;Ie++){var Pt=lt[Ie];w.push({range:Pt.range,color:[Pt.color.red,Pt.color.green,Pt.color.blue,Pt.color.alpha]})}})});return Promise.all(Q).then(function(){return w})}),Object(F.j)("_executeColorPresentationProvider",function(y,d){var u=d.resource,C=d.color,w=d.range;if(!(u instanceof _.a)||!Array.isArray(C)||C.length!==4||!V.a.isIRange(w))throw Object(U.b)();var b=C[0],Q=C[1],ke=C[2],rt=C[3],Ie=y.get(h.a).getModel(u);if(!Ie)throw Object(U.b)();var lt={range:w,color:{red:b,green:Q,blue:ke,alpha:rt}},Pt=[],qt=te.c.ordered(Ie).reverse(),en=qt.map(function(dn){return Promise.resolve(dn.provideColorPresentations(Ie,lt,S.a.None)).then(function(an){Array.isArray(an)&&Pt.push.apply(Pt,an)})});return Promise.all(en).then(function(){return Pt})});var v=o("X+cX"),E=o("7afs"),k=o("Vxe3"),z=o("+7oY"),oe=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),fe=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},Se=function(y,d){return function(u,C){d(u,C,y)}},we=500,q=function(y){oe(d,y);function d(u,C,w){var b=y.call(this)||this;return b._editor=u,b._codeEditorService=C,b._configurationService=w,b._localToDispose=b._register(new P.b),b._decorationsIds=[],b._colorDatas=new Map,b._colorDecoratorIds=[],b._decorationsTypes=new Set,b._register(u.onDidChangeModel(function(Q){b._isEnabled=b.isEnabled(),b.onModelChanged()})),b._register(u.onDidChangeModelLanguage(function(Q){return b.onModelChanged()})),b._register(te.c.onDidChange(function(Q){return b.onModelChanged()})),b._register(u.onDidChangeConfiguration(function(Q){var ke=b._isEnabled;b._isEnabled=b.isEnabled(),ke!==b._isEnabled&&(b._isEnabled?b.onModelChanged():b.removeAllDecorations())})),b._timeoutTimer=null,b._computePromise=null,b._isEnabled=b.isEnabled(),b.onModelChanged(),b}return d.prototype.isEnabled=function(){var u=this._editor.getModel();if(!u)return!1;var C=u.getLanguageIdentifier(),w=this._configurationService.getValue(C.language);if(w){var b=w.colorDecorators;if(b&&b.enable!==void 0&&!b.enable)return b.enable}return this._editor.getOption(12)},d.get=function(u){return u.getContribution(this.ID)},d.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),y.prototype.dispose.call(this)},d.prototype.onModelChanged=function(){var u=this;if(this.stop(),!!this._isEnabled){var C=this._editor.getModel();!C||!te.c.has(C)||(this._localToDispose.add(this._editor.onDidChangeModelContent(function(w){u._timeoutTimer||(u._timeoutTimer=new v.e,u._timeoutTimer.cancelAndSet(function(){u._timeoutTimer=null,u.beginCompute()},d.RECOMPUTE_TIME))})),this.beginCompute())}},d.prototype.beginCompute=function(){var u=this;this._computePromise=Object(v.f)(function(C){var w=u._editor.getModel();return w?g(w,C):Promise.resolve([])}),this._computePromise.then(function(C){u.updateDecorations(C),u.updateColorDecorators(C),u._computePromise=null},U.e)},d.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},d.prototype.updateDecorations=function(u){var C=this,w=u.map(function(b){return{range:{startLineNumber:b.colorInfo.range.startLineNumber,startColumn:b.colorInfo.range.startColumn,endLineNumber:b.colorInfo.range.endLineNumber,endColumn:b.colorInfo.range.endColumn},options:T.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,w),this._colorDatas=new Map,this._decorationsIds.forEach(function(b,Q){return C._colorDatas.set(b,u[Q])})},d.prototype.updateColorDecorators=function(u){for(var C=this,w=[],b={},Q=0;Q<u.length&&w.length<we;Q++){var ke=u[Q].colorInfo.color,rt=ke.red,Ie=ke.green,lt=ke.blue,Pt=ke.alpha,qt=new I.c(Math.round(rt*255),Math.round(Ie*255),Math.round(lt*255),Pt),en=Object(E.a)(qt).toString(16),dn="rgba("+qt.r+", "+qt.g+", "+qt.b+", "+qt.a+")",an="colorBox-"+en;!this._decorationsTypes.has(an)&&!b[an]&&this._codeEditorService.registerDecorationType(an,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:dn},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),b[an]=!0,w.push({range:{startLineNumber:u[Q].colorInfo.range.startLineNumber,startColumn:u[Q].colorInfo.range.startColumn,endLineNumber:u[Q].colorInfo.range.endLineNumber,endColumn:u[Q].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(an,!0)})}this._decorationsTypes.forEach(function(bn){b[bn]||C._codeEditorService.removeDecorationType(bn)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,w)},d.prototype.removeAllDecorations=function(){var u=this;this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(function(C){u._codeEditorService.removeDecorationType(C)})},d.prototype.getColorData=function(u){var C=this,w=this._editor.getModel();if(!w)return null;var b=w.getDecorationsInRange(V.a.fromPositions(u,u)).filter(function(Q){return C._colorDatas.has(Q.id)});return b.length===0?null:this._colorDatas.get(b[0].id)},d.ID="editor.contrib.colorDetector",d.RECOMPUTE_TIME=1e3,d=fe([Se(1,k.a),Se(2,z.a)],d),d}(P.a);Object(F.h)(q.ID,q);var X=o("MI8n"),ce=function(){function y(d,u,C){this.presentationIndex=C,this._onColorFlushed=new X.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new X.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new X.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=d,this._color=d,this._colorPresentations=u}return Object.defineProperty(y.prototype,"color",{get:function(){return this._color},set:function(u){this._color.equals(u)||(this._color=u,this._onDidChangeColor.fire(u))},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"colorPresentations",{get:function(){return this._colorPresentations},set:function(u){this._colorPresentations=u,this.presentationIndex>u.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),y.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},y.prototype.guessColorPresentation=function(d,u){for(var C=0;C<this.colorPresentations.length;C++)if(u===this.colorPresentations[C].label){this.presentationIndex=C,this._onDidChangePresentation.fire(this.presentation);break}},y.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},y}(),Ne=o("EPS+"),He=o("D3Dy"),_e=o("AKMP"),de=o("G300"),se=o("MD5Z"),he=o("t9D7"),ie=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),$=x.a,ve=function(y){ie(d,y);function d(u,C,w){var b=y.call(this)||this;b.model=C,b.domNode=$(".colorpicker-header"),x.p(u,b.domNode),b.pickedColorNode=x.p(b.domNode,$(".picked-color"));var Q=x.p(b.domNode,$(".original-color"));return Q.style.backgroundColor=I.a.Format.CSS.format(b.model.originalColor)||"",b.backgroundColor=w.getTheme().getColor(se.A)||I.a.white,b._register(Object(he.e)(function(ke,rt){b.backgroundColor=ke.getColor(se.A)||I.a.white})),b._register(x.i(b.pickedColorNode,x.c.CLICK,function(){return b.model.selectNextColorPresentation()})),b._register(x.i(Q,x.c.CLICK,function(){b.model.color=b.model.originalColor,b.model.flushColor()})),b._register(C.onDidChangeColor(b.onDidChangeColor,b)),b._register(C.onDidChangePresentation(b.onDidChangePresentation,b)),b.pickedColorNode.style.backgroundColor=I.a.Format.CSS.format(C.color)||"",x.X(b.pickedColorNode,"light",C.color.rgba.a<.5?b.backgroundColor.isLighter():C.color.isLighter()),b}return d.prototype.onDidChangeColor=function(u){this.pickedColorNode.style.backgroundColor=I.a.Format.CSS.format(u)||"",x.X(this.pickedColorNode,"light",u.rgba.a<.5?this.backgroundColor.isLighter():u.isLighter()),this.onDidChangePresentation()},d.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},d}(P.a),ye=function(y){ie(d,y);function d(u,C,w){var b=y.call(this)||this;return b.model=C,b.pixelRatio=w,b.domNode=$(".colorpicker-body"),x.p(u,b.domNode),b.saturationBox=new Ue(b.domNode,b.model,b.pixelRatio),b._register(b.saturationBox),b._register(b.saturationBox.onDidChange(b.onDidSaturationValueChange,b)),b._register(b.saturationBox.onColorFlushed(b.flushColor,b)),b.opacityStrip=new _t(b.domNode,b.model),b._register(b.opacityStrip),b._register(b.opacityStrip.onDidChange(b.onDidOpacityChange,b)),b._register(b.opacityStrip.onColorFlushed(b.flushColor,b)),b.hueStrip=new At(b.domNode,b.model),b._register(b.hueStrip),b._register(b.hueStrip.onDidChange(b.onDidHueChange,b)),b._register(b.hueStrip.onColorFlushed(b.flushColor,b)),b}return d.prototype.flushColor=function(){this.model.flushColor()},d.prototype.onDidSaturationValueChange=function(u){var C=u.s,w=u.v,b=this.model.color.hsva;this.model.color=new I.a(new I.b(b.h,C,w,b.a))},d.prototype.onDidOpacityChange=function(u){var C=this.model.color.hsva;this.model.color=new I.a(new I.b(C.h,C.s,C.v,u))},d.prototype.onDidHueChange=function(u){var C=this.model.color.hsva,w=(1-u)*360;this.model.color=new I.a(new I.b(w===360?0:w,C.s,C.v,C.a))},d.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},d}(P.a),Ue=function(y){ie(d,y);function d(u,C,w){var b=y.call(this)||this;return b.model=C,b.pixelRatio=w,b._onDidChange=new X.a,b.onDidChange=b._onDidChange.event,b._onColorFlushed=new X.a,b.onColorFlushed=b._onColorFlushed.event,b.domNode=$(".saturation-wrap"),x.p(u,b.domNode),b.canvas=document.createElement("canvas"),b.canvas.className="saturation-box",x.p(b.domNode,b.canvas),b.selection=$(".saturation-selection"),x.p(b.domNode,b.selection),b.layout(),b._register(x.g(b.domNode,function(Q){return b.onMouseDown(Q)})),b._register(b.model.onDidChangeColor(b.onDidChangeColor,b)),b.monitor=null,b}return d.prototype.onMouseDown=function(u){var C=this;this.monitor=this._register(new _e.a);var w=x.B(this.domNode);u.target!==this.selection&&this.onDidChangePosition(u.offsetX,u.offsetY),this.monitor.startMonitoring(u.target,u.buttons,_e.b,function(Q){return C.onDidChangePosition(Q.posx-w.left,Q.posy-w.top)},function(){return null});var b=x.h(document,function(){C._onColorFlushed.fire(),b.dispose(),C.monitor&&(C.monitor.stopMonitoring(!0),C.monitor=null)},!0)},d.prototype.onDidChangePosition=function(u,C){var w=Math.max(0,Math.min(1,u/this.width)),b=Math.max(0,Math.min(1,1-C/this.height));this.paintSelection(w,b),this._onDidChange.fire({s:w,v:b})},d.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 u=this.model.color.hsva;this.paintSelection(u.s,u.v)},d.prototype.paint=function(){var u=this.model.color.hsva,C=new I.a(new I.b(u.h,1,1,1)),w=this.canvas.getContext("2d"),b=w.createLinearGradient(0,0,this.canvas.width,0);b.addColorStop(0,"rgba(255, 255, 255, 1)"),b.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),b.addColorStop(1,"rgba(255, 255, 255, 0)");var Q=w.createLinearGradient(0,0,0,this.canvas.height);Q.addColorStop(0,"rgba(0, 0, 0, 0)"),Q.addColorStop(1,"rgba(0, 0, 0, 1)"),w.rect(0,0,this.canvas.width,this.canvas.height),w.fillStyle=I.a.Format.CSS.format(C),w.fill(),w.fillStyle=b,w.fill(),w.fillStyle=Q,w.fill()},d.prototype.paintSelection=function(u,C){this.selection.style.left=u*this.width+"px",this.selection.style.top=this.height-C*this.height+"px"},d.prototype.onDidChangeColor=function(){this.monitor&&this.monitor.isMonitoring()||this.paint()},d}(P.a),tt=function(y){ie(d,y);function d(u,C){var w=y.call(this)||this;return w.model=C,w._onDidChange=new X.a,w.onDidChange=w._onDidChange.event,w._onColorFlushed=new X.a,w.onColorFlushed=w._onColorFlushed.event,w.domNode=x.p(u,$(".strip")),w.overlay=x.p(w.domNode,$(".overlay")),w.slider=x.p(w.domNode,$(".slider")),w.slider.style.top="0px",w._register(x.g(w.domNode,function(b){return w.onMouseDown(b)})),w.layout(),w}return d.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var u=this.getValue(this.model.color);this.updateSliderPosition(u)},d.prototype.onMouseDown=function(u){var C=this,w=this._register(new _e.a),b=x.B(this.domNode);x.e(this.domNode,"grabbing"),u.target!==this.slider&&this.onDidChangeTop(u.offsetY),w.startMonitoring(u.target,u.buttons,_e.b,function(ke){return C.onDidChangeTop(ke.posy-b.top)},function(){return null});var Q=x.h(document,function(){C._onColorFlushed.fire(),Q.dispose(),w.stopMonitoring(!0),x.O(C.domNode,"grabbing")},!0)},d.prototype.onDidChangeTop=function(u){var C=Math.max(0,Math.min(1,1-u/this.height));this.updateSliderPosition(C),this._onDidChange.fire(C)},d.prototype.updateSliderPosition=function(u){this.slider.style.top=(1-u)*this.height+"px"},d}(P.a),_t=function(y){ie(d,y);function d(u,C){var w=y.call(this,u,C)||this;return x.e(w.domNode,"opacity-strip"),w._register(C.onDidChangeColor(w.onDidChangeColor,w)),w.onDidChangeColor(w.model.color),w}return d.prototype.onDidChangeColor=function(u){var C=u.rgba,w=C.r,b=C.g,Q=C.b,ke=new I.a(new I.c(w,b,Q,1)),rt=new I.a(new I.c(w,b,Q,0));this.overlay.style.background="linear-gradient(to bottom, "+ke+" 0%, "+rt+" 100%)"},d.prototype.getValue=function(u){return u.hsva.a},d}(tt),At=function(y){ie(d,y);function d(u,C){var w=y.call(this,u,C)||this;return x.e(w.domNode,"hue-strip"),w}return d.prototype.getValue=function(u){return 1-u.hsva.h/360},d}(tt),Yt=function(y){ie(d,y);function d(u,C,w,b){var Q=y.call(this)||this;Q.model=C,Q.pixelRatio=w,Q._register(Object(He.o)(function(){return Q.layout()}));var ke=$(".colorpicker-widget");u.appendChild(ke);var rt=new ve(ke,Q.model,b);return Q.body=new ye(ke,Q.model,Q.pixelRatio),Q._register(rt),Q._register(Q.body),Q}return d.prototype.layout=function(){this.body.layout()},d}(de.a),Ke=o("6OMU");function Ye(y,d,u){var C=te.o.ordered(y),w=C.map(function(b){return Promise.resolve(b.provideHover(y,d,u)).then(function(Q){return Q&&Xe(Q)?Q:void 0},function(Q){Object(U.f)(Q)})});return Promise.all(w).then(Ke.d)}Object(F.k)("_executeHoverProvider",function(y,d){return Ye(y,d,S.a.None)});function Xe(y){var d=typeof y.range!="undefined",u=typeof y.contents!="undefined"&&y.contents&&y.contents.length>0;return d&&u}var Ze=function(){function y(d,u,C,w,b){var Q=this;this._computer=d,this._state=0,this._hoverTime=b,this._firstWaitScheduler=new v.d(function(){return Q._triggerAsyncComputation()},0),this._secondWaitScheduler=new v.d(function(){return Q._triggerSyncComputation()},0),this._loadingMessageScheduler=new v.d(function(){return Q._showLoadingMessage()},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=u,this._errorCallback=C,this._progressCallback=w}return y.prototype.setHoverTime=function(d){this._hoverTime=d},y.prototype._firstWaitTime=function(){return this._hoverTime/2},y.prototype._secondWaitTime=function(){return this._hoverTime/2},y.prototype._loadingMessageTime=function(){return 3*this._hoverTime},y.prototype._triggerAsyncComputation=function(){var d=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(v.f)(function(u){return d._computer.computeAsync(u)}),this._asyncComputationPromise.then(function(u){d._asyncComputationPromiseDone=!0,d._withAsyncResult(u)},function(u){return d._onError(u)})):this._asyncComputationPromiseDone=!0},y.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},y.prototype._showLoadingMessage=function(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())},y.prototype._withAsyncResult=function(d){d&&this._computer.onResult(d,!1),this._state===3&&(this._state=0,this._onComplete(this._computer.getResult()))},y.prototype._onComplete=function(d){this._completeCallback&&this._completeCallback(d)},y.prototype._onError=function(d){this._errorCallback?this._errorCallback(d):Object(U.e)(d)},y.prototype._onProgress=function(d){this._progressCallback&&this._progressCallback(d)},y.prototype.start=function(d){if(d===0)this._state===0&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}},y.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),this._state===1&&this._firstWaitScheduler.cancel(),this._state===2&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state===3&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0},y}(),We=o("GJhM"),Qe=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),Ee=function(){for(var y=0,d=0,u=arguments.length;d<u;d++)y+=arguments[d].length;for(var C=Array(y),w=0,d=0;d<u;d++)for(var b=arguments[d],Q=0,ke=b.length;Q<ke;Q++,w++)C[w]=b[Q];return C},W=function(y){Qe(d,y);function d(u,C){var w=y.call(this)||this;return w.allowEditorOverflow=!0,w._id=u,w._editor=C,w._isVisible=!1,w._stoleFocus=!1,w._containerDomNode=document.createElement("div"),w._containerDomNode.className="monaco-editor-hover hidden",w._containerDomNode.tabIndex=0,w._domNode=document.createElement("div"),w._domNode.className="monaco-editor-hover-content",w.scrollbar=new We.a(w._domNode,{}),w._register(w.scrollbar),w._containerDomNode.appendChild(w.scrollbar.getDomNode()),w.onkeydown(w._containerDomNode,function(b){b.equals(9)&&w.hide()}),w._register(w._editor.onDidChangeConfiguration(function(b){b.hasChanged(34)&&w.updateFont()})),w._editor.onDidLayoutChange(function(b){return w.layout()}),w.layout(),w._editor.addContentWidget(w),w._showAtPosition=null,w._showAtRange=null,w._stoleFocus=!1,w}return Object.defineProperty(d.prototype,"isVisible",{get:function(){return this._isVisible},set:function(C){this._isVisible=C,Object(x.X)(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),d.prototype.getId=function(){return this._id},d.prototype.getDomNode=function(){return this._containerDomNode},d.prototype.showAt=function(u,C,w){this._showAtPosition=u,this._showAtRange=C,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=w,w&&this._containerDomNode.focus()},d.prototype.hide=function(){!this.isVisible||(this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())},d.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null},d.prototype.dispose=function(){this._editor.removeContentWidget(this),y.prototype.dispose.call(this)},d.prototype.updateFont=function(){var u=this,C=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));C.forEach(function(w){return u._editor.applyFontInfo(w)})},d.prototype.updateContents=function(u){this._domNode.textContent="",this._domNode.appendChild(u),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},d.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},d.prototype.layout=function(){var u=Math.max(this._editor.getLayoutInfo().height/4,250),C=this._editor.getOption(34),w=C.fontSize,b=C.lineHeight;this._domNode.style.fontSize=w+"px",this._domNode.style.lineHeight=b+"px",this._domNode.style.maxHeight=u+"px",this._domNode.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px"},d}(de.a),ee=function(y){Qe(d,y);function d(u,C){var w=y.call(this)||this;return w._id=u,w._editor=C,w._isVisible=!1,w._domNode=document.createElement("div"),w._domNode.className="monaco-editor-hover hidden",w._domNode.setAttribute("aria-hidden","true"),w._domNode.setAttribute("role","presentation"),w._showAtLineNumber=-1,w._register(w._editor.onDidChangeConfiguration(function(b){b.hasChanged(34)&&w.updateFont()})),w._editor.addOverlayWidget(w),w}return Object.defineProperty(d.prototype,"isVisible",{get:function(){return this._isVisible},set:function(C){this._isVisible=C,Object(x.X)(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),d.prototype.getId=function(){return this._id},d.prototype.getDomNode=function(){return this._domNode},d.prototype.showAt=function(u){this._showAtLineNumber=u,this.isVisible||(this.isVisible=!0);var C=this._editor.getLayoutInfo(),w=this._editor.getTopForLineNumber(this._showAtLineNumber),b=this._editor.getScrollTop(),Q=this._editor.getOption(49),ke=this._domNode.clientHeight,rt=w-b-(ke-Q)/2;this._domNode.style.left=C.glyphMarginLeft+C.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(rt),0)+"px"},d.prototype.hide=function(){!this.isVisible||(this.isVisible=!1)},d.prototype.getPosition=function(){return null},d.prototype.dispose=function(){this._editor.removeOverlayWidget(this),y.prototype.dispose.call(this)},d.prototype.updateFont=function(){var u=this,C=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),w=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));Ee(C,w).forEach(function(b){return u._editor.applyFontInfo(b)})},d.prototype.updateContents=function(u){this._domNode.textContent="",this._domNode.appendChild(u),this.updateFont()},d}(de.a),Ae=o("3qCu"),me=o("tADe"),Me=o("gslv"),Re=o("W9cx"),ge=o("T8No"),nt=o("/oaI"),St=o("3rx1"),xt=o("e1ni"),Mt=o("WqXY"),zt=o("8HAY"),Gt=o("qj0h"),on=o("N0LK"),On=o("nB0o"),yn=o("nnTU"),Mn=o("Cg/j"),Ft=o("sM1p"),gt=o("R3nR"),pt=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),Dt=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},Ot=function(y,d){return function(u,C){d(u,C,y)}},Ht=function(y){pt(d,y);function d(u,C,w,b,Q,ke,rt,Ie,lt,Pt){var qt=y.call(this,u,w.getRawOptions(),{},b,Q,ke,rt,Ie,lt,Pt)||this;return qt._parentEditor=w,qt._overwriteOptions=C,y.prototype.updateOptions.call(qt,qt._overwriteOptions),qt._register(w.onDidChangeConfiguration(function(en){return qt._onParentConfigurationChanged(en)})),qt}return d.prototype.getParentEditor=function(){return this._parentEditor},d.prototype._onParentConfigurationChanged=function(u){y.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),y.prototype.updateOptions.call(this,this._overwriteOptions)},d.prototype.updateOptions=function(u){Gt.g(this._overwriteOptions,u,!0),y.prototype.updateOptions.call(this,this._overwriteOptions)},d=Dt([Ot(3,Mn.a),Ot(4,k.a),Ot(5,yn.b),Ot(6,ge.c),Ot(7,he.c),Ot(8,Ft.a),Ot(9,gt.b)],d),d}(On.a),Jt=o("uWgD"),nn=o("cMOf"),sn=o("nD70"),un=new I.a(new I.c(0,122,204)),Sn={showArrow:!0,showFrame:!0,className:"",frameColor:un,arrowColor:un,keepEditorSelection:!1},Ln="vs.editor.contrib.zoneWidget",An=function(){function y(d,u,C,w,b,Q){this.id="",this.domNode=d,this.afterLineNumber=u,this.afterColumn=C,this.heightInLines=w,this._onDomNodeTop=b,this._onComputedHeight=Q}return y.prototype.onDomNodeTop=function(d){this._onDomNodeTop(d)},y.prototype.onComputedHeight=function(d){this._onComputedHeight(d)},y}(),Gn=function(){function y(d,u){this._id=d,this._domNode=u}return y.prototype.getId=function(){return this._id},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return null},y}(),Jn=function(){function y(d){this._editor=d,this._ruleName=y._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}return y.prototype.dispose=function(){this.hide(),x.N(this._ruleName)},Object.defineProperty(y.prototype,"color",{set:function(u){this._color!==u&&(this._color=u,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"height",{set:function(u){this._height!==u&&(this._height=u,this._updateStyle())},enumerable:!0,configurable:!0}),y.prototype._updateStyle=function(){x.N(this._ruleName),x.u(".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},y.prototype.show=function(d){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:V.a.fromPositions(d),options:{className:this._ruleName,stickiness:1}}])},y.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},y._IdGenerator=new sn.a(".arrow-decoration-"),y}(),$n=function(){function y(d,u){var C=this;u===void 0&&(u={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new P.b,this.container=null,this._isShowing=!1,this.editor=d,this.options=Gt.c(u),Gt.g(this.options,Sn,!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(w){var b=C._getWidth(w);C.domNode.style.width=b+"px",C.domNode.style.left=C._getLeft(w)+"px",C._onWidth(b)}))}return y.prototype.dispose=function(){var d=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(u){d._viewZone&&u.removeZone(d._viewZone.id),d._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},y.prototype.create=function(){x.e(this.domNode,"zone-widget"),this.options.className&&x.e(this.domNode,this.options.className),this.container=document.createElement("div"),x.e(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new Jn(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},y.prototype.style=function(d){d.frameColor&&(this.options.frameColor=d.frameColor),d.arrowColor&&(this.options.arrowColor=d.arrowColor),this._applyStyles()},y.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var d=this.options.frameColor.toString();this.container.style.borderTopColor=d,this.container.style.borderBottomColor=d}if(this._arrow&&this.options.arrowColor){var u=this.options.arrowColor.toString();this._arrow.color=u}},y.prototype._getWidth=function(d){return d.width-d.minimapWidth-d.verticalScrollbarWidth},y.prototype._getLeft=function(d){return d.minimapWidth>0&&d.minimapLeft===0?d.minimapWidth:0},y.prototype._onViewZoneTop=function(d){this.domNode.style.top=d+"px"},y.prototype._onViewZoneHeight=function(d){if(this.domNode.style.height=d+"px",this.container){var u=d-this._decoratingElementsHeight();this.container.style.height=u+"px";var C=this.editor.getLayoutInfo();this._doLayout(u,this._getWidth(C))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(y.prototype,"position",{get:function(){var u=this._positionMarkerId[0];if(!!u){var C=this.editor.getModel();if(!!C){var w=C.getDecorationRange(u);if(!!w)return w.getStartPosition()}}},enumerable:!0,configurable:!0}),y.prototype.show=function(d,u){var C=V.a.isIRange(d)?V.a.lift(d):V.a.fromPositions(d);this._isShowing=!0,this._showImpl(C,u),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:C,options:T.a.EMPTY}])},y.prototype.hide=function(){var d=this;this._viewZone&&(this.editor.changeViewZones(function(u){d._viewZone&&u.removeZone(d._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},y.prototype._decoratingElementsHeight=function(){var d=this.editor.getOption(49),u=0;if(this.options.showArrow){var C=Math.round(d/3);u+=2*C}if(this.options.showFrame){var w=Math.round(d/9);u+=2*w}return u},y.prototype._showImpl=function(d,u){var C=this,w=d.getStartPosition(),b=this.editor.getLayoutInfo(),Q=this._getWidth(b);this.domNode.style.width=Q+"px",this.domNode.style.left=this._getLeft(b)+"px";var ke=document.createElement("div");ke.style.overflow="hidden";var rt=this.editor.getOption(49),Ie=this.editor.getLayoutInfo().height/rt*.8;u>=Ie&&(u=Ie);var lt=0,Pt=0;if(this._arrow&&this.options.showArrow&&(lt=Math.round(rt/3),this._arrow.height=lt,this._arrow.show(w)),this.options.showFrame&&(Pt=Math.round(rt/9)),this.editor.changeViewZones(function(bn){C._viewZone&&bn.removeZone(C._viewZone.id),C._overlayWidget&&(C.editor.removeOverlayWidget(C._overlayWidget),C._overlayWidget=null),C.domNode.style.top="-1000px",C._viewZone=new An(ke,w.lineNumber,w.column,u,function(Rn){return C._onViewZoneTop(Rn)},function(Rn){return C._onViewZoneHeight(Rn)}),C._viewZone.id=bn.addZone(C._viewZone),C._overlayWidget=new Gn(Ln+C._viewZone.id,C.domNode),C.editor.addOverlayWidget(C._overlayWidget)}),this.container&&this.options.showFrame){var qt=this.options.frameWidth?this.options.frameWidth:Pt;this.container.style.borderTopWidth=qt+"px",this.container.style.borderBottomWidth=qt+"px"}var en=u*rt-this._decoratingElementsHeight();this.container&&(this.container.style.top=lt+"px",this.container.style.height=en+"px",this.container.style.overflow="hidden"),this._doLayout(en,Q),this.options.keepEditorSelection||this.editor.setSelection(d);var dn=this.editor.getModel();if(dn){var an=d.endLineNumber+1;an<=dn.getLineCount()?this.revealLine(an,!1):this.revealLine(dn.getLineCount(),!0)}},y.prototype.revealLine=function(d,u){u?this.editor.revealLineInCenter(d,0):this.editor.revealLine(d,0)},y.prototype.setCssClass=function(d,u){!this.container||(u&&this.container.classList.remove(u),x.e(this.container,d))},y.prototype._onWidth=function(d){},y.prototype._doLayout=function(d,u){},y.prototype._relayout=function(d){var u=this;this._viewZone&&this._viewZone.heightInLines!==d&&this.editor.changeViewZones(function(C){u._viewZone&&(u._viewZone.heightInLines=d,C.layoutZone(u._viewZone.id))})},y.prototype._initSash=function(){var d=this;if(!this._resizeSash){this._resizeSash=this._disposables.add(new nn.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0);var u;this._disposables.add(this._resizeSash.onDidStart(function(C){d._viewZone&&(u={startY:C.startY,heightInLines:d._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){u=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(C){if(u){var w=(C.currentY-u.startY)/d.editor.getOption(49),b=w<0?Math.ceil(w):Math.floor(w),Q=u.heightInLines+b;Q>5&&Q<35&&d._relayout(Q)}}))}},y.prototype.getHorizontalSashLeft=function(){return 0},y.prototype.getHorizontalSashTop=function(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},y.prototype.getHorizontalSashWidth=function(){var d=this.editor.getLayoutInfo();return d.width-d.minimapWidth},y}(),pi=o("9fML"),Kn=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),yi=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},vi=function(y,d){return function(u,C){d(u,C,y)}},mt=Object(Mn.c)("IPeekViewService");Object(pi.b)(mt,function(){function y(){this._widgets=new Map}return y.prototype.addExclusiveWidget=function(d,u){var C=this,w=this._widgets.get(d);w&&(w.listener.dispose(),w.widget.dispose());var b=function(){var ke=C._widgets.get(d);ke&&ke.widget===u&&(ke.listener.dispose(),C._widgets.delete(d))};this._widgets.set(d,{widget:u,listener:u.onDidClose(b)})},y}());var Nt;(function(y){y.inPeekEditor=new ge.d("inReferenceSearchEditor",!0),y.notInPeekEditor=y.inPeekEditor.toNegated()})(Nt||(Nt={}));var Ut=function(){function y(d,u){d instanceof Ht&&Nt.inPeekEditor.bindTo(u)}return y.prototype.dispose=function(){},y.ID="editor.contrib.referenceController",y=yi([vi(1,ge.c)],y),y}();Object(F.h)(Ut.ID,Ut);function tn(y){var d=y.get(k.a).getFocusedCodeEditor();return d instanceof Ht?d.getParentEditor():d}var Vt={headerBackgroundColor:I.a.white,primaryHeadingColor:I.a.fromHex("#333333"),secondaryHeadingColor:I.a.fromHex("#6c6c6cb3")},wn=function(y){Kn(d,y);function d(u,C){C===void 0&&(C={});var w=y.call(this,u,C)||this;return w._onDidClose=new X.a,w.onDidClose=w._onDidClose.event,Gt.g(w.options,Vt,!1),w}return d.prototype.dispose=function(){y.prototype.dispose.call(this),this._onDidClose.fire(this)},d.prototype.style=function(u){var C=this.options;u.headerBackgroundColor&&(C.headerBackgroundColor=u.headerBackgroundColor),u.primaryHeadingColor&&(C.primaryHeadingColor=u.primaryHeadingColor),u.secondaryHeadingColor&&(C.secondaryHeadingColor=u.secondaryHeadingColor),y.prototype.style.call(this,u)},d.prototype._applyStyles=function(){y.prototype._applyStyles.call(this);var u=this.options;this._headElement&&u.headerBackgroundColor&&(this._headElement.style.backgroundColor=u.headerBackgroundColor.toString()),this._primaryHeading&&u.primaryHeadingColor&&(this._primaryHeading.style.color=u.primaryHeadingColor.toString()),this._secondaryHeading&&u.secondaryHeadingColor&&(this._secondaryHeading.style.color=u.secondaryHeadingColor.toString()),this._bodyElement&&u.frameColor&&(this._bodyElement.style.borderColor=u.frameColor.toString())},d.prototype._fillContainer=function(u){this.setCssClass("peekview-widget"),this._headElement=x.a(".head"),this._bodyElement=x.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),u.appendChild(this._headElement),u.appendChild(this._bodyElement)},d.prototype._fillHead=function(u){var C=this,w=x.a(".peekview-title");x.p(this._headElement,w),x.n(w,"click",function(ke){return C._onTitleClick(ke)}),this._fillTitleIcon(w),this._primaryHeading=x.a("span.filename"),this._secondaryHeading=x.a("span.dirname"),this._metaHeading=x.a("span.meta"),x.p(w,this._primaryHeading,this._secondaryHeading,this._metaHeading);var b=x.a(".peekview-actions");x.p(this._headElement,b);var Q=this._getActionBarOptions();this._actionbarWidget=new Mt.a(b,Q),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new zt.a("peekview.close",re.a("label.close","Close"),"codicon-close",!0,function(){return C.dispose(),Promise.resolve()}),{label:!1,icon:!0})},d.prototype._fillTitleIcon=function(u){},d.prototype._getActionBarOptions=function(){return{}},d.prototype._onTitleClick=function(u){},d.prototype.setTitle=function(u,C){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=on.o(u),this._primaryHeading.setAttribute("aria-label",u),C?this._secondaryHeading.innerHTML=on.o(C):x.s(this._secondaryHeading))},d.prototype.setMetaTitle=function(u){this._metaHeading&&(u?(this._metaHeading.innerHTML=on.o(u),x.W(this._metaHeading)):x.I(this._metaHeading))},d.prototype._doLayout=function(u,C){if(!this._isShowing&&u<0){this.dispose();return}var w=Math.ceil(this.editor.getOption(49)*1.2),b=Math.round(u-(w+2));this._doLayoutHead(w,C),this._doLayoutBody(b,C)},d.prototype._doLayoutHead=function(u,C){this._headElement&&(this._headElement.style.height=u+"px",this._headElement.style.lineHeight=this._headElement.style.height)},d.prototype._doLayoutBody=function(u,C){this._bodyElement&&(this._bodyElement.style.height=u+"px")},d}($n),xn=Object(se.Rb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},re.a("peekViewTitleBackground","Background color of the peek view title area.")),kn=Object(se.Rb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},re.a("peekViewTitleForeground","Color of the peek view title.")),Fn=Object(se.Rb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},re.a("peekViewTitleInfoForeground","Color of the peek view title info.")),oi=Object(se.Rb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:se.e},re.a("peekViewBorder","Color of the peek view borders and arrow.")),ci=Object(se.Rb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:I.a.black},re.a("peekViewResultsBackground","Background color of the peek view result list.")),Ui=Object(se.Rb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:I.a.white},re.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),rr=Object(se.Rb)("peekViewResult.fileForeground",{dark:I.a.white,light:"#1E1E1E",hc:I.a.white},re.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Xn=Object(se.Rb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},re.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Ri=Object(se.Rb)("peekViewResult.selectionForeground",{dark:I.a.white,light:"#6C6C6C",hc:I.a.white},re.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),wi=Object(se.Rb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:I.a.black},re.a("peekViewEditorBackground","Background color of the peek view editor.")),Bi=Object(se.Rb)("peekViewEditorGutter.background",{dark:wi,light:wi,hc:wi},re.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Vn=Object(se.Rb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},re.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),bi=Object(se.Rb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},re.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),ji=Object(se.Rb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:se.b},re.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor.")),Mi=o("S3by"),Gi;(function(y){function d(u){switch(u){case Mi.a.Ignore:return"severity-ignore codicon-info";case Mi.a.Info:return"codicon-info";case Mi.a.Warning:return"codicon-warning";case Mi.a.Error:return"codicon-error"}return""}y.className=d})(Gi||(Gi={})),Object(he.e)(function(y,d){var u=y.getColor(se.Nb);u&&d.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: `+u+`;
}
`);var C=y.getColor(se.Pb);u&&d.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: `+C+`;
}
`);var w=y.getColor(se.Ob);u&&d.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: `+w+`;
}
`)});var ki=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),mi=function(){function y(d,u,C,w){var b=this;this._openerService=w,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new P.b,this._editor=u;var Q=document.createElement("div");Q.className="descriptioncontainer",Q.setAttribute("aria-live","assertive"),Q.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),x.e(this._messageBlock,"message"),Q.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),Q.appendChild(this._relatedBlock),this._disposables.add(x.n(this._relatedBlock,"click",function(ke){ke.preventDefault();var rt=b._relatedDiagnostics.get(ke.target);rt&&C(rt)})),this._scrollable=new We.b(Q,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),d.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(function(ke){Q.style.left="-"+ke.scrollLeft+"px",Q.style.top="-"+ke.scrollTop+"px"})),this._disposables.add(this._scrollable)}return y.prototype.dispose=function(){Object(P.f)(this._disposables)},y.prototype.update=function(d){var u=this,C=d.source,w=d.message,b=d.relatedInformation,Q=d.code,ke=((C==null?void 0:C.length)||0)+"()".length;Q&&(typeof Q=="string"?ke+=Q.length:ke+=Q.value.length);var rt=w.split(/\r\n|\r|\n/g);this._lines=rt.length,this._longestLineLength=0;for(var Ie=0,lt=rt;Ie<lt.length;Ie++){var Pt=lt[Ie];this._longestLineLength=Math.max(Pt.length+ke,this._longestLineLength)}x.s(this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var qt=this._messageBlock,en=0,dn=rt;en<dn.length;en++){var Pt=dn[en];qt=document.createElement("div"),qt.innerText=Pt,Pt===""&&(qt.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(qt)}if(C||Q){var an=document.createElement("span");if(x.e(an,"details"),qt.appendChild(an),C){var bn=document.createElement("span");bn.innerText=C,x.e(bn,"source"),an.appendChild(bn)}if(Q)if(typeof Q=="string"){var Rn=document.createElement("span");Rn.innerText="("+Q+")",x.e(Rn,"code"),an.appendChild(Rn)}else{this._codeLink=x.a("a.code-link"),this._codeLink.setAttribute("href",""+Q.link.toString()),this._codeLink.onclick=function(Qi){u._openerService.open(Q.link),Qi.preventDefault(),Qi.stopPropagation()};var Rn=x.p(this._codeLink,x.a("span"));Rn.innerText=Q.value,an.appendChild(this._codeLink)}}if(x.s(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(Ke.q)(b)){var Pn=this._relatedBlock.appendChild(document.createElement("div"));Pn.style.paddingTop=Math.floor(this._editor.getOption(49)*.66)+"px",this._lines+=1;for(var ti=0,Dn=b;ti<Dn.length;ti++){var li=Dn[ti],qn=document.createElement("div"),xi=document.createElement("a");x.e(xi,"filename"),xi.innerHTML=Object(St.a)(li.resource)+"("+li.startLineNumber+", "+li.startColumn+"): ",xi.title=Object(St.b)(li.resource,void 0),this._relatedDiagnostics.set(xi,li);var ui=document.createElement("span");ui.innerText=li.message,qn.appendChild(xi),qn.appendChild(ui),this._lines+=1,Pn.appendChild(qn)}}var pr=this._editor.getOption(34),Oi=Math.ceil(pr.typicalFullwidthCharacterWidth*this._longestLineLength*.75),di=pr.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:Oi,scrollHeight:di})},y.prototype.layout=function(d,u){this._scrollable.getDomNode().style.height=d+"px",this._scrollable.getDomNode().style.width=u+"px",this._scrollable.setScrollDimensions({width:u,height:d})},y.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},y}(),qi=function(y){ki(d,y);function d(u,C,w,b){var Q=y.call(this,u,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return Q.actions=C,Q._themeService=w,Q._openerService=b,Q._callOnDispose=new P.b,Q._onDidSelectRelatedInformation=new X.a,Q.onDidSelectRelatedInformation=Q._onDidSelectRelatedInformation.event,Q._severity=me.c.Warning,Q._backgroundColor=I.a.white,Q._applyTheme(w.getTheme()),Q._callOnDispose.add(w.onThemeChange(Q._applyTheme.bind(Q))),Q.create(),Q}return d.prototype._applyTheme=function(u){this._backgroundColor=u.getColor(sr);var C=Yi;this._severity===me.c.Warning?C=ur:this._severity===me.c.Info&&(C=Ni);var w=u.getColor(C);this.style({arrowColor:w,frameColor:w,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:u.getColor(kn),secondaryHeadingColor:u.getColor(Fn)})},d.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),y.prototype._applyStyles.call(this)},d.prototype.dispose=function(){this._callOnDispose.dispose(),y.prototype.dispose.call(this)},d.prototype._fillHead=function(u){y.prototype._fillHead.call(this,u),this._actionbarWidget.push(this.actions,{label:!1,icon:!0,index:0})},d.prototype._fillTitleIcon=function(u){this._icon=x.p(u,x.a(""))},d.prototype._getActionBarOptions=function(){return{orientation:0}},d.prototype._fillBody=function(u){var C=this;this._parentContainer=u,x.e(u,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),u.appendChild(this._container),this._message=new mi(this._container,this.editor,function(w){return C._onDidSelectRelatedInformation.fire(w)},this._openerService),this._disposables.add(this._message)},d.prototype.show=function(u,C){throw new Error("call showAtMarker")},d.prototype.showAtMarker=function(u,C,w){this._container.classList.remove("stale"),this._message.update(u),this._severity=u.severity,this._applyTheme(this._themeService.getTheme());var b=V.a.lift(u),Q=this.editor.getPosition(),ke=Q&&b.containsPosition(Q)?Q:b.getStartPosition();y.prototype.show.call(this,ke,this.computeRequiredHeight());var rt=this.editor.getModel();if(rt){var Ie=w>1?re.a("problems","{0} of {1} problems",C,w):re.a("change","{0} of {1} problem",C,w);this.setTitle(Object(Me.b)(rt.uri),Ie)}this._icon.className="codicon "+Gi.className(me.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(ke,0),this.editor.focus()},d.prototype.updateMarker=function(u){this._container.classList.remove("stale"),this._message.update(u)},d.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},d.prototype._doLayoutBody=function(u,C){y.prototype._doLayoutBody.call(this,u,C),this._heightInPixel=u,this._message.layout(u,C),this._container.style.height=u+"px"},d.prototype._onWidth=function(u){this._message.layout(this._heightInPixel,u)},d.prototype._relayout=function(){y.prototype._relayout.call(this,this.computeRequiredHeight())},d.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},d}(wn),or=Object(se.Jb)(se.q,se.p),Ci=Object(se.Jb)(se.O,se.N),Di=Object(se.Jb)(se.H,se.G),Yi=Object(se.Rb)("editorMarkerNavigationError.background",{dark:or,light:or,hc:or},re.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),ur=Object(se.Rb)("editorMarkerNavigationWarning.background",{dark:Ci,light:Ci,hc:Ci},re.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Ni=Object(se.Rb)("editorMarkerNavigationInfo.background",{dark:Di,light:Di,hc:Di},re.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),sr=Object(se.Rb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:I.a.white,hc:"#0C141F"},re.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(he.e)(function(y,d){var u=y.getColor(se.cc);u&&(d.addRule(".monaco-editor .marker-widget a { color: "+u+"; }"),d.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+u+"; }"))});var $e=o("fjLI"),L=o("bexQ"),M=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),Z=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},De=function(y,d){return function(u,C){d(u,C,y)}},xe=function(y,d,u,C){function w(b){return b instanceof u?b:new u(function(Q){Q(b)})}return new(u||(u=Promise))(function(b,Q){function ke(lt){try{Ie(C.next(lt))}catch(Pt){Q(Pt)}}function rt(lt){try{Ie(C.throw(lt))}catch(Pt){Q(Pt)}}function Ie(lt){lt.done?b(lt.value):w(lt.value).then(ke,rt)}Ie((C=C.apply(y,d||[])).next())})},je=function(y,d){var u={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},C,w,b,Q;return Q={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ke(Ie){return function(lt){return rt([Ie,lt])}}function rt(Ie){if(C)throw new TypeError("Generator is already executing.");for(;u;)try{if(C=1,w&&(b=Ie[0]&2?w.return:Ie[0]?w.throw||((b=w.return)&&b.call(w),0):w.next)&&!(b=b.call(w,Ie[1])).done)return b;switch(w=0,b&&(Ie=[Ie[0]&2,b.value]),Ie[0]){case 0:case 1:b=Ie;break;case 4:return u.label++,{value:Ie[1],done:!1};case 5:u.label++,w=Ie[1],Ie=[0];continue;case 7:Ie=u.ops.pop(),u.trys.pop();continue;default:if(b=u.trys,!(b=b.length>0&&b[b.length-1])&&(Ie[0]===6||Ie[0]===2)){u=0;continue}if(Ie[0]===3&&(!b||Ie[1]>b[0]&&Ie[1]<b[3])){u.label=Ie[1];break}if(Ie[0]===6&&u.label<b[1]){u.label=b[1],b=Ie;break}if(b&&u.label<b[2]){u.label=b[2],u.ops.push(Ie);break}b[2]&&u.ops.pop(),u.trys.pop();continue}Ie=d.call(y,u)}catch(lt){Ie=[6,lt],w=0}finally{C=b=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},ht=function(){function y(d,u){var C=this;this._toUnbind=new P.b,this._editor=d,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new X.a,this._onMarkerSetChanged=new X.a,this.setMarkers(u),this._toUnbind.add(this._editor.onDidDispose(function(){return C.dispose()})),this._toUnbind.add(this._editor.onDidChangeCursorPosition(function(){C._ignoreSelectionChange||C.currentMarker&&C._editor.getPosition()&&V.a.containsPosition(C.currentMarker,C._editor.getPosition())||(C._nextIdx=-1)}))}return Object.defineProperty(y.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event},enumerable:!0,configurable:!0}),y.prototype.setMarkers=function(d){var u=this._nextIdx>=0?this._markers[this._nextIdx]:void 0;this._markers=d||[],this._markers.sort(yt.compareMarker),u?this._nextIdx=Math.max(-1,Object(Ke.c)(this._markers,u,yt.compareMarker)):this._nextIdx=-1,this._onMarkerSetChanged.fire(this)},y.prototype.withoutWatchingEditorPosition=function(d){this._ignoreSelectionChange=!0;try{d()}finally{this._ignoreSelectionChange=!1}},y.prototype._initIdx=function(d){for(var u=!1,C=this._editor.getPosition(),w=0;w<this._markers.length;w++){var b=V.a.lift(this._markers[w]);if(b.isEmpty()&&this._editor.getModel()){var Q=this._editor.getModel().getWordAtPosition(b.getStartPosition());Q&&(b=new V.a(b.startLineNumber,Q.startColumn,b.startLineNumber,Q.endColumn))}if(C&&(b.containsPosition(C)||C.isBeforeOrEqual(b.getStartPosition()))){this._nextIdx=w,u=!0;break}}u||(this._nextIdx=d?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)},Object.defineProperty(y.prototype,"currentMarker",{get:function(){return this.canNavigate()?this._markers[this._nextIdx]:void 0},set:function(u){var C=this._nextIdx;this._nextIdx=-1,u&&(this._nextIdx=this.indexOf(u)),this._nextIdx!==C&&this._onCurrentMarkerChanged.fire(u)},enumerable:!0,configurable:!0}),y.prototype.move=function(d,u){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!u;var C=this._nextIdx,w=!1;if(this._nextIdx===-1?this._initIdx(d):d?u||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:w=!0:d||(u||this._nextIdx>0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:w=!0),C!==this._nextIdx){var b=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(b)}return w},y.prototype.canNavigate=function(){return this._markers.length>0},y.prototype.findMarkerAtPosition=function(d){return Object(Ke.h)(this._markers,function(u){return V.a.containsPosition(u,d)})},Object.defineProperty(y.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),y.prototype.indexOf=function(d){return 1+this._markers.indexOf(d)},y.prototype.dispose=function(){this._toUnbind.dispose()},y}(),ut=function(){function y(d,u,C,w,b,Q,ke){this._markerService=u,this._contextKeyService=C,this._themeService=w,this._editorService=b,this._keybindingService=Q,this._openerService=ke,this._model=null,this._widget=null,this._disposeOnClose=new P.b,this._editor=d,this._widgetVisible=Xt.bindTo(this._contextKeyService)}return y.get=function(d){return d.getContribution(y.ID)},y.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},y.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},y.prototype.getOrCreateModel=function(){var d=this;if(this._model)return this._model;var u=this._getMarkers();this._model=new ht(this._editor,u),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var C=this._keybindingService.lookupKeybinding(Rt.ID),w=this._keybindingService.lookupKeybinding(It.ID),b=[new zt.a(It.ID,It.LABEL+(w?" ("+w.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),function(){return xe(d,void 0,void 0,function(){return je(this,function(Ie){return this._model&&this._model.move(!0,!0),[2]})})}),new zt.a(Rt.ID,Rt.LABEL+(C?" ("+C.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),function(){return xe(d,void 0,void 0,function(){return je(this,function(Ie){return this._model&&this._model.move(!1,!0),[2]})})})];this._widget=new qi(this._editor,b,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose(function(){return d.closeMarkersNavigation()},this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var Q=0,ke=b;Q<ke.length;Q++){var rt=ke[Q];this._disposeOnClose.add(rt)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation(function(Ie){d._editorService.openCodeEditor({resource:Ie.resource,options:{pinned:!0,revealIfOpened:!0,selection:V.a.lift(Ie).collapseToStart()}},d._editor).then(void 0,U.e),d.closeMarkersNavigation(!1)})),this._disposeOnClose.add(this._editor.onDidChangeModel(function(){return d._cleanUp()})),this._disposeOnClose.add(this._model.onCurrentMarkerChanged(function(Ie){!Ie||!d._model?d._cleanUp():d._model.withoutWatchingEditorPosition(function(){!d._widget||!d._model||d._widget.showAtMarker(Ie,d._model.indexOf(Ie),d._model.total)})})),this._disposeOnClose.add(this._model.onMarkerSetChanged(function(){if(!(!d._widget||!d._widget.position||!d._model)){var Ie=d._model.findMarkerAtPosition(d._widget.position);Ie?d._widget.updateMarker(Ie):d._widget.showStale()}})),this._model},y.prototype.closeMarkersNavigation=function(d){d===void 0&&(d=!0),this._cleanUp(),d&&this._editor.focus()},y.prototype.show=function(d){var u=this.getOrCreateModel();u.currentMarker=d},y.prototype._onMarkerChanged=function(d){var u=this._editor.getModel();!u||!this._model||!d.some(function(C){return Object(Me.e)(u.uri,C)})||this._model.setMarkers(this._getMarkers())},y.prototype._getMarkers=function(){var d=this._editor.getModel();return d?this._markerService.read({resource:d.uri,severities:me.c.Error|me.c.Warning|me.c.Info}):[]},y.ID="editor.contrib.markerController",y=Z([De(1,me.b),De(2,ge.c),De(3,he.c),De(4,k.a),De(5,L.a),De(6,Re.a)],y),y}(),yt=function(y){M(d,y);function d(u,C,w){var b=y.call(this,w)||this;return b._isNext=u,b._multiFile=C,b}return d.prototype.run=function(u,C){var w=this,b=u.get(me.b),Q=u.get(k.a),ke=ut.get(C);if(!ke)return Promise.resolve(void 0);var rt=ke.getOrCreateModel(),Ie=rt.move(this._isNext,!this._multiFile);if(!Ie||!this._multiFile)return Promise.resolve(void 0);var lt=b.read({severities:me.c.Error|me.c.Warning|me.c.Info}).sort(d.compareMarker);if(lt.length===0)return Promise.resolve(void 0);var Pt=C.getModel();if(!Pt)return Promise.resolve(void 0);var qt=rt.currentMarker||{resource:Pt.uri,severity:me.c.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},en=Object(Ke.c)(lt,qt,d.compareMarker);en<0?(en=~en,en%=lt.length):this._isNext?en=(en+1)%lt.length:en=(en+lt.length-1)%lt.length;var dn=lt[en];return Object(Me.e)(dn.resource,Pt.uri)?(rt.move(this._isNext,!0),Promise.resolve(void 0)):(ke.closeMarkersNavigation(),Q.openCodeEditor({resource:dn.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:dn}},C).then(function(an){if(!!an)return an.getAction(w.id).run()}))},d.compareMarker=function(u,C){var w=Object(on.e)(u.resource.toString(),C.resource.toString());return w===0&&(w=me.c.compare(u.severity,C.severity)),w===0&&(w=V.a.compareRangesUsingStarts(u,C)),w},d}(F.b),It=function(y){M(d,y);function d(){return y.call(this,!0,!1,{id:d.ID,label:d.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:B.a.writable,kbOpts:{kbExpr:B.a.focus,primary:512|66,weight:100}})||this}return d.ID="editor.action.marker.next",d.LABEL=re.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),d}(yt),Rt=function(y){M(d,y);function d(){return y.call(this,!1,!1,{id:d.ID,label:d.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:B.a.writable,kbOpts:{kbExpr:B.a.focus,primary:1024|512|66,weight:100}})||this}return d.ID="editor.action.marker.prev",d.LABEL=re.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),d}(yt),Wt=function(y){M(d,y);function d(){return y.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:re.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:B.a.writable,kbOpts:{kbExpr:B.a.focus,primary:66,weight:100}})||this}return d}(yt),Zt=function(y){M(d,y);function d(){return y.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:re.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:B.a.writable,kbOpts:{kbExpr:B.a.focus,primary:1024|66,weight:100}})||this}return d}(yt);Object(F.h)(ut.ID,ut),Object(F.f)(It),Object(F.f)(Rt),Object(F.f)(Wt),Object(F.f)(Zt);var Xt=new ge.d("markersNavigationVisible",!1),ln=F.c.bindToContribution(ut.get);Object(F.g)(new ln({id:"closeMarkersNavigation",precondition:Xt,handler:function(d){return d.closeMarkersNavigation()},kbOpts:{weight:100+50,kbExpr:B.a.focus,primary:9,secondary:[1024|9]}})),$e.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.nextInFiles",title:re.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem")},order:1}),$e.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.prevInFiles",title:re.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem")},order:2});var hn=o("vATl"),Tn=o("gCVg"),pn=function(){function y(d){this.value=d}return y.prototype.equals=function(d){return this.value===d.value},y.prototype.contains=function(d){return this.equals(d)||this.value===""||Object(on.M)(d.value,this.value+y.sep)},y.prototype.intersects=function(d){return this.contains(d)||d.contains(this)},y.prototype.append=function(d){return new y(this.value+y.sep+d)},y.sep=".",y.None=new y("@@none@@"),y.Empty=new y(""),y.QuickFix=new y("quickfix"),y.Refactor=new y("refactor"),y.Source=new y("source"),y.SourceOrganizeImports=y.Source.append("organizeImports"),y.SourceFixAll=y.Source.append("fixAll"),y}();function Nn(y,d){return!(y.include&&!y.include.intersects(d)||y.excludes&&y.excludes.some(function(u){return Oe(d,u,y.include)})||!y.includeSourceActions&&pn.Source.contains(d))}function In(y,d){var u=d.kind?new pn(d.kind):void 0;return!(y.include&&(!u||!y.include.contains(u))||y.excludes&&u&&y.excludes.some(function(C){return Oe(u,C,y.include)})||!y.includeSourceActions&&u&&pn.Source.contains(u)||y.onlyIncludePreferredActions&&!d.isPreferred)}function Oe(y,d,u){return!(!d.contains(y)||u&&d.contains(u))}var j=function(){function y(d,u,C){this.kind=d,this.apply=u,this.preferred=C}return y.fromUser=function(d,u){return!d||typeof d!="object"?new y(u.kind,u.apply,!1):new y(y.getKindFromUser(d,u.kind),y.getApplyFromUser(d,u.apply),y.getPreferredUser(d))},y.getApplyFromUser=function(d,u){switch(typeof d.apply=="string"?d.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return u}},y.getKindFromUser=function(d,u){return typeof d.kind=="string"?new pn(d.kind):u},y.getPreferredUser=function(d){return typeof d.preferred=="boolean"?d.preferred:!1},y}(),ae=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),Fe=function(y,d,u,C){function w(b){return b instanceof u?b:new u(function(Q){Q(b)})}return new(u||(u=Promise))(function(b,Q){function ke(lt){try{Ie(C.next(lt))}catch(Pt){Q(Pt)}}function rt(lt){try{Ie(C.throw(lt))}catch(Pt){Q(Pt)}}function Ie(lt){lt.done?b(lt.value):w(lt.value).then(ke,rt)}Ie((C=C.apply(y,d||[])).next())})},qe=function(y,d){var u={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},C,w,b,Q;return Q={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ke(Ie){return function(lt){return rt([Ie,lt])}}function rt(Ie){if(C)throw new TypeError("Generator is already executing.");for(;u;)try{if(C=1,w&&(b=Ie[0]&2?w.return:Ie[0]?w.throw||((b=w.return)&&b.call(w),0):w.next)&&!(b=b.call(w,Ie[1])).done)return b;switch(w=0,b&&(Ie=[Ie[0]&2,b.value]),Ie[0]){case 0:case 1:b=Ie;break;case 4:return u.label++,{value:Ie[1],done:!1};case 5:u.label++,w=Ie[1],Ie=[0];continue;case 7:Ie=u.ops.pop(),u.trys.pop();continue;default:if(b=u.trys,!(b=b.length>0&&b[b.length-1])&&(Ie[0]===6||Ie[0]===2)){u=0;continue}if(Ie[0]===3&&(!b||Ie[1]>b[0]&&Ie[1]<b[3])){u.label=Ie[1];break}if(Ie[0]===6&&u.label<b[1]){u.label=b[1],b=Ie;break}if(b&&u.label<b[2]){u.label=b[2],u.ops.push(Ie);break}b[2]&&u.ops.pop(),u.trys.pop();continue}Ie=d.call(y,u)}catch(lt){Ie=[6,lt],w=0}finally{C=b=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},ct=function(){for(var y=0,d=0,u=arguments.length;d<u;d++)y+=arguments[d].length;for(var C=Array(y),w=0,d=0;d<u;d++)for(var b=arguments[d],Q=0,ke=b.length;Q<ke;Q++,w++)C[w]=b[Q];return C},wt="editor.action.codeAction",Ge="editor.action.refactor",le="editor.action.sourceAction",Y="editor.action.organizeImports",Ve="editor.action.fixAll",at=function(y){ae(d,y);function d(u,C){var w=y.call(this)||this;return w._register(C),w.allActions=Object(Ke.r)(ct(u),d.codeActionsComparator),w.validActions=w.allActions.filter(function(b){return!b.disabled}),w}return d.codeActionsComparator=function(u,C){return Object(Ke.q)(u.diagnostics)?Object(Ke.q)(C.diagnostics)?u.diagnostics[0].message.localeCompare(C.diagnostics[0].message):-1:Object(Ke.q)(C.diagnostics)?1:0},Object.defineProperty(d.prototype,"hasAutoFix",{get:function(){return this.validActions.some(function(C){return!!C.kind&&pn.QuickFix.contains(new pn(C.kind))&&!!C.isPreferred})},enumerable:!0,configurable:!0}),d}(P.a);function et(y,d,u,C){var w=this,b,Q=u.filter||{},ke={only:(b=Q.include)===null||b===void 0?void 0:b.value,trigger:u.type},rt=new hn.d(y,C),Ie=J(y,Q),lt=new P.b,Pt=Ie.map(function(en){return Fe(w,void 0,void 0,function(){var dn,an;return qe(this,function(bn){switch(bn.label){case 0:return bn.trys.push([0,2,,3]),[4,en.provideCodeActions(y,d,ke,rt.token)];case 1:return dn=bn.sent(),rt.token.isCancellationRequested||!dn?[2,[]]:(lt.add(dn),[2,dn.actions.filter(function(Rn){return Rn&&In(Q,Rn)})]);case 2:if(an=bn.sent(),Object(U.d)(an))throw an;return Object(U.f)(an),[2,[]];case 3:return[2]}})})}),qt=te.a.onDidChange(function(){var en=te.a.all(y);Object(Ke.g)(en,Ie)||rt.cancel()});return Promise.all(Pt).then(Ke.m).then(function(en){return new at(en,lt)}).finally(function(){qt.dispose(),rt.dispose()})}function J(y,d){return te.a.all(y).filter(function(u){return u.providedCodeActionKinds?u.providedCodeActionKinds.some(function(C){return Nn(d,new pn(C))}):!0})}Object(F.j)("_executeCodeActionProvider",function(y,d){return Fe(this,void 0,void 0,function(){var u,C,w,b,Q,ke;return qe(this,function(rt){switch(rt.label){case 0:if(u=d.resource,C=d.rangeOrSelection,w=d.kind,!(u instanceof _.a)||(b=y.get(h.a).getModel(u),!b)||(Q=Tn.a.isISelection(C)?Tn.a.liftSelection(C):V.a.isIRange(C)?b.validateRange(C):void 0,!Q))throw Object(U.b)();return[4,et(b,Q,{type:2,filter:{includeSourceActions:!0,include:w&&w.value?new pn(w.value):void 0}},S.a.None)];case 1:return ke=rt.sent(),setTimeout(function(){return ke.dispose()},100),[2,ke.validActions]}})})});var be=function(){function y(d){this.executor=d,this._didRun=!1}return y.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(d){this._error=d}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(y.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),y}(),Le=o("x/UI"),it=o("synD"),Je=o("OBOq"),Be=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),bt=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},Lt=function(y,d){return function(u,C){d(u,C,y)}},$t=function(y){Be(d,y);function d(u,C){var w=y.call(this)||this;return w.closeTimeout=3e3,w._messageWidget=w._register(new P.d),w._messageListeners=w._register(new P.b),w._editor=u,w._visible=d.MESSAGE_VISIBLE.bindTo(C),w._register(w._editor.onDidAttemptReadOnlyEdit(function(){return w._onDidAttemptReadOnlyEdit()})),w}return d.get=function(u){return u.getContribution(d.ID)},d.prototype.dispose=function(){y.prototype.dispose.call(this),this._visible.reset()},d.prototype.showMessage=function(u,C){var w=this;Object(Je.a)(u),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new Bt(this._editor,C,u),this._messageListeners.add(this._editor.onDidBlurEditorText(function(){return w.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(function(){return w.closeMessage()})),this._messageListeners.add(this._editor.onDidDispose(function(){return w.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeModel(function(){return w.closeMessage()})),this._messageListeners.add(new v.e(function(){return w.closeMessage()},this.closeTimeout));var b;this._messageListeners.add(this._editor.onMouseMove(function(Q){!Q.target.position||(b?b.containsPosition(Q.target.position)||w.closeMessage():b=new V.a(C.lineNumber-3,1,Q.target.position.lineNumber+3,1))}))},d.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(Bt.fadeOut(this._messageWidget.value))},d.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(re.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},d.ID="editor.contrib.messageController",d.MESSAGE_VISIBLE=new ge.d("messageVisible",!1),d=bt([Lt(1,ge.c)],d),d}(P.a),Tt=F.c.bindToContribution($t.get);Object(F.g)(new Tt({id:"leaveEditorMessage",precondition:$t.MESSAGE_VISIBLE,handler:function(d){return d.closeMessage()},kbOpts:{weight:100+30,primary:9}}));var Bt=function(){function y(d,u,C){var w=u.lineNumber,b=u.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=d,this._editor.revealLinesInCenterIfOutsideViewport(w,w,0),this._position={lineNumber:w,column:b-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var Q=document.createElement("div");Q.classList.add("message"),Q.textContent=C,this._domNode.appendChild(Q);var ke=document.createElement("div");ke.classList.add("anchor"),this._domNode.appendChild(ke),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return y.fadeOut=function(d){var u,C=function w(){d.dispose(),clearTimeout(u),d.getDomNode().removeEventListener("animationend",w)};return u=setTimeout(C,110),d.getDomNode().addEventListener("animationend",C),d.getDomNode().classList.add("fadeOut"),{dispose:C}},y.prototype.dispose=function(){this._editor.removeContentWidget(this)},y.prototype.getId=function(){return"messageoverlay"},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},y}();Object(F.h)($t.ID,$t),Object(he.e)(function(y,d){var u=y.getColor(se.fb);if(u){var C=y.type===he.b?2:1;d.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+u+"; }"),d.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+C+"px solid "+u+"; }")}var w=y.getColor(se.eb);w&&d.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+w+"; }");var b=y.getColor(se.gb);b&&d.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+b+"; }")});var fn=o("Uzvx"),Cn=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),vn=function(){return vn=Object.assign||function(y){for(var d,u=1,C=arguments.length;u<C;u++){d=arguments[u];for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(y[w]=d[w])}return y},vn.apply(this,arguments)},Hn=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},Yn=function(y,d){return function(u,C){d(u,C,y)}},Zn=function(y,d,u,C){function w(b){return b instanceof u?b:new u(function(Q){Q(b)})}return new(u||(u=Promise))(function(b,Q){function ke(lt){try{Ie(C.next(lt))}catch(Pt){Q(Pt)}}function rt(lt){try{Ie(C.throw(lt))}catch(Pt){Q(Pt)}}function Ie(lt){lt.done?b(lt.value):w(lt.value).then(ke,rt)}Ie((C=C.apply(y,d||[])).next())})},Vi=function(y,d){var u={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},C,w,b,Q;return Q={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ke(Ie){return function(lt){return rt([Ie,lt])}}function rt(Ie){if(C)throw new TypeError("Generator is already executing.");for(;u;)try{if(C=1,w&&(b=Ie[0]&2?w.return:Ie[0]?w.throw||((b=w.return)&&b.call(w),0):w.next)&&!(b=b.call(w,Ie[1])).done)return b;switch(w=0,b&&(Ie=[Ie[0]&2,b.value]),Ie[0]){case 0:case 1:b=Ie;break;case 4:return u.label++,{value:Ie[1],done:!1};case 5:u.label++,w=Ie[1],Ie=[0];continue;case 7:Ie=u.ops.pop(),u.trys.pop();continue;default:if(b=u.trys,!(b=b.length>0&&b[b.length-1])&&(Ie[0]===6||Ie[0]===2)){u=0;continue}if(Ie[0]===3&&(!b||Ie[1]>b[0]&&Ie[1]<b[3])){u.label=Ie[1];break}if(Ie[0]===6&&u.label<b[1]){u.label=b[1],b=Ie;break}if(b&&u.label<b[2]){u.label=b[2],u.ops.push(Ie);break}b[2]&&u.ops.pop(),u.trys.pop();continue}Ie=d.call(y,u)}catch(lt){Ie=[6,lt],w=0}finally{C=b=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},ii=function(){for(var y=0,d=0,u=arguments.length;d<u;d++)y+=arguments[d].length;for(var C=Array(y),w=0,d=0;d<u;d++)for(var b=arguments[d],Q=0,ke=b.length;Q<ke;Q++,w++)C[w]=b[Q];return C},Ai=function(y){Cn(d,y);function d(u,C){var w=y.call(this,u.command?u.command.id:u.title,u.title,void 0,!u.disabled,C)||this;return w.action=u,w}return d}(zt.a),lr=function(y){Cn(d,y);function d(u,C,w,b){var Q=y.call(this)||this;return Q._editor=u,Q._delegate=C,Q._contextMenuService=w,Q._visible=!1,Q._showingActions=Q._register(new P.d),Q._keybindingResolver=new er({getKeybindings:function(){return b.getKeybindings()}}),Q}return Object.defineProperty(d.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),d.prototype.show=function(u,C,w,b){return Zn(this,void 0,void 0,function(){var Q,ke,rt,Ie,lt=this;return Vi(this,function(Pt){if(Q=b.includeDisabledActions?C.allActions:C.validActions,!Q.length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(U.a)();return this._visible=!0,this._showingActions.value=C,ke=this.getMenuActions(u,Q),rt=D.a.isIPosition(w)?this._toCoords(w):w||{x:0,y:0},Ie=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return rt},getActions:function(){return ke},onHide:function(){lt._visible=!1,lt._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(en){return en instanceof Ai?Ie(en.action):void 0}}),[2]})})},d.prototype.getMenuActions=function(u,C){var w=this,b,Q,ke=function(an){return new Ai(an,function(){return w._delegate.onSelectCodeAction(an)})},rt=C.map(ke),Ie=this._editor.getModel();if(Ie&&rt.length)for(var lt=0,Pt=te.a.all(Ie);lt<Pt.length;lt++){var qt=Pt[lt];if(qt._getAdditionalMenuItems){var en=qt._getAdditionalMenuItems({trigger:u.type,only:(Q=(b=u.filter)===null||b===void 0?void 0:b.include)===null||Q===void 0?void 0:Q.value},C);en.length&&rt.push.apply(rt,ii([new Mt.d],en.map(function(dn){return ke({title:dn.title,command:dn})})))}}return rt},d.prototype._toCoords=function(u){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(u,1),this._editor.render();var C=this._editor.getScrolledVisiblePosition(u),w=Object(x.B)(this._editor.getDomNode()),b=w.left+C.left,Q=w.top+C.top+C.height;return{x:b,y:Q}},d=Hn([Yn(2,fn.a),Yn(3,L.a)],d),d}(P.a),er=function(){function y(d){this._keybindingProvider=d}return y.prototype.getResolver=function(){var d=this,u=new be(function(){return d._keybindingProvider.getKeybindings().filter(function(C){return y.codeActionCommands.indexOf(C.command)>=0}).filter(function(C){return C.resolvedKeybinding}).map(function(C){var w=C.commandArgs;return C.command===Y?w={kind:pn.SourceOrganizeImports.value}:C.command===Ve&&(w={kind:pn.SourceFixAll.value}),vn({resolvedKeybinding:C.resolvedKeybinding},j.fromUser(w,{kind:pn.None,apply:"never"}))})});return function(C){if(C.kind){var w=d.bestKeybindingForCodeAction(C,u.getValue());return w==null?void 0:w.resolvedKeybinding}}},y.prototype.bestKeybindingForCodeAction=function(d,u){if(!!d.kind){var C=new pn(d.kind);return u.filter(function(w){return w.kind.contains(C)}).filter(function(w){return w.preferred?d.isPreferred:!0}).reduceRight(function(w,b){return w?w.kind.contains(b.kind)?b:w:b},void 0)}},y.codeActionCommands=[Ge,wt,le,Y,Ve],y}(),tr=o("MNXI"),Un=o("pg8w"),Hr=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),Li=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},Eo=function(y,d){return function(u,C){d(u,C,y)}},Rr;(function(y){y.Hidden={type:0};var d=function(){function u(C,w,b,Q){this.actions=C,this.trigger=w,this.editorPosition=b,this.widgetPosition=Q,this.type=1}return u}();y.Showing=d})(Rr||(Rr={}));var Ur=function(y){Hr(d,y);function d(u,C,w,b){var Q=y.call(this)||this;return Q._editor=u,Q._quickFixActionId=C,Q._preferredFixActionId=w,Q._keybindingService=b,Q._onClick=Q._register(new X.a),Q.onClick=Q._onClick.event,Q._state=Rr.Hidden,Q._domNode=document.createElement("div"),Q._domNode.className="codicon codicon-lightbulb",Q._editor.addContentWidget(Q),Q._register(Q._editor.onDidChangeModelContent(function(ke){var rt=Q._editor.getModel();(Q.state.type!==1||!rt||Q.state.editorPosition.lineNumber>=rt.getLineCount())&&Q.hide()})),Un.b.ignoreTarget(Q._domNode),Q._register(x.m(Q._domNode,function(ke){if(Q.state.type===1){Q._editor.focus(),ke.preventDefault();var rt=x.B(Q._domNode),Ie=rt.top,lt=rt.height,Pt=Q._editor.getOption(49),qt=Math.floor(Pt/3);Q.state.widgetPosition.position!==null&&Q.state.widgetPosition.position.lineNumber<Q.state.editorPosition.lineNumber&&(qt+=Pt),Q._onClick.fire({x:ke.posx,y:Ie+lt+qt,actions:Q.state.actions,trigger:Q.state.trigger})}})),Q._register(x.i(Q._domNode,"mouseenter",function(ke){if((ke.buttons&1)==1){Q.hide();var rt=new _e.a;rt.startMonitoring(ke.target,ke.buttons,_e.b,function(){},function(){rt.dispose()})}})),Q._register(Q._editor.onDidChangeConfiguration(function(ke){ke.hasChanged(47)&&!Q._editor.getOption(47).enabled&&Q.hide()})),Q._updateLightBulbTitle(),Q._register(Q._keybindingService.onDidUpdateKeybindings(Q._updateLightBulbTitle,Q)),Q}return d.prototype.dispose=function(){y.prototype.dispose.call(this),this._editor.removeContentWidget(this)},d.prototype.getId=function(){return"LightBulbWidget"},d.prototype.getDomNode=function(){return this._domNode},d.prototype.getPosition=function(){return this._state.type===1?this._state.widgetPosition:null},d.prototype.update=function(u,C,w){var b=this;if(u.validActions.length<=0)return this.hide();var Q=this._editor.getOptions();if(!Q.get(47).enabled)return this.hide();var ke=w.lineNumber,rt=w.column,Ie=this._editor.getModel();if(!Ie)return this.hide();var lt=Ie.getOptions().tabSize,Pt=Q.get(34),qt=Ie.getLineContent(ke),en=T.b.computeIndentLevel(qt,lt),dn=Pt.spaceWidth*en>22,an=function(Pn){return Pn>2&&b._editor.getTopForLineNumber(Pn)===b._editor.getTopForLineNumber(Pn-1)},bn=ke;if(!dn){if(ke>1&&!an(ke-1))bn-=1;else if(!an(ke+1))bn+=1;else if(rt*Pt.spaceWidth<22)return this.hide()}this.state=new Rr.Showing(u,C,w,{position:{lineNumber:bn,column:1},preference:d._posPref}),x.X(this._domNode,"codicon-lightbulb-autofix",u.hasAutoFix),this._editor.layoutContentWidget(this)},d.prototype.hide=function(){this.state=Rr.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(d.prototype,"state",{get:function(){return this._state},set:function(C){this._state=C,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),d.prototype._updateLightBulbTitle=function(){if(this.state.type===1&&this.state.actions.hasAutoFix){var u=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(u){this.title=re.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",u.getLabel());return}}var C=this._keybindingService.lookupKeybinding(this._quickFixActionId);C?this.title=re.a("quickFixWithKb","Show Fixes ({0})",C.getLabel()):this.title=re.a("quickFix","Show Fixes")},Object.defineProperty(d.prototype,"title",{set:function(C){this._domNode.title=C},enumerable:!0,configurable:!0}),d._posPref=[0],d=Li([Eo(3,L.a)],d),d}(P.a);Object(he.e)(function(y,d){var u=y.getColor(se.J);u&&d.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb {
color: `+u+`;
}`);var C=y.getColor(se.I);C&&d.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb-autofix {
color: `+C+`;
}`)});var Ar=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),eo=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},go=function(y,d){return function(u,C){d(u,C,y)}},dr=function(y,d,u,C){function w(b){return b instanceof u?b:new u(function(Q){Q(b)})}return new(u||(u=Promise))(function(b,Q){function ke(lt){try{Ie(C.next(lt))}catch(Pt){Q(Pt)}}function rt(lt){try{Ie(C.throw(lt))}catch(Pt){Q(Pt)}}function Ie(lt){lt.done?b(lt.value):w(lt.value).then(ke,rt)}Ie((C=C.apply(y,d||[])).next())})},Sr=function(y,d){var u={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},C,w,b,Q;return Q={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ke(Ie){return function(lt){return rt([Ie,lt])}}function rt(Ie){if(C)throw new TypeError("Generator is already executing.");for(;u;)try{if(C=1,w&&(b=Ie[0]&2?w.return:Ie[0]?w.throw||((b=w.return)&&b.call(w),0):w.next)&&!(b=b.call(w,Ie[1])).done)return b;switch(w=0,b&&(Ie=[Ie[0]&2,b.value]),Ie[0]){case 0:case 1:b=Ie;break;case 4:return u.label++,{value:Ie[1],done:!1};case 5:u.label++,w=Ie[1],Ie=[0];continue;case 7:Ie=u.ops.pop(),u.trys.pop();continue;default:if(b=u.trys,!(b=b.length>0&&b[b.length-1])&&(Ie[0]===6||Ie[0]===2)){u=0;continue}if(Ie[0]===3&&(!b||Ie[1]>b[0]&&Ie[1]<b[3])){u.label=Ie[1];break}if(Ie[0]===6&&u.label<b[1]){u.label=b[1],b=Ie;break}if(b&&u.label<b[2]){u.label=b[2],u.ops.push(Ie);break}b[2]&&u.ops.pop(),u.trys.pop();continue}Ie=d.call(y,u)}catch(lt){Ie=[6,lt],w=0}finally{C=b=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},po=function(y){Ar(d,y);function d(u,C,w,b,Q){var ke=y.call(this)||this;return ke._editor=u,ke.delegate=b,ke._activeCodeActions=ke._register(new P.d),ke._codeActionWidget=new be(function(){return ke._register(Q.createInstance(lr,ke._editor,{onSelectCodeAction:function(Ie){return dr(ke,void 0,void 0,function(){return Sr(this,function(lt){return this.delegate.applyCodeAction(Ie,!0),[2]})})}}))}),ke._lightBulbWidget=new be(function(){var rt=ke._register(Q.createInstance(Ur,ke._editor,C,w));return ke._register(rt.onClick(function(Ie){return ke.showCodeActionList(Ie.trigger,Ie.actions,Ie,{includeDisabledActions:!1})})),rt}),ke}return d.prototype.update=function(u){var C,w,b;return dr(this,void 0,void 0,function(){var Q,ke,rt,Ie,lt;return Sr(this,function(Pt){switch(Pt.label){case 0:if(u.type!==1)return(C=this._lightBulbWidget.rawValue)===null||C===void 0||C.hide(),[2];Pt.label=1;case 1:return Pt.trys.push([1,3,,4]),[4,u.actions];case 2:return Q=Pt.sent(),[3,4];case 3:return ke=Pt.sent(),Object(U.e)(ke),[2];case 4:if(this._lightBulbWidget.getValue().update(Q,u.trigger,u.position),u.trigger.type!==2)return[3,11];if(!((w=u.trigger.filter)===null||w===void 0?void 0:w.include))return[3,10];if(rt=this.tryGetValidActionToApply(u.trigger,Q),!rt)return[3,9];Pt.label=5;case 5:return Pt.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(rt,!1)];case 6:return Pt.sent(),[3,8];case 7:return Q.dispose(),[7];case 8:return[2];case 9:if(u.trigger.context&&(Ie=this.getInvalidActionThatWouldHaveBeenApplied(u.trigger,Q),Ie&&Ie.disabled))return $t.get(this._editor).showMessage(Ie.disabled,u.trigger.context.position),Q.dispose(),[2];Pt.label=10;case 10:return lt=!!((b=u.trigger.filter)===null||b===void 0?void 0:b.include),u.trigger.context&&(!Q.allActions.length||!lt&&!Q.validActions.length)?($t.get(this._editor).showMessage(u.trigger.context.notAvailableMessage,u.trigger.context.position),this._activeCodeActions.value=Q,Q.dispose(),[2]):(this._activeCodeActions.value=Q,this._codeActionWidget.getValue().show(u.trigger,Q,u.position,{includeDisabledActions:lt}),[3,12]);case 11:this._codeActionWidget.getValue().isVisible?Q.dispose():this._activeCodeActions.value=Q,Pt.label=12;case 12:return[2]}})})},d.prototype.getInvalidActionThatWouldHaveBeenApplied=function(u,C){if(!!C.allActions.length&&(u.autoApply==="first"&&C.validActions.length===0||u.autoApply==="ifSingle"&&C.allActions.length===1))return Object(Ke.h)(C.allActions,function(w){return w.disabled})},d.prototype.tryGetValidActionToApply=function(u,C){if(!!C.validActions.length&&(u.autoApply==="first"&&C.validActions.length>0||u.autoApply==="ifSingle"&&C.validActions.length===1))return C.validActions[0]},d.prototype.showCodeActionList=function(u,C,w,b){return dr(this,void 0,void 0,function(){return Sr(this,function(Q){return this._codeActionWidget.getValue().show(u,C,w,b),[2]})})},d=eo([go(4,Mn.a)],d),d}(P.a),ko=o("tTk5"),Oo=o("XXUj"),Ti=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),zr=new ge.d("supportedCodeAction",""),is=function(y){Ti(d,y);function d(u,C,w,b){b===void 0&&(b=250);var Q=y.call(this)||this;return Q._editor=u,Q._markerService=C,Q._signalChange=w,Q._delay=b,Q._autoTriggerTimer=Q._register(new v.e),Q._register(Q._markerService.onMarkerChanged(function(ke){return Q._onMarkerChanges(ke)})),Q._register(Q._editor.onDidChangeCursorPosition(function(){return Q._onCursorChange()})),Q}return d.prototype.trigger=function(u){var C=this._getRangeOfSelectionUnlessWhitespaceEnclosed(u);return this._createEventAndSignalChange(u,C)},d.prototype._onMarkerChanges=function(u){var C=this,w=this._editor.getModel();!w||u.some(function(b){return Object(Me.e)(b,w.uri)})&&this._autoTriggerTimer.cancelAndSet(function(){C.trigger({type:1})},this._delay)},d.prototype._onCursorChange=function(){var u=this;this._autoTriggerTimer.cancelAndSet(function(){u.trigger({type:1})},this._delay)},d.prototype._getRangeOfMarker=function(u){var C=this._editor.getModel();if(!!C)for(var w=0,b=this._markerService.read({resource:C.uri});w<b.length;w++){var Q=b[w],ke=C.validateRange(Q);if(V.a.intersectRanges(ke,u))return V.a.lift(ke)}},d.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(u){if(!!this._editor.hasModel()){var C=this._editor.getModel(),w=this._editor.getSelection();if(w.isEmpty()&&u.type===1){var b=w.getPosition(),Q=b.lineNumber,ke=b.column,rt=C.getLineContent(Q);if(rt.length===0)return;if(ke===1){if(/\s/.test(rt[0]))return}else if(ke===C.getLineMaxColumn(Q)){if(/\s/.test(rt[rt.length-1]))return}else if(/\s/.test(rt[ke-2])&&/\s/.test(rt[ke-1]))return}return w}},d.prototype._createEventAndSignalChange=function(u,C){var w=this._editor.getModel();if(!C||!w){this._signalChange(void 0);return}var b=this._getRangeOfMarker(C),Q=b?b.getStartPosition():C.getStartPosition(),ke={trigger:u,selection:C,position:Q};return this._signalChange(ke),ke},d}(P.a),Fr;(function(y){y.Empty={type:0};var d=function(){function u(C,w,b,Q){this.trigger=C,this.rangeOrSelection=w,this.position=b,this.actions=Q,this.type=1}return u}();y.Triggered=d})(Fr||(Fr={}));var rs=function(y){Ti(d,y);function d(u,C,w,b){var Q=y.call(this)||this;return Q._editor=u,Q._markerService=C,Q._progressService=b,Q._codeActionOracle=Q._register(new P.d),Q._state=Fr.Empty,Q._onDidChangeState=Q._register(new X.a),Q.onDidChangeState=Q._onDidChangeState.event,Q._supportedCodeActions=zr.bindTo(w),Q._register(Q._editor.onDidChangeModel(function(){return Q._update()})),Q._register(Q._editor.onDidChangeModelLanguage(function(){return Q._update()})),Q._register(te.a.onDidChange(function(){return Q._update()})),Q._update(),Q}return d.prototype.dispose=function(){y.prototype.dispose.call(this),this.setState(Fr.Empty,!0)},d.prototype._update=function(){var u=this;this._codeActionOracle.value=void 0,this.setState(Fr.Empty);var C=this._editor.getModel();if(C&&te.a.has(C)&&!this._editor.getOption(68)){for(var w=[],b=0,Q=te.a.all(C);b<Q.length;b++){var ke=Q[b];Array.isArray(ke.providedCodeActionKinds)&&w.push.apply(w,ke.providedCodeActionKinds)}this._supportedCodeActions.set(w.join(" ")),this._codeActionOracle.value=new is(this._editor,this._markerService,function(rt){if(!rt){u.setState(Fr.Empty);return}var Ie=Object(v.f)(function(lt){return et(C,rt.selection,rt.trigger,lt)});u._progressService&&rt.trigger.type===2&&u._progressService.showWhile(Ie,250),u.setState(new Fr.Triggered(rt.trigger,rt.selection,rt.position,Ie))},void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()},d.prototype.trigger=function(u){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(u)},d.prototype.setState=function(u,C){u!==this._state&&(this._state.type===1&&this._state.actions.cancel(),this._state=u,C||this._onDidChangeState.fire(u))},d}(P.a),ar=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),os=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},Do=function(y,d){return function(u,C){d(u,C,y)}},gn=function(y,d,u,C){function w(b){return b instanceof u?b:new u(function(Q){Q(b)})}return new(u||(u=Promise))(function(b,Q){function ke(lt){try{Ie(C.next(lt))}catch(Pt){Q(Pt)}}function rt(lt){try{Ie(C.throw(lt))}catch(Pt){Q(Pt)}}function Ie(lt){lt.done?b(lt.value):w(lt.value).then(ke,rt)}Ie((C=C.apply(y,d||[])).next())})},Ls=function(y,d){var u={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},C,w,b,Q;return Q={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ke(Ie){return function(lt){return rt([Ie,lt])}}function rt(Ie){if(C)throw new TypeError("Generator is already executing.");for(;u;)try{if(C=1,w&&(b=Ie[0]&2?w.return:Ie[0]?w.throw||((b=w.return)&&b.call(w),0):w.next)&&!(b=b.call(w,Ie[1])).done)return b;switch(w=0,b&&(Ie=[Ie[0]&2,b.value]),Ie[0]){case 0:case 1:b=Ie;break;case 4:return u.label++,{value:Ie[1],done:!1};case 5:u.label++,w=Ie[1],Ie=[0];continue;case 7:Ie=u.ops.pop(),u.trys.pop();continue;default:if(b=u.trys,!(b=b.length>0&&b[b.length-1])&&(Ie[0]===6||Ie[0]===2)){u=0;continue}if(Ie[0]===3&&(!b||Ie[1]>b[0]&&Ie[1]<b[3])){u.label=Ie[1];break}if(Ie[0]===6&&u.label<b[1]){u.label=b[1],b=Ie;break}if(b&&u.label<b[2]){u.label=b[2],u.ops.push(Ie);break}b[2]&&u.ops.pop(),u.trys.pop();continue}Ie=d.call(y,u)}catch(lt){Ie=[6,lt],w=0}finally{C=b=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},Ms=function(){for(var y=0,d=0,u=arguments.length;d<u;d++)y+=arguments[d].length;for(var C=Array(y),w=0,d=0;d<u;d++)for(var b=arguments[d],Q=0,ke=b.length;Q<ke;Q++,w++)C[w]=b[Q];return C};function _i(y){return ge.a.regex(zr.keys()[0],new RegExp("(\\s|^)"+Object(on.p)(y.value)+"\\b"))}var vo={type:"object",required:["kind"],defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:re.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:re.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[re.a("args.schema.apply.first","Always apply the first returned code action."),re.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),re.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:re.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},ss=function(y){ar(d,y);function d(u,C,w,b,Q){var ke=y.call(this)||this;return ke._instantiationService=Q,ke._editor=u,ke._model=ke._register(new rs(ke._editor,C,w,b)),ke._register(ke._model.onDidChangeState(function(rt){return ke.update(rt)})),ke._ui=new be(function(){return ke._register(new po(u,us.Id,ls.Id,{applyCodeAction:function(Ie,lt){return gn(ke,void 0,void 0,function(){return Ls(this,function(Pt){switch(Pt.label){case 0:return Pt.trys.push([0,,2,3]),[4,this._applyCodeAction(Ie)];case 1:return Pt.sent(),[3,3];case 2:return lt&&this._trigger({type:1,filter:{}}),[7];case 3:return[2]}})})}},ke._instantiationService))}),ke}return d.get=function(u){return u.getContribution(d.ID)},d.prototype.update=function(u){this._ui.getValue().update(u)},d.prototype.showCodeActions=function(u,C,w){return this._ui.getValue().showCodeActionList(u,C,w,{includeDisabledActions:!1})},d.prototype.manualTriggerAtCurrentPosition=function(u,C,w){if(!!this._editor.hasModel()){$t.get(this._editor).closeMessage();var b=this._editor.getPosition();this._trigger({type:2,filter:C,autoApply:w,context:{notAvailableMessage:u,position:b}})}},d.prototype._trigger=function(u){return this._model.trigger(u)},d.prototype._applyCodeAction=function(u){return this._instantiationService.invokeFunction(as,u,this._editor)},d.ID="editor.contrib.quickFixController",d=os([Do(1,me.b),Do(2,ge.c),Do(3,ko.a),Do(4,Mn.a)],d),d}(P.a);function as(y,d,u){return gn(this,void 0,void 0,function(){var C,w,b,Q,ke,rt;return Ls(this,function(Ie){switch(Ie.label){case 0:return C=y.get(Le.a),w=y.get(yn.b),b=y.get(Oo.a),Q=y.get(Ft.a),b.publicLog2("codeAction.applyCodeAction",{codeActionTitle:d.title,codeActionKind:d.kind,codeActionIsPreferred:!!d.isPreferred}),d.edit?[4,C.apply(d.edit,{editor:u})]:[3,2];case 1:Ie.sent(),Ie.label=2;case 2:if(!d.command)return[3,6];Ie.label=3;case 3:return Ie.trys.push([3,5,,6]),[4,w.executeCommand.apply(w,Ms([d.command.id],d.command.arguments||[]))];case 4:return Ie.sent(),[3,6];case 5:return ke=Ie.sent(),rt=Ns(ke),Q.error(typeof rt=="string"?rt:re.a("applyCodeActionFailed","An unknown error occurred while applying the code action")),[3,6];case 6:return[2]}})})}function Ns(y){return typeof y=="string"?y:y instanceof Error&&typeof y.message=="string"?y.message:void 0}function Wr(y,d,u,C){if(y.hasModel()){var w=ss.get(y);w&&w.manualTriggerAtCurrentPosition(d,u,C)}}var us=function(y){ar(d,y);function d(){return y.call(this,{id:d.Id,label:re.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:ge.a.and(B.a.writable,B.a.hasCodeActionsProvider),kbOpts:{kbExpr:B.a.editorTextFocus,primary:2048|84,weight:100}})||this}return d.prototype.run=function(u,C){return Wr(C,re.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},d.Id="editor.action.quickFix",d}(F.b),Qs=function(y){ar(d,y);function d(){return y.call(this,{id:wt,precondition:ge.a.and(B.a.writable,B.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:vo}]}})||this}return d.prototype.runEditorCommand=function(u,C,w){var b=j.fromUser(w,{kind:pn.Empty,apply:"ifSingle"});return Wr(C,typeof(w==null?void 0:w.kind)=="string"?b.preferred?re.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",w.kind):re.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",w.kind):b.preferred?re.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):re.a("editor.action.codeAction.noneMessage","No code actions available"),{include:b.kind,includeSourceActions:!0,onlyIncludePreferredActions:b.preferred},b.apply)},d}(F.c),la=function(y){ar(d,y);function d(){return y.call(this,{id:Ge,label:re.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:ge.a.and(B.a.writable,B.a.hasCodeActionsProvider),kbOpts:{kbExpr:B.a.editorTextFocus,primary:2048|1024|48,mac:{primary:256|1024|48},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:ge.a.and(B.a.writable,_i(pn.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:vo}]}})||this}return d.prototype.run=function(u,C,w){var b=j.fromUser(w,{kind:pn.Refactor,apply:"never"});return Wr(C,typeof(w==null?void 0:w.kind)=="string"?b.preferred?re.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",w.kind):re.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",w.kind):b.preferred?re.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):re.a("editor.action.refactor.noneMessage","No refactorings available"),{include:pn.Refactor.contains(b.kind)?b.kind:pn.None,onlyIncludePreferredActions:b.preferred},b.apply)},d}(F.b),$s=function(y){ar(d,y);function d(){return y.call(this,{id:le,label:re.a("source.label","Source Action..."),alias:"Source Action...",precondition:ge.a.and(B.a.writable,B.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:ge.a.and(B.a.writable,_i(pn.Source))},description:{description:"Source Action...",args:[{name:"args",schema:vo}]}})||this}return d.prototype.run=function(u,C,w){var b=j.fromUser(w,{kind:pn.Source,apply:"never"});return Wr(C,typeof(w==null?void 0:w.kind)=="string"?b.preferred?re.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",w.kind):re.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",w.kind):b.preferred?re.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):re.a("editor.action.source.noneMessage","No source actions available"),{include:pn.Source.contains(b.kind)?b.kind:pn.None,includeSourceActions:!0,onlyIncludePreferredActions:b.preferred},b.apply)},d}(F.b),Js=function(y){ar(d,y);function d(){return y.call(this,{id:Y,label:re.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:ge.a.and(B.a.writable,_i(pn.SourceOrganizeImports)),kbOpts:{kbExpr:B.a.editorTextFocus,primary:1024|512|45,weight:100}})||this}return d.prototype.run=function(u,C){return Wr(C,re.a("editor.action.organize.noneMessage","No organize imports action available"),{include:pn.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")},d}(F.b),da=function(y){ar(d,y);function d(){return y.call(this,{id:Ve,label:re.a("fixAll.label","Fix All"),alias:"Fix All",precondition:ge.a.and(B.a.writable,_i(pn.SourceFixAll))})||this}return d.prototype.run=function(u,C){return Wr(C,re.a("fixAll.noneMessage","No fix all action available"),{include:pn.SourceFixAll,includeSourceActions:!0},"ifSingle")},d}(F.b),ls=function(y){ar(d,y);function d(){return y.call(this,{id:d.Id,label:re.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:ge.a.and(B.a.writable,_i(pn.QuickFix)),kbOpts:{kbExpr:B.a.editorTextFocus,primary:512|1024|84,mac:{primary:2048|512|84},weight:100}})||this}return d.prototype.run=function(u,C){return Wr(C,re.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:pn.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},d.Id="editor.action.autoFix",d}(F.b),wr=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),Is=function(){for(var y=0,d=0,u=arguments.length;d<u;d++)y+=arguments[d].length;for(var C=Array(y),w=0,d=0;d<u;d++)for(var b=arguments[d],Q=0,ke=b.length;Q<ke;Q++,w++)C[w]=b[Q];return C},Pi=x.a,Kr=function(){function y(d,u,C){this.range=d,this.color=u,this.provider=C}return y}(),Gr=function(){function y(d,u){this.range=d,this.marker=u}return y}(),ds=function(){function y(d,u){this._markerDecorationsService=u,this._editor=d,this._result=[]}return y.prototype.setRange=function(d){this._range=d,this._result=[]},y.prototype.clearResult=function(){this._result=[]},y.prototype.computeAsync=function(d){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);var u=this._editor.getModel();return te.o.has(u)?Ye(u,new D.a(this._range.startLineNumber,this._range.startColumn),d):Promise.resolve([])},y.prototype.computeSync=function(){var d=this;if(!this._editor.hasModel()||!this._range)return[];var u=this._editor.getModel(),C=this._range.startLineNumber;if(C>this._editor.getModel().getLineCount())return[];var w=q.get(this._editor),b=u.getLineMaxColumn(C),Q=this._editor.getLineDecorations(C),ke=!1,rt=this._range,Ie=Q.map(function(lt){var Pt=lt.range.startLineNumber===C?lt.range.startColumn:1,qt=lt.range.endLineNumber===C?lt.range.endColumn:b;if(Pt>rt.startColumn||rt.endColumn>qt)return null;var en=new V.a(rt.startLineNumber,Pt,rt.startLineNumber,qt),dn=d._markerDecorationsService.getMarker(u,lt);if(dn)return new Gr(en,dn);var an=w.getColorData(lt.range.getStartPosition());if(!ke&&an){ke=!0;var bn=an.colorInfo,Rn=bn.color,Pn=bn.range;return new Kr(Pn,Rn,an.provider)}else{if(Object(K.b)(lt.options.hoverMessage))return null;var ti=lt.options.hoverMessage?Object(Ke.b)(lt.options.hoverMessage):[];return{contents:ti,range:en}}});return Object(Ke.d)(Ie)},y.prototype.onResult=function(d,u){u?this._result=d.concat(this._result.sort(function(C,w){return C instanceof Kr?-1:w instanceof Kr?1:0})):this._result=this._result.concat(d)},y.prototype.getResult=function(){return this._result.slice(0)},y.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},y.prototype._getLoadingMessage=function(){return{range:this._range,contents:[new K.a().appendText(re.a("modesContentHover.loading","Loading..."))]}},y}(),Vo={type:2,filter:{include:pn.QuickFix}},Yr=function(y){wr(d,y);function d(u,C,w,b,Q,ke){ke===void 0&&(ke=Re.b);var rt=y.call(this,d.ID,u)||this;return rt._themeService=w,rt._keybindingService=b,rt._modeService=Q,rt._openerService=ke,rt.renderDisposable=rt._register(new P.d),rt._messages=[],rt._lastRange=null,rt._computer=new ds(rt._editor,C),rt._highlightDecorations=[],rt._isChangingDecorations=!1,rt._shouldFocus=!1,rt._colorPicker=null,rt._hoverOperation=new Ze(rt._computer,function(Ie){return rt._withResult(Ie,!0)},null,function(Ie){return rt._withResult(Ie,!1)},rt._editor.getOption(44).delay),rt._register(x.n(rt.getDomNode(),x.c.FOCUS,function(){rt._colorPicker&&x.e(rt.getDomNode(),"colorpicker-hover")})),rt._register(x.n(rt.getDomNode(),x.c.BLUR,function(){x.O(rt.getDomNode(),"colorpicker-hover")})),rt._register(u.onDidChangeConfiguration(function(Ie){rt._hoverOperation.setHoverTime(rt._editor.getOption(44).delay)})),rt._register(te.y.onDidChange(function(Ie){rt.isVisible&&rt._lastRange&&rt._messages.length>0&&(rt._domNode.textContent="",rt._renderMessages(rt._lastRange,rt._messages))})),rt}return d.prototype.dispose=function(){this._hoverOperation.cancel(),y.prototype.dispose.call(this)},d.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},d.prototype.startShowingAt=function(u,C,w){if(!(this._lastRange&&this._lastRange.equalsRange(u))){if(this._hoverOperation.cancel(),this.isVisible)if(!this._showAtPosition||this._showAtPosition.lineNumber!==u.startLineNumber)this.hide();else{for(var b=[],Q=0,ke=this._messages.length;Q<ke;Q++){var rt=this._messages[Q],Ie=rt.range;Ie&&Ie.startColumn<=u.startColumn&&Ie.endColumn>=u.endColumn&&b.push(rt)}if(b.length>0){if(cs(b,this._messages))return;this._renderMessages(u,b)}else this.hide()}this._lastRange=u,this._computer.setRange(u),this._shouldFocus=w,this._hoverOperation.start(C)}},d.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),y.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},d.prototype.isColorPickerVisible=function(){return!!this._colorPicker},d.prototype._withResult=function(u,C){this._messages=u,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):C&&this.hide()},d.prototype._renderMessages=function(u,C){var w=this;this.renderDisposable.dispose(),this._colorPicker=null;var b=1073741824,Q=C[0].range?V.a.lift(C[0].range):null,ke=document.createDocumentFragment(),rt=!0,Ie=!1,lt=new P.b,Pt=[];if(C.forEach(function(en){if(!!en.range)if(b=Math.min(b,en.range.startColumn),Q=Q?V.a.plusRange(Q,en.range):V.a.lift(en.range),en instanceof Kr){Ie=!0;var dn=en.color,an=dn.red,bn=dn.green,Rn=dn.blue,Pn=dn.alpha,ti=new I.c(Math.round(an*255),Math.round(bn*255),Math.round(Rn*255),Pn),Dn=new I.a(ti);if(!w._editor.hasModel())return;var li=w._editor.getModel(),qn=new V.a(en.range.startLineNumber,en.range.startColumn,en.range.endLineNumber,en.range.endColumn),xi={range:en.range,color:en.color},ui=new ce(Dn,[],0),pr=new Yt(ke,ui,w._editor.getOption(105),w._themeService);p(li,xi,en.provider,S.a.None).then(function(Oi){if(ui.colorPresentations=Oi||[],!!w._editor.hasModel()){var di=w._editor.getModel().getValueInRange(en.range);ui.guessColorPresentation(Dn,di);var zi=function(){var fi,Fi;ui.presentation.textEdit?(fi=[ui.presentation.textEdit],Fi=new V.a(ui.presentation.textEdit.range.startLineNumber,ui.presentation.textEdit.range.startColumn,ui.presentation.textEdit.range.endLineNumber,ui.presentation.textEdit.range.endColumn),Fi=Fi.setEndPosition(Fi.endLineNumber,Fi.startColumn+ui.presentation.textEdit.text.length)):(fi=[{identifier:null,range:qn,text:ui.presentation.label,forceMoveMarkers:!1}],Fi=qn.setEndPosition(qn.endLineNumber,qn.startColumn+ui.presentation.label.length)),w._editor.pushUndoStop(),w._editor.executeEdits("colorpicker",fi),ui.presentation.additionalTextEdits&&(fi=Is(ui.presentation.additionalTextEdits),w._editor.executeEdits("colorpicker",fi),w.hide()),w._editor.pushUndoStop(),qn=Fi},Qi=function(fi){return p(li,{range:qn,color:{red:fi.rgba.r/255,green:fi.rgba.g/255,blue:fi.rgba.b/255,alpha:fi.rgba.a}},en.provider,S.a.None).then(function(Fi){ui.colorPresentations=Fi||[]})},$i=ui.onColorFlushed(function(Ji){Qi(Ji).then(zi)}),Hi=ui.onDidChangeColor(Qi);w._colorPicker=pr,w.showAt(qn.getStartPosition(),qn,w._shouldFocus),w.updateContents(ke),w._colorPicker.layout(),w.renderDisposable.value=Object(P.e)($i,Hi,pr,lt)}})}else en instanceof Gr?(Pt.push(en),rt=!1):en.contents.filter(function(Oi){return!Object(K.b)(Oi)}).forEach(function(Oi){var di=Pi("div.hover-row.markdown-hover"),zi=x.p(di,Pi("div.hover-contents")),Qi=lt.add(new Ae.a(w._editor,w._modeService,w._openerService));lt.add(Qi.onDidRenderCodeBlock(function(){zi.className="hover-contents code-hover-contents",w.onContentsChange()}));var $i=lt.add(Qi.render(Oi));zi.appendChild($i.element),ke.appendChild(di),rt=!1})}),Pt.length){Pt.forEach(function(en){return ke.appendChild(w.renderMarkerHover(en))});var qt=Pt.length===1?Pt[0]:Pt.sort(function(en,dn){return me.c.compare(en.marker.severity,dn.marker.severity)})[0];ke.appendChild(this.renderMarkerStatusbar(qt))}!Ie&&!rt&&(this.showAt(new D.a(u.startLineNumber,b),Q,this._shouldFocus),this.updateContents(ke)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,Q?[{range:Q,options:d._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},d.prototype.renderMarkerHover=function(u){var C=this,w=Pi("div.hover-row"),b=x.p(w,Pi("div.marker.hover-contents")),Q=u.marker,ke=Q.source,rt=Q.message,Ie=Q.code,lt=Q.relatedInformation;this._editor.applyFontInfo(b);var Pt=x.p(b,Pi("span"));if(Pt.style.whiteSpace="pre-wrap",Pt.innerText=rt,ke||Ie){if(typeof Ie=="string"){var qt=x.p(b,Pi("span"));qt.style.opacity="0.6",qt.style.paddingLeft="6px",qt.innerText=ke&&Ie?ke+"("+Ie+")":ke||"("+Ie+")"}else if(Ie){var en=Pi("span");if(ke){var dn=x.p(en,Pi("span"));dn.innerText=ke}this._codeLink=x.p(en,Pi("a.code-link")),this._codeLink.setAttribute("href",Ie.link.toString()),this._codeLink.onclick=function(Oi){C._openerService.open(Ie.link),Oi.preventDefault(),Oi.stopPropagation()};var an=x.p(this._codeLink,Pi("span"));an.innerText=Ie.value;var qt=x.p(b,en);qt.style.opacity="0.6",qt.style.paddingLeft="6px"}}if(Object(Ke.q)(lt))for(var bn=function(Oi,di,zi,Qi){var $i=x.p(b,Pi("div"));$i.style.marginTop="8px";var Hi=x.p($i,Pi("a"));Hi.innerText=Object(Me.b)(di)+"("+zi+", "+Qi+"): ",Hi.style.cursor="pointer",Hi.onclick=function(fi){fi.stopPropagation(),fi.preventDefault(),C._openerService&&C._openerService.open(di.with({fragment:zi+","+Qi}),{fromUserGesture:!0}).catch(U.e)};var Ji=x.p($i,Pi("span"));Ji.innerText=Oi,Rn._editor.applyFontInfo(Ji)},Rn=this,Pn=0,ti=lt;Pn<ti.length;Pn++){var Dn=ti[Pn],li=Dn.message,qn=Dn.resource,xi=Dn.startLineNumber,ui=Dn.startColumn;bn(li,qn,xi,ui)}return w},d.prototype.renderMarkerStatusbar=function(u){var C=this,w=Pi("div.hover-row.status-bar"),b=new P.b,Q=x.p(w,Pi("div.actions"));(u.marker.severity===me.c.Error||u.marker.severity===me.c.Warning||u.marker.severity===me.c.Info)&&b.add(this.renderAction(Q,{label:re.a("peek problem","Peek Problem"),commandId:It.ID,run:function(){C.hide(),ut.get(C._editor).show(u.marker),C._editor.focus()}}));var ke=x.p(Q,Pi("div"));ke.style.opacity="0",ke.style.transition="opacity 0.2s",setTimeout(function(){return ke.style.opacity="1"},200),ke.textContent=re.a("checkingForQuickFixes","Checking for quick fixes..."),b.add(Object(P.h)(function(){return ke.remove()}));var rt=this.getCodeActions(u.marker);return b.add(Object(P.h)(function(){return rt.cancel()})),rt.then(function(Ie){if(ke.style.transition="",ke.style.opacity="1",!Ie.validActions.length){Ie.dispose(),ke.textContent=re.a("noQuickFixes","No quick fixes available");return}ke.remove();var lt=!1;b.add(Object(P.h)(function(){lt||Ie.dispose()})),b.add(C.renderAction(Q,{label:re.a("quick fixes","Quick Fix..."),commandId:us.Id,run:function(qt){lt=!0;var en=ss.get(C._editor),dn=x.B(qt);en.showCodeActions(Vo,Ie,{x:dn.left+6,y:dn.top+dn.height+6})}}))}),this.renderDisposable.value=b,w},d.prototype.getCodeActions=function(u){var C=this;return Object(v.f)(function(w){return et(C._editor.getModel(),new V.a(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn),Vo,w)})},d.prototype.renderAction=function(u,C){var w=x.p(u,Pi("div.action-container")),b=x.p(w,Pi("a.action"));C.iconClass&&x.p(b,Pi("span.icon."+C.iconClass));var Q=x.p(b,Pi("span"));Q.textContent=C.label;var ke=this._keybindingService.lookupKeybinding(C.commandId);return ke&&(Q.title=C.label+" ("+ke.getLabel()+")"),x.i(w,x.c.CLICK,function(rt){rt.stopPropagation(),rt.preventDefault(),C.run(w)})},d.ID="editor.contrib.modesContentHoverWidget",d._DECORATION_OPTIONS=T.a.register({className:"hoverHighlight"}),d}(W);function cs(y,d){if(!y&&d||y&&!d||y.length!==d.length)return!1;for(var u=0;u<y.length;u++){var C=y[u],w=d[u];if(C instanceof Gr&&w instanceof Gr)return me.a.makeKey(C.marker)===me.a.makeKey(w.marker);if(C instanceof Kr||w instanceof Kr||C instanceof Gr||w instanceof Gr||!Object(K.c)(C.contents,w.contents))return!1}return!0}Object(he.e)(function(y,d){var u=y.getColor(se.cc);u&&d.addRule(".monaco-editor-hover .hover-contents a.code-link span:hover { color: "+u+"; }")});var to=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),qs=function(){function y(d){this._editor=d,this._lineNumber=-1,this._result=[]}return y.prototype.setLineNumber=function(d){this._lineNumber=d,this._result=[]},y.prototype.clearResult=function(){this._result=[]},y.prototype.computeSync=function(){var d=function(Ie){return{value:Ie}},u=this._editor.getLineDecorations(this._lineNumber),C=[];if(!u)return C;for(var w=0,b=u;w<b.length;w++){var Q=b[w];if(!!Q.options.glyphMarginClassName){var ke=Q.options.glyphMarginHoverMessage;!ke||Object(K.b)(ke)||C.push.apply(C,Object(Ke.b)(ke).map(d))}}return C},y.prototype.onResult=function(d,u){this._result=this._result.concat(d)},y.prototype.getResult=function(){return this._result},y.prototype.getResultWithLoadingMessage=function(){return this.getResult()},y}(),mo=function(y){to(d,y);function d(u,C,w){w===void 0&&(w=Re.b);var b=y.call(this,d.ID,u)||this;return b._renderDisposeables=b._register(new P.b),b._messages=[],b._lastLineNumber=-1,b._markdownRenderer=b._register(new Ae.a(b._editor,C,w)),b._computer=new qs(b._editor),b._hoverOperation=new Ze(b._computer,function(Q){return b._withResult(Q)},void 0,function(Q){return b._withResult(Q)},300),b}return d.prototype.dispose=function(){this._hoverOperation.cancel(),y.prototype.dispose.call(this)},d.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))},d.prototype.startShowingAt=function(u){this._lastLineNumber!==u&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=u,this._computer.setLineNumber(u),this._hoverOperation.start(0))},d.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),y.prototype.hide.call(this)},d.prototype._withResult=function(u){this._messages=u,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},d.prototype._renderMessages=function(u,C){this._renderDisposeables.clear();for(var w=document.createDocumentFragment(),b=0,Q=C;b<Q.length;b++){var ke=Q[b],rt=this._markdownRenderer.render(ke.value);this._renderDisposeables.add(rt),w.appendChild(Object(x.a)("div.hover-row",void 0,rt.element))}this.updateContents(w),this.showAt(u)},d.ID="editor.contrib.modesGlyphHoverWidget",d}(ee),fs=o("79sc"),ea=o("62hx"),Ts=function(y,d,u,C){function w(b){return b instanceof u?b:new u(function(Q){Q(b)})}return new(u||(u=Promise))(function(b,Q){function ke(lt){try{Ie(C.next(lt))}catch(Pt){Q(Pt)}}function rt(lt){try{Ie(C.throw(lt))}catch(Pt){Q(Pt)}}function Ie(lt){lt.done?b(lt.value):w(lt.value).then(ke,rt)}Ie((C=C.apply(y,d||[])).next())})},Ps=function(y,d){var u={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},C,w,b,Q;return Q={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ke(Ie){return function(lt){return rt([Ie,lt])}}function rt(Ie){if(C)throw new TypeError("Generator is already executing.");for(;u;)try{if(C=1,w&&(b=Ie[0]&2?w.return:Ie[0]?w.throw||((b=w.return)&&b.call(w),0):w.next)&&!(b=b.call(w,Ie[1])).done)return b;switch(w=0,b&&(Ie=[Ie[0]&2,b.value]),Ie[0]){case 0:case 1:b=Ie;break;case 4:return u.label++,{value:Ie[1],done:!1};case 5:u.label++,w=Ie[1],Ie=[0];continue;case 7:Ie=u.ops.pop(),u.trys.pop();continue;default:if(b=u.trys,!(b=b.length>0&&b[b.length-1])&&(Ie[0]===6||Ie[0]===2)){u=0;continue}if(Ie[0]===3&&(!b||Ie[1]>b[0]&&Ie[1]<b[3])){u.label=Ie[1];break}if(Ie[0]===6&&u.label<b[1]){u.label=b[1],b=Ie;break}if(b&&u.label<b[2]){u.label=b[2],u.ops.push(Ie);break}b[2]&&u.ops.pop(),u.trys.pop();continue}Ie=d.call(y,u)}catch(lt){Ie=[6,lt],w=0}finally{C=b=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}};function Zr(y,d,u,C){var w=u.ordered(y),b=w.map(function(Q){return Promise.resolve(C(Q,y,d)).then(void 0,function(ke){Object(U.f)(ke)})});return Promise.all(b).then(Ke.m).then(Ke.d)}function Ho(y,d,u){return Zr(y,d,te.f,function(C,w,b){return C.provideDefinition(w,b,u)})}function hs(y,d,u){return Zr(y,d,te.e,function(C,w,b){return C.provideDeclaration(w,b,u)})}function gs(y,d,u){return Zr(y,d,te.p,function(C,w,b){return C.provideImplementation(w,b,u)})}function Uo(y,d,u){return Zr(y,d,te.z,function(C,w,b){return C.provideTypeDefinition(w,b,u)})}function yo(y,d,u,C){var w=this;return Zr(y,d,te.t,function(b,Q,ke){return Ts(w,void 0,void 0,function(){var rt,Ie;return Ps(this,function(lt){switch(lt.label){case 0:return[4,b.provideReferences(Q,ke,{includeDeclaration:!0},C)];case 1:return rt=lt.sent(),!u||!rt||rt.length!==2?[2,rt]:[4,b.provideReferences(Q,ke,{includeDeclaration:!1},C)];case 2:return Ie=lt.sent(),Ie&&Ie.length===1?[2,Ie]:[2,rt]}})})})}Object(F.k)("_executeDefinitionProvider",function(y,d){return Ho(y,d,S.a.None)}),Object(F.k)("_executeDeclarationProvider",function(y,d){return hs(y,d,S.a.None)}),Object(F.k)("_executeImplementationProvider",function(y,d){return gs(y,d,S.a.None)}),Object(F.k)("_executeTypeDefinitionProvider",function(y,d){return Uo(y,d,S.a.None)}),Object(F.k)("_executeReferenceProvider",function(y,d){return yo(y,d,!1,S.a.None)});var Lo=o("t49l"),Mo=o("MNsG"),zo=o("sFUC"),ps=o("A+jI"),Br=function(){function y(d,u,C,w){this.isProviderFirst=d,this.parent=u,this._range=C,this._rangeCallback=w,this.id=sn.b.nextId()}return Object.defineProperty(y.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"range",{get:function(){return this._range},set:function(u){this._range=u,this._rangeCallback(this)},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"ariaMessage",{get:function(){return Object(re.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(Me.b)(this.uri),this.range.startLineNumber,this.range.startColumn)},enumerable:!0,configurable:!0}),y}(),xs=function(){function y(d){this._modelReference=d}return y.prototype.dispose=function(){this._modelReference.dispose()},y.prototype.preview=function(d,u){u===void 0&&(u=8);var C=this._modelReference.object.textEditorModel;if(!!C){var w=d.startLineNumber,b=d.startColumn,Q=d.endLineNumber,ke=d.endColumn,rt=C.getWordUntilPosition({lineNumber:w,column:b-u}),Ie=new V.a(w,rt.startColumn,w,b),lt=new V.a(Q,ke,Q,1073741824),Pt=C.getValueInRange(Ie).replace(/^\s+/,""),qt=C.getValueInRange(d),en=C.getValueInRange(lt).replace(/\s+$/,"");return{value:Pt+qt+en,highlight:{start:Pt.length,end:Pt.length+qt.length}}}},y}(),cr=function(){function y(d,u){this.parent=d,this.uri=u,this.children=[]}return y.prototype.dispose=function(){Object(P.f)(this._preview),this._preview=void 0},Object.defineProperty(y.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"ariaMessage",{get:function(){var u=this.children.length;return u===1?Object(re.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(Me.b)(this.uri),this.uri.fsPath):Object(re.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",u,Object(Me.b)(this.uri),this.uri.fsPath)},enumerable:!0,configurable:!0}),y.prototype.resolve=function(d){var u=this;return this._resolved?Promise.resolve(this):Promise.resolve(d.createModelReference(this.uri).then(function(C){var w=C.object;if(!w)throw C.dispose(),new Error;return u._preview=new xs(C),u._resolved=!0,u},function(C){return u.children.length=0,u._resolved=!0,u._loadFailure=C,u}))},y}(),ri=function(){function y(d,u){var C=this;this._disposables=new P.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new X.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=d,this._title=u;var w=d[0];d.sort(y._compareReferences);for(var b,Q=0,ke=d;Q<ke.length;Q++){var rt=ke[Q];if((!b||b.uri.toString()!==rt.uri.toString())&&(b=new cr(this,rt.uri),this.groups.push(b)),b.children.length===0||!V.a.equalsRange(rt.range,b.children[b.children.length-1].range)){var Ie=new Br(w===rt,b,rt.targetSelectionRange||rt.range,function(lt){return C._onDidChangeReferenceRange.fire(lt)});this.references.push(Ie),b.children.push(Ie)}}}return y.prototype.dispose=function(){Object(P.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0},y.prototype.clone=function(){return new y(this._links,this._title)},Object.defineProperty(y.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isEmpty",{get:function(){return this.groups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"ariaMessage",{get:function(){return this.isEmpty?Object(re.a)("aria.result.0","No results found"):this.references.length===1?Object(re.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?Object(re.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(re.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)},enumerable:!0,configurable:!0}),y.prototype.nextOrPreviousReference=function(d,u){var C=d.parent,w=C.children.indexOf(d),b=C.children.length,Q=C.parent.groups.length;return Q===1||u&&w+1<b||!u&&w>0?(u?w=(w+1)%b:w=(w+b-1)%b,C.children[w]):(w=C.parent.groups.indexOf(C),u?(w=(w+1)%Q,C.parent.groups[w].children[0]):(w=(w+Q-1)%Q,C.parent.groups[w].children[C.parent.groups[w].children.length-1]))},y.prototype.nearestReference=function(d,u){var C=this.references.map(function(w,b){return{idx:b,prefixLen:on.c(w.uri.toString(),d.toString()),offsetDist:Math.abs(w.range.startLineNumber-u.lineNumber)*100+Math.abs(w.range.startColumn-u.column)}}).sort(function(w,b){return w.prefixLen>b.prefixLen?-1:w.prefixLen<b.prefixLen?1:w.offsetDist<b.offsetDist?-1:w.offsetDist>b.offsetDist?1:0})[0];if(C)return this.references[C.idx]},y.prototype.referenceAt=function(d,u){for(var C=0,w=this.references;C<w.length;C++){var b=w[C];if(b.uri.toString()===d.toString()&&V.a.containsPosition(b.range,u))return b}},y.prototype.firstReference=function(){for(var d=0,u=this.references;d<u.length;d++){var C=u[d];if(C.isProviderFirst)return C}return this.references[0]},y._compareReferences=function(d,u){return on.e(d.uri.toString(),u.uri.toString())||V.a.compareRangesUsingStarts(d.range,u.range)},y}(),ta=o("KaET"),Rs=o("tYmi"),As=o("xONI"),vs=o("VPJY"),No={badgeBackground:I.a.fromHex("#4D4D4D"),badgeForeground:I.a.fromHex("#FFFFFF")},Fs=function(){function y(d,u){this.count=0,this.options=u||Object.create(null),Object(Gt.g)(this.options,No,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(x.p)(d,Object(x.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}return y.prototype.setCount=function(d){this.count=d,this.render()},y.prototype.setTitleFormat=function(d){this.titleFormat=d,this.render()},y.prototype.render=function(){this.element.textContent=Object(on.r)(this.countFormat,this.count),this.element.title=Object(on.r)(this.titleFormat,this.count),this.applyStyles()},y.prototype.style=function(d){this.badgeBackground=d.badgeBackground,this.badgeForeground=d.badgeForeground,this.badgeBorder=d.badgeBorder,this.applyStyles()},y.prototype.applyStyles=function(){if(this.element){var d=this.badgeBackground?this.badgeBackground.toString():"",u=this.badgeForeground?this.badgeForeground.toString():"",C=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=d,this.element.style.color=u,this.element.style.borderWidth=C?"1px":"",this.element.style.borderStyle=C?"solid":"",this.element.style.borderColor=C}},y}(),no=o("R8sh"),Ws=o("ptcw"),si=o("fpMC"),Bs=o("7lZ/"),na=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),Mr=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},io=function(y,d){return function(u,C){d(u,C,y)}},ro=function(){function y(d){this._resolverService=d}return y.prototype.hasChildren=function(d){return d instanceof ri||d instanceof cr&&!d.failure},y.prototype.getChildren=function(d){if(d instanceof ri)return d.groups;if(d instanceof cr)return d.resolve(this._resolverService).then(function(u){return u.children});throw new Error("bad tree")},y=Mr([io(0,Lo.a)],y),y}(),nr=function(){function y(){}return y.prototype.getHeight=function(){return 23},y.prototype.getTemplateId=function(d){return d instanceof cr?Io.id:oo.id},y}(),Cr=function(){function y(d){this._keybindingService=d}return y.prototype.getKeyboardNavigationLabel=function(d){if(d instanceof Br){var u=d.parent.preview,C=u&&u.preview(d.range);if(C)return C.value}return Object(Me.b)(d.uri)},y=Mr([io(0,L.a)],y),y}(),Ei=function(){function y(){}return y.prototype.getId=function(d){return d instanceof Br?d.id:d.uri},y}(),Wi=function(y){na(d,y);function d(u,C,w){var b=y.call(this)||this;b._uriLabel=C;var Q=document.createElement("div");return x.e(Q,"reference-file"),b.file=b._register(new As.a(Q,{supportHighlights:!0})),b.badge=new Fs(x.p(Q,x.a(".count"))),b._register(Object(Ws.a)(b.badge,w)),u.appendChild(Q),b}return d.prototype.set=function(u,C){var w=Object(Me.d)(u.uri);this.file.setLabel(Object(St.a)(u.uri),this._uriLabel.getUriLabel(w,{relative:!0}),{title:this._uriLabel.getUriLabel(u.uri),matches:C});var b=u.children.length;this.badge.setCount(b),u.failure?this.badge.setTitleFormat(Object(re.a)("referencesFailre","Failed to resolve file.")):b>1?this.badge.setTitleFormat(Object(re.a)("referencesCount","{0} references",b)):this.badge.setTitleFormat(Object(re.a)("referenceCount","{0} reference",b))},d=Mr([io(1,no.a),io(2,he.c)],d),d}(P.a),Io=function(){function y(d){this._instantiationService=d,this.templateId=y.id}return y.prototype.renderTemplate=function(d){return this._instantiationService.createInstance(Wi,d)},y.prototype.renderElement=function(d,u,C){C.set(d.element,Object(si.c)(d.filterData))},y.prototype.disposeTemplate=function(d){d.dispose()},y.id="FileReferencesRenderer",y=Mr([io(0,Mn.a)],y),y}(),To=function(){function y(d){this.label=new Bs.a(d,!1)}return y.prototype.set=function(d,u){var C=d.parent.preview,w=C&&C.preview(d.range);if(!w)this.label.set(Object(Me.b)(d.uri)+":"+(d.range.startLineNumber+1)+":"+(d.range.startColumn+1));else{var b=w.value,Q=w.highlight;u&&!si.a.isDefault(u)?(x.X(this.label.element,"referenceMatch",!1),this.label.set(b,Object(si.c)(u))):(x.X(this.label.element,"referenceMatch",!0),this.label.set(b,[Q]))}},y}(),oo=function(){function y(){this.templateId=y.id}return y.prototype.renderTemplate=function(d){return new To(d)},y.prototype.renderElement=function(d,u,C){C.set(d.element,d.filterData)},y.prototype.disposeTemplate=function(){},y.id="OneReferenceRenderer",y}(),Ko=function(){function y(){}return y.prototype.getAriaLabel=function(d){return d.ariaMessage},y}(),Po=o("k9mg"),so=o("51B1"),br=o("746U"),Er=o("Sdnv"),ms=o("4y0V"),fr=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),ao=function(){for(var y=0,d=0,u=arguments.length;d<u;d++)y+=arguments[d].length;for(var C=Array(y),w=0,d=0;d<u;d++)for(var b=arguments[d],Q=0,ke=b.length;Q<ke;Q++,w++)C[w]=b[Q];return C},js={separatorBorder:I.a.transparent},jr=function(){function y(d,u,C,w){this.container=d,this.view=u,this.disposable=w,this._cachedVisibleSize=void 0,typeof C=="number"?(this._size=C,this._cachedVisibleSize=void 0,x.e(d,"visible")):(this._size=0,this._cachedVisibleSize=C.cachedVisibleSize)}return Object.defineProperty(y.prototype,"size",{get:function(){return this._size},set:function(u){this._size=u},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"visible",{get:function(){return typeof this._cachedVisibleSize=="undefined"},enumerable:!0,configurable:!0}),y.prototype.setVisible=function(d,u){d!==this.visible&&(d?(this.size=Object(Er.a)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof u=="number"?u:this.size,this.size=0),x.X(this.container,"visible",d),this.view.setVisible&&this.view.setVisible(d))},Object.defineProperty(y.prototype,"minimumSize",{get:function(){return this.visible?this.view.minimumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"viewMinimumSize",{get:function(){return this.view.minimumSize},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"maximumSize",{get:function(){return this.visible?this.view.maximumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"viewMaximumSize",{get:function(){return this.view.maximumSize},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"priority",{get:function(){return this.view.priority},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"snap",{get:function(){return!!this.view.snap},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"enabled",{set:function(u){this.container.style.pointerEvents=u?null:"none"},enumerable:!0,configurable:!0}),y.prototype.layout=function(d,u){this.layoutContainer(d),this.view.layout(this.size,d,u)},y.prototype.dispose=function(){return this.disposable.dispose(),this.view},y}(),_r=function(y){fr(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype.layoutContainer=function(u){this.container.style.top=u+"px",this.container.style.height=this.size+"px"},d}(jr),ks=function(y){fr(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype.layoutContainer=function(u){this.container.style.left=u+"px",this.container.style.width=this.size+"px"},d}(jr),hr;(function(y){y[y.Idle=0]="Idle",y[y.Busy=1]="Busy"})(hr||(hr={}));var uo;(function(y){y.Distribute={type:"distribute"};function d(C){return{type:"split",index:C}}y.Split=d;function u(C){return{type:"invisible",cachedVisibleSize:C}}y.Invisible=u})(uo||(uo={}));var Vs=function(y){fr(d,y);function d(u,C){C===void 0&&(C={});var w=y.call(this)||this;return w.size=0,w.contentSize=0,w.proportions=void 0,w.viewItems=[],w.sashItems=[],w.state=hr.Idle,w._onDidSashChange=w._register(new X.a),w.onDidSashChange=w._onDidSashChange.event,w._onDidSashReset=w._register(new X.a),w._startSnappingEnabled=!0,w._endSnappingEnabled=!0,w.orientation=br.k(C.orientation)?0:C.orientation,w.inverseAltBehavior=!!C.inverseAltBehavior,w.proportionalLayout=br.k(C.proportionalLayout)?!0:!!C.proportionalLayout,w.el=document.createElement("div"),x.e(w.el,"monaco-split-view2"),x.e(w.el,w.orientation===0?"vertical":"horizontal"),u.appendChild(w.el),w.sashContainer=x.p(w.el,x.a(".sash-container")),w.viewContainer=x.p(w.el,x.a(".split-view-container")),w.style(C.styles||js),C.descriptor&&(w.size=C.descriptor.size,C.descriptor.views.forEach(function(b,Q){var ke=br.k(b.visible)||b.visible?b.size:{type:"invisible",cachedVisibleSize:b.size},rt=b.view;w.doAddView(rt,ke,Q,!0)}),w.contentSize=w.viewItems.reduce(function(b,Q){return b+Q.size},0),w.saveProportions()),w}return Object.defineProperty(d.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(C){for(var w=0,b=this.sashItems;w<b.length;w++){var Q=b[w];Q.sash.orthogonalStartSash=C}this._orthogonalStartSash=C},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(C){for(var w=0,b=this.sashItems;w<b.length;w++){var Q=b[w];Q.sash.orthogonalEndSash=C}this._orthogonalEndSash=C},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"startSnappingEnabled",{get:function(){return this._startSnappingEnabled},set:function(C){this._startSnappingEnabled!==C&&(this._startSnappingEnabled=C,this.updateSashEnablement())},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"endSnappingEnabled",{get:function(){return this._endSnappingEnabled},set:function(C){this._endSnappingEnabled!==C&&(this._endSnappingEnabled=C,this.updateSashEnablement())},enumerable:!0,configurable:!0}),d.prototype.style=function(u){u.separatorBorder.isTransparent()?(x.O(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(x.e(this.el,"separator-border"),this.el.style.setProperty("--separator-border",u.separatorBorder.toString()))},d.prototype.addView=function(u,C,w){w===void 0&&(w=this.viewItems.length),this.doAddView(u,C,w,!1)},d.prototype.layout=function(u,C){var w=this,b=Math.max(this.size,this.contentSize);if(this.size=u,this.layoutContext=C,this.proportions)for(var Ie=0;Ie<this.viewItems.length;Ie++){var lt=this.viewItems[Ie];lt.size=Object(Er.a)(Math.round(this.proportions[Ie]*u),lt.minimumSize,lt.maximumSize)}else{var Q=Object(Ke.u)(this.viewItems.length),ke=Q.filter(function(Pt){return w.viewItems[Pt].priority===1}),rt=Q.filter(function(Pt){return w.viewItems[Pt].priority===2});this.resize(this.viewItems.length-1,u-b,void 0,ke,rt)}this.distributeEmptySpace(),this.layoutViews()},d.prototype.saveProportions=function(){var u=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(function(C){return C.size/u.contentSize}))},d.prototype.onSashStart=function(u){for(var C=this,w=u.sash,b=u.start,Q=u.alt,ke=0,rt=this.viewItems;ke<rt.length;ke++){var Ie=rt[ke];Ie.enabled=!1}var lt=Object(Ke.k)(this.sashItems,function(en){return en.sash===w}),Pt=Object(P.e)(Object(ms.a)(document.body,"keydown")(function(en){return qt(C.sashDragState.current,en.altKey)}),Object(ms.a)(document.body,"keyup")(function(){return qt(C.sashDragState.current,!1)})),qt=function(dn,an){var bn=C.viewItems.map(function(Fi){return Fi.size}),Rn=Number.NEGATIVE_INFINITY,Pn=Number.POSITIVE_INFINITY;if(C.inverseAltBehavior&&(an=!an),an){var ti=lt===C.sashItems.length-1;if(ti){var Dn=C.viewItems[lt];Rn=(Dn.minimumSize-Dn.size)/2,Pn=(Dn.maximumSize-Dn.size)/2}else{var Dn=C.viewItems[lt+1];Rn=(Dn.size-Dn.maximumSize)/2,Pn=(Dn.size-Dn.minimumSize)/2}}var li,qn;if(!an){var xi=Object(Ke.u)(lt,-1),ui=Object(Ke.u)(lt+1,C.viewItems.length),pr=xi.reduce(function(Fi,Ki){return Fi+(C.viewItems[Ki].minimumSize-bn[Ki])},0),Oi=xi.reduce(function(Fi,Ki){return Fi+(C.viewItems[Ki].viewMaximumSize-bn[Ki])},0),di=ui.length===0?Number.POSITIVE_INFINITY:ui.reduce(function(Fi,Ki){return Fi+(bn[Ki]-C.viewItems[Ki].minimumSize)},0),zi=ui.length===0?Number.NEGATIVE_INFINITY:ui.reduce(function(Fi,Ki){return Fi+(bn[Ki]-C.viewItems[Ki].viewMaximumSize)},0),Qi=Math.max(pr,zi),$i=Math.min(di,Oi),Hi=C.findFirstSnapIndex(xi),Ji=C.findFirstSnapIndex(ui);if(typeof Hi=="number"){var Dn=C.viewItems[Hi],fi=Math.floor(Dn.viewMinimumSize/2);li={index:Hi,limitDelta:Dn.visible?Qi-fi:Qi+fi,size:Dn.size}}if(typeof Ji=="number"){var Dn=C.viewItems[Ji],fi=Math.floor(Dn.viewMinimumSize/2);qn={index:Ji,limitDelta:Dn.visible?$i+fi:$i-fi,size:Dn.size}}}C.sashDragState={start:dn,current:dn,index:lt,sizes:bn,minDelta:Rn,maxDelta:Pn,alt:an,snapBefore:li,snapAfter:qn,disposable:Pt}};qt(b,Q)},d.prototype.onSashChange=function(u){var C=u.current,w=this.sashDragState,b=w.index,Q=w.start,ke=w.sizes,rt=w.alt,Ie=w.minDelta,lt=w.maxDelta,Pt=w.snapBefore,qt=w.snapAfter;this.sashDragState.current=C;var en=C-Q,dn=this.resize(b,en,ke,void 0,void 0,Ie,lt,Pt,qt);if(rt){var an=b===this.sashItems.length-1,bn=this.viewItems.map(function(qn){return qn.size}),Rn=an?b:b+1,Pn=this.viewItems[Rn],ti=Pn.size-Pn.maximumSize,Dn=Pn.size-Pn.minimumSize,li=an?b-1:b+1;this.resize(li,-dn,bn,void 0,void 0,ti,Dn)}this.distributeEmptySpace(),this.layoutViews()},d.prototype.onSashEnd=function(u){this._onDidSashChange.fire(u),this.sashDragState.disposable.dispose(),this.saveProportions();for(var C=0,w=this.viewItems;C<w.length;C++){var b=w[C];b.enabled=!0}},d.prototype.onViewChange=function(u,C){var w=this.viewItems.indexOf(u);w<0||w>=this.viewItems.length||(C=typeof C=="number"?C:u.size,C=Object(Er.a)(C,u.minimumSize,u.maximumSize),this.inverseAltBehavior&&w>0?(this.resize(w-1,Math.floor((u.size-C)/2)),this.distributeEmptySpace(),this.layoutViews()):(u.size=C,this.relayout([w],void 0)))},d.prototype.resizeView=function(u,C){var w=this;if(this.state!==hr.Idle)throw new Error("Cant modify splitview");if(this.state=hr.Busy,!(u<0||u>=this.viewItems.length)){var b=Object(Ke.u)(this.viewItems.length).filter(function(Ie){return Ie!==u}),Q=ao(b.filter(function(Ie){return w.viewItems[Ie].priority===1}),[u]),ke=b.filter(function(Ie){return w.viewItems[Ie].priority===2}),rt=this.viewItems[u];C=Math.round(C),C=Object(Er.a)(C,rt.minimumSize,Math.min(rt.maximumSize,this.size)),rt.size=C,this.relayout(Q,ke),this.state=hr.Idle}},d.prototype.distributeViewSizes=function(){for(var u=this,C=[],w=0,b=0,Q=this.viewItems;b<Q.length;b++){var ke=Q[b];ke.maximumSize-ke.minimumSize>0&&(C.push(ke),w+=ke.size)}for(var rt=Math.floor(w/C.length),Ie=0,lt=C;Ie<lt.length;Ie++){var ke=lt[Ie];ke.size=Object(Er.a)(rt,ke.minimumSize,ke.maximumSize)}var Pt=Object(Ke.u)(this.viewItems.length),qt=Pt.filter(function(dn){return u.viewItems[dn].priority===1}),en=Pt.filter(function(dn){return u.viewItems[dn].priority===2});this.relayout(qt,en)},d.prototype.getViewSize=function(u){return u<0||u>=this.viewItems.length?-1:this.viewItems[u].size},d.prototype.doAddView=function(u,C,w,b){var Q=this;if(w===void 0&&(w=this.viewItems.length),this.state!==hr.Idle)throw new Error("Cant modify splitview");this.state=hr.Busy;var ke=x.a(".split-view-view");w===this.viewItems.length?this.viewContainer.appendChild(ke):this.viewContainer.insertBefore(ke,this.viewContainer.children.item(w));var rt=u.onDidChange(function(di){return Q.onViewChange(qt,di)}),Ie=Object(P.h)(function(){return Q.viewContainer.removeChild(ke)}),lt=Object(P.e)(rt,Ie),Pt;typeof C=="number"?Pt=C:C.type==="split"?Pt=this.getViewSize(C.index)/2:C.type==="invisible"?Pt={cachedVisibleSize:C.cachedVisibleSize}:Pt=u.minimumSize;var qt=this.orientation===0?new _r(ke,u,Pt,lt):new ks(ke,u,Pt,lt);if(this.viewItems.splice(w,0,qt),this.viewItems.length>1){var en=this.orientation===0?1:0,dn=this.orientation===0?{getHorizontalSashTop:function(zi){return Q.getSashPosition(zi)}}:{getVerticalSashLeft:function(zi){return Q.getSashPosition(zi)}},an=new nn.a(this.sashContainer,dn,{orientation:en,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),bn=this.orientation===0?function(di){return{sash:an,start:di.startY,current:di.currentY,alt:di.altKey}}:function(di){return{sash:an,start:di.startX,current:di.currentX,alt:di.altKey}},Rn=X.b.map(an.onDidStart,bn),Pn=Rn(this.onSashStart,this),ti=X.b.map(an.onDidChange,bn),Dn=ti(this.onSashChange,this),li=X.b.map(an.onDidEnd,function(){return Object(Ke.k)(Q.sashItems,function(di){return di.sash===an})}),qn=li(this.onSashEnd,this),xi=an.onDidReset(function(){var di=Object(Ke.k)(Q.sashItems,function(Ji){return Ji.sash===an}),zi=Object(Ke.u)(di,-1),Qi=Object(Ke.u)(di+1,Q.viewItems.length),$i=Q.findFirstSnapIndex(zi),Hi=Q.findFirstSnapIndex(Qi);typeof $i=="number"&&!Q.viewItems[$i].visible||typeof Hi=="number"&&!Q.viewItems[Hi].visible||Q._onDidSashReset.fire(di)}),ui=Object(P.e)(Pn,Dn,qn,xi,an),pr={sash:an,disposable:ui};this.sashItems.splice(w-1,0,pr)}ke.appendChild(u.element);var Oi;typeof C!="number"&&C.type==="split"&&(Oi=[C.index]),b||this.relayout([w],Oi),this.state=hr.Idle,!b&&typeof C!="number"&&C.type==="distribute"&&this.distributeViewSizes()},d.prototype.relayout=function(u,C){var w=this.viewItems.reduce(function(b,Q){return b+Q.size},0);this.resize(this.viewItems.length-1,this.size-w,void 0,u,C),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},d.prototype.resize=function(u,C,w,b,Q,ke,rt,Ie,lt){var Pt=this;if(w===void 0&&(w=this.viewItems.map(function(ir){return ir.size})),ke===void 0&&(ke=Number.NEGATIVE_INFINITY),rt===void 0&&(rt=Number.POSITIVE_INFINITY),u<0||u>=this.viewItems.length)return 0;var qt=Object(Ke.u)(u,-1),en=Object(Ke.u)(u+1,this.viewItems.length);if(Q)for(var dn=0,an=Q;dn<an.length;dn++){var bn=an[dn];Object(Ke.t)(qt,bn),Object(Ke.t)(en,bn)}if(b)for(var Rn=0,Pn=b;Rn<Pn.length;Rn++){var ti=Pn[Rn];Object(Ke.s)(qt,ti),Object(Ke.s)(en,ti)}var Dn=qt.map(function(ir){return Pt.viewItems[ir]}),li=qt.map(function(ir){return w[ir]}),qn=en.map(function(ir){return Pt.viewItems[ir]}),xi=en.map(function(ir){return w[ir]}),ui=qt.reduce(function(ir,Pr){return ir+(Pt.viewItems[Pr].minimumSize-w[Pr])},0),pr=qt.reduce(function(ir,Pr){return ir+(Pt.viewItems[Pr].maximumSize-w[Pr])},0),Oi=en.length===0?Number.POSITIVE_INFINITY:en.reduce(function(ir,Pr){return ir+(w[Pr]-Pt.viewItems[Pr].minimumSize)},0),di=en.length===0?Number.NEGATIVE_INFINITY:en.reduce(function(ir,Pr){return ir+(w[Pr]-Pt.viewItems[Pr].maximumSize)},0),zi=Math.max(ui,di,ke),Qi=Math.min(Oi,pr,rt),$i=!1;if(Ie){var Hi=this.viewItems[Ie.index],Ji=C>=Ie.limitDelta;$i=Ji!==Hi.visible,Hi.setVisible(Ji,Ie.size)}if(!$i&&lt){var Hi=this.viewItems[lt.index],Ji=C<lt.limitDelta;$i=Ji!==Hi.visible,Hi.setVisible(Ji,lt.size)}if($i)return this.resize(u,C,w,b,Q,ke,rt);C=Object(Er.a)(C,zi,Qi);for(var fi=0,Fi=C;fi<Dn.length;fi++){var Ki=Dn[fi],es=Object(Er.a)(li[fi]+Fi,Ki.minimumSize,Ki.maximumSize),Es=es-li[fi];Fi-=Es,Ki.size=es}for(var fi=0,ia=C;fi<qn.length;fi++){var Ki=qn[fi],es=Object(Er.a)(xi[fi]-ia,Ki.minimumSize,Ki.maximumSize),Es=es-xi[fi];ia+=Es,Ki.size=es}return C},d.prototype.distributeEmptySpace=function(u){for(var C=this,w=this.viewItems.reduce(function(Pn,ti){return Pn+ti.size},0),b=this.size-w,Q=Object(Ke.u)(this.viewItems.length-1,-1),ke=Q.filter(function(Pn){return C.viewItems[Pn].priority===1}),rt=Q.filter(function(Pn){return C.viewItems[Pn].priority===2}),Ie=0,lt=rt;Ie<lt.length;Ie++){var Pt=lt[Ie];Object(Ke.t)(Q,Pt)}for(var qt=0,en=ke;qt<en.length;qt++){var Pt=en[qt];Object(Ke.s)(Q,Pt)}typeof u=="number"&&Object(Ke.s)(Q,u);for(var dn=0;b!==0&&dn<Q.length;dn++){var an=this.viewItems[Q[dn]],bn=Object(Er.a)(an.size+b,an.minimumSize,an.maximumSize),Rn=bn-an.size;b-=Rn,an.size=bn}},d.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce(function(Q,ke){return Q+ke.size},0);for(var u=0,C=0,w=this.viewItems;C<w.length;C++){var b=w[C];b.layout(u,this.layoutContext),u+=b.size}this.sashItems.forEach(function(Q){return Q.sash.layout()}),this.updateSashEnablement()},d.prototype.updateSashEnablement=function(){var u=!1,C=this.viewItems.map(function(Dn){return u=Dn.size-Dn.minimumSize>0||u});u=!1;var w=this.viewItems.map(function(Dn){return u=Dn.maximumSize-Dn.size>0||u}),b=ao(this.viewItems).reverse();u=!1;var Q=b.map(function(Dn){return u=Dn.size-Dn.minimumSize>0||u}).reverse();u=!1;for(var ke=b.map(function(Dn){return u=Dn.maximumSize-Dn.size>0||u}).reverse(),rt=0,Ie=0;Ie<this.sashItems.length;Ie++){var lt=this.sashItems[Ie].sash,Pt=this.viewItems[Ie];rt+=Pt.size;var qt=!(C[Ie]&&ke[Ie+1]),en=!(w[Ie]&&Q[Ie+1]);if(qt&&en){var dn=Object(Ke.u)(Ie,-1),an=Object(Ke.u)(Ie+1,this.viewItems.length),bn=this.findFirstSnapIndex(dn),Rn=this.findFirstSnapIndex(an),Pn=typeof bn=="number"&&!this.viewItems[bn].visible,ti=typeof Rn=="number"&&!this.viewItems[Rn].visible;Pn&&Q[Ie]&&(rt>0||this.startSnappingEnabled)?lt.state=1:ti&&C[Ie]&&(rt<this.contentSize||this.endSnappingEnabled)?lt.state=2:lt.state=0}else qt&&!en?lt.state=1:!qt&&en?lt.state=2:lt.state=3}},d.prototype.getSashPosition=function(u){for(var C=0,w=0;w<this.sashItems.length;w++)if(C+=this.viewItems[w].size,this.sashItems[w].sash===u)return Math.min(C,this.contentSize-2);return 0},d.prototype.findFirstSnapIndex=function(u){for(var C=0,w=u;C<w.length;C++){var b=w[C],Q=this.viewItems[b];if(!!Q.visible&&Q.snap)return b}for(var ke=0,rt=u;ke<rt.length;ke++){var b=rt[ke],Q=this.viewItems[b];if(Q.visible&&Q.maximumSize-Q.minimumSize>0)return;if(!Q.visible&&Q.snap)return b}},d.prototype.dispose=function(){y.prototype.dispose.call(this),this.viewItems.forEach(function(u){return u.dispose()}),this.viewItems=[],this.sashItems.forEach(function(u){return u.disposable.dispose()}),this.sashItems=[]},d}(P.a),Co=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),Hs=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},Or=function(y,d){return function(u,C){d(u,C,y)}},Us=function(y,d,u,C){function w(b){return b instanceof u?b:new u(function(Q){Q(b)})}return new(u||(u=Promise))(function(b,Q){function ke(lt){try{Ie(C.next(lt))}catch(Pt){Q(Pt)}}function rt(lt){try{Ie(C.throw(lt))}catch(Pt){Q(Pt)}}function Ie(lt){lt.done?b(lt.value):w(lt.value).then(ke,rt)}Ie((C=C.apply(y,d||[])).next())})},kr=function(y,d){var u={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},C,w,b,Q;return Q={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ke(Ie){return function(lt){return rt([Ie,lt])}}function rt(Ie){if(C)throw new TypeError("Generator is already executing.");for(;u;)try{if(C=1,w&&(b=Ie[0]&2?w.return:Ie[0]?w.throw||((b=w.return)&&b.call(w),0):w.next)&&!(b=b.call(w,Ie[1])).done)return b;switch(w=0,b&&(Ie=[Ie[0]&2,b.value]),Ie[0]){case 0:case 1:b=Ie;break;case 4:return u.label++,{value:Ie[1],done:!1};case 5:u.label++,w=Ie[1],Ie=[0];continue;case 7:Ie=u.ops.pop(),u.trys.pop();continue;default:if(b=u.trys,!(b=b.length>0&&b[b.length-1])&&(Ie[0]===6||Ie[0]===2)){u=0;continue}if(Ie[0]===3&&(!b||Ie[1]>b[0]&&Ie[1]<b[3])){u.label=Ie[1];break}if(Ie[0]===6&&u.label<b[1]){u.label=b[1],b=Ie;break}if(b&&u.label<b[2]){u.label=b[2],u.ops.push(Ie);break}b[2]&&u.ops.pop(),u.trys.pop();continue}Ie=d.call(y,u)}catch(lt){Ie=[6,lt],w=0}finally{C=b=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},ys=function(){function y(d,u){var C=this;this._editor=d,this._model=u,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new P.b,this._callOnModelChange=new P.b,this._callOnDispose.add(this._editor.onDidChangeModel(function(){return C._onModelChanged()})),this._onModelChanged()}return y.prototype.dispose=function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()},y.prototype._onModelChanged=function(){this._callOnModelChange.clear();var d=this._editor.getModel();if(d)for(var u=0,C=this._model.groups;u<C.length;u++){var w=C[u];if(Object(Me.e)(w.uri,d.uri)){this._addDecorations(w);return}}},y.prototype._addDecorations=function(d){var u=this;if(!!this._editor.hasModel()){this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(function(Ie){return u._onDecorationChanged()}));for(var C=[],w=[],b=0,Q=d.children.length;b<Q;b++){var ke=d.children[b];this._decorationIgnoreSet.has(ke.id)||(C.push({range:ke.range,options:y.DecorationOptions}),w.push(b))}for(var rt=this._editor.deltaDecorations([],C),b=0;b<rt.length;b++)this._decorations.set(rt[b],d.children[w[b]])}},y.prototype._onDecorationChanged=function(){var d=this,u=[],C=this._editor.getModel();if(!!C){this._decorations.forEach(function(Q,ke){var rt=C.getDecorationRange(ke);if(!!rt){var Ie=!1;if(!V.a.equalsRange(rt,Q.range)){if(V.a.spansMultipleLines(rt))Ie=!0;else{var lt=Q.range.endColumn-Q.range.startColumn,Pt=rt.endColumn-rt.startColumn;lt!==Pt&&(Ie=!0)}Ie?(d._decorationIgnoreSet.add(Q.id),u.push(ke)):Q.range=rt}}});for(var w=0,b=u.length;w<b;w++)this._decorations.delete(u[w]);this._editor.deltaDecorations(u,[])}},y.prototype.removeDecorations=function(){var d=[];this._decorations.forEach(function(u,C){d.push(C)}),this._editor.deltaDecorations(d,[]),this._decorations.clear()},y.DecorationOptions=T.a.register({stickiness:1,className:"reference-decoration"}),y}(),Cs=function(){function y(){this.ratio=.7,this.heightInLines=18}return y.fromJSON=function(d){var u,C;try{var w=JSON.parse(d);u=w.ratio,C=w.heightInLines}catch(b){}return{ratio:u||.7,heightInLines:C||18}},y}(),Go=function(y){Co(d,y);function d(u,C,w,b,Q,ke,rt,Ie){var lt=y.call(this,u,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return lt._defaultTreeKeyboardSupport=C,lt.layoutData=w,lt._textModelResolverService=Q,lt._instantiationService=ke,lt._peekViewService=rt,lt._uriLabel=Ie,lt._disposeOnNewModel=new P.b,lt._callOnDispose=new P.b,lt._onDidSelectReference=new X.a,lt.onDidSelectReference=lt._onDidSelectReference.event,lt._dim={height:0,width:0},lt._applyTheme(b.getTheme()),lt._callOnDispose.add(b.onThemeChange(lt._applyTheme.bind(lt))),lt._peekViewService.addExclusiveWidget(u,lt),lt.create(),lt}return d.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(P.f)(this._preview),Object(P.f)(this._previewNotAvailableMessage),Object(P.f)(this._tree),Object(P.f)(this._previewModelReference),this._splitView.dispose(),y.prototype.dispose.call(this)},d.prototype._applyTheme=function(u){var C=u.getColor(oi)||I.a.transparent;this.style({arrowColor:C,frameColor:C,headerBackgroundColor:u.getColor(xn)||I.a.transparent,primaryHeadingColor:u.getColor(kn),secondaryHeadingColor:u.getColor(Fn)})},d.prototype.show=function(u){this.editor.revealRangeInCenterIfOutsideViewport(u,0),y.prototype.show.call(this,u,this.layoutData.heightInLines||18)},d.prototype.focusOnReferenceTree=function(){this._tree.domFocus()},d.prototype.focusOnPreviewEditor=function(){this._preview.focus()},d.prototype.isPreviewEditorFocused=function(){return this._preview.hasTextFocus()},d.prototype._onTitleClick=function(u){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:u.ctrlKey||u.metaKey||u.altKey?"side":"open",source:"title"})},d.prototype._fillBody=function(u){var C=this;this.setCssClass("reference-zone-widget"),this._messageContainer=x.p(u,x.a("div.messages")),x.I(this._messageContainer),this._splitView=new Vs(u,{orientation:1}),this._previewContainer=x.p(u,x.a("div.preview.inline"));var w={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(Ht,this._previewContainer,w,this.editor),x.I(this._previewContainer),this._previewNotAvailableMessage=T.b.createFromString(re.a("missingPreviewMessage","no preview available")),this._treeContainer=x.p(u,x.a("div.ref-tree.inline"));var b={ariaLabel:re.a("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Ko,keyboardNavigationLabelProvider:this._instantiationService.createInstance(Cr),identityProvider:new Ei,overrideStyles:{listBackground:ci}};this._tree=this._instantiationService.createInstance(Po.c,"ReferencesWidget",this._treeContainer,new nr,[this._instantiationService.createInstance(Io),this._instantiationService.createInstance(oo)],this._instantiationService.createInstance(ro),b),this._splitView.addView({onDidChange:X.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(rt){C._preview.layout({height:C._dim.height,width:rt})}},uo.Distribute),this._splitView.addView({onDidChange:X.b.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(rt){C._treeContainer.style.height=C._dim.height+"px",C._treeContainer.style.width=rt+"px",C._tree.layout(C._dim.height,rt)}},uo.Distribute),this._disposables.add(this._splitView.onDidSashChange(function(){C._dim.width&&(C.layoutData.ratio=C._splitView.getViewSize(0)/C._dim.width)},void 0));var Q=function(rt,Ie){rt instanceof Br&&(Ie==="show"&&C._revealReference(rt,!1),C._onDidSelectReference.fire({element:rt,kind:Ie,source:"tree"}))};this._tree.onDidChangeFocus(function(ke){Q(ke.elements[0],"show")}),this._tree.onDidOpen(function(ke){ke.browserEvent instanceof MouseEvent&&(ke.browserEvent.ctrlKey||ke.browserEvent.metaKey||ke.browserEvent.altKey)?Q(ke.elements[0],"side"):ke.browserEvent instanceof KeyboardEvent||ke.browserEvent instanceof MouseEvent&&ke.browserEvent.detail===2||ke.browserEvent.tapCount===2?Q(ke.elements[0],"goto"):Q(ke.elements[0],"show")}),x.I(this._treeContainer)},d.prototype._onWidth=function(u){this._dim&&this._doLayoutBody(this._dim.height,u)},d.prototype._doLayoutBody=function(u,C){y.prototype._doLayoutBody.call(this,u,C),this._dim={height:u,width:C},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(C),this._splitView.resizeView(0,C*this.layoutData.ratio)},d.prototype.setSelection=function(u){var C=this;return this._revealReference(u,!0).then(function(){!C._model||(C._tree.setSelection([u]),C._tree.setFocus([u]))})},d.prototype.setModel=function(u){return this._disposeOnNewModel.clear(),this._model=u,this._model?this._onNewModel():Promise.resolve()},d.prototype._onNewModel=function(){var u=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerHTML=re.a("noResults","No results"),x.W(this._messageContainer),Promise.resolve(void 0)):(x.I(this._messageContainer),this._decorationsManager=new ys(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(function(C){return u._tree.rerender(C)})),this._disposeOnNewModel.add(this._preview.onMouseDown(function(C){var w=C.event,b=C.target;if(w.detail===2){var Q=u._getFocusedReference();!Q||u._onDidSelectReference.fire({element:{uri:Q.uri,range:b.range},kind:w.ctrlKey||w.metaKey||w.altKey?"side":"open",source:"editor"})}})),x.e(this.container,"results-loaded"),x.W(this._treeContainer),x.W(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)},d.prototype._getFocusedReference=function(){var u=this._tree.getFocus()[0];if(u instanceof Br)return u;if(u instanceof cr&&u.children.length>0)return u.children[0]},d.prototype._revealReference=function(u,C){return Us(this,void 0,void 0,function(){var w,b,Q,ke,rt;return kr(this,function(Ie){switch(Ie.label){case 0:return this._revealedReference===u?[2]:(this._revealedReference=u,u.uri.scheme!==Rs.b.inMemory?this.setTitle(Object(Me.c)(u.uri),this._uriLabel.getUriLabel(Object(Me.d)(u.uri))):this.setTitle(re.a("peekView.alternateTitle","References")),w=this._textModelResolverService.createModelReference(u.uri),this._tree.getInput()!==u.parent?[3,1]:(this._tree.reveal(u),[3,3]));case 1:return C&&this._tree.reveal(u.parent),[4,this._tree.expand(u.parent)];case 2:Ie.sent(),this._tree.reveal(u),Ie.label=3;case 3:return[4,w];case 4:return b=Ie.sent(),this._model?(Object(P.f)(this._previewModelReference),Q=b.object,Q?(ke=this._preview.getModel()===Q.textEditorModel?0:1,rt=V.a.lift(u.range).collapseToStart(),this._previewModelReference=b,this._preview.setModel(Q.textEditorModel),this._preview.setSelection(rt),this._preview.revealRangeInCenter(rt,ke)):(this._preview.setModel(this._previewNotAvailableMessage),b.dispose()),[2]):(b.dispose(),[2])}})})},d=Hs([Or(3,he.c),Or(4,Lo.a),Or(5,Mn.a),Or(6,mt),Or(7,no.a)],d),d}(wn);Object(he.e)(function(y,d){var u=y.getColor(Vn);u&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+u+"; }");var C=y.getColor(bi);C&&d.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+C+"; }");var w=y.getColor(ji);w&&d.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+w+"; box-sizing: border-box; }");var b=y.getColor(se.b);b&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+b+"; box-sizing: border-box; }");var Q=y.getColor(ci);Q&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+Q+"; }");var ke=y.getColor(Ui);ke&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+ke+"; }");var rt=y.getColor(rr);rt&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+rt+"; }");var Ie=y.getColor(Xn);Ie&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+Ie+"; }");var lt=y.getColor(Ri);lt&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+lt+" !important; }");var Pt=y.getColor(wi);Pt&&d.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: "+Pt+";")+"}");var qt=y.getColor(Bi);qt&&d.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+(" background-color: "+qt+";")+"}")});var Vr=o("nrhi"),bs=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},Xr=function(y,d){return function(u,C){d(u,C,y)}},Nr=function(y,d,u,C){function w(b){return b instanceof u?b:new u(function(Q){Q(b)})}return new(u||(u=Promise))(function(b,Q){function ke(lt){try{Ie(C.next(lt))}catch(Pt){Q(Pt)}}function rt(lt){try{Ie(C.throw(lt))}catch(Pt){Q(Pt)}}function Ie(lt){lt.done?b(lt.value):w(lt.value).then(ke,rt)}Ie((C=C.apply(y,d||[])).next())})},Zi=function(y,d){var u={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},C,w,b,Q;return Q={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ke(Ie){return function(lt){return rt([Ie,lt])}}function rt(Ie){if(C)throw new TypeError("Generator is already executing.");for(;u;)try{if(C=1,w&&(b=Ie[0]&2?w.return:Ie[0]?w.throw||((b=w.return)&&b.call(w),0):w.next)&&!(b=b.call(w,Ie[1])).done)return b;switch(w=0,b&&(Ie=[Ie[0]&2,b.value]),Ie[0]){case 0:case 1:b=Ie;break;case 4:return u.label++,{value:Ie[1],done:!1};case 5:u.label++,w=Ie[1],Ie=[0];continue;case 7:Ie=u.ops.pop(),u.trys.pop();continue;default:if(b=u.trys,!(b=b.length>0&&b[b.length-1])&&(Ie[0]===6||Ie[0]===2)){u=0;continue}if(Ie[0]===3&&(!b||Ie[1]>b[0]&&Ie[1]<b[3])){u.label=Ie[1];break}if(Ie[0]===6&&u.label<b[1]){u.label=b[1],b=Ie;break}if(b&&u.label<b[2]){u.label=b[2],u.ops.push(Ie);break}b[2]&&u.ops.pop(),u.trys.pop();continue}Ie=d.call(y,u)}catch(lt){Ie=[6,lt],w=0}finally{C=b=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},Qr=new ge.d("referenceSearchVisible",!1),Yo=function(){function y(d,u,C,w,b,Q,ke,rt){this._defaultTreeKeyboardSupport=d,this._editor=u,this._editorService=w,this._notificationService=b,this._instantiationService=Q,this._storageService=ke,this._configurationService=rt,this._disposables=new P.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Qr.bindTo(C)}return y.get=function(d){return d.getContribution(y.ID)},y.prototype.dispose=function(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(P.f)(this._widget),Object(P.f)(this._model),this._widget=void 0,this._model=void 0},y.prototype.toggleWidget=function(d,u,C){var w=this,b;if(this._widget&&(b=this._widget.position),this.closeWidget(),!(!!b&&d.containsPosition(b))){this._peekMode=C,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(function(){w.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(function(){w._ignoreModelChangeEvent||w.closeWidget()}));var Q="peekViewLayout",ke=Cs.fromJSON(this._storageService.get(Q,0,"{}"));this._widget=this._instantiationService.createInstance(Go,this._editor,this._defaultTreeKeyboardSupport,ke),this._widget.setTitle(re.a("labelLoading","Loading...")),this._widget.show(d),this._disposables.add(this._widget.onDidClose(function(){u.cancel(),w._widget&&(w._storageService.store(Q,JSON.stringify(w._widget.layoutData),0),w._widget=void 0),w.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(function(Ie){var lt=Ie.element,Pt=Ie.kind;if(!!lt)switch(Pt){case"open":(Ie.source!=="editor"||!w._configurationService.getValue("editor.stablePeek"))&&w.openReference(lt,!1);break;case"side":w.openReference(lt,!0);break;case"goto":C?w._gotoReference(lt):w.openReference(lt,!1);break}}));var rt=++this._requestIdPool;u.then(function(Ie){if(!(rt!==w._requestIdPool||!w._widget))return w._model&&w._model.dispose(),w._model=Ie,w._widget.setModel(w._model).then(function(){if(w._widget&&w._model&&w._editor.hasModel()){w._model.isEmpty?w._widget.setMetaTitle(""):w._widget.setMetaTitle(re.a("metaTitle.N","{0} ({1})",w._model.title,w._model.references.length));var lt=w._editor.getModel().uri,Pt=new D.a(d.startLineNumber,d.startColumn),qt=w._model.nearestReference(lt,Pt);if(qt)return w._widget.setSelection(qt).then(function(){w._widget&&w._editor.getOption(65)==="editor"&&w._widget.focusOnPreviewEditor()})}})},function(Ie){w._notificationService.error(Ie)})}},y.prototype.changeFocusBetweenPreviewAndReferences=function(){!this._widget||(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())},y.prototype.goToNextOrPreviousReference=function(d){return Nr(this,void 0,void 0,function(){var u,C,w,b,Q;return Zi(this,function(ke){switch(ke.label){case 0:return!this._editor.hasModel()||!this._model||!this._widget?[2]:(u=this._widget.position,u?(C=this._model.nearestReference(this._editor.getModel().uri,u),C?(w=this._model.nextOrPreviousReference(C,d),b=this._editor.hasTextFocus(),Q=this._widget.isPreviewEditorFocused(),[4,this._widget.setSelection(w)]):[2]):[2]);case 1:return ke.sent(),[4,this._gotoReference(w)];case 2:return ke.sent(),b?this._editor.focus():this._widget&&Q&&this._widget.focusOnPreviewEditor(),[2]}})})},y.prototype.closeWidget=function(d){d===void 0&&(d=!0),this._referenceSearchVisible.reset(),this._disposables.clear(),Object(P.f)(this._widget),Object(P.f)(this._model),this._widget=void 0,this._model=void 0,d&&this._editor.focus(),this._requestIdPool+=1},y.prototype._gotoReference=function(d){var u=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var C=V.a.lift(d.range).collapseToStart();return this._editorService.openCodeEditor({resource:d.uri,options:{selection:C}},this._editor).then(function(w){var b;if(u._ignoreModelChangeEvent=!1,!w||!u._widget){u.closeWidget();return}if(u._editor===w)u._widget.show(C),u._widget.focusOnReferenceTree();else{var Q=y.get(w),ke=u._model.clone();u.closeWidget(),w.focus(),Q.toggleWidget(C,Object(v.f)(function(rt){return Promise.resolve(ke)}),(b=u._peekMode)!==null&&b!==void 0?b:!1)}},function(w){u._ignoreModelChangeEvent=!1,Object(U.e)(w)})},y.prototype.openReference=function(d,u){u||this.closeWidget();var C=d.uri,w=d.range;this._editorService.openCodeEditor({resource:C,options:{selection:w}},this._editor,u)},y.ID="editor.contrib.referencesController",y=bs([Xr(2,ge.c),Xr(3,k.a),Xr(4,Ft.a),Xr(5,Mn.a),Xr(6,ps.a),Xr(7,z.a)],y),y}();function Ir(y,d){var u=tn(y);if(!!u){var C=Yo.get(u);C&&d(C)}}Vr.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(ne.a)(2048|41,60),when:ge.a.or(Qr,Nt.inPeekEditor),handler:function(d){Ir(d,function(u){u.changeFocusBetweenPreviewAndReferences()})}}),Vr.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:ge.a.or(Qr,Nt.inPeekEditor),handler:function(d){Ir(d,function(u){u.goToNextOrPreviousReference(!0)})}}),Vr.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1024|62,secondary:[1024|70],when:ge.a.or(Qr,Nt.inPeekEditor),handler:function(d){Ir(d,function(u){u.goToNextOrPreviousReference(!1)})}}),yn.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),yn.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),yn.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),yn.a.registerCommand("closeReferenceSearch",function(y){return Ir(y,function(d){return d.closeWidget()})}),Vr.a.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1024|9],when:ge.a.and(Nt.inPeekEditor,ge.a.not("config.editor.stablePeek"))}),Vr.a.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1024|9],when:ge.a.and(Qr,ge.a.not("config.editor.stablePeek"))}),Vr.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2048|3,mac:{primary:256|3},when:ge.a.and(Qr,Po.d),handler:function(d){var u,C=d.get(Po.a),w=(u=C.lastFocusedList)===null||u===void 0?void 0:u.getFocus();Array.isArray(w)&&w[0]instanceof Br&&Ir(d,function(b){return b.openReference(w[0],!0)})}}),yn.a.registerCommand("openReference",function(y){var d,u=y.get(Po.a),C=(d=u.lastFocusedList)===null||d===void 0?void 0:d.getFocus();Array.isArray(C)&&C[0]instanceof Br&&Ir(y,function(w){return w.openReference(C[0],!1)})});var Zo=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),$r=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},Dr=function(y,d){return function(u,C){d(u,C,y)}},Xo=new ge.d("hasSymbols",!1),Jr=Object(Mn.c)("ISymbolNavigationService"),lo=function(){function y(d,u,C,w){this._editorService=u,this._notificationService=C,this._keybindingService=w,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Xo.bindTo(d)}return y.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(P.f)(this._currentState),Object(P.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},y.prototype.put=function(d){var u=this,C=d.parent.parent;if(C.references.length<=1){this.reset();return}this._currentModel=C,this._currentIdx=C.references.indexOf(d),this._ctxHasSymbols.set(!0),this._showMessage();var w=new gr(this._editorService),b=w.onDidChange(function(Q){if(!u._ignoreEditorChange){var ke=u._editorService.getActiveCodeEditor();if(!!ke){var rt=ke.getModel(),Ie=ke.getPosition();if(!(!rt||!Ie)){for(var lt=!1,Pt=!1,qt=0,en=C.references;qt<en.length;qt++){var dn=en[qt];if(Object(Me.e)(dn.uri,rt.uri))lt=!0,Pt=Pt||V.a.containsPosition(dn.range,Ie);else if(lt)break}(!lt||!Pt)&&u.reset()}}}});this._currentState=Object(P.e)(w,b)},y.prototype.revealNext=function(d){var u=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var C=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:C.uri,options:{selection:V.a.collapseToStart(C.range),revealInCenterIfOutsideViewport:!0}},d).finally(function(){u._ignoreEditorChange=!1})},y.prototype._showMessage=function(){Object(P.f)(this._currentMessage);var d=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),u=d?Object(re.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,d.getLabel()):Object(re.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(u)},y=$r([Dr(0,ge.c),Dr(1,k.a),Dr(2,Ft.a),Dr(3,L.a)],y),y}();Object(pi.b)(Jr,lo,!0),Object(F.g)(new(function(y){Zo(d,y);function d(){return y.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:Xo,kbOpts:{weight:100,primary:70}})||this}return d.prototype.runEditorCommand=function(u,C){return u.get(Jr).revealNext(C)},d}(F.c))),Vr.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:Xo,primary:9,handler:function(d){d.get(Jr).reset()}});var gr=function(){function y(d){this._listener=new Map,this._disposables=new P.b,this._onDidChange=new X.a,this.onDidChange=this._onDidChange.event,this._disposables.add(d.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(d.onCodeEditorAdd(this._onDidAddEditor,this)),d.listCodeEditors().forEach(this._onDidAddEditor,this)}return y.prototype.dispose=function(){this._disposables.dispose(),this._onDidChange.dispose(),this._listener.forEach(P.f)},y.prototype._onDidAddEditor=function(d){var u=this;this._listener.set(d,Object(P.e)(d.onDidChangeCursorPosition(function(C){return u._onDidChange.fire({editor:d})}),d.onDidChangeModelContent(function(C){return u._onDidChange.fire({editor:d})})))},y.prototype._onDidRemoveEditor=function(d){Object(P.f)(this._listener.get(d)),this._listener.delete(d)},y=$r([Dr(0,k.a)],y),y}(),Si=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),Xi=function(y,d,u,C){function w(b){return b instanceof u?b:new u(function(Q){Q(b)})}return new(u||(u=Promise))(function(b,Q){function ke(lt){try{Ie(C.next(lt))}catch(Pt){Q(Pt)}}function rt(lt){try{Ie(C.throw(lt))}catch(Pt){Q(Pt)}}function Ie(lt){lt.done?b(lt.value):w(lt.value).then(ke,rt)}Ie((C=C.apply(y,d||[])).next())})},mr=function(y,d){var u={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},C,w,b,Q;return Q={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function ke(Ie){return function(lt){return rt([Ie,lt])}}function rt(Ie){if(C)throw new TypeError("Generator is already executing.");for(;u;)try{if(C=1,w&&(b=Ie[0]&2?w.return:Ie[0]?w.throw||((b=w.return)&&b.call(w),0):w.next)&&!(b=b.call(w,Ie[1])).done)return b;switch(w=0,b&&(Ie=[Ie[0]&2,b.value]),Ie[0]){case 0:case 1:b=Ie;break;case 4:return u.label++,{value:Ie[1],done:!1};case 5:u.label++,w=Ie[1],Ie=[0];continue;case 7:Ie=u.ops.pop(),u.trys.pop();continue;default:if(b=u.trys,!(b=b.length>0&&b[b.length-1])&&(Ie[0]===6||Ie[0]===2)){u=0;continue}if(Ie[0]===3&&(!b||Ie[1]>b[0]&&Ie[1]<b[3])){u.label=Ie[1];break}if(Ie[0]===6&&u.label<b[1]){u.label=b[1],b=Ie;break}if(b&&u.label<b[2]){u.label=b[2],u.ops.push(Ie);break}b[2]&&u.ops.pop(),u.trys.pop();continue}Ie=d.call(y,u)}catch(lt){Ie=[6,lt],w=0}finally{C=b=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},bo,_o,ai,So,qr,xo,Tr,Ro;$e.c.appendMenuItem(7,{submenu:8,title:re.a("peek.submenu","Peek"),group:"navigation",order:100});var co=function(y){Si(d,y);function d(u,C){var w=y.call(this,C)||this;return w._configuration=u,w}return d.prototype.run=function(u,C){var w=this;if(!C.hasModel())return Promise.resolve(void 0);var b=u.get(Ft.a),Q=u.get(k.a),ke=u.get(ko.a),rt=u.get(Jr),Ie=C.getModel(),lt=C.getPosition(),Pt=new hn.b(C,1|4),qt=Object(v.j)(this._getLocationModel(Ie,lt,Pt.token),Pt.token).then(function(en){return Xi(w,void 0,void 0,function(){var dn,an,bn,Rn;return mr(this,function(Pn){if(!en||Pt.token.isCancellationRequested)return[2];if(Object(Je.a)(en.ariaMessage),en.referenceAt(Ie.uri,lt)&&(an=this._getAlternativeCommand(C),an!==this.id&&(dn=C.getAction(an))),bn=en.references.length,bn===0)this._configuration.muteMessage||(Rn=Ie.getWordAtPosition(lt),$t.get(C).showMessage(this._getNoResultFoundMessage(Rn),lt));else if(bn===1&&dn)dn.run();else return[2,this._onResult(Q,rt,C,en)];return[2]})})},function(en){b.error(en)}).finally(function(){Pt.dispose()});return ke.showWhile(qt,250),qt},d.prototype._onResult=function(u,C,w,b){return Xi(this,void 0,void 0,function(){var Q,ke,rt,Ie;return mr(this,function(lt){switch(lt.label){case 0:return Q=this._getGoToPreference(w),!(w instanceof Ht)&&(this._configuration.openInPeek||Q==="peek"&&b.references.length>1)?(this._openInPeek(w,b),[3,3]):[3,1];case 1:return ke=b.firstReference(),rt=b.references.length>1&&Q==="gotoAndPeek",[4,this._openReference(w,u,ke,this._configuration.openToSide,!rt)];case 2:Ie=lt.sent(),rt&&Ie?this._openInPeek(Ie,b):b.dispose(),Q==="goto"&&C.put(ke),lt.label=3;case 3:return[2]}})})},d.prototype._openReference=function(u,C,w,b,Q){return Xi(this,void 0,void 0,function(){var ke,rt,Ie,lt;return mr(this,function(Pt){switch(Pt.label){case 0:return ke=void 0,Object(te.D)(w)&&(ke=w.targetSelectionRange),ke||(ke=w.range),[4,C.openCodeEditor({resource:w.uri,options:{selection:V.a.collapseToStart(ke),revealInCenterIfOutsideViewport:!0}},u,b)];case 1:return rt=Pt.sent(),rt?(Q&&(Ie=rt.getModel(),lt=rt.deltaDecorations([],[{range:ke,options:{className:"symbolHighlight"}}]),setTimeout(function(){rt.getModel()===Ie&&rt.deltaDecorations(lt,[])},350)),[2,rt]):[2,void 0]}})})},d.prototype._openInPeek=function(u,C){var w=Yo.get(u);w&&u.hasModel()?w.toggleWidget(u.getSelection(),Object(v.f)(function(b){return Promise.resolve(C)}),this._configuration.openInPeek):C.dispose()},d}(F.b),Ao=function(y){Si(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype._getLocationModel=function(u,C,w){return Xi(this,void 0,void 0,function(){var b;return mr(this,function(Q){switch(Q.label){case 0:return b=ri.bind,[4,Ho(u,C,w)];case 1:return[2,new(b.apply(ri,[void 0,Q.sent(),re.a("def.title","Definitions")]))]}})})},d.prototype._getNoResultFoundMessage=function(u){return u&&u.word?re.a("noResultWord","No definition found for '{0}'",u.word):re.a("generic.noResults","No definition found")},d.prototype._getAlternativeCommand=function(u){return u.getOption(41).alternativeDefinitionCommand},d.prototype._getGoToPreference=function(u){return u.getOption(41).multipleDefinitions},d}(co),Qo=Mo.g&&!He.l?2048|70:70;Object(F.f)((bo=function(y){Si(d,y);function d(){var u=y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d.id,label:re.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:ge.a.and(B.a.hasDefinitionProvider,B.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:B.a.editorTextFocus,primary:Qo,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:re.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return yn.a.registerCommandAlias("editor.action.goToDeclaration",d.id),u}return d}(Ao),bo.id="editor.action.revealDefinition",bo)),Object(F.f)((_o=function(y){Si(d,y);function d(){var u=y.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:d.id,label:re.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:ge.a.and(B.a.hasDefinitionProvider,B.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:B.a.editorTextFocus,primary:Object(ne.a)(2048|41,Qo),weight:100}})||this;return yn.a.registerCommandAlias("editor.action.openDeclarationToTheSide",d.id),u}return d}(Ao),_o.id="editor.action.revealDefinitionAside",_o)),Object(F.f)((ai=function(y){Si(d,y);function d(){var u=y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:d.id,label:re.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:ge.a.and(B.a.hasDefinitionProvider,Nt.notInPeekEditor,B.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:B.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return yn.a.registerCommandAlias("editor.action.previewDeclaration",d.id),u}return d}(Ao),ai.id="editor.action.peekDefinition",ai));var _s=function(y){Si(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype._getLocationModel=function(u,C,w){return Xi(this,void 0,void 0,function(){var b;return mr(this,function(Q){switch(Q.label){case 0:return b=ri.bind,[4,hs(u,C,w)];case 1:return[2,new(b.apply(ri,[void 0,Q.sent(),re.a("decl.title","Declarations")]))]}})})},d.prototype._getNoResultFoundMessage=function(u){return u&&u.word?re.a("decl.noResultWord","No declaration found for '{0}'",u.word):re.a("decl.generic.noResults","No declaration found")},d.prototype._getAlternativeCommand=function(u){return u.getOption(41).alternativeDeclarationCommand},d.prototype._getGoToPreference=function(u){return u.getOption(41).multipleDeclarations},d}(co);Object(F.f)((So=function(y){Si(d,y);function d(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d.id,label:re.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:ge.a.and(B.a.hasDeclarationProvider,B.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:re.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return d.prototype._getNoResultFoundMessage=function(u){return u&&u.word?re.a("decl.noResultWord","No declaration found for '{0}'",u.word):re.a("decl.generic.noResults","No declaration found")},d}(_s),So.id="editor.action.revealDeclaration",So)),Object(F.f)(function(y){Si(d,y);function d(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:re.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:ge.a.and(B.a.hasDeclarationProvider,Nt.notInPeekEditor,B.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return d}(_s));var Ss=function(y){Si(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype._getLocationModel=function(u,C,w){return Xi(this,void 0,void 0,function(){var b;return mr(this,function(Q){switch(Q.label){case 0:return b=ri.bind,[4,Uo(u,C,w)];case 1:return[2,new(b.apply(ri,[void 0,Q.sent(),re.a("typedef.title","Type Definitions")]))]}})})},d.prototype._getNoResultFoundMessage=function(u){return u&&u.word?re.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",u.word):re.a("goToTypeDefinition.generic.noResults","No type definition found")},d.prototype._getAlternativeCommand=function(u){return u.getOption(41).alternativeTypeDefinitionCommand},d.prototype._getGoToPreference=function(u){return u.getOption(41).multipleTypeDefinitions},d}(co);Object(F.f)((qr=function(y){Si(d,y);function d(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d.ID,label:re.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:ge.a.and(B.a.hasTypeDefinitionProvider,B.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:B.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:re.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return d}(Ss),qr.ID="editor.action.goToTypeDefinition",qr)),Object(F.f)((xo=function(y){Si(d,y);function d(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:d.ID,label:re.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:ge.a.and(B.a.hasTypeDefinitionProvider,Nt.notInPeekEditor,B.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return d}(Ss),xo.ID="editor.action.peekTypeDefinition",xo));var $o=function(y){Si(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype._getLocationModel=function(u,C,w){return Xi(this,void 0,void 0,function(){var b;return mr(this,function(Q){switch(Q.label){case 0:return b=ri.bind,[4,gs(u,C,w)];case 1:return[2,new(b.apply(ri,[void 0,Q.sent(),re.a("impl.title","Implementations")]))]}})})},d.prototype._getNoResultFoundMessage=function(u){return u&&u.word?re.a("goToImplementation.noResultWord","No implementation found for '{0}'",u.word):re.a("goToImplementation.generic.noResults","No implementation found")},d.prototype._getAlternativeCommand=function(u){return u.getOption(41).alternativeImplementationCommand},d.prototype._getGoToPreference=function(u){return u.getOption(41).multipleImplementations},d}(co);Object(F.f)((Tr=function(y){Si(d,y);function d(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d.ID,label:re.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:ge.a.and(B.a.hasImplementationProvider,B.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:B.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:re.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return d}($o),Tr.ID="editor.action.goToImplementation",Tr)),Object(F.f)((Ro=function(y){Si(d,y);function d(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:d.ID,label:re.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:ge.a.and(B.a.hasImplementationProvider,Nt.notInPeekEditor,B.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:B.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return d}($o),Ro.ID="editor.action.peekImplementation",Ro));var ws=function(y){Si(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype._getNoResultFoundMessage=function(u){return u?re.a("references.no","No references found for '{0}'",u.word):re.a("references.noGeneric","No references found")},d.prototype._getAlternativeCommand=function(u){return u.getOption(41).alternativeReferenceCommand},d.prototype._getGoToPreference=function(u){return u.getOption(41).multipleReferences},d}(co);Object(F.f)(function(y){Si(d,y);function d(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:re.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:ge.a.and(B.a.hasReferenceProvider,Nt.notInPeekEditor,B.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:B.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:re.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return d.prototype._getLocationModel=function(u,C,w){return Xi(this,void 0,void 0,function(){var b;return mr(this,function(Q){switch(Q.label){case 0:return b=ri.bind,[4,yo(u,C,!0,w)];case 1:return[2,new(b.apply(ri,[void 0,Q.sent(),re.a("ref.title","References")]))]}})})},d}(ws)),Object(F.f)(function(y){Si(d,y);function d(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:re.a("references.action.label","Peek References"),alias:"Peek References",precondition:ge.a.and(B.a.hasReferenceProvider,Nt.notInPeekEditor,B.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return d.prototype._getLocationModel=function(u,C,w){return Xi(this,void 0,void 0,function(){var b;return mr(this,function(Q){switch(Q.label){case 0:return b=ri.bind,[4,yo(u,C,!1,w)];case 1:return[2,new(b.apply(ri,[void 0,Q.sent(),re.a("ref.title","References")]))]}})})},d}(ws));var Jo=function(y){Si(d,y);function d(u,C,w){var b=y.call(this,u,{id:"editor.action.goToLocation",label:re.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:ge.a.and(Nt.notInPeekEditor,B.a.isInEmbeddedEditor.toNegated())})||this;return b._references=C,b._gotoMultipleBehaviour=w,b}return d.prototype._getLocationModel=function(u,C,w){return Xi(this,void 0,void 0,function(){return mr(this,function(b){return[2,new ri(this._references,re.a("generic.title","Locations"))]})})},d.prototype._getNoResultFoundMessage=function(u){return u&&re.a("generic.noResult","No results for '{0}'",u.word)||""},d.prototype._getGoToPreference=function(u){var C;return(C=this._gotoMultipleBehaviour)!==null&&C!==void 0?C:u.getOption(41).multipleReferences},d.prototype._getAlternativeCommand=function(){return""},d}(co);yn.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_.a},{name:"position",description:"The position at which to start",constraint:D.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(d,u,C,w,b,Q){return Xi(void 0,void 0,void 0,function(){var ke,rt;return mr(this,function(Ie){switch(Ie.label){case 0:return Object(br.a)(_.a.isUri(u)),Object(br.a)(D.a.isIPosition(C)),Object(br.a)(Array.isArray(w)),Object(br.a)(typeof b=="undefined"||typeof b=="string"),Object(br.a)(typeof Q=="undefined"||typeof Q=="boolean"),ke=d.get(k.a),[4,ke.openCodeEditor({resource:u},ke.getFocusedCodeEditor())];case 1:return rt=Ie.sent(),Object(zo.a)(rt)?(rt.setPosition(C),rt.revealPositionInCenterIfOutsideViewport(C,0),[2,rt.invokeWithinContext(function(lt){var Pt=new Jo({muteMessage:!0,openInPeek:Boolean(Q),openToSide:!1},w,b);lt.get(Mn.a).invokeFunction(Pt.run.bind(Pt),rt)})]):[2]}})})}}),yn.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_.a},{name:"position",description:"The position at which to start",constraint:D.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(d,u,C,w,b){return Xi(void 0,void 0,void 0,function(){return mr(this,function(Q){return d.get(yn.b).executeCommand("editor.action.goToLocations",u,C,w,b,!0),[2]})})}}),yn.a.registerCommand({id:"editor.action.findReferences",handler:function(d,u,C){Object(br.a)(_.a.isUri(u)),Object(br.a)(D.a.isIPosition(C));var w=d.get(k.a);return w.openCodeEditor({resource:u},w.getFocusedCodeEditor()).then(function(b){if(!(!Object(zo.a)(b)||!b.hasModel())){var Q=Yo.get(b);if(!!Q){var ke=Object(v.f)(function(Ie){return yo(b.getModel(),D.a.lift(C),!1,Ie).then(function(lt){return new ri(lt,re.a("ref.title","References"))})}),rt=new V.a(C.lineNumber,C.column,C.lineNumber,C.column);return Promise.resolve(Q.toggleWidget(rt,ke,!1))}}})}}),yn.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var Fo=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}();function fo(y,d){return!!y[d]}var Wo=function(){function y(d,u){this.target=d.target,this.hasTriggerModifier=fo(d.event,u.triggerModifier),this.hasSideBySideModifier=fo(d.event,u.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=He.i||d.event.detail<=1}return y}(),qo=function(){function y(d,u){this.keyCodeIsTriggerKey=d.keyCode===u.triggerKey,this.keyCodeIsSideBySideKey=d.keyCode===u.triggerSideBySideKey,this.hasTriggerModifier=fo(d,u.triggerModifier)}return y}(),O=function(){function y(d,u,C,w){this.triggerKey=d,this.triggerModifier=u,this.triggerSideBySideKey=C,this.triggerSideBySideModifier=w}return y.prototype.equals=function(d){return this.triggerKey===d.triggerKey&&this.triggerModifier===d.triggerModifier&&this.triggerSideBySideKey===d.triggerSideBySideKey&&this.triggerSideBySideModifier===d.triggerSideBySideModifier},y}();function n(y){return y==="altKey"?Mo.e?new O(57,"metaKey",6,"altKey"):new O(5,"ctrlKey",6,"altKey"):Mo.e?new O(6,"altKey",57,"metaKey"):new O(6,"altKey",5,"ctrlKey")}var e=function(y){Fo(d,y);function d(u){var C=y.call(this)||this;return C._onMouseMoveOrRelevantKeyDown=C._register(new X.a),C.onMouseMoveOrRelevantKeyDown=C._onMouseMoveOrRelevantKeyDown.event,C._onExecute=C._register(new X.a),C.onExecute=C._onExecute.event,C._onCancel=C._register(new X.a),C.onCancel=C._onCancel.event,C._editor=u,C._opts=n(C._editor.getOption(59)),C.lastMouseMoveEvent=null,C.hasTriggerKeyOnMouseDown=!1,C._register(C._editor.onDidChangeConfiguration(function(w){if(w.hasChanged(59)){var b=n(C._editor.getOption(59));if(C._opts.equals(b))return;C._opts=b,C.lastMouseMoveEvent=null,C.hasTriggerKeyOnMouseDown=!1,C._onCancel.fire()}})),C._register(C._editor.onMouseMove(function(w){return C.onEditorMouseMove(new Wo(w,C._opts))})),C._register(C._editor.onMouseDown(function(w){return C.onEditorMouseDown(new Wo(w,C._opts))})),C._register(C._editor.onMouseUp(function(w){return C.onEditorMouseUp(new Wo(w,C._opts))})),C._register(C._editor.onKeyDown(function(w){return C.onEditorKeyDown(new qo(w,C._opts))})),C._register(C._editor.onKeyUp(function(w){return C.onEditorKeyUp(new qo(w,C._opts))})),C._register(C._editor.onMouseDrag(function(){return C.resetHandler()})),C._register(C._editor.onDidChangeCursorSelection(function(w){return C.onDidChangeCursorSelection(w)})),C._register(C._editor.onDidChangeModel(function(w){return C.resetHandler()})),C._register(C._editor.onDidChangeModelContent(function(){return C.resetHandler()})),C._register(C._editor.onDidScrollChange(function(w){(w.scrollTopChanged||w.scrollLeftChanged)&&C.resetHandler()})),C}return d.prototype.onDidChangeCursorSelection=function(u){u.selection&&u.selection.startColumn!==u.selection.endColumn&&this.resetHandler()},d.prototype.onEditorMouseMove=function(u){this.lastMouseMoveEvent=u,this._onMouseMoveOrRelevantKeyDown.fire([u,null])},d.prototype.onEditorMouseDown=function(u){this.hasTriggerKeyOnMouseDown=u.hasTriggerModifier},d.prototype.onEditorMouseUp=function(u){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(u)},d.prototype.onEditorKeyDown=function(u){this.lastMouseMoveEvent&&(u.keyCodeIsTriggerKey||u.keyCodeIsSideBySideKey&&u.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,u]):u.hasTriggerModifier&&this._onCancel.fire()},d.prototype.onEditorKeyUp=function(u){u.keyCodeIsTriggerKey&&this._onCancel.fire()},d.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},d}(P.a),i=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},l=function(y,d){return function(u,C){d(u,C,y)}},c=function(){function y(d,u,C){var w=this;this.textModelResolverService=u,this.modeService=C,this.toUnhook=new P.b,this.toUnhookForKeyboard=new P.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=d;var b=new e(d);this.toUnhook.add(b),this.toUnhook.add(b.onMouseMoveOrRelevantKeyDown(function(Q){var ke=Q[0],rt=Q[1];w.startFindDefinitionFromMouse(ke,Object(br.n)(rt))})),this.toUnhook.add(b.onExecute(function(Q){w.isEnabled(Q)&&w.gotoDefinition(Q.target.position,Q.hasSideBySideModifier).then(function(){w.removeLinkDecorations()},function(ke){w.removeLinkDecorations(),Object(U.e)(ke)})})),this.toUnhook.add(b.onCancel(function(){w.removeLinkDecorations(),w.currentWordAtPosition=null}))}return y.get=function(d){return d.getContribution(y.ID)},y.prototype.startFindDefinitionFromCursor=function(d){var u=this;return this.startFindDefinition(d).then(function(){u.toUnhookForKeyboard.add(u.editor.onDidChangeCursorPosition(function(){u.currentWordAtPosition=null,u.removeLinkDecorations(),u.toUnhookForKeyboard.clear()})),u.toUnhookForKeyboard.add(u.editor.onKeyDown(function(C){C&&(u.currentWordAtPosition=null,u.removeLinkDecorations(),u.toUnhookForKeyboard.clear())}))})},y.prototype.startFindDefinitionFromMouse=function(d,u){if(!(d.target.type===9&&this.linkDecorations.length>0)){if(!this.editor.hasModel()||!this.isEnabled(d,u)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}var C=d.target.position;this.startFindDefinition(C)}},y.prototype.startFindDefinition=function(d){var u=this,C;this.toUnhookForKeyboard.clear();var w=d?(C=this.editor.getModel())===null||C===void 0?void 0:C.getWordAtPosition(d):null;if(!w)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===w.startColumn&&this.currentWordAtPosition.endColumn===w.endColumn&&this.currentWordAtPosition.word===w.word)return Promise.resolve(0);this.currentWordAtPosition=w;var b=new hn.a(this.editor,4|1|2|8);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(v.f)(function(Q){return u.findDefinition(d,Q)}),this.previousPromise.then(function(Q){if(!Q||!Q.length||!b.validate(u.editor)){u.removeLinkDecorations();return}if(Q.length>1)u.addDecoration(new V.a(d.lineNumber,w.startColumn,d.lineNumber,w.endColumn),new K.a().appendText(re.a("multipleResults","Click to show {0} definitions.",Q.length)));else{var ke=Q[0];if(!ke.uri)return;u.textModelResolverService.createModelReference(ke.uri).then(function(rt){if(!rt.object||!rt.object.textEditorModel){rt.dispose();return}var Ie=rt.object.textEditorModel,lt=ke.range.startLineNumber;if(lt<1||lt>Ie.getLineCount()){rt.dispose();return}var Pt=u.getPreviewValue(Ie,lt,ke),qt;ke.originSelectionRange?qt=V.a.lift(ke.originSelectionRange):qt=new V.a(d.lineNumber,w.startColumn,d.lineNumber,w.endColumn);var en=u.modeService.getModeIdByFilepathOrFirstLine(Ie.uri);u.addDecoration(qt,new K.a().appendCodeblock(en||"",Pt)),rt.dispose()})}}).then(void 0,U.e)},y.prototype.getPreviewValue=function(d,u,C){var w=C.targetSelectionRange?C.range:this.getPreviewRangeBasedOnBrackets(d,u),b=w.endLineNumber-w.startLineNumber;b>=y.MAX_SOURCE_PREVIEW_LINES&&(w=this.getPreviewRangeBasedOnIndentation(d,u));var Q=this.stripIndentationFromPreviewRange(d,u,w);return Q},y.prototype.stripIndentationFromPreviewRange=function(d,u,C){for(var w=d.getLineFirstNonWhitespaceColumn(u),b=w,Q=u+1;Q<C.endLineNumber;Q++){var ke=d.getLineFirstNonWhitespaceColumn(Q);b=Math.min(b,ke)}var rt=d.getValueInRange(C).replace(new RegExp("^\\s{"+(b-1)+"}","gm"),"").trim();return rt},y.prototype.getPreviewRangeBasedOnIndentation=function(d,u){for(var C=d.getLineFirstNonWhitespaceColumn(u),w=Math.min(d.getLineCount(),u+y.MAX_SOURCE_PREVIEW_LINES),b=u+1;b<w;b++){var Q=d.getLineFirstNonWhitespaceColumn(b);if(C===Q)break}return new V.a(u,1,b+1,1)},y.prototype.getPreviewRangeBasedOnBrackets=function(d,u){for(var C=Math.min(d.getLineCount(),u+y.MAX_SOURCE_PREVIEW_LINES),w=[],b=!0,Q=d.findNextBracket(new D.a(u,1));Q!==null;){if(w.length===0)w.push(Q);else{var ke=w[w.length-1];if(ke.open[0]===Q.open[0]&&ke.isOpen&&!Q.isOpen?w.pop():w.push(Q),w.length===0)if(b)b=!1;else return new V.a(u,1,Q.range.endLineNumber+1,1)}var rt=d.getLineMaxColumn(u),Ie=Q.range.endLineNumber,lt=Q.range.endColumn;if(rt===Q.range.endColumn&&(Ie++,lt=1),Ie>C)return new V.a(u,1,C+1,1);Q=d.findNextBracket(new D.a(Ie,lt))}return new V.a(u,1,C+1,1)},y.prototype.addDecoration=function(d,u){var C={range:d,options:{inlineClassName:"goto-definition-link",hoverMessage:u}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[C])},y.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},y.prototype.isEnabled=function(d,u){return this.editor.hasModel()&&d.isNoneOrSingleMouseDown&&d.target.type===6&&(d.hasTriggerModifier||(u?u.keyCodeIsTriggerKey:!1))&&te.f.has(this.editor.getModel())},y.prototype.findDefinition=function(d,u){var C=this.editor.getModel();return C?Ho(C,d,u):Promise.resolve(null)},y.prototype.gotoDefinition=function(d,u){var C=this;this.editor.setPosition(d);var w=new Ao({openToSide:u,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(b){return w.run(b,C.editor)})},y.prototype.dispose=function(){this.toUnhook.dispose()},y.ID="editor.contrib.gotodefinitionatposition",y.MAX_SOURCE_PREVIEW_LINES=8,y=i([l(1,Lo.a),l(2,G.a)],y),y}();Object(F.h)(c.ID,c),Object(he.e)(function(y,d){var u=y.getColor(se.n);u&&d.addRule(".monaco-editor .goto-definition-link { color: "+u+" !important; }")});var N=function(){var y=function(u,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,b){w.__proto__=b}||function(w,b){for(var Q in b)b.hasOwnProperty(Q)&&(w[Q]=b[Q])},y(u,C)};return function(d,u){y(d,u);function C(){this.constructor=d}d.prototype=u===null?Object.create(u):(C.prototype=u.prototype,new C)}}(),pe=function(y,d,u,C){var w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,u):C,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(y,d,u,C);else for(var ke=y.length-1;ke>=0;ke--)(Q=y[ke])&&(b=(w<3?Q(b):w>3?Q(d,u,b):Q(d,u))||b);return w>3&&b&&Object.defineProperty(d,u,b),b},ue=function(y,d){return function(u,C){d(u,C,y)}},ze=function(){function y(d,u,C,w,b,Q){var ke=this;this._editor=d,this._openerService=u,this._modeService=C,this._markerDecorationsService=w,this._keybindingService=b,this._themeService=Q,this._toUnhook=new P.b,this._contentWidget=new P.d,this._glyphWidget=new P.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(rt){rt.hasChanged(44)&&(ke._hideWidgets(),ke._unhookEvents(),ke._hookEvents())})}return Object.defineProperty(y.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),y.get=function(d){return d.getContribution(y.ID)},y.prototype._hookEvents=function(){var d=this,u=function(){return d._hideWidgets()},C=this._editor.getOption(44);this._isHoverEnabled=C.enabled,this._isHoverSticky=C.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(w){return d._onEditorMouseDown(w)})),this._toUnhook.add(this._editor.onMouseUp(function(w){return d._onEditorMouseUp(w)})),this._toUnhook.add(this._editor.onMouseMove(function(w){return d._onEditorMouseMove(w)})),this._toUnhook.add(this._editor.onKeyDown(function(w){return d._onKeyDown(w)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return d._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(u)),this._toUnhook.add(this._editor.onMouseLeave(u)),this._toUnhook.add(this._editor.onDidChangeModel(u)),this._toUnhook.add(this._editor.onDidScrollChange(function(w){return d._onEditorScrollChanged(w)}))},y.prototype._unhookEvents=function(){this._toUnhook.clear()},y.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},y.prototype._onEditorScrollChanged=function(d){(d.scrollTopChanged||d.scrollLeftChanged)&&this._hideWidgets()},y.prototype._onEditorMouseDown=function(d){this._isMouseDown=!0;var u=d.target.type;if(u===9&&d.target.detail===Yr.ID){this._hoverClicked=!0;return}u===12&&d.target.detail===mo.ID||(u!==12&&d.target.detail!==mo.ID&&(this._hoverClicked=!1),this._hideWidgets())},y.prototype._onEditorMouseUp=function(d){this._isMouseDown=!1},y.prototype._onEditorMouseMove=function(d){var u=d.target.type;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())&&!(this._isHoverSticky&&u===9&&d.target.detail===Yr.ID)&&!(this._isHoverSticky&&u===12&&d.target.detail===mo.ID)){if(u===7){var C=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,w=d.target.detail;w&&!w.isAfterLines&&typeof w.horizontalDistanceToText=="number"&&w.horizontalDistanceToText<C&&(u=6)}u===6?(this.glyphWidget.hide(),this._isHoverEnabled&&d.target.range&&this.contentWidget.startShowingAt(d.target.range,0,!1)):u===2?(this.contentWidget.hide(),this._isHoverEnabled&&d.target.position&&this.glyphWidget.startShowingAt(d.target.position.lineNumber)):this._hideWidgets()}},y.prototype._onKeyDown=function(d){d.keyCode!==5&&d.keyCode!==6&&d.keyCode!==57&&d.keyCode!==4&&this._hideWidgets()},y.prototype._hideWidgets=function(){!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible()||(this._glyphWidget.value.hide(),this._contentWidget.value.hide())},y.prototype._createHoverWidgets=function(){this._contentWidget.value=new Yr(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget.value=new mo(this._editor,this._modeService,this._openerService)},y.prototype.showContentHover=function(d,u,C){this.contentWidget.startShowingAt(d,u,C)},y.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},y.ID="editor.contrib.hover",y=pe([ue(1,Re.a),ue(2,G.a),ue(3,fs.a),ue(4,L.a),ue(5,he.c)],y),y}(),st=function(y){N(d,y);function d(){return y.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:B.a.editorTextFocus,primary:Object(ne.a)(2048|41,2048|39),weight:100}})||this}return d.prototype.run=function(u,C){if(!!C.hasModel()){var w=ze.get(C);if(!!w){var b=C.getPosition(),Q=new V.a(b.lineNumber,b.column,b.lineNumber,b.column),ke=C.getOption(2)===2;w.showContentHover(Q,1,ke)}}},d}(F.b),ft=function(y){N(d,y);function d(){return y.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 d.prototype.run=function(u,C){var w=ze.get(C);if(!!w){var b=C.getPosition();if(!!b){var Q=new V.a(b.lineNumber,b.column,b.lineNumber,b.column),ke=c.get(C),rt=ke.startFindDefinitionFromCursor(b);rt?rt.then(function(){w.showContentHover(Q,1,!0)}):w.showContentHover(Q,1,!0)}}},d}(F.b);Object(F.h)(ze.ID,ze),Object(F.f)(st),Object(F.f)(ft),Object(he.e)(function(y,d){var u=y.getColor(se.D);u&&d.addRule(".monaco-editor .hoverHighlight { background-color: "+u+"; }");var C=y.getColor(se.A);C&&d.addRule(".monaco-editor .monaco-editor-hover { background-color: "+C+"; }");var w=y.getColor(se.B);w&&(d.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+w+"; }"),d.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+w.transparent(.5)+"; }"),d.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+w.transparent(.5)+"; }"),d.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+w.transparent(.5)+"; }"));var b=y.getColor(se.cc);b&&d.addRule(".monaco-editor .monaco-editor-hover a { color: "+b+"; }");var Q=y.getColor(se.C);Q&&d.addRule(".monaco-editor .monaco-editor-hover { color: "+Q+"; }");var ke=y.getColor(se.E);ke&&d.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+ke+"; }");var rt=y.getColor(se.bc);rt&&d.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+rt+"; }")})},sFUC:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("iuje");function re(ne){return ne&&typeof ne.getEditorType=="function"?ne.getEditorType()===R.a.ICodeEditor:!1}},sM1p:function(Et,A,o){"use strict";o.d(A,"a",function(){return P}),o.d(A,"b",function(){return F});var R=o("S3by"),re=o("Cg/j"),ne=R.a,P=Object(re.c)("notificationService"),F=function(){function V(){}return V}()},sStQ:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return o.e(225).then(o.bind(null,"QKwv"))}})},siPX:function(Et,A,o){},snIX:function(Et,A,o){"use strict";o.d(A,"a",function(){return V});var R=o("N0LK"),re=o("LCkn"),ne=o("Ll0s"),P=o("+Fos"),F=o("aokT"),V=function(){function B(){}return B.deleteRight=function(G,x,S,I){for(var K=[],D=G!==3,T=0,te=I.length;T<te;T++){var U=I[T],_=U;if(_.isEmpty()){var h=U.getPosition(),g=P.a.right(x,S,h.lineNumber,h.column);_=new F.a(g.lineNumber,g.column,h.lineNumber,h.column)}if(_.isEmpty()){K[T]=null;continue}_.startLineNumber!==_.endLineNumber&&(D=!0),K[T]=new re.a(_,"")}return[D,K]},B._isAutoClosingPairDelete=function(G,x,S){if(G.autoClosingBrackets==="never"&&G.autoClosingQuotes==="never")return!1;for(var I=0,K=S.length;I<K;I++){var D=S[I],T=D.getPosition();if(!D.isEmpty())return!1;var te=x.getLineContent(T.lineNumber),U=te[T.column-2],_=G.autoClosingPairsOpen2.get(U);if(!_)return!1;if(Object(ne.g)(U)){if(G.autoClosingQuotes==="never")return!1}else if(G.autoClosingBrackets==="never")return!1;for(var h=te[T.column-1],g=!1,p=0,v=_;p<v.length;p++){var E=v[p];E.open===U&&E.close===h&&(g=!0)}if(!g)return!1}return!0},B._runAutoClosingPairDelete=function(G,x,S){for(var I=[],K=0,D=S.length;K<D;K++){var T=S[K].getPosition(),te=new F.a(T.lineNumber,T.column-1,T.lineNumber,T.column+1);I[K]=new re.a(te,"")}return[!0,I]},B.deleteLeft=function(G,x,S,I){if(this._isAutoClosingPairDelete(x,S,I))return this._runAutoClosingPairDelete(x,S,I);for(var K=[],D=G!==2,T=0,te=I.length;T<te;T++){var U=I[T],_=U;if(_.isEmpty()){var h=U.getPosition();if(x.useTabStops&&h.column>1){var g=S.getLineContent(h.lineNumber),p=R.q(g),v=p===-1?g.length+1:p+1;if(h.column<=v){var E=ne.a.visibleColumnFromColumn2(x,S,h),k=ne.a.prevIndentTabStop(E,x.indentSize),z=ne.a.columnFromVisibleColumn2(x,S,h.lineNumber,k);_=new F.a(h.lineNumber,z,h.lineNumber,h.column)}else _=new F.a(h.lineNumber,h.column-1,h.lineNumber,h.column)}else{var oe=P.a.left(x,S,h.lineNumber,h.column);_=new F.a(oe.lineNumber,oe.column,h.lineNumber,h.column)}}if(_.isEmpty()){K[T]=null;continue}_.startLineNumber!==_.endLineNumber&&(D=!0),K[T]=new re.a(_,"")}return[D,K]},B.cut=function(G,x,S){for(var I=[],K=0,D=S.length;K<D;K++){var T=S[K];if(T.isEmpty())if(G.emptySelectionClipboard){var te=T.getPosition(),U=void 0,_=void 0,h=void 0,g=void 0;te.lineNumber<x.getLineCount()?(U=te.lineNumber,_=1,h=te.lineNumber+1,g=1):te.lineNumber>1?(U=te.lineNumber-1,_=x.getLineMaxColumn(te.lineNumber-1),h=te.lineNumber,g=x.getLineMaxColumn(te.lineNumber)):(U=te.lineNumber,_=1,h=te.lineNumber,g=x.getLineMaxColumn(te.lineNumber));var p=new F.a(U,_,h,g);p.isEmpty()?I[K]=null:I[K]=new re.a(p,"")}else I[K]=null;else I[K]=new re.a(T,"")}return new ne.e(0,I,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},B}()},sswD:function(Et,A,o){"use strict";o.d(A,"a",function(){return te}),o.d(A,"c",function(){return U}),o.d(A,"b",function(){return _}),o.d(A,"j",function(){return h}),o.d(A,"e",function(){return g}),o.d(A,"k",function(){return p}),o.d(A,"g",function(){return E}),o.d(A,"f",function(){return k}),o.d(A,"i",function(){return z}),o.d(A,"h",function(){return oe}),o.d(A,"d",function(){return fe});var R=o("/cxE"),re=o("bY76"),ne=o("Vxe3"),P=o("cGHE"),F=o("G2kB"),V=o("t49l"),B=o("fjLI"),G=o("nnTU"),x=o("T8No"),S=o("nrhi"),I=o("ic2d"),K=o("XXUj"),D=o("746U"),T=function(){var q=function(ce,Ne){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,_e){He.__proto__=_e}||function(He,_e){for(var de in _e)_e.hasOwnProperty(de)&&(He[de]=_e[de])},q(ce,Ne)};return function(X,ce){q(X,ce);function Ne(){this.constructor=X}X.prototype=ce===null?Object.create(ce):(Ne.prototype=ce.prototype,new Ne)}}(),te=function(){function q(X){this.id=X.id,this.precondition=X.precondition,this._kbOpts=X.kbOpts,this._menuOpts=X.menuOpts,this._description=X.description}return q.prototype.register=function(){var X=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var ce=this._kbOpts.kbExpr;this.precondition&&(ce?ce=x.a.and(ce,this.precondition):ce=this.precondition),S.a.registerCommandAndKeybindingRule({id:this.id,handler:function(He,_e){return X.runCommand(He,_e)},weight:this._kbOpts.weight,when:ce,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else G.a.registerCommand({id:this.id,handler:function(He,_e){return X.runCommand(He,_e)},description:this._description})},q.prototype._registerMenuItem=function(X){B.c.appendMenuItem(X.menuId,{group:X.group,command:{id:this.id,title:X.title},when:X.when,order:X.order})},q}(),U=function(q){T(X,q);function X(){return q!==null&&q.apply(this,arguments)||this}return X.bindToContribution=function(ce){return function(Ne){T(He,Ne);function He(_e){var de=Ne.call(this,_e)||this;return de._callback=_e.handler,de}return He.prototype.runEditorCommand=function(_e,de,se){var he=ce(de);he&&this._callback(ce(de),se)},He}(X)},X.prototype.runCommand=function(ce,Ne){var He=this,_e=ce.get(ne.a),de=_e.getFocusedCodeEditor()||_e.getActiveCodeEditor();if(!!de)return de.invokeWithinContext(function(se){var he=se.get(x.c);if(!!he.contextMatchesRules(Object(D.n)(He.precondition)))return He.runEditorCommand(se,de,Ne)})},X}(te),_=function(q){T(X,q);function X(ce){var Ne=q.call(this,X.convertOptions(ce))||this;return Ne.label=ce.label,Ne.alias=ce.alias,Ne}return X.convertOptions=function(ce){var Ne;Array.isArray(ce.menuOpts)?Ne=ce.menuOpts:ce.menuOpts?Ne=[ce.menuOpts]:Ne=[];function He(_e){return _e.menuId||(_e.menuId=7),_e.title||(_e.title=ce.label),_e.when=x.a.and(ce.precondition,_e.when),_e}return Array.isArray(ce.contextMenuOpts)?Ne.push.apply(Ne,ce.contextMenuOpts.map(He)):ce.contextMenuOpts&&Ne.push(He(ce.contextMenuOpts)),ce.menuOpts=Ne,ce},X.prototype.runEditorCommand=function(ce,Ne,He){return this.reportTelemetry(ce,Ne),this.run(ce,Ne,He||{})},X.prototype.reportTelemetry=function(ce,Ne){ce.get(K.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},X}(U);function h(q,X){G.a.registerCommand(q,function(ce,Ne){return X(ce,Ne||{})})}function g(q,X){h(q,function(ce,Ne){var He=Ne.resource,_e=Ne.position;if(!(He instanceof re.a))throw Object(R.b)("resource");if(!P.a.isIPosition(_e))throw Object(R.b)("position");var de=ce.get(F.a).getModel(He);if(de){var se=P.a.lift(_e);return X(de,se,Ne)}return ce.get(V.a).createModelReference(He).then(function(he){return new Promise(function(ie,$){try{var ve=X(he.object.textEditorModel,P.a.lift(_e),Ne);ie(ve)}catch(ye){$(ye)}}).finally(function(){he.dispose()})})})}function p(q,X){G.a.registerCommand(q,function(ce){for(var Ne=[],He=1;He<arguments.length;He++)Ne[He-1]=arguments[He];var _e=Ne[0],de=Ne[1];Object(D.a)(re.a.isUri(_e)),Object(D.a)(P.a.isIPosition(de));var se=ce.get(F.a).getModel(_e);if(se){var he=P.a.lift(de);return X(se,he,Ne.slice(2))}return ce.get(V.a).createModelReference(_e).then(function(ie){return new Promise(function($,ve){try{var ye=X(ie.object.textEditorModel,P.a.lift(de),Ne.slice(2));$(ye)}catch(Ue){ve(Ue)}}).finally(function(){ie.dispose()})})})}function v(q,X){G.a.registerCommand(q,function(ce){for(var Ne=[],He=1;He<arguments.length;He++)Ne[He-1]=arguments[He];var _e=Ne[0];Object(D.a)(re.a.isUri(_e));var de=ce.get(F.a).getModel(_e);return de?X(de,Ne.slice(1)):ce.get(V.a).createModelReference(_e).then(function(se){return new Promise(function(he,ie){try{var $=X(se.object.textEditorModel,Ne.slice(1));he($)}catch(ve){ie(ve)}}).finally(function(){se.dispose()})})})}function E(q){return we.INSTANCE.registerEditorCommand(q),q}function k(q){we.INSTANCE.registerEditorAction(new q)}function z(q){we.INSTANCE.registerEditorAction(q)}function oe(q,X){we.INSTANCE.registerEditorContribution(q,X)}var fe;(function(q){function X(de){return we.INSTANCE.getEditorCommand(de)}q.getEditorCommand=X;function ce(){return we.INSTANCE.getEditorActions()}q.getEditorActions=ce;function Ne(){return we.INSTANCE.getEditorContributions()}q.getEditorContributions=Ne;function He(de){return we.INSTANCE.getEditorContributions().filter(function(se){return de.indexOf(se.id)>=0})}q.getSomeEditorContributions=He;function _e(){return we.INSTANCE.getDiffEditorContributions()}q.getDiffEditorContributions=_e})(fe||(fe={}));var Se={EditorCommonContributions:"editor.contributions"},we=function(){function q(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return q.prototype.registerEditorContribution=function(X,ce){this.editorContributions.push({id:X,ctor:ce})},q.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},q.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},q.prototype.registerEditorAction=function(X){X.register(),this.editorActions.push(X)},q.prototype.getEditorActions=function(){return this.editorActions.slice(0)},q.prototype.registerEditorCommand=function(X){X.register(),this.editorCommands[X.id]=X},q.prototype.getEditorCommand=function(X){return this.editorCommands[X]||null},q.INSTANCE=new q,q}();I.a.add(Se.EditorCommonContributions,we.INSTANCE)},synD:function(Et,A,o){},t49l:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("Cg/j"),re=Object(R.c)("textModelService")},t9D7:function(Et,A,o){"use strict";o.d(A,"c",function(){return F}),o.d(A,"f",function(){return V}),o.d(A,"b",function(){return G}),o.d(A,"d",function(){return x}),o.d(A,"a",function(){return S}),o.d(A,"e",function(){return D});var R=o("Cg/j"),re=o("pmY6"),ne=o("ic2d"),P=o("MI8n"),F=Object(R.c)("themeService");function V(T){return{id:T}}var B="dark",G="hc";function x(T){switch(T){case B:return"vs-dark";case G:return"hc-black";default:return"vs"}}var S={ThemingContribution:"base.contributions.theming"},I=function(){function T(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new P.a}return T.prototype.onThemeChange=function(te){var U=this;return this.themingParticipants.push(te),this.onThemingParticipantAddedEmitter.fire(te),Object(re.h)(function(){var _=U.themingParticipants.indexOf(te);U.themingParticipants.splice(_,1)})},T.prototype.getThemingParticipants=function(){return this.themingParticipants},T}(),K=new I;ne.a.add(S.ThemingContribution,K);function D(T){return K.onThemeChange(T)}},tADe:function(Et,A,o){"use strict";o.d(A,"c",function(){return P}),o.d(A,"a",function(){return F}),o.d(A,"b",function(){return V});var R=o("Cg/j"),re=o("3/fG"),ne=o("S3by"),P;(function(B){B[B.Hint=1]="Hint",B[B.Info=2]="Info",B[B.Warning=4]="Warning",B[B.Error=8]="Error"})(P||(P={})),function(B){function G(D,T){return T-D}B.compare=G;var x=Object.create(null);x[B.Error]=Object(re.a)("sev.error","Error"),x[B.Warning]=Object(re.a)("sev.warning","Warning"),x[B.Info]=Object(re.a)("sev.info","Info");function S(D){return x[D]||""}B.toString=S;function I(D){switch(D){case ne.a.Error:return B.Error;case ne.a.Warning:return B.Warning;case ne.a.Info:return B.Info;case ne.a.Ignore:return B.Hint}}B.fromSeverity=I;function K(D){switch(D){case B.Error:return ne.a.Error;case B.Warning:return ne.a.Warning;case B.Info:return ne.a.Info;case B.Hint:return ne.a.Ignore}}B.toSeverity=K}(P||(P={}));var F;(function(B){var G="";function x(I){return S(I,!0)}B.makeKey=x;function S(I,K){var D=[G];return I.source?D.push(I.source.replace("\xA6","\xA6")):D.push(G),I.code?typeof I.code=="string"?D.push(I.code.replace("\xA6","\xA6")):D.push(I.code.value.replace("\xA6","\xA6")):D.push(G),I.severity!==void 0&&I.severity!==null?D.push(P.toString(I.severity)):D.push(G),I.message&&K?D.push(I.message.replace("\xA6","\xA6")):D.push(G),I.startLineNumber!==void 0&&I.startLineNumber!==null?D.push(I.startLineNumber.toString()):D.push(G),I.startColumn!==void 0&&I.startColumn!==null?D.push(I.startColumn.toString()):D.push(G),I.endLineNumber!==void 0&&I.endLineNumber!==null?D.push(I.endLineNumber.toString()):D.push(G),I.endColumn!==void 0&&I.endColumn!==null?D.push(I.endColumn.toString()):D.push(G),D.push(G),D.join("\xA6")}B.makeKeyOptionalMessage=S})(F||(F={}));var V=Object(R.c)("markerService")},tTk5:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("Cg/j"),re=Object(R.c)("editorProgressService")},tX9W:function(Et,A,o){"use strict";o.d(A,"b",function(){return Gi}),o.d(A,"a",function(){return Di});var R=o("/cxE"),re=o("MI8n"),ne=o("pmY6"),P=o("N0LK"),F=o("bY76"),V=o("/UlZ"),B=o("cGHE"),G=o("aokT"),x=o("gCVg"),S=o("M1Kb"),I=function(){function $e(L,M){this.beforeVersionId=L,this.beforeCursorState=M,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return $e.prototype.undo=function(L){for(var M=this.editOperations.length-1;M>=0;M--)this.editOperations[M]={operations:L.applyEdits(this.editOperations[M].operations)}},$e.prototype.redo=function(L){for(var M=0;M<this.editOperations.length;M++)this.editOperations[M]={operations:L.applyEdits(this.editOperations[M].operations)}},$e}();function K($e){var L=$e.getEOL();return L===`
`?0:1}var D=function(){function $e(L,M){this.beforeVersionId=L,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=M}return $e.prototype.undo=function(L){var M=K(L);L.setEOL(this.eol),this.eol=M},$e.prototype.redo=function(L){var M=K(L);L.setEOL(this.eol),this.eol=M},$e}(),T=function(){function $e(L){this.model=L,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(L){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var M=K(this.model),Z=new D(this.model.getAlternativeVersionId(),M);this.model.setEOL(L),Z.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=Z,this.pushStackElement()},$e.prototype.pushEditOperation=function(L,M,Z){this.future=[];var De=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof I?De=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(De=new I(this.model.getAlternativeVersionId(),L),this.currentOpenStackElement=De);var xe={operations:this.model.applyEdits(M)};return De.editOperations.push(xe),De.afterCursorState=$e._computeCursorState(Z,xe.operations),De.afterVersionId=this.model.getVersionId(),De.afterCursorState},$e._computeCursorState=function(L,M){try{return L?L(M):null}catch(Z){return Object(R.e)(Z),null}},$e.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var L=this.past.pop();try{L.undo(this.model)}catch(M){return Object(R.e)(M),this.clear(),null}return this.future.push(L),{selections:L.beforeCursorState,recordedVersionId:L.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 L=this.future.pop();try{L.redo(this.model)}catch(M){return Object(R.e)(M),this.clear(),null}return this.past.push(L),{selections:L.afterCursorState,recordedVersionId:L.afterVersionId}}return null},$e.prototype.canRedo=function(){return this.future.length>0},$e}(),te=function(){function $e(){this.spacesDiff=0,this.looksLikeAlignment=!1}return $e}();function U($e,L,M,Z,De){De.spacesDiff=0,De.looksLikeAlignment=!1;var xe;for(xe=0;xe<L&&xe<Z;xe++){var je=$e.charCodeAt(xe),ht=M.charCodeAt(xe);if(je!==ht)break}for(var ut=0,yt=0,It=xe;It<L;It++){var je=$e.charCodeAt(It);je===32?ut++:yt++}for(var Rt=0,Wt=0,It=xe;It<Z;It++){var ht=M.charCodeAt(It);ht===32?Rt++:Wt++}if(!(ut>0&&yt>0)&&!(Rt>0&&Wt>0)){var Zt=Math.abs(yt-Wt),Xt=Math.abs(ut-Rt);if(Zt===0){De.spacesDiff=Xt,Xt>0&&0<=Rt-1&&Rt-1<$e.length&&Rt<M.length&&M.charCodeAt(Rt)!==32&&$e.charCodeAt(Rt-1)===32&&$e.charCodeAt($e.length-1)===44&&(De.looksLikeAlignment=!0);return}if(Xt%Zt==0){De.spacesDiff=Xt/Zt;return}}}function _($e,L,M){for(var Z=Math.min($e.getLineCount(),1e4),De=0,xe=0,je="",ht=0,ut=[2,4,6,8,3,5,7],yt=8,It=[0,0,0,0,0,0,0,0,0],Rt=new te,Wt=1;Wt<=Z;Wt++){for(var Zt=$e.getLineLength(Wt),Xt=$e.getLineContent(Wt),ln=Zt<=65536,hn=!1,Tn=0,pn=0,Nn=0,In=0,Oe=Zt;In<Oe;In++){var j=ln?Xt.charCodeAt(In):$e.getLineCharCode(Wt,In);if(j===9)Nn++;else if(j===32)pn++;else{hn=!0,Tn=In;break}}if(!!hn&&(Nn>0?De++:pn>1&&xe++,U(je,ht,Xt,Tn,Rt),!(Rt.looksLikeAlignment&&!(M&&L===Rt.spacesDiff)))){var ae=Rt.spacesDiff;ae<=yt&&It[ae]++,je=Xt,ht=Tn}}var Fe=M;De!==xe&&(Fe=De<xe);var qe=L;if(Fe){var ct=Fe?0:.1*Z;ut.forEach(function(wt){var Ge=It[wt];Ge>ct&&(ct=Ge,qe=wt)}),qe===4&&It[4]>0&&It[2]>0&&It[2]>=It[4]/2&&(qe=2)}return{insertSpaces:Fe,tabSize:qe}}function h($e){return($e.metadata&1)>>>0}function g($e,L){$e.metadata=$e.metadata&254|L<<0}function p($e){return($e.metadata&2)>>>1==1}function v($e,L){$e.metadata=$e.metadata&253|(L?1:0)<<1}function E($e){return($e.metadata&4)>>>2==1}function k($e,L){$e.metadata=$e.metadata&251|(L?1:0)<<2}function z($e){return($e.metadata&8)>>>3==1}function oe($e,L){$e.metadata=$e.metadata&247|(L?1:0)<<3}function fe($e){return($e.metadata&48)>>>4}function Se($e,L){$e.metadata=$e.metadata&207|L<<4}function we($e){return($e.metadata&64)>>>6==1}function q($e,L){$e.metadata=$e.metadata&191|(L?1:0)<<6}var X=function(){function $e(L,M,Z){this.metadata=0,this.parent=this,this.left=this,this.right=this,g(this,1),this.start=M,this.end=Z,this.delta=0,this.maxEnd=Z,this.id=L,this.ownerId=0,this.options=null,k(this,!1),Se(this,1),oe(this,!1),q(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=M,this.cachedAbsoluteEnd=Z,this.range=null,v(this,!1)}return $e.prototype.reset=function(L,M,Z,De){this.start=M,this.end=Z,this.maxEnd=Z,this.cachedVersionId=L,this.cachedAbsoluteStart=M,this.cachedAbsoluteEnd=Z,this.range=De},$e.prototype.setOptions=function(L){this.options=L;var M=this.options.className;k(this,M==="squiggly-error"||M==="squiggly-warning"||M==="squiggly-info"),Se(this,this.options.stickiness),oe(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),q(this,this.options.collapseOnReplaceEdit)},$e.prototype.setCachedOffsets=function(L,M,Z){this.cachedVersionId!==Z&&(this.range=null),this.cachedVersionId=Z,this.cachedAbsoluteStart=L,this.cachedAbsoluteEnd=M},$e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},$e}(),ce=new X(null,0,0);ce.parent=ce,ce.left=ce,ce.right=ce,g(ce,0);var Ne=function(){function $e(){this.root=ce,this.requestNormalizeDelta=!1}return $e.prototype.intervalSearch=function(L,M,Z,De,xe){return this.root===ce?[]:ye(this,L,M,Z,De,xe)},$e.prototype.search=function(L,M,Z){return this.root===ce?[]:ve(this,L,M,Z)},$e.prototype.collectNodesFromOwner=function(L){return ie(this,L)},$e.prototype.collectNodesPostOrder=function(){return $(this)},$e.prototype.insert=function(L){Ue(this,L),this._normalizeDeltaIfNecessary()},$e.prototype.delete=function(L){_t(this,L),this._normalizeDeltaIfNecessary()},$e.prototype.resolveNode=function(L,M){for(var Z=L,De=0;L!==this.root;)L===L.parent.right&&(De+=L.parent.delta),L=L.parent;var xe=Z.start+De,je=Z.end+De;Z.setCachedOffsets(xe,je,M)},$e.prototype.acceptReplace=function(L,M,Z,De){for(var xe=se(this,L,L+M),je=0,ht=xe.length;je<ht;je++){var ut=xe[je];_t(this,ut)}this._normalizeDeltaIfNecessary(),he(this,L,L+M,Z),this._normalizeDeltaIfNecessary();for(var je=0,ht=xe.length;je<ht;je++){var ut=xe[je];ut.start=ut.cachedAbsoluteStart,ut.end=ut.cachedAbsoluteEnd,de(ut,L,L+M,Z,De),ut.maxEnd=ut.end,Ue(this,ut)}this._normalizeDeltaIfNecessary()},$e.prototype._normalizeDeltaIfNecessary=function(){!this.requestNormalizeDelta||(this.requestNormalizeDelta=!1,He(this))},$e}();function He($e){for(var L=$e.root,M=0;L!==ce;){if(L.left!==ce&&!p(L.left)){L=L.left;continue}if(L.right!==ce&&!p(L.right)){M+=L.delta,L=L.right;continue}L.start=M+L.start,L.end=M+L.end,L.delta=0,Ze(L),v(L,!0),v(L.left,!1),v(L.right,!1),L===L.parent.right&&(M-=L.parent.delta),L=L.parent}v($e.root,!1)}function _e($e,L,M,Z){return $e<M?!0:$e>M||Z===1?!1:Z===2?!0:L}function de($e,L,M,Z,De){var xe=fe($e),je=xe===0||xe===2,ht=xe===1||xe===2,ut=M-L,yt=Z,It=Math.min(ut,yt),Rt=$e.start,Wt=!1,Zt=$e.end,Xt=!1;L<=Rt&&Zt<=M&&we($e)&&($e.start=L,Wt=!0,$e.end=L,Xt=!0);{var ln=De?1:ut>0?2:0;!Wt&&_e(Rt,je,L,ln)&&(Wt=!0),!Xt&&_e(Zt,ht,L,ln)&&(Xt=!0)}if(It>0&&!De){var ln=ut>yt?2:0;!Wt&&_e(Rt,je,L+It,ln)&&(Wt=!0),!Xt&&_e(Zt,ht,L+It,ln)&&(Xt=!0)}{var ln=De?1:0;!Wt&&_e(Rt,je,M,ln)&&($e.start=L+yt,Wt=!0),!Xt&&_e(Zt,ht,M,ln)&&($e.end=L+yt,Xt=!0)}var hn=yt-ut;Wt||($e.start=Math.max(0,Rt+hn)),Xt||($e.end=Math.max(0,Zt+hn)),$e.start>$e.end&&($e.end=$e.start)}function se($e,L,M){for(var Z=$e.root,De=0,xe=0,je=0,ht=0,ut=[],yt=0;Z!==ce;){if(p(Z)){v(Z.left,!1),v(Z.right,!1),Z===Z.parent.right&&(De-=Z.parent.delta),Z=Z.parent;continue}if(!p(Z.left)){if(xe=De+Z.maxEnd,xe<L){v(Z,!0);continue}if(Z.left!==ce){Z=Z.left;continue}}if(je=De+Z.start,je>M){v(Z,!0);continue}if(ht=De+Z.end,ht>=L&&(Z.setCachedOffsets(je,ht,0),ut[yt++]=Z),v(Z,!0),Z.right!==ce&&!p(Z.right)){De+=Z.delta,Z=Z.right;continue}}return v($e.root,!1),ut}function he($e,L,M,Z){for(var De=$e.root,xe=0,je=0,ht=0,ut=Z-(M-L);De!==ce;){if(p(De)){v(De.left,!1),v(De.right,!1),De===De.parent.right&&(xe-=De.parent.delta),Ze(De),De=De.parent;continue}if(!p(De.left)){if(je=xe+De.maxEnd,je<L){v(De,!0);continue}if(De.left!==ce){De=De.left;continue}}if(ht=xe+De.start,ht>M){De.start+=ut,De.end+=ut,De.delta+=ut,(De.delta<-1073741824||De.delta>1073741824)&&($e.requestNormalizeDelta=!0),v(De,!0);continue}if(v(De,!0),De.right!==ce&&!p(De.right)){xe+=De.delta,De=De.right;continue}}v($e.root,!1)}function ie($e,L){for(var M=$e.root,Z=[],De=0;M!==ce;){if(p(M)){v(M.left,!1),v(M.right,!1),M=M.parent;continue}if(M.left!==ce&&!p(M.left)){M=M.left;continue}if(M.ownerId===L&&(Z[De++]=M),v(M,!0),M.right!==ce&&!p(M.right)){M=M.right;continue}}return v($e.root,!1),Z}function $($e){for(var L=$e.root,M=[],Z=0;L!==ce;){if(p(L)){v(L.left,!1),v(L.right,!1),L=L.parent;continue}if(L.left!==ce&&!p(L.left)){L=L.left;continue}if(L.right!==ce&&!p(L.right)){L=L.right;continue}M[Z++]=L,v(L,!0)}return v($e.root,!1),M}function ve($e,L,M,Z){for(var De=$e.root,xe=0,je=0,ht=0,ut=[],yt=0;De!==ce;){if(p(De)){v(De.left,!1),v(De.right,!1),De===De.parent.right&&(xe-=De.parent.delta),De=De.parent;continue}if(De.left!==ce&&!p(De.left)){De=De.left;continue}je=xe+De.start,ht=xe+De.end,De.setCachedOffsets(je,ht,Z);var It=!0;if(L&&De.ownerId&&De.ownerId!==L&&(It=!1),M&&E(De)&&(It=!1),It&&(ut[yt++]=De),v(De,!0),De.right!==ce&&!p(De.right)){xe+=De.delta,De=De.right;continue}}return v($e.root,!1),ut}function ye($e,L,M,Z,De,xe){for(var je=$e.root,ht=0,ut=0,yt=0,It=0,Rt=[],Wt=0;je!==ce;){if(p(je)){v(je.left,!1),v(je.right,!1),je===je.parent.right&&(ht-=je.parent.delta),je=je.parent;continue}if(!p(je.left)){if(ut=ht+je.maxEnd,ut<L){v(je,!0);continue}if(je.left!==ce){je=je.left;continue}}if(yt=ht+je.start,yt>M){v(je,!0);continue}if(It=ht+je.end,It>=L){je.setCachedOffsets(yt,It,xe);var Zt=!0;Z&&je.ownerId&&je.ownerId!==Z&&(Zt=!1),De&&E(je)&&(Zt=!1),Zt&&(Rt[Wt++]=je)}if(v(je,!0),je.right!==ce&&!p(je.right)){ht+=je.delta,je=je.right;continue}}return v($e.root,!1),Rt}function Ue($e,L){if($e.root===ce)return L.parent=ce,L.left=ce,L.right=ce,g(L,0),$e.root=L,$e.root;tt($e,L),We(L.parent);for(var M=L;M!==$e.root&&h(M.parent)===1;)if(M.parent===M.parent.parent.left){var Z=M.parent.parent.right;h(Z)===1?(g(M.parent,0),g(Z,0),g(M.parent.parent,1),M=M.parent.parent):(M===M.parent.right&&(M=M.parent,Ke($e,M)),g(M.parent,0),g(M.parent.parent,1),Ye($e,M.parent.parent))}else{var Z=M.parent.parent.left;h(Z)===1?(g(M.parent,0),g(Z,0),g(M.parent.parent,1),M=M.parent.parent):(M===M.parent.left&&(M=M.parent,Ye($e,M)),g(M.parent,0),g(M.parent.parent,1),Ke($e,M.parent.parent))}return g($e.root,0),L}function tt($e,L){for(var M=0,Z=$e.root,De=L.start,xe=L.end;;){var je=Qe(De,xe,Z.start+M,Z.end+M);if(je<0)if(Z.left===ce){L.start-=M,L.end-=M,L.maxEnd-=M,Z.left=L;break}else Z=Z.left;else if(Z.right===ce){L.start-=M+Z.delta,L.end-=M+Z.delta,L.maxEnd-=M+Z.delta,Z.right=L;break}else M+=Z.delta,Z=Z.right}L.parent=Z,L.left=ce,L.right=ce,g(L,1)}function _t($e,L){var M,Z;if(L.left===ce?(M=L.right,Z=L,M.delta+=L.delta,(M.delta<-1073741824||M.delta>1073741824)&&($e.requestNormalizeDelta=!0),M.start+=L.delta,M.end+=L.delta):L.right===ce?(M=L.left,Z=L):(Z=At(L.right),M=Z.right,M.start+=Z.delta,M.end+=Z.delta,M.delta+=Z.delta,(M.delta<-1073741824||M.delta>1073741824)&&($e.requestNormalizeDelta=!0),Z.start+=L.delta,Z.end+=L.delta,Z.delta=L.delta,(Z.delta<-1073741824||Z.delta>1073741824)&&($e.requestNormalizeDelta=!0)),Z===$e.root){$e.root=M,g(M,0),L.detach(),Yt(),Ze(M),$e.root.parent=ce;return}var De=h(Z)===1;if(Z===Z.parent.left?Z.parent.left=M:Z.parent.right=M,Z===L?M.parent=Z.parent:(Z.parent===L?M.parent=Z:M.parent=Z.parent,Z.left=L.left,Z.right=L.right,Z.parent=L.parent,g(Z,h(L)),L===$e.root?$e.root=Z:L===L.parent.left?L.parent.left=Z:L.parent.right=Z,Z.left!==ce&&(Z.left.parent=Z),Z.right!==ce&&(Z.right.parent=Z)),L.detach(),De){We(M.parent),Z!==L&&(We(Z),We(Z.parent)),Yt();return}We(M),We(M.parent),Z!==L&&(We(Z),We(Z.parent));for(var xe;M!==$e.root&&h(M)===0;)M===M.parent.left?(xe=M.parent.right,h(xe)===1&&(g(xe,0),g(M.parent,1),Ke($e,M.parent),xe=M.parent.right),h(xe.left)===0&&h(xe.right)===0?(g(xe,1),M=M.parent):(h(xe.right)===0&&(g(xe.left,0),g(xe,1),Ye($e,xe),xe=M.parent.right),g(xe,h(M.parent)),g(M.parent,0),g(xe.right,0),Ke($e,M.parent),M=$e.root)):(xe=M.parent.left,h(xe)===1&&(g(xe,0),g(M.parent,1),Ye($e,M.parent),xe=M.parent.left),h(xe.left)===0&&h(xe.right)===0?(g(xe,1),M=M.parent):(h(xe.left)===0&&(g(xe.right,0),g(xe,1),Ke($e,xe),xe=M.parent.left),g(xe,h(M.parent)),g(M.parent,0),g(xe.left,0),Ye($e,M.parent),M=$e.root));g(M,0),Yt()}function At($e){for(;$e.left!==ce;)$e=$e.left;return $e}function Yt(){ce.parent=ce,ce.delta=0,ce.start=0,ce.end=0}function Ke($e,L){var M=L.right;M.delta+=L.delta,(M.delta<-1073741824||M.delta>1073741824)&&($e.requestNormalizeDelta=!0),M.start+=L.delta,M.end+=L.delta,L.right=M.left,M.left!==ce&&(M.left.parent=L),M.parent=L.parent,L.parent===ce?$e.root=M:L===L.parent.left?L.parent.left=M:L.parent.right=M,M.left=L,L.parent=M,Ze(L),Ze(M)}function Ye($e,L){var M=L.left;L.delta-=M.delta,(L.delta<-1073741824||L.delta>1073741824)&&($e.requestNormalizeDelta=!0),L.start-=M.delta,L.end-=M.delta,L.left=M.right,M.right!==ce&&(M.right.parent=L),M.parent=L.parent,L.parent===ce?$e.root=M:L===L.parent.right?L.parent.right=M:L.parent.left=M,M.right=L,L.parent=M,Ze(L),Ze(M)}function Xe($e){var L=$e.end;if($e.left!==ce){var M=$e.left.maxEnd;M>L&&(L=M)}if($e.right!==ce){var Z=$e.right.maxEnd+$e.delta;Z>L&&(L=Z)}return L}function Ze($e){$e.maxEnd=Xe($e)}function We($e){for(;$e!==ce;){var L=Xe($e);if($e.maxEnd===L)return;$e.maxEnd=L,$e=$e.parent}}function Qe($e,L,M,Z){return $e===M?L-Z:$e-M}var Ee=function(){function $e(L,M){this.piece=L,this.color=M,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!==W)return ee(this.right);for(var L=this;L.parent!==W&&L.parent.left!==L;)L=L.parent;return L.parent===W?W:L.parent},$e.prototype.prev=function(){if(this.left!==W)return Ae(this.left);for(var L=this;L.parent!==W&&L.parent.right!==L;)L=L.parent;return L.parent===W?W:L.parent},$e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},$e}(),W=new Ee(null,0);W.parent=W,W.left=W,W.right=W,W.color=0;function ee($e){for(;$e.left!==W;)$e=$e.left;return $e}function Ae($e){for(;$e.right!==W;)$e=$e.right;return $e}function me($e){return $e===W?0:$e.size_left+$e.piece.length+me($e.right)}function Me($e){return $e===W?0:$e.lf_left+$e.piece.lineFeedCnt+Me($e.right)}function Re(){W.parent=W}function ge($e,L){var M=L.right;M.size_left+=L.size_left+(L.piece?L.piece.length:0),M.lf_left+=L.lf_left+(L.piece?L.piece.lineFeedCnt:0),L.right=M.left,M.left!==W&&(M.left.parent=L),M.parent=L.parent,L.parent===W?$e.root=M:L.parent.left===L?L.parent.left=M:L.parent.right=M,M.left=L,L.parent=M}function nt($e,L){var M=L.left;L.left=M.right,M.right!==W&&(M.right.parent=L),M.parent=L.parent,L.size_left-=M.size_left+(M.piece?M.piece.length:0),L.lf_left-=M.lf_left+(M.piece?M.piece.lineFeedCnt:0),L.parent===W?$e.root=M:L===L.parent.right?L.parent.right=M:L.parent.left=M,M.right=L,L.parent=M}function St($e,L){var M,Z;if(L.left===W?(Z=L,M=Z.right):L.right===W?(Z=L,M=Z.left):(Z=ee(L.right),M=Z.right),Z===$e.root){$e.root=M,M.color=0,L.detach(),Re(),$e.root.parent=W;return}var De=Z.color===1;if(Z===Z.parent.left?Z.parent.left=M:Z.parent.right=M,Z===L?(M.parent=Z.parent,zt($e,M)):(Z.parent===L?M.parent=Z:M.parent=Z.parent,zt($e,M),Z.left=L.left,Z.right=L.right,Z.parent=L.parent,Z.color=L.color,L===$e.root?$e.root=Z:L===L.parent.left?L.parent.left=Z:L.parent.right=Z,Z.left!==W&&(Z.left.parent=Z),Z.right!==W&&(Z.right.parent=Z),Z.size_left=L.size_left,Z.lf_left=L.lf_left,zt($e,Z)),L.detach(),M.parent.left===M){var xe=me(M),je=Me(M);if(xe!==M.parent.size_left||je!==M.parent.lf_left){var ht=xe-M.parent.size_left,ut=je-M.parent.lf_left;M.parent.size_left=xe,M.parent.lf_left=je,Mt($e,M.parent,ht,ut)}}if(zt($e,M.parent),De){Re();return}for(var yt;M!==$e.root&&M.color===0;)M===M.parent.left?(yt=M.parent.right,yt.color===1&&(yt.color=0,M.parent.color=1,ge($e,M.parent),yt=M.parent.right),yt.left.color===0&&yt.right.color===0?(yt.color=1,M=M.parent):(yt.right.color===0&&(yt.left.color=0,yt.color=1,nt($e,yt),yt=M.parent.right),yt.color=M.parent.color,M.parent.color=0,yt.right.color=0,ge($e,M.parent),M=$e.root)):(yt=M.parent.left,yt.color===1&&(yt.color=0,M.parent.color=1,nt($e,M.parent),yt=M.parent.left),yt.left.color===0&&yt.right.color===0?(yt.color=1,M=M.parent):(yt.left.color===0&&(yt.right.color=0,yt.color=1,ge($e,yt),yt=M.parent.left),yt.color=M.parent.color,M.parent.color=0,yt.left.color=0,nt($e,M.parent),M=$e.root));M.color=0,Re()}function xt($e,L){for(zt($e,L);L!==$e.root&&L.parent.color===1;)if(L.parent===L.parent.parent.left){var M=L.parent.parent.right;M.color===1?(L.parent.color=0,M.color=0,L.parent.parent.color=1,L=L.parent.parent):(L===L.parent.right&&(L=L.parent,ge($e,L)),L.parent.color=0,L.parent.parent.color=1,nt($e,L.parent.parent))}else{var M=L.parent.parent.left;M.color===1?(L.parent.color=0,M.color=0,L.parent.parent.color=1,L=L.parent.parent):(L===L.parent.left&&(L=L.parent,nt($e,L)),L.parent.color=0,L.parent.parent.color=1,ge($e,L.parent.parent))}$e.root.color=0}function Mt($e,L,M,Z){for(;L!==$e.root&&L!==W;)L.parent.left===L&&(L.parent.size_left+=M,L.parent.lf_left+=Z),L=L.parent}function zt($e,L){var M=0,Z=0;if(L!==$e.root){if(M===0){for(;L!==$e.root&&L===L.parent.right;)L=L.parent;if(L===$e.root)return;L=L.parent,M=me(L.left)-L.size_left,Z=Me(L.left)-L.lf_left,L.size_left+=M,L.lf_left+=Z}for(;L!==$e.root&&(M!==0||Z!==0);)L.parent.left===L&&(L.parent.size_left+=M,L.parent.lf_left+=Z),L=L.parent}}var Gt=o("jAJ/"),on=65535;function On($e){var L;return $e[$e.length-1]<65536?L=new Uint16Array($e.length):L=new Uint32Array($e.length),L.set($e,0),L}var yn=function(){function $e(L,M,Z,De,xe){this.lineStarts=L,this.cr=M,this.lf=Z,this.crlf=De,this.isBasicASCII=xe}return $e}();function Mn($e,L){L===void 0&&(L=!0);for(var M=[0],Z=1,De=0,xe=$e.length;De<xe;De++){var je=$e.charCodeAt(De);je===13?De+1<xe&&$e.charCodeAt(De+1)===10?(M[Z++]=De+2,De++):M[Z++]=De+1:je===10&&(M[Z++]=De+1)}return L?On(M):M}function Ft($e,L){$e.length=0,$e[0]=0;for(var M=1,Z=0,De=0,xe=0,je=!0,ht=0,ut=L.length;ht<ut;ht++){var yt=L.charCodeAt(ht);yt===13?ht+1<ut&&L.charCodeAt(ht+1)===10?(xe++,$e[M++]=ht+2,ht++):(Z++,$e[M++]=ht+1):yt===10?(De++,$e[M++]=ht+1):je&&yt!==9&&(yt<32||yt>126)&&(je=!1)}var It=new yn(On($e),Z,De,xe,je);return $e.length=0,It}var gt=function(){function $e(L,M,Z,De,xe){this.bufferIndex=L,this.start=M,this.end=Z,this.lineFeedCnt=De,this.length=xe}return $e}(),pt=function(){function $e(L,M){this.buffer=L,this.lineStarts=M}return $e}(),Dt=function(){function $e(L){this._limit=L,this._cache=[]}return $e.prototype.get=function(L){for(var M=this._cache.length-1;M>=0;M--){var Z=this._cache[M];if(Z.nodeStartOffset<=L&&Z.nodeStartOffset+Z.node.piece.length>=L)return Z}return null},$e.prototype.get2=function(L){for(var M=this._cache.length-1;M>=0;M--){var Z=this._cache[M];if(Z.nodeStartLineNumber&&Z.nodeStartLineNumber<L&&Z.nodeStartLineNumber+Z.node.piece.lineFeedCnt>=L)return Z}return null},$e.prototype.set=function(L){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(L)},$e.prototype.valdiate=function(L){for(var M=!1,Z=this._cache,De=0;De<Z.length;De++){var xe=Z[De];if(xe.node.parent===null||xe.nodeStartOffset>=L){Z[De]=null,M=!0;continue}}if(M){for(var je=[],ht=0,ut=Z;ht<ut.length;ht++){var yt=ut[ht];yt!==null&&je.push(yt)}this._cache=je}},$e}(),Ot=function(){function $e(L,M,Z){this.create(L,M,Z)}return $e.prototype.create=function(L,M,Z){this._buffers=[new pt("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=W,this._lineCnt=1,this._length=0,this._EOL=M,this._EOLLength=M.length,this._EOLNormalized=Z;for(var De=null,xe=0,je=L.length;xe<je;xe++)if(L[xe].buffer.length>0){L[xe].lineStarts||(L[xe].lineStarts=Mn(L[xe].buffer));var ht=new gt(xe+1,{line:0,column:0},{line:L[xe].lineStarts.length-1,column:L[xe].buffer.length-L[xe].lineStarts[L[xe].lineStarts.length-1]},L[xe].lineStarts.length-1,L[xe].buffer.length);this._buffers.push(L[xe]),De=this.rbInsertRight(De,ht)}this._searchCache=new Dt(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},$e.prototype.normalizeEOL=function(L){var M=this,Z=on,De=Z-Math.floor(Z/3),xe=De*2,je="",ht=0,ut=[];if(this.iterate(this.root,function(It){var Rt=M.getNodeContent(It),Wt=Rt.length;if(ht<=De||ht+Wt<xe)return je+=Rt,ht+=Wt,!0;var Zt=je.replace(/\r\n|\r|\n/g,L);return ut.push(new pt(Zt,Mn(Zt))),je=Rt,ht=Wt,!0}),ht>0){var yt=je.replace(/\r\n|\r|\n/g,L);ut.push(new pt(yt,Mn(yt)))}this.create(ut,L,!0)},$e.prototype.getEOL=function(){return this._EOL},$e.prototype.setEOL=function(L){this._EOL=L,this._EOLLength=this._EOL.length,this.normalizeEOL(L)},$e.prototype.getOffsetAt=function(L,M){for(var Z=0,De=this.root;De!==W;)if(De.left!==W&&De.lf_left+1>=L)De=De.left;else if(De.lf_left+De.piece.lineFeedCnt+1>=L){Z+=De.size_left;var xe=this.getAccumulatedValue(De,L-De.lf_left-2);return Z+=xe+M-1}else L-=De.lf_left+De.piece.lineFeedCnt,Z+=De.size_left+De.piece.length,De=De.right;return Z},$e.prototype.getPositionAt=function(L){L=Math.floor(L),L=Math.max(0,L);for(var M=this.root,Z=0,De=L;M!==W;)if(M.size_left!==0&&M.size_left>=L)M=M.left;else if(M.size_left+M.piece.length>=L){var xe=this.getIndexOf(M,L-M.size_left);if(Z+=M.lf_left+xe.index,xe.index===0){var je=this.getOffsetAt(Z+1,1),ht=De-je;return new B.a(Z+1,ht+1)}return new B.a(Z+1,xe.remainder+1)}else if(L-=M.size_left+M.piece.length,Z+=M.lf_left+M.piece.lineFeedCnt,M.right===W){var je=this.getOffsetAt(Z+1,1),ht=De-L-je;return new B.a(Z+1,ht+1)}else M=M.right;return new B.a(1,1)},$e.prototype.getValueInRange=function(L,M){if(L.startLineNumber===L.endLineNumber&&L.startColumn===L.endColumn)return"";var Z=this.nodeAt2(L.startLineNumber,L.startColumn),De=this.nodeAt2(L.endLineNumber,L.endColumn),xe=this.getValueInRange2(Z,De);return M?M!==this._EOL||!this._EOLNormalized?xe.replace(/\r\n|\r|\n/g,M):M===this.getEOL()&&this._EOLNormalized?xe:xe.replace(/\r\n|\r|\n/g,M):xe},$e.prototype.getValueInRange2=function(L,M){if(L.node===M.node){var Z=L.node,De=this._buffers[Z.piece.bufferIndex].buffer,xe=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return De.substring(xe+L.remainder,xe+M.remainder)}var je=L.node,ht=this._buffers[je.piece.bufferIndex].buffer,ut=this.offsetInBuffer(je.piece.bufferIndex,je.piece.start),yt=ht.substring(ut+L.remainder,ut+je.piece.length);for(je=je.next();je!==W;){var It=this._buffers[je.piece.bufferIndex].buffer,Rt=this.offsetInBuffer(je.piece.bufferIndex,je.piece.start);if(je===M.node){yt+=It.substring(Rt,Rt+M.remainder);break}else yt+=It.substr(Rt,je.piece.length);je=je.next()}return yt},$e.prototype.getLinesContent=function(){var L=this,M=[],Z=0,De="",xe=!1;return this.iterate(this.root,function(je){if(je===W)return!0;var ht=je.piece,ut=ht.length;if(ut===0)return!0;var yt=L._buffers[ht.bufferIndex].buffer,It=L._buffers[ht.bufferIndex].lineStarts,Rt=ht.start.line,Wt=ht.end.line,Zt=It[Rt]+ht.start.column;if(xe&&(yt.charCodeAt(Zt)===10&&(Zt++,ut--),M[Z++]=De,De="",xe=!1,ut===0))return!0;if(Rt===Wt)return!L._EOLNormalized&&yt.charCodeAt(Zt+ut-1)===13?(xe=!0,De+=yt.substr(Zt,ut-1)):De+=yt.substr(Zt,ut),!0;De+=L._EOLNormalized?yt.substring(Zt,Math.max(Zt,It[Rt+1]-L._EOLLength)):yt.substring(Zt,It[Rt+1]).replace(/(\r\n|\r|\n)$/,""),M[Z++]=De;for(var Xt=Rt+1;Xt<Wt;Xt++)De=L._EOLNormalized?yt.substring(It[Xt],It[Xt+1]-L._EOLLength):yt.substring(It[Xt],It[Xt+1]).replace(/(\r\n|\r|\n)$/,""),M[Z++]=De;return!L._EOLNormalized&&yt.charCodeAt(It[Wt]+ht.end.column-1)===13?(xe=!0,ht.end.column===0?Z--:De=yt.substr(It[Wt],ht.end.column-1)):De=yt.substr(It[Wt],ht.end.column),!0}),xe&&(M[Z++]=De,De=""),M[Z++]=De,M},$e.prototype.getLength=function(){return this._length},$e.prototype.getLineCount=function(){return this._lineCnt},$e.prototype.getLineContent=function(L){return this._lastVisitedLine.lineNumber===L?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=L,L===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(L):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(L,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(L).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},$e.prototype.getLineCharCode=function(L,M){var Z=this.nodeAt2(L,M+1);if(Z.remainder===Z.node.piece.length){var De=Z.node.next();if(!De)return 0;var xe=this._buffers[De.piece.bufferIndex],je=this.offsetInBuffer(De.piece.bufferIndex,De.piece.start);return xe.buffer.charCodeAt(je)}else{var xe=this._buffers[Z.node.piece.bufferIndex],je=this.offsetInBuffer(Z.node.piece.bufferIndex,Z.node.piece.start),ht=je+Z.remainder;return xe.buffer.charCodeAt(ht)}},$e.prototype.getLineLength=function(L){if(L===this.getLineCount()){var M=this.getOffsetAt(L,1);return this.getLength()-M}return this.getOffsetAt(L+1,1)-this.getOffsetAt(L,1)-this._EOLLength},$e.prototype.findMatchesInNode=function(L,M,Z,De,xe,je,ht,ut,yt,It,Rt){var Wt=this._buffers[L.piece.bufferIndex],Zt=this.offsetInBuffer(L.piece.bufferIndex,L.piece.start),Xt=this.offsetInBuffer(L.piece.bufferIndex,xe),ln=this.offsetInBuffer(L.piece.bufferIndex,je),hn,Tn={line:0,column:0},pn,Nn;M._wordSeparators?(pn=Wt.buffer.substring(Xt,ln),Nn=function(Fe){return Fe+Xt},M.reset(-1)):(pn=Wt.buffer,Nn=function(Fe){return Fe},M.reset(Xt));do if(hn=M.next(pn),hn){if(Nn(hn.index)>=ln)return It;this.positionInBuffer(L,Nn(hn.index)-Zt,Tn);var In=this.getLineFeedCnt(L.piece.bufferIndex,xe,Tn),Oe=Tn.line===xe.line?Tn.column-xe.column+De:Tn.column+1,j=Oe+hn[0].length;if(Rt[It++]=Object(Gt.d)(new G.a(Z+In,Oe,Z+In,j),hn,ut),Nn(hn.index)+hn[0].length>=ln||It>=yt)return It}while(hn);return It},$e.prototype.findMatchesLineByLine=function(L,M,Z,De){var xe=[],je=0,ht=new Gt.b(M.wordSeparators,M.regex),ut=this.nodeAt2(L.startLineNumber,L.startColumn);if(ut===null)return[];var yt=this.nodeAt2(L.endLineNumber,L.endColumn);if(yt===null)return[];var It=this.positionInBuffer(ut.node,ut.remainder),Rt=this.positionInBuffer(yt.node,yt.remainder);if(ut.node===yt.node)return this.findMatchesInNode(ut.node,ht,L.startLineNumber,L.startColumn,It,Rt,M,Z,De,je,xe),xe;for(var Wt=L.startLineNumber,Zt=ut.node;Zt!==yt.node;){var Xt=this.getLineFeedCnt(Zt.piece.bufferIndex,It,Zt.piece.end);if(Xt>=1){var ln=this._buffers[Zt.piece.bufferIndex].lineStarts,hn=this.offsetInBuffer(Zt.piece.bufferIndex,Zt.piece.start),Tn=ln[It.line+Xt],pn=Wt===L.startLineNumber?L.startColumn:1;if(je=this.findMatchesInNode(Zt,ht,Wt,pn,It,this.positionInBuffer(Zt,Tn-hn),M,Z,De,je,xe),je>=De)return xe;Wt+=Xt}var Nn=Wt===L.startLineNumber?L.startColumn-1:0;if(Wt===L.endLineNumber){var In=this.getLineContent(Wt).substring(Nn,L.endColumn-1);return je=this._findMatchesInLine(M,ht,In,L.endLineNumber,Nn,je,xe,Z,De),xe}if(je=this._findMatchesInLine(M,ht,this.getLineContent(Wt).substr(Nn),Wt,Nn,je,xe,Z,De),je>=De)return xe;Wt++,ut=this.nodeAt2(Wt,1),Zt=ut.node,It=this.positionInBuffer(ut.node,ut.remainder)}if(Wt===L.endLineNumber){var Oe=Wt===L.startLineNumber?L.startColumn-1:0,In=this.getLineContent(Wt).substring(Oe,L.endColumn-1);return je=this._findMatchesInLine(M,ht,In,L.endLineNumber,Oe,je,xe,Z,De),xe}var j=Wt===L.startLineNumber?L.startColumn:1;return je=this.findMatchesInNode(yt.node,ht,Wt,j,It,Rt,M,Z,De,je,xe),xe},$e.prototype._findMatchesInLine=function(L,M,Z,De,xe,je,ht,ut,yt){var It=L.wordSeparators;if(!ut&&L.simpleSearch){for(var Rt=L.simpleSearch,Wt=Rt.length,Zt=Z.length,Xt=-Wt;(Xt=Z.indexOf(Rt,Xt+Wt))!==-1;)if((!It||Object(Gt.e)(It,Z,Zt,Xt,Wt))&&(ht[je++]=new S.b(new G.a(De,Xt+1+xe,De,Xt+1+Wt+xe),null),je>=yt))return je;return je}var ln;M.reset(0);do if(ln=M.next(Z),ln&&(ht[je++]=Object(Gt.d)(new G.a(De,ln.index+1+xe,De,ln.index+1+ln[0].length+xe),ln,ut),je>=yt))return je;while(ln);return je},$e.prototype.insert=function(L,M,Z){if(Z===void 0&&(Z=!1),this._EOLNormalized=this._EOLNormalized&&Z,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==W){var De=this.nodeAt(L),xe=De.node,je=De.remainder,ht=De.nodeStartOffset,ut=xe.piece,yt=ut.bufferIndex,It=this.positionInBuffer(xe,je);if(xe.piece.bufferIndex===0&&ut.end.line===this._lastChangeBufferPos.line&&ut.end.column===this._lastChangeBufferPos.column&&ht+ut.length===L&&M.length<on){this.appendToNode(xe,M),this.computeBufferMetadata();return}if(ht===L)this.insertContentToNodeLeft(M,xe),this._searchCache.valdiate(L);else if(ht+xe.piece.length>L){var Rt=[],Wt=new gt(ut.bufferIndex,It,ut.end,this.getLineFeedCnt(ut.bufferIndex,It,ut.end),this.offsetInBuffer(yt,ut.end)-this.offsetInBuffer(yt,It));if(this.shouldCheckCRLF()&&this.endWithCR(M)){var Zt=this.nodeCharCodeAt(xe,je);if(Zt===10){var Xt={line:Wt.start.line+1,column:0};Wt=new gt(Wt.bufferIndex,Xt,Wt.end,this.getLineFeedCnt(Wt.bufferIndex,Xt,Wt.end),Wt.length-1),M+=`
`}}if(this.shouldCheckCRLF()&&this.startWithLF(M)){var ln=this.nodeCharCodeAt(xe,je-1);if(ln===13){var hn=this.positionInBuffer(xe,je-1);this.deleteNodeTail(xe,hn),M="\r"+M,xe.piece.length===0&&Rt.push(xe)}else this.deleteNodeTail(xe,It)}else this.deleteNodeTail(xe,It);var Tn=this.createNewPieces(M);Wt.length>0&&this.rbInsertRight(xe,Wt);for(var pn=xe,Nn=0;Nn<Tn.length;Nn++)pn=this.rbInsertRight(pn,Tn[Nn]);this.deleteNodes(Rt)}else this.insertContentToNodeRight(M,xe)}else for(var In=this.createNewPieces(M),xe=this.rbInsertLeft(null,In[0]),Nn=1;Nn<In.length;Nn++)xe=this.rbInsertRight(xe,In[Nn]);this.computeBufferMetadata()},$e.prototype.delete=function(L,M){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",!(M<=0||this.root===W)){var Z=this.nodeAt(L),De=this.nodeAt(L+M),xe=Z.node,je=De.node;if(xe===je){var ht=this.positionInBuffer(xe,Z.remainder),ut=this.positionInBuffer(xe,De.remainder);if(Z.nodeStartOffset===L){if(M===xe.piece.length){var yt=xe.next();St(this,xe),this.validateCRLFWithPrevNode(yt),this.computeBufferMetadata();return}this.deleteNodeHead(xe,ut),this._searchCache.valdiate(L),this.validateCRLFWithPrevNode(xe),this.computeBufferMetadata();return}if(Z.nodeStartOffset+xe.piece.length===L+M){this.deleteNodeTail(xe,ht),this.validateCRLFWithNextNode(xe),this.computeBufferMetadata();return}this.shrinkNode(xe,ht,ut),this.computeBufferMetadata();return}var It=[],Rt=this.positionInBuffer(xe,Z.remainder);this.deleteNodeTail(xe,Rt),this._searchCache.valdiate(L),xe.piece.length===0&&It.push(xe);var Wt=this.positionInBuffer(je,De.remainder);this.deleteNodeHead(je,Wt),je.piece.length===0&&It.push(je);for(var Zt=xe.next(),Xt=Zt;Xt!==W&&Xt!==je;Xt=Xt.next())It.push(Xt);var ln=xe.piece.length===0?xe.prev():xe;this.deleteNodes(It),this.validateCRLFWithNextNode(ln),this.computeBufferMetadata()}},$e.prototype.insertContentToNodeLeft=function(L,M){var Z=[];if(this.shouldCheckCRLF()&&this.endWithCR(L)&&this.startWithLF(M)){var De=M.piece,xe={line:De.start.line+1,column:0},je=new gt(De.bufferIndex,xe,De.end,this.getLineFeedCnt(De.bufferIndex,xe,De.end),De.length-1);M.piece=je,L+=`
`,Mt(this,M,-1,-1),M.piece.length===0&&Z.push(M)}for(var ht=this.createNewPieces(L),ut=this.rbInsertLeft(M,ht[ht.length-1]),yt=ht.length-2;yt>=0;yt--)ut=this.rbInsertLeft(ut,ht[yt]);this.validateCRLFWithPrevNode(ut),this.deleteNodes(Z)},$e.prototype.insertContentToNodeRight=function(L,M){this.adjustCarriageReturnFromNext(L,M)&&(L+=`
`);for(var Z=this.createNewPieces(L),De=this.rbInsertRight(M,Z[0]),xe=De,je=1;je<Z.length;je++)xe=this.rbInsertRight(xe,Z[je]);this.validateCRLFWithPrevNode(De)},$e.prototype.positionInBuffer=function(L,M,Z){for(var De=L.piece,xe=L.piece.bufferIndex,je=this._buffers[xe].lineStarts,ht=je[De.start.line]+De.start.column,ut=ht+M,yt=De.start.line,It=De.end.line,Rt=0,Wt=0,Zt=0;yt<=It&&(Rt=yt+(It-yt)/2|0,Zt=je[Rt],Rt!==It);)if(Wt=je[Rt+1],ut<Zt)It=Rt-1;else if(ut>=Wt)yt=Rt+1;else break;return Z?(Z.line=Rt,Z.column=ut-Zt,null):{line:Rt,column:ut-Zt}},$e.prototype.getLineFeedCnt=function(L,M,Z){if(Z.column===0)return Z.line-M.line;var De=this._buffers[L].lineStarts;if(Z.line===De.length-1)return Z.line-M.line;var xe=De[Z.line+1],je=De[Z.line]+Z.column;if(xe>je+1)return Z.line-M.line;var ht=je-1,ut=this._buffers[L].buffer;return ut.charCodeAt(ht)===13?Z.line-M.line+1:Z.line-M.line},$e.prototype.offsetInBuffer=function(L,M){var Z=this._buffers[L].lineStarts;return Z[M.line]+M.column},$e.prototype.deleteNodes=function(L){for(var M=0;M<L.length;M++)St(this,L[M])},$e.prototype.createNewPieces=function(L){if(L.length>on){for(var M=[];L.length>on;){var Z=L.charCodeAt(on-1),De=void 0;Z===13||Z>=55296&&Z<=56319?(De=L.substring(0,on-1),L=L.substring(on-1)):(De=L.substring(0,on),L=L.substring(on));var xe=Mn(De);M.push(new gt(this._buffers.length,{line:0,column:0},{line:xe.length-1,column:De.length-xe[xe.length-1]},xe.length-1,De.length)),this._buffers.push(new pt(De,xe))}var je=Mn(L);return M.push(new gt(this._buffers.length,{line:0,column:0},{line:je.length-1,column:L.length-je[je.length-1]},je.length-1,L.length)),this._buffers.push(new pt(L,je)),M}var ht=this._buffers[0].buffer.length,ut=Mn(L,!1),yt=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===ht&&ht!==0&&this.startWithLF(L)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},yt=this._lastChangeBufferPos;for(var It=0;It<ut.length;It++)ut[It]+=ht+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(ut.slice(1)),this._buffers[0].buffer+="_"+L,ht+=1}else{if(ht!==0)for(var It=0;It<ut.length;It++)ut[It]+=ht;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(ut.slice(1)),this._buffers[0].buffer+=L}var Rt=this._buffers[0].buffer.length,Wt=this._buffers[0].lineStarts.length-1,Zt=Rt-this._buffers[0].lineStarts[Wt],Xt={line:Wt,column:Zt},ln=new gt(0,yt,Xt,this.getLineFeedCnt(0,yt,Xt),Rt-ht);return this._lastChangeBufferPos=Xt,[ln]},$e.prototype.getLineRawContent=function(L,M){M===void 0&&(M=0);var Z=this.root,De="",xe=this._searchCache.get2(L);if(xe){Z=xe.node;var je=this.getAccumulatedValue(Z,L-xe.nodeStartLineNumber-1),ht=this._buffers[Z.piece.bufferIndex].buffer,ut=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);if(xe.nodeStartLineNumber+Z.piece.lineFeedCnt===L)De=ht.substring(ut+je,ut+Z.piece.length);else{var yt=this.getAccumulatedValue(Z,L-xe.nodeStartLineNumber);return ht.substring(ut+je,ut+yt-M)}}else for(var It=0,Rt=L;Z!==W;)if(Z.left!==W&&Z.lf_left>=L-1)Z=Z.left;else if(Z.lf_left+Z.piece.lineFeedCnt>L-1){var je=this.getAccumulatedValue(Z,L-Z.lf_left-2),yt=this.getAccumulatedValue(Z,L-Z.lf_left-1),ht=this._buffers[Z.piece.bufferIndex].buffer,ut=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return It+=Z.size_left,this._searchCache.set({node:Z,nodeStartOffset:It,nodeStartLineNumber:Rt-(L-1-Z.lf_left)}),ht.substring(ut+je,ut+yt-M)}else if(Z.lf_left+Z.piece.lineFeedCnt===L-1){var je=this.getAccumulatedValue(Z,L-Z.lf_left-2),ht=this._buffers[Z.piece.bufferIndex].buffer,ut=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);De=ht.substring(ut+je,ut+Z.piece.length);break}else L-=Z.lf_left+Z.piece.lineFeedCnt,It+=Z.size_left+Z.piece.length,Z=Z.right;for(Z=Z.next();Z!==W;){var ht=this._buffers[Z.piece.bufferIndex].buffer;if(Z.piece.lineFeedCnt>0){var yt=this.getAccumulatedValue(Z,0),ut=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return De+=ht.substring(ut,ut+yt-M),De}else{var ut=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);De+=ht.substr(ut,Z.piece.length)}Z=Z.next()}return De},$e.prototype.computeBufferMetadata=function(){for(var L=this.root,M=1,Z=0;L!==W;)M+=L.lf_left+L.piece.lineFeedCnt,Z+=L.size_left+L.piece.length,L=L.right;this._lineCnt=M,this._length=Z,this._searchCache.valdiate(this._length)},$e.prototype.getIndexOf=function(L,M){var Z=L.piece,De=this.positionInBuffer(L,M),xe=De.line-Z.start.line;if(this.offsetInBuffer(Z.bufferIndex,Z.end)-this.offsetInBuffer(Z.bufferIndex,Z.start)===M){var je=this.getLineFeedCnt(L.piece.bufferIndex,Z.start,De);if(je!==xe)return{index:je,remainder:0}}return{index:xe,remainder:De.column}},$e.prototype.getAccumulatedValue=function(L,M){if(M<0)return 0;var Z=L.piece,De=this._buffers[Z.bufferIndex].lineStarts,xe=Z.start.line+M+1;return xe>Z.end.line?De[Z.end.line]+Z.end.column-De[Z.start.line]-Z.start.column:De[xe]-De[Z.start.line]-Z.start.column},$e.prototype.deleteNodeTail=function(L,M){var Z=L.piece,De=Z.lineFeedCnt,xe=this.offsetInBuffer(Z.bufferIndex,Z.end),je=M,ht=this.offsetInBuffer(Z.bufferIndex,je),ut=this.getLineFeedCnt(Z.bufferIndex,Z.start,je),yt=ut-De,It=ht-xe,Rt=Z.length+It;L.piece=new gt(Z.bufferIndex,Z.start,je,ut,Rt),Mt(this,L,It,yt)},$e.prototype.deleteNodeHead=function(L,M){var Z=L.piece,De=Z.lineFeedCnt,xe=this.offsetInBuffer(Z.bufferIndex,Z.start),je=M,ht=this.getLineFeedCnt(Z.bufferIndex,je,Z.end),ut=this.offsetInBuffer(Z.bufferIndex,je),yt=ht-De,It=xe-ut,Rt=Z.length+It;L.piece=new gt(Z.bufferIndex,je,Z.end,ht,Rt),Mt(this,L,It,yt)},$e.prototype.shrinkNode=function(L,M,Z){var De=L.piece,xe=De.start,je=De.end,ht=De.length,ut=De.lineFeedCnt,yt=M,It=this.getLineFeedCnt(De.bufferIndex,De.start,yt),Rt=this.offsetInBuffer(De.bufferIndex,M)-this.offsetInBuffer(De.bufferIndex,xe);L.piece=new gt(De.bufferIndex,De.start,yt,It,Rt),Mt(this,L,Rt-ht,It-ut);var Wt=new gt(De.bufferIndex,Z,je,this.getLineFeedCnt(De.bufferIndex,Z,je),this.offsetInBuffer(De.bufferIndex,je)-this.offsetInBuffer(De.bufferIndex,Z)),Zt=this.rbInsertRight(L,Wt);this.validateCRLFWithPrevNode(Zt)},$e.prototype.appendToNode=function(L,M){this.adjustCarriageReturnFromNext(M,L)&&(M+=`
`);var Z=this.shouldCheckCRLF()&&this.startWithLF(M)&&this.endWithCR(L),De=this._buffers[0].buffer.length;this._buffers[0].buffer+=M;for(var xe=Mn(M,!1),je=0;je<xe.length;je++)xe[je]+=De;if(Z){var ht=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:De-ht}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(xe.slice(1));var ut=this._buffers[0].lineStarts.length-1,yt=this._buffers[0].buffer.length-this._buffers[0].lineStarts[ut],It={line:ut,column:yt},Rt=L.piece.length+M.length,Wt=L.piece.lineFeedCnt,Zt=this.getLineFeedCnt(0,L.piece.start,It),Xt=Zt-Wt;L.piece=new gt(L.piece.bufferIndex,L.piece.start,It,Zt,Rt),this._lastChangeBufferPos=It,Mt(this,L,M.length,Xt)},$e.prototype.nodeAt=function(L){var M=this.root,Z=this._searchCache.get(L);if(Z)return{node:Z.node,nodeStartOffset:Z.nodeStartOffset,remainder:L-Z.nodeStartOffset};for(var De=0;M!==W;)if(M.size_left>L)M=M.left;else if(M.size_left+M.piece.length>=L){De+=M.size_left;var xe={node:M,remainder:L-M.size_left,nodeStartOffset:De};return this._searchCache.set(xe),xe}else L-=M.size_left+M.piece.length,De+=M.size_left+M.piece.length,M=M.right;return null},$e.prototype.nodeAt2=function(L,M){for(var Z=this.root,De=0;Z!==W;)if(Z.left!==W&&Z.lf_left>=L-1)Z=Z.left;else if(Z.lf_left+Z.piece.lineFeedCnt>L-1){var xe=this.getAccumulatedValue(Z,L-Z.lf_left-2),je=this.getAccumulatedValue(Z,L-Z.lf_left-1);return De+=Z.size_left,{node:Z,remainder:Math.min(xe+M-1,je),nodeStartOffset:De}}else if(Z.lf_left+Z.piece.lineFeedCnt===L-1){var xe=this.getAccumulatedValue(Z,L-Z.lf_left-2);if(xe+M-1<=Z.piece.length)return{node:Z,remainder:xe+M-1,nodeStartOffset:De};M-=Z.piece.length-xe;break}else L-=Z.lf_left+Z.piece.lineFeedCnt,De+=Z.size_left+Z.piece.length,Z=Z.right;for(Z=Z.next();Z!==W;){if(Z.piece.lineFeedCnt>0){var je=this.getAccumulatedValue(Z,0),ht=this.offsetOfNode(Z);return{node:Z,remainder:Math.min(M-1,je),nodeStartOffset:ht}}else if(Z.piece.length>=M-1){var ut=this.offsetOfNode(Z);return{node:Z,remainder:M-1,nodeStartOffset:ut}}else M-=Z.piece.length;Z=Z.next()}return null},$e.prototype.nodeCharCodeAt=function(L,M){if(L.piece.lineFeedCnt<1)return-1;var Z=this._buffers[L.piece.bufferIndex],De=this.offsetInBuffer(L.piece.bufferIndex,L.piece.start)+M;return Z.buffer.charCodeAt(De)},$e.prototype.offsetOfNode=function(L){if(!L)return 0;for(var M=L.size_left;L!==this.root;)L.parent.right===L&&(M+=L.parent.size_left+L.parent.piece.length),L=L.parent;return M},$e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===`
`)},$e.prototype.startWithLF=function(L){if(typeof L=="string")return L.charCodeAt(0)===10;if(L===W||L.piece.lineFeedCnt===0)return!1;var M=L.piece,Z=this._buffers[M.bufferIndex].lineStarts,De=M.start.line,xe=Z[De]+M.start.column;if(De===Z.length-1)return!1;var je=Z[De+1];return je>xe+1?!1:this._buffers[M.bufferIndex].buffer.charCodeAt(xe)===10},$e.prototype.endWithCR=function(L){return typeof L=="string"?L.charCodeAt(L.length-1)===13:L===W||L.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(L,L.piece.length-1)===13},$e.prototype.validateCRLFWithPrevNode=function(L){if(this.shouldCheckCRLF()&&this.startWithLF(L)){var M=L.prev();this.endWithCR(M)&&this.fixCRLF(M,L)}},$e.prototype.validateCRLFWithNextNode=function(L){if(this.shouldCheckCRLF()&&this.endWithCR(L)){var M=L.next();this.startWithLF(M)&&this.fixCRLF(L,M)}},$e.prototype.fixCRLF=function(L,M){var Z=[],De=this._buffers[L.piece.bufferIndex].lineStarts,xe;L.piece.end.column===0?xe={line:L.piece.end.line-1,column:De[L.piece.end.line]-De[L.piece.end.line-1]-1}:xe={line:L.piece.end.line,column:L.piece.end.column-1};var je=L.piece.length-1,ht=L.piece.lineFeedCnt-1;L.piece=new gt(L.piece.bufferIndex,L.piece.start,xe,ht,je),Mt(this,L,-1,-1),L.piece.length===0&&Z.push(L);var ut={line:M.piece.start.line+1,column:0},yt=M.piece.length-1,It=this.getLineFeedCnt(M.piece.bufferIndex,ut,M.piece.end);M.piece=new gt(M.piece.bufferIndex,ut,M.piece.end,It,yt),Mt(this,M,-1,-1),M.piece.length===0&&Z.push(M);var Rt=this.createNewPieces(`\r
`);this.rbInsertRight(L,Rt[0]);for(var Wt=0;Wt<Z.length;Wt++)St(this,Z[Wt])},$e.prototype.adjustCarriageReturnFromNext=function(L,M){if(this.shouldCheckCRLF()&&this.endWithCR(L)){var Z=M.next();if(this.startWithLF(Z)){if(L+=`
`,Z.piece.length===1)St(this,Z);else{var De=Z.piece,xe={line:De.start.line+1,column:0},je=De.length-1,ht=this.getLineFeedCnt(De.bufferIndex,xe,De.end);Z.piece=new gt(De.bufferIndex,xe,De.end,ht,je),Mt(this,Z,-1,-1)}return!0}}return!1},$e.prototype.iterate=function(L,M){if(L===W)return M(W);var Z=this.iterate(L.left,M);return Z&&M(L)&&this.iterate(L.right,M)},$e.prototype.getNodeContent=function(L){if(L===W)return"";var M=this._buffers[L.piece.bufferIndex],Z,De=L.piece,xe=this.offsetInBuffer(De.bufferIndex,De.start),je=this.offsetInBuffer(De.bufferIndex,De.end);return Z=M.buffer.substring(xe,je),Z},$e.prototype.rbInsertRight=function(L,M){var Z=new Ee(M,1);Z.left=W,Z.right=W,Z.parent=W,Z.size_left=0,Z.lf_left=0;var De=this.root;if(De===W)this.root=Z,Z.color=0;else if(L.right===W)L.right=Z,Z.parent=L;else{var xe=ee(L.right);xe.left=Z,Z.parent=xe}return xt(this,Z),Z},$e.prototype.rbInsertLeft=function(L,M){var Z=new Ee(M,1);if(Z.left=W,Z.right=W,Z.parent=W,Z.size_left=0,Z.lf_left=0,this.root===W)this.root=Z,Z.color=0;else if(L.left===W)L.left=Z,Z.parent=L;else{var De=Ae(L.left);De.right=Z,Z.parent=De}return xt(this,Z),Z},$e}(),Ht=function(){function $e(L,M,Z,De,xe,je){this._BOM=M,this._mightContainNonBasicASCII=!xe,this._mightContainRTL=De,this._pieceTree=new Ot(L,Z,je)}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(L,M){return this._pieceTree.getOffsetAt(L,M)},$e.prototype.getPositionAt=function(L){return this._pieceTree.getPositionAt(L)},$e.prototype.getRangeAt=function(L,M){var Z=L+M,De=this.getPositionAt(L),xe=this.getPositionAt(Z);return new G.a(De.lineNumber,De.column,xe.lineNumber,xe.column)},$e.prototype.getValueInRange=function(L,M){if(M===void 0&&(M=0),L.isEmpty())return"";var Z=this._getEndOfLine(M);return this._pieceTree.getValueInRange(L,Z)},$e.prototype.getValueLengthInRange=function(L,M){if(M===void 0&&(M=0),L.isEmpty())return 0;if(L.startLineNumber===L.endLineNumber)return L.endColumn-L.startColumn;var Z=this.getOffsetAt(L.startLineNumber,L.startColumn),De=this.getOffsetAt(L.endLineNumber,L.endColumn);return De-Z},$e.prototype.getCharacterCountInRange=function(L,M){if(M===void 0&&(M=0),this._mightContainNonBasicASCII){for(var Z=0,De=L.startLineNumber,xe=L.endLineNumber,je=De;je<=xe;je++)for(var ht=this.getLineContent(je),ut=je===De?L.startColumn-1:0,yt=je===xe?L.endColumn-1:ht.length,It=ut;It<yt;It++)P.z(ht.charCodeAt(It))?(Z=Z+1,It=It+1):Z=Z+1;return Z+=this._getEndOfLine(M).length*(xe-De),Z}return this.getValueLengthInRange(L,M)},$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(L){return this._pieceTree.getLineContent(L)},$e.prototype.getLineCharCode=function(L,M){return this._pieceTree.getLineCharCode(L,M)},$e.prototype.getLineLength=function(L){return this._pieceTree.getLineLength(L)},$e.prototype.getLineFirstNonWhitespaceColumn=function(L){var M=P.q(this.getLineContent(L));return M===-1?0:M+1},$e.prototype.getLineLastNonWhitespaceColumn=function(L){var M=P.D(this.getLineContent(L));return M===-1?0:M+2},$e.prototype._getEndOfLine=function(L){switch(L){case 1:return`
`;case 2:return`\r
`;case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},$e.prototype.setEOL=function(L){this._pieceTree.setEOL(L)},$e.prototype.applyEdits=function(L,M){for(var Z=this._mightContainRTL,De=this._mightContainNonBasicASCII,xe=!0,je=[],ht=0;ht<L.length;ht++){var ut=L[ht];xe&&ut._isTracked&&(xe=!1);var yt=ut.range;!Z&&ut.text&&(Z=P.i(ut.text)),!De&&ut.text&&(De=!P.v(ut.text)),je[ht]={sortIndex:ht,identifier:ut.identifier||null,range:yt,rangeOffset:this.getOffsetAt(yt.startLineNumber,yt.startColumn),rangeLength:this.getValueLengthInRange(yt),lines:ut.text?ut.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(ut.forceMoveMarkers),isAutoWhitespaceEdit:ut.isAutoWhitespaceEdit||!1}}je.sort($e._sortOpsAscending);for(var It=!1,ht=0,Rt=je.length-1;ht<Rt;ht++){var Wt=je[ht].range.getEndPosition(),Zt=je[ht+1].range.getStartPosition();if(Zt.isBeforeOrEqual(Wt)){if(Zt.isBefore(Wt))throw new Error("Overlapping ranges are not allowed!");It=!0}}xe&&(je=this._reduceOperations(je));for(var Xt=$e._getInverseEditRanges(je),ln=[],ht=0;ht<je.length;ht++){var ut=je[ht],hn=Xt[ht];if(M&&ut.isAutoWhitespaceEdit&&ut.range.isEmpty())for(var Tn=hn.startLineNumber;Tn<=hn.endLineNumber;Tn++){var pn="";Tn===hn.startLineNumber&&(pn=this.getLineContent(ut.range.startLineNumber),P.q(pn)!==-1)||ln.push({lineNumber:Tn,oldContent:pn})}}for(var Nn=[],ht=0;ht<je.length;ht++){var ut=je[ht],hn=Xt[ht];Nn[ht]={sortIndex:ut.sortIndex,identifier:ut.identifier,range:hn,text:this.getValueInRange(ut.range),forceMoveMarkers:ut.forceMoveMarkers}}It||Nn.sort(function(qe,ct){return qe.sortIndex-ct.sortIndex}),this._mightContainRTL=Z,this._mightContainNonBasicASCII=De;var In=this._doApplyEdits(je),Oe=null;if(M&&ln.length>0){ln.sort(function(qe,ct){return ct.lineNumber-qe.lineNumber}),Oe=[];for(var ht=0,j=ln.length;ht<j;ht++){var Tn=ln[ht].lineNumber;if(!(ht>0&&ln[ht-1].lineNumber===Tn)){var ae=ln[ht].oldContent,Fe=this.getLineContent(Tn);Fe.length===0||Fe===ae||P.q(Fe)!==-1||Oe.push(Tn)}}}return new S.a(Nn,In,Oe)},$e.prototype._reduceOperations=function(L){return L.length<1e3?L:[this._toSingleEditOperation(L)]},$e.prototype._toSingleEditOperation=function(L){for(var M=!1,Z=L[0].range,De=L[L.length-1].range,xe=new G.a(Z.startLineNumber,Z.startColumn,De.endLineNumber,De.endColumn),je=Z.startLineNumber,ht=Z.startColumn,ut=[],yt=0,It=L.length;yt<It;yt++){var Rt=L[yt],Wt=Rt.range;M=M||Rt.forceMoveMarkers;for(var Zt=je;Zt<Wt.startLineNumber;Zt++)Zt===je?ut.push(this.getLineContent(Zt).substring(ht-1)):(ut.push(`
`),ut.push(this.getLineContent(Zt)));if(Wt.startLineNumber===je?ut.push(this.getLineContent(Wt.startLineNumber).substring(ht-1,Wt.startColumn-1)):(ut.push(`
`),ut.push(this.getLineContent(Wt.startLineNumber).substring(0,Wt.startColumn-1))),Rt.lines)for(var Xt=0,ln=Rt.lines.length;Xt<ln;Xt++)Xt!==0&&ut.push(`
`),ut.push(Rt.lines[Xt]);je=Rt.range.endLineNumber,ht=Rt.range.endColumn}return{sortIndex:0,identifier:L[0].identifier,range:xe,rangeOffset:this.getOffsetAt(xe.startLineNumber,xe.startColumn),rangeLength:this.getValueLengthInRange(xe,0),lines:ut.join("").split(`
`),forceMoveMarkers:M,isAutoWhitespaceEdit:!1}},$e.prototype._doApplyEdits=function(L){L.sort($e._sortOpsDescending);for(var M=[],Z=0;Z<L.length;Z++){var De=L[Z],xe=De.range.startLineNumber,je=De.range.startColumn,ht=De.range.endLineNumber,ut=De.range.endColumn;if(!(xe===ht&&je===ut&&(!De.lines||De.lines.length===0))){var yt=ht-xe,It=De.lines?De.lines.length-1:0,Rt=Math.min(yt,It),Wt=De.lines?De.lines.join(this.getEOL()):"";if(Wt?(this._pieceTree.delete(De.rangeOffset,De.rangeLength),this._pieceTree.insert(De.rangeOffset,Wt,!0)):this._pieceTree.delete(De.rangeOffset,De.rangeLength),Rt<It){for(var Zt=[],Xt=Rt+1;Xt<=It;Xt++)Zt.push(De.lines[Xt]);Zt[Zt.length-1]=this.getLineContent(xe+It-1)}var ln=new G.a(xe,je,ht,ut);M.push({range:ln,rangeLength:De.rangeLength,text:Wt,rangeOffset:De.rangeOffset,forceMoveMarkers:De.forceMoveMarkers})}}return M},$e.prototype.findMatchesLineByLine=function(L,M,Z,De){return this._pieceTree.findMatchesLineByLine(L,M,Z,De)},$e._getInverseEditRanges=function(L){for(var M=[],Z=0,De=0,xe=null,je=0,ht=L.length;je<ht;je++){var ut=L[je],yt=void 0,It=void 0;xe?xe.range.endLineNumber===ut.range.startLineNumber?(yt=Z,It=De+(ut.range.startColumn-xe.range.endColumn)):(yt=Z+(ut.range.startLineNumber-xe.range.endLineNumber),It=ut.range.startColumn):(yt=ut.range.startLineNumber,It=ut.range.startColumn);var Rt=void 0;if(ut.lines&&ut.lines.length>0){var Wt=ut.lines.length,Zt=ut.lines[0],Xt=ut.lines[Wt-1];Wt===1?Rt=new G.a(yt,It,yt,It+Zt.length):Rt=new G.a(yt,It,yt+Wt-1,Xt.length+1)}else Rt=new G.a(yt,It,yt,It);Z=Rt.endLineNumber,De=Rt.endColumn,M.push(Rt),xe=ut}return M},$e._sortOpsAscending=function(L,M){var Z=G.a.compareRangesUsingEnds(L.range,M.range);return Z===0?L.sortIndex-M.sortIndex:Z},$e._sortOpsDescending=function(L,M){var Z=G.a.compareRangesUsingEnds(L.range,M.range);return Z===0?M.sortIndex-L.sortIndex:-Z},$e}(),Jt=function(){function $e(L,M,Z,De,xe,je,ht,ut){this._chunks=L,this._bom=M,this._cr=Z,this._lf=De,this._crlf=xe,this._containsRTL=je,this._isBasicASCII=ht,this._normalizeEOL=ut}return $e.prototype._getEOL=function(L){var M=this._cr+this._lf+this._crlf,Z=this._cr+this._crlf;return M===0?L===1?`
`:`\r
`:Z>M/2?`\r
`:`
`},$e.prototype.create=function(L){var M=this._getEOL(L),Z=this._chunks;if(this._normalizeEOL&&(M===`\r
`&&(this._cr>0||this._lf>0)||M===`
`&&(this._cr>0||this._crlf>0)))for(var De=0,xe=Z.length;De<xe;De++){var je=Z[De].buffer.replace(/\r\n|\r|\n/g,M),ht=Mn(je);Z[De]=new pt(je,ht)}return new Ht(Z,this._bom,M,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},$e}(),nn=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(L){if(L.length!==0){this.chunks.length===0&&P.O(L)&&(this.BOM=P.a,L=L.substr(1));var M=L.charCodeAt(L.length-1);M===13||M>=55296&&M<=56319?(this._acceptChunk1(L.substr(0,L.length-1),!1),this._hasPreviousChar=!0,this._previousChar=M):(this._acceptChunk1(L,!1),this._hasPreviousChar=!1,this._previousChar=M)}},$e.prototype._acceptChunk1=function(L,M){!M&&L.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+L):this._acceptChunk2(L))},$e.prototype._acceptChunk2=function(L){var M=Ft(this._tmpLineStarts,L);this.chunks.push(new pt(L,M.lineStarts)),this.cr+=M.cr,this.lf+=M.lf,this.crlf+=M.crlf,this.isBasicASCII&&(this.isBasicASCII=M.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=P.i(L))},$e.prototype.finish=function(L){return L===void 0&&(L=!0),this._finish(),new Jt(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,L)},$e.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var L=this.chunks[this.chunks.length-1];L.buffer+=String.fromCharCode(this._previousChar);var M=Mn(L.buffer);L.lineStarts=M,this._previousChar===13&&this.cr++}},$e}(),sn=function(){function $e(){this.changeType=1}return $e}(),un=function(){function $e(L,M){this.changeType=2,this.lineNumber=L,this.detail=M}return $e}(),Sn=function(){function $e(L,M){this.changeType=3,this.fromLineNumber=L,this.toLineNumber=M}return $e}(),Ln=function(){function $e(L,M,Z){this.changeType=4,this.fromLineNumber=L,this.toLineNumber=M,this.detail=Z}return $e}(),An=function(){function $e(){this.changeType=5}return $e}(),Gn=function(){function $e(L,M,Z,De){this.changes=L,this.versionId=M,this.isUndoing=Z,this.isRedoing=De}return $e.prototype.containsEvent=function(L){for(var M=0,Z=this.changes.length;M<Z;M++){var De=this.changes[M];if(De.changeType===L)return!0}return!1},$e.merge=function(L,M){var Z=[].concat(L.changes).concat(M.changes),De=M.versionId,xe=L.isUndoing||M.isUndoing,je=L.isRedoing||M.isRedoing;return new $e(Z,De,xe,je)},$e}(),Jn=function(){function $e(L,M){this.rawContentChangedEvent=L,this.contentChangedEvent=M}return $e.prototype.merge=function(L){var M=Gn.merge(this.rawContentChangedEvent,L.rawContentChangedEvent),Z=$e._mergeChangeEvents(this.contentChangedEvent,L.contentChangedEvent);return new $e(M,Z)},$e._mergeChangeEvents=function(L,M){var Z=[].concat(L.changes).concat(M.changes),De=M.eol,xe=M.versionId,je=L.isUndoing||M.isUndoing,ht=L.isRedoing||M.isRedoing,ut=L.isFlush||M.isFlush;return{changes:Z,eol:De,versionId:xe,isUndoing:je,isRedoing:ht,isFlush:ut}},$e}(),$n=o("6OMU"),pi=o("4bUh"),Kn=o("twdY"),yi=o("i/Ef"),vi=o("5Y4S"),mt=o("QRHv"),Nt=o("MNsG"),Ut=function(){var $e=function(M,Z){return $e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,xe){De.__proto__=xe}||function(De,xe){for(var je in xe)xe.hasOwnProperty(je)&&(De[je]=xe[je])},$e(M,Z)};return function(L,M){$e(L,M);function Z(){this.constructor=L}L.prototype=M===null?Object.create(M):(Z.prototype=M.prototype,new Z)}}(),tn=function(){function $e(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return $e.prototype._reset=function(L){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,L&&this._setBeginState(0,L)},$e.prototype.flush=function(L){this._reset(L)},Object.defineProperty($e.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),$e.prototype._invalidateLine=function(L){L<this._len&&(this._valid[L]=!1),L<this._invalidLineStartIndex&&(this._invalidLineStartIndex=L)},$e.prototype._isValid=function(L){return L<this._len?this._valid[L]:!1},$e.prototype.getBeginState=function(L){return L<this._len?this._beginState[L]:null},$e.prototype._ensureLine=function(L){for(;L>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},$e.prototype._deleteLines=function(L,M){M!==0&&(L+M>this._len&&(M=this._len-L),this._beginState.splice(L,M),this._valid.splice(L,M),this._len-=M)},$e.prototype._insertLines=function(L,M){if(M!==0){for(var Z=[],De=[],xe=0;xe<M;xe++)Z[xe]=null,De[xe]=!1;this._beginState=$n.a(this._beginState,L,Z),this._valid=$n.a(this._valid,L,De),this._len+=M}},$e.prototype._setValid=function(L,M){this._ensureLine(L),this._valid[L]=M},$e.prototype._setBeginState=function(L,M){this._ensureLine(L),this._beginState[L]=M},$e.prototype.setEndState=function(L,M,Z){if(this._setValid(M,!0),this._invalidLineStartIndex=M+1,M!==L-1){var De=this.getBeginState(M+1);if(De===null||!Z.equals(De)){this._setBeginState(M+1,Z),this._invalidateLine(M+1);return}for(var xe=M+1;xe<L&&this._isValid(xe);)xe++;this._invalidLineStartIndex=xe}},$e.prototype.setFakeTokens=function(L){this._setValid(L,!1)},$e.prototype.applyEdits=function(L,M){for(var Z=L.endLineNumber-L.startLineNumber,De=M,xe=Math.min(Z,De),je=xe;je>=0;je--)this._invalidateLine(L.startLineNumber+je-1);this._acceptDeleteRange(L),this._acceptInsertText(new B.a(L.startLineNumber,L.startColumn),M)},$e.prototype._acceptDeleteRange=function(L){var M=L.startLineNumber-1;M>=this._len||this._deleteLines(L.startLineNumber,L.endLineNumber-L.startLineNumber)},$e.prototype._acceptInsertText=function(L,M){var Z=L.lineNumber-1;Z>=this._len||this._insertLines(L.lineNumber,M)},$e}(),Vt=function($e){Ut(L,$e);function L(M){var Z=$e.call(this)||this;return Z._isDisposed=!1,Z._textModel=M,Z._tokenizationStateStore=new tn,Z._tokenizationSupport=null,Z._register(Kn.y.onDidChange(function(De){var xe=Z._textModel.getLanguageIdentifier();De.changedLanguages.indexOf(xe.language)!==-1&&(Z._resetTokenizationState(),Z._textModel.clearTokens())})),Z._register(Z._textModel.onDidChangeRawContentFast(function(De){if(De.containsEvent(1)){Z._resetTokenizationState();return}})),Z._register(Z._textModel.onDidChangeContentFast(function(De){for(var xe=0,je=De.changes.length;xe<je;xe++){var ht=De.changes[xe],ut=Object(mt.f)(ht.text)[0];Z._tokenizationStateStore.applyEdits(ht.range,ut)}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 L.prototype.dispose=function(){this._isDisposed=!0,$e.prototype.dispose.call(this)},L.prototype._resetTokenizationState=function(){var M=wn(this._textModel),Z=M[0],De=M[1];this._tokenizationSupport=Z,this._tokenizationStateStore.flush(De),this._beginBackgroundTokenization()},L.prototype._beginBackgroundTokenization=function(){var M=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&Nt.i(function(){M._isDisposed||M._revalidateTokensNow()})},L.prototype._revalidateTokensNow=function(M){M===void 0&&(M=this._textModel.getLineCount());for(var Z=1,De=new mt.b,xe=vi.a.create(!1);this._hasLinesToTokenize()&&!(xe.elapsed()>Z);){var je=this._tokenizeOneInvalidLine(De);if(je>=M)break}this._beginBackgroundTokenization(),this._textModel.setTokens(De.tokens)},L.prototype.tokenizeViewport=function(M,Z){var De=new mt.b;this._tokenizeViewport(De,M,Z),this._textModel.setTokens(De.tokens)},L.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},L.prototype.forceTokenization=function(M){var Z=new mt.b;this._updateTokensUntilLine(Z,M),this._textModel.setTokens(Z.tokens)},L.prototype.isCheapToTokenize=function(M){if(!this._tokenizationSupport)return!0;var Z=this._tokenizationStateStore.invalidLineStartIndex+1;return M>Z?!1:M<Z||this._textModel.getLineLength(M)<2048},L.prototype._hasLinesToTokenize=function(){return this._tokenizationSupport?this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount():!1},L.prototype._tokenizeOneInvalidLine=function(M){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var Z=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(M,Z),Z},L.prototype._updateTokensUntilLine=function(M,Z){if(!!this._tokenizationSupport)for(var De=this._textModel.getLanguageIdentifier(),xe=this._textModel.getLineCount(),je=Z-1,ht=this._tokenizationStateStore.invalidLineStartIndex;ht<=je;ht++){var ut=this._textModel.getLineContent(ht+1),yt=this._tokenizationStateStore.getBeginState(ht),It=xn(De,this._tokenizationSupport,ut,yt);M.add(ht+1,It.tokens),this._tokenizationStateStore.setEndState(xe,ht,It.endState),ht=this._tokenizationStateStore.invalidLineStartIndex-1}},L.prototype._tokenizeViewport=function(M,Z,De){if(!!this._tokenizationSupport&&!(De<=this._tokenizationStateStore.invalidLineStartIndex)){if(Z<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(M,De);return}for(var xe=this._textModel.getLineFirstNonWhitespaceColumn(Z),je=[],ht=null,ut=Z-1;xe>0&&ut>=1;ut--){var yt=this._textModel.getLineFirstNonWhitespaceColumn(ut);if(yt!==0&&yt<xe){if(ht=this._tokenizationStateStore.getBeginState(ut-1),ht)break;je.push(this._textModel.getLineContent(ut)),xe=yt}}ht||(ht=this._tokenizationSupport.getInitialState());for(var It=this._textModel.getLanguageIdentifier(),Rt=ht,ut=je.length-1;ut>=0;ut--){var Wt=xn(It,this._tokenizationSupport,je[ut],Rt);Rt=Wt.endState}for(var Zt=Z;Zt<=De;Zt++){var Xt=this._textModel.getLineContent(Zt),Wt=xn(It,this._tokenizationSupport,Xt,Rt);M.add(Zt,Wt.tokens),this._tokenizationStateStore.setFakeTokens(Zt-1),Rt=Wt.endState}}},L}(ne.a);function wn($e){var L=$e.getLanguageIdentifier(),M=$e.isTooLargeForTokenization()?null:Kn.y.get(L.language),Z=null;if(M)try{Z=M.getInitialState()}catch(De){Object(R.e)(De),M=null}return[M,Z]}function xn($e,L,M,Z){var De=null;if(L)try{De=L.tokenize2(M,Z.clone(),0)}catch(xe){Object(R.e)(xe)}return De||(De=Object(yi.e)($e.id,M,Z,0)),pi.a.convertToEndOffset(De.tokens,M.length),De}var kn=o("0JNc"),Fn=o("cMvZ"),oi=o("BFtn"),ci=o("EIAu"),Ui=o("746U"),rr=o("zrhQ"),Xn=function(){var $e=function(M,Z){return $e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,xe){De.__proto__=xe}||function(De,xe){for(var je in xe)xe.hasOwnProperty(je)&&(De[je]=xe[je])},$e(M,Z)};return function(L,M){$e(L,M);function Z(){this.constructor=L}L.prototype=M===null?Object.create(M):(Z.prototype=M.prototype,new Z)}}();function Ri(){return new nn}function wi($e){var L=Ri();return L.acceptChunk($e),L.finish()}function Bi($e,L){var M=typeof $e=="string"?wi($e):$e;return M.create(L)}var Vn=0,bi=999,ji=1e4,Mi=function(){throw new Error("Invalid change accessor")},Gi=function($e){Xn(L,$e);function L(M,Z,De,xe){xe===void 0&&(xe=null);var je=$e.call(this)||this;je._onWillDispose=je._register(new re.a),je.onWillDispose=je._onWillDispose.event,je._onDidChangeDecorations=je._register(new Ni),je.onDidChangeDecorations=je._onDidChangeDecorations.event,je._onDidChangeLanguage=je._register(new re.a),je.onDidChangeLanguage=je._onDidChangeLanguage.event,je._onDidChangeLanguageConfiguration=je._register(new re.a),je.onDidChangeLanguageConfiguration=je._onDidChangeLanguageConfiguration.event,je._onDidChangeTokens=je._register(new re.a),je.onDidChangeTokens=je._onDidChangeTokens.event,je._onDidChangeOptions=je._register(new re.a),je.onDidChangeOptions=je._onDidChangeOptions.event,je._onDidChangeAttached=je._register(new re.a),je.onDidChangeAttached=je._onDidChangeAttached.event,je._eventEmitter=je._register(new sr),Vn++,je.id="$model"+Vn,je.isForSimpleWidget=Z.isForSimpleWidget,typeof xe=="undefined"||xe===null?je._associatedResource=F.a.parse("inmemory://model/"+Vn):je._associatedResource=xe,je._attachedEditorCount=0,je._buffer=Bi(M,Z.defaultEOL),je._options=L.resolveOptions(je._buffer,Z);var ht=je._buffer.getLineCount(),ut=je._buffer.getValueLengthInRange(new G.a(1,1,ht,je._buffer.getLineLength(ht)+1),0);return Z.largeFileOptimizations?je._isTooLargeForTokenization=ut>L.LARGE_FILE_SIZE_THRESHOLD||ht>L.LARGE_FILE_LINE_COUNT_THRESHOLD:je._isTooLargeForTokenization=!1,je._isTooLargeForSyncing=ut>L.MODEL_SYNC_LIMIT,je._versionId=1,je._alternativeVersionId=1,je._isDisposed=!1,je._isDisposing=!1,je._languageIdentifier=De||yi.a,je._languageRegistryListener=Fn.a.onDidChange(function(yt){yt.languageIdentifier.id===je._languageIdentifier.id&&je._onDidChangeLanguageConfiguration.fire({})}),je._instanceId=P.L(Vn),je._lastDecorationId=0,je._decorations=Object.create(null),je._decorationsTree=new ki,je._commandManager=new T(je),je._isUndoing=!1,je._isRedoing=!1,je._trimAutoWhitespaceLines=null,je._tokens=new mt.d,je._tokens2=new mt.e,je._tokenization=new Vt(je),je}return L.createFromString=function(M,Z,De,xe){return Z===void 0&&(Z=L.DEFAULT_CREATION_OPTIONS),De===void 0&&(De=null),xe===void 0&&(xe=null),new L(M,Z,De,xe)},L.resolveOptions=function(M,Z){if(Z.detectIndentation){var De=_(M,Z.tabSize,Z.insertSpaces);return new S.e({tabSize:De.tabSize,indentSize:De.tabSize,insertSpaces:De.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})}return new S.e({tabSize:Z.tabSize,indentSize:Z.indentSize,insertSpaces:Z.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})},L.prototype.onDidChangeRawContentFast=function(M){return this._eventEmitter.fastEvent(function(Z){return M(Z.rawContentChangedEvent)})},L.prototype.onDidChangeRawContent=function(M){return this._eventEmitter.slowEvent(function(Z){return M(Z.rawContentChangedEvent)})},L.prototype.onDidChangeContentFast=function(M){return this._eventEmitter.fastEvent(function(Z){return M(Z.contentChangedEvent)})},L.prototype.onDidChangeContent=function(M){return this._eventEmitter.slowEvent(function(Z){return M(Z.contentChangedEvent)})},L.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},L.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},L.prototype._emitContentChangedEvent=function(M,Z){this._isDisposing||this._eventEmitter.fire(new Jn(M,Z))},L.prototype.setValue=function(M){if(this._assertNotDisposed(),M!==null){var Z=Bi(M,this._options.defaultEOL);this.setValueFromTextBuffer(Z)}},L.prototype._createContentChanged2=function(M,Z,De,xe,je,ht,ut){return{changes:[{range:M,rangeOffset:Z,rangeLength:De,text:xe}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:je,isRedoing:ht,isFlush:ut}},L.prototype.setValueFromTextBuffer=function(M){if(this._assertNotDisposed(),M!==null){var Z=this.getFullModelRange(),De=this.getValueLengthInRange(Z),xe=this.getLineCount(),je=this.getLineMaxColumn(xe);this._buffer=M,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new ki,this._commandManager=new T(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Gn([new sn],this._versionId,!1,!1),this._createContentChanged2(new G.a(1,1,xe,je),0,De,this.getValue(),!1,!1,!0))}},L.prototype.setEOL=function(M){this._assertNotDisposed();var Z=M===1?`\r
`:`
`;if(this._buffer.getEOL()!==Z){var De=this.getFullModelRange(),xe=this.getValueLengthInRange(De),je=this.getLineCount(),ht=this.getLineMaxColumn(je);this._onBeforeEOLChange(),this._buffer.setEOL(Z),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Gn([new An],this._versionId,!1,!1),this._createContentChanged2(new G.a(1,1,je,ht),0,xe,this.getValue(),!1,!1,!1))}},L.prototype._onBeforeEOLChange=function(){var M=this.getVersionId(),Z=this._decorationsTree.search(0,!1,!1,M);this._ensureNodesHaveRanges(Z)},L.prototype._onAfterEOLChange=function(){for(var M=this.getVersionId(),Z=this._decorationsTree.collectNodesPostOrder(),De=0,xe=Z.length;De<xe;De++){var je=Z[De],ht=je.cachedAbsoluteStart-je.start,ut=this._buffer.getOffsetAt(je.range.startLineNumber,je.range.startColumn),yt=this._buffer.getOffsetAt(je.range.endLineNumber,je.range.endColumn);je.cachedAbsoluteStart=ut,je.cachedAbsoluteEnd=yt,je.cachedVersionId=M,je.start=ut-ht,je.end=yt-ht,Ze(je)}},L.prototype.onBeforeAttached=function(){this._attachedEditorCount++,this._attachedEditorCount===1&&this._onDidChangeAttached.fire(void 0)},L.prototype.onBeforeDetached=function(){this._attachedEditorCount--,this._attachedEditorCount===0&&this._onDidChangeAttached.fire(void 0)},L.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},L.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},L.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},L.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},L.prototype.isDisposed=function(){return this._isDisposed},L.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var M=0,Z=0,De=this._buffer.getLineCount(),xe=1;xe<=De;xe++){var je=this._buffer.getLineLength(xe);je>=ji?Z+=je:M+=je}return Z>M},Object.defineProperty(L.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),L.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},L.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},L.prototype.updateOptions=function(M){this._assertNotDisposed();var Z=typeof M.tabSize!="undefined"?M.tabSize:this._options.tabSize,De=typeof M.indentSize!="undefined"?M.indentSize:this._options.indentSize,xe=typeof M.insertSpaces!="undefined"?M.insertSpaces:this._options.insertSpaces,je=typeof M.trimAutoWhitespace!="undefined"?M.trimAutoWhitespace:this._options.trimAutoWhitespace,ht=new S.e({tabSize:Z,indentSize:De,insertSpaces:xe,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:je});if(!this._options.equals(ht)){var ut=this._options.createChangeEvent(ht);this._options=ht,this._onDidChangeOptions.fire(ut)}},L.prototype.detectIndentation=function(M,Z){this._assertNotDisposed();var De=_(this._buffer,Z,M);this.updateOptions({insertSpaces:De.insertSpaces,tabSize:De.tabSize,indentSize:De.tabSize})},L._normalizeIndentationFromWhitespace=function(M,Z,De){for(var xe=0,je=0;je<M.length;je++)M.charAt(je)===" "?xe+=Z:xe++;var ht="";if(!De){var ut=Math.floor(xe/Z);xe=xe%Z;for(var je=0;je<ut;je++)ht+=" "}for(var je=0;je<xe;je++)ht+=" ";return ht},L.normalizeIndentation=function(M,Z,De){var xe=P.q(M);return xe===-1&&(xe=M.length),L._normalizeIndentationFromWhitespace(M.substring(0,xe),Z,De)+M.substring(xe)},L.prototype.normalizeIndentation=function(M){return this._assertNotDisposed(),L.normalizeIndentation(M,this._options.indentSize,this._options.insertSpaces)},L.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},L.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},L.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},L.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},L.prototype.getOffsetAt=function(M){this._assertNotDisposed();var Z=this._validatePosition(M.lineNumber,M.column,0);return this._buffer.getOffsetAt(Z.lineNumber,Z.column)},L.prototype.getPositionAt=function(M){this._assertNotDisposed();var Z=Math.min(this._buffer.getLength(),Math.max(0,M));return this._buffer.getPositionAt(Z)},L.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},L.prototype._overwriteAlternativeVersionId=function(M){this._alternativeVersionId=M},L.prototype.getValue=function(M,Z){Z===void 0&&(Z=!1),this._assertNotDisposed();var De=this.getFullModelRange(),xe=this.getValueInRange(De,M);return Z?this._buffer.getBOM()+xe:xe},L.prototype.getValueLength=function(M,Z){Z===void 0&&(Z=!1),this._assertNotDisposed();var De=this.getFullModelRange(),xe=this.getValueLengthInRange(De,M);return Z?this._buffer.getBOM().length+xe:xe},L.prototype.getValueInRange=function(M,Z){return Z===void 0&&(Z=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(M),Z)},L.prototype.getValueLengthInRange=function(M,Z){return Z===void 0&&(Z=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(M),Z)},L.prototype.getCharacterCountInRange=function(M,Z){return Z===void 0&&(Z=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(M),Z)},L.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},L.prototype.getLineContent=function(M){if(this._assertNotDisposed(),M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(M)},L.prototype.getLineLength=function(M){if(this._assertNotDisposed(),M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(M)},L.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},L.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},L.prototype.getLineMinColumn=function(M){return this._assertNotDisposed(),1},L.prototype.getLineMaxColumn=function(M){if(this._assertNotDisposed(),M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(M)+1},L.prototype.getLineFirstNonWhitespaceColumn=function(M){if(this._assertNotDisposed(),M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(M)},L.prototype.getLineLastNonWhitespaceColumn=function(M){if(this._assertNotDisposed(),M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(M)},L.prototype._validateRangeRelaxedNoAllocations=function(M){var Z=this._buffer.getLineCount(),De=M.startLineNumber,xe=M.startColumn,je,ht;if(De<1)je=1,ht=1;else if(De>Z)je=Z,ht=this.getLineMaxColumn(je);else if(je=De|0,xe<=1)ht=1;else{var ut=this.getLineMaxColumn(je);xe>=ut?ht=ut:ht=xe|0}var yt=M.endLineNumber,It=M.endColumn,Rt,Wt;if(yt<1)Rt=1,Wt=1;else if(yt>Z)Rt=Z,Wt=this.getLineMaxColumn(Rt);else if(Rt=yt|0,It<=1)Wt=1;else{var ut=this.getLineMaxColumn(Rt);It>=ut?Wt=ut:Wt=It|0}return De===je&&xe===ht&&yt===Rt&&It===Wt&&M instanceof G.a&&!(M instanceof x.a)?M:new G.a(je,ht,Rt,Wt)},L.prototype._isValidPosition=function(M,Z,De){if(typeof M!="number"||typeof Z!="number"||isNaN(M)||isNaN(Z)||M<1||Z<1||(M|0)!==M||(Z|0)!==Z)return!1;var xe=this._buffer.getLineCount();if(M>xe)return!1;if(Z===1)return!0;var je=this.getLineMaxColumn(M);if(Z>je)return!1;if(De===1){var ht=this._buffer.getLineCharCode(M,Z-2);if(P.z(ht))return!1}return!0},L.prototype._validatePosition=function(M,Z,De){var xe=Math.floor(typeof M=="number"&&!isNaN(M)?M:1),je=Math.floor(typeof Z=="number"&&!isNaN(Z)?Z:1),ht=this._buffer.getLineCount();if(xe<1)return new B.a(1,1);if(xe>ht)return new B.a(ht,this.getLineMaxColumn(ht));if(je<=1)return new B.a(xe,1);var ut=this.getLineMaxColumn(xe);if(je>=ut)return new B.a(xe,ut);if(De===1){var yt=this._buffer.getLineCharCode(xe,je-2);if(P.z(yt))return new B.a(xe,je-1)}return new B.a(xe,je)},L.prototype.validatePosition=function(M){var Z=1;return this._assertNotDisposed(),M instanceof B.a&&this._isValidPosition(M.lineNumber,M.column,Z)?M:this._validatePosition(M.lineNumber,M.column,Z)},L.prototype._isValidRange=function(M,Z){var De=M.startLineNumber,xe=M.startColumn,je=M.endLineNumber,ht=M.endColumn;if(!this._isValidPosition(De,xe,0)||!this._isValidPosition(je,ht,0))return!1;if(Z===1){var ut=xe>1?this._buffer.getLineCharCode(De,xe-2):0,yt=ht>1&&ht<=this._buffer.getLineLength(je)?this._buffer.getLineCharCode(je,ht-2):0,It=P.z(ut),Rt=P.z(yt);return!It&&!Rt}return!0},L.prototype.validateRange=function(M){var Z=1;if(this._assertNotDisposed(),M instanceof G.a&&!(M instanceof x.a)&&this._isValidRange(M,Z))return M;var De=this._validatePosition(M.startLineNumber,M.startColumn,0),xe=this._validatePosition(M.endLineNumber,M.endColumn,0),je=De.lineNumber,ht=De.column,ut=xe.lineNumber,yt=xe.column;if(Z===1){var It=ht>1?this._buffer.getLineCharCode(je,ht-2):0,Rt=yt>1&&yt<=this._buffer.getLineLength(ut)?this._buffer.getLineCharCode(ut,yt-2):0,Wt=P.z(It),Zt=P.z(Rt);return!Wt&&!Zt?new G.a(je,ht,ut,yt):je===ut&&ht===yt?new G.a(je,ht-1,ut,yt-1):Wt&&Zt?new G.a(je,ht-1,ut,yt+1):Wt?new G.a(je,ht-1,ut,yt):new G.a(je,ht,ut,yt+1)}return new G.a(je,ht,ut,yt)},L.prototype.modifyPosition=function(M,Z){this._assertNotDisposed();var De=this.getOffsetAt(M)+Z;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,De)))},L.prototype.getFullModelRange=function(){this._assertNotDisposed();var M=this.getLineCount();return new G.a(1,1,M,this.getLineMaxColumn(M))},L.prototype.findMatchesLineByLine=function(M,Z,De,xe){return this._buffer.findMatchesLineByLine(M,Z,De,xe)},L.prototype.findMatches=function(M,Z,De,xe,je,ht,ut){ut===void 0&&(ut=bi),this._assertNotDisposed();var yt;if(G.a.isIRange(Z)?yt=this.validateRange(Z):yt=this.getFullModelRange(),!De&&M.indexOf(`
`)<0){var It=new Gt.a(M,De,xe,je),Rt=It.parseSearchRequest();return Rt?this.findMatchesLineByLine(yt,Rt,ht,ut):[]}return Gt.c.findMatches(this,new Gt.a(M,De,xe,je),yt,ht,ut)},L.prototype.findNextMatch=function(M,Z,De,xe,je,ht){this._assertNotDisposed();var ut=this.validatePosition(Z);if(!De&&M.indexOf(`
`)<0){var yt=new Gt.a(M,De,xe,je),It=yt.parseSearchRequest();if(!It)return null;var Rt=this.getLineCount(),Wt=new G.a(ut.lineNumber,ut.column,Rt,this.getLineMaxColumn(Rt)),Zt=this.findMatchesLineByLine(Wt,It,ht,1);return Gt.c.findNextMatch(this,new Gt.a(M,De,xe,je),ut,ht),Zt.length>0||(Wt=new G.a(1,1,ut.lineNumber,this.getLineMaxColumn(ut.lineNumber)),Zt=this.findMatchesLineByLine(Wt,It,ht,1),Zt.length>0)?Zt[0]:null}return Gt.c.findNextMatch(this,new Gt.a(M,De,xe,je),ut,ht)},L.prototype.findPreviousMatch=function(M,Z,De,xe,je,ht){this._assertNotDisposed();var ut=this.validatePosition(Z);return Gt.c.findPreviousMatch(this,new Gt.a(M,De,xe,je),ut,ht)},L.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},L.prototype.pushEOL=function(M){var Z=this.getEOL()===`
`?0:1;if(Z!==M)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(M)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},L.prototype.pushEditOperations=function(M,Z,De){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(M,Z,De)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},L.prototype._pushEditOperations=function(M,Z,De){var xe=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var je=Z.map(function(Oe){return{range:xe.validateRange(Oe.range),text:Oe.text}}),ht=!0,ut=0,yt=M.length;ut<yt;ut++){for(var It=M[ut],Rt=!1,Wt=0,Zt=je.length;Wt<Zt;Wt++){var Xt=je[Wt].range,ln=Xt.startLineNumber>It.endLineNumber,hn=It.startLineNumber>Xt.endLineNumber;if(!ln&&!hn){Rt=!0;break}}if(!Rt){ht=!1;break}}if(ht)for(var ut=0,yt=this._trimAutoWhitespaceLines.length;ut<yt;ut++){for(var Tn=this._trimAutoWhitespaceLines[ut],pn=this.getLineMaxColumn(Tn),Nn=!0,Wt=0,Zt=je.length;Wt<Zt;Wt++){var Xt=je[Wt].range,In=je[Wt].text;if(!(Tn<Xt.startLineNumber||Tn>Xt.endLineNumber)&&!(Tn===Xt.startLineNumber&&Xt.startColumn===pn&&Xt.isEmpty()&&In&&In.length>0&&In.charAt(0)===`
`)&&!(Tn===Xt.startLineNumber&&Xt.startColumn===1&&Xt.isEmpty()&&In&&In.length>0&&In.charAt(In.length-1)===`
`)){Nn=!1;break}}Nn&&Z.push({range:new G.a(Tn,1,Tn,pn),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(M,Z,De)},L.prototype.applyEdits=function(M){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(M)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},L.prototype._applyEdits=function(M){for(var Z=0,De=M.length;Z<De;Z++)M[Z].range=this.validateRange(M[Z].range);var xe=this._buffer.getLineCount(),je=this._buffer.applyEdits(M,this._options.trimAutoWhitespace),ht=this._buffer.getLineCount(),ut=je.changes;if(this._trimAutoWhitespaceLines=je.trimAutoWhitespaceLineNumbers,ut.length!==0){for(var yt=[],It=xe,Z=0,De=ut.length;Z<De;Z++){var Rt=ut[Z],Wt=Object(mt.f)(Rt.text),Zt=Wt[0],Xt=Wt[1],ln=Wt[2];this._tokens.acceptEdit(Rt.range,Zt,Xt),this._tokens2.acceptEdit(Rt.range,Zt,Xt,ln,Rt.text.length>0?Rt.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(Rt.rangeOffset,Rt.rangeLength,Rt.text.length,Rt.forceMoveMarkers);for(var hn=Rt.range.startLineNumber,Tn=Rt.range.endLineNumber,pn=Tn-hn,Nn=Zt,In=Math.min(pn,Nn),Oe=Nn-pn,j=In;j>=0;j--){var ae=hn+j,Fe=ht-It-Oe+ae;yt.push(new un(ae,this.getLineContent(Fe)))}if(In<pn){var qe=hn+In;yt.push(new Sn(qe+1,Tn))}if(In<Nn){for(var ct=hn+In,wt=Nn-In,Ge=ht-It-wt+ct+1,le=[],Y=0;Y<wt;Y++){var Ve=Ge+Y;le[Ve-Ge]=this.getLineContent(Ve)}yt.push(new Ln(ct+1,hn+Nn,le))}It+=Oe}this._increaseVersionId(),this._emitContentChangedEvent(new Gn(yt,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:ut,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return je.reverseEdits},L.prototype._undo=function(){this._isUndoing=!0;var M=this._commandManager.undo();return this._isUndoing=!1,M?(this._overwriteAlternativeVersionId(M.recordedVersionId),M.selections):null},L.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},L.prototype.canUndo=function(){return this._commandManager.canUndo()},L.prototype._redo=function(){this._isRedoing=!0;var M=this._commandManager.redo();return this._isRedoing=!1,M?(this._overwriteAlternativeVersionId(M.recordedVersionId),M.selections):null},L.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},L.prototype.canRedo=function(){return this._commandManager.canRedo()},L.prototype.changeDecorations=function(M,Z){Z===void 0&&(Z=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(Z,M)}finally{this._onDidChangeDecorations.endDeferredEmit()}},L.prototype._changeDecorations=function(M,Z){var De=this,xe={addDecoration:function(ut,yt){return De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(M,[],[{range:ut,options:yt}])[0]},changeDecoration:function(ut,yt){De._onDidChangeDecorations.fire(),De._changeDecorationImpl(ut,yt)},changeDecorationOptions:function(ut,yt){De._onDidChangeDecorations.fire(),De._changeDecorationOptionsImpl(ut,ur(yt))},removeDecoration:function(ut){De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(M,[ut],[])},deltaDecorations:function(ut,yt){return ut.length===0&&yt.length===0?[]:(De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(M,ut,yt))}},je=null;try{je=Z(xe)}catch(ht){Object(R.e)(ht)}return xe.addDecoration=Mi,xe.changeDecoration=Mi,xe.changeDecorationOptions=Mi,xe.removeDecoration=Mi,xe.deltaDecorations=Mi,je},L.prototype.deltaDecorations=function(M,Z,De){if(De===void 0&&(De=0),this._assertNotDisposed(),M||(M=[]),M.length===0&&Z.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(De,M,Z)}finally{this._onDidChangeDecorations.endDeferredEmit()}},L.prototype._getTrackedRange=function(M){return this.getDecorationRange(M)},L.prototype._setTrackedRange=function(M,Z,De){var xe=M?this._decorations[M]:null;if(!xe)return Z?this._deltaDecorationsImpl(0,[],[{range:Z,options:Yi[De]}])[0]:null;if(!Z)return this._decorationsTree.delete(xe),delete this._decorations[xe.id],null;var je=this._validateRangeRelaxedNoAllocations(Z),ht=this._buffer.getOffsetAt(je.startLineNumber,je.startColumn),ut=this._buffer.getOffsetAt(je.endLineNumber,je.endColumn);return this._decorationsTree.delete(xe),xe.reset(this.getVersionId(),ht,ut,je),xe.setOptions(Yi[De]),this._decorationsTree.insert(xe),xe.id},L.prototype.removeAllDecorationsWithOwnerId=function(M){if(!this._isDisposed)for(var Z=this._decorationsTree.collectNodesFromOwner(M),De=0,xe=Z.length;De<xe;De++){var je=Z[De];this._decorationsTree.delete(je),delete this._decorations[je.id]}},L.prototype.getDecorationOptions=function(M){var Z=this._decorations[M];return Z?Z.options:null},L.prototype.getDecorationRange=function(M){var Z=this._decorations[M];if(!Z)return null;var De=this.getVersionId();return Z.cachedVersionId!==De&&this._decorationsTree.resolveNode(Z,De),Z.range===null&&(Z.range=this._getRangeAt(Z.cachedAbsoluteStart,Z.cachedAbsoluteEnd)),Z.range},L.prototype.getLineDecorations=function(M,Z,De){return Z===void 0&&(Z=0),De===void 0&&(De=!1),M<1||M>this.getLineCount()?[]:this.getLinesDecorations(M,M,Z,De)},L.prototype.getLinesDecorations=function(M,Z,De,xe){De===void 0&&(De=0),xe===void 0&&(xe=!1);var je=this.getLineCount(),ht=Math.min(je,Math.max(1,M)),ut=Math.min(je,Math.max(1,Z)),yt=this.getLineMaxColumn(ut);return this._getDecorationsInRange(new G.a(ht,1,ut,yt),De,xe)},L.prototype.getDecorationsInRange=function(M,Z,De){Z===void 0&&(Z=0),De===void 0&&(De=!1);var xe=this.validateRange(M);return this._getDecorationsInRange(xe,Z,De)},L.prototype.getOverviewRulerDecorations=function(M,Z){M===void 0&&(M=0),Z===void 0&&(Z=!1);var De=this.getVersionId(),xe=this._decorationsTree.search(M,Z,!0,De);return this._ensureNodesHaveRanges(xe)},L.prototype.getAllDecorations=function(M,Z){M===void 0&&(M=0),Z===void 0&&(Z=!1);var De=this.getVersionId(),xe=this._decorationsTree.search(M,Z,!1,De);return this._ensureNodesHaveRanges(xe)},L.prototype._getDecorationsInRange=function(M,Z,De){var xe=this._buffer.getOffsetAt(M.startLineNumber,M.startColumn),je=this._buffer.getOffsetAt(M.endLineNumber,M.endColumn),ht=this.getVersionId(),ut=this._decorationsTree.intervalSearch(xe,je,Z,De,ht);return this._ensureNodesHaveRanges(ut)},L.prototype._ensureNodesHaveRanges=function(M){for(var Z=0,De=M.length;Z<De;Z++){var xe=M[Z];xe.range===null&&(xe.range=this._getRangeAt(xe.cachedAbsoluteStart,xe.cachedAbsoluteEnd))}return M},L.prototype._getRangeAt=function(M,Z){return this._buffer.getRangeAt(M,Z-M)},L.prototype._changeDecorationImpl=function(M,Z){var De=this._decorations[M];if(!!De){var xe=this._validateRangeRelaxedNoAllocations(Z),je=this._buffer.getOffsetAt(xe.startLineNumber,xe.startColumn),ht=this._buffer.getOffsetAt(xe.endLineNumber,xe.endColumn);this._decorationsTree.delete(De),De.reset(this.getVersionId(),je,ht,xe),this._decorationsTree.insert(De)}},L.prototype._changeDecorationOptionsImpl=function(M,Z){var De=this._decorations[M];if(!!De){var xe=!!(De.options.overviewRuler&&De.options.overviewRuler.color),je=!!(Z.overviewRuler&&Z.overviewRuler.color);xe!==je?(this._decorationsTree.delete(De),De.setOptions(Z),this._decorationsTree.insert(De)):De.setOptions(Z)}},L.prototype._deltaDecorationsImpl=function(M,Z,De){for(var xe=this.getVersionId(),je=Z.length,ht=0,ut=De.length,yt=0,It=new Array(ut);ht<je||yt<ut;){var Rt=null;if(ht<je){do Rt=this._decorations[Z[ht++]];while(!Rt&&ht<je);Rt&&this._decorationsTree.delete(Rt)}if(yt<ut){if(!Rt){var Wt=++this._lastDecorationId,Zt=this._instanceId+";"+Wt;Rt=new X(Zt,0,0),this._decorations[Zt]=Rt}var Xt=De[yt],ln=this._validateRangeRelaxedNoAllocations(Xt.range),hn=ur(Xt.options),Tn=this._buffer.getOffsetAt(ln.startLineNumber,ln.startColumn),pn=this._buffer.getOffsetAt(ln.endLineNumber,ln.endColumn);Rt.ownerId=M,Rt.reset(xe,Tn,pn,ln),Rt.setOptions(hn),this._decorationsTree.insert(Rt),It[yt]=Rt.id,yt++}else Rt&&delete this._decorations[Rt.id]}return It},L.prototype.setLineTokens=function(M,Z){if(M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,M-1,this._buffer.getLineLength(M),Z)},L.prototype.setTokens=function(M){if(M.length!==0){for(var Z=[],De=0,xe=M.length;De<xe;De++){var je=M[De];Z.push({fromLineNumber:je.startLineNumber,toLineNumber:je.startLineNumber+je.tokens.length-1});for(var ht=0,ut=je.tokens.length;ht<ut;ht++)this.setLineTokens(je.startLineNumber+ht,je.tokens[ht])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:Z})}},L.prototype.setSemanticTokens=function(M){this._tokens2.set(M),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},L.prototype.tokenizeViewport=function(M,Z){M=Math.max(1,M),Z=Math.min(this._buffer.getLineCount(),Z),this._tokenization.tokenizeViewport(M,Z)},L.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},L.prototype._emitModelTokensChangedEvent=function(M){this._isDisposing||this._onDidChangeTokens.fire(M)},L.prototype.resetTokenization=function(){this._tokenization.reset()},L.prototype.forceTokenization=function(M){if(M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(M)},L.prototype.isCheapToTokenize=function(M){return this._tokenization.isCheapToTokenize(M)},L.prototype.tokenizeIfCheap=function(M){this.isCheapToTokenize(M)&&this.forceTokenization(M)},L.prototype.getLineTokens=function(M){if(M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(M)},L.prototype._getLineTokens=function(M){var Z=this.getLineContent(M),De=this._tokens.getTokens(this._languageIdentifier.id,M-1,Z);return this._tokens2.addSemanticTokens(M,De)},L.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},L.prototype.getModeId=function(){return this._languageIdentifier.language},L.prototype.setMode=function(M){if(this._languageIdentifier.id!==M.id){var Z={oldLanguage:this._languageIdentifier.language,newLanguage:M.language};this._languageIdentifier=M,this._onDidChangeLanguage.fire(Z),this._onDidChangeLanguageConfiguration.fire({})}},L.prototype.getLanguageIdAtPosition=function(M,Z){var De=this.validatePosition(new B.a(M,Z)),xe=this.getLineTokens(De.lineNumber);return xe.getLanguageId(xe.findTokenIndexAtOffset(De.column-1))},L.prototype.getWordAtPosition=function(M){this._assertNotDisposed();var Z=this.validatePosition(M),De=this.getLineContent(Z.lineNumber),xe=this._getLineTokens(Z.lineNumber),je=xe.findTokenIndexAtOffset(Z.column-1),ht=L._findLanguageBoundaries(xe,je),ut=ht[0],yt=ht[1],It=Object(kn.d)(Z.column,Fn.a.getWordDefinition(xe.getLanguageId(je)),De.substring(ut,yt),ut);if(It&&It.startColumn<=M.column&&M.column<=It.endColumn)return It;if(je>0&&ut===Z.column-1){var Rt=L._findLanguageBoundaries(xe,je-1),Wt=Rt[0],Zt=Rt[1],Xt=Object(kn.d)(Z.column,Fn.a.getWordDefinition(xe.getLanguageId(je-1)),De.substring(Wt,Zt),Wt);if(Xt&&Xt.startColumn<=M.column&&M.column<=Xt.endColumn)return Xt}return null},L._findLanguageBoundaries=function(M,Z){for(var De=M.getLanguageId(Z),xe=0,je=Z;je>=0&&M.getLanguageId(je)===De;je--)xe=M.getStartOffset(je);for(var ht=M.getLineContent().length,je=Z,ut=M.getCount();je<ut&&M.getLanguageId(je)===De;je++)ht=M.getEndOffset(je);return[xe,ht]},L.prototype.getWordUntilPosition=function(M){var Z=this.getWordAtPosition(M);return Z?{word:Z.word.substr(0,M.column-Z.startColumn),startColumn:Z.startColumn,endColumn:M.column}:{word:"",startColumn:M.column,endColumn:M.column}},L.prototype.findMatchingBracketUp=function(M,Z){var De=M.toLowerCase(),xe=this.validatePosition(Z),je=this._getLineTokens(xe.lineNumber),ht=je.getLanguageId(je.findTokenIndexAtOffset(xe.column-1)),ut=Fn.a.getBracketsSupport(ht);if(!ut)return null;var yt=ut.textIsBracket[De];return yt?this._findMatchingBracketUp(yt,xe):null},L.prototype.matchBracket=function(M){return this._matchBracket(this.validatePosition(M))},L.prototype._matchBracket=function(M){var Z=M.lineNumber,De=this._getLineTokens(Z),xe=De.getCount(),je=this._buffer.getLineContent(Z),ht=De.findTokenIndexAtOffset(M.column-1);if(ht<0)return null;var ut=Fn.a.getBracketsSupport(De.getLanguageId(ht));if(ut&&!Object(oi.b)(De.getStandardTokenType(ht))){for(var yt=Math.max(0,M.column-1-ut.maxBracketLength),It=ht-1;It>=0;It--){var Rt=De.getEndOffset(It);if(Rt<=yt)break;Object(oi.b)(De.getStandardTokenType(It))&&(yt=Rt)}for(var Wt=Math.min(je.length,M.column-1+ut.maxBracketLength),Zt=null;;){var Xt=ci.a.findNextBracketInRange(ut.forwardRegex,Z,je,yt,Wt);if(!Xt)break;if(Xt.startColumn<=M.column&&M.column<=Xt.endColumn){var ln=je.substring(Xt.startColumn-1,Xt.endColumn-1).toLowerCase(),hn=this._matchFoundBracket(Xt,ut.textIsBracket[ln],ut.textIsOpenBracket[ln]);hn&&(Zt=hn)}yt=Xt.endColumn-1}if(Zt)return Zt}if(ht>0&&De.getStartOffset(ht)===M.column-1){var Tn=ht-1,pn=Fn.a.getBracketsSupport(De.getLanguageId(Tn));if(pn&&!Object(oi.b)(De.getStandardTokenType(Tn))){for(var yt=Math.max(0,M.column-1-pn.maxBracketLength),Wt=Math.min(je.length,M.column-1+pn.maxBracketLength),It=Tn+1;It<xe;It++){var Nn=De.getStartOffset(It);if(Nn>=Wt)break;Object(oi.b)(De.getStandardTokenType(It))&&(Wt=Nn)}var Xt=ci.a.findPrevBracketInRange(pn.reversedRegex,Z,je,yt,Wt);if(Xt&&Xt.startColumn<=M.column&&M.column<=Xt.endColumn){var ln=je.substring(Xt.startColumn-1,Xt.endColumn-1).toLowerCase(),hn=this._matchFoundBracket(Xt,pn.textIsBracket[ln],pn.textIsOpenBracket[ln]);if(hn)return hn}}}return null},L.prototype._matchFoundBracket=function(M,Z,De){if(!Z)return null;if(De){var xe=this._findMatchingBracketDown(Z,M.getEndPosition());if(xe)return[M,xe]}else{var xe=this._findMatchingBracketUp(Z,M.getStartPosition());if(xe)return[M,xe]}return null},L.prototype._findMatchingBracketUp=function(M,Z){for(var De=M.languageIdentifier.id,xe=M.reversedRegex,je=-1,ht=function(Nn,In,Oe,j){for(;;){var ae=ci.a.findPrevBracketInRange(xe,Nn,In,Oe,j);if(!ae)break;var Fe=In.substring(ae.startColumn-1,ae.endColumn-1).toLowerCase();if(M.isOpen(Fe)?je++:M.isClose(Fe)&&je--,je===0)return ae;j=ae.startColumn-1}return null},ut=Z.lineNumber;ut>=1;ut--){var yt=this._getLineTokens(ut),It=yt.getCount(),Rt=this._buffer.getLineContent(ut),Wt=It-1,Zt=Rt.length,Xt=Rt.length;ut===Z.lineNumber&&(Wt=yt.findTokenIndexAtOffset(Z.column-1),Zt=Z.column-1,Xt=Z.column-1);for(var ln=!0;Wt>=0;Wt--){var hn=yt.getLanguageId(Wt)===De&&!Object(oi.b)(yt.getStandardTokenType(Wt));if(hn)ln?Zt=yt.getStartOffset(Wt):(Zt=yt.getStartOffset(Wt),Xt=yt.getEndOffset(Wt));else if(ln&&Zt!==Xt){var Tn=ht(ut,Rt,Zt,Xt);if(Tn)return Tn}ln=hn}if(ln&&Zt!==Xt){var Tn=ht(ut,Rt,Zt,Xt);if(Tn)return Tn}}return null},L.prototype._findMatchingBracketDown=function(M,Z){for(var De=M.languageIdentifier.id,xe=M.forwardRegex,je=1,ht=function(In,Oe,j,ae){for(;;){var Fe=ci.a.findNextBracketInRange(xe,In,Oe,j,ae);if(!Fe)break;var qe=Oe.substring(Fe.startColumn-1,Fe.endColumn-1).toLowerCase();if(M.isOpen(qe)?je++:M.isClose(qe)&&je--,je===0)return Fe;j=Fe.endColumn-1}return null},ut=this.getLineCount(),yt=Z.lineNumber;yt<=ut;yt++){var It=this._getLineTokens(yt),Rt=It.getCount(),Wt=this._buffer.getLineContent(yt),Zt=0,Xt=0,ln=0;yt===Z.lineNumber&&(Zt=It.findTokenIndexAtOffset(Z.column-1),Xt=Z.column-1,ln=Z.column-1);for(var hn=!0;Zt<Rt;Zt++){var Tn=It.getLanguageId(Zt)===De&&!Object(oi.b)(It.getStandardTokenType(Zt));if(Tn)hn||(Xt=It.getStartOffset(Zt)),ln=It.getEndOffset(Zt);else if(hn&&Xt!==ln){var pn=ht(yt,Wt,Xt,ln);if(pn)return pn}hn=Tn}if(hn&&Xt!==ln){var pn=ht(yt,Wt,Xt,ln);if(pn)return pn}}return null},L.prototype.findPrevBracket=function(M){for(var Z=this.validatePosition(M),De=-1,xe=null,je=Z.lineNumber;je>=1;je--){var ht=this._getLineTokens(je),ut=ht.getCount(),yt=this._buffer.getLineContent(je),It=ut-1,Rt=yt.length,Wt=yt.length;if(je===Z.lineNumber){It=ht.findTokenIndexAtOffset(Z.column-1),Rt=Z.column-1,Wt=Z.column-1;var Zt=ht.getLanguageId(It);De!==Zt&&(De=Zt,xe=Fn.a.getBracketsSupport(De))}for(var Xt=!0;It>=0;It--){var Zt=ht.getLanguageId(It);if(De!==Zt){if(xe&&Xt&&Rt!==Wt){var ln=ci.a.findPrevBracketInRange(xe.reversedRegex,je,yt,Rt,Wt);if(ln)return this._toFoundBracket(xe,ln);Xt=!1}De=Zt,xe=Fn.a.getBracketsSupport(De)}var hn=!!xe&&!Object(oi.b)(ht.getStandardTokenType(It));if(hn)Xt?Rt=ht.getStartOffset(It):(Rt=ht.getStartOffset(It),Wt=ht.getEndOffset(It));else if(xe&&Xt&&Rt!==Wt){var ln=ci.a.findPrevBracketInRange(xe.reversedRegex,je,yt,Rt,Wt);if(ln)return this._toFoundBracket(xe,ln)}Xt=hn}if(xe&&Xt&&Rt!==Wt){var ln=ci.a.findPrevBracketInRange(xe.reversedRegex,je,yt,Rt,Wt);if(ln)return this._toFoundBracket(xe,ln)}}return null},L.prototype.findNextBracket=function(M){for(var Z=this.validatePosition(M),De=this.getLineCount(),xe=-1,je=null,ht=Z.lineNumber;ht<=De;ht++){var ut=this._getLineTokens(ht),yt=ut.getCount(),It=this._buffer.getLineContent(ht),Rt=0,Wt=0,Zt=0;if(ht===Z.lineNumber){Rt=ut.findTokenIndexAtOffset(Z.column-1),Wt=Z.column-1,Zt=Z.column-1;var Xt=ut.getLanguageId(Rt);xe!==Xt&&(xe=Xt,je=Fn.a.getBracketsSupport(xe))}for(var ln=!0;Rt<yt;Rt++){var Xt=ut.getLanguageId(Rt);if(xe!==Xt){if(je&&ln&&Wt!==Zt){var hn=ci.a.findNextBracketInRange(je.forwardRegex,ht,It,Wt,Zt);if(hn)return this._toFoundBracket(je,hn);ln=!1}xe=Xt,je=Fn.a.getBracketsSupport(xe)}var Tn=!!je&&!Object(oi.b)(ut.getStandardTokenType(Rt));if(Tn)ln||(Wt=ut.getStartOffset(Rt)),Zt=ut.getEndOffset(Rt);else if(je&&ln&&Wt!==Zt){var hn=ci.a.findNextBracketInRange(je.forwardRegex,ht,It,Wt,Zt);if(hn)return this._toFoundBracket(je,hn)}ln=Tn}if(je&&ln&&Wt!==Zt){var hn=ci.a.findNextBracketInRange(je.forwardRegex,ht,It,Wt,Zt);if(hn)return this._toFoundBracket(je,hn)}}return null},L.prototype.findEnclosingBrackets=function(M,Z){var De=this;Z===void 0&&(Z=1073741824);for(var xe=this.validatePosition(M),je=this.getLineCount(),ht=new Map,ut=[],yt=function(wt,Ge){if(!ht.has(wt)){for(var le=[],Y=0,Ve=Ge?Ge.brackets.length:0;Y<Ve;Y++)le[Y]=0;ht.set(wt,le)}ut=ht.get(wt)},It=function(wt,Ge,le,Y,Ve){for(;;){var at=ci.a.findNextBracketInRange(wt.forwardRegex,Ge,le,Y,Ve);if(!at)break;var et=le.substring(at.startColumn-1,at.endColumn-1).toLowerCase(),J=wt.textIsBracket[et];if(J&&(J.isOpen(et)?ut[J.index]++:J.isClose(et)&&ut[J.index]--,ut[J.index]===-1))return De._matchFoundBracket(at,J,!1);Y=at.endColumn-1}return null},Rt=-1,Wt=null,Zt=Date.now(),Xt=xe.lineNumber;Xt<=je;Xt++){var ln=Date.now()-Zt;if(ln>Z)return null;var hn=this._getLineTokens(Xt),Tn=hn.getCount(),pn=this._buffer.getLineContent(Xt),Nn=0,In=0,Oe=0;if(Xt===xe.lineNumber){Nn=hn.findTokenIndexAtOffset(xe.column-1),In=xe.column-1,Oe=xe.column-1;var j=hn.getLanguageId(Nn);Rt!==j&&(Rt=j,Wt=Fn.a.getBracketsSupport(Rt),yt(Rt,Wt))}for(var ae=!0;Nn<Tn;Nn++){var j=hn.getLanguageId(Nn);if(Rt!==j){if(Wt&&ae&&In!==Oe){var Fe=It(Wt,Xt,pn,In,Oe);if(Fe)return Fe;ae=!1}Rt=j,Wt=Fn.a.getBracketsSupport(Rt),yt(Rt,Wt)}var qe=!!Wt&&!Object(oi.b)(hn.getStandardTokenType(Nn));if(qe)ae||(In=hn.getStartOffset(Nn)),Oe=hn.getEndOffset(Nn);else if(Wt&&ae&&In!==Oe){var Fe=It(Wt,Xt,pn,In,Oe);if(Fe)return Fe}ae=qe}if(Wt&&ae&&In!==Oe){var Fe=It(Wt,Xt,pn,In,Oe);if(Fe)return Fe}}return null},L.prototype._toFoundBracket=function(M,Z){if(!Z)return null;var De=this.getValueInRange(Z);De=De.toLowerCase();var xe=M.textIsBracket[De];return xe?{range:Z,open:xe.open,close:xe.close,isOpen:M.textIsOpenBracket[De]}:null},L.computeIndentLevel=function(M,Z){for(var De=0,xe=0,je=M.length;xe<je;){var ht=M.charCodeAt(xe);if(ht===32)De++;else if(ht===9)De=De-De%Z+Z;else break;xe++}return xe===je?-1:De},L.prototype._computeIndentLevel=function(M){return L.computeIndentLevel(this._buffer.getLineContent(M+1),this._options.tabSize)},L.prototype.getActiveIndentGuide=function(M,Z,De){var xe=this;this._assertNotDisposed();var je=this.getLineCount();if(M<1||M>je)throw new Error("Illegal value for lineNumber");for(var ht=Fn.a.getFoldingRules(this._languageIdentifier.id),ut=Boolean(ht&&ht.offSide),yt=-2,It=-1,Rt=-2,Wt=-1,Zt=function(Ve){if(yt!==-1&&(yt===-2||yt>Ve-1)){yt=-1,It=-1;for(var at=Ve-2;at>=0;at--){var et=xe._computeIndentLevel(at);if(et>=0){yt=at,It=et;break}}}if(Rt===-2){Rt=-1,Wt=-1;for(var at=Ve;at<je;at++){var J=xe._computeIndentLevel(at);if(J>=0){Rt=at,Wt=J;break}}}},Xt=-2,ln=-1,hn=-2,Tn=-1,pn=function(Ve){if(Xt===-2){Xt=-1,ln=-1;for(var at=Ve-2;at>=0;at--){var et=xe._computeIndentLevel(at);if(et>=0){Xt=at,ln=et;break}}}if(hn!==-1&&(hn===-2||hn<Ve-1)){hn=-1,Tn=-1;for(var at=Ve;at<je;at++){var J=xe._computeIndentLevel(at);if(J>=0){hn=at,Tn=J;break}}}},Nn=0,In=!0,Oe=0,j=!0,ae=0,Fe=0;In||j;Fe++){var qe=M-Fe,ct=M+Fe;if(Fe!==0&&(qe<1||qe<Z)&&(In=!1),Fe!==0&&(ct>je||ct>De)&&(j=!1),Fe>5e4&&(In=!1,j=!1),In){var wt=void 0,Ge=this._computeIndentLevel(qe-1);if(Ge>=0?(Rt=qe-1,Wt=Ge,wt=Math.ceil(Ge/this._options.indentSize)):(Zt(qe),wt=this._getIndentLevelForWhitespaceLine(ut,It,Wt)),Fe===0){if(Nn=qe,Oe=ct,ae=wt,ae===0)return{startLineNumber:Nn,endLineNumber:Oe,indent:ae};continue}wt>=ae?Nn=qe:In=!1}if(j){var le=void 0,Ge=this._computeIndentLevel(ct-1);Ge>=0?(Xt=ct-1,ln=Ge,le=Math.ceil(Ge/this._options.indentSize)):(pn(ct),le=this._getIndentLevelForWhitespaceLine(ut,ln,Tn)),le>=ae?Oe=ct:j=!1}}return{startLineNumber:Nn,endLineNumber:Oe,indent:ae}},L.prototype.getLinesIndentGuides=function(M,Z){this._assertNotDisposed();var De=this.getLineCount();if(M<1||M>De)throw new Error("Illegal value for startLineNumber");if(Z<1||Z>De)throw new Error("Illegal value for endLineNumber");for(var xe=Fn.a.getFoldingRules(this._languageIdentifier.id),je=Boolean(xe&&xe.offSide),ht=new Array(Z-M+1),ut=-2,yt=-1,It=-2,Rt=-1,Wt=M;Wt<=Z;Wt++){var Zt=Wt-M,Xt=this._computeIndentLevel(Wt-1);if(Xt>=0){ut=Wt-1,yt=Xt,ht[Zt]=Math.ceil(Xt/this._options.indentSize);continue}if(ut===-2){ut=-1,yt=-1;for(var ln=Wt-2;ln>=0;ln--){var hn=this._computeIndentLevel(ln);if(hn>=0){ut=ln,yt=hn;break}}}if(It!==-1&&(It===-2||It<Wt-1)){It=-1,Rt=-1;for(var ln=Wt;ln<De;ln++){var hn=this._computeIndentLevel(ln);if(hn>=0){It=ln,Rt=hn;break}}}ht[Zt]=this._getIndentLevelForWhitespaceLine(je,yt,Rt)}return ht},L.prototype._getIndentLevelForWhitespaceLine=function(M,Z,De){return Z===-1||De===-1?0:Z<De?1+Math.floor(Z/this._options.indentSize):Z===De?Math.ceil(De/this._options.indentSize):M?Math.ceil(De/this._options.indentSize):1+Math.floor(De/this._options.indentSize)},L.MODEL_SYNC_LIMIT=50*1024*1024,L.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024,L.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3,L.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:V.c.tabSize,indentSize:V.c.indentSize,insertSpaces:V.c.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:V.c.trimAutoWhitespace,largeFileOptimizations:V.c.largeFileOptimizations},L}(ne.a),ki=function(){function $e(){this._decorationsTree0=new Ne,this._decorationsTree1=new Ne}return $e.prototype.intervalSearch=function(L,M,Z,De,xe){var je=this._decorationsTree0.intervalSearch(L,M,Z,De,xe),ht=this._decorationsTree1.intervalSearch(L,M,Z,De,xe);return je.concat(ht)},$e.prototype.search=function(L,M,Z,De){if(Z)return this._decorationsTree1.search(L,M,De);var xe=this._decorationsTree0.search(L,M,De),je=this._decorationsTree1.search(L,M,De);return xe.concat(je)},$e.prototype.collectNodesFromOwner=function(L){var M=this._decorationsTree0.collectNodesFromOwner(L),Z=this._decorationsTree1.collectNodesFromOwner(L);return M.concat(Z)},$e.prototype.collectNodesPostOrder=function(){var L=this._decorationsTree0.collectNodesPostOrder(),M=this._decorationsTree1.collectNodesPostOrder();return L.concat(M)},$e.prototype.insert=function(L){z(L)?this._decorationsTree1.insert(L):this._decorationsTree0.insert(L)},$e.prototype.delete=function(L){z(L)?this._decorationsTree1.delete(L):this._decorationsTree0.delete(L)},$e.prototype.resolveNode=function(L,M){z(L)?this._decorationsTree1.resolveNode(L,M):this._decorationsTree0.resolveNode(L,M)},$e.prototype.acceptReplace=function(L,M,Z,De){this._decorationsTree0.acceptReplace(L,M,Z,De),this._decorationsTree1.acceptReplace(L,M,Z,De)},$e}();function mi($e){return $e.replace(/[^a-z0-9\-_]/gi," ")}var qi=function(){function $e(L){this.color=L.color||"",this.darkColor=L.darkColor||""}return $e}(),or=function($e){Xn(L,$e);function L(M){var Z=$e.call(this,M)||this;return Z._resolvedColor=null,Z.position=typeof M.position=="number"?M.position:S.d.Center,Z}return L.prototype.getColor=function(M){return this._resolvedColor||(M.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,M):this._resolvedColor=this._resolveColor(this.color,M)),this._resolvedColor},L.prototype.invalidateCachedColor=function(){this._resolvedColor=null},L.prototype._resolveColor=function(M,Z){if(typeof M=="string")return M;var De=M?Z.getColor(M.id):null;return De?De.toString():""},L}(qi),Ci=function($e){Xn(L,$e);function L(M){var Z=$e.call(this,M)||this;return Z.position=M.position,Z}return L.prototype.getColor=function(M){return this._resolvedColor||(M.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,M):this._resolvedColor=this._resolveColor(this.color,M)),this._resolvedColor},L.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},L.prototype._resolveColor=function(M,Z){return typeof M=="string"?rr.a.fromHex(M):Z.getColor(M.id)},L}(qi),Di=function(){function $e(L){this.stickiness=L.stickiness||0,this.zIndex=L.zIndex||0,this.className=L.className?mi(L.className):null,this.hoverMessage=Object(Ui.o)(L.hoverMessage),this.glyphMarginHoverMessage=Object(Ui.o)(L.glyphMarginHoverMessage),this.isWholeLine=L.isWholeLine||!1,this.showIfCollapsed=L.showIfCollapsed||!1,this.collapseOnReplaceEdit=L.collapseOnReplaceEdit||!1,this.overviewRuler=L.overviewRuler?new or(L.overviewRuler):null,this.minimap=L.minimap?new Ci(L.minimap):null,this.glyphMarginClassName=L.glyphMarginClassName?mi(L.glyphMarginClassName):null,this.linesDecorationsClassName=L.linesDecorationsClassName?mi(L.linesDecorationsClassName):null,this.marginClassName=L.marginClassName?mi(L.marginClassName):null,this.inlineClassName=L.inlineClassName?mi(L.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=L.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=L.beforeContentClassName?mi(L.beforeContentClassName):null,this.afterContentClassName=L.afterContentClassName?mi(L.afterContentClassName):null}return $e.register=function(L){return new $e(L)},$e.createDynamic=function(L){return new $e(L)},$e}();Di.EMPTY=Di.register({});var Yi=[Di.register({stickiness:0}),Di.register({stickiness:1}),Di.register({stickiness:2}),Di.register({stickiness:3})];function ur($e){return $e instanceof Di?$e:Di.createDynamic($e)}var Ni=function($e){Xn(L,$e);function L(){var M=$e.call(this)||this;return M._actual=M._register(new re.a),M.event=M._actual.event,M._deferredCnt=0,M._shouldFire=!1,M}return L.prototype.beginDeferredEmit=function(){this._deferredCnt++},L.prototype.endDeferredEmit=function(){this._deferredCnt--,this._deferredCnt===0&&this._shouldFire&&(this._shouldFire=!1,this._actual.fire({}))},L.prototype.fire=function(){this._shouldFire=!0},L}(ne.a),sr=function($e){Xn(L,$e);function L(){var M=$e.call(this)||this;return M._fastEmitter=M._register(new re.a),M.fastEvent=M._fastEmitter.event,M._slowEmitter=M._register(new re.a),M.slowEvent=M._slowEmitter.event,M._deferredCnt=0,M._deferredEvent=null,M}return L.prototype.beginDeferredEmit=function(){this._deferredCnt++},L.prototype.endDeferredEmit=function(){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){var M=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(M),this._slowEmitter.fire(M)}},L.prototype.fire=function(M){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(M):this._deferredEvent=M;return}this._fastEmitter.fire(M),this._slowEmitter.fire(M)},L}(ne.a)},tXSY:function(Et,A,o){"use strict";o.r(A),o.d(A,"SnippetController2",function(){return At});var R=o("pmY6"),re=o("N0LK"),ne=o("sswD"),P=o("aokT"),F=o("gCVg"),V=o("wQH0"),B=o("QVNv"),G=o("T8No"),x=o("09fa"),S=o("6OMU"),I=o("dFcq"),K=o("0/Sa"),D=o("tX9W"),T=o("9XeP"),te=o("EWX2"),U=o("Cg/j"),_=o("uACm"),h=o("3/fG"),g=o("MrjW"),p=o("gslv"),v=o("cMvZ"),E=o("bY76"),k="code-workspace";function z(Ke){return Ke instanceof E.a}function oe(Ke){if(Ke.configuration)return{configPath:Ke.configuration,id:Ke.id};if(Ke.folders.length===1)return Ke.folders[0].uri}var fe=o("3rx1"),Se=function(){function Ke(Ye){this._delegates=Ye}return Ke.prototype.resolve=function(Ye){for(var Xe=0,Ze=this._delegates;Xe<Ze.length;Xe++){var We=Ze[Xe],Qe=We.resolve(Ye);if(Qe!==void 0)return Qe}},Ke}(),we=function(){function Ke(Ye,Xe){this._model=Ye,this._selection=Xe}return Ke.prototype.resolve=function(Ye){var Xe=Ye.name;if(Xe==="SELECTION"||Xe==="TM_SELECTED_TEXT"){var Ze=this._model.getValueInRange(this._selection)||void 0;if(Ze&&this._selection.startLineNumber!==this._selection.endLineNumber&&Ye.snippet){var We=this._model.getLineContent(this._selection.startLineNumber),Qe=Object(re.t)(We,0,this._selection.startColumn-1),Ee=Qe;Ye.snippet.walk(function(Ae){return Ae===Ye?!1:(Ae instanceof _.d&&(Ee=Object(re.t)(Ae.value.split(/\r\n|\r|\n/).pop())),!0)});var W=Object(re.c)(Ee,Qe);Ze=Ze.replace(/(\r\n|\r|\n)(.*)/g,function(Ae,me,Me){return""+me+Ee.substr(W)+Me})}return Ze}else{if(Xe==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(Xe==="TM_CURRENT_WORD"){var ee=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return ee&&ee.word||void 0}else{if(Xe==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(Xe==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber)}}},Ke}(),q=function(){function Ke(Ye,Xe){this._labelService=Ye,this._model=Xe}return Ke.prototype.resolve=function(Ye){var Xe=Ye.name;if(Xe==="TM_FILENAME")return g.basename(this._model.uri.fsPath);if(Xe==="TM_FILENAME_BASE"){var Ze=g.basename(this._model.uri.fsPath),We=Ze.lastIndexOf(".");return We<=0?Ze:Ze.slice(0,We)}else{if(Xe==="TM_DIRECTORY"&&this._labelService)return g.dirname(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(Object(p.d)(this._model.uri));if(Xe==="TM_FILEPATH"&&this._labelService)return this._labelService.getUriLabel(this._model.uri)}},Ke}(),X=function(){function Ke(Ye,Xe,Ze,We){this._readClipboardText=Ye,this._selectionIdx=Xe,this._selectionCount=Ze,this._spread=We}return Ke.prototype.resolve=function(Ye){if(Ye.name==="CLIPBOARD"){var Xe=this._readClipboardText();if(!!Xe){if(this._spread){var Ze=Xe.split(/\r\n|\n|\r/).filter(function(We){return!Object(re.x)(We)});if(Ze.length===this._selectionCount)return Ze[this._selectionIdx]}return Xe}}},Ke}(),ce=function(){function Ke(Ye){this._model=Ye}return Ke.prototype.resolve=function(Ye){var Xe=Ye.name,Ze=this._model.getLanguageIdentifier(),We=v.a.getComments(Ze.id);if(!!We){if(Xe==="LINE_COMMENT")return We.lineCommentToken||void 0;if(Xe==="BLOCK_COMMENT_START")return We.blockCommentStartToken||void 0;if(Xe==="BLOCK_COMMENT_END")return We.blockCommentEndToken||void 0}},Ke}(),Ne=function(){function Ke(){}return Ke.prototype.resolve=function(Ye){var Xe=Ye.name;if(Xe==="CURRENT_YEAR")return String(new Date().getFullYear());if(Xe==="CURRENT_YEAR_SHORT")return String(new Date().getFullYear()).slice(-2);if(Xe==="CURRENT_MONTH")return Object(re.F)(new Date().getMonth().valueOf()+1,2);if(Xe==="CURRENT_DATE")return Object(re.F)(new Date().getDate().valueOf(),2);if(Xe==="CURRENT_HOUR")return Object(re.F)(new Date().getHours().valueOf(),2);if(Xe==="CURRENT_MINUTE")return Object(re.F)(new Date().getMinutes().valueOf(),2);if(Xe==="CURRENT_SECOND")return Object(re.F)(new Date().getSeconds().valueOf(),2);if(Xe==="CURRENT_DAY_NAME")return Ke.dayNames[new Date().getDay()];if(Xe==="CURRENT_DAY_NAME_SHORT")return Ke.dayNamesShort[new Date().getDay()];if(Xe==="CURRENT_MONTH_NAME")return Ke.monthNames[new Date().getMonth()];if(Xe==="CURRENT_MONTH_NAME_SHORT")return Ke.monthNamesShort[new Date().getMonth()];if(Xe==="CURRENT_SECONDS_UNIX")return String(Math.floor(Date.now()/1e3))},Ke.dayNames=[h.a("Sunday","Sunday"),h.a("Monday","Monday"),h.a("Tuesday","Tuesday"),h.a("Wednesday","Wednesday"),h.a("Thursday","Thursday"),h.a("Friday","Friday"),h.a("Saturday","Saturday")],Ke.dayNamesShort=[h.a("SundayShort","Sun"),h.a("MondayShort","Mon"),h.a("TuesdayShort","Tue"),h.a("WednesdayShort","Wed"),h.a("ThursdayShort","Thu"),h.a("FridayShort","Fri"),h.a("SaturdayShort","Sat")],Ke.monthNames=[h.a("January","January"),h.a("February","February"),h.a("March","March"),h.a("April","April"),h.a("May","May"),h.a("June","June"),h.a("July","July"),h.a("August","August"),h.a("September","September"),h.a("October","October"),h.a("November","November"),h.a("December","December")],Ke.monthNamesShort=[h.a("JanuaryShort","Jan"),h.a("FebruaryShort","Feb"),h.a("MarchShort","Mar"),h.a("AprilShort","Apr"),h.a("MayShort","May"),h.a("JuneShort","Jun"),h.a("JulyShort","Jul"),h.a("AugustShort","Aug"),h.a("SeptemberShort","Sep"),h.a("OctoberShort","Oct"),h.a("NovemberShort","Nov"),h.a("DecemberShort","Dec")],Ke}(),He=function(){function Ke(Ye){this._workspaceService=Ye}return Ke.prototype.resolve=function(Ye){if(!!this._workspaceService){var Xe=oe(this._workspaceService.getWorkspace());if(!!Xe){if(Ye.name==="WORKSPACE_NAME")return this._resolveWorkspaceName(Xe);if(Ye.name==="WORKSPACE_FOLDER")return this._resoveWorkspacePath(Xe)}}},Ke.prototype._resolveWorkspaceName=function(Ye){if(z(Ye))return g.basename(Ye.path);var Xe=g.basename(Ye.configPath.path);return Object(re.m)(Xe,k)&&(Xe=Xe.substr(0,Xe.length-k.length-1)),Xe},Ke.prototype._resoveWorkspacePath=function(Ye){if(z(Ye))return Object(fe.c)(Ye.fsPath);var Xe=g.basename(Ye.configPath.path),Ze=Ye.configPath.fsPath;return Object(re.m)(Ze,Xe)&&(Ze=Ze.substr(0,Ze.length-Xe.length-1)),Ze?Object(fe.c)(Ze):"/"},Ke}(),_e=function(){function Ke(){}return Ke.prototype.resolve=function(Ye){var Xe=Ye.name;if(Xe==="RANDOM")return Math.random().toString().slice(-6);if(Xe==="RANDOM_HEX")return Math.random().toString(16).slice(-6)},Ke}(),de=o("t9D7"),se=o("MD5Z"),he=o("R8sh");Object(de.e)(function(Ke,Ye){function Xe(Ze){var We=Ke.getColor(Ze);return We?We.toString():"transparent"}Ye.addRule(".monaco-editor .snippet-placeholder { background-color: "+Xe(se.Zb)+"; outline-color: "+Xe(se.ac)+"; }"),Ye.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+Xe(se.Xb)+"; outline-color: "+Xe(se.Yb)+"; }")});var ie=function(){function Ke(Ye,Xe,Ze){this._nestingLevel=1,this._editor=Ye,this._snippet=Xe,this._offset=Ze,this._placeholderGroups=Object(S.o)(Xe.placeholders,_.b.compareByIndex),this._placeholderGroupsIdx=-1}return Ke.prototype.dispose=function(){if(this._placeholderDecorations){var Ye=[];this._placeholderDecorations.forEach(function(Xe){return Ye.push(Xe)}),this._editor.deltaDecorations(Ye,[])}this._placeholderGroups.length=0},Ke.prototype._initDecorations=function(){var Ye=this;if(!this._placeholderDecorations){this._placeholderDecorations=new Map;var Xe=this._editor.getModel();this._editor.changeDecorations(function(Ze){for(var We=0,Qe=Ye._snippet.placeholders;We<Qe.length;We++){var Ee=Qe[We],W=Ye._snippet.offset(Ee),ee=Ye._snippet.fullLen(Ee),Ae=P.a.fromPositions(Xe.getPositionAt(Ye._offset+W),Xe.getPositionAt(Ye._offset+W+ee)),me=Ee.isFinalTabstop?Ke._decor.inactiveFinal:Ke._decor.inactive,Me=Ze.addDecoration(Ae,me);Ye._placeholderDecorations.set(Ee,Me)}})}},Ke.prototype.move=function(Ye){var Xe=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){for(var Ze=[],We=0,Qe=this._placeholderGroups[this._placeholderGroupsIdx];We<Qe.length;We++){var Ee=Qe[We];if(Ee.transform){var W=this._placeholderDecorations.get(Ee),ee=this._editor.getModel().getDecorationRange(W),Ae=this._editor.getModel().getValueInRange(ee);Ze.push(K.a.replaceMove(ee,Ee.transform.resolve(Ae)))}}Ze.length>0&&this._editor.executeEdits("snippet.placeholderTransform",Ze)}var me=!1;Ye===!0&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,me=!0):Ye===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,me=!0);var Me=this._editor.getModel().changeDecorations(function(Re){for(var ge=new Set,nt=[],St=0,xt=Xe._placeholderGroups[Xe._placeholderGroupsIdx];St<xt.length;St++){var Mt=xt[St],zt=Xe._placeholderDecorations.get(Mt),Gt=Xe._editor.getModel().getDecorationRange(zt);nt.push(new F.a(Gt.startLineNumber,Gt.startColumn,Gt.endLineNumber,Gt.endColumn)),me=me&&Xe._hasPlaceholderBeenCollapsed(Mt),Re.changeDecorationOptions(zt,Mt.isFinalTabstop?Ke._decor.activeFinal:Ke._decor.active),ge.add(Mt);for(var on=0,On=Xe._snippet.enclosingPlaceholders(Mt);on<On.length;on++){var yn=On[on],Mn=Xe._placeholderDecorations.get(yn);Re.changeDecorationOptions(Mn,yn.isFinalTabstop?Ke._decor.activeFinal:Ke._decor.active),ge.add(yn)}}return Xe._placeholderDecorations.forEach(function(Ft,gt){ge.has(gt)||Re.changeDecorationOptions(Ft,gt.isFinalTabstop?Ke._decor.inactiveFinal:Ke._decor.inactive)}),nt});return me?this.move(Ye):Me},Ke.prototype._hasPlaceholderBeenCollapsed=function(Ye){for(var Xe=Ye;Xe;){if(Xe instanceof _.b){var Ze=this._placeholderDecorations.get(Xe),We=this._editor.getModel().getDecorationRange(Ze);if(We.isEmpty()&&Xe.toString().length>0)return!0}Xe=Xe.parent}return!1},Object.defineProperty(Ke.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),Ke.prototype.computePossibleSelections=function(){for(var Ye=new Map,Xe=0,Ze=this._placeholderGroups;Xe<Ze.length;Xe++)for(var We=Ze[Xe],Qe=void 0,Ee=0,W=We;Ee<W.length;Ee++){var ee=W[Ee];if(ee.isFinalTabstop)break;Qe||(Qe=[],Ye.set(ee.index,Qe));var Ae=this._placeholderDecorations.get(ee),me=this._editor.getModel().getDecorationRange(Ae);if(!me){Ye.delete(ee.index);break}Qe.push(me)}return Ye},Object.defineProperty(Ke.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),Ke.prototype.merge=function(Ye){var Xe=this,Ze=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(function(We){for(var Qe=0,Ee=Xe._placeholderGroups[Xe._placeholderGroupsIdx];Qe<Ee.length;Qe++){var W=Ee[Qe],ee=Ye.shift();console.assert(!ee._placeholderDecorations);for(var Ae=ee._snippet.placeholderInfo.last.index,me=0,Me=ee._snippet.placeholderInfo.all;me<Me.length;me++){var Re=Me[me];Re.isFinalTabstop?Re.index=W.index+(Ae+1)/Xe._nestingLevel:Re.index=W.index+Re.index/Xe._nestingLevel}Xe._snippet.replace(W,ee._snippet.children);var ge=Xe._placeholderDecorations.get(W);We.removeDecoration(ge),Xe._placeholderDecorations.delete(W);for(var nt=0,St=ee._snippet.placeholders;nt<St.length;nt++){var xt=St[nt],Mt=ee._snippet.offset(xt),zt=ee._snippet.fullLen(xt),Gt=P.a.fromPositions(Ze.getPositionAt(ee._offset+Mt),Ze.getPositionAt(ee._offset+Mt+zt)),on=We.addDecoration(Gt,Ke._decor.inactive);Xe._placeholderDecorations.set(xt,on)}}Xe._placeholderGroups=Object(S.o)(Xe._snippet.placeholders,_.b.compareByIndex)})},Ke._decor={active:D.a.register({stickiness:0,className:"snippet-placeholder"}),inactive:D.a.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:D.a.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:D.a.register({stickiness:1,className:"finish-snippet-placeholder"})},Ke}(),$={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},ve=function(){function Ke(Ye,Xe,Ze){Ze===void 0&&(Ze=$),this._templateMerges=[],this._snippets=[],this._editor=Ye,this._template=Xe,this._options=Ze}return Ke.adjustWhitespace=function(Ye,Xe,Ze,We,Qe){var Ee=Ye.getLineContent(Xe.lineNumber),W=Object(re.t)(Ee,0,Xe.column-1);Ze.walk(function(ee){if(ee instanceof _.d&&!(ee.parent instanceof _.a)){var Ae=ee.value.split(/\r\n|\r|\n/);if(We)for(var me=1;me<Ae.length;me++){var Me=Object(re.t)(Ae[me]);Ae[me]=Ye.normalizeIndentation(W+Me)+Ae[me].substr(Me.length)}if(Qe){var Re=Ae.join(Ye.getEOL());Re!==ee.value&&ee.parent.replace(ee,[new _.d(Re)])}}return!0})},Ke.adjustSelection=function(Ye,Xe,Ze,We){if(Ze!==0||We!==0){var Qe=Xe.positionLineNumber,Ee=Xe.positionColumn,W=Ee-Ze,ee=Ee+We,Ae=Ye.validateRange({startLineNumber:Qe,startColumn:W,endLineNumber:Qe,endColumn:ee});Xe=F.a.createWithDirection(Ae.startLineNumber,Ae.startColumn,Ae.endLineNumber,Ae.endColumn,Xe.getDirection())}return Xe},Ke.createEditsAndSnippets=function(Ye,Xe,Ze,We,Qe,Ee,W){var ee=[],Ae=[];if(!Ye.hasModel())return{edits:ee,snippets:Ae};for(var me=Ye.getModel(),Me=Ye.invokeWithinContext(function(nn){return nn.get(te.a,U.d)}),Re=Ye.invokeWithinContext(function(nn){return new q(nn.get(he.a,U.d),me)}),ge=Ye.invokeWithinContext(function(nn){return nn.get(T.a,U.d)}),nt=function(){return W||ge&&ge.readTextSync()},St=0,xt=me.getValueInRange(Ke.adjustSelection(me,Ye.getSelection(),Ze,0)),Mt=me.getValueInRange(Ke.adjustSelection(me,Ye.getSelection(),0,We)),zt=me.getLineFirstNonWhitespaceColumn(Ye.getSelection().positionLineNumber),Gt=Ye.getSelections().map(function(nn,sn){return{selection:nn,idx:sn}}).sort(function(nn,sn){return P.a.compareRangesUsingStarts(nn.selection,sn.selection)}),on=0,On=Gt;on<On.length;on++){var yn=On[on],Mn=yn.selection,Ft=yn.idx,gt=Ke.adjustSelection(me,Mn,Ze,0),pt=Ke.adjustSelection(me,Mn,0,We);xt!==me.getValueInRange(gt)&&(gt=Mn),Mt!==me.getValueInRange(pt)&&(pt=Mn);var Dt=Mn.setStartPosition(gt.startLineNumber,gt.startColumn).setEndPosition(pt.endLineNumber,pt.endColumn),Ot=new _.c().parse(Xe,!0,Qe),Ht=Dt.getStartPosition();Ke.adjustWhitespace(me,Ht,Ot,Ee||Ft>0&&zt!==me.getLineFirstNonWhitespaceColumn(Mn.positionLineNumber),!0),Ot.resolveVariables(new Se([Re,new X(nt,Ft,Gt.length,Ye.getOption(60)==="spread"),new we(me,Mn),new ce(me),new Ne,new He(Me),new _e]));var Jt=me.getOffsetAt(Ht)+St;St+=Ot.toString().length-me.getValueLengthInRange(Dt),ee[Ft]=K.a.replace(Dt,Ot.toString()),Ae[Ft]=new ie(Ye,Ot,Jt)}return{edits:ee,snippets:Ae}},Ke.prototype.dispose=function(){Object(R.f)(this._snippets)},Ke.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},Ke.prototype.insert=function(){var Ye=this;if(!!this._editor.hasModel()){var Xe=Ke.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),Ze=Xe.edits,We=Xe.snippets;this._snippets=We,this._editor.executeEdits("snippet",Ze,function(Qe){return Ye._snippets[0].hasPlaceholder?Ye._move(!0):Qe.map(function(Ee){return F.a.fromPositions(Ee.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])}},Ke.prototype.merge=function(Ye,Xe){var Ze=this;if(Xe===void 0&&(Xe=$),!!this._editor.hasModel()){this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,Ye]);var We=Ke.createEditsAndSnippets(this._editor,Ye,Xe.overwriteBefore,Xe.overwriteAfter,!0,Xe.adjustWhitespace,Xe.clipboardText),Qe=We.edits,Ee=We.snippets;this._editor.executeEdits("snippet",Qe,function(W){for(var ee=0,Ae=Ze._snippets;ee<Ae.length;ee++){var me=Ae[ee];me.merge(Ee)}return console.assert(Ee.length===0),Ze._snippets[0].hasPlaceholder?Ze._move(void 0):W.map(function(Me){return F.a.fromPositions(Me.range.getEndPosition())})})}},Ke.prototype.next=function(){var Ye=this._move(!0);this._editor.setSelections(Ye),this._editor.revealPositionInCenterIfOutsideViewport(Ye[0].getPosition())},Ke.prototype.prev=function(){var Ye=this._move(!1);this._editor.setSelections(Ye),this._editor.revealPositionInCenterIfOutsideViewport(Ye[0].getPosition())},Ke.prototype._move=function(Ye){for(var Xe=[],Ze=0,We=this._snippets;Ze<We.length;Ze++){var Qe=We[Ze],Ee=Qe.move(Ye);Xe.push.apply(Xe,Ee)}return Xe},Object.defineProperty(Ke.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),Ke.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var Ye=this._editor.getSelections();if(Ye.length<this._snippets.length)return!1;for(var Xe=new Map,Ze=function(Ae){var me=Ae.computePossibleSelections();if(Xe.size===0&&me.forEach(function(Me,Re){Me.sort(P.a.compareRangesUsingStarts);for(var ge=0,nt=Ye;ge<nt.length;ge++){var St=nt[ge];if(Me[0].containsRange(St)){Xe.set(Re,[]);break}}}),Xe.size===0)return{value:!1};Xe.forEach(function(Me,Re){Me.push.apply(Me,me.get(Re))})},We=0,Qe=this._snippets;We<Qe.length;We++){var Ee=Qe[We],W=Ze(Ee);if(typeof W=="object")return W.value}return Ye.sort(P.a.compareRangesUsingStarts),Xe.forEach(function(ee,Ae){if(ee.length!==Ye.length){Xe.delete(Ae);return}ee.sort(P.a.compareRangesUsingStarts);for(var me=0;me<ee.length;me++)if(!ee[me].containsRange(Ye[me])){Xe.delete(Ae);return}}),Xe.size>0},Ke}(),ye=function(){return ye=Object.assign||function(Ke){for(var Ye,Xe=1,Ze=arguments.length;Xe<Ze;Xe++){Ye=arguments[Xe];for(var We in Ye)Object.prototype.hasOwnProperty.call(Ye,We)&&(Ke[We]=Ye[We])}return Ke},ye.apply(this,arguments)},Ue=function(Ke,Ye,Xe,Ze){var We=arguments.length,Qe=We<3?Ye:Ze===null?Ze=Object.getOwnPropertyDescriptor(Ye,Xe):Ze,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Qe=Reflect.decorate(Ke,Ye,Xe,Ze);else for(var W=Ke.length-1;W>=0;W--)(Ee=Ke[W])&&(Qe=(We<3?Ee(Qe):We>3?Ee(Ye,Xe,Qe):Ee(Ye,Xe))||Qe);return We>3&&Qe&&Object.defineProperty(Ye,Xe,Qe),Qe},tt=function(Ke,Ye){return function(Xe,Ze){Ye(Xe,Ze,Ke)}},_t={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},At=function(){function Ke(Ye,Xe,Ze){this._editor=Ye,this._logService=Xe,this._snippetListener=new R.b,this._modelVersionId=-1,this._inSnippet=Ke.InSnippetMode.bindTo(Ze),this._hasNextTabstop=Ke.HasNextTabstop.bindTo(Ze),this._hasPrevTabstop=Ke.HasPrevTabstop.bindTo(Ze)}return Ke.get=function(Ye){return Ye.getContribution(Ke.ID)},Ke.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(R.f)(this._session),this._snippetListener.dispose()},Ke.prototype.insert=function(Ye,Xe){try{this._doInsert(Ye,typeof Xe=="undefined"?_t:ye(ye({},_t),Xe))}catch(Ze){this.cancel(),this._logService.error(Ze),this._logService.error("snippet_error"),this._logService.error("insert_template=",Ye),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},Ke.prototype._doInsert=function(Ye,Xe){var Ze=this;!this._editor.hasModel()||(this._snippetListener.clear(),Xe.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(Ye,Xe):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new ve(this._editor,Ye,Xe),this._session.insert()),Xe.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(function(We){return We.isFlush&&Ze.cancel()})),this._snippetListener.add(this._editor.onDidChangeModel(function(){return Ze.cancel()})),this._snippetListener.add(this._editor.onDidChangeCursorSelection(function(){return Ze._updateState()})))},Ke.prototype._updateState=function(){if(!(!this._session||!this._editor.hasModel())){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}},Ke.prototype._handleChoice=function(){var Ye=this;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}var Xe=this._session.choice;if(!Xe){this._currentChoice=void 0;return}if(this._currentChoice!==Xe){this._currentChoice=Xe,this._editor.setSelections(this._editor.getSelections().map(function(We){return F.a.fromPositions(We.getStartPosition())}));var Ze=Xe.options[0];Object(B.f)(this._editor,Xe.options.map(function(We,Qe){return{kind:13,label:We.value,insertText:We.value,sortText:Object(re.J)("a",Qe+1),range:P.a.fromPositions(Ye._editor.getPosition(),Ye._editor.getPosition().delta(0,Ze.value.length))}}))}},Ke.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},Ke.prototype.cancel=function(Ye){Ye===void 0&&(Ye=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(R.f)(this._session),this._session=void 0,this._modelVersionId=-1,Ye&&this._editor.setSelections([this._editor.getSelection()])},Ke.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},Ke.prototype.next=function(){this._session&&this._session.next(),this._updateState()},Ke.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},Ke.ID="snippetController2",Ke.InSnippetMode=new G.d("inSnippetMode",!1),Ke.HasNextTabstop=new G.d("hasNextTabstop",!1),Ke.HasPrevTabstop=new G.d("hasPrevTabstop",!1),Ke=Ue([tt(1,x.a),tt(2,G.c)],Ke),Ke}();Object(ne.h)(At.ID,At);var Yt=ne.c.bindToContribution(At.get);Object(ne.g)(new Yt({id:"jumpToNextSnippetPlaceholder",precondition:G.a.and(At.InSnippetMode,At.HasNextTabstop),handler:function(Ye){return Ye.next()},kbOpts:{weight:100+30,kbExpr:V.a.editorTextFocus,primary:2}})),Object(ne.g)(new Yt({id:"jumpToPrevSnippetPlaceholder",precondition:G.a.and(At.InSnippetMode,At.HasPrevTabstop),handler:function(Ye){return Ye.prev()},kbOpts:{weight:100+30,kbExpr:V.a.editorTextFocus,primary:1024|2}})),Object(ne.g)(new Yt({id:"leaveSnippet",precondition:At.InSnippetMode,handler:function(Ye){return Ye.cancel(!0)},kbOpts:{weight:100+30,kbExpr:V.a.editorTextFocus,primary:9,secondary:[1024|9]}})),Object(ne.g)(new Yt({id:"acceptSnippet",precondition:At.InSnippetMode,handler:function(Ye){return Ye.finish()}}))},tYmi:function(Et,A,o){"use strict";o.d(A,"b",function(){return ne}),o.d(A,"a",function(){return F});var R=o("bY76"),re=o("MNsG"),ne;(function(V){V.inMemory="inmemory",V.vscode="vscode",V.internal="private",V.walkThrough="walkThrough",V.walkThroughSnippet="walkThroughSnippet",V.http="http",V.https="https",V.file="file",V.mailto="mailto",V.untitled="untitled",V.data="data",V.command="command",V.vscodeRemote="vscode-remote",V.vscodeRemoteResource="vscode-remote-resource",V.userData="vscode-userdata"})(ne||(ne={}));var P=function(){function V(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}return V.prototype.setPreferredWebSchema=function(B){this._preferredWebSchema=B},V.prototype.rewrite=function(B){if(this._delegate)return this._delegate(B);var G=B.authority,x=this._hosts[G];x&&x.indexOf(":")!==-1&&(x="["+x+"]");var S=this._ports[G],I=this._connectionTokens[G],K="path="+encodeURIComponent(B.path);return typeof I=="string"&&(K+="&tkn="+encodeURIComponent(I)),R.a.from({scheme:re.g?this._preferredWebSchema:ne.vscodeRemoteResource,authority:x+":"+S,path:"/vscode-remote-resource",query:K})},V}(),F=new P},twdY:function(Et,A,o){"use strict";o.d(A,"q",function(){return D}),o.d(A,"x",function(){return T}),o.d(A,"C",function(){return te}),o.d(A,"B",function(){return U}),o.d(A,"D",function(){return g}),o.d(A,"m",function(){return v}),o.d(A,"A",function(){return k}),o.d(A,"t",function(){return z}),o.d(A,"u",function(){return oe}),o.d(A,"d",function(){return fe}),o.d(A,"w",function(){return Se}),o.d(A,"o",function(){return we}),o.d(A,"l",function(){return q}),o.d(A,"h",function(){return X}),o.d(A,"f",function(){return ce}),o.d(A,"e",function(){return Ne}),o.d(A,"p",function(){return He}),o.d(A,"z",function(){return _e}),o.d(A,"b",function(){return de}),o.d(A,"a",function(){return se}),o.d(A,"g",function(){return he}),o.d(A,"i",function(){return ie}),o.d(A,"s",function(){return $}),o.d(A,"r",function(){return ve}),o.d(A,"c",function(){return ye}),o.d(A,"v",function(){return Ue}),o.d(A,"n",function(){return tt}),o.d(A,"k",function(){return _t}),o.d(A,"j",function(){return At}),o.d(A,"y",function(){return Yt});var R=o("746U"),re=o("bY76"),ne=o("aokT"),P=o("MI8n"),F=o("pmY6"),V=o("l2gE");function B(Ke,Ye,Xe,Ze){if(Array.isArray(Ke)){for(var We=0,Qe=0,Ee=Ke;Qe<Ee.length;Qe++){var W=Ee[Qe],ee=B(W,Ye,Xe,Ze);if(ee===10)return ee;ee>We&&(We=ee)}return We}else{if(typeof Ke=="string")return Ze?Ke==="*"?5:Ke===Xe?10:0:0;if(Ke){var Ae=Ke.language,me=Ke.pattern,Me=Ke.scheme,Re=Ke.hasAccessToAllModels;if(!Ze&&!Re)return 0;var We=0;if(Me)if(Me===Ye.scheme)We=10;else if(Me==="*")We=5;else return 0;if(Ae)if(Ae===Xe)We=10;else if(Ae==="*")We=Math.max(We,5);else return 0;if(me)if(me===Ye.fsPath||Object(V.a)(me,Ye.fsPath))We=10;else return 0;return We}else return 0}}var G=o("G2kB");function x(Ke){return typeof Ke=="string"?!1:Array.isArray(Ke)?Ke.every(x):!!Ke.exclusive}var S=function(){function Ke(){this._clock=0,this._entries=[],this._onDidChange=new P.a}return Object.defineProperty(Ke.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Ke.prototype.register=function(Ye,Xe){var Ze=this,We={selector:Ye,provider:Xe,_score:-1,_time:this._clock++};return this._entries.push(We),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(F.h)(function(){if(We){var Qe=Ze._entries.indexOf(We);Qe>=0&&(Ze._entries.splice(Qe,1),Ze._lastCandidate=void 0,Ze._onDidChange.fire(Ze._entries.length),We=void 0)}})},Ke.prototype.has=function(Ye){return this.all(Ye).length>0},Ke.prototype.all=function(Ye){if(!Ye)return[];this._updateScores(Ye);for(var Xe=[],Ze=0,We=this._entries;Ze<We.length;Ze++){var Qe=We[Ze];Qe._score>0&&Xe.push(Qe.provider)}return Xe},Ke.prototype.ordered=function(Ye){var Xe=[];return this._orderedForEach(Ye,function(Ze){return Xe.push(Ze.provider)}),Xe},Ke.prototype.orderedGroups=function(Ye){var Xe=[],Ze,We;return this._orderedForEach(Ye,function(Qe){Ze&&We===Qe._score?Ze.push(Qe.provider):(We=Qe._score,Ze=[Qe.provider],Xe.push(Ze))}),Xe},Ke.prototype._orderedForEach=function(Ye,Xe){if(!!Ye){this._updateScores(Ye);for(var Ze=0,We=this._entries;Ze<We.length;Ze++){var Qe=We[Ze];Qe._score>0&&Xe(Qe)}}},Ke.prototype._updateScores=function(Ye){var Xe={uri:Ye.uri.toString(),language:Ye.getLanguageIdentifier().language};if(!(this._lastCandidate&&this._lastCandidate.language===Xe.language&&this._lastCandidate.uri===Xe.uri)){this._lastCandidate=Xe;for(var Ze=0,We=this._entries;Ze<We.length;Ze++){var Qe=We[Ze];if(Qe._score=B(Qe.selector,Ye.uri,Ye.getLanguageIdentifier().language,Object(G.b)(Ye)),x(Qe.selector)&&Qe._score>0){for(var Ee=0,W=this._entries;Ee<W.length;Ee++){var ee=W[Ee];ee._score=0}Qe._score=1e3;break}}this._entries.sort(Ke._compareByScoreAndTime)}},Ke._compareByScoreAndTime=function(Ye,Xe){return Ye._score<Xe._score?1:Ye._score>Xe._score?-1:Ye._time<Xe._time?1:Ye._time>Xe._time?-1:0},Ke}(),I=o("QDVR"),K=function(){function Ke(){this._map=new Map,this._promises=new Map,this._onDidChange=new P.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}return Ke.prototype.fire=function(Ye){this._onDidChange.fire({changedLanguages:Ye,changedColorMap:!1})},Ke.prototype.register=function(Ye,Xe){var Ze=this;return this._map.set(Ye,Xe),this.fire([Ye]),Object(F.h)(function(){Ze._map.get(Ye)===Xe&&(Ze._map.delete(Ye),Ze.fire([Ye]))})},Ke.prototype.registerPromise=function(Ye,Xe){var Ze=this,We=null,Qe=!1;return this._promises.set(Ye,Xe.then(function(Ee){Ze._promises.delete(Ye),!(Qe||!Ee)&&(We=Ze.register(Ye,Ee))})),Object(F.h)(function(){Qe=!0,We&&We.dispose()})},Ke.prototype.getPromise=function(Ye){var Xe=this,Ze=this.get(Ye);if(Ze)return Promise.resolve(Ze);var We=this._promises.get(Ye);return We?We.then(function(Qe){return Xe.get(Ye)}):null},Ke.prototype.get=function(Ye){return Object(R.o)(this._map.get(Ye))},Ke.prototype.setColorMap=function(Ye){this._colorMap=Ye,this._onDidChange.fire({changedLanguages:Object(I.d)(this._map),changedColorMap:!0})},Ke.prototype.getColorMap=function(){return this._colorMap},Ke.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},Ke}(),D=function(){function Ke(Ye,Xe){this.language=Ye,this.id=Xe}return Ke}(),T=function(){function Ke(){}return Ke.getLanguageId=function(Ye){return(Ye&255)>>>0},Ke.getTokenType=function(Ye){return(Ye&1792)>>>8},Ke.getFontStyle=function(Ye){return(Ye&14336)>>>11},Ke.getForeground=function(Ye){return(Ye&8372224)>>>14},Ke.getBackground=function(Ye){return(Ye&4286578688)>>>23},Ke.getClassNameFromMetadata=function(Ye){var Xe=this.getForeground(Ye),Ze="mtk"+Xe,We=this.getFontStyle(Ye);return We&1&&(Ze+=" mtki"),We&2&&(Ze+=" mtkb"),We&4&&(Ze+=" mtku"),Ze},Ke.getInlineStyleFromMetadata=function(Ye,Xe){var Ze=this.getForeground(Ye),We=this.getFontStyle(Ye),Qe="color: "+Xe[Ze]+";";return We&1&&(Qe+="font-style: italic;"),We&2&&(Qe+="font-weight: bold;"),We&4&&(Qe+="text-decoration: underline;"),Qe},Ke}(),te=function(){var Ke=Object.create(null);return Ke[0]="method",Ke[1]="function",Ke[2]="constructor",Ke[3]="field",Ke[4]="variable",Ke[5]="class",Ke[6]="struct",Ke[7]="interface",Ke[8]="module",Ke[9]="property",Ke[10]="event",Ke[11]="operator",Ke[12]="unit",Ke[13]="value",Ke[14]="constant",Ke[15]="enum",Ke[16]="enum-member",Ke[17]="keyword",Ke[25]="snippet",Ke[18]="text",Ke[19]="color",Ke[20]="file",Ke[21]="reference",Ke[22]="customcolor",Ke[23]="folder",Ke[24]="type-parameter",function(Ye){return Ke[Ye]||"property"}}(),U=function(){var Ke=Object.create(null);return Ke.method=0,Ke.function=1,Ke.constructor=2,Ke.field=3,Ke.variable=4,Ke.class=5,Ke.struct=6,Ke.interface=7,Ke.module=8,Ke.property=9,Ke.event=10,Ke.operator=11,Ke.unit=12,Ke.value=13,Ke.constant=14,Ke.enum=15,Ke["enum-member"]=16,Ke.enumMember=16,Ke.keyword=17,Ke.snippet=25,Ke.text=18,Ke.color=19,Ke.file=20,Ke.reference=21,Ke.customcolor=22,Ke.folder=23,Ke["type-parameter"]=24,Ke.typeParameter=24,function(Ye,Xe){var Ze=Ke[Ye];return typeof Ze=="undefined"&&!Xe&&(Ze=9),Ze}}(),_;(function(Ke){Ke[Ke.Invoke=1]="Invoke",Ke[Ke.TriggerCharacter=2]="TriggerCharacter",Ke[Ke.ContentChange=3]="ContentChange"})(_||(_={}));var h;(function(Ke){Ke[Ke.Text=0]="Text",Ke[Ke.Read=1]="Read",Ke[Ke.Write=2]="Write"})(h||(h={}));function g(Ke){return Ke&&re.a.isUri(Ke.uri)&&ne.a.isIRange(Ke.range)&&(ne.a.isIRange(Ke.originSelectionRange)||ne.a.isIRange(Ke.targetSelectionRange))}var p;(function(Ke){var Ye=new Map;Ye.set("file",0),Ye.set("module",1),Ye.set("namespace",2),Ye.set("package",3),Ye.set("class",4),Ye.set("method",5),Ye.set("property",6),Ye.set("field",7),Ye.set("constructor",8),Ye.set("enum",9),Ye.set("interface",10),Ye.set("function",11),Ye.set("variable",12),Ye.set("constant",13),Ye.set("string",14),Ye.set("number",15),Ye.set("boolean",16),Ye.set("array",17),Ye.set("object",18),Ye.set("key",19),Ye.set("null",20),Ye.set("enum-member",21),Ye.set("struct",22),Ye.set("event",23),Ye.set("operator",24),Ye.set("type-parameter",25);var Xe=new Map;Xe.set(0,"file"),Xe.set(1,"module"),Xe.set(2,"namespace"),Xe.set(3,"package"),Xe.set(4,"class"),Xe.set(5,"method"),Xe.set(6,"property"),Xe.set(7,"field"),Xe.set(8,"constructor"),Xe.set(9,"enum"),Xe.set(10,"interface"),Xe.set(11,"function"),Xe.set(12,"variable"),Xe.set(13,"constant"),Xe.set(14,"string"),Xe.set(15,"number"),Xe.set(16,"boolean"),Xe.set(17,"array"),Xe.set(18,"object"),Xe.set(19,"key"),Xe.set(20,"null"),Xe.set(21,"enum-member"),Xe.set(22,"struct"),Xe.set(23,"event"),Xe.set(24,"operator"),Xe.set(25,"type-parameter");function Ze(Ee){return Ye.get(Ee)}Ke.fromString=Ze;function We(Ee){return Xe.get(Ee)}Ke.toString=We;function Qe(Ee,W){return"codicon "+(W?"inline":"block")+" codicon-symbol-"+(Xe.get(Ee)||"property")}Ke.toCssClassName=Qe})(p||(p={}));var v=function(){function Ke(Ye){this.value=Ye}return Ke.Comment=new Ke("comment"),Ke.Imports=new Ke("imports"),Ke.Region=new Ke("region"),Ke}(),E;(function(Ke){function Ye(Xe){return Object(R.i)(Xe)&&(Boolean(Xe.newUri)||Boolean(Xe.oldUri))}Ke.is=Ye})(E||(E={}));var k;(function(Ke){function Ye(Xe){return Object(R.i)(Xe)&&re.a.isUri(Xe.resource)&&Object(R.i)(Xe.edit)}Ke.is=Ye})(k||(k={}));var z=new S,oe=new S,fe=new S,Se=new S,we=new S,q=new S,X=new S,ce=new S,Ne=new S,He=new S,_e=new S,de=new S,se=new S,he=new S,ie=new S,$=new S,ve=new S,ye=new S,Ue=new S,tt=new S,_t=new S,At=new S,Yt=new K},uACm:function(Et,A,o){"use strict";o.d(A,"d",function(){return V}),o.d(A,"b",function(){return G}),o.d(A,"a",function(){return x}),o.d(A,"c",function(){return te});var R=function(){var U=function(h,g){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var E in v)v.hasOwnProperty(E)&&(p[E]=v[E])},U(h,g)};return function(_,h){U(_,h);function g(){this.constructor=_}_.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),re=function(){for(var U=0,_=0,h=arguments.length;_<h;_++)U+=arguments[_].length;for(var g=Array(U),p=0,_=0;_<h;_++)for(var v=arguments[_],E=0,k=v.length;E<k;E++,p++)g[p]=v[E];return g},ne,P=function(){function U(){this.value="",this.pos=0}return U.isDigitCharacter=function(_){return _>=48&&_<=57},U.isVariableCharacter=function(_){return _===95||_>=97&&_<=122||_>=65&&_<=90},U.prototype.text=function(_){this.value=_,this.pos=0},U.prototype.tokenText=function(_){return this.value.substr(_.pos,_.len)},U.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var _=this.pos,h=0,g=this.value.charCodeAt(_),p;if(p=U._table[g],typeof p=="number")return this.pos+=1,{type:p,pos:_,len:1};if(U.isDigitCharacter(g)){p=8;do h+=1,g=this.value.charCodeAt(_+h);while(U.isDigitCharacter(g));return this.pos+=h,{type:p,pos:_,len:h}}if(U.isVariableCharacter(g)){p=9;do g=this.value.charCodeAt(_+ ++h);while(U.isVariableCharacter(g)||U.isDigitCharacter(g));return this.pos+=h,{type:p,pos:_,len:h}}p=10;do h+=1,g=this.value.charCodeAt(_+h);while(!isNaN(g)&&typeof U._table[g]=="undefined"&&!U.isDigitCharacter(g)&&!U.isVariableCharacter(g));return this.pos+=h,{type:p,pos:_,len:h}},U._table=(ne={},ne[36]=0,ne[58]=1,ne[44]=2,ne[123]=3,ne[125]=4,ne[92]=5,ne[47]=6,ne[124]=7,ne[43]=11,ne[45]=12,ne[63]=13,ne),U}(),F=function(){function U(){this._children=[]}return U.prototype.appendChild=function(_){return _ instanceof V&&this._children[this._children.length-1]instanceof V?this._children[this._children.length-1].value+=_.value:(_.parent=this,this._children.push(_)),this},U.prototype.replace=function(_,h){var g=_.parent,p=g.children.indexOf(_),v=g.children.slice(0);v.splice.apply(v,re([p,1],h)),g._children=v,function E(k,z){for(var oe=0,fe=k;oe<fe.length;oe++){var Se=fe[oe];Se.parent=z,E(Se.children,Se)}}(h,g)},Object.defineProperty(U.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"snippet",{get:function(){for(var h=this;;){if(!h)return;if(h instanceof T)return h;h=h.parent}},enumerable:!0,configurable:!0}),U.prototype.toString=function(){return this.children.reduce(function(_,h){return _+h.toString()},"")},U.prototype.len=function(){return 0},U}(),V=function(U){R(_,U);function _(h){var g=U.call(this)||this;return g.value=h,g}return _.prototype.toString=function(){return this.value},_.prototype.len=function(){return this.value.length},_.prototype.clone=function(){return new _(this.value)},_}(F),B=function(U){R(_,U);function _(){return U!==null&&U.apply(this,arguments)||this}return _}(F),G=function(U){R(_,U);function _(h){var g=U.call(this)||this;return g.index=h,g}return _.compareByIndex=function(h,g){return h.index===g.index?0:h.isFinalTabstop?1:g.isFinalTabstop||h.index<g.index?-1:h.index>g.index?1:0},Object.defineProperty(_.prototype,"isFinalTabstop",{get:function(){return this.index===0},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"choice",{get:function(){return this._children.length===1&&this._children[0]instanceof x?this._children[0]:void 0},enumerable:!0,configurable:!0}),_.prototype.clone=function(){var h=new _(this.index);return this.transform&&(h.transform=this.transform.clone()),h._children=this.children.map(function(g){return g.clone()}),h},_}(B),x=function(U){R(_,U);function _(){var h=U!==null&&U.apply(this,arguments)||this;return h.options=[],h}return _.prototype.appendChild=function(h){return h instanceof V&&(h.parent=this,this.options.push(h)),this},_.prototype.toString=function(){return this.options[0].value},_.prototype.len=function(){return this.options[0].len()},_.prototype.clone=function(){var h=new _;return this.options.forEach(h.appendChild,h),h},_}(F),S=function(U){R(_,U);function _(){var h=U!==null&&U.apply(this,arguments)||this;return h.regexp=new RegExp(""),h}return _.prototype.resolve=function(h){var g=this,p=!1,v=h.replace(this.regexp,function(){return p=!0,g._replace(Array.prototype.slice.call(arguments,0,-2))});return!p&&this._children.some(function(E){return E instanceof I&&Boolean(E.elseValue)})&&(v=this._replace([])),v},_.prototype._replace=function(h){for(var g="",p=0,v=this._children;p<v.length;p++){var E=v[p];if(E instanceof I){var k=h[E.index]||"";k=E.resolve(k),g+=k}else g+=E.toString()}return g},_.prototype.toString=function(){return""},_.prototype.clone=function(){var h=new _;return h.regexp=new RegExp(this.regexp.source,""+(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),h._children=this.children.map(function(g){return g.clone()}),h},_}(F),I=function(U){R(_,U);function _(h,g,p,v){var E=U.call(this)||this;return E.index=h,E.shorthandName=g,E.ifValue=p,E.elseValue=v,E}return _.prototype.resolve=function(h){return this.shorthandName==="upcase"?h?h.toLocaleUpperCase():"":this.shorthandName==="downcase"?h?h.toLocaleLowerCase():"":this.shorthandName==="capitalize"?h?h[0].toLocaleUpperCase()+h.substr(1):"":this.shorthandName==="pascalcase"?h?this._toPascalCase(h):"":Boolean(h)&&typeof this.ifValue=="string"?this.ifValue:!Boolean(h)&&typeof this.elseValue=="string"?this.elseValue:h||""},_.prototype._toPascalCase=function(h){var g=h.match(/[a-z]+/gi);return g?g.map(function(p){return p.charAt(0).toUpperCase()+p.substr(1).toLowerCase()}).join(""):h},_.prototype.clone=function(){var h=new _(this.index,this.shorthandName,this.ifValue,this.elseValue);return h},_}(F),K=function(U){R(_,U);function _(h){var g=U.call(this)||this;return g.name=h,g}return _.prototype.resolve=function(h){var g=h.resolve(this);return this.transform&&(g=this.transform.resolve(g||"")),g!==void 0?(this._children=[new V(g)],!0):!1},_.prototype.clone=function(){var h=new _(this.name);return this.transform&&(h.transform=this.transform.clone()),h._children=this.children.map(function(g){return g.clone()}),h},_}(B);function D(U,_){for(var h=re(U);h.length>0;){var g=h.shift(),p=_(g);if(!p)break;h.unshift.apply(h,g.children)}}var T=function(U){R(_,U);function _(){return U!==null&&U.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var g=[],p;this.walk(function(v){return v instanceof G&&(g.push(v),p=!p||p.index<v.index?v:p),!0}),this._placeholders={all:g,last:p}}return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"placeholders",{get:function(){var g=this.placeholderInfo.all;return g},enumerable:!0,configurable:!0}),_.prototype.offset=function(h){var g=0,p=!1;return this.walk(function(v){return v===h?(p=!0,!1):(g+=v.len(),!0)}),p?g:-1},_.prototype.fullLen=function(h){var g=0;return D([h],function(p){return g+=p.len(),!0}),g},_.prototype.enclosingPlaceholders=function(h){for(var g=[],p=h.parent;p;)p instanceof G&&g.push(p),p=p.parent;return g},_.prototype.resolveVariables=function(h){var g=this;return this.walk(function(p){return p instanceof K&&p.resolve(h)&&(g._placeholders=void 0),!0}),this},_.prototype.appendChild=function(h){return this._placeholders=void 0,U.prototype.appendChild.call(this,h)},_.prototype.replace=function(h,g){return this._placeholders=void 0,U.prototype.replace.call(this,h,g)},_.prototype.clone=function(){var h=new _;return this._children=this.children.map(function(g){return g.clone()}),h},_.prototype.walk=function(h){D(this.children,h)},_}(F),te=function(){function U(){this._scanner=new P,this._token={type:14,pos:0,len:0}}return U.escape=function(_){return _.replace(/\$|}|\\/g,"\\$&")},U.prototype.parse=function(_,h,g){this._scanner.text(_),this._token=this._scanner.next();for(var p=new T;this._parse(p););var v=new Map,E=[],k=0;p.walk(function(Ne){return Ne instanceof G&&(k+=1,Ne.isFinalTabstop?v.set(0,void 0):!v.has(Ne.index)&&Ne.children.length>0?v.set(Ne.index,Ne.children):E.push(Ne)),!0});for(var z=0,oe=E;z<oe.length;z++){var fe=oe[z],Se=v.get(fe.index);if(Se){var we=new G(fe.index);we.transform=fe.transform;for(var q=0,X=Se;q<X.length;q++){var ce=X[q];we.appendChild(ce.clone())}p.replace(fe,[we])}}return g||(g=k>0&&h),!v.has(0)&&g&&p.appendChild(new G(0)),p},U.prototype._accept=function(_,h){if(_===void 0||this._token.type===_){var g=h?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),g}return!1},U.prototype._backTo=function(_){return this._scanner.pos=_.pos+_.len,this._token=_,!1},U.prototype._until=function(_){for(var h=this._token;this._token.type!==_;){if(this._token.type===14)return!1;if(this._token.type===5){var g=this._scanner.next();if(g.type!==0&&g.type!==4&&g.type!==5)return!1}this._token=this._scanner.next()}var p=this._scanner.value.substring(h.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),p},U.prototype._parse=function(_){return this._parseEscaped(_)||this._parseTabstopOrVariableName(_)||this._parseComplexPlaceholder(_)||this._parseComplexVariable(_)||this._parseAnything(_)},U.prototype._parseEscaped=function(_){var h;return(h=this._accept(5,!0))?(h=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||h,_.appendChild(new V(h)),!0):!1},U.prototype._parseTabstopOrVariableName=function(_){var h,g=this._token,p=this._accept(0)&&(h=this._accept(9,!0)||this._accept(8,!0));return p?(_.appendChild(/^\d+$/.test(h)?new G(Number(h)):new K(h)),!0):this._backTo(g)},U.prototype._parseComplexPlaceholder=function(_){var h,g=this._token,p=this._accept(0)&&this._accept(3)&&(h=this._accept(8,!0));if(!p)return this._backTo(g);var v=new G(Number(h));if(this._accept(1))for(;;){if(this._accept(4))return _.appendChild(v),!0;if(!this._parse(v))return _.appendChild(new V("${"+h+":")),v.children.forEach(_.appendChild,_),!0}else if(v.index>0&&this._accept(7))for(var E=new x;;){if(this._parseChoiceElement(E)){if(this._accept(2))continue;if(this._accept(7)&&(v.appendChild(E),this._accept(4)))return _.appendChild(v),!0}return this._backTo(g),!1}else return this._accept(6)?this._parseTransform(v)?(_.appendChild(v),!0):(this._backTo(g),!1):this._accept(4)?(_.appendChild(v),!0):this._backTo(g)},U.prototype._parseChoiceElement=function(_){for(var h=this._token,g=[];!(this._token.type===2||this._token.type===7);){var p=void 0;if((p=this._accept(5,!0))?p=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||p:p=this._accept(void 0,!0),!p)return this._backTo(h),!1;g.push(p)}return g.length===0?(this._backTo(h),!1):(_.appendChild(new V(g.join(""))),!0)},U.prototype._parseComplexVariable=function(_){var h,g=this._token,p=this._accept(0)&&this._accept(3)&&(h=this._accept(9,!0));if(!p)return this._backTo(g);var v=new K(h);if(this._accept(1))for(;;){if(this._accept(4))return _.appendChild(v),!0;if(!this._parse(v))return _.appendChild(new V("${"+h+":")),v.children.forEach(_.appendChild,_),!0}else return this._accept(6)?this._parseTransform(v)?(_.appendChild(v),!0):(this._backTo(g),!1):this._accept(4)?(_.appendChild(v),!0):this._backTo(g)},U.prototype._parseTransform=function(_){for(var h=new S,g="",p="";!this._accept(6);){var v=void 0;if(v=this._accept(5,!0)){v=this._accept(6,!0)||v,g+=v;continue}if(this._token.type!==14){g+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){var v=void 0;if(v=this._accept(5,!0)){v=this._accept(5,!0)||this._accept(6,!0)||v,h.appendChild(new V(v));continue}if(!(this._parseFormatString(h)||this._parseAnything(h)))return!1}for(;!this._accept(4);){if(this._token.type!==14){p+=this._accept(void 0,!0);continue}return!1}try{h.regexp=new RegExp(g,p)}catch(E){return!1}return _.transform=h,!0},U.prototype._parseFormatString=function(_){var h=this._token;if(!this._accept(0))return!1;var g=!1;this._accept(3)&&(g=!0);var p=this._accept(8,!0);if(p)if(g){if(this._accept(4))return _.appendChild(new I(Number(p))),!0;if(!this._accept(1))return this._backTo(h),!1}else return _.appendChild(new I(Number(p))),!0;else return this._backTo(h),!1;if(this._accept(6)){var v=this._accept(9,!0);return!v||!this._accept(4)?(this._backTo(h),!1):(_.appendChild(new I(Number(p),v)),!0)}else if(this._accept(11)){var E=this._until(4);if(E)return _.appendChild(new I(Number(p),void 0,E,void 0)),!0}else if(this._accept(12)){var k=this._until(4);if(k)return _.appendChild(new I(Number(p),void 0,void 0,k)),!0}else if(this._accept(13)){var E=this._until(1);if(E){var k=this._until(4);if(k)return _.appendChild(new I(Number(p),void 0,E,k)),!0}}else{var k=this._until(4);if(k)return _.appendChild(new I(Number(p),void 0,void 0,k)),!0}return this._backTo(h),!1},U.prototype._parseAnything=function(_){return this._token.type!==14?(_.appendChild(new V(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1},U}()},uAX5:function(Et,A,o){},uDWl:function(Et,A,o){"use strict";o.d(A,"a",function(){return I});var R=o("D3Dy"),re=o("/kV6"),ne=o("MNsG"),P=new Array(230),F=new Array(112);(function(){for(var K=0;K<F.length;K++)F[K]=-1;function D(T,te){P[T]=te,F[te]=T}D(3,7),D(8,1),D(9,2),D(13,3),D(16,4),D(17,5),D(18,6),D(19,7),D(20,8),D(27,9),D(32,10),D(33,11),D(34,12),D(35,13),D(36,14),D(37,15),D(38,16),D(39,17),D(40,18),D(45,19),D(46,20),D(48,21),D(49,22),D(50,23),D(51,24),D(52,25),D(53,26),D(54,27),D(55,28),D(56,29),D(57,30),D(65,31),D(66,32),D(67,33),D(68,34),D(69,35),D(70,36),D(71,37),D(72,38),D(73,39),D(74,40),D(75,41),D(76,42),D(77,43),D(78,44),D(79,45),D(80,46),D(81,47),D(82,48),D(83,49),D(84,50),D(85,51),D(86,52),D(87,53),D(88,54),D(89,55),D(90,56),D(93,58),D(96,93),D(97,94),D(98,95),D(99,96),D(100,97),D(101,98),D(102,99),D(103,100),D(104,101),D(105,102),D(106,103),D(107,104),D(108,105),D(109,106),D(110,107),D(111,108),D(112,59),D(113,60),D(114,61),D(115,62),D(116,63),D(117,64),D(118,65),D(119,66),D(120,67),D(121,68),D(122,69),D(123,70),D(124,71),D(125,72),D(126,73),D(127,74),D(128,75),D(129,76),D(130,77),D(144,78),D(145,79),D(186,80),D(187,81),D(188,82),D(189,83),D(190,84),D(191,85),D(192,86),D(193,110),D(194,111),D(219,87),D(220,88),D(221,89),D(222,90),D(223,91),D(226,92),D(229,109),R.i?D(91,57):R.h?(D(59,80),D(107,81),D(109,83),ne.e&&D(224,57)):R.m&&(D(91,57),ne.e?D(93,57):D(92,57))})();function V(K){if(K.charCode){var D=String.fromCharCode(K.charCode).toUpperCase();return re.b.fromString(D)}return P[K.keyCode]||0}var B=ne.e?256:2048,G=512,x=1024,S=ne.e?2048:256,I=function(){function K(D){this._standardKeyboardEventBrand=!0;var T=D;this.browserEvent=T,this.target=T.target,this.ctrlKey=T.ctrlKey,this.shiftKey=T.shiftKey,this.altKey=T.altKey,this.metaKey=T.metaKey,this.keyCode=V(T),this.code=T.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 K.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},K.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},K.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},K.prototype.equals=function(D){return this._asKeybinding===D},K.prototype._computeKeybinding=function(){var D=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(D=this.keyCode);var T=0;return this.ctrlKey&&(T|=B),this.altKey&&(T|=G),this.shiftKey&&(T|=x),this.metaKey&&(T|=S),T|=D,T},K.prototype._computeRuntimeKeybinding=function(){var D=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(D=this.keyCode),new re.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,D)},K}()},uWgD:function(Et,A,o){},ufhN:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return o.e(247).then(o.bind(null,"rMIR"))}})},ujyM:function(Et,A,o){},undH:function(Et,A,o){},vATl:function(Et,A,o){"use strict";o.d(A,"a",function(){return T}),o.d(A,"b",function(){return te}),o.d(A,"d",function(){return U}),o.d(A,"c",function(){return _});var R=o("N0LK"),re=o("JQT/"),ne=o("pmY6"),P=o("sswD"),F=o("T8No"),V=o("24hK"),B=o("Cg/j"),G=o("9fML"),x=function(){var h=function(p,v){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,k){E.__proto__=k}||function(E,k){for(var z in k)k.hasOwnProperty(z)&&(E[z]=k[z])},h(p,v)};return function(g,p){h(g,p);function v(){this.constructor=g}g.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}}(),S=Object(B.c)("IEditorCancelService"),I=new F.d("cancellableOperation",!1);Object(G.b)(S,function(){function h(){this._tokens=new WeakMap}return h.prototype.add=function(g,p){var v=this._tokens.get(g);v||(v=g.invokeWithinContext(function(k){var z=I.bindTo(k.get(F.c)),oe=new V.a;return{key:z,tokens:oe}}),this._tokens.set(g,v));var E;return v.key.set(!0),E=v.tokens.push(p),function(){E&&(E(),v.key.set(!v.tokens.isEmpty()),E=void 0)}},h.prototype.cancel=function(g){var p=this._tokens.get(g);if(!!p){var v=p.tokens.pop();v&&(v.cancel(),p.key.set(!p.tokens.isEmpty()))}},h}(),!0);var K=function(h){x(g,h);function g(p,v){var E=h.call(this,v)||this;return E.editor=p,E._unregister=p.invokeWithinContext(function(k){return k.get(S).add(p,E)}),E}return g.prototype.dispose=function(){this._unregister(),h.prototype.dispose.call(this)},g}(re.b);Object(P.g)(new(function(h){x(g,h);function g(){return h.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:I})||this}return g.prototype.runEditorCommand=function(p,v){p.get(S).cancel(v)},g}(P.c)));var D=function(){var h=function(p,v){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,k){E.__proto__=k}||function(E,k){for(var z in k)k.hasOwnProperty(z)&&(E[z]=k[z])},h(p,v)};return function(g,p){h(g,p);function v(){this.constructor=g}g.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}}(),T=function(){function h(g,p){if(this.flags=p,(this.flags&1)!=0){var v=g.getModel();this.modelVersionId=v?R.r("{0}#{1}",v.uri.toString(),v.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!=0?this.position=g.getPosition():this.position=null,(this.flags&2)!=0?this.selection=g.getSelection():this.selection=null,(this.flags&8)!=0?(this.scrollLeft=g.getScrollLeft(),this.scrollTop=g.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return h.prototype._equals=function(g){if(!(g instanceof h))return!1;var p=g;return!(this.modelVersionId!==p.modelVersionId||this.scrollLeft!==p.scrollLeft||this.scrollTop!==p.scrollTop||!this.position&&p.position||this.position&&!p.position||this.position&&p.position&&!this.position.equals(p.position)||!this.selection&&p.selection||this.selection&&!p.selection||this.selection&&p.selection&&!this.selection.equalsRange(p.selection))},h.prototype.validate=function(g){return this._equals(new h(g,this.flags))},h}(),te=function(h){D(g,h);function g(p,v,E){var k=h.call(this,p,E)||this;return k.editor=p,k._listener=new ne.b,v&4&&k._listener.add(p.onDidChangeCursorPosition(function(z){return k.cancel()})),v&2&&k._listener.add(p.onDidChangeCursorSelection(function(z){return k.cancel()})),v&8&&k._listener.add(p.onDidScrollChange(function(z){return k.cancel()})),v&1&&(k._listener.add(p.onDidChangeModel(function(z){return k.cancel()})),k._listener.add(p.onDidChangeModelContent(function(z){return k.cancel()}))),k}return g.prototype.dispose=function(){this._listener.dispose(),h.prototype.dispose.call(this)},g}(K),U=function(h){D(g,h);function g(p,v){var E=h.call(this,v)||this;return E._listener=p.onDidChangeContent(function(){return E.cancel()}),E}return g.prototype.dispose=function(){this._listener.dispose(),h.prototype.dispose.call(this)},g}(re.b),_=function(){function h(g,p){this._visiblePosition=g,this._visiblePositionScrollDelta=p}return h.capture=function(g){var p=null,v=0;if(g.getScrollTop()!==0){var E=g.getVisibleRanges();if(E.length>0){p=E[0].getStartPosition();var k=g.getTopForPosition(p.lineNumber,p.column);v=g.getScrollTop()-k}}return new h(p,v)},h.prototype.restore=function(g){if(this._visiblePosition){var p=g.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);g.setScrollTop(p+this._visiblePositionScrollDelta)}},h}()},vl9R:function(Et,A,o){"use strict";o.d(A,"b",function(){return P}),o.d(A,"a",function(){return F});var R=Object.prototype.hasOwnProperty;function re(V){var B=[];for(var G in V)R.call(V,G)&&B.push(V[G]);return B}function ne(V){for(var B in V)if(R.call(V,B))return V[B]}function P(V,B){var G=function(K){if(R.call(V,K)){var D=B({key:K,value:V[K]},function(){delete V[K]});if(D===!1)return{value:void 0}}};for(var x in V){var S=G(x);if(typeof S=="object")return S.value}}var F=function(){function V(){this.map=new Map}return V.prototype.add=function(B,G){var x=this.map.get(B);x||(x=new Set,this.map.set(B,x)),x.add(G)},V.prototype.delete=function(B,G){var x=this.map.get(B);!x||(x.delete(G),x.size===0&&this.map.delete(B))},V.prototype.forEach=function(B,G){var x=this.map.get(B);!x||x.forEach(G)},V}()},"w29/":function(Et,A,o){"use strict";o.r(A);var R=o("5DEy"),re=o.n(R),ne=o("3/fG"),P=o("D3Dy"),F=o("MNsG"),V=o("5TxY"),B=o("sswD"),G=o("Vxe3"),x=o("wQH0"),S=function(){var v=function(k,z){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,fe){oe.__proto__=fe}||function(oe,fe){for(var Se in fe)fe.hasOwnProperty(Se)&&(oe[Se]=fe[Se])},v(k,z)};return function(E,k){v(E,k);function z(){this.constructor=E}E.prototype=k===null?Object.create(k):(z.prototype=k.prototype,new z)}}(),I="9_cutcopypaste",K=F.f||document.queryCommandSupported("cut"),D=F.f||document.queryCommandSupported("copy"),T=D&&!P.f,te=F.f||!P.d&&document.queryCommandSupported("paste"),U=function(v){S(E,v);function E(k,z){var oe=v.call(this,z)||this;return oe.browserCommand=k,oe}return E.prototype.runCommand=function(k,z){var oe=k.get(G.a).getFocusedCodeEditor();if(oe&&oe.hasTextFocus()){oe.trigger("keyboard",this.id,z);return}document.execCommand(this.browserCommand)},E.prototype.run=function(k,z){z.focus(),document.execCommand(this.browserCommand)},E}(B.b),_=function(v){S(E,v);function E(){var k=this,z={kbExpr:x.a.textInputFocus,primary:2048|54,win:{primary:2048|54,secondary:[1024|20]},weight:100};return F.f||(z=void 0),k=v.call(this,"cut",{id:"editor.action.clipboardCutAction",label:ne.a("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:x.a.writable,kbOpts:z,contextMenuOpts:{group:I,order:1},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this,k}return E.prototype.run=function(k,z){if(!!z.hasModel()){var oe=z.getOption(25);!oe&&z.getSelection().isEmpty()||v.prototype.run.call(this,k,z)}},E}(U),h=function(v){S(E,v);function E(){var k=this,z={kbExpr:x.a.textInputFocus,primary:2048|33,win:{primary:2048|33,secondary:[2048|19]},weight:100};return F.f||(z=void 0),k=v.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:ne.a("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:z,contextMenuOpts:{group:I,order:2},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this,k}return E.prototype.run=function(k,z){if(!!z.hasModel()){var oe=z.getOption(25);!oe&&z.getSelection().isEmpty()||v.prototype.run.call(this,k,z)}},E}(U),g=function(v){S(E,v);function E(){var k=this,z={kbExpr:x.a.textInputFocus,primary:2048|52,win:{primary:2048|52,secondary:[1024|19]},weight:100};return F.f||(z=void 0),k=v.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:ne.a("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:x.a.writable,kbOpts:z,contextMenuOpts:{group:I,order:3},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this,k}return E}(U),p=function(v){S(E,v);function E(){return v.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:ne.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(k,z){if(!!z.hasModel()){var oe=z.getOption(25);!oe&&z.getSelection().isEmpty()||(V.a.forceCopyWithSyntaxHighlighting=!0,v.prototype.run.call(this,k,z),V.a.forceCopyWithSyntaxHighlighting=!1)}},E}(U);K&&Object(B.f)(_),D&&Object(B.f)(h),te&&Object(B.f)(g),T&&Object(B.f)(p)},w9QG:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return o.e(246).then(o.bind(null,"Czvm"))}})},wQH0:function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("T8No"),re;(function(ne){ne.editorSimpleInput=new R.d("editorSimpleInput",!1),ne.editorTextFocus=new R.d("editorTextFocus",!1),ne.focus=new R.d("editorFocus",!1),ne.textInputFocus=new R.d("textInputFocus",!1),ne.readOnly=new R.d("editorReadonly",!1),ne.writable=ne.readOnly.toNegated(),ne.hasNonEmptySelection=new R.d("editorHasSelection",!1),ne.hasOnlyEmptySelection=ne.hasNonEmptySelection.toNegated(),ne.hasMultipleSelections=new R.d("editorHasMultipleSelections",!1),ne.hasSingleSelection=ne.hasMultipleSelections.toNegated(),ne.tabMovesFocus=new R.d("editorTabMovesFocus",!1),ne.tabDoesNotMoveFocus=ne.tabMovesFocus.toNegated(),ne.isInEmbeddedEditor=new R.d("isInEmbeddedEditor",!1),ne.canUndo=new R.d("canUndo",!1),ne.canRedo=new R.d("canRedo",!1),ne.languageId=new R.d("editorLangId",""),ne.hasCompletionItemProvider=new R.d("editorHasCompletionItemProvider",!1),ne.hasCodeActionsProvider=new R.d("editorHasCodeActionsProvider",!1),ne.hasCodeLensProvider=new R.d("editorHasCodeLensProvider",!1),ne.hasDefinitionProvider=new R.d("editorHasDefinitionProvider",!1),ne.hasDeclarationProvider=new R.d("editorHasDeclarationProvider",!1),ne.hasImplementationProvider=new R.d("editorHasImplementationProvider",!1),ne.hasTypeDefinitionProvider=new R.d("editorHasTypeDefinitionProvider",!1),ne.hasHoverProvider=new R.d("editorHasHoverProvider",!1),ne.hasDocumentHighlightProvider=new R.d("editorHasDocumentHighlightProvider",!1),ne.hasDocumentSymbolProvider=new R.d("editorHasDocumentSymbolProvider",!1),ne.hasReferenceProvider=new R.d("editorHasReferenceProvider",!1),ne.hasRenameProvider=new R.d("editorHasRenameProvider",!1),ne.hasSignatureHelpProvider=new R.d("editorHasSignatureHelpProvider",!1),ne.hasDocumentFormattingProvider=new R.d("editorHasDocumentFormattingProvider",!1),ne.hasDocumentSelectionFormattingProvider=new R.d("editorHasDocumentSelectionFormattingProvider",!1),ne.hasMultipleDocumentFormattingProvider=new R.d("editorHasMultipleDocumentFormattingProvider",!1),ne.hasMultipleDocumentSelectionFormattingProvider=new R.d("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(re||(re={}))},woZy:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return o.e(231).then(o.bind(null,"I+Au"))}})},wxcJ:function(Et,A,o){"use strict";(function(R){o.d(A,"a",function(){return P}),o.d(A,"b",function(){return F}),o.d(A,"c",function(){return V});var re=o("MNsG"),ne=typeof R=="undefined"?{cwd:function(){return"/"},env:Object.create(null),get platform(){return re.h?"win32":re.e?"darwin":"linux"},nextTick:function(G){return Object(re.i)(G)}}:R,P=ne.cwd,F=ne.env,V=ne.platform}).call(this,o("Q2Ig"))},"x/UI":function(Et,A,o){"use strict";o.d(A,"a",function(){return re});var R=o("Cg/j"),re=Object(R.c)("IWorkspaceEditService")},xONI:function(Et,A,o){"use strict";o.d(A,"a",function(){return S});var R=o("KgQ1"),re=o.n(R),ne=o("EffR"),P=o("7lZ/"),F=o("pmY6"),V=o("nuFA"),B=o("qj0h"),G=function(){var T=function(U,_){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var p in g)g.hasOwnProperty(p)&&(h[p]=g[p])},T(U,_)};return function(te,U){T(te,U);function _(){this.constructor=te}te.prototype=U===null?Object.create(U):(_.prototype=U.prototype,new _)}}(),x=function(){function T(te){this._element=te}return Object.defineProperty(T.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"textContent",{set:function(U){this.disposed||U===this._textContent||(this._textContent=U,this._element.textContent=U)},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"className",{set:function(U){this.disposed||U===this._className||(this._className=U,this._element.className=U)},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"title",{set:function(U){this.disposed||U===this._title||(this._title=U,this._title?this._element.title=U:this._element.removeAttribute("title"))},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"empty",{set:function(U){this.disposed||U===this._empty||(this._empty=U,this._element.style.marginLeft=U?"0":"")},enumerable:!0,configurable:!0}),T.prototype.dispose=function(){this.disposed=!0},T}(),S=function(T){G(te,T);function te(U,_){var h=T.call(this)||this;h.domNode=h._register(new x(ne.p(U,ne.a(".monaco-icon-label"))));var g=ne.p(h.domNode.element,ne.a(".monaco-icon-label-container")),p=ne.p(g,ne.a("span.monaco-icon-name-container"));return h.descriptionContainer=h._register(new x(ne.p(g,ne.a("span.monaco-icon-description-container")))),(_==null?void 0:_.supportHighlights)?h.nameNode=new D(p,!!_.supportCodicons):h.nameNode=new I(p),(_==null?void 0:_.supportDescriptionHighlights)?h.descriptionNodeFactory=function(){return new P.a(ne.p(h.descriptionContainer.element,ne.a("span.label-description")),!!_.supportCodicons)}:h.descriptionNodeFactory=function(){return h._register(new x(ne.p(h.descriptionContainer.element,ne.a("span.label-description"))))},h}return te.prototype.setLabel=function(U,_,h){var g=["monaco-icon-label"];h&&(h.extraClasses&&g.push.apply(g,h.extraClasses),h.italic&&g.push("italic")),this.domNode.className=g.join(" "),this.domNode.title=(h==null?void 0:h.title)||"",this.nameNode.setLabel(U,h),(_||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof P.a?(this.descriptionNode.set(_||"",h?h.descriptionMatches:void 0),(h==null?void 0:h.descriptionTitle)?this.descriptionNode.element.title=h.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=_||"",this.descriptionNode.title=(h==null?void 0:h.descriptionTitle)||"",this.descriptionNode.empty=!_))},te}(F.a),I=function(){function T(te){this.container=te,this.label=void 0,this.singleLabel=void 0}return T.prototype.setLabel=function(te,U){if(!(this.label===te&&Object(B.e)(this.options,U)))if(this.label=te,this.options=U,typeof te=="string")this.singleLabel||(this.container.innerHTML="",ne.O(this.container,"multiple"),this.singleLabel=ne.p(this.container,ne.a("a.label-name",{id:U==null?void 0:U.domId}))),this.singleLabel.textContent=te;else{this.container.innerHTML="",ne.e(this.container,"multiple"),this.singleLabel=void 0;for(var _=0;_<te.length;_++){var h=te[_],g=(U==null?void 0:U.domId)&&(U==null?void 0:U.domId)+"_"+_;ne.p(this.container,ne.a("a.label-name",{id:g,"data-icon-label-count":te.length,"data-icon-label-index":_},h)),_<te.length-1&&ne.p(this.container,ne.a("span.label-separator",void 0,(U==null?void 0:U.separator)||"/"))}}},T}();function K(T,te,U){if(!!U){var _=0;return T.map(function(h){var g={start:_,end:_+h.length},p=U.map(function(v){return V.a.intersect(g,v)}).filter(function(v){return!V.a.isEmpty(v)}).map(function(v){var E=v.start,k=v.end;return{start:E-_,end:k-_}});return _=g.end+te.length,p})}}var D=function(){function T(te,U){this.container=te,this.supportCodicons=U,this.label=void 0,this.singleLabel=void 0}return T.prototype.setLabel=function(te,U){if(!(this.label===te&&Object(B.e)(this.options,U)))if(this.label=te,this.options=U,typeof te=="string")this.singleLabel||(this.container.innerHTML="",ne.O(this.container,"multiple"),this.singleLabel=new P.a(ne.p(this.container,ne.a("a.label-name",{id:U==null?void 0:U.domId})),this.supportCodicons)),this.singleLabel.set(te,U==null?void 0:U.matches,U==null?void 0:U.title,U==null?void 0:U.labelEscapeNewLines);else{this.container.innerHTML="",ne.e(this.container,"multiple"),this.singleLabel=void 0;for(var _=(U==null?void 0:U.separator)||"/",h=K(te,_,U==null?void 0:U.matches),g=0;g<te.length;g++){var p=te[g],v=h?h[g]:void 0,E=(U==null?void 0:U.domId)&&(U==null?void 0:U.domId)+"_"+g,k=ne.a("a.label-name",{id:E,"data-icon-label-count":te.length,"data-icon-label-index":g}),z=new P.a(ne.p(this.container,k),this.supportCodicons);z.set(p,v,U==null?void 0:U.title,U==null?void 0:U.labelEscapeNewLines),g<te.length-1&&ne.p(k,ne.a("span.label-separator",void 0,_))}}},T}()},xYNL:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return o.e(221).then(o.bind(null,"tGOS"))}})},xmOD:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return o.e(241).then(o.bind(null,"fB/Z"))}})},y3CF:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return o.e(228).then(o.bind(null,"YdqL"))}})},yEoX:function(Et,A,o){},yI7H:function(Et,A,o){},yKqg:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return o.e(237).then(o.bind(null,"LdT9"))}})},yqFB:function(Et,A,o){},z3hU:function(Et,A,o){"use strict";o.r(A),o.d(A,"LanguageServiceDefaultsImpl",function(){return P});var R=o("M/lh"),re="3.7.5",ne=monaco.Emitter,P=function(){function U(_,h){this._onDidChange=new ne,this._onDidExtraLibsChange=new ne,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(_),this.setDiagnosticsOptions(h),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(U.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),U.prototype.getExtraLibs=function(){return this._extraLibs},U.prototype.addExtraLib=function(_,h){var g=this,p;if(typeof h=="undefined"?p="ts:extralib-"+Math.random().toString(36).substring(2,15):p=h,this._extraLibs[p]&&this._extraLibs[p].content===_)return{dispose:function(){}};var v=1;return this._extraLibs[p]&&(v=this._extraLibs[p].version+1),this._extraLibs[p]={content:_,version:v},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var k=g._extraLibs[p];!k||k.version===v&&(delete g._extraLibs[p],g._fireOnDidExtraLibsChangeSoon())}}},U.prototype.setExtraLibs=function(_){if(this._extraLibs=Object.create(null),_&&_.length>0)for(var h=0,g=_;h<g.length;h++){var p=g[h],v=p.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),E=p.content;this._extraLibs[v]={content:E,version:1}}this._fireOnDidExtraLibsChangeSoon()},U.prototype._fireOnDidExtraLibsChangeSoon=function(){var _=this;this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=setTimeout(function(){_._onDidExtraLibsChangeTimeout=-1,_._onDidExtraLibsChange.fire(void 0)},0))},U.prototype.getCompilerOptions=function(){return this._compilerOptions},U.prototype.setCompilerOptions=function(_){this._compilerOptions=_||Object.create(null),this._onDidChange.fire(void 0)},U.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},U.prototype.setDiagnosticsOptions=function(_){this._diagnosticsOptions=_||Object.create(null),this._onDidChange.fire(void 0)},U.prototype.setMaximumWorkerIdleTime=function(_){},U.prototype.setEagerModelSync=function(_){this._eagerModelSync=_},U.prototype.getEagerModelSync=function(){return this._eagerModelSync},U}(),F;(function(U){U[U.None=0]="None",U[U.CommonJS=1]="CommonJS",U[U.AMD=2]="AMD",U[U.UMD=3]="UMD",U[U.System=4]="System",U[U.ES2015=5]="ES2015",U[U.ESNext=99]="ESNext"})(F||(F={}));var V;(function(U){U[U.None=0]="None",U[U.Preserve=1]="Preserve",U[U.React=2]="React",U[U.ReactNative=3]="ReactNative"})(V||(V={}));var B;(function(U){U[U.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",U[U.LineFeed=1]="LineFeed"})(B||(B={}));var G;(function(U){U[U.ES3=0]="ES3",U[U.ES5=1]="ES5",U[U.ES2015=2]="ES2015",U[U.ES2016=3]="ES2016",U[U.ES2017=4]="ES2017",U[U.ES2018=5]="ES2018",U[U.ES2019=6]="ES2019",U[U.ES2020=7]="ES2020",U[U.ESNext=99]="ESNext",U[U.JSON=100]="JSON",U[U.Latest=99]="Latest"})(G||(G={}));var x;(function(U){U[U.Classic=1]="Classic",U[U.NodeJs=2]="NodeJs"})(x||(x={}));var S=new P({allowNonTsExtensions:!0,target:G.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),I=new P({allowNonTsExtensions:!0,allowJs:!0,target:G.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function K(){return te().then(function(U){return U.getTypeScriptWorker()})}function D(){return te().then(function(U){return U.getJavaScriptWorker()})}function T(){return{ModuleKind:F,JsxEmit:V,NewLineKind:B,ScriptTarget:G,ModuleResolutionKind:x,typescriptVersion:re,typescriptDefaults:S,javascriptDefaults:I,getTypeScriptWorker:K,getJavaScriptWorker:D}}monaco.languages.typescript=T();function te(){return o.e(255).then(o.bind(null,"4yiN"))}monaco.languages.onLanguage("typescript",function(){return te().then(function(U){return U.setupTypeScript(S)})}),monaco.languages.onLanguage("javascript",function(){return te().then(function(U){return U.setupJavaScript(I)})})},zQEy:function(Et,A,o){"use strict";o.r(A);var R=o("+hIS");Object(R.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return o.e(213).then(o.bind(null,"On+f"))}})},zrhQ:function(Et,A,o){"use strict";o.d(A,"c",function(){return re}),o.d(A,"b",function(){return P}),o.d(A,"a",function(){return F});function R(V,B){var G=Math.pow(10,B);return Math.round(V*G)/G}var re=function(){function V(B,G,x,S){S===void 0&&(S=1),this.r=Math.min(255,Math.max(0,B))|0,this.g=Math.min(255,Math.max(0,G))|0,this.b=Math.min(255,Math.max(0,x))|0,this.a=R(Math.max(Math.min(1,S),0),3)}return V.equals=function(B,G){return B.r===G.r&&B.g===G.g&&B.b===G.b&&B.a===G.a},V}(),ne=function(){function V(B,G,x,S){this.h=Math.max(Math.min(360,B),0)|0,this.s=R(Math.max(Math.min(1,G),0),3),this.l=R(Math.max(Math.min(1,x),0),3),this.a=R(Math.max(Math.min(1,S),0),3)}return V.equals=function(B,G){return B.h===G.h&&B.s===G.s&&B.l===G.l&&B.a===G.a},V.fromRGBA=function(B){var G=B.r/255,x=B.g/255,S=B.b/255,I=B.a,K=Math.max(G,x,S),D=Math.min(G,x,S),T=0,te=0,U=(D+K)/2,_=K-D;if(_>0){switch(te=Math.min(U<=.5?_/(2*U):_/(2-2*U),1),K){case G:T=(x-S)/_+(x<S?6:0);break;case x:T=(S-G)/_+2;break;case S:T=(G-x)/_+4;break}T*=60,T=Math.round(T)}return new V(T,te,U,I)},V._hue2rgb=function(B,G,x){return x<0&&(x+=1),x>1&&(x-=1),x<1/6?B+(G-B)*6*x:x<1/2?G:x<2/3?B+(G-B)*(2/3-x)*6:B},V.toRGBA=function(B){var G=B.h/360,x=B.s,S=B.l,I=B.a,K,D,T;if(x===0)K=D=T=S;else{var te=S<.5?S*(1+x):S+x-S*x,U=2*S-te;K=V._hue2rgb(U,te,G+1/3),D=V._hue2rgb(U,te,G),T=V._hue2rgb(U,te,G-1/3)}return new re(Math.round(K*255),Math.round(D*255),Math.round(T*255),I)},V}(),P=function(){function V(B,G,x,S){this.h=Math.max(Math.min(360,B),0)|0,this.s=R(Math.max(Math.min(1,G),0),3),this.v=R(Math.max(Math.min(1,x),0),3),this.a=R(Math.max(Math.min(1,S),0),3)}return V.equals=function(B,G){return B.h===G.h&&B.s===G.s&&B.v===G.v&&B.a===G.a},V.fromRGBA=function(B){var G=B.r/255,x=B.g/255,S=B.b/255,I=Math.max(G,x,S),K=Math.min(G,x,S),D=I-K,T=I===0?0:D/I,te;return D===0?te=0:I===G?te=((x-S)/D%6+6)%6:I===x?te=(S-G)/D+2:te=(G-x)/D+4,new V(Math.round(te*60),T,I,B.a)},V.toRGBA=function(B){var G=B.h,x=B.s,S=B.v,I=B.a,K=S*x,D=K*(1-Math.abs(G/60%2-1)),T=S-K,te=[0,0,0],U=te[0],_=te[1],h=te[2];return G<60?(U=K,_=D):G<120?(U=D,_=K):G<180?(_=K,h=D):G<240?(_=D,h=K):G<300?(U=D,h=K):G<360&&(U=K,h=D),U=Math.round((U+T)*255),_=Math.round((_+T)*255),h=Math.round((h+T)*255),new re(U,_,h,I)},V}(),F=function(){function V(B){if(B)if(B instanceof re)this.rgba=B;else if(B instanceof ne)this._hsla=B,this.rgba=ne.toRGBA(B);else if(B instanceof P)this._hsva=B,this.rgba=P.toRGBA(B);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return V.fromHex=function(B){return V.Format.CSS.parseHex(B)||V.red},Object.defineProperty(V.prototype,"hsla",{get:function(){return this._hsla?this._hsla:ne.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"hsva",{get:function(){return this._hsva?this._hsva:P.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),V.prototype.equals=function(B){return!!B&&re.equals(this.rgba,B.rgba)&&ne.equals(this.hsla,B.hsla)&&P.equals(this.hsva,B.hsva)},V.prototype.getRelativeLuminance=function(){var B=V._relativeLuminanceForComponent(this.rgba.r),G=V._relativeLuminanceForComponent(this.rgba.g),x=V._relativeLuminanceForComponent(this.rgba.b),S=.2126*B+.7152*G+.0722*x;return R(S,4)},V._relativeLuminanceForComponent=function(B){var G=B/255;return G<=.03928?G/12.92:Math.pow((G+.055)/1.055,2.4)},V.prototype.isLighter=function(){var B=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return B>=128},V.prototype.isLighterThan=function(B){var G=this.getRelativeLuminance(),x=B.getRelativeLuminance();return G>x},V.prototype.isDarkerThan=function(B){var G=this.getRelativeLuminance(),x=B.getRelativeLuminance();return G<x},V.prototype.lighten=function(B){return new V(new ne(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*B,this.hsla.a))},V.prototype.darken=function(B){return new V(new ne(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*B,this.hsla.a))},V.prototype.transparent=function(B){var G=this.rgba,x=G.r,S=G.g,I=G.b,K=G.a;return new V(new re(x,S,I,K*B))},V.prototype.isTransparent=function(){return this.rgba.a===0},V.prototype.isOpaque=function(){return this.rgba.a===1},V.prototype.opposite=function(){return new V(new re(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},V.prototype.toString=function(){return""+V.Format.CSS.format(this)},V.getLighterColor=function(B,G,x){if(B.isLighterThan(G))return B;x=x||.5;var S=B.getRelativeLuminance(),I=G.getRelativeLuminance();return x=x*(I-S)/I,B.lighten(x)},V.getDarkerColor=function(B,G,x){if(B.isDarkerThan(G))return B;x=x||.5;var S=B.getRelativeLuminance(),I=G.getRelativeLuminance();return x=x*(S-I)/S,B.darken(x)},V.white=new V(new re(255,255,255,1)),V.black=new V(new re(0,0,0,1)),V.red=new V(new re(255,0,0,1)),V.blue=new V(new re(0,0,255,1)),V.cyan=new V(new re(0,255,255,1)),V.lightgrey=new V(new re(211,211,211,1)),V.transparent=new V(new re(0,0,0,0)),V}();(function(V){var B;(function(G){var x;(function(S){function I(v){return v.rgba.a===1?"rgb("+v.rgba.r+", "+v.rgba.g+", "+v.rgba.b+")":V.Format.CSS.formatRGBA(v)}S.formatRGB=I;function K(v){return"rgba("+v.rgba.r+", "+v.rgba.g+", "+v.rgba.b+", "+ +v.rgba.a.toFixed(2)+")"}S.formatRGBA=K;function D(v){return v.hsla.a===1?"hsl("+v.hsla.h+", "+(v.hsla.s*100).toFixed(2)+"%, "+(v.hsla.l*100).toFixed(2)+"%)":V.Format.CSS.formatHSLA(v)}S.formatHSL=D;function T(v){return"hsla("+v.hsla.h+", "+(v.hsla.s*100).toFixed(2)+"%, "+(v.hsla.l*100).toFixed(2)+"%, "+v.hsla.a.toFixed(2)+")"}S.formatHSLA=T;function te(v){var E=v.toString(16);return E.length!==2?"0"+E:E}function U(v){return"#"+te(v.rgba.r)+te(v.rgba.g)+te(v.rgba.b)}S.formatHex=U;function _(v,E){return E===void 0&&(E=!1),E&&v.rgba.a===1?V.Format.CSS.formatHex(v):"#"+te(v.rgba.r)+te(v.rgba.g)+te(v.rgba.b)+te(Math.round(v.rgba.a*255))}S.formatHexA=_;function h(v){return v.isOpaque()?V.Format.CSS.formatHex(v):V.Format.CSS.formatRGBA(v)}S.format=h;function g(v){var E=v.length;if(E===0||v.charCodeAt(0)!==35)return null;if(E===7){var k=16*p(v.charCodeAt(1))+p(v.charCodeAt(2)),z=16*p(v.charCodeAt(3))+p(v.charCodeAt(4)),oe=16*p(v.charCodeAt(5))+p(v.charCodeAt(6));return new V(new re(k,z,oe,1))}if(E===9){var k=16*p(v.charCodeAt(1))+p(v.charCodeAt(2)),z=16*p(v.charCodeAt(3))+p(v.charCodeAt(4)),oe=16*p(v.charCodeAt(5))+p(v.charCodeAt(6)),fe=16*p(v.charCodeAt(7))+p(v.charCodeAt(8));return new V(new re(k,z,oe,fe/255))}if(E===4){var k=p(v.charCodeAt(1)),z=p(v.charCodeAt(2)),oe=p(v.charCodeAt(3));return new V(new re(16*k+k,16*z+z,16*oe+oe))}if(E===5){var k=p(v.charCodeAt(1)),z=p(v.charCodeAt(2)),oe=p(v.charCodeAt(3)),fe=p(v.charCodeAt(4));return new V(new re(16*k+k,16*z+z,16*oe+oe,(16*fe+fe)/255))}return null}S.parseHex=g;function p(v){switch(v){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=G.CSS||(G.CSS={}))})(B=V.Format||(V.Format={}))})(F||(F={}))}}]);